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,6 +213,8 @@ public class Account extends DomainResource {
}
public String toCode(AccountStatus code) {
if (code == AccountStatus.NULL)
return null;
if (code == AccountStatus.ACTIVE)
return "active";
if (code == AccountStatus.INACTIVE)

View File

@ -407,6 +407,8 @@ public class ActivityDefinition extends MetadataResource {
}
public String toCode(ActivityDefinitionKind code) {
if (code == ActivityDefinitionKind.NULL)
return null;
if (code == ActivityDefinitionKind.APPOINTMENT)
return "Appointment";
if (code == ActivityDefinitionKind.APPOINTMENTRESPONSE)
@ -692,6 +694,8 @@ public class ActivityDefinition extends MetadataResource {
}
public String toCode(RequestIntent code) {
if (code == RequestIntent.NULL)
return null;
if (code == RequestIntent.PROPOSAL)
return "proposal";
if (code == RequestIntent.PLAN)
@ -864,6 +868,8 @@ public class ActivityDefinition extends MetadataResource {
}
public String toCode(RequestPriority code) {
if (code == RequestPriority.NULL)
return null;
if (code == RequestPriority.ROUTINE)
return "routine";
if (code == RequestPriority.URGENT)
@ -1024,6 +1030,8 @@ public class ActivityDefinition extends MetadataResource {
}
public String toCode(ActivityParticipantType code) {
if (code == ActivityParticipantType.NULL)
return null;
if (code == ActivityParticipantType.PATIENT)
return "patient";
if (code == ActivityParticipantType.PRACTITIONER)

View File

@ -215,6 +215,8 @@ public class Address extends Type implements ICompositeType {
}
public String toCode(AddressUse code) {
if (code == AddressUse.NULL)
return null;
if (code == AddressUse.HOME)
return "home";
if (code == AddressUse.WORK)
@ -359,6 +361,8 @@ public class Address extends Type implements ICompositeType {
}
public String toCode(AddressType code) {
if (code == AddressType.NULL)
return null;
if (code == AddressType.POSTAL)
return "postal";
if (code == AddressType.PHYSICAL)

View File

@ -162,6 +162,8 @@ public class AdverseEvent extends DomainResource {
}
public String toCode(AdverseEventActuality code) {
if (code == AdverseEventActuality.NULL)
return null;
if (code == AdverseEventActuality.ACTUAL)
return "actual";
if (code == AdverseEventActuality.POTENTIAL)

View File

@ -165,6 +165,8 @@ public class AllergyIntolerance extends DomainResource {
}
public String toCode(AllergyIntoleranceType code) {
if (code == AllergyIntoleranceType.NULL)
return null;
if (code == AllergyIntoleranceType.ALLERGY)
return "allergy";
if (code == AllergyIntoleranceType.INTOLERANCE)
@ -328,6 +330,8 @@ public class AllergyIntolerance extends DomainResource {
}
public String toCode(AllergyIntoleranceCategory code) {
if (code == AllergyIntoleranceCategory.NULL)
return null;
if (code == AllergyIntoleranceCategory.FOOD)
return "food";
if (code == AllergyIntoleranceCategory.MEDICATION)
@ -472,6 +476,8 @@ public class AllergyIntolerance extends DomainResource {
}
public String toCode(AllergyIntoleranceCriticality code) {
if (code == AllergyIntoleranceCriticality.NULL)
return null;
if (code == AllergyIntoleranceCriticality.LOW)
return "low";
if (code == AllergyIntoleranceCriticality.HIGH)
@ -612,6 +618,8 @@ public class AllergyIntolerance extends DomainResource {
}
public String toCode(AllergyIntoleranceSeverity code) {
if (code == AllergyIntoleranceSeverity.NULL)
return null;
if (code == AllergyIntoleranceSeverity.MILD)
return "mild";
if (code == AllergyIntoleranceSeverity.MODERATE)

View File

@ -315,6 +315,8 @@ public class Appointment extends DomainResource {
}
public String toCode(AppointmentStatus code) {
if (code == AppointmentStatus.NULL)
return null;
if (code == AppointmentStatus.PROPOSED)
return "proposed";
if (code == AppointmentStatus.PENDING)
@ -471,6 +473,8 @@ public class Appointment extends DomainResource {
}
public String toCode(ParticipantRequired code) {
if (code == ParticipantRequired.NULL)
return null;
if (code == ParticipantRequired.REQUIRED)
return "required";
if (code == ParticipantRequired.OPTIONAL)
@ -633,6 +637,8 @@ public class Appointment extends DomainResource {
}
public String toCode(ParticipationStatus code) {
if (code == ParticipationStatus.NULL)
return null;
if (code == ParticipationStatus.ACCEPTED)
return "accepted";
if (code == ParticipationStatus.DECLINED)

View File

@ -197,6 +197,8 @@ public class AppointmentResponse extends DomainResource {
}
public String toCode(ParticipantStatus code) {
if (code == ParticipantStatus.NULL)
return null;
if (code == ParticipantStatus.ACCEPTED)
return "accepted";
if (code == ParticipantStatus.DECLINED)

View File

@ -215,6 +215,8 @@ public class AuditEvent extends DomainResource {
}
public String toCode(AuditEventAction code) {
if (code == AuditEventAction.NULL)
return null;
if (code == AuditEventAction.C)
return "C";
if (code == AuditEventAction.R)
@ -380,6 +382,8 @@ public class AuditEvent extends DomainResource {
}
public String toCode(AuditEventOutcome code) {
if (code == AuditEventOutcome.NULL)
return null;
if (code == AuditEventOutcome._0)
return "0";
if (code == AuditEventOutcome._4)
@ -558,6 +562,8 @@ public class AuditEvent extends DomainResource {
}
public String toCode(AuditEventAgentNetworkType code) {
if (code == AuditEventAgentNetworkType.NULL)
return null;
if (code == AuditEventAgentNetworkType._1)
return "1";
if (code == AuditEventAgentNetworkType._2)

View File

@ -221,6 +221,8 @@ public class BiologicallyDerivedProduct extends DomainResource {
}
public String toCode(BiologicallyDerivedProductCategory code) {
if (code == BiologicallyDerivedProductCategory.NULL)
return null;
if (code == BiologicallyDerivedProductCategory.ORGAN)
return "organ";
if (code == BiologicallyDerivedProductCategory.TISSUE)
@ -350,6 +352,8 @@ public class BiologicallyDerivedProduct extends DomainResource {
}
public String toCode(BiologicallyDerivedProductStatus code) {
if (code == BiologicallyDerivedProductStatus.NULL)
return null;
if (code == BiologicallyDerivedProductStatus.AVAILABLE)
return "available";
if (code == BiologicallyDerivedProductStatus.UNAVAILABLE)
@ -494,6 +498,8 @@ public class BiologicallyDerivedProduct extends DomainResource {
}
public String toCode(BiologicallyDerivedProductStorageScale code) {
if (code == BiologicallyDerivedProductStorageScale.NULL)
return null;
if (code == BiologicallyDerivedProductStorageScale.FARENHEIT)
return "farenheit";
if (code == BiologicallyDerivedProductStorageScale.CELSIUS)

View File

@ -294,6 +294,8 @@ public class Bundle extends Resource implements IBaseBundle {
}
public String toCode(BundleType code) {
if (code == BundleType.NULL)
return null;
if (code == BundleType.DOCUMENT)
return "document";
if (code == BundleType.MESSAGE)
@ -448,6 +450,8 @@ public class Bundle extends Resource implements IBaseBundle {
}
public String toCode(SearchEntryMode code) {
if (code == SearchEntryMode.NULL)
return null;
if (code == SearchEntryMode.MATCH)
return "match";
if (code == SearchEntryMode.INCLUDE)
@ -642,6 +646,8 @@ public class Bundle extends Resource implements IBaseBundle {
}
public String toCode(HTTPVerb code) {
if (code == HTTPVerb.NULL)
return null;
if (code == HTTPVerb.GET)
return "GET";
if (code == HTTPVerb.HEAD)

View File

@ -195,6 +195,8 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
}
public String toCode(CapabilityStatementKind code) {
if (code == CapabilityStatementKind.NULL)
return null;
if (code == CapabilityStatementKind.INSTANCE)
return "instance";
if (code == CapabilityStatementKind.CAPABILITY)
@ -317,6 +319,8 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
}
public String toCode(RestfulCapabilityMode code) {
if (code == RestfulCapabilityMode.NULL)
return null;
if (code == RestfulCapabilityMode.CLIENT)
return "client";
if (code == RestfulCapabilityMode.SERVER)
@ -563,6 +567,8 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
}
public String toCode(TypeRestfulInteraction code) {
if (code == TypeRestfulInteraction.NULL)
return null;
if (code == TypeRestfulInteraction.READ)
return "read";
if (code == TypeRestfulInteraction.VREAD)
@ -716,6 +722,8 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
}
public String toCode(ResourceVersionPolicy code) {
if (code == ResourceVersionPolicy.NULL)
return null;
if (code == ResourceVersionPolicy.NOVERSION)
return "no-version";
if (code == ResourceVersionPolicy.VERSIONED)
@ -876,6 +884,8 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
}
public String toCode(ConditionalReadStatus code) {
if (code == ConditionalReadStatus.NULL)
return null;
if (code == ConditionalReadStatus.NOTSUPPORTED)
return "not-supported";
if (code == ConditionalReadStatus.MODIFIEDSINCE)
@ -1019,6 +1029,8 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
}
public String toCode(ConditionalDeleteStatus code) {
if (code == ConditionalDeleteStatus.NULL)
return null;
if (code == ConditionalDeleteStatus.NOTSUPPORTED)
return "not-supported";
if (code == ConditionalDeleteStatus.SINGLE)
@ -1201,6 +1213,8 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
}
public String toCode(ReferenceHandlingPolicy code) {
if (code == ReferenceHandlingPolicy.NULL)
return null;
if (code == ReferenceHandlingPolicy.LITERAL)
return "literal";
if (code == ReferenceHandlingPolicy.LOGICAL)
@ -1363,6 +1377,8 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
}
public String toCode(SystemRestfulInteraction code) {
if (code == SystemRestfulInteraction.NULL)
return null;
if (code == SystemRestfulInteraction.TRANSACTION)
return "transaction";
if (code == SystemRestfulInteraction.BATCH)
@ -1487,6 +1503,8 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
}
public String toCode(EventCapabilityMode code) {
if (code == EventCapabilityMode.NULL)
return null;
if (code == EventCapabilityMode.SENDER)
return "sender";
if (code == EventCapabilityMode.RECEIVER)
@ -1607,6 +1625,8 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
}
public String toCode(DocumentMode code) {
if (code == DocumentMode.NULL)
return null;
if (code == DocumentMode.PRODUCER)
return "producer";
if (code == DocumentMode.CONSUMER)

View File

@ -260,6 +260,8 @@ public class CarePlan extends DomainResource {
}
public String toCode(CarePlanStatus code) {
if (code == CarePlanStatus.NULL)
return null;
if (code == CarePlanStatus.DRAFT)
return "draft";
if (code == CarePlanStatus.ACTIVE)
@ -426,6 +428,8 @@ public class CarePlan extends DomainResource {
}
public String toCode(CarePlanIntent code) {
if (code == CarePlanIntent.NULL)
return null;
if (code == CarePlanIntent.PROPOSAL)
return "proposal";
if (code == CarePlanIntent.PLAN)
@ -658,6 +662,8 @@ public class CarePlan extends DomainResource {
}
public String toCode(CarePlanActivityKind code) {
if (code == CarePlanActivityKind.NULL)
return null;
if (code == CarePlanActivityKind.APPOINTMENT)
return "Appointment";
if (code == CarePlanActivityKind.COMMUNICATIONREQUEST)
@ -920,6 +926,8 @@ public class CarePlan extends DomainResource {
}
public String toCode(CarePlanActivityStatus code) {
if (code == CarePlanActivityStatus.NULL)
return null;
if (code == CarePlanActivityStatus.NOTSTARTED)
return "not-started";
if (code == CarePlanActivityStatus.SCHEDULED)

View File

@ -216,6 +216,8 @@ public class CareTeam extends DomainResource {
}
public String toCode(CareTeamStatus code) {
if (code == CareTeamStatus.NULL)
return null;
if (code == CareTeamStatus.PROPOSED)
return "proposed";
if (code == CareTeamStatus.ACTIVE)

View File

@ -159,6 +159,8 @@ public class CatalogEntry extends DomainResource {
}
public String toCode(CatalogEntryRelationType code) {
if (code == CatalogEntryRelationType.NULL)
return null;
if (code == CatalogEntryRelationType.TRIGGERS)
return "triggers";
if (code == CatalogEntryRelationType.ISREPLACEDBY)

View File

@ -263,6 +263,8 @@ public class ChargeItem extends DomainResource {
}
public String toCode(ChargeItemStatus code) {
if (code == ChargeItemStatus.NULL)
return null;
if (code == ChargeItemStatus.PLANNED)
return "planned";
if (code == ChargeItemStatus.BILLABLE)

View File

@ -253,6 +253,8 @@ public class ChargeItemDefinition extends MetadataResource {
}
public String toCode(ChargeItemDefinitionPriceComponentType code) {
if (code == ChargeItemDefinitionPriceComponentType.NULL)
return null;
if (code == ChargeItemDefinitionPriceComponentType.BASE)
return "base";
if (code == ChargeItemDefinitionPriceComponentType.SURCHARGE)

View File

@ -198,6 +198,8 @@ public class Claim extends DomainResource {
}
public String toCode(ClaimStatus code) {
if (code == ClaimStatus.NULL)
return null;
if (code == ClaimStatus.ACTIVE)
return "active";
if (code == ClaimStatus.CANCELLED)
@ -342,6 +344,8 @@ public class Claim extends DomainResource {
}
public String toCode(Use code) {
if (code == Use.NULL)
return null;
if (code == Use.CLAIM)
return "claim";
if (code == Use.PREAUTHORIZATION)

View File

@ -199,6 +199,8 @@ public class ClaimResponse extends DomainResource {
}
public String toCode(ClaimResponseStatus code) {
if (code == ClaimResponseStatus.NULL)
return null;
if (code == ClaimResponseStatus.ACTIVE)
return "active";
if (code == ClaimResponseStatus.CANCELLED)
@ -343,6 +345,8 @@ public class ClaimResponse extends DomainResource {
}
public String toCode(Use code) {
if (code == Use.NULL)
return null;
if (code == Use.CLAIM)
return "claim";
if (code == Use.PREAUTHORIZATION)
@ -503,6 +507,8 @@ public class ClaimResponse extends DomainResource {
}
public String toCode(RemittanceOutcome code) {
if (code == RemittanceOutcome.NULL)
return null;
if (code == RemittanceOutcome.QUEUED)
return "queued";
if (code == RemittanceOutcome.COMPLETE)

View File

@ -182,6 +182,8 @@ public class ClinicalImpression extends DomainResource {
}
public String toCode(ClinicalImpressionStatus code) {
if (code == ClinicalImpressionStatus.NULL)
return null;
if (code == ClinicalImpressionStatus.INPROGRESS)
return "in-progress";
if (code == ClinicalImpressionStatus.COMPLETED)

View File

@ -216,6 +216,8 @@ public class CodeSystem extends MetadataResource {
}
public String toCode(CodeSystemHierarchyMeaning code) {
if (code == CodeSystemHierarchyMeaning.NULL)
return null;
if (code == CodeSystemHierarchyMeaning.GROUPEDBY)
return "grouped-by";
if (code == CodeSystemHierarchyMeaning.ISA)
@ -403,6 +405,8 @@ public class CodeSystem extends MetadataResource {
}
public String toCode(CodeSystemContentMode code) {
if (code == CodeSystemContentMode.NULL)
return null;
if (code == CodeSystemContentMode.NOTPRESENT)
return "not-present";
if (code == CodeSystemContentMode.EXAMPLE)
@ -667,6 +671,8 @@ public class CodeSystem extends MetadataResource {
}
public String toCode(FilterOperator code) {
if (code == FilterOperator.NULL)
return null;
if (code == FilterOperator.EQUAL)
return "=";
if (code == FilterOperator.ISA)
@ -894,6 +900,8 @@ public class CodeSystem extends MetadataResource {
}
public String toCode(PropertyType code) {
if (code == PropertyType.NULL)
return null;
if (code == PropertyType.CODE)
return "code";
if (code == PropertyType.CODING)

View File

@ -279,6 +279,8 @@ public class Communication extends DomainResource {
}
public String toCode(CommunicationStatus code) {
if (code == CommunicationStatus.NULL)
return null;
if (code == CommunicationStatus.PREPARATION)
return "preparation";
if (code == CommunicationStatus.INPROGRESS)
@ -449,6 +451,8 @@ public class Communication extends DomainResource {
}
public String toCode(CommunicationPriority code) {
if (code == CommunicationPriority.NULL)
return null;
if (code == CommunicationPriority.ROUTINE)
return "routine";
if (code == CommunicationPriority.URGENT)

View File

@ -259,6 +259,8 @@ public class CommunicationRequest extends DomainResource {
}
public String toCode(CommunicationRequestStatus code) {
if (code == CommunicationRequestStatus.NULL)
return null;
if (code == CommunicationRequestStatus.DRAFT)
return "draft";
if (code == CommunicationRequestStatus.ACTIVE)
@ -427,6 +429,8 @@ public class CommunicationRequest extends DomainResource {
}
public String toCode(CommunicationPriority code) {
if (code == CommunicationPriority.NULL)
return null;
if (code == CommunicationPriority.ROUTINE)
return "routine";
if (code == CommunicationPriority.URGENT)

View File

@ -217,6 +217,8 @@ public class CompartmentDefinition extends MetadataResource {
}
public String toCode(CompartmentType code) {
if (code == CompartmentType.NULL)
return null;
if (code == CompartmentType.PATIENT)
return "Patient";
if (code == CompartmentType.ENCOUNTER)

View File

@ -209,6 +209,8 @@ public class Composition extends DomainResource {
}
public String toCode(CompositionStatus code) {
if (code == CompositionStatus.NULL)
return null;
if (code == CompositionStatus.PRELIMINARY)
return "preliminary";
if (code == CompositionStatus.FINAL)
@ -405,6 +407,8 @@ public class Composition extends DomainResource {
}
public String toCode(DocumentConfidentiality code) {
if (code == DocumentConfidentiality.NULL)
return null;
if (code == DocumentConfidentiality.U)
return "U";
if (code == DocumentConfidentiality.L)
@ -571,6 +575,8 @@ public class Composition extends DomainResource {
}
public String toCode(CompositionAttestationMode code) {
if (code == CompositionAttestationMode.NULL)
return null;
if (code == CompositionAttestationMode.PERSONAL)
return "personal";
if (code == CompositionAttestationMode.PROFESSIONAL)
@ -732,6 +738,8 @@ public class Composition extends DomainResource {
}
public String toCode(DocumentRelationshipType code) {
if (code == DocumentRelationshipType.NULL)
return null;
if (code == DocumentRelationshipType.REPLACES)
return "replaces";
if (code == DocumentRelationshipType.TRANSFORMS)
@ -877,6 +885,8 @@ public class Composition extends DomainResource {
}
public String toCode(SectionMode code) {
if (code == SectionMode.NULL)
return null;
if (code == SectionMode.WORKING)
return "working";
if (code == SectionMode.SNAPSHOT)

View File

@ -185,6 +185,8 @@ public class ConceptMap extends MetadataResource {
}
public String toCode(ConceptMapGroupUnmappedMode code) {
if (code == ConceptMapGroupUnmappedMode.NULL)
return null;
if (code == ConceptMapGroupUnmappedMode.PROVIDED)
return "provided";
if (code == ConceptMapGroupUnmappedMode.FIXED)

View File

@ -234,6 +234,8 @@ public class Consent extends DomainResource {
}
public String toCode(ConsentState code) {
if (code == ConsentState.NULL)
return null;
if (code == ConsentState.DRAFT)
return "draft";
if (code == ConsentState.PROPOSED)
@ -362,6 +364,8 @@ public class Consent extends DomainResource {
}
public String toCode(ConsentProvisionType code) {
if (code == ConsentProvisionType.NULL)
return null;
if (code == ConsentProvisionType.DENY)
return "deny";
if (code == ConsentProvisionType.PERMIT)
@ -520,6 +524,8 @@ public class Consent extends DomainResource {
}
public String toCode(ConsentDataMeaning code) {
if (code == ConsentDataMeaning.NULL)
return null;
if (code == ConsentDataMeaning.INSTANCE)
return "instance";
if (code == ConsentDataMeaning.RELATED)

View File

@ -256,6 +256,8 @@ public class ContactPoint extends Type implements ICompositeType {
}
public String toCode(ContactPointSystem code) {
if (code == ContactPointSystem.NULL)
return null;
if (code == ContactPointSystem.PHONE)
return "phone";
if (code == ContactPointSystem.FAX)
@ -447,6 +449,8 @@ public class ContactPoint extends Type implements ICompositeType {
}
public String toCode(ContactPointUse code) {
if (code == ContactPointUse.NULL)
return null;
if (code == ContactPointUse.HOME)
return "home";
if (code == ContactPointUse.WORK)

View File

@ -450,6 +450,8 @@ public class Contract extends DomainResource {
}
public String toCode(ContractStatus code) {
if (code == ContractStatus.NULL)
return null;
if (code == ContractStatus.AMENDED)
return "amended";
if (code == ContractStatus.APPENDED)
@ -885,6 +887,8 @@ public class Contract extends DomainResource {
}
public String toCode(ContractPublicationStatus code) {
if (code == ContractPublicationStatus.NULL)
return null;
if (code == ContractPublicationStatus.AMENDED)
return "amended";
if (code == ContractPublicationStatus.APPENDED)

View File

@ -191,6 +191,8 @@ public class Contributor extends Type implements ICompositeType {
}
public String toCode(ContributorType code) {
if (code == ContributorType.NULL)
return null;
if (code == ContributorType.AUTHOR)
return "author";
if (code == ContributorType.EDITOR)

View File

@ -194,6 +194,8 @@ public class Coverage extends DomainResource {
}
public String toCode(CoverageStatus code) {
if (code == CoverageStatus.NULL)
return null;
if (code == CoverageStatus.ACTIVE)
return "active";
if (code == CoverageStatus.CANCELLED)

View File

@ -198,6 +198,8 @@ public class CoverageEligibilityRequest extends DomainResource {
}
public String toCode(EligibilityRequestStatus code) {
if (code == EligibilityRequestStatus.NULL)
return null;
if (code == EligibilityRequestStatus.ACTIVE)
return "active";
if (code == EligibilityRequestStatus.CANCELLED)
@ -362,6 +364,8 @@ public class CoverageEligibilityRequest extends DomainResource {
}
public String toCode(EligibilityRequestPurpose code) {
if (code == EligibilityRequestPurpose.NULL)
return null;
if (code == EligibilityRequestPurpose.AUTHREQUIREMENTS)
return "auth-requirements";
if (code == EligibilityRequestPurpose.BENEFITS)

View File

@ -197,6 +197,8 @@ public class CoverageEligibilityResponse extends DomainResource {
}
public String toCode(EligibilityResponseStatus code) {
if (code == EligibilityResponseStatus.NULL)
return null;
if (code == EligibilityResponseStatus.ACTIVE)
return "active";
if (code == EligibilityResponseStatus.CANCELLED)
@ -361,6 +363,8 @@ public class CoverageEligibilityResponse extends DomainResource {
}
public String toCode(EligibilityResponsePurpose code) {
if (code == EligibilityResponsePurpose.NULL)
return null;
if (code == EligibilityResponsePurpose.AUTHREQUIREMENTS)
return "auth-requirements";
if (code == EligibilityResponsePurpose.BENEFITS)

View File

@ -158,6 +158,8 @@ public class DataRequirement extends Type implements ICompositeType {
}
public String toCode(SortDirection code) {
if (code == SortDirection.NULL)
return null;
if (code == SortDirection.ASCENDING)
return "ascending";
if (code == SortDirection.DESCENDING)

View File

@ -285,6 +285,8 @@ public class DetectedIssue extends DomainResource {
}
public String toCode(DetectedIssueStatus code) {
if (code == DetectedIssueStatus.NULL)
return null;
if (code == DetectedIssueStatus.REGISTERED)
return "registered";
if (code == DetectedIssueStatus.PRELIMINARY)
@ -438,6 +440,8 @@ public class DetectedIssue extends DomainResource {
}
public String toCode(DetectedIssueSeverity code) {
if (code == DetectedIssueSeverity.NULL)
return null;
if (code == DetectedIssueSeverity.HIGH)
return "high";
if (code == DetectedIssueSeverity.MODERATE)

View File

@ -235,6 +235,8 @@ public class Device extends DomainResource {
}
public String toCode(UDIEntryType code) {
if (code == UDIEntryType.NULL)
return null;
if (code == UDIEntryType.BARCODE)
return "barcode";
if (code == UDIEntryType.RFID)
@ -402,6 +404,8 @@ public class Device extends DomainResource {
}
public String toCode(FHIRDeviceStatus code) {
if (code == FHIRDeviceStatus.NULL)
return null;
if (code == FHIRDeviceStatus.ACTIVE)
return "active";
if (code == FHIRDeviceStatus.INACTIVE)
@ -598,6 +602,8 @@ public class Device extends DomainResource {
}
public String toCode(DeviceNameType code) {
if (code == DeviceNameType.NULL)
return null;
if (code == DeviceNameType.UDILABELNAME)
return "udi-label-name";
if (code == DeviceNameType.USERFRIENDLYNAME)

View File

@ -230,6 +230,8 @@ public class DeviceDefinition extends DomainResource {
}
public String toCode(DeviceNameType code) {
if (code == DeviceNameType.NULL)
return null;
if (code == DeviceNameType.UDILABELNAME)
return "udi-label-name";
if (code == DeviceNameType.USERFRIENDLYNAME)

View File

@ -194,6 +194,8 @@ public class DeviceMetric extends DomainResource {
}
public String toCode(DeviceMetricOperationalStatus code) {
if (code == DeviceMetricOperationalStatus.NULL)
return null;
if (code == DeviceMetricOperationalStatus.ON)
return "on";
if (code == DeviceMetricOperationalStatus.OFF)
@ -426,6 +428,8 @@ public class DeviceMetric extends DomainResource {
}
public String toCode(DeviceMetricColor code) {
if (code == DeviceMetricColor.NULL)
return null;
if (code == DeviceMetricColor.BLACK)
return "black";
if (code == DeviceMetricColor.RED)
@ -595,6 +599,8 @@ public class DeviceMetric extends DomainResource {
}
public String toCode(DeviceMetricCategory code) {
if (code == DeviceMetricCategory.NULL)
return null;
if (code == DeviceMetricCategory.MEASUREMENT)
return "measurement";
if (code == DeviceMetricCategory.SETTING)
@ -755,6 +761,8 @@ public class DeviceMetric extends DomainResource {
}
public String toCode(DeviceMetricCalibrationType code) {
if (code == DeviceMetricCalibrationType.NULL)
return null;
if (code == DeviceMetricCalibrationType.UNSPECIFIED)
return "unspecified";
if (code == DeviceMetricCalibrationType.OFFSET)
@ -916,6 +924,8 @@ public class DeviceMetric extends DomainResource {
}
public String toCode(DeviceMetricCalibrationState code) {
if (code == DeviceMetricCalibrationState.NULL)
return null;
if (code == DeviceMetricCalibrationState.NOTCALIBRATED)
return "not-calibrated";
if (code == DeviceMetricCalibrationState.CALIBRATIONREQUIRED)

View File

@ -258,6 +258,8 @@ public class DeviceRequest extends DomainResource {
}
public String toCode(DeviceRequestStatus code) {
if (code == DeviceRequestStatus.NULL)
return null;
if (code == DeviceRequestStatus.DRAFT)
return "draft";
if (code == DeviceRequestStatus.ACTIVE)
@ -527,6 +529,8 @@ public class DeviceRequest extends DomainResource {
}
public String toCode(RequestIntent code) {
if (code == RequestIntent.NULL)
return null;
if (code == RequestIntent.PROPOSAL)
return "proposal";
if (code == RequestIntent.PLAN)
@ -699,6 +703,8 @@ public class DeviceRequest extends DomainResource {
}
public String toCode(RequestPriority code) {
if (code == RequestPriority.NULL)
return null;
if (code == RequestPriority.ROUTINE)
return "routine";
if (code == RequestPriority.URGENT)

View File

@ -230,6 +230,8 @@ public class DeviceUseStatement extends DomainResource {
}
public String toCode(DeviceUseStatementStatus code) {
if (code == DeviceUseStatementStatus.NULL)
return null;
if (code == DeviceUseStatementStatus.ACTIVE)
return "active";
if (code == DeviceUseStatementStatus.COMPLETED)

View File

@ -319,6 +319,8 @@ public class DiagnosticReport extends DomainResource {
}
public String toCode(DiagnosticReportStatus code) {
if (code == DiagnosticReportStatus.NULL)
return null;
if (code == DiagnosticReportStatus.REGISTERED)
return "registered";
if (code == DiagnosticReportStatus.PARTIAL)

View File

@ -207,6 +207,8 @@ public class DocumentReference extends DomainResource {
}
public String toCode(ReferredDocumentStatus code) {
if (code == ReferredDocumentStatus.NULL)
return null;
if (code == ReferredDocumentStatus.PRELIMINARY)
return "preliminary";
if (code == ReferredDocumentStatus.FINAL)
@ -368,6 +370,8 @@ public class DocumentReference extends DomainResource {
}
public String toCode(DocumentRelationshipType code) {
if (code == DocumentRelationshipType.NULL)
return null;
if (code == DocumentRelationshipType.REPLACES)
return "replaces";
if (code == DocumentRelationshipType.TRANSFORMS)

View File

@ -172,6 +172,8 @@ public class EffectEvidenceSynthesis extends MetadataResource {
}
public String toCode(ExposureState code) {
if (code == ExposureState.NULL)
return null;
if (code == ExposureState.EXPOSURE)
return "exposure";
if (code == ExposureState.EXPOSUREALTERNATIVE)

View File

@ -218,6 +218,8 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
}
public String toCode(PropertyRepresentation code) {
if (code == PropertyRepresentation.NULL)
return null;
if (code == PropertyRepresentation.XMLATTR)
return "xmlAttr";
if (code == PropertyRepresentation.XMLTEXT)
@ -403,6 +405,8 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
}
public String toCode(DiscriminatorType code) {
if (code == DiscriminatorType.NULL)
return null;
if (code == DiscriminatorType.VALUE)
return "value";
if (code == DiscriminatorType.EXISTS)
@ -550,6 +554,8 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
}
public String toCode(SlicingRules code) {
if (code == SlicingRules.NULL)
return null;
if (code == SlicingRules.CLOSED)
return "closed";
if (code == SlicingRules.OPEN)
@ -692,6 +698,8 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
}
public String toCode(AggregationMode code) {
if (code == AggregationMode.NULL)
return null;
if (code == AggregationMode.CONTAINED)
return "contained";
if (code == AggregationMode.REFERENCED)
@ -832,6 +840,8 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
}
public String toCode(ReferenceVersionRules code) {
if (code == ReferenceVersionRules.NULL)
return null;
if (code == ReferenceVersionRules.EITHER)
return "either";
if (code == ReferenceVersionRules.INDEPENDENT)
@ -955,6 +965,8 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
}
public String toCode(ConstraintSeverity code) {
if (code == ConstraintSeverity.NULL)
return null;
if (code == ConstraintSeverity.ERROR)
return "error";
if (code == ConstraintSeverity.WARNING)

View File

@ -289,6 +289,8 @@ public class Encounter extends DomainResource {
}
public String toCode(EncounterStatus code) {
if (code == EncounterStatus.NULL)
return null;
if (code == EncounterStatus.PLANNED)
return "planned";
if (code == EncounterStatus.ARRIVED)
@ -466,6 +468,8 @@ public class Encounter extends DomainResource {
}
public String toCode(EncounterLocationStatus code) {
if (code == EncounterLocationStatus.NULL)
return null;
if (code == EncounterLocationStatus.PLANNED)
return "planned";
if (code == EncounterLocationStatus.ACTIVE)

View File

@ -231,6 +231,8 @@ public class Endpoint extends DomainResource {
}
public String toCode(EndpointStatus code) {
if (code == EndpointStatus.NULL)
return null;
if (code == EndpointStatus.ACTIVE)
return "active";
if (code == EndpointStatus.SUSPENDED)

View File

@ -192,6 +192,8 @@ public class EnrollmentRequest extends DomainResource {
}
public String toCode(EnrollmentRequestStatus code) {
if (code == EnrollmentRequestStatus.NULL)
return null;
if (code == EnrollmentRequestStatus.ACTIVE)
return "active";
if (code == EnrollmentRequestStatus.CANCELLED)

View File

@ -195,6 +195,8 @@ public class EnrollmentResponse extends DomainResource {
}
public String toCode(EnrollmentResponseStatus code) {
if (code == EnrollmentResponseStatus.NULL)
return null;
if (code == EnrollmentResponseStatus.ACTIVE)
return "active";
if (code == EnrollmentResponseStatus.CANCELLED)

View File

@ -133,6 +133,8 @@ public class Enumerations {
}
public String toCode(AbstractType code) {
if (code == AbstractType.NULL)
return null;
if (code == AbstractType.TYPE)
return "Type";
if (code == AbstractType.ANY)
@ -286,6 +288,8 @@ public class Enumerations {
}
public String toCode(AdministrativeGender code) {
if (code == AdministrativeGender.NULL)
return null;
if (code == AdministrativeGender.MALE)
return "male";
if (code == AdministrativeGender.FEMALE)
@ -479,6 +483,8 @@ public class Enumerations {
}
public String toCode(AgeUnits code) {
if (code == AgeUnits.NULL)
return null;
if (code == AgeUnits.MIN)
return "min";
if (code == AgeUnits.H)
@ -649,6 +655,8 @@ public class Enumerations {
}
public String toCode(BindingStrength code) {
if (code == BindingStrength.NULL)
return null;
if (code == BindingStrength.REQUIRED)
return "required";
if (code == BindingStrength.EXTENSIBLE)
@ -930,6 +938,8 @@ public class Enumerations {
}
public String toCode(ConceptMapEquivalence code) {
if (code == ConceptMapEquivalence.NULL)
return null;
if (code == ConceptMapEquivalence.RELATEDTO)
return "relatedto";
if (code == ConceptMapEquivalence.EQUIVALENT)
@ -1305,6 +1315,8 @@ public class Enumerations {
}
public String toCode(DataAbsentReason code) {
if (code == DataAbsentReason.NULL)
return null;
if (code == DataAbsentReason.UNKNOWN)
return "unknown";
if (code == DataAbsentReason.ASKEDUNKNOWN)
@ -2605,6 +2617,8 @@ public class Enumerations {
}
public String toCode(DataType code) {
if (code == DataType.NULL)
return null;
if (code == DataType.ADDRESS)
return "Address";
if (code == DataType.AGE)
@ -2926,6 +2940,8 @@ public class Enumerations {
}
public String toCode(DefinitionResourceType code) {
if (code == DefinitionResourceType.NULL)
return null;
if (code == DefinitionResourceType.ACTIVITYDEFINITION)
return "ActivityDefinition";
if (code == DefinitionResourceType.EVENTDEFINITION)
@ -3069,6 +3085,8 @@ public class Enumerations {
}
public String toCode(DocumentReferenceStatus code) {
if (code == DocumentReferenceStatus.NULL)
return null;
if (code == DocumentReferenceStatus.CURRENT)
return "current";
if (code == DocumentReferenceStatus.SUPERSEDED)
@ -3773,6 +3791,8 @@ public class Enumerations {
}
public String toCode(EventResourceType code) {
if (code == EventResourceType.NULL)
return null;
if (code == EventResourceType.CHARGEITEM)
return "ChargeItem";
if (code == EventResourceType.CLAIMRESPONSE)
@ -8085,6 +8105,8 @@ public class Enumerations {
}
public String toCode(FHIRAllTypes code) {
if (code == FHIRAllTypes.NULL)
return null;
if (code == FHIRAllTypes.ADDRESS)
return "Address";
if (code == FHIRAllTypes.AGE)
@ -12719,6 +12741,8 @@ public class Enumerations {
}
public String toCode(FHIRDefinedType code) {
if (code == FHIRDefinedType.NULL)
return null;
if (code == FHIRDefinedType.ADDRESS)
return "Address";
if (code == FHIRDefinedType.AGE)
@ -14340,6 +14364,8 @@ public class Enumerations {
}
public String toCode(FHIRVersion code) {
if (code == FHIRVersion.NULL)
return null;
if (code == FHIRVersion._0_01)
return "0.01";
if (code == FHIRVersion._0_05)
@ -14696,6 +14722,8 @@ public class Enumerations {
}
public String toCode(KnowledgeResourceType code) {
if (code == KnowledgeResourceType.NULL)
return null;
if (code == KnowledgeResourceType.ACTIVITYDEFINITION)
return "ActivityDefinition";
if (code == KnowledgeResourceType.CODESYSTEM)
@ -14791,6 +14819,8 @@ public class Enumerations {
}
public String toCode(MessageEvent code) {
if (code == MessageEvent.NULL)
return null;
return "?";
}
@ -14922,6 +14952,8 @@ public class Enumerations {
}
public String toCode(NoteType code) {
if (code == NoteType.NULL)
return null;
if (code == NoteType.DISPLAY)
return "display";
if (code == NoteType.PRINT)
@ -15081,6 +15113,8 @@ public class Enumerations {
}
public String toCode(PublicationStatus code) {
if (code == PublicationStatus.NULL)
return null;
if (code == PublicationStatus.DRAFT)
return "draft";
if (code == PublicationStatus.ACTIVE)
@ -15240,6 +15274,8 @@ public class Enumerations {
}
public String toCode(RemittanceOutcome code) {
if (code == RemittanceOutcome.NULL)
return null;
if (code == RemittanceOutcome.QUEUED)
return "queued";
if (code == RemittanceOutcome.COMPLETE)
@ -15599,6 +15635,8 @@ public class Enumerations {
}
public String toCode(RequestResourceType code) {
if (code == RequestResourceType.NULL)
return null;
if (code == RequestResourceType.APPOINTMENT)
return "Appointment";
if (code == RequestResourceType.APPOINTMENTRESPONSE)
@ -18644,6 +18682,8 @@ public class Enumerations {
}
public String toCode(ResourceType code) {
if (code == ResourceType.NULL)
return null;
if (code == ResourceType.ACCOUNT)
return "Account";
if (code == ResourceType.ACTIVITYDEFINITION)
@ -19186,6 +19226,8 @@ public class Enumerations {
}
public String toCode(SearchParamType code) {
if (code == SearchParamType.NULL)
return null;
if (code == SearchParamType.NUMBER)
return "number";
if (code == SearchParamType.DATE)
@ -19390,6 +19432,8 @@ public class Enumerations {
}
public String toCode(SpecialValues code) {
if (code == SpecialValues.NULL)
return null;
if (code == SpecialValues.TRUE)
return "true";
if (code == SpecialValues.FALSE)

View File

@ -259,6 +259,8 @@ public class EpisodeOfCare extends DomainResource {
}
public String toCode(EpisodeOfCareStatus code) {
if (code == EpisodeOfCareStatus.NULL)
return null;
if (code == EpisodeOfCareStatus.PLANNED)
return "planned";
if (code == EpisodeOfCareStatus.WAITLIST)

View File

@ -184,6 +184,8 @@ public class EvidenceVariable extends MetadataResource {
}
public String toCode(EvidenceVariableType code) {
if (code == EvidenceVariableType.NULL)
return null;
if (code == EvidenceVariableType.DICHOTOMOUS)
return "dichotomous";
if (code == EvidenceVariableType.CONTINUOUS)
@ -378,6 +380,8 @@ public class EvidenceVariable extends MetadataResource {
}
public String toCode(GroupMeasure code) {
if (code == GroupMeasure.NULL)
return null;
if (code == GroupMeasure.MEAN)
return "mean";
if (code == GroupMeasure.MEDIAN)

View File

@ -163,6 +163,8 @@ public class ExampleScenario extends MetadataResource {
}
public String toCode(ExampleScenarioActorType code) {
if (code == ExampleScenarioActorType.NULL)
return null;
if (code == ExampleScenarioActorType.PERSON)
return "person";
if (code == ExampleScenarioActorType.ENTITY)
@ -3186,6 +3188,8 @@ public class ExampleScenario extends MetadataResource {
}
public String toCode(FHIRResourceType code) {
if (code == FHIRResourceType.NULL)
return null;
if (code == FHIRResourceType.ACCOUNT)
return "Account";
if (code == FHIRResourceType.ACTIVITYDEFINITION)

View File

@ -200,6 +200,8 @@ public class ExplanationOfBenefit extends DomainResource {
}
public String toCode(ExplanationOfBenefitStatus code) {
if (code == ExplanationOfBenefitStatus.NULL)
return null;
if (code == ExplanationOfBenefitStatus.ACTIVE)
return "active";
if (code == ExplanationOfBenefitStatus.CANCELLED)
@ -344,6 +346,8 @@ public class ExplanationOfBenefit extends DomainResource {
}
public String toCode(Use code) {
if (code == Use.NULL)
return null;
if (code == Use.CLAIM)
return "claim";
if (code == Use.PREAUTHORIZATION)
@ -504,6 +508,8 @@ public class ExplanationOfBenefit extends DomainResource {
}
public String toCode(RemittanceOutcome code) {
if (code == RemittanceOutcome.NULL)
return null;
if (code == RemittanceOutcome.QUEUED)
return "queued";
if (code == RemittanceOutcome.COMPLETE)

View File

@ -174,6 +174,8 @@ public class Expression extends Type implements ICompositeType {
}
public String toCode(ExpressionLanguage code) {
if (code == ExpressionLanguage.NULL)
return null;
if (code == ExpressionLanguage.TEXT_CQL)
return "text/cql";
if (code == ExpressionLanguage.TEXT_FHIRPATH)

View File

@ -197,6 +197,8 @@ public class FamilyMemberHistory extends DomainResource {
}
public String toCode(FamilyHistoryStatus code) {
if (code == FamilyHistoryStatus.NULL)
return null;
if (code == FamilyHistoryStatus.PARTIAL)
return "partial";
if (code == FamilyHistoryStatus.COMPLETED)

View File

@ -173,6 +173,8 @@ public class Flag extends DomainResource {
}
public String toCode(FlagStatus code) {
if (code == FlagStatus.NULL)
return null;
if (code == FlagStatus.ACTIVE)
return "active";
if (code == FlagStatus.INACTIVE)

View File

@ -288,6 +288,8 @@ public class Goal extends DomainResource {
}
public String toCode(GoalLifecycleStatus code) {
if (code == GoalLifecycleStatus.NULL)
return null;
if (code == GoalLifecycleStatus.PROPOSED)
return "proposed";
if (code == GoalLifecycleStatus.PLANNED)

View File

@ -166,6 +166,8 @@ public class GraphDefinition extends MetadataResource {
}
public String toCode(GraphCompartmentUse code) {
if (code == GraphCompartmentUse.NULL)
return null;
if (code == GraphCompartmentUse.CONDITION)
return "condition";
if (code == GraphCompartmentUse.REQUIREMENT)
@ -340,6 +342,8 @@ public class GraphDefinition extends MetadataResource {
}
public String toCode(CompartmentCode code) {
if (code == CompartmentCode.NULL)
return null;
if (code == CompartmentCode.PATIENT)
return "Patient";
if (code == CompartmentCode.ENCOUNTER)
@ -503,6 +507,8 @@ public class GraphDefinition extends MetadataResource {
}
public String toCode(GraphCompartmentRule code) {
if (code == GraphCompartmentRule.NULL)
return null;
if (code == GraphCompartmentRule.IDENTICAL)
return "identical";
if (code == GraphCompartmentRule.MATCHING)

View File

@ -233,6 +233,8 @@ public class Group extends DomainResource {
}
public String toCode(GroupType code) {
if (code == GroupType.NULL)
return null;
if (code == GroupType.PERSON)
return "person";
if (code == GroupType.ANIMAL)

View File

@ -231,6 +231,8 @@ public class GuidanceResponse extends DomainResource {
}
public String toCode(GuidanceResponseStatus code) {
if (code == GuidanceResponseStatus.NULL)
return null;
if (code == GuidanceResponseStatus.SUCCESS)
return "success";
if (code == GuidanceResponseStatus.DATAREQUESTED)

View File

@ -247,6 +247,8 @@ public class HealthcareService extends DomainResource {
}
public String toCode(DaysOfWeek code) {
if (code == DaysOfWeek.NULL)
return null;
if (code == DaysOfWeek.MON)
return "mon";
if (code == DaysOfWeek.TUE)

View File

@ -257,6 +257,8 @@ public class HumanName extends Type implements ICompositeType {
}
public String toCode(NameUse code) {
if (code == NameUse.NULL)
return null;
if (code == NameUse.USUAL)
return "usual";
if (code == NameUse.OFFICIAL)

View File

@ -215,6 +215,8 @@ public class Identifier extends Type implements ICompositeType {
}
public String toCode(IdentifierUse code) {
if (code == IdentifierUse.NULL)
return null;
if (code == IdentifierUse.USUAL)
return "usual";
if (code == IdentifierUse.OFFICIAL)

View File

@ -223,6 +223,8 @@ public class ImagingStudy extends DomainResource {
}
public String toCode(ImagingStudyStatus code) {
if (code == ImagingStudyStatus.NULL)
return null;
if (code == ImagingStudyStatus.REGISTERED)
return "registered";
if (code == ImagingStudyStatus.AVAILABLE)

View File

@ -177,6 +177,8 @@ public class Immunization extends DomainResource {
}
public String toCode(ImmunizationStatus code) {
if (code == ImmunizationStatus.NULL)
return null;
if (code == ImmunizationStatus.COMPLETED)
return "completed";
if (code == ImmunizationStatus.ENTEREDINERROR)

View File

@ -158,6 +158,8 @@ public class ImmunizationEvaluation extends DomainResource {
}
public String toCode(ImmunizationEvaluationStatus code) {
if (code == ImmunizationEvaluationStatus.NULL)
return null;
if (code == ImmunizationEvaluationStatus.COMPLETED)
return "completed";
if (code == ImmunizationEvaluationStatus.ENTEREDINERROR)

View File

@ -10261,6 +10261,8 @@ public class ImplementationGuide extends MetadataResource {
}
public String toCode(SPDXLicense code) {
if (code == SPDXLicense.NULL)
return null;
if (code == SPDXLicense._0BSD)
return "0BSD";
if (code == SPDXLicense.AAL)
@ -11534,6 +11536,8 @@ public class ImplementationGuide extends MetadataResource {
}
public String toCode(GuidePageGeneration code) {
if (code == GuidePageGeneration.NULL)
return null;
if (code == GuidePageGeneration.HTML)
return "html";
if (code == GuidePageGeneration.MARKDOWN)
@ -11824,6 +11828,8 @@ public class ImplementationGuide extends MetadataResource {
}
public String toCode(GuideParameterCode code) {
if (code == GuideParameterCode.NULL)
return null;
if (code == GuideParameterCode.APPLY)
return "apply";
if (code == GuideParameterCode.PATHRESOURCE)

View File

@ -215,6 +215,8 @@ public class Invoice extends DomainResource {
}
public String toCode(InvoiceStatus code) {
if (code == InvoiceStatus.NULL)
return null;
if (code == InvoiceStatus.DRAFT)
return "draft";
if (code == InvoiceStatus.ISSUED)
@ -415,6 +417,8 @@ public class Invoice extends DomainResource {
}
public String toCode(InvoicePriceComponentType code) {
if (code == InvoicePriceComponentType.NULL)
return null;
if (code == InvoicePriceComponentType.BASE)
return "base";
if (code == InvoicePriceComponentType.SURCHARGE)

View File

@ -179,6 +179,8 @@ public class Linkage extends DomainResource {
}
public String toCode(LinkageType code) {
if (code == LinkageType.NULL)
return null;
if (code == LinkageType.SOURCE)
return "source";
if (code == LinkageType.ALTERNATE)

View File

@ -176,6 +176,8 @@ public class ListResource extends DomainResource {
}
public String toCode(ListStatus code) {
if (code == ListStatus.NULL)
return null;
if (code == ListStatus.CURRENT)
return "current";
if (code == ListStatus.RETIRED)
@ -319,6 +321,8 @@ public class ListResource extends DomainResource {
}
public String toCode(ListMode code) {
if (code == ListMode.NULL)
return null;
if (code == ListMode.WORKING)
return "working";
if (code == ListMode.SNAPSHOT)

View File

@ -179,6 +179,8 @@ public class Location extends DomainResource {
}
public String toCode(LocationStatus code) {
if (code == LocationStatus.NULL)
return null;
if (code == LocationStatus.ACTIVE)
return "active";
if (code == LocationStatus.SUSPENDED)
@ -304,6 +306,8 @@ public class Location extends DomainResource {
}
public String toCode(LocationMode code) {
if (code == LocationMode.NULL)
return null;
if (code == LocationMode.INSTANCE)
return "instance";
if (code == LocationMode.KIND)
@ -514,6 +518,8 @@ public class Location extends DomainResource {
}
public String toCode(DaysOfWeek code) {
if (code == DaysOfWeek.NULL)
return null;
if (code == DaysOfWeek.MON)
return "mon";
if (code == DaysOfWeek.TUE)

View File

@ -177,6 +177,8 @@ public class MeasureReport extends DomainResource {
}
public String toCode(MeasureReportStatus code) {
if (code == MeasureReportStatus.NULL)
return null;
if (code == MeasureReportStatus.COMPLETE)
return "complete";
if (code == MeasureReportStatus.PENDING)
@ -338,6 +340,8 @@ public class MeasureReport extends DomainResource {
}
public String toCode(MeasureReportType code) {
if (code == MeasureReportType.NULL)
return null;
if (code == MeasureReportType.INDIVIDUAL)
return "individual";
if (code == MeasureReportType.SUBJECTLIST)

View File

@ -279,6 +279,8 @@ public class Media extends DomainResource {
}
public String toCode(MediaStatus code) {
if (code == MediaStatus.NULL)
return null;
if (code == MediaStatus.PREPARATION)
return "preparation";
if (code == MediaStatus.INPROGRESS)

View File

@ -178,6 +178,8 @@ public class Medication extends DomainResource {
}
public String toCode(MedicationStatus code) {
if (code == MedicationStatus.NULL)
return null;
if (code == MedicationStatus.ACTIVE)
return "active";
if (code == MedicationStatus.INACTIVE)

View File

@ -258,6 +258,8 @@ public class MedicationAdministration extends DomainResource {
}
public String toCode(MedicationAdministrationStatus code) {
if (code == MedicationAdministrationStatus.NULL)
return null;
if (code == MedicationAdministrationStatus.INPROGRESS)
return "in-progress";
if (code == MedicationAdministrationStatus.NOTDONE)

View File

@ -295,6 +295,8 @@ public class MedicationDispense extends DomainResource {
}
public String toCode(MedicationDispenseStatus code) {
if (code == MedicationDispenseStatus.NULL)
return null;
if (code == MedicationDispenseStatus.PREPARATION)
return "preparation";
if (code == MedicationDispenseStatus.INPROGRESS)

View File

@ -175,6 +175,8 @@ public class MedicationKnowledge extends DomainResource {
}
public String toCode(MedicationKnowledgeStatus code) {
if (code == MedicationKnowledgeStatus.NULL)
return null;
if (code == MedicationKnowledgeStatus.ACTIVE)
return "active";
if (code == MedicationKnowledgeStatus.INACTIVE)

View File

@ -281,6 +281,8 @@ public class MedicationRequest extends DomainResource {
}
public String toCode(MedicationRequestStatus code) {
if (code == MedicationRequestStatus.NULL)
return null;
if (code == MedicationRequestStatus.ACTIVE)
return "active";
if (code == MedicationRequestStatus.ONHOLD)
@ -530,6 +532,8 @@ public class MedicationRequest extends DomainResource {
}
public String toCode(MedicationRequestIntent code) {
if (code == MedicationRequestIntent.NULL)
return null;
if (code == MedicationRequestIntent.PROPOSAL)
return "proposal";
if (code == MedicationRequestIntent.PLAN)
@ -700,6 +704,8 @@ public class MedicationRequest extends DomainResource {
}
public String toCode(MedicationRequestPriority code) {
if (code == MedicationRequestPriority.NULL)
return null;
if (code == MedicationRequestPriority.ROUTINE)
return "routine";
if (code == MedicationRequestPriority.URGENT)

View File

@ -289,6 +289,8 @@ public class MedicationStatement extends DomainResource {
}
public String toCode(MedicationStatementStatus code) {
if (code == MedicationStatementStatus.NULL)
return null;
if (code == MedicationStatementStatus.ACTIVE)
return "active";
if (code == MedicationStatementStatus.COMPLETED)

View File

@ -188,6 +188,8 @@ public class MessageDefinition extends MetadataResource {
}
public String toCode(MessageSignificanceCategory code) {
if (code == MessageSignificanceCategory.NULL)
return null;
if (code == MessageSignificanceCategory.CONSEQUENCE)
return "consequence";
if (code == MessageSignificanceCategory.CURRENCY)
@ -346,6 +348,8 @@ public class MessageDefinition extends MetadataResource {
}
public String toCode(MessageheaderResponseRequest code) {
if (code == MessageheaderResponseRequest.NULL)
return null;
if (code == MessageheaderResponseRequest.ALWAYS)
return "always";
if (code == MessageheaderResponseRequest.ONERROR)

View File

@ -183,6 +183,8 @@ public class MessageHeader extends DomainResource {
}
public String toCode(ResponseType code) {
if (code == ResponseType.NULL)
return null;
if (code == ResponseType.OK)
return "ok";
if (code == ResponseType.TRANSIENTERROR)

View File

@ -177,6 +177,8 @@ public class MolecularSequence extends DomainResource {
}
public String toCode(SequenceType code) {
if (code == SequenceType.NULL)
return null;
if (code == SequenceType.AA)
return "aa";
if (code == SequenceType.DNA)
@ -299,6 +301,8 @@ public class MolecularSequence extends DomainResource {
}
public String toCode(OrientationType code) {
if (code == OrientationType.NULL)
return null;
if (code == OrientationType.SENSE)
return "sense";
if (code == OrientationType.ANTISENSE)
@ -419,6 +423,8 @@ public class MolecularSequence extends DomainResource {
}
public String toCode(StrandType code) {
if (code == StrandType.NULL)
return null;
if (code == StrandType.WATSON)
return "watson";
if (code == StrandType.CRICK)
@ -557,6 +563,8 @@ public class MolecularSequence extends DomainResource {
}
public String toCode(QualityType code) {
if (code == QualityType.NULL)
return null;
if (code == QualityType.INDEL)
return "indel";
if (code == QualityType.SNP)
@ -737,6 +745,8 @@ public class MolecularSequence extends DomainResource {
}
public String toCode(RepositoryType code) {
if (code == RepositoryType.NULL)
return null;
if (code == RepositoryType.DIRECTLINK)
return "directlink";
if (code == RepositoryType.OPENAPI)

View File

@ -186,6 +186,8 @@ public class NamingSystem extends MetadataResource {
}
public String toCode(NamingSystemType code) {
if (code == NamingSystemType.NULL)
return null;
if (code == NamingSystemType.CODESYSTEM)
return "codesystem";
if (code == NamingSystemType.IDENTIFIER)
@ -349,6 +351,8 @@ public class NamingSystem extends MetadataResource {
public String toCode(NamingSystemIdentifierType code) {
if (code == NamingSystemIdentifierType.NULL)
return null;
if (code == NamingSystemIdentifierType.NULL)
return null;
if (code == NamingSystemIdentifierType.OID)
return "oid";
if (code == NamingSystemIdentifierType.UUID)

View File

@ -198,6 +198,8 @@ public class Narrative extends BaseNarrative implements INarrative {
}
public String toCode(NarrativeStatus code) {
if (code == NarrativeStatus.NULL)
return null;
if (code == NarrativeStatus.GENERATED)
return "generated";
if (code == NarrativeStatus.EXTENSIONS)

View File

@ -259,6 +259,8 @@ public class NutritionOrder extends DomainResource {
}
public String toCode(NutritionOrderStatus code) {
if (code == NutritionOrderStatus.NULL)
return null;
if (code == NutritionOrderStatus.DRAFT)
return "draft";
if (code == NutritionOrderStatus.ACTIVE)
@ -528,6 +530,8 @@ public class NutritionOrder extends DomainResource {
}
public String toCode(NutritiionOrderIntent code) {
if (code == NutritiionOrderIntent.NULL)
return null;
if (code == NutritiionOrderIntent.PROPOSAL)
return "proposal";
if (code == NutritiionOrderIntent.PLAN)

View File

@ -283,6 +283,8 @@ public class Observation extends DomainResource {
}
public String toCode(ObservationStatus code) {
if (code == ObservationStatus.NULL)
return null;
if (code == ObservationStatus.REGISTERED)
return "registered";
if (code == ObservationStatus.PRELIMINARY)

View File

@ -324,6 +324,8 @@ public class ObservationDefinition extends DomainResource {
}
public String toCode(ObservationDataType code) {
if (code == ObservationDataType.NULL)
return null;
if (code == ObservationDataType.QUANTITY)
return "Quantity";
if (code == ObservationDataType.CODEABLECONCEPT)
@ -481,6 +483,8 @@ public class ObservationDefinition extends DomainResource {
}
public String toCode(ObservationRangeCategory code) {
if (code == ObservationRangeCategory.NULL)
return null;
if (code == ObservationRangeCategory.REFERENCE)
return "reference";
if (code == ObservationRangeCategory.CRITICAL)

View File

@ -169,6 +169,8 @@ public class OperationDefinition extends MetadataResource {
}
public String toCode(OperationKind code) {
if (code == OperationKind.NULL)
return null;
if (code == OperationKind.OPERATION)
return "operation";
if (code == OperationKind.QUERY)
@ -289,6 +291,8 @@ public class OperationDefinition extends MetadataResource {
}
public String toCode(OperationParameterUse code) {
if (code == OperationParameterUse.NULL)
return null;
if (code == OperationParameterUse.IN)
return "in";
if (code == OperationParameterUse.OUT)

View File

@ -196,6 +196,8 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
}
public String toCode(IssueSeverity code) {
if (code == IssueSeverity.NULL)
return null;
if (code == IssueSeverity.FATAL)
return "fatal";
if (code == IssueSeverity.ERROR)
@ -865,6 +867,8 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
}
public String toCode(IssueType code) {
if (code == IssueType.NULL)
return null;
if (code == IssueType.INVALID)
return "invalid";
if (code == IssueType.STRUCTURE)

View File

@ -156,6 +156,8 @@ public class ParameterDefinition extends Type implements ICompositeType {
}
public String toCode(ParameterUse code) {
if (code == ParameterUse.NULL)
return null;
if (code == ParameterUse.IN)
return "in";
if (code == ParameterUse.OUT)

View File

@ -208,6 +208,8 @@ public class Patient extends DomainResource {
}
public String toCode(LinkType code) {
if (code == LinkType.NULL)
return null;
if (code == LinkType.REPLACEDBY)
return "replaced-by";
if (code == LinkType.REPLACES)

View File

@ -192,6 +192,8 @@ public class PaymentNotice extends DomainResource {
}
public String toCode(PaymentNoticeStatus code) {
if (code == PaymentNoticeStatus.NULL)
return null;
if (code == PaymentNoticeStatus.ACTIVE)
return "active";
if (code == PaymentNoticeStatus.CANCELLED)

View File

@ -199,6 +199,8 @@ public class PaymentReconciliation extends DomainResource {
}
public String toCode(PaymentReconciliationStatus code) {
if (code == PaymentReconciliationStatus.NULL)
return null;
if (code == PaymentReconciliationStatus.ACTIVE)
return "active";
if (code == PaymentReconciliationStatus.CANCELLED)

View File

@ -196,6 +196,8 @@ public class Person extends DomainResource {
}
public String toCode(IdentityAssuranceLevel code) {
if (code == IdentityAssuranceLevel.NULL)
return null;
if (code == IdentityAssuranceLevel.LEVEL1)
return "level1";
if (code == IdentityAssuranceLevel.LEVEL2)

View File

@ -206,6 +206,8 @@ public class PlanDefinition extends MetadataResource {
}
public String toCode(RequestPriority code) {
if (code == RequestPriority.NULL)
return null;
if (code == RequestPriority.ROUTINE)
return "routine";
if (code == RequestPriority.URGENT)
@ -348,6 +350,8 @@ public class PlanDefinition extends MetadataResource {
}
public String toCode(ActionConditionKind code) {
if (code == ActionConditionKind.NULL)
return null;
if (code == ActionConditionKind.APPLICABILITY)
return "applicability";
if (code == ActionConditionKind.START)
@ -596,6 +600,8 @@ public class PlanDefinition extends MetadataResource {
}
public String toCode(ActionRelationshipType code) {
if (code == ActionRelationshipType.NULL)
return null;
if (code == ActionRelationshipType.BEFORESTART)
return "before-start";
if (code == ActionRelationshipType.BEFORE)
@ -766,6 +772,8 @@ public class PlanDefinition extends MetadataResource {
}
public String toCode(ActionParticipantType code) {
if (code == ActionParticipantType.NULL)
return null;
if (code == ActionParticipantType.PATIENT)
return "patient";
if (code == ActionParticipantType.PRACTITIONER)
@ -919,6 +927,8 @@ public class PlanDefinition extends MetadataResource {
}
public String toCode(ActionGroupingBehavior code) {
if (code == ActionGroupingBehavior.NULL)
return null;
if (code == ActionGroupingBehavior.VISUALGROUP)
return "visual-group";
if (code == ActionGroupingBehavior.LOGICALGROUP)
@ -1115,6 +1125,8 @@ public class PlanDefinition extends MetadataResource {
}
public String toCode(ActionSelectionBehavior code) {
if (code == ActionSelectionBehavior.NULL)
return null;
if (code == ActionSelectionBehavior.ANY)
return "any";
if (code == ActionSelectionBehavior.ALL)
@ -1265,6 +1277,8 @@ public class PlanDefinition extends MetadataResource {
}
public String toCode(ActionRequiredBehavior code) {
if (code == ActionRequiredBehavior.NULL)
return null;
if (code == ActionRequiredBehavior.MUST)
return "must";
if (code == ActionRequiredBehavior.COULD)
@ -1393,6 +1407,8 @@ public class PlanDefinition extends MetadataResource {
}
public String toCode(ActionPrecheckBehavior code) {
if (code == ActionPrecheckBehavior.NULL)
return null;
if (code == ActionPrecheckBehavior.YES)
return "yes";
if (code == ActionPrecheckBehavior.NO)
@ -1513,6 +1529,8 @@ public class PlanDefinition extends MetadataResource {
}
public String toCode(ActionCardinalityBehavior code) {
if (code == ActionCardinalityBehavior.NULL)
return null;
if (code == ActionCardinalityBehavior.SINGLE)
return "single";
if (code == ActionCardinalityBehavior.MULTIPLE)

View File

@ -248,6 +248,8 @@ public class PractitionerRole extends DomainResource {
}
public String toCode(DaysOfWeek code) {
if (code == DaysOfWeek.NULL)
return null;
if (code == DaysOfWeek.MON)
return "mon";
if (code == DaysOfWeek.TUE)

View File

@ -278,6 +278,8 @@ public class Procedure extends DomainResource {
}
public String toCode(ProcedureStatus code) {
if (code == ProcedureStatus.NULL)
return null;
if (code == ProcedureStatus.PREPARATION)
return "preparation";
if (code == ProcedureStatus.INPROGRESS)

View File

@ -227,6 +227,8 @@ public class Provenance extends DomainResource {
}
public String toCode(ProvenanceEntityRole code) {
if (code == ProvenanceEntityRole.NULL)
return null;
if (code == ProvenanceEntityRole.DERIVATION)
return "derivation";
if (code == ProvenanceEntityRole.REVISION)

View File

@ -194,6 +194,8 @@ public class Quantity extends Type implements ICompositeType, ICoding {
}
public String toCode(QuantityComparator code) {
if (code == QuantityComparator.NULL)
return null;
if (code == QuantityComparator.LESS_THAN)
return "<";
if (code == QuantityComparator.LESS_OR_EQUAL)

View File

@ -451,6 +451,8 @@ public class Questionnaire extends MetadataResource {
}
public String toCode(QuestionnaireItemType code) {
if (code == QuestionnaireItemType.NULL)
return null;
if (code == QuestionnaireItemType.GROUP)
return "group";
if (code == QuestionnaireItemType.DISPLAY)
@ -698,6 +700,8 @@ public class Questionnaire extends MetadataResource {
}
public String toCode(QuestionnaireItemOperator code) {
if (code == QuestionnaireItemOperator.NULL)
return null;
if (code == QuestionnaireItemOperator.EXISTS)
return "exists";
if (code == QuestionnaireItemOperator.EQUAL)
@ -828,6 +832,8 @@ public class Questionnaire extends MetadataResource {
}
public String toCode(EnableWhenBehavior code) {
if (code == EnableWhenBehavior.NULL)
return null;
if (code == EnableWhenBehavior.ALL)
return "all";
if (code == EnableWhenBehavior.ANY)

View File

@ -219,6 +219,8 @@ public class QuestionnaireResponse extends DomainResource {
}
public String toCode(QuestionnaireResponseStatus code) {
if (code == QuestionnaireResponseStatus.NULL)
return null;
if (code == QuestionnaireResponseStatus.INPROGRESS)
return "in-progress";
if (code == QuestionnaireResponseStatus.COMPLETED)

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