Return null for all toCode enum params that are Enum.NULL (r4)

This commit is contained in:
dotasek 2024-07-19 11:56:20 -04:00
parent 704ba35073
commit 5f2398caba
759 changed files with 5210 additions and 3382 deletions

View File

@ -213,7 +213,9 @@ 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";
@ -224,7 +226,7 @@ public class Account extends DomainResource {
if (code == AccountStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(AccountStatus code) {
return code.getSystem();

View File

@ -407,7 +407,9 @@ public class ActivityDefinition extends MetadataResource {
}
public String toCode(ActivityDefinitionKind code) {
if (code == ActivityDefinitionKind.APPOINTMENT)
if (code == ActivityDefinitionKind.NULL)
return null;
if (code == ActivityDefinitionKind.APPOINTMENT)
return "Appointment";
if (code == ActivityDefinitionKind.APPOINTMENTRESPONSE)
return "AppointmentResponse";
@ -438,7 +440,7 @@ public class ActivityDefinition extends MetadataResource {
if (code == ActivityDefinitionKind.VISIONPRESCRIPTION)
return "VisionPrescription";
return "?";
}
}
public String toSystem(ActivityDefinitionKind code) {
return code.getSystem();
@ -692,7 +694,9 @@ public class ActivityDefinition extends MetadataResource {
}
public String toCode(RequestIntent code) {
if (code == RequestIntent.PROPOSAL)
if (code == RequestIntent.NULL)
return null;
if (code == RequestIntent.PROPOSAL)
return "proposal";
if (code == RequestIntent.PLAN)
return "plan";
@ -711,7 +715,7 @@ public class ActivityDefinition extends MetadataResource {
if (code == RequestIntent.OPTION)
return "option";
return "?";
}
}
public String toSystem(RequestIntent code) {
return code.getSystem();
@ -864,7 +868,9 @@ public class ActivityDefinition extends MetadataResource {
}
public String toCode(RequestPriority code) {
if (code == RequestPriority.ROUTINE)
if (code == RequestPriority.NULL)
return null;
if (code == RequestPriority.ROUTINE)
return "routine";
if (code == RequestPriority.URGENT)
return "urgent";
@ -873,7 +879,7 @@ public class ActivityDefinition extends MetadataResource {
if (code == RequestPriority.STAT)
return "stat";
return "?";
}
}
public String toSystem(RequestPriority code) {
return code.getSystem();
@ -1024,7 +1030,9 @@ public class ActivityDefinition extends MetadataResource {
}
public String toCode(ActivityParticipantType code) {
if (code == ActivityParticipantType.PATIENT)
if (code == ActivityParticipantType.NULL)
return null;
if (code == ActivityParticipantType.PATIENT)
return "patient";
if (code == ActivityParticipantType.PRACTITIONER)
return "practitioner";
@ -1033,7 +1041,7 @@ public class ActivityDefinition extends MetadataResource {
if (code == ActivityParticipantType.DEVICE)
return "device";
return "?";
}
}
public String toSystem(ActivityParticipantType code) {
return code.getSystem();

View File

@ -215,7 +215,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";
@ -226,7 +228,7 @@ public class Address extends Type implements ICompositeType {
if (code == AddressUse.BILLING)
return "billing";
return "?";
}
}
public String toSystem(AddressUse code) {
return code.getSystem();
@ -359,14 +361,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

@ -162,12 +162,14 @@ public class AdverseEvent extends DomainResource {
}
public String toCode(AdverseEventActuality code) {
if (code == AdverseEventActuality.ACTUAL)
if (code == AdverseEventActuality.NULL)
return null;
if (code == AdverseEventActuality.ACTUAL)
return "actual";
if (code == AdverseEventActuality.POTENTIAL)
return "potential";
return "?";
}
}
public String toSystem(AdverseEventActuality code) {
return code.getSystem();

View File

@ -165,12 +165,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();
@ -328,7 +330,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";
@ -337,7 +341,7 @@ public class AllergyIntolerance extends DomainResource {
if (code == AllergyIntoleranceCategory.BIOLOGIC)
return "biologic";
return "?";
}
}
public String toSystem(AllergyIntoleranceCategory code) {
return code.getSystem();
@ -472,14 +476,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();
@ -612,14 +618,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

@ -315,7 +315,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";
@ -336,7 +338,7 @@ public class Appointment extends DomainResource {
if (code == AppointmentStatus.WAITLIST)
return "waitlist";
return "?";
}
}
public String toSystem(AppointmentStatus code) {
return code.getSystem();
@ -471,14 +473,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();
@ -633,7 +637,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";
@ -642,7 +648,7 @@ public class Appointment extends DomainResource {
if (code == ParticipationStatus.NEEDSACTION)
return "needs-action";
return "?";
}
}
public String toSystem(ParticipationStatus code) {
return code.getSystem();

View File

@ -197,7 +197,9 @@ public class AppointmentResponse extends DomainResource {
}
public String toCode(ParticipantStatus code) {
if (code == ParticipantStatus.ACCEPTED)
if (code == ParticipantStatus.NULL)
return null;
if (code == ParticipantStatus.ACCEPTED)
return "accepted";
if (code == ParticipantStatus.DECLINED)
return "declined";
@ -206,7 +208,7 @@ public class AppointmentResponse extends DomainResource {
if (code == ParticipantStatus.NEEDSACTION)
return "needs-action";
return "?";
}
}
public String toSystem(ParticipantStatus code) {
return code.getSystem();

View File

@ -215,7 +215,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";
@ -226,7 +228,7 @@ public class AuditEvent extends DomainResource {
if (code == AuditEventAction.E)
return "E";
return "?";
}
}
public String toSystem(AuditEventAction code) {
return code.getSystem();
@ -380,7 +382,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";
@ -389,7 +393,7 @@ public class AuditEvent extends DomainResource {
if (code == AuditEventOutcome._12)
return "12";
return "?";
}
}
public String toSystem(AuditEventOutcome code) {
return code.getSystem();
@ -558,7 +562,9 @@ public class AuditEvent extends DomainResource {
}
public String toCode(AuditEventAgentNetworkType code) {
if (code == AuditEventAgentNetworkType._1)
if (code == AuditEventAgentNetworkType.NULL)
return null;
if (code == AuditEventAgentNetworkType._1)
return "1";
if (code == AuditEventAgentNetworkType._2)
return "2";
@ -569,7 +575,7 @@ public class AuditEvent extends DomainResource {
if (code == AuditEventAgentNetworkType._5)
return "5";
return "?";
}
}
public String toSystem(AuditEventAgentNetworkType code) {
return code.getSystem();

View File

@ -221,7 +221,9 @@ public class BiologicallyDerivedProduct extends DomainResource {
}
public String toCode(BiologicallyDerivedProductCategory code) {
if (code == BiologicallyDerivedProductCategory.ORGAN)
if (code == BiologicallyDerivedProductCategory.NULL)
return null;
if (code == BiologicallyDerivedProductCategory.ORGAN)
return "organ";
if (code == BiologicallyDerivedProductCategory.TISSUE)
return "tissue";
@ -232,7 +234,7 @@ public class BiologicallyDerivedProduct extends DomainResource {
if (code == BiologicallyDerivedProductCategory.BIOLOGICALAGENT)
return "biologicalAgent";
return "?";
}
}
public String toSystem(BiologicallyDerivedProductCategory code) {
return code.getSystem();
@ -350,12 +352,14 @@ public class BiologicallyDerivedProduct extends DomainResource {
}
public String toCode(BiologicallyDerivedProductStatus code) {
if (code == BiologicallyDerivedProductStatus.AVAILABLE)
if (code == BiologicallyDerivedProductStatus.NULL)
return null;
if (code == BiologicallyDerivedProductStatus.AVAILABLE)
return "available";
if (code == BiologicallyDerivedProductStatus.UNAVAILABLE)
return "unavailable";
return "?";
}
}
public String toSystem(BiologicallyDerivedProductStatus code) {
return code.getSystem();
@ -494,14 +498,16 @@ public class BiologicallyDerivedProduct extends DomainResource {
}
public String toCode(BiologicallyDerivedProductStorageScale code) {
if (code == BiologicallyDerivedProductStorageScale.FARENHEIT)
if (code == BiologicallyDerivedProductStorageScale.NULL)
return null;
if (code == BiologicallyDerivedProductStorageScale.FARENHEIT)
return "farenheit";
if (code == BiologicallyDerivedProductStorageScale.CELSIUS)
return "celsius";
if (code == BiologicallyDerivedProductStorageScale.KELVIN)
return "kelvin";
return "?";
}
}
public String toSystem(BiologicallyDerivedProductStorageScale code) {
return code.getSystem();

View File

@ -294,7 +294,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";
@ -313,7 +315,7 @@ public class Bundle extends Resource implements IBaseBundle {
if (code == BundleType.COLLECTION)
return "collection";
return "?";
}
}
public String toSystem(BundleType code) {
return code.getSystem();
@ -448,14 +450,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();
@ -642,7 +646,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.HEAD)
return "HEAD";
@ -655,7 +661,7 @@ public class Bundle extends Resource implements IBaseBundle {
if (code == HTTPVerb.PATCH)
return "PATCH";
return "?";
}
}
public String toSystem(HTTPVerb code) {
return code.getSystem();

View File

@ -195,14 +195,16 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
}
public String toCode(CapabilityStatementKind code) {
if (code == CapabilityStatementKind.INSTANCE)
if (code == CapabilityStatementKind.NULL)
return null;
if (code == CapabilityStatementKind.INSTANCE)
return "instance";
if (code == CapabilityStatementKind.CAPABILITY)
return "capability";
if (code == CapabilityStatementKind.REQUIREMENTS)
return "requirements";
return "?";
}
}
public String toSystem(CapabilityStatementKind code) {
return code.getSystem();
@ -317,12 +319,14 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
}
public String toCode(RestfulCapabilityMode code) {
if (code == RestfulCapabilityMode.CLIENT)
if (code == RestfulCapabilityMode.NULL)
return null;
if (code == RestfulCapabilityMode.CLIENT)
return "client";
if (code == RestfulCapabilityMode.SERVER)
return "server";
return "?";
}
}
public String toSystem(RestfulCapabilityMode code) {
return code.getSystem();
@ -563,7 +567,9 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
}
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";
@ -582,7 +588,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
if (code == TypeRestfulInteraction.SEARCHTYPE)
return "search-type";
return "?";
}
}
public String toSystem(TypeRestfulInteraction code) {
return code.getSystem();
@ -716,14 +722,16 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
}
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();
@ -876,7 +884,9 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
}
public String toCode(ConditionalReadStatus code) {
if (code == ConditionalReadStatus.NOTSUPPORTED)
if (code == ConditionalReadStatus.NULL)
return null;
if (code == ConditionalReadStatus.NOTSUPPORTED)
return "not-supported";
if (code == ConditionalReadStatus.MODIFIEDSINCE)
return "modified-since";
@ -885,7 +895,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
if (code == ConditionalReadStatus.FULLSUPPORT)
return "full-support";
return "?";
}
}
public String toSystem(ConditionalReadStatus code) {
return code.getSystem();
@ -1019,14 +1029,16 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
}
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();
@ -1201,7 +1213,9 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
}
public String toCode(ReferenceHandlingPolicy code) {
if (code == ReferenceHandlingPolicy.LITERAL)
if (code == ReferenceHandlingPolicy.NULL)
return null;
if (code == ReferenceHandlingPolicy.LITERAL)
return "literal";
if (code == ReferenceHandlingPolicy.LOGICAL)
return "logical";
@ -1212,7 +1226,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
if (code == ReferenceHandlingPolicy.LOCAL)
return "local";
return "?";
}
}
public String toSystem(ReferenceHandlingPolicy code) {
return code.getSystem();
@ -1363,7 +1377,9 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
}
public String toCode(SystemRestfulInteraction code) {
if (code == SystemRestfulInteraction.TRANSACTION)
if (code == SystemRestfulInteraction.NULL)
return null;
if (code == SystemRestfulInteraction.TRANSACTION)
return "transaction";
if (code == SystemRestfulInteraction.BATCH)
return "batch";
@ -1372,7 +1388,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
if (code == SystemRestfulInteraction.HISTORYSYSTEM)
return "history-system";
return "?";
}
}
public String toSystem(SystemRestfulInteraction code) {
return code.getSystem();
@ -1487,12 +1503,14 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
}
public String toCode(EventCapabilityMode code) {
if (code == EventCapabilityMode.SENDER)
if (code == EventCapabilityMode.NULL)
return null;
if (code == EventCapabilityMode.SENDER)
return "sender";
if (code == EventCapabilityMode.RECEIVER)
return "receiver";
return "?";
}
}
public String toSystem(EventCapabilityMode code) {
return code.getSystem();
@ -1607,12 +1625,14 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
}
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

@ -260,7 +260,9 @@ public class CarePlan extends DomainResource {
}
public String toCode(CarePlanStatus code) {
if (code == CarePlanStatus.DRAFT)
if (code == CarePlanStatus.NULL)
return null;
if (code == CarePlanStatus.DRAFT)
return "draft";
if (code == CarePlanStatus.ACTIVE)
return "active";
@ -275,7 +277,7 @@ public class CarePlan extends DomainResource {
if (code == CarePlanStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(CarePlanStatus code) {
return code.getSystem();
@ -426,7 +428,9 @@ public class CarePlan extends DomainResource {
}
public String toCode(CarePlanIntent code) {
if (code == CarePlanIntent.PROPOSAL)
if (code == CarePlanIntent.NULL)
return null;
if (code == CarePlanIntent.PROPOSAL)
return "proposal";
if (code == CarePlanIntent.PLAN)
return "plan";
@ -435,7 +439,7 @@ public class CarePlan extends DomainResource {
if (code == CarePlanIntent.OPTION)
return "option";
return "?";
}
}
public String toSystem(CarePlanIntent code) {
return code.getSystem();
@ -658,7 +662,9 @@ public class CarePlan extends DomainResource {
}
public String toCode(CarePlanActivityKind code) {
if (code == CarePlanActivityKind.APPOINTMENT)
if (code == CarePlanActivityKind.NULL)
return null;
if (code == CarePlanActivityKind.APPOINTMENT)
return "Appointment";
if (code == CarePlanActivityKind.COMMUNICATIONREQUEST)
return "CommunicationRequest";
@ -675,7 +681,7 @@ public class CarePlan extends DomainResource {
if (code == CarePlanActivityKind.VISIONPRESCRIPTION)
return "VisionPrescription";
return "?";
}
}
public String toSystem(CarePlanActivityKind code) {
return code.getSystem();
@ -920,7 +926,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";
@ -939,7 +947,7 @@ public class CarePlan extends DomainResource {
if (code == CarePlanActivityStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(CarePlanActivityStatus code) {
return code.getSystem();

View File

@ -216,7 +216,9 @@ public class CareTeam extends DomainResource {
}
public String toCode(CareTeamStatus code) {
if (code == CareTeamStatus.PROPOSED)
if (code == CareTeamStatus.NULL)
return null;
if (code == CareTeamStatus.PROPOSED)
return "proposed";
if (code == CareTeamStatus.ACTIVE)
return "active";
@ -227,7 +229,7 @@ public class CareTeam extends DomainResource {
if (code == CareTeamStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(CareTeamStatus code) {
return code.getSystem();

View File

@ -159,12 +159,14 @@ public class CatalogEntry extends DomainResource {
}
public String toCode(CatalogEntryRelationType code) {
if (code == CatalogEntryRelationType.TRIGGERS)
if (code == CatalogEntryRelationType.NULL)
return null;
if (code == CatalogEntryRelationType.TRIGGERS)
return "triggers";
if (code == CatalogEntryRelationType.ISREPLACEDBY)
return "is-replaced-by";
return "?";
}
}
public String toSystem(CatalogEntryRelationType code) {
return code.getSystem();

View File

@ -263,7 +263,9 @@ public class ChargeItem extends DomainResource {
}
public String toCode(ChargeItemStatus code) {
if (code == ChargeItemStatus.PLANNED)
if (code == ChargeItemStatus.NULL)
return null;
if (code == ChargeItemStatus.PLANNED)
return "planned";
if (code == ChargeItemStatus.BILLABLE)
return "billable";
@ -278,7 +280,7 @@ public class ChargeItem extends DomainResource {
if (code == ChargeItemStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(ChargeItemStatus code) {
return code.getSystem();

View File

@ -253,7 +253,9 @@ public class ChargeItemDefinition extends MetadataResource {
}
public String toCode(ChargeItemDefinitionPriceComponentType code) {
if (code == ChargeItemDefinitionPriceComponentType.BASE)
if (code == ChargeItemDefinitionPriceComponentType.NULL)
return null;
if (code == ChargeItemDefinitionPriceComponentType.BASE)
return "base";
if (code == ChargeItemDefinitionPriceComponentType.SURCHARGE)
return "surcharge";
@ -266,7 +268,7 @@ public class ChargeItemDefinition extends MetadataResource {
if (code == ChargeItemDefinitionPriceComponentType.INFORMATIONAL)
return "informational";
return "?";
}
}
public String toSystem(ChargeItemDefinitionPriceComponentType code) {
return code.getSystem();

View File

@ -198,7 +198,9 @@ public class Claim extends DomainResource {
}
public String toCode(ClaimStatus code) {
if (code == ClaimStatus.ACTIVE)
if (code == ClaimStatus.NULL)
return null;
if (code == ClaimStatus.ACTIVE)
return "active";
if (code == ClaimStatus.CANCELLED)
return "cancelled";
@ -207,7 +209,7 @@ public class Claim extends DomainResource {
if (code == ClaimStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(ClaimStatus code) {
return code.getSystem();
@ -342,14 +344,16 @@ public class Claim extends DomainResource {
}
public String toCode(Use code) {
if (code == Use.CLAIM)
if (code == Use.NULL)
return null;
if (code == Use.CLAIM)
return "claim";
if (code == Use.PREAUTHORIZATION)
return "preauthorization";
if (code == Use.PREDETERMINATION)
return "predetermination";
return "?";
}
}
public String toSystem(Use code) {
return code.getSystem();

View File

@ -199,7 +199,9 @@ public class ClaimResponse extends DomainResource {
}
public String toCode(ClaimResponseStatus code) {
if (code == ClaimResponseStatus.ACTIVE)
if (code == ClaimResponseStatus.NULL)
return null;
if (code == ClaimResponseStatus.ACTIVE)
return "active";
if (code == ClaimResponseStatus.CANCELLED)
return "cancelled";
@ -208,7 +210,7 @@ public class ClaimResponse extends DomainResource {
if (code == ClaimResponseStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(ClaimResponseStatus code) {
return code.getSystem();
@ -343,14 +345,16 @@ public class ClaimResponse extends DomainResource {
}
public String toCode(Use code) {
if (code == Use.CLAIM)
if (code == Use.NULL)
return null;
if (code == Use.CLAIM)
return "claim";
if (code == Use.PREAUTHORIZATION)
return "preauthorization";
if (code == Use.PREDETERMINATION)
return "predetermination";
return "?";
}
}
public String toSystem(Use code) {
return code.getSystem();
@ -503,7 +507,9 @@ public class ClaimResponse extends DomainResource {
}
public String toCode(RemittanceOutcome code) {
if (code == RemittanceOutcome.QUEUED)
if (code == RemittanceOutcome.NULL)
return null;
if (code == RemittanceOutcome.QUEUED)
return "queued";
if (code == RemittanceOutcome.COMPLETE)
return "complete";
@ -512,7 +518,7 @@ public class ClaimResponse extends DomainResource {
if (code == RemittanceOutcome.PARTIAL)
return "partial";
return "?";
}
}
public String toSystem(RemittanceOutcome code) {
return code.getSystem();

View File

@ -182,14 +182,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

@ -216,7 +216,9 @@ public class CodeSystem extends MetadataResource {
}
public String toCode(CodeSystemHierarchyMeaning code) {
if (code == CodeSystemHierarchyMeaning.GROUPEDBY)
if (code == CodeSystemHierarchyMeaning.NULL)
return null;
if (code == CodeSystemHierarchyMeaning.GROUPEDBY)
return "grouped-by";
if (code == CodeSystemHierarchyMeaning.ISA)
return "is-a";
@ -225,7 +227,7 @@ public class CodeSystem extends MetadataResource {
if (code == CodeSystemHierarchyMeaning.CLASSIFIEDWITH)
return "classified-with";
return "?";
}
}
public String toSystem(CodeSystemHierarchyMeaning code) {
return code.getSystem();
@ -403,7 +405,9 @@ public class CodeSystem extends MetadataResource {
}
public String toCode(CodeSystemContentMode code) {
if (code == CodeSystemContentMode.NOTPRESENT)
if (code == CodeSystemContentMode.NULL)
return null;
if (code == CodeSystemContentMode.NOTPRESENT)
return "not-present";
if (code == CodeSystemContentMode.EXAMPLE)
return "example";
@ -414,7 +418,7 @@ public class CodeSystem extends MetadataResource {
if (code == CodeSystemContentMode.SUPPLEMENT)
return "supplement";
return "?";
}
}
public String toSystem(CodeSystemContentMode code) {
return code.getSystem();
@ -667,7 +671,9 @@ public class CodeSystem extends MetadataResource {
}
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";
@ -686,7 +692,7 @@ public class CodeSystem extends MetadataResource {
if (code == FilterOperator.EXISTS)
return "exists";
return "?";
}
}
public String toSystem(FilterOperator code) {
return code.getSystem();
@ -894,7 +900,9 @@ public class CodeSystem extends MetadataResource {
}
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";
@ -909,7 +917,7 @@ public class CodeSystem extends MetadataResource {
if (code == PropertyType.DECIMAL)
return "decimal";
return "?";
}
}
public String toSystem(PropertyType code) {
return code.getSystem();

View File

@ -279,7 +279,9 @@ public class Communication extends DomainResource {
}
public String toCode(CommunicationStatus code) {
if (code == CommunicationStatus.PREPARATION)
if (code == CommunicationStatus.NULL)
return null;
if (code == CommunicationStatus.PREPARATION)
return "preparation";
if (code == CommunicationStatus.INPROGRESS)
return "in-progress";
@ -296,7 +298,7 @@ public class Communication extends DomainResource {
if (code == CommunicationStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(CommunicationStatus code) {
return code.getSystem();
@ -449,7 +451,9 @@ public class Communication extends DomainResource {
}
public String toCode(CommunicationPriority code) {
if (code == CommunicationPriority.ROUTINE)
if (code == CommunicationPriority.NULL)
return null;
if (code == CommunicationPriority.ROUTINE)
return "routine";
if (code == CommunicationPriority.URGENT)
return "urgent";
@ -458,7 +462,7 @@ public class Communication extends DomainResource {
if (code == CommunicationPriority.STAT)
return "stat";
return "?";
}
}
public String toSystem(CommunicationPriority code) {
return code.getSystem();

View File

@ -259,7 +259,9 @@ public class CommunicationRequest extends DomainResource {
}
public String toCode(CommunicationRequestStatus code) {
if (code == CommunicationRequestStatus.DRAFT)
if (code == CommunicationRequestStatus.NULL)
return null;
if (code == CommunicationRequestStatus.DRAFT)
return "draft";
if (code == CommunicationRequestStatus.ACTIVE)
return "active";
@ -274,7 +276,7 @@ public class CommunicationRequest extends DomainResource {
if (code == CommunicationRequestStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(CommunicationRequestStatus code) {
return code.getSystem();
@ -427,7 +429,9 @@ public class CommunicationRequest extends DomainResource {
}
public String toCode(CommunicationPriority code) {
if (code == CommunicationPriority.ROUTINE)
if (code == CommunicationPriority.NULL)
return null;
if (code == CommunicationPriority.ROUTINE)
return "routine";
if (code == CommunicationPriority.URGENT)
return "urgent";
@ -436,7 +440,7 @@ public class CommunicationRequest extends DomainResource {
if (code == CommunicationPriority.STAT)
return "stat";
return "?";
}
}
public String toSystem(CommunicationPriority code) {
return code.getSystem();

View File

@ -217,7 +217,9 @@ public class CompartmentDefinition extends MetadataResource {
}
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";
@ -228,7 +230,7 @@ public class CompartmentDefinition extends MetadataResource {
if (code == CompartmentType.DEVICE)
return "Device";
return "?";
}
}
public String toSystem(CompartmentType code) {
return code.getSystem();

View File

@ -209,7 +209,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";
@ -218,7 +220,7 @@ public class Composition extends DomainResource {
if (code == CompositionStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(CompositionStatus code) {
return code.getSystem();
@ -405,7 +407,9 @@ public class Composition extends DomainResource {
}
public String toCode(DocumentConfidentiality code) {
if (code == DocumentConfidentiality.U)
if (code == DocumentConfidentiality.NULL)
return null;
if (code == DocumentConfidentiality.U)
return "U";
if (code == DocumentConfidentiality.L)
return "L";
@ -418,7 +422,7 @@ public class Composition extends DomainResource {
if (code == DocumentConfidentiality.V)
return "V";
return "?";
}
}
public String toSystem(DocumentConfidentiality code) {
return code.getSystem();
@ -571,7 +575,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";
@ -580,7 +586,7 @@ public class Composition extends DomainResource {
if (code == CompositionAttestationMode.OFFICIAL)
return "official";
return "?";
}
}
public String toSystem(CompositionAttestationMode code) {
return code.getSystem();
@ -732,7 +738,9 @@ public class Composition 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";
@ -741,7 +749,7 @@ public class Composition extends DomainResource {
if (code == DocumentRelationshipType.APPENDS)
return "appends";
return "?";
}
}
public String toSystem(DocumentRelationshipType code) {
return code.getSystem();
@ -877,14 +885,16 @@ public class Composition extends DomainResource {
}
public String toCode(SectionMode code) {
if (code == SectionMode.WORKING)
if (code == SectionMode.NULL)
return null;
if (code == SectionMode.WORKING)
return "working";
if (code == SectionMode.SNAPSHOT)
return "snapshot";
if (code == SectionMode.CHANGES)
return "changes";
return "?";
}
}
public String toSystem(SectionMode code) {
return code.getSystem();

View File

@ -185,14 +185,16 @@ public class ConceptMap extends MetadataResource {
}
public String toCode(ConceptMapGroupUnmappedMode code) {
if (code == ConceptMapGroupUnmappedMode.PROVIDED)
if (code == ConceptMapGroupUnmappedMode.NULL)
return null;
if (code == ConceptMapGroupUnmappedMode.PROVIDED)
return "provided";
if (code == ConceptMapGroupUnmappedMode.FIXED)
return "fixed";
if (code == ConceptMapGroupUnmappedMode.OTHERMAP)
return "other-map";
return "?";
}
}
public String toSystem(ConceptMapGroupUnmappedMode code) {
return code.getSystem();

View File

@ -234,7 +234,9 @@ public class Consent extends DomainResource {
}
public String toCode(ConsentState code) {
if (code == ConsentState.DRAFT)
if (code == ConsentState.NULL)
return null;
if (code == ConsentState.DRAFT)
return "draft";
if (code == ConsentState.PROPOSED)
return "proposed";
@ -247,7 +249,7 @@ public class Consent extends DomainResource {
if (code == ConsentState.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(ConsentState code) {
return code.getSystem();
@ -362,12 +364,14 @@ public class Consent extends DomainResource {
}
public String toCode(ConsentProvisionType code) {
if (code == ConsentProvisionType.DENY)
if (code == ConsentProvisionType.NULL)
return null;
if (code == ConsentProvisionType.DENY)
return "deny";
if (code == ConsentProvisionType.PERMIT)
return "permit";
return "?";
}
}
public String toSystem(ConsentProvisionType code) {
return code.getSystem();
@ -520,7 +524,9 @@ public class Consent extends DomainResource {
}
public String toCode(ConsentDataMeaning code) {
if (code == ConsentDataMeaning.INSTANCE)
if (code == ConsentDataMeaning.NULL)
return null;
if (code == ConsentDataMeaning.INSTANCE)
return "instance";
if (code == ConsentDataMeaning.RELATED)
return "related";
@ -529,7 +535,7 @@ public class Consent extends DomainResource {
if (code == ConsentDataMeaning.AUTHOREDBY)
return "authoredby";
return "?";
}
}
public String toSystem(ConsentDataMeaning code) {
return code.getSystem();

View File

@ -256,7 +256,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";
@ -271,7 +273,7 @@ public class ContactPoint extends Type implements ICompositeType {
if (code == ContactPointSystem.OTHER)
return "other";
return "?";
}
}
public String toSystem(ContactPointSystem code) {
return code.getSystem();
@ -447,7 +449,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";
@ -458,7 +462,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

@ -450,7 +450,9 @@ public class Contract extends DomainResource {
}
public String toCode(ContractStatus code) {
if (code == ContractStatus.AMENDED)
if (code == ContractStatus.NULL)
return null;
if (code == ContractStatus.AMENDED)
return "amended";
if (code == ContractStatus.APPENDED)
return "appended";
@ -481,7 +483,7 @@ public class Contract extends DomainResource {
if (code == ContractStatus.TERMINATED)
return "terminated";
return "?";
}
}
public String toSystem(ContractStatus code) {
return code.getSystem();
@ -885,7 +887,9 @@ public class Contract extends DomainResource {
}
public String toCode(ContractPublicationStatus code) {
if (code == ContractPublicationStatus.AMENDED)
if (code == ContractPublicationStatus.NULL)
return null;
if (code == ContractPublicationStatus.AMENDED)
return "amended";
if (code == ContractPublicationStatus.APPENDED)
return "appended";
@ -916,7 +920,7 @@ public class Contract extends DomainResource {
if (code == ContractPublicationStatus.TERMINATED)
return "terminated";
return "?";
}
}
public String toSystem(ContractPublicationStatus code) {
return code.getSystem();

View File

@ -191,7 +191,9 @@ public class Contributor extends Type implements ICompositeType {
}
public String toCode(ContributorType code) {
if (code == ContributorType.AUTHOR)
if (code == ContributorType.NULL)
return null;
if (code == ContributorType.AUTHOR)
return "author";
if (code == ContributorType.EDITOR)
return "editor";
@ -200,7 +202,7 @@ public class Contributor extends Type implements ICompositeType {
if (code == ContributorType.ENDORSER)
return "endorser";
return "?";
}
}
public String toSystem(ContributorType code) {
return code.getSystem();

View File

@ -194,7 +194,9 @@ public class Coverage extends DomainResource {
}
public String toCode(CoverageStatus code) {
if (code == CoverageStatus.ACTIVE)
if (code == CoverageStatus.NULL)
return null;
if (code == CoverageStatus.ACTIVE)
return "active";
if (code == CoverageStatus.CANCELLED)
return "cancelled";
@ -203,7 +205,7 @@ public class Coverage extends DomainResource {
if (code == CoverageStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(CoverageStatus code) {
return code.getSystem();

View File

@ -198,7 +198,9 @@ public class CoverageEligibilityRequest extends DomainResource {
}
public String toCode(EligibilityRequestStatus code) {
if (code == EligibilityRequestStatus.ACTIVE)
if (code == EligibilityRequestStatus.NULL)
return null;
if (code == EligibilityRequestStatus.ACTIVE)
return "active";
if (code == EligibilityRequestStatus.CANCELLED)
return "cancelled";
@ -207,7 +209,7 @@ public class CoverageEligibilityRequest extends DomainResource {
if (code == EligibilityRequestStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(EligibilityRequestStatus code) {
return code.getSystem();
@ -362,7 +364,9 @@ public class CoverageEligibilityRequest extends DomainResource {
}
public String toCode(EligibilityRequestPurpose code) {
if (code == EligibilityRequestPurpose.AUTHREQUIREMENTS)
if (code == EligibilityRequestPurpose.NULL)
return null;
if (code == EligibilityRequestPurpose.AUTHREQUIREMENTS)
return "auth-requirements";
if (code == EligibilityRequestPurpose.BENEFITS)
return "benefits";
@ -371,7 +375,7 @@ public class CoverageEligibilityRequest extends DomainResource {
if (code == EligibilityRequestPurpose.VALIDATION)
return "validation";
return "?";
}
}
public String toSystem(EligibilityRequestPurpose code) {
return code.getSystem();

View File

@ -197,7 +197,9 @@ public class CoverageEligibilityResponse extends DomainResource {
}
public String toCode(EligibilityResponseStatus code) {
if (code == EligibilityResponseStatus.ACTIVE)
if (code == EligibilityResponseStatus.NULL)
return null;
if (code == EligibilityResponseStatus.ACTIVE)
return "active";
if (code == EligibilityResponseStatus.CANCELLED)
return "cancelled";
@ -206,7 +208,7 @@ public class CoverageEligibilityResponse extends DomainResource {
if (code == EligibilityResponseStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(EligibilityResponseStatus code) {
return code.getSystem();
@ -361,7 +363,9 @@ public class CoverageEligibilityResponse extends DomainResource {
}
public String toCode(EligibilityResponsePurpose code) {
if (code == EligibilityResponsePurpose.AUTHREQUIREMENTS)
if (code == EligibilityResponsePurpose.NULL)
return null;
if (code == EligibilityResponsePurpose.AUTHREQUIREMENTS)
return "auth-requirements";
if (code == EligibilityResponsePurpose.BENEFITS)
return "benefits";
@ -370,7 +374,7 @@ public class CoverageEligibilityResponse extends DomainResource {
if (code == EligibilityResponsePurpose.VALIDATION)
return "validation";
return "?";
}
}
public String toSystem(EligibilityResponsePurpose code) {
return code.getSystem();

View File

@ -158,12 +158,14 @@ public class DataRequirement extends Type implements ICompositeType {
}
public String toCode(SortDirection code) {
if (code == SortDirection.ASCENDING)
if (code == SortDirection.NULL)
return null;
if (code == SortDirection.ASCENDING)
return "ascending";
if (code == SortDirection.DESCENDING)
return "descending";
return "?";
}
}
public String toSystem(SortDirection code) {
return code.getSystem();

View File

@ -285,7 +285,9 @@ public class DetectedIssue extends DomainResource {
}
public String toCode(DetectedIssueStatus code) {
if (code == DetectedIssueStatus.REGISTERED)
if (code == DetectedIssueStatus.NULL)
return null;
if (code == DetectedIssueStatus.REGISTERED)
return "registered";
if (code == DetectedIssueStatus.PRELIMINARY)
return "preliminary";
@ -302,7 +304,7 @@ public class DetectedIssue extends DomainResource {
if (code == DetectedIssueStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(DetectedIssueStatus code) {
return code.getSystem();
@ -438,14 +440,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

@ -235,7 +235,9 @@ public class Device extends DomainResource {
}
public String toCode(UDIEntryType code) {
if (code == UDIEntryType.BARCODE)
if (code == UDIEntryType.NULL)
return null;
if (code == UDIEntryType.BARCODE)
return "barcode";
if (code == UDIEntryType.RFID)
return "rfid";
@ -248,7 +250,7 @@ public class Device extends DomainResource {
if (code == UDIEntryType.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(UDIEntryType code) {
return code.getSystem();
@ -402,7 +404,9 @@ public class Device extends DomainResource {
}
public String toCode(FHIRDeviceStatus code) {
if (code == FHIRDeviceStatus.ACTIVE)
if (code == FHIRDeviceStatus.NULL)
return null;
if (code == FHIRDeviceStatus.ACTIVE)
return "active";
if (code == FHIRDeviceStatus.INACTIVE)
return "inactive";
@ -411,7 +415,7 @@ public class Device extends DomainResource {
if (code == FHIRDeviceStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(FHIRDeviceStatus code) {
return code.getSystem();
@ -598,7 +602,9 @@ public class Device extends DomainResource {
}
public String toCode(DeviceNameType code) {
if (code == DeviceNameType.UDILABELNAME)
if (code == DeviceNameType.NULL)
return null;
if (code == DeviceNameType.UDILABELNAME)
return "udi-label-name";
if (code == DeviceNameType.USERFRIENDLYNAME)
return "user-friendly-name";
@ -611,7 +617,7 @@ public class Device extends DomainResource {
if (code == DeviceNameType.OTHER)
return "other";
return "?";
}
}
public String toSystem(DeviceNameType code) {
return code.getSystem();

View File

@ -230,7 +230,9 @@ public class DeviceDefinition extends DomainResource {
}
public String toCode(DeviceNameType code) {
if (code == DeviceNameType.UDILABELNAME)
if (code == DeviceNameType.NULL)
return null;
if (code == DeviceNameType.UDILABELNAME)
return "udi-label-name";
if (code == DeviceNameType.USERFRIENDLYNAME)
return "user-friendly-name";
@ -243,7 +245,7 @@ public class DeviceDefinition extends DomainResource {
if (code == DeviceNameType.OTHER)
return "other";
return "?";
}
}
public String toSystem(DeviceNameType code) {
return code.getSystem();

View File

@ -194,7 +194,9 @@ 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";
@ -203,7 +205,7 @@ public class DeviceMetric extends DomainResource {
if (code == DeviceMetricOperationalStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(DeviceMetricOperationalStatus code) {
return code.getSystem();
@ -426,7 +428,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";
@ -443,7 +447,7 @@ public class DeviceMetric extends DomainResource {
if (code == DeviceMetricColor.WHITE)
return "white";
return "?";
}
}
public String toSystem(DeviceMetricColor code) {
return code.getSystem();
@ -595,7 +599,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";
@ -604,7 +610,7 @@ public class DeviceMetric extends DomainResource {
if (code == DeviceMetricCategory.UNSPECIFIED)
return "unspecified";
return "?";
}
}
public String toSystem(DeviceMetricCategory code) {
return code.getSystem();
@ -755,7 +761,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";
@ -764,7 +772,7 @@ public class DeviceMetric extends DomainResource {
if (code == DeviceMetricCalibrationType.TWOPOINT)
return "two-point";
return "?";
}
}
public String toSystem(DeviceMetricCalibrationType code) {
return code.getSystem();
@ -916,7 +924,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";
@ -925,7 +935,7 @@ public class DeviceMetric extends DomainResource {
if (code == DeviceMetricCalibrationState.UNSPECIFIED)
return "unspecified";
return "?";
}
}
public String toSystem(DeviceMetricCalibrationState code) {
return code.getSystem();

View File

@ -258,7 +258,9 @@ public class DeviceRequest extends DomainResource {
}
public String toCode(DeviceRequestStatus code) {
if (code == DeviceRequestStatus.DRAFT)
if (code == DeviceRequestStatus.NULL)
return null;
if (code == DeviceRequestStatus.DRAFT)
return "draft";
if (code == DeviceRequestStatus.ACTIVE)
return "active";
@ -273,7 +275,7 @@ public class DeviceRequest extends DomainResource {
if (code == DeviceRequestStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(DeviceRequestStatus code) {
return code.getSystem();
@ -527,7 +529,9 @@ public class DeviceRequest extends DomainResource {
}
public String toCode(RequestIntent code) {
if (code == RequestIntent.PROPOSAL)
if (code == RequestIntent.NULL)
return null;
if (code == RequestIntent.PROPOSAL)
return "proposal";
if (code == RequestIntent.PLAN)
return "plan";
@ -546,7 +550,7 @@ public class DeviceRequest extends DomainResource {
if (code == RequestIntent.OPTION)
return "option";
return "?";
}
}
public String toSystem(RequestIntent code) {
return code.getSystem();
@ -699,7 +703,9 @@ public class DeviceRequest extends DomainResource {
}
public String toCode(RequestPriority code) {
if (code == RequestPriority.ROUTINE)
if (code == RequestPriority.NULL)
return null;
if (code == RequestPriority.ROUTINE)
return "routine";
if (code == RequestPriority.URGENT)
return "urgent";
@ -708,7 +714,7 @@ public class DeviceRequest extends DomainResource {
if (code == RequestPriority.STAT)
return "stat";
return "?";
}
}
public String toSystem(RequestPriority code) {
return code.getSystem();

View File

@ -230,7 +230,9 @@ public class DeviceUseStatement extends DomainResource {
}
public String toCode(DeviceUseStatementStatus code) {
if (code == DeviceUseStatementStatus.ACTIVE)
if (code == DeviceUseStatementStatus.NULL)
return null;
if (code == DeviceUseStatementStatus.ACTIVE)
return "active";
if (code == DeviceUseStatementStatus.COMPLETED)
return "completed";
@ -243,7 +245,7 @@ public class DeviceUseStatement extends DomainResource {
if (code == DeviceUseStatementStatus.ONHOLD)
return "on-hold";
return "?";
}
}
public String toSystem(DeviceUseStatementStatus code) {
return code.getSystem();

View File

@ -319,7 +319,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";
@ -340,7 +342,7 @@ public class DiagnosticReport extends DomainResource {
if (code == DiagnosticReportStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(DiagnosticReportStatus code) {
return code.getSystem();

View File

@ -207,7 +207,9 @@ public class DocumentReference extends DomainResource {
}
public String toCode(ReferredDocumentStatus code) {
if (code == ReferredDocumentStatus.PRELIMINARY)
if (code == ReferredDocumentStatus.NULL)
return null;
if (code == ReferredDocumentStatus.PRELIMINARY)
return "preliminary";
if (code == ReferredDocumentStatus.FINAL)
return "final";
@ -216,7 +218,7 @@ public class DocumentReference extends DomainResource {
if (code == ReferredDocumentStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(ReferredDocumentStatus code) {
return code.getSystem();
@ -368,7 +370,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";
@ -377,7 +381,7 @@ public class DocumentReference extends DomainResource {
if (code == DocumentRelationshipType.APPENDS)
return "appends";
return "?";
}
}
public String toSystem(DocumentRelationshipType code) {
return code.getSystem();

View File

@ -172,12 +172,14 @@ public class EffectEvidenceSynthesis extends MetadataResource {
}
public String toCode(ExposureState code) {
if (code == ExposureState.EXPOSURE)
if (code == ExposureState.NULL)
return null;
if (code == ExposureState.EXPOSURE)
return "exposure";
if (code == ExposureState.EXPOSUREALTERNATIVE)
return "exposure-alternative";
return "?";
}
}
public String toSystem(ExposureState code) {
return code.getSystem();

View File

@ -218,7 +218,9 @@ public class ElementDefinition extends BackboneType 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";
@ -229,7 +231,7 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
if (code == PropertyRepresentation.XHTML)
return "xhtml";
return "?";
}
}
public String toSystem(PropertyRepresentation code) {
return code.getSystem();
@ -403,7 +405,9 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
}
public String toCode(DiscriminatorType code) {
if (code == DiscriminatorType.VALUE)
if (code == DiscriminatorType.NULL)
return null;
if (code == DiscriminatorType.VALUE)
return "value";
if (code == DiscriminatorType.EXISTS)
return "exists";
@ -414,7 +418,7 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
if (code == DiscriminatorType.PROFILE)
return "profile";
return "?";
}
}
public String toSystem(DiscriminatorType code) {
return code.getSystem();
@ -550,14 +554,16 @@ public class ElementDefinition extends BackboneType 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();
@ -692,14 +698,16 @@ public class ElementDefinition extends BackboneType 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();
@ -832,14 +840,16 @@ public class ElementDefinition extends BackboneType 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();
@ -955,12 +965,14 @@ public class ElementDefinition extends BackboneType 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

@ -289,7 +289,9 @@ public class Encounter extends DomainResource {
}
public String toCode(EncounterStatus code) {
if (code == EncounterStatus.PLANNED)
if (code == EncounterStatus.NULL)
return null;
if (code == EncounterStatus.PLANNED)
return "planned";
if (code == EncounterStatus.ARRIVED)
return "arrived";
@ -308,7 +310,7 @@ public class Encounter extends DomainResource {
if (code == EncounterStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(EncounterStatus code) {
return code.getSystem();
@ -466,7 +468,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";
@ -475,7 +479,7 @@ public class Encounter extends DomainResource {
if (code == EncounterLocationStatus.COMPLETED)
return "completed";
return "?";
}
}
public String toSystem(EncounterLocationStatus code) {
return code.getSystem();

View File

@ -231,7 +231,9 @@ public class Endpoint extends DomainResource {
}
public String toCode(EndpointStatus code) {
if (code == EndpointStatus.ACTIVE)
if (code == EndpointStatus.NULL)
return null;
if (code == EndpointStatus.ACTIVE)
return "active";
if (code == EndpointStatus.SUSPENDED)
return "suspended";
@ -244,7 +246,7 @@ public class Endpoint extends DomainResource {
if (code == EndpointStatus.TEST)
return "test";
return "?";
}
}
public String toSystem(EndpointStatus code) {
return code.getSystem();

View File

@ -192,7 +192,9 @@ public class EnrollmentRequest extends DomainResource {
}
public String toCode(EnrollmentRequestStatus code) {
if (code == EnrollmentRequestStatus.ACTIVE)
if (code == EnrollmentRequestStatus.NULL)
return null;
if (code == EnrollmentRequestStatus.ACTIVE)
return "active";
if (code == EnrollmentRequestStatus.CANCELLED)
return "cancelled";
@ -201,7 +203,7 @@ public class EnrollmentRequest extends DomainResource {
if (code == EnrollmentRequestStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(EnrollmentRequestStatus code) {
return code.getSystem();

View File

@ -195,7 +195,9 @@ public class EnrollmentResponse extends DomainResource {
}
public String toCode(EnrollmentResponseStatus code) {
if (code == EnrollmentResponseStatus.ACTIVE)
if (code == EnrollmentResponseStatus.NULL)
return null;
if (code == EnrollmentResponseStatus.ACTIVE)
return "active";
if (code == EnrollmentResponseStatus.CANCELLED)
return "cancelled";
@ -204,7 +206,7 @@ public class EnrollmentResponse extends DomainResource {
if (code == EnrollmentResponseStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(EnrollmentResponseStatus code) {
return code.getSystem();

View File

@ -133,12 +133,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();
@ -286,7 +288,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";
@ -295,7 +299,7 @@ public class Enumerations {
if (code == AdministrativeGender.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(AdministrativeGender code) {
return code.getSystem();
@ -479,7 +483,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";
@ -492,7 +498,7 @@ public class Enumerations {
if (code == AgeUnits.A)
return "a";
return "?";
}
}
public String toSystem(AgeUnits code) {
return code.getSystem();
@ -649,7 +655,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";
@ -658,7 +666,7 @@ public class Enumerations {
if (code == BindingStrength.EXAMPLE)
return "example";
return "?";
}
}
public String toSystem(BindingStrength code) {
return code.getSystem();
@ -930,7 +938,9 @@ public class Enumerations {
}
public String toCode(ConceptMapEquivalence code) {
if (code == ConceptMapEquivalence.RELATEDTO)
if (code == ConceptMapEquivalence.NULL)
return null;
if (code == ConceptMapEquivalence.RELATEDTO)
return "relatedto";
if (code == ConceptMapEquivalence.EQUIVALENT)
return "equivalent";
@ -951,7 +961,7 @@ public class Enumerations {
if (code == ConceptMapEquivalence.DISJOINT)
return "disjoint";
return "?";
}
}
public String toSystem(ConceptMapEquivalence code) {
return code.getSystem();
@ -1305,7 +1315,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.ASKEDUNKNOWN)
return "asked-unknown";
@ -1336,7 +1348,7 @@ public class Enumerations {
if (code == DataAbsentReason.NOTPERMITTED)
return "not-permitted";
return "?";
}
}
public String toSystem(DataAbsentReason code) {
return code.getSystem();
@ -2605,7 +2617,9 @@ public class Enumerations {
}
public String toCode(DataType code) {
if (code == DataType.ADDRESS)
if (code == DataType.NULL)
return null;
if (code == DataType.ADDRESS)
return "Address";
if (code == DataType.AGE)
return "Age";
@ -2732,7 +2746,7 @@ public class Enumerations {
if (code == DataType.XHTML)
return "xhtml";
return "?";
}
}
public String toSystem(DataType code) {
return code.getSystem();
@ -2926,7 +2940,9 @@ public class Enumerations {
}
public String toCode(DefinitionResourceType code) {
if (code == DefinitionResourceType.ACTIVITYDEFINITION)
if (code == DefinitionResourceType.NULL)
return null;
if (code == DefinitionResourceType.ACTIVITYDEFINITION)
return "ActivityDefinition";
if (code == DefinitionResourceType.EVENTDEFINITION)
return "EventDefinition";
@ -2939,7 +2955,7 @@ public class Enumerations {
if (code == DefinitionResourceType.QUESTIONNAIRE)
return "Questionnaire";
return "?";
}
}
public String toSystem(DefinitionResourceType code) {
return code.getSystem();
@ -3069,14 +3085,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();
@ -3773,7 +3791,9 @@ public class Enumerations {
}
public String toCode(EventResourceType code) {
if (code == EventResourceType.CHARGEITEM)
if (code == EventResourceType.NULL)
return null;
if (code == EventResourceType.CHARGEITEM)
return "ChargeItem";
if (code == EventResourceType.CLAIMRESPONSE)
return "ClaimResponse";
@ -3842,7 +3862,7 @@ public class Enumerations {
if (code == EventResourceType.TASK)
return "Task";
return "?";
}
}
public String toSystem(EventResourceType code) {
return code.getSystem();
@ -8085,7 +8105,9 @@ public class Enumerations {
}
public String toCode(FHIRAllTypes code) {
if (code == FHIRAllTypes.ADDRESS)
if (code == FHIRAllTypes.NULL)
return null;
if (code == FHIRAllTypes.ADDRESS)
return "Address";
if (code == FHIRAllTypes.AGE)
return "Age";
@ -8512,7 +8534,7 @@ public class Enumerations {
if (code == FHIRAllTypes.ANY)
return "Any";
return "?";
}
}
public String toSystem(FHIRAllTypes code) {
return code.getSystem();
@ -12719,7 +12741,9 @@ public class Enumerations {
}
public String toCode(FHIRDefinedType code) {
if (code == FHIRDefinedType.ADDRESS)
if (code == FHIRDefinedType.NULL)
return null;
if (code == FHIRDefinedType.ADDRESS)
return "Address";
if (code == FHIRDefinedType.AGE)
return "Age";
@ -13142,7 +13166,7 @@ public class Enumerations {
if (code == FHIRDefinedType.VISIONPRESCRIPTION)
return "VisionPrescription";
return "?";
}
}
public String toSystem(FHIRDefinedType code) {
return code.getSystem();
@ -14340,7 +14364,9 @@ public class Enumerations {
}
public String toCode(FHIRVersion code) {
if (code == FHIRVersion._0_01)
if (code == FHIRVersion.NULL)
return null;
if (code == FHIRVersion._0_01)
return "0.01";
if (code == FHIRVersion._0_05)
return "0.05";
@ -14455,7 +14481,7 @@ public class Enumerations {
if (code == FHIRVersion._5_0_0DRAFTFINAL)
return "5.0.0-draft-final";
return "?";
}
}
public String toSystem(FHIRVersion code) {
return code.getSystem();
@ -14696,7 +14722,9 @@ public class Enumerations {
}
public String toCode(KnowledgeResourceType code) {
if (code == KnowledgeResourceType.ACTIVITYDEFINITION)
if (code == KnowledgeResourceType.NULL)
return null;
if (code == KnowledgeResourceType.ACTIVITYDEFINITION)
return "ActivityDefinition";
if (code == KnowledgeResourceType.CODESYSTEM)
return "CodeSystem";
@ -14715,7 +14743,7 @@ public class Enumerations {
if (code == KnowledgeResourceType.VALUESET)
return "ValueSet";
return "?";
}
}
public String toSystem(KnowledgeResourceType code) {
return code.getSystem();
@ -14791,8 +14819,10 @@ public class Enumerations {
}
public String toCode(MessageEvent code) {
return "?";
}
if (code == MessageEvent.NULL)
return null;
return "?";
}
public String toSystem(MessageEvent code) {
return code.getSystem();
@ -14922,14 +14952,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();
@ -15081,7 +15113,9 @@ public class Enumerations {
}
public String toCode(PublicationStatus code) {
if (code == PublicationStatus.DRAFT)
if (code == PublicationStatus.NULL)
return null;
if (code == PublicationStatus.DRAFT)
return "draft";
if (code == PublicationStatus.ACTIVE)
return "active";
@ -15090,7 +15124,7 @@ public class Enumerations {
if (code == PublicationStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(PublicationStatus code) {
return code.getSystem();
@ -15240,7 +15274,9 @@ public class Enumerations {
}
public String toCode(RemittanceOutcome code) {
if (code == RemittanceOutcome.QUEUED)
if (code == RemittanceOutcome.NULL)
return null;
if (code == RemittanceOutcome.QUEUED)
return "queued";
if (code == RemittanceOutcome.COMPLETE)
return "complete";
@ -15249,7 +15285,7 @@ public class Enumerations {
if (code == RemittanceOutcome.PARTIAL)
return "partial";
return "?";
}
}
public String toSystem(RemittanceOutcome code) {
return code.getSystem();
@ -15599,7 +15635,9 @@ public class Enumerations {
}
public String toCode(RequestResourceType code) {
if (code == RequestResourceType.APPOINTMENT)
if (code == RequestResourceType.NULL)
return null;
if (code == RequestResourceType.APPOINTMENT)
return "Appointment";
if (code == RequestResourceType.APPOINTMENTRESPONSE)
return "AppointmentResponse";
@ -15630,7 +15668,7 @@ public class Enumerations {
if (code == RequestResourceType.VISIONPRESCRIPTION)
return "VisionPrescription";
return "?";
}
}
public String toSystem(RequestResourceType code) {
return code.getSystem();
@ -18644,7 +18682,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.ACTIVITYDEFINITION)
return "ActivityDefinition";
@ -18941,7 +18981,7 @@ public class Enumerations {
if (code == ResourceType.VISIONPRESCRIPTION)
return "VisionPrescription";
return "?";
}
}
public String toSystem(ResourceType code) {
return code.getSystem();
@ -19186,7 +19226,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";
@ -19205,7 +19247,7 @@ public class Enumerations {
if (code == SearchParamType.SPECIAL)
return "special";
return "?";
}
}
public String toSystem(SearchParamType code) {
return code.getSystem();
@ -19390,7 +19432,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";
@ -19403,7 +19447,7 @@ public class Enumerations {
if (code == SpecialValues.NILKNOWN)
return "nil-known";
return "?";
}
}
public String toSystem(SpecialValues code) {
return code.getSystem();

View File

@ -259,7 +259,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";
@ -274,7 +276,7 @@ public class EpisodeOfCare extends DomainResource {
if (code == EpisodeOfCareStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(EpisodeOfCareStatus code) {
return code.getSystem();

View File

@ -184,14 +184,16 @@ public class EvidenceVariable extends MetadataResource {
}
public String toCode(EvidenceVariableType code) {
if (code == EvidenceVariableType.DICHOTOMOUS)
if (code == EvidenceVariableType.NULL)
return null;
if (code == EvidenceVariableType.DICHOTOMOUS)
return "dichotomous";
if (code == EvidenceVariableType.CONTINUOUS)
return "continuous";
if (code == EvidenceVariableType.DESCRIPTIVE)
return "descriptive";
return "?";
}
}
public String toSystem(EvidenceVariableType code) {
return code.getSystem();
@ -378,7 +380,9 @@ public class EvidenceVariable extends MetadataResource {
}
public String toCode(GroupMeasure code) {
if (code == GroupMeasure.MEAN)
if (code == GroupMeasure.NULL)
return null;
if (code == GroupMeasure.MEAN)
return "mean";
if (code == GroupMeasure.MEDIAN)
return "median";
@ -391,7 +395,7 @@ public class EvidenceVariable extends MetadataResource {
if (code == GroupMeasure.MEDIANOFMEDIAN)
return "median-of-median";
return "?";
}
}
public String toSystem(GroupMeasure code) {
return code.getSystem();

View File

@ -163,12 +163,14 @@ public class ExampleScenario extends MetadataResource {
}
public String toCode(ExampleScenarioActorType code) {
if (code == ExampleScenarioActorType.PERSON)
if (code == ExampleScenarioActorType.NULL)
return null;
if (code == ExampleScenarioActorType.PERSON)
return "person";
if (code == ExampleScenarioActorType.ENTITY)
return "entity";
return "?";
}
}
public String toSystem(ExampleScenarioActorType code) {
return code.getSystem();
@ -3186,7 +3188,9 @@ public class ExampleScenario extends MetadataResource {
}
public String toCode(FHIRResourceType code) {
if (code == FHIRResourceType.ACCOUNT)
if (code == FHIRResourceType.NULL)
return null;
if (code == FHIRResourceType.ACCOUNT)
return "Account";
if (code == FHIRResourceType.ACTIVITYDEFINITION)
return "ActivityDefinition";
@ -3483,7 +3487,7 @@ public class ExampleScenario extends MetadataResource {
if (code == FHIRResourceType.VISIONPRESCRIPTION)
return "VisionPrescription";
return "?";
}
}
public String toSystem(FHIRResourceType code) {
return code.getSystem();

View File

@ -200,7 +200,9 @@ public class ExplanationOfBenefit extends DomainResource {
}
public String toCode(ExplanationOfBenefitStatus code) {
if (code == ExplanationOfBenefitStatus.ACTIVE)
if (code == ExplanationOfBenefitStatus.NULL)
return null;
if (code == ExplanationOfBenefitStatus.ACTIVE)
return "active";
if (code == ExplanationOfBenefitStatus.CANCELLED)
return "cancelled";
@ -209,7 +211,7 @@ public class ExplanationOfBenefit extends DomainResource {
if (code == ExplanationOfBenefitStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(ExplanationOfBenefitStatus code) {
return code.getSystem();
@ -344,14 +346,16 @@ public class ExplanationOfBenefit extends DomainResource {
}
public String toCode(Use code) {
if (code == Use.CLAIM)
if (code == Use.NULL)
return null;
if (code == Use.CLAIM)
return "claim";
if (code == Use.PREAUTHORIZATION)
return "preauthorization";
if (code == Use.PREDETERMINATION)
return "predetermination";
return "?";
}
}
public String toSystem(Use code) {
return code.getSystem();
@ -504,7 +508,9 @@ public class ExplanationOfBenefit extends DomainResource {
}
public String toCode(RemittanceOutcome code) {
if (code == RemittanceOutcome.QUEUED)
if (code == RemittanceOutcome.NULL)
return null;
if (code == RemittanceOutcome.QUEUED)
return "queued";
if (code == RemittanceOutcome.COMPLETE)
return "complete";
@ -513,7 +519,7 @@ public class ExplanationOfBenefit extends DomainResource {
if (code == RemittanceOutcome.PARTIAL)
return "partial";
return "?";
}
}
public String toSystem(RemittanceOutcome code) {
return code.getSystem();

View File

@ -174,14 +174,16 @@ public class Expression extends Type implements ICompositeType {
}
public String toCode(ExpressionLanguage code) {
if (code == ExpressionLanguage.TEXT_CQL)
if (code == ExpressionLanguage.NULL)
return null;
if (code == ExpressionLanguage.TEXT_CQL)
return "text/cql";
if (code == ExpressionLanguage.TEXT_FHIRPATH)
return "text/fhirpath";
if (code == ExpressionLanguage.APPLICATION_XFHIRQUERY)
return "application/x-fhir-query";
return "?";
}
}
public String toSystem(ExpressionLanguage code) {
return code.getSystem();

View File

@ -197,7 +197,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";
@ -206,7 +208,7 @@ public class FamilyMemberHistory extends DomainResource {
if (code == FamilyHistoryStatus.HEALTHUNKNOWN)
return "health-unknown";
return "?";
}
}
public String toSystem(FamilyHistoryStatus code) {
return code.getSystem();

View File

@ -173,14 +173,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

@ -288,7 +288,9 @@ public class Goal extends DomainResource {
}
public String toCode(GoalLifecycleStatus code) {
if (code == GoalLifecycleStatus.PROPOSED)
if (code == GoalLifecycleStatus.NULL)
return null;
if (code == GoalLifecycleStatus.PROPOSED)
return "proposed";
if (code == GoalLifecycleStatus.PLANNED)
return "planned";
@ -307,7 +309,7 @@ public class Goal extends DomainResource {
if (code == GoalLifecycleStatus.REJECTED)
return "rejected";
return "?";
}
}
public String toSystem(GoalLifecycleStatus code) {
return code.getSystem();

View File

@ -166,12 +166,14 @@ public class GraphDefinition extends MetadataResource {
}
public String toCode(GraphCompartmentUse code) {
if (code == GraphCompartmentUse.CONDITION)
if (code == GraphCompartmentUse.NULL)
return null;
if (code == GraphCompartmentUse.CONDITION)
return "condition";
if (code == GraphCompartmentUse.REQUIREMENT)
return "requirement";
return "?";
}
}
public String toSystem(GraphCompartmentUse code) {
return code.getSystem();
@ -340,7 +342,9 @@ public class GraphDefinition extends MetadataResource {
}
public String toCode(CompartmentCode code) {
if (code == CompartmentCode.PATIENT)
if (code == CompartmentCode.NULL)
return null;
if (code == CompartmentCode.PATIENT)
return "Patient";
if (code == CompartmentCode.ENCOUNTER)
return "Encounter";
@ -351,7 +355,7 @@ public class GraphDefinition extends MetadataResource {
if (code == CompartmentCode.DEVICE)
return "Device";
return "?";
}
}
public String toSystem(CompartmentCode code) {
return code.getSystem();
@ -503,7 +507,9 @@ public class GraphDefinition extends MetadataResource {
}
public String toCode(GraphCompartmentRule code) {
if (code == GraphCompartmentRule.IDENTICAL)
if (code == GraphCompartmentRule.NULL)
return null;
if (code == GraphCompartmentRule.IDENTICAL)
return "identical";
if (code == GraphCompartmentRule.MATCHING)
return "matching";
@ -512,7 +518,7 @@ public class GraphDefinition extends MetadataResource {
if (code == GraphCompartmentRule.CUSTOM)
return "custom";
return "?";
}
}
public String toSystem(GraphCompartmentRule code) {
return code.getSystem();

View File

@ -233,7 +233,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";
@ -246,7 +248,7 @@ public class Group extends DomainResource {
if (code == GroupType.SUBSTANCE)
return "substance";
return "?";
}
}
public String toSystem(GroupType code) {
return code.getSystem();

View File

@ -231,7 +231,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";
@ -244,7 +246,7 @@ public class GuidanceResponse extends DomainResource {
if (code == GuidanceResponseStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(GuidanceResponseStatus code) {
return code.getSystem();

View File

@ -247,7 +247,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";
@ -262,7 +264,7 @@ public class HealthcareService extends DomainResource {
if (code == DaysOfWeek.SUN)
return "sun";
return "?";
}
}
public String toSystem(DaysOfWeek code) {
return code.getSystem();

View File

@ -257,7 +257,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";
@ -272,7 +274,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

@ -215,7 +215,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";
@ -226,7 +228,7 @@ public class Identifier extends Type implements ICompositeType {
if (code == IdentifierUse.OLD)
return "old";
return "?";
}
}
public String toSystem(IdentifierUse code) {
return code.getSystem();

View File

@ -223,7 +223,9 @@ public class ImagingStudy extends DomainResource {
}
public String toCode(ImagingStudyStatus code) {
if (code == ImagingStudyStatus.REGISTERED)
if (code == ImagingStudyStatus.NULL)
return null;
if (code == ImagingStudyStatus.REGISTERED)
return "registered";
if (code == ImagingStudyStatus.AVAILABLE)
return "available";
@ -234,7 +236,7 @@ public class ImagingStudy extends DomainResource {
if (code == ImagingStudyStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(ImagingStudyStatus code) {
return code.getSystem();

View File

@ -177,14 +177,16 @@ public class Immunization extends DomainResource {
}
public String toCode(ImmunizationStatus code) {
if (code == ImmunizationStatus.COMPLETED)
if (code == ImmunizationStatus.NULL)
return null;
if (code == ImmunizationStatus.COMPLETED)
return "completed";
if (code == ImmunizationStatus.ENTEREDINERROR)
return "entered-in-error";
if (code == ImmunizationStatus.NOTDONE)
return "not-done";
return "?";
}
}
public String toSystem(ImmunizationStatus code) {
return code.getSystem();

View File

@ -158,12 +158,14 @@ public class ImmunizationEvaluation extends DomainResource {
}
public String toCode(ImmunizationEvaluationStatus code) {
if (code == ImmunizationEvaluationStatus.COMPLETED)
if (code == ImmunizationEvaluationStatus.NULL)
return null;
if (code == ImmunizationEvaluationStatus.COMPLETED)
return "completed";
if (code == ImmunizationEvaluationStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(ImmunizationEvaluationStatus code) {
return code.getSystem();

View File

@ -10261,7 +10261,9 @@ public class ImplementationGuide extends MetadataResource {
}
public String toCode(SPDXLicense code) {
if (code == SPDXLicense._0BSD)
if (code == SPDXLicense.NULL)
return null;
if (code == SPDXLicense._0BSD)
return "0BSD";
if (code == SPDXLicense.AAL)
return "AAL";
@ -11378,7 +11380,7 @@ public class ImplementationGuide extends MetadataResource {
if (code == SPDXLicense.ZPL_2_1)
return "ZPL-2.1";
return "?";
}
}
public String toSystem(SPDXLicense code) {
return code.getSystem();
@ -11534,7 +11536,9 @@ public class ImplementationGuide extends MetadataResource {
}
public String toCode(GuidePageGeneration code) {
if (code == GuidePageGeneration.HTML)
if (code == GuidePageGeneration.NULL)
return null;
if (code == GuidePageGeneration.HTML)
return "html";
if (code == GuidePageGeneration.MARKDOWN)
return "markdown";
@ -11543,7 +11547,7 @@ public class ImplementationGuide extends MetadataResource {
if (code == GuidePageGeneration.GENERATED)
return "generated";
return "?";
}
}
public String toSystem(GuidePageGeneration code) {
return code.getSystem();
@ -11824,7 +11828,9 @@ public class ImplementationGuide extends MetadataResource {
}
public String toCode(GuideParameterCode code) {
if (code == GuideParameterCode.APPLY)
if (code == GuideParameterCode.NULL)
return null;
if (code == GuideParameterCode.APPLY)
return "apply";
if (code == GuideParameterCode.PATHRESOURCE)
return "path-resource";
@ -11845,7 +11851,7 @@ public class ImplementationGuide extends MetadataResource {
if (code == GuideParameterCode.HTMLTEMPLATE)
return "html-template";
return "?";
}
}
public String toSystem(GuideParameterCode code) {
return code.getSystem();

View File

@ -215,7 +215,9 @@ public class Invoice extends DomainResource {
}
public String toCode(InvoiceStatus code) {
if (code == InvoiceStatus.DRAFT)
if (code == InvoiceStatus.NULL)
return null;
if (code == InvoiceStatus.DRAFT)
return "draft";
if (code == InvoiceStatus.ISSUED)
return "issued";
@ -226,7 +228,7 @@ public class Invoice extends DomainResource {
if (code == InvoiceStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(InvoiceStatus code) {
return code.getSystem();
@ -415,7 +417,9 @@ public class Invoice extends DomainResource {
}
public String toCode(InvoicePriceComponentType code) {
if (code == InvoicePriceComponentType.BASE)
if (code == InvoicePriceComponentType.NULL)
return null;
if (code == InvoicePriceComponentType.BASE)
return "base";
if (code == InvoicePriceComponentType.SURCHARGE)
return "surcharge";
@ -428,7 +432,7 @@ public class Invoice extends DomainResource {
if (code == InvoicePriceComponentType.INFORMATIONAL)
return "informational";
return "?";
}
}
public String toSystem(InvoicePriceComponentType code) {
return code.getSystem();

View File

@ -179,14 +179,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

@ -176,14 +176,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();
@ -319,14 +321,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

@ -179,14 +179,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();
@ -304,12 +306,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();
@ -514,7 +518,9 @@ public class Location 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";
@ -529,7 +535,7 @@ public class Location extends DomainResource {
if (code == DaysOfWeek.SUN)
return "sun";
return "?";
}
}
public String toSystem(DaysOfWeek code) {
return code.getSystem();

View File

@ -177,14 +177,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();
@ -338,7 +340,9 @@ 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.SUBJECTLIST)
return "subject-list";
@ -347,7 +351,7 @@ public class MeasureReport extends DomainResource {
if (code == MeasureReportType.DATACOLLECTION)
return "data-collection";
return "?";
}
}
public String toSystem(MeasureReportType code) {
return code.getSystem();

View File

@ -279,7 +279,9 @@ public class Media extends DomainResource {
}
public String toCode(MediaStatus code) {
if (code == MediaStatus.PREPARATION)
if (code == MediaStatus.NULL)
return null;
if (code == MediaStatus.PREPARATION)
return "preparation";
if (code == MediaStatus.INPROGRESS)
return "in-progress";
@ -296,7 +298,7 @@ public class Media extends DomainResource {
if (code == MediaStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(MediaStatus code) {
return code.getSystem();

View File

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

View File

@ -258,7 +258,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.NOTDONE)
return "not-done";
@ -273,7 +275,7 @@ public class MedicationAdministration extends DomainResource {
if (code == MedicationAdministrationStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(MedicationAdministrationStatus code) {
return code.getSystem();

View File

@ -295,7 +295,9 @@ public class MedicationDispense extends DomainResource {
}
public String toCode(MedicationDispenseStatus code) {
if (code == MedicationDispenseStatus.PREPARATION)
if (code == MedicationDispenseStatus.NULL)
return null;
if (code == MedicationDispenseStatus.PREPARATION)
return "preparation";
if (code == MedicationDispenseStatus.INPROGRESS)
return "in-progress";
@ -314,7 +316,7 @@ public class MedicationDispense extends DomainResource {
if (code == MedicationDispenseStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(MedicationDispenseStatus code) {
return code.getSystem();

View File

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

View File

@ -281,7 +281,9 @@ public class MedicationRequest extends DomainResource {
}
public String toCode(MedicationRequestStatus code) {
if (code == MedicationRequestStatus.ACTIVE)
if (code == MedicationRequestStatus.NULL)
return null;
if (code == MedicationRequestStatus.ACTIVE)
return "active";
if (code == MedicationRequestStatus.ONHOLD)
return "on-hold";
@ -298,7 +300,7 @@ public class MedicationRequest extends DomainResource {
if (code == MedicationRequestStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(MedicationRequestStatus code) {
return code.getSystem();
@ -530,7 +532,9 @@ public class MedicationRequest extends DomainResource {
}
public String toCode(MedicationRequestIntent code) {
if (code == MedicationRequestIntent.PROPOSAL)
if (code == MedicationRequestIntent.NULL)
return null;
if (code == MedicationRequestIntent.PROPOSAL)
return "proposal";
if (code == MedicationRequestIntent.PLAN)
return "plan";
@ -547,7 +551,7 @@ public class MedicationRequest extends DomainResource {
if (code == MedicationRequestIntent.OPTION)
return "option";
return "?";
}
}
public String toSystem(MedicationRequestIntent code) {
return code.getSystem();
@ -700,7 +704,9 @@ public class MedicationRequest extends DomainResource {
}
public String toCode(MedicationRequestPriority code) {
if (code == MedicationRequestPriority.ROUTINE)
if (code == MedicationRequestPriority.NULL)
return null;
if (code == MedicationRequestPriority.ROUTINE)
return "routine";
if (code == MedicationRequestPriority.URGENT)
return "urgent";
@ -709,7 +715,7 @@ public class MedicationRequest extends DomainResource {
if (code == MedicationRequestPriority.STAT)
return "stat";
return "?";
}
}
public String toSystem(MedicationRequestPriority code) {
return code.getSystem();

View File

@ -289,7 +289,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";
@ -306,7 +308,7 @@ public class MedicationStatement extends DomainResource {
if (code == MedicationStatementStatus.NOTTAKEN)
return "not-taken";
return "?";
}
}
public String toSystem(MedicationStatementStatus code) {
return code.getSystem();

View File

@ -188,14 +188,16 @@ public class MessageDefinition extends MetadataResource {
}
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();
@ -346,7 +348,9 @@ public class MessageDefinition extends MetadataResource {
}
public String toCode(MessageheaderResponseRequest code) {
if (code == MessageheaderResponseRequest.ALWAYS)
if (code == MessageheaderResponseRequest.NULL)
return null;
if (code == MessageheaderResponseRequest.ALWAYS)
return "always";
if (code == MessageheaderResponseRequest.ONERROR)
return "on-error";
@ -355,7 +359,7 @@ public class MessageDefinition extends MetadataResource {
if (code == MessageheaderResponseRequest.ONSUCCESS)
return "on-success";
return "?";
}
}
public String toSystem(MessageheaderResponseRequest code) {
return code.getSystem();

View File

@ -183,14 +183,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

@ -177,14 +177,16 @@ public class MolecularSequence 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();
@ -299,12 +301,14 @@ public class MolecularSequence extends DomainResource {
}
public String toCode(OrientationType code) {
if (code == OrientationType.SENSE)
if (code == OrientationType.NULL)
return null;
if (code == OrientationType.SENSE)
return "sense";
if (code == OrientationType.ANTISENSE)
return "antisense";
return "?";
}
}
public String toSystem(OrientationType code) {
return code.getSystem();
@ -419,12 +423,14 @@ public class MolecularSequence extends DomainResource {
}
public String toCode(StrandType code) {
if (code == StrandType.WATSON)
if (code == StrandType.NULL)
return null;
if (code == StrandType.WATSON)
return "watson";
if (code == StrandType.CRICK)
return "crick";
return "?";
}
}
public String toSystem(StrandType code) {
return code.getSystem();
@ -557,14 +563,16 @@ public class MolecularSequence extends DomainResource {
}
public String toCode(QualityType code) {
if (code == QualityType.INDEL)
if (code == QualityType.NULL)
return null;
if (code == QualityType.INDEL)
return "indel";
if (code == QualityType.SNP)
return "snp";
if (code == QualityType.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(QualityType code) {
return code.getSystem();
@ -737,7 +745,9 @@ public class MolecularSequence extends DomainResource {
}
public String toCode(RepositoryType code) {
if (code == RepositoryType.DIRECTLINK)
if (code == RepositoryType.NULL)
return null;
if (code == RepositoryType.DIRECTLINK)
return "directlink";
if (code == RepositoryType.OPENAPI)
return "openapi";
@ -748,7 +758,7 @@ public class MolecularSequence extends DomainResource {
if (code == RepositoryType.OTHER)
return "other";
return "?";
}
}
public String toSystem(RepositoryType code) {
return code.getSystem();

View File

@ -186,14 +186,16 @@ public class NamingSystem extends MetadataResource {
}
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();
@ -347,7 +349,9 @@ public class NamingSystem extends MetadataResource {
}
public String toCode(NamingSystemIdentifierType code) {
if (code == NamingSystemIdentifierType.NULL)
if (code == NamingSystemIdentifierType.NULL)
return null;
if (code == NamingSystemIdentifierType.NULL)
return null;
if (code == NamingSystemIdentifierType.OID)
return "oid";
@ -358,7 +362,7 @@ public class NamingSystem extends MetadataResource {
if (code == NamingSystemIdentifierType.OTHER)
return "other";
return "?";
}
}
public String toSystem(NamingSystemIdentifierType code) {
return code.getSystem();

View File

@ -198,7 +198,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";
@ -207,7 +209,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

@ -259,7 +259,9 @@ public class NutritionOrder extends DomainResource {
}
public String toCode(NutritionOrderStatus code) {
if (code == NutritionOrderStatus.DRAFT)
if (code == NutritionOrderStatus.NULL)
return null;
if (code == NutritionOrderStatus.DRAFT)
return "draft";
if (code == NutritionOrderStatus.ACTIVE)
return "active";
@ -274,7 +276,7 @@ public class NutritionOrder extends DomainResource {
if (code == NutritionOrderStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(NutritionOrderStatus code) {
return code.getSystem();
@ -528,7 +530,9 @@ public class NutritionOrder extends DomainResource {
}
public String toCode(NutritiionOrderIntent code) {
if (code == NutritiionOrderIntent.PROPOSAL)
if (code == NutritiionOrderIntent.NULL)
return null;
if (code == NutritiionOrderIntent.PROPOSAL)
return "proposal";
if (code == NutritiionOrderIntent.PLAN)
return "plan";
@ -547,7 +551,7 @@ public class NutritionOrder extends DomainResource {
if (code == NutritiionOrderIntent.OPTION)
return "option";
return "?";
}
}
public String toSystem(NutritiionOrderIntent code) {
return code.getSystem();

View File

@ -283,7 +283,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";
@ -300,7 +302,7 @@ public class Observation extends DomainResource {
if (code == ObservationStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(ObservationStatus code) {
return code.getSystem();

View File

@ -324,7 +324,9 @@ public class ObservationDefinition extends DomainResource {
}
public String toCode(ObservationDataType code) {
if (code == ObservationDataType.QUANTITY)
if (code == ObservationDataType.NULL)
return null;
if (code == ObservationDataType.QUANTITY)
return "Quantity";
if (code == ObservationDataType.CODEABLECONCEPT)
return "CodeableConcept";
@ -347,7 +349,7 @@ public class ObservationDefinition extends DomainResource {
if (code == ObservationDataType.PERIOD)
return "Period";
return "?";
}
}
public String toSystem(ObservationDataType code) {
return code.getSystem();
@ -481,14 +483,16 @@ public class ObservationDefinition extends DomainResource {
}
public String toCode(ObservationRangeCategory code) {
if (code == ObservationRangeCategory.REFERENCE)
if (code == ObservationRangeCategory.NULL)
return null;
if (code == ObservationRangeCategory.REFERENCE)
return "reference";
if (code == ObservationRangeCategory.CRITICAL)
return "critical";
if (code == ObservationRangeCategory.ABSOLUTE)
return "absolute";
return "?";
}
}
public String toSystem(ObservationRangeCategory code) {
return code.getSystem();

View File

@ -169,12 +169,14 @@ public class OperationDefinition extends MetadataResource {
}
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();
@ -289,12 +291,14 @@ public class OperationDefinition extends MetadataResource {
}
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

@ -196,7 +196,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";
@ -205,7 +207,7 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
if (code == IssueSeverity.INFORMATION)
return "information";
return "?";
}
}
public String toSystem(IssueSeverity code) {
return code.getSystem();
@ -865,7 +867,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";
@ -928,7 +932,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

@ -156,12 +156,14 @@ public class ParameterDefinition extends Type implements ICompositeType {
}
public String toCode(ParameterUse code) {
if (code == ParameterUse.IN)
if (code == ParameterUse.NULL)
return null;
if (code == ParameterUse.IN)
return "in";
if (code == ParameterUse.OUT)
return "out";
return "?";
}
}
public String toSystem(ParameterUse code) {
return code.getSystem();

View File

@ -208,7 +208,9 @@ public class Patient extends DomainResource {
}
public String toCode(LinkType code) {
if (code == LinkType.REPLACEDBY)
if (code == LinkType.NULL)
return null;
if (code == LinkType.REPLACEDBY)
return "replaced-by";
if (code == LinkType.REPLACES)
return "replaces";
@ -217,7 +219,7 @@ public class Patient extends DomainResource {
if (code == LinkType.SEEALSO)
return "seealso";
return "?";
}
}
public String toSystem(LinkType code) {
return code.getSystem();

View File

@ -192,7 +192,9 @@ public class PaymentNotice extends DomainResource {
}
public String toCode(PaymentNoticeStatus code) {
if (code == PaymentNoticeStatus.ACTIVE)
if (code == PaymentNoticeStatus.NULL)
return null;
if (code == PaymentNoticeStatus.ACTIVE)
return "active";
if (code == PaymentNoticeStatus.CANCELLED)
return "cancelled";
@ -201,7 +203,7 @@ public class PaymentNotice extends DomainResource {
if (code == PaymentNoticeStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(PaymentNoticeStatus code) {
return code.getSystem();

View File

@ -199,7 +199,9 @@ public class PaymentReconciliation extends DomainResource {
}
public String toCode(PaymentReconciliationStatus code) {
if (code == PaymentReconciliationStatus.ACTIVE)
if (code == PaymentReconciliationStatus.NULL)
return null;
if (code == PaymentReconciliationStatus.ACTIVE)
return "active";
if (code == PaymentReconciliationStatus.CANCELLED)
return "cancelled";
@ -208,7 +210,7 @@ public class PaymentReconciliation extends DomainResource {
if (code == PaymentReconciliationStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(PaymentReconciliationStatus code) {
return code.getSystem();

View File

@ -196,7 +196,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";
@ -205,7 +207,7 @@ public class Person extends DomainResource {
if (code == IdentityAssuranceLevel.LEVEL4)
return "level4";
return "?";
}
}
public String toSystem(IdentityAssuranceLevel code) {
return code.getSystem();

View File

@ -206,7 +206,9 @@ public class PlanDefinition extends MetadataResource {
}
public String toCode(RequestPriority code) {
if (code == RequestPriority.ROUTINE)
if (code == RequestPriority.NULL)
return null;
if (code == RequestPriority.ROUTINE)
return "routine";
if (code == RequestPriority.URGENT)
return "urgent";
@ -215,7 +217,7 @@ public class PlanDefinition extends MetadataResource {
if (code == RequestPriority.STAT)
return "stat";
return "?";
}
}
public String toSystem(RequestPriority code) {
return code.getSystem();
@ -348,14 +350,16 @@ public class PlanDefinition extends MetadataResource {
}
public String toCode(ActionConditionKind code) {
if (code == ActionConditionKind.APPLICABILITY)
if (code == ActionConditionKind.NULL)
return null;
if (code == ActionConditionKind.APPLICABILITY)
return "applicability";
if (code == ActionConditionKind.START)
return "start";
if (code == ActionConditionKind.STOP)
return "stop";
return "?";
}
}
public String toSystem(ActionConditionKind code) {
return code.getSystem();
@ -596,7 +600,9 @@ public class PlanDefinition extends MetadataResource {
}
public String toCode(ActionRelationshipType code) {
if (code == ActionRelationshipType.BEFORESTART)
if (code == ActionRelationshipType.NULL)
return null;
if (code == ActionRelationshipType.BEFORESTART)
return "before-start";
if (code == ActionRelationshipType.BEFORE)
return "before";
@ -615,7 +621,7 @@ public class PlanDefinition extends MetadataResource {
if (code == ActionRelationshipType.AFTEREND)
return "after-end";
return "?";
}
}
public String toSystem(ActionRelationshipType code) {
return code.getSystem();
@ -766,7 +772,9 @@ public class PlanDefinition extends MetadataResource {
}
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";
@ -775,7 +783,7 @@ public class PlanDefinition extends MetadataResource {
if (code == ActionParticipantType.DEVICE)
return "device";
return "?";
}
}
public String toSystem(ActionParticipantType code) {
return code.getSystem();
@ -919,14 +927,16 @@ public class PlanDefinition extends MetadataResource {
}
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();
@ -1115,7 +1125,9 @@ public class PlanDefinition extends MetadataResource {
}
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";
@ -1128,7 +1140,7 @@ public class PlanDefinition extends MetadataResource {
if (code == ActionSelectionBehavior.ONEORMORE)
return "one-or-more";
return "?";
}
}
public String toSystem(ActionSelectionBehavior code) {
return code.getSystem();
@ -1265,14 +1277,16 @@ public class PlanDefinition extends MetadataResource {
}
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();
@ -1393,12 +1407,14 @@ public class PlanDefinition extends MetadataResource {
}
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();
@ -1513,12 +1529,14 @@ public class PlanDefinition extends MetadataResource {
}
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

@ -248,7 +248,9 @@ public class PractitionerRole 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";
@ -263,7 +265,7 @@ public class PractitionerRole extends DomainResource {
if (code == DaysOfWeek.SUN)
return "sun";
return "?";
}
}
public String toSystem(DaysOfWeek code) {
return code.getSystem();

View File

@ -278,7 +278,9 @@ public class Procedure extends DomainResource {
}
public String toCode(ProcedureStatus code) {
if (code == ProcedureStatus.PREPARATION)
if (code == ProcedureStatus.NULL)
return null;
if (code == ProcedureStatus.PREPARATION)
return "preparation";
if (code == ProcedureStatus.INPROGRESS)
return "in-progress";
@ -295,7 +297,7 @@ public class Procedure extends DomainResource {
if (code == ProcedureStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(ProcedureStatus code) {
return code.getSystem();

View File

@ -227,7 +227,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";
@ -238,7 +240,7 @@ public class Provenance extends DomainResource {
if (code == ProvenanceEntityRole.REMOVAL)
return "removal";
return "?";
}
}
public String toSystem(ProvenanceEntityRole code) {
return code.getSystem();

View File

@ -194,7 +194,9 @@ public class Quantity extends Type implements ICompositeType, ICoding {
}
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 "<=";
@ -203,7 +205,7 @@ public class Quantity extends Type implements ICompositeType, ICoding {
if (code == QuantityComparator.GREATER_THAN)
return ">";
return "?";
}
}
public String toSystem(QuantityComparator code) {
return code.getSystem();

View File

@ -451,7 +451,9 @@ public class Questionnaire extends MetadataResource {
}
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";
@ -486,7 +488,7 @@ public class Questionnaire extends MetadataResource {
if (code == QuestionnaireItemType.QUANTITY)
return "quantity";
return "?";
}
}
public String toSystem(QuestionnaireItemType code) {
return code.getSystem();
@ -698,7 +700,9 @@ public class Questionnaire extends MetadataResource {
}
public String toCode(QuestionnaireItemOperator code) {
if (code == QuestionnaireItemOperator.EXISTS)
if (code == QuestionnaireItemOperator.NULL)
return null;
if (code == QuestionnaireItemOperator.EXISTS)
return "exists";
if (code == QuestionnaireItemOperator.EQUAL)
return "=";
@ -713,7 +717,7 @@ public class Questionnaire extends MetadataResource {
if (code == QuestionnaireItemOperator.LESS_OR_EQUAL)
return "<=";
return "?";
}
}
public String toSystem(QuestionnaireItemOperator code) {
return code.getSystem();
@ -828,12 +832,14 @@ public class Questionnaire extends MetadataResource {
}
public String toCode(EnableWhenBehavior code) {
if (code == EnableWhenBehavior.ALL)
if (code == EnableWhenBehavior.NULL)
return null;
if (code == EnableWhenBehavior.ALL)
return "all";
if (code == EnableWhenBehavior.ANY)
return "any";
return "?";
}
}
public String toSystem(EnableWhenBehavior code) {
return code.getSystem();

View File

@ -219,7 +219,9 @@ 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";
@ -230,7 +232,7 @@ public class QuestionnaireResponse extends DomainResource {
if (code == QuestionnaireResponseStatus.STOPPED)
return "stopped";
return "?";
}
}
public String toSystem(QuestionnaireResponseStatus code) {
return code.getSystem();

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