Skip to content

Commit

Permalink
Merge pull request #2152 from IBM/issue-2145
Browse files Browse the repository at this point in the history
issue #2145 - set the StandardsStatus appropriately
  • Loading branch information
lmsurpre authored Mar 26, 2021
2 parents a287ade + 062acf6 commit 98c77f9
Show file tree
Hide file tree
Showing 151 changed files with 1,311 additions and 386 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

import com.ibm.fhir.model.type.code.StandardsStatus;

/**
* @see <a href="https://confluence.hl7.org/display/FHIR/FHIR+Maturity+Model">https://confluence.hl7.org/display/FHIR/FHIR+Maturity+Model</a>
*/
@Retention(RetentionPolicy.RUNTIME)
public @interface MaturityLevel {
int value();
public @interface Maturity {
int level();
StandardsStatus.ValueSet status();
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import javax.annotation.Generated;

import com.ibm.fhir.model.annotation.Binding;
import com.ibm.fhir.model.annotation.MaturityLevel;
import com.ibm.fhir.model.annotation.Maturity;
import com.ibm.fhir.model.annotation.ReferenceTarget;
import com.ibm.fhir.model.annotation.Required;
import com.ibm.fhir.model.annotation.Summary;
Expand All @@ -34,6 +34,7 @@
import com.ibm.fhir.model.type.Uri;
import com.ibm.fhir.model.type.code.AccountStatus;
import com.ibm.fhir.model.type.code.BindingStrength;
import com.ibm.fhir.model.type.code.StandardsStatus;
import com.ibm.fhir.model.util.ValidationSupport;
import com.ibm.fhir.model.visitor.Visitor;

Expand All @@ -43,7 +44,10 @@
*
* <p>Maturity level: FMM2 (Trial Use)
*/
@MaturityLevel(2)
@Maturity(
level = 2,
status = StandardsStatus.ValueSet.TRIAL_USE
)
@Generated("com.ibm.fhir.tools.CodeGenerator")
public class Account extends DomainResource {
@Summary
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import com.ibm.fhir.model.annotation.Binding;
import com.ibm.fhir.model.annotation.Choice;
import com.ibm.fhir.model.annotation.Constraint;
import com.ibm.fhir.model.annotation.MaturityLevel;
import com.ibm.fhir.model.annotation.Maturity;
import com.ibm.fhir.model.annotation.ReferenceTarget;
import com.ibm.fhir.model.annotation.Required;
import com.ibm.fhir.model.annotation.Summary;
Expand Down Expand Up @@ -54,6 +54,7 @@
import com.ibm.fhir.model.type.code.PublicationStatus;
import com.ibm.fhir.model.type.code.RequestIntent;
import com.ibm.fhir.model.type.code.RequestPriority;
import com.ibm.fhir.model.type.code.StandardsStatus;
import com.ibm.fhir.model.util.ValidationSupport;
import com.ibm.fhir.model.visitor.Visitor;

Expand All @@ -63,7 +64,10 @@
*
* <p>Maturity level: FMM2 (Trial Use)
*/
@MaturityLevel(2)
@Maturity(
level = 2,
status = StandardsStatus.ValueSet.TRIAL_USE
)
@Constraint(
id = "adf-0",
level = "Warning",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import com.ibm.fhir.model.annotation.Binding;
import com.ibm.fhir.model.annotation.Constraint;
import com.ibm.fhir.model.annotation.MaturityLevel;
import com.ibm.fhir.model.annotation.Maturity;
import com.ibm.fhir.model.annotation.ReferenceTarget;
import com.ibm.fhir.model.annotation.Required;
import com.ibm.fhir.model.annotation.Summary;
Expand All @@ -33,6 +33,7 @@
import com.ibm.fhir.model.type.Uri;
import com.ibm.fhir.model.type.code.AdverseEventActuality;
import com.ibm.fhir.model.type.code.BindingStrength;
import com.ibm.fhir.model.type.code.StandardsStatus;
import com.ibm.fhir.model.util.ValidationSupport;
import com.ibm.fhir.model.visitor.Visitor;

Expand All @@ -41,9 +42,12 @@
* a research study or other healthcare setting factors that requires additional monitoring, treatment, or
* hospitalization, or that results in death.
*
* <p>Maturity level: FMM0 (Draft)
* <p>Maturity level: FMM0 (Trial Use)
*/
@MaturityLevel(0)
@Maturity(
level = 0,
status = StandardsStatus.ValueSet.TRIAL_USE
)
@Constraint(
id = "adverseEvent-0",
level = "Warning",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import com.ibm.fhir.model.annotation.Binding;
import com.ibm.fhir.model.annotation.Choice;
import com.ibm.fhir.model.annotation.Constraint;
import com.ibm.fhir.model.annotation.MaturityLevel;
import com.ibm.fhir.model.annotation.Maturity;
import com.ibm.fhir.model.annotation.ReferenceTarget;
import com.ibm.fhir.model.annotation.Required;
import com.ibm.fhir.model.annotation.Summary;
Expand All @@ -42,6 +42,7 @@
import com.ibm.fhir.model.type.code.AllergyIntoleranceSeverity;
import com.ibm.fhir.model.type.code.AllergyIntoleranceType;
import com.ibm.fhir.model.type.code.BindingStrength;
import com.ibm.fhir.model.type.code.StandardsStatus;
import com.ibm.fhir.model.util.ValidationSupport;
import com.ibm.fhir.model.visitor.Visitor;

Expand All @@ -51,7 +52,10 @@
*
* <p>Maturity level: FMM3 (Trial Use)
*/
@MaturityLevel(3)
@Maturity(
level = 3,
status = StandardsStatus.ValueSet.TRIAL_USE
)
@Constraint(
id = "ait-1",
level = "Rule",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import com.ibm.fhir.model.annotation.Binding;
import com.ibm.fhir.model.annotation.Constraint;
import com.ibm.fhir.model.annotation.MaturityLevel;
import com.ibm.fhir.model.annotation.Maturity;
import com.ibm.fhir.model.annotation.ReferenceTarget;
import com.ibm.fhir.model.annotation.Required;
import com.ibm.fhir.model.annotation.Summary;
Expand All @@ -39,6 +39,7 @@
import com.ibm.fhir.model.type.code.BindingStrength;
import com.ibm.fhir.model.type.code.ParticipantRequired;
import com.ibm.fhir.model.type.code.ParticipationStatus;
import com.ibm.fhir.model.type.code.StandardsStatus;
import com.ibm.fhir.model.util.ValidationSupport;
import com.ibm.fhir.model.visitor.Visitor;

Expand All @@ -48,7 +49,10 @@
*
* <p>Maturity level: FMM3 (Trial Use)
*/
@MaturityLevel(3)
@Maturity(
level = 3,
status = StandardsStatus.ValueSet.TRIAL_USE
)
@Constraint(
id = "app-1",
level = "Rule",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import com.ibm.fhir.model.annotation.Binding;
import com.ibm.fhir.model.annotation.Constraint;
import com.ibm.fhir.model.annotation.MaturityLevel;
import com.ibm.fhir.model.annotation.Maturity;
import com.ibm.fhir.model.annotation.ReferenceTarget;
import com.ibm.fhir.model.annotation.Required;
import com.ibm.fhir.model.annotation.Summary;
Expand All @@ -32,6 +32,7 @@
import com.ibm.fhir.model.type.Uri;
import com.ibm.fhir.model.type.code.BindingStrength;
import com.ibm.fhir.model.type.code.ParticipantStatus;
import com.ibm.fhir.model.type.code.StandardsStatus;
import com.ibm.fhir.model.util.ValidationSupport;
import com.ibm.fhir.model.visitor.Visitor;

Expand All @@ -40,7 +41,10 @@
*
* <p>Maturity level: FMM3 (Trial Use)
*/
@MaturityLevel(3)
@Maturity(
level = 3,
status = StandardsStatus.ValueSet.TRIAL_USE
)
@Constraint(
id = "apr-1",
level = "Rule",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import com.ibm.fhir.model.annotation.Binding;
import com.ibm.fhir.model.annotation.Choice;
import com.ibm.fhir.model.annotation.Constraint;
import com.ibm.fhir.model.annotation.MaturityLevel;
import com.ibm.fhir.model.annotation.Maturity;
import com.ibm.fhir.model.annotation.ReferenceTarget;
import com.ibm.fhir.model.annotation.Required;
import com.ibm.fhir.model.annotation.Summary;
Expand All @@ -40,6 +40,7 @@
import com.ibm.fhir.model.type.code.AuditEventAgentNetworkType;
import com.ibm.fhir.model.type.code.AuditEventOutcome;
import com.ibm.fhir.model.type.code.BindingStrength;
import com.ibm.fhir.model.type.code.StandardsStatus;
import com.ibm.fhir.model.util.ValidationSupport;
import com.ibm.fhir.model.visitor.Visitor;

Expand All @@ -49,7 +50,10 @@
*
* <p>Maturity level: FMM3 (Trial Use)
*/
@MaturityLevel(3)
@Maturity(
level = 3,
status = StandardsStatus.ValueSet.TRIAL_USE
)
@Constraint(
id = "sev-1",
level = "Rule",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import javax.annotation.Generated;

import com.ibm.fhir.model.annotation.Binding;
import com.ibm.fhir.model.annotation.MaturityLevel;
import com.ibm.fhir.model.annotation.Maturity;
import com.ibm.fhir.model.annotation.ReferenceTarget;
import com.ibm.fhir.model.annotation.Required;
import com.ibm.fhir.model.annotation.Summary;
Expand All @@ -29,6 +29,7 @@
import com.ibm.fhir.model.type.Reference;
import com.ibm.fhir.model.type.Uri;
import com.ibm.fhir.model.type.code.BindingStrength;
import com.ibm.fhir.model.type.code.StandardsStatus;
import com.ibm.fhir.model.util.ValidationSupport;
import com.ibm.fhir.model.visitor.Visitor;

Expand All @@ -38,7 +39,10 @@
*
* <p>Maturity level: FMM1 (Trial Use)
*/
@MaturityLevel(1)
@Maturity(
level = 1,
status = StandardsStatus.ValueSet.TRIAL_USE
)
@Generated("com.ibm.fhir.tools.CodeGenerator")
public class Basic extends DomainResource {
@Summary
Expand Down
10 changes: 7 additions & 3 deletions fhir-model/src/main/java/com/ibm/fhir/model/resource/Binary.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import javax.annotation.Generated;

import com.ibm.fhir.model.annotation.Binding;
import com.ibm.fhir.model.annotation.MaturityLevel;
import com.ibm.fhir.model.annotation.Maturity;
import com.ibm.fhir.model.annotation.Required;
import com.ibm.fhir.model.annotation.Summary;
import com.ibm.fhir.model.type.Base64Binary;
Expand All @@ -20,16 +20,20 @@
import com.ibm.fhir.model.type.Reference;
import com.ibm.fhir.model.type.Uri;
import com.ibm.fhir.model.type.code.BindingStrength;
import com.ibm.fhir.model.type.code.StandardsStatus;
import com.ibm.fhir.model.util.ValidationSupport;
import com.ibm.fhir.model.visitor.Visitor;

/**
* A resource that represents the data of a single raw artifact as digital content accessible in its native format. A
* Binary resource can contain any content, whether text, image, pdf, zip archive, etc.
*
* <p>Maturity level: FMM5 (Trial Use)
* <p>Maturity level: FMM5 (Normative)
*/
@MaturityLevel(5)
@Maturity(
level = 5,
status = StandardsStatus.ValueSet.NORMATIVE
)
@Generated("com.ibm.fhir.tools.CodeGenerator")
public class Binary extends Resource {
@Summary
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import com.ibm.fhir.model.annotation.Binding;
import com.ibm.fhir.model.annotation.Choice;
import com.ibm.fhir.model.annotation.MaturityLevel;
import com.ibm.fhir.model.annotation.Maturity;
import com.ibm.fhir.model.annotation.ReferenceTarget;
import com.ibm.fhir.model.annotation.Summary;
import com.ibm.fhir.model.type.BackboneElement;
Expand All @@ -37,16 +37,20 @@
import com.ibm.fhir.model.type.code.BiologicallyDerivedProductCategory;
import com.ibm.fhir.model.type.code.BiologicallyDerivedProductStatus;
import com.ibm.fhir.model.type.code.BiologicallyDerivedProductStorageScale;
import com.ibm.fhir.model.type.code.StandardsStatus;
import com.ibm.fhir.model.util.ValidationSupport;
import com.ibm.fhir.model.visitor.Visitor;

/**
* A material substance originating from a biological entity intended to be transplanted or infused
* into another (possibly the same) biological entity.
*
* <p>Maturity level: FMM0 (Draft)
* <p>Maturity level: FMM0 (Trial Use)
*/
@MaturityLevel(0)
@Maturity(
level = 0,
status = StandardsStatus.ValueSet.TRIAL_USE
)
@Generated("com.ibm.fhir.tools.CodeGenerator")
public class BiologicallyDerivedProduct extends DomainResource {
@Summary
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import javax.annotation.Generated;

import com.ibm.fhir.model.annotation.Binding;
import com.ibm.fhir.model.annotation.MaturityLevel;
import com.ibm.fhir.model.annotation.Maturity;
import com.ibm.fhir.model.annotation.ReferenceTarget;
import com.ibm.fhir.model.annotation.Required;
import com.ibm.fhir.model.annotation.Summary;
Expand All @@ -31,6 +31,7 @@
import com.ibm.fhir.model.type.String;
import com.ibm.fhir.model.type.Uri;
import com.ibm.fhir.model.type.code.BindingStrength;
import com.ibm.fhir.model.type.code.StandardsStatus;
import com.ibm.fhir.model.util.ValidationSupport;
import com.ibm.fhir.model.visitor.Visitor;

Expand All @@ -40,7 +41,10 @@
*
* <p>Maturity level: FMM1 (Trial Use)
*/
@MaturityLevel(1)
@Maturity(
level = 1,
status = StandardsStatus.ValueSet.TRIAL_USE
)
@Generated("com.ibm.fhir.tools.CodeGenerator")
public class BodyStructure extends DomainResource {
@Summary
Expand Down
10 changes: 7 additions & 3 deletions fhir-model/src/main/java/com/ibm/fhir/model/resource/Bundle.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import com.ibm.fhir.model.annotation.Binding;
import com.ibm.fhir.model.annotation.Constraint;
import com.ibm.fhir.model.annotation.MaturityLevel;
import com.ibm.fhir.model.annotation.Maturity;
import com.ibm.fhir.model.annotation.Required;
import com.ibm.fhir.model.annotation.Summary;
import com.ibm.fhir.model.type.BackboneElement;
Expand All @@ -34,15 +34,19 @@
import com.ibm.fhir.model.type.code.BundleType;
import com.ibm.fhir.model.type.code.HTTPVerb;
import com.ibm.fhir.model.type.code.SearchEntryMode;
import com.ibm.fhir.model.type.code.StandardsStatus;
import com.ibm.fhir.model.util.ValidationSupport;
import com.ibm.fhir.model.visitor.Visitor;

/**
* A container for a collection of resources.
*
* <p>Maturity level: FMM5 (Trial Use)
* <p>Maturity level: FMM5 (Normative)
*/
@MaturityLevel(5)
@Maturity(
level = 5,
status = StandardsStatus.ValueSet.NORMATIVE
)
@Constraint(
id = "bdl-1",
level = "Rule",
Expand Down
Loading

0 comments on commit 98c77f9

Please sign in to comment.