Merge pull request #1693 from hapifhir/do-20240719-enum-null-checks-dstu2016may

Return null for all toCode enum params that are Enum.NULL (dstu2016may)
This commit is contained in:
Grahame Grieve 2024-07-20 05:39:33 +08:00 committed by GitHub
commit 1ad319ee35
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
631 changed files with 2892 additions and 1446 deletions

View File

@ -152,12 +152,14 @@ public class Account extends DomainResource {
}
public String toCode(AccountStatus code) {
if (code == AccountStatus.ACTIVE)
if (code == AccountStatus.NULL)
return null;
if (code == AccountStatus.ACTIVE)
return "active";
if (code == AccountStatus.INACTIVE)
return "inactive";
return "?";
}
}
public String toSystem(AccountStatus code) {
return code.getSystem();

View File

@ -154,12 +154,14 @@ public class ActionDefinition extends Type implements ICompositeType {
}
public String toCode(ActionRelationshipType code) {
if (code == ActionRelationshipType.BEFORE)
if (code == ActionRelationshipType.NULL)
return null;
if (code == ActionRelationshipType.BEFORE)
return "before";
if (code == ActionRelationshipType.AFTER)
return "after";
return "?";
}
}
public String toSystem(ActionRelationshipType code) {
return code.getSystem();
@ -269,12 +271,14 @@ public class ActionDefinition extends Type implements ICompositeType {
}
public String toCode(ActionRelationshipAnchor code) {
if (code == ActionRelationshipAnchor.START)
if (code == ActionRelationshipAnchor.NULL)
return null;
if (code == ActionRelationshipAnchor.START)
return "start";
if (code == ActionRelationshipAnchor.END)
return "end";
return "?";
}
}
public String toSystem(ActionRelationshipAnchor code) {
return code.getSystem();
@ -402,14 +406,16 @@ public class ActionDefinition extends Type implements ICompositeType {
}
public String toCode(ParticipantType code) {
if (code == ParticipantType.PATIENT)
if (code == ParticipantType.NULL)
return null;
if (code == ParticipantType.PATIENT)
return "patient";
if (code == ParticipantType.PRACTITIONER)
return "practitioner";
if (code == ParticipantType.RELATEDPERSON)
return "related-person";
return "?";
}
}
public String toSystem(ParticipantType code) {
return code.getSystem();
@ -555,7 +561,9 @@ public class ActionDefinition extends Type implements ICompositeType {
}
public String toCode(ActionType code) {
if (code == ActionType.CREATE)
if (code == ActionType.NULL)
return null;
if (code == ActionType.CREATE)
return "create";
if (code == ActionType.UPDATE)
return "update";
@ -564,7 +572,7 @@ public class ActionDefinition extends Type implements ICompositeType {
if (code == ActionType.FIREEVENT)
return "fire-event";
return "?";
}
}
public String toSystem(ActionType code) {
return code.getSystem();

View File

@ -192,7 +192,9 @@ public class Address extends Type implements ICompositeType {
}
public String toCode(AddressUse code) {
if (code == AddressUse.HOME)
if (code == AddressUse.NULL)
return null;
if (code == AddressUse.HOME)
return "home";
if (code == AddressUse.WORK)
return "work";
@ -201,7 +203,7 @@ public class Address extends Type implements ICompositeType {
if (code == AddressUse.OLD)
return "old";
return "?";
}
}
public String toSystem(AddressUse code) {
return code.getSystem();
@ -329,14 +331,16 @@ public class Address extends Type implements ICompositeType {
}
public String toCode(AddressType code) {
if (code == AddressType.POSTAL)
if (code == AddressType.NULL)
return null;
if (code == AddressType.POSTAL)
return "postal";
if (code == AddressType.PHYSICAL)
return "physical";
if (code == AddressType.BOTH)
return "both";
return "?";
}
}
public String toSystem(AddressType code) {
return code.getSystem();

View File

@ -250,7 +250,9 @@ public class AllergyIntolerance extends DomainResource {
}
public String toCode(AllergyIntoleranceStatus code) {
if (code == AllergyIntoleranceStatus.ACTIVE)
if (code == AllergyIntoleranceStatus.NULL)
return null;
if (code == AllergyIntoleranceStatus.ACTIVE)
return "active";
if (code == AllergyIntoleranceStatus.UNCONFIRMED)
return "unconfirmed";
@ -265,7 +267,7 @@ public class AllergyIntolerance extends DomainResource {
if (code == AllergyIntoleranceStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(AllergyIntoleranceStatus code) {
return code.getSystem();
@ -381,12 +383,14 @@ public class AllergyIntolerance extends DomainResource {
}
public String toCode(AllergyIntoleranceType code) {
if (code == AllergyIntoleranceType.ALLERGY)
if (code == AllergyIntoleranceType.NULL)
return null;
if (code == AllergyIntoleranceType.ALLERGY)
return "allergy";
if (code == AllergyIntoleranceType.INTOLERANCE)
return "intolerance";
return "?";
}
}
public String toSystem(AllergyIntoleranceType code) {
return code.getSystem();
@ -532,7 +536,9 @@ public class AllergyIntolerance extends DomainResource {
}
public String toCode(AllergyIntoleranceCategory code) {
if (code == AllergyIntoleranceCategory.FOOD)
if (code == AllergyIntoleranceCategory.NULL)
return null;
if (code == AllergyIntoleranceCategory.FOOD)
return "food";
if (code == AllergyIntoleranceCategory.MEDICATION)
return "medication";
@ -541,7 +547,7 @@ public class AllergyIntolerance extends DomainResource {
if (code == AllergyIntoleranceCategory.OTHER)
return "other";
return "?";
}
}
public String toSystem(AllergyIntoleranceCategory code) {
return code.getSystem();
@ -671,14 +677,16 @@ public class AllergyIntolerance extends DomainResource {
}
public String toCode(AllergyIntoleranceCriticality code) {
if (code == AllergyIntoleranceCriticality.LOW)
if (code == AllergyIntoleranceCriticality.NULL)
return null;
if (code == AllergyIntoleranceCriticality.LOW)
return "low";
if (code == AllergyIntoleranceCriticality.HIGH)
return "high";
if (code == AllergyIntoleranceCriticality.UNABLETOASSESS)
return "unable-to-assess";
return "?";
}
}
public String toSystem(AllergyIntoleranceCriticality code) {
return code.getSystem();
@ -810,14 +818,16 @@ public class AllergyIntolerance extends DomainResource {
}
public String toCode(AllergyIntoleranceCertainty code) {
if (code == AllergyIntoleranceCertainty.UNLIKELY)
if (code == AllergyIntoleranceCertainty.NULL)
return null;
if (code == AllergyIntoleranceCertainty.UNLIKELY)
return "unlikely";
if (code == AllergyIntoleranceCertainty.LIKELY)
return "likely";
if (code == AllergyIntoleranceCertainty.CONFIRMED)
return "confirmed";
return "?";
}
}
public String toSystem(AllergyIntoleranceCertainty code) {
return code.getSystem();
@ -945,14 +955,16 @@ public class AllergyIntolerance extends DomainResource {
}
public String toCode(AllergyIntoleranceSeverity code) {
if (code == AllergyIntoleranceSeverity.MILD)
if (code == AllergyIntoleranceSeverity.NULL)
return null;
if (code == AllergyIntoleranceSeverity.MILD)
return "mild";
if (code == AllergyIntoleranceSeverity.MODERATE)
return "moderate";
if (code == AllergyIntoleranceSeverity.SEVERE)
return "severe";
return "?";
}
}
public String toSystem(AllergyIntoleranceSeverity code) {
return code.getSystem();

View File

@ -249,7 +249,9 @@ public class Appointment extends DomainResource {
}
public String toCode(AppointmentStatus code) {
if (code == AppointmentStatus.PROPOSED)
if (code == AppointmentStatus.NULL)
return null;
if (code == AppointmentStatus.PROPOSED)
return "proposed";
if (code == AppointmentStatus.PENDING)
return "pending";
@ -264,7 +266,7 @@ public class Appointment extends DomainResource {
if (code == AppointmentStatus.NOSHOW)
return "noshow";
return "?";
}
}
public String toSystem(AppointmentStatus code) {
return code.getSystem();
@ -394,14 +396,16 @@ public class Appointment extends DomainResource {
}
public String toCode(ParticipantRequired code) {
if (code == ParticipantRequired.REQUIRED)
if (code == ParticipantRequired.NULL)
return null;
if (code == ParticipantRequired.REQUIRED)
return "required";
if (code == ParticipantRequired.OPTIONAL)
return "optional";
if (code == ParticipantRequired.INFORMATIONONLY)
return "information-only";
return "?";
}
}
public String toSystem(ParticipantRequired code) {
return code.getSystem();
@ -551,7 +555,9 @@ public class Appointment extends DomainResource {
}
public String toCode(ParticipationStatus code) {
if (code == ParticipationStatus.ACCEPTED)
if (code == ParticipationStatus.NULL)
return null;
if (code == ParticipationStatus.ACCEPTED)
return "accepted";
if (code == ParticipationStatus.DECLINED)
return "declined";
@ -560,7 +566,7 @@ public class Appointment extends DomainResource {
if (code == ParticipationStatus.NEEDSACTION)
return "needs-action";
return "?";
}
}
public String toSystem(ParticipationStatus code) {
return code.getSystem();

View File

@ -210,7 +210,9 @@ public class AuditEvent extends DomainResource {
}
public String toCode(AuditEventAction code) {
if (code == AuditEventAction.C)
if (code == AuditEventAction.NULL)
return null;
if (code == AuditEventAction.C)
return "C";
if (code == AuditEventAction.R)
return "R";
@ -221,7 +223,7 @@ public class AuditEvent extends DomainResource {
if (code == AuditEventAction.E)
return "E";
return "?";
}
}
public String toSystem(AuditEventAction code) {
return code.getSystem();
@ -370,7 +372,9 @@ public class AuditEvent extends DomainResource {
}
public String toCode(AuditEventOutcome code) {
if (code == AuditEventOutcome._0)
if (code == AuditEventOutcome.NULL)
return null;
if (code == AuditEventOutcome._0)
return "0";
if (code == AuditEventOutcome._4)
return "4";
@ -379,7 +383,7 @@ public class AuditEvent extends DomainResource {
if (code == AuditEventOutcome._12)
return "12";
return "?";
}
}
public String toSystem(AuditEventOutcome code) {
return code.getSystem();
@ -544,7 +548,9 @@ public class AuditEvent extends DomainResource {
}
public String toCode(AuditEventParticipantNetworkType code) {
if (code == AuditEventParticipantNetworkType._1)
if (code == AuditEventParticipantNetworkType.NULL)
return null;
if (code == AuditEventParticipantNetworkType._1)
return "1";
if (code == AuditEventParticipantNetworkType._2)
return "2";
@ -555,7 +561,7 @@ public class AuditEvent extends DomainResource {
if (code == AuditEventParticipantNetworkType._5)
return "5";
return "?";
}
}
public String toSystem(AuditEventParticipantNetworkType code) {
return code.getSystem();

View File

@ -288,7 +288,9 @@ public class Bundle extends Resource implements IBaseBundle {
}
public String toCode(BundleType code) {
if (code == BundleType.DOCUMENT)
if (code == BundleType.NULL)
return null;
if (code == BundleType.DOCUMENT)
return "document";
if (code == BundleType.MESSAGE)
return "message";
@ -307,7 +309,7 @@ public class Bundle extends Resource implements IBaseBundle {
if (code == BundleType.COLLECTION)
return "collection";
return "?";
}
}
public String toSystem(BundleType code) {
return code.getSystem();
@ -437,14 +439,16 @@ public class Bundle extends Resource implements IBaseBundle {
}
public String toCode(SearchEntryMode code) {
if (code == SearchEntryMode.MATCH)
if (code == SearchEntryMode.NULL)
return null;
if (code == SearchEntryMode.MATCH)
return "match";
if (code == SearchEntryMode.INCLUDE)
return "include";
if (code == SearchEntryMode.OUTCOME)
return "outcome";
return "?";
}
}
public String toSystem(SearchEntryMode code) {
return code.getSystem();
@ -590,7 +594,9 @@ public class Bundle extends Resource implements IBaseBundle {
}
public String toCode(HTTPVerb code) {
if (code == HTTPVerb.GET)
if (code == HTTPVerb.NULL)
return null;
if (code == HTTPVerb.GET)
return "GET";
if (code == HTTPVerb.POST)
return "POST";
@ -599,7 +605,7 @@ public class Bundle extends Resource implements IBaseBundle {
if (code == HTTPVerb.DELETE)
return "DELETE";
return "?";
}
}
public String toSystem(HTTPVerb code) {
return code.getSystem();

View File

@ -212,7 +212,9 @@ public class CarePlan extends DomainResource {
}
public String toCode(CarePlanStatus code) {
if (code == CarePlanStatus.PROPOSED)
if (code == CarePlanStatus.NULL)
return null;
if (code == CarePlanStatus.PROPOSED)
return "proposed";
if (code == CarePlanStatus.DRAFT)
return "draft";
@ -223,7 +225,7 @@ public class CarePlan extends DomainResource {
if (code == CarePlanStatus.CANCELLED)
return "cancelled";
return "?";
}
}
public String toSystem(CarePlanStatus code) {
return code.getSystem();
@ -352,14 +354,16 @@ public class CarePlan extends DomainResource {
}
public String toCode(CarePlanRelationship code) {
if (code == CarePlanRelationship.INCLUDES)
if (code == CarePlanRelationship.NULL)
return null;
if (code == CarePlanRelationship.INCLUDES)
return "includes";
if (code == CarePlanRelationship.REPLACES)
return "replaces";
if (code == CarePlanRelationship.FULFILLS)
return "fulfills";
return "?";
}
}
public String toSystem(CarePlanRelationship code) {
return code.getSystem();
@ -543,7 +547,9 @@ public class CarePlan extends DomainResource {
}
public String toCode(CarePlanActivityStatus code) {
if (code == CarePlanActivityStatus.NOTSTARTED)
if (code == CarePlanActivityStatus.NULL)
return null;
if (code == CarePlanActivityStatus.NOTSTARTED)
return "not-started";
if (code == CarePlanActivityStatus.SCHEDULED)
return "scheduled";
@ -556,7 +562,7 @@ public class CarePlan extends DomainResource {
if (code == CarePlanActivityStatus.CANCELLED)
return "cancelled";
return "?";
}
}
public String toSystem(CarePlanActivityStatus code) {
return code.getSystem();

View File

@ -211,7 +211,9 @@ public class Claim extends DomainResource {
}
public String toCode(ClaimType code) {
if (code == ClaimType.INSTITUTIONAL)
if (code == ClaimType.NULL)
return null;
if (code == ClaimType.INSTITUTIONAL)
return "institutional";
if (code == ClaimType.ORAL)
return "oral";
@ -222,7 +224,7 @@ public class Claim extends DomainResource {
if (code == ClaimType.VISION)
return "vision";
return "?";
}
}
public String toSystem(ClaimType code) {
return code.getSystem();
@ -370,7 +372,9 @@ public class Claim extends DomainResource {
}
public String toCode(Use code) {
if (code == Use.COMPLETE)
if (code == Use.NULL)
return null;
if (code == Use.COMPLETE)
return "complete";
if (code == Use.PROPOSED)
return "proposed";
@ -379,7 +383,7 @@ public class Claim extends DomainResource {
if (code == Use.OTHER)
return "other";
return "?";
}
}
public String toSystem(Use code) {
return code.getSystem();

View File

@ -178,14 +178,16 @@ public class ClinicalImpression extends DomainResource {
}
public String toCode(ClinicalImpressionStatus code) {
if (code == ClinicalImpressionStatus.INPROGRESS)
if (code == ClinicalImpressionStatus.NULL)
return null;
if (code == ClinicalImpressionStatus.INPROGRESS)
return "in-progress";
if (code == ClinicalImpressionStatus.COMPLETED)
return "completed";
if (code == ClinicalImpressionStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(ClinicalImpressionStatus code) {
return code.getSystem();

View File

@ -194,7 +194,9 @@ public class CodeSystem extends DomainResource {
}
public String toCode(CodeSystemContentMode code) {
if (code == CodeSystemContentMode.NOTPRESENT)
if (code == CodeSystemContentMode.NULL)
return null;
if (code == CodeSystemContentMode.NOTPRESENT)
return "not-present";
if (code == CodeSystemContentMode.EXAMPLAR)
return "examplar";
@ -203,7 +205,7 @@ public class CodeSystem extends DomainResource {
if (code == CodeSystemContentMode.COMPLETE)
return "complete";
return "?";
}
}
public String toSystem(CodeSystemContentMode code) {
return code.getSystem();
@ -388,7 +390,9 @@ public class CodeSystem extends DomainResource {
}
public String toCode(PropertyType code) {
if (code == PropertyType.CODE)
if (code == PropertyType.NULL)
return null;
if (code == PropertyType.CODE)
return "code";
if (code == PropertyType.CODING)
return "Coding";
@ -401,7 +405,7 @@ public class CodeSystem extends DomainResource {
if (code == PropertyType.DATETIME)
return "dateTime";
return "?";
}
}
public String toSystem(PropertyType code) {
return code.getSystem();

View File

@ -210,7 +210,9 @@ public class Communication extends DomainResource {
}
public String toCode(CommunicationStatus code) {
if (code == CommunicationStatus.INPROGRESS)
if (code == CommunicationStatus.NULL)
return null;
if (code == CommunicationStatus.INPROGRESS)
return "in-progress";
if (code == CommunicationStatus.COMPLETED)
return "completed";
@ -221,7 +223,7 @@ public class Communication extends DomainResource {
if (code == CommunicationStatus.FAILED)
return "failed";
return "?";
}
}
public String toSystem(CommunicationStatus code) {
return code.getSystem();

View File

@ -301,7 +301,9 @@ public class CommunicationRequest extends DomainResource {
}
public String toCode(CommunicationRequestStatus code) {
if (code == CommunicationRequestStatus.PROPOSED)
if (code == CommunicationRequestStatus.NULL)
return null;
if (code == CommunicationRequestStatus.PROPOSED)
return "proposed";
if (code == CommunicationRequestStatus.PLANNED)
return "planned";
@ -322,7 +324,7 @@ public class CommunicationRequest extends DomainResource {
if (code == CommunicationRequestStatus.FAILED)
return "failed";
return "?";
}
}
public String toSystem(CommunicationRequestStatus code) {
return code.getSystem();

View File

@ -209,7 +209,9 @@ public class CompartmentDefinition extends DomainResource {
}
public String toCode(CompartmentType code) {
if (code == CompartmentType.PATIENT)
if (code == CompartmentType.NULL)
return null;
if (code == CompartmentType.PATIENT)
return "Patient";
if (code == CompartmentType.ENCOUNTER)
return "Encounter";
@ -220,7 +222,7 @@ public class CompartmentDefinition extends DomainResource {
if (code == CompartmentType.DEVICE)
return "Device";
return "?";
}
}
public String toSystem(CompartmentType code) {
return code.getSystem();

View File

@ -202,7 +202,9 @@ public class Composition extends DomainResource {
}
public String toCode(CompositionStatus code) {
if (code == CompositionStatus.PRELIMINARY)
if (code == CompositionStatus.NULL)
return null;
if (code == CompositionStatus.PRELIMINARY)
return "preliminary";
if (code == CompositionStatus.FINAL)
return "final";
@ -211,7 +213,7 @@ public class Composition extends DomainResource {
if (code == CompositionStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(CompositionStatus code) {
return code.getSystem();
@ -359,7 +361,9 @@ public class Composition extends DomainResource {
}
public String toCode(CompositionAttestationMode code) {
if (code == CompositionAttestationMode.PERSONAL)
if (code == CompositionAttestationMode.NULL)
return null;
if (code == CompositionAttestationMode.PERSONAL)
return "personal";
if (code == CompositionAttestationMode.PROFESSIONAL)
return "professional";
@ -368,7 +372,7 @@ public class Composition extends DomainResource {
if (code == CompositionAttestationMode.OFFICIAL)
return "official";
return "?";
}
}
public String toSystem(CompositionAttestationMode code) {
return code.getSystem();

View File

@ -233,7 +233,9 @@ public class Condition extends DomainResource {
}
public String toCode(ConditionVerificationStatus code) {
if (code == ConditionVerificationStatus.PROVISIONAL)
if (code == ConditionVerificationStatus.NULL)
return null;
if (code == ConditionVerificationStatus.PROVISIONAL)
return "provisional";
if (code == ConditionVerificationStatus.DIFFERENTIAL)
return "differential";
@ -246,7 +248,7 @@ public class Condition extends DomainResource {
if (code == ConditionVerificationStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(ConditionVerificationStatus code) {
return code.getSystem();

View File

@ -182,14 +182,16 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public String toCode(ConformanceStatementKind code) {
if (code == ConformanceStatementKind.INSTANCE)
if (code == ConformanceStatementKind.NULL)
return null;
if (code == ConformanceStatementKind.INSTANCE)
return "instance";
if (code == ConformanceStatementKind.CAPABILITY)
return "capability";
if (code == ConformanceStatementKind.REQUIREMENTS)
return "requirements";
return "?";
}
}
public String toSystem(ConformanceStatementKind code) {
return code.getSystem();
@ -335,7 +337,9 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public String toCode(UnknownContentCode code) {
if (code == UnknownContentCode.NO)
if (code == UnknownContentCode.NULL)
return null;
if (code == UnknownContentCode.NO)
return "no";
if (code == UnknownContentCode.EXTENSIONS)
return "extensions";
@ -344,7 +348,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
if (code == UnknownContentCode.BOTH)
return "both";
return "?";
}
}
public String toSystem(UnknownContentCode code) {
return code.getSystem();
@ -454,12 +458,14 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public String toCode(RestfulConformanceMode code) {
if (code == RestfulConformanceMode.CLIENT)
if (code == RestfulConformanceMode.NULL)
return null;
if (code == RestfulConformanceMode.CLIENT)
return "client";
if (code == RestfulConformanceMode.SERVER)
return "server";
return "?";
}
}
public String toSystem(RestfulConformanceMode code) {
return code.getSystem();
@ -677,7 +683,9 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public String toCode(TypeRestfulInteraction code) {
if (code == TypeRestfulInteraction.READ)
if (code == TypeRestfulInteraction.NULL)
return null;
if (code == TypeRestfulInteraction.READ)
return "read";
if (code == TypeRestfulInteraction.VREAD)
return "vread";
@ -694,7 +702,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
if (code == TypeRestfulInteraction.SEARCHTYPE)
return "search-type";
return "?";
}
}
public String toSystem(TypeRestfulInteraction code) {
return code.getSystem();
@ -823,14 +831,16 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public String toCode(ResourceVersionPolicy code) {
if (code == ResourceVersionPolicy.NOVERSION)
if (code == ResourceVersionPolicy.NULL)
return null;
if (code == ResourceVersionPolicy.NOVERSION)
return "no-version";
if (code == ResourceVersionPolicy.VERSIONED)
return "versioned";
if (code == ResourceVersionPolicy.VERSIONEDUPDATE)
return "versioned-update";
return "?";
}
}
public String toSystem(ResourceVersionPolicy code) {
return code.getSystem();
@ -959,14 +969,16 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public String toCode(ConditionalDeleteStatus code) {
if (code == ConditionalDeleteStatus.NOTSUPPORTED)
if (code == ConditionalDeleteStatus.NULL)
return null;
if (code == ConditionalDeleteStatus.NOTSUPPORTED)
return "not-supported";
if (code == ConditionalDeleteStatus.SINGLE)
return "single";
if (code == ConditionalDeleteStatus.MULTIPLE)
return "multiple";
return "?";
}
}
public String toSystem(ConditionalDeleteStatus code) {
return code.getSystem();
@ -1231,7 +1243,9 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public String toCode(SearchModifierCode code) {
if (code == SearchModifierCode.MISSING)
if (code == SearchModifierCode.NULL)
return null;
if (code == SearchModifierCode.MISSING)
return "missing";
if (code == SearchModifierCode.EXACT)
return "exact";
@ -1252,7 +1266,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
if (code == SearchModifierCode.TYPE)
return "type";
return "?";
}
}
public String toSystem(SearchModifierCode code) {
return code.getSystem();
@ -1380,14 +1394,16 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public String toCode(SystemRestfulInteraction code) {
if (code == SystemRestfulInteraction.TRANSACTION)
if (code == SystemRestfulInteraction.NULL)
return null;
if (code == SystemRestfulInteraction.TRANSACTION)
return "transaction";
if (code == SystemRestfulInteraction.SEARCHSYSTEM)
return "search-system";
if (code == SystemRestfulInteraction.HISTORYSYSTEM)
return "history-system";
return "?";
}
}
public String toSystem(SystemRestfulInteraction code) {
return code.getSystem();
@ -1533,7 +1549,9 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public String toCode(TransactionMode code) {
if (code == TransactionMode.NOTSUPPORTED)
if (code == TransactionMode.NULL)
return null;
if (code == TransactionMode.NOTSUPPORTED)
return "not-supported";
if (code == TransactionMode.BATCH)
return "batch";
@ -1542,7 +1560,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
if (code == TransactionMode.BOTH)
return "both";
return "?";
}
}
public String toSystem(TransactionMode code) {
return code.getSystem();
@ -1674,14 +1692,16 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public String toCode(MessageSignificanceCategory code) {
if (code == MessageSignificanceCategory.CONSEQUENCE)
if (code == MessageSignificanceCategory.NULL)
return null;
if (code == MessageSignificanceCategory.CONSEQUENCE)
return "Consequence";
if (code == MessageSignificanceCategory.CURRENCY)
return "Currency";
if (code == MessageSignificanceCategory.NOTIFICATION)
return "Notification";
return "?";
}
}
public String toSystem(MessageSignificanceCategory code) {
return code.getSystem();
@ -1791,12 +1811,14 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public String toCode(ConformanceEventMode code) {
if (code == ConformanceEventMode.SENDER)
if (code == ConformanceEventMode.NULL)
return null;
if (code == ConformanceEventMode.SENDER)
return "sender";
if (code == ConformanceEventMode.RECEIVER)
return "receiver";
return "?";
}
}
public String toSystem(ConformanceEventMode code) {
return code.getSystem();
@ -1906,12 +1928,14 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public String toCode(DocumentMode code) {
if (code == DocumentMode.PRODUCER)
if (code == DocumentMode.NULL)
return null;
if (code == DocumentMode.PRODUCER)
return "producer";
if (code == DocumentMode.CONSUMER)
return "consumer";
return "?";
}
}
public String toSystem(DocumentMode code) {
return code.getSystem();

View File

@ -211,7 +211,9 @@ public class ContactPoint extends Type implements ICompositeType {
}
public String toCode(ContactPointSystem code) {
if (code == ContactPointSystem.PHONE)
if (code == ContactPointSystem.NULL)
return null;
if (code == ContactPointSystem.PHONE)
return "phone";
if (code == ContactPointSystem.FAX)
return "fax";
@ -222,7 +224,7 @@ public class ContactPoint extends Type implements ICompositeType {
if (code == ContactPointSystem.OTHER)
return "other";
return "?";
}
}
public String toSystem(ContactPointSystem code) {
return code.getSystem();
@ -393,7 +395,9 @@ public class ContactPoint extends Type implements ICompositeType {
}
public String toCode(ContactPointUse code) {
if (code == ContactPointUse.HOME)
if (code == ContactPointUse.NULL)
return null;
if (code == ContactPointUse.HOME)
return "home";
if (code == ContactPointUse.WORK)
return "work";
@ -404,7 +408,7 @@ public class ContactPoint extends Type implements ICompositeType {
if (code == ContactPointUse.MOBILE)
return "mobile";
return "?";
}
}
public String toSystem(ContactPointUse code) {
return code.getSystem();

View File

@ -240,7 +240,9 @@ public class DataElement extends DomainResource {
}
public String toCode(DataElementStringency code) {
if (code == DataElementStringency.COMPARABLE)
if (code == DataElementStringency.NULL)
return null;
if (code == DataElementStringency.COMPARABLE)
return "comparable";
if (code == DataElementStringency.FULLYSPECIFIED)
return "fully-specified";
@ -253,7 +255,7 @@ public class DataElement extends DomainResource {
if (code == DataElementStringency.FLEXIBLE)
return "flexible";
return "?";
}
}
public String toSystem(DataElementStringency code) {
return code.getSystem();

View File

@ -177,14 +177,16 @@ public class DetectedIssue extends DomainResource {
}
public String toCode(DetectedIssueSeverity code) {
if (code == DetectedIssueSeverity.HIGH)
if (code == DetectedIssueSeverity.NULL)
return null;
if (code == DetectedIssueSeverity.HIGH)
return "high";
if (code == DetectedIssueSeverity.MODERATE)
return "moderate";
if (code == DetectedIssueSeverity.LOW)
return "low";
return "?";
}
}
public String toSystem(DetectedIssueSeverity code) {
return code.getSystem();

View File

@ -175,14 +175,16 @@ public class Device extends DomainResource {
}
public String toCode(DeviceStatus code) {
if (code == DeviceStatus.AVAILABLE)
if (code == DeviceStatus.NULL)
return null;
if (code == DeviceStatus.AVAILABLE)
return "available";
if (code == DeviceStatus.NOTAVAILABLE)
return "not-available";
if (code == DeviceStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(DeviceStatus code) {
return code.getSystem();

View File

@ -316,7 +316,9 @@ public class DeviceComponent extends DomainResource {
}
public String toCode(MeasmntPrinciple code) {
if (code == MeasmntPrinciple.OTHER)
if (code == MeasmntPrinciple.NULL)
return null;
if (code == MeasmntPrinciple.OTHER)
return "other";
if (code == MeasmntPrinciple.CHEMICAL)
return "chemical";
@ -339,7 +341,7 @@ public class DeviceComponent extends DomainResource {
if (code == MeasmntPrinciple.MANUAL)
return "manual";
return "?";
}
}
public String toSystem(MeasmntPrinciple code) {
return code.getSystem();

View File

@ -171,14 +171,16 @@ public class DeviceMetric extends DomainResource {
}
public String toCode(DeviceMetricOperationalStatus code) {
if (code == DeviceMetricOperationalStatus.ON)
if (code == DeviceMetricOperationalStatus.NULL)
return null;
if (code == DeviceMetricOperationalStatus.ON)
return "on";
if (code == DeviceMetricOperationalStatus.OFF)
return "off";
if (code == DeviceMetricOperationalStatus.STANDBY)
return "standby";
return "?";
}
}
public String toSystem(DeviceMetricOperationalStatus code) {
return code.getSystem();
@ -396,7 +398,9 @@ public class DeviceMetric extends DomainResource {
}
public String toCode(DeviceMetricColor code) {
if (code == DeviceMetricColor.BLACK)
if (code == DeviceMetricColor.NULL)
return null;
if (code == DeviceMetricColor.BLACK)
return "black";
if (code == DeviceMetricColor.RED)
return "red";
@ -413,7 +417,7 @@ public class DeviceMetric extends DomainResource {
if (code == DeviceMetricColor.WHITE)
return "white";
return "?";
}
}
public String toSystem(DeviceMetricColor code) {
return code.getSystem();
@ -560,7 +564,9 @@ public class DeviceMetric extends DomainResource {
}
public String toCode(DeviceMetricCategory code) {
if (code == DeviceMetricCategory.MEASUREMENT)
if (code == DeviceMetricCategory.NULL)
return null;
if (code == DeviceMetricCategory.MEASUREMENT)
return "measurement";
if (code == DeviceMetricCategory.SETTING)
return "setting";
@ -569,7 +575,7 @@ public class DeviceMetric extends DomainResource {
if (code == DeviceMetricCategory.UNSPECIFIED)
return "unspecified";
return "?";
}
}
public String toSystem(DeviceMetricCategory code) {
return code.getSystem();
@ -715,7 +721,9 @@ public class DeviceMetric extends DomainResource {
}
public String toCode(DeviceMetricCalibrationType code) {
if (code == DeviceMetricCalibrationType.UNSPECIFIED)
if (code == DeviceMetricCalibrationType.NULL)
return null;
if (code == DeviceMetricCalibrationType.UNSPECIFIED)
return "unspecified";
if (code == DeviceMetricCalibrationType.OFFSET)
return "offset";
@ -724,7 +732,7 @@ public class DeviceMetric extends DomainResource {
if (code == DeviceMetricCalibrationType.TWOPOINT)
return "two-point";
return "?";
}
}
public String toSystem(DeviceMetricCalibrationType code) {
return code.getSystem();
@ -870,7 +878,9 @@ public class DeviceMetric extends DomainResource {
}
public String toCode(DeviceMetricCalibrationState code) {
if (code == DeviceMetricCalibrationState.NOTCALIBRATED)
if (code == DeviceMetricCalibrationState.NULL)
return null;
if (code == DeviceMetricCalibrationState.NOTCALIBRATED)
return "not-calibrated";
if (code == DeviceMetricCalibrationState.CALIBRATIONREQUIRED)
return "calibration-required";
@ -879,7 +889,7 @@ public class DeviceMetric extends DomainResource {
if (code == DeviceMetricCalibrationState.UNSPECIFIED)
return "unspecified";
return "?";
}
}
public String toSystem(DeviceMetricCalibrationState code) {
return code.getSystem();

View File

@ -298,7 +298,9 @@ public class DeviceUseRequest extends DomainResource {
}
public String toCode(DeviceUseRequestStatus code) {
if (code == DeviceUseRequestStatus.PROPOSED)
if (code == DeviceUseRequestStatus.NULL)
return null;
if (code == DeviceUseRequestStatus.PROPOSED)
return "proposed";
if (code == DeviceUseRequestStatus.PLANNED)
return "planned";
@ -319,7 +321,7 @@ public class DeviceUseRequest extends DomainResource {
if (code == DeviceUseRequestStatus.ABORTED)
return "aborted";
return "?";
}
}
public String toSystem(DeviceUseRequestStatus code) {
return code.getSystem();
@ -465,7 +467,9 @@ public class DeviceUseRequest extends DomainResource {
}
public String toCode(DeviceUseRequestPriority code) {
if (code == DeviceUseRequestPriority.ROUTINE)
if (code == DeviceUseRequestPriority.NULL)
return null;
if (code == DeviceUseRequestPriority.ROUTINE)
return "routine";
if (code == DeviceUseRequestPriority.URGENT)
return "urgent";
@ -474,7 +478,7 @@ public class DeviceUseRequest extends DomainResource {
if (code == DeviceUseRequestPriority.ASAP)
return "asap";
return "?";
}
}
public String toSystem(DeviceUseRequestPriority code) {
return code.getSystem();

View File

@ -371,7 +371,9 @@ public class DiagnosticOrder extends DomainResource {
}
public String toCode(DiagnosticOrderStatus code) {
if (code == DiagnosticOrderStatus.PROPOSED)
if (code == DiagnosticOrderStatus.NULL)
return null;
if (code == DiagnosticOrderStatus.PROPOSED)
return "proposed";
if (code == DiagnosticOrderStatus.DRAFT)
return "draft";
@ -400,7 +402,7 @@ public class DiagnosticOrder extends DomainResource {
if (code == DiagnosticOrderStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(DiagnosticOrderStatus code) {
return code.getSystem();
@ -546,7 +548,9 @@ public class DiagnosticOrder extends DomainResource {
}
public String toCode(DiagnosticOrderPriority code) {
if (code == DiagnosticOrderPriority.ROUTINE)
if (code == DiagnosticOrderPriority.NULL)
return null;
if (code == DiagnosticOrderPriority.ROUTINE)
return "routine";
if (code == DiagnosticOrderPriority.URGENT)
return "urgent";
@ -555,7 +559,7 @@ public class DiagnosticOrder extends DomainResource {
if (code == DiagnosticOrderPriority.ASAP)
return "asap";
return "?";
}
}
public String toSystem(DiagnosticOrderPriority code) {
return code.getSystem();

View File

@ -253,7 +253,9 @@ public class DiagnosticReport extends DomainResource {
}
public String toCode(DiagnosticReportStatus code) {
if (code == DiagnosticReportStatus.REGISTERED)
if (code == DiagnosticReportStatus.NULL)
return null;
if (code == DiagnosticReportStatus.REGISTERED)
return "registered";
if (code == DiagnosticReportStatus.PARTIAL)
return "partial";
@ -268,7 +270,7 @@ public class DiagnosticReport extends DomainResource {
if (code == DiagnosticReportStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(DiagnosticReportStatus code) {
return code.getSystem();

View File

@ -192,7 +192,9 @@ public class DocumentReference extends DomainResource {
}
public String toCode(DocumentRelationshipType code) {
if (code == DocumentRelationshipType.REPLACES)
if (code == DocumentRelationshipType.NULL)
return null;
if (code == DocumentRelationshipType.REPLACES)
return "replaces";
if (code == DocumentRelationshipType.TRANSFORMS)
return "transforms";
@ -201,7 +203,7 @@ public class DocumentReference extends DomainResource {
if (code == DocumentRelationshipType.APPENDS)
return "appends";
return "?";
}
}
public String toSystem(DocumentRelationshipType code) {
return code.getSystem();

View File

@ -191,7 +191,9 @@ public class ElementDefinition extends Type implements ICompositeType {
}
public String toCode(PropertyRepresentation code) {
if (code == PropertyRepresentation.XMLATTR)
if (code == PropertyRepresentation.NULL)
return null;
if (code == PropertyRepresentation.XMLATTR)
return "xmlAttr";
if (code == PropertyRepresentation.XMLTEXT)
return "xmlText";
@ -200,7 +202,7 @@ public class ElementDefinition extends Type implements ICompositeType {
if (code == PropertyRepresentation.CDATEXT)
return "cdaText";
return "?";
}
}
public String toSystem(PropertyRepresentation code) {
return code.getSystem();
@ -331,14 +333,16 @@ public class ElementDefinition extends Type implements ICompositeType {
}
public String toCode(SlicingRules code) {
if (code == SlicingRules.CLOSED)
if (code == SlicingRules.NULL)
return null;
if (code == SlicingRules.CLOSED)
return "closed";
if (code == SlicingRules.OPEN)
return "open";
if (code == SlicingRules.OPENATEND)
return "openAtEnd";
return "?";
}
}
public String toSystem(SlicingRules code) {
return code.getSystem();
@ -468,14 +472,16 @@ public class ElementDefinition extends Type implements ICompositeType {
}
public String toCode(AggregationMode code) {
if (code == AggregationMode.CONTAINED)
if (code == AggregationMode.NULL)
return null;
if (code == AggregationMode.CONTAINED)
return "contained";
if (code == AggregationMode.REFERENCED)
return "referenced";
if (code == AggregationMode.BUNDLED)
return "bundled";
return "?";
}
}
public String toSystem(AggregationMode code) {
return code.getSystem();
@ -603,14 +609,16 @@ public class ElementDefinition extends Type implements ICompositeType {
}
public String toCode(ReferenceVersionRules code) {
if (code == ReferenceVersionRules.EITHER)
if (code == ReferenceVersionRules.NULL)
return null;
if (code == ReferenceVersionRules.EITHER)
return "either";
if (code == ReferenceVersionRules.INDEPENDENT)
return "independent";
if (code == ReferenceVersionRules.SPECIFIC)
return "specific";
return "?";
}
}
public String toSystem(ReferenceVersionRules code) {
return code.getSystem();
@ -721,12 +729,14 @@ public class ElementDefinition extends Type implements ICompositeType {
}
public String toCode(ConstraintSeverity code) {
if (code == ConstraintSeverity.ERROR)
if (code == ConstraintSeverity.NULL)
return null;
if (code == ConstraintSeverity.ERROR)
return "error";
if (code == ConstraintSeverity.WARNING)
return "warning";
return "?";
}
}
public String toSystem(ConstraintSeverity code) {
return code.getSystem();

View File

@ -227,7 +227,9 @@ public class Encounter extends DomainResource {
}
public String toCode(EncounterState code) {
if (code == EncounterState.PLANNED)
if (code == EncounterState.NULL)
return null;
if (code == EncounterState.PLANNED)
return "planned";
if (code == EncounterState.ARRIVED)
return "arrived";
@ -240,7 +242,7 @@ public class Encounter extends DomainResource {
if (code == EncounterState.CANCELLED)
return "cancelled";
return "?";
}
}
public String toSystem(EncounterState code) {
return code.getSystem();
@ -482,7 +484,9 @@ public class Encounter extends DomainResource {
}
public String toCode(EncounterClass code) {
if (code == EncounterClass.INPATIENT)
if (code == EncounterClass.NULL)
return null;
if (code == EncounterClass.INPATIENT)
return "inpatient";
if (code == EncounterClass.OUTPATIENT)
return "outpatient";
@ -501,7 +505,7 @@ public class Encounter extends DomainResource {
if (code == EncounterClass.OTHER)
return "other";
return "?";
}
}
public String toSystem(EncounterClass code) {
return code.getSystem();
@ -654,7 +658,9 @@ public class Encounter extends DomainResource {
}
public String toCode(EncounterLocationStatus code) {
if (code == EncounterLocationStatus.PLANNED)
if (code == EncounterLocationStatus.NULL)
return null;
if (code == EncounterLocationStatus.PLANNED)
return "planned";
if (code == EncounterLocationStatus.ACTIVE)
return "active";
@ -663,7 +669,7 @@ public class Encounter extends DomainResource {
if (code == EncounterLocationStatus.COMPLETED)
return "completed";
return "?";
}
}
public String toSystem(EncounterLocationStatus code) {
return code.getSystem();

View File

@ -155,12 +155,14 @@ public class Enumerations {
}
public String toCode(AbstractType code) {
if (code == AbstractType.TYPE)
if (code == AbstractType.NULL)
return null;
if (code == AbstractType.TYPE)
return "Type";
if (code == AbstractType.ANY)
return "Any";
return "?";
}
}
public String toSystem(AbstractType code) {
return code.getSystem();
@ -306,7 +308,9 @@ public class Enumerations {
}
public String toCode(AdministrativeGender code) {
if (code == AdministrativeGender.MALE)
if (code == AdministrativeGender.NULL)
return null;
if (code == AdministrativeGender.MALE)
return "male";
if (code == AdministrativeGender.FEMALE)
return "female";
@ -315,7 +319,7 @@ public class Enumerations {
if (code == AdministrativeGender.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(AdministrativeGender code) {
return code.getSystem();
@ -497,7 +501,9 @@ public class Enumerations {
}
public String toCode(AgeUnits code) {
if (code == AgeUnits.MIN)
if (code == AgeUnits.NULL)
return null;
if (code == AgeUnits.MIN)
return "min";
if (code == AgeUnits.H)
return "h";
@ -510,7 +516,7 @@ public class Enumerations {
if (code == AgeUnits.A)
return "a";
return "?";
}
}
public String toSystem(AgeUnits code) {
return code.getSystem();
@ -665,7 +671,9 @@ public class Enumerations {
}
public String toCode(BindingStrength code) {
if (code == BindingStrength.REQUIRED)
if (code == BindingStrength.NULL)
return null;
if (code == BindingStrength.REQUIRED)
return "required";
if (code == BindingStrength.EXTENSIBLE)
return "extensible";
@ -674,7 +682,7 @@ public class Enumerations {
if (code == BindingStrength.EXAMPLE)
return "example";
return "?";
}
}
public String toSystem(BindingStrength code) {
return code.getSystem();
@ -925,7 +933,9 @@ public class Enumerations {
}
public String toCode(ConceptMapEquivalence code) {
if (code == ConceptMapEquivalence.EQUIVALENT)
if (code == ConceptMapEquivalence.NULL)
return null;
if (code == ConceptMapEquivalence.EQUIVALENT)
return "equivalent";
if (code == ConceptMapEquivalence.EQUAL)
return "equal";
@ -944,7 +954,7 @@ public class Enumerations {
if (code == ConceptMapEquivalence.DISJOINT)
return "disjoint";
return "?";
}
}
public String toSystem(ConceptMapEquivalence code) {
return code.getSystem();
@ -1072,14 +1082,16 @@ public class Enumerations {
}
public String toCode(ConformanceResourceStatus code) {
if (code == ConformanceResourceStatus.DRAFT)
if (code == ConformanceResourceStatus.NULL)
return null;
if (code == ConformanceResourceStatus.DRAFT)
return "draft";
if (code == ConformanceResourceStatus.ACTIVE)
return "active";
if (code == ConformanceResourceStatus.RETIRED)
return "retired";
return "?";
}
}
public String toSystem(ConformanceResourceStatus code) {
return code.getSystem();
@ -1318,7 +1330,9 @@ public class Enumerations {
}
public String toCode(DataAbsentReason code) {
if (code == DataAbsentReason.UNKNOWN)
if (code == DataAbsentReason.NULL)
return null;
if (code == DataAbsentReason.UNKNOWN)
return "unknown";
if (code == DataAbsentReason.ASKED)
return "asked";
@ -1337,7 +1351,7 @@ public class Enumerations {
if (code == DataAbsentReason.NAN)
return "NaN";
return "?";
}
}
public String toSystem(DataAbsentReason code) {
return code.getSystem();
@ -2370,7 +2384,9 @@ public class Enumerations {
}
public String toCode(DataType code) {
if (code == DataType.ACTIONDEFINITION)
if (code == DataType.NULL)
return null;
if (code == DataType.ACTIONDEFINITION)
return "ActionDefinition";
if (code == DataType.ADDRESS)
return "Address";
@ -2473,7 +2489,7 @@ public class Enumerations {
if (code == DataType.XHTML)
return "xhtml";
return "?";
}
}
public String toSystem(DataType code) {
return code.getSystem();
@ -2601,14 +2617,16 @@ public class Enumerations {
}
public String toCode(DocumentReferenceStatus code) {
if (code == DocumentReferenceStatus.CURRENT)
if (code == DocumentReferenceStatus.NULL)
return null;
if (code == DocumentReferenceStatus.CURRENT)
return "current";
if (code == DocumentReferenceStatus.SUPERSEDED)
return "superseded";
if (code == DocumentReferenceStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(DocumentReferenceStatus code) {
return code.getSystem();
@ -5957,7 +5975,9 @@ public class Enumerations {
}
public String toCode(FHIRAllTypes code) {
if (code == FHIRAllTypes.ACTIONDEFINITION)
if (code == FHIRAllTypes.NULL)
return null;
if (code == FHIRAllTypes.ACTIONDEFINITION)
return "ActionDefinition";
if (code == FHIRAllTypes.ADDRESS)
return "Address";
@ -6294,7 +6314,7 @@ public class Enumerations {
if (code == FHIRAllTypes.ANY)
return "Any";
return "?";
}
}
public String toSystem(FHIRAllTypes code) {
return code.getSystem();
@ -9607,7 +9627,9 @@ public class Enumerations {
}
public String toCode(FHIRDefinedType code) {
if (code == FHIRDefinedType.ACTIONDEFINITION)
if (code == FHIRDefinedType.NULL)
return null;
if (code == FHIRDefinedType.ACTIONDEFINITION)
return "ActionDefinition";
if (code == FHIRDefinedType.ADDRESS)
return "Address";
@ -9940,7 +9962,7 @@ public class Enumerations {
if (code == FHIRDefinedType.VISIONPRESCRIPTION)
return "VisionPrescription";
return "?";
}
}
public String toSystem(FHIRDefinedType code) {
return code.getSystem();
@ -10222,7 +10244,9 @@ public class Enumerations {
}
public String toCode(MessageEvent code) {
if (code == MessageEvent.CODESYSTEMEXPAND)
if (code == MessageEvent.NULL)
return null;
if (code == MessageEvent.CODESYSTEMEXPAND)
return "CodeSystem-expand";
if (code == MessageEvent.MEDICATIONADMINISTRATIONCOMPLETE)
return "MedicationAdministration-Complete";
@ -10245,7 +10269,7 @@ public class Enumerations {
if (code == MessageEvent.VALUESETEXPAND)
return "valueset-expand";
return "?";
}
}
public String toSystem(MessageEvent code) {
return code.getSystem();
@ -10373,14 +10397,16 @@ public class Enumerations {
}
public String toCode(NoteType code) {
if (code == NoteType.DISPLAY)
if (code == NoteType.NULL)
return null;
if (code == NoteType.DISPLAY)
return "display";
if (code == NoteType.PRINT)
return "print";
if (code == NoteType.PRINTOPER)
return "printoper";
return "?";
}
}
public String toSystem(NoteType code) {
return code.getSystem();
@ -10490,12 +10516,14 @@ public class Enumerations {
}
public String toCode(RemittanceOutcome code) {
if (code == RemittanceOutcome.COMPLETE)
if (code == RemittanceOutcome.NULL)
return null;
if (code == RemittanceOutcome.COMPLETE)
return "complete";
if (code == RemittanceOutcome.ERROR)
return "error";
return "?";
}
}
public String toSystem(RemittanceOutcome code) {
return code.getSystem();
@ -12849,7 +12877,9 @@ public class Enumerations {
}
public String toCode(ResourceType code) {
if (code == ResourceType.ACCOUNT)
if (code == ResourceType.NULL)
return null;
if (code == ResourceType.ACCOUNT)
return "Account";
if (code == ResourceType.ALLERGYINTOLERANCE)
return "AllergyIntolerance";
@ -13080,7 +13110,7 @@ public class Enumerations {
if (code == ResourceType.VISIONPRESCRIPTION)
return "VisionPrescription";
return "?";
}
}
public String toSystem(ResourceType code) {
return code.getSystem();
@ -13305,7 +13335,9 @@ public class Enumerations {
}
public String toCode(SearchParamType code) {
if (code == SearchParamType.NUMBER)
if (code == SearchParamType.NULL)
return null;
if (code == SearchParamType.NUMBER)
return "number";
if (code == SearchParamType.DATE)
return "date";
@ -13322,7 +13354,7 @@ public class Enumerations {
if (code == SearchParamType.URI)
return "uri";
return "?";
}
}
public String toSystem(SearchParamType code) {
return code.getSystem();
@ -13505,7 +13537,9 @@ public class Enumerations {
}
public String toCode(SpecialValues code) {
if (code == SpecialValues.TRUE)
if (code == SpecialValues.NULL)
return null;
if (code == SpecialValues.TRUE)
return "true";
if (code == SpecialValues.FALSE)
return "false";
@ -13518,7 +13552,7 @@ public class Enumerations {
if (code == SpecialValues.NILKNOWN)
return "nil-known";
return "?";
}
}
public String toSystem(SpecialValues code) {
return code.getSystem();

View File

@ -236,7 +236,9 @@ public class EpisodeOfCare extends DomainResource {
}
public String toCode(EpisodeOfCareStatus code) {
if (code == EpisodeOfCareStatus.PLANNED)
if (code == EpisodeOfCareStatus.NULL)
return null;
if (code == EpisodeOfCareStatus.PLANNED)
return "planned";
if (code == EpisodeOfCareStatus.WAITLIST)
return "waitlist";
@ -249,7 +251,7 @@ public class EpisodeOfCare extends DomainResource {
if (code == EpisodeOfCareStatus.CANCELLED)
return "cancelled";
return "?";
}
}
public String toSystem(EpisodeOfCareStatus code) {
return code.getSystem();

View File

@ -193,7 +193,9 @@ public class FamilyMemberHistory extends DomainResource {
}
public String toCode(FamilyHistoryStatus code) {
if (code == FamilyHistoryStatus.PARTIAL)
if (code == FamilyHistoryStatus.NULL)
return null;
if (code == FamilyHistoryStatus.PARTIAL)
return "partial";
if (code == FamilyHistoryStatus.COMPLETED)
return "completed";
@ -202,7 +204,7 @@ public class FamilyMemberHistory extends DomainResource {
if (code == FamilyHistoryStatus.HEALTHUNKNOWN)
return "health-unknown";
return "?";
}
}
public String toSystem(FamilyHistoryStatus code) {
return code.getSystem();

View File

@ -168,14 +168,16 @@ public class Flag extends DomainResource {
}
public String toCode(FlagStatus code) {
if (code == FlagStatus.ACTIVE)
if (code == FlagStatus.NULL)
return null;
if (code == FlagStatus.ACTIVE)
return "active";
if (code == FlagStatus.INACTIVE)
return "inactive";
if (code == FlagStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(FlagStatus code) {
return code.getSystem();

View File

@ -285,7 +285,9 @@ public class Goal extends DomainResource {
}
public String toCode(GoalStatus code) {
if (code == GoalStatus.PROPOSED)
if (code == GoalStatus.NULL)
return null;
if (code == GoalStatus.PROPOSED)
return "proposed";
if (code == GoalStatus.PLANNED)
return "planned";
@ -304,7 +306,7 @@ public class Goal extends DomainResource {
if (code == GoalStatus.CANCELLED)
return "cancelled";
return "?";
}
}
public String toSystem(GoalStatus code) {
return code.getSystem();

View File

@ -227,7 +227,9 @@ public class Group extends DomainResource {
}
public String toCode(GroupType code) {
if (code == GroupType.PERSON)
if (code == GroupType.NULL)
return null;
if (code == GroupType.PERSON)
return "person";
if (code == GroupType.ANIMAL)
return "animal";
@ -240,7 +242,7 @@ public class Group extends DomainResource {
if (code == GroupType.SUBSTANCE)
return "substance";
return "?";
}
}
public String toSystem(GroupType code) {
return code.getSystem();

View File

@ -209,7 +209,9 @@ public class GuidanceResponse extends DomainResource {
}
public String toCode(GuidanceResponseStatus code) {
if (code == GuidanceResponseStatus.SUCCESS)
if (code == GuidanceResponseStatus.NULL)
return null;
if (code == GuidanceResponseStatus.SUCCESS)
return "success";
if (code == GuidanceResponseStatus.DATAREQUESTED)
return "data-requested";
@ -220,7 +222,7 @@ public class GuidanceResponse extends DomainResource {
if (code == GuidanceResponseStatus.FAILURE)
return "failure";
return "?";
}
}
public String toSystem(GuidanceResponseStatus code) {
return code.getSystem();

View File

@ -242,7 +242,9 @@ public class HealthcareService extends DomainResource {
}
public String toCode(DaysOfWeek code) {
if (code == DaysOfWeek.MON)
if (code == DaysOfWeek.NULL)
return null;
if (code == DaysOfWeek.MON)
return "mon";
if (code == DaysOfWeek.TUE)
return "tue";
@ -257,7 +259,7 @@ public class HealthcareService extends DomainResource {
if (code == DaysOfWeek.SUN)
return "sun";
return "?";
}
}
public String toSystem(DaysOfWeek code) {
return code.getSystem();

View File

@ -253,7 +253,9 @@ public class HumanName extends Type implements ICompositeType {
}
public String toCode(NameUse code) {
if (code == NameUse.USUAL)
if (code == NameUse.NULL)
return null;
if (code == NameUse.USUAL)
return "usual";
if (code == NameUse.OFFICIAL)
return "official";
@ -268,7 +270,7 @@ public class HumanName extends Type implements ICompositeType {
if (code == NameUse.MAIDEN)
return "maiden";
return "?";
}
}
public String toSystem(NameUse code) {
return code.getSystem();

View File

@ -188,7 +188,9 @@ public class Identifier extends Type implements ICompositeType {
}
public String toCode(IdentifierUse code) {
if (code == IdentifierUse.USUAL)
if (code == IdentifierUse.NULL)
return null;
if (code == IdentifierUse.USUAL)
return "usual";
if (code == IdentifierUse.OFFICIAL)
return "official";
@ -197,7 +199,7 @@ public class Identifier extends Type implements ICompositeType {
if (code == IdentifierUse.SECONDARY)
return "secondary";
return "?";
}
}
public String toSystem(IdentifierUse code) {
return code.getSystem();

View File

@ -198,7 +198,9 @@ public class ImagingExcerpt extends DomainResource {
}
public String toCode(DWebType code) {
if (code == DWebType.WADORS)
if (code == DWebType.NULL)
return null;
if (code == DWebType.WADORS)
return "WADO-RS";
if (code == DWebType.WADOURI)
return "WADO-URI";
@ -207,7 +209,7 @@ public class ImagingExcerpt extends DomainResource {
if (code == DWebType.WADOWS)
return "WADO-WS";
return "?";
}
}
public String toSystem(DWebType code) {
return code.getSystem();

View File

@ -193,7 +193,9 @@ public class ImagingStudy extends DomainResource {
}
public String toCode(InstanceAvailability code) {
if (code == InstanceAvailability.ONLINE)
if (code == InstanceAvailability.NULL)
return null;
if (code == InstanceAvailability.ONLINE)
return "ONLINE";
if (code == InstanceAvailability.OFFLINE)
return "OFFLINE";
@ -202,7 +204,7 @@ public class ImagingStudy extends DomainResource {
if (code == InstanceAvailability.UNAVAILABLE)
return "UNAVAILABLE";
return "?";
}
}
public String toSystem(InstanceAvailability code) {
return code.getSystem();

View File

@ -157,12 +157,14 @@ public class ImplementationGuide extends DomainResource {
}
public String toCode(GuideDependencyType code) {
if (code == GuideDependencyType.REFERENCE)
if (code == GuideDependencyType.NULL)
return null;
if (code == GuideDependencyType.REFERENCE)
return "reference";
if (code == GuideDependencyType.INCLUSION)
return "inclusion";
return "?";
}
}
public String toSystem(GuideDependencyType code) {
return code.getSystem();
@ -383,7 +385,9 @@ public class ImplementationGuide extends DomainResource {
}
public String toCode(GuidePageKind code) {
if (code == GuidePageKind.PAGE)
if (code == GuidePageKind.NULL)
return null;
if (code == GuidePageKind.PAGE)
return "page";
if (code == GuidePageKind.EXAMPLE)
return "example";
@ -400,7 +404,7 @@ public class ImplementationGuide extends DomainResource {
if (code == GuidePageKind.RESOURCE)
return "resource";
return "?";
}
}
public String toSystem(GuidePageKind code) {
return code.getSystem();

View File

@ -174,14 +174,16 @@ public class Linkage extends DomainResource {
}
public String toCode(LinkageType code) {
if (code == LinkageType.SOURCE)
if (code == LinkageType.NULL)
return null;
if (code == LinkageType.SOURCE)
return "source";
if (code == LinkageType.ALTERNATE)
return "alternate";
if (code == LinkageType.HISTORICAL)
return "historical";
return "?";
}
}
public String toSystem(LinkageType code) {
return code.getSystem();

View File

@ -171,14 +171,16 @@ public class ListResource extends DomainResource {
}
public String toCode(ListStatus code) {
if (code == ListStatus.CURRENT)
if (code == ListStatus.NULL)
return null;
if (code == ListStatus.CURRENT)
return "current";
if (code == ListStatus.RETIRED)
return "retired";
if (code == ListStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(ListStatus code) {
return code.getSystem();
@ -307,14 +309,16 @@ public class ListResource extends DomainResource {
}
public String toCode(ListMode code) {
if (code == ListMode.WORKING)
if (code == ListMode.NULL)
return null;
if (code == ListMode.WORKING)
return "working";
if (code == ListMode.SNAPSHOT)
return "snapshot";
if (code == ListMode.CHANGES)
return "changes";
return "?";
}
}
public String toSystem(ListMode code) {
return code.getSystem();

View File

@ -174,14 +174,16 @@ public class Location extends DomainResource {
}
public String toCode(LocationStatus code) {
if (code == LocationStatus.ACTIVE)
if (code == LocationStatus.NULL)
return null;
if (code == LocationStatus.ACTIVE)
return "active";
if (code == LocationStatus.SUSPENDED)
return "suspended";
if (code == LocationStatus.INACTIVE)
return "inactive";
return "?";
}
}
public String toSystem(LocationStatus code) {
return code.getSystem();
@ -294,12 +296,14 @@ public class Location extends DomainResource {
}
public String toCode(LocationMode code) {
if (code == LocationMode.INSTANCE)
if (code == LocationMode.NULL)
return null;
if (code == LocationMode.INSTANCE)
return "instance";
if (code == LocationMode.KIND)
return "kind";
return "?";
}
}
public String toSystem(LocationMode code) {
return code.getSystem();

View File

@ -188,7 +188,9 @@ public class Measure extends DomainResource {
}
public String toCode(MeasureScoring code) {
if (code == MeasureScoring.PROPORTION)
if (code == MeasureScoring.NULL)
return null;
if (code == MeasureScoring.PROPORTION)
return "proportion";
if (code == MeasureScoring.RATIO)
return "ratio";
@ -197,7 +199,7 @@ public class Measure extends DomainResource {
if (code == MeasureScoring.COHORT)
return "cohort";
return "?";
}
}
public String toSystem(MeasureScoring code) {
return code.getSystem();
@ -307,12 +309,14 @@ public class Measure extends DomainResource {
}
public String toCode(MeasureType code) {
if (code == MeasureType.PROCESS)
if (code == MeasureType.NULL)
return null;
if (code == MeasureType.PROCESS)
return "process";
if (code == MeasureType.OUTCOME)
return "outcome";
return "?";
}
}
public String toSystem(MeasureType code) {
return code.getSystem();
@ -548,7 +552,9 @@ public class Measure extends DomainResource {
}
public String toCode(MeasurePopulationType code) {
if (code == MeasurePopulationType.INITIALPOPULATION)
if (code == MeasurePopulationType.NULL)
return null;
if (code == MeasurePopulationType.INITIALPOPULATION)
return "initial-population";
if (code == MeasurePopulationType.NUMERATOR)
return "numerator";
@ -567,7 +573,7 @@ public class Measure extends DomainResource {
if (code == MeasurePopulationType.MEASURESCORE)
return "measure-score";
return "?";
}
}
public String toSystem(MeasurePopulationType code) {
return code.getSystem();
@ -679,12 +685,14 @@ public class Measure extends DomainResource {
}
public String toCode(MeasureDataUsage code) {
if (code == MeasureDataUsage.SUPPLEMENTALDATA)
if (code == MeasureDataUsage.NULL)
return null;
if (code == MeasureDataUsage.SUPPLEMENTALDATA)
return "supplemental-data";
if (code == MeasureDataUsage.RISKADJUSTMENTFACTOR)
return "risk-adjustment-factor";
return "?";
}
}
public String toSystem(MeasureDataUsage code) {
return code.getSystem();

View File

@ -175,14 +175,16 @@ public class MeasureReport extends DomainResource {
}
public String toCode(MeasureReportType code) {
if (code == MeasureReportType.INDIVIDUAL)
if (code == MeasureReportType.NULL)
return null;
if (code == MeasureReportType.INDIVIDUAL)
return "individual";
if (code == MeasureReportType.PATIENTLIST)
return "patient-list";
if (code == MeasureReportType.SUMMARY)
return "summary";
return "?";
}
}
public String toSystem(MeasureReportType code) {
return code.getSystem();
@ -310,14 +312,16 @@ public class MeasureReport extends DomainResource {
}
public String toCode(MeasureReportStatus code) {
if (code == MeasureReportStatus.COMPLETE)
if (code == MeasureReportStatus.NULL)
return null;
if (code == MeasureReportStatus.COMPLETE)
return "complete";
if (code == MeasureReportStatus.PENDING)
return "pending";
if (code == MeasureReportStatus.ERROR)
return "error";
return "?";
}
}
public String toSystem(MeasureReportStatus code) {
return code.getSystem();

View File

@ -170,14 +170,16 @@ public class Media extends DomainResource {
}
public String toCode(DigitalMediaType code) {
if (code == DigitalMediaType.PHOTO)
if (code == DigitalMediaType.NULL)
return null;
if (code == DigitalMediaType.PHOTO)
return "photo";
if (code == DigitalMediaType.VIDEO)
return "video";
if (code == DigitalMediaType.AUDIO)
return "audio";
return "?";
}
}
public String toSystem(DigitalMediaType code) {
return code.getSystem();

View File

@ -212,7 +212,9 @@ public class MedicationAdministration extends DomainResource {
}
public String toCode(MedicationAdministrationStatus code) {
if (code == MedicationAdministrationStatus.INPROGRESS)
if (code == MedicationAdministrationStatus.NULL)
return null;
if (code == MedicationAdministrationStatus.INPROGRESS)
return "in-progress";
if (code == MedicationAdministrationStatus.ONHOLD)
return "on-hold";
@ -223,7 +225,7 @@ public class MedicationAdministration extends DomainResource {
if (code == MedicationAdministrationStatus.STOPPED)
return "stopped";
return "?";
}
}
public String toSystem(MedicationAdministrationStatus code) {
return code.getSystem();

View File

@ -213,7 +213,9 @@ public class MedicationDispense extends DomainResource {
}
public String toCode(MedicationDispenseStatus code) {
if (code == MedicationDispenseStatus.INPROGRESS)
if (code == MedicationDispenseStatus.NULL)
return null;
if (code == MedicationDispenseStatus.INPROGRESS)
return "in-progress";
if (code == MedicationDispenseStatus.ONHOLD)
return "on-hold";
@ -224,7 +226,7 @@ public class MedicationDispense extends DomainResource {
if (code == MedicationDispenseStatus.STOPPED)
return "stopped";
return "?";
}
}
public String toSystem(MedicationDispenseStatus code) {
return code.getSystem();

View File

@ -233,7 +233,9 @@ public class MedicationOrder extends DomainResource {
}
public String toCode(MedicationOrderStatus code) {
if (code == MedicationOrderStatus.ACTIVE)
if (code == MedicationOrderStatus.NULL)
return null;
if (code == MedicationOrderStatus.ACTIVE)
return "active";
if (code == MedicationOrderStatus.ONHOLD)
return "on-hold";
@ -246,7 +248,7 @@ public class MedicationOrder extends DomainResource {
if (code == MedicationOrderStatus.DRAFT)
return "draft";
return "?";
}
}
public String toSystem(MedicationOrderStatus code) {
return code.getSystem();

View File

@ -210,7 +210,9 @@ public class MedicationStatement extends DomainResource {
}
public String toCode(MedicationStatementStatus code) {
if (code == MedicationStatementStatus.ACTIVE)
if (code == MedicationStatementStatus.NULL)
return null;
if (code == MedicationStatementStatus.ACTIVE)
return "active";
if (code == MedicationStatementStatus.COMPLETED)
return "completed";
@ -219,7 +221,7 @@ public class MedicationStatement extends DomainResource {
if (code == MedicationStatementStatus.INTENDED)
return "intended";
return "?";
}
}
public String toSystem(MedicationStatementStatus code) {
return code.getSystem();

View File

@ -178,14 +178,16 @@ public class MessageHeader extends DomainResource {
}
public String toCode(ResponseType code) {
if (code == ResponseType.OK)
if (code == ResponseType.NULL)
return null;
if (code == ResponseType.OK)
return "ok";
if (code == ResponseType.TRANSIENTERROR)
return "transient-error";
if (code == ResponseType.FATALERROR)
return "fatal-error";
return "?";
}
}
public String toSystem(ResponseType code) {
return code.getSystem();

View File

@ -210,7 +210,9 @@ public class ModuleMetadata extends Type implements ICompositeType {
}
public String toCode(ModuleMetadataType code) {
if (code == ModuleMetadataType.MODULE)
if (code == ModuleMetadataType.NULL)
return null;
if (code == ModuleMetadataType.MODULE)
return "module";
if (code == ModuleMetadataType.LIBRARY)
return "library";
@ -221,7 +223,7 @@ public class ModuleMetadata extends Type implements ICompositeType {
if (code == ModuleMetadataType.ORDERSET)
return "order-set";
return "?";
}
}
public String toSystem(ModuleMetadataType code) {
return code.getSystem();
@ -350,14 +352,16 @@ public class ModuleMetadata extends Type implements ICompositeType {
}
public String toCode(ModuleMetadataStatus code) {
if (code == ModuleMetadataStatus.DRAFT)
if (code == ModuleMetadataStatus.NULL)
return null;
if (code == ModuleMetadataStatus.DRAFT)
return "draft";
if (code == ModuleMetadataStatus.ACTIVE)
return "active";
if (code == ModuleMetadataStatus.INACTIVE)
return "inactive";
return "?";
}
}
public String toSystem(ModuleMetadataStatus code) {
return code.getSystem();
@ -503,7 +507,9 @@ public class ModuleMetadata extends Type implements ICompositeType {
}
public String toCode(ModuleMetadataContributorType code) {
if (code == ModuleMetadataContributorType.AUTHOR)
if (code == ModuleMetadataContributorType.NULL)
return null;
if (code == ModuleMetadataContributorType.AUTHOR)
return "author";
if (code == ModuleMetadataContributorType.EDITOR)
return "editor";
@ -512,7 +518,7 @@ public class ModuleMetadata extends Type implements ICompositeType {
if (code == ModuleMetadataContributorType.ENDORSER)
return "endorser";
return "?";
}
}
public String toSystem(ModuleMetadataContributorType code) {
return code.getSystem();
@ -706,7 +712,9 @@ public class ModuleMetadata extends Type implements ICompositeType {
}
public String toCode(ModuleMetadataResourceType code) {
if (code == ModuleMetadataResourceType.DOCUMENTATION)
if (code == ModuleMetadataResourceType.NULL)
return null;
if (code == ModuleMetadataResourceType.DOCUMENTATION)
return "documentation";
if (code == ModuleMetadataResourceType.JUSTIFICATION)
return "justification";
@ -719,7 +727,7 @@ public class ModuleMetadata extends Type implements ICompositeType {
if (code == ModuleMetadataResourceType.DERIVEDFROM)
return "derived-from";
return "?";
}
}
public String toSystem(ModuleMetadataResourceType code) {
return code.getSystem();

View File

@ -178,14 +178,16 @@ public class NamingSystem extends DomainResource {
}
public String toCode(NamingSystemType code) {
if (code == NamingSystemType.CODESYSTEM)
if (code == NamingSystemType.NULL)
return null;
if (code == NamingSystemType.CODESYSTEM)
return "codesystem";
if (code == NamingSystemType.IDENTIFIER)
return "identifier";
if (code == NamingSystemType.ROOT)
return "root";
return "?";
}
}
public String toSystem(NamingSystemType code) {
return code.getSystem();
@ -334,7 +336,9 @@ public class NamingSystem extends DomainResource {
}
public String toCode(NamingSystemIdentifierType code) {
if (code == NamingSystemIdentifierType.OID)
if (code == NamingSystemIdentifierType.NULL)
return null;
if (code == NamingSystemIdentifierType.OID)
return "oid";
if (code == NamingSystemIdentifierType.UUID)
return "uuid";
@ -343,7 +347,7 @@ public class NamingSystem extends DomainResource {
if (code == NamingSystemIdentifierType.OTHER)
return "other";
return "?";
}
}
public String toSystem(NamingSystemIdentifierType code) {
return code.getSystem();

View File

@ -189,7 +189,9 @@ public class Narrative extends BaseNarrative implements INarrative {
}
public String toCode(NarrativeStatus code) {
if (code == NarrativeStatus.GENERATED)
if (code == NarrativeStatus.NULL)
return null;
if (code == NarrativeStatus.GENERATED)
return "generated";
if (code == NarrativeStatus.EXTENSIONS)
return "extensions";
@ -198,7 +200,7 @@ public class Narrative extends BaseNarrative implements INarrative {
if (code == NarrativeStatus.EMPTY)
return "empty";
return "?";
}
}
public String toSystem(NarrativeStatus code) {
return code.getSystem();

View File

@ -283,7 +283,9 @@ public class NutritionOrder extends DomainResource {
}
public String toCode(NutritionOrderStatus code) {
if (code == NutritionOrderStatus.PROPOSED)
if (code == NutritionOrderStatus.NULL)
return null;
if (code == NutritionOrderStatus.PROPOSED)
return "proposed";
if (code == NutritionOrderStatus.DRAFT)
return "draft";
@ -302,7 +304,7 @@ public class NutritionOrder extends DomainResource {
if (code == NutritionOrderStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(NutritionOrderStatus code) {
return code.getSystem();

View File

@ -251,7 +251,9 @@ public class Observation extends DomainResource {
}
public String toCode(ObservationStatus code) {
if (code == ObservationStatus.REGISTERED)
if (code == ObservationStatus.NULL)
return null;
if (code == ObservationStatus.REGISTERED)
return "registered";
if (code == ObservationStatus.PRELIMINARY)
return "preliminary";
@ -266,7 +268,7 @@ public class Observation extends DomainResource {
if (code == ObservationStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(ObservationStatus code) {
return code.getSystem();
@ -458,7 +460,9 @@ public class Observation extends DomainResource {
}
public String toCode(ObservationRelationshipType code) {
if (code == ObservationRelationshipType.HASMEMBER)
if (code == ObservationRelationshipType.NULL)
return null;
if (code == ObservationRelationshipType.HASMEMBER)
return "has-member";
if (code == ObservationRelationshipType.DERIVEDFROM)
return "derived-from";
@ -471,7 +475,7 @@ public class Observation extends DomainResource {
if (code == ObservationRelationshipType.INTERFEREDBY)
return "interfered-by";
return "?";
}
}
public String toSystem(ObservationRelationshipType code) {
return code.getSystem();

View File

@ -160,12 +160,14 @@ public class OperationDefinition extends DomainResource {
}
public String toCode(OperationKind code) {
if (code == OperationKind.OPERATION)
if (code == OperationKind.NULL)
return null;
if (code == OperationKind.OPERATION)
return "operation";
if (code == OperationKind.QUERY)
return "query";
return "?";
}
}
public String toSystem(OperationKind code) {
return code.getSystem();
@ -275,12 +277,14 @@ public class OperationDefinition extends DomainResource {
}
public String toCode(OperationParameterUse code) {
if (code == OperationParameterUse.IN)
if (code == OperationParameterUse.NULL)
return null;
if (code == OperationParameterUse.IN)
return "in";
if (code == OperationParameterUse.OUT)
return "out";
return "?";
}
}
public String toSystem(OperationParameterUse code) {
return code.getSystem();

View File

@ -191,7 +191,9 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
}
public String toCode(IssueSeverity code) {
if (code == IssueSeverity.FATAL)
if (code == IssueSeverity.NULL)
return null;
if (code == IssueSeverity.FATAL)
return "fatal";
if (code == IssueSeverity.ERROR)
return "error";
@ -200,7 +202,7 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
if (code == IssueSeverity.INFORMATION)
return "information";
return "?";
}
}
public String toSystem(IssueSeverity code) {
return code.getSystem();
@ -816,7 +818,9 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
}
public String toCode(IssueType code) {
if (code == IssueType.INVALID)
if (code == IssueType.NULL)
return null;
if (code == IssueType.INVALID)
return "invalid";
if (code == IssueType.STRUCTURE)
return "structure";
@ -875,7 +879,7 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
if (code == IssueType.INFORMATIONAL)
return "informational";
return "?";
}
}
public String toSystem(IssueType code) {
return code.getSystem();

View File

@ -280,7 +280,9 @@ public class OrderResponse extends DomainResource {
}
public String toCode(OrderStatus code) {
if (code == OrderStatus.PENDING)
if (code == OrderStatus.NULL)
return null;
if (code == OrderStatus.PENDING)
return "pending";
if (code == OrderStatus.REVIEW)
return "review";
@ -299,7 +301,7 @@ public class OrderResponse extends DomainResource {
if (code == OrderStatus.COMPLETED)
return "completed";
return "?";
}
}
public String toSystem(OrderStatus code) {
return code.getSystem();

View File

@ -182,14 +182,16 @@ public class Patient extends DomainResource {
}
public String toCode(LinkType code) {
if (code == LinkType.REPLACE)
if (code == LinkType.NULL)
return null;
if (code == LinkType.REPLACE)
return "replace";
if (code == LinkType.REFER)
return "refer";
if (code == LinkType.SEEALSO)
return "seealso";
return "?";
}
}
public String toSystem(LinkType code) {
return code.getSystem();

View File

@ -191,7 +191,9 @@ public class Person extends DomainResource {
}
public String toCode(IdentityAssuranceLevel code) {
if (code == IdentityAssuranceLevel.LEVEL1)
if (code == IdentityAssuranceLevel.NULL)
return null;
if (code == IdentityAssuranceLevel.LEVEL1)
return "level1";
if (code == IdentityAssuranceLevel.LEVEL2)
return "level2";
@ -200,7 +202,7 @@ public class Person extends DomainResource {
if (code == IdentityAssuranceLevel.LEVEL4)
return "level4";
return "?";
}
}
public String toSystem(IdentityAssuranceLevel code) {
return code.getSystem();

View File

@ -189,7 +189,9 @@ public class Procedure extends DomainResource {
}
public String toCode(ProcedureStatus code) {
if (code == ProcedureStatus.INPROGRESS)
if (code == ProcedureStatus.NULL)
return null;
if (code == ProcedureStatus.INPROGRESS)
return "in-progress";
if (code == ProcedureStatus.ABORTED)
return "aborted";
@ -198,7 +200,7 @@ public class Procedure extends DomainResource {
if (code == ProcedureStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(ProcedureStatus code) {
return code.getSystem();

View File

@ -298,7 +298,9 @@ public class ProcedureRequest extends DomainResource {
}
public String toCode(ProcedureRequestStatus code) {
if (code == ProcedureRequestStatus.PROPOSED)
if (code == ProcedureRequestStatus.NULL)
return null;
if (code == ProcedureRequestStatus.PROPOSED)
return "proposed";
if (code == ProcedureRequestStatus.DRAFT)
return "draft";
@ -319,7 +321,7 @@ public class ProcedureRequest extends DomainResource {
if (code == ProcedureRequestStatus.ABORTED)
return "aborted";
return "?";
}
}
public String toSystem(ProcedureRequestStatus code) {
return code.getSystem();
@ -465,7 +467,9 @@ public class ProcedureRequest extends DomainResource {
}
public String toCode(ProcedureRequestPriority code) {
if (code == ProcedureRequestPriority.ROUTINE)
if (code == ProcedureRequestPriority.NULL)
return null;
if (code == ProcedureRequestPriority.ROUTINE)
return "routine";
if (code == ProcedureRequestPriority.URGENT)
return "urgent";
@ -474,7 +478,7 @@ public class ProcedureRequest extends DomainResource {
if (code == ProcedureRequestPriority.ASAP)
return "asap";
return "?";
}
}
public String toSystem(ProcedureRequestPriority code) {
return code.getSystem();

View File

@ -190,7 +190,9 @@ public class ProcessRequest extends DomainResource {
}
public String toCode(ActionList code) {
if (code == ActionList.CANCEL)
if (code == ActionList.NULL)
return null;
if (code == ActionList.CANCEL)
return "cancel";
if (code == ActionList.POLL)
return "poll";
@ -199,7 +201,7 @@ public class ProcessRequest extends DomainResource {
if (code == ActionList.STATUS)
return "status";
return "?";
}
}
public String toSystem(ActionList code) {
return code.getSystem();

View File

@ -228,7 +228,9 @@ public class Protocol extends DomainResource {
}
public String toCode(ProtocolStatus code) {
if (code == ProtocolStatus.DRAFT)
if (code == ProtocolStatus.NULL)
return null;
if (code == ProtocolStatus.DRAFT)
return "draft";
if (code == ProtocolStatus.TESTING)
return "testing";
@ -241,7 +243,7 @@ public class Protocol extends DomainResource {
if (code == ProtocolStatus.SUPERSEDED)
return "superseded";
return "?";
}
}
public String toSystem(ProtocolStatus code) {
return code.getSystem();
@ -391,7 +393,9 @@ public class Protocol extends DomainResource {
}
public String toCode(ProtocolType code) {
if (code == ProtocolType.CONDITION)
if (code == ProtocolType.NULL)
return null;
if (code == ProtocolType.CONDITION)
return "condition";
if (code == ProtocolType.DEVICE)
return "device";
@ -400,7 +404,7 @@ public class Protocol extends DomainResource {
if (code == ProtocolType.STUDY)
return "study";
return "?";
}
}
public String toSystem(ProtocolType code) {
return code.getSystem();
@ -603,7 +607,9 @@ public class Protocol extends DomainResource {
}
public String toCode(ActivityDefinitionCategory code) {
if (code == ActivityDefinitionCategory.DIET)
if (code == ActivityDefinitionCategory.NULL)
return null;
if (code == ActivityDefinitionCategory.DIET)
return "diet";
if (code == ActivityDefinitionCategory.DRUG)
return "drug";
@ -618,7 +624,7 @@ public class Protocol extends DomainResource {
if (code == ActivityDefinitionCategory.OTHER)
return "other";
return "?";
}
}
public String toSystem(ActivityDefinitionCategory code) {
return code.getSystem();

View File

@ -223,7 +223,9 @@ public class Provenance extends DomainResource {
}
public String toCode(ProvenanceEntityRole code) {
if (code == ProvenanceEntityRole.DERIVATION)
if (code == ProvenanceEntityRole.NULL)
return null;
if (code == ProvenanceEntityRole.DERIVATION)
return "derivation";
if (code == ProvenanceEntityRole.REVISION)
return "revision";
@ -234,7 +236,7 @@ public class Provenance extends DomainResource {
if (code == ProvenanceEntityRole.REMOVAL)
return "removal";
return "?";
}
}
public String toSystem(ProvenanceEntityRole code) {
return code.getSystem();

View File

@ -189,7 +189,9 @@ public class Quantity extends Type implements ICompositeType {
}
public String toCode(QuantityComparator code) {
if (code == QuantityComparator.LESS_THAN)
if (code == QuantityComparator.NULL)
return null;
if (code == QuantityComparator.LESS_THAN)
return "<";
if (code == QuantityComparator.LESS_OR_EQUAL)
return "<=";
@ -198,7 +200,7 @@ public class Quantity extends Type implements ICompositeType {
if (code == QuantityComparator.GREATER_THAN)
return ">";
return "?";
}
}
public String toSystem(QuantityComparator code) {
return code.getSystem();

View File

@ -173,14 +173,16 @@ public class Questionnaire extends DomainResource {
}
public String toCode(QuestionnaireStatus code) {
if (code == QuestionnaireStatus.DRAFT)
if (code == QuestionnaireStatus.NULL)
return null;
if (code == QuestionnaireStatus.DRAFT)
return "draft";
if (code == QuestionnaireStatus.PUBLISHED)
return "published";
if (code == QuestionnaireStatus.RETIRED)
return "retired";
return "?";
}
}
public String toSystem(QuestionnaireStatus code) {
return code.getSystem();
@ -584,7 +586,9 @@ public class Questionnaire extends DomainResource {
}
public String toCode(QuestionnaireItemType code) {
if (code == QuestionnaireItemType.GROUP)
if (code == QuestionnaireItemType.NULL)
return null;
if (code == QuestionnaireItemType.GROUP)
return "group";
if (code == QuestionnaireItemType.DISPLAY)
return "display";
@ -621,7 +625,7 @@ public class Questionnaire extends DomainResource {
if (code == QuestionnaireItemType.QUANTITY)
return "quantity";
return "?";
}
}
public String toSystem(QuestionnaireItemType code) {
return code.getSystem();

View File

@ -176,14 +176,16 @@ public class QuestionnaireResponse extends DomainResource {
}
public String toCode(QuestionnaireResponseStatus code) {
if (code == QuestionnaireResponseStatus.INPROGRESS)
if (code == QuestionnaireResponseStatus.NULL)
return null;
if (code == QuestionnaireResponseStatus.INPROGRESS)
return "in-progress";
if (code == QuestionnaireResponseStatus.COMPLETED)
return "completed";
if (code == QuestionnaireResponseStatus.AMENDED)
return "amended";
return "?";
}
}
public String toSystem(QuestionnaireResponseStatus code) {
return code.getSystem();

View File

@ -210,7 +210,9 @@ public class ReferralRequest extends DomainResource {
}
public String toCode(ReferralStatus code) {
if (code == ReferralStatus.DRAFT)
if (code == ReferralStatus.NULL)
return null;
if (code == ReferralStatus.DRAFT)
return "draft";
if (code == ReferralStatus.ACTIVE)
return "active";
@ -221,7 +223,7 @@ public class ReferralRequest extends DomainResource {
if (code == ReferralStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(ReferralStatus code) {
return code.getSystem();
@ -352,14 +354,16 @@ public class ReferralRequest extends DomainResource {
}
public String toCode(ReferralCategory code) {
if (code == ReferralCategory.PROPOSAL)
if (code == ReferralCategory.NULL)
return null;
if (code == ReferralCategory.PROPOSAL)
return "proposal";
if (code == ReferralCategory.PLAN)
return "plan";
if (code == ReferralCategory.REQUEST)
return "request";
return "?";
}
}
public String toSystem(ReferralCategory code) {
return code.getSystem();

View File

@ -216,7 +216,9 @@ public class SearchParameter extends DomainResource {
}
public String toCode(XPathUsageType code) {
if (code == XPathUsageType.NORMAL)
if (code == XPathUsageType.NULL)
return null;
if (code == XPathUsageType.NORMAL)
return "normal";
if (code == XPathUsageType.PHONETIC)
return "phonetic";
@ -227,7 +229,7 @@ public class SearchParameter extends DomainResource {
if (code == XPathUsageType.OTHER)
return "other";
return "?";
}
}
public String toSystem(XPathUsageType code) {
return code.getSystem();

View File

@ -172,14 +172,16 @@ public class Sequence extends DomainResource {
}
public String toCode(SequenceType code) {
if (code == SequenceType.AA)
if (code == SequenceType.NULL)
return null;
if (code == SequenceType.AA)
return "AA";
if (code == SequenceType.DNA)
return "DNA";
if (code == SequenceType.RNA)
return "RNA";
return "?";
}
}
public String toSystem(SequenceType code) {
return code.getSystem();

View File

@ -190,7 +190,9 @@ public class Slot extends DomainResource {
}
public String toCode(SlotStatus code) {
if (code == SlotStatus.BUSY)
if (code == SlotStatus.NULL)
return null;
if (code == SlotStatus.BUSY)
return "busy";
if (code == SlotStatus.FREE)
return "free";
@ -199,7 +201,7 @@ public class Slot extends DomainResource {
if (code == SlotStatus.BUSYTENTATIVE)
return "busy-tentative";
return "?";
}
}
public String toSystem(SlotStatus code) {
return code.getSystem();

View File

@ -191,7 +191,9 @@ public class Specimen extends DomainResource {
}
public String toCode(SpecimenStatus code) {
if (code == SpecimenStatus.AVAILABLE)
if (code == SpecimenStatus.NULL)
return null;
if (code == SpecimenStatus.AVAILABLE)
return "available";
if (code == SpecimenStatus.UNAVAILABLE)
return "unavailable";
@ -200,7 +202,7 @@ public class Specimen extends DomainResource {
if (code == SpecimenStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(SpecimenStatus code) {
return code.getSystem();

View File

@ -178,14 +178,16 @@ public class StructureDefinition extends DomainResource {
}
public String toCode(StructureDefinitionKind code) {
if (code == StructureDefinitionKind.DATATYPE)
if (code == StructureDefinitionKind.NULL)
return null;
if (code == StructureDefinitionKind.DATATYPE)
return "datatype";
if (code == StructureDefinitionKind.RESOURCE)
return "resource";
if (code == StructureDefinitionKind.LOGICAL)
return "logical";
return "?";
}
}
public String toSystem(StructureDefinitionKind code) {
return code.getSystem();
@ -316,14 +318,16 @@ public class StructureDefinition extends DomainResource {
}
public String toCode(ExtensionContext code) {
if (code == ExtensionContext.RESOURCE)
if (code == ExtensionContext.NULL)
return null;
if (code == ExtensionContext.RESOURCE)
return "resource";
if (code == ExtensionContext.DATATYPE)
return "datatype";
if (code == ExtensionContext.EXTENSION)
return "extension";
return "?";
}
}
public String toSystem(ExtensionContext code) {
return code.getSystem();
@ -434,12 +438,14 @@ public class StructureDefinition extends DomainResource {
}
public String toCode(TypeDerivationRule code) {
if (code == TypeDerivationRule.SPECIALIZATION)
if (code == TypeDerivationRule.NULL)
return null;
if (code == TypeDerivationRule.SPECIALIZATION)
return "specialization";
if (code == TypeDerivationRule.CONSTRAINT)
return "constraint";
return "?";
}
}
public String toSystem(TypeDerivationRule code) {
return code.getSystem();

View File

@ -196,7 +196,9 @@ public class StructureMap extends DomainResource {
}
public String toCode(StructureMapModelMode code) {
if (code == StructureMapModelMode.SOURCE)
if (code == StructureMapModelMode.NULL)
return null;
if (code == StructureMapModelMode.SOURCE)
return "source";
if (code == StructureMapModelMode.QUERIED)
return "queried";
@ -205,7 +207,7 @@ public class StructureMap extends DomainResource {
if (code == StructureMapModelMode.PRODUCED)
return "produced";
return "?";
}
}
public String toSystem(StructureMapModelMode code) {
return code.getSystem();
@ -315,12 +317,14 @@ public class StructureMap extends DomainResource {
}
public String toCode(StructureMapInputMode code) {
if (code == StructureMapInputMode.SOURCE)
if (code == StructureMapInputMode.NULL)
return null;
if (code == StructureMapInputMode.SOURCE)
return "source";
if (code == StructureMapInputMode.TARGET)
return "target";
return "?";
}
}
public String toSystem(StructureMapInputMode code) {
return code.getSystem();
@ -430,12 +434,14 @@ public class StructureMap extends DomainResource {
}
public String toCode(StructureMapContextType code) {
if (code == StructureMapContextType.TYPE)
if (code == StructureMapContextType.NULL)
return null;
if (code == StructureMapContextType.TYPE)
return "type";
if (code == StructureMapContextType.VARIABLE)
return "variable";
return "?";
}
}
public String toSystem(StructureMapContextType code) {
return code.getSystem();
@ -568,14 +574,16 @@ public class StructureMap extends DomainResource {
}
public String toCode(StructureMapListMode code) {
if (code == StructureMapListMode.FIRST)
if (code == StructureMapListMode.NULL)
return null;
if (code == StructureMapListMode.FIRST)
return "first";
if (code == StructureMapListMode.SHARE)
return "share";
if (code == StructureMapListMode.LAST)
return "last";
return "?";
}
}
public String toSystem(StructureMapListMode code) {
return code.getSystem();
@ -870,7 +878,9 @@ public class StructureMap extends DomainResource {
}
public String toCode(StructureMapTransform code) {
if (code == StructureMapTransform.CREATE)
if (code == StructureMapTransform.NULL)
return null;
if (code == StructureMapTransform.CREATE)
return "create";
if (code == StructureMapTransform.COPY)
return "copy";
@ -895,7 +905,7 @@ public class StructureMap extends DomainResource {
if (code == StructureMapTransform.EVALUATE)
return "evaluate";
return "?";
}
}
public String toSystem(StructureMapTransform code) {
return code.getSystem();

View File

@ -194,7 +194,9 @@ public class Subscription extends DomainResource {
}
public String toCode(SubscriptionStatus code) {
if (code == SubscriptionStatus.REQUESTED)
if (code == SubscriptionStatus.NULL)
return null;
if (code == SubscriptionStatus.REQUESTED)
return "requested";
if (code == SubscriptionStatus.ACTIVE)
return "active";
@ -203,7 +205,7 @@ public class Subscription extends DomainResource {
if (code == SubscriptionStatus.OFF)
return "off";
return "?";
}
}
public String toSystem(SubscriptionStatus code) {
return code.getSystem();
@ -374,7 +376,9 @@ public class Subscription extends DomainResource {
}
public String toCode(SubscriptionChannelType code) {
if (code == SubscriptionChannelType.RESTHOOK)
if (code == SubscriptionChannelType.NULL)
return null;
if (code == SubscriptionChannelType.RESTHOOK)
return "rest-hook";
if (code == SubscriptionChannelType.WEBSOCKET)
return "websocket";
@ -385,7 +389,7 @@ public class Subscription extends DomainResource {
if (code == SubscriptionChannelType.MESSAGE)
return "message";
return "?";
}
}
public String toSystem(SubscriptionChannelType code) {
return code.getSystem();

View File

@ -168,14 +168,16 @@ public class SupplyDelivery extends DomainResource {
}
public String toCode(SupplyDeliveryStatus code) {
if (code == SupplyDeliveryStatus.INPROGRESS)
if (code == SupplyDeliveryStatus.NULL)
return null;
if (code == SupplyDeliveryStatus.INPROGRESS)
return "in-progress";
if (code == SupplyDeliveryStatus.COMPLETED)
return "completed";
if (code == SupplyDeliveryStatus.ABANDONED)
return "abandoned";
return "?";
}
}
public String toSystem(SupplyDeliveryStatus code) {
return code.getSystem();

View File

@ -190,7 +190,9 @@ public class SupplyRequest extends DomainResource {
}
public String toCode(SupplyRequestStatus code) {
if (code == SupplyRequestStatus.REQUESTED)
if (code == SupplyRequestStatus.NULL)
return null;
if (code == SupplyRequestStatus.REQUESTED)
return "requested";
if (code == SupplyRequestStatus.COMPLETED)
return "completed";
@ -199,7 +201,7 @@ public class SupplyRequest extends DomainResource {
if (code == SupplyRequestStatus.CANCELLED)
return "cancelled";
return "?";
}
}
public String toSystem(SupplyRequestStatus code) {
return code.getSystem();

View File

@ -171,14 +171,16 @@ public class Task extends DomainResource {
}
public String toCode(TaskPriority code) {
if (code == TaskPriority.LOW)
if (code == TaskPriority.NULL)
return null;
if (code == TaskPriority.LOW)
return "low";
if (code == TaskPriority.NORMAL)
return "normal";
if (code == TaskPriority.HIGH)
return "high";
return "?";
}
}
public String toSystem(TaskPriority code) {
return code.getSystem();
@ -437,7 +439,9 @@ public class Task extends DomainResource {
}
public String toCode(TaskStatus code) {
if (code == TaskStatus.DRAFT)
if (code == TaskStatus.NULL)
return null;
if (code == TaskStatus.DRAFT)
return "draft";
if (code == TaskStatus.REQUESTED)
return "requested";
@ -458,7 +462,7 @@ public class Task extends DomainResource {
if (code == TaskStatus.COMPLETED)
return "completed";
return "?";
}
}
public String toSystem(TaskStatus code) {
return code.getSystem();

View File

@ -156,12 +156,14 @@ public class TestScript extends DomainResource {
}
public String toCode(ContentType code) {
if (code == ContentType.XML)
if (code == ContentType.NULL)
return null;
if (code == ContentType.XML)
return "xml";
if (code == ContentType.JSON)
return "json";
return "?";
}
}
public String toSystem(ContentType code) {
return code.getSystem();
@ -271,12 +273,14 @@ public class TestScript extends DomainResource {
}
public String toCode(AssertionDirectionType code) {
if (code == AssertionDirectionType.RESPONSE)
if (code == AssertionDirectionType.NULL)
return null;
if (code == AssertionDirectionType.RESPONSE)
return "response";
if (code == AssertionDirectionType.REQUEST)
return "request";
return "?";
}
}
public String toSystem(AssertionDirectionType code) {
return code.getSystem();
@ -530,7 +534,9 @@ public class TestScript extends DomainResource {
}
public String toCode(AssertionOperatorType code) {
if (code == AssertionOperatorType.EQUALS)
if (code == AssertionOperatorType.NULL)
return null;
if (code == AssertionOperatorType.EQUALS)
return "equals";
if (code == AssertionOperatorType.NOTEQUALS)
return "notEquals";
@ -551,7 +557,7 @@ public class TestScript extends DomainResource {
if (code == AssertionOperatorType.NOTCONTAINS)
return "notContains";
return "?";
}
}
public String toSystem(AssertionOperatorType code) {
return code.getSystem();
@ -841,7 +847,9 @@ public class TestScript extends DomainResource {
}
public String toCode(AssertionResponseTypes code) {
if (code == AssertionResponseTypes.OKAY)
if (code == AssertionResponseTypes.NULL)
return null;
if (code == AssertionResponseTypes.OKAY)
return "okay";
if (code == AssertionResponseTypes.CREATED)
return "created";
@ -866,7 +874,7 @@ public class TestScript extends DomainResource {
if (code == AssertionResponseTypes.UNPROCESSABLE)
return "unprocessable";
return "?";
}
}
public String toSystem(AssertionResponseTypes code) {
return code.getSystem();

View File

@ -247,7 +247,9 @@ public class Timing extends Type implements ICompositeType {
}
public String toCode(UnitsOfTime code) {
if (code == UnitsOfTime.S)
if (code == UnitsOfTime.NULL)
return null;
if (code == UnitsOfTime.S)
return "s";
if (code == UnitsOfTime.MIN)
return "min";
@ -262,7 +264,7 @@ public class Timing extends Type implements ICompositeType {
if (code == UnitsOfTime.A)
return "a";
return "?";
}
}
public String toSystem(UnitsOfTime code) {
return code.getSystem();
@ -588,7 +590,9 @@ public class Timing extends Type implements ICompositeType {
}
public String toCode(EventTiming code) {
if (code == EventTiming.HS)
if (code == EventTiming.NULL)
return null;
if (code == EventTiming.HS)
return "HS";
if (code == EventTiming.WAKE)
return "WAKE";
@ -617,7 +621,7 @@ public class Timing extends Type implements ICompositeType {
if (code == EventTiming.PCV)
return "PCV";
return "?";
}
}
public String toSystem(EventTiming code) {
return code.getSystem();

View File

@ -240,7 +240,9 @@ public class TriggerDefinition extends Type implements ICompositeType {
}
public String toCode(TriggerType code) {
if (code == TriggerType.NAMEDEVENT)
if (code == TriggerType.NULL)
return null;
if (code == TriggerType.NAMEDEVENT)
return "named-event";
if (code == TriggerType.PERIODIC)
return "periodic";
@ -255,7 +257,7 @@ public class TriggerDefinition extends Type implements ICompositeType {
if (code == TriggerType.DATAACCESSENDED)
return "data-access-ended";
return "?";
}
}
public String toSystem(TriggerType code) {
return code.getSystem();

View File

@ -232,7 +232,9 @@ public class ValueSet extends DomainResource {
}
public String toCode(FilterOperator code) {
if (code == FilterOperator.EQUAL)
if (code == FilterOperator.NULL)
return null;
if (code == FilterOperator.EQUAL)
return "=";
if (code == FilterOperator.ISA)
return "is-a";
@ -245,7 +247,7 @@ public class ValueSet extends DomainResource {
if (code == FilterOperator.NOTIN)
return "not-in";
return "?";
}
}
public String toSystem(FilterOperator code) {
return code.getSystem();

View File

@ -156,12 +156,14 @@ public class VisionPrescription extends DomainResource {
}
public String toCode(VisionEyes code) {
if (code == VisionEyes.RIGHT)
if (code == VisionEyes.NULL)
return null;
if (code == VisionEyes.RIGHT)
return "right";
if (code == VisionEyes.LEFT)
return "left";
return "?";
}
}
public String toSystem(VisionEyes code) {
return code.getSystem();
@ -307,7 +309,9 @@ public class VisionPrescription extends DomainResource {
}
public String toCode(VisionBase code) {
if (code == VisionBase.UP)
if (code == VisionBase.NULL)
return null;
if (code == VisionBase.UP)
return "up";
if (code == VisionBase.DOWN)
return "down";
@ -316,7 +320,7 @@ public class VisionPrescription extends DomainResource {
if (code == VisionBase.OUT)
return "out";
return "?";
}
}
public String toSystem(VisionBase code) {
return code.getSystem();

View File

@ -46,12 +46,14 @@ public class AbstractTypesEnumFactory implements EnumFactory<AbstractTypes> {
}
public String toCode(AbstractTypes code) {
if (code == AbstractTypes.TYPE)
if (code == AbstractTypes.NULL)
return null;
if (code == AbstractTypes.TYPE)
return "Type";
if (code == AbstractTypes.ANY)
return "Any";
return "?";
}
}
public String toSystem(AbstractTypes code) {
return code.getSystem();

View File

@ -46,12 +46,14 @@ public class AccountStatusEnumFactory implements EnumFactory<AccountStatus> {
}
public String toCode(AccountStatus code) {
if (code == AccountStatus.ACTIVE)
if (code == AccountStatus.NULL)
return null;
if (code == AccountStatus.ACTIVE)
return "active";
if (code == AccountStatus.INACTIVE)
return "inactive";
return "?";
}
}
public String toSystem(AccountStatus code) {
return code.getSystem();

View File

@ -52,7 +52,9 @@ public class ActionBehaviorTypeEnumFactory implements EnumFactory<ActionBehavior
}
public String toCode(ActionBehaviorType code) {
if (code == ActionBehaviorType.GROUPING)
if (code == ActionBehaviorType.NULL)
return null;
if (code == ActionBehaviorType.GROUPING)
return "grouping";
if (code == ActionBehaviorType.SELECTION)
return "selection";
@ -63,7 +65,7 @@ public class ActionBehaviorTypeEnumFactory implements EnumFactory<ActionBehavior
if (code == ActionBehaviorType.CARDINALITY)
return "cardinality";
return "?";
}
}
public String toSystem(ActionBehaviorType code) {
return code.getSystem();

View File

@ -46,12 +46,14 @@ public class ActionCardinalityBehaviorEnumFactory implements EnumFactory<ActionC
}
public String toCode(ActionCardinalityBehavior code) {
if (code == ActionCardinalityBehavior.SINGLE)
if (code == ActionCardinalityBehavior.NULL)
return null;
if (code == ActionCardinalityBehavior.SINGLE)
return "single";
if (code == ActionCardinalityBehavior.MULTIPLE)
return "multiple";
return "?";
}
}
public String toSystem(ActionCardinalityBehavior code) {
return code.getSystem();

View File

@ -48,14 +48,16 @@ public class ActionGroupingBehaviorEnumFactory implements EnumFactory<ActionGrou
}
public String toCode(ActionGroupingBehavior code) {
if (code == ActionGroupingBehavior.VISUALGROUP)
if (code == ActionGroupingBehavior.NULL)
return null;
if (code == ActionGroupingBehavior.VISUALGROUP)
return "visual-group";
if (code == ActionGroupingBehavior.LOGICALGROUP)
return "logical-group";
if (code == ActionGroupingBehavior.SENTENCEGROUP)
return "sentence-group";
return "?";
}
}
public String toSystem(ActionGroupingBehavior code) {
return code.getSystem();

View File

@ -48,14 +48,16 @@ public class ActionParticipantTypeEnumFactory implements EnumFactory<ActionParti
}
public String toCode(ActionParticipantType code) {
if (code == ActionParticipantType.PATIENT)
if (code == ActionParticipantType.NULL)
return null;
if (code == ActionParticipantType.PATIENT)
return "patient";
if (code == ActionParticipantType.PRACTITIONER)
return "practitioner";
if (code == ActionParticipantType.RELATEDPERSON)
return "related-person";
return "?";
}
}
public String toSystem(ActionParticipantType code) {
return code.getSystem();

View File

@ -46,12 +46,14 @@ public class ActionPrecheckBehaviorEnumFactory implements EnumFactory<ActionPrec
}
public String toCode(ActionPrecheckBehavior code) {
if (code == ActionPrecheckBehavior.YES)
if (code == ActionPrecheckBehavior.NULL)
return null;
if (code == ActionPrecheckBehavior.YES)
return "yes";
if (code == ActionPrecheckBehavior.NO)
return "no";
return "?";
}
}
public String toSystem(ActionPrecheckBehavior code) {
return code.getSystem();

View File

@ -46,12 +46,14 @@ public class ActionRelationshipAnchorEnumFactory implements EnumFactory<ActionRe
}
public String toCode(ActionRelationshipAnchor code) {
if (code == ActionRelationshipAnchor.START)
if (code == ActionRelationshipAnchor.NULL)
return null;
if (code == ActionRelationshipAnchor.START)
return "start";
if (code == ActionRelationshipAnchor.END)
return "end";
return "?";
}
}
public String toSystem(ActionRelationshipAnchor code) {
return code.getSystem();

View File

@ -46,12 +46,14 @@ public class ActionRelationshipTypeEnumFactory implements EnumFactory<ActionRela
}
public String toCode(ActionRelationshipType code) {
if (code == ActionRelationshipType.BEFORE)
if (code == ActionRelationshipType.NULL)
return null;
if (code == ActionRelationshipType.BEFORE)
return "before";
if (code == ActionRelationshipType.AFTER)
return "after";
return "?";
}
}
public String toSystem(ActionRelationshipType code) {
return code.getSystem();

View File

@ -48,14 +48,16 @@ public class ActionRequiredBehaviorEnumFactory implements EnumFactory<ActionRequ
}
public String toCode(ActionRequiredBehavior code) {
if (code == ActionRequiredBehavior.MUST)
if (code == ActionRequiredBehavior.NULL)
return null;
if (code == ActionRequiredBehavior.MUST)
return "must";
if (code == ActionRequiredBehavior.COULD)
return "could";
if (code == ActionRequiredBehavior.MUSTUNLESSDOCUMENTED)
return "must-unless-documented";
return "?";
}
}
public String toSystem(ActionRequiredBehavior code) {
return code.getSystem();

View File

@ -54,7 +54,9 @@ public class ActionSelectionBehaviorEnumFactory implements EnumFactory<ActionSel
}
public String toCode(ActionSelectionBehavior code) {
if (code == ActionSelectionBehavior.ANY)
if (code == ActionSelectionBehavior.NULL)
return null;
if (code == ActionSelectionBehavior.ANY)
return "any";
if (code == ActionSelectionBehavior.ALL)
return "all";
@ -67,7 +69,7 @@ public class ActionSelectionBehaviorEnumFactory implements EnumFactory<ActionSel
if (code == ActionSelectionBehavior.ONEORMORE)
return "one-or-more";
return "?";
}
}
public String toSystem(ActionSelectionBehavior code) {
return code.getSystem();

View File

@ -50,7 +50,9 @@ public class ActionTypeEnumFactory implements EnumFactory<ActionType> {
}
public String toCode(ActionType code) {
if (code == ActionType.CREATE)
if (code == ActionType.NULL)
return null;
if (code == ActionType.CREATE)
return "create";
if (code == ActionType.UPDATE)
return "update";
@ -59,7 +61,7 @@ public class ActionTypeEnumFactory implements EnumFactory<ActionType> {
if (code == ActionType.FIREEVENT)
return "fire-event";
return "?";
}
}
public String toSystem(ActionType code) {
return code.getSystem();

View File

@ -50,7 +50,9 @@ public class ActionlistEnumFactory implements EnumFactory<Actionlist> {
}
public String toCode(Actionlist code) {
if (code == Actionlist.CANCEL)
if (code == Actionlist.NULL)
return null;
if (code == Actionlist.CANCEL)
return "cancel";
if (code == Actionlist.POLL)
return "poll";
@ -59,7 +61,7 @@ public class ActionlistEnumFactory implements EnumFactory<Actionlist> {
if (code == Actionlist.STATUS)
return "status";
return "?";
}
}
public String toSystem(Actionlist code) {
return code.getSystem();

Some files were not shown because too many files have changed in this diff Show More