Return null for all toCode enum params that are Enum.NULL (dstu3)
This commit is contained in:
parent
704ba35073
commit
ea0a158ae8
|
@ -86,7 +86,7 @@ public class Account extends DomainResource {
|
|||
case ACTIVE: return "active";
|
||||
case INACTIVE: return "inactive";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -95,7 +95,7 @@ public class Account extends DomainResource {
|
|||
case ACTIVE: return "http://hl7.org/fhir/account-status";
|
||||
case INACTIVE: return "http://hl7.org/fhir/account-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/account-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ public class Account extends DomainResource {
|
|||
case ACTIVE: return "This account is active and may be used.";
|
||||
case INACTIVE: return "This account is inactive and should not be used to track financial information.";
|
||||
case ENTEREDINERROR: return "This instance should not have been part of this patient's medical record.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -113,7 +113,7 @@ public class Account extends DomainResource {
|
|||
case ACTIVE: return "Active";
|
||||
case INACTIVE: return "Inactive";
|
||||
case ENTEREDINERROR: return "Entered in error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -149,14 +149,16 @@ public class Account extends DomainResource {
|
|||
throw new FHIRException("Unknown AccountStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AccountStatus code) {
|
||||
if (code == AccountStatus.ACTIVE)
|
||||
if (code == AccountStatus.NULL)
|
||||
return null;
|
||||
if (code == AccountStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == AccountStatus.INACTIVE)
|
||||
return "inactive";
|
||||
if (code == AccountStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(AccountStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -907,7 +907,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case TESTSCRIPT: return "TestScript";
|
||||
case VALUESET: return "ValueSet";
|
||||
case VISIONPRESCRIPTION: return "VisionPrescription";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1032,7 +1032,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case TESTSCRIPT: return "http://hl7.org/fhir/resource-types";
|
||||
case VALUESET: return "http://hl7.org/fhir/resource-types";
|
||||
case VISIONPRESCRIPTION: return "http://hl7.org/fhir/resource-types";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1157,7 +1157,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case TESTSCRIPT: return "A structured set of tests against a FHIR server implementation to determine compliance against the FHIR specification.";
|
||||
case VALUESET: return "A value set specifies a set of codes drawn from one or more code systems.";
|
||||
case VISIONPRESCRIPTION: return "An authorization for the supply of glasses and/or contact lenses to a patient.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1282,7 +1282,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case TESTSCRIPT: return "TestScript";
|
||||
case VALUESET: return "ValueSet";
|
||||
case VISIONPRESCRIPTION: return "VisionPrescription";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1782,7 +1782,9 @@ The primary difference between a medication statement and a medication administr
|
|||
throw new FHIRException("Unknown ActivityDefinitionKind code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActivityDefinitionKind code) {
|
||||
if (code == ActivityDefinitionKind.ACCOUNT)
|
||||
if (code == ActivityDefinitionKind.NULL)
|
||||
return null;
|
||||
if (code == ActivityDefinitionKind.ACCOUNT)
|
||||
return "Account";
|
||||
if (code == ActivityDefinitionKind.ACTIVITYDEFINITION)
|
||||
return "ActivityDefinition";
|
||||
|
@ -2021,7 +2023,7 @@ The primary difference between a medication statement and a medication administr
|
|||
if (code == ActivityDefinitionKind.VISIONPRESCRIPTION)
|
||||
return "VisionPrescription";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ActivityDefinitionKind code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -2063,7 +2065,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case PATIENT: return "patient";
|
||||
case PRACTITIONER: return "practitioner";
|
||||
case RELATEDPERSON: return "related-person";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -2072,7 +2074,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case PATIENT: return "http://hl7.org/fhir/action-participant-type";
|
||||
case PRACTITIONER: return "http://hl7.org/fhir/action-participant-type";
|
||||
case RELATEDPERSON: return "http://hl7.org/fhir/action-participant-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -2081,7 +2083,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case PATIENT: return "The participant is the patient under evaluation";
|
||||
case PRACTITIONER: return "The participant is a practitioner involved in the patient's care";
|
||||
case RELATEDPERSON: return "The participant is a person related to the patient";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -2090,7 +2092,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case PATIENT: return "Patient";
|
||||
case PRACTITIONER: return "Practitioner";
|
||||
case RELATEDPERSON: return "Related Person";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -2126,14 +2128,16 @@ The primary difference between a medication statement and a medication administr
|
|||
throw new FHIRException("Unknown ActivityParticipantType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActivityParticipantType code) {
|
||||
if (code == ActivityParticipantType.PATIENT)
|
||||
if (code == ActivityParticipantType.NULL)
|
||||
return null;
|
||||
if (code == ActivityParticipantType.PATIENT)
|
||||
return "patient";
|
||||
if (code == ActivityParticipantType.PRACTITIONER)
|
||||
return "practitioner";
|
||||
if (code == ActivityParticipantType.RELATEDPERSON)
|
||||
return "related-person";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ActivityParticipantType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -92,7 +92,7 @@ public class Address extends Type implements ICompositeType {
|
|||
case WORK: return "work";
|
||||
case TEMP: return "temp";
|
||||
case OLD: return "old";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ public class Address extends Type implements ICompositeType {
|
|||
case WORK: return "http://hl7.org/fhir/address-use";
|
||||
case TEMP: return "http://hl7.org/fhir/address-use";
|
||||
case OLD: return "http://hl7.org/fhir/address-use";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -112,7 +112,7 @@ public class Address extends Type implements ICompositeType {
|
|||
case WORK: return "An office address. First choice for business related contacts during business hours.";
|
||||
case TEMP: return "A temporary address. The period can provide more detailed information.";
|
||||
case OLD: return "This address is no longer in use (or was never correct, but retained for records).";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -122,7 +122,7 @@ public class Address extends Type implements ICompositeType {
|
|||
case WORK: return "Work";
|
||||
case TEMP: return "Temporary";
|
||||
case OLD: return "Old / Incorrect";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -162,7 +162,9 @@ public class Address extends Type implements ICompositeType {
|
|||
throw new FHIRException("Unknown AddressUse code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AddressUse code) {
|
||||
if (code == AddressUse.HOME)
|
||||
if (code == AddressUse.NULL)
|
||||
return null;
|
||||
if (code == AddressUse.HOME)
|
||||
return "home";
|
||||
if (code == AddressUse.WORK)
|
||||
return "work";
|
||||
|
@ -171,7 +173,7 @@ public class Address extends Type implements ICompositeType {
|
|||
if (code == AddressUse.OLD)
|
||||
return "old";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(AddressUse code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -213,7 +215,7 @@ public class Address extends Type implements ICompositeType {
|
|||
case POSTAL: return "postal";
|
||||
case PHYSICAL: return "physical";
|
||||
case BOTH: return "both";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -222,7 +224,7 @@ public class Address extends Type implements ICompositeType {
|
|||
case POSTAL: return "http://hl7.org/fhir/address-type";
|
||||
case PHYSICAL: return "http://hl7.org/fhir/address-type";
|
||||
case BOTH: return "http://hl7.org/fhir/address-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -231,7 +233,7 @@ public class Address extends Type implements ICompositeType {
|
|||
case POSTAL: return "Mailing addresses - PO Boxes and care-of addresses.";
|
||||
case PHYSICAL: return "A physical address that can be visited.";
|
||||
case BOTH: return "An address that is both physical and postal.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -240,7 +242,7 @@ public class Address extends Type implements ICompositeType {
|
|||
case POSTAL: return "Postal";
|
||||
case PHYSICAL: return "Physical";
|
||||
case BOTH: return "Postal & Physical";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -276,14 +278,16 @@ public class Address extends Type implements ICompositeType {
|
|||
throw new FHIRException("Unknown AddressType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AddressType code) {
|
||||
if (code == AddressType.POSTAL)
|
||||
if (code == AddressType.NULL)
|
||||
return null;
|
||||
if (code == AddressType.POSTAL)
|
||||
return "postal";
|
||||
if (code == AddressType.PHYSICAL)
|
||||
return "physical";
|
||||
if (code == AddressType.BOTH)
|
||||
return "both";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(AddressType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -80,7 +80,7 @@ public class AdverseEvent extends DomainResource {
|
|||
switch (this) {
|
||||
case AE: return "AE";
|
||||
case PAE: return "PAE";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -88,7 +88,7 @@ public class AdverseEvent extends DomainResource {
|
|||
switch (this) {
|
||||
case AE: return "http://hl7.org/fhir/adverse-event-category";
|
||||
case PAE: return "http://hl7.org/fhir/adverse-event-category";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ public class AdverseEvent extends DomainResource {
|
|||
switch (this) {
|
||||
case AE: return "";
|
||||
case PAE: return "";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ public class AdverseEvent extends DomainResource {
|
|||
switch (this) {
|
||||
case AE: return "Adverse Event";
|
||||
case PAE: return "Potential Adverse Event";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -136,12 +136,14 @@ public class AdverseEvent extends DomainResource {
|
|||
throw new FHIRException("Unknown AdverseEventCategory code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AdverseEventCategory code) {
|
||||
if (code == AdverseEventCategory.AE)
|
||||
if (code == AdverseEventCategory.NULL)
|
||||
return null;
|
||||
if (code == AdverseEventCategory.AE)
|
||||
return "AE";
|
||||
if (code == AdverseEventCategory.PAE)
|
||||
return "PAE";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(AdverseEventCategory code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -176,7 +178,7 @@ public class AdverseEvent extends DomainResource {
|
|||
switch (this) {
|
||||
case CAUSALITY1: return "causality1";
|
||||
case CAUSALITY2: return "causality2";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -184,7 +186,7 @@ public class AdverseEvent extends DomainResource {
|
|||
switch (this) {
|
||||
case CAUSALITY1: return "http://hl7.org/fhir/adverse-event-causality";
|
||||
case CAUSALITY2: return "http://hl7.org/fhir/adverse-event-causality";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -192,7 +194,7 @@ public class AdverseEvent extends DomainResource {
|
|||
switch (this) {
|
||||
case CAUSALITY1: return "";
|
||||
case CAUSALITY2: return "";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -200,7 +202,7 @@ public class AdverseEvent extends DomainResource {
|
|||
switch (this) {
|
||||
case CAUSALITY1: return "causality1 placeholder";
|
||||
case CAUSALITY2: return "causality2 placeholder";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -232,12 +234,14 @@ public class AdverseEvent extends DomainResource {
|
|||
throw new FHIRException("Unknown AdverseEventCausality code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AdverseEventCausality code) {
|
||||
if (code == AdverseEventCausality.CAUSALITY1)
|
||||
if (code == AdverseEventCausality.NULL)
|
||||
return null;
|
||||
if (code == AdverseEventCausality.CAUSALITY1)
|
||||
return "causality1";
|
||||
if (code == AdverseEventCausality.CAUSALITY2)
|
||||
return "causality2";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(AdverseEventCausality code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -88,7 +88,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
case ACTIVE: return "active";
|
||||
case INACTIVE: return "inactive";
|
||||
case RESOLVED: return "resolved";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
case ACTIVE: return "http://hl7.org/fhir/allergy-clinical-status";
|
||||
case INACTIVE: return "http://hl7.org/fhir/allergy-clinical-status";
|
||||
case RESOLVED: return "http://hl7.org/fhir/allergy-clinical-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -106,7 +106,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
case ACTIVE: return "An active record of a risk of a reaction to the identified substance.";
|
||||
case INACTIVE: return "An inactivated record of a risk of a reaction to the identified substance.";
|
||||
case RESOLVED: return "A reaction to the identified substance has been clinically reassessed by testing or re-exposure and considered to be resolved.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -115,7 +115,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
case ACTIVE: return "Active";
|
||||
case INACTIVE: return "Inactive";
|
||||
case RESOLVED: return "Resolved";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -151,14 +151,16 @@ public class AllergyIntolerance extends DomainResource {
|
|||
throw new FHIRException("Unknown AllergyIntoleranceClinicalStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AllergyIntoleranceClinicalStatus code) {
|
||||
if (code == AllergyIntoleranceClinicalStatus.ACTIVE)
|
||||
if (code == AllergyIntoleranceClinicalStatus.NULL)
|
||||
return null;
|
||||
if (code == AllergyIntoleranceClinicalStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == AllergyIntoleranceClinicalStatus.INACTIVE)
|
||||
return "inactive";
|
||||
if (code == AllergyIntoleranceClinicalStatus.RESOLVED)
|
||||
return "resolved";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(AllergyIntoleranceClinicalStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -207,7 +209,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
case CONFIRMED: return "confirmed";
|
||||
case REFUTED: return "refuted";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -217,7 +219,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
case CONFIRMED: return "http://hl7.org/fhir/allergy-verification-status";
|
||||
case REFUTED: return "http://hl7.org/fhir/allergy-verification-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/allergy-verification-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -227,7 +229,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
case CONFIRMED: return "A high level of certainty about the propensity for a reaction to the identified substance, which may include clinical evidence by testing or rechallenge.";
|
||||
case REFUTED: return "A propensity for a reaction to the identified substance has been disproven with a high level of clinical certainty, which may include testing or rechallenge, and is refuted.";
|
||||
case ENTEREDINERROR: return "The statement was entered in error and is not valid.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -237,7 +239,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
case CONFIRMED: return "Confirmed";
|
||||
case REFUTED: return "Refuted";
|
||||
case ENTEREDINERROR: return "Entered In Error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -277,7 +279,9 @@ public class AllergyIntolerance extends DomainResource {
|
|||
throw new FHIRException("Unknown AllergyIntoleranceVerificationStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AllergyIntoleranceVerificationStatus code) {
|
||||
if (code == AllergyIntoleranceVerificationStatus.UNCONFIRMED)
|
||||
if (code == AllergyIntoleranceVerificationStatus.NULL)
|
||||
return null;
|
||||
if (code == AllergyIntoleranceVerificationStatus.UNCONFIRMED)
|
||||
return "unconfirmed";
|
||||
if (code == AllergyIntoleranceVerificationStatus.CONFIRMED)
|
||||
return "confirmed";
|
||||
|
@ -286,7 +290,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
if (code == AllergyIntoleranceVerificationStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(AllergyIntoleranceVerificationStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -321,7 +325,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
switch (this) {
|
||||
case ALLERGY: return "allergy";
|
||||
case INTOLERANCE: return "intolerance";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -329,7 +333,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
switch (this) {
|
||||
case ALLERGY: return "http://hl7.org/fhir/allergy-intolerance-type";
|
||||
case INTOLERANCE: return "http://hl7.org/fhir/allergy-intolerance-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -337,7 +341,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
switch (this) {
|
||||
case ALLERGY: return "A propensity for hypersensitivity reaction(s) to a substance. These reactions are most typically type I hypersensitivity, plus other \"allergy-like\" reactions, including pseudoallergy.";
|
||||
case INTOLERANCE: return "A propensity for adverse reactions to a substance that is not judged to be allergic or \"allergy-like\". These reactions are typically (but not necessarily) non-immune. They are to some degree idiosyncratic and/or individually specific (i.e. are not a reaction that is expected to occur with most or all patients given similar circumstances).";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -345,7 +349,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
switch (this) {
|
||||
case ALLERGY: return "Allergy";
|
||||
case INTOLERANCE: return "Intolerance";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -377,12 +381,14 @@ public class AllergyIntolerance extends DomainResource {
|
|||
throw new FHIRException("Unknown AllergyIntoleranceType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AllergyIntoleranceType code) {
|
||||
if (code == AllergyIntoleranceType.ALLERGY)
|
||||
if (code == AllergyIntoleranceType.NULL)
|
||||
return null;
|
||||
if (code == AllergyIntoleranceType.ALLERGY)
|
||||
return "allergy";
|
||||
if (code == AllergyIntoleranceType.INTOLERANCE)
|
||||
return "intolerance";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(AllergyIntoleranceType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -431,7 +437,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
case MEDICATION: return "medication";
|
||||
case ENVIRONMENT: return "environment";
|
||||
case BIOLOGIC: return "biologic";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -441,7 +447,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
case MEDICATION: return "http://hl7.org/fhir/allergy-intolerance-category";
|
||||
case ENVIRONMENT: return "http://hl7.org/fhir/allergy-intolerance-category";
|
||||
case BIOLOGIC: return "http://hl7.org/fhir/allergy-intolerance-category";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -451,7 +457,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
case MEDICATION: return "Substances administered to achieve a physiological effect.";
|
||||
case ENVIRONMENT: return "Any substances that are encountered in the environment, including any substance not already classified as food, medication, or biologic.";
|
||||
case BIOLOGIC: return "A preparation that is synthesized from living organisms or their products, especially a human or animal protein, such as a hormone or antitoxin, that is used as a diagnostic, preventive, or therapeutic agent. Examples of biologic medications include: vaccines; allergenic extracts, which are used for both diagnosis and treatment (for example, allergy shots); gene therapies; cellular therapies. There are other biologic products, such as tissues, that are not typically associated with allergies.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -461,7 +467,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
case MEDICATION: return "Medication";
|
||||
case ENVIRONMENT: return "Environment";
|
||||
case BIOLOGIC: return "Biologic";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -501,7 +507,9 @@ public class AllergyIntolerance extends DomainResource {
|
|||
throw new FHIRException("Unknown AllergyIntoleranceCategory code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AllergyIntoleranceCategory code) {
|
||||
if (code == AllergyIntoleranceCategory.FOOD)
|
||||
if (code == AllergyIntoleranceCategory.NULL)
|
||||
return null;
|
||||
if (code == AllergyIntoleranceCategory.FOOD)
|
||||
return "food";
|
||||
if (code == AllergyIntoleranceCategory.MEDICATION)
|
||||
return "medication";
|
||||
|
@ -510,7 +518,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
if (code == AllergyIntoleranceCategory.BIOLOGIC)
|
||||
return "biologic";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(AllergyIntoleranceCategory code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -552,7 +560,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
case LOW: return "low";
|
||||
case HIGH: return "high";
|
||||
case UNABLETOASSESS: return "unable-to-assess";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -561,7 +569,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
case LOW: return "http://hl7.org/fhir/allergy-intolerance-criticality";
|
||||
case HIGH: return "http://hl7.org/fhir/allergy-intolerance-criticality";
|
||||
case UNABLETOASSESS: return "http://hl7.org/fhir/allergy-intolerance-criticality";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -570,7 +578,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
case LOW: return "Worst case result of a future exposure is not assessed to be life-threatening or having high potential for organ system failure.";
|
||||
case HIGH: return "Worst case result of a future exposure is assessed to be life-threatening or having high potential for organ system failure.";
|
||||
case UNABLETOASSESS: return "Unable to assess the worst case result of a future exposure.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -579,7 +587,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
case LOW: return "Low Risk";
|
||||
case HIGH: return "High Risk";
|
||||
case UNABLETOASSESS: return "Unable to Assess Risk";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -615,14 +623,16 @@ public class AllergyIntolerance extends DomainResource {
|
|||
throw new FHIRException("Unknown AllergyIntoleranceCriticality code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AllergyIntoleranceCriticality code) {
|
||||
if (code == AllergyIntoleranceCriticality.LOW)
|
||||
if (code == AllergyIntoleranceCriticality.NULL)
|
||||
return null;
|
||||
if (code == AllergyIntoleranceCriticality.LOW)
|
||||
return "low";
|
||||
if (code == AllergyIntoleranceCriticality.HIGH)
|
||||
return "high";
|
||||
if (code == AllergyIntoleranceCriticality.UNABLETOASSESS)
|
||||
return "unable-to-assess";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(AllergyIntoleranceCriticality code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -664,7 +674,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
case MILD: return "mild";
|
||||
case MODERATE: return "moderate";
|
||||
case SEVERE: return "severe";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -673,7 +683,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
case MILD: return "http://hl7.org/fhir/reaction-event-severity";
|
||||
case MODERATE: return "http://hl7.org/fhir/reaction-event-severity";
|
||||
case SEVERE: return "http://hl7.org/fhir/reaction-event-severity";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -682,7 +692,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
case MILD: return "Causes mild physiological effects.";
|
||||
case MODERATE: return "Causes moderate physiological effects.";
|
||||
case SEVERE: return "Causes severe physiological effects.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -691,7 +701,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
case MILD: return "Mild";
|
||||
case MODERATE: return "Moderate";
|
||||
case SEVERE: return "Severe";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -727,14 +737,16 @@ public class AllergyIntolerance extends DomainResource {
|
|||
throw new FHIRException("Unknown AllergyIntoleranceSeverity code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AllergyIntoleranceSeverity code) {
|
||||
if (code == AllergyIntoleranceSeverity.MILD)
|
||||
if (code == AllergyIntoleranceSeverity.NULL)
|
||||
return null;
|
||||
if (code == AllergyIntoleranceSeverity.MILD)
|
||||
return "mild";
|
||||
if (code == AllergyIntoleranceSeverity.MODERATE)
|
||||
return "moderate";
|
||||
if (code == AllergyIntoleranceSeverity.SEVERE)
|
||||
return "severe";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(AllergyIntoleranceSeverity code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -122,7 +122,7 @@ public class Appointment extends DomainResource {
|
|||
case CANCELLED: return "cancelled";
|
||||
case NOSHOW: return "noshow";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -136,7 +136,7 @@ public class Appointment extends DomainResource {
|
|||
case CANCELLED: return "http://hl7.org/fhir/appointmentstatus";
|
||||
case NOSHOW: return "http://hl7.org/fhir/appointmentstatus";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/appointmentstatus";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -150,7 +150,7 @@ public class Appointment extends DomainResource {
|
|||
case CANCELLED: return "The appointment has been cancelled.";
|
||||
case NOSHOW: return "Some or all of the participant(s) have not/did not appear for the appointment (usually the patient).";
|
||||
case ENTEREDINERROR: return "This instance should not have been part of this patient's medical record.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -164,7 +164,7 @@ public class Appointment extends DomainResource {
|
|||
case CANCELLED: return "Cancelled";
|
||||
case NOSHOW: return "No Show";
|
||||
case ENTEREDINERROR: return "Entered in error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -220,7 +220,9 @@ public class Appointment extends DomainResource {
|
|||
throw new FHIRException("Unknown AppointmentStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AppointmentStatus code) {
|
||||
if (code == AppointmentStatus.PROPOSED)
|
||||
if (code == AppointmentStatus.NULL)
|
||||
return null;
|
||||
if (code == AppointmentStatus.PROPOSED)
|
||||
return "proposed";
|
||||
if (code == AppointmentStatus.PENDING)
|
||||
return "pending";
|
||||
|
@ -237,7 +239,7 @@ public class Appointment extends DomainResource {
|
|||
if (code == AppointmentStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(AppointmentStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -279,7 +281,7 @@ public class Appointment extends DomainResource {
|
|||
case REQUIRED: return "required";
|
||||
case OPTIONAL: return "optional";
|
||||
case INFORMATIONONLY: return "information-only";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -288,7 +290,7 @@ public class Appointment extends DomainResource {
|
|||
case REQUIRED: return "http://hl7.org/fhir/participantrequired";
|
||||
case OPTIONAL: return "http://hl7.org/fhir/participantrequired";
|
||||
case INFORMATIONONLY: return "http://hl7.org/fhir/participantrequired";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -297,7 +299,7 @@ public class Appointment extends DomainResource {
|
|||
case REQUIRED: return "The participant is required to attend the appointment.";
|
||||
case OPTIONAL: return "The participant may optionally attend the appointment.";
|
||||
case INFORMATIONONLY: return "The participant is excluded from the appointment, and may not be informed of the appointment taking place. (Appointment is about them, not for them - such as 2 doctors discussing results about a patient's test).";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -306,7 +308,7 @@ public class Appointment extends DomainResource {
|
|||
case REQUIRED: return "Required";
|
||||
case OPTIONAL: return "Optional";
|
||||
case INFORMATIONONLY: return "Information Only";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -342,14 +344,16 @@ public class Appointment extends DomainResource {
|
|||
throw new FHIRException("Unknown ParticipantRequired code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ParticipantRequired code) {
|
||||
if (code == ParticipantRequired.REQUIRED)
|
||||
if (code == ParticipantRequired.NULL)
|
||||
return null;
|
||||
if (code == ParticipantRequired.REQUIRED)
|
||||
return "required";
|
||||
if (code == ParticipantRequired.OPTIONAL)
|
||||
return "optional";
|
||||
if (code == ParticipantRequired.INFORMATIONONLY)
|
||||
return "information-only";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ParticipantRequired code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -398,7 +402,7 @@ public class Appointment extends DomainResource {
|
|||
case DECLINED: return "declined";
|
||||
case TENTATIVE: return "tentative";
|
||||
case NEEDSACTION: return "needs-action";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -408,7 +412,7 @@ public class Appointment extends DomainResource {
|
|||
case DECLINED: return "http://hl7.org/fhir/participationstatus";
|
||||
case TENTATIVE: return "http://hl7.org/fhir/participationstatus";
|
||||
case NEEDSACTION: return "http://hl7.org/fhir/participationstatus";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -418,7 +422,7 @@ public class Appointment extends DomainResource {
|
|||
case DECLINED: return "The participant has declined the appointment and will not participate in the appointment.";
|
||||
case TENTATIVE: return "The participant has tentatively accepted the appointment. This could be automatically created by a system and requires further processing before it can be accepted. There is no commitment that attendance will occur.";
|
||||
case NEEDSACTION: return "The participant needs to indicate if they accept the appointment by changing this status to one of the other statuses.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -428,7 +432,7 @@ public class Appointment extends DomainResource {
|
|||
case DECLINED: return "Declined";
|
||||
case TENTATIVE: return "Tentative";
|
||||
case NEEDSACTION: return "Needs Action";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -468,7 +472,9 @@ public class Appointment extends DomainResource {
|
|||
throw new FHIRException("Unknown ParticipationStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ParticipationStatus code) {
|
||||
if (code == ParticipationStatus.ACCEPTED)
|
||||
if (code == ParticipationStatus.NULL)
|
||||
return null;
|
||||
if (code == ParticipationStatus.ACCEPTED)
|
||||
return "accepted";
|
||||
if (code == ParticipationStatus.DECLINED)
|
||||
return "declined";
|
||||
|
@ -477,7 +483,7 @@ public class Appointment extends DomainResource {
|
|||
if (code == ParticipationStatus.NEEDSACTION)
|
||||
return "needs-action";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ParticipationStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -92,7 +92,7 @@ public class AppointmentResponse extends DomainResource {
|
|||
case DECLINED: return "declined";
|
||||
case TENTATIVE: return "tentative";
|
||||
case NEEDSACTION: return "needs-action";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ public class AppointmentResponse extends DomainResource {
|
|||
case DECLINED: return "http://hl7.org/fhir/participationstatus";
|
||||
case TENTATIVE: return "http://hl7.org/fhir/participationstatus";
|
||||
case NEEDSACTION: return "http://hl7.org/fhir/participationstatus";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -112,7 +112,7 @@ public class AppointmentResponse extends DomainResource {
|
|||
case DECLINED: return "The participant has declined the appointment and will not participate in the appointment.";
|
||||
case TENTATIVE: return "The participant has tentatively accepted the appointment. This could be automatically created by a system and requires further processing before it can be accepted. There is no commitment that attendance will occur.";
|
||||
case NEEDSACTION: return "The participant needs to indicate if they accept the appointment by changing this status to one of the other statuses.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -122,7 +122,7 @@ public class AppointmentResponse extends DomainResource {
|
|||
case DECLINED: return "Declined";
|
||||
case TENTATIVE: return "Tentative";
|
||||
case NEEDSACTION: return "Needs Action";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -162,7 +162,9 @@ public class AppointmentResponse extends DomainResource {
|
|||
throw new FHIRException("Unknown ParticipantStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ParticipantStatus code) {
|
||||
if (code == ParticipantStatus.ACCEPTED)
|
||||
if (code == ParticipantStatus.NULL)
|
||||
return null;
|
||||
if (code == ParticipantStatus.ACCEPTED)
|
||||
return "accepted";
|
||||
if (code == ParticipantStatus.DECLINED)
|
||||
return "declined";
|
||||
|
@ -171,7 +173,7 @@ public class AppointmentResponse extends DomainResource {
|
|||
if (code == ParticipantStatus.NEEDSACTION)
|
||||
return "needs-action";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ParticipantStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -101,7 +101,7 @@ public class AuditEvent extends DomainResource {
|
|||
case U: return "U";
|
||||
case D: return "D";
|
||||
case E: return "E";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -112,7 +112,7 @@ public class AuditEvent extends DomainResource {
|
|||
case U: return "http://hl7.org/fhir/audit-event-action";
|
||||
case D: return "http://hl7.org/fhir/audit-event-action";
|
||||
case E: return "http://hl7.org/fhir/audit-event-action";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -123,7 +123,7 @@ public class AuditEvent extends DomainResource {
|
|||
case U: return "Update data, such as revise patient information.";
|
||||
case D: return "Delete items, such as a doctor master file record.";
|
||||
case E: return "Perform a system or application function such as log-on, program execution or use of an object's method, or perform a query/search operation.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -134,7 +134,7 @@ public class AuditEvent extends DomainResource {
|
|||
case U: return "Update";
|
||||
case D: return "Delete";
|
||||
case E: return "Execute";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -178,7 +178,9 @@ public class AuditEvent extends DomainResource {
|
|||
throw new FHIRException("Unknown AuditEventAction code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AuditEventAction code) {
|
||||
if (code == AuditEventAction.C)
|
||||
if (code == AuditEventAction.NULL)
|
||||
return null;
|
||||
if (code == AuditEventAction.C)
|
||||
return "C";
|
||||
if (code == AuditEventAction.R)
|
||||
return "R";
|
||||
|
@ -189,7 +191,7 @@ public class AuditEvent extends DomainResource {
|
|||
if (code == AuditEventAction.E)
|
||||
return "E";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(AuditEventAction code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -238,7 +240,7 @@ public class AuditEvent extends DomainResource {
|
|||
case _4: return "4";
|
||||
case _8: return "8";
|
||||
case _12: return "12";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -248,7 +250,7 @@ public class AuditEvent extends DomainResource {
|
|||
case _4: return "http://hl7.org/fhir/audit-event-outcome";
|
||||
case _8: return "http://hl7.org/fhir/audit-event-outcome";
|
||||
case _12: return "http://hl7.org/fhir/audit-event-outcome";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -258,7 +260,7 @@ public class AuditEvent extends DomainResource {
|
|||
case _4: return "The action was not successful due to some kind of catered for error (often equivalent to an HTTP 400 response).";
|
||||
case _8: return "The action was not successful due to some kind of unexpected error (often equivalent to an HTTP 500 response).";
|
||||
case _12: return "An error of such magnitude occurred that the system is no longer available for use (i.e. the system died).";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -268,7 +270,7 @@ public class AuditEvent extends DomainResource {
|
|||
case _4: return "Minor failure";
|
||||
case _8: return "Serious failure";
|
||||
case _12: return "Major failure";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -308,7 +310,9 @@ public class AuditEvent extends DomainResource {
|
|||
throw new FHIRException("Unknown AuditEventOutcome code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AuditEventOutcome code) {
|
||||
if (code == AuditEventOutcome._0)
|
||||
if (code == AuditEventOutcome.NULL)
|
||||
return null;
|
||||
if (code == AuditEventOutcome._0)
|
||||
return "0";
|
||||
if (code == AuditEventOutcome._4)
|
||||
return "4";
|
||||
|
@ -317,7 +321,7 @@ public class AuditEvent extends DomainResource {
|
|||
if (code == AuditEventOutcome._12)
|
||||
return "12";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(AuditEventOutcome code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -373,7 +377,7 @@ public class AuditEvent extends DomainResource {
|
|||
case _3: return "3";
|
||||
case _4: return "4";
|
||||
case _5: return "5";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -384,7 +388,7 @@ public class AuditEvent extends DomainResource {
|
|||
case _3: return "http://hl7.org/fhir/network-type";
|
||||
case _4: return "http://hl7.org/fhir/network-type";
|
||||
case _5: return "http://hl7.org/fhir/network-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -395,7 +399,7 @@ public class AuditEvent extends DomainResource {
|
|||
case _3: return "The assigned telephone number.";
|
||||
case _4: return "The assigned email address.";
|
||||
case _5: return "URI (User directory, HTTP-PUT, ftp, etc.).";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -406,7 +410,7 @@ public class AuditEvent extends DomainResource {
|
|||
case _3: return "Telephone Number";
|
||||
case _4: return "Email address";
|
||||
case _5: return "URI";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -450,7 +454,9 @@ public class AuditEvent extends DomainResource {
|
|||
throw new FHIRException("Unknown AuditEventAgentNetworkType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AuditEventAgentNetworkType code) {
|
||||
if (code == AuditEventAgentNetworkType._1)
|
||||
if (code == AuditEventAgentNetworkType.NULL)
|
||||
return null;
|
||||
if (code == AuditEventAgentNetworkType._1)
|
||||
return "1";
|
||||
if (code == AuditEventAgentNetworkType._2)
|
||||
return "2";
|
||||
|
@ -461,7 +467,7 @@ public class AuditEvent extends DomainResource {
|
|||
if (code == AuditEventAgentNetworkType._5)
|
||||
return "5";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(AuditEventAgentNetworkType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -130,7 +130,7 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
case HISTORY: return "history";
|
||||
case SEARCHSET: return "searchset";
|
||||
case COLLECTION: return "collection";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -145,7 +145,7 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
case HISTORY: return "http://hl7.org/fhir/bundle-type";
|
||||
case SEARCHSET: return "http://hl7.org/fhir/bundle-type";
|
||||
case COLLECTION: return "http://hl7.org/fhir/bundle-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -160,7 +160,7 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
case HISTORY: return "The bundle is a list of resources from a history interaction on a server.";
|
||||
case SEARCHSET: return "The bundle is a list of resources returned as a result of a search/query interaction, operation, or message.";
|
||||
case COLLECTION: return "The bundle is a set of resources collected into a single package for ease of distribution.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -175,7 +175,7 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
case HISTORY: return "History List";
|
||||
case SEARCHSET: return "Search Results";
|
||||
case COLLECTION: return "Collection";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -235,7 +235,9 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
throw new FHIRException("Unknown BundleType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(BundleType code) {
|
||||
if (code == BundleType.DOCUMENT)
|
||||
if (code == BundleType.NULL)
|
||||
return null;
|
||||
if (code == BundleType.DOCUMENT)
|
||||
return "document";
|
||||
if (code == BundleType.MESSAGE)
|
||||
return "message";
|
||||
|
@ -254,7 +256,7 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
if (code == BundleType.COLLECTION)
|
||||
return "collection";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(BundleType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -296,7 +298,7 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
case MATCH: return "match";
|
||||
case INCLUDE: return "include";
|
||||
case OUTCOME: return "outcome";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -305,7 +307,7 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
case MATCH: return "http://hl7.org/fhir/search-entry-mode";
|
||||
case INCLUDE: return "http://hl7.org/fhir/search-entry-mode";
|
||||
case OUTCOME: return "http://hl7.org/fhir/search-entry-mode";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -314,7 +316,7 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
case MATCH: return "This resource matched the search specification.";
|
||||
case INCLUDE: return "This resource is returned because it is referred to from another resource in the search set.";
|
||||
case OUTCOME: return "An OperationOutcome that provides additional information about the processing of a search.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -323,7 +325,7 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
case MATCH: return "Match";
|
||||
case INCLUDE: return "Include";
|
||||
case OUTCOME: return "Outcome";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -359,14 +361,16 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
throw new FHIRException("Unknown SearchEntryMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(SearchEntryMode code) {
|
||||
if (code == SearchEntryMode.MATCH)
|
||||
if (code == SearchEntryMode.NULL)
|
||||
return null;
|
||||
if (code == SearchEntryMode.MATCH)
|
||||
return "match";
|
||||
if (code == SearchEntryMode.INCLUDE)
|
||||
return "include";
|
||||
if (code == SearchEntryMode.OUTCOME)
|
||||
return "outcome";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(SearchEntryMode code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -415,7 +419,7 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
case POST: return "POST";
|
||||
case PUT: return "PUT";
|
||||
case DELETE: return "DELETE";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -425,7 +429,7 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
case POST: return "http://hl7.org/fhir/http-verb";
|
||||
case PUT: return "http://hl7.org/fhir/http-verb";
|
||||
case DELETE: return "http://hl7.org/fhir/http-verb";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -435,7 +439,7 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
case POST: return "HTTP POST";
|
||||
case PUT: return "HTTP PUT";
|
||||
case DELETE: return "HTTP DELETE";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -445,7 +449,7 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
case POST: return "POST";
|
||||
case PUT: return "PUT";
|
||||
case DELETE: return "DELETE";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -485,7 +489,9 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
throw new FHIRException("Unknown HTTPVerb code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(HTTPVerb code) {
|
||||
if (code == HTTPVerb.GET)
|
||||
if (code == HTTPVerb.NULL)
|
||||
return null;
|
||||
if (code == HTTPVerb.GET)
|
||||
return "GET";
|
||||
if (code == HTTPVerb.POST)
|
||||
return "POST";
|
||||
|
@ -494,7 +500,7 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
if (code == HTTPVerb.DELETE)
|
||||
return "DELETE";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(HTTPVerb code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case INSTANCE: return "instance";
|
||||
case CAPABILITY: return "capability";
|
||||
case REQUIREMENTS: return "requirements";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case INSTANCE: return "http://hl7.org/fhir/capability-statement-kind";
|
||||
case CAPABILITY: return "http://hl7.org/fhir/capability-statement-kind";
|
||||
case REQUIREMENTS: return "http://hl7.org/fhir/capability-statement-kind";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -113,7 +113,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case INSTANCE: return "The CapabilityStatement instance represents the present capabilities of a specific system instance. This is the kind returned by OPTIONS for a FHIR server end-point.";
|
||||
case CAPABILITY: return "The CapabilityStatement instance represents the capabilities of a system or piece of software, independent of a particular installation.";
|
||||
case REQUIREMENTS: return "The CapabilityStatement instance represents a set of requirements for other systems to meet; e.g. as part of an implementation guide or 'request for proposal'.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -122,7 +122,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case INSTANCE: return "Instance";
|
||||
case CAPABILITY: return "Capability";
|
||||
case REQUIREMENTS: return "Requirements";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -158,14 +158,16 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
throw new FHIRException("Unknown CapabilityStatementKind code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CapabilityStatementKind code) {
|
||||
if (code == CapabilityStatementKind.INSTANCE)
|
||||
if (code == CapabilityStatementKind.NULL)
|
||||
return null;
|
||||
if (code == CapabilityStatementKind.INSTANCE)
|
||||
return "instance";
|
||||
if (code == CapabilityStatementKind.CAPABILITY)
|
||||
return "capability";
|
||||
if (code == CapabilityStatementKind.REQUIREMENTS)
|
||||
return "requirements";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(CapabilityStatementKind code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -214,7 +216,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case EXTENSIONS: return "extensions";
|
||||
case ELEMENTS: return "elements";
|
||||
case BOTH: return "both";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -224,7 +226,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case EXTENSIONS: return "http://hl7.org/fhir/unknown-content-code";
|
||||
case ELEMENTS: return "http://hl7.org/fhir/unknown-content-code";
|
||||
case BOTH: return "http://hl7.org/fhir/unknown-content-code";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -234,7 +236,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case EXTENSIONS: return "The application accepts unknown extensions, but not unknown elements.";
|
||||
case ELEMENTS: return "The application accepts unknown elements, but not unknown extensions.";
|
||||
case BOTH: return "The application accepts unknown elements and extensions.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -244,7 +246,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case EXTENSIONS: return "Unknown Extensions";
|
||||
case ELEMENTS: return "Unknown Elements";
|
||||
case BOTH: return "Unknown Elements and Extensions";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -284,7 +286,9 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
throw new FHIRException("Unknown UnknownContentCode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(UnknownContentCode code) {
|
||||
if (code == UnknownContentCode.NO)
|
||||
if (code == UnknownContentCode.NULL)
|
||||
return null;
|
||||
if (code == UnknownContentCode.NO)
|
||||
return "no";
|
||||
if (code == UnknownContentCode.EXTENSIONS)
|
||||
return "extensions";
|
||||
|
@ -293,7 +297,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
if (code == UnknownContentCode.BOTH)
|
||||
return "both";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(UnknownContentCode code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -328,7 +332,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
switch (this) {
|
||||
case CLIENT: return "client";
|
||||
case SERVER: return "server";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -336,7 +340,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
switch (this) {
|
||||
case CLIENT: return "http://hl7.org/fhir/restful-capability-mode";
|
||||
case SERVER: return "http://hl7.org/fhir/restful-capability-mode";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -344,7 +348,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
switch (this) {
|
||||
case CLIENT: return "The application acts as a client for this resource.";
|
||||
case SERVER: return "The application acts as a server for this resource.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -352,7 +356,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
switch (this) {
|
||||
case CLIENT: return "Client";
|
||||
case SERVER: return "Server";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -384,12 +388,14 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
throw new FHIRException("Unknown RestfulCapabilityMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(RestfulCapabilityMode code) {
|
||||
if (code == RestfulCapabilityMode.CLIENT)
|
||||
if (code == RestfulCapabilityMode.NULL)
|
||||
return null;
|
||||
if (code == RestfulCapabilityMode.CLIENT)
|
||||
return "client";
|
||||
if (code == RestfulCapabilityMode.SERVER)
|
||||
return "server";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(RestfulCapabilityMode code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -473,7 +479,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case HISTORYTYPE: return "history-type";
|
||||
case CREATE: return "create";
|
||||
case SEARCHTYPE: return "search-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -488,7 +494,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case HISTORYTYPE: return "http://hl7.org/fhir/restful-interaction";
|
||||
case CREATE: return "http://hl7.org/fhir/restful-interaction";
|
||||
case SEARCHTYPE: return "http://hl7.org/fhir/restful-interaction";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -503,7 +509,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case HISTORYTYPE: return "";
|
||||
case CREATE: return "";
|
||||
case SEARCHTYPE: return "";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -518,7 +524,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case HISTORYTYPE: return "history-type";
|
||||
case CREATE: return "create";
|
||||
case SEARCHTYPE: return "search-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -578,7 +584,9 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
throw new FHIRException("Unknown TypeRestfulInteraction code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(TypeRestfulInteraction code) {
|
||||
if (code == TypeRestfulInteraction.READ)
|
||||
if (code == TypeRestfulInteraction.NULL)
|
||||
return null;
|
||||
if (code == TypeRestfulInteraction.READ)
|
||||
return "read";
|
||||
if (code == TypeRestfulInteraction.VREAD)
|
||||
return "vread";
|
||||
|
@ -597,7 +605,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
if (code == TypeRestfulInteraction.SEARCHTYPE)
|
||||
return "search-type";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(TypeRestfulInteraction code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -639,7 +647,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case NOVERSION: return "no-version";
|
||||
case VERSIONED: return "versioned";
|
||||
case VERSIONEDUPDATE: return "versioned-update";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -648,7 +656,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case NOVERSION: return "http://hl7.org/fhir/versioning-policy";
|
||||
case VERSIONED: return "http://hl7.org/fhir/versioning-policy";
|
||||
case VERSIONEDUPDATE: return "http://hl7.org/fhir/versioning-policy";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -657,7 +665,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case NOVERSION: return "VersionId meta-property is not supported (server) or used (client).";
|
||||
case VERSIONED: return "VersionId meta-property is supported (server) or used (client).";
|
||||
case VERSIONEDUPDATE: return "VersionId must be correct for updates (server) or will be specified (If-match header) for updates (client).";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -666,7 +674,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case NOVERSION: return "No VersionId Support";
|
||||
case VERSIONED: return "Versioned";
|
||||
case VERSIONEDUPDATE: return "VersionId tracked fully";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -702,14 +710,16 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
throw new FHIRException("Unknown ResourceVersionPolicy code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ResourceVersionPolicy code) {
|
||||
if (code == ResourceVersionPolicy.NOVERSION)
|
||||
if (code == ResourceVersionPolicy.NULL)
|
||||
return null;
|
||||
if (code == ResourceVersionPolicy.NOVERSION)
|
||||
return "no-version";
|
||||
if (code == ResourceVersionPolicy.VERSIONED)
|
||||
return "versioned";
|
||||
if (code == ResourceVersionPolicy.VERSIONEDUPDATE)
|
||||
return "versioned-update";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ResourceVersionPolicy code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -758,7 +768,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case MODIFIEDSINCE: return "modified-since";
|
||||
case NOTMATCH: return "not-match";
|
||||
case FULLSUPPORT: return "full-support";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -768,7 +778,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case MODIFIEDSINCE: return "http://hl7.org/fhir/conditional-read-status";
|
||||
case NOTMATCH: return "http://hl7.org/fhir/conditional-read-status";
|
||||
case FULLSUPPORT: return "http://hl7.org/fhir/conditional-read-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -778,7 +788,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case MODIFIEDSINCE: return "Conditional reads are supported, but only with the If-Modified-Since HTTP Header.";
|
||||
case NOTMATCH: return "Conditional reads are supported, but only with the If-None-Match HTTP Header.";
|
||||
case FULLSUPPORT: return "Conditional reads are supported, with both If-Modified-Since and If-None-Match HTTP Headers.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -788,7 +798,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case MODIFIEDSINCE: return "If-Modified-Since";
|
||||
case NOTMATCH: return "If-None-Match";
|
||||
case FULLSUPPORT: return "Full Support";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -828,7 +838,9 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
throw new FHIRException("Unknown ConditionalReadStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ConditionalReadStatus code) {
|
||||
if (code == ConditionalReadStatus.NOTSUPPORTED)
|
||||
if (code == ConditionalReadStatus.NULL)
|
||||
return null;
|
||||
if (code == ConditionalReadStatus.NOTSUPPORTED)
|
||||
return "not-supported";
|
||||
if (code == ConditionalReadStatus.MODIFIEDSINCE)
|
||||
return "modified-since";
|
||||
|
@ -837,7 +849,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
if (code == ConditionalReadStatus.FULLSUPPORT)
|
||||
return "full-support";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ConditionalReadStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -879,7 +891,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case NOTSUPPORTED: return "not-supported";
|
||||
case SINGLE: return "single";
|
||||
case MULTIPLE: return "multiple";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -888,7 +900,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case NOTSUPPORTED: return "http://hl7.org/fhir/conditional-delete-status";
|
||||
case SINGLE: return "http://hl7.org/fhir/conditional-delete-status";
|
||||
case MULTIPLE: return "http://hl7.org/fhir/conditional-delete-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -897,7 +909,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case NOTSUPPORTED: return "No support for conditional deletes.";
|
||||
case SINGLE: return "Conditional deletes are supported, but only single resources at a time.";
|
||||
case MULTIPLE: return "Conditional deletes are supported, and multiple resources can be deleted in a single interaction.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -906,7 +918,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case NOTSUPPORTED: return "Not Supported";
|
||||
case SINGLE: return "Single Deletes Supported";
|
||||
case MULTIPLE: return "Multiple Deletes Supported";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -942,14 +954,16 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
throw new FHIRException("Unknown ConditionalDeleteStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ConditionalDeleteStatus code) {
|
||||
if (code == ConditionalDeleteStatus.NOTSUPPORTED)
|
||||
if (code == ConditionalDeleteStatus.NULL)
|
||||
return null;
|
||||
if (code == ConditionalDeleteStatus.NOTSUPPORTED)
|
||||
return "not-supported";
|
||||
if (code == ConditionalDeleteStatus.SINGLE)
|
||||
return "single";
|
||||
if (code == ConditionalDeleteStatus.MULTIPLE)
|
||||
return "multiple";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ConditionalDeleteStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -1005,7 +1019,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case RESOLVES: return "resolves";
|
||||
case ENFORCED: return "enforced";
|
||||
case LOCAL: return "local";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1016,7 +1030,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case RESOLVES: return "http://hl7.org/fhir/reference-handling-policy";
|
||||
case ENFORCED: return "http://hl7.org/fhir/reference-handling-policy";
|
||||
case LOCAL: return "http://hl7.org/fhir/reference-handling-policy";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1027,7 +1041,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case RESOLVES: return "The server will attempt to resolve logical references to literal references (if resolution fails, the server may still accept resources; see logical)";
|
||||
case ENFORCED: return "The server enforces that references have integrity - e.g. it ensures that references can always be resolved. This is typically the case for clinical record systems, but often not the case for middleware/proxy systems";
|
||||
case LOCAL: return "The server does not support references that point to other servers";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1038,7 +1052,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case RESOLVES: return "Resolves References";
|
||||
case ENFORCED: return "Reference Integrity Enforced";
|
||||
case LOCAL: return "Local References Only";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1082,7 +1096,9 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
throw new FHIRException("Unknown ReferenceHandlingPolicy code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ReferenceHandlingPolicy code) {
|
||||
if (code == ReferenceHandlingPolicy.LITERAL)
|
||||
if (code == ReferenceHandlingPolicy.NULL)
|
||||
return null;
|
||||
if (code == ReferenceHandlingPolicy.LITERAL)
|
||||
return "literal";
|
||||
if (code == ReferenceHandlingPolicy.LOGICAL)
|
||||
return "logical";
|
||||
|
@ -1093,7 +1109,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
if (code == ReferenceHandlingPolicy.LOCAL)
|
||||
return "local";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ReferenceHandlingPolicy code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -1142,7 +1158,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case BATCH: return "batch";
|
||||
case SEARCHSYSTEM: return "search-system";
|
||||
case HISTORYSYSTEM: return "history-system";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1152,7 +1168,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case BATCH: return "http://hl7.org/fhir/restful-interaction";
|
||||
case SEARCHSYSTEM: return "http://hl7.org/fhir/restful-interaction";
|
||||
case HISTORYSYSTEM: return "http://hl7.org/fhir/restful-interaction";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1162,7 +1178,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case BATCH: return "";
|
||||
case SEARCHSYSTEM: return "";
|
||||
case HISTORYSYSTEM: return "";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1172,7 +1188,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case BATCH: return "batch";
|
||||
case SEARCHSYSTEM: return "search-system";
|
||||
case HISTORYSYSTEM: return "history-system";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1212,7 +1228,9 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
throw new FHIRException("Unknown SystemRestfulInteraction code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(SystemRestfulInteraction code) {
|
||||
if (code == SystemRestfulInteraction.TRANSACTION)
|
||||
if (code == SystemRestfulInteraction.NULL)
|
||||
return null;
|
||||
if (code == SystemRestfulInteraction.TRANSACTION)
|
||||
return "transaction";
|
||||
if (code == SystemRestfulInteraction.BATCH)
|
||||
return "batch";
|
||||
|
@ -1221,7 +1239,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
if (code == SystemRestfulInteraction.HISTORYSYSTEM)
|
||||
return "history-system";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(SystemRestfulInteraction code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -1256,7 +1274,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
switch (this) {
|
||||
case SENDER: return "sender";
|
||||
case RECEIVER: return "receiver";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1264,7 +1282,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
switch (this) {
|
||||
case SENDER: return "http://hl7.org/fhir/event-capability-mode";
|
||||
case RECEIVER: return "http://hl7.org/fhir/event-capability-mode";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1272,7 +1290,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
switch (this) {
|
||||
case SENDER: return "The application sends requests and receives responses.";
|
||||
case RECEIVER: return "The application receives requests and sends responses.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1280,7 +1298,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
switch (this) {
|
||||
case SENDER: return "Sender";
|
||||
case RECEIVER: return "Receiver";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1312,12 +1330,14 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
throw new FHIRException("Unknown EventCapabilityMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(EventCapabilityMode code) {
|
||||
if (code == EventCapabilityMode.SENDER)
|
||||
if (code == EventCapabilityMode.NULL)
|
||||
return null;
|
||||
if (code == EventCapabilityMode.SENDER)
|
||||
return "sender";
|
||||
if (code == EventCapabilityMode.RECEIVER)
|
||||
return "receiver";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(EventCapabilityMode code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -1359,7 +1379,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case CONSEQUENCE: return "Consequence";
|
||||
case CURRENCY: return "Currency";
|
||||
case NOTIFICATION: return "Notification";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1368,7 +1388,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case CONSEQUENCE: return "http://hl7.org/fhir/message-significance-category";
|
||||
case CURRENCY: return "http://hl7.org/fhir/message-significance-category";
|
||||
case NOTIFICATION: return "http://hl7.org/fhir/message-significance-category";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1377,7 +1397,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case CONSEQUENCE: return "The message represents/requests a change that should not be processed more than once; e.g., making a booking for an appointment.";
|
||||
case CURRENCY: return "The message represents a response to query for current information. Retrospective processing is wrong and/or wasteful.";
|
||||
case NOTIFICATION: return "The content is not necessarily intended to be current, and it can be reprocessed, though there may be version issues created by processing old notifications.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1386,7 +1406,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
case CONSEQUENCE: return "Consequence";
|
||||
case CURRENCY: return "Currency";
|
||||
case NOTIFICATION: return "Notification";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1422,14 +1442,16 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
throw new FHIRException("Unknown MessageSignificanceCategory code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MessageSignificanceCategory code) {
|
||||
if (code == MessageSignificanceCategory.CONSEQUENCE)
|
||||
if (code == MessageSignificanceCategory.NULL)
|
||||
return null;
|
||||
if (code == MessageSignificanceCategory.CONSEQUENCE)
|
||||
return "Consequence";
|
||||
if (code == MessageSignificanceCategory.CURRENCY)
|
||||
return "Currency";
|
||||
if (code == MessageSignificanceCategory.NOTIFICATION)
|
||||
return "Notification";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(MessageSignificanceCategory code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -1464,7 +1486,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
switch (this) {
|
||||
case PRODUCER: return "producer";
|
||||
case CONSUMER: return "consumer";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1472,7 +1494,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
switch (this) {
|
||||
case PRODUCER: return "http://hl7.org/fhir/document-mode";
|
||||
case CONSUMER: return "http://hl7.org/fhir/document-mode";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1480,7 +1502,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
switch (this) {
|
||||
case PRODUCER: return "The application produces documents of the specified type.";
|
||||
case CONSUMER: return "The application consumes documents of the specified type.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1488,7 +1510,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
switch (this) {
|
||||
case PRODUCER: return "Producer";
|
||||
case CONSUMER: return "Consumer";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1520,12 +1542,14 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
throw new FHIRException("Unknown DocumentMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DocumentMode code) {
|
||||
if (code == DocumentMode.PRODUCER)
|
||||
if (code == DocumentMode.NULL)
|
||||
return null;
|
||||
if (code == DocumentMode.PRODUCER)
|
||||
return "producer";
|
||||
if (code == DocumentMode.CONSUMER)
|
||||
return "consumer";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(DocumentMode code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -115,7 +115,7 @@ public class CarePlan extends DomainResource {
|
|||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case CANCELLED: return "cancelled";
|
||||
case UNKNOWN: return "unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -128,7 +128,7 @@ public class CarePlan extends DomainResource {
|
|||
case ENTEREDINERROR: return "http://hl7.org/fhir/care-plan-status";
|
||||
case CANCELLED: return "http://hl7.org/fhir/care-plan-status";
|
||||
case UNKNOWN: return "http://hl7.org/fhir/care-plan-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -141,7 +141,7 @@ public class CarePlan extends DomainResource {
|
|||
case ENTEREDINERROR: return "The plan was entered in error and voided.";
|
||||
case CANCELLED: return "The plan has been terminated prior to reaching completion (though it may have been replaced by a new plan).";
|
||||
case UNKNOWN: return "The authoring system doesn't know the current state of the care plan.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -154,7 +154,7 @@ public class CarePlan extends DomainResource {
|
|||
case ENTEREDINERROR: return "Entered In Error";
|
||||
case CANCELLED: return "Cancelled";
|
||||
case UNKNOWN: return "Unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -206,7 +206,9 @@ public class CarePlan extends DomainResource {
|
|||
throw new FHIRException("Unknown CarePlanStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CarePlanStatus code) {
|
||||
if (code == CarePlanStatus.DRAFT)
|
||||
if (code == CarePlanStatus.NULL)
|
||||
return null;
|
||||
if (code == CarePlanStatus.DRAFT)
|
||||
return "draft";
|
||||
if (code == CarePlanStatus.ACTIVE)
|
||||
return "active";
|
||||
|
@ -221,7 +223,7 @@ public class CarePlan extends DomainResource {
|
|||
if (code == CarePlanStatus.UNKNOWN)
|
||||
return "unknown";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(CarePlanStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -272,7 +274,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case PLAN: return "plan";
|
||||
case ORDER: return "order";
|
||||
case OPTION: return "option";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -282,7 +284,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case PLAN: return "http://hl7.org/fhir/care-plan-intent";
|
||||
case ORDER: return "http://hl7.org/fhir/care-plan-intent";
|
||||
case OPTION: return "http://hl7.org/fhir/care-plan-intent";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -292,7 +294,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case PLAN: return "The care plan represents an intention to ensure something occurs without providing an authorization for others to act";
|
||||
case ORDER: return "The care plan represents a request/demand and authorization for action";
|
||||
case OPTION: return "The care plan represents a component or option for a RequestGroup that establishes timing, conditionality and/or other constraints among a set of requests.\n\nRefer to [[[RequestGroup]]] for additional information on how this status is used";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -302,7 +304,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case PLAN: return "Plan";
|
||||
case ORDER: return "Order";
|
||||
case OPTION: return "Option";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -342,7 +344,9 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
throw new FHIRException("Unknown CarePlanIntent code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CarePlanIntent code) {
|
||||
if (code == CarePlanIntent.PROPOSAL)
|
||||
if (code == CarePlanIntent.NULL)
|
||||
return null;
|
||||
if (code == CarePlanIntent.PROPOSAL)
|
||||
return "proposal";
|
||||
if (code == CarePlanIntent.PLAN)
|
||||
return "plan";
|
||||
|
@ -351,7 +355,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
if (code == CarePlanIntent.OPTION)
|
||||
return "option";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(CarePlanIntent code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -421,7 +425,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case COMPLETED: return "completed";
|
||||
case CANCELLED: return "cancelled";
|
||||
case UNKNOWN: return "unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -434,7 +438,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case COMPLETED: return "http://hl7.org/fhir/care-plan-activity-status";
|
||||
case CANCELLED: return "http://hl7.org/fhir/care-plan-activity-status";
|
||||
case UNKNOWN: return "http://hl7.org/fhir/care-plan-activity-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -447,7 +451,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case COMPLETED: return "The activities have been completed (more or less) as planned.";
|
||||
case CANCELLED: return "The activities have been ended prior to completion (perhaps even before they were started).";
|
||||
case UNKNOWN: return "The authoring system doesn't know the current state of the activity.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -460,7 +464,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case COMPLETED: return "Completed";
|
||||
case CANCELLED: return "Cancelled";
|
||||
case UNKNOWN: return "Unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -512,7 +516,9 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
throw new FHIRException("Unknown CarePlanActivityStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CarePlanActivityStatus code) {
|
||||
if (code == CarePlanActivityStatus.NOTSTARTED)
|
||||
if (code == CarePlanActivityStatus.NULL)
|
||||
return null;
|
||||
if (code == CarePlanActivityStatus.NOTSTARTED)
|
||||
return "not-started";
|
||||
if (code == CarePlanActivityStatus.SCHEDULED)
|
||||
return "scheduled";
|
||||
|
@ -527,7 +533,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
if (code == CarePlanActivityStatus.UNKNOWN)
|
||||
return "unknown";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(CarePlanActivityStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -100,7 +100,7 @@ public class CareTeam extends DomainResource {
|
|||
case SUSPENDED: return "suspended";
|
||||
case INACTIVE: return "inactive";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -111,7 +111,7 @@ public class CareTeam extends DomainResource {
|
|||
case SUSPENDED: return "http://hl7.org/fhir/care-team-status";
|
||||
case INACTIVE: return "http://hl7.org/fhir/care-team-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/care-team-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -122,7 +122,7 @@ public class CareTeam extends DomainResource {
|
|||
case SUSPENDED: return "The care team is temporarily on hold or suspended and not participating in the coordination and delivery of care.";
|
||||
case INACTIVE: return "The care team was, but is no longer, participating in the coordination and delivery of care.";
|
||||
case ENTEREDINERROR: return "The care team should have never existed.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -133,7 +133,7 @@ public class CareTeam extends DomainResource {
|
|||
case SUSPENDED: return "Suspended";
|
||||
case INACTIVE: return "Inactive";
|
||||
case ENTEREDINERROR: return "Entered In Error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -177,7 +177,9 @@ public class CareTeam extends DomainResource {
|
|||
throw new FHIRException("Unknown CareTeamStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CareTeamStatus code) {
|
||||
if (code == CareTeamStatus.PROPOSED)
|
||||
if (code == CareTeamStatus.NULL)
|
||||
return null;
|
||||
if (code == CareTeamStatus.PROPOSED)
|
||||
return "proposed";
|
||||
if (code == CareTeamStatus.ACTIVE)
|
||||
return "active";
|
||||
|
@ -188,7 +190,7 @@ public class CareTeam extends DomainResource {
|
|||
if (code == CareTeamStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(CareTeamStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -119,7 +119,7 @@ public class ChargeItem extends DomainResource {
|
|||
case BILLED: return "billed";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case UNKNOWN: return "unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -132,7 +132,7 @@ public class ChargeItem extends DomainResource {
|
|||
case BILLED: return "http://hl7.org/fhir/chargeitem-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/chargeitem-status";
|
||||
case UNKNOWN: return "http://hl7.org/fhir/chargeitem-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -145,7 +145,7 @@ public class ChargeItem extends DomainResource {
|
|||
case BILLED: return "The charge item has been billed (e.g. a billing engine has generated financial transactions by applying the associated ruled for the charge item to the context of the Encounter, and placed them into Claims/Invoices";
|
||||
case ENTEREDINERROR: return "The charge item has been entered in error and should not be processed for billing";
|
||||
case UNKNOWN: return "The authoring system does not know which of the status values currently applies for this charge item Note: This concept is not to be used for \"other\" - one of the listed statuses is presumed to apply, it's just not known which one.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -158,7 +158,7 @@ public class ChargeItem extends DomainResource {
|
|||
case BILLED: return "Billed";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case UNKNOWN: return "Unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -210,7 +210,9 @@ public class ChargeItem extends DomainResource {
|
|||
throw new FHIRException("Unknown ChargeItemStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ChargeItemStatus code) {
|
||||
if (code == ChargeItemStatus.PLANNED)
|
||||
if (code == ChargeItemStatus.NULL)
|
||||
return null;
|
||||
if (code == ChargeItemStatus.PLANNED)
|
||||
return "planned";
|
||||
if (code == ChargeItemStatus.BILLABLE)
|
||||
return "billable";
|
||||
|
@ -225,7 +227,7 @@ public class ChargeItem extends DomainResource {
|
|||
if (code == ChargeItemStatus.UNKNOWN)
|
||||
return "unknown";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ChargeItemStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@ public class Claim extends DomainResource {
|
|||
case CANCELLED: return "cancelled";
|
||||
case DRAFT: return "draft";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -105,7 +105,7 @@ public class Claim extends DomainResource {
|
|||
case CANCELLED: return "http://hl7.org/fhir/fm-status";
|
||||
case DRAFT: return "http://hl7.org/fhir/fm-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/fm-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -115,7 +115,7 @@ public class Claim extends DomainResource {
|
|||
case CANCELLED: return "The instance is withdrawn, rescinded or reversed.";
|
||||
case DRAFT: return "A new instance the contents of which is not complete.";
|
||||
case ENTEREDINERROR: return "The instance was entered in error.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -125,7 +125,7 @@ public class Claim extends DomainResource {
|
|||
case CANCELLED: return "Cancelled";
|
||||
case DRAFT: return "Draft";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -165,7 +165,9 @@ public class Claim extends DomainResource {
|
|||
throw new FHIRException("Unknown ClaimStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ClaimStatus code) {
|
||||
if (code == ClaimStatus.ACTIVE)
|
||||
if (code == ClaimStatus.NULL)
|
||||
return null;
|
||||
if (code == ClaimStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == ClaimStatus.CANCELLED)
|
||||
return "cancelled";
|
||||
|
@ -174,7 +176,7 @@ public class Claim extends DomainResource {
|
|||
if (code == ClaimStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ClaimStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -223,7 +225,7 @@ public class Claim extends DomainResource {
|
|||
case PROPOSED: return "proposed";
|
||||
case EXPLORATORY: return "exploratory";
|
||||
case OTHER: return "other";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -233,7 +235,7 @@ public class Claim extends DomainResource {
|
|||
case PROPOSED: return "http://hl7.org/fhir/claim-use";
|
||||
case EXPLORATORY: return "http://hl7.org/fhir/claim-use";
|
||||
case OTHER: return "http://hl7.org/fhir/claim-use";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -243,7 +245,7 @@ public class Claim extends DomainResource {
|
|||
case PROPOSED: return "The treatment is proposed and this represents a Pre-authorization for the services.";
|
||||
case EXPLORATORY: return "The treatment is proposed and this represents a Pre-determination for the services.";
|
||||
case OTHER: return "A locally defined or otherwise resolved status.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -253,7 +255,7 @@ public class Claim extends DomainResource {
|
|||
case PROPOSED: return "Proposed";
|
||||
case EXPLORATORY: return "Exploratory";
|
||||
case OTHER: return "Other";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -293,7 +295,9 @@ public class Claim extends DomainResource {
|
|||
throw new FHIRException("Unknown Use code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(Use code) {
|
||||
if (code == Use.COMPLETE)
|
||||
if (code == Use.NULL)
|
||||
return null;
|
||||
if (code == Use.COMPLETE)
|
||||
return "complete";
|
||||
if (code == Use.PROPOSED)
|
||||
return "proposed";
|
||||
|
@ -302,7 +306,7 @@ public class Claim extends DomainResource {
|
|||
if (code == Use.OTHER)
|
||||
return "other";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(Use code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -94,7 +94,7 @@ public class ClaimResponse extends DomainResource {
|
|||
case CANCELLED: return "cancelled";
|
||||
case DRAFT: return "draft";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ public class ClaimResponse extends DomainResource {
|
|||
case CANCELLED: return "http://hl7.org/fhir/fm-status";
|
||||
case DRAFT: return "http://hl7.org/fhir/fm-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/fm-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -114,7 +114,7 @@ public class ClaimResponse extends DomainResource {
|
|||
case CANCELLED: return "The instance is withdrawn, rescinded or reversed.";
|
||||
case DRAFT: return "A new instance the contents of which is not complete.";
|
||||
case ENTEREDINERROR: return "The instance was entered in error.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ public class ClaimResponse extends DomainResource {
|
|||
case CANCELLED: return "Cancelled";
|
||||
case DRAFT: return "Draft";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -164,7 +164,9 @@ public class ClaimResponse extends DomainResource {
|
|||
throw new FHIRException("Unknown ClaimResponseStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ClaimResponseStatus code) {
|
||||
if (code == ClaimResponseStatus.ACTIVE)
|
||||
if (code == ClaimResponseStatus.NULL)
|
||||
return null;
|
||||
if (code == ClaimResponseStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == ClaimResponseStatus.CANCELLED)
|
||||
return "cancelled";
|
||||
|
@ -173,7 +175,7 @@ public class ClaimResponse extends DomainResource {
|
|||
if (code == ClaimResponseStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ClaimResponseStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -89,7 +89,7 @@ public class ClinicalImpression extends DomainResource {
|
|||
case DRAFT: return "draft";
|
||||
case COMPLETED: return "completed";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -98,7 +98,7 @@ public class ClinicalImpression extends DomainResource {
|
|||
case DRAFT: return "http://hl7.org/fhir/clinical-impression-status";
|
||||
case COMPLETED: return "http://hl7.org/fhir/clinical-impression-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/clinical-impression-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -107,7 +107,7 @@ public class ClinicalImpression extends DomainResource {
|
|||
case DRAFT: return "The assessment is still on-going and results are not yet final.";
|
||||
case COMPLETED: return "The assessment is done and the results are final.";
|
||||
case ENTEREDINERROR: return "This assessment was never actually done and the record is erroneous (e.g. Wrong patient).";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -116,7 +116,7 @@ public class ClinicalImpression extends DomainResource {
|
|||
case DRAFT: return "In progress";
|
||||
case COMPLETED: return "Completed";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -152,14 +152,16 @@ public class ClinicalImpression extends DomainResource {
|
|||
throw new FHIRException("Unknown ClinicalImpressionStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ClinicalImpressionStatus code) {
|
||||
if (code == ClinicalImpressionStatus.DRAFT)
|
||||
if (code == ClinicalImpressionStatus.NULL)
|
||||
return null;
|
||||
if (code == ClinicalImpressionStatus.DRAFT)
|
||||
return "draft";
|
||||
if (code == ClinicalImpressionStatus.COMPLETED)
|
||||
return "completed";
|
||||
if (code == ClinicalImpressionStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ClinicalImpressionStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -99,7 +99,7 @@ public class CodeSystem extends MetadataResource {
|
|||
case ISA: return "is-a";
|
||||
case PARTOF: return "part-of";
|
||||
case CLASSIFIEDWITH: return "classified-with";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ public class CodeSystem extends MetadataResource {
|
|||
case ISA: return "http://hl7.org/fhir/codesystem-hierarchy-meaning";
|
||||
case PARTOF: return "http://hl7.org/fhir/codesystem-hierarchy-meaning";
|
||||
case CLASSIFIEDWITH: return "http://hl7.org/fhir/codesystem-hierarchy-meaning";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -119,7 +119,7 @@ public class CodeSystem extends MetadataResource {
|
|||
case ISA: return "A hierarchy where the child concepts have an IS-A relationship with the parents - that is, all the properties of the parent are also true for its child concepts";
|
||||
case PARTOF: return "Child elements list the individual parts of a composite whole (e.g. body site)";
|
||||
case CLASSIFIEDWITH: return "Child concepts in the hierarchy may have only one parent, and there is a presumption that the code system is a \"closed world\" meaning all things must be in the hierarchy. This results in concepts such as \"not otherwise classified.\"";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -129,7 +129,7 @@ public class CodeSystem extends MetadataResource {
|
|||
case ISA: return "Is-A";
|
||||
case PARTOF: return "Part Of";
|
||||
case CLASSIFIEDWITH: return "Classified With";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -169,7 +169,9 @@ public class CodeSystem extends MetadataResource {
|
|||
throw new FHIRException("Unknown CodeSystemHierarchyMeaning code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CodeSystemHierarchyMeaning code) {
|
||||
if (code == CodeSystemHierarchyMeaning.GROUPEDBY)
|
||||
if (code == CodeSystemHierarchyMeaning.NULL)
|
||||
return null;
|
||||
if (code == CodeSystemHierarchyMeaning.GROUPEDBY)
|
||||
return "grouped-by";
|
||||
if (code == CodeSystemHierarchyMeaning.ISA)
|
||||
return "is-a";
|
||||
|
@ -178,7 +180,7 @@ public class CodeSystem extends MetadataResource {
|
|||
if (code == CodeSystemHierarchyMeaning.CLASSIFIEDWITH)
|
||||
return "classified-with";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(CodeSystemHierarchyMeaning code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -227,7 +229,7 @@ public class CodeSystem extends MetadataResource {
|
|||
case EXAMPLE: return "example";
|
||||
case FRAGMENT: return "fragment";
|
||||
case COMPLETE: return "complete";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -237,7 +239,7 @@ public class CodeSystem extends MetadataResource {
|
|||
case EXAMPLE: return "http://hl7.org/fhir/codesystem-content-mode";
|
||||
case FRAGMENT: return "http://hl7.org/fhir/codesystem-content-mode";
|
||||
case COMPLETE: return "http://hl7.org/fhir/codesystem-content-mode";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -247,7 +249,7 @@ public class CodeSystem extends MetadataResource {
|
|||
case EXAMPLE: return "A few representative concepts are included in the code system resource";
|
||||
case FRAGMENT: return "A subset of the code system concepts are included in the code system resource";
|
||||
case COMPLETE: return "All the concepts defined by the code system are included in the code system resource";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -257,7 +259,7 @@ public class CodeSystem extends MetadataResource {
|
|||
case EXAMPLE: return "Example";
|
||||
case FRAGMENT: return "Fragment";
|
||||
case COMPLETE: return "Complete";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -297,7 +299,9 @@ public class CodeSystem extends MetadataResource {
|
|||
throw new FHIRException("Unknown CodeSystemContentMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CodeSystemContentMode code) {
|
||||
if (code == CodeSystemContentMode.NOTPRESENT)
|
||||
if (code == CodeSystemContentMode.NULL)
|
||||
return null;
|
||||
if (code == CodeSystemContentMode.NOTPRESENT)
|
||||
return "not-present";
|
||||
if (code == CodeSystemContentMode.EXAMPLE)
|
||||
return "example";
|
||||
|
@ -306,7 +310,7 @@ public class CodeSystem extends MetadataResource {
|
|||
if (code == CodeSystemContentMode.COMPLETE)
|
||||
return "complete";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(CodeSystemContentMode code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -390,7 +394,7 @@ public class CodeSystem extends MetadataResource {
|
|||
case NOTIN: return "not-in";
|
||||
case GENERALIZES: return "generalizes";
|
||||
case EXISTS: return "exists";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -405,7 +409,7 @@ public class CodeSystem extends MetadataResource {
|
|||
case NOTIN: return "http://hl7.org/fhir/filter-operator";
|
||||
case GENERALIZES: return "http://hl7.org/fhir/filter-operator";
|
||||
case EXISTS: return "http://hl7.org/fhir/filter-operator";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -420,7 +424,7 @@ public class CodeSystem extends MetadataResource {
|
|||
case NOTIN: return "The specified property of the code is not in the set of codes or concepts specified in the provided value (comma separated list).";
|
||||
case GENERALIZES: return "Includes all concept ids that have a transitive is-a relationship from the concept Id provided as the value, including the provided concept itself (e.g. include parent codes)";
|
||||
case EXISTS: return "The specified property of the code has at least one value (if the specified value is true; if the specified value is false, then matches when the specified property of the code has no values)";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -435,7 +439,7 @@ public class CodeSystem extends MetadataResource {
|
|||
case NOTIN: return "Not in Set";
|
||||
case GENERALIZES: return "Generalizes (by Subsumption)";
|
||||
case EXISTS: return "Exists";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -495,7 +499,9 @@ public class CodeSystem extends MetadataResource {
|
|||
throw new FHIRException("Unknown FilterOperator code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(FilterOperator code) {
|
||||
if (code == FilterOperator.EQUAL)
|
||||
if (code == FilterOperator.NULL)
|
||||
return null;
|
||||
if (code == FilterOperator.EQUAL)
|
||||
return "=";
|
||||
if (code == FilterOperator.ISA)
|
||||
return "is-a";
|
||||
|
@ -514,7 +520,7 @@ public class CodeSystem extends MetadataResource {
|
|||
if (code == FilterOperator.EXISTS)
|
||||
return "exists";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(FilterOperator code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -577,7 +583,7 @@ public class CodeSystem extends MetadataResource {
|
|||
case INTEGER: return "integer";
|
||||
case BOOLEAN: return "boolean";
|
||||
case DATETIME: return "dateTime";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -589,7 +595,7 @@ public class CodeSystem extends MetadataResource {
|
|||
case INTEGER: return "http://hl7.org/fhir/concept-property-type";
|
||||
case BOOLEAN: return "http://hl7.org/fhir/concept-property-type";
|
||||
case DATETIME: return "http://hl7.org/fhir/concept-property-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -601,7 +607,7 @@ public class CodeSystem extends MetadataResource {
|
|||
case INTEGER: return "The property value is a string (often used to assign ranking values to concepts for supporting score assessments)";
|
||||
case BOOLEAN: return "The property value is a boolean true | false";
|
||||
case DATETIME: return "The property is a date or a date + time";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -613,7 +619,7 @@ public class CodeSystem extends MetadataResource {
|
|||
case INTEGER: return "integer";
|
||||
case BOOLEAN: return "boolean";
|
||||
case DATETIME: return "dateTime";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -661,7 +667,9 @@ public class CodeSystem extends MetadataResource {
|
|||
throw new FHIRException("Unknown PropertyType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(PropertyType code) {
|
||||
if (code == PropertyType.CODE)
|
||||
if (code == PropertyType.NULL)
|
||||
return null;
|
||||
if (code == PropertyType.CODE)
|
||||
return "code";
|
||||
if (code == PropertyType.CODING)
|
||||
return "Coding";
|
||||
|
@ -674,7 +682,7 @@ public class CodeSystem extends MetadataResource {
|
|||
if (code == PropertyType.DATETIME)
|
||||
return "dateTime";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(PropertyType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -115,7 +115,7 @@ public class Communication extends DomainResource {
|
|||
case COMPLETED: return "completed";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case UNKNOWN: return "unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -128,7 +128,7 @@ public class Communication extends DomainResource {
|
|||
case COMPLETED: return "http://hl7.org/fhir/event-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/event-status";
|
||||
case UNKNOWN: return "http://hl7.org/fhir/event-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -141,7 +141,7 @@ public class Communication extends DomainResource {
|
|||
case COMPLETED: return "The event has now concluded";
|
||||
case ENTEREDINERROR: return "This electronic record should never have existed, though it is possible that real-world decisions were based on it. (If real-world activity has occurred, the status should be \"cancelled\" rather than \"entered-in-error\".)";
|
||||
case UNKNOWN: return "The authoring system does not know which of the status values currently applies for this request. Note: This concept is not to be used for \"other\" - one of the listed statuses is presumed to apply, it's just not known which one.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -154,7 +154,7 @@ public class Communication extends DomainResource {
|
|||
case COMPLETED: return "Completed";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case UNKNOWN: return "Unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -206,7 +206,9 @@ public class Communication extends DomainResource {
|
|||
throw new FHIRException("Unknown CommunicationStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CommunicationStatus code) {
|
||||
if (code == CommunicationStatus.PREPARATION)
|
||||
if (code == CommunicationStatus.NULL)
|
||||
return null;
|
||||
if (code == CommunicationStatus.PREPARATION)
|
||||
return "preparation";
|
||||
if (code == CommunicationStatus.INPROGRESS)
|
||||
return "in-progress";
|
||||
|
@ -221,7 +223,7 @@ public class Communication extends DomainResource {
|
|||
if (code == CommunicationStatus.UNKNOWN)
|
||||
return "unknown";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(CommunicationStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -115,7 +115,7 @@ public class CommunicationRequest extends DomainResource {
|
|||
case COMPLETED: return "completed";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case UNKNOWN: return "unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -128,7 +128,7 @@ public class CommunicationRequest extends DomainResource {
|
|||
case COMPLETED: return "http://hl7.org/fhir/request-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/request-status";
|
||||
case UNKNOWN: return "http://hl7.org/fhir/request-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -141,7 +141,7 @@ public class CommunicationRequest extends DomainResource {
|
|||
case COMPLETED: return "Activity against the request has been sufficiently completed to the satisfaction of the requester";
|
||||
case ENTEREDINERROR: return "This electronic record should never have existed, though it is possible that real-world decisions were based on it. (If real-world activity has occurred, the status should be \"cancelled\" rather than \"entered-in-error\".)";
|
||||
case UNKNOWN: return "The authoring system does not know which of the status values currently applies for this request. Note: This concept is not to be used for \"other\" . One of the listed statuses is presumed to apply, but the system creating the request doesn't know.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -154,7 +154,7 @@ public class CommunicationRequest extends DomainResource {
|
|||
case COMPLETED: return "Completed";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case UNKNOWN: return "Unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -206,7 +206,9 @@ public class CommunicationRequest extends DomainResource {
|
|||
throw new FHIRException("Unknown CommunicationRequestStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CommunicationRequestStatus code) {
|
||||
if (code == CommunicationRequestStatus.DRAFT)
|
||||
if (code == CommunicationRequestStatus.NULL)
|
||||
return null;
|
||||
if (code == CommunicationRequestStatus.DRAFT)
|
||||
return "draft";
|
||||
if (code == CommunicationRequestStatus.ACTIVE)
|
||||
return "active";
|
||||
|
@ -221,7 +223,7 @@ public class CommunicationRequest extends DomainResource {
|
|||
if (code == CommunicationRequestStatus.UNKNOWN)
|
||||
return "unknown";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(CommunicationRequestStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -270,7 +272,7 @@ public class CommunicationRequest extends DomainResource {
|
|||
case URGENT: return "urgent";
|
||||
case ASAP: return "asap";
|
||||
case STAT: return "stat";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -280,7 +282,7 @@ public class CommunicationRequest extends DomainResource {
|
|||
case URGENT: return "http://hl7.org/fhir/request-priority";
|
||||
case ASAP: return "http://hl7.org/fhir/request-priority";
|
||||
case STAT: return "http://hl7.org/fhir/request-priority";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -290,7 +292,7 @@ public class CommunicationRequest extends DomainResource {
|
|||
case URGENT: return "The request should be actioned promptly - higher priority than routine";
|
||||
case ASAP: return "The request should be actioned as soon as possible - higher priority than urgent";
|
||||
case STAT: return "The request should be actioned immediately - highest possible priority. E.g. an emergency";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -300,7 +302,7 @@ public class CommunicationRequest extends DomainResource {
|
|||
case URGENT: return "Urgent";
|
||||
case ASAP: return "ASAP";
|
||||
case STAT: return "STAT";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -340,7 +342,9 @@ public class CommunicationRequest extends DomainResource {
|
|||
throw new FHIRException("Unknown CommunicationPriority code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CommunicationPriority code) {
|
||||
if (code == CommunicationPriority.ROUTINE)
|
||||
if (code == CommunicationPriority.NULL)
|
||||
return null;
|
||||
if (code == CommunicationPriority.ROUTINE)
|
||||
return "routine";
|
||||
if (code == CommunicationPriority.URGENT)
|
||||
return "urgent";
|
||||
|
@ -349,7 +353,7 @@ public class CommunicationRequest extends DomainResource {
|
|||
if (code == CommunicationPriority.STAT)
|
||||
return "stat";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(CommunicationPriority code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -105,7 +105,7 @@ public class CompartmentDefinition extends MetadataResource {
|
|||
case RELATEDPERSON: return "RelatedPerson";
|
||||
case PRACTITIONER: return "Practitioner";
|
||||
case DEVICE: return "Device";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -116,7 +116,7 @@ public class CompartmentDefinition extends MetadataResource {
|
|||
case RELATEDPERSON: return "http://hl7.org/fhir/compartment-type";
|
||||
case PRACTITIONER: return "http://hl7.org/fhir/compartment-type";
|
||||
case DEVICE: return "http://hl7.org/fhir/compartment-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -127,7 +127,7 @@ public class CompartmentDefinition extends MetadataResource {
|
|||
case RELATEDPERSON: return "The compartment definition is for the related-person compartment";
|
||||
case PRACTITIONER: return "The compartment definition is for the practitioner compartment";
|
||||
case DEVICE: return "The compartment definition is for the device compartment";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -138,7 +138,7 @@ public class CompartmentDefinition extends MetadataResource {
|
|||
case RELATEDPERSON: return "RelatedPerson";
|
||||
case PRACTITIONER: return "Practitioner";
|
||||
case DEVICE: return "Device";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -182,7 +182,9 @@ public class CompartmentDefinition extends MetadataResource {
|
|||
throw new FHIRException("Unknown CompartmentType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CompartmentType code) {
|
||||
if (code == CompartmentType.PATIENT)
|
||||
if (code == CompartmentType.NULL)
|
||||
return null;
|
||||
if (code == CompartmentType.PATIENT)
|
||||
return "Patient";
|
||||
if (code == CompartmentType.ENCOUNTER)
|
||||
return "Encounter";
|
||||
|
@ -193,7 +195,7 @@ public class CompartmentDefinition extends MetadataResource {
|
|||
if (code == CompartmentType.DEVICE)
|
||||
return "Device";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(CompartmentType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@ public class Composition extends DomainResource {
|
|||
case FINAL: return "final";
|
||||
case AMENDED: return "amended";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -105,7 +105,7 @@ public class Composition extends DomainResource {
|
|||
case FINAL: return "http://hl7.org/fhir/composition-status";
|
||||
case AMENDED: return "http://hl7.org/fhir/composition-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/composition-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -115,7 +115,7 @@ public class Composition extends DomainResource {
|
|||
case FINAL: return "This version of the composition is complete and verified by an appropriate person and no further work is planned. Any subsequent updates would be on a new version of the composition.";
|
||||
case AMENDED: return "The composition content or the referenced resources have been modified (edited or added to) subsequent to being released as \"final\" and the composition is complete and verified by an authorized person.";
|
||||
case ENTEREDINERROR: return "The composition or document was originally created/issued in error, and this is an amendment that marks that the entire series should not be considered as valid.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -125,7 +125,7 @@ public class Composition extends DomainResource {
|
|||
case FINAL: return "Final";
|
||||
case AMENDED: return "Amended";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -165,7 +165,9 @@ public class Composition extends DomainResource {
|
|||
throw new FHIRException("Unknown CompositionStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CompositionStatus code) {
|
||||
if (code == CompositionStatus.PRELIMINARY)
|
||||
if (code == CompositionStatus.NULL)
|
||||
return null;
|
||||
if (code == CompositionStatus.PRELIMINARY)
|
||||
return "preliminary";
|
||||
if (code == CompositionStatus.FINAL)
|
||||
return "final";
|
||||
|
@ -174,7 +176,7 @@ public class Composition extends DomainResource {
|
|||
if (code == CompositionStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(CompositionStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -237,7 +239,7 @@ public class Composition extends DomainResource {
|
|||
case N: return "N";
|
||||
case R: return "R";
|
||||
case V: return "V";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -249,7 +251,7 @@ public class Composition extends DomainResource {
|
|||
case N: return "http://hl7.org/fhir/v3/Confidentiality";
|
||||
case R: return "http://hl7.org/fhir/v3/Confidentiality";
|
||||
case V: return "http://hl7.org/fhir/v3/Confidentiality";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -261,7 +263,7 @@ public class Composition extends DomainResource {
|
|||
case N: return "";
|
||||
case R: return "";
|
||||
case V: return "";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -273,7 +275,7 @@ public class Composition extends DomainResource {
|
|||
case N: return "N";
|
||||
case R: return "R";
|
||||
case V: return "V";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -321,7 +323,9 @@ public class Composition extends DomainResource {
|
|||
throw new FHIRException("Unknown DocumentConfidentiality code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DocumentConfidentiality code) {
|
||||
if (code == DocumentConfidentiality.U)
|
||||
if (code == DocumentConfidentiality.NULL)
|
||||
return null;
|
||||
if (code == DocumentConfidentiality.U)
|
||||
return "U";
|
||||
if (code == DocumentConfidentiality.L)
|
||||
return "L";
|
||||
|
@ -334,7 +338,7 @@ public class Composition extends DomainResource {
|
|||
if (code == DocumentConfidentiality.V)
|
||||
return "V";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(DocumentConfidentiality code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -383,7 +387,7 @@ public class Composition extends DomainResource {
|
|||
case PROFESSIONAL: return "professional";
|
||||
case LEGAL: return "legal";
|
||||
case OFFICIAL: return "official";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -393,7 +397,7 @@ public class Composition extends DomainResource {
|
|||
case PROFESSIONAL: return "http://hl7.org/fhir/composition-attestation-mode";
|
||||
case LEGAL: return "http://hl7.org/fhir/composition-attestation-mode";
|
||||
case OFFICIAL: return "http://hl7.org/fhir/composition-attestation-mode";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -403,7 +407,7 @@ public class Composition extends DomainResource {
|
|||
case PROFESSIONAL: return "The person authenticated the content in their professional capacity.";
|
||||
case LEGAL: return "The person authenticated the content and accepted legal responsibility for its content.";
|
||||
case OFFICIAL: return "The organization authenticated the content as consistent with their policies and procedures.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -413,7 +417,7 @@ public class Composition extends DomainResource {
|
|||
case PROFESSIONAL: return "Professional";
|
||||
case LEGAL: return "Legal";
|
||||
case OFFICIAL: return "Official";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -453,7 +457,9 @@ public class Composition extends DomainResource {
|
|||
throw new FHIRException("Unknown CompositionAttestationMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CompositionAttestationMode code) {
|
||||
if (code == CompositionAttestationMode.PERSONAL)
|
||||
if (code == CompositionAttestationMode.NULL)
|
||||
return null;
|
||||
if (code == CompositionAttestationMode.PERSONAL)
|
||||
return "personal";
|
||||
if (code == CompositionAttestationMode.PROFESSIONAL)
|
||||
return "professional";
|
||||
|
@ -462,7 +468,7 @@ public class Composition extends DomainResource {
|
|||
if (code == CompositionAttestationMode.OFFICIAL)
|
||||
return "official";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(CompositionAttestationMode code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -511,7 +517,7 @@ public class Composition extends DomainResource {
|
|||
case TRANSFORMS: return "transforms";
|
||||
case SIGNS: return "signs";
|
||||
case APPENDS: return "appends";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -521,7 +527,7 @@ public class Composition extends DomainResource {
|
|||
case TRANSFORMS: return "http://hl7.org/fhir/document-relationship-type";
|
||||
case SIGNS: return "http://hl7.org/fhir/document-relationship-type";
|
||||
case APPENDS: return "http://hl7.org/fhir/document-relationship-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -531,7 +537,7 @@ public class Composition extends DomainResource {
|
|||
case TRANSFORMS: return "This document was generated by transforming the target document (e.g. format or language conversion).";
|
||||
case SIGNS: return "This document is a signature of the target document.";
|
||||
case APPENDS: return "This document adds additional information to the target document.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -541,7 +547,7 @@ public class Composition extends DomainResource {
|
|||
case TRANSFORMS: return "Transforms";
|
||||
case SIGNS: return "Signs";
|
||||
case APPENDS: return "Appends";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -581,7 +587,9 @@ public class Composition extends DomainResource {
|
|||
throw new FHIRException("Unknown DocumentRelationshipType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DocumentRelationshipType code) {
|
||||
if (code == DocumentRelationshipType.REPLACES)
|
||||
if (code == DocumentRelationshipType.NULL)
|
||||
return null;
|
||||
if (code == DocumentRelationshipType.REPLACES)
|
||||
return "replaces";
|
||||
if (code == DocumentRelationshipType.TRANSFORMS)
|
||||
return "transforms";
|
||||
|
@ -590,7 +598,7 @@ public class Composition extends DomainResource {
|
|||
if (code == DocumentRelationshipType.APPENDS)
|
||||
return "appends";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(DocumentRelationshipType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -632,7 +640,7 @@ public class Composition extends DomainResource {
|
|||
case WORKING: return "working";
|
||||
case SNAPSHOT: return "snapshot";
|
||||
case CHANGES: return "changes";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -641,7 +649,7 @@ public class Composition extends DomainResource {
|
|||
case WORKING: return "http://hl7.org/fhir/list-mode";
|
||||
case SNAPSHOT: return "http://hl7.org/fhir/list-mode";
|
||||
case CHANGES: return "http://hl7.org/fhir/list-mode";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -650,7 +658,7 @@ public class Composition extends DomainResource {
|
|||
case WORKING: return "This list is the master list, maintained in an ongoing fashion with regular updates as the real world list it is tracking changes";
|
||||
case SNAPSHOT: return "This list was prepared as a snapshot. It should not be assumed to be current";
|
||||
case CHANGES: return "A list that indicates where changes have been made or recommended";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -659,7 +667,7 @@ public class Composition extends DomainResource {
|
|||
case WORKING: return "Working List";
|
||||
case SNAPSHOT: return "Snapshot List";
|
||||
case CHANGES: return "Change List";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -695,14 +703,16 @@ public class Composition extends DomainResource {
|
|||
throw new FHIRException("Unknown SectionMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(SectionMode code) {
|
||||
if (code == SectionMode.WORKING)
|
||||
if (code == SectionMode.NULL)
|
||||
return null;
|
||||
if (code == SectionMode.WORKING)
|
||||
return "working";
|
||||
if (code == SectionMode.SNAPSHOT)
|
||||
return "snapshot";
|
||||
if (code == SectionMode.CHANGES)
|
||||
return "changes";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(SectionMode code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@ public class ConceptMap extends MetadataResource {
|
|||
case PROVIDED: return "provided";
|
||||
case FIXED: return "fixed";
|
||||
case OTHERMAP: return "other-map";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ public class ConceptMap extends MetadataResource {
|
|||
case PROVIDED: return "http://hl7.org/fhir/conceptmap-unmapped-mode";
|
||||
case FIXED: return "http://hl7.org/fhir/conceptmap-unmapped-mode";
|
||||
case OTHERMAP: return "http://hl7.org/fhir/conceptmap-unmapped-mode";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -113,7 +113,7 @@ public class ConceptMap extends MetadataResource {
|
|||
case PROVIDED: return "Use the code as provided in the $translate request";
|
||||
case FIXED: return "Use the code explicitly provided in the group.unmapped";
|
||||
case OTHERMAP: return "Use the map identified by the canonical URL in URL";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -122,7 +122,7 @@ public class ConceptMap extends MetadataResource {
|
|||
case PROVIDED: return "Provided Code";
|
||||
case FIXED: return "Fixed Code";
|
||||
case OTHERMAP: return "Other Map";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -158,14 +158,16 @@ public class ConceptMap extends MetadataResource {
|
|||
throw new FHIRException("Unknown ConceptMapGroupUnmappedMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ConceptMapGroupUnmappedMode code) {
|
||||
if (code == ConceptMapGroupUnmappedMode.PROVIDED)
|
||||
if (code == ConceptMapGroupUnmappedMode.NULL)
|
||||
return null;
|
||||
if (code == ConceptMapGroupUnmappedMode.PROVIDED)
|
||||
return "provided";
|
||||
if (code == ConceptMapGroupUnmappedMode.FIXED)
|
||||
return "fixed";
|
||||
if (code == ConceptMapGroupUnmappedMode.OTHERMAP)
|
||||
return "other-map";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ConceptMapGroupUnmappedMode code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -101,7 +101,7 @@ public class Condition extends DomainResource {
|
|||
case INACTIVE: return "inactive";
|
||||
case REMISSION: return "remission";
|
||||
case RESOLVED: return "resolved";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -112,7 +112,7 @@ public class Condition extends DomainResource {
|
|||
case INACTIVE: return "http://hl7.org/fhir/condition-clinical";
|
||||
case REMISSION: return "http://hl7.org/fhir/condition-clinical";
|
||||
case RESOLVED: return "http://hl7.org/fhir/condition-clinical";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -123,7 +123,7 @@ public class Condition extends DomainResource {
|
|||
case INACTIVE: return "The subject is no longer experiencing the symptoms of the condition or there is no longer evidence of the condition.";
|
||||
case REMISSION: return "The subject is no longer experiencing the symptoms of the condition, but there is a risk of the symptoms returning.";
|
||||
case RESOLVED: return "The subject is no longer experiencing the symptoms of the condition and there is a negligible perceived risk of the symptoms returning.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -134,7 +134,7 @@ public class Condition extends DomainResource {
|
|||
case INACTIVE: return "Inactive";
|
||||
case REMISSION: return "Remission";
|
||||
case RESOLVED: return "Resolved";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -178,7 +178,9 @@ public class Condition extends DomainResource {
|
|||
throw new FHIRException("Unknown ConditionClinicalStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ConditionClinicalStatus code) {
|
||||
if (code == ConditionClinicalStatus.ACTIVE)
|
||||
if (code == ConditionClinicalStatus.NULL)
|
||||
return null;
|
||||
if (code == ConditionClinicalStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == ConditionClinicalStatus.RECURRENCE)
|
||||
return "recurrence";
|
||||
|
@ -189,7 +191,7 @@ public class Condition extends DomainResource {
|
|||
if (code == ConditionClinicalStatus.RESOLVED)
|
||||
return "resolved";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ConditionClinicalStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -252,7 +254,7 @@ public class Condition extends DomainResource {
|
|||
case REFUTED: return "refuted";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case UNKNOWN: return "unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -264,7 +266,7 @@ public class Condition extends DomainResource {
|
|||
case REFUTED: return "http://hl7.org/fhir/condition-ver-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/condition-ver-status";
|
||||
case UNKNOWN: return "http://hl7.org/fhir/condition-ver-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -276,7 +278,7 @@ public class Condition extends DomainResource {
|
|||
case REFUTED: return "This condition has been ruled out by diagnostic and clinical evidence.";
|
||||
case ENTEREDINERROR: return "The statement was entered in error and is not valid.";
|
||||
case UNKNOWN: return "The condition status is unknown. Note that \"unknown\" is a value of last resort and every attempt should be made to provide a meaningful value other than \"unknown\".";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -288,7 +290,7 @@ public class Condition extends DomainResource {
|
|||
case REFUTED: return "Refuted";
|
||||
case ENTEREDINERROR: return "Entered In Error";
|
||||
case UNKNOWN: return "Unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -336,7 +338,9 @@ public class Condition extends DomainResource {
|
|||
throw new FHIRException("Unknown ConditionVerificationStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ConditionVerificationStatus code) {
|
||||
if (code == ConditionVerificationStatus.PROVISIONAL)
|
||||
if (code == ConditionVerificationStatus.NULL)
|
||||
return null;
|
||||
if (code == ConditionVerificationStatus.PROVISIONAL)
|
||||
return "provisional";
|
||||
if (code == ConditionVerificationStatus.DIFFERENTIAL)
|
||||
return "differential";
|
||||
|
@ -349,7 +353,7 @@ public class Condition extends DomainResource {
|
|||
if (code == ConditionVerificationStatus.UNKNOWN)
|
||||
return "unknown";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ConditionVerificationStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -109,7 +109,7 @@ public class Consent extends DomainResource {
|
|||
case REJECTED: return "rejected";
|
||||
case INACTIVE: return "inactive";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -121,7 +121,7 @@ public class Consent extends DomainResource {
|
|||
case REJECTED: return "http://hl7.org/fhir/consent-state-codes";
|
||||
case INACTIVE: return "http://hl7.org/fhir/consent-state-codes";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/consent-state-codes";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -133,7 +133,7 @@ public class Consent extends DomainResource {
|
|||
case REJECTED: return "The consent has been rejected by one or more of the parties.";
|
||||
case INACTIVE: return "The consent is terminated or replaced.";
|
||||
case ENTEREDINERROR: return "The consent was created wrongly (e.g. wrong patient) and should be ignored";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -145,7 +145,7 @@ public class Consent extends DomainResource {
|
|||
case REJECTED: return "Rejected";
|
||||
case INACTIVE: return "Inactive";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -193,7 +193,9 @@ public class Consent extends DomainResource {
|
|||
throw new FHIRException("Unknown ConsentState code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ConsentState code) {
|
||||
if (code == ConsentState.DRAFT)
|
||||
if (code == ConsentState.NULL)
|
||||
return null;
|
||||
if (code == ConsentState.DRAFT)
|
||||
return "draft";
|
||||
if (code == ConsentState.PROPOSED)
|
||||
return "proposed";
|
||||
|
@ -206,7 +208,7 @@ public class Consent extends DomainResource {
|
|||
if (code == ConsentState.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ConsentState code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -255,7 +257,7 @@ public class Consent extends DomainResource {
|
|||
case RELATED: return "related";
|
||||
case DEPENDENTS: return "dependents";
|
||||
case AUTHOREDBY: return "authoredby";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -265,7 +267,7 @@ public class Consent extends DomainResource {
|
|||
case RELATED: return "http://hl7.org/fhir/consent-data-meaning";
|
||||
case DEPENDENTS: return "http://hl7.org/fhir/consent-data-meaning";
|
||||
case AUTHOREDBY: return "http://hl7.org/fhir/consent-data-meaning";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -275,7 +277,7 @@ public class Consent extends DomainResource {
|
|||
case RELATED: return "The consent applies directly to the instance of the resource and instances it refers to";
|
||||
case DEPENDENTS: return "The consent applies directly to the instance of the resource and instances that refer to it";
|
||||
case AUTHOREDBY: return "The consent applies to instances of resources that are authored by";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -285,7 +287,7 @@ public class Consent extends DomainResource {
|
|||
case RELATED: return "Related";
|
||||
case DEPENDENTS: return "Dependents";
|
||||
case AUTHOREDBY: return "AuthoredBy";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -325,7 +327,9 @@ public class Consent extends DomainResource {
|
|||
throw new FHIRException("Unknown ConsentDataMeaning code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ConsentDataMeaning code) {
|
||||
if (code == ConsentDataMeaning.INSTANCE)
|
||||
if (code == ConsentDataMeaning.NULL)
|
||||
return null;
|
||||
if (code == ConsentDataMeaning.INSTANCE)
|
||||
return "instance";
|
||||
if (code == ConsentDataMeaning.RELATED)
|
||||
return "related";
|
||||
|
@ -334,7 +338,7 @@ public class Consent extends DomainResource {
|
|||
if (code == ConsentDataMeaning.AUTHOREDBY)
|
||||
return "authoredby";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ConsentDataMeaning code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -369,7 +373,7 @@ public class Consent extends DomainResource {
|
|||
switch (this) {
|
||||
case DENY: return "deny";
|
||||
case PERMIT: return "permit";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -377,7 +381,7 @@ public class Consent extends DomainResource {
|
|||
switch (this) {
|
||||
case DENY: return "http://hl7.org/fhir/consent-except-type";
|
||||
case PERMIT: return "http://hl7.org/fhir/consent-except-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -385,7 +389,7 @@ public class Consent extends DomainResource {
|
|||
switch (this) {
|
||||
case DENY: return "Consent is denied for actions meeting these rules";
|
||||
case PERMIT: return "Consent is provided for actions meeting these rules";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -393,7 +397,7 @@ public class Consent extends DomainResource {
|
|||
switch (this) {
|
||||
case DENY: return "Opt Out";
|
||||
case PERMIT: return "Opt In";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -425,12 +429,14 @@ public class Consent extends DomainResource {
|
|||
throw new FHIRException("Unknown ConsentExceptType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ConsentExceptType code) {
|
||||
if (code == ConsentExceptType.DENY)
|
||||
if (code == ConsentExceptType.NULL)
|
||||
return null;
|
||||
if (code == ConsentExceptType.DENY)
|
||||
return "deny";
|
||||
if (code == ConsentExceptType.PERMIT)
|
||||
return "permit";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ConsentExceptType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -111,7 +111,7 @@ public class ContactPoint extends Type implements ICompositeType {
|
|||
case URL: return "url";
|
||||
case SMS: return "sms";
|
||||
case OTHER: return "other";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ public class ContactPoint extends Type implements ICompositeType {
|
|||
case URL: return "http://hl7.org/fhir/contact-point-system";
|
||||
case SMS: return "http://hl7.org/fhir/contact-point-system";
|
||||
case OTHER: return "http://hl7.org/fhir/contact-point-system";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -137,7 +137,7 @@ public class ContactPoint extends Type implements ICompositeType {
|
|||
case URL: return "A contact that is not a phone, fax, pager or email address and is expressed as a URL. This is intended for various personal contacts including blogs, Skype, Twitter, Facebook, etc. Do not use for email addresses.";
|
||||
case SMS: return "A contact that can be used for sending an sms message (e.g. mobide phones, some landlines)";
|
||||
case OTHER: return "A contact that is not a phone, fax, page or email address and is not expressible as a URL. E.g. Internal mail address. This SHOULD NOT be used for contacts that are expressible as a URL (e.g. Skype, Twitter, Facebook, etc.) Extensions may be used to distinguish \"other\" contact types.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -150,7 +150,7 @@ public class ContactPoint extends Type implements ICompositeType {
|
|||
case URL: return "URL";
|
||||
case SMS: return "SMS";
|
||||
case OTHER: return "Other";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -202,7 +202,9 @@ public class ContactPoint extends Type implements ICompositeType {
|
|||
throw new FHIRException("Unknown ContactPointSystem code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ContactPointSystem code) {
|
||||
if (code == ContactPointSystem.PHONE)
|
||||
if (code == ContactPointSystem.NULL)
|
||||
return null;
|
||||
if (code == ContactPointSystem.PHONE)
|
||||
return "phone";
|
||||
if (code == ContactPointSystem.FAX)
|
||||
return "fax";
|
||||
|
@ -217,7 +219,7 @@ public class ContactPoint extends Type implements ICompositeType {
|
|||
if (code == ContactPointSystem.OTHER)
|
||||
return "other";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ContactPointSystem code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -273,7 +275,7 @@ public class ContactPoint extends Type implements ICompositeType {
|
|||
case TEMP: return "temp";
|
||||
case OLD: return "old";
|
||||
case MOBILE: return "mobile";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -284,7 +286,7 @@ public class ContactPoint extends Type implements ICompositeType {
|
|||
case TEMP: return "http://hl7.org/fhir/contact-point-use";
|
||||
case OLD: return "http://hl7.org/fhir/contact-point-use";
|
||||
case MOBILE: return "http://hl7.org/fhir/contact-point-use";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -295,7 +297,7 @@ public class ContactPoint extends Type implements ICompositeType {
|
|||
case TEMP: return "A temporary contact point. The period can provide more detailed information.";
|
||||
case OLD: return "This contact point is no longer in use (or was never correct, but retained for records).";
|
||||
case MOBILE: return "A telecommunication device that moves and stays with its owner. May have characteristics of all other use codes, suitable for urgent matters, not the first choice for routine business.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -306,7 +308,7 @@ public class ContactPoint extends Type implements ICompositeType {
|
|||
case TEMP: return "Temp";
|
||||
case OLD: return "Old";
|
||||
case MOBILE: return "Mobile";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -350,7 +352,9 @@ public class ContactPoint extends Type implements ICompositeType {
|
|||
throw new FHIRException("Unknown ContactPointUse code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ContactPointUse code) {
|
||||
if (code == ContactPointUse.HOME)
|
||||
if (code == ContactPointUse.NULL)
|
||||
return null;
|
||||
if (code == ContactPointUse.HOME)
|
||||
return "home";
|
||||
if (code == ContactPointUse.WORK)
|
||||
return "work";
|
||||
|
@ -361,7 +365,7 @@ public class ContactPoint extends Type implements ICompositeType {
|
|||
if (code == ContactPointUse.MOBILE)
|
||||
return "mobile";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ContactPointUse code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -175,7 +175,7 @@ public class Contract extends DomainResource {
|
|||
case REVOKED: return "revoked";
|
||||
case RESOLVED: return "resolved";
|
||||
case TERMINATED: return "terminated";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -196,7 +196,7 @@ public class Contract extends DomainResource {
|
|||
case REVOKED: return "http://hl7.org/fhir/contract-status";
|
||||
case RESOLVED: return "http://hl7.org/fhir/contract-status";
|
||||
case TERMINATED: return "http://hl7.org/fhir/contract-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -217,7 +217,7 @@ public class Contract extends DomainResource {
|
|||
case REVOKED: return "A Contract that is rescinded. May be required prior to replacing with an updated Contract. Comparable FHIR and v.3 status codes: nullified.";
|
||||
case RESOLVED: return "Contract is reactivated after being pended because of faulty execution. *E.g., competency of the signer(s), or where the policy is substantially different from and did not accompany the application/form so that the applicant could not compare them. Aka - ''reactivated''. Usage: Optional stage where a pended contract is reactivated. Precedence Order = 8. Comparable FHIR and v.3 status codes: reactivated.";
|
||||
case TERMINATED: return "Contract reaches its expiry date. It may or may not be renewed or renegotiated. Usage: Normal end of contract period. Precedence Order = 12. Comparable FHIR and v.3 status codes: Obsoleted.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -238,7 +238,7 @@ public class Contract extends DomainResource {
|
|||
case REVOKED: return "Revoked";
|
||||
case RESOLVED: return "Resolved";
|
||||
case TERMINATED: return "Terminated";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -322,7 +322,9 @@ public class Contract extends DomainResource {
|
|||
throw new FHIRException("Unknown ContractStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ContractStatus code) {
|
||||
if (code == ContractStatus.AMENDED)
|
||||
if (code == ContractStatus.NULL)
|
||||
return null;
|
||||
if (code == ContractStatus.AMENDED)
|
||||
return "amended";
|
||||
if (code == ContractStatus.APPENDED)
|
||||
return "appended";
|
||||
|
@ -353,7 +355,7 @@ public class Contract extends DomainResource {
|
|||
if (code == ContractStatus.TERMINATED)
|
||||
return "terminated";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ContractStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -91,7 +91,7 @@ public class Contributor extends Type implements ICompositeType {
|
|||
case EDITOR: return "editor";
|
||||
case REVIEWER: return "reviewer";
|
||||
case ENDORSER: return "endorser";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -101,7 +101,7 @@ public class Contributor extends Type implements ICompositeType {
|
|||
case EDITOR: return "http://hl7.org/fhir/contributor-type";
|
||||
case REVIEWER: return "http://hl7.org/fhir/contributor-type";
|
||||
case ENDORSER: return "http://hl7.org/fhir/contributor-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -111,7 +111,7 @@ public class Contributor extends Type implements ICompositeType {
|
|||
case EDITOR: return "An editor of the content of the module";
|
||||
case REVIEWER: return "A reviewer of the content of the module";
|
||||
case ENDORSER: return "An endorser of the content of the module";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -121,7 +121,7 @@ public class Contributor extends Type implements ICompositeType {
|
|||
case EDITOR: return "Editor";
|
||||
case REVIEWER: return "Reviewer";
|
||||
case ENDORSER: return "Endorser";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -161,7 +161,9 @@ public class Contributor extends Type implements ICompositeType {
|
|||
throw new FHIRException("Unknown ContributorType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ContributorType code) {
|
||||
if (code == ContributorType.AUTHOR)
|
||||
if (code == ContributorType.NULL)
|
||||
return null;
|
||||
if (code == ContributorType.AUTHOR)
|
||||
return "author";
|
||||
if (code == ContributorType.EDITOR)
|
||||
return "editor";
|
||||
|
@ -170,7 +172,7 @@ public class Contributor extends Type implements ICompositeType {
|
|||
if (code == ContributorType.ENDORSER)
|
||||
return "endorser";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ContributorType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -93,7 +93,7 @@ public class Coverage extends DomainResource {
|
|||
case CANCELLED: return "cancelled";
|
||||
case DRAFT: return "draft";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -103,7 +103,7 @@ public class Coverage extends DomainResource {
|
|||
case CANCELLED: return "http://hl7.org/fhir/fm-status";
|
||||
case DRAFT: return "http://hl7.org/fhir/fm-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/fm-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -113,7 +113,7 @@ public class Coverage extends DomainResource {
|
|||
case CANCELLED: return "The instance is withdrawn, rescinded or reversed.";
|
||||
case DRAFT: return "A new instance the contents of which is not complete.";
|
||||
case ENTEREDINERROR: return "The instance was entered in error.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -123,7 +123,7 @@ public class Coverage extends DomainResource {
|
|||
case CANCELLED: return "Cancelled";
|
||||
case DRAFT: return "Draft";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -163,7 +163,9 @@ public class Coverage extends DomainResource {
|
|||
throw new FHIRException("Unknown CoverageStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CoverageStatus code) {
|
||||
if (code == CoverageStatus.ACTIVE)
|
||||
if (code == CoverageStatus.NULL)
|
||||
return null;
|
||||
if (code == CoverageStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == CoverageStatus.CANCELLED)
|
||||
return "cancelled";
|
||||
|
@ -172,7 +174,7 @@ public class Coverage extends DomainResource {
|
|||
if (code == CoverageStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(CoverageStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -112,7 +112,7 @@ public class DataElement extends MetadataResource {
|
|||
case CONVERTABLE: return "convertable";
|
||||
case SCALEABLE: return "scaleable";
|
||||
case FLEXIBLE: return "flexible";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ public class DataElement extends MetadataResource {
|
|||
case CONVERTABLE: return "http://hl7.org/fhir/dataelement-stringency";
|
||||
case SCALEABLE: return "http://hl7.org/fhir/dataelement-stringency";
|
||||
case FLEXIBLE: return "http://hl7.org/fhir/dataelement-stringency";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -136,7 +136,7 @@ public class DataElement extends MetadataResource {
|
|||
case CONVERTABLE: return "The data element allows multiple units of measure that are convertable between each other (e.g. inches and centimeters) and/or allows data to be captured in multiple value sets for which a known mapping exists allowing conversion of meaning.";
|
||||
case SCALEABLE: return "A convertable data element where unit conversions are different only by a power of 10; e.g. g, mg, kg.";
|
||||
case FLEXIBLE: return "The data element is unconstrained in units, choice of data types and/or choice of vocabulary such that automated comparison of data captured using the data element is not possible.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -148,7 +148,7 @@ public class DataElement extends MetadataResource {
|
|||
case CONVERTABLE: return "Convertable";
|
||||
case SCALEABLE: return "Scaleable";
|
||||
case FLEXIBLE: return "Flexible";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -196,7 +196,9 @@ public class DataElement extends MetadataResource {
|
|||
throw new FHIRException("Unknown DataElementStringency code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DataElementStringency code) {
|
||||
if (code == DataElementStringency.COMPARABLE)
|
||||
if (code == DataElementStringency.NULL)
|
||||
return null;
|
||||
if (code == DataElementStringency.COMPARABLE)
|
||||
return "comparable";
|
||||
if (code == DataElementStringency.FULLYSPECIFIED)
|
||||
return "fully-specified";
|
||||
|
@ -209,7 +211,7 @@ public class DataElement extends MetadataResource {
|
|||
if (code == DataElementStringency.FLEXIBLE)
|
||||
return "flexible";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(DataElementStringency code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -122,7 +122,7 @@ public class DetectedIssue extends DomainResource {
|
|||
case CANCELLED: return "cancelled";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case UNKNOWN: return "unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -136,7 +136,7 @@ public class DetectedIssue extends DomainResource {
|
|||
case CANCELLED: return "http://hl7.org/fhir/observation-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/observation-status";
|
||||
case UNKNOWN: return "http://hl7.org/fhir/observation-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -150,7 +150,7 @@ public class DetectedIssue extends DomainResource {
|
|||
case CANCELLED: return "The observation is unavailable because the measurement was not started or not completed (also sometimes called \"aborted\").";
|
||||
case ENTEREDINERROR: return "The observation has been withdrawn following previous final release. This electronic record should never have existed, though it is possible that real-world decisions were based on it. (If real-world activity has occurred, the status should be \"cancelled\" rather than \"entered-in-error\".)";
|
||||
case UNKNOWN: return "The authoring system does not know which of the status values currently applies for this request. Note: This concept is not to be used for \"other\" - one of the listed statuses is presumed to apply, but the authoring system does not know which.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -164,7 +164,7 @@ public class DetectedIssue extends DomainResource {
|
|||
case CANCELLED: return "Cancelled";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case UNKNOWN: return "Unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -220,7 +220,9 @@ public class DetectedIssue extends DomainResource {
|
|||
throw new FHIRException("Unknown DetectedIssueStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DetectedIssueStatus code) {
|
||||
if (code == DetectedIssueStatus.REGISTERED)
|
||||
if (code == DetectedIssueStatus.NULL)
|
||||
return null;
|
||||
if (code == DetectedIssueStatus.REGISTERED)
|
||||
return "registered";
|
||||
if (code == DetectedIssueStatus.PRELIMINARY)
|
||||
return "preliminary";
|
||||
|
@ -237,7 +239,7 @@ public class DetectedIssue extends DomainResource {
|
|||
if (code == DetectedIssueStatus.UNKNOWN)
|
||||
return "unknown";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(DetectedIssueStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -279,7 +281,7 @@ public class DetectedIssue extends DomainResource {
|
|||
case HIGH: return "high";
|
||||
case MODERATE: return "moderate";
|
||||
case LOW: return "low";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -288,7 +290,7 @@ public class DetectedIssue extends DomainResource {
|
|||
case HIGH: return "http://hl7.org/fhir/detectedissue-severity";
|
||||
case MODERATE: return "http://hl7.org/fhir/detectedissue-severity";
|
||||
case LOW: return "http://hl7.org/fhir/detectedissue-severity";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -297,7 +299,7 @@ public class DetectedIssue extends DomainResource {
|
|||
case HIGH: return "Indicates the issue may be life-threatening or has the potential to cause permanent injury.";
|
||||
case MODERATE: return "Indicates the issue may result in noticeable adverse consequences but is unlikely to be life-threatening or cause permanent injury.";
|
||||
case LOW: return "Indicates the issue may result in some adverse consequences but is unlikely to substantially affect the situation of the subject.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -306,7 +308,7 @@ public class DetectedIssue extends DomainResource {
|
|||
case HIGH: return "High";
|
||||
case MODERATE: return "Moderate";
|
||||
case LOW: return "Low";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -342,14 +344,16 @@ public class DetectedIssue extends DomainResource {
|
|||
throw new FHIRException("Unknown DetectedIssueSeverity code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DetectedIssueSeverity code) {
|
||||
if (code == DetectedIssueSeverity.HIGH)
|
||||
if (code == DetectedIssueSeverity.NULL)
|
||||
return null;
|
||||
if (code == DetectedIssueSeverity.HIGH)
|
||||
return "high";
|
||||
if (code == DetectedIssueSeverity.MODERATE)
|
||||
return "moderate";
|
||||
if (code == DetectedIssueSeverity.LOW)
|
||||
return "low";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(DetectedIssueSeverity code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -109,7 +109,7 @@ public class Device extends DomainResource {
|
|||
case CARD: return "card";
|
||||
case SELFREPORTED: return "self-reported";
|
||||
case UNKNOWN: return "unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -121,7 +121,7 @@ public class Device extends DomainResource {
|
|||
case CARD: return "http://hl7.org/fhir/udi-entry-type";
|
||||
case SELFREPORTED: return "http://hl7.org/fhir/udi-entry-type";
|
||||
case UNKNOWN: return "http://hl7.org/fhir/udi-entry-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -133,7 +133,7 @@ public class Device extends DomainResource {
|
|||
case CARD: return "The data originated from a patient's implant card and read by an operator.";
|
||||
case SELFREPORTED: return "The data originated from a patient source and not directly scanned or read from a label or card.";
|
||||
case UNKNOWN: return "The method of data capture has not been determined";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -145,7 +145,7 @@ public class Device extends DomainResource {
|
|||
case CARD: return "Card";
|
||||
case SELFREPORTED: return "Self Reported";
|
||||
case UNKNOWN: return "Unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -193,7 +193,9 @@ public class Device extends DomainResource {
|
|||
throw new FHIRException("Unknown UDIEntryType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(UDIEntryType code) {
|
||||
if (code == UDIEntryType.BARCODE)
|
||||
if (code == UDIEntryType.NULL)
|
||||
return null;
|
||||
if (code == UDIEntryType.BARCODE)
|
||||
return "barcode";
|
||||
if (code == UDIEntryType.RFID)
|
||||
return "rfid";
|
||||
|
@ -206,7 +208,7 @@ public class Device extends DomainResource {
|
|||
if (code == UDIEntryType.UNKNOWN)
|
||||
return "unknown";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(UDIEntryType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -255,7 +257,7 @@ public class Device extends DomainResource {
|
|||
case INACTIVE: return "inactive";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case UNKNOWN: return "unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -265,7 +267,7 @@ public class Device extends DomainResource {
|
|||
case INACTIVE: return "http://hl7.org/fhir/device-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/device-status";
|
||||
case UNKNOWN: return "http://hl7.org/fhir/device-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -275,7 +277,7 @@ public class Device extends DomainResource {
|
|||
case INACTIVE: return "The Device is no longer available for use (e.g. lost, expired, damaged). Note: This means for *implanted devices* the device has been removed from the patient.";
|
||||
case ENTEREDINERROR: return "The Device was entered in error and voided.";
|
||||
case UNKNOWN: return "The status of the device has not been determined.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -285,7 +287,7 @@ public class Device extends DomainResource {
|
|||
case INACTIVE: return "Inactive";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case UNKNOWN: return "Unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -325,7 +327,9 @@ public class Device extends DomainResource {
|
|||
throw new FHIRException("Unknown FHIRDeviceStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(FHIRDeviceStatus code) {
|
||||
if (code == FHIRDeviceStatus.ACTIVE)
|
||||
if (code == FHIRDeviceStatus.NULL)
|
||||
return null;
|
||||
if (code == FHIRDeviceStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == FHIRDeviceStatus.INACTIVE)
|
||||
return "inactive";
|
||||
|
@ -334,7 +338,7 @@ public class Device extends DomainResource {
|
|||
if (code == FHIRDeviceStatus.UNKNOWN)
|
||||
return "unknown";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(FHIRDeviceStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -143,7 +143,7 @@ public class DeviceComponent extends DomainResource {
|
|||
case MECHANICAL: return "mechanical";
|
||||
case ACOUSTICAL: return "acoustical";
|
||||
case MANUAL: return "manual";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -160,7 +160,7 @@ public class DeviceComponent extends DomainResource {
|
|||
case MECHANICAL: return "http://hl7.org/fhir/measurement-principle";
|
||||
case ACOUSTICAL: return "http://hl7.org/fhir/measurement-principle";
|
||||
case MANUAL: return "http://hl7.org/fhir/measurement-principle";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -177,7 +177,7 @@ public class DeviceComponent extends DomainResource {
|
|||
case MECHANICAL: return "Measurement is done using the mechanical principle.";
|
||||
case ACOUSTICAL: return "Measurement is done using the acoustical principle.";
|
||||
case MANUAL: return "Measurement is done using the manual principle.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -194,7 +194,7 @@ public class DeviceComponent extends DomainResource {
|
|||
case MECHANICAL: return "MSP Mechanical";
|
||||
case ACOUSTICAL: return "MSP Acoustical";
|
||||
case MANUAL: return "MSP Manual";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -262,7 +262,9 @@ public class DeviceComponent extends DomainResource {
|
|||
throw new FHIRException("Unknown MeasmntPrinciple code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MeasmntPrinciple code) {
|
||||
if (code == MeasmntPrinciple.OTHER)
|
||||
if (code == MeasmntPrinciple.NULL)
|
||||
return null;
|
||||
if (code == MeasmntPrinciple.OTHER)
|
||||
return "other";
|
||||
if (code == MeasmntPrinciple.CHEMICAL)
|
||||
return "chemical";
|
||||
|
@ -285,7 +287,7 @@ public class DeviceComponent extends DomainResource {
|
|||
if (code == MeasmntPrinciple.MANUAL)
|
||||
return "manual";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(MeasmntPrinciple code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -93,7 +93,7 @@ public class DeviceMetric extends DomainResource {
|
|||
case OFF: return "off";
|
||||
case STANDBY: return "standby";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -103,7 +103,7 @@ public class DeviceMetric extends DomainResource {
|
|||
case OFF: return "http://hl7.org/fhir/metric-operational-status";
|
||||
case STANDBY: return "http://hl7.org/fhir/metric-operational-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/metric-operational-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -113,7 +113,7 @@ public class DeviceMetric extends DomainResource {
|
|||
case OFF: return "The DeviceMetric is not operating.";
|
||||
case STANDBY: return "The DeviceMetric is operating, but will not generate any DeviceObservations.";
|
||||
case ENTEREDINERROR: return "The DeviceMetric was entered in error.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -123,7 +123,7 @@ public class DeviceMetric extends DomainResource {
|
|||
case OFF: return "Off";
|
||||
case STANDBY: return "Standby";
|
||||
case ENTEREDINERROR: return "Entered In Error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -163,7 +163,9 @@ public class DeviceMetric extends DomainResource {
|
|||
throw new FHIRException("Unknown DeviceMetricOperationalStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DeviceMetricOperationalStatus code) {
|
||||
if (code == DeviceMetricOperationalStatus.ON)
|
||||
if (code == DeviceMetricOperationalStatus.NULL)
|
||||
return null;
|
||||
if (code == DeviceMetricOperationalStatus.ON)
|
||||
return "on";
|
||||
if (code == DeviceMetricOperationalStatus.OFF)
|
||||
return "off";
|
||||
|
@ -172,7 +174,7 @@ public class DeviceMetric extends DomainResource {
|
|||
if (code == DeviceMetricOperationalStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(DeviceMetricOperationalStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -249,7 +251,7 @@ public class DeviceMetric extends DomainResource {
|
|||
case MAGENTA: return "magenta";
|
||||
case CYAN: return "cyan";
|
||||
case WHITE: return "white";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -263,7 +265,7 @@ public class DeviceMetric extends DomainResource {
|
|||
case MAGENTA: return "http://hl7.org/fhir/metric-color";
|
||||
case CYAN: return "http://hl7.org/fhir/metric-color";
|
||||
case WHITE: return "http://hl7.org/fhir/metric-color";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -277,7 +279,7 @@ public class DeviceMetric extends DomainResource {
|
|||
case MAGENTA: return "Color for representation - magenta.";
|
||||
case CYAN: return "Color for representation - cyan.";
|
||||
case WHITE: return "Color for representation - white.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -291,7 +293,7 @@ public class DeviceMetric extends DomainResource {
|
|||
case MAGENTA: return "Color Magenta";
|
||||
case CYAN: return "Color Cyan";
|
||||
case WHITE: return "Color White";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -347,7 +349,9 @@ public class DeviceMetric extends DomainResource {
|
|||
throw new FHIRException("Unknown DeviceMetricColor code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DeviceMetricColor code) {
|
||||
if (code == DeviceMetricColor.BLACK)
|
||||
if (code == DeviceMetricColor.NULL)
|
||||
return null;
|
||||
if (code == DeviceMetricColor.BLACK)
|
||||
return "black";
|
||||
if (code == DeviceMetricColor.RED)
|
||||
return "red";
|
||||
|
@ -364,7 +368,7 @@ public class DeviceMetric extends DomainResource {
|
|||
if (code == DeviceMetricColor.WHITE)
|
||||
return "white";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(DeviceMetricColor code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -413,7 +417,7 @@ public class DeviceMetric extends DomainResource {
|
|||
case SETTING: return "setting";
|
||||
case CALCULATION: return "calculation";
|
||||
case UNSPECIFIED: return "unspecified";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -423,7 +427,7 @@ public class DeviceMetric extends DomainResource {
|
|||
case SETTING: return "http://hl7.org/fhir/metric-category";
|
||||
case CALCULATION: return "http://hl7.org/fhir/metric-category";
|
||||
case UNSPECIFIED: return "http://hl7.org/fhir/metric-category";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -433,7 +437,7 @@ public class DeviceMetric extends DomainResource {
|
|||
case SETTING: return "DeviceObservations generated for this DeviceMetric is a setting that will influence the behavior of the Device.";
|
||||
case CALCULATION: return "DeviceObservations generated for this DeviceMetric are calculated.";
|
||||
case UNSPECIFIED: return "The category of this DeviceMetric is unspecified.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -443,7 +447,7 @@ public class DeviceMetric extends DomainResource {
|
|||
case SETTING: return "Setting";
|
||||
case CALCULATION: return "Calculation";
|
||||
case UNSPECIFIED: return "Unspecified";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -483,7 +487,9 @@ public class DeviceMetric extends DomainResource {
|
|||
throw new FHIRException("Unknown DeviceMetricCategory code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DeviceMetricCategory code) {
|
||||
if (code == DeviceMetricCategory.MEASUREMENT)
|
||||
if (code == DeviceMetricCategory.NULL)
|
||||
return null;
|
||||
if (code == DeviceMetricCategory.MEASUREMENT)
|
||||
return "measurement";
|
||||
if (code == DeviceMetricCategory.SETTING)
|
||||
return "setting";
|
||||
|
@ -492,7 +498,7 @@ public class DeviceMetric extends DomainResource {
|
|||
if (code == DeviceMetricCategory.UNSPECIFIED)
|
||||
return "unspecified";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(DeviceMetricCategory code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -541,7 +547,7 @@ public class DeviceMetric extends DomainResource {
|
|||
case OFFSET: return "offset";
|
||||
case GAIN: return "gain";
|
||||
case TWOPOINT: return "two-point";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -551,7 +557,7 @@ public class DeviceMetric extends DomainResource {
|
|||
case OFFSET: return "http://hl7.org/fhir/metric-calibration-type";
|
||||
case GAIN: return "http://hl7.org/fhir/metric-calibration-type";
|
||||
case TWOPOINT: return "http://hl7.org/fhir/metric-calibration-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -561,7 +567,7 @@ public class DeviceMetric extends DomainResource {
|
|||
case OFFSET: return "Offset metric calibration method";
|
||||
case GAIN: return "Gain metric calibration method";
|
||||
case TWOPOINT: return "Two-point metric calibration method";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -571,7 +577,7 @@ public class DeviceMetric extends DomainResource {
|
|||
case OFFSET: return "Offset";
|
||||
case GAIN: return "Gain";
|
||||
case TWOPOINT: return "Two Point";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -611,7 +617,9 @@ public class DeviceMetric extends DomainResource {
|
|||
throw new FHIRException("Unknown DeviceMetricCalibrationType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DeviceMetricCalibrationType code) {
|
||||
if (code == DeviceMetricCalibrationType.UNSPECIFIED)
|
||||
if (code == DeviceMetricCalibrationType.NULL)
|
||||
return null;
|
||||
if (code == DeviceMetricCalibrationType.UNSPECIFIED)
|
||||
return "unspecified";
|
||||
if (code == DeviceMetricCalibrationType.OFFSET)
|
||||
return "offset";
|
||||
|
@ -620,7 +628,7 @@ public class DeviceMetric extends DomainResource {
|
|||
if (code == DeviceMetricCalibrationType.TWOPOINT)
|
||||
return "two-point";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(DeviceMetricCalibrationType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -669,7 +677,7 @@ public class DeviceMetric extends DomainResource {
|
|||
case CALIBRATIONREQUIRED: return "calibration-required";
|
||||
case CALIBRATED: return "calibrated";
|
||||
case UNSPECIFIED: return "unspecified";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -679,7 +687,7 @@ public class DeviceMetric extends DomainResource {
|
|||
case CALIBRATIONREQUIRED: return "http://hl7.org/fhir/metric-calibration-state";
|
||||
case CALIBRATED: return "http://hl7.org/fhir/metric-calibration-state";
|
||||
case UNSPECIFIED: return "http://hl7.org/fhir/metric-calibration-state";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -689,7 +697,7 @@ public class DeviceMetric extends DomainResource {
|
|||
case CALIBRATIONREQUIRED: return "The metric needs to be calibrated.";
|
||||
case CALIBRATED: return "The metric has been calibrated.";
|
||||
case UNSPECIFIED: return "The state of calibration of this metric is unspecified.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -699,7 +707,7 @@ public class DeviceMetric extends DomainResource {
|
|||
case CALIBRATIONREQUIRED: return "Calibration Required";
|
||||
case CALIBRATED: return "Calibrated";
|
||||
case UNSPECIFIED: return "Unspecified";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -739,7 +747,9 @@ public class DeviceMetric extends DomainResource {
|
|||
throw new FHIRException("Unknown DeviceMetricCalibrationState code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DeviceMetricCalibrationState code) {
|
||||
if (code == DeviceMetricCalibrationState.NOTCALIBRATED)
|
||||
if (code == DeviceMetricCalibrationState.NULL)
|
||||
return null;
|
||||
if (code == DeviceMetricCalibrationState.NOTCALIBRATED)
|
||||
return "not-calibrated";
|
||||
if (code == DeviceMetricCalibrationState.CALIBRATIONREQUIRED)
|
||||
return "calibration-required";
|
||||
|
@ -748,7 +758,7 @@ public class DeviceMetric extends DomainResource {
|
|||
if (code == DeviceMetricCalibrationState.UNSPECIFIED)
|
||||
return "unspecified";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(DeviceMetricCalibrationState code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -115,7 +115,7 @@ public class DeviceRequest extends DomainResource {
|
|||
case COMPLETED: return "completed";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case UNKNOWN: return "unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -128,7 +128,7 @@ public class DeviceRequest extends DomainResource {
|
|||
case COMPLETED: return "http://hl7.org/fhir/request-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/request-status";
|
||||
case UNKNOWN: return "http://hl7.org/fhir/request-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -141,7 +141,7 @@ public class DeviceRequest extends DomainResource {
|
|||
case COMPLETED: return "Activity against the request has been sufficiently completed to the satisfaction of the requester";
|
||||
case ENTEREDINERROR: return "This electronic record should never have existed, though it is possible that real-world decisions were based on it. (If real-world activity has occurred, the status should be \"cancelled\" rather than \"entered-in-error\".)";
|
||||
case UNKNOWN: return "The authoring system does not know which of the status values currently applies for this request. Note: This concept is not to be used for \"other\" . One of the listed statuses is presumed to apply, but the system creating the request doesn't know.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -154,7 +154,7 @@ public class DeviceRequest extends DomainResource {
|
|||
case COMPLETED: return "Completed";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case UNKNOWN: return "Unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -206,7 +206,9 @@ public class DeviceRequest extends DomainResource {
|
|||
throw new FHIRException("Unknown DeviceRequestStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DeviceRequestStatus code) {
|
||||
if (code == DeviceRequestStatus.DRAFT)
|
||||
if (code == DeviceRequestStatus.NULL)
|
||||
return null;
|
||||
if (code == DeviceRequestStatus.DRAFT)
|
||||
return "draft";
|
||||
if (code == DeviceRequestStatus.ACTIVE)
|
||||
return "active";
|
||||
|
@ -221,7 +223,7 @@ public class DeviceRequest extends DomainResource {
|
|||
if (code == DeviceRequestStatus.UNKNOWN)
|
||||
return "unknown";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(DeviceRequestStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -270,7 +272,7 @@ public class DeviceRequest extends DomainResource {
|
|||
case URGENT: return "urgent";
|
||||
case ASAP: return "asap";
|
||||
case STAT: return "stat";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -280,7 +282,7 @@ public class DeviceRequest extends DomainResource {
|
|||
case URGENT: return "http://hl7.org/fhir/request-priority";
|
||||
case ASAP: return "http://hl7.org/fhir/request-priority";
|
||||
case STAT: return "http://hl7.org/fhir/request-priority";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -290,7 +292,7 @@ public class DeviceRequest extends DomainResource {
|
|||
case URGENT: return "The request should be actioned promptly - higher priority than routine";
|
||||
case ASAP: return "The request should be actioned as soon as possible - higher priority than urgent";
|
||||
case STAT: return "The request should be actioned immediately - highest possible priority. E.g. an emergency";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -300,7 +302,7 @@ public class DeviceRequest extends DomainResource {
|
|||
case URGENT: return "Urgent";
|
||||
case ASAP: return "ASAP";
|
||||
case STAT: return "STAT";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -340,7 +342,9 @@ public class DeviceRequest extends DomainResource {
|
|||
throw new FHIRException("Unknown RequestPriority code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(RequestPriority code) {
|
||||
if (code == RequestPriority.ROUTINE)
|
||||
if (code == RequestPriority.NULL)
|
||||
return null;
|
||||
if (code == RequestPriority.ROUTINE)
|
||||
return "routine";
|
||||
if (code == RequestPriority.URGENT)
|
||||
return "urgent";
|
||||
|
@ -349,7 +353,7 @@ public class DeviceRequest extends DomainResource {
|
|||
if (code == RequestPriority.STAT)
|
||||
return "stat";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(RequestPriority code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -106,7 +106,7 @@ public class DeviceUseStatement extends DomainResource {
|
|||
case INTENDED: return "intended";
|
||||
case STOPPED: return "stopped";
|
||||
case ONHOLD: return "on-hold";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -118,7 +118,7 @@ public class DeviceUseStatement extends DomainResource {
|
|||
case INTENDED: return "http://hl7.org/fhir/device-statement-status";
|
||||
case STOPPED: return "http://hl7.org/fhir/device-statement-status";
|
||||
case ONHOLD: return "http://hl7.org/fhir/device-statement-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -130,7 +130,7 @@ public class DeviceUseStatement extends DomainResource {
|
|||
case INTENDED: return "The device may be used at some time in the future.";
|
||||
case STOPPED: return "Actions implied by the statement have been permanently halted, before all of them occurred.";
|
||||
case ONHOLD: return "Actions implied by the statement have been temporarily halted, but are expected to continue later. May also be called \"suspended\".";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -142,7 +142,7 @@ public class DeviceUseStatement extends DomainResource {
|
|||
case INTENDED: return "Intended";
|
||||
case STOPPED: return "Stopped";
|
||||
case ONHOLD: return "On Hold";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -190,7 +190,9 @@ public class DeviceUseStatement extends DomainResource {
|
|||
throw new FHIRException("Unknown DeviceUseStatementStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DeviceUseStatementStatus code) {
|
||||
if (code == DeviceUseStatementStatus.ACTIVE)
|
||||
if (code == DeviceUseStatementStatus.NULL)
|
||||
return null;
|
||||
if (code == DeviceUseStatementStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == DeviceUseStatementStatus.COMPLETED)
|
||||
return "completed";
|
||||
|
@ -203,7 +205,7 @@ public class DeviceUseStatement extends DomainResource {
|
|||
if (code == DeviceUseStatementStatus.ONHOLD)
|
||||
return "on-hold";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(DeviceUseStatementStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -137,7 +137,7 @@ public class DiagnosticReport extends DomainResource {
|
|||
case CANCELLED: return "cancelled";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case UNKNOWN: return "unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -153,7 +153,7 @@ public class DiagnosticReport extends DomainResource {
|
|||
case CANCELLED: return "http://hl7.org/fhir/diagnostic-report-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/diagnostic-report-status";
|
||||
case UNKNOWN: return "http://hl7.org/fhir/diagnostic-report-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -169,7 +169,7 @@ public class DiagnosticReport extends DomainResource {
|
|||
case CANCELLED: return "The report is unavailable because the measurement was not started or not completed (also sometimes called \"aborted\").";
|
||||
case ENTEREDINERROR: return "The report has been withdrawn following a previous final release. This electronic record should never have existed, though it is possible that real-world decisions were based on it. (If real-world activity has occurred, the status should be \"cancelled\" rather than \"entered-in-error\".)";
|
||||
case UNKNOWN: return "The authoring system does not know which of the status values currently applies for this request. Note: This concept is not to be used for \"other\" - one of the listed statuses is presumed to apply, it's just not known which one.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -185,7 +185,7 @@ public class DiagnosticReport extends DomainResource {
|
|||
case CANCELLED: return "Cancelled";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case UNKNOWN: return "Unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -249,7 +249,9 @@ public class DiagnosticReport extends DomainResource {
|
|||
throw new FHIRException("Unknown DiagnosticReportStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DiagnosticReportStatus code) {
|
||||
if (code == DiagnosticReportStatus.REGISTERED)
|
||||
if (code == DiagnosticReportStatus.NULL)
|
||||
return null;
|
||||
if (code == DiagnosticReportStatus.REGISTERED)
|
||||
return "registered";
|
||||
if (code == DiagnosticReportStatus.PARTIAL)
|
||||
return "partial";
|
||||
|
@ -270,7 +272,7 @@ public class DiagnosticReport extends DomainResource {
|
|||
if (code == DiagnosticReportStatus.UNKNOWN)
|
||||
return "unknown";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(DiagnosticReportStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -96,7 +96,7 @@ public class DocumentReference extends DomainResource {
|
|||
case FINAL: return "final";
|
||||
case AMENDED: return "amended";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -106,7 +106,7 @@ public class DocumentReference extends DomainResource {
|
|||
case FINAL: return "http://hl7.org/fhir/composition-status";
|
||||
case AMENDED: return "http://hl7.org/fhir/composition-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/composition-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -116,7 +116,7 @@ public class DocumentReference extends DomainResource {
|
|||
case FINAL: return "This version of the composition is complete and verified by an appropriate person and no further work is planned. Any subsequent updates would be on a new version of the composition.";
|
||||
case AMENDED: return "The composition content or the referenced resources have been modified (edited or added to) subsequent to being released as \"final\" and the composition is complete and verified by an authorized person.";
|
||||
case ENTEREDINERROR: return "The composition or document was originally created/issued in error, and this is an amendment that marks that the entire series should not be considered as valid.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -126,7 +126,7 @@ public class DocumentReference extends DomainResource {
|
|||
case FINAL: return "Final";
|
||||
case AMENDED: return "Amended";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -166,7 +166,9 @@ public class DocumentReference extends DomainResource {
|
|||
throw new FHIRException("Unknown ReferredDocumentStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ReferredDocumentStatus code) {
|
||||
if (code == ReferredDocumentStatus.PRELIMINARY)
|
||||
if (code == ReferredDocumentStatus.NULL)
|
||||
return null;
|
||||
if (code == ReferredDocumentStatus.PRELIMINARY)
|
||||
return "preliminary";
|
||||
if (code == ReferredDocumentStatus.FINAL)
|
||||
return "final";
|
||||
|
@ -175,7 +177,7 @@ public class DocumentReference extends DomainResource {
|
|||
if (code == ReferredDocumentStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ReferredDocumentStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -224,7 +226,7 @@ public class DocumentReference extends DomainResource {
|
|||
case TRANSFORMS: return "transforms";
|
||||
case SIGNS: return "signs";
|
||||
case APPENDS: return "appends";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -234,7 +236,7 @@ public class DocumentReference extends DomainResource {
|
|||
case TRANSFORMS: return "http://hl7.org/fhir/document-relationship-type";
|
||||
case SIGNS: return "http://hl7.org/fhir/document-relationship-type";
|
||||
case APPENDS: return "http://hl7.org/fhir/document-relationship-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -244,7 +246,7 @@ public class DocumentReference extends DomainResource {
|
|||
case TRANSFORMS: return "This document was generated by transforming the target document (e.g. format or language conversion).";
|
||||
case SIGNS: return "This document is a signature of the target document.";
|
||||
case APPENDS: return "This document adds additional information to the target document.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -254,7 +256,7 @@ public class DocumentReference extends DomainResource {
|
|||
case TRANSFORMS: return "Transforms";
|
||||
case SIGNS: return "Signs";
|
||||
case APPENDS: return "Appends";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -294,7 +296,9 @@ public class DocumentReference extends DomainResource {
|
|||
throw new FHIRException("Unknown DocumentRelationshipType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DocumentRelationshipType code) {
|
||||
if (code == DocumentRelationshipType.REPLACES)
|
||||
if (code == DocumentRelationshipType.NULL)
|
||||
return null;
|
||||
if (code == DocumentRelationshipType.REPLACES)
|
||||
return "replaces";
|
||||
if (code == DocumentRelationshipType.TRANSFORMS)
|
||||
return "transforms";
|
||||
|
@ -303,7 +307,7 @@ public class DocumentReference extends DomainResource {
|
|||
if (code == DocumentRelationshipType.APPENDS)
|
||||
return "appends";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(DocumentRelationshipType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -104,7 +104,7 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
case TYPEATTR: return "typeAttr";
|
||||
case CDATEXT: return "cdaText";
|
||||
case XHTML: return "xhtml";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -115,7 +115,7 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
case TYPEATTR: return "http://hl7.org/fhir/property-representation";
|
||||
case CDATEXT: return "http://hl7.org/fhir/property-representation";
|
||||
case XHTML: return "http://hl7.org/fhir/property-representation";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -126,7 +126,7 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
case TYPEATTR: return "The type of this element is indicated using xsi:type";
|
||||
case CDATEXT: return "Use CDA narrative instead of XHTML";
|
||||
case XHTML: return "The property is represented using XHTML";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -137,7 +137,7 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
case TYPEATTR: return "Type Attribute";
|
||||
case CDATEXT: return "CDA Text Format";
|
||||
case XHTML: return "XHTML";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -181,7 +181,9 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
throw new FHIRException("Unknown PropertyRepresentation code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(PropertyRepresentation code) {
|
||||
if (code == PropertyRepresentation.XMLATTR)
|
||||
if (code == PropertyRepresentation.NULL)
|
||||
return null;
|
||||
if (code == PropertyRepresentation.XMLATTR)
|
||||
return "xmlAttr";
|
||||
if (code == PropertyRepresentation.XMLTEXT)
|
||||
return "xmlText";
|
||||
|
@ -192,7 +194,7 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
if (code == PropertyRepresentation.XHTML)
|
||||
return "xhtml";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(PropertyRepresentation code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -248,7 +250,7 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
case PATTERN: return "pattern";
|
||||
case TYPE: return "type";
|
||||
case PROFILE: return "profile";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -259,7 +261,7 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
case PATTERN: return "http://hl7.org/fhir/discriminator-type";
|
||||
case TYPE: return "http://hl7.org/fhir/discriminator-type";
|
||||
case PROFILE: return "http://hl7.org/fhir/discriminator-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -270,7 +272,7 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
case PATTERN: return "The slices have different values in the nominated element, as determined by testing them against the applicable ElementDefinition.pattern[x]";
|
||||
case TYPE: return "The slices are differentiated by type of the nominated element to a specifed profile";
|
||||
case PROFILE: return "The slices are differentiated by conformance of the nominated element to a specifed profile";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -281,7 +283,7 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
case PATTERN: return "Pattern";
|
||||
case TYPE: return "Type";
|
||||
case PROFILE: return "Profile";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -325,7 +327,9 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
throw new FHIRException("Unknown DiscriminatorType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DiscriminatorType code) {
|
||||
if (code == DiscriminatorType.VALUE)
|
||||
if (code == DiscriminatorType.NULL)
|
||||
return null;
|
||||
if (code == DiscriminatorType.VALUE)
|
||||
return "value";
|
||||
if (code == DiscriminatorType.EXISTS)
|
||||
return "exists";
|
||||
|
@ -336,7 +340,7 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
if (code == DiscriminatorType.PROFILE)
|
||||
return "profile";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(DiscriminatorType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -378,7 +382,7 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
case CLOSED: return "closed";
|
||||
case OPEN: return "open";
|
||||
case OPENATEND: return "openAtEnd";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -387,7 +391,7 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
case CLOSED: return "http://hl7.org/fhir/resource-slicing-rules";
|
||||
case OPEN: return "http://hl7.org/fhir/resource-slicing-rules";
|
||||
case OPENATEND: return "http://hl7.org/fhir/resource-slicing-rules";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -396,7 +400,7 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
case CLOSED: return "No additional content is allowed other than that described by the slices in this profile.";
|
||||
case OPEN: return "Additional content is allowed anywhere in the list.";
|
||||
case OPENATEND: return "Additional content is allowed, but only at the end of the list. Note that using this requires that the slices be ordered, which makes it hard to share uses. This should only be done where absolutely required.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -405,7 +409,7 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
case CLOSED: return "Closed";
|
||||
case OPEN: return "Open";
|
||||
case OPENATEND: return "Open at End";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -441,14 +445,16 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
throw new FHIRException("Unknown SlicingRules code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(SlicingRules code) {
|
||||
if (code == SlicingRules.CLOSED)
|
||||
if (code == SlicingRules.NULL)
|
||||
return null;
|
||||
if (code == SlicingRules.CLOSED)
|
||||
return "closed";
|
||||
if (code == SlicingRules.OPEN)
|
||||
return "open";
|
||||
if (code == SlicingRules.OPENATEND)
|
||||
return "openAtEnd";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(SlicingRules code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -490,7 +496,7 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
case CONTAINED: return "contained";
|
||||
case REFERENCED: return "referenced";
|
||||
case BUNDLED: return "bundled";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -499,7 +505,7 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
case CONTAINED: return "http://hl7.org/fhir/resource-aggregation-mode";
|
||||
case REFERENCED: return "http://hl7.org/fhir/resource-aggregation-mode";
|
||||
case BUNDLED: return "http://hl7.org/fhir/resource-aggregation-mode";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -508,7 +514,7 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
case CONTAINED: return "The reference is a local reference to a contained resource.";
|
||||
case REFERENCED: return "The reference to a resource that has to be resolved externally to the resource that includes the reference.";
|
||||
case BUNDLED: return "The resource the reference points to will be found in the same bundle as the resource that includes the reference.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -517,7 +523,7 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
case CONTAINED: return "Contained";
|
||||
case REFERENCED: return "Referenced";
|
||||
case BUNDLED: return "Bundled";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -553,14 +559,16 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
throw new FHIRException("Unknown AggregationMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AggregationMode code) {
|
||||
if (code == AggregationMode.CONTAINED)
|
||||
if (code == AggregationMode.NULL)
|
||||
return null;
|
||||
if (code == AggregationMode.CONTAINED)
|
||||
return "contained";
|
||||
if (code == AggregationMode.REFERENCED)
|
||||
return "referenced";
|
||||
if (code == AggregationMode.BUNDLED)
|
||||
return "bundled";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(AggregationMode code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -602,7 +610,7 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
case EITHER: return "either";
|
||||
case INDEPENDENT: return "independent";
|
||||
case SPECIFIC: return "specific";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -611,7 +619,7 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
case EITHER: return "http://hl7.org/fhir/reference-version-rules";
|
||||
case INDEPENDENT: return "http://hl7.org/fhir/reference-version-rules";
|
||||
case SPECIFIC: return "http://hl7.org/fhir/reference-version-rules";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -620,7 +628,7 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
case EITHER: return "The reference may be either version independent or version specific";
|
||||
case INDEPENDENT: return "The reference must be version independent";
|
||||
case SPECIFIC: return "The reference must be version specific";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -629,7 +637,7 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
case EITHER: return "Either Specific or independent";
|
||||
case INDEPENDENT: return "Version independent";
|
||||
case SPECIFIC: return "Version Specific";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -665,14 +673,16 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
throw new FHIRException("Unknown ReferenceVersionRules code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ReferenceVersionRules code) {
|
||||
if (code == ReferenceVersionRules.EITHER)
|
||||
if (code == ReferenceVersionRules.NULL)
|
||||
return null;
|
||||
if (code == ReferenceVersionRules.EITHER)
|
||||
return "either";
|
||||
if (code == ReferenceVersionRules.INDEPENDENT)
|
||||
return "independent";
|
||||
if (code == ReferenceVersionRules.SPECIFIC)
|
||||
return "specific";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ReferenceVersionRules code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -707,7 +717,7 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
switch (this) {
|
||||
case ERROR: return "error";
|
||||
case WARNING: return "warning";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -715,7 +725,7 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
switch (this) {
|
||||
case ERROR: return "http://hl7.org/fhir/constraint-severity";
|
||||
case WARNING: return "http://hl7.org/fhir/constraint-severity";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -723,7 +733,7 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
switch (this) {
|
||||
case ERROR: return "If the constraint is violated, the resource is not conformant.";
|
||||
case WARNING: return "If the constraint is violated, the resource is conformant, but it is not necessarily following best practice.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -731,7 +741,7 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
switch (this) {
|
||||
case ERROR: return "Error";
|
||||
case WARNING: return "Warning";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -763,12 +773,14 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
throw new FHIRException("Unknown ConstraintSeverity code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ConstraintSeverity code) {
|
||||
if (code == ConstraintSeverity.ERROR)
|
||||
if (code == ConstraintSeverity.NULL)
|
||||
return null;
|
||||
if (code == ConstraintSeverity.ERROR)
|
||||
return "error";
|
||||
if (code == ConstraintSeverity.WARNING)
|
||||
return "warning";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ConstraintSeverity code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -93,7 +93,7 @@ public class EligibilityRequest extends DomainResource {
|
|||
case CANCELLED: return "cancelled";
|
||||
case DRAFT: return "draft";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -103,7 +103,7 @@ public class EligibilityRequest extends DomainResource {
|
|||
case CANCELLED: return "http://hl7.org/fhir/fm-status";
|
||||
case DRAFT: return "http://hl7.org/fhir/fm-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/fm-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -113,7 +113,7 @@ public class EligibilityRequest extends DomainResource {
|
|||
case CANCELLED: return "The instance is withdrawn, rescinded or reversed.";
|
||||
case DRAFT: return "A new instance the contents of which is not complete.";
|
||||
case ENTEREDINERROR: return "The instance was entered in error.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -123,7 +123,7 @@ public class EligibilityRequest extends DomainResource {
|
|||
case CANCELLED: return "Cancelled";
|
||||
case DRAFT: return "Draft";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -163,7 +163,9 @@ public class EligibilityRequest extends DomainResource {
|
|||
throw new FHIRException("Unknown EligibilityRequestStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(EligibilityRequestStatus code) {
|
||||
if (code == EligibilityRequestStatus.ACTIVE)
|
||||
if (code == EligibilityRequestStatus.NULL)
|
||||
return null;
|
||||
if (code == EligibilityRequestStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == EligibilityRequestStatus.CANCELLED)
|
||||
return "cancelled";
|
||||
|
@ -172,7 +174,7 @@ public class EligibilityRequest extends DomainResource {
|
|||
if (code == EligibilityRequestStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(EligibilityRequestStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@ public class EligibilityResponse extends DomainResource {
|
|||
case CANCELLED: return "cancelled";
|
||||
case DRAFT: return "draft";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -105,7 +105,7 @@ public class EligibilityResponse extends DomainResource {
|
|||
case CANCELLED: return "http://hl7.org/fhir/fm-status";
|
||||
case DRAFT: return "http://hl7.org/fhir/fm-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/fm-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -115,7 +115,7 @@ public class EligibilityResponse extends DomainResource {
|
|||
case CANCELLED: return "The instance is withdrawn, rescinded or reversed.";
|
||||
case DRAFT: return "A new instance the contents of which is not complete.";
|
||||
case ENTEREDINERROR: return "The instance was entered in error.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -125,7 +125,7 @@ public class EligibilityResponse extends DomainResource {
|
|||
case CANCELLED: return "Cancelled";
|
||||
case DRAFT: return "Draft";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -165,7 +165,9 @@ public class EligibilityResponse extends DomainResource {
|
|||
throw new FHIRException("Unknown EligibilityResponseStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(EligibilityResponseStatus code) {
|
||||
if (code == EligibilityResponseStatus.ACTIVE)
|
||||
if (code == EligibilityResponseStatus.NULL)
|
||||
return null;
|
||||
if (code == EligibilityResponseStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == EligibilityResponseStatus.CANCELLED)
|
||||
return "cancelled";
|
||||
|
@ -174,7 +176,7 @@ public class EligibilityResponse extends DomainResource {
|
|||
if (code == EligibilityResponseStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(EligibilityResponseStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -127,7 +127,7 @@ public class Encounter extends DomainResource {
|
|||
case CANCELLED: return "cancelled";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case UNKNOWN: return "unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -142,7 +142,7 @@ public class Encounter extends DomainResource {
|
|||
case CANCELLED: return "http://hl7.org/fhir/encounter-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/encounter-status";
|
||||
case UNKNOWN: return "http://hl7.org/fhir/encounter-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -157,7 +157,7 @@ public class Encounter extends DomainResource {
|
|||
case CANCELLED: return "The Encounter has ended before it has begun.";
|
||||
case ENTEREDINERROR: return "This instance should not have been part of this patient's medical record.";
|
||||
case UNKNOWN: return "The encounter status is unknown. Note that \"unknown\" is a value of last resort and every attempt should be made to provide a meaningful value other than \"unknown\".";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -172,7 +172,7 @@ public class Encounter extends DomainResource {
|
|||
case CANCELLED: return "Cancelled";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case UNKNOWN: return "Unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -232,7 +232,9 @@ public class Encounter extends DomainResource {
|
|||
throw new FHIRException("Unknown EncounterStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(EncounterStatus code) {
|
||||
if (code == EncounterStatus.PLANNED)
|
||||
if (code == EncounterStatus.NULL)
|
||||
return null;
|
||||
if (code == EncounterStatus.PLANNED)
|
||||
return "planned";
|
||||
if (code == EncounterStatus.ARRIVED)
|
||||
return "arrived";
|
||||
|
@ -251,7 +253,7 @@ public class Encounter extends DomainResource {
|
|||
if (code == EncounterStatus.UNKNOWN)
|
||||
return "unknown";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(EncounterStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -304,7 +306,7 @@ Not to be used when the patient is currently at the location
|
|||
case ACTIVE: return "active";
|
||||
case RESERVED: return "reserved";
|
||||
case COMPLETED: return "completed";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -314,7 +316,7 @@ Not to be used when the patient is currently at the location
|
|||
case ACTIVE: return "http://hl7.org/fhir/encounter-location-status";
|
||||
case RESERVED: return "http://hl7.org/fhir/encounter-location-status";
|
||||
case COMPLETED: return "http://hl7.org/fhir/encounter-location-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -324,7 +326,7 @@ Not to be used when the patient is currently at the location
|
|||
case ACTIVE: return "The patient is currently at this location, or was between the period specified.\r\rA system may update these records when the patient leaves the location to either reserved, or completed";
|
||||
case RESERVED: return "This location is held empty for this patient.";
|
||||
case COMPLETED: return "The patient was at this location during the period specified.\r\rNot to be used when the patient is currently at the location";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -334,7 +336,7 @@ Not to be used when the patient is currently at the location
|
|||
case ACTIVE: return "Active";
|
||||
case RESERVED: return "Reserved";
|
||||
case COMPLETED: return "Completed";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -374,7 +376,9 @@ Not to be used when the patient is currently at the location
|
|||
throw new FHIRException("Unknown EncounterLocationStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(EncounterLocationStatus code) {
|
||||
if (code == EncounterLocationStatus.PLANNED)
|
||||
if (code == EncounterLocationStatus.NULL)
|
||||
return null;
|
||||
if (code == EncounterLocationStatus.PLANNED)
|
||||
return "planned";
|
||||
if (code == EncounterLocationStatus.ACTIVE)
|
||||
return "active";
|
||||
|
@ -383,7 +387,7 @@ Not to be used when the patient is currently at the location
|
|||
if (code == EncounterLocationStatus.COMPLETED)
|
||||
return "completed";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(EncounterLocationStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -105,7 +105,7 @@ public class Endpoint extends DomainResource {
|
|||
case OFF: return "off";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case TEST: return "test";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -117,7 +117,7 @@ public class Endpoint extends DomainResource {
|
|||
case OFF: return "http://hl7.org/fhir/endpoint-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/endpoint-status";
|
||||
case TEST: return "http://hl7.org/fhir/endpoint-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -129,7 +129,7 @@ public class Endpoint extends DomainResource {
|
|||
case OFF: return "This endpoint is no longer to be used";
|
||||
case ENTEREDINERROR: return "This instance should not have been part of this patient's medical record.";
|
||||
case TEST: return "This endpoint is not intended for production usage.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -141,7 +141,7 @@ public class Endpoint extends DomainResource {
|
|||
case OFF: return "Off";
|
||||
case ENTEREDINERROR: return "Entered in error";
|
||||
case TEST: return "Test";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -189,7 +189,9 @@ public class Endpoint extends DomainResource {
|
|||
throw new FHIRException("Unknown EndpointStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(EndpointStatus code) {
|
||||
if (code == EndpointStatus.ACTIVE)
|
||||
if (code == EndpointStatus.NULL)
|
||||
return null;
|
||||
if (code == EndpointStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == EndpointStatus.SUSPENDED)
|
||||
return "suspended";
|
||||
|
@ -202,7 +204,7 @@ public class Endpoint extends DomainResource {
|
|||
if (code == EndpointStatus.TEST)
|
||||
return "test";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(EndpointStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -91,7 +91,7 @@ public class EnrollmentRequest extends DomainResource {
|
|||
case CANCELLED: return "cancelled";
|
||||
case DRAFT: return "draft";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -101,7 +101,7 @@ public class EnrollmentRequest extends DomainResource {
|
|||
case CANCELLED: return "http://hl7.org/fhir/fm-status";
|
||||
case DRAFT: return "http://hl7.org/fhir/fm-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/fm-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -111,7 +111,7 @@ public class EnrollmentRequest extends DomainResource {
|
|||
case CANCELLED: return "The instance is withdrawn, rescinded or reversed.";
|
||||
case DRAFT: return "A new instance the contents of which is not complete.";
|
||||
case ENTEREDINERROR: return "The instance was entered in error.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -121,7 +121,7 @@ public class EnrollmentRequest extends DomainResource {
|
|||
case CANCELLED: return "Cancelled";
|
||||
case DRAFT: return "Draft";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -161,7 +161,9 @@ public class EnrollmentRequest extends DomainResource {
|
|||
throw new FHIRException("Unknown EnrollmentRequestStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(EnrollmentRequestStatus code) {
|
||||
if (code == EnrollmentRequestStatus.ACTIVE)
|
||||
if (code == EnrollmentRequestStatus.NULL)
|
||||
return null;
|
||||
if (code == EnrollmentRequestStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == EnrollmentRequestStatus.CANCELLED)
|
||||
return "cancelled";
|
||||
|
@ -170,7 +172,7 @@ public class EnrollmentRequest extends DomainResource {
|
|||
if (code == EnrollmentRequestStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(EnrollmentRequestStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -92,7 +92,7 @@ public class EnrollmentResponse extends DomainResource {
|
|||
case CANCELLED: return "cancelled";
|
||||
case DRAFT: return "draft";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ public class EnrollmentResponse extends DomainResource {
|
|||
case CANCELLED: return "http://hl7.org/fhir/fm-status";
|
||||
case DRAFT: return "http://hl7.org/fhir/fm-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/fm-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -112,7 +112,7 @@ public class EnrollmentResponse extends DomainResource {
|
|||
case CANCELLED: return "The instance is withdrawn, rescinded or reversed.";
|
||||
case DRAFT: return "A new instance the contents of which is not complete.";
|
||||
case ENTEREDINERROR: return "The instance was entered in error.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -122,7 +122,7 @@ public class EnrollmentResponse extends DomainResource {
|
|||
case CANCELLED: return "Cancelled";
|
||||
case DRAFT: return "Draft";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -162,7 +162,9 @@ public class EnrollmentResponse extends DomainResource {
|
|||
throw new FHIRException("Unknown EnrollmentResponseStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(EnrollmentResponseStatus code) {
|
||||
if (code == EnrollmentResponseStatus.ACTIVE)
|
||||
if (code == EnrollmentResponseStatus.NULL)
|
||||
return null;
|
||||
if (code == EnrollmentResponseStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == EnrollmentResponseStatus.CANCELLED)
|
||||
return "cancelled";
|
||||
|
@ -171,7 +173,7 @@ public class EnrollmentResponse extends DomainResource {
|
|||
if (code == EnrollmentResponseStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(EnrollmentResponseStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -1,33 +1,33 @@
|
|||
package org.hl7.fhir.dstu3.model;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
@ -80,7 +80,7 @@ public class Enumerations {
|
|||
switch (this) {
|
||||
case TYPE: return "Type";
|
||||
case ANY: return "Any";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -88,7 +88,7 @@ public class Enumerations {
|
|||
switch (this) {
|
||||
case TYPE: return "http://hl7.org/fhir/abstract-types";
|
||||
case ANY: return "http://hl7.org/fhir/abstract-types";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ public class Enumerations {
|
|||
switch (this) {
|
||||
case TYPE: return "A place holder that means any kind of data type";
|
||||
case ANY: return "A place holder that means any kind of resource";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ public class Enumerations {
|
|||
switch (this) {
|
||||
case TYPE: return "Type";
|
||||
case ANY: return "Any";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -136,12 +136,14 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown AbstractType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AbstractType code) {
|
||||
if (code == AbstractType.TYPE)
|
||||
if (code == AbstractType.NULL)
|
||||
return null;
|
||||
if (code == AbstractType.TYPE)
|
||||
return "Type";
|
||||
if (code == AbstractType.ANY)
|
||||
return "Any";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(AbstractType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -187,7 +189,7 @@ public class Enumerations {
|
|||
case FEMALE: return "female";
|
||||
case OTHER: return "other";
|
||||
case UNKNOWN: return "unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -197,7 +199,7 @@ public class Enumerations {
|
|||
case FEMALE: return "http://hl7.org/fhir/administrative-gender";
|
||||
case OTHER: return "http://hl7.org/fhir/administrative-gender";
|
||||
case UNKNOWN: return "http://hl7.org/fhir/administrative-gender";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -207,7 +209,7 @@ public class Enumerations {
|
|||
case FEMALE: return "Female";
|
||||
case OTHER: return "Other";
|
||||
case UNKNOWN: return "Unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -217,7 +219,7 @@ public class Enumerations {
|
|||
case FEMALE: return "Female";
|
||||
case OTHER: return "Other";
|
||||
case UNKNOWN: return "Unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -257,7 +259,9 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown AdministrativeGender code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AdministrativeGender code) {
|
||||
if (code == AdministrativeGender.MALE)
|
||||
if (code == AdministrativeGender.NULL)
|
||||
return null;
|
||||
if (code == AdministrativeGender.MALE)
|
||||
return "male";
|
||||
if (code == AdministrativeGender.FEMALE)
|
||||
return "female";
|
||||
|
@ -266,7 +270,7 @@ public class Enumerations {
|
|||
if (code == AdministrativeGender.UNKNOWN)
|
||||
return "unknown";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(AdministrativeGender code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -326,7 +330,7 @@ public class Enumerations {
|
|||
case WK: return "wk";
|
||||
case MO: return "mo";
|
||||
case A: return "a";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -338,7 +342,7 @@ public class Enumerations {
|
|||
case WK: return "http://unitsofmeasure.org";
|
||||
case MO: return "http://unitsofmeasure.org";
|
||||
case A: return "http://unitsofmeasure.org";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -350,7 +354,7 @@ public class Enumerations {
|
|||
case WK: return "";
|
||||
case MO: return "";
|
||||
case A: return "";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -362,7 +366,7 @@ public class Enumerations {
|
|||
case WK: return "Week";
|
||||
case MO: return "Month";
|
||||
case A: return "Year";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -410,7 +414,9 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown AgeUnits code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AgeUnits code) {
|
||||
if (code == AgeUnits.MIN)
|
||||
if (code == AgeUnits.NULL)
|
||||
return null;
|
||||
if (code == AgeUnits.MIN)
|
||||
return "min";
|
||||
if (code == AgeUnits.H)
|
||||
return "h";
|
||||
|
@ -423,7 +429,7 @@ public class Enumerations {
|
|||
if (code == AgeUnits.A)
|
||||
return "a";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(AgeUnits code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -469,7 +475,7 @@ public class Enumerations {
|
|||
case EXTENSIBLE: return "extensible";
|
||||
case PREFERRED: return "preferred";
|
||||
case EXAMPLE: return "example";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -479,7 +485,7 @@ public class Enumerations {
|
|||
case EXTENSIBLE: return "http://hl7.org/fhir/binding-strength";
|
||||
case PREFERRED: return "http://hl7.org/fhir/binding-strength";
|
||||
case EXAMPLE: return "http://hl7.org/fhir/binding-strength";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -489,7 +495,7 @@ public class Enumerations {
|
|||
case EXTENSIBLE: return "To be conformant, the concept in this element SHALL be from the specified value set if any of the codes within the value set can apply to the concept being communicated. If the value set does not cover the concept (based on human review), alternate codings (or, data type allowing, text) may be included instead.";
|
||||
case PREFERRED: return "Instances are encouraged to draw from the specified codes for interoperability purposes but are not required to do so to be considered conformant.";
|
||||
case EXAMPLE: return "Instances are not expected or even encouraged to draw from the specified value set. The value set merely provides examples of the types of concepts intended to be included.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -499,7 +505,7 @@ public class Enumerations {
|
|||
case EXTENSIBLE: return "Extensible";
|
||||
case PREFERRED: return "Preferred";
|
||||
case EXAMPLE: return "Example";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -539,7 +545,9 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown BindingStrength code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(BindingStrength code) {
|
||||
if (code == BindingStrength.REQUIRED)
|
||||
if (code == BindingStrength.NULL)
|
||||
return null;
|
||||
if (code == BindingStrength.REQUIRED)
|
||||
return "required";
|
||||
if (code == BindingStrength.EXTENSIBLE)
|
||||
return "extensible";
|
||||
|
@ -548,7 +556,7 @@ public class Enumerations {
|
|||
if (code == BindingStrength.EXAMPLE)
|
||||
return "example";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(BindingStrength code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -636,7 +644,7 @@ public class Enumerations {
|
|||
case INEXACT: return "inexact";
|
||||
case UNMATCHED: return "unmatched";
|
||||
case DISJOINT: return "disjoint";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -652,7 +660,7 @@ public class Enumerations {
|
|||
case INEXACT: return "http://hl7.org/fhir/concept-map-equivalence";
|
||||
case UNMATCHED: return "http://hl7.org/fhir/concept-map-equivalence";
|
||||
case DISJOINT: return "http://hl7.org/fhir/concept-map-equivalence";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -668,7 +676,7 @@ public class Enumerations {
|
|||
case INEXACT: return "The target mapping overlaps with the source concept, but both source and target cover additional meaning, or the definitions are imprecise and it is uncertain whether they have the same boundaries to their meaning. The sense in which the mapping is narrower SHALL be described in the comments in this case, and applications should be careful when attempting to use these mappings operationally.";
|
||||
case UNMATCHED: return "There is no match for this concept in the destination concept system.";
|
||||
case DISJOINT: return "This is an explicit assertion that there is no mapping between the source and target concept.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -684,7 +692,7 @@ public class Enumerations {
|
|||
case INEXACT: return "Inexact";
|
||||
case UNMATCHED: return "Unmatched";
|
||||
case DISJOINT: return "Disjoint";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -748,7 +756,9 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown ConceptMapEquivalence code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ConceptMapEquivalence code) {
|
||||
if (code == ConceptMapEquivalence.RELATEDTO)
|
||||
if (code == ConceptMapEquivalence.NULL)
|
||||
return null;
|
||||
if (code == ConceptMapEquivalence.RELATEDTO)
|
||||
return "relatedto";
|
||||
if (code == ConceptMapEquivalence.EQUIVALENT)
|
||||
return "equivalent";
|
||||
|
@ -769,7 +779,7 @@ public class Enumerations {
|
|||
if (code == ConceptMapEquivalence.DISJOINT)
|
||||
return "disjoint";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ConceptMapEquivalence code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -857,7 +867,7 @@ public class Enumerations {
|
|||
case ERROR: return "error";
|
||||
case NAN: return "NaN";
|
||||
case NOTPERFORMED: return "not-performed";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -873,7 +883,7 @@ public class Enumerations {
|
|||
case ERROR: return "http://hl7.org/fhir/data-absent-reason";
|
||||
case NAN: return "http://hl7.org/fhir/data-absent-reason";
|
||||
case NOTPERFORMED: return "http://hl7.org/fhir/data-absent-reason";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -889,7 +899,7 @@ public class Enumerations {
|
|||
case ERROR: return "Some system or workflow process error means that the information is not available.";
|
||||
case NAN: return "NaN, standing for not a number, is a numeric data type value representing an undefined or unrepresentable value.";
|
||||
case NOTPERFORMED: return "The value is not available because the observation procedure (test, etc.) was not performed.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -905,7 +915,7 @@ public class Enumerations {
|
|||
case ERROR: return "Error";
|
||||
case NAN: return "Not a Number";
|
||||
case NOTPERFORMED: return "Not Performed";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -969,7 +979,9 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown DataAbsentReason code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DataAbsentReason code) {
|
||||
if (code == DataAbsentReason.UNKNOWN)
|
||||
if (code == DataAbsentReason.NULL)
|
||||
return null;
|
||||
if (code == DataAbsentReason.UNKNOWN)
|
||||
return "unknown";
|
||||
if (code == DataAbsentReason.ASKED)
|
||||
return "asked";
|
||||
|
@ -990,7 +1002,7 @@ public class Enumerations {
|
|||
if (code == DataAbsentReason.NOTPERFORMED)
|
||||
return "not-performed";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(DataAbsentReason code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -1386,7 +1398,7 @@ public class Enumerations {
|
|||
case URI: return "uri";
|
||||
case UUID: return "uuid";
|
||||
case XHTML: return "xhtml";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1446,7 +1458,7 @@ public class Enumerations {
|
|||
case URI: return "http://hl7.org/fhir/data-types";
|
||||
case UUID: return "http://hl7.org/fhir/data-types";
|
||||
case XHTML: return "http://hl7.org/fhir/data-types";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1506,7 +1518,7 @@ public class Enumerations {
|
|||
case URI: return "String of characters used to identify a name or a resource";
|
||||
case UUID: return "A UUID, represented as a URI";
|
||||
case XHTML: return "XHTML format, as defined by W3C, but restricted usage (mainly, no active content)";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1566,7 +1578,7 @@ public class Enumerations {
|
|||
case URI: return "uri";
|
||||
case UUID: return "uuid";
|
||||
case XHTML: return "XHTML";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1806,7 +1818,9 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown DataType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DataType code) {
|
||||
if (code == DataType.ADDRESS)
|
||||
if (code == DataType.NULL)
|
||||
return null;
|
||||
if (code == DataType.ADDRESS)
|
||||
return "Address";
|
||||
if (code == DataType.AGE)
|
||||
return "Age";
|
||||
|
@ -1915,7 +1929,7 @@ public class Enumerations {
|
|||
if (code == DataType.XHTML)
|
||||
return "xhtml";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(DataType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -1954,7 +1968,7 @@ public class Enumerations {
|
|||
case CURRENT: return "current";
|
||||
case SUPERSEDED: return "superseded";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1963,7 +1977,7 @@ public class Enumerations {
|
|||
case CURRENT: return "http://hl7.org/fhir/document-reference-status";
|
||||
case SUPERSEDED: return "http://hl7.org/fhir/document-reference-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/document-reference-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1972,7 +1986,7 @@ public class Enumerations {
|
|||
case CURRENT: return "This is the current reference for this document.";
|
||||
case SUPERSEDED: return "This reference has been superseded by another reference.";
|
||||
case ENTEREDINERROR: return "This reference was created in error.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1981,7 +1995,7 @@ public class Enumerations {
|
|||
case CURRENT: return "Current";
|
||||
case SUPERSEDED: return "Superseded";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -2017,14 +2031,16 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown DocumentReferenceStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DocumentReferenceStatus code) {
|
||||
if (code == DocumentReferenceStatus.CURRENT)
|
||||
if (code == DocumentReferenceStatus.NULL)
|
||||
return null;
|
||||
if (code == DocumentReferenceStatus.CURRENT)
|
||||
return "current";
|
||||
if (code == DocumentReferenceStatus.SUPERSEDED)
|
||||
return "superseded";
|
||||
if (code == DocumentReferenceStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(DocumentReferenceStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -3269,7 +3285,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case VISIONPRESCRIPTION: return "VisionPrescription";
|
||||
case TYPE: return "Type";
|
||||
case ANY: return "Any";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -3450,7 +3466,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case VISIONPRESCRIPTION: return "http://hl7.org/fhir/resource-types";
|
||||
case TYPE: return "http://hl7.org/fhir/abstract-types";
|
||||
case ANY: return "http://hl7.org/fhir/abstract-types";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -3631,7 +3647,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case VISIONPRESCRIPTION: return "An authorization for the supply of glasses and/or contact lenses to a patient.";
|
||||
case TYPE: return "A place holder that means any kind of data type";
|
||||
case ANY: return "A place holder that means any kind of resource";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -3812,7 +3828,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case VISIONPRESCRIPTION: return "VisionPrescription";
|
||||
case TYPE: return "Type";
|
||||
case ANY: return "Any";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -4536,7 +4552,9 @@ The primary difference between a medication statement and a medication administr
|
|||
throw new FHIRException("Unknown FHIRAllTypes code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(FHIRAllTypes code) {
|
||||
if (code == FHIRAllTypes.ADDRESS)
|
||||
if (code == FHIRAllTypes.NULL)
|
||||
return null;
|
||||
if (code == FHIRAllTypes.ADDRESS)
|
||||
return "Address";
|
||||
if (code == FHIRAllTypes.AGE)
|
||||
return "Age";
|
||||
|
@ -4887,7 +4905,7 @@ The primary difference between a medication statement and a medication administr
|
|||
if (code == FHIRAllTypes.ANY)
|
||||
return "Any";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(FHIRAllTypes code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -6118,7 +6136,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case TESTSCRIPT: return "TestScript";
|
||||
case VALUESET: return "ValueSet";
|
||||
case VISIONPRESCRIPTION: return "VisionPrescription";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -6297,7 +6315,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case TESTSCRIPT: return "http://hl7.org/fhir/resource-types";
|
||||
case VALUESET: return "http://hl7.org/fhir/resource-types";
|
||||
case VISIONPRESCRIPTION: return "http://hl7.org/fhir/resource-types";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -6476,7 +6494,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case TESTSCRIPT: return "A structured set of tests against a FHIR server implementation to determine compliance against the FHIR specification.";
|
||||
case VALUESET: return "A value set specifies a set of codes drawn from one or more code systems.";
|
||||
case VISIONPRESCRIPTION: return "An authorization for the supply of glasses and/or contact lenses to a patient.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -6655,7 +6673,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case TESTSCRIPT: return "TestScript";
|
||||
case VALUESET: return "ValueSet";
|
||||
case VISIONPRESCRIPTION: return "VisionPrescription";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -7371,7 +7389,9 @@ The primary difference between a medication statement and a medication administr
|
|||
throw new FHIRException("Unknown FHIRDefinedType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(FHIRDefinedType code) {
|
||||
if (code == FHIRDefinedType.ADDRESS)
|
||||
if (code == FHIRDefinedType.NULL)
|
||||
return null;
|
||||
if (code == FHIRDefinedType.ADDRESS)
|
||||
return "Address";
|
||||
if (code == FHIRDefinedType.AGE)
|
||||
return "Age";
|
||||
|
@ -7718,7 +7738,7 @@ The primary difference between a medication statement and a medication administr
|
|||
if (code == FHIRDefinedType.VISIONPRESCRIPTION)
|
||||
return "VisionPrescription";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(FHIRDefinedType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -7820,7 +7840,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case PATIENTLINK: return "patient-link";
|
||||
case PATIENTUNLINK: return "patient-unlink";
|
||||
case VALUESETEXPAND: return "valueset-expand";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -7838,7 +7858,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case PATIENTLINK: return "http://hl7.org/fhir/message-events";
|
||||
case PATIENTUNLINK: return "http://hl7.org/fhir/message-events";
|
||||
case VALUESETEXPAND: return "http://hl7.org/fhir/message-events";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -7856,7 +7876,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case PATIENTLINK: return "Notification that two patient records actually identify the same patient.";
|
||||
case PATIENTUNLINK: return "Notification that previous advice that two patient records concern the same patient is now considered incorrect.";
|
||||
case VALUESETEXPAND: return "The definition of a value set is used to create a simple collection of codes suitable for use for data entry or validation. An expanded value set will be returned, or an error message.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -7874,7 +7894,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case PATIENTLINK: return "patient-link";
|
||||
case PATIENTUNLINK: return "patient-unlink";
|
||||
case VALUESETEXPAND: return "valueset-expand";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -7946,7 +7966,9 @@ The primary difference between a medication statement and a medication administr
|
|||
throw new FHIRException("Unknown MessageEvent code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MessageEvent code) {
|
||||
if (code == MessageEvent.CODESYSTEMEXPAND)
|
||||
if (code == MessageEvent.NULL)
|
||||
return null;
|
||||
if (code == MessageEvent.CODESYSTEMEXPAND)
|
||||
return "CodeSystem-expand";
|
||||
if (code == MessageEvent.MEDICATIONADMINISTRATIONCOMPLETE)
|
||||
return "MedicationAdministration-Complete";
|
||||
|
@ -7971,7 +7993,7 @@ The primary difference between a medication statement and a medication administr
|
|||
if (code == MessageEvent.VALUESETEXPAND)
|
||||
return "valueset-expand";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(MessageEvent code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -8010,7 +8032,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case DISPLAY: return "display";
|
||||
case PRINT: return "print";
|
||||
case PRINTOPER: return "printoper";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -8019,7 +8041,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case DISPLAY: return "http://hl7.org/fhir/note-type";
|
||||
case PRINT: return "http://hl7.org/fhir/note-type";
|
||||
case PRINTOPER: return "http://hl7.org/fhir/note-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -8028,7 +8050,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case DISPLAY: return "Display the note.";
|
||||
case PRINT: return "Print the note on the form.";
|
||||
case PRINTOPER: return "Print the note for the operator.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -8037,7 +8059,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case DISPLAY: return "Display";
|
||||
case PRINT: return "Print (Form)";
|
||||
case PRINTOPER: return "Print (Operator)";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -8073,14 +8095,16 @@ The primary difference between a medication statement and a medication administr
|
|||
throw new FHIRException("Unknown NoteType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(NoteType code) {
|
||||
if (code == NoteType.DISPLAY)
|
||||
if (code == NoteType.NULL)
|
||||
return null;
|
||||
if (code == NoteType.DISPLAY)
|
||||
return "display";
|
||||
if (code == NoteType.PRINT)
|
||||
return "print";
|
||||
if (code == NoteType.PRINTOPER)
|
||||
return "printoper";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(NoteType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -8126,7 +8150,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case ACTIVE: return "active";
|
||||
case RETIRED: return "retired";
|
||||
case UNKNOWN: return "unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -8136,7 +8160,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case ACTIVE: return "http://hl7.org/fhir/publication-status";
|
||||
case RETIRED: return "http://hl7.org/fhir/publication-status";
|
||||
case UNKNOWN: return "http://hl7.org/fhir/publication-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -8146,7 +8170,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case ACTIVE: return "This resource is ready for normal use.";
|
||||
case RETIRED: return "This resource has been withdrawn or superseded and should no longer be used.";
|
||||
case UNKNOWN: return "The authoring system does not know which of the status values currently applies for this resource. Note: This concept is not to be used for \"other\" - one of the listed statuses is presumed to apply, it's just not known which one.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -8156,7 +8180,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case ACTIVE: return "Active";
|
||||
case RETIRED: return "Retired";
|
||||
case UNKNOWN: return "Unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -8196,7 +8220,9 @@ The primary difference between a medication statement and a medication administr
|
|||
throw new FHIRException("Unknown PublicationStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(PublicationStatus code) {
|
||||
if (code == PublicationStatus.DRAFT)
|
||||
if (code == PublicationStatus.NULL)
|
||||
return null;
|
||||
if (code == PublicationStatus.DRAFT)
|
||||
return "draft";
|
||||
if (code == PublicationStatus.ACTIVE)
|
||||
return "active";
|
||||
|
@ -8205,7 +8231,7 @@ The primary difference between a medication statement and a medication administr
|
|||
if (code == PublicationStatus.UNKNOWN)
|
||||
return "unknown";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(PublicationStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -8244,7 +8270,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case COMPLETE: return "complete";
|
||||
case ERROR: return "error";
|
||||
case PARTIAL: return "partial";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -8253,7 +8279,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case COMPLETE: return "http://hl7.org/fhir/remittance-outcome";
|
||||
case ERROR: return "http://hl7.org/fhir/remittance-outcome";
|
||||
case PARTIAL: return "http://hl7.org/fhir/remittance-outcome";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -8262,7 +8288,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case COMPLETE: return "The processing has completed without errors";
|
||||
case ERROR: return "One or more errors have been detected in the Claim";
|
||||
case PARTIAL: return "No errors have been detected in the Claim and some of the adjudication has been performed.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -8271,7 +8297,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case COMPLETE: return "Processing Complete";
|
||||
case ERROR: return "Error";
|
||||
case PARTIAL: return "Partial Processing";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -8307,14 +8333,16 @@ The primary difference between a medication statement and a medication administr
|
|||
throw new FHIRException("Unknown RemittanceOutcome code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(RemittanceOutcome code) {
|
||||
if (code == RemittanceOutcome.COMPLETE)
|
||||
if (code == RemittanceOutcome.NULL)
|
||||
return null;
|
||||
if (code == RemittanceOutcome.COMPLETE)
|
||||
return "complete";
|
||||
if (code == RemittanceOutcome.ERROR)
|
||||
return "error";
|
||||
if (code == RemittanceOutcome.PARTIAL)
|
||||
return "partial";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(RemittanceOutcome code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -9167,7 +9195,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case TESTSCRIPT: return "TestScript";
|
||||
case VALUESET: return "ValueSet";
|
||||
case VISIONPRESCRIPTION: return "VisionPrescription";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -9292,7 +9320,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case TESTSCRIPT: return "http://hl7.org/fhir/resource-types";
|
||||
case VALUESET: return "http://hl7.org/fhir/resource-types";
|
||||
case VISIONPRESCRIPTION: return "http://hl7.org/fhir/resource-types";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -9417,7 +9445,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case TESTSCRIPT: return "A structured set of tests against a FHIR server implementation to determine compliance against the FHIR specification.";
|
||||
case VALUESET: return "A value set specifies a set of codes drawn from one or more code systems.";
|
||||
case VISIONPRESCRIPTION: return "An authorization for the supply of glasses and/or contact lenses to a patient.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -9542,7 +9570,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case TESTSCRIPT: return "TestScript";
|
||||
case VALUESET: return "ValueSet";
|
||||
case VISIONPRESCRIPTION: return "VisionPrescription";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -10042,7 +10070,9 @@ The primary difference between a medication statement and a medication administr
|
|||
throw new FHIRException("Unknown ResourceType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ResourceType code) {
|
||||
if (code == ResourceType.ACCOUNT)
|
||||
if (code == ResourceType.NULL)
|
||||
return null;
|
||||
if (code == ResourceType.ACCOUNT)
|
||||
return "Account";
|
||||
if (code == ResourceType.ACTIVITYDEFINITION)
|
||||
return "ActivityDefinition";
|
||||
|
@ -10281,7 +10311,7 @@ The primary difference between a medication statement and a medication administr
|
|||
if (code == ResourceType.VISIONPRESCRIPTION)
|
||||
return "VisionPrescription";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ResourceType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -10355,7 +10385,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case COMPOSITE: return "composite";
|
||||
case QUANTITY: return "quantity";
|
||||
case URI: return "uri";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -10369,7 +10399,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case COMPOSITE: return "http://hl7.org/fhir/search-param-type";
|
||||
case QUANTITY: return "http://hl7.org/fhir/search-param-type";
|
||||
case URI: return "http://hl7.org/fhir/search-param-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -10383,7 +10413,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case COMPOSITE: return "A composite search parameter that combines a search on two values together.";
|
||||
case QUANTITY: return "A search parameter that searches on a quantity.";
|
||||
case URI: return "A search parameter that searches on a URI (RFC 3986).";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -10397,7 +10427,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case COMPOSITE: return "Composite";
|
||||
case QUANTITY: return "Quantity";
|
||||
case URI: return "URI";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -10453,7 +10483,9 @@ The primary difference between a medication statement and a medication administr
|
|||
throw new FHIRException("Unknown SearchParamType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(SearchParamType code) {
|
||||
if (code == SearchParamType.NUMBER)
|
||||
if (code == SearchParamType.NULL)
|
||||
return null;
|
||||
if (code == SearchParamType.NUMBER)
|
||||
return "number";
|
||||
if (code == SearchParamType.DATE)
|
||||
return "date";
|
||||
|
@ -10470,7 +10502,7 @@ The primary difference between a medication statement and a medication administr
|
|||
if (code == SearchParamType.URI)
|
||||
return "uri";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(SearchParamType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -10530,7 +10562,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case SUFFICIENT: return "sufficient";
|
||||
case WITHDRAWN: return "withdrawn";
|
||||
case NILKNOWN: return "nil-known";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -10542,7 +10574,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case SUFFICIENT: return "http://hl7.org/fhir/special-values";
|
||||
case WITHDRAWN: return "http://hl7.org/fhir/special-values";
|
||||
case NILKNOWN: return "http://hl7.org/fhir/special-values";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -10554,7 +10586,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case SUFFICIENT: return "The specific quantity is not known, but is known to be non-zero and is not specified because it makes up the bulk of the material.";
|
||||
case WITHDRAWN: return "The value is no longer available.";
|
||||
case NILKNOWN: return "The are no known applicable values in this context.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -10566,7 +10598,7 @@ The primary difference between a medication statement and a medication administr
|
|||
case SUFFICIENT: return "Sufficient Quantity";
|
||||
case WITHDRAWN: return "Value Withdrawn";
|
||||
case NILKNOWN: return "Nil Known";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -10614,7 +10646,9 @@ The primary difference between a medication statement and a medication administr
|
|||
throw new FHIRException("Unknown SpecialValues code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(SpecialValues code) {
|
||||
if (code == SpecialValues.TRUE)
|
||||
if (code == SpecialValues.NULL)
|
||||
return null;
|
||||
if (code == SpecialValues.TRUE)
|
||||
return "true";
|
||||
if (code == SpecialValues.FALSE)
|
||||
return "false";
|
||||
|
@ -10627,7 +10661,7 @@ The primary difference between a medication statement and a medication administr
|
|||
if (code == SpecialValues.NILKNOWN)
|
||||
return "nil-known";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(SpecialValues code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -113,7 +113,7 @@ public class EpisodeOfCare extends DomainResource {
|
|||
case FINISHED: return "finished";
|
||||
case CANCELLED: return "cancelled";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -126,7 +126,7 @@ public class EpisodeOfCare extends DomainResource {
|
|||
case FINISHED: return "http://hl7.org/fhir/episode-of-care-status";
|
||||
case CANCELLED: return "http://hl7.org/fhir/episode-of-care-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/episode-of-care-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -139,7 +139,7 @@ public class EpisodeOfCare extends DomainResource {
|
|||
case FINISHED: return "This episode of care is finished and the organization is not expecting to be providing further care to the patient. Can also be known as \"closed\", \"completed\" or other similar terms.";
|
||||
case CANCELLED: return "The episode of care was cancelled, or withdrawn from service, often selected during the planned stage as the patient may have gone elsewhere, or the circumstances have changed and the organization is unable to provide the care. It indicates that services terminated outside the planned/expected workflow.";
|
||||
case ENTEREDINERROR: return "This instance should not have been part of this patient's medical record.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -152,7 +152,7 @@ public class EpisodeOfCare extends DomainResource {
|
|||
case FINISHED: return "Finished";
|
||||
case CANCELLED: return "Cancelled";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -204,7 +204,9 @@ public class EpisodeOfCare extends DomainResource {
|
|||
throw new FHIRException("Unknown EpisodeOfCareStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(EpisodeOfCareStatus code) {
|
||||
if (code == EpisodeOfCareStatus.PLANNED)
|
||||
if (code == EpisodeOfCareStatus.NULL)
|
||||
return null;
|
||||
if (code == EpisodeOfCareStatus.PLANNED)
|
||||
return "planned";
|
||||
if (code == EpisodeOfCareStatus.WAITLIST)
|
||||
return "waitlist";
|
||||
|
@ -219,7 +221,7 @@ public class EpisodeOfCare extends DomainResource {
|
|||
if (code == EpisodeOfCareStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(EpisodeOfCareStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -91,7 +91,7 @@ public class ExpansionProfile extends MetadataResource {
|
|||
case DEFAULT: return "default";
|
||||
case CHECK: return "check";
|
||||
case OVERRIDE: return "override";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ public class ExpansionProfile extends MetadataResource {
|
|||
case DEFAULT: return "http://hl7.org/fhir/system-version-processing-mode";
|
||||
case CHECK: return "http://hl7.org/fhir/system-version-processing-mode";
|
||||
case OVERRIDE: return "http://hl7.org/fhir/system-version-processing-mode";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ public class ExpansionProfile extends MetadataResource {
|
|||
case DEFAULT: return "Use this version of the code system if a value set doesn't specify a version";
|
||||
case CHECK: return "Use this version of the code system. If a value set specifies a different version, the expansion operation should fail";
|
||||
case OVERRIDE: return "Use this version of the code system irrespective of which version is specified by a value set. Note that this has obvious safety issues, in that it may result in a value set expansion giving a different list of codes that is both wrong and unsafe, and implementers should only use this capability reluctantly. It primarily exists to deal with situations where specifications have fallen into decay as time passes. If a version is override, the version used SHALL explicitly be represented in the expansion parameters";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -118,7 +118,7 @@ public class ExpansionProfile extends MetadataResource {
|
|||
case DEFAULT: return "Default Version";
|
||||
case CHECK: return "Check ValueSet Version";
|
||||
case OVERRIDE: return "Override ValueSet Version";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -154,14 +154,16 @@ public class ExpansionProfile extends MetadataResource {
|
|||
throw new FHIRException("Unknown SystemVersionProcessingMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(SystemVersionProcessingMode code) {
|
||||
if (code == SystemVersionProcessingMode.DEFAULT)
|
||||
if (code == SystemVersionProcessingMode.NULL)
|
||||
return null;
|
||||
if (code == SystemVersionProcessingMode.DEFAULT)
|
||||
return "default";
|
||||
if (code == SystemVersionProcessingMode.CHECK)
|
||||
return "check";
|
||||
if (code == SystemVersionProcessingMode.OVERRIDE)
|
||||
return "override";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(SystemVersionProcessingMode code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@ public class ExplanationOfBenefit extends DomainResource {
|
|||
case CANCELLED: return "cancelled";
|
||||
case DRAFT: return "draft";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -105,7 +105,7 @@ public class ExplanationOfBenefit extends DomainResource {
|
|||
case CANCELLED: return "http://hl7.org/fhir/explanationofbenefit-status";
|
||||
case DRAFT: return "http://hl7.org/fhir/explanationofbenefit-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/explanationofbenefit-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -115,7 +115,7 @@ public class ExplanationOfBenefit extends DomainResource {
|
|||
case CANCELLED: return "The resource instance is withdrawn, rescinded or reversed.";
|
||||
case DRAFT: return "A new resource instance the contents of which is not complete.";
|
||||
case ENTEREDINERROR: return "The resource instance was entered in error.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -125,7 +125,7 @@ public class ExplanationOfBenefit extends DomainResource {
|
|||
case CANCELLED: return "Cancelled";
|
||||
case DRAFT: return "Draft";
|
||||
case ENTEREDINERROR: return "Entered In Error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -165,7 +165,9 @@ public class ExplanationOfBenefit extends DomainResource {
|
|||
throw new FHIRException("Unknown ExplanationOfBenefitStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ExplanationOfBenefitStatus code) {
|
||||
if (code == ExplanationOfBenefitStatus.ACTIVE)
|
||||
if (code == ExplanationOfBenefitStatus.NULL)
|
||||
return null;
|
||||
if (code == ExplanationOfBenefitStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == ExplanationOfBenefitStatus.CANCELLED)
|
||||
return "cancelled";
|
||||
|
@ -174,7 +176,7 @@ public class ExplanationOfBenefit extends DomainResource {
|
|||
if (code == ExplanationOfBenefitStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ExplanationOfBenefitStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -97,7 +97,7 @@ public class FamilyMemberHistory extends DomainResource {
|
|||
case COMPLETED: return "completed";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case HEALTHUNKNOWN: return "health-unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -107,7 +107,7 @@ public class FamilyMemberHistory extends DomainResource {
|
|||
case COMPLETED: return "http://hl7.org/fhir/history-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/history-status";
|
||||
case HEALTHUNKNOWN: return "http://hl7.org/fhir/history-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -117,7 +117,7 @@ public class FamilyMemberHistory extends DomainResource {
|
|||
case COMPLETED: return "All available related health information is captured as of the date (and possibly time) when the family member history was taken.";
|
||||
case ENTEREDINERROR: return "This instance should not have been part of this patient's medical record.";
|
||||
case HEALTHUNKNOWN: return "Health information for this individual is unavailable/unknown.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -127,7 +127,7 @@ public class FamilyMemberHistory extends DomainResource {
|
|||
case COMPLETED: return "Completed";
|
||||
case ENTEREDINERROR: return "Entered in error";
|
||||
case HEALTHUNKNOWN: return "Health unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -167,7 +167,9 @@ public class FamilyMemberHistory extends DomainResource {
|
|||
throw new FHIRException("Unknown FamilyHistoryStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(FamilyHistoryStatus code) {
|
||||
if (code == FamilyHistoryStatus.PARTIAL)
|
||||
if (code == FamilyHistoryStatus.NULL)
|
||||
return null;
|
||||
if (code == FamilyHistoryStatus.PARTIAL)
|
||||
return "partial";
|
||||
if (code == FamilyHistoryStatus.COMPLETED)
|
||||
return "completed";
|
||||
|
@ -176,7 +178,7 @@ public class FamilyMemberHistory extends DomainResource {
|
|||
if (code == FamilyHistoryStatus.HEALTHUNKNOWN)
|
||||
return "health-unknown";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(FamilyHistoryStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -83,7 +83,7 @@ public class Flag extends DomainResource {
|
|||
case ACTIVE: return "active";
|
||||
case INACTIVE: return "inactive";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -92,7 +92,7 @@ public class Flag extends DomainResource {
|
|||
case ACTIVE: return "http://hl7.org/fhir/flag-status";
|
||||
case INACTIVE: return "http://hl7.org/fhir/flag-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/flag-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -101,7 +101,7 @@ public class Flag extends DomainResource {
|
|||
case ACTIVE: return "A current flag that should be displayed to a user. A system may use the category to determine which roles should view the flag.";
|
||||
case INACTIVE: return "The flag does not need to be displayed any more.";
|
||||
case ENTEREDINERROR: return "The flag was added in error, and should no longer be displayed.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -110,7 +110,7 @@ public class Flag extends DomainResource {
|
|||
case ACTIVE: return "Active";
|
||||
case INACTIVE: return "Inactive";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -146,14 +146,16 @@ public class Flag extends DomainResource {
|
|||
throw new FHIRException("Unknown FlagStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(FlagStatus code) {
|
||||
if (code == FlagStatus.ACTIVE)
|
||||
if (code == FlagStatus.NULL)
|
||||
return null;
|
||||
if (code == FlagStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == FlagStatus.INACTIVE)
|
||||
return "inactive";
|
||||
if (code == FlagStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(FlagStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -158,7 +158,7 @@ public class Goal extends DomainResource {
|
|||
case CANCELLED: return "cancelled";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case REJECTED: return "rejected";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -177,7 +177,7 @@ public class Goal extends DomainResource {
|
|||
case CANCELLED: return "http://hl7.org/fhir/goal-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/goal-status";
|
||||
case REJECTED: return "http://hl7.org/fhir/goal-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -196,7 +196,7 @@ public class Goal extends DomainResource {
|
|||
case CANCELLED: return "The previously accepted goal is no longer being sought";
|
||||
case ENTEREDINERROR: return "The goal was entered in error and voided.";
|
||||
case REJECTED: return "A proposed goal was rejected";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -215,7 +215,7 @@ public class Goal extends DomainResource {
|
|||
case CANCELLED: return "Cancelled";
|
||||
case ENTEREDINERROR: return "Entered In Error";
|
||||
case REJECTED: return "Rejected";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -291,7 +291,9 @@ public class Goal extends DomainResource {
|
|||
throw new FHIRException("Unknown GoalStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(GoalStatus code) {
|
||||
if (code == GoalStatus.PROPOSED)
|
||||
if (code == GoalStatus.NULL)
|
||||
return null;
|
||||
if (code == GoalStatus.PROPOSED)
|
||||
return "proposed";
|
||||
if (code == GoalStatus.ACCEPTED)
|
||||
return "accepted";
|
||||
|
@ -318,7 +320,7 @@ public class Goal extends DomainResource {
|
|||
if (code == GoalStatus.REJECTED)
|
||||
return "rejected";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(GoalStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -106,7 +106,7 @@ public class GraphDefinition extends MetadataResource {
|
|||
case RELATEDPERSON: return "RelatedPerson";
|
||||
case PRACTITIONER: return "Practitioner";
|
||||
case DEVICE: return "Device";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -117,7 +117,7 @@ public class GraphDefinition extends MetadataResource {
|
|||
case RELATEDPERSON: return "http://hl7.org/fhir/compartment-type";
|
||||
case PRACTITIONER: return "http://hl7.org/fhir/compartment-type";
|
||||
case DEVICE: return "http://hl7.org/fhir/compartment-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -128,7 +128,7 @@ public class GraphDefinition extends MetadataResource {
|
|||
case RELATEDPERSON: return "The compartment definition is for the related-person compartment";
|
||||
case PRACTITIONER: return "The compartment definition is for the practitioner compartment";
|
||||
case DEVICE: return "The compartment definition is for the device compartment";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -139,7 +139,7 @@ public class GraphDefinition extends MetadataResource {
|
|||
case RELATEDPERSON: return "RelatedPerson";
|
||||
case PRACTITIONER: return "Practitioner";
|
||||
case DEVICE: return "Device";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -183,7 +183,9 @@ public class GraphDefinition extends MetadataResource {
|
|||
throw new FHIRException("Unknown CompartmentCode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CompartmentCode code) {
|
||||
if (code == CompartmentCode.PATIENT)
|
||||
if (code == CompartmentCode.NULL)
|
||||
return null;
|
||||
if (code == CompartmentCode.PATIENT)
|
||||
return "Patient";
|
||||
if (code == CompartmentCode.ENCOUNTER)
|
||||
return "Encounter";
|
||||
|
@ -194,7 +196,7 @@ public class GraphDefinition extends MetadataResource {
|
|||
if (code == CompartmentCode.DEVICE)
|
||||
return "Device";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(CompartmentCode code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -243,7 +245,7 @@ public class GraphDefinition extends MetadataResource {
|
|||
case MATCHING: return "matching";
|
||||
case DIFFERENT: return "different";
|
||||
case CUSTOM: return "custom";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -253,7 +255,7 @@ public class GraphDefinition extends MetadataResource {
|
|||
case MATCHING: return "http://hl7.org/fhir/graph-compartment-rule";
|
||||
case DIFFERENT: return "http://hl7.org/fhir/graph-compartment-rule";
|
||||
case CUSTOM: return "http://hl7.org/fhir/graph-compartment-rule";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -263,7 +265,7 @@ public class GraphDefinition extends MetadataResource {
|
|||
case MATCHING: return "The compartment must be the same - the record must be about the same patient, but the reference may be different";
|
||||
case DIFFERENT: return "The compartment must be different";
|
||||
case CUSTOM: return "The compartment rule is defined in the accompanying FHIRPath expression";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -273,7 +275,7 @@ public class GraphDefinition extends MetadataResource {
|
|||
case MATCHING: return "Matching";
|
||||
case DIFFERENT: return "Different";
|
||||
case CUSTOM: return "Custom";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -313,7 +315,9 @@ public class GraphDefinition extends MetadataResource {
|
|||
throw new FHIRException("Unknown GraphCompartmentRule code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(GraphCompartmentRule code) {
|
||||
if (code == GraphCompartmentRule.IDENTICAL)
|
||||
if (code == GraphCompartmentRule.NULL)
|
||||
return null;
|
||||
if (code == GraphCompartmentRule.IDENTICAL)
|
||||
return "identical";
|
||||
if (code == GraphCompartmentRule.MATCHING)
|
||||
return "matching";
|
||||
|
@ -322,7 +326,7 @@ public class GraphDefinition extends MetadataResource {
|
|||
if (code == GraphCompartmentRule.CUSTOM)
|
||||
return "custom";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(GraphCompartmentRule code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -108,7 +108,7 @@ public class Group extends DomainResource {
|
|||
case DEVICE: return "device";
|
||||
case MEDICATION: return "medication";
|
||||
case SUBSTANCE: return "substance";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -120,7 +120,7 @@ public class Group extends DomainResource {
|
|||
case DEVICE: return "http://hl7.org/fhir/group-type";
|
||||
case MEDICATION: return "http://hl7.org/fhir/group-type";
|
||||
case SUBSTANCE: return "http://hl7.org/fhir/group-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -132,7 +132,7 @@ public class Group extends DomainResource {
|
|||
case DEVICE: return "Group contains Device resources";
|
||||
case MEDICATION: return "Group contains Medication resources";
|
||||
case SUBSTANCE: return "Group contains Substance resources";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -144,7 +144,7 @@ public class Group extends DomainResource {
|
|||
case DEVICE: return "Device";
|
||||
case MEDICATION: return "Medication";
|
||||
case SUBSTANCE: return "Substance";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -192,7 +192,9 @@ public class Group extends DomainResource {
|
|||
throw new FHIRException("Unknown GroupType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(GroupType code) {
|
||||
if (code == GroupType.PERSON)
|
||||
if (code == GroupType.NULL)
|
||||
return null;
|
||||
if (code == GroupType.PERSON)
|
||||
return "person";
|
||||
if (code == GroupType.ANIMAL)
|
||||
return "animal";
|
||||
|
@ -205,7 +207,7 @@ public class Group extends DomainResource {
|
|||
if (code == GroupType.SUBSTANCE)
|
||||
return "substance";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(GroupType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -107,7 +107,7 @@ public class GuidanceResponse extends DomainResource {
|
|||
case INPROGRESS: return "in-progress";
|
||||
case FAILURE: return "failure";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -119,7 +119,7 @@ public class GuidanceResponse extends DomainResource {
|
|||
case INPROGRESS: return "http://hl7.org/fhir/guidance-response-status";
|
||||
case FAILURE: return "http://hl7.org/fhir/guidance-response-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/guidance-response-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -131,7 +131,7 @@ public class GuidanceResponse extends DomainResource {
|
|||
case INPROGRESS: return "The request is currently being processed";
|
||||
case FAILURE: return "The request was not processed successfully";
|
||||
case ENTEREDINERROR: return "The response was entered in error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -143,7 +143,7 @@ public class GuidanceResponse extends DomainResource {
|
|||
case INPROGRESS: return "In Progress";
|
||||
case FAILURE: return "Failure";
|
||||
case ENTEREDINERROR: return "Entered In Error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -191,7 +191,9 @@ public class GuidanceResponse extends DomainResource {
|
|||
throw new FHIRException("Unknown GuidanceResponseStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(GuidanceResponseStatus code) {
|
||||
if (code == GuidanceResponseStatus.SUCCESS)
|
||||
if (code == GuidanceResponseStatus.NULL)
|
||||
return null;
|
||||
if (code == GuidanceResponseStatus.SUCCESS)
|
||||
return "success";
|
||||
if (code == GuidanceResponseStatus.DATAREQUESTED)
|
||||
return "data-requested";
|
||||
|
@ -204,7 +206,7 @@ public class GuidanceResponse extends DomainResource {
|
|||
if (code == GuidanceResponseStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(GuidanceResponseStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -115,7 +115,7 @@ public class HealthcareService extends DomainResource {
|
|||
case FRI: return "fri";
|
||||
case SAT: return "sat";
|
||||
case SUN: return "sun";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -128,7 +128,7 @@ public class HealthcareService extends DomainResource {
|
|||
case FRI: return "http://hl7.org/fhir/days-of-week";
|
||||
case SAT: return "http://hl7.org/fhir/days-of-week";
|
||||
case SUN: return "http://hl7.org/fhir/days-of-week";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -141,7 +141,7 @@ public class HealthcareService extends DomainResource {
|
|||
case FRI: return "Friday";
|
||||
case SAT: return "Saturday";
|
||||
case SUN: return "Sunday";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -154,7 +154,7 @@ public class HealthcareService extends DomainResource {
|
|||
case FRI: return "Friday";
|
||||
case SAT: return "Saturday";
|
||||
case SUN: return "Sunday";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -206,7 +206,9 @@ public class HealthcareService extends DomainResource {
|
|||
throw new FHIRException("Unknown DaysOfWeek code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DaysOfWeek code) {
|
||||
if (code == DaysOfWeek.MON)
|
||||
if (code == DaysOfWeek.NULL)
|
||||
return null;
|
||||
if (code == DaysOfWeek.MON)
|
||||
return "mon";
|
||||
if (code == DaysOfWeek.TUE)
|
||||
return "tue";
|
||||
|
@ -221,7 +223,7 @@ public class HealthcareService extends DomainResource {
|
|||
if (code == DaysOfWeek.SUN)
|
||||
return "sun";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(DaysOfWeek code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -205,7 +205,9 @@ public class HumanName extends Type implements ICompositeType {
|
|||
throw new FHIRException("Unknown NameUse code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(NameUse code) {
|
||||
if (code == NameUse.USUAL)
|
||||
if (code == NameUse.NULL)
|
||||
return null;
|
||||
if (code == NameUse.USUAL)
|
||||
return "usual";
|
||||
if (code == NameUse.OFFICIAL)
|
||||
return "official";
|
||||
|
@ -220,7 +222,7 @@ public class HumanName extends Type implements ICompositeType {
|
|||
if (code == NameUse.MAIDEN)
|
||||
return "maiden";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(NameUse code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -90,7 +90,7 @@ public class Identifier extends Type implements ICompositeType {
|
|||
case OFFICIAL: return "official";
|
||||
case TEMP: return "temp";
|
||||
case SECONDARY: return "secondary";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ public class Identifier extends Type implements ICompositeType {
|
|||
case OFFICIAL: return "http://hl7.org/fhir/identifier-use";
|
||||
case TEMP: return "http://hl7.org/fhir/identifier-use";
|
||||
case SECONDARY: return "http://hl7.org/fhir/identifier-use";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -110,7 +110,7 @@ public class Identifier extends Type implements ICompositeType {
|
|||
case OFFICIAL: return "The identifier considered to be most trusted for the identification of this item.";
|
||||
case TEMP: return "A temporary identifier.";
|
||||
case SECONDARY: return "An identifier that was assigned in secondary use - it serves to identify the object in a relative context, but cannot be consistently assigned to the same object again in a different context.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -120,7 +120,7 @@ public class Identifier extends Type implements ICompositeType {
|
|||
case OFFICIAL: return "Official";
|
||||
case TEMP: return "Temp";
|
||||
case SECONDARY: return "Secondary";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -160,7 +160,9 @@ public class Identifier extends Type implements ICompositeType {
|
|||
throw new FHIRException("Unknown IdentifierUse code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(IdentifierUse code) {
|
||||
if (code == IdentifierUse.USUAL)
|
||||
if (code == IdentifierUse.NULL)
|
||||
return null;
|
||||
if (code == IdentifierUse.USUAL)
|
||||
return "usual";
|
||||
if (code == IdentifierUse.OFFICIAL)
|
||||
return "official";
|
||||
|
@ -169,7 +171,7 @@ public class Identifier extends Type implements ICompositeType {
|
|||
if (code == IdentifierUse.SECONDARY)
|
||||
return "secondary";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(IdentifierUse code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -94,7 +94,7 @@ public class ImagingStudy extends DomainResource {
|
|||
case OFFLINE: return "OFFLINE";
|
||||
case NEARLINE: return "NEARLINE";
|
||||
case UNAVAILABLE: return "UNAVAILABLE";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ public class ImagingStudy extends DomainResource {
|
|||
case OFFLINE: return "http://dicom.nema.org/resources/ontology/DCM";
|
||||
case NEARLINE: return "http://dicom.nema.org/resources/ontology/DCM";
|
||||
case UNAVAILABLE: return "http://dicom.nema.org/resources/ontology/DCM";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -114,7 +114,7 @@ public class ImagingStudy extends DomainResource {
|
|||
case OFFLINE: return "";
|
||||
case NEARLINE: return "";
|
||||
case UNAVAILABLE: return "";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ public class ImagingStudy extends DomainResource {
|
|||
case OFFLINE: return "OFFLINE";
|
||||
case NEARLINE: return "NEARLINE";
|
||||
case UNAVAILABLE: return "UNAVAILABLE";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -164,7 +164,9 @@ public class ImagingStudy extends DomainResource {
|
|||
throw new FHIRException("Unknown InstanceAvailability code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(InstanceAvailability code) {
|
||||
if (code == InstanceAvailability.ONLINE)
|
||||
if (code == InstanceAvailability.NULL)
|
||||
return null;
|
||||
if (code == InstanceAvailability.ONLINE)
|
||||
return "ONLINE";
|
||||
if (code == InstanceAvailability.OFFLINE)
|
||||
return "OFFLINE";
|
||||
|
@ -173,7 +175,7 @@ public class ImagingStudy extends DomainResource {
|
|||
if (code == InstanceAvailability.UNAVAILABLE)
|
||||
return "UNAVAILABLE";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(InstanceAvailability code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -80,7 +80,7 @@ public class Immunization extends DomainResource {
|
|||
switch (this) {
|
||||
case COMPLETED: return "completed";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -88,7 +88,7 @@ public class Immunization extends DomainResource {
|
|||
switch (this) {
|
||||
case COMPLETED: return "http://hl7.org/fhir/medication-admin-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/medication-admin-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ public class Immunization extends DomainResource {
|
|||
switch (this) {
|
||||
case COMPLETED: return "";
|
||||
case ENTEREDINERROR: return "";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ public class Immunization extends DomainResource {
|
|||
switch (this) {
|
||||
case COMPLETED: return "completed";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -136,12 +136,14 @@ public class Immunization extends DomainResource {
|
|||
throw new FHIRException("Unknown ImmunizationStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ImmunizationStatus code) {
|
||||
if (code == ImmunizationStatus.COMPLETED)
|
||||
if (code == ImmunizationStatus.NULL)
|
||||
return null;
|
||||
if (code == ImmunizationStatus.COMPLETED)
|
||||
return "completed";
|
||||
if (code == ImmunizationStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ImmunizationStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -85,7 +85,7 @@ public class ImplementationGuide extends MetadataResource {
|
|||
switch (this) {
|
||||
case REFERENCE: return "reference";
|
||||
case INCLUSION: return "inclusion";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -93,7 +93,7 @@ public class ImplementationGuide extends MetadataResource {
|
|||
switch (this) {
|
||||
case REFERENCE: return "http://hl7.org/fhir/guide-dependency-type";
|
||||
case INCLUSION: return "http://hl7.org/fhir/guide-dependency-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -101,7 +101,7 @@ public class ImplementationGuide extends MetadataResource {
|
|||
switch (this) {
|
||||
case REFERENCE: return "The guide is referred to by URL.";
|
||||
case INCLUSION: return "The guide is embedded in this guide when published.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ public class ImplementationGuide extends MetadataResource {
|
|||
switch (this) {
|
||||
case REFERENCE: return "Reference";
|
||||
case INCLUSION: return "Inclusion";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -141,12 +141,14 @@ public class ImplementationGuide extends MetadataResource {
|
|||
throw new FHIRException("Unknown GuideDependencyType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(GuideDependencyType code) {
|
||||
if (code == GuideDependencyType.REFERENCE)
|
||||
if (code == GuideDependencyType.NULL)
|
||||
return null;
|
||||
if (code == GuideDependencyType.REFERENCE)
|
||||
return "reference";
|
||||
if (code == GuideDependencyType.INCLUSION)
|
||||
return "inclusion";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(GuideDependencyType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -223,7 +225,7 @@ public class ImplementationGuide extends MetadataResource {
|
|||
case DICTIONARY: return "dictionary";
|
||||
case TOC: return "toc";
|
||||
case RESOURCE: return "resource";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -237,7 +239,7 @@ public class ImplementationGuide extends MetadataResource {
|
|||
case DICTIONARY: return "http://hl7.org/fhir/guide-page-kind";
|
||||
case TOC: return "http://hl7.org/fhir/guide-page-kind";
|
||||
case RESOURCE: return "http://hl7.org/fhir/guide-page-kind";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -251,7 +253,7 @@ public class ImplementationGuide extends MetadataResource {
|
|||
case DICTIONARY: return "This is a page that creates the listed resources as a dictionary.";
|
||||
case TOC: return "This is a generated page that contains the table of contents.";
|
||||
case RESOURCE: return "This is a page that represents a presented resource. This is typically used for generated conformance resource presentations.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -265,7 +267,7 @@ public class ImplementationGuide extends MetadataResource {
|
|||
case DICTIONARY: return "Dictionary";
|
||||
case TOC: return "Table Of Contents";
|
||||
case RESOURCE: return "Resource";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -321,7 +323,9 @@ public class ImplementationGuide extends MetadataResource {
|
|||
throw new FHIRException("Unknown GuidePageKind code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(GuidePageKind code) {
|
||||
if (code == GuidePageKind.PAGE)
|
||||
if (code == GuidePageKind.NULL)
|
||||
return null;
|
||||
if (code == GuidePageKind.PAGE)
|
||||
return "page";
|
||||
if (code == GuidePageKind.EXAMPLE)
|
||||
return "example";
|
||||
|
@ -338,7 +342,7 @@ public class ImplementationGuide extends MetadataResource {
|
|||
if (code == GuidePageKind.RESOURCE)
|
||||
return "resource";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(GuidePageKind code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -86,7 +86,7 @@ public class Linkage extends DomainResource {
|
|||
case SOURCE: return "source";
|
||||
case ALTERNATE: return "alternate";
|
||||
case HISTORICAL: return "historical";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -95,7 +95,7 @@ public class Linkage extends DomainResource {
|
|||
case SOURCE: return "http://hl7.org/fhir/linkage-type";
|
||||
case ALTERNATE: return "http://hl7.org/fhir/linkage-type";
|
||||
case HISTORICAL: return "http://hl7.org/fhir/linkage-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ public class Linkage extends DomainResource {
|
|||
case SOURCE: return "The record represents the \"source of truth\" (from the perspective of this Linkage resource) for the underlying event/condition/etc.";
|
||||
case ALTERNATE: return "The record represents the alternative view of the underlying event/condition/etc. The record may still be actively maintained, even though it is not considered to be the source of truth.";
|
||||
case HISTORICAL: return "The record represents an obsolete record of the underlyng event/condition/etc. It is not expected to be actively maintained.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -113,7 +113,7 @@ public class Linkage extends DomainResource {
|
|||
case SOURCE: return "Source of truth";
|
||||
case ALTERNATE: return "Alternate record";
|
||||
case HISTORICAL: return "Historical/obsolete record";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -149,14 +149,16 @@ public class Linkage extends DomainResource {
|
|||
throw new FHIRException("Unknown LinkageType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(LinkageType code) {
|
||||
if (code == LinkageType.SOURCE)
|
||||
if (code == LinkageType.NULL)
|
||||
return null;
|
||||
if (code == LinkageType.SOURCE)
|
||||
return "source";
|
||||
if (code == LinkageType.ALTERNATE)
|
||||
return "alternate";
|
||||
if (code == LinkageType.HISTORICAL)
|
||||
return "historical";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(LinkageType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -87,7 +87,7 @@ public class ListResource extends DomainResource {
|
|||
case CURRENT: return "current";
|
||||
case RETIRED: return "retired";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ public class ListResource extends DomainResource {
|
|||
case CURRENT: return "http://hl7.org/fhir/list-status";
|
||||
case RETIRED: return "http://hl7.org/fhir/list-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/list-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -105,7 +105,7 @@ public class ListResource extends DomainResource {
|
|||
case CURRENT: return "The list is considered to be an active part of the patient's record.";
|
||||
case RETIRED: return "The list is \"old\" and should no longer be considered accurate or relevant.";
|
||||
case ENTEREDINERROR: return "The list was never accurate. It is retained for medico-legal purposes only.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -114,7 +114,7 @@ public class ListResource extends DomainResource {
|
|||
case CURRENT: return "Current";
|
||||
case RETIRED: return "Retired";
|
||||
case ENTEREDINERROR: return "Entered In Error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -150,14 +150,16 @@ public class ListResource extends DomainResource {
|
|||
throw new FHIRException("Unknown ListStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ListStatus code) {
|
||||
if (code == ListStatus.CURRENT)
|
||||
if (code == ListStatus.NULL)
|
||||
return null;
|
||||
if (code == ListStatus.CURRENT)
|
||||
return "current";
|
||||
if (code == ListStatus.RETIRED)
|
||||
return "retired";
|
||||
if (code == ListStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ListStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -199,7 +201,7 @@ public class ListResource extends DomainResource {
|
|||
case WORKING: return "working";
|
||||
case SNAPSHOT: return "snapshot";
|
||||
case CHANGES: return "changes";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -208,7 +210,7 @@ public class ListResource extends DomainResource {
|
|||
case WORKING: return "http://hl7.org/fhir/list-mode";
|
||||
case SNAPSHOT: return "http://hl7.org/fhir/list-mode";
|
||||
case CHANGES: return "http://hl7.org/fhir/list-mode";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -217,7 +219,7 @@ public class ListResource extends DomainResource {
|
|||
case WORKING: return "This list is the master list, maintained in an ongoing fashion with regular updates as the real world list it is tracking changes";
|
||||
case SNAPSHOT: return "This list was prepared as a snapshot. It should not be assumed to be current";
|
||||
case CHANGES: return "A list that indicates where changes have been made or recommended";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -226,7 +228,7 @@ public class ListResource extends DomainResource {
|
|||
case WORKING: return "Working List";
|
||||
case SNAPSHOT: return "Snapshot List";
|
||||
case CHANGES: return "Change List";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -262,14 +264,16 @@ public class ListResource extends DomainResource {
|
|||
throw new FHIRException("Unknown ListMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ListMode code) {
|
||||
if (code == ListMode.WORKING)
|
||||
if (code == ListMode.NULL)
|
||||
return null;
|
||||
if (code == ListMode.WORKING)
|
||||
return "working";
|
||||
if (code == ListMode.SNAPSHOT)
|
||||
return "snapshot";
|
||||
if (code == ListMode.CHANGES)
|
||||
return "changes";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ListMode code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -89,7 +89,7 @@ public class Location extends DomainResource {
|
|||
case ACTIVE: return "active";
|
||||
case SUSPENDED: return "suspended";
|
||||
case INACTIVE: return "inactive";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -98,7 +98,7 @@ public class Location extends DomainResource {
|
|||
case ACTIVE: return "http://hl7.org/fhir/location-status";
|
||||
case SUSPENDED: return "http://hl7.org/fhir/location-status";
|
||||
case INACTIVE: return "http://hl7.org/fhir/location-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -107,7 +107,7 @@ public class Location extends DomainResource {
|
|||
case ACTIVE: return "The location is operational.";
|
||||
case SUSPENDED: return "The location is temporarily closed.";
|
||||
case INACTIVE: return "The location is no longer used.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -116,7 +116,7 @@ public class Location extends DomainResource {
|
|||
case ACTIVE: return "Active";
|
||||
case SUSPENDED: return "Suspended";
|
||||
case INACTIVE: return "Inactive";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -152,14 +152,16 @@ public class Location extends DomainResource {
|
|||
throw new FHIRException("Unknown LocationStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(LocationStatus code) {
|
||||
if (code == LocationStatus.ACTIVE)
|
||||
if (code == LocationStatus.NULL)
|
||||
return null;
|
||||
if (code == LocationStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == LocationStatus.SUSPENDED)
|
||||
return "suspended";
|
||||
if (code == LocationStatus.INACTIVE)
|
||||
return "inactive";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(LocationStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -194,7 +196,7 @@ public class Location extends DomainResource {
|
|||
switch (this) {
|
||||
case INSTANCE: return "instance";
|
||||
case KIND: return "kind";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -202,7 +204,7 @@ public class Location extends DomainResource {
|
|||
switch (this) {
|
||||
case INSTANCE: return "http://hl7.org/fhir/location-mode";
|
||||
case KIND: return "http://hl7.org/fhir/location-mode";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -210,7 +212,7 @@ public class Location extends DomainResource {
|
|||
switch (this) {
|
||||
case INSTANCE: return "The Location resource represents a specific instance of a location (e.g. Operating Theatre 1A).";
|
||||
case KIND: return "The Location represents a class of locations (e.g. Any Operating Theatre) although this class of locations could be constrained within a specific boundary (such as organization, or parent location, address etc.).";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -218,7 +220,7 @@ public class Location extends DomainResource {
|
|||
switch (this) {
|
||||
case INSTANCE: return "Instance";
|
||||
case KIND: return "Kind";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -250,12 +252,14 @@ public class Location extends DomainResource {
|
|||
throw new FHIRException("Unknown LocationMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(LocationMode code) {
|
||||
if (code == LocationMode.INSTANCE)
|
||||
if (code == LocationMode.NULL)
|
||||
return null;
|
||||
if (code == LocationMode.INSTANCE)
|
||||
return "instance";
|
||||
if (code == LocationMode.KIND)
|
||||
return "kind";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(LocationMode code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -89,7 +89,7 @@ public class MeasureReport extends DomainResource {
|
|||
case COMPLETE: return "complete";
|
||||
case PENDING: return "pending";
|
||||
case ERROR: return "error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -98,7 +98,7 @@ public class MeasureReport extends DomainResource {
|
|||
case COMPLETE: return "http://hl7.org/fhir/measure-report-status";
|
||||
case PENDING: return "http://hl7.org/fhir/measure-report-status";
|
||||
case ERROR: return "http://hl7.org/fhir/measure-report-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -107,7 +107,7 @@ public class MeasureReport extends DomainResource {
|
|||
case COMPLETE: return "The report is complete and ready for use";
|
||||
case PENDING: return "The report is currently being generated";
|
||||
case ERROR: return "An error occurred attempting to generate the report";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -116,7 +116,7 @@ public class MeasureReport extends DomainResource {
|
|||
case COMPLETE: return "Complete";
|
||||
case PENDING: return "Pending";
|
||||
case ERROR: return "Error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -152,14 +152,16 @@ public class MeasureReport extends DomainResource {
|
|||
throw new FHIRException("Unknown MeasureReportStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MeasureReportStatus code) {
|
||||
if (code == MeasureReportStatus.COMPLETE)
|
||||
if (code == MeasureReportStatus.NULL)
|
||||
return null;
|
||||
if (code == MeasureReportStatus.COMPLETE)
|
||||
return "complete";
|
||||
if (code == MeasureReportStatus.PENDING)
|
||||
return "pending";
|
||||
if (code == MeasureReportStatus.ERROR)
|
||||
return "error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(MeasureReportStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -201,7 +203,7 @@ public class MeasureReport extends DomainResource {
|
|||
case INDIVIDUAL: return "individual";
|
||||
case PATIENTLIST: return "patient-list";
|
||||
case SUMMARY: return "summary";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -210,7 +212,7 @@ public class MeasureReport extends DomainResource {
|
|||
case INDIVIDUAL: return "http://hl7.org/fhir/measure-report-type";
|
||||
case PATIENTLIST: return "http://hl7.org/fhir/measure-report-type";
|
||||
case SUMMARY: return "http://hl7.org/fhir/measure-report-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -219,7 +221,7 @@ public class MeasureReport extends DomainResource {
|
|||
case INDIVIDUAL: return "An individual report that provides information on the performance for a given measure with respect to a single patient";
|
||||
case PATIENTLIST: return "A patient list report that includes a listing of patients that satisfied each population criteria in the measure";
|
||||
case SUMMARY: return "A summary report that returns the number of patients in each population criteria for the measure";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -228,7 +230,7 @@ public class MeasureReport extends DomainResource {
|
|||
case INDIVIDUAL: return "Individual";
|
||||
case PATIENTLIST: return "Patient List";
|
||||
case SUMMARY: return "Summary";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -264,14 +266,16 @@ public class MeasureReport extends DomainResource {
|
|||
throw new FHIRException("Unknown MeasureReportType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MeasureReportType code) {
|
||||
if (code == MeasureReportType.INDIVIDUAL)
|
||||
if (code == MeasureReportType.NULL)
|
||||
return null;
|
||||
if (code == MeasureReportType.INDIVIDUAL)
|
||||
return "individual";
|
||||
if (code == MeasureReportType.PATIENTLIST)
|
||||
return "patient-list";
|
||||
if (code == MeasureReportType.SUMMARY)
|
||||
return "summary";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(MeasureReportType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -85,7 +85,7 @@ public class Media extends DomainResource {
|
|||
case PHOTO: return "photo";
|
||||
case VIDEO: return "video";
|
||||
case AUDIO: return "audio";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -94,7 +94,7 @@ public class Media extends DomainResource {
|
|||
case PHOTO: return "http://hl7.org/fhir/digital-media-type";
|
||||
case VIDEO: return "http://hl7.org/fhir/digital-media-type";
|
||||
case AUDIO: return "http://hl7.org/fhir/digital-media-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -103,7 +103,7 @@ public class Media extends DomainResource {
|
|||
case PHOTO: return "The media consists of one or more unmoving images, including photographs, computer-generated graphs and charts, and scanned documents";
|
||||
case VIDEO: return "The media consists of a series of frames that capture a moving image";
|
||||
case AUDIO: return "The media consists of a sound recording";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -112,7 +112,7 @@ public class Media extends DomainResource {
|
|||
case PHOTO: return "Photo";
|
||||
case VIDEO: return "Video";
|
||||
case AUDIO: return "Audio";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -148,14 +148,16 @@ public class Media extends DomainResource {
|
|||
throw new FHIRException("Unknown DigitalMediaType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DigitalMediaType code) {
|
||||
if (code == DigitalMediaType.PHOTO)
|
||||
if (code == DigitalMediaType.NULL)
|
||||
return null;
|
||||
if (code == DigitalMediaType.PHOTO)
|
||||
return "photo";
|
||||
if (code == DigitalMediaType.VIDEO)
|
||||
return "video";
|
||||
if (code == DigitalMediaType.AUDIO)
|
||||
return "audio";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(DigitalMediaType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -88,7 +88,7 @@ public class Medication extends DomainResource {
|
|||
case ACTIVE: return "active";
|
||||
case INACTIVE: return "inactive";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ public class Medication extends DomainResource {
|
|||
case ACTIVE: return "http://hl7.org/fhir/medication-status";
|
||||
case INACTIVE: return "http://hl7.org/fhir/medication-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/medication-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -106,7 +106,7 @@ public class Medication extends DomainResource {
|
|||
case ACTIVE: return "The medication is available for use";
|
||||
case INACTIVE: return "The medication is not available for use";
|
||||
case ENTEREDINERROR: return "The medication was entered in error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -115,7 +115,7 @@ public class Medication extends DomainResource {
|
|||
case ACTIVE: return "Active";
|
||||
case INACTIVE: return "Inactive";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -151,14 +151,16 @@ public class Medication extends DomainResource {
|
|||
throw new FHIRException("Unknown MedicationStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MedicationStatus code) {
|
||||
if (code == MedicationStatus.ACTIVE)
|
||||
if (code == MedicationStatus.NULL)
|
||||
return null;
|
||||
if (code == MedicationStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == MedicationStatus.INACTIVE)
|
||||
return "inactive";
|
||||
if (code == MedicationStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(MedicationStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -109,7 +109,7 @@ public class MedicationAdministration extends DomainResource {
|
|||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case STOPPED: return "stopped";
|
||||
case UNKNOWN: return "unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -121,7 +121,7 @@ public class MedicationAdministration extends DomainResource {
|
|||
case ENTEREDINERROR: return "http://hl7.org/fhir/medication-admin-status";
|
||||
case STOPPED: return "http://hl7.org/fhir/medication-admin-status";
|
||||
case UNKNOWN: return "http://hl7.org/fhir/medication-admin-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -133,7 +133,7 @@ public class MedicationAdministration extends DomainResource {
|
|||
case ENTEREDINERROR: return "The administration was entered in error and therefore nullified.";
|
||||
case STOPPED: return "Actions implied by the administration have been permanently halted, before all of them occurred.";
|
||||
case UNKNOWN: return "The authoring system does not know which of the status values currently applies for this request. Note: This concept is not to be used for \"other\" - one of the listed statuses is presumed to apply, it's just not known which one.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -145,7 +145,7 @@ public class MedicationAdministration extends DomainResource {
|
|||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case STOPPED: return "Stopped";
|
||||
case UNKNOWN: return "Unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -193,7 +193,9 @@ public class MedicationAdministration extends DomainResource {
|
|||
throw new FHIRException("Unknown MedicationAdministrationStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MedicationAdministrationStatus code) {
|
||||
if (code == MedicationAdministrationStatus.INPROGRESS)
|
||||
if (code == MedicationAdministrationStatus.NULL)
|
||||
return null;
|
||||
if (code == MedicationAdministrationStatus.INPROGRESS)
|
||||
return "in-progress";
|
||||
if (code == MedicationAdministrationStatus.ONHOLD)
|
||||
return "on-hold";
|
||||
|
@ -206,7 +208,7 @@ public class MedicationAdministration extends DomainResource {
|
|||
if (code == MedicationAdministrationStatus.UNKNOWN)
|
||||
return "unknown";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(MedicationAdministrationStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -109,7 +109,7 @@ public class MedicationDispense extends DomainResource {
|
|||
case COMPLETED: return "completed";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case STOPPED: return "stopped";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -121,7 +121,7 @@ public class MedicationDispense extends DomainResource {
|
|||
case COMPLETED: return "http://hl7.org/fhir/medication-dispense-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/medication-dispense-status";
|
||||
case STOPPED: return "http://hl7.org/fhir/medication-dispense-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -133,7 +133,7 @@ public class MedicationDispense extends DomainResource {
|
|||
case COMPLETED: return "All actions that are implied by the dispense have occurred.";
|
||||
case ENTEREDINERROR: return "The dispense was entered in error and therefore nullified.";
|
||||
case STOPPED: return "Actions implied by the dispense have been permanently halted, before all of them occurred.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -145,7 +145,7 @@ public class MedicationDispense extends DomainResource {
|
|||
case COMPLETED: return "Completed";
|
||||
case ENTEREDINERROR: return "Entered in-Error";
|
||||
case STOPPED: return "Stopped";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -193,7 +193,9 @@ public class MedicationDispense extends DomainResource {
|
|||
throw new FHIRException("Unknown MedicationDispenseStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MedicationDispenseStatus code) {
|
||||
if (code == MedicationDispenseStatus.PREPARATION)
|
||||
if (code == MedicationDispenseStatus.NULL)
|
||||
return null;
|
||||
if (code == MedicationDispenseStatus.PREPARATION)
|
||||
return "preparation";
|
||||
if (code == MedicationDispenseStatus.INPROGRESS)
|
||||
return "in-progress";
|
||||
|
@ -206,7 +208,7 @@ public class MedicationDispense extends DomainResource {
|
|||
if (code == MedicationDispenseStatus.STOPPED)
|
||||
return "stopped";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(MedicationDispenseStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -123,7 +123,7 @@ public class MedicationRequest extends DomainResource {
|
|||
case STOPPED: return "stopped";
|
||||
case DRAFT: return "draft";
|
||||
case UNKNOWN: return "unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -137,7 +137,7 @@ public class MedicationRequest extends DomainResource {
|
|||
case STOPPED: return "http://hl7.org/fhir/medication-request-status";
|
||||
case DRAFT: return "http://hl7.org/fhir/medication-request-status";
|
||||
case UNKNOWN: return "http://hl7.org/fhir/medication-request-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -151,7 +151,7 @@ public class MedicationRequest extends DomainResource {
|
|||
case STOPPED: return "Actions implied by the prescription are to be permanently halted, before all of them occurred.";
|
||||
case DRAFT: return "The prescription is not yet 'actionable', i.e. it is a work in progress, requires sign-off or verification, and needs to be run through decision support process.";
|
||||
case UNKNOWN: return "The authoring system does not know which of the status values currently applies for this request";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -165,7 +165,7 @@ public class MedicationRequest extends DomainResource {
|
|||
case STOPPED: return "Stopped";
|
||||
case DRAFT: return "Draft";
|
||||
case UNKNOWN: return "Unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -221,7 +221,9 @@ public class MedicationRequest extends DomainResource {
|
|||
throw new FHIRException("Unknown MedicationRequestStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MedicationRequestStatus code) {
|
||||
if (code == MedicationRequestStatus.ACTIVE)
|
||||
if (code == MedicationRequestStatus.NULL)
|
||||
return null;
|
||||
if (code == MedicationRequestStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == MedicationRequestStatus.ONHOLD)
|
||||
return "on-hold";
|
||||
|
@ -238,7 +240,7 @@ public class MedicationRequest extends DomainResource {
|
|||
if (code == MedicationRequestStatus.UNKNOWN)
|
||||
return "unknown";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(MedicationRequestStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -287,7 +289,7 @@ public class MedicationRequest extends DomainResource {
|
|||
case PLAN: return "plan";
|
||||
case ORDER: return "order";
|
||||
case INSTANCEORDER: return "instance-order";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -297,7 +299,7 @@ public class MedicationRequest extends DomainResource {
|
|||
case PLAN: return "http://hl7.org/fhir/medication-request-intent";
|
||||
case ORDER: return "http://hl7.org/fhir/medication-request-intent";
|
||||
case INSTANCEORDER: return "http://hl7.org/fhir/medication-request-intent";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -307,7 +309,7 @@ public class MedicationRequest extends DomainResource {
|
|||
case PLAN: return "The request represents an intension to ensure something occurs without providing an authorization for others to act";
|
||||
case ORDER: return "The request represents a request/demand and authorization for action";
|
||||
case INSTANCEORDER: return "The request represents an instance for the particular order, for example a medication administration record.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -317,7 +319,7 @@ public class MedicationRequest extends DomainResource {
|
|||
case PLAN: return "Plan";
|
||||
case ORDER: return "Order";
|
||||
case INSTANCEORDER: return "Instance Order";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -357,7 +359,9 @@ public class MedicationRequest extends DomainResource {
|
|||
throw new FHIRException("Unknown MedicationRequestIntent code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MedicationRequestIntent code) {
|
||||
if (code == MedicationRequestIntent.PROPOSAL)
|
||||
if (code == MedicationRequestIntent.NULL)
|
||||
return null;
|
||||
if (code == MedicationRequestIntent.PROPOSAL)
|
||||
return "proposal";
|
||||
if (code == MedicationRequestIntent.PLAN)
|
||||
return "plan";
|
||||
|
@ -366,7 +370,7 @@ public class MedicationRequest extends DomainResource {
|
|||
if (code == MedicationRequestIntent.INSTANCEORDER)
|
||||
return "instance-order";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(MedicationRequestIntent code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -415,7 +419,7 @@ public class MedicationRequest extends DomainResource {
|
|||
case URGENT: return "urgent";
|
||||
case STAT: return "stat";
|
||||
case ASAP: return "asap";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -425,7 +429,7 @@ public class MedicationRequest extends DomainResource {
|
|||
case URGENT: return "http://hl7.org/fhir/medication-request-priority";
|
||||
case STAT: return "http://hl7.org/fhir/medication-request-priority";
|
||||
case ASAP: return "http://hl7.org/fhir/medication-request-priority";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -435,7 +439,7 @@ public class MedicationRequest extends DomainResource {
|
|||
case URGENT: return "The order should be urgently.";
|
||||
case STAT: return "The order is time-critical.";
|
||||
case ASAP: return "The order should be acted on as soon as possible.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -445,7 +449,7 @@ public class MedicationRequest extends DomainResource {
|
|||
case URGENT: return "Urgent";
|
||||
case STAT: return "Stat";
|
||||
case ASAP: return "ASAP";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -485,7 +489,9 @@ public class MedicationRequest extends DomainResource {
|
|||
throw new FHIRException("Unknown MedicationRequestPriority code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MedicationRequestPriority code) {
|
||||
if (code == MedicationRequestPriority.ROUTINE)
|
||||
if (code == MedicationRequestPriority.NULL)
|
||||
return null;
|
||||
if (code == MedicationRequestPriority.ROUTINE)
|
||||
return "routine";
|
||||
if (code == MedicationRequestPriority.URGENT)
|
||||
return "urgent";
|
||||
|
@ -494,7 +500,7 @@ public class MedicationRequest extends DomainResource {
|
|||
if (code == MedicationRequestPriority.ASAP)
|
||||
return "asap";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(MedicationRequestPriority code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -108,7 +108,7 @@ public class MedicationStatement extends DomainResource {
|
|||
case INTENDED: return "intended";
|
||||
case STOPPED: return "stopped";
|
||||
case ONHOLD: return "on-hold";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -120,7 +120,7 @@ public class MedicationStatement extends DomainResource {
|
|||
case INTENDED: return "http://hl7.org/fhir/medication-statement-status";
|
||||
case STOPPED: return "http://hl7.org/fhir/medication-statement-status";
|
||||
case ONHOLD: return "http://hl7.org/fhir/medication-statement-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -132,7 +132,7 @@ public class MedicationStatement extends DomainResource {
|
|||
case INTENDED: return "The medication may be taken at some time in the future.";
|
||||
case STOPPED: return "Actions implied by the statement have been permanently halted, before all of them occurred.";
|
||||
case ONHOLD: return "Actions implied by the statement have been temporarily halted, but are expected to continue later. May also be called \"suspended\".";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -144,7 +144,7 @@ public class MedicationStatement extends DomainResource {
|
|||
case INTENDED: return "Intended";
|
||||
case STOPPED: return "Stopped";
|
||||
case ONHOLD: return "On Hold";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -192,7 +192,9 @@ public class MedicationStatement extends DomainResource {
|
|||
throw new FHIRException("Unknown MedicationStatementStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MedicationStatementStatus code) {
|
||||
if (code == MedicationStatementStatus.ACTIVE)
|
||||
if (code == MedicationStatementStatus.NULL)
|
||||
return null;
|
||||
if (code == MedicationStatementStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == MedicationStatementStatus.COMPLETED)
|
||||
return "completed";
|
||||
|
@ -205,7 +207,7 @@ public class MedicationStatement extends DomainResource {
|
|||
if (code == MedicationStatementStatus.ONHOLD)
|
||||
return "on-hold";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(MedicationStatementStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -254,7 +256,7 @@ public class MedicationStatement extends DomainResource {
|
|||
case N: return "n";
|
||||
case UNK: return "unk";
|
||||
case NA: return "na";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -264,7 +266,7 @@ public class MedicationStatement extends DomainResource {
|
|||
case N: return "http://hl7.org/fhir/medication-statement-taken";
|
||||
case UNK: return "http://hl7.org/fhir/medication-statement-taken";
|
||||
case NA: return "http://hl7.org/fhir/medication-statement-taken";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -274,7 +276,7 @@ public class MedicationStatement extends DomainResource {
|
|||
case N: return "Negative assertion that patient has not taken medication";
|
||||
case UNK: return "Unknown assertion if patient has taken medication";
|
||||
case NA: return "Patient reporting does not apply";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -284,7 +286,7 @@ public class MedicationStatement extends DomainResource {
|
|||
case N: return "No";
|
||||
case UNK: return "Unknown";
|
||||
case NA: return "Not Applicable";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -324,7 +326,9 @@ public class MedicationStatement extends DomainResource {
|
|||
throw new FHIRException("Unknown MedicationStatementTaken code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MedicationStatementTaken code) {
|
||||
if (code == MedicationStatementTaken.Y)
|
||||
if (code == MedicationStatementTaken.NULL)
|
||||
return null;
|
||||
if (code == MedicationStatementTaken.Y)
|
||||
return "y";
|
||||
if (code == MedicationStatementTaken.N)
|
||||
return "n";
|
||||
|
@ -333,7 +337,7 @@ public class MedicationStatement extends DomainResource {
|
|||
if (code == MedicationStatementTaken.NA)
|
||||
return "na";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(MedicationStatementTaken code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -91,7 +91,7 @@ public class MessageDefinition extends MetadataResource {
|
|||
case CONSEQUENCE: return "Consequence";
|
||||
case CURRENCY: return "Currency";
|
||||
case NOTIFICATION: return "Notification";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ public class MessageDefinition extends MetadataResource {
|
|||
case CONSEQUENCE: return "http://hl7.org/fhir/message-significance-category";
|
||||
case CURRENCY: return "http://hl7.org/fhir/message-significance-category";
|
||||
case NOTIFICATION: return "http://hl7.org/fhir/message-significance-category";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ public class MessageDefinition extends MetadataResource {
|
|||
case CONSEQUENCE: return "The message represents/requests a change that should not be processed more than once; e.g., making a booking for an appointment.";
|
||||
case CURRENCY: return "The message represents a response to query for current information. Retrospective processing is wrong and/or wasteful.";
|
||||
case NOTIFICATION: return "The content is not necessarily intended to be current, and it can be reprocessed, though there may be version issues created by processing old notifications.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -118,7 +118,7 @@ public class MessageDefinition extends MetadataResource {
|
|||
case CONSEQUENCE: return "Consequence";
|
||||
case CURRENCY: return "Currency";
|
||||
case NOTIFICATION: return "Notification";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -154,14 +154,16 @@ public class MessageDefinition extends MetadataResource {
|
|||
throw new FHIRException("Unknown MessageSignificanceCategory code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MessageSignificanceCategory code) {
|
||||
if (code == MessageSignificanceCategory.CONSEQUENCE)
|
||||
if (code == MessageSignificanceCategory.NULL)
|
||||
return null;
|
||||
if (code == MessageSignificanceCategory.CONSEQUENCE)
|
||||
return "Consequence";
|
||||
if (code == MessageSignificanceCategory.CURRENCY)
|
||||
return "Currency";
|
||||
if (code == MessageSignificanceCategory.NOTIFICATION)
|
||||
return "Notification";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(MessageSignificanceCategory code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -87,7 +87,7 @@ public class MessageHeader extends DomainResource {
|
|||
case OK: return "ok";
|
||||
case TRANSIENTERROR: return "transient-error";
|
||||
case FATALERROR: return "fatal-error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ public class MessageHeader extends DomainResource {
|
|||
case OK: return "http://hl7.org/fhir/response-code";
|
||||
case TRANSIENTERROR: return "http://hl7.org/fhir/response-code";
|
||||
case FATALERROR: return "http://hl7.org/fhir/response-code";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -105,7 +105,7 @@ public class MessageHeader extends DomainResource {
|
|||
case OK: return "The message was accepted and processed without error.";
|
||||
case TRANSIENTERROR: return "Some internal unexpected error occurred - wait and try again. Note - this is usually used for things like database unavailable, which may be expected to resolve, though human intervention may be required.";
|
||||
case FATALERROR: return "The message was rejected because of a problem with the content. There is no point in re-sending without change. The response narrative SHALL describe the issue.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -114,7 +114,7 @@ public class MessageHeader extends DomainResource {
|
|||
case OK: return "OK";
|
||||
case TRANSIENTERROR: return "Transient Error";
|
||||
case FATALERROR: return "Fatal Error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -150,14 +150,16 @@ public class MessageHeader extends DomainResource {
|
|||
throw new FHIRException("Unknown ResponseType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ResponseType code) {
|
||||
if (code == ResponseType.OK)
|
||||
if (code == ResponseType.NULL)
|
||||
return null;
|
||||
if (code == ResponseType.OK)
|
||||
return "ok";
|
||||
if (code == ResponseType.TRANSIENTERROR)
|
||||
return "transient-error";
|
||||
if (code == ResponseType.FATALERROR)
|
||||
return "fatal-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ResponseType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -91,7 +91,7 @@ public class NamingSystem extends MetadataResource {
|
|||
case CODESYSTEM: return "codesystem";
|
||||
case IDENTIFIER: return "identifier";
|
||||
case ROOT: return "root";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ public class NamingSystem extends MetadataResource {
|
|||
case CODESYSTEM: return "http://hl7.org/fhir/namingsystem-type";
|
||||
case IDENTIFIER: return "http://hl7.org/fhir/namingsystem-type";
|
||||
case ROOT: return "http://hl7.org/fhir/namingsystem-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ public class NamingSystem extends MetadataResource {
|
|||
case CODESYSTEM: return "The naming system is used to define concepts and symbols to represent those concepts; e.g. UCUM, LOINC, NDC code, local lab codes, etc.";
|
||||
case IDENTIFIER: return "The naming system is used to manage identifiers (e.g. license numbers, order numbers, etc.).";
|
||||
case ROOT: return "The naming system is used as the root for other identifiers and naming systems.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -118,7 +118,7 @@ public class NamingSystem extends MetadataResource {
|
|||
case CODESYSTEM: return "Code System";
|
||||
case IDENTIFIER: return "Identifier";
|
||||
case ROOT: return "Root";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -154,14 +154,16 @@ public class NamingSystem extends MetadataResource {
|
|||
throw new FHIRException("Unknown NamingSystemType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(NamingSystemType code) {
|
||||
if (code == NamingSystemType.CODESYSTEM)
|
||||
if (code == NamingSystemType.NULL)
|
||||
return null;
|
||||
if (code == NamingSystemType.CODESYSTEM)
|
||||
return "codesystem";
|
||||
if (code == NamingSystemType.IDENTIFIER)
|
||||
return "identifier";
|
||||
if (code == NamingSystemType.ROOT)
|
||||
return "root";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(NamingSystemType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -210,7 +212,7 @@ public class NamingSystem extends MetadataResource {
|
|||
case UUID: return "uuid";
|
||||
case URI: return "uri";
|
||||
case OTHER: return "other";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -220,7 +222,7 @@ public class NamingSystem extends MetadataResource {
|
|||
case UUID: return "http://hl7.org/fhir/namingsystem-identifier-type";
|
||||
case URI: return "http://hl7.org/fhir/namingsystem-identifier-type";
|
||||
case OTHER: return "http://hl7.org/fhir/namingsystem-identifier-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -230,7 +232,7 @@ public class NamingSystem extends MetadataResource {
|
|||
case UUID: return "A universally unique identifier of the form a5afddf4-e880-459b-876e-e4591b0acc11.";
|
||||
case URI: return "A uniform resource identifier (ideally a URL - uniform resource locator); e.g. http://unitsofmeasure.org.";
|
||||
case OTHER: return "Some other type of unique identifier; e.g. HL7-assigned reserved string such as LN for LOINC.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -240,7 +242,7 @@ public class NamingSystem extends MetadataResource {
|
|||
case UUID: return "UUID";
|
||||
case URI: return "URI";
|
||||
case OTHER: return "Other";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -280,7 +282,9 @@ public class NamingSystem extends MetadataResource {
|
|||
throw new FHIRException("Unknown NamingSystemIdentifierType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(NamingSystemIdentifierType code) {
|
||||
if (code == NamingSystemIdentifierType.OID)
|
||||
if (code == NamingSystemIdentifierType.NULL)
|
||||
return null;
|
||||
if (code == NamingSystemIdentifierType.OID)
|
||||
return "oid";
|
||||
if (code == NamingSystemIdentifierType.UUID)
|
||||
return "uuid";
|
||||
|
@ -289,7 +293,7 @@ public class NamingSystem extends MetadataResource {
|
|||
if (code == NamingSystemIdentifierType.OTHER)
|
||||
return "other";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(NamingSystemIdentifierType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -90,7 +90,7 @@ public class Narrative extends BaseNarrative implements INarrative {
|
|||
case EXTENSIONS: return "extensions";
|
||||
case ADDITIONAL: return "additional";
|
||||
case EMPTY: return "empty";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ public class Narrative extends BaseNarrative implements INarrative {
|
|||
case EXTENSIONS: return "http://hl7.org/fhir/narrative-status";
|
||||
case ADDITIONAL: return "http://hl7.org/fhir/narrative-status";
|
||||
case EMPTY: return "http://hl7.org/fhir/narrative-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -110,7 +110,7 @@ public class Narrative extends BaseNarrative implements INarrative {
|
|||
case EXTENSIONS: return "The contents of the narrative are entirely generated from the structured data in the content and some of the content is generated from extensions";
|
||||
case ADDITIONAL: return "The contents of the narrative may contain additional information not found in the structured data. Note that there is no computable way to determine what the extra information is, other than by human inspection";
|
||||
case EMPTY: return "The contents of the narrative are some equivalent of \"No human-readable text provided in this case\"";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -120,7 +120,7 @@ public class Narrative extends BaseNarrative implements INarrative {
|
|||
case EXTENSIONS: return "Extensions";
|
||||
case ADDITIONAL: return "Additional";
|
||||
case EMPTY: return "Empty";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -160,7 +160,9 @@ public class Narrative extends BaseNarrative implements INarrative {
|
|||
throw new FHIRException("Unknown NarrativeStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(NarrativeStatus code) {
|
||||
if (code == NarrativeStatus.GENERATED)
|
||||
if (code == NarrativeStatus.NULL)
|
||||
return null;
|
||||
if (code == NarrativeStatus.GENERATED)
|
||||
return "generated";
|
||||
if (code == NarrativeStatus.EXTENSIONS)
|
||||
return "extensions";
|
||||
|
@ -169,7 +171,7 @@ public class Narrative extends BaseNarrative implements INarrative {
|
|||
if (code == NarrativeStatus.EMPTY)
|
||||
return "empty";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(NarrativeStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -130,7 +130,7 @@ public class NutritionOrder extends DomainResource {
|
|||
case COMPLETED: return "completed";
|
||||
case CANCELLED: return "cancelled";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -145,7 +145,7 @@ public class NutritionOrder extends DomainResource {
|
|||
case COMPLETED: return "http://hl7.org/fhir/nutrition-request-status";
|
||||
case CANCELLED: return "http://hl7.org/fhir/nutrition-request-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/nutrition-request-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -160,7 +160,7 @@ public class NutritionOrder extends DomainResource {
|
|||
case COMPLETED: return "All actions that are implied by the order have occurred and no continuation is planned (this will rarely be made explicit).";
|
||||
case CANCELLED: return "The request has been withdrawn and is no longer actionable.";
|
||||
case ENTEREDINERROR: return "The request was entered in error and voided.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -175,7 +175,7 @@ public class NutritionOrder extends DomainResource {
|
|||
case COMPLETED: return "Completed";
|
||||
case CANCELLED: return "Cancelled";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -235,7 +235,9 @@ public class NutritionOrder extends DomainResource {
|
|||
throw new FHIRException("Unknown NutritionOrderStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(NutritionOrderStatus code) {
|
||||
if (code == NutritionOrderStatus.PROPOSED)
|
||||
if (code == NutritionOrderStatus.NULL)
|
||||
return null;
|
||||
if (code == NutritionOrderStatus.PROPOSED)
|
||||
return "proposed";
|
||||
if (code == NutritionOrderStatus.DRAFT)
|
||||
return "draft";
|
||||
|
@ -254,7 +256,7 @@ public class NutritionOrder extends DomainResource {
|
|||
if (code == NutritionOrderStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(NutritionOrderStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -124,7 +124,7 @@ public class Observation extends DomainResource {
|
|||
case CANCELLED: return "cancelled";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case UNKNOWN: return "unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -138,7 +138,7 @@ public class Observation extends DomainResource {
|
|||
case CANCELLED: return "http://hl7.org/fhir/observation-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/observation-status";
|
||||
case UNKNOWN: return "http://hl7.org/fhir/observation-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -152,7 +152,7 @@ public class Observation extends DomainResource {
|
|||
case CANCELLED: return "The observation is unavailable because the measurement was not started or not completed (also sometimes called \"aborted\").";
|
||||
case ENTEREDINERROR: return "The observation has been withdrawn following previous final release. This electronic record should never have existed, though it is possible that real-world decisions were based on it. (If real-world activity has occurred, the status should be \"cancelled\" rather than \"entered-in-error\".)";
|
||||
case UNKNOWN: return "The authoring system does not know which of the status values currently applies for this request. Note: This concept is not to be used for \"other\" - one of the listed statuses is presumed to apply, but the authoring system does not know which.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -166,7 +166,7 @@ public class Observation extends DomainResource {
|
|||
case CANCELLED: return "Cancelled";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case UNKNOWN: return "Unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -222,7 +222,9 @@ public class Observation extends DomainResource {
|
|||
throw new FHIRException("Unknown ObservationStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ObservationStatus code) {
|
||||
if (code == ObservationStatus.REGISTERED)
|
||||
if (code == ObservationStatus.NULL)
|
||||
return null;
|
||||
if (code == ObservationStatus.REGISTERED)
|
||||
return "registered";
|
||||
if (code == ObservationStatus.PRELIMINARY)
|
||||
return "preliminary";
|
||||
|
@ -239,7 +241,7 @@ public class Observation extends DomainResource {
|
|||
if (code == ObservationStatus.UNKNOWN)
|
||||
return "unknown";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ObservationStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -302,7 +304,7 @@ public class Observation extends DomainResource {
|
|||
case REPLACES: return "replaces";
|
||||
case QUALIFIEDBY: return "qualified-by";
|
||||
case INTERFEREDBY: return "interfered-by";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -314,7 +316,7 @@ public class Observation extends DomainResource {
|
|||
case REPLACES: return "http://hl7.org/fhir/observation-relationshiptypes";
|
||||
case QUALIFIEDBY: return "http://hl7.org/fhir/observation-relationshiptypes";
|
||||
case INTERFEREDBY: return "http://hl7.org/fhir/observation-relationshiptypes";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -326,7 +328,7 @@ public class Observation extends DomainResource {
|
|||
case REPLACES: return "This observation replaces a previous observation (i.e. a revised value). The target observation is now obsolete.";
|
||||
case QUALIFIEDBY: return "The value of the target observation qualifies (refines) the semantics of the source observation (e.g. a lipemia measure target from a plasma measure).";
|
||||
case INTERFEREDBY: return "The value of the target observation interferes (degrades quality, or prevents valid observation) with the semantics of the source observation (e.g. a hemolysis measure target from a plasma potassium measure, which has no value).";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -338,7 +340,7 @@ public class Observation extends DomainResource {
|
|||
case REPLACES: return "Replaces";
|
||||
case QUALIFIEDBY: return "Qualified By";
|
||||
case INTERFEREDBY: return "Interfered By";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -386,7 +388,9 @@ public class Observation extends DomainResource {
|
|||
throw new FHIRException("Unknown ObservationRelationshipType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ObservationRelationshipType code) {
|
||||
if (code == ObservationRelationshipType.HASMEMBER)
|
||||
if (code == ObservationRelationshipType.NULL)
|
||||
return null;
|
||||
if (code == ObservationRelationshipType.HASMEMBER)
|
||||
return "has-member";
|
||||
if (code == ObservationRelationshipType.DERIVEDFROM)
|
||||
return "derived-from";
|
||||
|
@ -399,7 +403,7 @@ public class Observation extends DomainResource {
|
|||
if (code == ObservationRelationshipType.INTERFEREDBY)
|
||||
return "interfered-by";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ObservationRelationshipType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -89,7 +89,7 @@ public class OperationDefinition extends MetadataResource {
|
|||
switch (this) {
|
||||
case OPERATION: return "operation";
|
||||
case QUERY: return "query";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ public class OperationDefinition extends MetadataResource {
|
|||
switch (this) {
|
||||
case OPERATION: return "http://hl7.org/fhir/operation-kind";
|
||||
case QUERY: return "http://hl7.org/fhir/operation-kind";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -105,7 +105,7 @@ public class OperationDefinition extends MetadataResource {
|
|||
switch (this) {
|
||||
case OPERATION: return "This operation is invoked as an operation.";
|
||||
case QUERY: return "This operation is a named query, invoked using the search mechanism.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -113,7 +113,7 @@ public class OperationDefinition extends MetadataResource {
|
|||
switch (this) {
|
||||
case OPERATION: return "Operation";
|
||||
case QUERY: return "Query";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -145,12 +145,14 @@ public class OperationDefinition extends MetadataResource {
|
|||
throw new FHIRException("Unknown OperationKind code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(OperationKind code) {
|
||||
if (code == OperationKind.OPERATION)
|
||||
if (code == OperationKind.NULL)
|
||||
return null;
|
||||
if (code == OperationKind.OPERATION)
|
||||
return "operation";
|
||||
if (code == OperationKind.QUERY)
|
||||
return "query";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(OperationKind code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -185,7 +187,7 @@ public class OperationDefinition extends MetadataResource {
|
|||
switch (this) {
|
||||
case IN: return "in";
|
||||
case OUT: return "out";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -193,7 +195,7 @@ public class OperationDefinition extends MetadataResource {
|
|||
switch (this) {
|
||||
case IN: return "http://hl7.org/fhir/operation-parameter-use";
|
||||
case OUT: return "http://hl7.org/fhir/operation-parameter-use";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -201,7 +203,7 @@ public class OperationDefinition extends MetadataResource {
|
|||
switch (this) {
|
||||
case IN: return "This is an input parameter.";
|
||||
case OUT: return "This is an output parameter.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -209,7 +211,7 @@ public class OperationDefinition extends MetadataResource {
|
|||
switch (this) {
|
||||
case IN: return "In";
|
||||
case OUT: return "Out";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -241,12 +243,14 @@ public class OperationDefinition extends MetadataResource {
|
|||
throw new FHIRException("Unknown OperationParameterUse code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(OperationParameterUse code) {
|
||||
if (code == OperationParameterUse.IN)
|
||||
if (code == OperationParameterUse.NULL)
|
||||
return null;
|
||||
if (code == OperationParameterUse.IN)
|
||||
return "in";
|
||||
if (code == OperationParameterUse.OUT)
|
||||
return "out";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(OperationParameterUse code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -94,7 +94,7 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
|
|||
case ERROR: return "error";
|
||||
case WARNING: return "warning";
|
||||
case INFORMATION: return "information";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
|
|||
case ERROR: return "http://hl7.org/fhir/issue-severity";
|
||||
case WARNING: return "http://hl7.org/fhir/issue-severity";
|
||||
case INFORMATION: return "http://hl7.org/fhir/issue-severity";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -114,7 +114,7 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
|
|||
case ERROR: return "The issue is sufficiently important to cause the action to fail.";
|
||||
case WARNING: return "The issue is not important enough to cause the action to fail, but may cause it to be performed suboptimally or in a way that is not as desired.";
|
||||
case INFORMATION: return "The issue has no relation to the degree of success of the action.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
|
|||
case ERROR: return "Error";
|
||||
case WARNING: return "Warning";
|
||||
case INFORMATION: return "Information";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -164,7 +164,9 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
|
|||
throw new FHIRException("Unknown IssueSeverity code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(IssueSeverity code) {
|
||||
if (code == IssueSeverity.FATAL)
|
||||
if (code == IssueSeverity.NULL)
|
||||
return null;
|
||||
if (code == IssueSeverity.FATAL)
|
||||
return "fatal";
|
||||
if (code == IssueSeverity.ERROR)
|
||||
return "error";
|
||||
|
@ -173,7 +175,7 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
|
|||
if (code == IssueSeverity.INFORMATION)
|
||||
return "information";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(IssueSeverity code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -397,7 +399,7 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
|
|||
case TIMEOUT: return "timeout";
|
||||
case THROTTLED: return "throttled";
|
||||
case INFORMATIONAL: return "informational";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -432,7 +434,7 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
|
|||
case TIMEOUT: return "http://hl7.org/fhir/issue-type";
|
||||
case THROTTLED: return "http://hl7.org/fhir/issue-type";
|
||||
case INFORMATIONAL: return "http://hl7.org/fhir/issue-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -467,7 +469,7 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
|
|||
case TIMEOUT: return "An internal timeout has occurred.";
|
||||
case THROTTLED: return "The system is not prepared to handle this request due to load management.";
|
||||
case INFORMATIONAL: return "A message unrelated to the processing success of the completed operation (examples of the latter include things like reminders of password expiry, system maintenance times, etc.).";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -502,7 +504,7 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
|
|||
case TIMEOUT: return "Timeout";
|
||||
case THROTTLED: return "Throttled";
|
||||
case INFORMATIONAL: return "Informational Note";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -642,7 +644,9 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
|
|||
throw new FHIRException("Unknown IssueType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(IssueType code) {
|
||||
if (code == IssueType.INVALID)
|
||||
if (code == IssueType.NULL)
|
||||
return null;
|
||||
if (code == IssueType.INVALID)
|
||||
return "invalid";
|
||||
if (code == IssueType.STRUCTURE)
|
||||
return "structure";
|
||||
|
@ -701,7 +705,7 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
|
|||
if (code == IssueType.INFORMATIONAL)
|
||||
return "informational";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(IssueType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -76,7 +76,7 @@ public class ParameterDefinition extends Type implements ICompositeType {
|
|||
switch (this) {
|
||||
case IN: return "in";
|
||||
case OUT: return "out";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -84,7 +84,7 @@ public class ParameterDefinition extends Type implements ICompositeType {
|
|||
switch (this) {
|
||||
case IN: return "http://hl7.org/fhir/operation-parameter-use";
|
||||
case OUT: return "http://hl7.org/fhir/operation-parameter-use";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -92,7 +92,7 @@ public class ParameterDefinition extends Type implements ICompositeType {
|
|||
switch (this) {
|
||||
case IN: return "This is an input parameter.";
|
||||
case OUT: return "This is an output parameter.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ public class ParameterDefinition extends Type implements ICompositeType {
|
|||
switch (this) {
|
||||
case IN: return "In";
|
||||
case OUT: return "Out";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -132,12 +132,14 @@ public class ParameterDefinition extends Type implements ICompositeType {
|
|||
throw new FHIRException("Unknown ParameterUse code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ParameterUse code) {
|
||||
if (code == ParameterUse.IN)
|
||||
if (code == ParameterUse.NULL)
|
||||
return null;
|
||||
if (code == ParameterUse.IN)
|
||||
return "in";
|
||||
if (code == ParameterUse.OUT)
|
||||
return "out";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ParameterUse code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -96,7 +96,7 @@ public class Patient extends DomainResource {
|
|||
case REPLACES: return "replaces";
|
||||
case REFER: return "refer";
|
||||
case SEEALSO: return "seealso";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -106,7 +106,7 @@ public class Patient extends DomainResource {
|
|||
case REPLACES: return "http://hl7.org/fhir/link-type";
|
||||
case REFER: return "http://hl7.org/fhir/link-type";
|
||||
case SEEALSO: return "http://hl7.org/fhir/link-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -116,7 +116,7 @@ public class Patient extends DomainResource {
|
|||
case REPLACES: return "The patient resource containing this link is the current active patient record. The link points back to an inactive patient resource that has been merged into this resource, and should be consulted to retrieve additional referenced information.";
|
||||
case REFER: return "The patient resource containing this link is in use and valid but not considered the main source of information about a patient. The link points forward to another patient resource that should be consulted to retrieve additional patient information.";
|
||||
case SEEALSO: return "The patient resource containing this link is in use and valid, but points to another patient resource that is known to contain data about the same person. Data in this resource might overlap or contradict information found in the other patient resource. This link does not indicate any relative importance of the resources concerned, and both should be regarded as equally valid.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -126,7 +126,7 @@ public class Patient extends DomainResource {
|
|||
case REPLACES: return "Replaces";
|
||||
case REFER: return "Refer";
|
||||
case SEEALSO: return "See also";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -166,7 +166,9 @@ public class Patient extends DomainResource {
|
|||
throw new FHIRException("Unknown LinkType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(LinkType code) {
|
||||
if (code == LinkType.REPLACEDBY)
|
||||
if (code == LinkType.NULL)
|
||||
return null;
|
||||
if (code == LinkType.REPLACEDBY)
|
||||
return "replaced-by";
|
||||
if (code == LinkType.REPLACES)
|
||||
return "replaces";
|
||||
|
@ -175,7 +177,7 @@ public class Patient extends DomainResource {
|
|||
if (code == LinkType.SEEALSO)
|
||||
return "seealso";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(LinkType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -91,7 +91,7 @@ public class PaymentNotice extends DomainResource {
|
|||
case CANCELLED: return "cancelled";
|
||||
case DRAFT: return "draft";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -101,7 +101,7 @@ public class PaymentNotice extends DomainResource {
|
|||
case CANCELLED: return "http://hl7.org/fhir/fm-status";
|
||||
case DRAFT: return "http://hl7.org/fhir/fm-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/fm-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -111,7 +111,7 @@ public class PaymentNotice extends DomainResource {
|
|||
case CANCELLED: return "The instance is withdrawn, rescinded or reversed.";
|
||||
case DRAFT: return "A new instance the contents of which is not complete.";
|
||||
case ENTEREDINERROR: return "The instance was entered in error.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -121,7 +121,7 @@ public class PaymentNotice extends DomainResource {
|
|||
case CANCELLED: return "Cancelled";
|
||||
case DRAFT: return "Draft";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -161,7 +161,9 @@ public class PaymentNotice extends DomainResource {
|
|||
throw new FHIRException("Unknown PaymentNoticeStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(PaymentNoticeStatus code) {
|
||||
if (code == PaymentNoticeStatus.ACTIVE)
|
||||
if (code == PaymentNoticeStatus.NULL)
|
||||
return null;
|
||||
if (code == PaymentNoticeStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == PaymentNoticeStatus.CANCELLED)
|
||||
return "cancelled";
|
||||
|
@ -170,7 +172,7 @@ public class PaymentNotice extends DomainResource {
|
|||
if (code == PaymentNoticeStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(PaymentNoticeStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -94,7 +94,7 @@ public class PaymentReconciliation extends DomainResource {
|
|||
case CANCELLED: return "cancelled";
|
||||
case DRAFT: return "draft";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ public class PaymentReconciliation extends DomainResource {
|
|||
case CANCELLED: return "http://hl7.org/fhir/fm-status";
|
||||
case DRAFT: return "http://hl7.org/fhir/fm-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/fm-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -114,7 +114,7 @@ public class PaymentReconciliation extends DomainResource {
|
|||
case CANCELLED: return "The instance is withdrawn, rescinded or reversed.";
|
||||
case DRAFT: return "A new instance the contents of which is not complete.";
|
||||
case ENTEREDINERROR: return "The instance was entered in error.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ public class PaymentReconciliation extends DomainResource {
|
|||
case CANCELLED: return "Cancelled";
|
||||
case DRAFT: return "Draft";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -164,7 +164,9 @@ public class PaymentReconciliation extends DomainResource {
|
|||
throw new FHIRException("Unknown PaymentReconciliationStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(PaymentReconciliationStatus code) {
|
||||
if (code == PaymentReconciliationStatus.ACTIVE)
|
||||
if (code == PaymentReconciliationStatus.NULL)
|
||||
return null;
|
||||
if (code == PaymentReconciliationStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == PaymentReconciliationStatus.CANCELLED)
|
||||
return "cancelled";
|
||||
|
@ -173,7 +175,7 @@ public class PaymentReconciliation extends DomainResource {
|
|||
if (code == PaymentReconciliationStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(PaymentReconciliationStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@ public class Person extends DomainResource {
|
|||
case LEVEL2: return "level2";
|
||||
case LEVEL3: return "level3";
|
||||
case LEVEL4: return "level4";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -105,7 +105,7 @@ public class Person extends DomainResource {
|
|||
case LEVEL2: return "http://hl7.org/fhir/identity-assuranceLevel";
|
||||
case LEVEL3: return "http://hl7.org/fhir/identity-assuranceLevel";
|
||||
case LEVEL4: return "http://hl7.org/fhir/identity-assuranceLevel";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -115,7 +115,7 @@ public class Person extends DomainResource {
|
|||
case LEVEL2: return "Some confidence in the asserted identity's accuracy.";
|
||||
case LEVEL3: return "High confidence in the asserted identity's accuracy.";
|
||||
case LEVEL4: return "Very high confidence in the asserted identity's accuracy.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -125,7 +125,7 @@ public class Person extends DomainResource {
|
|||
case LEVEL2: return "Level 2";
|
||||
case LEVEL3: return "Level 3";
|
||||
case LEVEL4: return "Level 4";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -165,7 +165,9 @@ public class Person extends DomainResource {
|
|||
throw new FHIRException("Unknown IdentityAssuranceLevel code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(IdentityAssuranceLevel code) {
|
||||
if (code == IdentityAssuranceLevel.LEVEL1)
|
||||
if (code == IdentityAssuranceLevel.NULL)
|
||||
return null;
|
||||
if (code == IdentityAssuranceLevel.LEVEL1)
|
||||
return "level1";
|
||||
if (code == IdentityAssuranceLevel.LEVEL2)
|
||||
return "level2";
|
||||
|
@ -174,7 +176,7 @@ public class Person extends DomainResource {
|
|||
if (code == IdentityAssuranceLevel.LEVEL4)
|
||||
return "level4";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(IdentityAssuranceLevel code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -92,7 +92,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
case APPLICABILITY: return "applicability";
|
||||
case START: return "start";
|
||||
case STOP: return "stop";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -101,7 +101,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
case APPLICABILITY: return "http://hl7.org/fhir/action-condition-kind";
|
||||
case START: return "http://hl7.org/fhir/action-condition-kind";
|
||||
case STOP: return "http://hl7.org/fhir/action-condition-kind";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -110,7 +110,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
case APPLICABILITY: return "The condition describes whether or not a given action is applicable";
|
||||
case START: return "The condition is a starting condition for the action";
|
||||
case STOP: return "The condition is a stop, or exit condition for the action";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -119,7 +119,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
case APPLICABILITY: return "Applicability";
|
||||
case START: return "Start";
|
||||
case STOP: return "Stop";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -155,14 +155,16 @@ public class PlanDefinition extends MetadataResource {
|
|||
throw new FHIRException("Unknown ActionConditionKind code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionConditionKind code) {
|
||||
if (code == ActionConditionKind.APPLICABILITY)
|
||||
if (code == ActionConditionKind.NULL)
|
||||
return null;
|
||||
if (code == ActionConditionKind.APPLICABILITY)
|
||||
return "applicability";
|
||||
if (code == ActionConditionKind.START)
|
||||
return "start";
|
||||
if (code == ActionConditionKind.STOP)
|
||||
return "stop";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ActionConditionKind code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -246,7 +248,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
case AFTERSTART: return "after-start";
|
||||
case AFTER: return "after";
|
||||
case AFTEREND: return "after-end";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -261,7 +263,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
case AFTERSTART: return "http://hl7.org/fhir/action-relationship-type";
|
||||
case AFTER: return "http://hl7.org/fhir/action-relationship-type";
|
||||
case AFTEREND: return "http://hl7.org/fhir/action-relationship-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -276,7 +278,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
case AFTERSTART: return "The action must be performed after the start of the related action";
|
||||
case AFTER: return "The action must be performed after the related action";
|
||||
case AFTEREND: return "The action must be performed after the end of the related action";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -291,7 +293,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
case AFTERSTART: return "After Start";
|
||||
case AFTER: return "After";
|
||||
case AFTEREND: return "After End";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -351,7 +353,9 @@ public class PlanDefinition extends MetadataResource {
|
|||
throw new FHIRException("Unknown ActionRelationshipType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionRelationshipType code) {
|
||||
if (code == ActionRelationshipType.BEFORESTART)
|
||||
if (code == ActionRelationshipType.NULL)
|
||||
return null;
|
||||
if (code == ActionRelationshipType.BEFORESTART)
|
||||
return "before-start";
|
||||
if (code == ActionRelationshipType.BEFORE)
|
||||
return "before";
|
||||
|
@ -370,7 +374,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
if (code == ActionRelationshipType.AFTEREND)
|
||||
return "after-end";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ActionRelationshipType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -412,7 +416,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
case PATIENT: return "patient";
|
||||
case PRACTITIONER: return "practitioner";
|
||||
case RELATEDPERSON: return "related-person";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -421,7 +425,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
case PATIENT: return "http://hl7.org/fhir/action-participant-type";
|
||||
case PRACTITIONER: return "http://hl7.org/fhir/action-participant-type";
|
||||
case RELATEDPERSON: return "http://hl7.org/fhir/action-participant-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -430,7 +434,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
case PATIENT: return "The participant is the patient under evaluation";
|
||||
case PRACTITIONER: return "The participant is a practitioner involved in the patient's care";
|
||||
case RELATEDPERSON: return "The participant is a person related to the patient";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -439,7 +443,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
case PATIENT: return "Patient";
|
||||
case PRACTITIONER: return "Practitioner";
|
||||
case RELATEDPERSON: return "Related Person";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -475,14 +479,16 @@ public class PlanDefinition extends MetadataResource {
|
|||
throw new FHIRException("Unknown ActionParticipantType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionParticipantType code) {
|
||||
if (code == ActionParticipantType.PATIENT)
|
||||
if (code == ActionParticipantType.NULL)
|
||||
return null;
|
||||
if (code == ActionParticipantType.PATIENT)
|
||||
return "patient";
|
||||
if (code == ActionParticipantType.PRACTITIONER)
|
||||
return "practitioner";
|
||||
if (code == ActionParticipantType.RELATEDPERSON)
|
||||
return "related-person";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ActionParticipantType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -524,7 +530,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
case VISUALGROUP: return "visual-group";
|
||||
case LOGICALGROUP: return "logical-group";
|
||||
case SENTENCEGROUP: return "sentence-group";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -533,7 +539,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
case VISUALGROUP: return "http://hl7.org/fhir/action-grouping-behavior";
|
||||
case LOGICALGROUP: return "http://hl7.org/fhir/action-grouping-behavior";
|
||||
case SENTENCEGROUP: return "http://hl7.org/fhir/action-grouping-behavior";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -542,7 +548,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
case VISUALGROUP: return "Any group marked with this behavior should be displayed as a visual group to the end user";
|
||||
case LOGICALGROUP: return "A group with this behavior logically groups its sub-elements, and may be shown as a visual group to the end user, but it is not required to do so";
|
||||
case SENTENCEGROUP: return "A group of related alternative actions is a sentence group if the target referenced by the action is the same in all the actions and each action simply constitutes a different variation on how to specify the details for the target. For example, two actions that could be in a SentenceGroup are \"aspirin, 500 mg, 2 times per day\" and \"aspirin, 300 mg, 3 times per day\". In both cases, aspirin is the target referenced by the action, and the two actions represent different options for how aspirin might be ordered for the patient. Note that a SentenceGroup would almost always have an associated selection behavior of \"AtMostOne\", unless it's a required action, in which case, it would be \"ExactlyOne\"";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -551,7 +557,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
case VISUALGROUP: return "Visual Group";
|
||||
case LOGICALGROUP: return "Logical Group";
|
||||
case SENTENCEGROUP: return "Sentence Group";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -587,14 +593,16 @@ public class PlanDefinition extends MetadataResource {
|
|||
throw new FHIRException("Unknown ActionGroupingBehavior code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionGroupingBehavior code) {
|
||||
if (code == ActionGroupingBehavior.VISUALGROUP)
|
||||
if (code == ActionGroupingBehavior.NULL)
|
||||
return null;
|
||||
if (code == ActionGroupingBehavior.VISUALGROUP)
|
||||
return "visual-group";
|
||||
if (code == ActionGroupingBehavior.LOGICALGROUP)
|
||||
return "logical-group";
|
||||
if (code == ActionGroupingBehavior.SENTENCEGROUP)
|
||||
return "sentence-group";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ActionGroupingBehavior code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -657,7 +665,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
case EXACTLYONE: return "exactly-one";
|
||||
case ATMOSTONE: return "at-most-one";
|
||||
case ONEORMORE: return "one-or-more";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -669,7 +677,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
case EXACTLYONE: return "http://hl7.org/fhir/action-selection-behavior";
|
||||
case ATMOSTONE: return "http://hl7.org/fhir/action-selection-behavior";
|
||||
case ONEORMORE: return "http://hl7.org/fhir/action-selection-behavior";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -681,7 +689,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
case EXACTLYONE: return "The end user must choose one and only one of the selectable actions in the group. The user may not choose none of the actions in the group";
|
||||
case ATMOSTONE: return "The end user may choose zero or at most one of the actions in the group";
|
||||
case ONEORMORE: return "The end user must choose a minimum of one, and as many additional as desired";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -693,7 +701,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
case EXACTLYONE: return "Exactly One";
|
||||
case ATMOSTONE: return "At Most One";
|
||||
case ONEORMORE: return "One Or More";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -741,7 +749,9 @@ public class PlanDefinition extends MetadataResource {
|
|||
throw new FHIRException("Unknown ActionSelectionBehavior code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionSelectionBehavior code) {
|
||||
if (code == ActionSelectionBehavior.ANY)
|
||||
if (code == ActionSelectionBehavior.NULL)
|
||||
return null;
|
||||
if (code == ActionSelectionBehavior.ANY)
|
||||
return "any";
|
||||
if (code == ActionSelectionBehavior.ALL)
|
||||
return "all";
|
||||
|
@ -754,7 +764,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
if (code == ActionSelectionBehavior.ONEORMORE)
|
||||
return "one-or-more";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ActionSelectionBehavior code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -796,7 +806,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
case MUST: return "must";
|
||||
case COULD: return "could";
|
||||
case MUSTUNLESSDOCUMENTED: return "must-unless-documented";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -805,7 +815,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
case MUST: return "http://hl7.org/fhir/action-required-behavior";
|
||||
case COULD: return "http://hl7.org/fhir/action-required-behavior";
|
||||
case MUSTUNLESSDOCUMENTED: return "http://hl7.org/fhir/action-required-behavior";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -814,7 +824,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
case MUST: return "An action with this behavior must be included in the actions processed by the end user; the end user may not choose not to include this action";
|
||||
case COULD: return "An action with this behavior may be included in the set of actions processed by the end user";
|
||||
case MUSTUNLESSDOCUMENTED: return "An action with this behavior must be included in the set of actions processed by the end user, unless the end user provides documentation as to why the action was not included";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -823,7 +833,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
case MUST: return "Must";
|
||||
case COULD: return "Could";
|
||||
case MUSTUNLESSDOCUMENTED: return "Must Unless Documented";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -859,14 +869,16 @@ public class PlanDefinition extends MetadataResource {
|
|||
throw new FHIRException("Unknown ActionRequiredBehavior code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionRequiredBehavior code) {
|
||||
if (code == ActionRequiredBehavior.MUST)
|
||||
if (code == ActionRequiredBehavior.NULL)
|
||||
return null;
|
||||
if (code == ActionRequiredBehavior.MUST)
|
||||
return "must";
|
||||
if (code == ActionRequiredBehavior.COULD)
|
||||
return "could";
|
||||
if (code == ActionRequiredBehavior.MUSTUNLESSDOCUMENTED)
|
||||
return "must-unless-documented";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ActionRequiredBehavior code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -901,7 +913,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
switch (this) {
|
||||
case YES: return "yes";
|
||||
case NO: return "no";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -909,7 +921,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
switch (this) {
|
||||
case YES: return "http://hl7.org/fhir/action-precheck-behavior";
|
||||
case NO: return "http://hl7.org/fhir/action-precheck-behavior";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -917,7 +929,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
switch (this) {
|
||||
case YES: return "An action with this behavior is one of the most frequent action that is, or should be, included by an end user, for the particular context in which the action occurs. The system displaying the action to the end user should consider \"pre-checking\" such an action as a convenience for the user";
|
||||
case NO: return "An action with this behavior is one of the less frequent actions included by the end user, for the particular context in which the action occurs. The system displaying the actions to the end user would typically not \"pre-check\" such an action";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -925,7 +937,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
switch (this) {
|
||||
case YES: return "Yes";
|
||||
case NO: return "No";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -957,12 +969,14 @@ public class PlanDefinition extends MetadataResource {
|
|||
throw new FHIRException("Unknown ActionPrecheckBehavior code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionPrecheckBehavior code) {
|
||||
if (code == ActionPrecheckBehavior.YES)
|
||||
if (code == ActionPrecheckBehavior.NULL)
|
||||
return null;
|
||||
if (code == ActionPrecheckBehavior.YES)
|
||||
return "yes";
|
||||
if (code == ActionPrecheckBehavior.NO)
|
||||
return "no";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ActionPrecheckBehavior code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -997,7 +1011,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
switch (this) {
|
||||
case SINGLE: return "single";
|
||||
case MULTIPLE: return "multiple";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1005,7 +1019,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
switch (this) {
|
||||
case SINGLE: return "http://hl7.org/fhir/action-cardinality-behavior";
|
||||
case MULTIPLE: return "http://hl7.org/fhir/action-cardinality-behavior";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1013,7 +1027,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
switch (this) {
|
||||
case SINGLE: return "The action may only be selected one time";
|
||||
case MULTIPLE: return "The action may be selected multiple times";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1021,7 +1035,7 @@ public class PlanDefinition extends MetadataResource {
|
|||
switch (this) {
|
||||
case SINGLE: return "Single";
|
||||
case MULTIPLE: return "Multiple";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1053,12 +1067,14 @@ public class PlanDefinition extends MetadataResource {
|
|||
throw new FHIRException("Unknown ActionCardinalityBehavior code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionCardinalityBehavior code) {
|
||||
if (code == ActionCardinalityBehavior.SINGLE)
|
||||
if (code == ActionCardinalityBehavior.NULL)
|
||||
return null;
|
||||
if (code == ActionCardinalityBehavior.SINGLE)
|
||||
return "single";
|
||||
if (code == ActionCardinalityBehavior.MULTIPLE)
|
||||
return "multiple";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ActionCardinalityBehavior code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -115,7 +115,7 @@ public class PractitionerRole extends DomainResource {
|
|||
case FRI: return "fri";
|
||||
case SAT: return "sat";
|
||||
case SUN: return "sun";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -128,7 +128,7 @@ public class PractitionerRole extends DomainResource {
|
|||
case FRI: return "http://hl7.org/fhir/days-of-week";
|
||||
case SAT: return "http://hl7.org/fhir/days-of-week";
|
||||
case SUN: return "http://hl7.org/fhir/days-of-week";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -141,7 +141,7 @@ public class PractitionerRole extends DomainResource {
|
|||
case FRI: return "Friday";
|
||||
case SAT: return "Saturday";
|
||||
case SUN: return "Sunday";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -154,7 +154,7 @@ public class PractitionerRole extends DomainResource {
|
|||
case FRI: return "Friday";
|
||||
case SAT: return "Saturday";
|
||||
case SUN: return "Sunday";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -206,7 +206,9 @@ public class PractitionerRole extends DomainResource {
|
|||
throw new FHIRException("Unknown DaysOfWeek code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DaysOfWeek code) {
|
||||
if (code == DaysOfWeek.MON)
|
||||
if (code == DaysOfWeek.NULL)
|
||||
return null;
|
||||
if (code == DaysOfWeek.MON)
|
||||
return "mon";
|
||||
if (code == DaysOfWeek.TUE)
|
||||
return "tue";
|
||||
|
@ -221,7 +223,7 @@ public class PractitionerRole extends DomainResource {
|
|||
if (code == DaysOfWeek.SUN)
|
||||
return "sun";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(DaysOfWeek code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -114,7 +114,7 @@ public class Procedure extends DomainResource {
|
|||
case COMPLETED: return "completed";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case UNKNOWN: return "unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -127,7 +127,7 @@ public class Procedure extends DomainResource {
|
|||
case COMPLETED: return "http://hl7.org/fhir/event-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/event-status";
|
||||
case UNKNOWN: return "http://hl7.org/fhir/event-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -140,7 +140,7 @@ public class Procedure extends DomainResource {
|
|||
case COMPLETED: return "The event has now concluded";
|
||||
case ENTEREDINERROR: return "This electronic record should never have existed, though it is possible that real-world decisions were based on it. (If real-world activity has occurred, the status should be \"cancelled\" rather than \"entered-in-error\".)";
|
||||
case UNKNOWN: return "The authoring system does not know which of the status values currently applies for this request. Note: This concept is not to be used for \"other\" - one of the listed statuses is presumed to apply, it's just not known which one.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -153,7 +153,7 @@ public class Procedure extends DomainResource {
|
|||
case COMPLETED: return "Completed";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case UNKNOWN: return "Unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -205,7 +205,9 @@ public class Procedure extends DomainResource {
|
|||
throw new FHIRException("Unknown ProcedureStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ProcedureStatus code) {
|
||||
if (code == ProcedureStatus.PREPARATION)
|
||||
if (code == ProcedureStatus.NULL)
|
||||
return null;
|
||||
if (code == ProcedureStatus.PREPARATION)
|
||||
return "preparation";
|
||||
if (code == ProcedureStatus.INPROGRESS)
|
||||
return "in-progress";
|
||||
|
@ -220,7 +222,7 @@ public class Procedure extends DomainResource {
|
|||
if (code == ProcedureStatus.UNKNOWN)
|
||||
return "unknown";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ProcedureStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -115,7 +115,7 @@ public class ProcedureRequest extends DomainResource {
|
|||
case COMPLETED: return "completed";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case UNKNOWN: return "unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -128,7 +128,7 @@ public class ProcedureRequest extends DomainResource {
|
|||
case COMPLETED: return "http://hl7.org/fhir/request-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/request-status";
|
||||
case UNKNOWN: return "http://hl7.org/fhir/request-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -141,7 +141,7 @@ public class ProcedureRequest extends DomainResource {
|
|||
case COMPLETED: return "Activity against the request has been sufficiently completed to the satisfaction of the requester";
|
||||
case ENTEREDINERROR: return "This electronic record should never have existed, though it is possible that real-world decisions were based on it. (If real-world activity has occurred, the status should be \"cancelled\" rather than \"entered-in-error\".)";
|
||||
case UNKNOWN: return "The authoring system does not know which of the status values currently applies for this request. Note: This concept is not to be used for \"other\" . One of the listed statuses is presumed to apply, but the system creating the request doesn't know.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -154,7 +154,7 @@ public class ProcedureRequest extends DomainResource {
|
|||
case COMPLETED: return "Completed";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case UNKNOWN: return "Unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -206,7 +206,9 @@ public class ProcedureRequest extends DomainResource {
|
|||
throw new FHIRException("Unknown ProcedureRequestStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ProcedureRequestStatus code) {
|
||||
if (code == ProcedureRequestStatus.DRAFT)
|
||||
if (code == ProcedureRequestStatus.NULL)
|
||||
return null;
|
||||
if (code == ProcedureRequestStatus.DRAFT)
|
||||
return "draft";
|
||||
if (code == ProcedureRequestStatus.ACTIVE)
|
||||
return "active";
|
||||
|
@ -221,7 +223,7 @@ public class ProcedureRequest extends DomainResource {
|
|||
if (code == ProcedureRequestStatus.UNKNOWN)
|
||||
return "unknown";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ProcedureRequestStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -300,7 +302,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case FILLERORDER: return "filler-order";
|
||||
case INSTANCEORDER: return "instance-order";
|
||||
case OPTION: return "option";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -314,7 +316,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case FILLERORDER: return "http://hl7.org/fhir/request-intent";
|
||||
case INSTANCEORDER: return "http://hl7.org/fhir/request-intent";
|
||||
case OPTION: return "http://hl7.org/fhir/request-intent";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -328,7 +330,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case FILLERORDER: return "The request represents the view of an authorization instantiated by a fulfilling system representing the details of the fulfiller's intention to act upon a submitted order";
|
||||
case INSTANCEORDER: return "An order created in fulfillment of a broader order that represents the authorization for a single activity occurrence. E.g. The administration of a single dose of a drug.";
|
||||
case OPTION: return "The request represents a component or option for a RequestGroup that establishes timing, conditionality and/or other constraints among a set of requests.\n\nRefer to [[[RequestGroup]]] for additional information on how this status is used";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -342,7 +344,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case FILLERORDER: return "Filler Order";
|
||||
case INSTANCEORDER: return "Instance Order";
|
||||
case OPTION: return "Option";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -398,7 +400,9 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
throw new FHIRException("Unknown ProcedureRequestIntent code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ProcedureRequestIntent code) {
|
||||
if (code == ProcedureRequestIntent.PROPOSAL)
|
||||
if (code == ProcedureRequestIntent.NULL)
|
||||
return null;
|
||||
if (code == ProcedureRequestIntent.PROPOSAL)
|
||||
return "proposal";
|
||||
if (code == ProcedureRequestIntent.PLAN)
|
||||
return "plan";
|
||||
|
@ -415,7 +419,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
if (code == ProcedureRequestIntent.OPTION)
|
||||
return "option";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ProcedureRequestIntent code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -464,7 +468,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case URGENT: return "urgent";
|
||||
case ASAP: return "asap";
|
||||
case STAT: return "stat";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -474,7 +478,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case URGENT: return "http://hl7.org/fhir/request-priority";
|
||||
case ASAP: return "http://hl7.org/fhir/request-priority";
|
||||
case STAT: return "http://hl7.org/fhir/request-priority";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -484,7 +488,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case URGENT: return "The request should be actioned promptly - higher priority than routine";
|
||||
case ASAP: return "The request should be actioned as soon as possible - higher priority than urgent";
|
||||
case STAT: return "The request should be actioned immediately - highest possible priority. E.g. an emergency";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -494,7 +498,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case URGENT: return "Urgent";
|
||||
case ASAP: return "ASAP";
|
||||
case STAT: return "STAT";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -534,7 +538,9 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
throw new FHIRException("Unknown ProcedureRequestPriority code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ProcedureRequestPriority code) {
|
||||
if (code == ProcedureRequestPriority.ROUTINE)
|
||||
if (code == ProcedureRequestPriority.NULL)
|
||||
return null;
|
||||
if (code == ProcedureRequestPriority.ROUTINE)
|
||||
return "routine";
|
||||
if (code == ProcedureRequestPriority.URGENT)
|
||||
return "urgent";
|
||||
|
@ -543,7 +549,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
if (code == ProcedureRequestPriority.STAT)
|
||||
return "stat";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ProcedureRequestPriority code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@ public class ProcessRequest extends DomainResource {
|
|||
case CANCELLED: return "cancelled";
|
||||
case DRAFT: return "draft";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -105,7 +105,7 @@ public class ProcessRequest extends DomainResource {
|
|||
case CANCELLED: return "http://hl7.org/fhir/fm-status";
|
||||
case DRAFT: return "http://hl7.org/fhir/fm-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/fm-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -115,7 +115,7 @@ public class ProcessRequest extends DomainResource {
|
|||
case CANCELLED: return "The instance is withdrawn, rescinded or reversed.";
|
||||
case DRAFT: return "A new instance the contents of which is not complete.";
|
||||
case ENTEREDINERROR: return "The instance was entered in error.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -125,7 +125,7 @@ public class ProcessRequest extends DomainResource {
|
|||
case CANCELLED: return "Cancelled";
|
||||
case DRAFT: return "Draft";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -165,7 +165,9 @@ public class ProcessRequest extends DomainResource {
|
|||
throw new FHIRException("Unknown ProcessRequestStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ProcessRequestStatus code) {
|
||||
if (code == ProcessRequestStatus.ACTIVE)
|
||||
if (code == ProcessRequestStatus.NULL)
|
||||
return null;
|
||||
if (code == ProcessRequestStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == ProcessRequestStatus.CANCELLED)
|
||||
return "cancelled";
|
||||
|
@ -174,7 +176,7 @@ public class ProcessRequest extends DomainResource {
|
|||
if (code == ProcessRequestStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ProcessRequestStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -223,7 +225,7 @@ public class ProcessRequest extends DomainResource {
|
|||
case POLL: return "poll";
|
||||
case REPROCESS: return "reprocess";
|
||||
case STATUS: return "status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -233,7 +235,7 @@ public class ProcessRequest extends DomainResource {
|
|||
case POLL: return "http://hl7.org/fhir/actionlist";
|
||||
case REPROCESS: return "http://hl7.org/fhir/actionlist";
|
||||
case STATUS: return "http://hl7.org/fhir/actionlist";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -243,7 +245,7 @@ public class ProcessRequest extends DomainResource {
|
|||
case POLL: return "Check for previously un-read/ not-retrieved resources.";
|
||||
case REPROCESS: return "Re-process the target resource.";
|
||||
case STATUS: return "Retrieve the processing status of the target resource.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -253,7 +255,7 @@ public class ProcessRequest extends DomainResource {
|
|||
case POLL: return "Poll";
|
||||
case REPROCESS: return "Re-Process";
|
||||
case STATUS: return "Status Check";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -293,7 +295,9 @@ public class ProcessRequest extends DomainResource {
|
|||
throw new FHIRException("Unknown ActionList code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionList code) {
|
||||
if (code == ActionList.CANCEL)
|
||||
if (code == ActionList.NULL)
|
||||
return null;
|
||||
if (code == ActionList.CANCEL)
|
||||
return "cancel";
|
||||
if (code == ActionList.POLL)
|
||||
return "poll";
|
||||
|
@ -302,7 +306,7 @@ public class ProcessRequest extends DomainResource {
|
|||
if (code == ActionList.STATUS)
|
||||
return "status";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ActionList code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -94,7 +94,7 @@ public class ProcessResponse extends DomainResource {
|
|||
case CANCELLED: return "cancelled";
|
||||
case DRAFT: return "draft";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ public class ProcessResponse extends DomainResource {
|
|||
case CANCELLED: return "http://hl7.org/fhir/fm-status";
|
||||
case DRAFT: return "http://hl7.org/fhir/fm-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/fm-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -114,7 +114,7 @@ public class ProcessResponse extends DomainResource {
|
|||
case CANCELLED: return "The instance is withdrawn, rescinded or reversed.";
|
||||
case DRAFT: return "A new instance the contents of which is not complete.";
|
||||
case ENTEREDINERROR: return "The instance was entered in error.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ public class ProcessResponse extends DomainResource {
|
|||
case CANCELLED: return "Cancelled";
|
||||
case DRAFT: return "Draft";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -164,7 +164,9 @@ public class ProcessResponse extends DomainResource {
|
|||
throw new FHIRException("Unknown ProcessResponseStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ProcessResponseStatus code) {
|
||||
if (code == ProcessResponseStatus.ACTIVE)
|
||||
if (code == ProcessResponseStatus.NULL)
|
||||
return null;
|
||||
if (code == ProcessResponseStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == ProcessResponseStatus.CANCELLED)
|
||||
return "cancelled";
|
||||
|
@ -173,7 +175,7 @@ public class ProcessResponse extends DomainResource {
|
|||
if (code == ProcessResponseStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ProcessResponseStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -102,7 +102,7 @@ public class Provenance extends DomainResource {
|
|||
case QUOTATION: return "quotation";
|
||||
case SOURCE: return "source";
|
||||
case REMOVAL: return "removal";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -113,7 +113,7 @@ public class Provenance extends DomainResource {
|
|||
case QUOTATION: return "http://hl7.org/fhir/provenance-entity-role";
|
||||
case SOURCE: return "http://hl7.org/fhir/provenance-entity-role";
|
||||
case REMOVAL: return "http://hl7.org/fhir/provenance-entity-role";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ public class Provenance extends DomainResource {
|
|||
case QUOTATION: return "The repeat of (some or all of) an entity, such as text or image, by someone who may or may not be its original author.";
|
||||
case SOURCE: return "A primary source for a topic refers to something produced by some agent with direct experience and knowledge about the topic, at the time of the topic's study, without benefit from hindsight.";
|
||||
case REMOVAL: return "A derivation for which the entity is removed from accessibility usually through the use of the Delete operation.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -135,7 +135,7 @@ public class Provenance extends DomainResource {
|
|||
case QUOTATION: return "Quotation";
|
||||
case SOURCE: return "Source";
|
||||
case REMOVAL: return "Removal";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -179,7 +179,9 @@ public class Provenance extends DomainResource {
|
|||
throw new FHIRException("Unknown ProvenanceEntityRole code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ProvenanceEntityRole code) {
|
||||
if (code == ProvenanceEntityRole.DERIVATION)
|
||||
if (code == ProvenanceEntityRole.NULL)
|
||||
return null;
|
||||
if (code == ProvenanceEntityRole.DERIVATION)
|
||||
return "derivation";
|
||||
if (code == ProvenanceEntityRole.REVISION)
|
||||
return "revision";
|
||||
|
@ -190,7 +192,7 @@ public class Provenance extends DomainResource {
|
|||
if (code == ProvenanceEntityRole.REMOVAL)
|
||||
return "removal";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ProvenanceEntityRole code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -90,7 +90,7 @@ public class Quantity extends Type implements ICompositeType {
|
|||
case LESS_OR_EQUAL: return "<=";
|
||||
case GREATER_OR_EQUAL: return ">=";
|
||||
case GREATER_THAN: return ">";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ public class Quantity extends Type implements ICompositeType {
|
|||
case LESS_OR_EQUAL: return "http://hl7.org/fhir/quantity-comparator";
|
||||
case GREATER_OR_EQUAL: return "http://hl7.org/fhir/quantity-comparator";
|
||||
case GREATER_THAN: return "http://hl7.org/fhir/quantity-comparator";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -110,7 +110,7 @@ public class Quantity extends Type implements ICompositeType {
|
|||
case LESS_OR_EQUAL: return "The actual value is less than or equal to the given value.";
|
||||
case GREATER_OR_EQUAL: return "The actual value is greater than or equal to the given value.";
|
||||
case GREATER_THAN: return "The actual value is greater than the given value.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -120,7 +120,7 @@ public class Quantity extends Type implements ICompositeType {
|
|||
case LESS_OR_EQUAL: return "Less or Equal to";
|
||||
case GREATER_OR_EQUAL: return "Greater or Equal to";
|
||||
case GREATER_THAN: return "Greater than";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -160,7 +160,9 @@ public class Quantity extends Type implements ICompositeType {
|
|||
throw new FHIRException("Unknown QuantityComparator code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(QuantityComparator code) {
|
||||
if (code == QuantityComparator.LESS_THAN)
|
||||
if (code == QuantityComparator.NULL)
|
||||
return null;
|
||||
if (code == QuantityComparator.LESS_THAN)
|
||||
return "<";
|
||||
if (code == QuantityComparator.LESS_OR_EQUAL)
|
||||
return "<=";
|
||||
|
@ -169,7 +171,7 @@ public class Quantity extends Type implements ICompositeType {
|
|||
if (code == QuantityComparator.GREATER_THAN)
|
||||
return ">";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(QuantityComparator code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -193,7 +193,7 @@ There is an extension 'http://hl7.org/fhir/StructureDefinition/questionnaire-uni
|
|||
case ATTACHMENT: return "attachment";
|
||||
case REFERENCE: return "reference";
|
||||
case QUANTITY: return "quantity";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -216,7 +216,7 @@ There is an extension 'http://hl7.org/fhir/StructureDefinition/questionnaire-uni
|
|||
case ATTACHMENT: return "http://hl7.org/fhir/item-type";
|
||||
case REFERENCE: return "http://hl7.org/fhir/item-type";
|
||||
case QUANTITY: return "http://hl7.org/fhir/item-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -239,7 +239,7 @@ There is an extension 'http://hl7.org/fhir/StructureDefinition/questionnaire-uni
|
|||
case ATTACHMENT: return "Question with binary content such as a image, PDF, etc. as an answer (valueAttachment)";
|
||||
case REFERENCE: return "Question with a reference to another resource (practitioner, organization, etc.) as an answer (valueReference)";
|
||||
case QUANTITY: return "Question with a combination of a numeric value and unit, potentially with a comparator (<, >, etc.) as an answer. (valueQuantity)\nThere is an extension 'http://hl7.org/fhir/StructureDefinition/questionnaire-unit' that can be used to define what unit whould be captured (or the a unit that has a ucum conversion from the provided unit)";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -262,7 +262,7 @@ There is an extension 'http://hl7.org/fhir/StructureDefinition/questionnaire-uni
|
|||
case ATTACHMENT: return "Attachment";
|
||||
case REFERENCE: return "Reference";
|
||||
case QUANTITY: return "Quantity";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -354,7 +354,9 @@ There is an extension 'http://hl7.org/fhir/StructureDefinition/questionnaire-uni
|
|||
throw new FHIRException("Unknown QuestionnaireItemType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(QuestionnaireItemType code) {
|
||||
if (code == QuestionnaireItemType.GROUP)
|
||||
if (code == QuestionnaireItemType.NULL)
|
||||
return null;
|
||||
if (code == QuestionnaireItemType.GROUP)
|
||||
return "group";
|
||||
if (code == QuestionnaireItemType.DISPLAY)
|
||||
return "display";
|
||||
|
@ -389,7 +391,7 @@ There is an extension 'http://hl7.org/fhir/StructureDefinition/questionnaire-uni
|
|||
if (code == QuestionnaireItemType.QUANTITY)
|
||||
return "quantity";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(QuestionnaireItemType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -103,7 +103,7 @@ public class QuestionnaireResponse extends DomainResource {
|
|||
case AMENDED: return "amended";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case STOPPED: return "stopped";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -114,7 +114,7 @@ public class QuestionnaireResponse extends DomainResource {
|
|||
case AMENDED: return "http://hl7.org/fhir/questionnaire-answers-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/questionnaire-answers-status";
|
||||
case STOPPED: return "http://hl7.org/fhir/questionnaire-answers-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -125,7 +125,7 @@ public class QuestionnaireResponse extends DomainResource {
|
|||
case AMENDED: return "This QuestionnaireResponse has been filled out with answers, then marked as complete, yet changes or additions have been made to it afterwards.";
|
||||
case ENTEREDINERROR: return "This QuestionnaireResponse was entered in error and voided.";
|
||||
case STOPPED: return "This QuestionnaireResponse has been partially filled out with answers, but has been abandoned. It is unknown whether changes or additions are expected to be made to it.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -136,7 +136,7 @@ public class QuestionnaireResponse extends DomainResource {
|
|||
case AMENDED: return "Amended";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case STOPPED: return "Stopped";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -180,7 +180,9 @@ public class QuestionnaireResponse extends DomainResource {
|
|||
throw new FHIRException("Unknown QuestionnaireResponseStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(QuestionnaireResponseStatus code) {
|
||||
if (code == QuestionnaireResponseStatus.INPROGRESS)
|
||||
if (code == QuestionnaireResponseStatus.NULL)
|
||||
return null;
|
||||
if (code == QuestionnaireResponseStatus.INPROGRESS)
|
||||
return "in-progress";
|
||||
if (code == QuestionnaireResponseStatus.COMPLETED)
|
||||
return "completed";
|
||||
|
@ -191,7 +193,7 @@ public class QuestionnaireResponse extends DomainResource {
|
|||
if (code == QuestionnaireResponseStatus.STOPPED)
|
||||
return "stopped";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(QuestionnaireResponseStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -117,7 +117,7 @@ public class ReferralRequest extends DomainResource {
|
|||
case COMPLETED: return "completed";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case UNKNOWN: return "unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -130,7 +130,7 @@ public class ReferralRequest extends DomainResource {
|
|||
case COMPLETED: return "http://hl7.org/fhir/request-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/request-status";
|
||||
case UNKNOWN: return "http://hl7.org/fhir/request-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -143,7 +143,7 @@ public class ReferralRequest extends DomainResource {
|
|||
case COMPLETED: return "Activity against the request has been sufficiently completed to the satisfaction of the requester";
|
||||
case ENTEREDINERROR: return "This electronic record should never have existed, though it is possible that real-world decisions were based on it. (If real-world activity has occurred, the status should be \"cancelled\" rather than \"entered-in-error\".)";
|
||||
case UNKNOWN: return "The authoring system does not know which of the status values currently applies for this request. Note: This concept is not to be used for \"other\" . One of the listed statuses is presumed to apply, but the system creating the request doesn't know.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -156,7 +156,7 @@ public class ReferralRequest extends DomainResource {
|
|||
case COMPLETED: return "Completed";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case UNKNOWN: return "Unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -208,7 +208,9 @@ public class ReferralRequest extends DomainResource {
|
|||
throw new FHIRException("Unknown ReferralRequestStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ReferralRequestStatus code) {
|
||||
if (code == ReferralRequestStatus.DRAFT)
|
||||
if (code == ReferralRequestStatus.NULL)
|
||||
return null;
|
||||
if (code == ReferralRequestStatus.DRAFT)
|
||||
return "draft";
|
||||
if (code == ReferralRequestStatus.ACTIVE)
|
||||
return "active";
|
||||
|
@ -223,7 +225,7 @@ public class ReferralRequest extends DomainResource {
|
|||
if (code == ReferralRequestStatus.UNKNOWN)
|
||||
return "unknown";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ReferralRequestStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -302,7 +304,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case FILLERORDER: return "filler-order";
|
||||
case INSTANCEORDER: return "instance-order";
|
||||
case OPTION: return "option";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -316,7 +318,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case FILLERORDER: return "http://hl7.org/fhir/request-intent";
|
||||
case INSTANCEORDER: return "http://hl7.org/fhir/request-intent";
|
||||
case OPTION: return "http://hl7.org/fhir/request-intent";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -330,7 +332,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case FILLERORDER: return "The request represents the view of an authorization instantiated by a fulfilling system representing the details of the fulfiller's intention to act upon a submitted order";
|
||||
case INSTANCEORDER: return "An order created in fulfillment of a broader order that represents the authorization for a single activity occurrence. E.g. The administration of a single dose of a drug.";
|
||||
case OPTION: return "The request represents a component or option for a RequestGroup that establishes timing, conditionality and/or other constraints among a set of requests.\n\nRefer to [[[RequestGroup]]] for additional information on how this status is used";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -344,7 +346,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case FILLERORDER: return "Filler Order";
|
||||
case INSTANCEORDER: return "Instance Order";
|
||||
case OPTION: return "Option";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -400,7 +402,9 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
throw new FHIRException("Unknown ReferralCategory code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ReferralCategory code) {
|
||||
if (code == ReferralCategory.PROPOSAL)
|
||||
if (code == ReferralCategory.NULL)
|
||||
return null;
|
||||
if (code == ReferralCategory.PROPOSAL)
|
||||
return "proposal";
|
||||
if (code == ReferralCategory.PLAN)
|
||||
return "plan";
|
||||
|
@ -417,7 +421,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
if (code == ReferralCategory.OPTION)
|
||||
return "option";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ReferralCategory code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -466,7 +470,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case URGENT: return "urgent";
|
||||
case ASAP: return "asap";
|
||||
case STAT: return "stat";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -476,7 +480,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case URGENT: return "http://hl7.org/fhir/request-priority";
|
||||
case ASAP: return "http://hl7.org/fhir/request-priority";
|
||||
case STAT: return "http://hl7.org/fhir/request-priority";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -486,7 +490,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case URGENT: return "The request should be actioned promptly - higher priority than routine";
|
||||
case ASAP: return "The request should be actioned as soon as possible - higher priority than urgent";
|
||||
case STAT: return "The request should be actioned immediately - highest possible priority. E.g. an emergency";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -496,7 +500,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case URGENT: return "Urgent";
|
||||
case ASAP: return "ASAP";
|
||||
case STAT: return "STAT";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -536,7 +540,9 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
throw new FHIRException("Unknown ReferralPriority code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ReferralPriority code) {
|
||||
if (code == ReferralPriority.ROUTINE)
|
||||
if (code == ReferralPriority.NULL)
|
||||
return null;
|
||||
if (code == ReferralPriority.ROUTINE)
|
||||
return "routine";
|
||||
if (code == ReferralPriority.URGENT)
|
||||
return "urgent";
|
||||
|
@ -545,7 +551,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
if (code == ReferralPriority.STAT)
|
||||
return "stat";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ReferralPriority code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -118,7 +118,7 @@ public class RelatedArtifact extends Type implements ICompositeType {
|
|||
case DERIVEDFROM: return "derived-from";
|
||||
case DEPENDSON: return "depends-on";
|
||||
case COMPOSEDOF: return "composed-of";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -132,7 +132,7 @@ public class RelatedArtifact extends Type implements ICompositeType {
|
|||
case DERIVEDFROM: return "http://hl7.org/fhir/related-artifact-type";
|
||||
case DEPENDSON: return "http://hl7.org/fhir/related-artifact-type";
|
||||
case COMPOSEDOF: return "http://hl7.org/fhir/related-artifact-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -146,7 +146,7 @@ public class RelatedArtifact extends Type implements ICompositeType {
|
|||
case DERIVEDFROM: return "The knowledge resource is derived from the related artifact. This is intended to capture the relationship in which a particular knowledge resource is based on the content of another artifact, but is modified to capture either a different set of overall requirements, or a more specific set of requirements such as those involved in a particular institution or clinical setting";
|
||||
case DEPENDSON: return "The knowledge resource depends on the given related artifact";
|
||||
case COMPOSEDOF: return "The knowledge resource is composed of the given related artifact";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -160,7 +160,7 @@ public class RelatedArtifact extends Type implements ICompositeType {
|
|||
case DERIVEDFROM: return "Derived From";
|
||||
case DEPENDSON: return "Depends On";
|
||||
case COMPOSEDOF: return "Composed Of";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -216,7 +216,9 @@ public class RelatedArtifact extends Type implements ICompositeType {
|
|||
throw new FHIRException("Unknown RelatedArtifactType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(RelatedArtifactType code) {
|
||||
if (code == RelatedArtifactType.DOCUMENTATION)
|
||||
if (code == RelatedArtifactType.NULL)
|
||||
return null;
|
||||
if (code == RelatedArtifactType.DOCUMENTATION)
|
||||
return "documentation";
|
||||
if (code == RelatedArtifactType.JUSTIFICATION)
|
||||
return "justification";
|
||||
|
@ -233,7 +235,7 @@ public class RelatedArtifact extends Type implements ICompositeType {
|
|||
if (code == RelatedArtifactType.COMPOSEDOF)
|
||||
return "composed-of";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(RelatedArtifactType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -117,7 +117,7 @@ public class RequestGroup extends DomainResource {
|
|||
case COMPLETED: return "completed";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case UNKNOWN: return "unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -130,7 +130,7 @@ public class RequestGroup extends DomainResource {
|
|||
case COMPLETED: return "http://hl7.org/fhir/request-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/request-status";
|
||||
case UNKNOWN: return "http://hl7.org/fhir/request-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -143,7 +143,7 @@ public class RequestGroup extends DomainResource {
|
|||
case COMPLETED: return "Activity against the request has been sufficiently completed to the satisfaction of the requester";
|
||||
case ENTEREDINERROR: return "This electronic record should never have existed, though it is possible that real-world decisions were based on it. (If real-world activity has occurred, the status should be \"cancelled\" rather than \"entered-in-error\".)";
|
||||
case UNKNOWN: return "The authoring system does not know which of the status values currently applies for this request. Note: This concept is not to be used for \"other\" . One of the listed statuses is presumed to apply, but the system creating the request doesn't know.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -156,7 +156,7 @@ public class RequestGroup extends DomainResource {
|
|||
case COMPLETED: return "Completed";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case UNKNOWN: return "Unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -208,7 +208,9 @@ public class RequestGroup extends DomainResource {
|
|||
throw new FHIRException("Unknown RequestStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(RequestStatus code) {
|
||||
if (code == RequestStatus.DRAFT)
|
||||
if (code == RequestStatus.NULL)
|
||||
return null;
|
||||
if (code == RequestStatus.DRAFT)
|
||||
return "draft";
|
||||
if (code == RequestStatus.ACTIVE)
|
||||
return "active";
|
||||
|
@ -223,7 +225,7 @@ public class RequestGroup extends DomainResource {
|
|||
if (code == RequestStatus.UNKNOWN)
|
||||
return "unknown";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(RequestStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -302,7 +304,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case FILLERORDER: return "filler-order";
|
||||
case INSTANCEORDER: return "instance-order";
|
||||
case OPTION: return "option";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -316,7 +318,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case FILLERORDER: return "http://hl7.org/fhir/request-intent";
|
||||
case INSTANCEORDER: return "http://hl7.org/fhir/request-intent";
|
||||
case OPTION: return "http://hl7.org/fhir/request-intent";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -330,7 +332,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case FILLERORDER: return "The request represents the view of an authorization instantiated by a fulfilling system representing the details of the fulfiller's intention to act upon a submitted order";
|
||||
case INSTANCEORDER: return "An order created in fulfillment of a broader order that represents the authorization for a single activity occurrence. E.g. The administration of a single dose of a drug.";
|
||||
case OPTION: return "The request represents a component or option for a RequestGroup that establishes timing, conditionality and/or other constraints among a set of requests.\n\nRefer to [[[RequestGroup]]] for additional information on how this status is used";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -344,7 +346,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case FILLERORDER: return "Filler Order";
|
||||
case INSTANCEORDER: return "Instance Order";
|
||||
case OPTION: return "Option";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -400,7 +402,9 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
throw new FHIRException("Unknown RequestIntent code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(RequestIntent code) {
|
||||
if (code == RequestIntent.PROPOSAL)
|
||||
if (code == RequestIntent.NULL)
|
||||
return null;
|
||||
if (code == RequestIntent.PROPOSAL)
|
||||
return "proposal";
|
||||
if (code == RequestIntent.PLAN)
|
||||
return "plan";
|
||||
|
@ -417,7 +421,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
if (code == RequestIntent.OPTION)
|
||||
return "option";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(RequestIntent code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -466,7 +470,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case URGENT: return "urgent";
|
||||
case ASAP: return "asap";
|
||||
case STAT: return "stat";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -476,7 +480,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case URGENT: return "http://hl7.org/fhir/request-priority";
|
||||
case ASAP: return "http://hl7.org/fhir/request-priority";
|
||||
case STAT: return "http://hl7.org/fhir/request-priority";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -486,7 +490,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case URGENT: return "The request should be actioned promptly - higher priority than routine";
|
||||
case ASAP: return "The request should be actioned as soon as possible - higher priority than urgent";
|
||||
case STAT: return "The request should be actioned immediately - highest possible priority. E.g. an emergency";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -496,7 +500,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case URGENT: return "Urgent";
|
||||
case ASAP: return "ASAP";
|
||||
case STAT: return "STAT";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -536,7 +540,9 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
throw new FHIRException("Unknown RequestPriority code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(RequestPriority code) {
|
||||
if (code == RequestPriority.ROUTINE)
|
||||
if (code == RequestPriority.NULL)
|
||||
return null;
|
||||
if (code == RequestPriority.ROUTINE)
|
||||
return "routine";
|
||||
if (code == RequestPriority.URGENT)
|
||||
return "urgent";
|
||||
|
@ -545,7 +551,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
if (code == RequestPriority.STAT)
|
||||
return "stat";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(RequestPriority code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -587,7 +593,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case APPLICABILITY: return "applicability";
|
||||
case START: return "start";
|
||||
case STOP: return "stop";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -596,7 +602,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case APPLICABILITY: return "http://hl7.org/fhir/action-condition-kind";
|
||||
case START: return "http://hl7.org/fhir/action-condition-kind";
|
||||
case STOP: return "http://hl7.org/fhir/action-condition-kind";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -605,7 +611,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case APPLICABILITY: return "The condition describes whether or not a given action is applicable";
|
||||
case START: return "The condition is a starting condition for the action";
|
||||
case STOP: return "The condition is a stop, or exit condition for the action";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -614,7 +620,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case APPLICABILITY: return "Applicability";
|
||||
case START: return "Start";
|
||||
case STOP: return "Stop";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -650,14 +656,16 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
throw new FHIRException("Unknown ActionConditionKind code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionConditionKind code) {
|
||||
if (code == ActionConditionKind.APPLICABILITY)
|
||||
if (code == ActionConditionKind.NULL)
|
||||
return null;
|
||||
if (code == ActionConditionKind.APPLICABILITY)
|
||||
return "applicability";
|
||||
if (code == ActionConditionKind.START)
|
||||
return "start";
|
||||
if (code == ActionConditionKind.STOP)
|
||||
return "stop";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ActionConditionKind code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -741,7 +749,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case AFTERSTART: return "after-start";
|
||||
case AFTER: return "after";
|
||||
case AFTEREND: return "after-end";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -756,7 +764,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case AFTERSTART: return "http://hl7.org/fhir/action-relationship-type";
|
||||
case AFTER: return "http://hl7.org/fhir/action-relationship-type";
|
||||
case AFTEREND: return "http://hl7.org/fhir/action-relationship-type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -771,7 +779,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case AFTERSTART: return "The action must be performed after the start of the related action";
|
||||
case AFTER: return "The action must be performed after the related action";
|
||||
case AFTEREND: return "The action must be performed after the end of the related action";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -786,7 +794,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case AFTERSTART: return "After Start";
|
||||
case AFTER: return "After";
|
||||
case AFTEREND: return "After End";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -846,7 +854,9 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
throw new FHIRException("Unknown ActionRelationshipType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionRelationshipType code) {
|
||||
if (code == ActionRelationshipType.BEFORESTART)
|
||||
if (code == ActionRelationshipType.NULL)
|
||||
return null;
|
||||
if (code == ActionRelationshipType.BEFORESTART)
|
||||
return "before-start";
|
||||
if (code == ActionRelationshipType.BEFORE)
|
||||
return "before";
|
||||
|
@ -865,7 +875,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
if (code == ActionRelationshipType.AFTEREND)
|
||||
return "after-end";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ActionRelationshipType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -907,7 +917,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case VISUALGROUP: return "visual-group";
|
||||
case LOGICALGROUP: return "logical-group";
|
||||
case SENTENCEGROUP: return "sentence-group";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -916,7 +926,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case VISUALGROUP: return "http://hl7.org/fhir/action-grouping-behavior";
|
||||
case LOGICALGROUP: return "http://hl7.org/fhir/action-grouping-behavior";
|
||||
case SENTENCEGROUP: return "http://hl7.org/fhir/action-grouping-behavior";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -925,7 +935,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case VISUALGROUP: return "Any group marked with this behavior should be displayed as a visual group to the end user";
|
||||
case LOGICALGROUP: return "A group with this behavior logically groups its sub-elements, and may be shown as a visual group to the end user, but it is not required to do so";
|
||||
case SENTENCEGROUP: return "A group of related alternative actions is a sentence group if the target referenced by the action is the same in all the actions and each action simply constitutes a different variation on how to specify the details for the target. For example, two actions that could be in a SentenceGroup are \"aspirin, 500 mg, 2 times per day\" and \"aspirin, 300 mg, 3 times per day\". In both cases, aspirin is the target referenced by the action, and the two actions represent different options for how aspirin might be ordered for the patient. Note that a SentenceGroup would almost always have an associated selection behavior of \"AtMostOne\", unless it's a required action, in which case, it would be \"ExactlyOne\"";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -934,7 +944,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case VISUALGROUP: return "Visual Group";
|
||||
case LOGICALGROUP: return "Logical Group";
|
||||
case SENTENCEGROUP: return "Sentence Group";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -970,14 +980,16 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
throw new FHIRException("Unknown ActionGroupingBehavior code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionGroupingBehavior code) {
|
||||
if (code == ActionGroupingBehavior.VISUALGROUP)
|
||||
if (code == ActionGroupingBehavior.NULL)
|
||||
return null;
|
||||
if (code == ActionGroupingBehavior.VISUALGROUP)
|
||||
return "visual-group";
|
||||
if (code == ActionGroupingBehavior.LOGICALGROUP)
|
||||
return "logical-group";
|
||||
if (code == ActionGroupingBehavior.SENTENCEGROUP)
|
||||
return "sentence-group";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ActionGroupingBehavior code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -1040,7 +1052,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case EXACTLYONE: return "exactly-one";
|
||||
case ATMOSTONE: return "at-most-one";
|
||||
case ONEORMORE: return "one-or-more";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1052,7 +1064,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case EXACTLYONE: return "http://hl7.org/fhir/action-selection-behavior";
|
||||
case ATMOSTONE: return "http://hl7.org/fhir/action-selection-behavior";
|
||||
case ONEORMORE: return "http://hl7.org/fhir/action-selection-behavior";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1064,7 +1076,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case EXACTLYONE: return "The end user must choose one and only one of the selectable actions in the group. The user may not choose none of the actions in the group";
|
||||
case ATMOSTONE: return "The end user may choose zero or at most one of the actions in the group";
|
||||
case ONEORMORE: return "The end user must choose a minimum of one, and as many additional as desired";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1076,7 +1088,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case EXACTLYONE: return "Exactly One";
|
||||
case ATMOSTONE: return "At Most One";
|
||||
case ONEORMORE: return "One Or More";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1124,7 +1136,9 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
throw new FHIRException("Unknown ActionSelectionBehavior code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionSelectionBehavior code) {
|
||||
if (code == ActionSelectionBehavior.ANY)
|
||||
if (code == ActionSelectionBehavior.NULL)
|
||||
return null;
|
||||
if (code == ActionSelectionBehavior.ANY)
|
||||
return "any";
|
||||
if (code == ActionSelectionBehavior.ALL)
|
||||
return "all";
|
||||
|
@ -1137,7 +1151,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
if (code == ActionSelectionBehavior.ONEORMORE)
|
||||
return "one-or-more";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ActionSelectionBehavior code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -1179,7 +1193,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case MUST: return "must";
|
||||
case COULD: return "could";
|
||||
case MUSTUNLESSDOCUMENTED: return "must-unless-documented";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1188,7 +1202,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case MUST: return "http://hl7.org/fhir/action-required-behavior";
|
||||
case COULD: return "http://hl7.org/fhir/action-required-behavior";
|
||||
case MUSTUNLESSDOCUMENTED: return "http://hl7.org/fhir/action-required-behavior";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1197,7 +1211,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case MUST: return "An action with this behavior must be included in the actions processed by the end user; the end user may not choose not to include this action";
|
||||
case COULD: return "An action with this behavior may be included in the set of actions processed by the end user";
|
||||
case MUSTUNLESSDOCUMENTED: return "An action with this behavior must be included in the set of actions processed by the end user, unless the end user provides documentation as to why the action was not included";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1206,7 +1220,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
case MUST: return "Must";
|
||||
case COULD: return "Could";
|
||||
case MUSTUNLESSDOCUMENTED: return "Must Unless Documented";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1242,14 +1256,16 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
throw new FHIRException("Unknown ActionRequiredBehavior code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionRequiredBehavior code) {
|
||||
if (code == ActionRequiredBehavior.MUST)
|
||||
if (code == ActionRequiredBehavior.NULL)
|
||||
return null;
|
||||
if (code == ActionRequiredBehavior.MUST)
|
||||
return "must";
|
||||
if (code == ActionRequiredBehavior.COULD)
|
||||
return "could";
|
||||
if (code == ActionRequiredBehavior.MUSTUNLESSDOCUMENTED)
|
||||
return "must-unless-documented";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ActionRequiredBehavior code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -1284,7 +1300,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
switch (this) {
|
||||
case YES: return "yes";
|
||||
case NO: return "no";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1292,7 +1308,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
switch (this) {
|
||||
case YES: return "http://hl7.org/fhir/action-precheck-behavior";
|
||||
case NO: return "http://hl7.org/fhir/action-precheck-behavior";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1300,7 +1316,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
switch (this) {
|
||||
case YES: return "An action with this behavior is one of the most frequent action that is, or should be, included by an end user, for the particular context in which the action occurs. The system displaying the action to the end user should consider \"pre-checking\" such an action as a convenience for the user";
|
||||
case NO: return "An action with this behavior is one of the less frequent actions included by the end user, for the particular context in which the action occurs. The system displaying the actions to the end user would typically not \"pre-check\" such an action";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1308,7 +1324,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
switch (this) {
|
||||
case YES: return "Yes";
|
||||
case NO: return "No";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1340,12 +1356,14 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
throw new FHIRException("Unknown ActionPrecheckBehavior code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionPrecheckBehavior code) {
|
||||
if (code == ActionPrecheckBehavior.YES)
|
||||
if (code == ActionPrecheckBehavior.NULL)
|
||||
return null;
|
||||
if (code == ActionPrecheckBehavior.YES)
|
||||
return "yes";
|
||||
if (code == ActionPrecheckBehavior.NO)
|
||||
return "no";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ActionPrecheckBehavior code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -1380,7 +1398,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
switch (this) {
|
||||
case SINGLE: return "single";
|
||||
case MULTIPLE: return "multiple";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1388,7 +1406,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
switch (this) {
|
||||
case SINGLE: return "http://hl7.org/fhir/action-cardinality-behavior";
|
||||
case MULTIPLE: return "http://hl7.org/fhir/action-cardinality-behavior";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1396,7 +1414,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
switch (this) {
|
||||
case SINGLE: return "The action may only be selected one time";
|
||||
case MULTIPLE: return "The action may be selected multiple times";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1404,7 +1422,7 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
switch (this) {
|
||||
case SINGLE: return "Single";
|
||||
case MULTIPLE: return "Multiple";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1436,12 +1454,14 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
throw new FHIRException("Unknown ActionCardinalityBehavior code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionCardinalityBehavior code) {
|
||||
if (code == ActionCardinalityBehavior.SINGLE)
|
||||
if (code == ActionCardinalityBehavior.NULL)
|
||||
return null;
|
||||
if (code == ActionCardinalityBehavior.SINGLE)
|
||||
return "single";
|
||||
if (code == ActionCardinalityBehavior.MULTIPLE)
|
||||
return "multiple";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ActionCardinalityBehavior code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -107,7 +107,7 @@ public class ResearchStudy extends DomainResource {
|
|||
case STOPPED: return "stopped";
|
||||
case COMPLETED: return "completed";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -119,7 +119,7 @@ public class ResearchStudy extends DomainResource {
|
|||
case STOPPED: return "http://hl7.org/fhir/research-study-status";
|
||||
case COMPLETED: return "http://hl7.org/fhir/research-study-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/research-study-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -131,7 +131,7 @@ public class ResearchStudy extends DomainResource {
|
|||
case STOPPED: return "The study was terminated prior to the final determination of results";
|
||||
case COMPLETED: return "The information sought by the study has been gathered and compiled and no further work is being performed";
|
||||
case ENTEREDINERROR: return "This study never actually existed. The record is retained for tracking purposes in the event decisions may have been made based on this erroneous information.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -143,7 +143,7 @@ public class ResearchStudy extends DomainResource {
|
|||
case STOPPED: return "Stopped";
|
||||
case COMPLETED: return "Completed";
|
||||
case ENTEREDINERROR: return "Entered in error";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -191,7 +191,9 @@ public class ResearchStudy extends DomainResource {
|
|||
throw new FHIRException("Unknown ResearchStudyStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ResearchStudyStatus code) {
|
||||
if (code == ResearchStudyStatus.DRAFT)
|
||||
if (code == ResearchStudyStatus.NULL)
|
||||
return null;
|
||||
if (code == ResearchStudyStatus.DRAFT)
|
||||
return "draft";
|
||||
if (code == ResearchStudyStatus.INPROGRESS)
|
||||
return "in-progress";
|
||||
|
@ -204,7 +206,7 @@ public class ResearchStudy extends DomainResource {
|
|||
if (code == ResearchStudyStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ResearchStudyStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -104,7 +104,7 @@ public class ResearchSubject extends DomainResource {
|
|||
case SUSPENDED: return "suspended";
|
||||
case WITHDRAWN: return "withdrawn";
|
||||
case COMPLETED: return "completed";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -116,7 +116,7 @@ public class ResearchSubject extends DomainResource {
|
|||
case SUSPENDED: return "http://hl7.org/fhir/research-subject-status";
|
||||
case WITHDRAWN: return "http://hl7.org/fhir/research-subject-status";
|
||||
case COMPLETED: return "http://hl7.org/fhir/research-subject-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -128,7 +128,7 @@ public class ResearchSubject extends DomainResource {
|
|||
case SUSPENDED: return "The subject has temporarily discontinued monitoring/treatment as part of the study";
|
||||
case WITHDRAWN: return "The subject has permanently ended participation in the study prior to completion of the intended monitoring/treatment";
|
||||
case COMPLETED: return "All intended monitoring/treatment of the subject has been completed and their engagement with the study is now ended";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -140,7 +140,7 @@ public class ResearchSubject extends DomainResource {
|
|||
case SUSPENDED: return "Suspended";
|
||||
case WITHDRAWN: return "Withdrawn";
|
||||
case COMPLETED: return "Completed";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -188,7 +188,9 @@ public class ResearchSubject extends DomainResource {
|
|||
throw new FHIRException("Unknown ResearchSubjectStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ResearchSubjectStatus code) {
|
||||
if (code == ResearchSubjectStatus.CANDIDATE)
|
||||
if (code == ResearchSubjectStatus.NULL)
|
||||
return null;
|
||||
if (code == ResearchSubjectStatus.CANDIDATE)
|
||||
return "candidate";
|
||||
if (code == ResearchSubjectStatus.ENROLLED)
|
||||
return "enrolled";
|
||||
|
@ -201,7 +203,7 @@ public class ResearchSubject extends DomainResource {
|
|||
if (code == ResearchSubjectStatus.COMPLETED)
|
||||
return "completed";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(ResearchSubjectStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -125,7 +125,7 @@ public class RiskAssessment extends DomainResource {
|
|||
case CANCELLED: return "cancelled";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
case UNKNOWN: return "unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -139,7 +139,7 @@ public class RiskAssessment extends DomainResource {
|
|||
case CANCELLED: return "http://hl7.org/fhir/observation-status";
|
||||
case ENTEREDINERROR: return "http://hl7.org/fhir/observation-status";
|
||||
case UNKNOWN: return "http://hl7.org/fhir/observation-status";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -153,7 +153,7 @@ public class RiskAssessment extends DomainResource {
|
|||
case CANCELLED: return "The observation is unavailable because the measurement was not started or not completed (also sometimes called \"aborted\").";
|
||||
case ENTEREDINERROR: return "The observation has been withdrawn following previous final release. This electronic record should never have existed, though it is possible that real-world decisions were based on it. (If real-world activity has occurred, the status should be \"cancelled\" rather than \"entered-in-error\".)";
|
||||
case UNKNOWN: return "The authoring system does not know which of the status values currently applies for this request. Note: This concept is not to be used for \"other\" - one of the listed statuses is presumed to apply, but the authoring system does not know which.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -167,7 +167,7 @@ public class RiskAssessment extends DomainResource {
|
|||
case CANCELLED: return "Cancelled";
|
||||
case ENTEREDINERROR: return "Entered in Error";
|
||||
case UNKNOWN: return "Unknown";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -223,7 +223,9 @@ public class RiskAssessment extends DomainResource {
|
|||
throw new FHIRException("Unknown RiskAssessmentStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(RiskAssessmentStatus code) {
|
||||
if (code == RiskAssessmentStatus.REGISTERED)
|
||||
if (code == RiskAssessmentStatus.NULL)
|
||||
return null;
|
||||
if (code == RiskAssessmentStatus.REGISTERED)
|
||||
return "registered";
|
||||
if (code == RiskAssessmentStatus.PRELIMINARY)
|
||||
return "preliminary";
|
||||
|
@ -240,7 +242,7 @@ public class RiskAssessment extends DomainResource {
|
|||
if (code == RiskAssessmentStatus.UNKNOWN)
|
||||
return "unknown";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(RiskAssessmentStatus code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
|
@ -107,7 +107,7 @@ public class SearchParameter extends MetadataResource {
|
|||
case NEARBY: return "nearby";
|
||||
case DISTANCE: return "distance";
|
||||
case OTHER: return "other";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -118,7 +118,7 @@ public class SearchParameter extends MetadataResource {
|
|||
case NEARBY: return "http://hl7.org/fhir/search-xpath-usage";
|
||||
case DISTANCE: return "http://hl7.org/fhir/search-xpath-usage";
|
||||
case OTHER: return "http://hl7.org/fhir/search-xpath-usage";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -129,7 +129,7 @@ public class SearchParameter extends MetadataResource {
|
|||
case NEARBY: return "The search parameter is based on a spatial transform of the selected nodes.";
|
||||
case DISTANCE: return "The search parameter is based on a spatial transform of the selected nodes, using physical distance from the middle.";
|
||||
case OTHER: return "The interpretation of the xpath statement is unknown (and can't be automated).";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -140,7 +140,7 @@ public class SearchParameter extends MetadataResource {
|
|||
case NEARBY: return "Nearby";
|
||||
case DISTANCE: return "Distance";
|
||||
case OTHER: return "Other";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -184,7 +184,9 @@ public class SearchParameter extends MetadataResource {
|
|||
throw new FHIRException("Unknown XPathUsageType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(XPathUsageType code) {
|
||||
if (code == XPathUsageType.NORMAL)
|
||||
if (code == XPathUsageType.NULL)
|
||||
return null;
|
||||
if (code == XPathUsageType.NORMAL)
|
||||
return "normal";
|
||||
if (code == XPathUsageType.PHONETIC)
|
||||
return "phonetic";
|
||||
|
@ -195,7 +197,7 @@ public class SearchParameter extends MetadataResource {
|
|||
if (code == XPathUsageType.OTHER)
|
||||
return "other";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(XPathUsageType code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -279,7 +281,7 @@ public class SearchParameter extends MetadataResource {
|
|||
case SA: return "sa";
|
||||
case EB: return "eb";
|
||||
case AP: return "ap";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -294,7 +296,7 @@ public class SearchParameter extends MetadataResource {
|
|||
case SA: return "http://hl7.org/fhir/search-comparator";
|
||||
case EB: return "http://hl7.org/fhir/search-comparator";
|
||||
case AP: return "http://hl7.org/fhir/search-comparator";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -309,7 +311,7 @@ public class SearchParameter extends MetadataResource {
|
|||
case SA: return "the value for the parameter in the resource starts after the provided value";
|
||||
case EB: return "the value for the parameter in the resource ends before the provided value";
|
||||
case AP: return "the value for the parameter in the resource is approximately the same to the provided value.";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -324,7 +326,7 @@ public class SearchParameter extends MetadataResource {
|
|||
case SA: return "Starts After";
|
||||
case EB: return "Ends Before";
|
||||
case AP: return "Approximately";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -384,7 +386,9 @@ public class SearchParameter extends MetadataResource {
|
|||
throw new FHIRException("Unknown SearchComparator code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(SearchComparator code) {
|
||||
if (code == SearchComparator.EQ)
|
||||
if (code == SearchComparator.NULL)
|
||||
return null;
|
||||
if (code == SearchComparator.EQ)
|
||||
return "eq";
|
||||
if (code == SearchComparator.NE)
|
||||
return "ne";
|
||||
|
@ -403,7 +407,7 @@ public class SearchParameter extends MetadataResource {
|
|||
if (code == SearchComparator.AP)
|
||||
return "ap";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(SearchComparator code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
@ -494,7 +498,7 @@ public class SearchParameter extends MetadataResource {
|
|||
case BELOW: return "below";
|
||||
case ABOVE: return "above";
|
||||
case TYPE: return "type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -510,7 +514,7 @@ public class SearchParameter extends MetadataResource {
|
|||
case BELOW: return "http://hl7.org/fhir/search-modifier-code";
|
||||
case ABOVE: return "http://hl7.org/fhir/search-modifier-code";
|
||||
case TYPE: return "http://hl7.org/fhir/search-modifier-code";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -526,7 +530,7 @@ public class SearchParameter extends MetadataResource {
|
|||
case BELOW: return "The search parameter tests whether the value in a resource is subsumed by the specified value (is-a, or hierarchical relationships).";
|
||||
case ABOVE: return "The search parameter tests whether the value in a resource subsumes the specified value (is-a, or hierarchical relationships).";
|
||||
case TYPE: return "The search parameter only applies to the Resource Type specified as a modifier (e.g. the modifier is not actually :type, but :Patient etc.).";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -542,7 +546,7 @@ public class SearchParameter extends MetadataResource {
|
|||
case BELOW: return "Below";
|
||||
case ABOVE: return "Above";
|
||||
case TYPE: return "Type";
|
||||
case NULL: return null;
|
||||
case NULL: return null;
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -606,7 +610,9 @@ public class SearchParameter extends MetadataResource {
|
|||
throw new FHIRException("Unknown SearchModifierCode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(SearchModifierCode code) {
|
||||
if (code == SearchModifierCode.MISSING)
|
||||
if (code == SearchModifierCode.NULL)
|
||||
return null;
|
||||
if (code == SearchModifierCode.MISSING)
|
||||
return "missing";
|
||||
if (code == SearchModifierCode.EXACT)
|
||||
return "exact";
|
||||
|
@ -627,7 +633,7 @@ public class SearchParameter extends MetadataResource {
|
|||
if (code == SearchModifierCode.TYPE)
|
||||
return "type";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
public String toSystem(SearchModifierCode code) {
|
||||
return code.getSystem();
|
||||
}
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue