Return null for all toCode enum params that are Enum.NULL (r5)
This commit is contained in:
parent
704ba35073
commit
33cb80dfe7
File diff suppressed because one or more lines are too long
|
@ -348,7 +348,9 @@ public class ActivityDefinition extends MetadataResource {
|
||||||
throw new FHIRException("Unknown RequestResourceTypes code '"+codeString+"'");
|
throw new FHIRException("Unknown RequestResourceTypes code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(RequestResourceTypes code) {
|
public String toCode(RequestResourceTypes code) {
|
||||||
if (code == RequestResourceTypes.APPOINTMENT)
|
if (code == RequestResourceTypes.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == RequestResourceTypes.APPOINTMENT)
|
||||||
return "Appointment";
|
return "Appointment";
|
||||||
if (code == RequestResourceTypes.APPOINTMENTRESPONSE)
|
if (code == RequestResourceTypes.APPOINTMENTRESPONSE)
|
||||||
return "AppointmentResponse";
|
return "AppointmentResponse";
|
||||||
|
@ -383,7 +385,7 @@ public class ActivityDefinition extends MetadataResource {
|
||||||
if (code == RequestResourceTypes.VISIONPRESCRIPTION)
|
if (code == RequestResourceTypes.VISIONPRESCRIPTION)
|
||||||
return "VisionPrescription";
|
return "VisionPrescription";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(RequestResourceTypes code) {
|
public String toSystem(RequestResourceTypes code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,7 +46,7 @@ import ca.uhn.fhir.model.api.annotation.Description;
|
||||||
import ca.uhn.fhir.model.api.annotation.Block;
|
import ca.uhn.fhir.model.api.annotation.Block;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Address Type: An address expressed using postal conventions (as opposed to GPS or other location definition formats). This data type may be used to convey addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery. There are a variety of postal address formats defined around the world.
|
* Address Type: An address expressed using postal conventions (as opposed to GPS or other location definition formats). This data type may be used to convey addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery. There are a variety of postal address formats defined around the world.
|
||||||
The ISO21090-codedString may be used to provide a coded representation of the contents of strings in an Address.
|
The ISO21090-codedString may be used to provide a coded representation of the contents of strings in an Address.
|
||||||
*/
|
*/
|
||||||
@DatatypeDef(name="Address")
|
@DatatypeDef(name="Address")
|
||||||
|
@ -151,14 +151,16 @@ public class Address extends DataType implements ICompositeType {
|
||||||
throw new FHIRException("Unknown AddressType code '"+codeString+"'");
|
throw new FHIRException("Unknown AddressType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(AddressType code) {
|
public String toCode(AddressType code) {
|
||||||
if (code == AddressType.POSTAL)
|
if (code == AddressType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == AddressType.POSTAL)
|
||||||
return "postal";
|
return "postal";
|
||||||
if (code == AddressType.PHYSICAL)
|
if (code == AddressType.PHYSICAL)
|
||||||
return "physical";
|
return "physical";
|
||||||
if (code == AddressType.BOTH)
|
if (code == AddressType.BOTH)
|
||||||
return "both";
|
return "both";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(AddressType code) {
|
public String toSystem(AddressType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -291,7 +293,9 @@ public class Address extends DataType implements ICompositeType {
|
||||||
throw new FHIRException("Unknown AddressUse code '"+codeString+"'");
|
throw new FHIRException("Unknown AddressUse code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(AddressUse code) {
|
public String toCode(AddressUse code) {
|
||||||
if (code == AddressUse.HOME)
|
if (code == AddressUse.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == AddressUse.HOME)
|
||||||
return "home";
|
return "home";
|
||||||
if (code == AddressUse.WORK)
|
if (code == AddressUse.WORK)
|
||||||
return "work";
|
return "work";
|
||||||
|
@ -302,7 +306,7 @@ public class Address extends DataType implements ICompositeType {
|
||||||
if (code == AddressUse.BILLING)
|
if (code == AddressUse.BILLING)
|
||||||
return "billing";
|
return "billing";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(AddressUse code) {
|
public String toSystem(AddressUse code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,12 +138,14 @@ public class AdverseEvent extends DomainResource {
|
||||||
throw new FHIRException("Unknown AdverseEventActuality code '"+codeString+"'");
|
throw new FHIRException("Unknown AdverseEventActuality code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(AdverseEventActuality code) {
|
public String toCode(AdverseEventActuality code) {
|
||||||
if (code == AdverseEventActuality.ACTUAL)
|
if (code == AdverseEventActuality.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == AdverseEventActuality.ACTUAL)
|
||||||
return "actual";
|
return "actual";
|
||||||
if (code == AdverseEventActuality.POTENTIAL)
|
if (code == AdverseEventActuality.POTENTIAL)
|
||||||
return "potential";
|
return "potential";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(AdverseEventActuality code) {
|
public String toSystem(AdverseEventActuality code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -262,7 +264,9 @@ public class AdverseEvent extends DomainResource {
|
||||||
throw new FHIRException("Unknown AdverseEventStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown AdverseEventStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(AdverseEventStatus code) {
|
public String toCode(AdverseEventStatus code) {
|
||||||
if (code == AdverseEventStatus.INPROGRESS)
|
if (code == AdverseEventStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == AdverseEventStatus.INPROGRESS)
|
||||||
return "in-progress";
|
return "in-progress";
|
||||||
if (code == AdverseEventStatus.COMPLETED)
|
if (code == AdverseEventStatus.COMPLETED)
|
||||||
return "completed";
|
return "completed";
|
||||||
|
@ -271,7 +275,7 @@ public class AdverseEvent extends DomainResource {
|
||||||
if (code == AdverseEventStatus.UNKNOWN)
|
if (code == AdverseEventStatus.UNKNOWN)
|
||||||
return "unknown";
|
return "unknown";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(AdverseEventStatus code) {
|
public String toSystem(AdverseEventStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -166,7 +166,9 @@ public class AllergyIntolerance extends DomainResource {
|
||||||
throw new FHIRException("Unknown AllergyIntoleranceCategory code '"+codeString+"'");
|
throw new FHIRException("Unknown AllergyIntoleranceCategory code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(AllergyIntoleranceCategory code) {
|
public String toCode(AllergyIntoleranceCategory code) {
|
||||||
if (code == AllergyIntoleranceCategory.FOOD)
|
if (code == AllergyIntoleranceCategory.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == AllergyIntoleranceCategory.FOOD)
|
||||||
return "food";
|
return "food";
|
||||||
if (code == AllergyIntoleranceCategory.MEDICATION)
|
if (code == AllergyIntoleranceCategory.MEDICATION)
|
||||||
return "medication";
|
return "medication";
|
||||||
|
@ -175,7 +177,7 @@ public class AllergyIntolerance extends DomainResource {
|
||||||
if (code == AllergyIntoleranceCategory.BIOLOGIC)
|
if (code == AllergyIntoleranceCategory.BIOLOGIC)
|
||||||
return "biologic";
|
return "biologic";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(AllergyIntoleranceCategory code) {
|
public String toSystem(AllergyIntoleranceCategory code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -280,14 +282,16 @@ public class AllergyIntolerance extends DomainResource {
|
||||||
throw new FHIRException("Unknown AllergyIntoleranceCriticality code '"+codeString+"'");
|
throw new FHIRException("Unknown AllergyIntoleranceCriticality code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(AllergyIntoleranceCriticality code) {
|
public String toCode(AllergyIntoleranceCriticality code) {
|
||||||
if (code == AllergyIntoleranceCriticality.LOW)
|
if (code == AllergyIntoleranceCriticality.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == AllergyIntoleranceCriticality.LOW)
|
||||||
return "low";
|
return "low";
|
||||||
if (code == AllergyIntoleranceCriticality.HIGH)
|
if (code == AllergyIntoleranceCriticality.HIGH)
|
||||||
return "high";
|
return "high";
|
||||||
if (code == AllergyIntoleranceCriticality.UNABLETOASSESS)
|
if (code == AllergyIntoleranceCriticality.UNABLETOASSESS)
|
||||||
return "unable-to-assess";
|
return "unable-to-assess";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(AllergyIntoleranceCriticality code) {
|
public String toSystem(AllergyIntoleranceCriticality code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -392,14 +396,16 @@ public class AllergyIntolerance extends DomainResource {
|
||||||
throw new FHIRException("Unknown AllergyIntoleranceSeverity code '"+codeString+"'");
|
throw new FHIRException("Unknown AllergyIntoleranceSeverity code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(AllergyIntoleranceSeverity code) {
|
public String toCode(AllergyIntoleranceSeverity code) {
|
||||||
if (code == AllergyIntoleranceSeverity.MILD)
|
if (code == AllergyIntoleranceSeverity.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == AllergyIntoleranceSeverity.MILD)
|
||||||
return "mild";
|
return "mild";
|
||||||
if (code == AllergyIntoleranceSeverity.MODERATE)
|
if (code == AllergyIntoleranceSeverity.MODERATE)
|
||||||
return "moderate";
|
return "moderate";
|
||||||
if (code == AllergyIntoleranceSeverity.SEVERE)
|
if (code == AllergyIntoleranceSeverity.SEVERE)
|
||||||
return "severe";
|
return "severe";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(AllergyIntoleranceSeverity code) {
|
public String toSystem(AllergyIntoleranceSeverity code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -180,7 +180,9 @@ public class AppointmentResponse extends DomainResource {
|
||||||
throw new FHIRException("Unknown AppointmentResponseStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown AppointmentResponseStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(AppointmentResponseStatus code) {
|
public String toCode(AppointmentResponseStatus code) {
|
||||||
if (code == AppointmentResponseStatus.ACCEPTED)
|
if (code == AppointmentResponseStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == AppointmentResponseStatus.ACCEPTED)
|
||||||
return "accepted";
|
return "accepted";
|
||||||
if (code == AppointmentResponseStatus.DECLINED)
|
if (code == AppointmentResponseStatus.DECLINED)
|
||||||
return "declined";
|
return "declined";
|
||||||
|
@ -191,7 +193,7 @@ public class AppointmentResponse extends DomainResource {
|
||||||
if (code == AppointmentResponseStatus.ENTEREDINERROR)
|
if (code == AppointmentResponseStatus.ENTEREDINERROR)
|
||||||
return "entered-in-error";
|
return "entered-in-error";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(AppointmentResponseStatus code) {
|
public String toSystem(AppointmentResponseStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -180,7 +180,9 @@ public class ArtifactAssessment extends DomainResource {
|
||||||
throw new FHIRException("Unknown ArtifactAssessmentDisposition code '"+codeString+"'");
|
throw new FHIRException("Unknown ArtifactAssessmentDisposition code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ArtifactAssessmentDisposition code) {
|
public String toCode(ArtifactAssessmentDisposition code) {
|
||||||
if (code == ArtifactAssessmentDisposition.UNRESOLVED)
|
if (code == ArtifactAssessmentDisposition.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ArtifactAssessmentDisposition.UNRESOLVED)
|
||||||
return "unresolved";
|
return "unresolved";
|
||||||
if (code == ArtifactAssessmentDisposition.NOTPERSUASIVE)
|
if (code == ArtifactAssessmentDisposition.NOTPERSUASIVE)
|
||||||
return "not-persuasive";
|
return "not-persuasive";
|
||||||
|
@ -191,7 +193,7 @@ public class ArtifactAssessment extends DomainResource {
|
||||||
if (code == ArtifactAssessmentDisposition.NOTPERSUASIVEWITHMODIFICATION)
|
if (code == ArtifactAssessmentDisposition.NOTPERSUASIVEWITHMODIFICATION)
|
||||||
return "not-persuasive-with-modification";
|
return "not-persuasive-with-modification";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ArtifactAssessmentDisposition code) {
|
public String toSystem(ArtifactAssessmentDisposition code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -338,7 +340,9 @@ public class ArtifactAssessment extends DomainResource {
|
||||||
throw new FHIRException("Unknown ArtifactAssessmentInformationType code '"+codeString+"'");
|
throw new FHIRException("Unknown ArtifactAssessmentInformationType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ArtifactAssessmentInformationType code) {
|
public String toCode(ArtifactAssessmentInformationType code) {
|
||||||
if (code == ArtifactAssessmentInformationType.COMMENT)
|
if (code == ArtifactAssessmentInformationType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ArtifactAssessmentInformationType.COMMENT)
|
||||||
return "comment";
|
return "comment";
|
||||||
if (code == ArtifactAssessmentInformationType.CLASSIFIER)
|
if (code == ArtifactAssessmentInformationType.CLASSIFIER)
|
||||||
return "classifier";
|
return "classifier";
|
||||||
|
@ -351,7 +355,7 @@ public class ArtifactAssessment extends DomainResource {
|
||||||
if (code == ArtifactAssessmentInformationType.CHANGEREQUEST)
|
if (code == ArtifactAssessmentInformationType.CHANGEREQUEST)
|
||||||
return "change-request";
|
return "change-request";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ArtifactAssessmentInformationType code) {
|
public String toSystem(ArtifactAssessmentInformationType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -554,7 +558,9 @@ public class ArtifactAssessment extends DomainResource {
|
||||||
throw new FHIRException("Unknown ArtifactAssessmentWorkflowStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown ArtifactAssessmentWorkflowStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ArtifactAssessmentWorkflowStatus code) {
|
public String toCode(ArtifactAssessmentWorkflowStatus code) {
|
||||||
if (code == ArtifactAssessmentWorkflowStatus.SUBMITTED)
|
if (code == ArtifactAssessmentWorkflowStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ArtifactAssessmentWorkflowStatus.SUBMITTED)
|
||||||
return "submitted";
|
return "submitted";
|
||||||
if (code == ArtifactAssessmentWorkflowStatus.TRIAGED)
|
if (code == ArtifactAssessmentWorkflowStatus.TRIAGED)
|
||||||
return "triaged";
|
return "triaged";
|
||||||
|
@ -575,7 +581,7 @@ public class ArtifactAssessment extends DomainResource {
|
||||||
if (code == ArtifactAssessmentWorkflowStatus.ENTEREDINERROR)
|
if (code == ArtifactAssessmentWorkflowStatus.ENTEREDINERROR)
|
||||||
return "entered-in-error";
|
return "entered-in-error";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ArtifactAssessmentWorkflowStatus code) {
|
public String toSystem(ArtifactAssessmentWorkflowStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -180,7 +180,9 @@ public class AuditEvent extends DomainResource {
|
||||||
throw new FHIRException("Unknown AuditEventAction code '"+codeString+"'");
|
throw new FHIRException("Unknown AuditEventAction code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(AuditEventAction code) {
|
public String toCode(AuditEventAction code) {
|
||||||
if (code == AuditEventAction.C)
|
if (code == AuditEventAction.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == AuditEventAction.C)
|
||||||
return "C";
|
return "C";
|
||||||
if (code == AuditEventAction.R)
|
if (code == AuditEventAction.R)
|
||||||
return "R";
|
return "R";
|
||||||
|
@ -191,7 +193,7 @@ public class AuditEvent extends DomainResource {
|
||||||
if (code == AuditEventAction.E)
|
if (code == AuditEventAction.E)
|
||||||
return "E";
|
return "E";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(AuditEventAction code) {
|
public String toSystem(AuditEventAction code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -366,7 +368,9 @@ public class AuditEvent extends DomainResource {
|
||||||
throw new FHIRException("Unknown AuditEventSeverity code '"+codeString+"'");
|
throw new FHIRException("Unknown AuditEventSeverity code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(AuditEventSeverity code) {
|
public String toCode(AuditEventSeverity code) {
|
||||||
if (code == AuditEventSeverity.EMERGENCY)
|
if (code == AuditEventSeverity.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == AuditEventSeverity.EMERGENCY)
|
||||||
return "emergency";
|
return "emergency";
|
||||||
if (code == AuditEventSeverity.ALERT)
|
if (code == AuditEventSeverity.ALERT)
|
||||||
return "alert";
|
return "alert";
|
||||||
|
@ -383,7 +387,7 @@ public class AuditEvent extends DomainResource {
|
||||||
if (code == AuditEventSeverity.DEBUG)
|
if (code == AuditEventSeverity.DEBUG)
|
||||||
return "debug";
|
return "debug";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(AuditEventSeverity code) {
|
public String toSystem(AuditEventSeverity code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -222,7 +222,9 @@ public class BiologicallyDerivedProductDispense extends DomainResource {
|
||||||
throw new FHIRException("Unknown BiologicallyDerivedProductDispenseCodes code '"+codeString+"'");
|
throw new FHIRException("Unknown BiologicallyDerivedProductDispenseCodes code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(BiologicallyDerivedProductDispenseCodes code) {
|
public String toCode(BiologicallyDerivedProductDispenseCodes code) {
|
||||||
if (code == BiologicallyDerivedProductDispenseCodes.PREPARATION)
|
if (code == BiologicallyDerivedProductDispenseCodes.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == BiologicallyDerivedProductDispenseCodes.PREPARATION)
|
||||||
return "preparation";
|
return "preparation";
|
||||||
if (code == BiologicallyDerivedProductDispenseCodes.INPROGRESS)
|
if (code == BiologicallyDerivedProductDispenseCodes.INPROGRESS)
|
||||||
return "in-progress";
|
return "in-progress";
|
||||||
|
@ -239,7 +241,7 @@ public class BiologicallyDerivedProductDispense extends DomainResource {
|
||||||
if (code == BiologicallyDerivedProductDispenseCodes.UNKNOWN)
|
if (code == BiologicallyDerivedProductDispenseCodes.UNKNOWN)
|
||||||
return "unknown";
|
return "unknown";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(BiologicallyDerivedProductDispenseCodes code) {
|
public String toSystem(BiologicallyDerivedProductDispenseCodes code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -252,7 +252,9 @@ public class Bundle extends Resource implements IBaseBundle {
|
||||||
throw new FHIRException("Unknown BundleType code '"+codeString+"'");
|
throw new FHIRException("Unknown BundleType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(BundleType code) {
|
public String toCode(BundleType code) {
|
||||||
if (code == BundleType.DOCUMENT)
|
if (code == BundleType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == BundleType.DOCUMENT)
|
||||||
return "document";
|
return "document";
|
||||||
if (code == BundleType.MESSAGE)
|
if (code == BundleType.MESSAGE)
|
||||||
return "message";
|
return "message";
|
||||||
|
@ -273,7 +275,7 @@ public class Bundle extends Resource implements IBaseBundle {
|
||||||
if (code == BundleType.SUBSCRIPTIONNOTIFICATION)
|
if (code == BundleType.SUBSCRIPTIONNOTIFICATION)
|
||||||
return "subscription-notification";
|
return "subscription-notification";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(BundleType code) {
|
public String toSystem(BundleType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -420,7 +422,9 @@ public class Bundle extends Resource implements IBaseBundle {
|
||||||
throw new FHIRException("Unknown HTTPVerb code '"+codeString+"'");
|
throw new FHIRException("Unknown HTTPVerb code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(HTTPVerb code) {
|
public String toCode(HTTPVerb code) {
|
||||||
if (code == HTTPVerb.GET)
|
if (code == HTTPVerb.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == HTTPVerb.GET)
|
||||||
return "GET";
|
return "GET";
|
||||||
if (code == HTTPVerb.HEAD)
|
if (code == HTTPVerb.HEAD)
|
||||||
return "HEAD";
|
return "HEAD";
|
||||||
|
@ -433,7 +437,7 @@ public class Bundle extends Resource implements IBaseBundle {
|
||||||
if (code == HTTPVerb.PATCH)
|
if (code == HTTPVerb.PATCH)
|
||||||
return "PATCH";
|
return "PATCH";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(HTTPVerb code) {
|
public String toSystem(HTTPVerb code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -2176,7 +2180,9 @@ public class Bundle extends Resource implements IBaseBundle {
|
||||||
throw new FHIRException("Unknown LinkRelationTypes code '"+codeString+"'");
|
throw new FHIRException("Unknown LinkRelationTypes code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(LinkRelationTypes code) {
|
public String toCode(LinkRelationTypes code) {
|
||||||
if (code == LinkRelationTypes.ABOUT)
|
if (code == LinkRelationTypes.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == LinkRelationTypes.ABOUT)
|
||||||
return "about";
|
return "about";
|
||||||
if (code == LinkRelationTypes.ACL)
|
if (code == LinkRelationTypes.ACL)
|
||||||
return "acl";
|
return "acl";
|
||||||
|
@ -2417,7 +2423,7 @@ public class Bundle extends Resource implements IBaseBundle {
|
||||||
if (code == LinkRelationTypes.WORKINGCOPYOF)
|
if (code == LinkRelationTypes.WORKINGCOPYOF)
|
||||||
return "working-copy-of";
|
return "working-copy-of";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(LinkRelationTypes code) {
|
public String toSystem(LinkRelationTypes code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -2522,14 +2528,16 @@ public class Bundle extends Resource implements IBaseBundle {
|
||||||
throw new FHIRException("Unknown SearchEntryMode code '"+codeString+"'");
|
throw new FHIRException("Unknown SearchEntryMode code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(SearchEntryMode code) {
|
public String toCode(SearchEntryMode code) {
|
||||||
if (code == SearchEntryMode.MATCH)
|
if (code == SearchEntryMode.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == SearchEntryMode.MATCH)
|
||||||
return "match";
|
return "match";
|
||||||
if (code == SearchEntryMode.INCLUDE)
|
if (code == SearchEntryMode.INCLUDE)
|
||||||
return "include";
|
return "include";
|
||||||
if (code == SearchEntryMode.OUTCOME)
|
if (code == SearchEntryMode.OUTCOME)
|
||||||
return "outcome";
|
return "outcome";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(SearchEntryMode code) {
|
public String toSystem(SearchEntryMode code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -153,14 +153,16 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo
|
||||||
throw new FHIRException("Unknown ConditionalDeleteStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown ConditionalDeleteStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ConditionalDeleteStatus code) {
|
public String toCode(ConditionalDeleteStatus code) {
|
||||||
if (code == ConditionalDeleteStatus.NOTSUPPORTED)
|
if (code == ConditionalDeleteStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ConditionalDeleteStatus.NOTSUPPORTED)
|
||||||
return "not-supported";
|
return "not-supported";
|
||||||
if (code == ConditionalDeleteStatus.SINGLE)
|
if (code == ConditionalDeleteStatus.SINGLE)
|
||||||
return "single";
|
return "single";
|
||||||
if (code == ConditionalDeleteStatus.MULTIPLE)
|
if (code == ConditionalDeleteStatus.MULTIPLE)
|
||||||
return "multiple";
|
return "multiple";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ConditionalDeleteStatus code) {
|
public String toSystem(ConditionalDeleteStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -279,7 +281,9 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo
|
||||||
throw new FHIRException("Unknown ConditionalReadStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown ConditionalReadStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ConditionalReadStatus code) {
|
public String toCode(ConditionalReadStatus code) {
|
||||||
if (code == ConditionalReadStatus.NOTSUPPORTED)
|
if (code == ConditionalReadStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ConditionalReadStatus.NOTSUPPORTED)
|
||||||
return "not-supported";
|
return "not-supported";
|
||||||
if (code == ConditionalReadStatus.MODIFIEDSINCE)
|
if (code == ConditionalReadStatus.MODIFIEDSINCE)
|
||||||
return "modified-since";
|
return "modified-since";
|
||||||
|
@ -288,7 +292,7 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo
|
||||||
if (code == ConditionalReadStatus.FULLSUPPORT)
|
if (code == ConditionalReadStatus.FULLSUPPORT)
|
||||||
return "full-support";
|
return "full-support";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ConditionalReadStatus code) {
|
public String toSystem(ConditionalReadStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -379,12 +383,14 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo
|
||||||
throw new FHIRException("Unknown DocumentMode code '"+codeString+"'");
|
throw new FHIRException("Unknown DocumentMode code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(DocumentMode code) {
|
public String toCode(DocumentMode code) {
|
||||||
if (code == DocumentMode.PRODUCER)
|
if (code == DocumentMode.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == DocumentMode.PRODUCER)
|
||||||
return "producer";
|
return "producer";
|
||||||
if (code == DocumentMode.CONSUMER)
|
if (code == DocumentMode.CONSUMER)
|
||||||
return "consumer";
|
return "consumer";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(DocumentMode code) {
|
public String toSystem(DocumentMode code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -475,12 +481,14 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo
|
||||||
throw new FHIRException("Unknown EventCapabilityMode code '"+codeString+"'");
|
throw new FHIRException("Unknown EventCapabilityMode code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(EventCapabilityMode code) {
|
public String toCode(EventCapabilityMode code) {
|
||||||
if (code == EventCapabilityMode.SENDER)
|
if (code == EventCapabilityMode.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == EventCapabilityMode.SENDER)
|
||||||
return "sender";
|
return "sender";
|
||||||
if (code == EventCapabilityMode.RECEIVER)
|
if (code == EventCapabilityMode.RECEIVER)
|
||||||
return "receiver";
|
return "receiver";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(EventCapabilityMode code) {
|
public String toSystem(EventCapabilityMode code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -613,7 +621,9 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo
|
||||||
throw new FHIRException("Unknown ReferenceHandlingPolicy code '"+codeString+"'");
|
throw new FHIRException("Unknown ReferenceHandlingPolicy code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ReferenceHandlingPolicy code) {
|
public String toCode(ReferenceHandlingPolicy code) {
|
||||||
if (code == ReferenceHandlingPolicy.LITERAL)
|
if (code == ReferenceHandlingPolicy.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ReferenceHandlingPolicy.LITERAL)
|
||||||
return "literal";
|
return "literal";
|
||||||
if (code == ReferenceHandlingPolicy.LOGICAL)
|
if (code == ReferenceHandlingPolicy.LOGICAL)
|
||||||
return "logical";
|
return "logical";
|
||||||
|
@ -624,7 +634,7 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo
|
||||||
if (code == ReferenceHandlingPolicy.LOCAL)
|
if (code == ReferenceHandlingPolicy.LOCAL)
|
||||||
return "local";
|
return "local";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ReferenceHandlingPolicy code) {
|
public String toSystem(ReferenceHandlingPolicy code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -729,14 +739,16 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo
|
||||||
throw new FHIRException("Unknown ResourceVersionPolicy code '"+codeString+"'");
|
throw new FHIRException("Unknown ResourceVersionPolicy code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ResourceVersionPolicy code) {
|
public String toCode(ResourceVersionPolicy code) {
|
||||||
if (code == ResourceVersionPolicy.NOVERSION)
|
if (code == ResourceVersionPolicy.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ResourceVersionPolicy.NOVERSION)
|
||||||
return "no-version";
|
return "no-version";
|
||||||
if (code == ResourceVersionPolicy.VERSIONED)
|
if (code == ResourceVersionPolicy.VERSIONED)
|
||||||
return "versioned";
|
return "versioned";
|
||||||
if (code == ResourceVersionPolicy.VERSIONEDUPDATE)
|
if (code == ResourceVersionPolicy.VERSIONEDUPDATE)
|
||||||
return "versioned-update";
|
return "versioned-update";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ResourceVersionPolicy code) {
|
public String toSystem(ResourceVersionPolicy code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -827,12 +839,14 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo
|
||||||
throw new FHIRException("Unknown RestfulCapabilityMode code '"+codeString+"'");
|
throw new FHIRException("Unknown RestfulCapabilityMode code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(RestfulCapabilityMode code) {
|
public String toCode(RestfulCapabilityMode code) {
|
||||||
if (code == RestfulCapabilityMode.CLIENT)
|
if (code == RestfulCapabilityMode.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == RestfulCapabilityMode.CLIENT)
|
||||||
return "client";
|
return "client";
|
||||||
if (code == RestfulCapabilityMode.SERVER)
|
if (code == RestfulCapabilityMode.SERVER)
|
||||||
return "server";
|
return "server";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(RestfulCapabilityMode code) {
|
public String toSystem(RestfulCapabilityMode code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -951,7 +965,9 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo
|
||||||
throw new FHIRException("Unknown SystemRestfulInteraction code '"+codeString+"'");
|
throw new FHIRException("Unknown SystemRestfulInteraction code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(SystemRestfulInteraction code) {
|
public String toCode(SystemRestfulInteraction code) {
|
||||||
if (code == SystemRestfulInteraction.TRANSACTION)
|
if (code == SystemRestfulInteraction.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == SystemRestfulInteraction.TRANSACTION)
|
||||||
return "transaction";
|
return "transaction";
|
||||||
if (code == SystemRestfulInteraction.BATCH)
|
if (code == SystemRestfulInteraction.BATCH)
|
||||||
return "batch";
|
return "batch";
|
||||||
|
@ -960,7 +976,7 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo
|
||||||
if (code == SystemRestfulInteraction.HISTORYSYSTEM)
|
if (code == SystemRestfulInteraction.HISTORYSYSTEM)
|
||||||
return "history-system";
|
return "history-system";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(SystemRestfulInteraction code) {
|
public String toSystem(SystemRestfulInteraction code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -1149,7 +1165,9 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo
|
||||||
throw new FHIRException("Unknown TypeRestfulInteraction code '"+codeString+"'");
|
throw new FHIRException("Unknown TypeRestfulInteraction code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(TypeRestfulInteraction code) {
|
public String toCode(TypeRestfulInteraction code) {
|
||||||
if (code == TypeRestfulInteraction.READ)
|
if (code == TypeRestfulInteraction.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == TypeRestfulInteraction.READ)
|
||||||
return "read";
|
return "read";
|
||||||
if (code == TypeRestfulInteraction.VREAD)
|
if (code == TypeRestfulInteraction.VREAD)
|
||||||
return "vread";
|
return "vread";
|
||||||
|
@ -1168,7 +1186,7 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo
|
||||||
if (code == TypeRestfulInteraction.SEARCHTYPE)
|
if (code == TypeRestfulInteraction.SEARCHTYPE)
|
||||||
return "search-type";
|
return "search-type";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(TypeRestfulInteraction code) {
|
public String toSystem(TypeRestfulInteraction code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -180,7 +180,9 @@ public class CarePlan extends DomainResource {
|
||||||
throw new FHIRException("Unknown CarePlanIntent code '"+codeString+"'");
|
throw new FHIRException("Unknown CarePlanIntent code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(CarePlanIntent code) {
|
public String toCode(CarePlanIntent code) {
|
||||||
if (code == CarePlanIntent.PROPOSAL)
|
if (code == CarePlanIntent.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == CarePlanIntent.PROPOSAL)
|
||||||
return "proposal";
|
return "proposal";
|
||||||
if (code == CarePlanIntent.PLAN)
|
if (code == CarePlanIntent.PLAN)
|
||||||
return "plan";
|
return "plan";
|
||||||
|
@ -191,7 +193,7 @@ public class CarePlan extends DomainResource {
|
||||||
if (code == CarePlanIntent.DIRECTIVE)
|
if (code == CarePlanIntent.DIRECTIVE)
|
||||||
return "directive";
|
return "directive";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(CarePlanIntent code) {
|
public String toSystem(CarePlanIntent code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -180,7 +180,9 @@ public class CareTeam extends DomainResource {
|
||||||
throw new FHIRException("Unknown CareTeamStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown CareTeamStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(CareTeamStatus code) {
|
public String toCode(CareTeamStatus code) {
|
||||||
if (code == CareTeamStatus.PROPOSED)
|
if (code == CareTeamStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == CareTeamStatus.PROPOSED)
|
||||||
return "proposed";
|
return "proposed";
|
||||||
if (code == CareTeamStatus.ACTIVE)
|
if (code == CareTeamStatus.ACTIVE)
|
||||||
return "active";
|
return "active";
|
||||||
|
@ -191,7 +193,7 @@ public class CareTeam extends DomainResource {
|
||||||
if (code == CareTeamStatus.ENTEREDINERROR)
|
if (code == CareTeamStatus.ENTEREDINERROR)
|
||||||
return "entered-in-error";
|
return "entered-in-error";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(CareTeamStatus code) {
|
public String toSystem(CareTeamStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -208,7 +208,9 @@ public class ChargeItem extends DomainResource {
|
||||||
throw new FHIRException("Unknown ChargeItemStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown ChargeItemStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ChargeItemStatus code) {
|
public String toCode(ChargeItemStatus code) {
|
||||||
if (code == ChargeItemStatus.PLANNED)
|
if (code == ChargeItemStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ChargeItemStatus.PLANNED)
|
||||||
return "planned";
|
return "planned";
|
||||||
if (code == ChargeItemStatus.BILLABLE)
|
if (code == ChargeItemStatus.BILLABLE)
|
||||||
return "billable";
|
return "billable";
|
||||||
|
@ -223,7 +225,7 @@ public class ChargeItem extends DomainResource {
|
||||||
if (code == ChargeItemStatus.UNKNOWN)
|
if (code == ChargeItemStatus.UNKNOWN)
|
||||||
return "unknown";
|
return "unknown";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ChargeItemStatus code) {
|
public String toSystem(ChargeItemStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -642,7 +642,9 @@ public class Citation extends MetadataResource {
|
||||||
throw new FHIRException("Unknown RelatedArtifactTypeExpanded code '"+codeString+"'");
|
throw new FHIRException("Unknown RelatedArtifactTypeExpanded code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(RelatedArtifactTypeExpanded code) {
|
public String toCode(RelatedArtifactTypeExpanded code) {
|
||||||
if (code == RelatedArtifactTypeExpanded.DOCUMENTATION)
|
if (code == RelatedArtifactTypeExpanded.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == RelatedArtifactTypeExpanded.DOCUMENTATION)
|
||||||
return "documentation";
|
return "documentation";
|
||||||
if (code == RelatedArtifactTypeExpanded.JUSTIFICATION)
|
if (code == RelatedArtifactTypeExpanded.JUSTIFICATION)
|
||||||
return "justification";
|
return "justification";
|
||||||
|
@ -719,7 +721,7 @@ public class Citation extends MetadataResource {
|
||||||
if (code == RelatedArtifactTypeExpanded.REPRINTOF)
|
if (code == RelatedArtifactTypeExpanded.REPRINTOF)
|
||||||
return "reprint-of";
|
return "reprint-of";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(RelatedArtifactTypeExpanded code) {
|
public String toSystem(RelatedArtifactTypeExpanded code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -180,7 +180,9 @@ public class ClinicalUseDefinition extends DomainResource {
|
||||||
throw new FHIRException("Unknown ClinicalUseDefinitionType code '"+codeString+"'");
|
throw new FHIRException("Unknown ClinicalUseDefinitionType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ClinicalUseDefinitionType code) {
|
public String toCode(ClinicalUseDefinitionType code) {
|
||||||
if (code == ClinicalUseDefinitionType.INDICATION)
|
if (code == ClinicalUseDefinitionType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ClinicalUseDefinitionType.INDICATION)
|
||||||
return "indication";
|
return "indication";
|
||||||
if (code == ClinicalUseDefinitionType.CONTRAINDICATION)
|
if (code == ClinicalUseDefinitionType.CONTRAINDICATION)
|
||||||
return "contraindication";
|
return "contraindication";
|
||||||
|
@ -191,7 +193,7 @@ public class ClinicalUseDefinition extends DomainResource {
|
||||||
if (code == ClinicalUseDefinitionType.WARNING)
|
if (code == ClinicalUseDefinitionType.WARNING)
|
||||||
return "warning";
|
return "warning";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ClinicalUseDefinitionType code) {
|
public String toSystem(ClinicalUseDefinitionType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -166,7 +166,9 @@ public class CodeSystem extends MetadataResource {
|
||||||
throw new FHIRException("Unknown CodeSystemHierarchyMeaning code '"+codeString+"'");
|
throw new FHIRException("Unknown CodeSystemHierarchyMeaning code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(CodeSystemHierarchyMeaning code) {
|
public String toCode(CodeSystemHierarchyMeaning code) {
|
||||||
if (code == CodeSystemHierarchyMeaning.GROUPEDBY)
|
if (code == CodeSystemHierarchyMeaning.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == CodeSystemHierarchyMeaning.GROUPEDBY)
|
||||||
return "grouped-by";
|
return "grouped-by";
|
||||||
if (code == CodeSystemHierarchyMeaning.ISA)
|
if (code == CodeSystemHierarchyMeaning.ISA)
|
||||||
return "is-a";
|
return "is-a";
|
||||||
|
@ -175,7 +177,7 @@ public class CodeSystem extends MetadataResource {
|
||||||
if (code == CodeSystemHierarchyMeaning.CLASSIFIEDWITH)
|
if (code == CodeSystemHierarchyMeaning.CLASSIFIEDWITH)
|
||||||
return "classified-with";
|
return "classified-with";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(CodeSystemHierarchyMeaning code) {
|
public String toSystem(CodeSystemHierarchyMeaning code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -336,7 +338,9 @@ public class CodeSystem extends MetadataResource {
|
||||||
throw new FHIRException("Unknown PropertyType code '"+codeString+"'");
|
throw new FHIRException("Unknown PropertyType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(PropertyType code) {
|
public String toCode(PropertyType code) {
|
||||||
if (code == PropertyType.CODE)
|
if (code == PropertyType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == PropertyType.CODE)
|
||||||
return "code";
|
return "code";
|
||||||
if (code == PropertyType.CODING)
|
if (code == PropertyType.CODING)
|
||||||
return "Coding";
|
return "Coding";
|
||||||
|
@ -351,7 +355,7 @@ public class CodeSystem extends MetadataResource {
|
||||||
if (code == PropertyType.DECIMAL)
|
if (code == PropertyType.DECIMAL)
|
||||||
return "decimal";
|
return "decimal";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(PropertyType code) {
|
public String toSystem(PropertyType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -180,7 +180,9 @@ public class ConceptMap extends MetadataResource {
|
||||||
throw new FHIRException("Unknown ConceptMapAttributeType code '"+codeString+"'");
|
throw new FHIRException("Unknown ConceptMapAttributeType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ConceptMapAttributeType code) {
|
public String toCode(ConceptMapAttributeType code) {
|
||||||
if (code == ConceptMapAttributeType.CODE)
|
if (code == ConceptMapAttributeType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ConceptMapAttributeType.CODE)
|
||||||
return "code";
|
return "code";
|
||||||
if (code == ConceptMapAttributeType.CODING)
|
if (code == ConceptMapAttributeType.CODING)
|
||||||
return "Coding";
|
return "Coding";
|
||||||
|
@ -191,7 +193,7 @@ public class ConceptMap extends MetadataResource {
|
||||||
if (code == ConceptMapAttributeType.QUANTITY)
|
if (code == ConceptMapAttributeType.QUANTITY)
|
||||||
return "Quantity";
|
return "Quantity";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ConceptMapAttributeType code) {
|
public String toSystem(ConceptMapAttributeType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -296,14 +298,16 @@ public class ConceptMap extends MetadataResource {
|
||||||
throw new FHIRException("Unknown ConceptMapGroupUnmappedMode code '"+codeString+"'");
|
throw new FHIRException("Unknown ConceptMapGroupUnmappedMode code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ConceptMapGroupUnmappedMode code) {
|
public String toCode(ConceptMapGroupUnmappedMode code) {
|
||||||
if (code == ConceptMapGroupUnmappedMode.USESOURCECODE)
|
if (code == ConceptMapGroupUnmappedMode.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ConceptMapGroupUnmappedMode.USESOURCECODE)
|
||||||
return "use-source-code";
|
return "use-source-code";
|
||||||
if (code == ConceptMapGroupUnmappedMode.FIXED)
|
if (code == ConceptMapGroupUnmappedMode.FIXED)
|
||||||
return "fixed";
|
return "fixed";
|
||||||
if (code == ConceptMapGroupUnmappedMode.OTHERMAP)
|
if (code == ConceptMapGroupUnmappedMode.OTHERMAP)
|
||||||
return "other-map";
|
return "other-map";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ConceptMapGroupUnmappedMode code) {
|
public String toSystem(ConceptMapGroupUnmappedMode code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -464,7 +468,9 @@ public class ConceptMap extends MetadataResource {
|
||||||
throw new FHIRException("Unknown ConceptMapPropertyType code '"+codeString+"'");
|
throw new FHIRException("Unknown ConceptMapPropertyType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ConceptMapPropertyType code) {
|
public String toCode(ConceptMapPropertyType code) {
|
||||||
if (code == ConceptMapPropertyType.CODING)
|
if (code == ConceptMapPropertyType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ConceptMapPropertyType.CODING)
|
||||||
return "Coding";
|
return "Coding";
|
||||||
if (code == ConceptMapPropertyType.STRING)
|
if (code == ConceptMapPropertyType.STRING)
|
||||||
return "string";
|
return "string";
|
||||||
|
@ -479,7 +485,7 @@ public class ConceptMap extends MetadataResource {
|
||||||
if (code == ConceptMapPropertyType.CODE)
|
if (code == ConceptMapPropertyType.CODE)
|
||||||
return "code";
|
return "code";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ConceptMapPropertyType code) {
|
public String toSystem(ConceptMapPropertyType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,12 +138,14 @@ public class ConditionDefinition extends MetadataResource {
|
||||||
throw new FHIRException("Unknown ConditionPreconditionType code '"+codeString+"'");
|
throw new FHIRException("Unknown ConditionPreconditionType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ConditionPreconditionType code) {
|
public String toCode(ConditionPreconditionType code) {
|
||||||
if (code == ConditionPreconditionType.SENSITIVE)
|
if (code == ConditionPreconditionType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ConditionPreconditionType.SENSITIVE)
|
||||||
return "sensitive";
|
return "sensitive";
|
||||||
if (code == ConditionPreconditionType.SPECIFIC)
|
if (code == ConditionPreconditionType.SPECIFIC)
|
||||||
return "specific";
|
return "specific";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ConditionPreconditionType code) {
|
public String toSystem(ConditionPreconditionType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -248,14 +250,16 @@ public class ConditionDefinition extends MetadataResource {
|
||||||
throw new FHIRException("Unknown ConditionQuestionnairePurpose code '"+codeString+"'");
|
throw new FHIRException("Unknown ConditionQuestionnairePurpose code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ConditionQuestionnairePurpose code) {
|
public String toCode(ConditionQuestionnairePurpose code) {
|
||||||
if (code == ConditionQuestionnairePurpose.PREADMIT)
|
if (code == ConditionQuestionnairePurpose.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ConditionQuestionnairePurpose.PREADMIT)
|
||||||
return "preadmit";
|
return "preadmit";
|
||||||
if (code == ConditionQuestionnairePurpose.DIFFDIAGNOSIS)
|
if (code == ConditionQuestionnairePurpose.DIFFDIAGNOSIS)
|
||||||
return "diff-diagnosis";
|
return "diff-diagnosis";
|
||||||
if (code == ConditionQuestionnairePurpose.OUTCOME)
|
if (code == ConditionQuestionnairePurpose.OUTCOME)
|
||||||
return "outcome";
|
return "outcome";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ConditionQuestionnairePurpose code) {
|
public String toSystem(ConditionQuestionnairePurpose code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -194,7 +194,9 @@ public class Consent extends DomainResource {
|
||||||
throw new FHIRException("Unknown ConsentState code '"+codeString+"'");
|
throw new FHIRException("Unknown ConsentState code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ConsentState code) {
|
public String toCode(ConsentState code) {
|
||||||
if (code == ConsentState.DRAFT)
|
if (code == ConsentState.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ConsentState.DRAFT)
|
||||||
return "draft";
|
return "draft";
|
||||||
if (code == ConsentState.ACTIVE)
|
if (code == ConsentState.ACTIVE)
|
||||||
return "active";
|
return "active";
|
||||||
|
@ -207,7 +209,7 @@ public class Consent extends DomainResource {
|
||||||
if (code == ConsentState.UNKNOWN)
|
if (code == ConsentState.UNKNOWN)
|
||||||
return "unknown";
|
return "unknown";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ConsentState code) {
|
public String toSystem(ConsentState code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -206,7 +206,9 @@ public class ContactPoint extends DataType implements ICompositeType {
|
||||||
throw new FHIRException("Unknown ContactPointSystem code '"+codeString+"'");
|
throw new FHIRException("Unknown ContactPointSystem code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ContactPointSystem code) {
|
public String toCode(ContactPointSystem code) {
|
||||||
if (code == ContactPointSystem.PHONE)
|
if (code == ContactPointSystem.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ContactPointSystem.PHONE)
|
||||||
return "phone";
|
return "phone";
|
||||||
if (code == ContactPointSystem.FAX)
|
if (code == ContactPointSystem.FAX)
|
||||||
return "fax";
|
return "fax";
|
||||||
|
@ -221,7 +223,7 @@ public class ContactPoint extends DataType implements ICompositeType {
|
||||||
if (code == ContactPointSystem.OTHER)
|
if (code == ContactPointSystem.OTHER)
|
||||||
return "other";
|
return "other";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ContactPointSystem code) {
|
public String toSystem(ContactPointSystem code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -354,7 +356,9 @@ public class ContactPoint extends DataType implements ICompositeType {
|
||||||
throw new FHIRException("Unknown ContactPointUse code '"+codeString+"'");
|
throw new FHIRException("Unknown ContactPointUse code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ContactPointUse code) {
|
public String toCode(ContactPointUse code) {
|
||||||
if (code == ContactPointUse.HOME)
|
if (code == ContactPointUse.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ContactPointUse.HOME)
|
||||||
return "home";
|
return "home";
|
||||||
if (code == ContactPointUse.WORK)
|
if (code == ContactPointUse.WORK)
|
||||||
return "work";
|
return "work";
|
||||||
|
@ -365,7 +369,7 @@ public class ContactPoint extends DataType implements ICompositeType {
|
||||||
if (code == ContactPointUse.MOBILE)
|
if (code == ContactPointUse.MOBILE)
|
||||||
return "mobile";
|
return "mobile";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ContactPointUse code) {
|
public String toSystem(ContactPointUse code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -321,7 +321,9 @@ public class Contract extends DomainResource {
|
||||||
throw new FHIRException("Unknown ContractResourcePublicationStatusCodes code '"+codeString+"'");
|
throw new FHIRException("Unknown ContractResourcePublicationStatusCodes code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ContractResourcePublicationStatusCodes code) {
|
public String toCode(ContractResourcePublicationStatusCodes code) {
|
||||||
if (code == ContractResourcePublicationStatusCodes.AMENDED)
|
if (code == ContractResourcePublicationStatusCodes.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ContractResourcePublicationStatusCodes.AMENDED)
|
||||||
return "amended";
|
return "amended";
|
||||||
if (code == ContractResourcePublicationStatusCodes.APPENDED)
|
if (code == ContractResourcePublicationStatusCodes.APPENDED)
|
||||||
return "appended";
|
return "appended";
|
||||||
|
@ -352,7 +354,7 @@ public class Contract extends DomainResource {
|
||||||
if (code == ContractResourcePublicationStatusCodes.TERMINATED)
|
if (code == ContractResourcePublicationStatusCodes.TERMINATED)
|
||||||
return "terminated";
|
return "terminated";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ContractResourcePublicationStatusCodes code) {
|
public String toSystem(ContractResourcePublicationStatusCodes code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -625,7 +627,9 @@ public class Contract extends DomainResource {
|
||||||
throw new FHIRException("Unknown ContractResourceStatusCodes code '"+codeString+"'");
|
throw new FHIRException("Unknown ContractResourceStatusCodes code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ContractResourceStatusCodes code) {
|
public String toCode(ContractResourceStatusCodes code) {
|
||||||
if (code == ContractResourceStatusCodes.AMENDED)
|
if (code == ContractResourceStatusCodes.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ContractResourceStatusCodes.AMENDED)
|
||||||
return "amended";
|
return "amended";
|
||||||
if (code == ContractResourceStatusCodes.APPENDED)
|
if (code == ContractResourceStatusCodes.APPENDED)
|
||||||
return "appended";
|
return "appended";
|
||||||
|
@ -656,7 +660,7 @@ public class Contract extends DomainResource {
|
||||||
if (code == ContractResourceStatusCodes.TERMINATED)
|
if (code == ContractResourceStatusCodes.TERMINATED)
|
||||||
return "terminated";
|
return "terminated";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ContractResourceStatusCodes code) {
|
public String toSystem(ContractResourceStatusCodes code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -164,7 +164,9 @@ public class Contributor extends DataType implements ICompositeType {
|
||||||
throw new FHIRException("Unknown ContributorType code '"+codeString+"'");
|
throw new FHIRException("Unknown ContributorType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ContributorType code) {
|
public String toCode(ContributorType code) {
|
||||||
if (code == ContributorType.AUTHOR)
|
if (code == ContributorType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ContributorType.AUTHOR)
|
||||||
return "author";
|
return "author";
|
||||||
if (code == ContributorType.EDITOR)
|
if (code == ContributorType.EDITOR)
|
||||||
return "editor";
|
return "editor";
|
||||||
|
@ -173,7 +175,7 @@ public class Contributor extends DataType implements ICompositeType {
|
||||||
if (code == ContributorType.ENDORSER)
|
if (code == ContributorType.ENDORSER)
|
||||||
return "endorser";
|
return "endorser";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ContributorType code) {
|
public String toSystem(ContributorType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -152,14 +152,16 @@ public class Coverage extends DomainResource {
|
||||||
throw new FHIRException("Unknown Kind code '"+codeString+"'");
|
throw new FHIRException("Unknown Kind code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(Kind code) {
|
public String toCode(Kind code) {
|
||||||
if (code == Kind.INSURANCE)
|
if (code == Kind.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == Kind.INSURANCE)
|
||||||
return "insurance";
|
return "insurance";
|
||||||
if (code == Kind.SELFPAY)
|
if (code == Kind.SELFPAY)
|
||||||
return "self-pay";
|
return "self-pay";
|
||||||
if (code == Kind.OTHER)
|
if (code == Kind.OTHER)
|
||||||
return "other";
|
return "other";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(Kind code) {
|
public String toSystem(Kind code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -166,7 +166,9 @@ public class CoverageEligibilityRequest extends DomainResource {
|
||||||
throw new FHIRException("Unknown EligibilityRequestPurpose code '"+codeString+"'");
|
throw new FHIRException("Unknown EligibilityRequestPurpose code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(EligibilityRequestPurpose code) {
|
public String toCode(EligibilityRequestPurpose code) {
|
||||||
if (code == EligibilityRequestPurpose.AUTHREQUIREMENTS)
|
if (code == EligibilityRequestPurpose.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == EligibilityRequestPurpose.AUTHREQUIREMENTS)
|
||||||
return "auth-requirements";
|
return "auth-requirements";
|
||||||
if (code == EligibilityRequestPurpose.BENEFITS)
|
if (code == EligibilityRequestPurpose.BENEFITS)
|
||||||
return "benefits";
|
return "benefits";
|
||||||
|
@ -175,7 +177,7 @@ public class CoverageEligibilityRequest extends DomainResource {
|
||||||
if (code == EligibilityRequestPurpose.VALIDATION)
|
if (code == EligibilityRequestPurpose.VALIDATION)
|
||||||
return "validation";
|
return "validation";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(EligibilityRequestPurpose code) {
|
public String toSystem(EligibilityRequestPurpose code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -166,7 +166,9 @@ public class CoverageEligibilityResponse extends DomainResource {
|
||||||
throw new FHIRException("Unknown EligibilityOutcome code '"+codeString+"'");
|
throw new FHIRException("Unknown EligibilityOutcome code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(EligibilityOutcome code) {
|
public String toCode(EligibilityOutcome code) {
|
||||||
if (code == EligibilityOutcome.QUEUED)
|
if (code == EligibilityOutcome.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == EligibilityOutcome.QUEUED)
|
||||||
return "queued";
|
return "queued";
|
||||||
if (code == EligibilityOutcome.COMPLETE)
|
if (code == EligibilityOutcome.COMPLETE)
|
||||||
return "complete";
|
return "complete";
|
||||||
|
@ -175,7 +177,7 @@ public class CoverageEligibilityResponse extends DomainResource {
|
||||||
if (code == EligibilityOutcome.PARTIAL)
|
if (code == EligibilityOutcome.PARTIAL)
|
||||||
return "partial";
|
return "partial";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(EligibilityOutcome code) {
|
public String toSystem(EligibilityOutcome code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -294,7 +296,9 @@ public class CoverageEligibilityResponse extends DomainResource {
|
||||||
throw new FHIRException("Unknown EligibilityResponsePurpose code '"+codeString+"'");
|
throw new FHIRException("Unknown EligibilityResponsePurpose code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(EligibilityResponsePurpose code) {
|
public String toCode(EligibilityResponsePurpose code) {
|
||||||
if (code == EligibilityResponsePurpose.AUTHREQUIREMENTS)
|
if (code == EligibilityResponsePurpose.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == EligibilityResponsePurpose.AUTHREQUIREMENTS)
|
||||||
return "auth-requirements";
|
return "auth-requirements";
|
||||||
if (code == EligibilityResponsePurpose.BENEFITS)
|
if (code == EligibilityResponsePurpose.BENEFITS)
|
||||||
return "benefits";
|
return "benefits";
|
||||||
|
@ -303,7 +307,7 @@ public class CoverageEligibilityResponse extends DomainResource {
|
||||||
if (code == EligibilityResponsePurpose.VALIDATION)
|
if (code == EligibilityResponsePurpose.VALIDATION)
|
||||||
return "validation";
|
return "validation";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(EligibilityResponsePurpose code) {
|
public String toSystem(EligibilityResponsePurpose code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -136,12 +136,14 @@ public class DataRequirement extends DataType implements ICompositeType {
|
||||||
throw new FHIRException("Unknown SortDirection code '"+codeString+"'");
|
throw new FHIRException("Unknown SortDirection code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(SortDirection code) {
|
public String toCode(SortDirection code) {
|
||||||
if (code == SortDirection.ASCENDING)
|
if (code == SortDirection.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == SortDirection.ASCENDING)
|
||||||
return "ascending";
|
return "ascending";
|
||||||
if (code == SortDirection.DESCENDING)
|
if (code == SortDirection.DESCENDING)
|
||||||
return "descending";
|
return "descending";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(SortDirection code) {
|
public String toSystem(SortDirection code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -302,7 +304,9 @@ public class DataRequirement extends DataType implements ICompositeType {
|
||||||
throw new FHIRException("Unknown ValueFilterComparator code '"+codeString+"'");
|
throw new FHIRException("Unknown ValueFilterComparator code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ValueFilterComparator code) {
|
public String toCode(ValueFilterComparator code) {
|
||||||
if (code == ValueFilterComparator.EQ)
|
if (code == ValueFilterComparator.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ValueFilterComparator.EQ)
|
||||||
return "eq";
|
return "eq";
|
||||||
if (code == ValueFilterComparator.GT)
|
if (code == ValueFilterComparator.GT)
|
||||||
return "gt";
|
return "gt";
|
||||||
|
@ -317,7 +321,7 @@ public class DataRequirement extends DataType implements ICompositeType {
|
||||||
if (code == ValueFilterComparator.EB)
|
if (code == ValueFilterComparator.EB)
|
||||||
return "eb";
|
return "eb";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ValueFilterComparator code) {
|
public String toSystem(ValueFilterComparator code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -152,14 +152,16 @@ public class DetectedIssue extends DomainResource {
|
||||||
throw new FHIRException("Unknown DetectedIssueSeverity code '"+codeString+"'");
|
throw new FHIRException("Unknown DetectedIssueSeverity code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(DetectedIssueSeverity code) {
|
public String toCode(DetectedIssueSeverity code) {
|
||||||
if (code == DetectedIssueSeverity.HIGH)
|
if (code == DetectedIssueSeverity.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == DetectedIssueSeverity.HIGH)
|
||||||
return "high";
|
return "high";
|
||||||
if (code == DetectedIssueSeverity.MODERATE)
|
if (code == DetectedIssueSeverity.MODERATE)
|
||||||
return "moderate";
|
return "moderate";
|
||||||
if (code == DetectedIssueSeverity.LOW)
|
if (code == DetectedIssueSeverity.LOW)
|
||||||
return "low";
|
return "low";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(DetectedIssueSeverity code) {
|
public String toSystem(DetectedIssueSeverity code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -278,7 +280,9 @@ public class DetectedIssue extends DomainResource {
|
||||||
throw new FHIRException("Unknown DetectedIssueStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown DetectedIssueStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(DetectedIssueStatus code) {
|
public String toCode(DetectedIssueStatus code) {
|
||||||
if (code == DetectedIssueStatus.PRELIMINARY)
|
if (code == DetectedIssueStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == DetectedIssueStatus.PRELIMINARY)
|
||||||
return "preliminary";
|
return "preliminary";
|
||||||
if (code == DetectedIssueStatus.FINAL)
|
if (code == DetectedIssueStatus.FINAL)
|
||||||
return "final";
|
return "final";
|
||||||
|
@ -287,7 +291,7 @@ public class DetectedIssue extends DomainResource {
|
||||||
if (code == DetectedIssueStatus.MITIGATED)
|
if (code == DetectedIssueStatus.MITIGATED)
|
||||||
return "mitigated";
|
return "mitigated";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(DetectedIssueStatus code) {
|
public String toSystem(DetectedIssueStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -152,14 +152,16 @@ public class Device extends DomainResource {
|
||||||
throw new FHIRException("Unknown FHIRDeviceStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown FHIRDeviceStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(FHIRDeviceStatus code) {
|
public String toCode(FHIRDeviceStatus code) {
|
||||||
if (code == FHIRDeviceStatus.ACTIVE)
|
if (code == FHIRDeviceStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == FHIRDeviceStatus.ACTIVE)
|
||||||
return "active";
|
return "active";
|
||||||
if (code == FHIRDeviceStatus.INACTIVE)
|
if (code == FHIRDeviceStatus.INACTIVE)
|
||||||
return "inactive";
|
return "inactive";
|
||||||
if (code == FHIRDeviceStatus.ENTEREDINERROR)
|
if (code == FHIRDeviceStatus.ENTEREDINERROR)
|
||||||
return "entered-in-error";
|
return "entered-in-error";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(FHIRDeviceStatus code) {
|
public String toSystem(FHIRDeviceStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -320,7 +322,9 @@ public class Device extends DomainResource {
|
||||||
throw new FHIRException("Unknown UDIEntryType code '"+codeString+"'");
|
throw new FHIRException("Unknown UDIEntryType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(UDIEntryType code) {
|
public String toCode(UDIEntryType code) {
|
||||||
if (code == UDIEntryType.BARCODE)
|
if (code == UDIEntryType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == UDIEntryType.BARCODE)
|
||||||
return "barcode";
|
return "barcode";
|
||||||
if (code == UDIEntryType.RFID)
|
if (code == UDIEntryType.RFID)
|
||||||
return "rfid";
|
return "rfid";
|
||||||
|
@ -335,7 +339,7 @@ public class Device extends DomainResource {
|
||||||
if (code == UDIEntryType.UNKNOWN)
|
if (code == UDIEntryType.UNKNOWN)
|
||||||
return "unknown";
|
return "unknown";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(UDIEntryType code) {
|
public String toSystem(UDIEntryType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -152,14 +152,16 @@ public class DeviceDefinition extends DomainResource {
|
||||||
throw new FHIRException("Unknown DeviceCorrectiveActionScope code '"+codeString+"'");
|
throw new FHIRException("Unknown DeviceCorrectiveActionScope code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(DeviceCorrectiveActionScope code) {
|
public String toCode(DeviceCorrectiveActionScope code) {
|
||||||
if (code == DeviceCorrectiveActionScope.MODEL)
|
if (code == DeviceCorrectiveActionScope.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == DeviceCorrectiveActionScope.MODEL)
|
||||||
return "model";
|
return "model";
|
||||||
if (code == DeviceCorrectiveActionScope.LOTNUMBERS)
|
if (code == DeviceCorrectiveActionScope.LOTNUMBERS)
|
||||||
return "lot-numbers";
|
return "lot-numbers";
|
||||||
if (code == DeviceCorrectiveActionScope.SERIALNUMBERS)
|
if (code == DeviceCorrectiveActionScope.SERIALNUMBERS)
|
||||||
return "serial-numbers";
|
return "serial-numbers";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(DeviceCorrectiveActionScope code) {
|
public String toSystem(DeviceCorrectiveActionScope code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -264,14 +266,16 @@ public class DeviceDefinition extends DomainResource {
|
||||||
throw new FHIRException("Unknown DeviceDefinitionRegulatoryIdentifierType code '"+codeString+"'");
|
throw new FHIRException("Unknown DeviceDefinitionRegulatoryIdentifierType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(DeviceDefinitionRegulatoryIdentifierType code) {
|
public String toCode(DeviceDefinitionRegulatoryIdentifierType code) {
|
||||||
if (code == DeviceDefinitionRegulatoryIdentifierType.BASIC)
|
if (code == DeviceDefinitionRegulatoryIdentifierType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == DeviceDefinitionRegulatoryIdentifierType.BASIC)
|
||||||
return "basic";
|
return "basic";
|
||||||
if (code == DeviceDefinitionRegulatoryIdentifierType.MASTER)
|
if (code == DeviceDefinitionRegulatoryIdentifierType.MASTER)
|
||||||
return "master";
|
return "master";
|
||||||
if (code == DeviceDefinitionRegulatoryIdentifierType.LICENSE)
|
if (code == DeviceDefinitionRegulatoryIdentifierType.LICENSE)
|
||||||
return "license";
|
return "license";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(DeviceDefinitionRegulatoryIdentifierType code) {
|
public String toSystem(DeviceDefinitionRegulatoryIdentifierType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -418,7 +422,9 @@ public class DeviceDefinition extends DomainResource {
|
||||||
throw new FHIRException("Unknown DeviceProductionIdentifierInUDI code '"+codeString+"'");
|
throw new FHIRException("Unknown DeviceProductionIdentifierInUDI code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(DeviceProductionIdentifierInUDI code) {
|
public String toCode(DeviceProductionIdentifierInUDI code) {
|
||||||
if (code == DeviceProductionIdentifierInUDI.LOTNUMBER)
|
if (code == DeviceProductionIdentifierInUDI.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == DeviceProductionIdentifierInUDI.LOTNUMBER)
|
||||||
return "lot-number";
|
return "lot-number";
|
||||||
if (code == DeviceProductionIdentifierInUDI.MANUFACTUREDDATE)
|
if (code == DeviceProductionIdentifierInUDI.MANUFACTUREDDATE)
|
||||||
return "manufactured-date";
|
return "manufactured-date";
|
||||||
|
@ -431,7 +437,7 @@ public class DeviceDefinition extends DomainResource {
|
||||||
if (code == DeviceProductionIdentifierInUDI.SOFTWAREVERSION)
|
if (code == DeviceProductionIdentifierInUDI.SOFTWAREVERSION)
|
||||||
return "software-version";
|
return "software-version";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(DeviceProductionIdentifierInUDI code) {
|
public String toSystem(DeviceProductionIdentifierInUDI code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -236,7 +236,9 @@ public class DeviceDispense extends DomainResource {
|
||||||
throw new FHIRException("Unknown DeviceDispenseStatusCodes code '"+codeString+"'");
|
throw new FHIRException("Unknown DeviceDispenseStatusCodes code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(DeviceDispenseStatusCodes code) {
|
public String toCode(DeviceDispenseStatusCodes code) {
|
||||||
if (code == DeviceDispenseStatusCodes.PREPARATION)
|
if (code == DeviceDispenseStatusCodes.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == DeviceDispenseStatusCodes.PREPARATION)
|
||||||
return "preparation";
|
return "preparation";
|
||||||
if (code == DeviceDispenseStatusCodes.INPROGRESS)
|
if (code == DeviceDispenseStatusCodes.INPROGRESS)
|
||||||
return "in-progress";
|
return "in-progress";
|
||||||
|
@ -255,7 +257,7 @@ public class DeviceDispense extends DomainResource {
|
||||||
if (code == DeviceDispenseStatusCodes.UNKNOWN)
|
if (code == DeviceDispenseStatusCodes.UNKNOWN)
|
||||||
return "unknown";
|
return "unknown";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(DeviceDispenseStatusCodes code) {
|
public String toSystem(DeviceDispenseStatusCodes code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -166,7 +166,9 @@ public class DeviceMetric extends DomainResource {
|
||||||
throw new FHIRException("Unknown DeviceMetricCalibrationState code '"+codeString+"'");
|
throw new FHIRException("Unknown DeviceMetricCalibrationState code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(DeviceMetricCalibrationState code) {
|
public String toCode(DeviceMetricCalibrationState code) {
|
||||||
if (code == DeviceMetricCalibrationState.NOTCALIBRATED)
|
if (code == DeviceMetricCalibrationState.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == DeviceMetricCalibrationState.NOTCALIBRATED)
|
||||||
return "not-calibrated";
|
return "not-calibrated";
|
||||||
if (code == DeviceMetricCalibrationState.CALIBRATIONREQUIRED)
|
if (code == DeviceMetricCalibrationState.CALIBRATIONREQUIRED)
|
||||||
return "calibration-required";
|
return "calibration-required";
|
||||||
|
@ -175,7 +177,7 @@ public class DeviceMetric extends DomainResource {
|
||||||
if (code == DeviceMetricCalibrationState.UNSPECIFIED)
|
if (code == DeviceMetricCalibrationState.UNSPECIFIED)
|
||||||
return "unspecified";
|
return "unspecified";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(DeviceMetricCalibrationState code) {
|
public String toSystem(DeviceMetricCalibrationState code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -294,7 +296,9 @@ public class DeviceMetric extends DomainResource {
|
||||||
throw new FHIRException("Unknown DeviceMetricCalibrationType code '"+codeString+"'");
|
throw new FHIRException("Unknown DeviceMetricCalibrationType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(DeviceMetricCalibrationType code) {
|
public String toCode(DeviceMetricCalibrationType code) {
|
||||||
if (code == DeviceMetricCalibrationType.UNSPECIFIED)
|
if (code == DeviceMetricCalibrationType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == DeviceMetricCalibrationType.UNSPECIFIED)
|
||||||
return "unspecified";
|
return "unspecified";
|
||||||
if (code == DeviceMetricCalibrationType.OFFSET)
|
if (code == DeviceMetricCalibrationType.OFFSET)
|
||||||
return "offset";
|
return "offset";
|
||||||
|
@ -303,7 +307,7 @@ public class DeviceMetric extends DomainResource {
|
||||||
if (code == DeviceMetricCalibrationType.TWOPOINT)
|
if (code == DeviceMetricCalibrationType.TWOPOINT)
|
||||||
return "two-point";
|
return "two-point";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(DeviceMetricCalibrationType code) {
|
public String toSystem(DeviceMetricCalibrationType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -422,7 +426,9 @@ public class DeviceMetric extends DomainResource {
|
||||||
throw new FHIRException("Unknown DeviceMetricCategory code '"+codeString+"'");
|
throw new FHIRException("Unknown DeviceMetricCategory code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(DeviceMetricCategory code) {
|
public String toCode(DeviceMetricCategory code) {
|
||||||
if (code == DeviceMetricCategory.MEASUREMENT)
|
if (code == DeviceMetricCategory.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == DeviceMetricCategory.MEASUREMENT)
|
||||||
return "measurement";
|
return "measurement";
|
||||||
if (code == DeviceMetricCategory.SETTING)
|
if (code == DeviceMetricCategory.SETTING)
|
||||||
return "setting";
|
return "setting";
|
||||||
|
@ -431,7 +437,7 @@ public class DeviceMetric extends DomainResource {
|
||||||
if (code == DeviceMetricCategory.UNSPECIFIED)
|
if (code == DeviceMetricCategory.UNSPECIFIED)
|
||||||
return "unspecified";
|
return "unspecified";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(DeviceMetricCategory code) {
|
public String toSystem(DeviceMetricCategory code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -550,7 +556,9 @@ public class DeviceMetric extends DomainResource {
|
||||||
throw new FHIRException("Unknown DeviceMetricOperationalStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown DeviceMetricOperationalStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(DeviceMetricOperationalStatus code) {
|
public String toCode(DeviceMetricOperationalStatus code) {
|
||||||
if (code == DeviceMetricOperationalStatus.ON)
|
if (code == DeviceMetricOperationalStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == DeviceMetricOperationalStatus.ON)
|
||||||
return "on";
|
return "on";
|
||||||
if (code == DeviceMetricOperationalStatus.OFF)
|
if (code == DeviceMetricOperationalStatus.OFF)
|
||||||
return "off";
|
return "off";
|
||||||
|
@ -559,7 +567,7 @@ public class DeviceMetric extends DomainResource {
|
||||||
if (code == DeviceMetricOperationalStatus.ENTEREDINERROR)
|
if (code == DeviceMetricOperationalStatus.ENTEREDINERROR)
|
||||||
return "entered-in-error";
|
return "entered-in-error";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(DeviceMetricOperationalStatus code) {
|
public String toSystem(DeviceMetricOperationalStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -208,7 +208,9 @@ public class DeviceUsage extends DomainResource {
|
||||||
throw new FHIRException("Unknown DeviceUsageStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown DeviceUsageStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(DeviceUsageStatus code) {
|
public String toCode(DeviceUsageStatus code) {
|
||||||
if (code == DeviceUsageStatus.ACTIVE)
|
if (code == DeviceUsageStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == DeviceUsageStatus.ACTIVE)
|
||||||
return "active";
|
return "active";
|
||||||
if (code == DeviceUsageStatus.COMPLETED)
|
if (code == DeviceUsageStatus.COMPLETED)
|
||||||
return "completed";
|
return "completed";
|
||||||
|
@ -223,7 +225,7 @@ public class DeviceUsage extends DomainResource {
|
||||||
if (code == DeviceUsageStatus.ONHOLD)
|
if (code == DeviceUsageStatus.ONHOLD)
|
||||||
return "on-hold";
|
return "on-hold";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(DeviceUsageStatus code) {
|
public String toSystem(DeviceUsageStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -264,7 +264,9 @@ public class DiagnosticReport extends DomainResource {
|
||||||
throw new FHIRException("Unknown DiagnosticReportStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown DiagnosticReportStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(DiagnosticReportStatus code) {
|
public String toCode(DiagnosticReportStatus code) {
|
||||||
if (code == DiagnosticReportStatus.REGISTERED)
|
if (code == DiagnosticReportStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == DiagnosticReportStatus.REGISTERED)
|
||||||
return "registered";
|
return "registered";
|
||||||
if (code == DiagnosticReportStatus.PARTIAL)
|
if (code == DiagnosticReportStatus.PARTIAL)
|
||||||
return "partial";
|
return "partial";
|
||||||
|
@ -287,7 +289,7 @@ public class DiagnosticReport extends DomainResource {
|
||||||
if (code == DiagnosticReportStatus.UNKNOWN)
|
if (code == DiagnosticReportStatus.UNKNOWN)
|
||||||
return "unknown";
|
return "unknown";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(DiagnosticReportStatus code) {
|
public String toSystem(DiagnosticReportStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -152,14 +152,16 @@ public class DocumentReference extends DomainResource {
|
||||||
throw new FHIRException("Unknown DocumentReferenceStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown DocumentReferenceStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(DocumentReferenceStatus code) {
|
public String toCode(DocumentReferenceStatus code) {
|
||||||
if (code == DocumentReferenceStatus.CURRENT)
|
if (code == DocumentReferenceStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == DocumentReferenceStatus.CURRENT)
|
||||||
return "current";
|
return "current";
|
||||||
if (code == DocumentReferenceStatus.SUPERSEDED)
|
if (code == DocumentReferenceStatus.SUPERSEDED)
|
||||||
return "superseded";
|
return "superseded";
|
||||||
if (code == DocumentReferenceStatus.ENTEREDINERROR)
|
if (code == DocumentReferenceStatus.ENTEREDINERROR)
|
||||||
return "entered-in-error";
|
return "entered-in-error";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(DocumentReferenceStatus code) {
|
public String toSystem(DocumentReferenceStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -254,7 +254,9 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
|
||||||
throw new FHIRException("Unknown AdditionalBindingPurposeVS code '"+codeString+"'");
|
throw new FHIRException("Unknown AdditionalBindingPurposeVS code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(AdditionalBindingPurposeVS code) {
|
public String toCode(AdditionalBindingPurposeVS code) {
|
||||||
if (code == AdditionalBindingPurposeVS.MAXIMUM)
|
if (code == AdditionalBindingPurposeVS.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == AdditionalBindingPurposeVS.MAXIMUM)
|
||||||
return "maximum";
|
return "maximum";
|
||||||
if (code == AdditionalBindingPurposeVS.MINIMUM)
|
if (code == AdditionalBindingPurposeVS.MINIMUM)
|
||||||
return "minimum";
|
return "minimum";
|
||||||
|
@ -275,7 +277,7 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
|
||||||
if (code == AdditionalBindingPurposeVS.COMPONENT)
|
if (code == AdditionalBindingPurposeVS.COMPONENT)
|
||||||
return "component";
|
return "component";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(AdditionalBindingPurposeVS code) {
|
public String toSystem(AdditionalBindingPurposeVS code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -380,14 +382,16 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
|
||||||
throw new FHIRException("Unknown AggregationMode code '"+codeString+"'");
|
throw new FHIRException("Unknown AggregationMode code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(AggregationMode code) {
|
public String toCode(AggregationMode code) {
|
||||||
if (code == AggregationMode.CONTAINED)
|
if (code == AggregationMode.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == AggregationMode.CONTAINED)
|
||||||
return "contained";
|
return "contained";
|
||||||
if (code == AggregationMode.REFERENCED)
|
if (code == AggregationMode.REFERENCED)
|
||||||
return "referenced";
|
return "referenced";
|
||||||
if (code == AggregationMode.BUNDLED)
|
if (code == AggregationMode.BUNDLED)
|
||||||
return "bundled";
|
return "bundled";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(AggregationMode code) {
|
public String toSystem(AggregationMode code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -478,12 +482,14 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
|
||||||
throw new FHIRException("Unknown ConstraintSeverity code '"+codeString+"'");
|
throw new FHIRException("Unknown ConstraintSeverity code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ConstraintSeverity code) {
|
public String toCode(ConstraintSeverity code) {
|
||||||
if (code == ConstraintSeverity.ERROR)
|
if (code == ConstraintSeverity.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ConstraintSeverity.ERROR)
|
||||||
return "error";
|
return "error";
|
||||||
if (code == ConstraintSeverity.WARNING)
|
if (code == ConstraintSeverity.WARNING)
|
||||||
return "warning";
|
return "warning";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ConstraintSeverity code) {
|
public String toSystem(ConstraintSeverity code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -630,7 +636,9 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
|
||||||
throw new FHIRException("Unknown DiscriminatorType code '"+codeString+"'");
|
throw new FHIRException("Unknown DiscriminatorType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(DiscriminatorType code) {
|
public String toCode(DiscriminatorType code) {
|
||||||
if (code == DiscriminatorType.VALUE)
|
if (code == DiscriminatorType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == DiscriminatorType.VALUE)
|
||||||
return "value";
|
return "value";
|
||||||
if (code == DiscriminatorType.EXISTS)
|
if (code == DiscriminatorType.EXISTS)
|
||||||
return "exists";
|
return "exists";
|
||||||
|
@ -643,7 +651,7 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
|
||||||
if (code == DiscriminatorType.POSITION)
|
if (code == DiscriminatorType.POSITION)
|
||||||
return "position";
|
return "position";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(DiscriminatorType code) {
|
public String toSystem(DiscriminatorType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -776,7 +784,9 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
|
||||||
throw new FHIRException("Unknown PropertyRepresentation code '"+codeString+"'");
|
throw new FHIRException("Unknown PropertyRepresentation code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(PropertyRepresentation code) {
|
public String toCode(PropertyRepresentation code) {
|
||||||
if (code == PropertyRepresentation.XMLATTR)
|
if (code == PropertyRepresentation.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == PropertyRepresentation.XMLATTR)
|
||||||
return "xmlAttr";
|
return "xmlAttr";
|
||||||
if (code == PropertyRepresentation.XMLTEXT)
|
if (code == PropertyRepresentation.XMLTEXT)
|
||||||
return "xmlText";
|
return "xmlText";
|
||||||
|
@ -787,7 +797,7 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
|
||||||
if (code == PropertyRepresentation.XHTML)
|
if (code == PropertyRepresentation.XHTML)
|
||||||
return "xhtml";
|
return "xhtml";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(PropertyRepresentation code) {
|
public String toSystem(PropertyRepresentation code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -892,14 +902,16 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
|
||||||
throw new FHIRException("Unknown ReferenceVersionRules code '"+codeString+"'");
|
throw new FHIRException("Unknown ReferenceVersionRules code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ReferenceVersionRules code) {
|
public String toCode(ReferenceVersionRules code) {
|
||||||
if (code == ReferenceVersionRules.EITHER)
|
if (code == ReferenceVersionRules.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ReferenceVersionRules.EITHER)
|
||||||
return "either";
|
return "either";
|
||||||
if (code == ReferenceVersionRules.INDEPENDENT)
|
if (code == ReferenceVersionRules.INDEPENDENT)
|
||||||
return "independent";
|
return "independent";
|
||||||
if (code == ReferenceVersionRules.SPECIFIC)
|
if (code == ReferenceVersionRules.SPECIFIC)
|
||||||
return "specific";
|
return "specific";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ReferenceVersionRules code) {
|
public String toSystem(ReferenceVersionRules code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -1004,14 +1016,16 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
|
||||||
throw new FHIRException("Unknown SlicingRules code '"+codeString+"'");
|
throw new FHIRException("Unknown SlicingRules code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(SlicingRules code) {
|
public String toCode(SlicingRules code) {
|
||||||
if (code == SlicingRules.CLOSED)
|
if (code == SlicingRules.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == SlicingRules.CLOSED)
|
||||||
return "closed";
|
return "closed";
|
||||||
if (code == SlicingRules.OPEN)
|
if (code == SlicingRules.OPEN)
|
||||||
return "open";
|
return "open";
|
||||||
if (code == SlicingRules.OPENATEND)
|
if (code == SlicingRules.OPENATEND)
|
||||||
return "openAtEnd";
|
return "openAtEnd";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(SlicingRules code) {
|
public String toSystem(SlicingRules code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -180,7 +180,9 @@ public class Endpoint extends DomainResource {
|
||||||
throw new FHIRException("Unknown EndpointStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown EndpointStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(EndpointStatus code) {
|
public String toCode(EndpointStatus code) {
|
||||||
if (code == EndpointStatus.ACTIVE)
|
if (code == EndpointStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == EndpointStatus.ACTIVE)
|
||||||
return "active";
|
return "active";
|
||||||
if (code == EndpointStatus.SUSPENDED)
|
if (code == EndpointStatus.SUSPENDED)
|
||||||
return "suspended";
|
return "suspended";
|
||||||
|
@ -191,7 +193,7 @@ public class Endpoint extends DomainResource {
|
||||||
if (code == EndpointStatus.ENTEREDINERROR)
|
if (code == EndpointStatus.ENTEREDINERROR)
|
||||||
return "entered-in-error";
|
return "entered-in-error";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(EndpointStatus code) {
|
public String toSystem(EndpointStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -166,7 +166,9 @@ public class EnrollmentResponse extends DomainResource {
|
||||||
throw new FHIRException("Unknown EnrollmentOutcome code '"+codeString+"'");
|
throw new FHIRException("Unknown EnrollmentOutcome code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(EnrollmentOutcome code) {
|
public String toCode(EnrollmentOutcome code) {
|
||||||
if (code == EnrollmentOutcome.QUEUED)
|
if (code == EnrollmentOutcome.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == EnrollmentOutcome.QUEUED)
|
||||||
return "queued";
|
return "queued";
|
||||||
if (code == EnrollmentOutcome.COMPLETE)
|
if (code == EnrollmentOutcome.COMPLETE)
|
||||||
return "complete";
|
return "complete";
|
||||||
|
@ -175,7 +177,7 @@ public class EnrollmentResponse extends DomainResource {
|
||||||
if (code == EnrollmentOutcome.PARTIAL)
|
if (code == EnrollmentOutcome.PARTIAL)
|
||||||
return "partial";
|
return "partial";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(EnrollmentOutcome code) {
|
public String toSystem(EnrollmentOutcome code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -177,12 +177,14 @@ public class Enumerations {
|
||||||
throw new FHIRException("Unknown ActionCardinalityBehavior code '"+codeString+"'");
|
throw new FHIRException("Unknown ActionCardinalityBehavior code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ActionCardinalityBehavior code) {
|
public String toCode(ActionCardinalityBehavior code) {
|
||||||
if (code == ActionCardinalityBehavior.SINGLE)
|
if (code == ActionCardinalityBehavior.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ActionCardinalityBehavior.SINGLE)
|
||||||
return "single";
|
return "single";
|
||||||
if (code == ActionCardinalityBehavior.MULTIPLE)
|
if (code == ActionCardinalityBehavior.MULTIPLE)
|
||||||
return "multiple";
|
return "multiple";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ActionCardinalityBehavior code) {
|
public String toSystem(ActionCardinalityBehavior code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -290,14 +292,16 @@ public class Enumerations {
|
||||||
throw new FHIRException("Unknown ActionConditionKind code '"+codeString+"'");
|
throw new FHIRException("Unknown ActionConditionKind code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ActionConditionKind code) {
|
public String toCode(ActionConditionKind code) {
|
||||||
if (code == ActionConditionKind.APPLICABILITY)
|
if (code == ActionConditionKind.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ActionConditionKind.APPLICABILITY)
|
||||||
return "applicability";
|
return "applicability";
|
||||||
if (code == ActionConditionKind.START)
|
if (code == ActionConditionKind.START)
|
||||||
return "start";
|
return "start";
|
||||||
if (code == ActionConditionKind.STOP)
|
if (code == ActionConditionKind.STOP)
|
||||||
return "stop";
|
return "stop";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ActionConditionKind code) {
|
public String toSystem(ActionConditionKind code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -405,14 +409,16 @@ public class Enumerations {
|
||||||
throw new FHIRException("Unknown ActionGroupingBehavior code '"+codeString+"'");
|
throw new FHIRException("Unknown ActionGroupingBehavior code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ActionGroupingBehavior code) {
|
public String toCode(ActionGroupingBehavior code) {
|
||||||
if (code == ActionGroupingBehavior.VISUALGROUP)
|
if (code == ActionGroupingBehavior.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ActionGroupingBehavior.VISUALGROUP)
|
||||||
return "visual-group";
|
return "visual-group";
|
||||||
if (code == ActionGroupingBehavior.LOGICALGROUP)
|
if (code == ActionGroupingBehavior.LOGICALGROUP)
|
||||||
return "logical-group";
|
return "logical-group";
|
||||||
if (code == ActionGroupingBehavior.SENTENCEGROUP)
|
if (code == ActionGroupingBehavior.SENTENCEGROUP)
|
||||||
return "sentence-group";
|
return "sentence-group";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ActionGroupingBehavior code) {
|
public String toSystem(ActionGroupingBehavior code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -618,7 +624,9 @@ public class Enumerations {
|
||||||
throw new FHIRException("Unknown ActionParticipantType code '"+codeString+"'");
|
throw new FHIRException("Unknown ActionParticipantType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ActionParticipantType code) {
|
public String toCode(ActionParticipantType code) {
|
||||||
if (code == ActionParticipantType.CARETEAM)
|
if (code == ActionParticipantType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ActionParticipantType.CARETEAM)
|
||||||
return "careteam";
|
return "careteam";
|
||||||
if (code == ActionParticipantType.DEVICE)
|
if (code == ActionParticipantType.DEVICE)
|
||||||
return "device";
|
return "device";
|
||||||
|
@ -639,7 +647,7 @@ public class Enumerations {
|
||||||
if (code == ActionParticipantType.RELATEDPERSON)
|
if (code == ActionParticipantType.RELATEDPERSON)
|
||||||
return "relatedperson";
|
return "relatedperson";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ActionParticipantType code) {
|
public String toSystem(ActionParticipantType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -733,12 +741,14 @@ public class Enumerations {
|
||||||
throw new FHIRException("Unknown ActionPrecheckBehavior code '"+codeString+"'");
|
throw new FHIRException("Unknown ActionPrecheckBehavior code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ActionPrecheckBehavior code) {
|
public String toCode(ActionPrecheckBehavior code) {
|
||||||
if (code == ActionPrecheckBehavior.YES)
|
if (code == ActionPrecheckBehavior.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ActionPrecheckBehavior.YES)
|
||||||
return "yes";
|
return "yes";
|
||||||
if (code == ActionPrecheckBehavior.NO)
|
if (code == ActionPrecheckBehavior.NO)
|
||||||
return "no";
|
return "no";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ActionPrecheckBehavior code) {
|
public String toSystem(ActionPrecheckBehavior code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -930,7 +940,9 @@ public class Enumerations {
|
||||||
throw new FHIRException("Unknown ActionRelationshipType code '"+codeString+"'");
|
throw new FHIRException("Unknown ActionRelationshipType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ActionRelationshipType code) {
|
public String toCode(ActionRelationshipType code) {
|
||||||
if (code == ActionRelationshipType.BEFORE)
|
if (code == ActionRelationshipType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ActionRelationshipType.BEFORE)
|
||||||
return "before";
|
return "before";
|
||||||
if (code == ActionRelationshipType.BEFORESTART)
|
if (code == ActionRelationshipType.BEFORESTART)
|
||||||
return "before-start";
|
return "before-start";
|
||||||
|
@ -949,7 +961,7 @@ public class Enumerations {
|
||||||
if (code == ActionRelationshipType.AFTEREND)
|
if (code == ActionRelationshipType.AFTEREND)
|
||||||
return "after-end";
|
return "after-end";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ActionRelationshipType code) {
|
public String toSystem(ActionRelationshipType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -1057,14 +1069,16 @@ public class Enumerations {
|
||||||
throw new FHIRException("Unknown ActionRequiredBehavior code '"+codeString+"'");
|
throw new FHIRException("Unknown ActionRequiredBehavior code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ActionRequiredBehavior code) {
|
public String toCode(ActionRequiredBehavior code) {
|
||||||
if (code == ActionRequiredBehavior.MUST)
|
if (code == ActionRequiredBehavior.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ActionRequiredBehavior.MUST)
|
||||||
return "must";
|
return "must";
|
||||||
if (code == ActionRequiredBehavior.COULD)
|
if (code == ActionRequiredBehavior.COULD)
|
||||||
return "could";
|
return "could";
|
||||||
if (code == ActionRequiredBehavior.MUSTUNLESSDOCUMENTED)
|
if (code == ActionRequiredBehavior.MUSTUNLESSDOCUMENTED)
|
||||||
return "must-unless-documented";
|
return "must-unless-documented";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ActionRequiredBehavior code) {
|
public String toSystem(ActionRequiredBehavior code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -1214,7 +1228,9 @@ public class Enumerations {
|
||||||
throw new FHIRException("Unknown ActionSelectionBehavior code '"+codeString+"'");
|
throw new FHIRException("Unknown ActionSelectionBehavior code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ActionSelectionBehavior code) {
|
public String toCode(ActionSelectionBehavior code) {
|
||||||
if (code == ActionSelectionBehavior.ANY)
|
if (code == ActionSelectionBehavior.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ActionSelectionBehavior.ANY)
|
||||||
return "any";
|
return "any";
|
||||||
if (code == ActionSelectionBehavior.ALL)
|
if (code == ActionSelectionBehavior.ALL)
|
||||||
return "all";
|
return "all";
|
||||||
|
@ -1227,7 +1243,7 @@ public class Enumerations {
|
||||||
if (code == ActionSelectionBehavior.ONEORMORE)
|
if (code == ActionSelectionBehavior.ONEORMORE)
|
||||||
return "one-or-more";
|
return "one-or-more";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ActionSelectionBehavior code) {
|
public String toSystem(ActionSelectionBehavior code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -1349,7 +1365,9 @@ public class Enumerations {
|
||||||
throw new FHIRException("Unknown AdministrativeGender code '"+codeString+"'");
|
throw new FHIRException("Unknown AdministrativeGender code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(AdministrativeGender code) {
|
public String toCode(AdministrativeGender code) {
|
||||||
if (code == AdministrativeGender.MALE)
|
if (code == AdministrativeGender.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == AdministrativeGender.MALE)
|
||||||
return "male";
|
return "male";
|
||||||
if (code == AdministrativeGender.FEMALE)
|
if (code == AdministrativeGender.FEMALE)
|
||||||
return "female";
|
return "female";
|
||||||
|
@ -1358,7 +1376,7 @@ public class Enumerations {
|
||||||
if (code == AdministrativeGender.UNKNOWN)
|
if (code == AdministrativeGender.UNKNOWN)
|
||||||
return "unknown";
|
return "unknown";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(AdministrativeGender code) {
|
public String toSystem(AdministrativeGender code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -1424,8 +1442,10 @@ public class Enumerations {
|
||||||
throw new FHIRException("Unknown AllLanguages code '"+codeString+"'");
|
throw new FHIRException("Unknown AllLanguages code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(AllLanguages code) {
|
public String toCode(AllLanguages code) {
|
||||||
return "?";
|
if (code == AllLanguages.NULL)
|
||||||
}
|
return null;
|
||||||
|
return "?";
|
||||||
|
}
|
||||||
public String toSystem(AllLanguages code) {
|
public String toSystem(AllLanguages code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -1547,7 +1567,9 @@ public class Enumerations {
|
||||||
throw new FHIRException("Unknown BindingStrength code '"+codeString+"'");
|
throw new FHIRException("Unknown BindingStrength code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(BindingStrength code) {
|
public String toCode(BindingStrength code) {
|
||||||
if (code == BindingStrength.REQUIRED)
|
if (code == BindingStrength.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == BindingStrength.REQUIRED)
|
||||||
return "required";
|
return "required";
|
||||||
if (code == BindingStrength.EXTENSIBLE)
|
if (code == BindingStrength.EXTENSIBLE)
|
||||||
return "extensible";
|
return "extensible";
|
||||||
|
@ -1556,7 +1578,7 @@ public class Enumerations {
|
||||||
if (code == BindingStrength.EXAMPLE)
|
if (code == BindingStrength.EXAMPLE)
|
||||||
return "example";
|
return "example";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(BindingStrength code) {
|
public String toSystem(BindingStrength code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -1664,14 +1686,16 @@ public class Enumerations {
|
||||||
throw new FHIRException("Unknown CapabilityStatementKind code '"+codeString+"'");
|
throw new FHIRException("Unknown CapabilityStatementKind code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(CapabilityStatementKind code) {
|
public String toCode(CapabilityStatementKind code) {
|
||||||
if (code == CapabilityStatementKind.INSTANCE)
|
if (code == CapabilityStatementKind.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == CapabilityStatementKind.INSTANCE)
|
||||||
return "instance";
|
return "instance";
|
||||||
if (code == CapabilityStatementKind.CAPABILITY)
|
if (code == CapabilityStatementKind.CAPABILITY)
|
||||||
return "capability";
|
return "capability";
|
||||||
if (code == CapabilityStatementKind.REQUIREMENTS)
|
if (code == CapabilityStatementKind.REQUIREMENTS)
|
||||||
return "requirements";
|
return "requirements";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(CapabilityStatementKind code) {
|
public String toSystem(CapabilityStatementKind code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -1793,7 +1817,9 @@ public class Enumerations {
|
||||||
throw new FHIRException("Unknown ClaimProcessingCodes code '"+codeString+"'");
|
throw new FHIRException("Unknown ClaimProcessingCodes code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ClaimProcessingCodes code) {
|
public String toCode(ClaimProcessingCodes code) {
|
||||||
if (code == ClaimProcessingCodes.QUEUED)
|
if (code == ClaimProcessingCodes.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ClaimProcessingCodes.QUEUED)
|
||||||
return "queued";
|
return "queued";
|
||||||
if (code == ClaimProcessingCodes.COMPLETE)
|
if (code == ClaimProcessingCodes.COMPLETE)
|
||||||
return "complete";
|
return "complete";
|
||||||
|
@ -1802,7 +1828,7 @@ public class Enumerations {
|
||||||
if (code == ClaimProcessingCodes.PARTIAL)
|
if (code == ClaimProcessingCodes.PARTIAL)
|
||||||
return "partial";
|
return "partial";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ClaimProcessingCodes code) {
|
public String toSystem(ClaimProcessingCodes code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -1938,7 +1964,9 @@ public class Enumerations {
|
||||||
throw new FHIRException("Unknown CodeSystemContentMode code '"+codeString+"'");
|
throw new FHIRException("Unknown CodeSystemContentMode code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(CodeSystemContentMode code) {
|
public String toCode(CodeSystemContentMode code) {
|
||||||
if (code == CodeSystemContentMode.NOTPRESENT)
|
if (code == CodeSystemContentMode.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == CodeSystemContentMode.NOTPRESENT)
|
||||||
return "not-present";
|
return "not-present";
|
||||||
if (code == CodeSystemContentMode.EXAMPLE)
|
if (code == CodeSystemContentMode.EXAMPLE)
|
||||||
return "example";
|
return "example";
|
||||||
|
@ -1949,7 +1977,7 @@ public class Enumerations {
|
||||||
if (code == CodeSystemContentMode.SUPPLEMENT)
|
if (code == CodeSystemContentMode.SUPPLEMENT)
|
||||||
return "supplement";
|
return "supplement";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(CodeSystemContentMode code) {
|
public String toSystem(CodeSystemContentMode code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -3163,7 +3191,9 @@ public class Enumerations {
|
||||||
throw new FHIRException("Unknown CommonLanguages code '"+codeString+"'");
|
throw new FHIRException("Unknown CommonLanguages code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(CommonLanguages code) {
|
public String toCode(CommonLanguages code) {
|
||||||
if (code == CommonLanguages.AR)
|
if (code == CommonLanguages.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == CommonLanguages.AR)
|
||||||
return "ar";
|
return "ar";
|
||||||
if (code == CommonLanguages.BG)
|
if (code == CommonLanguages.BG)
|
||||||
return "bg";
|
return "bg";
|
||||||
|
@ -3328,7 +3358,7 @@ public class Enumerations {
|
||||||
if (code == CommonLanguages.ZHTW)
|
if (code == CommonLanguages.ZHTW)
|
||||||
return "zh-TW";
|
return "zh-TW";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(CommonLanguages code) {
|
public String toSystem(CommonLanguages code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -3478,7 +3508,9 @@ public class Enumerations {
|
||||||
throw new FHIRException("Unknown CompartmentType code '"+codeString+"'");
|
throw new FHIRException("Unknown CompartmentType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(CompartmentType code) {
|
public String toCode(CompartmentType code) {
|
||||||
if (code == CompartmentType.PATIENT)
|
if (code == CompartmentType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == CompartmentType.PATIENT)
|
||||||
return "Patient";
|
return "Patient";
|
||||||
if (code == CompartmentType.ENCOUNTER)
|
if (code == CompartmentType.ENCOUNTER)
|
||||||
return "Encounter";
|
return "Encounter";
|
||||||
|
@ -3491,7 +3523,7 @@ public class Enumerations {
|
||||||
if (code == CompartmentType.EPISODEOFCARE)
|
if (code == CompartmentType.EPISODEOFCARE)
|
||||||
return "EpisodeOfCare";
|
return "EpisodeOfCare";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(CompartmentType code) {
|
public String toSystem(CompartmentType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -3711,7 +3743,9 @@ public class Enumerations {
|
||||||
throw new FHIRException("Unknown CompositionStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown CompositionStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(CompositionStatus code) {
|
public String toCode(CompositionStatus code) {
|
||||||
if (code == CompositionStatus.REGISTERED)
|
if (code == CompositionStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == CompositionStatus.REGISTERED)
|
||||||
return "registered";
|
return "registered";
|
||||||
if (code == CompositionStatus.PARTIAL)
|
if (code == CompositionStatus.PARTIAL)
|
||||||
return "partial";
|
return "partial";
|
||||||
|
@ -3734,7 +3768,7 @@ public class Enumerations {
|
||||||
if (code == CompositionStatus.UNKNOWN)
|
if (code == CompositionStatus.UNKNOWN)
|
||||||
return "unknown";
|
return "unknown";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(CompositionStatus code) {
|
public String toSystem(CompositionStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -3881,7 +3915,9 @@ public class Enumerations {
|
||||||
throw new FHIRException("Unknown ConceptMapRelationship code '"+codeString+"'");
|
throw new FHIRException("Unknown ConceptMapRelationship code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ConceptMapRelationship code) {
|
public String toCode(ConceptMapRelationship code) {
|
||||||
if (code == ConceptMapRelationship.RELATEDTO)
|
if (code == ConceptMapRelationship.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ConceptMapRelationship.RELATEDTO)
|
||||||
return "related-to";
|
return "related-to";
|
||||||
if (code == ConceptMapRelationship.EQUIVALENT)
|
if (code == ConceptMapRelationship.EQUIVALENT)
|
||||||
return "equivalent";
|
return "equivalent";
|
||||||
|
@ -3892,7 +3928,7 @@ public class Enumerations {
|
||||||
if (code == ConceptMapRelationship.NOTRELATEDTO)
|
if (code == ConceptMapRelationship.NOTRELATEDTO)
|
||||||
return "not-related-to";
|
return "not-related-to";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ConceptMapRelationship code) {
|
public String toSystem(ConceptMapRelationship code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -4014,7 +4050,9 @@ public class Enumerations {
|
||||||
throw new FHIRException("Unknown ConsentDataMeaning code '"+codeString+"'");
|
throw new FHIRException("Unknown ConsentDataMeaning code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ConsentDataMeaning code) {
|
public String toCode(ConsentDataMeaning code) {
|
||||||
if (code == ConsentDataMeaning.INSTANCE)
|
if (code == ConsentDataMeaning.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ConsentDataMeaning.INSTANCE)
|
||||||
return "instance";
|
return "instance";
|
||||||
if (code == ConsentDataMeaning.RELATED)
|
if (code == ConsentDataMeaning.RELATED)
|
||||||
return "related";
|
return "related";
|
||||||
|
@ -4023,7 +4061,7 @@ public class Enumerations {
|
||||||
if (code == ConsentDataMeaning.AUTHOREDBY)
|
if (code == ConsentDataMeaning.AUTHOREDBY)
|
||||||
return "authoredby";
|
return "authoredby";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ConsentDataMeaning code) {
|
public String toSystem(ConsentDataMeaning code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -4117,12 +4155,14 @@ public class Enumerations {
|
||||||
throw new FHIRException("Unknown ConsentProvisionType code '"+codeString+"'");
|
throw new FHIRException("Unknown ConsentProvisionType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ConsentProvisionType code) {
|
public String toCode(ConsentProvisionType code) {
|
||||||
if (code == ConsentProvisionType.DENY)
|
if (code == ConsentProvisionType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ConsentProvisionType.DENY)
|
||||||
return "deny";
|
return "deny";
|
||||||
if (code == ConsentProvisionType.PERMIT)
|
if (code == ConsentProvisionType.PERMIT)
|
||||||
return "permit";
|
return "permit";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ConsentProvisionType code) {
|
public String toSystem(ConsentProvisionType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -6736,7 +6776,9 @@ public class Enumerations {
|
||||||
throw new FHIRException("Unknown Currencies code '"+codeString+"'");
|
throw new FHIRException("Unknown Currencies code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(Currencies code) {
|
public String toCode(Currencies code) {
|
||||||
if (code == Currencies.AED)
|
if (code == Currencies.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == Currencies.AED)
|
||||||
return "AED";
|
return "AED";
|
||||||
if (code == Currencies.AFN)
|
if (code == Currencies.AFN)
|
||||||
return "AFN";
|
return "AFN";
|
||||||
|
@ -7101,7 +7143,7 @@ public class Enumerations {
|
||||||
if (code == Currencies.ZWL)
|
if (code == Currencies.ZWL)
|
||||||
return "ZWL";
|
return "ZWL";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(Currencies code) {
|
public String toSystem(Currencies code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -7265,7 +7307,9 @@ public class Enumerations {
|
||||||
throw new FHIRException("Unknown DaysOfWeek code '"+codeString+"'");
|
throw new FHIRException("Unknown DaysOfWeek code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(DaysOfWeek code) {
|
public String toCode(DaysOfWeek code) {
|
||||||
if (code == DaysOfWeek.MON)
|
if (code == DaysOfWeek.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == DaysOfWeek.MON)
|
||||||
return "mon";
|
return "mon";
|
||||||
if (code == DaysOfWeek.TUE)
|
if (code == DaysOfWeek.TUE)
|
||||||
return "tue";
|
return "tue";
|
||||||
|
@ -7280,7 +7324,7 @@ public class Enumerations {
|
||||||
if (code == DaysOfWeek.SUN)
|
if (code == DaysOfWeek.SUN)
|
||||||
return "sun";
|
return "sun";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(DaysOfWeek code) {
|
public String toSystem(DaysOfWeek code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -7388,14 +7432,16 @@ public class Enumerations {
|
||||||
throw new FHIRException("Unknown DeviceNameType code '"+codeString+"'");
|
throw new FHIRException("Unknown DeviceNameType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(DeviceNameType code) {
|
public String toCode(DeviceNameType code) {
|
||||||
if (code == DeviceNameType.REGISTEREDNAME)
|
if (code == DeviceNameType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == DeviceNameType.REGISTEREDNAME)
|
||||||
return "registered-name";
|
return "registered-name";
|
||||||
if (code == DeviceNameType.USERFRIENDLYNAME)
|
if (code == DeviceNameType.USERFRIENDLYNAME)
|
||||||
return "user-friendly-name";
|
return "user-friendly-name";
|
||||||
if (code == DeviceNameType.PATIENTREPORTEDNAME)
|
if (code == DeviceNameType.PATIENTREPORTEDNAME)
|
||||||
return "patient-reported-name";
|
return "patient-reported-name";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(DeviceNameType code) {
|
public String toSystem(DeviceNameType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -7587,7 +7633,9 @@ public class Enumerations {
|
||||||
throw new FHIRException("Unknown EncounterStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown EncounterStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(EncounterStatus code) {
|
public String toCode(EncounterStatus code) {
|
||||||
if (code == EncounterStatus.PLANNED)
|
if (code == EncounterStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == EncounterStatus.PLANNED)
|
||||||
return "planned";
|
return "planned";
|
||||||
if (code == EncounterStatus.INPROGRESS)
|
if (code == EncounterStatus.INPROGRESS)
|
||||||
return "in-progress";
|
return "in-progress";
|
||||||
|
@ -7606,7 +7654,7 @@ public class Enumerations {
|
||||||
if (code == EncounterStatus.UNKNOWN)
|
if (code == EncounterStatus.UNKNOWN)
|
||||||
return "unknown";
|
return "unknown";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(EncounterStatus code) {
|
public String toSystem(EncounterStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -7784,7 +7832,9 @@ public class Enumerations {
|
||||||
throw new FHIRException("Unknown EventStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown EventStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(EventStatus code) {
|
public String toCode(EventStatus code) {
|
||||||
if (code == EventStatus.PREPARATION)
|
if (code == EventStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == EventStatus.PREPARATION)
|
||||||
return "preparation";
|
return "preparation";
|
||||||
if (code == EventStatus.INPROGRESS)
|
if (code == EventStatus.INPROGRESS)
|
||||||
return "in-progress";
|
return "in-progress";
|
||||||
|
@ -7801,7 +7851,7 @@ public class Enumerations {
|
||||||
if (code == EventStatus.UNKNOWN)
|
if (code == EventStatus.UNKNOWN)
|
||||||
return "unknown";
|
return "unknown";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(EventStatus code) {
|
public String toSystem(EventStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -7923,7 +7973,9 @@ public class Enumerations {
|
||||||
throw new FHIRException("Unknown EvidenceVariableHandling code '"+codeString+"'");
|
throw new FHIRException("Unknown EvidenceVariableHandling code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(EvidenceVariableHandling code) {
|
public String toCode(EvidenceVariableHandling code) {
|
||||||
if (code == EvidenceVariableHandling.CONTINUOUS)
|
if (code == EvidenceVariableHandling.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == EvidenceVariableHandling.CONTINUOUS)
|
||||||
return "continuous";
|
return "continuous";
|
||||||
if (code == EvidenceVariableHandling.DICHOTOMOUS)
|
if (code == EvidenceVariableHandling.DICHOTOMOUS)
|
||||||
return "dichotomous";
|
return "dichotomous";
|
||||||
|
@ -7932,7 +7984,7 @@ public class Enumerations {
|
||||||
if (code == EvidenceVariableHandling.POLYCHOTOMOUS)
|
if (code == EvidenceVariableHandling.POLYCHOTOMOUS)
|
||||||
return "polychotomous";
|
return "polychotomous";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(EvidenceVariableHandling code) {
|
public String toSystem(EvidenceVariableHandling code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -8026,12 +8078,14 @@ public class Enumerations {
|
||||||
throw new FHIRException("Unknown ExampleScenarioActorType code '"+codeString+"'");
|
throw new FHIRException("Unknown ExampleScenarioActorType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ExampleScenarioActorType code) {
|
public String toCode(ExampleScenarioActorType code) {
|
||||||
if (code == ExampleScenarioActorType.PERSON)
|
if (code == ExampleScenarioActorType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ExampleScenarioActorType.PERSON)
|
||||||
return "person";
|
return "person";
|
||||||
if (code == ExampleScenarioActorType.SYSTEM)
|
if (code == ExampleScenarioActorType.SYSTEM)
|
||||||
return "system";
|
return "system";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ExampleScenarioActorType code) {
|
public String toSystem(ExampleScenarioActorType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -8055,7 +8109,7 @@ public class Enumerations {
|
||||||
*/
|
*/
|
||||||
DATATYPE,
|
DATATYPE,
|
||||||
/**
|
/**
|
||||||
* Address Type: An address expressed using postal conventions (as opposed to GPS or other location definition formats). This data type may be used to convey addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery. There are a variety of postal address formats defined around the world.
|
* Address Type: An address expressed using postal conventions (as opposed to GPS or other location definition formats). This data type may be used to convey addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery. There are a variety of postal address formats defined around the world.
|
||||||
The ISO21090-codedString may be used to provide a coded representation of the contents of strings in an Address.
|
The ISO21090-codedString may be used to provide a coded representation of the contents of strings in an Address.
|
||||||
*/
|
*/
|
||||||
ADDRESS,
|
ADDRESS,
|
||||||
|
@ -8700,8 +8754,8 @@ The ISO21090-codedString may be used to provide a coded representation of the co
|
||||||
*/
|
*/
|
||||||
MEDICATIONREQUEST,
|
MEDICATIONREQUEST,
|
||||||
/**
|
/**
|
||||||
* A record of a medication that is being consumed by a patient. A MedicationStatement may indicate that the patient may be taking the medication now or has taken the medication in the past or will be taking the medication in the future. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay. The medication information may come from sources such as the patient's memory, from a prescription bottle, or from a list of medications the patient, clinician or other party maintains.
|
* A record of a medication that is being consumed by a patient. A MedicationStatement may indicate that the patient may be taking the medication now or has taken the medication in the past or will be taking the medication in the future. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay. The medication information may come from sources such as the patient's memory, from a prescription bottle, or from a list of medications the patient, clinician or other party maintains.
|
||||||
|
|
||||||
The primary difference between a medicationstatement and a medicationadministration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication. A medicationstatement is often, if not always, less specific. There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise. As stated earlier, the Medication Statement information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains. Medication administration is more formal and is not missing detailed information.
|
The primary difference between a medicationstatement and a medicationadministration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication. A medicationstatement is often, if not always, less specific. There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise. As stated earlier, the Medication Statement information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains. Medication administration is more formal and is not missing detailed information.
|
||||||
*/
|
*/
|
||||||
MEDICATIONSTATEMENT,
|
MEDICATIONSTATEMENT,
|
||||||
|
@ -11334,7 +11388,9 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
throw new FHIRException("Unknown FHIRTypes code '"+codeString+"'");
|
throw new FHIRException("Unknown FHIRTypes code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(FHIRTypes code) {
|
public String toCode(FHIRTypes code) {
|
||||||
if (code == FHIRTypes.BASE)
|
if (code == FHIRTypes.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == FHIRTypes.BASE)
|
||||||
return "Base";
|
return "Base";
|
||||||
if (code == FHIRTypes.ELEMENT)
|
if (code == FHIRTypes.ELEMENT)
|
||||||
return "Element";
|
return "Element";
|
||||||
|
@ -11797,7 +11853,7 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
if (code == FHIRTypes.PARAMETERS)
|
if (code == FHIRTypes.PARAMETERS)
|
||||||
return "Parameters";
|
return "Parameters";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(FHIRTypes code) {
|
public String toSystem(FHIRTypes code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -12717,7 +12773,9 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
throw new FHIRException("Unknown FHIRVersion code '"+codeString+"'");
|
throw new FHIRException("Unknown FHIRVersion code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(FHIRVersion code) {
|
public String toCode(FHIRVersion code) {
|
||||||
if (code == FHIRVersion._0_01)
|
if (code == FHIRVersion.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == FHIRVersion._0_01)
|
||||||
return "0.01";
|
return "0.01";
|
||||||
if (code == FHIRVersion._0_05)
|
if (code == FHIRVersion._0_05)
|
||||||
return "0.05";
|
return "0.05";
|
||||||
|
@ -12839,7 +12897,7 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
return "6.0.0-ballot1";
|
return "6.0.0-ballot1";
|
||||||
}
|
}
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(FHIRVersion code) {
|
public String toSystem(FHIRVersion code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -13059,7 +13117,9 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
throw new FHIRException("Unknown FilterOperator code '"+codeString+"'");
|
throw new FHIRException("Unknown FilterOperator code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(FilterOperator code) {
|
public String toCode(FilterOperator code) {
|
||||||
if (code == FilterOperator.EQUAL)
|
if (code == FilterOperator.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == FilterOperator.EQUAL)
|
||||||
return "=";
|
return "=";
|
||||||
if (code == FilterOperator.ISA)
|
if (code == FilterOperator.ISA)
|
||||||
return "is-a";
|
return "is-a";
|
||||||
|
@ -13082,7 +13142,7 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
if (code == FilterOperator.EXISTS)
|
if (code == FilterOperator.EXISTS)
|
||||||
return "exists";
|
return "exists";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(FilterOperator code) {
|
public String toSystem(FilterOperator code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -13204,7 +13264,9 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
throw new FHIRException("Unknown FinancialResourceStatusCodes code '"+codeString+"'");
|
throw new FHIRException("Unknown FinancialResourceStatusCodes code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(FinancialResourceStatusCodes code) {
|
public String toCode(FinancialResourceStatusCodes code) {
|
||||||
if (code == FinancialResourceStatusCodes.ACTIVE)
|
if (code == FinancialResourceStatusCodes.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == FinancialResourceStatusCodes.ACTIVE)
|
||||||
return "active";
|
return "active";
|
||||||
if (code == FinancialResourceStatusCodes.CANCELLED)
|
if (code == FinancialResourceStatusCodes.CANCELLED)
|
||||||
return "cancelled";
|
return "cancelled";
|
||||||
|
@ -13213,7 +13275,7 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
if (code == FinancialResourceStatusCodes.ENTEREDINERROR)
|
if (code == FinancialResourceStatusCodes.ENTEREDINERROR)
|
||||||
return "entered-in-error";
|
return "entered-in-error";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(FinancialResourceStatusCodes code) {
|
public String toSystem(FinancialResourceStatusCodes code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -13321,14 +13383,16 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
throw new FHIRException("Unknown ListMode code '"+codeString+"'");
|
throw new FHIRException("Unknown ListMode code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ListMode code) {
|
public String toCode(ListMode code) {
|
||||||
if (code == ListMode.WORKING)
|
if (code == ListMode.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ListMode.WORKING)
|
||||||
return "working";
|
return "working";
|
||||||
if (code == ListMode.SNAPSHOT)
|
if (code == ListMode.SNAPSHOT)
|
||||||
return "snapshot";
|
return "snapshot";
|
||||||
if (code == ListMode.CHANGES)
|
if (code == ListMode.CHANGES)
|
||||||
return "changes";
|
return "changes";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ListMode code) {
|
public String toSystem(ListMode code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -13422,12 +13486,14 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
throw new FHIRException("Unknown MeasureImprovementNotation code '"+codeString+"'");
|
throw new FHIRException("Unknown MeasureImprovementNotation code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(MeasureImprovementNotation code) {
|
public String toCode(MeasureImprovementNotation code) {
|
||||||
if (code == MeasureImprovementNotation.INCREASE)
|
if (code == MeasureImprovementNotation.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == MeasureImprovementNotation.INCREASE)
|
||||||
return "increase";
|
return "increase";
|
||||||
if (code == MeasureImprovementNotation.DECREASE)
|
if (code == MeasureImprovementNotation.DECREASE)
|
||||||
return "decrease";
|
return "decrease";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(MeasureImprovementNotation code) {
|
public String toSystem(MeasureImprovementNotation code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -13493,8 +13559,10 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
throw new FHIRException("Unknown MimeTypes code '"+codeString+"'");
|
throw new FHIRException("Unknown MimeTypes code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(MimeTypes code) {
|
public String toCode(MimeTypes code) {
|
||||||
return "?";
|
if (code == MimeTypes.NULL)
|
||||||
}
|
return null;
|
||||||
|
return "?";
|
||||||
|
}
|
||||||
public String toSystem(MimeTypes code) {
|
public String toSystem(MimeTypes code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -13672,7 +13740,9 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
throw new FHIRException("Unknown ObservationStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown ObservationStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ObservationStatus code) {
|
public String toCode(ObservationStatus code) {
|
||||||
if (code == ObservationStatus.REGISTERED)
|
if (code == ObservationStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ObservationStatus.REGISTERED)
|
||||||
return "registered";
|
return "registered";
|
||||||
if (code == ObservationStatus.PRELIMINARY)
|
if (code == ObservationStatus.PRELIMINARY)
|
||||||
return "preliminary";
|
return "preliminary";
|
||||||
|
@ -13689,7 +13759,7 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
if (code == ObservationStatus.UNKNOWN)
|
if (code == ObservationStatus.UNKNOWN)
|
||||||
return "unknown";
|
return "unknown";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ObservationStatus code) {
|
public String toSystem(ObservationStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -13783,12 +13853,14 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
throw new FHIRException("Unknown OperationParameterUse code '"+codeString+"'");
|
throw new FHIRException("Unknown OperationParameterUse code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(OperationParameterUse code) {
|
public String toCode(OperationParameterUse code) {
|
||||||
if (code == OperationParameterUse.IN)
|
if (code == OperationParameterUse.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == OperationParameterUse.IN)
|
||||||
return "in";
|
return "in";
|
||||||
if (code == OperationParameterUse.OUT)
|
if (code == OperationParameterUse.OUT)
|
||||||
return "out";
|
return "out";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(OperationParameterUse code) {
|
public String toSystem(OperationParameterUse code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -13910,7 +13982,9 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
throw new FHIRException("Unknown PublicationStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown PublicationStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(PublicationStatus code) {
|
public String toCode(PublicationStatus code) {
|
||||||
if (code == PublicationStatus.DRAFT)
|
if (code == PublicationStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == PublicationStatus.DRAFT)
|
||||||
return "draft";
|
return "draft";
|
||||||
if (code == PublicationStatus.ACTIVE)
|
if (code == PublicationStatus.ACTIVE)
|
||||||
return "active";
|
return "active";
|
||||||
|
@ -13919,7 +13993,7 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
if (code == PublicationStatus.UNKNOWN)
|
if (code == PublicationStatus.UNKNOWN)
|
||||||
return "unknown";
|
return "unknown";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(PublicationStatus code) {
|
public String toSystem(PublicationStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -14055,7 +14129,9 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
throw new FHIRException("Unknown QuantityComparator code '"+codeString+"'");
|
throw new FHIRException("Unknown QuantityComparator code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(QuantityComparator code) {
|
public String toCode(QuantityComparator code) {
|
||||||
if (code == QuantityComparator.LESS_THAN)
|
if (code == QuantityComparator.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == QuantityComparator.LESS_THAN)
|
||||||
return "<";
|
return "<";
|
||||||
if (code == QuantityComparator.LESS_OR_EQUAL)
|
if (code == QuantityComparator.LESS_OR_EQUAL)
|
||||||
return "<=";
|
return "<=";
|
||||||
|
@ -14066,7 +14142,7 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
if (code == QuantityComparator.AD)
|
if (code == QuantityComparator.AD)
|
||||||
return "ad";
|
return "ad";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(QuantityComparator code) {
|
public String toSystem(QuantityComparator code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -14258,7 +14334,9 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
throw new FHIRException("Unknown RequestIntent code '"+codeString+"'");
|
throw new FHIRException("Unknown RequestIntent code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(RequestIntent code) {
|
public String toCode(RequestIntent code) {
|
||||||
if (code == RequestIntent.PROPOSAL)
|
if (code == RequestIntent.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == RequestIntent.PROPOSAL)
|
||||||
return "proposal";
|
return "proposal";
|
||||||
if (code == RequestIntent.PLAN)
|
if (code == RequestIntent.PLAN)
|
||||||
return "plan";
|
return "plan";
|
||||||
|
@ -14277,7 +14355,7 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
if (code == RequestIntent.OPTION)
|
if (code == RequestIntent.OPTION)
|
||||||
return "option";
|
return "option";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(RequestIntent code) {
|
public String toSystem(RequestIntent code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -14399,7 +14477,9 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
throw new FHIRException("Unknown RequestPriority code '"+codeString+"'");
|
throw new FHIRException("Unknown RequestPriority code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(RequestPriority code) {
|
public String toCode(RequestPriority code) {
|
||||||
if (code == RequestPriority.ROUTINE)
|
if (code == RequestPriority.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == RequestPriority.ROUTINE)
|
||||||
return "routine";
|
return "routine";
|
||||||
if (code == RequestPriority.URGENT)
|
if (code == RequestPriority.URGENT)
|
||||||
return "urgent";
|
return "urgent";
|
||||||
|
@ -14408,7 +14488,7 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
if (code == RequestPriority.STAT)
|
if (code == RequestPriority.STAT)
|
||||||
return "stat";
|
return "stat";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(RequestPriority code) {
|
public String toSystem(RequestPriority code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -14572,7 +14652,9 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
throw new FHIRException("Unknown RequestStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown RequestStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(RequestStatus code) {
|
public String toCode(RequestStatus code) {
|
||||||
if (code == RequestStatus.DRAFT)
|
if (code == RequestStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == RequestStatus.DRAFT)
|
||||||
return "draft";
|
return "draft";
|
||||||
if (code == RequestStatus.ACTIVE)
|
if (code == RequestStatus.ACTIVE)
|
||||||
return "active";
|
return "active";
|
||||||
|
@ -14587,7 +14669,7 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
if (code == RequestStatus.UNKNOWN)
|
if (code == RequestStatus.UNKNOWN)
|
||||||
return "unknown";
|
return "unknown";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(RequestStatus code) {
|
public String toSystem(RequestStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -14967,8 +15049,8 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
*/
|
*/
|
||||||
MEDICATIONREQUEST,
|
MEDICATIONREQUEST,
|
||||||
/**
|
/**
|
||||||
* A record of a medication that is being consumed by a patient. A MedicationStatement may indicate that the patient may be taking the medication now or has taken the medication in the past or will be taking the medication in the future. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay. The medication information may come from sources such as the patient's memory, from a prescription bottle, or from a list of medications the patient, clinician or other party maintains.
|
* A record of a medication that is being consumed by a patient. A MedicationStatement may indicate that the patient may be taking the medication now or has taken the medication in the past or will be taking the medication in the future. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay. The medication information may come from sources such as the patient's memory, from a prescription bottle, or from a list of medications the patient, clinician or other party maintains.
|
||||||
|
|
||||||
The primary difference between a medicationstatement and a medicationadministration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication. A medicationstatement is often, if not always, less specific. There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise. As stated earlier, the Medication Statement information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains. Medication administration is more formal and is not missing detailed information.
|
The primary difference between a medicationstatement and a medicationadministration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication. A medicationstatement is often, if not always, less specific. There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise. As stated earlier, the Medication Statement information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains. Medication administration is more formal and is not missing detailed information.
|
||||||
*/
|
*/
|
||||||
MEDICATIONSTATEMENT,
|
MEDICATIONSTATEMENT,
|
||||||
|
@ -16867,7 +16949,9 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
throw new FHIRException("Unknown ResourceTypeEnum code '"+codeString+"'");
|
throw new FHIRException("Unknown ResourceTypeEnum code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ResourceTypeEnum code) {
|
public String toCode(ResourceTypeEnum code) {
|
||||||
if (code == ResourceTypeEnum.ACCOUNT)
|
if (code == ResourceTypeEnum.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ResourceTypeEnum.ACCOUNT)
|
||||||
return "Account";
|
return "Account";
|
||||||
if (code == ResourceTypeEnum.ACTIVITYDEFINITION)
|
if (code == ResourceTypeEnum.ACTIVITYDEFINITION)
|
||||||
return "ActivityDefinition";
|
return "ActivityDefinition";
|
||||||
|
@ -17184,7 +17268,7 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
if (code == ResourceTypeEnum.VISIONPRESCRIPTION)
|
if (code == ResourceTypeEnum.VISIONPRESCRIPTION)
|
||||||
return "VisionPrescription";
|
return "VisionPrescription";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ResourceTypeEnum code) {
|
public String toSystem(ResourceTypeEnum code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -17376,7 +17460,9 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
throw new FHIRException("Unknown SearchComparator code '"+codeString+"'");
|
throw new FHIRException("Unknown SearchComparator code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(SearchComparator code) {
|
public String toCode(SearchComparator code) {
|
||||||
if (code == SearchComparator.EQ)
|
if (code == SearchComparator.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == SearchComparator.EQ)
|
||||||
return "eq";
|
return "eq";
|
||||||
if (code == SearchComparator.NE)
|
if (code == SearchComparator.NE)
|
||||||
return "ne";
|
return "ne";
|
||||||
|
@ -17395,7 +17481,7 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
if (code == SearchComparator.AP)
|
if (code == SearchComparator.AP)
|
||||||
return "ap";
|
return "ap";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(SearchComparator code) {
|
public String toSystem(SearchComparator code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -17671,7 +17757,9 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
throw new FHIRException("Unknown SearchModifierCode code '"+codeString+"'");
|
throw new FHIRException("Unknown SearchModifierCode code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(SearchModifierCode code) {
|
public String toCode(SearchModifierCode code) {
|
||||||
if (code == SearchModifierCode.MISSING)
|
if (code == SearchModifierCode.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == SearchModifierCode.MISSING)
|
||||||
return "missing";
|
return "missing";
|
||||||
if (code == SearchModifierCode.EXACT)
|
if (code == SearchModifierCode.EXACT)
|
||||||
return "exact";
|
return "exact";
|
||||||
|
@ -17702,7 +17790,7 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
if (code == SearchModifierCode.ITERATE)
|
if (code == SearchModifierCode.ITERATE)
|
||||||
return "iterate";
|
return "iterate";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(SearchModifierCode code) {
|
public String toSystem(SearchModifierCode code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -17894,7 +17982,9 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
throw new FHIRException("Unknown SearchParamType code '"+codeString+"'");
|
throw new FHIRException("Unknown SearchParamType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(SearchParamType code) {
|
public String toCode(SearchParamType code) {
|
||||||
if (code == SearchParamType.NUMBER)
|
if (code == SearchParamType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == SearchParamType.NUMBER)
|
||||||
return "number";
|
return "number";
|
||||||
if (code == SearchParamType.DATE)
|
if (code == SearchParamType.DATE)
|
||||||
return "date";
|
return "date";
|
||||||
|
@ -17913,7 +18003,7 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
if (code == SearchParamType.SPECIAL)
|
if (code == SearchParamType.SPECIAL)
|
||||||
return "special";
|
return "special";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(SearchParamType code) {
|
public String toSystem(SearchParamType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -18049,7 +18139,9 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
throw new FHIRException("Unknown SubscriptionStatusCodes code '"+codeString+"'");
|
throw new FHIRException("Unknown SubscriptionStatusCodes code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(SubscriptionStatusCodes code) {
|
public String toCode(SubscriptionStatusCodes code) {
|
||||||
if (code == SubscriptionStatusCodes.REQUESTED)
|
if (code == SubscriptionStatusCodes.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == SubscriptionStatusCodes.REQUESTED)
|
||||||
return "requested";
|
return "requested";
|
||||||
if (code == SubscriptionStatusCodes.ACTIVE)
|
if (code == SubscriptionStatusCodes.ACTIVE)
|
||||||
return "active";
|
return "active";
|
||||||
|
@ -18060,7 +18152,7 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
if (code == SubscriptionStatusCodes.ENTEREDINERROR)
|
if (code == SubscriptionStatusCodes.ENTEREDINERROR)
|
||||||
return "entered-in-error";
|
return "entered-in-error";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(SubscriptionStatusCodes code) {
|
public String toSystem(SubscriptionStatusCodes code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -18168,14 +18260,16 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
throw new FHIRException("Unknown Use code '"+codeString+"'");
|
throw new FHIRException("Unknown Use code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(Use code) {
|
public String toCode(Use code) {
|
||||||
if (code == Use.CLAIM)
|
if (code == Use.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == Use.CLAIM)
|
||||||
return "claim";
|
return "claim";
|
||||||
if (code == Use.PREAUTHORIZATION)
|
if (code == Use.PREAUTHORIZATION)
|
||||||
return "preauthorization";
|
return "preauthorization";
|
||||||
if (code == Use.PREDETERMINATION)
|
if (code == Use.PREDETERMINATION)
|
||||||
return "predetermination";
|
return "predetermination";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(Use code) {
|
public String toSystem(Use code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -18563,8 +18657,8 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
*/
|
*/
|
||||||
MEDICATIONREQUEST,
|
MEDICATIONREQUEST,
|
||||||
/**
|
/**
|
||||||
* A record of a medication that is being consumed by a patient. A MedicationStatement may indicate that the patient may be taking the medication now or has taken the medication in the past or will be taking the medication in the future. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay. The medication information may come from sources such as the patient's memory, from a prescription bottle, or from a list of medications the patient, clinician or other party maintains.
|
* A record of a medication that is being consumed by a patient. A MedicationStatement may indicate that the patient may be taking the medication now or has taken the medication in the past or will be taking the medication in the future. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay. The medication information may come from sources such as the patient's memory, from a prescription bottle, or from a list of medications the patient, clinician or other party maintains.
|
||||||
|
|
||||||
The primary difference between a medicationstatement and a medicationadministration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication. A medicationstatement is often, if not always, less specific. There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise. As stated earlier, the Medication Statement information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains. Medication administration is more formal and is not missing detailed information.
|
The primary difference between a medicationstatement and a medicationadministration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication. A medicationstatement is often, if not always, less specific. There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise. As stated earlier, the Medication Statement information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains. Medication administration is more formal and is not missing detailed information.
|
||||||
*/
|
*/
|
||||||
MEDICATIONSTATEMENT,
|
MEDICATIONSTATEMENT,
|
||||||
|
@ -21085,7 +21179,9 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
throw new FHIRException("Unknown VersionIndependentResourceTypesAll code '"+codeString+"'");
|
throw new FHIRException("Unknown VersionIndependentResourceTypesAll code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(VersionIndependentResourceTypesAll code) {
|
public String toCode(VersionIndependentResourceTypesAll code) {
|
||||||
if (code == VersionIndependentResourceTypesAll.ACCOUNT)
|
if (code == VersionIndependentResourceTypesAll.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == VersionIndependentResourceTypesAll.ACCOUNT)
|
||||||
return "Account";
|
return "Account";
|
||||||
if (code == VersionIndependentResourceTypesAll.ACTIVITYDEFINITION)
|
if (code == VersionIndependentResourceTypesAll.ACTIVITYDEFINITION)
|
||||||
return "ActivityDefinition";
|
return "ActivityDefinition";
|
||||||
|
@ -21492,7 +21588,7 @@ The primary difference between a medicationstatement and a medicationadministrat
|
||||||
if (code == VersionIndependentResourceTypesAll.SUBSTANCESPECIFICATION)
|
if (code == VersionIndependentResourceTypesAll.SUBSTANCESPECIFICATION)
|
||||||
return "SubstanceSpecification";
|
return "SubstanceSpecification";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(VersionIndependentResourceTypesAll code) {
|
public String toSystem(VersionIndependentResourceTypesAll code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -208,7 +208,9 @@ public class EpisodeOfCare extends DomainResource {
|
||||||
throw new FHIRException("Unknown EpisodeOfCareStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown EpisodeOfCareStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(EpisodeOfCareStatus code) {
|
public String toCode(EpisodeOfCareStatus code) {
|
||||||
if (code == EpisodeOfCareStatus.PLANNED)
|
if (code == EpisodeOfCareStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == EpisodeOfCareStatus.PLANNED)
|
||||||
return "planned";
|
return "planned";
|
||||||
if (code == EpisodeOfCareStatus.WAITLIST)
|
if (code == EpisodeOfCareStatus.WAITLIST)
|
||||||
return "waitlist";
|
return "waitlist";
|
||||||
|
@ -223,7 +225,7 @@ public class EpisodeOfCare extends DomainResource {
|
||||||
if (code == EpisodeOfCareStatus.ENTEREDINERROR)
|
if (code == EpisodeOfCareStatus.ENTEREDINERROR)
|
||||||
return "entered-in-error";
|
return "entered-in-error";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(EpisodeOfCareStatus code) {
|
public String toSystem(EpisodeOfCareStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -222,7 +222,9 @@ public class EvidenceReport extends MetadataResource {
|
||||||
throw new FHIRException("Unknown ReportRelationshipType code '"+codeString+"'");
|
throw new FHIRException("Unknown ReportRelationshipType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ReportRelationshipType code) {
|
public String toCode(ReportRelationshipType code) {
|
||||||
if (code == ReportRelationshipType.REPLACES)
|
if (code == ReportRelationshipType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ReportRelationshipType.REPLACES)
|
||||||
return "replaces";
|
return "replaces";
|
||||||
if (code == ReportRelationshipType.AMENDS)
|
if (code == ReportRelationshipType.AMENDS)
|
||||||
return "amends";
|
return "amends";
|
||||||
|
@ -239,7 +241,7 @@ public class EvidenceReport extends MetadataResource {
|
||||||
if (code == ReportRelationshipType.TRANSFORMEDWITH)
|
if (code == ReportRelationshipType.TRANSFORMEDWITH)
|
||||||
return "transformedWith";
|
return "transformedWith";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ReportRelationshipType code) {
|
public String toSystem(ReportRelationshipType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -208,7 +208,9 @@ public class EvidenceVariable extends MetadataResource {
|
||||||
throw new FHIRException("Unknown CharacteristicCombination code '"+codeString+"'");
|
throw new FHIRException("Unknown CharacteristicCombination code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(CharacteristicCombination code) {
|
public String toCode(CharacteristicCombination code) {
|
||||||
if (code == CharacteristicCombination.ALLOF)
|
if (code == CharacteristicCombination.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == CharacteristicCombination.ALLOF)
|
||||||
return "all-of";
|
return "all-of";
|
||||||
if (code == CharacteristicCombination.ANYOF)
|
if (code == CharacteristicCombination.ANYOF)
|
||||||
return "any-of";
|
return "any-of";
|
||||||
|
@ -223,7 +225,7 @@ public class EvidenceVariable extends MetadataResource {
|
||||||
if (code == CharacteristicCombination.DATASET)
|
if (code == CharacteristicCombination.DATASET)
|
||||||
return "dataset";
|
return "dataset";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(CharacteristicCombination code) {
|
public String toSystem(CharacteristicCombination code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -167,7 +167,9 @@ public class ExplanationOfBenefit extends DomainResource {
|
||||||
throw new FHIRException("Unknown ExplanationOfBenefitStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown ExplanationOfBenefitStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ExplanationOfBenefitStatus code) {
|
public String toCode(ExplanationOfBenefitStatus code) {
|
||||||
if (code == ExplanationOfBenefitStatus.ACTIVE)
|
if (code == ExplanationOfBenefitStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ExplanationOfBenefitStatus.ACTIVE)
|
||||||
return "active";
|
return "active";
|
||||||
if (code == ExplanationOfBenefitStatus.CANCELLED)
|
if (code == ExplanationOfBenefitStatus.CANCELLED)
|
||||||
return "cancelled";
|
return "cancelled";
|
||||||
|
@ -176,7 +178,7 @@ public class ExplanationOfBenefit extends DomainResource {
|
||||||
if (code == ExplanationOfBenefitStatus.ENTEREDINERROR)
|
if (code == ExplanationOfBenefitStatus.ENTEREDINERROR)
|
||||||
return "entered-in-error";
|
return "entered-in-error";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ExplanationOfBenefitStatus code) {
|
public String toSystem(ExplanationOfBenefitStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -166,7 +166,9 @@ public class FamilyMemberHistory extends DomainResource {
|
||||||
throw new FHIRException("Unknown FamilyHistoryStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown FamilyHistoryStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(FamilyHistoryStatus code) {
|
public String toCode(FamilyHistoryStatus code) {
|
||||||
if (code == FamilyHistoryStatus.PARTIAL)
|
if (code == FamilyHistoryStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == FamilyHistoryStatus.PARTIAL)
|
||||||
return "partial";
|
return "partial";
|
||||||
if (code == FamilyHistoryStatus.COMPLETED)
|
if (code == FamilyHistoryStatus.COMPLETED)
|
||||||
return "completed";
|
return "completed";
|
||||||
|
@ -175,7 +177,7 @@ public class FamilyMemberHistory extends DomainResource {
|
||||||
if (code == FamilyHistoryStatus.HEALTHUNKNOWN)
|
if (code == FamilyHistoryStatus.HEALTHUNKNOWN)
|
||||||
return "health-unknown";
|
return "health-unknown";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(FamilyHistoryStatus code) {
|
public String toSystem(FamilyHistoryStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -152,14 +152,16 @@ public class Flag extends DomainResource {
|
||||||
throw new FHIRException("Unknown FlagStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown FlagStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(FlagStatus code) {
|
public String toCode(FlagStatus code) {
|
||||||
if (code == FlagStatus.ACTIVE)
|
if (code == FlagStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == FlagStatus.ACTIVE)
|
||||||
return "active";
|
return "active";
|
||||||
if (code == FlagStatus.INACTIVE)
|
if (code == FlagStatus.INACTIVE)
|
||||||
return "inactive";
|
return "inactive";
|
||||||
if (code == FlagStatus.ENTEREDINERROR)
|
if (code == FlagStatus.ENTEREDINERROR)
|
||||||
return "entered-in-error";
|
return "entered-in-error";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(FlagStatus code) {
|
public String toSystem(FlagStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -152,14 +152,16 @@ public class FormularyItem extends DomainResource {
|
||||||
throw new FHIRException("Unknown FormularyItemStatusCodes code '"+codeString+"'");
|
throw new FHIRException("Unknown FormularyItemStatusCodes code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(FormularyItemStatusCodes code) {
|
public String toCode(FormularyItemStatusCodes code) {
|
||||||
if (code == FormularyItemStatusCodes.ACTIVE)
|
if (code == FormularyItemStatusCodes.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == FormularyItemStatusCodes.ACTIVE)
|
||||||
return "active";
|
return "active";
|
||||||
if (code == FormularyItemStatusCodes.ENTEREDINERROR)
|
if (code == FormularyItemStatusCodes.ENTEREDINERROR)
|
||||||
return "entered-in-error";
|
return "entered-in-error";
|
||||||
if (code == FormularyItemStatusCodes.INACTIVE)
|
if (code == FormularyItemStatusCodes.INACTIVE)
|
||||||
return "inactive";
|
return "inactive";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(FormularyItemStatusCodes code) {
|
public String toSystem(FormularyItemStatusCodes code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -180,7 +180,9 @@ public class GenomicStudy extends DomainResource {
|
||||||
throw new FHIRException("Unknown GenomicStudyStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown GenomicStudyStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(GenomicStudyStatus code) {
|
public String toCode(GenomicStudyStatus code) {
|
||||||
if (code == GenomicStudyStatus.REGISTERED)
|
if (code == GenomicStudyStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == GenomicStudyStatus.REGISTERED)
|
||||||
return "registered";
|
return "registered";
|
||||||
if (code == GenomicStudyStatus.AVAILABLE)
|
if (code == GenomicStudyStatus.AVAILABLE)
|
||||||
return "available";
|
return "available";
|
||||||
|
@ -191,7 +193,7 @@ public class GenomicStudy extends DomainResource {
|
||||||
if (code == GenomicStudyStatus.UNKNOWN)
|
if (code == GenomicStudyStatus.UNKNOWN)
|
||||||
return "unknown";
|
return "unknown";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(GenomicStudyStatus code) {
|
public String toSystem(GenomicStudyStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -236,7 +236,9 @@ public class Goal extends DomainResource {
|
||||||
throw new FHIRException("Unknown GoalLifecycleStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown GoalLifecycleStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(GoalLifecycleStatus code) {
|
public String toCode(GoalLifecycleStatus code) {
|
||||||
if (code == GoalLifecycleStatus.PROPOSED)
|
if (code == GoalLifecycleStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == GoalLifecycleStatus.PROPOSED)
|
||||||
return "proposed";
|
return "proposed";
|
||||||
if (code == GoalLifecycleStatus.PLANNED)
|
if (code == GoalLifecycleStatus.PLANNED)
|
||||||
return "planned";
|
return "planned";
|
||||||
|
@ -255,7 +257,7 @@ public class Goal extends DomainResource {
|
||||||
if (code == GoalLifecycleStatus.REJECTED)
|
if (code == GoalLifecycleStatus.REJECTED)
|
||||||
return "rejected";
|
return "rejected";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(GoalLifecycleStatus code) {
|
public String toSystem(GoalLifecycleStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -166,7 +166,9 @@ public class GraphDefinition extends CanonicalResource {
|
||||||
throw new FHIRException("Unknown GraphCompartmentRule code '"+codeString+"'");
|
throw new FHIRException("Unknown GraphCompartmentRule code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(GraphCompartmentRule code) {
|
public String toCode(GraphCompartmentRule code) {
|
||||||
if (code == GraphCompartmentRule.IDENTICAL)
|
if (code == GraphCompartmentRule.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == GraphCompartmentRule.IDENTICAL)
|
||||||
return "identical";
|
return "identical";
|
||||||
if (code == GraphCompartmentRule.MATCHING)
|
if (code == GraphCompartmentRule.MATCHING)
|
||||||
return "matching";
|
return "matching";
|
||||||
|
@ -175,7 +177,7 @@ public class GraphDefinition extends CanonicalResource {
|
||||||
if (code == GraphCompartmentRule.CUSTOM)
|
if (code == GraphCompartmentRule.CUSTOM)
|
||||||
return "custom";
|
return "custom";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(GraphCompartmentRule code) {
|
public String toSystem(GraphCompartmentRule code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -266,12 +268,14 @@ public class GraphDefinition extends CanonicalResource {
|
||||||
throw new FHIRException("Unknown GraphCompartmentUse code '"+codeString+"'");
|
throw new FHIRException("Unknown GraphCompartmentUse code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(GraphCompartmentUse code) {
|
public String toCode(GraphCompartmentUse code) {
|
||||||
if (code == GraphCompartmentUse.WHERE)
|
if (code == GraphCompartmentUse.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == GraphCompartmentUse.WHERE)
|
||||||
return "where";
|
return "where";
|
||||||
if (code == GraphCompartmentUse.REQUIRES)
|
if (code == GraphCompartmentUse.REQUIRES)
|
||||||
return "requires";
|
return "requires";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(GraphCompartmentUse code) {
|
public String toSystem(GraphCompartmentUse code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,12 +138,14 @@ public class Group extends DomainResource {
|
||||||
throw new FHIRException("Unknown GroupMembershipBasis code '"+codeString+"'");
|
throw new FHIRException("Unknown GroupMembershipBasis code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(GroupMembershipBasis code) {
|
public String toCode(GroupMembershipBasis code) {
|
||||||
if (code == GroupMembershipBasis.DEFINITIONAL)
|
if (code == GroupMembershipBasis.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == GroupMembershipBasis.DEFINITIONAL)
|
||||||
return "definitional";
|
return "definitional";
|
||||||
if (code == GroupMembershipBasis.ENUMERATED)
|
if (code == GroupMembershipBasis.ENUMERATED)
|
||||||
return "enumerated";
|
return "enumerated";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(GroupMembershipBasis code) {
|
public String toSystem(GroupMembershipBasis code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -346,7 +348,9 @@ public class Group extends DomainResource {
|
||||||
throw new FHIRException("Unknown GroupType code '"+codeString+"'");
|
throw new FHIRException("Unknown GroupType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(GroupType code) {
|
public String toCode(GroupType code) {
|
||||||
if (code == GroupType.PERSON)
|
if (code == GroupType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == GroupType.PERSON)
|
||||||
return "person";
|
return "person";
|
||||||
if (code == GroupType.ANIMAL)
|
if (code == GroupType.ANIMAL)
|
||||||
return "animal";
|
return "animal";
|
||||||
|
@ -367,7 +371,7 @@ public class Group extends DomainResource {
|
||||||
if (code == GroupType.SPECIMEN)
|
if (code == GroupType.SPECIMEN)
|
||||||
return "specimen";
|
return "specimen";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(GroupType code) {
|
public String toSystem(GroupType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -194,7 +194,9 @@ public class GuidanceResponse extends DomainResource {
|
||||||
throw new FHIRException("Unknown GuidanceResponseStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown GuidanceResponseStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(GuidanceResponseStatus code) {
|
public String toCode(GuidanceResponseStatus code) {
|
||||||
if (code == GuidanceResponseStatus.SUCCESS)
|
if (code == GuidanceResponseStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == GuidanceResponseStatus.SUCCESS)
|
||||||
return "success";
|
return "success";
|
||||||
if (code == GuidanceResponseStatus.DATAREQUESTED)
|
if (code == GuidanceResponseStatus.DATAREQUESTED)
|
||||||
return "data-requested";
|
return "data-requested";
|
||||||
|
@ -207,7 +209,7 @@ public class GuidanceResponse extends DomainResource {
|
||||||
if (code == GuidanceResponseStatus.ENTEREDINERROR)
|
if (code == GuidanceResponseStatus.ENTEREDINERROR)
|
||||||
return "entered-in-error";
|
return "entered-in-error";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(GuidanceResponseStatus code) {
|
public String toSystem(GuidanceResponseStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -208,7 +208,9 @@ public class HumanName extends DataType implements ICompositeType {
|
||||||
throw new FHIRException("Unknown NameUse code '"+codeString+"'");
|
throw new FHIRException("Unknown NameUse code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(NameUse code) {
|
public String toCode(NameUse code) {
|
||||||
if (code == NameUse.USUAL)
|
if (code == NameUse.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == NameUse.USUAL)
|
||||||
return "usual";
|
return "usual";
|
||||||
if (code == NameUse.OFFICIAL)
|
if (code == NameUse.OFFICIAL)
|
||||||
return "official";
|
return "official";
|
||||||
|
@ -223,7 +225,7 @@ public class HumanName extends DataType implements ICompositeType {
|
||||||
if (code == NameUse.MAIDEN)
|
if (code == NameUse.MAIDEN)
|
||||||
return "maiden";
|
return "maiden";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(NameUse code) {
|
public String toSystem(NameUse code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -178,7 +178,9 @@ public class Identifier extends DataType implements ICompositeType {
|
||||||
throw new FHIRException("Unknown IdentifierUse code '"+codeString+"'");
|
throw new FHIRException("Unknown IdentifierUse code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(IdentifierUse code) {
|
public String toCode(IdentifierUse code) {
|
||||||
if (code == IdentifierUse.USUAL)
|
if (code == IdentifierUse.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == IdentifierUse.USUAL)
|
||||||
return "usual";
|
return "usual";
|
||||||
if (code == IdentifierUse.OFFICIAL)
|
if (code == IdentifierUse.OFFICIAL)
|
||||||
return "official";
|
return "official";
|
||||||
|
@ -189,7 +191,7 @@ public class Identifier extends DataType implements ICompositeType {
|
||||||
if (code == IdentifierUse.OLD)
|
if (code == IdentifierUse.OLD)
|
||||||
return "old";
|
return "old";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(IdentifierUse code) {
|
public String toSystem(IdentifierUse code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -181,7 +181,9 @@ public class ImagingSelection extends DomainResource {
|
||||||
throw new FHIRException("Unknown ImagingSelection2DGraphicType code '"+codeString+"'");
|
throw new FHIRException("Unknown ImagingSelection2DGraphicType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ImagingSelection2DGraphicType code) {
|
public String toCode(ImagingSelection2DGraphicType code) {
|
||||||
if (code == ImagingSelection2DGraphicType.POINT)
|
if (code == ImagingSelection2DGraphicType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ImagingSelection2DGraphicType.POINT)
|
||||||
return "point";
|
return "point";
|
||||||
if (code == ImagingSelection2DGraphicType.POLYLINE)
|
if (code == ImagingSelection2DGraphicType.POLYLINE)
|
||||||
return "polyline";
|
return "polyline";
|
||||||
|
@ -192,7 +194,7 @@ public class ImagingSelection extends DomainResource {
|
||||||
if (code == ImagingSelection2DGraphicType.ELLIPSE)
|
if (code == ImagingSelection2DGraphicType.ELLIPSE)
|
||||||
return "ellipse";
|
return "ellipse";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ImagingSelection2DGraphicType code) {
|
public String toSystem(ImagingSelection2DGraphicType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -339,7 +341,9 @@ public class ImagingSelection extends DomainResource {
|
||||||
throw new FHIRException("Unknown ImagingSelection3DGraphicType code '"+codeString+"'");
|
throw new FHIRException("Unknown ImagingSelection3DGraphicType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ImagingSelection3DGraphicType code) {
|
public String toCode(ImagingSelection3DGraphicType code) {
|
||||||
if (code == ImagingSelection3DGraphicType.POINT)
|
if (code == ImagingSelection3DGraphicType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ImagingSelection3DGraphicType.POINT)
|
||||||
return "point";
|
return "point";
|
||||||
if (code == ImagingSelection3DGraphicType.MULTIPOINT)
|
if (code == ImagingSelection3DGraphicType.MULTIPOINT)
|
||||||
return "multipoint";
|
return "multipoint";
|
||||||
|
@ -352,7 +356,7 @@ public class ImagingSelection extends DomainResource {
|
||||||
if (code == ImagingSelection3DGraphicType.ELLIPSOID)
|
if (code == ImagingSelection3DGraphicType.ELLIPSOID)
|
||||||
return "ellipsoid";
|
return "ellipsoid";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ImagingSelection3DGraphicType code) {
|
public String toSystem(ImagingSelection3DGraphicType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -457,14 +461,16 @@ public class ImagingSelection extends DomainResource {
|
||||||
throw new FHIRException("Unknown ImagingSelectionStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown ImagingSelectionStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ImagingSelectionStatus code) {
|
public String toCode(ImagingSelectionStatus code) {
|
||||||
if (code == ImagingSelectionStatus.AVAILABLE)
|
if (code == ImagingSelectionStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ImagingSelectionStatus.AVAILABLE)
|
||||||
return "available";
|
return "available";
|
||||||
if (code == ImagingSelectionStatus.ENTEREDINERROR)
|
if (code == ImagingSelectionStatus.ENTEREDINERROR)
|
||||||
return "entered-in-error";
|
return "entered-in-error";
|
||||||
if (code == ImagingSelectionStatus.UNKNOWN)
|
if (code == ImagingSelectionStatus.UNKNOWN)
|
||||||
return "unknown";
|
return "unknown";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ImagingSelectionStatus code) {
|
public String toSystem(ImagingSelectionStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -708,11 +714,11 @@ public class ImagingSelection extends DomainResource {
|
||||||
protected Coding sopClass;
|
protected Coding sopClass;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Selected subset of the SOP Instance. The content and format of the subset item is determined by the SOP Class of the selected instance.
|
* Selected subset of the SOP Instance. The content and format of the subset item is determined by the SOP Class of the selected instance.
|
||||||
May be one of:
|
May be one of:
|
||||||
- A list of frame numbers selected from a multiframe SOP Instance.
|
- A list of frame numbers selected from a multiframe SOP Instance.
|
||||||
- A list of Content Item Observation UID values selected from a DICOM SR or other structured document SOP Instance.
|
- A list of Content Item Observation UID values selected from a DICOM SR or other structured document SOP Instance.
|
||||||
- A list of segment numbers selected from a segmentation SOP Instance.
|
- A list of segment numbers selected from a segmentation SOP Instance.
|
||||||
- A list of Region of Interest (ROI) numbers selected from a radiotherapy structure set SOP Instance.
|
- A list of Region of Interest (ROI) numbers selected from a radiotherapy structure set SOP Instance.
|
||||||
*/
|
*/
|
||||||
@Child(name = "subset", type = {StringType.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
@Child(name = "subset", type = {StringType.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||||
|
@ -720,7 +726,7 @@ public class ImagingSelection extends DomainResource {
|
||||||
protected List<StringType> subset;
|
protected List<StringType> subset;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Each imaging selection instance or frame list might includes an image region, specified by a region type and a set of 2D coordinates.
|
* Each imaging selection instance or frame list might includes an image region, specified by a region type and a set of 2D coordinates.
|
||||||
If the parent imagingSelection.instance contains a subset element of type frame, the image region applies to all frames in the subset list.
|
If the parent imagingSelection.instance contains a subset element of type frame, the image region applies to all frames in the subset list.
|
||||||
*/
|
*/
|
||||||
@Child(name = "imageRegion2D", type = {}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
@Child(name = "imageRegion2D", type = {}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||||
|
@ -866,11 +872,11 @@ public class ImagingSelection extends DomainResource {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {@link #subset} (Selected subset of the SOP Instance. The content and format of the subset item is determined by the SOP Class of the selected instance.
|
* @return {@link #subset} (Selected subset of the SOP Instance. The content and format of the subset item is determined by the SOP Class of the selected instance.
|
||||||
May be one of:
|
May be one of:
|
||||||
- A list of frame numbers selected from a multiframe SOP Instance.
|
- A list of frame numbers selected from a multiframe SOP Instance.
|
||||||
- A list of Content Item Observation UID values selected from a DICOM SR or other structured document SOP Instance.
|
- A list of Content Item Observation UID values selected from a DICOM SR or other structured document SOP Instance.
|
||||||
- A list of segment numbers selected from a segmentation SOP Instance.
|
- A list of segment numbers selected from a segmentation SOP Instance.
|
||||||
- A list of Region of Interest (ROI) numbers selected from a radiotherapy structure set SOP Instance.)
|
- A list of Region of Interest (ROI) numbers selected from a radiotherapy structure set SOP Instance.)
|
||||||
*/
|
*/
|
||||||
public List<StringType> getSubset() {
|
public List<StringType> getSubset() {
|
||||||
|
@ -897,11 +903,11 @@ public class ImagingSelection extends DomainResource {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {@link #subset} (Selected subset of the SOP Instance. The content and format of the subset item is determined by the SOP Class of the selected instance.
|
* @return {@link #subset} (Selected subset of the SOP Instance. The content and format of the subset item is determined by the SOP Class of the selected instance.
|
||||||
May be one of:
|
May be one of:
|
||||||
- A list of frame numbers selected from a multiframe SOP Instance.
|
- A list of frame numbers selected from a multiframe SOP Instance.
|
||||||
- A list of Content Item Observation UID values selected from a DICOM SR or other structured document SOP Instance.
|
- A list of Content Item Observation UID values selected from a DICOM SR or other structured document SOP Instance.
|
||||||
- A list of segment numbers selected from a segmentation SOP Instance.
|
- A list of segment numbers selected from a segmentation SOP Instance.
|
||||||
- A list of Region of Interest (ROI) numbers selected from a radiotherapy structure set SOP Instance.)
|
- A list of Region of Interest (ROI) numbers selected from a radiotherapy structure set SOP Instance.)
|
||||||
*/
|
*/
|
||||||
public StringType addSubsetElement() {//2
|
public StringType addSubsetElement() {//2
|
||||||
|
@ -913,11 +919,11 @@ public class ImagingSelection extends DomainResource {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param value {@link #subset} (Selected subset of the SOP Instance. The content and format of the subset item is determined by the SOP Class of the selected instance.
|
* @param value {@link #subset} (Selected subset of the SOP Instance. The content and format of the subset item is determined by the SOP Class of the selected instance.
|
||||||
May be one of:
|
May be one of:
|
||||||
- A list of frame numbers selected from a multiframe SOP Instance.
|
- A list of frame numbers selected from a multiframe SOP Instance.
|
||||||
- A list of Content Item Observation UID values selected from a DICOM SR or other structured document SOP Instance.
|
- A list of Content Item Observation UID values selected from a DICOM SR or other structured document SOP Instance.
|
||||||
- A list of segment numbers selected from a segmentation SOP Instance.
|
- A list of segment numbers selected from a segmentation SOP Instance.
|
||||||
- A list of Region of Interest (ROI) numbers selected from a radiotherapy structure set SOP Instance.)
|
- A list of Region of Interest (ROI) numbers selected from a radiotherapy structure set SOP Instance.)
|
||||||
*/
|
*/
|
||||||
public ImagingSelectionInstanceComponent addSubset(String value) { //1
|
public ImagingSelectionInstanceComponent addSubset(String value) { //1
|
||||||
|
@ -930,11 +936,11 @@ public class ImagingSelection extends DomainResource {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param value {@link #subset} (Selected subset of the SOP Instance. The content and format of the subset item is determined by the SOP Class of the selected instance.
|
* @param value {@link #subset} (Selected subset of the SOP Instance. The content and format of the subset item is determined by the SOP Class of the selected instance.
|
||||||
May be one of:
|
May be one of:
|
||||||
- A list of frame numbers selected from a multiframe SOP Instance.
|
- A list of frame numbers selected from a multiframe SOP Instance.
|
||||||
- A list of Content Item Observation UID values selected from a DICOM SR or other structured document SOP Instance.
|
- A list of Content Item Observation UID values selected from a DICOM SR or other structured document SOP Instance.
|
||||||
- A list of segment numbers selected from a segmentation SOP Instance.
|
- A list of segment numbers selected from a segmentation SOP Instance.
|
||||||
- A list of Region of Interest (ROI) numbers selected from a radiotherapy structure set SOP Instance.)
|
- A list of Region of Interest (ROI) numbers selected from a radiotherapy structure set SOP Instance.)
|
||||||
*/
|
*/
|
||||||
public boolean hasSubset(String value) {
|
public boolean hasSubset(String value) {
|
||||||
|
@ -947,7 +953,7 @@ public class ImagingSelection extends DomainResource {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {@link #imageRegion2D} (Each imaging selection instance or frame list might includes an image region, specified by a region type and a set of 2D coordinates.
|
* @return {@link #imageRegion2D} (Each imaging selection instance or frame list might includes an image region, specified by a region type and a set of 2D coordinates.
|
||||||
If the parent imagingSelection.instance contains a subset element of type frame, the image region applies to all frames in the subset list.)
|
If the parent imagingSelection.instance contains a subset element of type frame, the image region applies to all frames in the subset list.)
|
||||||
*/
|
*/
|
||||||
public List<ImageRegion2DComponent> getImageRegion2D() {
|
public List<ImageRegion2DComponent> getImageRegion2D() {
|
||||||
|
@ -1282,7 +1288,7 @@ public class ImagingSelection extends DomainResource {
|
||||||
protected Enumeration<ImagingSelection2DGraphicType> regionType;
|
protected Enumeration<ImagingSelection2DGraphicType> regionType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The coordinates describing the image region. Encoded as a set of (column, row) pairs that denote positions in the selected image / frames specified with sub-pixel resolution.
|
* The coordinates describing the image region. Encoded as a set of (column, row) pairs that denote positions in the selected image / frames specified with sub-pixel resolution.
|
||||||
The origin at the TLHC of the TLHC pixel is 0.0\0.0, the BRHC of the TLHC pixel is 1.0\1.0, and the BRHC of the BRHC pixel is the number of columns\rows in the image / frames. The values must be within the range 0\0 to the number of columns\rows in the image / frames.
|
The origin at the TLHC of the TLHC pixel is 0.0\0.0, the BRHC of the TLHC pixel is 1.0\1.0, and the BRHC of the BRHC pixel is the number of columns\rows in the image / frames. The values must be within the range 0\0 to the number of columns\rows in the image / frames.
|
||||||
*/
|
*/
|
||||||
@Child(name = "coordinate", type = {DecimalType.class}, order=2, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
@Child(name = "coordinate", type = {DecimalType.class}, order=2, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||||
|
@ -1353,7 +1359,7 @@ public class ImagingSelection extends DomainResource {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {@link #coordinate} (The coordinates describing the image region. Encoded as a set of (column, row) pairs that denote positions in the selected image / frames specified with sub-pixel resolution.
|
* @return {@link #coordinate} (The coordinates describing the image region. Encoded as a set of (column, row) pairs that denote positions in the selected image / frames specified with sub-pixel resolution.
|
||||||
The origin at the TLHC of the TLHC pixel is 0.0\0.0, the BRHC of the TLHC pixel is 1.0\1.0, and the BRHC of the BRHC pixel is the number of columns\rows in the image / frames. The values must be within the range 0\0 to the number of columns\rows in the image / frames.)
|
The origin at the TLHC of the TLHC pixel is 0.0\0.0, the BRHC of the TLHC pixel is 1.0\1.0, and the BRHC of the BRHC pixel is the number of columns\rows in the image / frames. The values must be within the range 0\0 to the number of columns\rows in the image / frames.)
|
||||||
*/
|
*/
|
||||||
public List<DecimalType> getCoordinate() {
|
public List<DecimalType> getCoordinate() {
|
||||||
|
@ -1380,7 +1386,7 @@ public class ImagingSelection extends DomainResource {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {@link #coordinate} (The coordinates describing the image region. Encoded as a set of (column, row) pairs that denote positions in the selected image / frames specified with sub-pixel resolution.
|
* @return {@link #coordinate} (The coordinates describing the image region. Encoded as a set of (column, row) pairs that denote positions in the selected image / frames specified with sub-pixel resolution.
|
||||||
The origin at the TLHC of the TLHC pixel is 0.0\0.0, the BRHC of the TLHC pixel is 1.0\1.0, and the BRHC of the BRHC pixel is the number of columns\rows in the image / frames. The values must be within the range 0\0 to the number of columns\rows in the image / frames.)
|
The origin at the TLHC of the TLHC pixel is 0.0\0.0, the BRHC of the TLHC pixel is 1.0\1.0, and the BRHC of the BRHC pixel is the number of columns\rows in the image / frames. The values must be within the range 0\0 to the number of columns\rows in the image / frames.)
|
||||||
*/
|
*/
|
||||||
public DecimalType addCoordinateElement() {//2
|
public DecimalType addCoordinateElement() {//2
|
||||||
|
@ -1392,7 +1398,7 @@ public class ImagingSelection extends DomainResource {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param value {@link #coordinate} (The coordinates describing the image region. Encoded as a set of (column, row) pairs that denote positions in the selected image / frames specified with sub-pixel resolution.
|
* @param value {@link #coordinate} (The coordinates describing the image region. Encoded as a set of (column, row) pairs that denote positions in the selected image / frames specified with sub-pixel resolution.
|
||||||
The origin at the TLHC of the TLHC pixel is 0.0\0.0, the BRHC of the TLHC pixel is 1.0\1.0, and the BRHC of the BRHC pixel is the number of columns\rows in the image / frames. The values must be within the range 0\0 to the number of columns\rows in the image / frames.)
|
The origin at the TLHC of the TLHC pixel is 0.0\0.0, the BRHC of the TLHC pixel is 1.0\1.0, and the BRHC of the BRHC pixel is the number of columns\rows in the image / frames. The values must be within the range 0\0 to the number of columns\rows in the image / frames.)
|
||||||
*/
|
*/
|
||||||
public ImageRegion2DComponent addCoordinate(BigDecimal value) { //1
|
public ImageRegion2DComponent addCoordinate(BigDecimal value) { //1
|
||||||
|
@ -1405,7 +1411,7 @@ public class ImagingSelection extends DomainResource {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param value {@link #coordinate} (The coordinates describing the image region. Encoded as a set of (column, row) pairs that denote positions in the selected image / frames specified with sub-pixel resolution.
|
* @param value {@link #coordinate} (The coordinates describing the image region. Encoded as a set of (column, row) pairs that denote positions in the selected image / frames specified with sub-pixel resolution.
|
||||||
The origin at the TLHC of the TLHC pixel is 0.0\0.0, the BRHC of the TLHC pixel is 1.0\1.0, and the BRHC of the BRHC pixel is the number of columns\rows in the image / frames. The values must be within the range 0\0 to the number of columns\rows in the image / frames.)
|
The origin at the TLHC of the TLHC pixel is 0.0\0.0, the BRHC of the TLHC pixel is 1.0\1.0, and the BRHC of the BRHC pixel is the number of columns\rows in the image / frames. The values must be within the range 0\0 to the number of columns\rows in the image / frames.)
|
||||||
*/
|
*/
|
||||||
public boolean hasCoordinate(BigDecimal value) {
|
public boolean hasCoordinate(BigDecimal value) {
|
||||||
|
|
|
@ -180,7 +180,9 @@ public class ImagingStudy extends DomainResource {
|
||||||
throw new FHIRException("Unknown ImagingStudyStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown ImagingStudyStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ImagingStudyStatus code) {
|
public String toCode(ImagingStudyStatus code) {
|
||||||
if (code == ImagingStudyStatus.REGISTERED)
|
if (code == ImagingStudyStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ImagingStudyStatus.REGISTERED)
|
||||||
return "registered";
|
return "registered";
|
||||||
if (code == ImagingStudyStatus.AVAILABLE)
|
if (code == ImagingStudyStatus.AVAILABLE)
|
||||||
return "available";
|
return "available";
|
||||||
|
@ -191,7 +193,7 @@ public class ImagingStudy extends DomainResource {
|
||||||
if (code == ImagingStudyStatus.UNKNOWN)
|
if (code == ImagingStudyStatus.UNKNOWN)
|
||||||
return "unknown";
|
return "unknown";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ImagingStudyStatus code) {
|
public String toSystem(ImagingStudyStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -152,14 +152,16 @@ public class Immunization extends DomainResource {
|
||||||
throw new FHIRException("Unknown ImmunizationStatusCodes code '"+codeString+"'");
|
throw new FHIRException("Unknown ImmunizationStatusCodes code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ImmunizationStatusCodes code) {
|
public String toCode(ImmunizationStatusCodes code) {
|
||||||
if (code == ImmunizationStatusCodes.COMPLETED)
|
if (code == ImmunizationStatusCodes.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ImmunizationStatusCodes.COMPLETED)
|
||||||
return "completed";
|
return "completed";
|
||||||
if (code == ImmunizationStatusCodes.ENTEREDINERROR)
|
if (code == ImmunizationStatusCodes.ENTEREDINERROR)
|
||||||
return "entered-in-error";
|
return "entered-in-error";
|
||||||
if (code == ImmunizationStatusCodes.NOTDONE)
|
if (code == ImmunizationStatusCodes.NOTDONE)
|
||||||
return "not-done";
|
return "not-done";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ImmunizationStatusCodes code) {
|
public String toSystem(ImmunizationStatusCodes code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,12 +138,14 @@ public class ImmunizationEvaluation extends DomainResource {
|
||||||
throw new FHIRException("Unknown ImmunizationEvaluationStatusCodes code '"+codeString+"'");
|
throw new FHIRException("Unknown ImmunizationEvaluationStatusCodes code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ImmunizationEvaluationStatusCodes code) {
|
public String toCode(ImmunizationEvaluationStatusCodes code) {
|
||||||
if (code == ImmunizationEvaluationStatusCodes.COMPLETED)
|
if (code == ImmunizationEvaluationStatusCodes.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ImmunizationEvaluationStatusCodes.COMPLETED)
|
||||||
return "completed";
|
return "completed";
|
||||||
if (code == ImmunizationEvaluationStatusCodes.ENTEREDINERROR)
|
if (code == ImmunizationEvaluationStatusCodes.ENTEREDINERROR)
|
||||||
return "entered-in-error";
|
return "entered-in-error";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ImmunizationEvaluationStatusCodes code) {
|
public String toSystem(ImmunizationEvaluationStatusCodes code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -166,7 +166,9 @@ public class ImplementationGuide extends CanonicalResource {
|
||||||
throw new FHIRException("Unknown GuidePageGeneration code '"+codeString+"'");
|
throw new FHIRException("Unknown GuidePageGeneration code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(GuidePageGeneration code) {
|
public String toCode(GuidePageGeneration code) {
|
||||||
if (code == GuidePageGeneration.HTML)
|
if (code == GuidePageGeneration.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == GuidePageGeneration.HTML)
|
||||||
return "html";
|
return "html";
|
||||||
if (code == GuidePageGeneration.MARKDOWN)
|
if (code == GuidePageGeneration.MARKDOWN)
|
||||||
return "markdown";
|
return "markdown";
|
||||||
|
@ -175,7 +177,7 @@ public class ImplementationGuide extends CanonicalResource {
|
||||||
if (code == GuidePageGeneration.GENERATED)
|
if (code == GuidePageGeneration.GENERATED)
|
||||||
return "generated";
|
return "generated";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(GuidePageGeneration code) {
|
public String toSystem(GuidePageGeneration code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -8053,7 +8055,9 @@ public class ImplementationGuide extends CanonicalResource {
|
||||||
throw new FHIRException("Unknown SPDXLicense code '"+codeString+"'");
|
throw new FHIRException("Unknown SPDXLicense code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(SPDXLicense code) {
|
public String toCode(SPDXLicense code) {
|
||||||
if (code == SPDXLicense._0BSD)
|
if (code == SPDXLicense.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == SPDXLicense._0BSD)
|
||||||
return "0BSD";
|
return "0BSD";
|
||||||
if (code == SPDXLicense.AAL)
|
if (code == SPDXLicense.AAL)
|
||||||
return "AAL";
|
return "AAL";
|
||||||
|
@ -9170,7 +9174,7 @@ public class ImplementationGuide extends CanonicalResource {
|
||||||
if (code == SPDXLicense.ZPL_2_1)
|
if (code == SPDXLicense.ZPL_2_1)
|
||||||
return "ZPL-2.1";
|
return "ZPL-2.1";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(SPDXLicense code) {
|
public String toSystem(SPDXLicense code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -152,14 +152,16 @@ public class Ingredient extends DomainResource {
|
||||||
throw new FHIRException("Unknown IngredientManufacturerRole code '"+codeString+"'");
|
throw new FHIRException("Unknown IngredientManufacturerRole code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(IngredientManufacturerRole code) {
|
public String toCode(IngredientManufacturerRole code) {
|
||||||
if (code == IngredientManufacturerRole.ALLOWED)
|
if (code == IngredientManufacturerRole.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == IngredientManufacturerRole.ALLOWED)
|
||||||
return "allowed";
|
return "allowed";
|
||||||
if (code == IngredientManufacturerRole.POSSIBLE)
|
if (code == IngredientManufacturerRole.POSSIBLE)
|
||||||
return "possible";
|
return "possible";
|
||||||
if (code == IngredientManufacturerRole.ACTUAL)
|
if (code == IngredientManufacturerRole.ACTUAL)
|
||||||
return "actual";
|
return "actual";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(IngredientManufacturerRole code) {
|
public String toSystem(IngredientManufacturerRole code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -166,7 +166,9 @@ public class InventoryItem extends DomainResource {
|
||||||
throw new FHIRException("Unknown InventoryItemStatusCodes code '"+codeString+"'");
|
throw new FHIRException("Unknown InventoryItemStatusCodes code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(InventoryItemStatusCodes code) {
|
public String toCode(InventoryItemStatusCodes code) {
|
||||||
if (code == InventoryItemStatusCodes.ACTIVE)
|
if (code == InventoryItemStatusCodes.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == InventoryItemStatusCodes.ACTIVE)
|
||||||
return "active";
|
return "active";
|
||||||
if (code == InventoryItemStatusCodes.INACTIVE)
|
if (code == InventoryItemStatusCodes.INACTIVE)
|
||||||
return "inactive";
|
return "inactive";
|
||||||
|
@ -175,7 +177,7 @@ public class InventoryItem extends DomainResource {
|
||||||
if (code == InventoryItemStatusCodes.UNKNOWN)
|
if (code == InventoryItemStatusCodes.UNKNOWN)
|
||||||
return "unknown";
|
return "unknown";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(InventoryItemStatusCodes code) {
|
public String toSystem(InventoryItemStatusCodes code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,12 +138,14 @@ public class InventoryReport extends DomainResource {
|
||||||
throw new FHIRException("Unknown InventoryCountType code '"+codeString+"'");
|
throw new FHIRException("Unknown InventoryCountType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(InventoryCountType code) {
|
public String toCode(InventoryCountType code) {
|
||||||
if (code == InventoryCountType.SNAPSHOT)
|
if (code == InventoryCountType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == InventoryCountType.SNAPSHOT)
|
||||||
return "snapshot";
|
return "snapshot";
|
||||||
if (code == InventoryCountType.DIFFERENCE)
|
if (code == InventoryCountType.DIFFERENCE)
|
||||||
return "difference";
|
return "difference";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(InventoryCountType code) {
|
public String toSystem(InventoryCountType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -262,7 +264,9 @@ public class InventoryReport extends DomainResource {
|
||||||
throw new FHIRException("Unknown InventoryReportStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown InventoryReportStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(InventoryReportStatus code) {
|
public String toCode(InventoryReportStatus code) {
|
||||||
if (code == InventoryReportStatus.DRAFT)
|
if (code == InventoryReportStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == InventoryReportStatus.DRAFT)
|
||||||
return "draft";
|
return "draft";
|
||||||
if (code == InventoryReportStatus.REQUESTED)
|
if (code == InventoryReportStatus.REQUESTED)
|
||||||
return "requested";
|
return "requested";
|
||||||
|
@ -271,7 +275,7 @@ public class InventoryReport extends DomainResource {
|
||||||
if (code == InventoryReportStatus.ENTEREDINERROR)
|
if (code == InventoryReportStatus.ENTEREDINERROR)
|
||||||
return "entered-in-error";
|
return "entered-in-error";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(InventoryReportStatus code) {
|
public String toSystem(InventoryReportStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -180,7 +180,9 @@ public class Invoice extends DomainResource {
|
||||||
throw new FHIRException("Unknown InvoiceStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown InvoiceStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(InvoiceStatus code) {
|
public String toCode(InvoiceStatus code) {
|
||||||
if (code == InvoiceStatus.DRAFT)
|
if (code == InvoiceStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == InvoiceStatus.DRAFT)
|
||||||
return "draft";
|
return "draft";
|
||||||
if (code == InvoiceStatus.ISSUED)
|
if (code == InvoiceStatus.ISSUED)
|
||||||
return "issued";
|
return "issued";
|
||||||
|
@ -191,7 +193,7 @@ public class Invoice extends DomainResource {
|
||||||
if (code == InvoiceStatus.ENTEREDINERROR)
|
if (code == InvoiceStatus.ENTEREDINERROR)
|
||||||
return "entered-in-error";
|
return "entered-in-error";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(InvoiceStatus code) {
|
public String toSystem(InvoiceStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -152,14 +152,16 @@ public class Linkage extends DomainResource {
|
||||||
throw new FHIRException("Unknown LinkageType code '"+codeString+"'");
|
throw new FHIRException("Unknown LinkageType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(LinkageType code) {
|
public String toCode(LinkageType code) {
|
||||||
if (code == LinkageType.SOURCE)
|
if (code == LinkageType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == LinkageType.SOURCE)
|
||||||
return "source";
|
return "source";
|
||||||
if (code == LinkageType.ALTERNATE)
|
if (code == LinkageType.ALTERNATE)
|
||||||
return "alternate";
|
return "alternate";
|
||||||
if (code == LinkageType.HISTORICAL)
|
if (code == LinkageType.HISTORICAL)
|
||||||
return "historical";
|
return "historical";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(LinkageType code) {
|
public String toSystem(LinkageType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -152,14 +152,16 @@ public class ListResource extends DomainResource {
|
||||||
throw new FHIRException("Unknown ListStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown ListStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ListStatus code) {
|
public String toCode(ListStatus code) {
|
||||||
if (code == ListStatus.CURRENT)
|
if (code == ListStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ListStatus.CURRENT)
|
||||||
return "current";
|
return "current";
|
||||||
if (code == ListStatus.RETIRED)
|
if (code == ListStatus.RETIRED)
|
||||||
return "retired";
|
return "retired";
|
||||||
if (code == ListStatus.ENTEREDINERROR)
|
if (code == ListStatus.ENTEREDINERROR)
|
||||||
return "entered-in-error";
|
return "entered-in-error";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ListStatus code) {
|
public String toSystem(ListStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -152,14 +152,16 @@ public class MeasureReport extends DomainResource {
|
||||||
throw new FHIRException("Unknown MeasureReportStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown MeasureReportStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(MeasureReportStatus code) {
|
public String toCode(MeasureReportStatus code) {
|
||||||
if (code == MeasureReportStatus.COMPLETE)
|
if (code == MeasureReportStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == MeasureReportStatus.COMPLETE)
|
||||||
return "complete";
|
return "complete";
|
||||||
if (code == MeasureReportStatus.PENDING)
|
if (code == MeasureReportStatus.PENDING)
|
||||||
return "pending";
|
return "pending";
|
||||||
if (code == MeasureReportStatus.ERROR)
|
if (code == MeasureReportStatus.ERROR)
|
||||||
return "error";
|
return "error";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(MeasureReportStatus code) {
|
public String toSystem(MeasureReportStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -278,7 +280,9 @@ public class MeasureReport extends DomainResource {
|
||||||
throw new FHIRException("Unknown MeasureReportType code '"+codeString+"'");
|
throw new FHIRException("Unknown MeasureReportType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(MeasureReportType code) {
|
public String toCode(MeasureReportType code) {
|
||||||
if (code == MeasureReportType.INDIVIDUAL)
|
if (code == MeasureReportType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == MeasureReportType.INDIVIDUAL)
|
||||||
return "individual";
|
return "individual";
|
||||||
if (code == MeasureReportType.SUBJECTLIST)
|
if (code == MeasureReportType.SUBJECTLIST)
|
||||||
return "subject-list";
|
return "subject-list";
|
||||||
|
@ -287,7 +291,7 @@ public class MeasureReport extends DomainResource {
|
||||||
if (code == MeasureReportType.DATAEXCHANGE)
|
if (code == MeasureReportType.DATAEXCHANGE)
|
||||||
return "data-exchange";
|
return "data-exchange";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(MeasureReportType code) {
|
public String toSystem(MeasureReportType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -378,12 +382,14 @@ public class MeasureReport extends DomainResource {
|
||||||
throw new FHIRException("Unknown SubmitDataUpdateType code '"+codeString+"'");
|
throw new FHIRException("Unknown SubmitDataUpdateType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(SubmitDataUpdateType code) {
|
public String toCode(SubmitDataUpdateType code) {
|
||||||
if (code == SubmitDataUpdateType.INCREMENTAL)
|
if (code == SubmitDataUpdateType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == SubmitDataUpdateType.INCREMENTAL)
|
||||||
return "incremental";
|
return "incremental";
|
||||||
if (code == SubmitDataUpdateType.SNAPSHOT)
|
if (code == SubmitDataUpdateType.SNAPSHOT)
|
||||||
return "snapshot";
|
return "snapshot";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(SubmitDataUpdateType code) {
|
public String toSystem(SubmitDataUpdateType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -152,14 +152,16 @@ public class Medication extends DomainResource {
|
||||||
throw new FHIRException("Unknown MedicationStatusCodes code '"+codeString+"'");
|
throw new FHIRException("Unknown MedicationStatusCodes code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(MedicationStatusCodes code) {
|
public String toCode(MedicationStatusCodes code) {
|
||||||
if (code == MedicationStatusCodes.ACTIVE)
|
if (code == MedicationStatusCodes.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == MedicationStatusCodes.ACTIVE)
|
||||||
return "active";
|
return "active";
|
||||||
if (code == MedicationStatusCodes.INACTIVE)
|
if (code == MedicationStatusCodes.INACTIVE)
|
||||||
return "inactive";
|
return "inactive";
|
||||||
if (code == MedicationStatusCodes.ENTEREDINERROR)
|
if (code == MedicationStatusCodes.ENTEREDINERROR)
|
||||||
return "entered-in-error";
|
return "entered-in-error";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(MedicationStatusCodes code) {
|
public String toSystem(MedicationStatusCodes code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -236,7 +236,9 @@ public class MedicationDispense extends DomainResource {
|
||||||
throw new FHIRException("Unknown MedicationDispenseStatusCodes code '"+codeString+"'");
|
throw new FHIRException("Unknown MedicationDispenseStatusCodes code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(MedicationDispenseStatusCodes code) {
|
public String toCode(MedicationDispenseStatusCodes code) {
|
||||||
if (code == MedicationDispenseStatusCodes.PREPARATION)
|
if (code == MedicationDispenseStatusCodes.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == MedicationDispenseStatusCodes.PREPARATION)
|
||||||
return "preparation";
|
return "preparation";
|
||||||
if (code == MedicationDispenseStatusCodes.INPROGRESS)
|
if (code == MedicationDispenseStatusCodes.INPROGRESS)
|
||||||
return "in-progress";
|
return "in-progress";
|
||||||
|
@ -255,7 +257,7 @@ public class MedicationDispense extends DomainResource {
|
||||||
if (code == MedicationDispenseStatusCodes.UNKNOWN)
|
if (code == MedicationDispenseStatusCodes.UNKNOWN)
|
||||||
return "unknown";
|
return "unknown";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(MedicationDispenseStatusCodes code) {
|
public String toSystem(MedicationDispenseStatusCodes code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -152,14 +152,16 @@ public class MedicationKnowledge extends DomainResource {
|
||||||
throw new FHIRException("Unknown MedicationKnowledgeStatusCodes code '"+codeString+"'");
|
throw new FHIRException("Unknown MedicationKnowledgeStatusCodes code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(MedicationKnowledgeStatusCodes code) {
|
public String toCode(MedicationKnowledgeStatusCodes code) {
|
||||||
if (code == MedicationKnowledgeStatusCodes.ACTIVE)
|
if (code == MedicationKnowledgeStatusCodes.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == MedicationKnowledgeStatusCodes.ACTIVE)
|
||||||
return "active";
|
return "active";
|
||||||
if (code == MedicationKnowledgeStatusCodes.ENTEREDINERROR)
|
if (code == MedicationKnowledgeStatusCodes.ENTEREDINERROR)
|
||||||
return "entered-in-error";
|
return "entered-in-error";
|
||||||
if (code == MedicationKnowledgeStatusCodes.INACTIVE)
|
if (code == MedicationKnowledgeStatusCodes.INACTIVE)
|
||||||
return "inactive";
|
return "inactive";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(MedicationKnowledgeStatusCodes code) {
|
public String toSystem(MedicationKnowledgeStatusCodes code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -222,7 +222,9 @@ public class MedicationRequest extends DomainResource {
|
||||||
throw new FHIRException("Unknown MedicationRequestIntent code '"+codeString+"'");
|
throw new FHIRException("Unknown MedicationRequestIntent code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(MedicationRequestIntent code) {
|
public String toCode(MedicationRequestIntent code) {
|
||||||
if (code == MedicationRequestIntent.PROPOSAL)
|
if (code == MedicationRequestIntent.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == MedicationRequestIntent.PROPOSAL)
|
||||||
return "proposal";
|
return "proposal";
|
||||||
if (code == MedicationRequestIntent.PLAN)
|
if (code == MedicationRequestIntent.PLAN)
|
||||||
return "plan";
|
return "plan";
|
||||||
|
@ -239,7 +241,7 @@ public class MedicationRequest extends DomainResource {
|
||||||
if (code == MedicationRequestIntent.OPTION)
|
if (code == MedicationRequestIntent.OPTION)
|
||||||
return "option";
|
return "option";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(MedicationRequestIntent code) {
|
public String toSystem(MedicationRequestIntent code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -428,7 +430,9 @@ public class MedicationRequest extends DomainResource {
|
||||||
throw new FHIRException("Unknown MedicationrequestStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown MedicationrequestStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(MedicationrequestStatus code) {
|
public String toCode(MedicationrequestStatus code) {
|
||||||
if (code == MedicationrequestStatus.ACTIVE)
|
if (code == MedicationrequestStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == MedicationrequestStatus.ACTIVE)
|
||||||
return "active";
|
return "active";
|
||||||
if (code == MedicationrequestStatus.ONHOLD)
|
if (code == MedicationrequestStatus.ONHOLD)
|
||||||
return "on-hold";
|
return "on-hold";
|
||||||
|
@ -447,7 +451,7 @@ public class MedicationRequest extends DomainResource {
|
||||||
if (code == MedicationrequestStatus.UNKNOWN)
|
if (code == MedicationrequestStatus.UNKNOWN)
|
||||||
return "unknown";
|
return "unknown";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(MedicationrequestStatus code) {
|
public String toSystem(MedicationrequestStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -154,14 +154,16 @@ public class MedicationStatement extends DomainResource {
|
||||||
throw new FHIRException("Unknown MedicationStatementStatusCodes code '"+codeString+"'");
|
throw new FHIRException("Unknown MedicationStatementStatusCodes code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(MedicationStatementStatusCodes code) {
|
public String toCode(MedicationStatementStatusCodes code) {
|
||||||
if (code == MedicationStatementStatusCodes.RECORDED)
|
if (code == MedicationStatementStatusCodes.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == MedicationStatementStatusCodes.RECORDED)
|
||||||
return "recorded";
|
return "recorded";
|
||||||
if (code == MedicationStatementStatusCodes.ENTEREDINERROR)
|
if (code == MedicationStatementStatusCodes.ENTEREDINERROR)
|
||||||
return "entered-in-error";
|
return "entered-in-error";
|
||||||
if (code == MedicationStatementStatusCodes.DRAFT)
|
if (code == MedicationStatementStatusCodes.DRAFT)
|
||||||
return "draft";
|
return "draft";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(MedicationStatementStatusCodes code) {
|
public String toSystem(MedicationStatementStatusCodes code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -152,14 +152,16 @@ public class MessageDefinition extends CanonicalResource {
|
||||||
throw new FHIRException("Unknown MessageSignificanceCategory code '"+codeString+"'");
|
throw new FHIRException("Unknown MessageSignificanceCategory code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(MessageSignificanceCategory code) {
|
public String toCode(MessageSignificanceCategory code) {
|
||||||
if (code == MessageSignificanceCategory.CONSEQUENCE)
|
if (code == MessageSignificanceCategory.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == MessageSignificanceCategory.CONSEQUENCE)
|
||||||
return "consequence";
|
return "consequence";
|
||||||
if (code == MessageSignificanceCategory.CURRENCY)
|
if (code == MessageSignificanceCategory.CURRENCY)
|
||||||
return "currency";
|
return "currency";
|
||||||
if (code == MessageSignificanceCategory.NOTIFICATION)
|
if (code == MessageSignificanceCategory.NOTIFICATION)
|
||||||
return "notification";
|
return "notification";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(MessageSignificanceCategory code) {
|
public String toSystem(MessageSignificanceCategory code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -278,7 +280,9 @@ public class MessageDefinition extends CanonicalResource {
|
||||||
throw new FHIRException("Unknown MessageheaderResponseRequest code '"+codeString+"'");
|
throw new FHIRException("Unknown MessageheaderResponseRequest code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(MessageheaderResponseRequest code) {
|
public String toCode(MessageheaderResponseRequest code) {
|
||||||
if (code == MessageheaderResponseRequest.ALWAYS)
|
if (code == MessageheaderResponseRequest.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == MessageheaderResponseRequest.ALWAYS)
|
||||||
return "always";
|
return "always";
|
||||||
if (code == MessageheaderResponseRequest.ONERROR)
|
if (code == MessageheaderResponseRequest.ONERROR)
|
||||||
return "on-error";
|
return "on-error";
|
||||||
|
@ -287,7 +291,7 @@ public class MessageDefinition extends CanonicalResource {
|
||||||
if (code == MessageheaderResponseRequest.ONSUCCESS)
|
if (code == MessageheaderResponseRequest.ONSUCCESS)
|
||||||
return "on-success";
|
return "on-success";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(MessageheaderResponseRequest code) {
|
public String toSystem(MessageheaderResponseRequest code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -152,14 +152,16 @@ public class MessageHeader extends DomainResource {
|
||||||
throw new FHIRException("Unknown ResponseType code '"+codeString+"'");
|
throw new FHIRException("Unknown ResponseType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ResponseType code) {
|
public String toCode(ResponseType code) {
|
||||||
if (code == ResponseType.OK)
|
if (code == ResponseType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ResponseType.OK)
|
||||||
return "ok";
|
return "ok";
|
||||||
if (code == ResponseType.TRANSIENTERROR)
|
if (code == ResponseType.TRANSIENTERROR)
|
||||||
return "transient-error";
|
return "transient-error";
|
||||||
if (code == ResponseType.FATALERROR)
|
if (code == ResponseType.FATALERROR)
|
||||||
return "fatal-error";
|
return "fatal-error";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ResponseType code) {
|
public String toSystem(ResponseType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,12 +138,14 @@ public class MolecularSequence extends DomainResource {
|
||||||
throw new FHIRException("Unknown OrientationType code '"+codeString+"'");
|
throw new FHIRException("Unknown OrientationType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(OrientationType code) {
|
public String toCode(OrientationType code) {
|
||||||
if (code == OrientationType.SENSE)
|
if (code == OrientationType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == OrientationType.SENSE)
|
||||||
return "sense";
|
return "sense";
|
||||||
if (code == OrientationType.ANTISENSE)
|
if (code == OrientationType.ANTISENSE)
|
||||||
return "antisense";
|
return "antisense";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(OrientationType code) {
|
public String toSystem(OrientationType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -248,14 +250,16 @@ public class MolecularSequence extends DomainResource {
|
||||||
throw new FHIRException("Unknown SequenceType code '"+codeString+"'");
|
throw new FHIRException("Unknown SequenceType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(SequenceType code) {
|
public String toCode(SequenceType code) {
|
||||||
if (code == SequenceType.AA)
|
if (code == SequenceType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == SequenceType.AA)
|
||||||
return "aa";
|
return "aa";
|
||||||
if (code == SequenceType.DNA)
|
if (code == SequenceType.DNA)
|
||||||
return "dna";
|
return "dna";
|
||||||
if (code == SequenceType.RNA)
|
if (code == SequenceType.RNA)
|
||||||
return "rna";
|
return "rna";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(SequenceType code) {
|
public String toSystem(SequenceType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -346,12 +350,14 @@ public class MolecularSequence extends DomainResource {
|
||||||
throw new FHIRException("Unknown StrandType code '"+codeString+"'");
|
throw new FHIRException("Unknown StrandType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(StrandType code) {
|
public String toCode(StrandType code) {
|
||||||
if (code == StrandType.WATSON)
|
if (code == StrandType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == StrandType.WATSON)
|
||||||
return "watson";
|
return "watson";
|
||||||
if (code == StrandType.CRICK)
|
if (code == StrandType.CRICK)
|
||||||
return "crick";
|
return "crick";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(StrandType code) {
|
public String toSystem(StrandType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -193,7 +193,9 @@ public class MonetaryComponent extends DataType implements ICompositeType {
|
||||||
throw new FHIRException("Unknown PriceComponentType code '"+codeString+"'");
|
throw new FHIRException("Unknown PriceComponentType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(PriceComponentType code) {
|
public String toCode(PriceComponentType code) {
|
||||||
if (code == PriceComponentType.BASE)
|
if (code == PriceComponentType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == PriceComponentType.BASE)
|
||||||
return "base";
|
return "base";
|
||||||
if (code == PriceComponentType.SURCHARGE)
|
if (code == PriceComponentType.SURCHARGE)
|
||||||
return "surcharge";
|
return "surcharge";
|
||||||
|
@ -206,7 +208,7 @@ public class MonetaryComponent extends DataType implements ICompositeType {
|
||||||
if (code == PriceComponentType.INFORMATIONAL)
|
if (code == PriceComponentType.INFORMATIONAL)
|
||||||
return "informational";
|
return "informational";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(PriceComponentType code) {
|
public String toSystem(PriceComponentType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -194,7 +194,9 @@ public class NamingSystem extends MetadataResource {
|
||||||
throw new FHIRException("Unknown NamingSystemIdentifierType code '"+codeString+"'");
|
throw new FHIRException("Unknown NamingSystemIdentifierType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(NamingSystemIdentifierType code) {
|
public String toCode(NamingSystemIdentifierType code) {
|
||||||
if (code == NamingSystemIdentifierType.OID)
|
if (code == NamingSystemIdentifierType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == NamingSystemIdentifierType.OID)
|
||||||
return "oid";
|
return "oid";
|
||||||
if (code == NamingSystemIdentifierType.UUID)
|
if (code == NamingSystemIdentifierType.UUID)
|
||||||
return "uuid";
|
return "uuid";
|
||||||
|
@ -207,7 +209,7 @@ public class NamingSystem extends MetadataResource {
|
||||||
if (code == NamingSystemIdentifierType.OTHER)
|
if (code == NamingSystemIdentifierType.OTHER)
|
||||||
return "other";
|
return "other";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(NamingSystemIdentifierType code) {
|
public String toSystem(NamingSystemIdentifierType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -312,7 +314,9 @@ public class NamingSystem extends MetadataResource {
|
||||||
throw new FHIRException("Unknown NamingSystemType code '"+codeString+"'");
|
throw new FHIRException("Unknown NamingSystemType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(NamingSystemType code) {
|
public String toCode(NamingSystemType code) {
|
||||||
if (code == NamingSystemType.NULL)
|
if (code == NamingSystemType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == NamingSystemType.NULL)
|
||||||
return null;
|
return null;
|
||||||
if (code == NamingSystemType.CODESYSTEM)
|
if (code == NamingSystemType.CODESYSTEM)
|
||||||
return "codesystem";
|
return "codesystem";
|
||||||
|
@ -321,7 +325,7 @@ public class NamingSystem extends MetadataResource {
|
||||||
if (code == NamingSystemType.ROOT)
|
if (code == NamingSystemType.ROOT)
|
||||||
return "root";
|
return "root";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(NamingSystemType code) {
|
public String toSystem(NamingSystemType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -167,7 +167,9 @@ public class Narrative extends BaseNarrative implements INarrative {
|
||||||
throw new FHIRException("Unknown NarrativeStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown NarrativeStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(NarrativeStatus code) {
|
public String toCode(NarrativeStatus code) {
|
||||||
if (code == NarrativeStatus.GENERATED)
|
if (code == NarrativeStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == NarrativeStatus.GENERATED)
|
||||||
return "generated";
|
return "generated";
|
||||||
if (code == NarrativeStatus.EXTENSIONS)
|
if (code == NarrativeStatus.EXTENSIONS)
|
||||||
return "extensions";
|
return "extensions";
|
||||||
|
@ -176,7 +178,7 @@ public class Narrative extends BaseNarrative implements INarrative {
|
||||||
if (code == NarrativeStatus.EMPTY)
|
if (code == NarrativeStatus.EMPTY)
|
||||||
return "empty";
|
return "empty";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(NarrativeStatus code) {
|
public String toSystem(NarrativeStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -287,7 +289,7 @@ public class Narrative extends BaseNarrative implements INarrative {
|
||||||
protected void listChildren(List<Property> children) {
|
protected void listChildren(List<Property> children) {
|
||||||
super.listChildren(children);
|
super.listChildren(children);
|
||||||
children.add(new Property("status", "code", "The status of the narrative - whether it's entirely generated (from just the defined data or the extensions too), or whether a human authored it and it may contain additional data.", 0, 1, status));
|
children.add(new Property("status", "code", "The status of the narrative - whether it's entirely generated (from just the defined data or the extensions too), or whether a human authored it and it may contain additional data.", 0, 1, status));
|
||||||
children.add(new Property("div", "xhtml", "he actual narrative content, a stripped down version of XHTML", 0, 1, new XhtmlType(this)));
|
children.add(new Property("div", "xhtml", "he actual narrative content, a stripped down version of XHTML", 0, 1, new XhtmlType(this)));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -152,14 +152,16 @@ public class NutritionProduct extends DomainResource {
|
||||||
throw new FHIRException("Unknown NutritionProductStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown NutritionProductStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(NutritionProductStatus code) {
|
public String toCode(NutritionProductStatus code) {
|
||||||
if (code == NutritionProductStatus.ACTIVE)
|
if (code == NutritionProductStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == NutritionProductStatus.ACTIVE)
|
||||||
return "active";
|
return "active";
|
||||||
if (code == NutritionProductStatus.INACTIVE)
|
if (code == NutritionProductStatus.INACTIVE)
|
||||||
return "inactive";
|
return "inactive";
|
||||||
if (code == NutritionProductStatus.ENTEREDINERROR)
|
if (code == NutritionProductStatus.ENTEREDINERROR)
|
||||||
return "entered-in-error";
|
return "entered-in-error";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(NutritionProductStatus code) {
|
public String toSystem(NutritionProductStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -152,14 +152,16 @@ public class Observation extends DomainResource {
|
||||||
throw new FHIRException("Unknown TriggeredBytype code '"+codeString+"'");
|
throw new FHIRException("Unknown TriggeredBytype code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(TriggeredBytype code) {
|
public String toCode(TriggeredBytype code) {
|
||||||
if (code == TriggeredBytype.REFLEX)
|
if (code == TriggeredBytype.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == TriggeredBytype.REFLEX)
|
||||||
return "reflex";
|
return "reflex";
|
||||||
if (code == TriggeredBytype.REPEAT)
|
if (code == TriggeredBytype.REPEAT)
|
||||||
return "repeat";
|
return "repeat";
|
||||||
if (code == TriggeredBytype.RERUN)
|
if (code == TriggeredBytype.RERUN)
|
||||||
return "re-run";
|
return "re-run";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(TriggeredBytype code) {
|
public String toSystem(TriggeredBytype code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -264,7 +264,9 @@ public class ObservationDefinition extends DomainResource {
|
||||||
throw new FHIRException("Unknown ObservationDataType code '"+codeString+"'");
|
throw new FHIRException("Unknown ObservationDataType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ObservationDataType code) {
|
public String toCode(ObservationDataType code) {
|
||||||
if (code == ObservationDataType.QUANTITY)
|
if (code == ObservationDataType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ObservationDataType.QUANTITY)
|
||||||
return "Quantity";
|
return "Quantity";
|
||||||
if (code == ObservationDataType.CODEABLECONCEPT)
|
if (code == ObservationDataType.CODEABLECONCEPT)
|
||||||
return "CodeableConcept";
|
return "CodeableConcept";
|
||||||
|
@ -287,7 +289,7 @@ public class ObservationDefinition extends DomainResource {
|
||||||
if (code == ObservationDataType.PERIOD)
|
if (code == ObservationDataType.PERIOD)
|
||||||
return "Period";
|
return "Period";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ObservationDataType code) {
|
public String toSystem(ObservationDataType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -392,14 +394,16 @@ public class ObservationDefinition extends DomainResource {
|
||||||
throw new FHIRException("Unknown ObservationRangeCategory code '"+codeString+"'");
|
throw new FHIRException("Unknown ObservationRangeCategory code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ObservationRangeCategory code) {
|
public String toCode(ObservationRangeCategory code) {
|
||||||
if (code == ObservationRangeCategory.REFERENCE)
|
if (code == ObservationRangeCategory.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ObservationRangeCategory.REFERENCE)
|
||||||
return "reference";
|
return "reference";
|
||||||
if (code == ObservationRangeCategory.CRITICAL)
|
if (code == ObservationRangeCategory.CRITICAL)
|
||||||
return "critical";
|
return "critical";
|
||||||
if (code == ObservationRangeCategory.ABSOLUTE)
|
if (code == ObservationRangeCategory.ABSOLUTE)
|
||||||
return "absolute";
|
return "absolute";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ObservationRangeCategory code) {
|
public String toSystem(ObservationRangeCategory code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,12 +138,14 @@ public class OperationDefinition extends CanonicalResource {
|
||||||
throw new FHIRException("Unknown OperationKind code '"+codeString+"'");
|
throw new FHIRException("Unknown OperationKind code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(OperationKind code) {
|
public String toCode(OperationKind code) {
|
||||||
if (code == OperationKind.OPERATION)
|
if (code == OperationKind.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == OperationKind.OPERATION)
|
||||||
return "operation";
|
return "operation";
|
||||||
if (code == OperationKind.QUERY)
|
if (code == OperationKind.QUERY)
|
||||||
return "query";
|
return "query";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(OperationKind code) {
|
public String toSystem(OperationKind code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -248,14 +250,16 @@ public class OperationDefinition extends CanonicalResource {
|
||||||
throw new FHIRException("Unknown OperationParameterScope code '"+codeString+"'");
|
throw new FHIRException("Unknown OperationParameterScope code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(OperationParameterScope code) {
|
public String toCode(OperationParameterScope code) {
|
||||||
if (code == OperationParameterScope.INSTANCE)
|
if (code == OperationParameterScope.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == OperationParameterScope.INSTANCE)
|
||||||
return "instance";
|
return "instance";
|
||||||
if (code == OperationParameterScope.TYPE)
|
if (code == OperationParameterScope.TYPE)
|
||||||
return "type";
|
return "type";
|
||||||
if (code == OperationParameterScope.SYSTEM)
|
if (code == OperationParameterScope.SYSTEM)
|
||||||
return "system";
|
return "system";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(OperationParameterScope code) {
|
public String toSystem(OperationParameterScope code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -185,7 +185,9 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
|
||||||
throw new FHIRException("Unknown IssueSeverity code '"+codeString+"'");
|
throw new FHIRException("Unknown IssueSeverity code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(IssueSeverity code) {
|
public String toCode(IssueSeverity code) {
|
||||||
if (code == IssueSeverity.FATAL)
|
if (code == IssueSeverity.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == IssueSeverity.FATAL)
|
||||||
return "fatal";
|
return "fatal";
|
||||||
if (code == IssueSeverity.ERROR)
|
if (code == IssueSeverity.ERROR)
|
||||||
return "error";
|
return "error";
|
||||||
|
@ -196,7 +198,7 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
|
||||||
if (code == IssueSeverity.SUCCESS)
|
if (code == IssueSeverity.SUCCESS)
|
||||||
return "success";
|
return "success";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(IssueSeverity code) {
|
public String toSystem(IssueSeverity code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -721,7 +723,9 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
|
||||||
throw new FHIRException("Unknown IssueType code '"+codeString+"'");
|
throw new FHIRException("Unknown IssueType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(IssueType code) {
|
public String toCode(IssueType code) {
|
||||||
if (code == IssueType.INVALID)
|
if (code == IssueType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == IssueType.INVALID)
|
||||||
return "invalid";
|
return "invalid";
|
||||||
if (code == IssueType.STRUCTURE)
|
if (code == IssueType.STRUCTURE)
|
||||||
return "structure";
|
return "structure";
|
||||||
|
@ -788,7 +792,7 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
|
||||||
if (code == IssueType.SUCCESS)
|
if (code == IssueType.SUCCESS)
|
||||||
return "success";
|
return "success";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(IssueType code) {
|
public String toSystem(IssueType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -828,8 +832,8 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
|
||||||
protected StringType diagnostics;
|
protected StringType diagnostics;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This element is deprecated because it is XML specific. It is replaced by issue.expression, which is format independent, and simpler to parse.
|
* This element is deprecated because it is XML specific. It is replaced by issue.expression, which is format independent, and simpler to parse.
|
||||||
|
|
||||||
For resource issues, this will be a simple XPath limited to element names, repetition indicators and the default child accessor that identifies one of the elements in the resource that caused this issue to be raised. For HTTP errors, will be "http." + the parameter name.
|
For resource issues, this will be a simple XPath limited to element names, repetition indicators and the default child accessor that identifies one of the elements in the resource that caused this issue to be raised. For HTTP errors, will be "http." + the parameter name.
|
||||||
*/
|
*/
|
||||||
@Child(name = "location", type = {StringType.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
|
@Child(name = "location", type = {StringType.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
|
||||||
|
@ -1025,8 +1029,8 @@ For resource issues, this will be a simple XPath limited to element names, repet
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {@link #location} (This element is deprecated because it is XML specific. It is replaced by issue.expression, which is format independent, and simpler to parse.
|
* @return {@link #location} (This element is deprecated because it is XML specific. It is replaced by issue.expression, which is format independent, and simpler to parse.
|
||||||
|
|
||||||
For resource issues, this will be a simple XPath limited to element names, repetition indicators and the default child accessor that identifies one of the elements in the resource that caused this issue to be raised. For HTTP errors, will be "http." + the parameter name.)
|
For resource issues, this will be a simple XPath limited to element names, repetition indicators and the default child accessor that identifies one of the elements in the resource that caused this issue to be raised. For HTTP errors, will be "http." + the parameter name.)
|
||||||
*/
|
*/
|
||||||
public List<StringType> getLocation() {
|
public List<StringType> getLocation() {
|
||||||
|
@ -1053,8 +1057,8 @@ For resource issues, this will be a simple XPath limited to element names, repet
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {@link #location} (This element is deprecated because it is XML specific. It is replaced by issue.expression, which is format independent, and simpler to parse.
|
* @return {@link #location} (This element is deprecated because it is XML specific. It is replaced by issue.expression, which is format independent, and simpler to parse.
|
||||||
|
|
||||||
For resource issues, this will be a simple XPath limited to element names, repetition indicators and the default child accessor that identifies one of the elements in the resource that caused this issue to be raised. For HTTP errors, will be "http." + the parameter name.)
|
For resource issues, this will be a simple XPath limited to element names, repetition indicators and the default child accessor that identifies one of the elements in the resource that caused this issue to be raised. For HTTP errors, will be "http." + the parameter name.)
|
||||||
*/
|
*/
|
||||||
public StringType addLocationElement() {//2
|
public StringType addLocationElement() {//2
|
||||||
|
@ -1066,8 +1070,8 @@ For resource issues, this will be a simple XPath limited to element names, repet
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param value {@link #location} (This element is deprecated because it is XML specific. It is replaced by issue.expression, which is format independent, and simpler to parse.
|
* @param value {@link #location} (This element is deprecated because it is XML specific. It is replaced by issue.expression, which is format independent, and simpler to parse.
|
||||||
|
|
||||||
For resource issues, this will be a simple XPath limited to element names, repetition indicators and the default child accessor that identifies one of the elements in the resource that caused this issue to be raised. For HTTP errors, will be "http." + the parameter name.)
|
For resource issues, this will be a simple XPath limited to element names, repetition indicators and the default child accessor that identifies one of the elements in the resource that caused this issue to be raised. For HTTP errors, will be "http." + the parameter name.)
|
||||||
*/
|
*/
|
||||||
public OperationOutcomeIssueComponent addLocation(String value) { //1
|
public OperationOutcomeIssueComponent addLocation(String value) { //1
|
||||||
|
@ -1080,8 +1084,8 @@ For resource issues, this will be a simple XPath limited to element names, repet
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param value {@link #location} (This element is deprecated because it is XML specific. It is replaced by issue.expression, which is format independent, and simpler to parse.
|
* @param value {@link #location} (This element is deprecated because it is XML specific. It is replaced by issue.expression, which is format independent, and simpler to parse.
|
||||||
|
|
||||||
For resource issues, this will be a simple XPath limited to element names, repetition indicators and the default child accessor that identifies one of the elements in the resource that caused this issue to be raised. For HTTP errors, will be "http." + the parameter name.)
|
For resource issues, this will be a simple XPath limited to element names, repetition indicators and the default child accessor that identifies one of the elements in the resource that caused this issue to be raised. For HTTP errors, will be "http." + the parameter name.)
|
||||||
*/
|
*/
|
||||||
public boolean hasLocation(String value) {
|
public boolean hasLocation(String value) {
|
||||||
|
@ -1373,14 +1377,14 @@ For resource issues, this will be a simple XPath limited to element names, repet
|
||||||
}
|
}
|
||||||
|
|
||||||
// added from java-adornments.txt:
|
// added from java-adornments.txt:
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
String srvr = hasExtension(ToolingExtensions.EXT_ISSUE_SERVER) ? " (from "+getExtensionString(ToolingExtensions.EXT_ISSUE_SERVER)+")" : "";
|
String srvr = hasExtension(ToolingExtensions.EXT_ISSUE_SERVER) ? " (from "+getExtensionString(ToolingExtensions.EXT_ISSUE_SERVER)+")" : "";
|
||||||
if (getExpression().size() == 1) {
|
if (getExpression().size() == 1) {
|
||||||
return getExpression().get(0)+" "+getDiagnostics()+" "+getSeverity().toCode()+"/"+getCode().toCode()+": "+getDetails().getText()+srvr;
|
return getExpression().get(0)+" "+getDiagnostics()+" "+getSeverity().toCode()+"/"+getCode().toCode()+": "+getDetails().getText()+srvr;
|
||||||
} else {
|
} else {
|
||||||
return getExpression()+" "+getDiagnostics()+" "+getSeverity().toCode()+"/"+getCode().toCode()+": "+getDetails().getText()+srvr;
|
return getExpression()+" "+getDiagnostics()+" "+getSeverity().toCode()+"/"+getCode().toCode()+": "+getDetails().getText()+srvr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isWarningOrMore() {
|
public boolean isWarningOrMore() {
|
||||||
|
|
|
@ -166,7 +166,9 @@ public class Patient extends DomainResource {
|
||||||
throw new FHIRException("Unknown LinkType code '"+codeString+"'");
|
throw new FHIRException("Unknown LinkType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(LinkType code) {
|
public String toCode(LinkType code) {
|
||||||
if (code == LinkType.REPLACEDBY)
|
if (code == LinkType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == LinkType.REPLACEDBY)
|
||||||
return "replaced-by";
|
return "replaced-by";
|
||||||
if (code == LinkType.REPLACES)
|
if (code == LinkType.REPLACES)
|
||||||
return "replaces";
|
return "replaces";
|
||||||
|
@ -175,7 +177,7 @@ public class Patient extends DomainResource {
|
||||||
if (code == LinkType.SEEALSO)
|
if (code == LinkType.SEEALSO)
|
||||||
return "seealso";
|
return "seealso";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(LinkType code) {
|
public String toSystem(LinkType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -152,14 +152,16 @@ public class PaymentReconciliation extends DomainResource {
|
||||||
throw new FHIRException("Unknown NoteType code '"+codeString+"'");
|
throw new FHIRException("Unknown NoteType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(NoteType code) {
|
public String toCode(NoteType code) {
|
||||||
if (code == NoteType.DISPLAY)
|
if (code == NoteType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == NoteType.DISPLAY)
|
||||||
return "display";
|
return "display";
|
||||||
if (code == NoteType.PRINT)
|
if (code == NoteType.PRINT)
|
||||||
return "print";
|
return "print";
|
||||||
if (code == NoteType.PRINTOPER)
|
if (code == NoteType.PRINTOPER)
|
||||||
return "printoper";
|
return "printoper";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(NoteType code) {
|
public String toSystem(NoteType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -278,7 +280,9 @@ public class PaymentReconciliation extends DomainResource {
|
||||||
throw new FHIRException("Unknown PaymentOutcome code '"+codeString+"'");
|
throw new FHIRException("Unknown PaymentOutcome code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(PaymentOutcome code) {
|
public String toCode(PaymentOutcome code) {
|
||||||
if (code == PaymentOutcome.QUEUED)
|
if (code == PaymentOutcome.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == PaymentOutcome.QUEUED)
|
||||||
return "queued";
|
return "queued";
|
||||||
if (code == PaymentOutcome.COMPLETE)
|
if (code == PaymentOutcome.COMPLETE)
|
||||||
return "complete";
|
return "complete";
|
||||||
|
@ -287,7 +291,7 @@ public class PaymentReconciliation extends DomainResource {
|
||||||
if (code == PaymentOutcome.PARTIAL)
|
if (code == PaymentOutcome.PARTIAL)
|
||||||
return "partial";
|
return "partial";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(PaymentOutcome code) {
|
public String toSystem(PaymentOutcome code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -194,7 +194,9 @@ public class Permission extends DomainResource {
|
||||||
throw new FHIRException("Unknown PermissionRuleCombining code '"+codeString+"'");
|
throw new FHIRException("Unknown PermissionRuleCombining code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(PermissionRuleCombining code) {
|
public String toCode(PermissionRuleCombining code) {
|
||||||
if (code == PermissionRuleCombining.DENYOVERRIDES)
|
if (code == PermissionRuleCombining.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == PermissionRuleCombining.DENYOVERRIDES)
|
||||||
return "deny-overrides";
|
return "deny-overrides";
|
||||||
if (code == PermissionRuleCombining.PERMITOVERRIDES)
|
if (code == PermissionRuleCombining.PERMITOVERRIDES)
|
||||||
return "permit-overrides";
|
return "permit-overrides";
|
||||||
|
@ -207,7 +209,7 @@ public class Permission extends DomainResource {
|
||||||
if (code == PermissionRuleCombining.PERMITUNLESSDENY)
|
if (code == PermissionRuleCombining.PERMITUNLESSDENY)
|
||||||
return "permit-unless-deny";
|
return "permit-unless-deny";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(PermissionRuleCombining code) {
|
public String toSystem(PermissionRuleCombining code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -326,7 +328,9 @@ public class Permission extends DomainResource {
|
||||||
throw new FHIRException("Unknown PermissionStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown PermissionStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(PermissionStatus code) {
|
public String toCode(PermissionStatus code) {
|
||||||
if (code == PermissionStatus.ACTIVE)
|
if (code == PermissionStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == PermissionStatus.ACTIVE)
|
||||||
return "active";
|
return "active";
|
||||||
if (code == PermissionStatus.ENTEREDINERROR)
|
if (code == PermissionStatus.ENTEREDINERROR)
|
||||||
return "entered-in-error";
|
return "entered-in-error";
|
||||||
|
@ -335,7 +339,7 @@ public class Permission extends DomainResource {
|
||||||
if (code == PermissionStatus.REJECTED)
|
if (code == PermissionStatus.REJECTED)
|
||||||
return "rejected";
|
return "rejected";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(PermissionStatus code) {
|
public String toSystem(PermissionStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -166,7 +166,9 @@ public class Person extends DomainResource {
|
||||||
throw new FHIRException("Unknown IdentityAssuranceLevel code '"+codeString+"'");
|
throw new FHIRException("Unknown IdentityAssuranceLevel code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(IdentityAssuranceLevel code) {
|
public String toCode(IdentityAssuranceLevel code) {
|
||||||
if (code == IdentityAssuranceLevel.LEVEL1)
|
if (code == IdentityAssuranceLevel.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == IdentityAssuranceLevel.LEVEL1)
|
||||||
return "level1";
|
return "level1";
|
||||||
if (code == IdentityAssuranceLevel.LEVEL2)
|
if (code == IdentityAssuranceLevel.LEVEL2)
|
||||||
return "level2";
|
return "level2";
|
||||||
|
@ -175,7 +177,7 @@ public class Person extends DomainResource {
|
||||||
if (code == IdentityAssuranceLevel.LEVEL4)
|
if (code == IdentityAssuranceLevel.LEVEL4)
|
||||||
return "level4";
|
return "level4";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(IdentityAssuranceLevel code) {
|
public String toSystem(IdentityAssuranceLevel code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -180,7 +180,9 @@ public class Provenance extends DomainResource {
|
||||||
throw new FHIRException("Unknown ProvenanceEntityRole code '"+codeString+"'");
|
throw new FHIRException("Unknown ProvenanceEntityRole code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ProvenanceEntityRole code) {
|
public String toCode(ProvenanceEntityRole code) {
|
||||||
if (code == ProvenanceEntityRole.REVISION)
|
if (code == ProvenanceEntityRole.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ProvenanceEntityRole.REVISION)
|
||||||
return "revision";
|
return "revision";
|
||||||
if (code == ProvenanceEntityRole.QUOTATION)
|
if (code == ProvenanceEntityRole.QUOTATION)
|
||||||
return "quotation";
|
return "quotation";
|
||||||
|
@ -191,7 +193,7 @@ public class Provenance extends DomainResource {
|
||||||
if (code == ProvenanceEntityRole.REMOVAL)
|
if (code == ProvenanceEntityRole.REMOVAL)
|
||||||
return "removal";
|
return "removal";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ProvenanceEntityRole code) {
|
public String toSystem(ProvenanceEntityRole code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,12 +138,14 @@ public class Questionnaire extends MetadataResource {
|
||||||
throw new FHIRException("Unknown EnableWhenBehavior code '"+codeString+"'");
|
throw new FHIRException("Unknown EnableWhenBehavior code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(EnableWhenBehavior code) {
|
public String toCode(EnableWhenBehavior code) {
|
||||||
if (code == EnableWhenBehavior.ALL)
|
if (code == EnableWhenBehavior.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == EnableWhenBehavior.ALL)
|
||||||
return "all";
|
return "all";
|
||||||
if (code == EnableWhenBehavior.ANY)
|
if (code == EnableWhenBehavior.ANY)
|
||||||
return "any";
|
return "any";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(EnableWhenBehavior code) {
|
public String toSystem(EnableWhenBehavior code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -248,14 +250,16 @@ public class Questionnaire extends MetadataResource {
|
||||||
throw new FHIRException("Unknown QuestionnaireAnswerConstraint code '"+codeString+"'");
|
throw new FHIRException("Unknown QuestionnaireAnswerConstraint code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(QuestionnaireAnswerConstraint code) {
|
public String toCode(QuestionnaireAnswerConstraint code) {
|
||||||
if (code == QuestionnaireAnswerConstraint.OPTIONSONLY)
|
if (code == QuestionnaireAnswerConstraint.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == QuestionnaireAnswerConstraint.OPTIONSONLY)
|
||||||
return "optionsOnly";
|
return "optionsOnly";
|
||||||
if (code == QuestionnaireAnswerConstraint.OPTIONSORTYPE)
|
if (code == QuestionnaireAnswerConstraint.OPTIONSORTYPE)
|
||||||
return "optionsOrType";
|
return "optionsOrType";
|
||||||
if (code == QuestionnaireAnswerConstraint.OPTIONSORSTRING)
|
if (code == QuestionnaireAnswerConstraint.OPTIONSORSTRING)
|
||||||
return "optionsOrString";
|
return "optionsOrString";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(QuestionnaireAnswerConstraint code) {
|
public String toSystem(QuestionnaireAnswerConstraint code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -346,12 +350,14 @@ public class Questionnaire extends MetadataResource {
|
||||||
throw new FHIRException("Unknown QuestionnaireItemDisabledDisplay code '"+codeString+"'");
|
throw new FHIRException("Unknown QuestionnaireItemDisabledDisplay code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(QuestionnaireItemDisabledDisplay code) {
|
public String toCode(QuestionnaireItemDisabledDisplay code) {
|
||||||
if (code == QuestionnaireItemDisabledDisplay.HIDDEN)
|
if (code == QuestionnaireItemDisabledDisplay.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == QuestionnaireItemDisabledDisplay.HIDDEN)
|
||||||
return "hidden";
|
return "hidden";
|
||||||
if (code == QuestionnaireItemDisabledDisplay.PROTECTED)
|
if (code == QuestionnaireItemDisabledDisplay.PROTECTED)
|
||||||
return "protected";
|
return "protected";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(QuestionnaireItemDisabledDisplay code) {
|
public String toSystem(QuestionnaireItemDisabledDisplay code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -512,7 +518,9 @@ public class Questionnaire extends MetadataResource {
|
||||||
throw new FHIRException("Unknown QuestionnaireItemOperator code '"+codeString+"'");
|
throw new FHIRException("Unknown QuestionnaireItemOperator code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(QuestionnaireItemOperator code) {
|
public String toCode(QuestionnaireItemOperator code) {
|
||||||
if (code == QuestionnaireItemOperator.EXISTS)
|
if (code == QuestionnaireItemOperator.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == QuestionnaireItemOperator.EXISTS)
|
||||||
return "exists";
|
return "exists";
|
||||||
if (code == QuestionnaireItemOperator.EQUAL)
|
if (code == QuestionnaireItemOperator.EQUAL)
|
||||||
return "=";
|
return "=";
|
||||||
|
@ -527,7 +535,7 @@ public class Questionnaire extends MetadataResource {
|
||||||
if (code == QuestionnaireItemOperator.LESS_OR_EQUAL)
|
if (code == QuestionnaireItemOperator.LESS_OR_EQUAL)
|
||||||
return "<=";
|
return "<=";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(QuestionnaireItemOperator code) {
|
public String toSystem(QuestionnaireItemOperator code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -814,7 +822,9 @@ public class Questionnaire extends MetadataResource {
|
||||||
throw new FHIRException("Unknown QuestionnaireItemType code '"+codeString+"'");
|
throw new FHIRException("Unknown QuestionnaireItemType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(QuestionnaireItemType code) {
|
public String toCode(QuestionnaireItemType code) {
|
||||||
if (code == QuestionnaireItemType.GROUP)
|
if (code == QuestionnaireItemType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == QuestionnaireItemType.GROUP)
|
||||||
return "group";
|
return "group";
|
||||||
if (code == QuestionnaireItemType.DISPLAY)
|
if (code == QuestionnaireItemType.DISPLAY)
|
||||||
return "display";
|
return "display";
|
||||||
|
@ -847,7 +857,7 @@ public class Questionnaire extends MetadataResource {
|
||||||
if (code == QuestionnaireItemType.QUANTITY)
|
if (code == QuestionnaireItemType.QUANTITY)
|
||||||
return "quantity";
|
return "quantity";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(QuestionnaireItemType code) {
|
public String toSystem(QuestionnaireItemType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -180,7 +180,9 @@ public class QuestionnaireResponse extends DomainResource {
|
||||||
throw new FHIRException("Unknown QuestionnaireResponseStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown QuestionnaireResponseStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(QuestionnaireResponseStatus code) {
|
public String toCode(QuestionnaireResponseStatus code) {
|
||||||
if (code == QuestionnaireResponseStatus.INPROGRESS)
|
if (code == QuestionnaireResponseStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == QuestionnaireResponseStatus.INPROGRESS)
|
||||||
return "in-progress";
|
return "in-progress";
|
||||||
if (code == QuestionnaireResponseStatus.COMPLETED)
|
if (code == QuestionnaireResponseStatus.COMPLETED)
|
||||||
return "completed";
|
return "completed";
|
||||||
|
@ -191,7 +193,7 @@ public class QuestionnaireResponse extends DomainResource {
|
||||||
if (code == QuestionnaireResponseStatus.STOPPED)
|
if (code == QuestionnaireResponseStatus.STOPPED)
|
||||||
return "stopped";
|
return "stopped";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(QuestionnaireResponseStatus code) {
|
public String toSystem(QuestionnaireResponseStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -612,7 +612,9 @@ public class RelatedArtifact extends DataType implements ICompositeType {
|
||||||
throw new FHIRException("Unknown RelatedArtifactType code '"+codeString+"'");
|
throw new FHIRException("Unknown RelatedArtifactType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(RelatedArtifactType code) {
|
public String toCode(RelatedArtifactType code) {
|
||||||
if (code == RelatedArtifactType.DOCUMENTATION)
|
if (code == RelatedArtifactType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == RelatedArtifactType.DOCUMENTATION)
|
||||||
return "documentation";
|
return "documentation";
|
||||||
if (code == RelatedArtifactType.JUSTIFICATION)
|
if (code == RelatedArtifactType.JUSTIFICATION)
|
||||||
return "justification";
|
return "justification";
|
||||||
|
@ -685,7 +687,7 @@ public class RelatedArtifact extends DataType implements ICompositeType {
|
||||||
if (code == RelatedArtifactType.CITEAS)
|
if (code == RelatedArtifactType.CITEAS)
|
||||||
return "cite-as";
|
return "cite-as";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(RelatedArtifactType code) {
|
public String toSystem(RelatedArtifactType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -166,7 +166,9 @@ public class Requirements extends CanonicalResource {
|
||||||
throw new FHIRException("Unknown ConformanceExpectation code '"+codeString+"'");
|
throw new FHIRException("Unknown ConformanceExpectation code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ConformanceExpectation code) {
|
public String toCode(ConformanceExpectation code) {
|
||||||
if (code == ConformanceExpectation.SHALL)
|
if (code == ConformanceExpectation.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ConformanceExpectation.SHALL)
|
||||||
return "SHALL";
|
return "SHALL";
|
||||||
if (code == ConformanceExpectation.SHOULD)
|
if (code == ConformanceExpectation.SHOULD)
|
||||||
return "SHOULD";
|
return "SHOULD";
|
||||||
|
@ -175,7 +177,7 @@ public class Requirements extends CanonicalResource {
|
||||||
if (code == ConformanceExpectation.SHOULDNOT)
|
if (code == ConformanceExpectation.SHOULDNOT)
|
||||||
return "SHOULD-NOT";
|
return "SHOULD-NOT";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ConformanceExpectation code) {
|
public String toSystem(ConformanceExpectation code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -152,14 +152,16 @@ public class SearchParameter extends CanonicalResource {
|
||||||
throw new FHIRException("Unknown SearchProcessingModeType code '"+codeString+"'");
|
throw new FHIRException("Unknown SearchProcessingModeType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(SearchProcessingModeType code) {
|
public String toCode(SearchProcessingModeType code) {
|
||||||
if (code == SearchProcessingModeType.NORMAL)
|
if (code == SearchProcessingModeType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == SearchProcessingModeType.NORMAL)
|
||||||
return "normal";
|
return "normal";
|
||||||
if (code == SearchProcessingModeType.PHONETIC)
|
if (code == SearchProcessingModeType.PHONETIC)
|
||||||
return "phonetic";
|
return "phonetic";
|
||||||
if (code == SearchProcessingModeType.OTHER)
|
if (code == SearchProcessingModeType.OTHER)
|
||||||
return "other";
|
return "other";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(SearchProcessingModeType code) {
|
public String toSystem(SearchProcessingModeType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -180,7 +180,9 @@ public class Slot extends DomainResource {
|
||||||
throw new FHIRException("Unknown SlotStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown SlotStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(SlotStatus code) {
|
public String toCode(SlotStatus code) {
|
||||||
if (code == SlotStatus.BUSY)
|
if (code == SlotStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == SlotStatus.BUSY)
|
||||||
return "busy";
|
return "busy";
|
||||||
if (code == SlotStatus.FREE)
|
if (code == SlotStatus.FREE)
|
||||||
return "free";
|
return "free";
|
||||||
|
@ -191,7 +193,7 @@ public class Slot extends DomainResource {
|
||||||
if (code == SlotStatus.ENTEREDINERROR)
|
if (code == SlotStatus.ENTEREDINERROR)
|
||||||
return "entered-in-error";
|
return "entered-in-error";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(SlotStatus code) {
|
public String toSystem(SlotStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,12 +138,14 @@ public class Specimen extends DomainResource {
|
||||||
throw new FHIRException("Unknown SpecimenCombined code '"+codeString+"'");
|
throw new FHIRException("Unknown SpecimenCombined code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(SpecimenCombined code) {
|
public String toCode(SpecimenCombined code) {
|
||||||
if (code == SpecimenCombined.GROUPED)
|
if (code == SpecimenCombined.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == SpecimenCombined.GROUPED)
|
||||||
return "grouped";
|
return "grouped";
|
||||||
if (code == SpecimenCombined.POOLED)
|
if (code == SpecimenCombined.POOLED)
|
||||||
return "pooled";
|
return "pooled";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(SpecimenCombined code) {
|
public String toSystem(SpecimenCombined code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -262,7 +264,9 @@ public class Specimen extends DomainResource {
|
||||||
throw new FHIRException("Unknown SpecimenStatus code '"+codeString+"'");
|
throw new FHIRException("Unknown SpecimenStatus code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(SpecimenStatus code) {
|
public String toCode(SpecimenStatus code) {
|
||||||
if (code == SpecimenStatus.AVAILABLE)
|
if (code == SpecimenStatus.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == SpecimenStatus.AVAILABLE)
|
||||||
return "available";
|
return "available";
|
||||||
if (code == SpecimenStatus.UNAVAILABLE)
|
if (code == SpecimenStatus.UNAVAILABLE)
|
||||||
return "unavailable";
|
return "unavailable";
|
||||||
|
@ -271,7 +275,7 @@ public class Specimen extends DomainResource {
|
||||||
if (code == SpecimenStatus.ENTEREDINERROR)
|
if (code == SpecimenStatus.ENTEREDINERROR)
|
||||||
return "entered-in-error";
|
return "entered-in-error";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(SpecimenStatus code) {
|
public String toSystem(SpecimenStatus code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,12 +138,14 @@ public class SpecimenDefinition extends DomainResource {
|
||||||
throw new FHIRException("Unknown SpecimenContainedPreference code '"+codeString+"'");
|
throw new FHIRException("Unknown SpecimenContainedPreference code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(SpecimenContainedPreference code) {
|
public String toCode(SpecimenContainedPreference code) {
|
||||||
if (code == SpecimenContainedPreference.PREFERRED)
|
if (code == SpecimenContainedPreference.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == SpecimenContainedPreference.PREFERRED)
|
||||||
return "preferred";
|
return "preferred";
|
||||||
if (code == SpecimenContainedPreference.ALTERNATE)
|
if (code == SpecimenContainedPreference.ALTERNATE)
|
||||||
return "alternate";
|
return "alternate";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(SpecimenContainedPreference code) {
|
public String toSystem(SpecimenContainedPreference code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -152,14 +152,16 @@ public class StructureDefinition extends CanonicalResource {
|
||||||
throw new FHIRException("Unknown ExtensionContextType code '"+codeString+"'");
|
throw new FHIRException("Unknown ExtensionContextType code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(ExtensionContextType code) {
|
public String toCode(ExtensionContextType code) {
|
||||||
if (code == ExtensionContextType.FHIRPATH)
|
if (code == ExtensionContextType.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == ExtensionContextType.FHIRPATH)
|
||||||
return "fhirpath";
|
return "fhirpath";
|
||||||
if (code == ExtensionContextType.ELEMENT)
|
if (code == ExtensionContextType.ELEMENT)
|
||||||
return "element";
|
return "element";
|
||||||
if (code == ExtensionContextType.EXTENSION)
|
if (code == ExtensionContextType.EXTENSION)
|
||||||
return "extension";
|
return "extension";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(ExtensionContextType code) {
|
public String toSystem(ExtensionContextType code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -278,7 +280,9 @@ public class StructureDefinition extends CanonicalResource {
|
||||||
throw new FHIRException("Unknown StructureDefinitionKind code '"+codeString+"'");
|
throw new FHIRException("Unknown StructureDefinitionKind code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(StructureDefinitionKind code) {
|
public String toCode(StructureDefinitionKind code) {
|
||||||
if (code == StructureDefinitionKind.PRIMITIVETYPE)
|
if (code == StructureDefinitionKind.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == StructureDefinitionKind.PRIMITIVETYPE)
|
||||||
return "primitive-type";
|
return "primitive-type";
|
||||||
if (code == StructureDefinitionKind.COMPLEXTYPE)
|
if (code == StructureDefinitionKind.COMPLEXTYPE)
|
||||||
return "complex-type";
|
return "complex-type";
|
||||||
|
@ -287,7 +291,7 @@ public class StructureDefinition extends CanonicalResource {
|
||||||
if (code == StructureDefinitionKind.LOGICAL)
|
if (code == StructureDefinitionKind.LOGICAL)
|
||||||
return "logical";
|
return "logical";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(StructureDefinitionKind code) {
|
public String toSystem(StructureDefinitionKind code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -378,12 +382,14 @@ public class StructureDefinition extends CanonicalResource {
|
||||||
throw new FHIRException("Unknown TypeDerivationRule code '"+codeString+"'");
|
throw new FHIRException("Unknown TypeDerivationRule code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(TypeDerivationRule code) {
|
public String toCode(TypeDerivationRule code) {
|
||||||
if (code == TypeDerivationRule.SPECIALIZATION)
|
if (code == TypeDerivationRule.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == TypeDerivationRule.SPECIALIZATION)
|
||||||
return "specialization";
|
return "specialization";
|
||||||
if (code == TypeDerivationRule.CONSTRAINT)
|
if (code == TypeDerivationRule.CONSTRAINT)
|
||||||
return "constraint";
|
return "constraint";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(TypeDerivationRule code) {
|
public String toSystem(TypeDerivationRule code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
|
@ -139,12 +139,14 @@ public class StructureMap extends CanonicalResource {
|
||||||
throw new FHIRException("Unknown StructureMapGroupTypeMode code '"+codeString+"'");
|
throw new FHIRException("Unknown StructureMapGroupTypeMode code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(StructureMapGroupTypeMode code) {
|
public String toCode(StructureMapGroupTypeMode code) {
|
||||||
if (code == StructureMapGroupTypeMode.TYPES)
|
if (code == StructureMapGroupTypeMode.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == StructureMapGroupTypeMode.TYPES)
|
||||||
return "types";
|
return "types";
|
||||||
if (code == StructureMapGroupTypeMode.TYPEANDTYPES)
|
if (code == StructureMapGroupTypeMode.TYPEANDTYPES)
|
||||||
return "type-and-types";
|
return "type-and-types";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(StructureMapGroupTypeMode code) {
|
public String toSystem(StructureMapGroupTypeMode code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -235,12 +237,14 @@ public class StructureMap extends CanonicalResource {
|
||||||
throw new FHIRException("Unknown StructureMapInputMode code '"+codeString+"'");
|
throw new FHIRException("Unknown StructureMapInputMode code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(StructureMapInputMode code) {
|
public String toCode(StructureMapInputMode code) {
|
||||||
if (code == StructureMapInputMode.SOURCE)
|
if (code == StructureMapInputMode.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == StructureMapInputMode.SOURCE)
|
||||||
return "source";
|
return "source";
|
||||||
if (code == StructureMapInputMode.TARGET)
|
if (code == StructureMapInputMode.TARGET)
|
||||||
return "target";
|
return "target";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(StructureMapInputMode code) {
|
public String toSystem(StructureMapInputMode code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -359,7 +363,9 @@ public class StructureMap extends CanonicalResource {
|
||||||
throw new FHIRException("Unknown StructureMapModelMode code '"+codeString+"'");
|
throw new FHIRException("Unknown StructureMapModelMode code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(StructureMapModelMode code) {
|
public String toCode(StructureMapModelMode code) {
|
||||||
if (code == StructureMapModelMode.SOURCE)
|
if (code == StructureMapModelMode.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == StructureMapModelMode.SOURCE)
|
||||||
return "source";
|
return "source";
|
||||||
if (code == StructureMapModelMode.QUERIED)
|
if (code == StructureMapModelMode.QUERIED)
|
||||||
return "queried";
|
return "queried";
|
||||||
|
@ -368,7 +374,7 @@ public class StructureMap extends CanonicalResource {
|
||||||
if (code == StructureMapModelMode.PRODUCED)
|
if (code == StructureMapModelMode.PRODUCED)
|
||||||
return "produced";
|
return "produced";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(StructureMapModelMode code) {
|
public String toSystem(StructureMapModelMode code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -501,7 +507,9 @@ public class StructureMap extends CanonicalResource {
|
||||||
throw new FHIRException("Unknown StructureMapSourceListMode code '"+codeString+"'");
|
throw new FHIRException("Unknown StructureMapSourceListMode code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(StructureMapSourceListMode code) {
|
public String toCode(StructureMapSourceListMode code) {
|
||||||
if (code == StructureMapSourceListMode.FIRST)
|
if (code == StructureMapSourceListMode.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == StructureMapSourceListMode.FIRST)
|
||||||
return "first";
|
return "first";
|
||||||
if (code == StructureMapSourceListMode.NOTFIRST)
|
if (code == StructureMapSourceListMode.NOTFIRST)
|
||||||
return "not_first";
|
return "not_first";
|
||||||
|
@ -512,7 +520,7 @@ public class StructureMap extends CanonicalResource {
|
||||||
if (code == StructureMapSourceListMode.ONLYONE)
|
if (code == StructureMapSourceListMode.ONLYONE)
|
||||||
return "only_one";
|
return "only_one";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(StructureMapSourceListMode code) {
|
public String toSystem(StructureMapSourceListMode code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -631,7 +639,9 @@ public class StructureMap extends CanonicalResource {
|
||||||
throw new FHIRException("Unknown StructureMapTargetListMode code '"+codeString+"'");
|
throw new FHIRException("Unknown StructureMapTargetListMode code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(StructureMapTargetListMode code) {
|
public String toCode(StructureMapTargetListMode code) {
|
||||||
if (code == StructureMapTargetListMode.FIRST)
|
if (code == StructureMapTargetListMode.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == StructureMapTargetListMode.FIRST)
|
||||||
return "first";
|
return "first";
|
||||||
if (code == StructureMapTargetListMode.SHARE)
|
if (code == StructureMapTargetListMode.SHARE)
|
||||||
return "share";
|
return "share";
|
||||||
|
@ -640,7 +650,7 @@ public class StructureMap extends CanonicalResource {
|
||||||
if (code == StructureMapTargetListMode.SINGLE)
|
if (code == StructureMapTargetListMode.SINGLE)
|
||||||
return "single";
|
return "single";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(StructureMapTargetListMode code) {
|
public String toSystem(StructureMapTargetListMode code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
@ -941,7 +951,9 @@ public class StructureMap extends CanonicalResource {
|
||||||
throw new FHIRException("Unknown StructureMapTransform code '"+codeString+"'");
|
throw new FHIRException("Unknown StructureMapTransform code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(StructureMapTransform code) {
|
public String toCode(StructureMapTransform code) {
|
||||||
if (code == StructureMapTransform.CREATE)
|
if (code == StructureMapTransform.NULL)
|
||||||
|
return null;
|
||||||
|
if (code == StructureMapTransform.CREATE)
|
||||||
return "create";
|
return "create";
|
||||||
if (code == StructureMapTransform.COPY)
|
if (code == StructureMapTransform.COPY)
|
||||||
return "copy";
|
return "copy";
|
||||||
|
@ -976,7 +988,7 @@ public class StructureMap extends CanonicalResource {
|
||||||
if (code == StructureMapTransform.CP)
|
if (code == StructureMapTransform.CP)
|
||||||
return "cp";
|
return "cp";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(StructureMapTransform code) {
|
public String toSystem(StructureMapTransform code) {
|
||||||
return code.getSystem();
|
return code.getSystem();
|
||||||
}
|
}
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue