Merge pull request #1694 from hapifhir/do-20240719-enum-null-checks-dstu3
Return null for all toCode enum params that are Enum.NULL (dstu3)
This commit is contained in:
commit
555eb70e2d
|
@ -149,6 +149,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)
|
||||
|
|
|
@ -1782,6 +1782,8 @@ The primary difference between a medication statement and a medication administr
|
|||
throw new FHIRException("Unknown ActivityDefinitionKind code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActivityDefinitionKind code) {
|
||||
if (code == ActivityDefinitionKind.NULL)
|
||||
return null;
|
||||
if (code == ActivityDefinitionKind.ACCOUNT)
|
||||
return "Account";
|
||||
if (code == ActivityDefinitionKind.ACTIVITYDEFINITION)
|
||||
|
@ -2126,6 +2128,8 @@ The primary difference between a medication statement and a medication administr
|
|||
throw new FHIRException("Unknown ActivityParticipantType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActivityParticipantType code) {
|
||||
if (code == ActivityParticipantType.NULL)
|
||||
return null;
|
||||
if (code == ActivityParticipantType.PATIENT)
|
||||
return "patient";
|
||||
if (code == ActivityParticipantType.PRACTITIONER)
|
||||
|
|
|
@ -162,6 +162,8 @@ public class Address extends Type 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)
|
||||
|
@ -276,6 +278,8 @@ public class Address extends Type 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)
|
||||
|
|
|
@ -136,6 +136,8 @@ public class AdverseEvent extends DomainResource {
|
|||
throw new FHIRException("Unknown AdverseEventCategory code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AdverseEventCategory code) {
|
||||
if (code == AdverseEventCategory.NULL)
|
||||
return null;
|
||||
if (code == AdverseEventCategory.AE)
|
||||
return "AE";
|
||||
if (code == AdverseEventCategory.PAE)
|
||||
|
@ -232,6 +234,8 @@ public class AdverseEvent extends DomainResource {
|
|||
throw new FHIRException("Unknown AdverseEventCausality code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AdverseEventCausality code) {
|
||||
if (code == AdverseEventCausality.NULL)
|
||||
return null;
|
||||
if (code == AdverseEventCausality.CAUSALITY1)
|
||||
return "causality1";
|
||||
if (code == AdverseEventCausality.CAUSALITY2)
|
||||
|
|
|
@ -151,6 +151,8 @@ public class AllergyIntolerance extends DomainResource {
|
|||
throw new FHIRException("Unknown AllergyIntoleranceClinicalStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AllergyIntoleranceClinicalStatus code) {
|
||||
if (code == AllergyIntoleranceClinicalStatus.NULL)
|
||||
return null;
|
||||
if (code == AllergyIntoleranceClinicalStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == AllergyIntoleranceClinicalStatus.INACTIVE)
|
||||
|
@ -277,6 +279,8 @@ public class AllergyIntolerance extends DomainResource {
|
|||
throw new FHIRException("Unknown AllergyIntoleranceVerificationStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AllergyIntoleranceVerificationStatus code) {
|
||||
if (code == AllergyIntoleranceVerificationStatus.NULL)
|
||||
return null;
|
||||
if (code == AllergyIntoleranceVerificationStatus.UNCONFIRMED)
|
||||
return "unconfirmed";
|
||||
if (code == AllergyIntoleranceVerificationStatus.CONFIRMED)
|
||||
|
@ -377,6 +381,8 @@ public class AllergyIntolerance extends DomainResource {
|
|||
throw new FHIRException("Unknown AllergyIntoleranceType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AllergyIntoleranceType code) {
|
||||
if (code == AllergyIntoleranceType.NULL)
|
||||
return null;
|
||||
if (code == AllergyIntoleranceType.ALLERGY)
|
||||
return "allergy";
|
||||
if (code == AllergyIntoleranceType.INTOLERANCE)
|
||||
|
@ -501,6 +507,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)
|
||||
|
@ -615,6 +623,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)
|
||||
|
@ -727,6 +737,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)
|
||||
|
|
|
@ -220,6 +220,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)
|
||||
|
@ -342,6 +344,8 @@ public class Appointment extends DomainResource {
|
|||
throw new FHIRException("Unknown ParticipantRequired code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ParticipantRequired code) {
|
||||
if (code == ParticipantRequired.NULL)
|
||||
return null;
|
||||
if (code == ParticipantRequired.REQUIRED)
|
||||
return "required";
|
||||
if (code == ParticipantRequired.OPTIONAL)
|
||||
|
@ -468,6 +472,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)
|
||||
|
|
|
@ -162,6 +162,8 @@ public class AppointmentResponse extends DomainResource {
|
|||
throw new FHIRException("Unknown ParticipantStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ParticipantStatus code) {
|
||||
if (code == ParticipantStatus.NULL)
|
||||
return null;
|
||||
if (code == ParticipantStatus.ACCEPTED)
|
||||
return "accepted";
|
||||
if (code == ParticipantStatus.DECLINED)
|
||||
|
|
|
@ -178,6 +178,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)
|
||||
|
@ -308,6 +310,8 @@ public class AuditEvent extends DomainResource {
|
|||
throw new FHIRException("Unknown AuditEventOutcome code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AuditEventOutcome code) {
|
||||
if (code == AuditEventOutcome.NULL)
|
||||
return null;
|
||||
if (code == AuditEventOutcome._0)
|
||||
return "0";
|
||||
if (code == AuditEventOutcome._4)
|
||||
|
@ -450,6 +454,8 @@ public class AuditEvent extends DomainResource {
|
|||
throw new FHIRException("Unknown AuditEventAgentNetworkType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AuditEventAgentNetworkType code) {
|
||||
if (code == AuditEventAgentNetworkType.NULL)
|
||||
return null;
|
||||
if (code == AuditEventAgentNetworkType._1)
|
||||
return "1";
|
||||
if (code == AuditEventAgentNetworkType._2)
|
||||
|
|
|
@ -235,6 +235,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)
|
||||
|
@ -359,6 +361,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)
|
||||
|
@ -485,6 +489,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.POST)
|
||||
|
|
|
@ -158,6 +158,8 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
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)
|
||||
|
@ -284,6 +286,8 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
throw new FHIRException("Unknown UnknownContentCode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(UnknownContentCode code) {
|
||||
if (code == UnknownContentCode.NULL)
|
||||
return null;
|
||||
if (code == UnknownContentCode.NO)
|
||||
return "no";
|
||||
if (code == UnknownContentCode.EXTENSIONS)
|
||||
|
@ -384,6 +388,8 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
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)
|
||||
|
@ -578,6 +584,8 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
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)
|
||||
|
@ -702,6 +710,8 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
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)
|
||||
|
@ -828,6 +838,8 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
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)
|
||||
|
@ -942,6 +954,8 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
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)
|
||||
|
@ -1082,6 +1096,8 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
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)
|
||||
|
@ -1212,6 +1228,8 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
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)
|
||||
|
@ -1312,6 +1330,8 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
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)
|
||||
|
@ -1422,6 +1442,8 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
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)
|
||||
|
@ -1520,6 +1542,8 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
|
|||
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)
|
||||
|
|
|
@ -206,6 +206,8 @@ public class CarePlan extends DomainResource {
|
|||
throw new FHIRException("Unknown CarePlanStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CarePlanStatus code) {
|
||||
if (code == CarePlanStatus.NULL)
|
||||
return null;
|
||||
if (code == CarePlanStatus.DRAFT)
|
||||
return "draft";
|
||||
if (code == CarePlanStatus.ACTIVE)
|
||||
|
@ -342,6 +344,8 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
throw new FHIRException("Unknown CarePlanIntent code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CarePlanIntent code) {
|
||||
if (code == CarePlanIntent.NULL)
|
||||
return null;
|
||||
if (code == CarePlanIntent.PROPOSAL)
|
||||
return "proposal";
|
||||
if (code == CarePlanIntent.PLAN)
|
||||
|
@ -512,6 +516,8 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
throw new FHIRException("Unknown CarePlanActivityStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CarePlanActivityStatus code) {
|
||||
if (code == CarePlanActivityStatus.NULL)
|
||||
return null;
|
||||
if (code == CarePlanActivityStatus.NOTSTARTED)
|
||||
return "not-started";
|
||||
if (code == CarePlanActivityStatus.SCHEDULED)
|
||||
|
|
|
@ -177,6 +177,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)
|
||||
|
|
|
@ -210,6 +210,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)
|
||||
|
|
|
@ -165,6 +165,8 @@ public class Claim extends DomainResource {
|
|||
throw new FHIRException("Unknown ClaimStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ClaimStatus code) {
|
||||
if (code == ClaimStatus.NULL)
|
||||
return null;
|
||||
if (code == ClaimStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == ClaimStatus.CANCELLED)
|
||||
|
@ -293,6 +295,8 @@ public class Claim extends DomainResource {
|
|||
throw new FHIRException("Unknown Use code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(Use code) {
|
||||
if (code == Use.NULL)
|
||||
return null;
|
||||
if (code == Use.COMPLETE)
|
||||
return "complete";
|
||||
if (code == Use.PROPOSED)
|
||||
|
|
|
@ -164,6 +164,8 @@ public class ClaimResponse extends DomainResource {
|
|||
throw new FHIRException("Unknown ClaimResponseStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ClaimResponseStatus code) {
|
||||
if (code == ClaimResponseStatus.NULL)
|
||||
return null;
|
||||
if (code == ClaimResponseStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == ClaimResponseStatus.CANCELLED)
|
||||
|
|
|
@ -152,6 +152,8 @@ public class ClinicalImpression extends DomainResource {
|
|||
throw new FHIRException("Unknown ClinicalImpressionStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ClinicalImpressionStatus code) {
|
||||
if (code == ClinicalImpressionStatus.NULL)
|
||||
return null;
|
||||
if (code == ClinicalImpressionStatus.DRAFT)
|
||||
return "draft";
|
||||
if (code == ClinicalImpressionStatus.COMPLETED)
|
||||
|
|
|
@ -169,6 +169,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)
|
||||
|
@ -297,6 +299,8 @@ public class CodeSystem extends MetadataResource {
|
|||
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)
|
||||
|
@ -495,6 +499,8 @@ public class CodeSystem extends MetadataResource {
|
|||
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)
|
||||
|
@ -661,6 +667,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)
|
||||
|
|
|
@ -206,6 +206,8 @@ public class Communication extends DomainResource {
|
|||
throw new FHIRException("Unknown CommunicationStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CommunicationStatus code) {
|
||||
if (code == CommunicationStatus.NULL)
|
||||
return null;
|
||||
if (code == CommunicationStatus.PREPARATION)
|
||||
return "preparation";
|
||||
if (code == CommunicationStatus.INPROGRESS)
|
||||
|
|
|
@ -206,6 +206,8 @@ public class CommunicationRequest extends DomainResource {
|
|||
throw new FHIRException("Unknown CommunicationRequestStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CommunicationRequestStatus code) {
|
||||
if (code == CommunicationRequestStatus.NULL)
|
||||
return null;
|
||||
if (code == CommunicationRequestStatus.DRAFT)
|
||||
return "draft";
|
||||
if (code == CommunicationRequestStatus.ACTIVE)
|
||||
|
@ -340,6 +342,8 @@ public class CommunicationRequest extends DomainResource {
|
|||
throw new FHIRException("Unknown CommunicationPriority code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CommunicationPriority code) {
|
||||
if (code == CommunicationPriority.NULL)
|
||||
return null;
|
||||
if (code == CommunicationPriority.ROUTINE)
|
||||
return "routine";
|
||||
if (code == CommunicationPriority.URGENT)
|
||||
|
|
|
@ -182,6 +182,8 @@ public class CompartmentDefinition extends MetadataResource {
|
|||
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)
|
||||
|
|
|
@ -165,6 +165,8 @@ public class Composition extends DomainResource {
|
|||
throw new FHIRException("Unknown CompositionStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CompositionStatus code) {
|
||||
if (code == CompositionStatus.NULL)
|
||||
return null;
|
||||
if (code == CompositionStatus.PRELIMINARY)
|
||||
return "preliminary";
|
||||
if (code == CompositionStatus.FINAL)
|
||||
|
@ -321,6 +323,8 @@ public class Composition extends DomainResource {
|
|||
throw new FHIRException("Unknown DocumentConfidentiality code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DocumentConfidentiality code) {
|
||||
if (code == DocumentConfidentiality.NULL)
|
||||
return null;
|
||||
if (code == DocumentConfidentiality.U)
|
||||
return "U";
|
||||
if (code == DocumentConfidentiality.L)
|
||||
|
@ -453,6 +457,8 @@ public class Composition extends DomainResource {
|
|||
throw new FHIRException("Unknown CompositionAttestationMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CompositionAttestationMode code) {
|
||||
if (code == CompositionAttestationMode.NULL)
|
||||
return null;
|
||||
if (code == CompositionAttestationMode.PERSONAL)
|
||||
return "personal";
|
||||
if (code == CompositionAttestationMode.PROFESSIONAL)
|
||||
|
@ -581,6 +587,8 @@ public class Composition extends DomainResource {
|
|||
throw new FHIRException("Unknown DocumentRelationshipType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DocumentRelationshipType code) {
|
||||
if (code == DocumentRelationshipType.NULL)
|
||||
return null;
|
||||
if (code == DocumentRelationshipType.REPLACES)
|
||||
return "replaces";
|
||||
if (code == DocumentRelationshipType.TRANSFORMS)
|
||||
|
@ -695,6 +703,8 @@ public class Composition extends DomainResource {
|
|||
throw new FHIRException("Unknown SectionMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(SectionMode code) {
|
||||
if (code == SectionMode.NULL)
|
||||
return null;
|
||||
if (code == SectionMode.WORKING)
|
||||
return "working";
|
||||
if (code == SectionMode.SNAPSHOT)
|
||||
|
|
|
@ -158,6 +158,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.PROVIDED)
|
||||
return "provided";
|
||||
if (code == ConceptMapGroupUnmappedMode.FIXED)
|
||||
|
|
|
@ -178,6 +178,8 @@ public class Condition extends DomainResource {
|
|||
throw new FHIRException("Unknown ConditionClinicalStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ConditionClinicalStatus code) {
|
||||
if (code == ConditionClinicalStatus.NULL)
|
||||
return null;
|
||||
if (code == ConditionClinicalStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == ConditionClinicalStatus.RECURRENCE)
|
||||
|
@ -336,6 +338,8 @@ public class Condition extends DomainResource {
|
|||
throw new FHIRException("Unknown ConditionVerificationStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ConditionVerificationStatus code) {
|
||||
if (code == ConditionVerificationStatus.NULL)
|
||||
return null;
|
||||
if (code == ConditionVerificationStatus.PROVISIONAL)
|
||||
return "provisional";
|
||||
if (code == ConditionVerificationStatus.DIFFERENTIAL)
|
||||
|
|
|
@ -193,6 +193,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.PROPOSED)
|
||||
|
@ -325,6 +327,8 @@ public class Consent extends DomainResource {
|
|||
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)
|
||||
|
@ -425,6 +429,8 @@ public class Consent extends DomainResource {
|
|||
throw new FHIRException("Unknown ConsentExceptType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ConsentExceptType code) {
|
||||
if (code == ConsentExceptType.NULL)
|
||||
return null;
|
||||
if (code == ConsentExceptType.DENY)
|
||||
return "deny";
|
||||
if (code == ConsentExceptType.PERMIT)
|
||||
|
|
|
@ -202,6 +202,8 @@ public class ContactPoint extends Type 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)
|
||||
|
@ -350,6 +352,8 @@ public class ContactPoint extends Type 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)
|
||||
|
|
|
@ -322,6 +322,8 @@ public class Contract extends DomainResource {
|
|||
throw new FHIRException("Unknown ContractStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ContractStatus code) {
|
||||
if (code == ContractStatus.NULL)
|
||||
return null;
|
||||
if (code == ContractStatus.AMENDED)
|
||||
return "amended";
|
||||
if (code == ContractStatus.APPENDED)
|
||||
|
|
|
@ -161,6 +161,8 @@ public class Contributor extends Type 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)
|
||||
|
|
|
@ -163,6 +163,8 @@ public class Coverage extends DomainResource {
|
|||
throw new FHIRException("Unknown CoverageStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CoverageStatus code) {
|
||||
if (code == CoverageStatus.NULL)
|
||||
return null;
|
||||
if (code == CoverageStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == CoverageStatus.CANCELLED)
|
||||
|
|
|
@ -196,6 +196,8 @@ public class DataElement extends MetadataResource {
|
|||
throw new FHIRException("Unknown DataElementStringency code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DataElementStringency code) {
|
||||
if (code == DataElementStringency.NULL)
|
||||
return null;
|
||||
if (code == DataElementStringency.COMPARABLE)
|
||||
return "comparable";
|
||||
if (code == DataElementStringency.FULLYSPECIFIED)
|
||||
|
|
|
@ -220,6 +220,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.REGISTERED)
|
||||
return "registered";
|
||||
if (code == DetectedIssueStatus.PRELIMINARY)
|
||||
|
@ -342,6 +344,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)
|
||||
|
|
|
@ -193,6 +193,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)
|
||||
|
@ -325,6 +327,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)
|
||||
|
|
|
@ -262,6 +262,8 @@ public class DeviceComponent extends DomainResource {
|
|||
throw new FHIRException("Unknown MeasmntPrinciple code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MeasmntPrinciple code) {
|
||||
if (code == MeasmntPrinciple.NULL)
|
||||
return null;
|
||||
if (code == MeasmntPrinciple.OTHER)
|
||||
return "other";
|
||||
if (code == MeasmntPrinciple.CHEMICAL)
|
||||
|
|
|
@ -163,6 +163,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)
|
||||
|
@ -347,6 +349,8 @@ public class DeviceMetric extends DomainResource {
|
|||
throw new FHIRException("Unknown DeviceMetricColor code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DeviceMetricColor code) {
|
||||
if (code == DeviceMetricColor.NULL)
|
||||
return null;
|
||||
if (code == DeviceMetricColor.BLACK)
|
||||
return "black";
|
||||
if (code == DeviceMetricColor.RED)
|
||||
|
@ -483,6 +487,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)
|
||||
|
@ -611,6 +617,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)
|
||||
|
@ -739,6 +747,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)
|
||||
|
|
|
@ -206,6 +206,8 @@ public class DeviceRequest extends DomainResource {
|
|||
throw new FHIRException("Unknown DeviceRequestStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DeviceRequestStatus code) {
|
||||
if (code == DeviceRequestStatus.NULL)
|
||||
return null;
|
||||
if (code == DeviceRequestStatus.DRAFT)
|
||||
return "draft";
|
||||
if (code == DeviceRequestStatus.ACTIVE)
|
||||
|
@ -340,6 +342,8 @@ public class DeviceRequest extends DomainResource {
|
|||
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)
|
||||
|
|
|
@ -190,6 +190,8 @@ public class DeviceUseStatement extends DomainResource {
|
|||
throw new FHIRException("Unknown DeviceUseStatementStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DeviceUseStatementStatus code) {
|
||||
if (code == DeviceUseStatementStatus.NULL)
|
||||
return null;
|
||||
if (code == DeviceUseStatementStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == DeviceUseStatementStatus.COMPLETED)
|
||||
|
|
|
@ -249,6 +249,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)
|
||||
|
|
|
@ -166,6 +166,8 @@ public class DocumentReference extends DomainResource {
|
|||
throw new FHIRException("Unknown ReferredDocumentStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ReferredDocumentStatus code) {
|
||||
if (code == ReferredDocumentStatus.NULL)
|
||||
return null;
|
||||
if (code == ReferredDocumentStatus.PRELIMINARY)
|
||||
return "preliminary";
|
||||
if (code == ReferredDocumentStatus.FINAL)
|
||||
|
@ -294,6 +296,8 @@ public class DocumentReference extends DomainResource {
|
|||
throw new FHIRException("Unknown DocumentRelationshipType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DocumentRelationshipType code) {
|
||||
if (code == DocumentRelationshipType.NULL)
|
||||
return null;
|
||||
if (code == DocumentRelationshipType.REPLACES)
|
||||
return "replaces";
|
||||
if (code == DocumentRelationshipType.TRANSFORMS)
|
||||
|
|
|
@ -181,6 +181,8 @@ public class ElementDefinition extends Type 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)
|
||||
|
@ -325,6 +327,8 @@ public class ElementDefinition extends Type 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)
|
||||
|
@ -441,6 +445,8 @@ public class ElementDefinition extends Type 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)
|
||||
|
@ -553,6 +559,8 @@ public class ElementDefinition extends Type 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)
|
||||
|
@ -665,6 +673,8 @@ public class ElementDefinition extends Type 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)
|
||||
|
@ -763,6 +773,8 @@ public class ElementDefinition extends Type 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)
|
||||
|
|
|
@ -163,6 +163,8 @@ public class EligibilityRequest extends DomainResource {
|
|||
throw new FHIRException("Unknown EligibilityRequestStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(EligibilityRequestStatus code) {
|
||||
if (code == EligibilityRequestStatus.NULL)
|
||||
return null;
|
||||
if (code == EligibilityRequestStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == EligibilityRequestStatus.CANCELLED)
|
||||
|
|
|
@ -165,6 +165,8 @@ public class EligibilityResponse extends DomainResource {
|
|||
throw new FHIRException("Unknown EligibilityResponseStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(EligibilityResponseStatus code) {
|
||||
if (code == EligibilityResponseStatus.NULL)
|
||||
return null;
|
||||
if (code == EligibilityResponseStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == EligibilityResponseStatus.CANCELLED)
|
||||
|
|
|
@ -232,6 +232,8 @@ public class Encounter extends DomainResource {
|
|||
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.ARRIVED)
|
||||
|
@ -374,6 +376,8 @@ Not to be used when the patient is currently at the location
|
|||
throw new FHIRException("Unknown EncounterLocationStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(EncounterLocationStatus code) {
|
||||
if (code == EncounterLocationStatus.NULL)
|
||||
return null;
|
||||
if (code == EncounterLocationStatus.PLANNED)
|
||||
return "planned";
|
||||
if (code == EncounterLocationStatus.ACTIVE)
|
||||
|
|
|
@ -189,6 +189,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)
|
||||
|
|
|
@ -161,6 +161,8 @@ public class EnrollmentRequest extends DomainResource {
|
|||
throw new FHIRException("Unknown EnrollmentRequestStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(EnrollmentRequestStatus code) {
|
||||
if (code == EnrollmentRequestStatus.NULL)
|
||||
return null;
|
||||
if (code == EnrollmentRequestStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == EnrollmentRequestStatus.CANCELLED)
|
||||
|
|
|
@ -162,6 +162,8 @@ public class EnrollmentResponse extends DomainResource {
|
|||
throw new FHIRException("Unknown EnrollmentResponseStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(EnrollmentResponseStatus code) {
|
||||
if (code == EnrollmentResponseStatus.NULL)
|
||||
return null;
|
||||
if (code == EnrollmentResponseStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == EnrollmentResponseStatus.CANCELLED)
|
||||
|
|
|
@ -136,6 +136,8 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown AbstractType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AbstractType code) {
|
||||
if (code == AbstractType.NULL)
|
||||
return null;
|
||||
if (code == AbstractType.TYPE)
|
||||
return "Type";
|
||||
if (code == AbstractType.ANY)
|
||||
|
@ -257,6 +259,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)
|
||||
|
@ -410,6 +414,8 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown AgeUnits code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AgeUnits code) {
|
||||
if (code == AgeUnits.NULL)
|
||||
return null;
|
||||
if (code == AgeUnits.MIN)
|
||||
return "min";
|
||||
if (code == AgeUnits.H)
|
||||
|
@ -539,6 +545,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)
|
||||
|
@ -748,6 +756,8 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown ConceptMapEquivalence code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ConceptMapEquivalence code) {
|
||||
if (code == ConceptMapEquivalence.NULL)
|
||||
return null;
|
||||
if (code == ConceptMapEquivalence.RELATEDTO)
|
||||
return "relatedto";
|
||||
if (code == ConceptMapEquivalence.EQUIVALENT)
|
||||
|
@ -969,6 +979,8 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown DataAbsentReason code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DataAbsentReason code) {
|
||||
if (code == DataAbsentReason.NULL)
|
||||
return null;
|
||||
if (code == DataAbsentReason.UNKNOWN)
|
||||
return "unknown";
|
||||
if (code == DataAbsentReason.ASKED)
|
||||
|
@ -1806,6 +1818,8 @@ public class Enumerations {
|
|||
throw new FHIRException("Unknown DataType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DataType code) {
|
||||
if (code == DataType.NULL)
|
||||
return null;
|
||||
if (code == DataType.ADDRESS)
|
||||
return "Address";
|
||||
if (code == DataType.AGE)
|
||||
|
@ -2017,6 +2031,8 @@ public class Enumerations {
|
|||
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)
|
||||
|
@ -4536,6 +4552,8 @@ The primary difference between a medication statement and a medication administr
|
|||
throw new FHIRException("Unknown FHIRAllTypes code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(FHIRAllTypes code) {
|
||||
if (code == FHIRAllTypes.NULL)
|
||||
return null;
|
||||
if (code == FHIRAllTypes.ADDRESS)
|
||||
return "Address";
|
||||
if (code == FHIRAllTypes.AGE)
|
||||
|
@ -7371,6 +7389,8 @@ The primary difference between a medication statement and a medication administr
|
|||
throw new FHIRException("Unknown FHIRDefinedType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(FHIRDefinedType code) {
|
||||
if (code == FHIRDefinedType.NULL)
|
||||
return null;
|
||||
if (code == FHIRDefinedType.ADDRESS)
|
||||
return "Address";
|
||||
if (code == FHIRDefinedType.AGE)
|
||||
|
@ -7946,6 +7966,8 @@ The primary difference between a medication statement and a medication administr
|
|||
throw new FHIRException("Unknown MessageEvent code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MessageEvent code) {
|
||||
if (code == MessageEvent.NULL)
|
||||
return null;
|
||||
if (code == MessageEvent.CODESYSTEMEXPAND)
|
||||
return "CodeSystem-expand";
|
||||
if (code == MessageEvent.MEDICATIONADMINISTRATIONCOMPLETE)
|
||||
|
@ -8073,6 +8095,8 @@ The primary difference between a medication statement and a medication administr
|
|||
throw new FHIRException("Unknown NoteType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(NoteType code) {
|
||||
if (code == NoteType.NULL)
|
||||
return null;
|
||||
if (code == NoteType.DISPLAY)
|
||||
return "display";
|
||||
if (code == NoteType.PRINT)
|
||||
|
@ -8196,6 +8220,8 @@ The primary difference between a medication statement and a medication administr
|
|||
throw new FHIRException("Unknown PublicationStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(PublicationStatus code) {
|
||||
if (code == PublicationStatus.NULL)
|
||||
return null;
|
||||
if (code == PublicationStatus.DRAFT)
|
||||
return "draft";
|
||||
if (code == PublicationStatus.ACTIVE)
|
||||
|
@ -8307,6 +8333,8 @@ The primary difference between a medication statement and a medication administr
|
|||
throw new FHIRException("Unknown RemittanceOutcome code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(RemittanceOutcome code) {
|
||||
if (code == RemittanceOutcome.NULL)
|
||||
return null;
|
||||
if (code == RemittanceOutcome.COMPLETE)
|
||||
return "complete";
|
||||
if (code == RemittanceOutcome.ERROR)
|
||||
|
@ -10042,6 +10070,8 @@ The primary difference between a medication statement and a medication administr
|
|||
throw new FHIRException("Unknown ResourceType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ResourceType code) {
|
||||
if (code == ResourceType.NULL)
|
||||
return null;
|
||||
if (code == ResourceType.ACCOUNT)
|
||||
return "Account";
|
||||
if (code == ResourceType.ACTIVITYDEFINITION)
|
||||
|
@ -10453,6 +10483,8 @@ The primary difference between a medication statement and a medication administr
|
|||
throw new FHIRException("Unknown SearchParamType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(SearchParamType code) {
|
||||
if (code == SearchParamType.NULL)
|
||||
return null;
|
||||
if (code == SearchParamType.NUMBER)
|
||||
return "number";
|
||||
if (code == SearchParamType.DATE)
|
||||
|
@ -10614,6 +10646,8 @@ The primary difference between a medication statement and a medication administr
|
|||
throw new FHIRException("Unknown SpecialValues code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(SpecialValues code) {
|
||||
if (code == SpecialValues.NULL)
|
||||
return null;
|
||||
if (code == SpecialValues.TRUE)
|
||||
return "true";
|
||||
if (code == SpecialValues.FALSE)
|
||||
|
|
|
@ -204,6 +204,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)
|
||||
|
|
|
@ -154,6 +154,8 @@ public class ExpansionProfile extends MetadataResource {
|
|||
throw new FHIRException("Unknown SystemVersionProcessingMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(SystemVersionProcessingMode code) {
|
||||
if (code == SystemVersionProcessingMode.NULL)
|
||||
return null;
|
||||
if (code == SystemVersionProcessingMode.DEFAULT)
|
||||
return "default";
|
||||
if (code == SystemVersionProcessingMode.CHECK)
|
||||
|
|
|
@ -165,6 +165,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)
|
||||
|
|
|
@ -167,6 +167,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)
|
||||
|
|
|
@ -146,6 +146,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)
|
||||
|
|
|
@ -291,6 +291,8 @@ public class Goal extends DomainResource {
|
|||
throw new FHIRException("Unknown GoalStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(GoalStatus code) {
|
||||
if (code == GoalStatus.NULL)
|
||||
return null;
|
||||
if (code == GoalStatus.PROPOSED)
|
||||
return "proposed";
|
||||
if (code == GoalStatus.ACCEPTED)
|
||||
|
|
|
@ -183,6 +183,8 @@ public class GraphDefinition extends MetadataResource {
|
|||
throw new FHIRException("Unknown CompartmentCode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CompartmentCode code) {
|
||||
if (code == CompartmentCode.NULL)
|
||||
return null;
|
||||
if (code == CompartmentCode.PATIENT)
|
||||
return "Patient";
|
||||
if (code == CompartmentCode.ENCOUNTER)
|
||||
|
@ -313,6 +315,8 @@ public class GraphDefinition extends MetadataResource {
|
|||
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)
|
||||
|
|
|
@ -192,6 +192,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)
|
||||
|
|
|
@ -191,6 +191,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)
|
||||
|
|
|
@ -206,6 +206,8 @@ public class HealthcareService extends DomainResource {
|
|||
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)
|
||||
|
|
|
@ -205,6 +205,8 @@ public class HumanName extends Type 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)
|
||||
|
|
|
@ -160,6 +160,8 @@ public class Identifier extends Type 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)
|
||||
|
|
|
@ -164,6 +164,8 @@ public class ImagingStudy extends DomainResource {
|
|||
throw new FHIRException("Unknown InstanceAvailability code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(InstanceAvailability code) {
|
||||
if (code == InstanceAvailability.NULL)
|
||||
return null;
|
||||
if (code == InstanceAvailability.ONLINE)
|
||||
return "ONLINE";
|
||||
if (code == InstanceAvailability.OFFLINE)
|
||||
|
|
|
@ -136,6 +136,8 @@ public class Immunization extends DomainResource {
|
|||
throw new FHIRException("Unknown ImmunizationStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ImmunizationStatus code) {
|
||||
if (code == ImmunizationStatus.NULL)
|
||||
return null;
|
||||
if (code == ImmunizationStatus.COMPLETED)
|
||||
return "completed";
|
||||
if (code == ImmunizationStatus.ENTEREDINERROR)
|
||||
|
|
|
@ -141,6 +141,8 @@ public class ImplementationGuide extends MetadataResource {
|
|||
throw new FHIRException("Unknown GuideDependencyType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(GuideDependencyType code) {
|
||||
if (code == GuideDependencyType.NULL)
|
||||
return null;
|
||||
if (code == GuideDependencyType.REFERENCE)
|
||||
return "reference";
|
||||
if (code == GuideDependencyType.INCLUSION)
|
||||
|
@ -321,6 +323,8 @@ public class ImplementationGuide extends MetadataResource {
|
|||
throw new FHIRException("Unknown GuidePageKind code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(GuidePageKind code) {
|
||||
if (code == GuidePageKind.NULL)
|
||||
return null;
|
||||
if (code == GuidePageKind.PAGE)
|
||||
return "page";
|
||||
if (code == GuidePageKind.EXAMPLE)
|
||||
|
|
|
@ -149,6 +149,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)
|
||||
|
|
|
@ -150,6 +150,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)
|
||||
|
@ -262,6 +264,8 @@ public class ListResource extends DomainResource {
|
|||
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)
|
||||
|
|
|
@ -152,6 +152,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)
|
||||
|
@ -250,6 +252,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)
|
||||
|
|
|
@ -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)
|
||||
|
@ -264,6 +266,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.PATIENTLIST)
|
||||
|
|
|
@ -148,6 +148,8 @@ public class Media extends DomainResource {
|
|||
throw new FHIRException("Unknown DigitalMediaType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DigitalMediaType code) {
|
||||
if (code == DigitalMediaType.NULL)
|
||||
return null;
|
||||
if (code == DigitalMediaType.PHOTO)
|
||||
return "photo";
|
||||
if (code == DigitalMediaType.VIDEO)
|
||||
|
|
|
@ -151,6 +151,8 @@ public class Medication extends DomainResource {
|
|||
throw new FHIRException("Unknown MedicationStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MedicationStatus code) {
|
||||
if (code == MedicationStatus.NULL)
|
||||
return null;
|
||||
if (code == MedicationStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == MedicationStatus.INACTIVE)
|
||||
|
|
|
@ -193,6 +193,8 @@ public class MedicationAdministration extends DomainResource {
|
|||
throw new FHIRException("Unknown MedicationAdministrationStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MedicationAdministrationStatus code) {
|
||||
if (code == MedicationAdministrationStatus.NULL)
|
||||
return null;
|
||||
if (code == MedicationAdministrationStatus.INPROGRESS)
|
||||
return "in-progress";
|
||||
if (code == MedicationAdministrationStatus.ONHOLD)
|
||||
|
|
|
@ -193,6 +193,8 @@ public class MedicationDispense extends DomainResource {
|
|||
throw new FHIRException("Unknown MedicationDispenseStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MedicationDispenseStatus code) {
|
||||
if (code == MedicationDispenseStatus.NULL)
|
||||
return null;
|
||||
if (code == MedicationDispenseStatus.PREPARATION)
|
||||
return "preparation";
|
||||
if (code == MedicationDispenseStatus.INPROGRESS)
|
||||
|
|
|
@ -221,6 +221,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)
|
||||
|
@ -357,6 +359,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)
|
||||
|
@ -485,6 +489,8 @@ public class MedicationRequest extends DomainResource {
|
|||
throw new FHIRException("Unknown MedicationRequestPriority code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MedicationRequestPriority code) {
|
||||
if (code == MedicationRequestPriority.NULL)
|
||||
return null;
|
||||
if (code == MedicationRequestPriority.ROUTINE)
|
||||
return "routine";
|
||||
if (code == MedicationRequestPriority.URGENT)
|
||||
|
|
|
@ -192,6 +192,8 @@ public class MedicationStatement extends DomainResource {
|
|||
throw new FHIRException("Unknown MedicationStatementStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MedicationStatementStatus code) {
|
||||
if (code == MedicationStatementStatus.NULL)
|
||||
return null;
|
||||
if (code == MedicationStatementStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == MedicationStatementStatus.COMPLETED)
|
||||
|
@ -324,6 +326,8 @@ public class MedicationStatement extends DomainResource {
|
|||
throw new FHIRException("Unknown MedicationStatementTaken code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MedicationStatementTaken code) {
|
||||
if (code == MedicationStatementTaken.NULL)
|
||||
return null;
|
||||
if (code == MedicationStatementTaken.Y)
|
||||
return "y";
|
||||
if (code == MedicationStatementTaken.N)
|
||||
|
|
|
@ -154,6 +154,8 @@ public class MessageDefinition extends MetadataResource {
|
|||
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)
|
||||
|
|
|
@ -150,6 +150,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)
|
||||
|
|
|
@ -154,6 +154,8 @@ public class NamingSystem extends MetadataResource {
|
|||
throw new FHIRException("Unknown NamingSystemType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(NamingSystemType code) {
|
||||
if (code == NamingSystemType.NULL)
|
||||
return null;
|
||||
if (code == NamingSystemType.CODESYSTEM)
|
||||
return "codesystem";
|
||||
if (code == NamingSystemType.IDENTIFIER)
|
||||
|
@ -280,6 +282,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)
|
||||
|
|
|
@ -160,6 +160,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)
|
||||
|
|
|
@ -235,6 +235,8 @@ public class NutritionOrder extends DomainResource {
|
|||
throw new FHIRException("Unknown NutritionOrderStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(NutritionOrderStatus code) {
|
||||
if (code == NutritionOrderStatus.NULL)
|
||||
return null;
|
||||
if (code == NutritionOrderStatus.PROPOSED)
|
||||
return "proposed";
|
||||
if (code == NutritionOrderStatus.DRAFT)
|
||||
|
|
|
@ -222,6 +222,8 @@ public class Observation extends DomainResource {
|
|||
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)
|
||||
|
@ -386,6 +388,8 @@ public class Observation extends DomainResource {
|
|||
throw new FHIRException("Unknown ObservationRelationshipType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ObservationRelationshipType code) {
|
||||
if (code == ObservationRelationshipType.NULL)
|
||||
return null;
|
||||
if (code == ObservationRelationshipType.HASMEMBER)
|
||||
return "has-member";
|
||||
if (code == ObservationRelationshipType.DERIVEDFROM)
|
||||
|
|
|
@ -145,6 +145,8 @@ public class OperationDefinition extends MetadataResource {
|
|||
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)
|
||||
|
@ -241,6 +243,8 @@ public class OperationDefinition extends MetadataResource {
|
|||
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)
|
||||
|
|
|
@ -164,6 +164,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)
|
||||
|
@ -642,6 +644,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)
|
||||
|
|
|
@ -132,6 +132,8 @@ public class ParameterDefinition extends Type implements ICompositeType {
|
|||
throw new FHIRException("Unknown ParameterUse code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ParameterUse code) {
|
||||
if (code == ParameterUse.NULL)
|
||||
return null;
|
||||
if (code == ParameterUse.IN)
|
||||
return "in";
|
||||
if (code == ParameterUse.OUT)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -161,6 +161,8 @@ public class PaymentNotice extends DomainResource {
|
|||
throw new FHIRException("Unknown PaymentNoticeStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(PaymentNoticeStatus code) {
|
||||
if (code == PaymentNoticeStatus.NULL)
|
||||
return null;
|
||||
if (code == PaymentNoticeStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == PaymentNoticeStatus.CANCELLED)
|
||||
|
|
|
@ -164,6 +164,8 @@ public class PaymentReconciliation extends DomainResource {
|
|||
throw new FHIRException("Unknown PaymentReconciliationStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(PaymentReconciliationStatus code) {
|
||||
if (code == PaymentReconciliationStatus.NULL)
|
||||
return null;
|
||||
if (code == PaymentReconciliationStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == PaymentReconciliationStatus.CANCELLED)
|
||||
|
|
|
@ -165,6 +165,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)
|
||||
|
|
|
@ -155,6 +155,8 @@ public class PlanDefinition extends MetadataResource {
|
|||
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)
|
||||
|
@ -351,6 +353,8 @@ public class PlanDefinition extends MetadataResource {
|
|||
throw new FHIRException("Unknown ActionRelationshipType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionRelationshipType code) {
|
||||
if (code == ActionRelationshipType.NULL)
|
||||
return null;
|
||||
if (code == ActionRelationshipType.BEFORESTART)
|
||||
return "before-start";
|
||||
if (code == ActionRelationshipType.BEFORE)
|
||||
|
@ -475,6 +479,8 @@ public class PlanDefinition extends MetadataResource {
|
|||
throw new FHIRException("Unknown ActionParticipantType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionParticipantType code) {
|
||||
if (code == ActionParticipantType.NULL)
|
||||
return null;
|
||||
if (code == ActionParticipantType.PATIENT)
|
||||
return "patient";
|
||||
if (code == ActionParticipantType.PRACTITIONER)
|
||||
|
@ -587,6 +593,8 @@ public class PlanDefinition extends MetadataResource {
|
|||
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)
|
||||
|
@ -741,6 +749,8 @@ public class PlanDefinition extends MetadataResource {
|
|||
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)
|
||||
|
@ -859,6 +869,8 @@ public class PlanDefinition extends MetadataResource {
|
|||
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)
|
||||
|
@ -957,6 +969,8 @@ public class PlanDefinition extends MetadataResource {
|
|||
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)
|
||||
|
@ -1053,6 +1067,8 @@ public class PlanDefinition extends MetadataResource {
|
|||
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)
|
||||
|
|
|
@ -206,6 +206,8 @@ public class PractitionerRole extends DomainResource {
|
|||
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)
|
||||
|
|
|
@ -205,6 +205,8 @@ public class Procedure extends DomainResource {
|
|||
throw new FHIRException("Unknown ProcedureStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ProcedureStatus code) {
|
||||
if (code == ProcedureStatus.NULL)
|
||||
return null;
|
||||
if (code == ProcedureStatus.PREPARATION)
|
||||
return "preparation";
|
||||
if (code == ProcedureStatus.INPROGRESS)
|
||||
|
|
|
@ -206,6 +206,8 @@ public class ProcedureRequest extends DomainResource {
|
|||
throw new FHIRException("Unknown ProcedureRequestStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ProcedureRequestStatus code) {
|
||||
if (code == ProcedureRequestStatus.NULL)
|
||||
return null;
|
||||
if (code == ProcedureRequestStatus.DRAFT)
|
||||
return "draft";
|
||||
if (code == ProcedureRequestStatus.ACTIVE)
|
||||
|
@ -398,6 +400,8 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
throw new FHIRException("Unknown ProcedureRequestIntent code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ProcedureRequestIntent code) {
|
||||
if (code == ProcedureRequestIntent.NULL)
|
||||
return null;
|
||||
if (code == ProcedureRequestIntent.PROPOSAL)
|
||||
return "proposal";
|
||||
if (code == ProcedureRequestIntent.PLAN)
|
||||
|
@ -534,6 +538,8 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
throw new FHIRException("Unknown ProcedureRequestPriority code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ProcedureRequestPriority code) {
|
||||
if (code == ProcedureRequestPriority.NULL)
|
||||
return null;
|
||||
if (code == ProcedureRequestPriority.ROUTINE)
|
||||
return "routine";
|
||||
if (code == ProcedureRequestPriority.URGENT)
|
||||
|
|
|
@ -165,6 +165,8 @@ public class ProcessRequest extends DomainResource {
|
|||
throw new FHIRException("Unknown ProcessRequestStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ProcessRequestStatus code) {
|
||||
if (code == ProcessRequestStatus.NULL)
|
||||
return null;
|
||||
if (code == ProcessRequestStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == ProcessRequestStatus.CANCELLED)
|
||||
|
@ -293,6 +295,8 @@ public class ProcessRequest extends DomainResource {
|
|||
throw new FHIRException("Unknown ActionList code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionList code) {
|
||||
if (code == ActionList.NULL)
|
||||
return null;
|
||||
if (code == ActionList.CANCEL)
|
||||
return "cancel";
|
||||
if (code == ActionList.POLL)
|
||||
|
|
|
@ -164,6 +164,8 @@ public class ProcessResponse extends DomainResource {
|
|||
throw new FHIRException("Unknown ProcessResponseStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ProcessResponseStatus code) {
|
||||
if (code == ProcessResponseStatus.NULL)
|
||||
return null;
|
||||
if (code == ProcessResponseStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == ProcessResponseStatus.CANCELLED)
|
||||
|
|
|
@ -179,6 +179,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.DERIVATION)
|
||||
return "derivation";
|
||||
if (code == ProvenanceEntityRole.REVISION)
|
||||
|
|
|
@ -160,6 +160,8 @@ public class Quantity extends Type implements ICompositeType {
|
|||
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)
|
||||
|
|
|
@ -354,6 +354,8 @@ There is an extension 'http://hl7.org/fhir/StructureDefinition/questionnaire-uni
|
|||
throw new FHIRException("Unknown QuestionnaireItemType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(QuestionnaireItemType code) {
|
||||
if (code == QuestionnaireItemType.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)
|
||||
|
|
|
@ -208,6 +208,8 @@ public class ReferralRequest extends DomainResource {
|
|||
throw new FHIRException("Unknown ReferralRequestStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ReferralRequestStatus code) {
|
||||
if (code == ReferralRequestStatus.NULL)
|
||||
return null;
|
||||
if (code == ReferralRequestStatus.DRAFT)
|
||||
return "draft";
|
||||
if (code == ReferralRequestStatus.ACTIVE)
|
||||
|
@ -400,6 +402,8 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
throw new FHIRException("Unknown ReferralCategory code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ReferralCategory code) {
|
||||
if (code == ReferralCategory.NULL)
|
||||
return null;
|
||||
if (code == ReferralCategory.PROPOSAL)
|
||||
return "proposal";
|
||||
if (code == ReferralCategory.PLAN)
|
||||
|
@ -536,6 +540,8 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
throw new FHIRException("Unknown ReferralPriority code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ReferralPriority code) {
|
||||
if (code == ReferralPriority.NULL)
|
||||
return null;
|
||||
if (code == ReferralPriority.ROUTINE)
|
||||
return "routine";
|
||||
if (code == ReferralPriority.URGENT)
|
||||
|
|
|
@ -216,6 +216,8 @@ public class RelatedArtifact extends Type 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)
|
||||
|
|
|
@ -208,6 +208,8 @@ public class RequestGroup extends DomainResource {
|
|||
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)
|
||||
|
@ -400,6 +402,8 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
throw new FHIRException("Unknown RequestIntent code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(RequestIntent code) {
|
||||
if (code == RequestIntent.NULL)
|
||||
return null;
|
||||
if (code == RequestIntent.PROPOSAL)
|
||||
return "proposal";
|
||||
if (code == RequestIntent.PLAN)
|
||||
|
@ -536,6 +540,8 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
throw new FHIRException("Unknown RequestPriority code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(RequestPriority code) {
|
||||
if (code == RequestPriority.NULL)
|
||||
return null;
|
||||
if (code == RequestPriority.ROUTINE)
|
||||
return "routine";
|
||||
if (code == RequestPriority.URGENT)
|
||||
|
@ -650,6 +656,8 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
throw new FHIRException("Unknown ActionConditionKind code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionConditionKind code) {
|
||||
if (code == ActionConditionKind.NULL)
|
||||
return null;
|
||||
if (code == ActionConditionKind.APPLICABILITY)
|
||||
return "applicability";
|
||||
if (code == ActionConditionKind.START)
|
||||
|
@ -846,6 +854,8 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
throw new FHIRException("Unknown ActionRelationshipType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionRelationshipType code) {
|
||||
if (code == ActionRelationshipType.NULL)
|
||||
return null;
|
||||
if (code == ActionRelationshipType.BEFORESTART)
|
||||
return "before-start";
|
||||
if (code == ActionRelationshipType.BEFORE)
|
||||
|
@ -970,6 +980,8 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
throw new FHIRException("Unknown ActionGroupingBehavior code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionGroupingBehavior code) {
|
||||
if (code == ActionGroupingBehavior.NULL)
|
||||
return null;
|
||||
if (code == ActionGroupingBehavior.VISUALGROUP)
|
||||
return "visual-group";
|
||||
if (code == ActionGroupingBehavior.LOGICALGROUP)
|
||||
|
@ -1124,6 +1136,8 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
throw new FHIRException("Unknown ActionSelectionBehavior code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionSelectionBehavior code) {
|
||||
if (code == ActionSelectionBehavior.NULL)
|
||||
return null;
|
||||
if (code == ActionSelectionBehavior.ANY)
|
||||
return "any";
|
||||
if (code == ActionSelectionBehavior.ALL)
|
||||
|
@ -1242,6 +1256,8 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
throw new FHIRException("Unknown ActionRequiredBehavior code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionRequiredBehavior code) {
|
||||
if (code == ActionRequiredBehavior.NULL)
|
||||
return null;
|
||||
if (code == ActionRequiredBehavior.MUST)
|
||||
return "must";
|
||||
if (code == ActionRequiredBehavior.COULD)
|
||||
|
@ -1340,6 +1356,8 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
throw new FHIRException("Unknown ActionPrecheckBehavior code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionPrecheckBehavior code) {
|
||||
if (code == ActionPrecheckBehavior.NULL)
|
||||
return null;
|
||||
if (code == ActionPrecheckBehavior.YES)
|
||||
return "yes";
|
||||
if (code == ActionPrecheckBehavior.NO)
|
||||
|
@ -1436,6 +1454,8 @@ Refer to [[[RequestGroup]]] for additional information on how this status is use
|
|||
throw new FHIRException("Unknown ActionCardinalityBehavior code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ActionCardinalityBehavior code) {
|
||||
if (code == ActionCardinalityBehavior.NULL)
|
||||
return null;
|
||||
if (code == ActionCardinalityBehavior.SINGLE)
|
||||
return "single";
|
||||
if (code == ActionCardinalityBehavior.MULTIPLE)
|
||||
|
|
|
@ -191,6 +191,8 @@ public class ResearchStudy extends DomainResource {
|
|||
throw new FHIRException("Unknown ResearchStudyStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ResearchStudyStatus code) {
|
||||
if (code == ResearchStudyStatus.NULL)
|
||||
return null;
|
||||
if (code == ResearchStudyStatus.DRAFT)
|
||||
return "draft";
|
||||
if (code == ResearchStudyStatus.INPROGRESS)
|
||||
|
|
|
@ -188,6 +188,8 @@ public class ResearchSubject extends DomainResource {
|
|||
throw new FHIRException("Unknown ResearchSubjectStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ResearchSubjectStatus code) {
|
||||
if (code == ResearchSubjectStatus.NULL)
|
||||
return null;
|
||||
if (code == ResearchSubjectStatus.CANDIDATE)
|
||||
return "candidate";
|
||||
if (code == ResearchSubjectStatus.ENROLLED)
|
||||
|
|
|
@ -223,6 +223,8 @@ public class RiskAssessment extends DomainResource {
|
|||
throw new FHIRException("Unknown RiskAssessmentStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(RiskAssessmentStatus code) {
|
||||
if (code == RiskAssessmentStatus.NULL)
|
||||
return null;
|
||||
if (code == RiskAssessmentStatus.REGISTERED)
|
||||
return "registered";
|
||||
if (code == RiskAssessmentStatus.PRELIMINARY)
|
||||
|
|
|
@ -184,6 +184,8 @@ public class SearchParameter extends MetadataResource {
|
|||
throw new FHIRException("Unknown XPathUsageType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(XPathUsageType code) {
|
||||
if (code == XPathUsageType.NULL)
|
||||
return null;
|
||||
if (code == XPathUsageType.NORMAL)
|
||||
return "normal";
|
||||
if (code == XPathUsageType.PHONETIC)
|
||||
|
@ -384,6 +386,8 @@ public class SearchParameter extends MetadataResource {
|
|||
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)
|
||||
|
@ -606,6 +610,8 @@ public class SearchParameter extends MetadataResource {
|
|||
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)
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue