Merge pull request #1696 from hapifhir/do-20240719-enum-null-checks-r5
Return null for all toCode enum params that are Enum.NULL (r5)
This commit is contained in:
commit
3198f98489
|
@ -180,6 +180,8 @@ public class Account extends DomainResource {
|
|||
throw new FHIRException("Unknown AccountStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AccountStatus code) {
|
||||
if (code == AccountStatus.NULL)
|
||||
return null;
|
||||
if (code == AccountStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == AccountStatus.INACTIVE)
|
||||
|
@ -2507,7 +2509,9 @@ A coverage may only be responsible for specific types of charges, and the sequen
|
|||
protected CodeableConcept currency;
|
||||
|
||||
/**
|
||||
* The calculated account balances - these are calculated and processed by the finance system.
The balances with a `term` that is not current are usually generated/updated by an invoicing or similar process.
|
||||
* The calculated account balances - these are calculated and processed by the finance system.
|
||||
|
||||
The balances with a `term` that is not current are usually generated/updated by an invoicing or similar process.
|
||||
*/
|
||||
@Child(name = "balance", type = {}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Calculated account balance(s)", formalDefinition="The calculated account balances - these are calculated and processed by the finance system.\r\rThe balances with a `term` that is not current are usually generated/updated by an invoicing or similar process." )
|
||||
|
@ -3172,7 +3176,9 @@ A coverage may only be responsible for specific types of charges, and the sequen
|
|||
}
|
||||
|
||||
/**
|
||||
* @return {@link #balance} (The calculated account balances - these are calculated and processed by the finance system.
The balances with a `term` that is not current are usually generated/updated by an invoicing or similar process.)
|
||||
* @return {@link #balance} (The calculated account balances - these are calculated and processed by the finance system.
|
||||
|
||||
The balances with a `term` that is not current are usually generated/updated by an invoicing or similar process.)
|
||||
*/
|
||||
public List<AccountBalanceComponent> getBalance() {
|
||||
if (this.balance == null)
|
||||
|
|
|
@ -348,6 +348,8 @@ public class ActivityDefinition extends MetadataResource {
|
|||
throw new FHIRException("Unknown RequestResourceTypes code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(RequestResourceTypes code) {
|
||||
if (code == RequestResourceTypes.NULL)
|
||||
return null;
|
||||
if (code == RequestResourceTypes.APPOINTMENT)
|
||||
return "Appointment";
|
||||
if (code == RequestResourceTypes.APPOINTMENTRESPONSE)
|
||||
|
|
|
@ -151,6 +151,8 @@ public class Address extends DataType implements ICompositeType {
|
|||
throw new FHIRException("Unknown AddressType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AddressType code) {
|
||||
if (code == AddressType.NULL)
|
||||
return null;
|
||||
if (code == AddressType.POSTAL)
|
||||
return "postal";
|
||||
if (code == AddressType.PHYSICAL)
|
||||
|
@ -291,6 +293,8 @@ public class Address extends DataType implements ICompositeType {
|
|||
throw new FHIRException("Unknown AddressUse code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AddressUse code) {
|
||||
if (code == AddressUse.NULL)
|
||||
return null;
|
||||
if (code == AddressUse.HOME)
|
||||
return "home";
|
||||
if (code == AddressUse.WORK)
|
||||
|
|
|
@ -138,6 +138,8 @@ public class AdverseEvent extends DomainResource {
|
|||
throw new FHIRException("Unknown AdverseEventActuality code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AdverseEventActuality code) {
|
||||
if (code == AdverseEventActuality.NULL)
|
||||
return null;
|
||||
if (code == AdverseEventActuality.ACTUAL)
|
||||
return "actual";
|
||||
if (code == AdverseEventActuality.POTENTIAL)
|
||||
|
@ -262,6 +264,8 @@ public class AdverseEvent extends DomainResource {
|
|||
throw new FHIRException("Unknown AdverseEventStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AdverseEventStatus code) {
|
||||
if (code == AdverseEventStatus.NULL)
|
||||
return null;
|
||||
if (code == AdverseEventStatus.INPROGRESS)
|
||||
return "in-progress";
|
||||
if (code == AdverseEventStatus.COMPLETED)
|
||||
|
|
|
@ -166,6 +166,8 @@ public class AllergyIntolerance extends DomainResource {
|
|||
throw new FHIRException("Unknown AllergyIntoleranceCategory code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AllergyIntoleranceCategory code) {
|
||||
if (code == AllergyIntoleranceCategory.NULL)
|
||||
return null;
|
||||
if (code == AllergyIntoleranceCategory.FOOD)
|
||||
return "food";
|
||||
if (code == AllergyIntoleranceCategory.MEDICATION)
|
||||
|
@ -280,6 +282,8 @@ public class AllergyIntolerance extends DomainResource {
|
|||
throw new FHIRException("Unknown AllergyIntoleranceCriticality code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AllergyIntoleranceCriticality code) {
|
||||
if (code == AllergyIntoleranceCriticality.NULL)
|
||||
return null;
|
||||
if (code == AllergyIntoleranceCriticality.LOW)
|
||||
return "low";
|
||||
if (code == AllergyIntoleranceCriticality.HIGH)
|
||||
|
@ -392,6 +396,8 @@ public class AllergyIntolerance extends DomainResource {
|
|||
throw new FHIRException("Unknown AllergyIntoleranceSeverity code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AllergyIntoleranceSeverity code) {
|
||||
if (code == AllergyIntoleranceSeverity.NULL)
|
||||
return null;
|
||||
if (code == AllergyIntoleranceSeverity.MILD)
|
||||
return "mild";
|
||||
if (code == AllergyIntoleranceSeverity.MODERATE)
|
||||
|
|
|
@ -250,6 +250,8 @@ public class Appointment extends DomainResource {
|
|||
throw new FHIRException("Unknown AppointmentStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AppointmentStatus code) {
|
||||
if (code == AppointmentStatus.NULL)
|
||||
return null;
|
||||
if (code == AppointmentStatus.PROPOSED)
|
||||
return "proposed";
|
||||
if (code == AppointmentStatus.PENDING)
|
||||
|
@ -390,6 +392,8 @@ public class Appointment extends DomainResource {
|
|||
throw new FHIRException("Unknown ParticipationStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ParticipationStatus code) {
|
||||
if (code == ParticipationStatus.NULL)
|
||||
return null;
|
||||
if (code == ParticipationStatus.ACCEPTED)
|
||||
return "accepted";
|
||||
if (code == ParticipationStatus.DECLINED)
|
||||
|
@ -1679,7 +1683,9 @@ public class Appointment extends DomainResource {
|
|||
protected BooleanType sunday;
|
||||
|
||||
/**
|
||||
* The interval defines if the recurrence is every nth week. The default is every week, so it is expected that this value will be 2 or more.
e.g. For recurring every second week this interval would be 2, or every third week the interval would be 3.
|
||||
* The interval defines if the recurrence is every nth week. The default is every week, so it is expected that this value will be 2 or more.
|
||||
|
||||
e.g. For recurring every second week this interval would be 2, or every third week the interval would be 3.
|
||||
*/
|
||||
@Child(name = "weekInterval", type = {PositiveIntType.class}, order=8, min=0, max=1, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Recurs every nth week", formalDefinition="The interval defines if the recurrence is every nth week. The default is every week, so it is expected that this value will be 2 or more.\r\re.g. For recurring every second week this interval would be 2, or every third week the interval would be 3." )
|
||||
|
@ -2010,7 +2016,9 @@ public class Appointment extends DomainResource {
|
|||
}
|
||||
|
||||
/**
|
||||
* @return {@link #weekInterval} (The interval defines if the recurrence is every nth week. The default is every week, so it is expected that this value will be 2 or more.
e.g. For recurring every second week this interval would be 2, or every third week the interval would be 3.). This is the underlying object with id, value and extensions. The accessor "getWeekInterval" gives direct access to the value
|
||||
* @return {@link #weekInterval} (The interval defines if the recurrence is every nth week. The default is every week, so it is expected that this value will be 2 or more.
|
||||
|
||||
e.g. For recurring every second week this interval would be 2, or every third week the interval would be 3.). This is the underlying object with id, value and extensions. The accessor "getWeekInterval" gives direct access to the value
|
||||
*/
|
||||
public PositiveIntType getWeekIntervalElement() {
|
||||
if (this.weekInterval == null)
|
||||
|
@ -2030,7 +2038,9 @@ public class Appointment extends DomainResource {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #weekInterval} (The interval defines if the recurrence is every nth week. The default is every week, so it is expected that this value will be 2 or more.
e.g. For recurring every second week this interval would be 2, or every third week the interval would be 3.). This is the underlying object with id, value and extensions. The accessor "getWeekInterval" gives direct access to the value
|
||||
* @param value {@link #weekInterval} (The interval defines if the recurrence is every nth week. The default is every week, so it is expected that this value will be 2 or more.
|
||||
|
||||
e.g. For recurring every second week this interval would be 2, or every third week the interval would be 3.). This is the underlying object with id, value and extensions. The accessor "getWeekInterval" gives direct access to the value
|
||||
*/
|
||||
public AppointmentRecurrenceTemplateWeeklyTemplateComponent setWeekIntervalElement(PositiveIntType value) {
|
||||
this.weekInterval = value;
|
||||
|
@ -2038,14 +2048,18 @@ public class Appointment extends DomainResource {
|
|||
}
|
||||
|
||||
/**
|
||||
* @return The interval defines if the recurrence is every nth week. The default is every week, so it is expected that this value will be 2 or more.
e.g. For recurring every second week this interval would be 2, or every third week the interval would be 3.
|
||||
* @return The interval defines if the recurrence is every nth week. The default is every week, so it is expected that this value will be 2 or more.
|
||||
|
||||
e.g. For recurring every second week this interval would be 2, or every third week the interval would be 3.
|
||||
*/
|
||||
public int getWeekInterval() {
|
||||
return this.weekInterval == null || this.weekInterval.isEmpty() ? 0 : this.weekInterval.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The interval defines if the recurrence is every nth week. The default is every week, so it is expected that this value will be 2 or more.
e.g. For recurring every second week this interval would be 2, or every third week the interval would be 3.
|
||||
* @param value The interval defines if the recurrence is every nth week. The default is every week, so it is expected that this value will be 2 or more.
|
||||
|
||||
e.g. For recurring every second week this interval would be 2, or every third week the interval would be 3.
|
||||
*/
|
||||
public AppointmentRecurrenceTemplateWeeklyTemplateComponent setWeekInterval(int value) {
|
||||
if (this.weekInterval == null)
|
||||
|
|
|
@ -180,6 +180,8 @@ public class AppointmentResponse extends DomainResource {
|
|||
throw new FHIRException("Unknown AppointmentResponseStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AppointmentResponseStatus code) {
|
||||
if (code == AppointmentResponseStatus.NULL)
|
||||
return null;
|
||||
if (code == AppointmentResponseStatus.ACCEPTED)
|
||||
return "accepted";
|
||||
if (code == AppointmentResponseStatus.DECLINED)
|
||||
|
|
|
@ -180,6 +180,8 @@ public class ArtifactAssessment extends DomainResource {
|
|||
throw new FHIRException("Unknown ArtifactAssessmentDisposition code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ArtifactAssessmentDisposition code) {
|
||||
if (code == ArtifactAssessmentDisposition.NULL)
|
||||
return null;
|
||||
if (code == ArtifactAssessmentDisposition.UNRESOLVED)
|
||||
return "unresolved";
|
||||
if (code == ArtifactAssessmentDisposition.NOTPERSUASIVE)
|
||||
|
@ -338,6 +340,8 @@ public class ArtifactAssessment extends DomainResource {
|
|||
throw new FHIRException("Unknown ArtifactAssessmentInformationType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ArtifactAssessmentInformationType code) {
|
||||
if (code == ArtifactAssessmentInformationType.NULL)
|
||||
return null;
|
||||
if (code == ArtifactAssessmentInformationType.COMMENT)
|
||||
return "comment";
|
||||
if (code == ArtifactAssessmentInformationType.CLASSIFIER)
|
||||
|
@ -554,6 +558,8 @@ public class ArtifactAssessment extends DomainResource {
|
|||
throw new FHIRException("Unknown ArtifactAssessmentWorkflowStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ArtifactAssessmentWorkflowStatus code) {
|
||||
if (code == ArtifactAssessmentWorkflowStatus.NULL)
|
||||
return null;
|
||||
if (code == ArtifactAssessmentWorkflowStatus.SUBMITTED)
|
||||
return "submitted";
|
||||
if (code == ArtifactAssessmentWorkflowStatus.TRIAGED)
|
||||
|
|
|
@ -180,6 +180,8 @@ public class AuditEvent extends DomainResource {
|
|||
throw new FHIRException("Unknown AuditEventAction code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AuditEventAction code) {
|
||||
if (code == AuditEventAction.NULL)
|
||||
return null;
|
||||
if (code == AuditEventAction.C)
|
||||
return "C";
|
||||
if (code == AuditEventAction.R)
|
||||
|
@ -366,6 +368,8 @@ public class AuditEvent extends DomainResource {
|
|||
throw new FHIRException("Unknown AuditEventSeverity code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AuditEventSeverity code) {
|
||||
if (code == AuditEventSeverity.NULL)
|
||||
return null;
|
||||
if (code == AuditEventSeverity.EMERGENCY)
|
||||
return "emergency";
|
||||
if (code == AuditEventSeverity.ALERT)
|
||||
|
|
|
@ -222,6 +222,8 @@ public class BiologicallyDerivedProductDispense extends DomainResource {
|
|||
throw new FHIRException("Unknown BiologicallyDerivedProductDispenseCodes code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(BiologicallyDerivedProductDispenseCodes code) {
|
||||
if (code == BiologicallyDerivedProductDispenseCodes.NULL)
|
||||
return null;
|
||||
if (code == BiologicallyDerivedProductDispenseCodes.PREPARATION)
|
||||
return "preparation";
|
||||
if (code == BiologicallyDerivedProductDispenseCodes.INPROGRESS)
|
||||
|
|
|
@ -252,6 +252,8 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
throw new FHIRException("Unknown BundleType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(BundleType code) {
|
||||
if (code == BundleType.NULL)
|
||||
return null;
|
||||
if (code == BundleType.DOCUMENT)
|
||||
return "document";
|
||||
if (code == BundleType.MESSAGE)
|
||||
|
@ -420,6 +422,8 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
throw new FHIRException("Unknown HTTPVerb code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(HTTPVerb code) {
|
||||
if (code == HTTPVerb.NULL)
|
||||
return null;
|
||||
if (code == HTTPVerb.GET)
|
||||
return "GET";
|
||||
if (code == HTTPVerb.HEAD)
|
||||
|
@ -2176,6 +2180,8 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
throw new FHIRException("Unknown LinkRelationTypes code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(LinkRelationTypes code) {
|
||||
if (code == LinkRelationTypes.NULL)
|
||||
return null;
|
||||
if (code == LinkRelationTypes.ABOUT)
|
||||
return "about";
|
||||
if (code == LinkRelationTypes.ACL)
|
||||
|
@ -2522,6 +2528,8 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
throw new FHIRException("Unknown SearchEntryMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(SearchEntryMode code) {
|
||||
if (code == SearchEntryMode.NULL)
|
||||
return null;
|
||||
if (code == SearchEntryMode.MATCH)
|
||||
return "match";
|
||||
if (code == SearchEntryMode.INCLUDE)
|
||||
|
|
|
@ -153,6 +153,8 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo
|
|||
throw new FHIRException("Unknown ConditionalDeleteStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ConditionalDeleteStatus code) {
|
||||
if (code == ConditionalDeleteStatus.NULL)
|
||||
return null;
|
||||
if (code == ConditionalDeleteStatus.NOTSUPPORTED)
|
||||
return "not-supported";
|
||||
if (code == ConditionalDeleteStatus.SINGLE)
|
||||
|
@ -279,6 +281,8 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo
|
|||
throw new FHIRException("Unknown ConditionalReadStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ConditionalReadStatus code) {
|
||||
if (code == ConditionalReadStatus.NULL)
|
||||
return null;
|
||||
if (code == ConditionalReadStatus.NOTSUPPORTED)
|
||||
return "not-supported";
|
||||
if (code == ConditionalReadStatus.MODIFIEDSINCE)
|
||||
|
@ -379,6 +383,8 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo
|
|||
throw new FHIRException("Unknown DocumentMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DocumentMode code) {
|
||||
if (code == DocumentMode.NULL)
|
||||
return null;
|
||||
if (code == DocumentMode.PRODUCER)
|
||||
return "producer";
|
||||
if (code == DocumentMode.CONSUMER)
|
||||
|
@ -475,6 +481,8 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo
|
|||
throw new FHIRException("Unknown EventCapabilityMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(EventCapabilityMode code) {
|
||||
if (code == EventCapabilityMode.NULL)
|
||||
return null;
|
||||
if (code == EventCapabilityMode.SENDER)
|
||||
return "sender";
|
||||
if (code == EventCapabilityMode.RECEIVER)
|
||||
|
@ -613,6 +621,8 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo
|
|||
throw new FHIRException("Unknown ReferenceHandlingPolicy code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ReferenceHandlingPolicy code) {
|
||||
if (code == ReferenceHandlingPolicy.NULL)
|
||||
return null;
|
||||
if (code == ReferenceHandlingPolicy.LITERAL)
|
||||
return "literal";
|
||||
if (code == ReferenceHandlingPolicy.LOGICAL)
|
||||
|
@ -729,6 +739,8 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo
|
|||
throw new FHIRException("Unknown ResourceVersionPolicy code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ResourceVersionPolicy code) {
|
||||
if (code == ResourceVersionPolicy.NULL)
|
||||
return null;
|
||||
if (code == ResourceVersionPolicy.NOVERSION)
|
||||
return "no-version";
|
||||
if (code == ResourceVersionPolicy.VERSIONED)
|
||||
|
@ -827,6 +839,8 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo
|
|||
throw new FHIRException("Unknown RestfulCapabilityMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(RestfulCapabilityMode code) {
|
||||
if (code == RestfulCapabilityMode.NULL)
|
||||
return null;
|
||||
if (code == RestfulCapabilityMode.CLIENT)
|
||||
return "client";
|
||||
if (code == RestfulCapabilityMode.SERVER)
|
||||
|
@ -951,6 +965,8 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo
|
|||
throw new FHIRException("Unknown SystemRestfulInteraction code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(SystemRestfulInteraction code) {
|
||||
if (code == SystemRestfulInteraction.NULL)
|
||||
return null;
|
||||
if (code == SystemRestfulInteraction.TRANSACTION)
|
||||
return "transaction";
|
||||
if (code == SystemRestfulInteraction.BATCH)
|
||||
|
@ -1149,6 +1165,8 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo
|
|||
throw new FHIRException("Unknown TypeRestfulInteraction code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(TypeRestfulInteraction code) {
|
||||
if (code == TypeRestfulInteraction.NULL)
|
||||
return null;
|
||||
if (code == TypeRestfulInteraction.READ)
|
||||
return "read";
|
||||
if (code == TypeRestfulInteraction.VREAD)
|
||||
|
|
|
@ -180,6 +180,8 @@ public class CarePlan extends DomainResource {
|
|||
throw new FHIRException("Unknown CarePlanIntent code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CarePlanIntent code) {
|
||||
if (code == CarePlanIntent.NULL)
|
||||
return null;
|
||||
if (code == CarePlanIntent.PROPOSAL)
|
||||
return "proposal";
|
||||
if (code == CarePlanIntent.PLAN)
|
||||
|
|
|
@ -180,6 +180,8 @@ public class CareTeam extends DomainResource {
|
|||
throw new FHIRException("Unknown CareTeamStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CareTeamStatus code) {
|
||||
if (code == CareTeamStatus.NULL)
|
||||
return null;
|
||||
if (code == CareTeamStatus.PROPOSED)
|
||||
return "proposed";
|
||||
if (code == CareTeamStatus.ACTIVE)
|
||||
|
|
|
@ -208,6 +208,8 @@ public class ChargeItem extends DomainResource {
|
|||
throw new FHIRException("Unknown ChargeItemStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ChargeItemStatus code) {
|
||||
if (code == ChargeItemStatus.NULL)
|
||||
return null;
|
||||
if (code == ChargeItemStatus.PLANNED)
|
||||
return "planned";
|
||||
if (code == ChargeItemStatus.BILLABLE)
|
||||
|
|
|
@ -642,6 +642,8 @@ public class Citation extends MetadataResource {
|
|||
throw new FHIRException("Unknown RelatedArtifactTypeExpanded code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(RelatedArtifactTypeExpanded code) {
|
||||
if (code == RelatedArtifactTypeExpanded.NULL)
|
||||
return null;
|
||||
if (code == RelatedArtifactTypeExpanded.DOCUMENTATION)
|
||||
return "documentation";
|
||||
if (code == RelatedArtifactTypeExpanded.JUSTIFICATION)
|
||||
|
|
|
@ -180,6 +180,8 @@ public class ClinicalUseDefinition extends DomainResource {
|
|||
throw new FHIRException("Unknown ClinicalUseDefinitionType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ClinicalUseDefinitionType code) {
|
||||
if (code == ClinicalUseDefinitionType.NULL)
|
||||
return null;
|
||||
if (code == ClinicalUseDefinitionType.INDICATION)
|
||||
return "indication";
|
||||
if (code == ClinicalUseDefinitionType.CONTRAINDICATION)
|
||||
|
|
|
@ -166,6 +166,8 @@ public class CodeSystem extends MetadataResource {
|
|||
throw new FHIRException("Unknown CodeSystemHierarchyMeaning code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CodeSystemHierarchyMeaning code) {
|
||||
if (code == CodeSystemHierarchyMeaning.NULL)
|
||||
return null;
|
||||
if (code == CodeSystemHierarchyMeaning.GROUPEDBY)
|
||||
return "grouped-by";
|
||||
if (code == CodeSystemHierarchyMeaning.ISA)
|
||||
|
@ -336,6 +338,8 @@ public class CodeSystem extends MetadataResource {
|
|||
throw new FHIRException("Unknown PropertyType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(PropertyType code) {
|
||||
if (code == PropertyType.NULL)
|
||||
return null;
|
||||
if (code == PropertyType.CODE)
|
||||
return "code";
|
||||
if (code == PropertyType.CODING)
|
||||
|
|
|
@ -180,6 +180,8 @@ public class ConceptMap extends MetadataResource {
|
|||
throw new FHIRException("Unknown ConceptMapAttributeType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ConceptMapAttributeType code) {
|
||||
if (code == ConceptMapAttributeType.NULL)
|
||||
return null;
|
||||
if (code == ConceptMapAttributeType.CODE)
|
||||
return "code";
|
||||
if (code == ConceptMapAttributeType.CODING)
|
||||
|
@ -296,6 +298,8 @@ public class ConceptMap extends MetadataResource {
|
|||
throw new FHIRException("Unknown ConceptMapGroupUnmappedMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ConceptMapGroupUnmappedMode code) {
|
||||
if (code == ConceptMapGroupUnmappedMode.NULL)
|
||||
return null;
|
||||
if (code == ConceptMapGroupUnmappedMode.USESOURCECODE)
|
||||
return "use-source-code";
|
||||
if (code == ConceptMapGroupUnmappedMode.FIXED)
|
||||
|
@ -464,6 +468,8 @@ public class ConceptMap extends MetadataResource {
|
|||
throw new FHIRException("Unknown ConceptMapPropertyType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ConceptMapPropertyType code) {
|
||||
if (code == ConceptMapPropertyType.NULL)
|
||||
return null;
|
||||
if (code == ConceptMapPropertyType.CODING)
|
||||
return "Coding";
|
||||
if (code == ConceptMapPropertyType.STRING)
|
||||
|
|
|
@ -138,6 +138,8 @@ public class ConditionDefinition extends MetadataResource {
|
|||
throw new FHIRException("Unknown ConditionPreconditionType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ConditionPreconditionType code) {
|
||||
if (code == ConditionPreconditionType.NULL)
|
||||
return null;
|
||||
if (code == ConditionPreconditionType.SENSITIVE)
|
||||
return "sensitive";
|
||||
if (code == ConditionPreconditionType.SPECIFIC)
|
||||
|
@ -248,6 +250,8 @@ public class ConditionDefinition extends MetadataResource {
|
|||
throw new FHIRException("Unknown ConditionQuestionnairePurpose code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ConditionQuestionnairePurpose code) {
|
||||
if (code == ConditionQuestionnairePurpose.NULL)
|
||||
return null;
|
||||
if (code == ConditionQuestionnairePurpose.PREADMIT)
|
||||
return "preadmit";
|
||||
if (code == ConditionQuestionnairePurpose.DIFFDIAGNOSIS)
|
||||
|
|
|
@ -194,6 +194,8 @@ public class Consent extends DomainResource {
|
|||
throw new FHIRException("Unknown ConsentState code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ConsentState code) {
|
||||
if (code == ConsentState.NULL)
|
||||
return null;
|
||||
if (code == ConsentState.DRAFT)
|
||||
return "draft";
|
||||
if (code == ConsentState.ACTIVE)
|
||||
|
|
|
@ -206,6 +206,8 @@ public class ContactPoint extends DataType implements ICompositeType {
|
|||
throw new FHIRException("Unknown ContactPointSystem code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ContactPointSystem code) {
|
||||
if (code == ContactPointSystem.NULL)
|
||||
return null;
|
||||
if (code == ContactPointSystem.PHONE)
|
||||
return "phone";
|
||||
if (code == ContactPointSystem.FAX)
|
||||
|
@ -354,6 +356,8 @@ public class ContactPoint extends DataType implements ICompositeType {
|
|||
throw new FHIRException("Unknown ContactPointUse code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ContactPointUse code) {
|
||||
if (code == ContactPointUse.NULL)
|
||||
return null;
|
||||
if (code == ContactPointUse.HOME)
|
||||
return "home";
|
||||
if (code == ContactPointUse.WORK)
|
||||
|
|
|
@ -321,6 +321,8 @@ public class Contract extends DomainResource {
|
|||
throw new FHIRException("Unknown ContractResourcePublicationStatusCodes code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ContractResourcePublicationStatusCodes code) {
|
||||
if (code == ContractResourcePublicationStatusCodes.NULL)
|
||||
return null;
|
||||
if (code == ContractResourcePublicationStatusCodes.AMENDED)
|
||||
return "amended";
|
||||
if (code == ContractResourcePublicationStatusCodes.APPENDED)
|
||||
|
@ -625,6 +627,8 @@ public class Contract extends DomainResource {
|
|||
throw new FHIRException("Unknown ContractResourceStatusCodes code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ContractResourceStatusCodes code) {
|
||||
if (code == ContractResourceStatusCodes.NULL)
|
||||
return null;
|
||||
if (code == ContractResourceStatusCodes.AMENDED)
|
||||
return "amended";
|
||||
if (code == ContractResourceStatusCodes.APPENDED)
|
||||
|
|
|
@ -164,6 +164,8 @@ public class Contributor extends DataType implements ICompositeType {
|
|||
throw new FHIRException("Unknown ContributorType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ContributorType code) {
|
||||
if (code == ContributorType.NULL)
|
||||
return null;
|
||||
if (code == ContributorType.AUTHOR)
|
||||
return "author";
|
||||
if (code == ContributorType.EDITOR)
|
||||
|
|
|
@ -152,6 +152,8 @@ public class Coverage extends DomainResource {
|
|||
throw new FHIRException("Unknown Kind code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(Kind code) {
|
||||
if (code == Kind.NULL)
|
||||
return null;
|
||||
if (code == Kind.INSURANCE)
|
||||
return "insurance";
|
||||
if (code == Kind.SELFPAY)
|
||||
|
|
|
@ -166,6 +166,8 @@ public class CoverageEligibilityRequest extends DomainResource {
|
|||
throw new FHIRException("Unknown EligibilityRequestPurpose code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(EligibilityRequestPurpose code) {
|
||||
if (code == EligibilityRequestPurpose.NULL)
|
||||
return null;
|
||||
if (code == EligibilityRequestPurpose.AUTHREQUIREMENTS)
|
||||
return "auth-requirements";
|
||||
if (code == EligibilityRequestPurpose.BENEFITS)
|
||||
|
|
|
@ -166,6 +166,8 @@ public class CoverageEligibilityResponse extends DomainResource {
|
|||
throw new FHIRException("Unknown EligibilityOutcome code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(EligibilityOutcome code) {
|
||||
if (code == EligibilityOutcome.NULL)
|
||||
return null;
|
||||
if (code == EligibilityOutcome.QUEUED)
|
||||
return "queued";
|
||||
if (code == EligibilityOutcome.COMPLETE)
|
||||
|
@ -294,6 +296,8 @@ public class CoverageEligibilityResponse extends DomainResource {
|
|||
throw new FHIRException("Unknown EligibilityResponsePurpose code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(EligibilityResponsePurpose code) {
|
||||
if (code == EligibilityResponsePurpose.NULL)
|
||||
return null;
|
||||
if (code == EligibilityResponsePurpose.AUTHREQUIREMENTS)
|
||||
return "auth-requirements";
|
||||
if (code == EligibilityResponsePurpose.BENEFITS)
|
||||
|
|
|
@ -136,6 +136,8 @@ public class DataRequirement extends DataType implements ICompositeType {
|
|||
throw new FHIRException("Unknown SortDirection code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(SortDirection code) {
|
||||
if (code == SortDirection.NULL)
|
||||
return null;
|
||||
if (code == SortDirection.ASCENDING)
|
||||
return "ascending";
|
||||
if (code == SortDirection.DESCENDING)
|
||||
|
@ -302,6 +304,8 @@ public class DataRequirement extends DataType implements ICompositeType {
|
|||
throw new FHIRException("Unknown ValueFilterComparator code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ValueFilterComparator code) {
|
||||
if (code == ValueFilterComparator.NULL)
|
||||
return null;
|
||||
if (code == ValueFilterComparator.EQ)
|
||||
return "eq";
|
||||
if (code == ValueFilterComparator.GT)
|
||||
|
|
|
@ -152,6 +152,8 @@ public class DetectedIssue extends DomainResource {
|
|||
throw new FHIRException("Unknown DetectedIssueSeverity code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DetectedIssueSeverity code) {
|
||||
if (code == DetectedIssueSeverity.NULL)
|
||||
return null;
|
||||
if (code == DetectedIssueSeverity.HIGH)
|
||||
return "high";
|
||||
if (code == DetectedIssueSeverity.MODERATE)
|
||||
|
@ -278,6 +280,8 @@ public class DetectedIssue extends DomainResource {
|
|||
throw new FHIRException("Unknown DetectedIssueStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DetectedIssueStatus code) {
|
||||
if (code == DetectedIssueStatus.NULL)
|
||||
return null;
|
||||
if (code == DetectedIssueStatus.PRELIMINARY)
|
||||
return "preliminary";
|
||||
if (code == DetectedIssueStatus.FINAL)
|
||||
|
|
|
@ -152,6 +152,8 @@ public class Device extends DomainResource {
|
|||
throw new FHIRException("Unknown FHIRDeviceStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(FHIRDeviceStatus code) {
|
||||
if (code == FHIRDeviceStatus.NULL)
|
||||
return null;
|
||||
if (code == FHIRDeviceStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == FHIRDeviceStatus.INACTIVE)
|
||||
|
@ -320,6 +322,8 @@ public class Device extends DomainResource {
|
|||
throw new FHIRException("Unknown UDIEntryType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(UDIEntryType code) {
|
||||
if (code == UDIEntryType.NULL)
|
||||
return null;
|
||||
if (code == UDIEntryType.BARCODE)
|
||||
return "barcode";
|
||||
if (code == UDIEntryType.RFID)
|
||||
|
|
|
@ -152,6 +152,8 @@ public class DeviceDefinition extends DomainResource {
|
|||
throw new FHIRException("Unknown DeviceCorrectiveActionScope code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DeviceCorrectiveActionScope code) {
|
||||
if (code == DeviceCorrectiveActionScope.NULL)
|
||||
return null;
|
||||
if (code == DeviceCorrectiveActionScope.MODEL)
|
||||
return "model";
|
||||
if (code == DeviceCorrectiveActionScope.LOTNUMBERS)
|
||||
|
@ -264,6 +266,8 @@ public class DeviceDefinition extends DomainResource {
|
|||
throw new FHIRException("Unknown DeviceDefinitionRegulatoryIdentifierType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DeviceDefinitionRegulatoryIdentifierType code) {
|
||||
if (code == DeviceDefinitionRegulatoryIdentifierType.NULL)
|
||||
return null;
|
||||
if (code == DeviceDefinitionRegulatoryIdentifierType.BASIC)
|
||||
return "basic";
|
||||
if (code == DeviceDefinitionRegulatoryIdentifierType.MASTER)
|
||||
|
@ -418,6 +422,8 @@ public class DeviceDefinition extends DomainResource {
|
|||
throw new FHIRException("Unknown DeviceProductionIdentifierInUDI code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DeviceProductionIdentifierInUDI code) {
|
||||
if (code == DeviceProductionIdentifierInUDI.NULL)
|
||||
return null;
|
||||
if (code == DeviceProductionIdentifierInUDI.LOTNUMBER)
|
||||
return "lot-number";
|
||||
if (code == DeviceProductionIdentifierInUDI.MANUFACTUREDDATE)
|
||||
|
|
|
@ -236,6 +236,8 @@ public class DeviceDispense extends DomainResource {
|
|||
throw new FHIRException("Unknown DeviceDispenseStatusCodes code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DeviceDispenseStatusCodes code) {
|
||||
if (code == DeviceDispenseStatusCodes.NULL)
|
||||
return null;
|
||||
if (code == DeviceDispenseStatusCodes.PREPARATION)
|
||||
return "preparation";
|
||||
if (code == DeviceDispenseStatusCodes.INPROGRESS)
|
||||
|
|
|
@ -166,6 +166,8 @@ public class DeviceMetric extends DomainResource {
|
|||
throw new FHIRException("Unknown DeviceMetricCalibrationState code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DeviceMetricCalibrationState code) {
|
||||
if (code == DeviceMetricCalibrationState.NULL)
|
||||
return null;
|
||||
if (code == DeviceMetricCalibrationState.NOTCALIBRATED)
|
||||
return "not-calibrated";
|
||||
if (code == DeviceMetricCalibrationState.CALIBRATIONREQUIRED)
|
||||
|
@ -294,6 +296,8 @@ public class DeviceMetric extends DomainResource {
|
|||
throw new FHIRException("Unknown DeviceMetricCalibrationType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DeviceMetricCalibrationType code) {
|
||||
if (code == DeviceMetricCalibrationType.NULL)
|
||||
return null;
|
||||
if (code == DeviceMetricCalibrationType.UNSPECIFIED)
|
||||
return "unspecified";
|
||||
if (code == DeviceMetricCalibrationType.OFFSET)
|
||||
|
@ -422,6 +426,8 @@ public class DeviceMetric extends DomainResource {
|
|||
throw new FHIRException("Unknown DeviceMetricCategory code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DeviceMetricCategory code) {
|
||||
if (code == DeviceMetricCategory.NULL)
|
||||
return null;
|
||||
if (code == DeviceMetricCategory.MEASUREMENT)
|
||||
return "measurement";
|
||||
if (code == DeviceMetricCategory.SETTING)
|
||||
|
@ -550,6 +556,8 @@ public class DeviceMetric extends DomainResource {
|
|||
throw new FHIRException("Unknown DeviceMetricOperationalStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DeviceMetricOperationalStatus code) {
|
||||
if (code == DeviceMetricOperationalStatus.NULL)
|
||||
return null;
|
||||
if (code == DeviceMetricOperationalStatus.ON)
|
||||
return "on";
|
||||
if (code == DeviceMetricOperationalStatus.OFF)
|
||||
|
|
|
@ -208,6 +208,8 @@ public class DeviceUsage extends DomainResource {
|
|||
throw new FHIRException("Unknown DeviceUsageStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DeviceUsageStatus code) {
|
||||
if (code == DeviceUsageStatus.NULL)
|
||||
return null;
|
||||
if (code == DeviceUsageStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == DeviceUsageStatus.COMPLETED)
|
||||
|
|
|
@ -264,6 +264,8 @@ public class DiagnosticReport extends DomainResource {
|
|||
throw new FHIRException("Unknown DiagnosticReportStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DiagnosticReportStatus code) {
|
||||
if (code == DiagnosticReportStatus.NULL)
|
||||
return null;
|
||||
if (code == DiagnosticReportStatus.REGISTERED)
|
||||
return "registered";
|
||||
if (code == DiagnosticReportStatus.PARTIAL)
|
||||
|
|
|
@ -152,6 +152,8 @@ public class DocumentReference extends DomainResource {
|
|||
throw new FHIRException("Unknown DocumentReferenceStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DocumentReferenceStatus code) {
|
||||
if (code == DocumentReferenceStatus.NULL)
|
||||
return null;
|
||||
if (code == DocumentReferenceStatus.CURRENT)
|
||||
return "current";
|
||||
if (code == DocumentReferenceStatus.SUPERSEDED)
|
||||
|
|
|
@ -254,6 +254,8 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
|
|||
throw new FHIRException("Unknown AdditionalBindingPurposeVS code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AdditionalBindingPurposeVS code) {
|
||||
if (code == AdditionalBindingPurposeVS.NULL)
|
||||
return null;
|
||||
if (code == AdditionalBindingPurposeVS.MAXIMUM)
|
||||
return "maximum";
|
||||
if (code == AdditionalBindingPurposeVS.MINIMUM)
|
||||
|
@ -380,6 +382,8 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
|
|||
throw new FHIRException("Unknown AggregationMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AggregationMode code) {
|
||||
if (code == AggregationMode.NULL)
|
||||
return null;
|
||||
if (code == AggregationMode.CONTAINED)
|
||||
return "contained";
|
||||
if (code == AggregationMode.REFERENCED)
|
||||
|
@ -478,6 +482,8 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
|
|||
throw new FHIRException("Unknown ConstraintSeverity code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ConstraintSeverity code) {
|
||||
if (code == ConstraintSeverity.NULL)
|
||||
return null;
|
||||
if (code == ConstraintSeverity.ERROR)
|
||||
return "error";
|
||||
if (code == ConstraintSeverity.WARNING)
|
||||
|
@ -630,6 +636,8 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
|
|||
throw new FHIRException("Unknown DiscriminatorType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DiscriminatorType code) {
|
||||
if (code == DiscriminatorType.NULL)
|
||||
return null;
|
||||
if (code == DiscriminatorType.VALUE)
|
||||
return "value";
|
||||
if (code == DiscriminatorType.EXISTS)
|
||||
|
@ -776,6 +784,8 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
|
|||
throw new FHIRException("Unknown PropertyRepresentation code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(PropertyRepresentation code) {
|
||||
if (code == PropertyRepresentation.NULL)
|
||||
return null;
|
||||
if (code == PropertyRepresentation.XMLATTR)
|
||||
return "xmlAttr";
|
||||
if (code == PropertyRepresentation.XMLTEXT)
|
||||
|
@ -892,6 +902,8 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
|
|||
throw new FHIRException("Unknown ReferenceVersionRules code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ReferenceVersionRules code) {
|
||||
if (code == ReferenceVersionRules.NULL)
|
||||
return null;
|
||||
if (code == ReferenceVersionRules.EITHER)
|
||||
return "either";
|
||||
if (code == ReferenceVersionRules.INDEPENDENT)
|
||||
|
@ -1004,6 +1016,8 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
|
|||
throw new FHIRException("Unknown SlicingRules code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(SlicingRules code) {
|
||||
if (code == SlicingRules.NULL)
|
||||
return null;
|
||||
if (code == SlicingRules.CLOSED)
|
||||
return "closed";
|
||||
if (code == SlicingRules.OPEN)
|
||||
|
|
|
@ -166,6 +166,8 @@ public class Encounter extends DomainResource {
|
|||
throw new FHIRException("Unknown EncounterLocationStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(EncounterLocationStatus code) {
|
||||
if (code == EncounterLocationStatus.NULL)
|
||||
return null;
|
||||
if (code == EncounterLocationStatus.PLANNED)
|
||||
return "planned";
|
||||
if (code == EncounterLocationStatus.ACTIVE)
|
||||
|
@ -1929,7 +1931,9 @@ public class Encounter extends DomainResource {
|
|||
protected DateTimeType plannedEndDate;
|
||||
|
||||
/**
|
||||
* Actual quantity of time the encounter lasted. This excludes the time during leaves of absence.
When missing it is the time in between the start and end values.
|
||||
* Actual quantity of time the encounter lasted. This excludes the time during leaves of absence.
|
||||
|
||||
When missing it is the time in between the start and end values.
|
||||
*/
|
||||
@Child(name = "length", type = {Duration.class}, order=19, min=0, max=1, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Actual quantity of time the encounter lasted (less time absent)", formalDefinition="Actual quantity of time the encounter lasted. This excludes the time during leaves of absence.\r\rWhen missing it is the time in between the start and end values." )
|
||||
|
@ -1981,7 +1985,9 @@ public class Encounter extends DomainResource {
|
|||
protected List<CodeableConcept> specialCourtesy;
|
||||
|
||||
/**
|
||||
* Details about the stay during which a healthcare service is provided.
This does not describe the event of admitting the patient, but rather any information that is relevant from the time of admittance until the time of discharge.
|
||||
* Details about the stay during which a healthcare service is provided.
|
||||
|
||||
This does not describe the event of admitting the patient, but rather any information that is relevant from the time of admittance until the time of discharge.
|
||||
*/
|
||||
@Child(name = "admission", type = {}, order=26, min=0, max=1, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Details about the admission to a healthcare service", formalDefinition="Details about the stay during which a healthcare service is provided.\r\rThis does not describe the event of admitting the patient, but rather any information that is relevant from the time of admittance until the time of discharge." )
|
||||
|
@ -2829,7 +2835,9 @@ public class Encounter extends DomainResource {
|
|||
}
|
||||
|
||||
/**
|
||||
* @return {@link #length} (Actual quantity of time the encounter lasted. This excludes the time during leaves of absence.
When missing it is the time in between the start and end values.)
|
||||
* @return {@link #length} (Actual quantity of time the encounter lasted. This excludes the time during leaves of absence.
|
||||
|
||||
When missing it is the time in between the start and end values.)
|
||||
*/
|
||||
public Duration getLength() {
|
||||
if (this.length == null)
|
||||
|
@ -2845,7 +2853,9 @@ public class Encounter extends DomainResource {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #length} (Actual quantity of time the encounter lasted. This excludes the time during leaves of absence.
When missing it is the time in between the start and end values.)
|
||||
* @param value {@link #length} (Actual quantity of time the encounter lasted. This excludes the time during leaves of absence.
|
||||
|
||||
When missing it is the time in between the start and end values.)
|
||||
*/
|
||||
public Encounter setLength(Duration value) {
|
||||
this.length = value;
|
||||
|
@ -3171,7 +3181,9 @@ public class Encounter extends DomainResource {
|
|||
}
|
||||
|
||||
/**
|
||||
* @return {@link #admission} (Details about the stay during which a healthcare service is provided.
This does not describe the event of admitting the patient, but rather any information that is relevant from the time of admittance until the time of discharge.)
|
||||
* @return {@link #admission} (Details about the stay during which a healthcare service is provided.
|
||||
|
||||
This does not describe the event of admitting the patient, but rather any information that is relevant from the time of admittance until the time of discharge.)
|
||||
*/
|
||||
public EncounterAdmissionComponent getAdmission() {
|
||||
if (this.admission == null)
|
||||
|
@ -3187,7 +3199,9 @@ public class Encounter extends DomainResource {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #admission} (Details about the stay during which a healthcare service is provided.
This does not describe the event of admitting the patient, but rather any information that is relevant from the time of admittance until the time of discharge.)
|
||||
* @param value {@link #admission} (Details about the stay during which a healthcare service is provided.
|
||||
|
||||
This does not describe the event of admitting the patient, but rather any information that is relevant from the time of admittance until the time of discharge.)
|
||||
*/
|
||||
public Encounter setAdmission(EncounterAdmissionComponent value) {
|
||||
this.admission = value;
|
||||
|
|
|
@ -180,6 +180,8 @@ public class Endpoint extends DomainResource {
|
|||
throw new FHIRException("Unknown EndpointStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(EndpointStatus code) {
|
||||
if (code == EndpointStatus.NULL)
|
||||
return null;
|
||||
if (code == EndpointStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == EndpointStatus.SUSPENDED)
|
||||
|
|
|
@ -166,6 +166,8 @@ public class EnrollmentResponse extends DomainResource {
|
|||
throw new FHIRException("Unknown EnrollmentOutcome code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(EnrollmentOutcome code) {
|
||||
if (code == EnrollmentOutcome.NULL)
|
||||
return null;
|
||||
if (code == EnrollmentOutcome.QUEUED)
|
||||
return "queued";
|
||||
if (code == EnrollmentOutcome.COMPLETE)
|
||||
|
|
|
@ -177,6 +177,8 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown ActionCardinalityBehavior code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionCardinalityBehavior code) {
|
||||
if (code == ActionCardinalityBehavior.NULL)
|
||||
return null;
|
||||
if (code == ActionCardinalityBehavior.SINGLE)
|
||||
return "single";
|
||||
if (code == ActionCardinalityBehavior.MULTIPLE)
|
||||
|
@ -290,6 +292,8 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown ActionConditionKind code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionConditionKind code) {
|
||||
if (code == ActionConditionKind.NULL)
|
||||
return null;
|
||||
if (code == ActionConditionKind.APPLICABILITY)
|
||||
return "applicability";
|
||||
if (code == ActionConditionKind.START)
|
||||
|
@ -405,6 +409,8 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown ActionGroupingBehavior code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionGroupingBehavior code) {
|
||||
if (code == ActionGroupingBehavior.NULL)
|
||||
return null;
|
||||
if (code == ActionGroupingBehavior.VISUALGROUP)
|
||||
return "visual-group";
|
||||
if (code == ActionGroupingBehavior.LOGICALGROUP)
|
||||
|
@ -618,6 +624,8 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown ActionParticipantType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionParticipantType code) {
|
||||
if (code == ActionParticipantType.NULL)
|
||||
return null;
|
||||
if (code == ActionParticipantType.CARETEAM)
|
||||
return "careteam";
|
||||
if (code == ActionParticipantType.DEVICE)
|
||||
|
@ -733,6 +741,8 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown ActionPrecheckBehavior code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionPrecheckBehavior code) {
|
||||
if (code == ActionPrecheckBehavior.NULL)
|
||||
return null;
|
||||
if (code == ActionPrecheckBehavior.YES)
|
||||
return "yes";
|
||||
if (code == ActionPrecheckBehavior.NO)
|
||||
|
@ -930,6 +940,8 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown ActionRelationshipType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionRelationshipType code) {
|
||||
if (code == ActionRelationshipType.NULL)
|
||||
return null;
|
||||
if (code == ActionRelationshipType.BEFORE)
|
||||
return "before";
|
||||
if (code == ActionRelationshipType.BEFORESTART)
|
||||
|
@ -1057,6 +1069,8 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown ActionRequiredBehavior code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionRequiredBehavior code) {
|
||||
if (code == ActionRequiredBehavior.NULL)
|
||||
return null;
|
||||
if (code == ActionRequiredBehavior.MUST)
|
||||
return "must";
|
||||
if (code == ActionRequiredBehavior.COULD)
|
||||
|
@ -1214,6 +1228,8 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown ActionSelectionBehavior code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionSelectionBehavior code) {
|
||||
if (code == ActionSelectionBehavior.NULL)
|
||||
return null;
|
||||
if (code == ActionSelectionBehavior.ANY)
|
||||
return "any";
|
||||
if (code == ActionSelectionBehavior.ALL)
|
||||
|
@ -1349,6 +1365,8 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown AdministrativeGender code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AdministrativeGender code) {
|
||||
if (code == AdministrativeGender.NULL)
|
||||
return null;
|
||||
if (code == AdministrativeGender.MALE)
|
||||
return "male";
|
||||
if (code == AdministrativeGender.FEMALE)
|
||||
|
@ -1424,6 +1442,8 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown AllLanguages code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AllLanguages code) {
|
||||
if (code == AllLanguages.NULL)
|
||||
return null;
|
||||
return "?";
|
||||
}
|
||||
public String toSystem(AllLanguages code) {
|
||||
|
@ -1547,6 +1567,8 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown BindingStrength code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(BindingStrength code) {
|
||||
if (code == BindingStrength.NULL)
|
||||
return null;
|
||||
if (code == BindingStrength.REQUIRED)
|
||||
return "required";
|
||||
if (code == BindingStrength.EXTENSIBLE)
|
||||
|
@ -1664,6 +1686,8 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown CapabilityStatementKind code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CapabilityStatementKind code) {
|
||||
if (code == CapabilityStatementKind.NULL)
|
||||
return null;
|
||||
if (code == CapabilityStatementKind.INSTANCE)
|
||||
return "instance";
|
||||
if (code == CapabilityStatementKind.CAPABILITY)
|
||||
|
@ -1793,6 +1817,8 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown ClaimProcessingCodes code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ClaimProcessingCodes code) {
|
||||
if (code == ClaimProcessingCodes.NULL)
|
||||
return null;
|
||||
if (code == ClaimProcessingCodes.QUEUED)
|
||||
return "queued";
|
||||
if (code == ClaimProcessingCodes.COMPLETE)
|
||||
|
@ -1938,6 +1964,8 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown CodeSystemContentMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CodeSystemContentMode code) {
|
||||
if (code == CodeSystemContentMode.NULL)
|
||||
return null;
|
||||
if (code == CodeSystemContentMode.NOTPRESENT)
|
||||
return "not-present";
|
||||
if (code == CodeSystemContentMode.EXAMPLE)
|
||||
|
@ -3163,6 +3191,8 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown CommonLanguages code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CommonLanguages code) {
|
||||
if (code == CommonLanguages.NULL)
|
||||
return null;
|
||||
if (code == CommonLanguages.AR)
|
||||
return "ar";
|
||||
if (code == CommonLanguages.BG)
|
||||
|
@ -3478,6 +3508,8 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown CompartmentType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CompartmentType code) {
|
||||
if (code == CompartmentType.NULL)
|
||||
return null;
|
||||
if (code == CompartmentType.PATIENT)
|
||||
return "Patient";
|
||||
if (code == CompartmentType.ENCOUNTER)
|
||||
|
@ -3711,6 +3743,8 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown CompositionStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CompositionStatus code) {
|
||||
if (code == CompositionStatus.NULL)
|
||||
return null;
|
||||
if (code == CompositionStatus.REGISTERED)
|
||||
return "registered";
|
||||
if (code == CompositionStatus.PARTIAL)
|
||||
|
@ -3881,6 +3915,8 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown ConceptMapRelationship code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ConceptMapRelationship code) {
|
||||
if (code == ConceptMapRelationship.NULL)
|
||||
return null;
|
||||
if (code == ConceptMapRelationship.RELATEDTO)
|
||||
return "related-to";
|
||||
if (code == ConceptMapRelationship.EQUIVALENT)
|
||||
|
@ -4014,6 +4050,8 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown ConsentDataMeaning code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ConsentDataMeaning code) {
|
||||
if (code == ConsentDataMeaning.NULL)
|
||||
return null;
|
||||
if (code == ConsentDataMeaning.INSTANCE)
|
||||
return "instance";
|
||||
if (code == ConsentDataMeaning.RELATED)
|
||||
|
@ -4117,6 +4155,8 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown ConsentProvisionType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ConsentProvisionType code) {
|
||||
if (code == ConsentProvisionType.NULL)
|
||||
return null;
|
||||
if (code == ConsentProvisionType.DENY)
|
||||
return "deny";
|
||||
if (code == ConsentProvisionType.PERMIT)
|
||||
|
@ -6736,6 +6776,8 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown Currencies code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(Currencies code) {
|
||||
if (code == Currencies.NULL)
|
||||
return null;
|
||||
if (code == Currencies.AED)
|
||||
return "AED";
|
||||
if (code == Currencies.AFN)
|
||||
|
@ -7265,6 +7307,8 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown DaysOfWeek code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DaysOfWeek code) {
|
||||
if (code == DaysOfWeek.NULL)
|
||||
return null;
|
||||
if (code == DaysOfWeek.MON)
|
||||
return "mon";
|
||||
if (code == DaysOfWeek.TUE)
|
||||
|
@ -7388,6 +7432,8 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown DeviceNameType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DeviceNameType code) {
|
||||
if (code == DeviceNameType.NULL)
|
||||
return null;
|
||||
if (code == DeviceNameType.REGISTEREDNAME)
|
||||
return "registered-name";
|
||||
if (code == DeviceNameType.USERFRIENDLYNAME)
|
||||
|
@ -7587,6 +7633,8 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown EncounterStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(EncounterStatus code) {
|
||||
if (code == EncounterStatus.NULL)
|
||||
return null;
|
||||
if (code == EncounterStatus.PLANNED)
|
||||
return "planned";
|
||||
if (code == EncounterStatus.INPROGRESS)
|
||||
|
@ -7784,6 +7832,8 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown EventStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(EventStatus code) {
|
||||
if (code == EventStatus.NULL)
|
||||
return null;
|
||||
if (code == EventStatus.PREPARATION)
|
||||
return "preparation";
|
||||
if (code == EventStatus.INPROGRESS)
|
||||
|
@ -7923,6 +7973,8 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown EvidenceVariableHandling code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(EvidenceVariableHandling code) {
|
||||
if (code == EvidenceVariableHandling.NULL)
|
||||
return null;
|
||||
if (code == EvidenceVariableHandling.CONTINUOUS)
|
||||
return "continuous";
|
||||
if (code == EvidenceVariableHandling.DICHOTOMOUS)
|
||||
|
@ -8026,6 +8078,8 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown ExampleScenarioActorType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ExampleScenarioActorType code) {
|
||||
if (code == ExampleScenarioActorType.NULL)
|
||||
return null;
|
||||
if (code == ExampleScenarioActorType.PERSON)
|
||||
return "person";
|
||||
if (code == ExampleScenarioActorType.SYSTEM)
|
||||
|
@ -11334,6 +11388,8 @@ The primary difference between a medicationstatement and a medicationadministrat
|
|||
throw new FHIRException("Unknown FHIRTypes code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(FHIRTypes code) {
|
||||
if (code == FHIRTypes.NULL)
|
||||
return null;
|
||||
if (code == FHIRTypes.BASE)
|
||||
return "Base";
|
||||
if (code == FHIRTypes.ELEMENT)
|
||||
|
@ -12717,6 +12773,8 @@ The primary difference between a medicationstatement and a medicationadministrat
|
|||
throw new FHIRException("Unknown FHIRVersion code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(FHIRVersion code) {
|
||||
if (code == FHIRVersion.NULL)
|
||||
return null;
|
||||
if (code == FHIRVersion._0_01)
|
||||
return "0.01";
|
||||
if (code == FHIRVersion._0_05)
|
||||
|
@ -13059,6 +13117,8 @@ The primary difference between a medicationstatement and a medicationadministrat
|
|||
throw new FHIRException("Unknown FilterOperator code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(FilterOperator code) {
|
||||
if (code == FilterOperator.NULL)
|
||||
return null;
|
||||
if (code == FilterOperator.EQUAL)
|
||||
return "=";
|
||||
if (code == FilterOperator.ISA)
|
||||
|
@ -13204,6 +13264,8 @@ The primary difference between a medicationstatement and a medicationadministrat
|
|||
throw new FHIRException("Unknown FinancialResourceStatusCodes code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(FinancialResourceStatusCodes code) {
|
||||
if (code == FinancialResourceStatusCodes.NULL)
|
||||
return null;
|
||||
if (code == FinancialResourceStatusCodes.ACTIVE)
|
||||
return "active";
|
||||
if (code == FinancialResourceStatusCodes.CANCELLED)
|
||||
|
@ -13321,6 +13383,8 @@ The primary difference between a medicationstatement and a medicationadministrat
|
|||
throw new FHIRException("Unknown ListMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ListMode code) {
|
||||
if (code == ListMode.NULL)
|
||||
return null;
|
||||
if (code == ListMode.WORKING)
|
||||
return "working";
|
||||
if (code == ListMode.SNAPSHOT)
|
||||
|
@ -13422,6 +13486,8 @@ The primary difference between a medicationstatement and a medicationadministrat
|
|||
throw new FHIRException("Unknown MeasureImprovementNotation code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MeasureImprovementNotation code) {
|
||||
if (code == MeasureImprovementNotation.NULL)
|
||||
return null;
|
||||
if (code == MeasureImprovementNotation.INCREASE)
|
||||
return "increase";
|
||||
if (code == MeasureImprovementNotation.DECREASE)
|
||||
|
@ -13493,6 +13559,8 @@ The primary difference between a medicationstatement and a medicationadministrat
|
|||
throw new FHIRException("Unknown MimeTypes code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MimeTypes code) {
|
||||
if (code == MimeTypes.NULL)
|
||||
return null;
|
||||
return "?";
|
||||
}
|
||||
public String toSystem(MimeTypes code) {
|
||||
|
@ -13672,6 +13740,8 @@ The primary difference between a medicationstatement and a medicationadministrat
|
|||
throw new FHIRException("Unknown ObservationStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ObservationStatus code) {
|
||||
if (code == ObservationStatus.NULL)
|
||||
return null;
|
||||
if (code == ObservationStatus.REGISTERED)
|
||||
return "registered";
|
||||
if (code == ObservationStatus.PRELIMINARY)
|
||||
|
@ -13783,6 +13853,8 @@ The primary difference between a medicationstatement and a medicationadministrat
|
|||
throw new FHIRException("Unknown OperationParameterUse code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(OperationParameterUse code) {
|
||||
if (code == OperationParameterUse.NULL)
|
||||
return null;
|
||||
if (code == OperationParameterUse.IN)
|
||||
return "in";
|
||||
if (code == OperationParameterUse.OUT)
|
||||
|
@ -13910,6 +13982,8 @@ The primary difference between a medicationstatement and a medicationadministrat
|
|||
throw new FHIRException("Unknown PublicationStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(PublicationStatus code) {
|
||||
if (code == PublicationStatus.NULL)
|
||||
return null;
|
||||
if (code == PublicationStatus.DRAFT)
|
||||
return "draft";
|
||||
if (code == PublicationStatus.ACTIVE)
|
||||
|
@ -14055,6 +14129,8 @@ The primary difference between a medicationstatement and a medicationadministrat
|
|||
throw new FHIRException("Unknown QuantityComparator code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(QuantityComparator code) {
|
||||
if (code == QuantityComparator.NULL)
|
||||
return null;
|
||||
if (code == QuantityComparator.LESS_THAN)
|
||||
return "<";
|
||||
if (code == QuantityComparator.LESS_OR_EQUAL)
|
||||
|
@ -14258,6 +14334,8 @@ The primary difference between a medicationstatement and a medicationadministrat
|
|||
throw new FHIRException("Unknown RequestIntent code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(RequestIntent code) {
|
||||
if (code == RequestIntent.NULL)
|
||||
return null;
|
||||
if (code == RequestIntent.PROPOSAL)
|
||||
return "proposal";
|
||||
if (code == RequestIntent.PLAN)
|
||||
|
@ -14399,6 +14477,8 @@ The primary difference between a medicationstatement and a medicationadministrat
|
|||
throw new FHIRException("Unknown RequestPriority code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(RequestPriority code) {
|
||||
if (code == RequestPriority.NULL)
|
||||
return null;
|
||||
if (code == RequestPriority.ROUTINE)
|
||||
return "routine";
|
||||
if (code == RequestPriority.URGENT)
|
||||
|
@ -14572,6 +14652,8 @@ The primary difference between a medicationstatement and a medicationadministrat
|
|||
throw new FHIRException("Unknown RequestStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(RequestStatus code) {
|
||||
if (code == RequestStatus.NULL)
|
||||
return null;
|
||||
if (code == RequestStatus.DRAFT)
|
||||
return "draft";
|
||||
if (code == RequestStatus.ACTIVE)
|
||||
|
@ -16867,6 +16949,8 @@ The primary difference between a medicationstatement and a medicationadministrat
|
|||
throw new FHIRException("Unknown ResourceTypeEnum code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ResourceTypeEnum code) {
|
||||
if (code == ResourceTypeEnum.NULL)
|
||||
return null;
|
||||
if (code == ResourceTypeEnum.ACCOUNT)
|
||||
return "Account";
|
||||
if (code == ResourceTypeEnum.ACTIVITYDEFINITION)
|
||||
|
@ -17376,6 +17460,8 @@ The primary difference between a medicationstatement and a medicationadministrat
|
|||
throw new FHIRException("Unknown SearchComparator code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(SearchComparator code) {
|
||||
if (code == SearchComparator.NULL)
|
||||
return null;
|
||||
if (code == SearchComparator.EQ)
|
||||
return "eq";
|
||||
if (code == SearchComparator.NE)
|
||||
|
@ -17671,6 +17757,8 @@ The primary difference between a medicationstatement and a medicationadministrat
|
|||
throw new FHIRException("Unknown SearchModifierCode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(SearchModifierCode code) {
|
||||
if (code == SearchModifierCode.NULL)
|
||||
return null;
|
||||
if (code == SearchModifierCode.MISSING)
|
||||
return "missing";
|
||||
if (code == SearchModifierCode.EXACT)
|
||||
|
@ -17894,6 +17982,8 @@ The primary difference between a medicationstatement and a medicationadministrat
|
|||
throw new FHIRException("Unknown SearchParamType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(SearchParamType code) {
|
||||
if (code == SearchParamType.NULL)
|
||||
return null;
|
||||
if (code == SearchParamType.NUMBER)
|
||||
return "number";
|
||||
if (code == SearchParamType.DATE)
|
||||
|
@ -18049,6 +18139,8 @@ The primary difference between a medicationstatement and a medicationadministrat
|
|||
throw new FHIRException("Unknown SubscriptionStatusCodes code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(SubscriptionStatusCodes code) {
|
||||
if (code == SubscriptionStatusCodes.NULL)
|
||||
return null;
|
||||
if (code == SubscriptionStatusCodes.REQUESTED)
|
||||
return "requested";
|
||||
if (code == SubscriptionStatusCodes.ACTIVE)
|
||||
|
@ -18168,6 +18260,8 @@ The primary difference between a medicationstatement and a medicationadministrat
|
|||
throw new FHIRException("Unknown Use code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(Use code) {
|
||||
if (code == Use.NULL)
|
||||
return null;
|
||||
if (code == Use.CLAIM)
|
||||
return "claim";
|
||||
if (code == Use.PREAUTHORIZATION)
|
||||
|
@ -21085,6 +21179,8 @@ The primary difference between a medicationstatement and a medicationadministrat
|
|||
throw new FHIRException("Unknown VersionIndependentResourceTypesAll code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(VersionIndependentResourceTypesAll code) {
|
||||
if (code == VersionIndependentResourceTypesAll.NULL)
|
||||
return null;
|
||||
if (code == VersionIndependentResourceTypesAll.ACCOUNT)
|
||||
return "Account";
|
||||
if (code == VersionIndependentResourceTypesAll.ACTIVITYDEFINITION)
|
||||
|
|
|
@ -208,6 +208,8 @@ public class EpisodeOfCare extends DomainResource {
|
|||
throw new FHIRException("Unknown EpisodeOfCareStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(EpisodeOfCareStatus code) {
|
||||
if (code == EpisodeOfCareStatus.NULL)
|
||||
return null;
|
||||
if (code == EpisodeOfCareStatus.PLANNED)
|
||||
return "planned";
|
||||
if (code == EpisodeOfCareStatus.WAITLIST)
|
||||
|
|
|
@ -222,6 +222,8 @@ public class EvidenceReport extends MetadataResource {
|
|||
throw new FHIRException("Unknown ReportRelationshipType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ReportRelationshipType code) {
|
||||
if (code == ReportRelationshipType.NULL)
|
||||
return null;
|
||||
if (code == ReportRelationshipType.REPLACES)
|
||||
return "replaces";
|
||||
if (code == ReportRelationshipType.AMENDS)
|
||||
|
|
|
@ -208,6 +208,8 @@ public class EvidenceVariable extends MetadataResource {
|
|||
throw new FHIRException("Unknown CharacteristicCombination code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CharacteristicCombination code) {
|
||||
if (code == CharacteristicCombination.NULL)
|
||||
return null;
|
||||
if (code == CharacteristicCombination.ALLOF)
|
||||
return "all-of";
|
||||
if (code == CharacteristicCombination.ANYOF)
|
||||
|
|
|
@ -167,6 +167,8 @@ public class ExplanationOfBenefit extends DomainResource {
|
|||
throw new FHIRException("Unknown ExplanationOfBenefitStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ExplanationOfBenefitStatus code) {
|
||||
if (code == ExplanationOfBenefitStatus.NULL)
|
||||
return null;
|
||||
if (code == ExplanationOfBenefitStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == ExplanationOfBenefitStatus.CANCELLED)
|
||||
|
|
|
@ -166,6 +166,8 @@ public class FamilyMemberHistory extends DomainResource {
|
|||
throw new FHIRException("Unknown FamilyHistoryStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(FamilyHistoryStatus code) {
|
||||
if (code == FamilyHistoryStatus.NULL)
|
||||
return null;
|
||||
if (code == FamilyHistoryStatus.PARTIAL)
|
||||
return "partial";
|
||||
if (code == FamilyHistoryStatus.COMPLETED)
|
||||
|
|
|
@ -152,6 +152,8 @@ public class Flag extends DomainResource {
|
|||
throw new FHIRException("Unknown FlagStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(FlagStatus code) {
|
||||
if (code == FlagStatus.NULL)
|
||||
return null;
|
||||
if (code == FlagStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == FlagStatus.INACTIVE)
|
||||
|
|
|
@ -152,6 +152,8 @@ public class FormularyItem extends DomainResource {
|
|||
throw new FHIRException("Unknown FormularyItemStatusCodes code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(FormularyItemStatusCodes code) {
|
||||
if (code == FormularyItemStatusCodes.NULL)
|
||||
return null;
|
||||
if (code == FormularyItemStatusCodes.ACTIVE)
|
||||
return "active";
|
||||
if (code == FormularyItemStatusCodes.ENTEREDINERROR)
|
||||
|
|
|
@ -180,6 +180,8 @@ public class GenomicStudy extends DomainResource {
|
|||
throw new FHIRException("Unknown GenomicStudyStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(GenomicStudyStatus code) {
|
||||
if (code == GenomicStudyStatus.NULL)
|
||||
return null;
|
||||
if (code == GenomicStudyStatus.REGISTERED)
|
||||
return "registered";
|
||||
if (code == GenomicStudyStatus.AVAILABLE)
|
||||
|
|
|
@ -236,6 +236,8 @@ public class Goal extends DomainResource {
|
|||
throw new FHIRException("Unknown GoalLifecycleStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(GoalLifecycleStatus code) {
|
||||
if (code == GoalLifecycleStatus.NULL)
|
||||
return null;
|
||||
if (code == GoalLifecycleStatus.PROPOSED)
|
||||
return "proposed";
|
||||
if (code == GoalLifecycleStatus.PLANNED)
|
||||
|
|
|
@ -166,6 +166,8 @@ public class GraphDefinition extends CanonicalResource {
|
|||
throw new FHIRException("Unknown GraphCompartmentRule code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(GraphCompartmentRule code) {
|
||||
if (code == GraphCompartmentRule.NULL)
|
||||
return null;
|
||||
if (code == GraphCompartmentRule.IDENTICAL)
|
||||
return "identical";
|
||||
if (code == GraphCompartmentRule.MATCHING)
|
||||
|
@ -266,6 +268,8 @@ public class GraphDefinition extends CanonicalResource {
|
|||
throw new FHIRException("Unknown GraphCompartmentUse code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(GraphCompartmentUse code) {
|
||||
if (code == GraphCompartmentUse.NULL)
|
||||
return null;
|
||||
if (code == GraphCompartmentUse.WHERE)
|
||||
return "where";
|
||||
if (code == GraphCompartmentUse.REQUIRES)
|
||||
|
|
|
@ -138,6 +138,8 @@ public class Group extends DomainResource {
|
|||
throw new FHIRException("Unknown GroupMembershipBasis code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(GroupMembershipBasis code) {
|
||||
if (code == GroupMembershipBasis.NULL)
|
||||
return null;
|
||||
if (code == GroupMembershipBasis.DEFINITIONAL)
|
||||
return "definitional";
|
||||
if (code == GroupMembershipBasis.ENUMERATED)
|
||||
|
@ -346,6 +348,8 @@ public class Group extends DomainResource {
|
|||
throw new FHIRException("Unknown GroupType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(GroupType code) {
|
||||
if (code == GroupType.NULL)
|
||||
return null;
|
||||
if (code == GroupType.PERSON)
|
||||
return "person";
|
||||
if (code == GroupType.ANIMAL)
|
||||
|
|
|
@ -194,6 +194,8 @@ public class GuidanceResponse extends DomainResource {
|
|||
throw new FHIRException("Unknown GuidanceResponseStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(GuidanceResponseStatus code) {
|
||||
if (code == GuidanceResponseStatus.NULL)
|
||||
return null;
|
||||
if (code == GuidanceResponseStatus.SUCCESS)
|
||||
return "success";
|
||||
if (code == GuidanceResponseStatus.DATAREQUESTED)
|
||||
|
|
|
@ -208,6 +208,8 @@ public class HumanName extends DataType implements ICompositeType {
|
|||
throw new FHIRException("Unknown NameUse code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(NameUse code) {
|
||||
if (code == NameUse.NULL)
|
||||
return null;
|
||||
if (code == NameUse.USUAL)
|
||||
return "usual";
|
||||
if (code == NameUse.OFFICIAL)
|
||||
|
|
|
@ -178,6 +178,8 @@ public class Identifier extends DataType implements ICompositeType {
|
|||
throw new FHIRException("Unknown IdentifierUse code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(IdentifierUse code) {
|
||||
if (code == IdentifierUse.NULL)
|
||||
return null;
|
||||
if (code == IdentifierUse.USUAL)
|
||||
return "usual";
|
||||
if (code == IdentifierUse.OFFICIAL)
|
||||
|
|
|
@ -181,6 +181,8 @@ public class ImagingSelection extends DomainResource {
|
|||
throw new FHIRException("Unknown ImagingSelection2DGraphicType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ImagingSelection2DGraphicType code) {
|
||||
if (code == ImagingSelection2DGraphicType.NULL)
|
||||
return null;
|
||||
if (code == ImagingSelection2DGraphicType.POINT)
|
||||
return "point";
|
||||
if (code == ImagingSelection2DGraphicType.POLYLINE)
|
||||
|
@ -339,6 +341,8 @@ public class ImagingSelection extends DomainResource {
|
|||
throw new FHIRException("Unknown ImagingSelection3DGraphicType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ImagingSelection3DGraphicType code) {
|
||||
if (code == ImagingSelection3DGraphicType.NULL)
|
||||
return null;
|
||||
if (code == ImagingSelection3DGraphicType.POINT)
|
||||
return "point";
|
||||
if (code == ImagingSelection3DGraphicType.MULTIPOINT)
|
||||
|
@ -457,6 +461,8 @@ public class ImagingSelection extends DomainResource {
|
|||
throw new FHIRException("Unknown ImagingSelectionStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ImagingSelectionStatus code) {
|
||||
if (code == ImagingSelectionStatus.NULL)
|
||||
return null;
|
||||
if (code == ImagingSelectionStatus.AVAILABLE)
|
||||
return "available";
|
||||
if (code == ImagingSelectionStatus.ENTEREDINERROR)
|
||||
|
|
|
@ -180,6 +180,8 @@ public class ImagingStudy extends DomainResource {
|
|||
throw new FHIRException("Unknown ImagingStudyStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ImagingStudyStatus code) {
|
||||
if (code == ImagingStudyStatus.NULL)
|
||||
return null;
|
||||
if (code == ImagingStudyStatus.REGISTERED)
|
||||
return "registered";
|
||||
if (code == ImagingStudyStatus.AVAILABLE)
|
||||
|
|
|
@ -152,6 +152,8 @@ public class Immunization extends DomainResource {
|
|||
throw new FHIRException("Unknown ImmunizationStatusCodes code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ImmunizationStatusCodes code) {
|
||||
if (code == ImmunizationStatusCodes.NULL)
|
||||
return null;
|
||||
if (code == ImmunizationStatusCodes.COMPLETED)
|
||||
return "completed";
|
||||
if (code == ImmunizationStatusCodes.ENTEREDINERROR)
|
||||
|
|
|
@ -138,6 +138,8 @@ public class ImmunizationEvaluation extends DomainResource {
|
|||
throw new FHIRException("Unknown ImmunizationEvaluationStatusCodes code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ImmunizationEvaluationStatusCodes code) {
|
||||
if (code == ImmunizationEvaluationStatusCodes.NULL)
|
||||
return null;
|
||||
if (code == ImmunizationEvaluationStatusCodes.COMPLETED)
|
||||
return "completed";
|
||||
if (code == ImmunizationEvaluationStatusCodes.ENTEREDINERROR)
|
||||
|
|
|
@ -166,6 +166,8 @@ public class ImplementationGuide extends CanonicalResource {
|
|||
throw new FHIRException("Unknown GuidePageGeneration code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(GuidePageGeneration code) {
|
||||
if (code == GuidePageGeneration.NULL)
|
||||
return null;
|
||||
if (code == GuidePageGeneration.HTML)
|
||||
return "html";
|
||||
if (code == GuidePageGeneration.MARKDOWN)
|
||||
|
@ -8053,6 +8055,8 @@ public class ImplementationGuide extends CanonicalResource {
|
|||
throw new FHIRException("Unknown SPDXLicense code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(SPDXLicense code) {
|
||||
if (code == SPDXLicense.NULL)
|
||||
return null;
|
||||
if (code == SPDXLicense._0BSD)
|
||||
return "0BSD";
|
||||
if (code == SPDXLicense.AAL)
|
||||
|
|
|
@ -152,6 +152,8 @@ public class Ingredient extends DomainResource {
|
|||
throw new FHIRException("Unknown IngredientManufacturerRole code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(IngredientManufacturerRole code) {
|
||||
if (code == IngredientManufacturerRole.NULL)
|
||||
return null;
|
||||
if (code == IngredientManufacturerRole.ALLOWED)
|
||||
return "allowed";
|
||||
if (code == IngredientManufacturerRole.POSSIBLE)
|
||||
|
|
|
@ -166,6 +166,8 @@ public class InventoryItem extends DomainResource {
|
|||
throw new FHIRException("Unknown InventoryItemStatusCodes code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(InventoryItemStatusCodes code) {
|
||||
if (code == InventoryItemStatusCodes.NULL)
|
||||
return null;
|
||||
if (code == InventoryItemStatusCodes.ACTIVE)
|
||||
return "active";
|
||||
if (code == InventoryItemStatusCodes.INACTIVE)
|
||||
|
|
|
@ -138,6 +138,8 @@ public class InventoryReport extends DomainResource {
|
|||
throw new FHIRException("Unknown InventoryCountType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(InventoryCountType code) {
|
||||
if (code == InventoryCountType.NULL)
|
||||
return null;
|
||||
if (code == InventoryCountType.SNAPSHOT)
|
||||
return "snapshot";
|
||||
if (code == InventoryCountType.DIFFERENCE)
|
||||
|
@ -262,6 +264,8 @@ public class InventoryReport extends DomainResource {
|
|||
throw new FHIRException("Unknown InventoryReportStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(InventoryReportStatus code) {
|
||||
if (code == InventoryReportStatus.NULL)
|
||||
return null;
|
||||
if (code == InventoryReportStatus.DRAFT)
|
||||
return "draft";
|
||||
if (code == InventoryReportStatus.REQUESTED)
|
||||
|
|
|
@ -180,6 +180,8 @@ public class Invoice extends DomainResource {
|
|||
throw new FHIRException("Unknown InvoiceStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(InvoiceStatus code) {
|
||||
if (code == InvoiceStatus.NULL)
|
||||
return null;
|
||||
if (code == InvoiceStatus.DRAFT)
|
||||
return "draft";
|
||||
if (code == InvoiceStatus.ISSUED)
|
||||
|
|
|
@ -152,6 +152,8 @@ public class Linkage extends DomainResource {
|
|||
throw new FHIRException("Unknown LinkageType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(LinkageType code) {
|
||||
if (code == LinkageType.NULL)
|
||||
return null;
|
||||
if (code == LinkageType.SOURCE)
|
||||
return "source";
|
||||
if (code == LinkageType.ALTERNATE)
|
||||
|
|
|
@ -152,6 +152,8 @@ public class ListResource extends DomainResource {
|
|||
throw new FHIRException("Unknown ListStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ListStatus code) {
|
||||
if (code == ListStatus.NULL)
|
||||
return null;
|
||||
if (code == ListStatus.CURRENT)
|
||||
return "current";
|
||||
if (code == ListStatus.RETIRED)
|
||||
|
|
|
@ -139,6 +139,8 @@ public class Location extends DomainResource {
|
|||
throw new FHIRException("Unknown LocationMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(LocationMode code) {
|
||||
if (code == LocationMode.NULL)
|
||||
return null;
|
||||
if (code == LocationMode.INSTANCE)
|
||||
return "instance";
|
||||
if (code == LocationMode.KIND)
|
||||
|
@ -249,6 +251,8 @@ public class Location extends DomainResource {
|
|||
throw new FHIRException("Unknown LocationStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(LocationStatus code) {
|
||||
if (code == LocationStatus.NULL)
|
||||
return null;
|
||||
if (code == LocationStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == LocationStatus.SUSPENDED)
|
||||
|
@ -2250,7 +2254,9 @@ public class Location extends DomainResource {
|
|||
* <p>
|
||||
* Description: <b>Search for locations where the location.position is near to, or within a specified distance of, the provided coordinates expressed as [latitude]|[longitude]|[distance]|[units] (using the WGS84 datum, see notes).
|
||||
|
||||
Servers which support the near parameter SHALL support the unit string 'km' for kilometers and SHOULD support '[mi_us]' for miles, support for other units is optional. If the units are omitted, then kms should be assumed. If the distance is omitted, then the server can use its own discretion as to what distances should be considered near (and units are irrelevant).
If the server is unable to understand the units (and does support the near search parameter), it MIGHT return an OperationOutcome and fail the search with a http status 400 BadRequest. If the server does not support the near parameter, the parameter MIGHT report the unused parameter in a bundled OperationOutcome and still perform the search ignoring the near parameter.
|
||||
Servers which support the near parameter SHALL support the unit string 'km' for kilometers and SHOULD support '[mi_us]' for miles, support for other units is optional. If the units are omitted, then kms should be assumed. If the distance is omitted, then the server can use its own discretion as to what distances should be considered near (and units are irrelevant).
|
||||
|
||||
If the server is unable to understand the units (and does support the near search parameter), it MIGHT return an OperationOutcome and fail the search with a http status 400 BadRequest. If the server does not support the near parameter, the parameter MIGHT report the unused parameter in a bundled OperationOutcome and still perform the search ignoring the near parameter.
|
||||
|
||||
Note: The algorithm to determine the distance is not defined by the specification, and systems might have different engines that calculate things differently. They could consider geographic point to point, or path via road, or including current traffic conditions, or just simple neighboring postcodes/localities if that's all it had access to.</b><br>
|
||||
* Type: <b>special</b><br>
|
||||
|
@ -2264,7 +2270,9 @@ Note: The algorithm to determine the distance is not defined by the specificatio
|
|||
* <p>
|
||||
* Description: <b>Search for locations where the location.position is near to, or within a specified distance of, the provided coordinates expressed as [latitude]|[longitude]|[distance]|[units] (using the WGS84 datum, see notes).
|
||||
|
||||
Servers which support the near parameter SHALL support the unit string 'km' for kilometers and SHOULD support '[mi_us]' for miles, support for other units is optional. If the units are omitted, then kms should be assumed. If the distance is omitted, then the server can use its own discretion as to what distances should be considered near (and units are irrelevant).
If the server is unable to understand the units (and does support the near search parameter), it MIGHT return an OperationOutcome and fail the search with a http status 400 BadRequest. If the server does not support the near parameter, the parameter MIGHT report the unused parameter in a bundled OperationOutcome and still perform the search ignoring the near parameter.
|
||||
Servers which support the near parameter SHALL support the unit string 'km' for kilometers and SHOULD support '[mi_us]' for miles, support for other units is optional. If the units are omitted, then kms should be assumed. If the distance is omitted, then the server can use its own discretion as to what distances should be considered near (and units are irrelevant).
|
||||
|
||||
If the server is unable to understand the units (and does support the near search parameter), it MIGHT return an OperationOutcome and fail the search with a http status 400 BadRequest. If the server does not support the near parameter, the parameter MIGHT report the unused parameter in a bundled OperationOutcome and still perform the search ignoring the near parameter.
|
||||
|
||||
Note: The algorithm to determine the distance is not defined by the specification, and systems might have different engines that calculate things differently. They could consider geographic point to point, or path via road, or including current traffic conditions, or just simple neighboring postcodes/localities if that's all it had access to.</b><br>
|
||||
* Type: <b>special</b><br>
|
||||
|
|
|
@ -152,6 +152,8 @@ public class MeasureReport extends DomainResource {
|
|||
throw new FHIRException("Unknown MeasureReportStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MeasureReportStatus code) {
|
||||
if (code == MeasureReportStatus.NULL)
|
||||
return null;
|
||||
if (code == MeasureReportStatus.COMPLETE)
|
||||
return "complete";
|
||||
if (code == MeasureReportStatus.PENDING)
|
||||
|
@ -278,6 +280,8 @@ public class MeasureReport extends DomainResource {
|
|||
throw new FHIRException("Unknown MeasureReportType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MeasureReportType code) {
|
||||
if (code == MeasureReportType.NULL)
|
||||
return null;
|
||||
if (code == MeasureReportType.INDIVIDUAL)
|
||||
return "individual";
|
||||
if (code == MeasureReportType.SUBJECTLIST)
|
||||
|
@ -378,6 +382,8 @@ public class MeasureReport extends DomainResource {
|
|||
throw new FHIRException("Unknown SubmitDataUpdateType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(SubmitDataUpdateType code) {
|
||||
if (code == SubmitDataUpdateType.NULL)
|
||||
return null;
|
||||
if (code == SubmitDataUpdateType.INCREMENTAL)
|
||||
return "incremental";
|
||||
if (code == SubmitDataUpdateType.SNAPSHOT)
|
||||
|
|
|
@ -152,6 +152,8 @@ public class Medication extends DomainResource {
|
|||
throw new FHIRException("Unknown MedicationStatusCodes code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MedicationStatusCodes code) {
|
||||
if (code == MedicationStatusCodes.NULL)
|
||||
return null;
|
||||
if (code == MedicationStatusCodes.ACTIVE)
|
||||
return "active";
|
||||
if (code == MedicationStatusCodes.INACTIVE)
|
||||
|
|
|
@ -208,6 +208,8 @@ public class MedicationAdministration extends DomainResource {
|
|||
throw new FHIRException("Unknown MedicationAdministrationStatusCodes code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MedicationAdministrationStatusCodes code) {
|
||||
if (code == MedicationAdministrationStatusCodes.NULL)
|
||||
return null;
|
||||
if (code == MedicationAdministrationStatusCodes.INPROGRESS)
|
||||
return "in-progress";
|
||||
if (code == MedicationAdministrationStatusCodes.NOTDONE)
|
||||
|
@ -453,7 +455,9 @@ public class MedicationAdministration extends DomainResource {
|
|||
@Block()
|
||||
public static class MedicationAdministrationDosageComponent extends BackboneElement implements IBaseBackboneElement {
|
||||
/**
|
||||
* Free text dosage can be used for cases where the dosage administered is too complex to code. When coded dosage is present, the free text dosage may still be present for display to humans.
The dosage instructions should reflect the dosage of the medication that was administered.
|
||||
* Free text dosage can be used for cases where the dosage administered is too complex to code. When coded dosage is present, the free text dosage may still be present for display to humans.
|
||||
|
||||
The dosage instructions should reflect the dosage of the medication that was administered.
|
||||
*/
|
||||
@Child(name = "text", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Free text dosage instructions e.g. SIG", formalDefinition="Free text dosage can be used for cases where the dosage administered is too complex to code. When coded dosage is present, the free text dosage may still be present for display to humans.\r\rThe dosage instructions should reflect the dosage of the medication that was administered." )
|
||||
|
@ -507,7 +511,9 @@ public class MedicationAdministration extends DomainResource {
|
|||
}
|
||||
|
||||
/**
|
||||
* @return {@link #text} (Free text dosage can be used for cases where the dosage administered is too complex to code. When coded dosage is present, the free text dosage may still be present for display to humans.
The dosage instructions should reflect the dosage of the medication that was administered.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value
|
||||
* @return {@link #text} (Free text dosage can be used for cases where the dosage administered is too complex to code. When coded dosage is present, the free text dosage may still be present for display to humans.
|
||||
|
||||
The dosage instructions should reflect the dosage of the medication that was administered.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value
|
||||
*/
|
||||
public StringType getTextElement() {
|
||||
if (this.text == null)
|
||||
|
@ -527,7 +533,9 @@ public class MedicationAdministration extends DomainResource {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #text} (Free text dosage can be used for cases where the dosage administered is too complex to code. When coded dosage is present, the free text dosage may still be present for display to humans.
The dosage instructions should reflect the dosage of the medication that was administered.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value
|
||||
* @param value {@link #text} (Free text dosage can be used for cases where the dosage administered is too complex to code. When coded dosage is present, the free text dosage may still be present for display to humans.
|
||||
|
||||
The dosage instructions should reflect the dosage of the medication that was administered.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value
|
||||
*/
|
||||
public MedicationAdministrationDosageComponent setTextElement(StringType value) {
|
||||
this.text = value;
|
||||
|
@ -535,14 +543,18 @@ public class MedicationAdministration extends DomainResource {
|
|||
}
|
||||
|
||||
/**
|
||||
* @return Free text dosage can be used for cases where the dosage administered is too complex to code. When coded dosage is present, the free text dosage may still be present for display to humans.
The dosage instructions should reflect the dosage of the medication that was administered.
|
||||
* @return Free text dosage can be used for cases where the dosage administered is too complex to code. When coded dosage is present, the free text dosage may still be present for display to humans.
|
||||
|
||||
The dosage instructions should reflect the dosage of the medication that was administered.
|
||||
*/
|
||||
public String getText() {
|
||||
return this.text == null ? null : this.text.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value Free text dosage can be used for cases where the dosage administered is too complex to code. When coded dosage is present, the free text dosage may still be present for display to humans.
The dosage instructions should reflect the dosage of the medication that was administered.
|
||||
* @param value Free text dosage can be used for cases where the dosage administered is too complex to code. When coded dosage is present, the free text dosage may still be present for display to humans.
|
||||
|
||||
The dosage instructions should reflect the dosage of the medication that was administered.
|
||||
*/
|
||||
public MedicationAdministrationDosageComponent setText(String value) {
|
||||
if (Utilities.noString(value))
|
||||
|
|
|
@ -236,6 +236,8 @@ public class MedicationDispense extends DomainResource {
|
|||
throw new FHIRException("Unknown MedicationDispenseStatusCodes code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MedicationDispenseStatusCodes code) {
|
||||
if (code == MedicationDispenseStatusCodes.NULL)
|
||||
return null;
|
||||
if (code == MedicationDispenseStatusCodes.PREPARATION)
|
||||
return "preparation";
|
||||
if (code == MedicationDispenseStatusCodes.INPROGRESS)
|
||||
|
|
|
@ -152,6 +152,8 @@ public class MedicationKnowledge extends DomainResource {
|
|||
throw new FHIRException("Unknown MedicationKnowledgeStatusCodes code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MedicationKnowledgeStatusCodes code) {
|
||||
if (code == MedicationKnowledgeStatusCodes.NULL)
|
||||
return null;
|
||||
if (code == MedicationKnowledgeStatusCodes.ACTIVE)
|
||||
return "active";
|
||||
if (code == MedicationKnowledgeStatusCodes.ENTEREDINERROR)
|
||||
|
|
|
@ -222,6 +222,8 @@ public class MedicationRequest extends DomainResource {
|
|||
throw new FHIRException("Unknown MedicationRequestIntent code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MedicationRequestIntent code) {
|
||||
if (code == MedicationRequestIntent.NULL)
|
||||
return null;
|
||||
if (code == MedicationRequestIntent.PROPOSAL)
|
||||
return "proposal";
|
||||
if (code == MedicationRequestIntent.PLAN)
|
||||
|
@ -428,6 +430,8 @@ public class MedicationRequest extends DomainResource {
|
|||
throw new FHIRException("Unknown MedicationrequestStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MedicationrequestStatus code) {
|
||||
if (code == MedicationrequestStatus.NULL)
|
||||
return null;
|
||||
if (code == MedicationrequestStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == MedicationrequestStatus.ONHOLD)
|
||||
|
|
|
@ -154,6 +154,8 @@ public class MedicationStatement extends DomainResource {
|
|||
throw new FHIRException("Unknown MedicationStatementStatusCodes code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MedicationStatementStatusCodes code) {
|
||||
if (code == MedicationStatementStatusCodes.NULL)
|
||||
return null;
|
||||
if (code == MedicationStatementStatusCodes.RECORDED)
|
||||
return "recorded";
|
||||
if (code == MedicationStatementStatusCodes.ENTEREDINERROR)
|
||||
|
|
|
@ -152,6 +152,8 @@ public class MessageDefinition extends CanonicalResource {
|
|||
throw new FHIRException("Unknown MessageSignificanceCategory code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MessageSignificanceCategory code) {
|
||||
if (code == MessageSignificanceCategory.NULL)
|
||||
return null;
|
||||
if (code == MessageSignificanceCategory.CONSEQUENCE)
|
||||
return "consequence";
|
||||
if (code == MessageSignificanceCategory.CURRENCY)
|
||||
|
@ -278,6 +280,8 @@ public class MessageDefinition extends CanonicalResource {
|
|||
throw new FHIRException("Unknown MessageheaderResponseRequest code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MessageheaderResponseRequest code) {
|
||||
if (code == MessageheaderResponseRequest.NULL)
|
||||
return null;
|
||||
if (code == MessageheaderResponseRequest.ALWAYS)
|
||||
return "always";
|
||||
if (code == MessageheaderResponseRequest.ONERROR)
|
||||
|
|
|
@ -152,6 +152,8 @@ public class MessageHeader extends DomainResource {
|
|||
throw new FHIRException("Unknown ResponseType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ResponseType code) {
|
||||
if (code == ResponseType.NULL)
|
||||
return null;
|
||||
if (code == ResponseType.OK)
|
||||
return "ok";
|
||||
if (code == ResponseType.TRANSIENTERROR)
|
||||
|
|
|
@ -138,6 +138,8 @@ public class MolecularSequence extends DomainResource {
|
|||
throw new FHIRException("Unknown OrientationType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(OrientationType code) {
|
||||
if (code == OrientationType.NULL)
|
||||
return null;
|
||||
if (code == OrientationType.SENSE)
|
||||
return "sense";
|
||||
if (code == OrientationType.ANTISENSE)
|
||||
|
@ -248,6 +250,8 @@ public class MolecularSequence extends DomainResource {
|
|||
throw new FHIRException("Unknown SequenceType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(SequenceType code) {
|
||||
if (code == SequenceType.NULL)
|
||||
return null;
|
||||
if (code == SequenceType.AA)
|
||||
return "aa";
|
||||
if (code == SequenceType.DNA)
|
||||
|
@ -346,6 +350,8 @@ public class MolecularSequence extends DomainResource {
|
|||
throw new FHIRException("Unknown StrandType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(StrandType code) {
|
||||
if (code == StrandType.NULL)
|
||||
return null;
|
||||
if (code == StrandType.WATSON)
|
||||
return "watson";
|
||||
if (code == StrandType.CRICK)
|
||||
|
|
|
@ -193,6 +193,8 @@ public class MonetaryComponent extends DataType implements ICompositeType {
|
|||
throw new FHIRException("Unknown PriceComponentType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(PriceComponentType code) {
|
||||
if (code == PriceComponentType.NULL)
|
||||
return null;
|
||||
if (code == PriceComponentType.BASE)
|
||||
return "base";
|
||||
if (code == PriceComponentType.SURCHARGE)
|
||||
|
|
|
@ -194,6 +194,8 @@ public class NamingSystem extends MetadataResource {
|
|||
throw new FHIRException("Unknown NamingSystemIdentifierType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(NamingSystemIdentifierType code) {
|
||||
if (code == NamingSystemIdentifierType.NULL)
|
||||
return null;
|
||||
if (code == NamingSystemIdentifierType.OID)
|
||||
return "oid";
|
||||
if (code == NamingSystemIdentifierType.UUID)
|
||||
|
@ -314,6 +316,8 @@ public class NamingSystem extends MetadataResource {
|
|||
public String toCode(NamingSystemType code) {
|
||||
if (code == NamingSystemType.NULL)
|
||||
return null;
|
||||
if (code == NamingSystemType.NULL)
|
||||
return null;
|
||||
if (code == NamingSystemType.CODESYSTEM)
|
||||
return "codesystem";
|
||||
if (code == NamingSystemType.IDENTIFIER)
|
||||
|
|
|
@ -167,6 +167,8 @@ public class Narrative extends BaseNarrative implements INarrative {
|
|||
throw new FHIRException("Unknown NarrativeStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(NarrativeStatus code) {
|
||||
if (code == NarrativeStatus.NULL)
|
||||
return null;
|
||||
if (code == NarrativeStatus.GENERATED)
|
||||
return "generated";
|
||||
if (code == NarrativeStatus.EXTENSIONS)
|
||||
|
|
|
@ -152,6 +152,8 @@ public class NutritionProduct extends DomainResource {
|
|||
throw new FHIRException("Unknown NutritionProductStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(NutritionProductStatus code) {
|
||||
if (code == NutritionProductStatus.NULL)
|
||||
return null;
|
||||
if (code == NutritionProductStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == NutritionProductStatus.INACTIVE)
|
||||
|
|
|
@ -152,6 +152,8 @@ public class Observation extends DomainResource {
|
|||
throw new FHIRException("Unknown TriggeredBytype code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(TriggeredBytype code) {
|
||||
if (code == TriggeredBytype.NULL)
|
||||
return null;
|
||||
if (code == TriggeredBytype.REFLEX)
|
||||
return "reflex";
|
||||
if (code == TriggeredBytype.REPEAT)
|
||||
|
|
|
@ -264,6 +264,8 @@ public class ObservationDefinition extends DomainResource {
|
|||
throw new FHIRException("Unknown ObservationDataType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ObservationDataType code) {
|
||||
if (code == ObservationDataType.NULL)
|
||||
return null;
|
||||
if (code == ObservationDataType.QUANTITY)
|
||||
return "Quantity";
|
||||
if (code == ObservationDataType.CODEABLECONCEPT)
|
||||
|
@ -392,6 +394,8 @@ public class ObservationDefinition extends DomainResource {
|
|||
throw new FHIRException("Unknown ObservationRangeCategory code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ObservationRangeCategory code) {
|
||||
if (code == ObservationRangeCategory.NULL)
|
||||
return null;
|
||||
if (code == ObservationRangeCategory.REFERENCE)
|
||||
return "reference";
|
||||
if (code == ObservationRangeCategory.CRITICAL)
|
||||
|
|
|
@ -138,6 +138,8 @@ public class OperationDefinition extends CanonicalResource {
|
|||
throw new FHIRException("Unknown OperationKind code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(OperationKind code) {
|
||||
if (code == OperationKind.NULL)
|
||||
return null;
|
||||
if (code == OperationKind.OPERATION)
|
||||
return "operation";
|
||||
if (code == OperationKind.QUERY)
|
||||
|
@ -248,6 +250,8 @@ public class OperationDefinition extends CanonicalResource {
|
|||
throw new FHIRException("Unknown OperationParameterScope code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(OperationParameterScope code) {
|
||||
if (code == OperationParameterScope.NULL)
|
||||
return null;
|
||||
if (code == OperationParameterScope.INSTANCE)
|
||||
return "instance";
|
||||
if (code == OperationParameterScope.TYPE)
|
||||
|
|
|
@ -185,6 +185,8 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
|
|||
throw new FHIRException("Unknown IssueSeverity code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(IssueSeverity code) {
|
||||
if (code == IssueSeverity.NULL)
|
||||
return null;
|
||||
if (code == IssueSeverity.FATAL)
|
||||
return "fatal";
|
||||
if (code == IssueSeverity.ERROR)
|
||||
|
@ -721,6 +723,8 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
|
|||
throw new FHIRException("Unknown IssueType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(IssueType code) {
|
||||
if (code == IssueType.NULL)
|
||||
return null;
|
||||
if (code == IssueType.INVALID)
|
||||
return "invalid";
|
||||
if (code == IssueType.STRUCTURE)
|
||||
|
|
|
@ -166,6 +166,8 @@ public class Patient extends DomainResource {
|
|||
throw new FHIRException("Unknown LinkType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(LinkType code) {
|
||||
if (code == LinkType.NULL)
|
||||
return null;
|
||||
if (code == LinkType.REPLACEDBY)
|
||||
return "replaced-by";
|
||||
if (code == LinkType.REPLACES)
|
||||
|
|
|
@ -152,6 +152,8 @@ public class PaymentReconciliation extends DomainResource {
|
|||
throw new FHIRException("Unknown NoteType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(NoteType code) {
|
||||
if (code == NoteType.NULL)
|
||||
return null;
|
||||
if (code == NoteType.DISPLAY)
|
||||
return "display";
|
||||
if (code == NoteType.PRINT)
|
||||
|
@ -278,6 +280,8 @@ public class PaymentReconciliation extends DomainResource {
|
|||
throw new FHIRException("Unknown PaymentOutcome code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(PaymentOutcome code) {
|
||||
if (code == PaymentOutcome.NULL)
|
||||
return null;
|
||||
if (code == PaymentOutcome.QUEUED)
|
||||
return "queued";
|
||||
if (code == PaymentOutcome.COMPLETE)
|
||||
|
|
|
@ -194,6 +194,8 @@ public class Permission extends DomainResource {
|
|||
throw new FHIRException("Unknown PermissionRuleCombining code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(PermissionRuleCombining code) {
|
||||
if (code == PermissionRuleCombining.NULL)
|
||||
return null;
|
||||
if (code == PermissionRuleCombining.DENYOVERRIDES)
|
||||
return "deny-overrides";
|
||||
if (code == PermissionRuleCombining.PERMITOVERRIDES)
|
||||
|
@ -326,6 +328,8 @@ public class Permission extends DomainResource {
|
|||
throw new FHIRException("Unknown PermissionStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(PermissionStatus code) {
|
||||
if (code == PermissionStatus.NULL)
|
||||
return null;
|
||||
if (code == PermissionStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == PermissionStatus.ENTEREDINERROR)
|
||||
|
|
|
@ -166,6 +166,8 @@ public class Person extends DomainResource {
|
|||
throw new FHIRException("Unknown IdentityAssuranceLevel code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(IdentityAssuranceLevel code) {
|
||||
if (code == IdentityAssuranceLevel.NULL)
|
||||
return null;
|
||||
if (code == IdentityAssuranceLevel.LEVEL1)
|
||||
return "level1";
|
||||
if (code == IdentityAssuranceLevel.LEVEL2)
|
||||
|
|
|
@ -180,6 +180,8 @@ public class Provenance extends DomainResource {
|
|||
throw new FHIRException("Unknown ProvenanceEntityRole code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ProvenanceEntityRole code) {
|
||||
if (code == ProvenanceEntityRole.NULL)
|
||||
return null;
|
||||
if (code == ProvenanceEntityRole.REVISION)
|
||||
return "revision";
|
||||
if (code == ProvenanceEntityRole.QUOTATION)
|
||||
|
|
|
@ -138,6 +138,8 @@ public class Questionnaire extends MetadataResource {
|
|||
throw new FHIRException("Unknown EnableWhenBehavior code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(EnableWhenBehavior code) {
|
||||
if (code == EnableWhenBehavior.NULL)
|
||||
return null;
|
||||
if (code == EnableWhenBehavior.ALL)
|
||||
return "all";
|
||||
if (code == EnableWhenBehavior.ANY)
|
||||
|
@ -248,6 +250,8 @@ public class Questionnaire extends MetadataResource {
|
|||
throw new FHIRException("Unknown QuestionnaireAnswerConstraint code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(QuestionnaireAnswerConstraint code) {
|
||||
if (code == QuestionnaireAnswerConstraint.NULL)
|
||||
return null;
|
||||
if (code == QuestionnaireAnswerConstraint.OPTIONSONLY)
|
||||
return "optionsOnly";
|
||||
if (code == QuestionnaireAnswerConstraint.OPTIONSORTYPE)
|
||||
|
@ -346,6 +350,8 @@ public class Questionnaire extends MetadataResource {
|
|||
throw new FHIRException("Unknown QuestionnaireItemDisabledDisplay code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(QuestionnaireItemDisabledDisplay code) {
|
||||
if (code == QuestionnaireItemDisabledDisplay.NULL)
|
||||
return null;
|
||||
if (code == QuestionnaireItemDisabledDisplay.HIDDEN)
|
||||
return "hidden";
|
||||
if (code == QuestionnaireItemDisabledDisplay.PROTECTED)
|
||||
|
@ -512,6 +518,8 @@ public class Questionnaire extends MetadataResource {
|
|||
throw new FHIRException("Unknown QuestionnaireItemOperator code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(QuestionnaireItemOperator code) {
|
||||
if (code == QuestionnaireItemOperator.NULL)
|
||||
return null;
|
||||
if (code == QuestionnaireItemOperator.EXISTS)
|
||||
return "exists";
|
||||
if (code == QuestionnaireItemOperator.EQUAL)
|
||||
|
@ -814,6 +822,8 @@ public class Questionnaire extends MetadataResource {
|
|||
throw new FHIRException("Unknown QuestionnaireItemType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(QuestionnaireItemType code) {
|
||||
if (code == QuestionnaireItemType.NULL)
|
||||
return null;
|
||||
if (code == QuestionnaireItemType.GROUP)
|
||||
return "group";
|
||||
if (code == QuestionnaireItemType.DISPLAY)
|
||||
|
|
|
@ -180,6 +180,8 @@ public class QuestionnaireResponse extends DomainResource {
|
|||
throw new FHIRException("Unknown QuestionnaireResponseStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(QuestionnaireResponseStatus code) {
|
||||
if (code == QuestionnaireResponseStatus.NULL)
|
||||
return null;
|
||||
if (code == QuestionnaireResponseStatus.INPROGRESS)
|
||||
return "in-progress";
|
||||
if (code == QuestionnaireResponseStatus.COMPLETED)
|
||||
|
|
|
@ -612,6 +612,8 @@ public class RelatedArtifact extends DataType implements ICompositeType {
|
|||
throw new FHIRException("Unknown RelatedArtifactType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(RelatedArtifactType code) {
|
||||
if (code == RelatedArtifactType.NULL)
|
||||
return null;
|
||||
if (code == RelatedArtifactType.DOCUMENTATION)
|
||||
return "documentation";
|
||||
if (code == RelatedArtifactType.JUSTIFICATION)
|
||||
|
|
|
@ -166,6 +166,8 @@ public class Requirements extends CanonicalResource {
|
|||
throw new FHIRException("Unknown ConformanceExpectation code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ConformanceExpectation code) {
|
||||
if (code == ConformanceExpectation.NULL)
|
||||
return null;
|
||||
if (code == ConformanceExpectation.SHALL)
|
||||
return "SHALL";
|
||||
if (code == ConformanceExpectation.SHOULD)
|
||||
|
|
|
@ -152,6 +152,8 @@ public class SearchParameter extends CanonicalResource {
|
|||
throw new FHIRException("Unknown SearchProcessingModeType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(SearchProcessingModeType code) {
|
||||
if (code == SearchProcessingModeType.NULL)
|
||||
return null;
|
||||
if (code == SearchProcessingModeType.NORMAL)
|
||||
return "normal";
|
||||
if (code == SearchProcessingModeType.PHONETIC)
|
||||
|
|
|
@ -180,6 +180,8 @@ public class Slot extends DomainResource {
|
|||
throw new FHIRException("Unknown SlotStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(SlotStatus code) {
|
||||
if (code == SlotStatus.NULL)
|
||||
return null;
|
||||
if (code == SlotStatus.BUSY)
|
||||
return "busy";
|
||||
if (code == SlotStatus.FREE)
|
||||
|
|
|
@ -138,6 +138,8 @@ public class Specimen extends DomainResource {
|
|||
throw new FHIRException("Unknown SpecimenCombined code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(SpecimenCombined code) {
|
||||
if (code == SpecimenCombined.NULL)
|
||||
return null;
|
||||
if (code == SpecimenCombined.GROUPED)
|
||||
return "grouped";
|
||||
if (code == SpecimenCombined.POOLED)
|
||||
|
@ -262,6 +264,8 @@ public class Specimen extends DomainResource {
|
|||
throw new FHIRException("Unknown SpecimenStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(SpecimenStatus code) {
|
||||
if (code == SpecimenStatus.NULL)
|
||||
return null;
|
||||
if (code == SpecimenStatus.AVAILABLE)
|
||||
return "available";
|
||||
if (code == SpecimenStatus.UNAVAILABLE)
|
||||
|
|
|
@ -138,6 +138,8 @@ public class SpecimenDefinition extends DomainResource {
|
|||
throw new FHIRException("Unknown SpecimenContainedPreference code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(SpecimenContainedPreference code) {
|
||||
if (code == SpecimenContainedPreference.NULL)
|
||||
return null;
|
||||
if (code == SpecimenContainedPreference.PREFERRED)
|
||||
return "preferred";
|
||||
if (code == SpecimenContainedPreference.ALTERNATE)
|
||||
|
|
|
@ -152,6 +152,8 @@ public class StructureDefinition extends CanonicalResource {
|
|||
throw new FHIRException("Unknown ExtensionContextType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ExtensionContextType code) {
|
||||
if (code == ExtensionContextType.NULL)
|
||||
return null;
|
||||
if (code == ExtensionContextType.FHIRPATH)
|
||||
return "fhirpath";
|
||||
if (code == ExtensionContextType.ELEMENT)
|
||||
|
@ -278,6 +280,8 @@ public class StructureDefinition extends CanonicalResource {
|
|||
throw new FHIRException("Unknown StructureDefinitionKind code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(StructureDefinitionKind code) {
|
||||
if (code == StructureDefinitionKind.NULL)
|
||||
return null;
|
||||
if (code == StructureDefinitionKind.PRIMITIVETYPE)
|
||||
return "primitive-type";
|
||||
if (code == StructureDefinitionKind.COMPLEXTYPE)
|
||||
|
@ -378,6 +382,8 @@ public class StructureDefinition extends CanonicalResource {
|
|||
throw new FHIRException("Unknown TypeDerivationRule code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(TypeDerivationRule code) {
|
||||
if (code == TypeDerivationRule.NULL)
|
||||
return null;
|
||||
if (code == TypeDerivationRule.SPECIALIZATION)
|
||||
return "specialization";
|
||||
if (code == TypeDerivationRule.CONSTRAINT)
|
||||
|
|
|
@ -139,6 +139,8 @@ public class StructureMap extends CanonicalResource {
|
|||
throw new FHIRException("Unknown StructureMapGroupTypeMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(StructureMapGroupTypeMode code) {
|
||||
if (code == StructureMapGroupTypeMode.NULL)
|
||||
return null;
|
||||
if (code == StructureMapGroupTypeMode.TYPES)
|
||||
return "types";
|
||||
if (code == StructureMapGroupTypeMode.TYPEANDTYPES)
|
||||
|
@ -235,6 +237,8 @@ public class StructureMap extends CanonicalResource {
|
|||
throw new FHIRException("Unknown StructureMapInputMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(StructureMapInputMode code) {
|
||||
if (code == StructureMapInputMode.NULL)
|
||||
return null;
|
||||
if (code == StructureMapInputMode.SOURCE)
|
||||
return "source";
|
||||
if (code == StructureMapInputMode.TARGET)
|
||||
|
@ -359,6 +363,8 @@ public class StructureMap extends CanonicalResource {
|
|||
throw new FHIRException("Unknown StructureMapModelMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(StructureMapModelMode code) {
|
||||
if (code == StructureMapModelMode.NULL)
|
||||
return null;
|
||||
if (code == StructureMapModelMode.SOURCE)
|
||||
return "source";
|
||||
if (code == StructureMapModelMode.QUERIED)
|
||||
|
@ -501,6 +507,8 @@ public class StructureMap extends CanonicalResource {
|
|||
throw new FHIRException("Unknown StructureMapSourceListMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(StructureMapSourceListMode code) {
|
||||
if (code == StructureMapSourceListMode.NULL)
|
||||
return null;
|
||||
if (code == StructureMapSourceListMode.FIRST)
|
||||
return "first";
|
||||
if (code == StructureMapSourceListMode.NOTFIRST)
|
||||
|
@ -631,6 +639,8 @@ public class StructureMap extends CanonicalResource {
|
|||
throw new FHIRException("Unknown StructureMapTargetListMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(StructureMapTargetListMode code) {
|
||||
if (code == StructureMapTargetListMode.NULL)
|
||||
return null;
|
||||
if (code == StructureMapTargetListMode.FIRST)
|
||||
return "first";
|
||||
if (code == StructureMapTargetListMode.SHARE)
|
||||
|
@ -941,6 +951,8 @@ public class StructureMap extends CanonicalResource {
|
|||
throw new FHIRException("Unknown StructureMapTransform code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(StructureMapTransform code) {
|
||||
if (code == StructureMapTransform.NULL)
|
||||
return null;
|
||||
if (code == StructureMapTransform.CREATE)
|
||||
return "create";
|
||||
if (code == StructureMapTransform.COPY)
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue