convo14_40 updated

This commit is contained in:
markiantorno 2020-02-07 12:28:43 -05:00
parent ecb9d1b9e6
commit 70252e8be4
27 changed files with 993 additions and 1063 deletions

View File

@ -90,8 +90,8 @@ public class ConceptMap10_30 {
}
if (src.hasDateElement())
tgt.setDateElement((org.hl7.fhir.dstu3.model.DateTimeType) VersionConvertor_10_30.convertType(src.getDateElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_10_30.convertType(src.getDescriptionElement()));
if (src.hasDescription())
tgt.setDescription(src.getDescription());
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_30.isJurisdiction(t))
tgt.addJurisdiction(VersionConvertor_10_30.convertCodeableConcept(t));
else
@ -99,8 +99,8 @@ public class ConceptMap10_30 {
if (src.hasRequirements()) {
tgt.setPurpose(src.getRequirements());
}
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_10_30.convertType(src.getCopyrightElement()));
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasSource()) {
tgt.setSource(VersionConvertor_10_30.convertType(src.getSource()));
}

View File

@ -85,8 +85,8 @@ public class DataElement10_30 {
tgt.addJurisdiction(VersionConvertor_10_30.convertCodeableConcept(t));
else
tgt.addUseContext(VersionConvertor_10_30.convertCodeableConceptToUsageContext(t));
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_10_30.convertType(src.getCopyrightElement()));
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasStringency()) {
tgt.setStringency(convertDataElementStringency(src.getStringency()));
}

View File

@ -107,14 +107,14 @@ public class ImplementationGuide10_30 {
}
if (src.hasDateElement())
tgt.setDateElement((org.hl7.fhir.dstu3.model.DateTimeType) VersionConvertor_10_30.convertType(src.getDateElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_10_30.convertType(src.getDescriptionElement()));
if (src.hasDescription())
tgt.setDescription(src.getDescription());
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_30.isJurisdiction(t))
tgt.addJurisdiction(VersionConvertor_10_30.convertCodeableConcept(t));
else
tgt.addUseContext(VersionConvertor_10_30.convertCodeableConceptToUsageContext(t));
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_10_30.convertType(src.getCopyrightElement()));
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasFhirVersionElement())
tgt.setFhirVersionElement((org.hl7.fhir.dstu3.model.IdType) VersionConvertor_10_30.convertType(src.getFhirVersionElement()));
if (src.hasDependency()) {

View File

@ -32,8 +32,8 @@ public class NamingSystem10_30 {
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertCodeableConcept(src.getType()));
}
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_10_30.convertType(src.getDescriptionElement()));
if (src.hasDescription())
tgt.setDescription(src.getDescription());
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_30.isJurisdiction(t))
tgt.addJurisdiction(VersionConvertor_10_30.convertCodeableConcept(t));
else

View File

@ -95,10 +95,10 @@ public class OperationDefinition10_30 {
if (src.hasContact()) {
for (org.hl7.fhir.dstu2.model.OperationDefinition.OperationDefinitionContactComponent t : src.getContact()) tgt.addContact(convertOperationDefinitionContactComponent(t));
}
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_10_30.convertType(src.getDescriptionElement()));
if (src.hasRequirementsElement()) {
tgt.setPurposeElement((MarkdownType) VersionConvertor_10_30.convertType(src.getRequirementsElement()));
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasRequirements()) {
tgt.setPurpose(src.getRequirements());
}
if (src.hasIdempotentElement())
tgt.setIdempotentElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_10_30.convertType(src.getIdempotentElement()));

View File

@ -79,8 +79,8 @@ public class SearchParameter10_30 {
if (src.hasContact()) {
for (org.hl7.fhir.dstu2.model.SearchParameter.SearchParameterContactComponent t : src.getContact()) tgt.addContact(convertSearchParameterContactComponent(t));
}
if (src.hasRequirementsElement()) {
tgt.setPurposeElement((MarkdownType) VersionConvertor_10_30.convertType(src.getRequirementsElement()));
if (src.hasRequirements()) {
tgt.setPurpose(src.getRequirements());
}
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.dstu3.model.CodeType) VersionConvertor_10_30.convertType(src.getCodeElement()));
@ -89,8 +89,8 @@ public class SearchParameter10_30 {
if (src.hasType()) {
tgt.setType(VersionConvertor_10_30.convertSearchParamType(src.getType()));
}
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_10_30.convertType(src.getDescriptionElement()));
if (src.hasDescription())
tgt.setDescription(src.getDescription());
tgt.setExpression(ToolingExtensions.readStringExtension(src, ToolingExtensions.EXT_EXPRESSION));
if (src.hasXpathElement())
tgt.setXpathElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_10_30.convertType(src.getXpathElement()));

View File

@ -156,17 +156,17 @@ public class StructureDefinition10_30 {
}
if (src.hasDateElement())
tgt.setDateElement((org.hl7.fhir.dstu3.model.DateTimeType) VersionConvertor_10_30.convertType(src.getDateElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_10_30.convertType(src.getDescriptionElement()));
if (src.hasDescription())
tgt.setDescription(src.getDescription());
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_30.isJurisdiction(t))
tgt.addJurisdiction(VersionConvertor_10_30.convertCodeableConcept(t));
else
tgt.addUseContext(VersionConvertor_10_30.convertCodeableConceptToUsageContext(t));
if (src.hasRequirementsElement()) {
tgt.setPurposeElement((MarkdownType) VersionConvertor_10_30.convertType(src.getRequirementsElement()));
if (src.hasRequirements()) {
tgt.setPurpose(src.getRequirements());
}
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_10_30.convertType(src.getCopyrightElement()));
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasCode()) {
for (org.hl7.fhir.dstu2.model.Coding t : src.getCode()) tgt.addKeyword(VersionConvertor_10_30.convertCoding(t));
}

View File

@ -563,8 +563,8 @@ public class TestScript10_30 {
}
if (src.hasDateElement())
tgt.setDateElement((org.hl7.fhir.dstu3.model.DateTimeType) VersionConvertor_10_30.convertType(src.getDateElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_10_30.convertType(src.getDescriptionElement()));
if (src.hasDescription())
tgt.setDescription(src.getDescription());
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_30.isJurisdiction(t))
tgt.addJurisdiction(VersionConvertor_10_30.convertCodeableConcept(t));
else
@ -572,8 +572,8 @@ public class TestScript10_30 {
if (src.hasRequirements()) {
tgt.setPurpose(src.getRequirements());
}
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_10_30.convertType(src.getCopyrightElement()));
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasMetadata()) {
tgt.setMetadata(convertTestScriptMetadataComponent(src.getMetadata()));
}

View File

@ -206,8 +206,8 @@ public class ValueSet10_30 {
}
if (src.hasDateElement())
tgt.setDateElement((org.hl7.fhir.dstu3.model.DateTimeType) VersionConvertor_10_30.convertType(src.getDateElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_10_30.convertType(src.getDescriptionElement()));
if (src.hasDescription())
tgt.setDescription(src.getDescription());
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_30.isJurisdiction(t))
tgt.addJurisdiction(VersionConvertor_10_30.convertCodeableConcept(t));
else
@ -215,11 +215,11 @@ public class ValueSet10_30 {
if (src.hasImmutableElement()) {
tgt.setImmutableElement((BooleanType) VersionConvertor_10_30.convertType(src.getImmutableElement()));
}
if (src.hasRequirementsElement()) {
tgt.setPurposeElement((MarkdownType) VersionConvertor_10_30.convertType(src.getRequirementsElement()));
if (src.hasRequirements()) {
tgt.setPurpose(src.getRequirements());
}
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_10_30.convertType(src.getCopyrightElement()));
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasExtensible()) {
tgt.setExtensible(src.getExtensible());
}
@ -259,8 +259,8 @@ public class ValueSet10_30 {
}
if (src.hasDateElement())
tgtcs.setDateElement((DateTimeType) VersionConvertor_10_30.convertType(src.getDateElement()));
if (src.hasDescriptionElement()) {
tgtcs.setDescriptionElement((MarkdownType) VersionConvertor_10_30.convertType(src.getDescriptionElement()));
if (src.hasDescription()) {
tgtcs.setDescription(src.getDescription());
}
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_30.isJurisdiction(t))
tgtcs.addJurisdiction(VersionConvertor_10_30.convertCodeableConcept(t));
@ -269,8 +269,8 @@ public class ValueSet10_30 {
if (src.hasRequirements()) {
tgtcs.setPurpose(src.getRequirements());
}
if (src.hasCopyrightElement()) {
tgtcs.setCopyrightElement((MarkdownType) VersionConvertor_10_30.convertType(src.getCopyrightElement()));
if (src.hasCopyright()) {
tgtcs.setCopyright(src.getCopyright());
}
tgtcs.setContent(CodeSystemContentMode.COMPLETE);
if (src.hasCodeSystem()) {

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv14_40;
import org.hl7.fhir.convertors.VersionConvertor_14_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class Bundle14_40 {
@ -13,8 +14,8 @@ public class Bundle14_40 {
if (src.hasType()) {
tgt.setType(convertBundleType(src.getType()));
}
if (src.hasTotal())
tgt.setTotal(src.getTotal());
if (src.hasTotalElement())
tgt.setTotalElement((org.hl7.fhir.r4.model.UnsignedIntType) VersionConvertor_14_40.convertType(src.getTotalElement()));
if (src.hasLink()) {
for (org.hl7.fhir.dstu2016may.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t));
}
@ -35,8 +36,8 @@ public class Bundle14_40 {
if (src.hasType()) {
tgt.setType(convertBundleType(src.getType()));
}
if (src.hasTotal())
tgt.setTotal(src.getTotal());
if (src.hasTotalElement())
tgt.setTotalElement((org.hl7.fhir.dstu2016may.model.UnsignedIntType) VersionConvertor_14_40.convertType(src.getTotalElement()));
if (src.hasLink()) {
for (org.hl7.fhir.r4.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t));
}
@ -57,8 +58,8 @@ public class Bundle14_40 {
if (src.hasLink()) {
for (org.hl7.fhir.dstu2016may.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t));
}
if (src.hasFullUrl())
tgt.setFullUrl(src.getFullUrl());
if (src.hasFullUrlElement())
tgt.setFullUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_14_40.convertType(src.getFullUrlElement()));
if (src.hasResource()) {
tgt.setResource(VersionConvertor_14_40.convertResource(src.getResource()));
}
@ -82,8 +83,8 @@ public class Bundle14_40 {
if (src.hasLink()) {
for (org.hl7.fhir.r4.model.Bundle.BundleLinkComponent t : src.getLink()) tgt.addLink(convertBundleLinkComponent(t));
}
if (src.hasFullUrl())
tgt.setFullUrl(src.getFullUrl());
if (src.hasFullUrlElement())
tgt.setFullUrlElement((org.hl7.fhir.dstu2016may.model.UriType) VersionConvertor_14_40.convertType(src.getFullUrlElement()));
if (src.hasResource()) {
tgt.setResource(VersionConvertor_14_40.convertResource(src.getResource()));
}
@ -107,17 +108,16 @@ public class Bundle14_40 {
if (src.hasMethod()) {
tgt.setMethod(convertHTTPVerb(src.getMethod()));
}
if (src.hasUrl()) {
tgt.setUrl(src.getUrl());
}
if (src.hasIfNoneMatch())
tgt.setIfNoneMatch(src.getIfNoneMatch());
if (src.hasIfModifiedSince())
tgt.setIfModifiedSince(src.getIfModifiedSince());
if (src.hasIfMatch())
tgt.setIfMatch(src.getIfMatch());
if (src.hasIfNoneExist())
tgt.setIfNoneExist(src.getIfNoneExist());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_14_40.convertType(src.getUrlElement()));
if (src.hasIfNoneMatchElement())
tgt.setIfNoneMatchElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getIfNoneMatchElement()));
if (src.hasIfModifiedSinceElement())
tgt.setIfModifiedSinceElement((org.hl7.fhir.r4.model.InstantType) VersionConvertor_14_40.convertType(src.getIfModifiedSinceElement()));
if (src.hasIfMatchElement())
tgt.setIfMatchElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getIfMatchElement()));
if (src.hasIfNoneExistElement())
tgt.setIfNoneExistElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getIfNoneExistElement()));
return tgt;
}
@ -129,17 +129,16 @@ public class Bundle14_40 {
if (src.hasMethod()) {
tgt.setMethod(convertHTTPVerb(src.getMethod()));
}
if (src.hasUrl()) {
tgt.setUrl(src.getUrl());
}
if (src.hasIfNoneMatch())
tgt.setIfNoneMatch(src.getIfNoneMatch());
if (src.hasIfModifiedSince())
tgt.setIfModifiedSince(src.getIfModifiedSince());
if (src.hasIfMatch())
tgt.setIfMatch(src.getIfMatch());
if (src.hasIfNoneExist())
tgt.setIfNoneExist(src.getIfNoneExist());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu2016may.model.UriType) VersionConvertor_14_40.convertType(src.getUrlElement()));
if (src.hasIfNoneMatchElement())
tgt.setIfNoneMatchElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getIfNoneMatchElement()));
if (src.hasIfModifiedSinceElement())
tgt.setIfModifiedSinceElement((org.hl7.fhir.dstu2016may.model.InstantType) VersionConvertor_14_40.convertType(src.getIfModifiedSinceElement()));
if (src.hasIfMatchElement())
tgt.setIfMatchElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getIfMatchElement()));
if (src.hasIfNoneExistElement())
tgt.setIfNoneExistElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getIfNoneExistElement()));
return tgt;
}
@ -148,15 +147,14 @@ public class Bundle14_40 {
return null;
org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasStatus()) {
tgt.setStatus(src.getStatus());
}
if (src.hasLocation())
tgt.setLocation(src.getLocation());
if (src.hasEtag())
tgt.setEtag(src.getEtag());
if (src.hasLastModified())
tgt.setLastModified(src.getLastModified());
if (src.hasStatusElement())
tgt.setStatusElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getStatusElement()));
if (src.hasLocationElement())
tgt.setLocationElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_14_40.convertType(src.getLocationElement()));
if (src.hasEtagElement())
tgt.setEtagElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getEtagElement()));
if (src.hasLastModifiedElement())
tgt.setLastModifiedElement((org.hl7.fhir.r4.model.InstantType) VersionConvertor_14_40.convertType(src.getLastModifiedElement()));
return tgt;
}
@ -165,15 +163,14 @@ public class Bundle14_40 {
return null;
org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryResponseComponent tgt = new org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryResponseComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasStatus()) {
tgt.setStatus(src.getStatus());
}
if (src.hasLocation())
tgt.setLocation(src.getLocation());
if (src.hasEtag())
tgt.setEtag(src.getEtag());
if (src.hasLastModified())
tgt.setLastModified(src.getLastModified());
if (src.hasStatusElement())
tgt.setStatusElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getStatusElement()));
if (src.hasLocationElement())
tgt.setLocationElement((org.hl7.fhir.dstu2016may.model.UriType) VersionConvertor_14_40.convertType(src.getLocationElement()));
if (src.hasEtagElement())
tgt.setEtagElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getEtagElement()));
if (src.hasLastModifiedElement())
tgt.setLastModifiedElement((org.hl7.fhir.dstu2016may.model.InstantType) VersionConvertor_14_40.convertType(src.getLastModifiedElement()));
return tgt;
}
@ -185,8 +182,8 @@ public class Bundle14_40 {
if (src.hasMode()) {
tgt.setMode(convertSearchEntryMode(src.getMode()));
}
if (src.hasScore())
tgt.setScore(src.getScore());
if (src.hasScoreElement())
tgt.setScoreElement((org.hl7.fhir.dstu2016may.model.DecimalType) VersionConvertor_14_40.convertType(src.getScoreElement()));
return tgt;
}
@ -198,8 +195,8 @@ public class Bundle14_40 {
if (src.hasMode()) {
tgt.setMode(convertSearchEntryMode(src.getMode()));
}
if (src.hasScore())
tgt.setScore(src.getScore());
if (src.hasScoreElement())
tgt.setScoreElement((org.hl7.fhir.r4.model.DecimalType) VersionConvertor_14_40.convertType(src.getScoreElement()));
return tgt;
}
@ -208,12 +205,10 @@ public class Bundle14_40 {
return null;
org.hl7.fhir.dstu2016may.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.dstu2016may.model.Bundle.BundleLinkComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasRelation()) {
tgt.setRelation(src.getRelation());
}
if (src.hasUrl()) {
tgt.setUrl(src.getUrl());
}
if (src.hasRelationElement())
tgt.setRelationElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getRelationElement()));
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu2016may.model.UriType) VersionConvertor_14_40.convertType(src.getUrlElement()));
return tgt;
}
@ -222,12 +217,10 @@ public class Bundle14_40 {
return null;
org.hl7.fhir.r4.model.Bundle.BundleLinkComponent tgt = new org.hl7.fhir.r4.model.Bundle.BundleLinkComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasRelation()) {
tgt.setRelation(src.getRelation());
}
if (src.hasUrl()) {
tgt.setUrl(src.getUrl());
}
if (src.hasRelationElement())
tgt.setRelationElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getRelationElement()));
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_14_40.convertType(src.getUrlElement()));
return tgt;
}

View File

@ -6,6 +6,9 @@ import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.CodeSystem;
import org.hl7.fhir.r4.model.CodeSystem.FilterOperator;
import org.hl7.fhir.r4.model.Enumeration;
import org.hl7.fhir.r4.model.StringType;
import java.util.Collections;
public class CodeSystem14_40 {
@ -14,28 +17,28 @@ public class CodeSystem14_40 {
return null;
org.hl7.fhir.r4.model.CodeSystem tgt = new org.hl7.fhir.r4.model.CodeSystem();
VersionConvertor_14_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_14_40.convertType(src.getUrlElement()));
if (src.hasIdentifier())
tgt.addIdentifier(VersionConvertor_14_40.convertIdentifier(src.getIdentifier()));
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_14_40.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_14_40.convertType(src.getExperimentalElement()));
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemContactComponent t : src.getContact()) tgt.addContact(convertCodeSystemContactComponent(t));
}
if (src.hasDate())
tgt.setDate(src.getDate());
if (src.hasDateElement())
tgt.setDateElement((org.hl7.fhir.r4.model.DateTimeType) VersionConvertor_14_40.convertType(src.getDateElement()));
if (src.hasDescription())
tgt.setDescription(src.getDescription());
tgt.setDescription(src.getDescription());
for (org.hl7.fhir.dstu2016may.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_14_40.isJurisdiction(t))
tgt.addJurisdiction(VersionConvertor_14_40.convertCodeableConcept(t));
else
@ -43,20 +46,20 @@ public class CodeSystem14_40 {
if (src.hasRequirements())
tgt.setPurpose(src.getRequirements());
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasCaseSensitive())
tgt.setCaseSensitive(src.getCaseSensitive());
if (src.hasValueSet())
tgt.setValueSet(src.getValueSet());
if (src.hasCompositional())
tgt.setCompositional(src.getCompositional());
if (src.hasVersionNeeded())
tgt.setVersionNeeded(src.getVersionNeeded());
tgt.setCopyright(src.getCopyright());
if (src.hasCaseSensitiveElement())
tgt.setCaseSensitiveElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_14_40.convertType(src.getCaseSensitiveElement()));
if (src.hasValueSetElement())
tgt.setValueSetElement((org.hl7.fhir.r4.model.CanonicalType) VersionConvertor_14_40.convertType(src.getValueSetElement()));
if (src.hasCompositionalElement())
tgt.setCompositionalElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_14_40.convertType(src.getCompositionalElement()));
if (src.hasVersionNeededElement())
tgt.setVersionNeededElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_14_40.convertType(src.getVersionNeededElement()));
if (src.hasContent()) {
tgt.setContent(convertCodeSystemContentMode(src.getContent()));
}
if (src.hasCount())
tgt.setCount(src.getCount());
if (src.hasCountElement())
tgt.setCountElement((org.hl7.fhir.r4.model.UnsignedIntType) VersionConvertor_14_40.convertType(src.getCountElement()));
if (src.hasFilter()) {
for (org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemFilterComponent t : src.getFilter()) tgt.addFilter(convertCodeSystemFilterComponent(t));
}
@ -74,28 +77,28 @@ public class CodeSystem14_40 {
return null;
org.hl7.fhir.dstu2016may.model.CodeSystem tgt = new org.hl7.fhir.dstu2016may.model.CodeSystem();
VersionConvertor_14_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu2016may.model.UriType) VersionConvertor_14_40.convertType(src.getUrlElement()));
if (src.hasIdentifier())
tgt.setIdentifier(VersionConvertor_14_40.convertIdentifier(src.getIdentifierFirstRep()));
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_14_40.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.dstu2016may.model.BooleanType) VersionConvertor_14_40.convertType(src.getExperimentalElement()));
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(convertCodeSystemContactComponent(t));
}
if (src.hasDate())
tgt.setDate(src.getDate());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDateElement())
tgt.setDateElement((org.hl7.fhir.dstu2016may.model.DateTimeType) VersionConvertor_14_40.convertType(src.getDateElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getDescriptionElement()));
for (org.hl7.fhir.r4.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept())
tgt.addUseContext(VersionConvertor_14_40.convertCodeableConcept(t.getValueCodeableConcept()));
if (src.hasJurisdiction()) {
@ -103,21 +106,21 @@ public class CodeSystem14_40 {
}
if (src.hasPurpose())
tgt.setRequirements(src.getPurpose());
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasCaseSensitive())
tgt.setCaseSensitive(src.getCaseSensitive());
if (src.hasValueSet())
tgt.setValueSet(src.getValueSet());
if (src.hasCompositional())
tgt.setCompositional(src.getCompositional());
if (src.hasVersionNeeded())
tgt.setVersionNeeded(src.getVersionNeeded());
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getCopyrightElement()));
if (src.hasCaseSensitiveElement())
tgt.setCaseSensitiveElement((org.hl7.fhir.dstu2016may.model.BooleanType) VersionConvertor_14_40.convertType(src.getCaseSensitiveElement()));
if (src.hasValueSetElement())
tgt.setValueSetElement((org.hl7.fhir.dstu2016may.model.UriType) VersionConvertor_14_40.convertType(src.getValueSetElement()));
if (src.hasCompositionalElement())
tgt.setCompositionalElement((org.hl7.fhir.dstu2016may.model.BooleanType) VersionConvertor_14_40.convertType(src.getCompositionalElement()));
if (src.hasVersionNeededElement())
tgt.setVersionNeededElement((org.hl7.fhir.dstu2016may.model.BooleanType) VersionConvertor_14_40.convertType(src.getVersionNeededElement()));
if (src.hasContent()) {
tgt.setContent(convertCodeSystemContentMode(src.getContent()));
}
if (src.hasCount())
tgt.setCount(src.getCount());
if (src.hasCountElement())
tgt.setCountElement((org.hl7.fhir.dstu2016may.model.UnsignedIntType) VersionConvertor_14_40.convertType(src.getCountElement()));
if (src.hasFilter()) {
for (org.hl7.fhir.r4.model.CodeSystem.CodeSystemFilterComponent t : src.getFilter()) tgt.addFilter(convertCodeSystemFilterComponent(t));
}
@ -135,8 +138,8 @@ public class CodeSystem14_40 {
return null;
org.hl7.fhir.r4.model.ContactDetail tgt = new org.hl7.fhir.r4.model.ContactDetail();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2016may.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_14_40.convertContactPoint(t));
}
@ -148,8 +151,8 @@ public class CodeSystem14_40 {
return null;
org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemContactComponent tgt = new org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemContactComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasTelecom()) {
for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_14_40.convertContactPoint(t));
}
@ -195,18 +198,17 @@ public class CodeSystem14_40 {
return null;
org.hl7.fhir.r4.model.CodeSystem.CodeSystemFilterComponent tgt = new org.hl7.fhir.r4.model.CodeSystem.CodeSystemFilterComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(src.getCode());
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_14_40.convertType(src.getCodeElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getDescriptionElement()));
for (org.hl7.fhir.dstu2016may.model.CodeType t : src.getOperator()) try {
tgt.addOperator(CodeSystem.FilterOperator.fromCode(t.getValue()));
} catch (org.hl7.fhir.exceptions.FHIRException e) {
throw new FHIRException(e);
}
if (src.hasValue()) {
tgt.setValue(src.getValue());
if (src.hasValueElement()) {
tgt.setValueElement((StringType) VersionConvertor_14_40.convertType(src.getValueElement()));
}
return tgt;
}
@ -216,17 +218,12 @@ public class CodeSystem14_40 {
return null;
org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemFilterComponent tgt = new org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemFilterComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(src.getCode());
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasOperator()) {
for (Enumeration<FilterOperator> t : src.getOperator()) tgt.addOperator(t.getValue().toCode());
}
if (src.hasValue()) {
tgt.setValue(src.getValue());
}
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.dstu2016may.model.CodeType) VersionConvertor_14_40.convertType(src.getCodeElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getDescriptionElement()));
if (src.hasValueElement())
tgt.setValueElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getValueElement()));
return tgt;
}
@ -235,13 +232,12 @@ public class CodeSystem14_40 {
return null;
org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionComponent tgt = new org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(src.getCode());
}
if (src.hasDisplay())
tgt.setDisplay(src.getDisplay());
if (src.hasDefinition())
tgt.setDefinition(src.getDefinition());
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_14_40.convertType(src.getCodeElement()));
if (src.hasDisplayElement())
tgt.setDisplayElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getDisplayElement()));
if (src.hasDefinitionElement())
tgt.setDefinitionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getDefinitionElement()));
if (src.hasDesignation()) {
for (org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionDesignationComponent t : src.getDesignation()) tgt.addDesignation(convertConceptDefinitionDesignationComponent(t));
}
@ -259,13 +255,12 @@ public class CodeSystem14_40 {
return null;
org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionComponent tgt = new org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(src.getCode());
}
if (src.hasDisplay())
tgt.setDisplay(src.getDisplay());
if (src.hasDefinition())
tgt.setDefinition(src.getDefinition());
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.dstu2016may.model.CodeType) VersionConvertor_14_40.convertType(src.getCodeElement()));
if (src.hasDisplayElement())
tgt.setDisplayElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getDisplayElement()));
if (src.hasDefinitionElement())
tgt.setDefinitionElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getDefinitionElement()));
if (src.hasDesignation()) {
for (org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionDesignationComponent t : src.getDesignation()) tgt.addDesignation(convertConceptDefinitionDesignationComponent(t));
}
@ -283,14 +278,13 @@ public class CodeSystem14_40 {
return null;
org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionDesignationComponent tgt = new org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionDesignationComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasLanguage())
tgt.setLanguage(src.getLanguage());
if (src.hasLanguageElement())
tgt.setLanguageElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_14_40.convertType(src.getLanguageElement()));
if (src.hasUse()) {
tgt.setUse(VersionConvertor_14_40.convertCoding(src.getUse()));
}
if (src.hasValue()) {
tgt.setValue(src.getValue());
}
if (src.hasValueElement())
tgt.setValueElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getValueElement()));
return tgt;
}
@ -299,14 +293,13 @@ public class CodeSystem14_40 {
return null;
org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionDesignationComponent tgt = new org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionDesignationComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasLanguage())
tgt.setLanguage(src.getLanguage());
if (src.hasLanguageElement())
tgt.setLanguageElement((org.hl7.fhir.dstu2016may.model.CodeType) VersionConvertor_14_40.convertType(src.getLanguageElement()));
if (src.hasUse()) {
tgt.setUse(VersionConvertor_14_40.convertCoding(src.getUse()));
}
if (src.hasValue()) {
tgt.setValue(src.getValue());
}
if (src.hasValueElement())
tgt.setValueElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getValueElement()));
return tgt;
}
@ -315,9 +308,8 @@ public class CodeSystem14_40 {
return null;
org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionPropertyComponent tgt = new org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionPropertyComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(src.getCode());
}
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.dstu2016may.model.CodeType) VersionConvertor_14_40.convertType(src.getCodeElement()));
if (src.hasValue()) {
tgt.setValue(VersionConvertor_14_40.convertType(src.getValue()));
}
@ -329,9 +321,8 @@ public class CodeSystem14_40 {
return null;
org.hl7.fhir.r4.model.CodeSystem.ConceptPropertyComponent tgt = new org.hl7.fhir.r4.model.CodeSystem.ConceptPropertyComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(src.getCode());
}
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_14_40.convertType(src.getCodeElement()));
if (src.hasValue()) {
tgt.setValue(VersionConvertor_14_40.convertType(src.getValue()));
}
@ -343,11 +334,10 @@ public class CodeSystem14_40 {
return null;
org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemPropertyComponent tgt = new org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemPropertyComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(src.getCode());
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.dstu2016may.model.CodeType) VersionConvertor_14_40.convertType(src.getCodeElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getDescriptionElement()));
if (src.hasType()) {
tgt.setType(convertPropertyType(src.getType()));
}
@ -359,11 +349,10 @@ public class CodeSystem14_40 {
return null;
org.hl7.fhir.r4.model.CodeSystem.PropertyComponent tgt = new org.hl7.fhir.r4.model.CodeSystem.PropertyComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(src.getCode());
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_14_40.convertType(src.getCodeElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getDescriptionElement()));
if (src.hasType()) {
tgt.setType(convertPropertyType(src.getType()));
}

View File

@ -2,6 +2,9 @@ package org.hl7.fhir.convertors.conv14_40;
import org.hl7.fhir.convertors.VersionConvertor_14_40;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.StringType;
import java.util.Collections;
public class CompartmentDefinition14_40 {
@ -10,24 +13,22 @@ public class CompartmentDefinition14_40 {
return null;
org.hl7.fhir.r4.model.CompartmentDefinition tgt = new org.hl7.fhir.r4.model.CompartmentDefinition();
VersionConvertor_14_40.copyDomainResource(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl());
}
if (src.hasName()) {
tgt.setName(src.getName());
}
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_14_40.convertType(src.getUrlElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_14_40.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_14_40.convertType(src.getExperimentalElement()));
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.dstu2016may.model.CompartmentDefinition.CompartmentDefinitionContactComponent t : src.getContact()) tgt.addContact(convertCompartmentDefinitionContactComponent(t));
}
if (src.hasDate())
tgt.setDate(src.getDate());
if (src.hasDateElement())
tgt.setDateElement((org.hl7.fhir.r4.model.DateTimeType) VersionConvertor_14_40.convertType(src.getDateElement()));
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasRequirements())
@ -35,9 +36,8 @@ public class CompartmentDefinition14_40 {
if (src.hasCode()) {
tgt.setCode(convertCompartmentType(src.getCode()));
}
if (src.hasSearch()) {
tgt.setSearch(src.getSearch());
}
if (src.hasSearchElement())
tgt.setSearchElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_14_40.convertType(src.getSearchElement()));
if (src.hasResource()) {
for (org.hl7.fhir.dstu2016may.model.CompartmentDefinition.CompartmentDefinitionResourceComponent t : src.getResource()) tgt.addResource(convertCompartmentDefinitionResourceComponent(t));
}
@ -49,34 +49,31 @@ public class CompartmentDefinition14_40 {
return null;
org.hl7.fhir.dstu2016may.model.CompartmentDefinition tgt = new org.hl7.fhir.dstu2016may.model.CompartmentDefinition();
VersionConvertor_14_40.copyDomainResource(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl());
}
if (src.hasName()) {
tgt.setName(src.getName());
}
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu2016may.model.UriType) VersionConvertor_14_40.convertType(src.getUrlElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_14_40.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.dstu2016may.model.BooleanType) VersionConvertor_14_40.convertType(src.getExperimentalElement()));
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(convertCompartmentDefinitionContactComponent(t));
}
if (src.hasDate())
tgt.setDate(src.getDate());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDateElement())
tgt.setDateElement((org.hl7.fhir.dstu2016may.model.DateTimeType) VersionConvertor_14_40.convertType(src.getDateElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getDescriptionElement()));
if (src.hasPurpose())
tgt.setRequirements(src.getPurpose());
if (src.hasCode()) {
tgt.setCode(convertCompartmentType(src.getCode()));
}
if (src.hasSearch()) {
tgt.setSearch(src.getSearch());
}
if (src.hasSearchElement())
tgt.setSearchElement((org.hl7.fhir.dstu2016may.model.BooleanType) VersionConvertor_14_40.convertType(src.getSearchElement()));
if (src.hasResource()) {
for (org.hl7.fhir.r4.model.CompartmentDefinition.CompartmentDefinitionResourceComponent t : src.getResource()) tgt.addResource(convertCompartmentDefinitionResourceComponent(t));
}
@ -88,8 +85,8 @@ public class CompartmentDefinition14_40 {
return null;
org.hl7.fhir.r4.model.ContactDetail tgt = new org.hl7.fhir.r4.model.ContactDetail();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2016may.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_14_40.convertContactPoint(t));
}
@ -101,8 +98,8 @@ public class CompartmentDefinition14_40 {
return null;
org.hl7.fhir.dstu2016may.model.CompartmentDefinition.CompartmentDefinitionContactComponent tgt = new org.hl7.fhir.dstu2016may.model.CompartmentDefinition.CompartmentDefinitionContactComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasTelecom()) {
for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_14_40.convertContactPoint(t));
}
@ -114,14 +111,13 @@ public class CompartmentDefinition14_40 {
return null;
org.hl7.fhir.r4.model.CompartmentDefinition.CompartmentDefinitionResourceComponent tgt = new org.hl7.fhir.r4.model.CompartmentDefinition.CompartmentDefinitionResourceComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(src.getCode());
}
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_14_40.convertType(src.getCodeElement()));
if (src.hasParam()) {
for (org.hl7.fhir.dstu2016may.model.StringType t : src.getParam()) tgt.addParam(t.getValue());
}
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getDocumentationElement()));
return tgt;
}
@ -130,14 +126,13 @@ public class CompartmentDefinition14_40 {
return null;
org.hl7.fhir.dstu2016may.model.CompartmentDefinition.CompartmentDefinitionResourceComponent tgt = new org.hl7.fhir.dstu2016may.model.CompartmentDefinition.CompartmentDefinitionResourceComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(src.getCode());
}
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.dstu2016may.model.CodeType) VersionConvertor_14_40.convertType(src.getCodeElement()));
if (src.hasParam()) {
for (org.hl7.fhir.r4.model.StringType t : src.getParam()) tgt.addParam(t.getValue());
}
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getDocumentationElement()));
return tgt;
}

View File

@ -2,11 +2,12 @@ package org.hl7.fhir.convertors.conv14_40;
import org.hl7.fhir.convertors.VersionConvertor_14_40;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.CanonicalType;
import org.hl7.fhir.r4.model.ConceptMap;
import org.hl7.fhir.r4.model.*;
import org.hl7.fhir.r4.model.ConceptMap.ConceptMapGroupComponent;
import java.util.ArrayList;
import java.util.List;
import java.util.Collections;
public class ConceptMap14_40 {
@ -15,21 +16,21 @@ public class ConceptMap14_40 {
return null;
org.hl7.fhir.r4.model.ConceptMap tgt = new org.hl7.fhir.r4.model.ConceptMap();
VersionConvertor_14_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
tgt.setIdentifier(VersionConvertor_14_40.convertIdentifier(src.getIdentifier()));
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
tgt.setStatus(VersionConvertor_14_40.convertConformanceResourceStatus(src.getStatus()));
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_14_40.convertType(src.getUrlElement()));
if (src.hasIdentifier()) tgt.setIdentifier(VersionConvertor_14_40.convertIdentifier(src.getIdentifier()));
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasStatus()) tgt.setStatus(VersionConvertor_14_40.convertConformanceResourceStatus(src.getStatus()));
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_14_40.convertType(src.getExperimentalElement()));
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getPublisherElement()));
for (org.hl7.fhir.dstu2016may.model.ConceptMap.ConceptMapContactComponent t : src.getContact()) tgt.addContact(convertConceptMapContactComponent(t));
if (src.hasDate())
tgt.setDate(src.getDate());
if (src.hasDateElement())
tgt.setDateElement((org.hl7.fhir.r4.model.DateTimeType) VersionConvertor_14_40.convertType(src.getDateElement()));
if (src.hasDescription())
tgt.setDescription(src.getDescription());
for (org.hl7.fhir.dstu2016may.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_14_40.isJurisdiction(t))
@ -56,29 +57,29 @@ public class ConceptMap14_40 {
return null;
org.hl7.fhir.dstu2016may.model.ConceptMap tgt = new org.hl7.fhir.dstu2016may.model.ConceptMap();
VersionConvertor_14_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu2016may.model.UriType) VersionConvertor_14_40.convertType(src.getUrlElement()));
if (src.hasIdentifier()) {
tgt.setIdentifier(VersionConvertor_14_40.convertIdentifier(src.getIdentifier()));
}
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_14_40.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.dstu2016may.model.BooleanType) VersionConvertor_14_40.convertType(src.getExperimentalElement()));
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(convertConceptMapContactComponent(t));
}
if (src.hasDate())
tgt.setDate(src.getDate());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDateElement())
tgt.setDateElement((org.hl7.fhir.dstu2016may.model.DateTimeType) VersionConvertor_14_40.convertType(src.getDateElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getDescriptionElement()));
for (org.hl7.fhir.r4.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept())
tgt.addUseContext(VersionConvertor_14_40.convertCodeableConcept(t.getValueCodeableConcept()));
if (src.hasJurisdiction()) {
@ -86,8 +87,8 @@ public class ConceptMap14_40 {
}
if (src.hasPurpose())
tgt.setRequirements(src.getPurpose());
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getCopyrightElement()));
if (src.getSource() instanceof CanonicalType)
tgt.setSource(VersionConvertor_14_40.convertCanonicalToReference((CanonicalType) src.getSource()));
else if (src.hasSource()) {
@ -115,8 +116,8 @@ public class ConceptMap14_40 {
return null;
org.hl7.fhir.dstu2016may.model.ConceptMap.ConceptMapContactComponent tgt = new org.hl7.fhir.dstu2016may.model.ConceptMap.ConceptMapContactComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasTelecom()) {
for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_14_40.convertContactPoint(t));
}
@ -128,8 +129,8 @@ public class ConceptMap14_40 {
return null;
org.hl7.fhir.r4.model.ContactDetail tgt = new org.hl7.fhir.r4.model.ContactDetail();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2016may.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_14_40.convertContactPoint(t));
}
@ -195,14 +196,13 @@ public class ConceptMap14_40 {
return null;
org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasElement()) {
tgt.setProperty(src.getElement());
if (src.hasElementElement()) {
tgt.setPropertyElement((UriType) VersionConvertor_14_40.convertType(src.getElementElement()));
}
if (src.hasSystem()) {
tgt.setSystem(src.getSystem());
}
if (src.hasCode()) {
tgt.setValue(src.getCode());
if (src.hasSystemElement())
tgt.setSystemElement((org.hl7.fhir.r4.model.CanonicalType) VersionConvertor_14_40.convertType(src.getSystemElement()));
if (src.hasCodeElement()) {
tgt.setValueElement((StringType) VersionConvertor_14_40.convertType(src.getCodeElement()));
}
return tgt;
}
@ -212,14 +212,13 @@ public class ConceptMap14_40 {
return null;
org.hl7.fhir.dstu2016may.model.ConceptMap.OtherElementComponent tgt = new org.hl7.fhir.dstu2016may.model.ConceptMap.OtherElementComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasProperty()) {
tgt.setElement(src.getProperty());
if (src.hasPropertyElement()) {
tgt.setElementElement((org.hl7.fhir.dstu2016may.model.UriType) VersionConvertor_14_40.convertType(src.getPropertyElement()));
}
if (src.hasSystem()) {
tgt.setSystem(src.getSystem());
}
if (src.hasValue()) {
tgt.setCode(src.getValue());
if (src.hasSystemElement())
tgt.setSystemElement((org.hl7.fhir.dstu2016may.model.UriType) VersionConvertor_14_40.convertType(src.getSystemElement()));
if (src.hasValueElement()) {
tgt.setCodeElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getValueElement()));
}
return tgt;
}
@ -231,8 +230,8 @@ public class ConceptMap14_40 {
for (org.hl7.fhir.dstu2016may.model.ConceptMap.TargetElementComponent t : src.getTarget()) {
org.hl7.fhir.r4.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.SourceElementComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasCode())
tgt.setCode(src.getCode());
if (src.hasCodeElement())
tgt.setCodeElement((CodeType) VersionConvertor_14_40.convertType(src.getCodeElement()));
tgt.addTarget(convertTargetElementComponent(t));
if (src.hasSystem()) {
res.add(new VersionConvertor_14_40.SourceElementComponentWrapper(tgt, src.getSystem(), t.getSystem()));
@ -246,10 +245,10 @@ public class ConceptMap14_40 {
return null;
org.hl7.fhir.dstu2016may.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.dstu2016may.model.ConceptMap.SourceElementComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (g.hasSource())
tgt.setSystem(g.getSource());
if (src.hasCode())
tgt.setCode(src.getCode());
if (g.hasSourceElement())
tgt.setSystemElement((org.hl7.fhir.dstu2016may.model.UriType) VersionConvertor_14_40.convertType(g.getSourceElement()));
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.dstu2016may.model.CodeType) VersionConvertor_14_40.convertType(src.getCodeElement()));
if (src.hasTarget()) {
for (org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent t : src.getTarget()) tgt.addTarget(convertTargetElementComponent(t, g));
}
@ -261,13 +260,13 @@ public class ConceptMap14_40 {
return null;
org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasCode())
tgt.setCode(src.getCode());
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_14_40.convertType(src.getCodeElement()));
if (src.hasEquivalence()) {
tgt.setEquivalence(convertConceptMapEquivalence(src.getEquivalence()));
}
if (src.hasComments())
tgt.setComment(src.getComments());
if (src.hasCommentsElement())
tgt.setCommentElement((StringType) VersionConvertor_14_40.convertType(src.getCommentsElement()));
if (src.hasDependsOn()) {
for (org.hl7.fhir.dstu2016may.model.ConceptMap.OtherElementComponent t : src.getDependsOn()) tgt.addDependsOn(convertOtherElementComponent(t));
}
@ -284,13 +283,13 @@ public class ConceptMap14_40 {
VersionConvertor_14_40.copyElement(src, tgt);
if (g.hasTarget())
tgt.setSystem(g.getTarget());
if (src.hasCode())
tgt.setCode(src.getCode());
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.dstu2016may.model.CodeType) VersionConvertor_14_40.convertType(src.getCodeElement()));
if (src.hasEquivalence()) {
tgt.setEquivalence(convertConceptMapEquivalence(src.getEquivalence()));
}
if (src.hasComment())
tgt.setComments(src.getComment());
if (src.hasCommentElement())
tgt.setCommentsElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getCommentElement()));
if (src.hasDependsOn()) {
for (org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent t : src.getDependsOn()) tgt.addDependsOn(convertOtherElementComponent(t));
}

View File

@ -2,9 +2,15 @@ package org.hl7.fhir.convertors.conv14_40;
import org.hl7.fhir.convertors.VersionConvertorConstants;
import org.hl7.fhir.convertors.VersionConvertor_14_40;
import org.hl7.fhir.dstu2016may.model.BooleanType;
import org.hl7.fhir.dstu2016may.model.CodeType;
import org.hl7.fhir.dstu2016may.model.StringType;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestComponent;
import org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceComponent;
import org.hl7.fhir.r4.model.DateTimeType;
import java.util.Collections;
public class Conformance14_40 {
@ -43,26 +49,26 @@ public class Conformance14_40 {
return null;
org.hl7.fhir.dstu2016may.model.Conformance tgt = new org.hl7.fhir.dstu2016may.model.Conformance();
VersionConvertor_14_40.copyDomainResource(src, tgt, "http://hl7.org/fhir/3.0/StructureDefinition/extension-CapabilityStatement.acceptUnknown");
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu2016may.model.UriType) VersionConvertor_14_40.convertType(src.getUrlElement()));
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_14_40.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasDate())
tgt.setDate(src.getDate());
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.dstu2016may.model.BooleanType) VersionConvertor_14_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement((org.hl7.fhir.dstu2016may.model.DateTimeType) VersionConvertor_14_40.convertType(src.getDateElement()));
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(convertConformanceContactComponent(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getDescriptionElement()));
for (org.hl7.fhir.r4.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept())
tgt.addUseContext(VersionConvertor_14_40.convertCodeableConcept(t.getValueCodeableConcept()));
if (src.hasJurisdiction()) {
@ -70,8 +76,8 @@ public class Conformance14_40 {
}
if (src.hasPurpose())
tgt.setRequirements(src.getPurpose());
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getCopyrightElement()));
if (src.hasKind()) {
tgt.setKind(convertConformanceStatementKind(src.getKind()));
}
@ -109,21 +115,21 @@ public class Conformance14_40 {
return null;
org.hl7.fhir.r4.model.CapabilityStatement tgt = new org.hl7.fhir.r4.model.CapabilityStatement();
VersionConvertor_14_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_14_40.convertType(src.getUrlElement()));
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_14_40.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasDate())
tgt.setDate(src.getDate());
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_14_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement((org.hl7.fhir.r4.model.DateTimeType) VersionConvertor_14_40.convertType(src.getDateElement()));
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.dstu2016may.model.Conformance.ConformanceContactComponent t : src.getContact()) tgt.addContact(convertConformanceContactComponent(t));
}
@ -171,8 +177,8 @@ public class Conformance14_40 {
return null;
org.hl7.fhir.dstu2016may.model.Conformance.ConformanceContactComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceContactComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasTelecom()) {
for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_14_40.convertContactPoint(t));
}
@ -184,8 +190,8 @@ public class Conformance14_40 {
return null;
org.hl7.fhir.r4.model.ContactDetail tgt = new org.hl7.fhir.r4.model.ContactDetail();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2016may.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_14_40.convertContactPoint(t));
}
@ -242,11 +248,11 @@ public class Conformance14_40 {
return null;
org.hl7.fhir.dstu2016may.model.Conformance.ConformanceImplementationComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceImplementationComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasDescription()) {
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement()) {
tgt.setDescriptionElement((StringType) VersionConvertor_14_40.convertType(src.getDescriptionElement()));
}
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu2016may.model.UriType) VersionConvertor_14_40.convertType(src.getUrlElement()));
return tgt;
}
@ -331,7 +337,7 @@ public class Conformance14_40 {
if (src.hasProtocol()) {
tgt.setProtocol(VersionConvertor_14_40.convertCoding(src.getProtocol()));
}
if (src.hasAddress()) {
if (src.hasAddressElement()) {
tgt.setAddress(src.getAddress());
}
return tgt;
@ -418,8 +424,8 @@ public class Conformance14_40 {
return null;
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceOperationComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceOperationComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName());
if (src.hasNameElement()) {
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
}
if (src.hasDefinition()) {
tgt.setDefinitionElement(VersionConvertor_14_40.convertReferenceToCanonical(src.getDefinition()));
@ -432,8 +438,8 @@ public class Conformance14_40 {
return null;
org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestOperationComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestOperationComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName());
if (src.hasNameElement()) {
tgt.setNameElement((StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
}
if (src.hasDefinitionElement()) {
tgt.setDefinition(VersionConvertor_14_40.convertCanonicalToReference(src.getDefinitionElement()));
@ -446,8 +452,8 @@ public class Conformance14_40 {
return null;
org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestResourceComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestResourceComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(src.getType());
if (src.hasTypeElement()) {
tgt.setTypeElement((CodeType) VersionConvertor_14_40.convertType(src.getTypeElement()));
}
if (src.hasProfileElement()) {
tgt.setProfile(VersionConvertor_14_40.convertCanonicalToReference(src.getProfileElement()));
@ -458,14 +464,14 @@ public class Conformance14_40 {
if (src.hasVersioning()) {
tgt.setVersioning(convertResourceVersionPolicy(src.getVersioning()));
}
if (src.hasReadHistory())
tgt.setReadHistory(src.getReadHistory());
if (src.hasUpdateCreate())
tgt.setUpdateCreate(src.getUpdateCreate());
if (src.hasConditionalCreate())
tgt.setConditionalCreate(src.getConditionalCreate());
if (src.hasConditionalUpdate())
tgt.setConditionalUpdate(src.getConditionalUpdate());
if (src.hasReadHistoryElement())
tgt.setReadHistoryElement((BooleanType) VersionConvertor_14_40.convertType(src.getReadHistoryElement()));
if (src.hasUpdateCreateElement())
tgt.setUpdateCreateElement((BooleanType) VersionConvertor_14_40.convertType(src.getUpdateCreateElement()));
if (src.hasConditionalCreateElement())
tgt.setConditionalCreateElement((BooleanType) VersionConvertor_14_40.convertType(src.getConditionalCreateElement()));
if (src.hasConditionalUpdateElement())
tgt.setConditionalUpdateElement((BooleanType) VersionConvertor_14_40.convertType(src.getConditionalUpdateElement()));
if (src.hasConditionalDelete()) {
tgt.setConditionalDelete(convertConditionalDeleteStatus(src.getConditionalDelete()));
}
@ -498,14 +504,14 @@ public class Conformance14_40 {
if (src.hasVersioning()) {
tgt.setVersioning(convertResourceVersionPolicy(src.getVersioning()));
}
if (src.hasReadHistory())
tgt.setReadHistory(src.getReadHistory());
if (src.hasUpdateCreate())
tgt.setUpdateCreate(src.getUpdateCreate());
if (src.hasConditionalCreate())
tgt.setConditionalCreate(src.getConditionalCreate());
if (src.hasConditionalUpdate())
tgt.setConditionalUpdate(src.getConditionalUpdate());
if (src.hasReadHistoryElement())
tgt.setReadHistoryElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_14_40.convertType(src.getReadHistoryElement()));
if (src.hasUpdateCreateElement())
tgt.setUpdateCreateElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_14_40.convertType(src.getUpdateCreateElement()));
if (src.hasConditionalCreateElement())
tgt.setConditionalCreateElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_14_40.convertType(src.getConditionalCreateElement()));
if (src.hasConditionalUpdateElement())
tgt.setConditionalUpdateElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_14_40.convertType(src.getConditionalUpdateElement()));
if (src.hasConditionalDelete()) {
tgt.setConditionalDelete(convertConditionalDeleteStatus(src.getConditionalDelete()));
}
@ -526,8 +532,8 @@ public class Conformance14_40 {
return null;
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName());
if (src.hasNameElement()) {
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
}
if (src.hasDefinition())
tgt.setDefinition(src.getDefinition());
@ -544,8 +550,8 @@ public class Conformance14_40 {
return null;
org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestResourceSearchParamComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestResourceSearchParamComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName());
if (src.hasNameElement()) {
tgt.setNameElement((StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
}
if (src.hasDefinition())
tgt.setDefinition(src.getDefinition());
@ -562,8 +568,8 @@ public class Conformance14_40 {
return null;
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestSecurityComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestSecurityComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasCors())
tgt.setCors(src.getCors());
if (src.hasCorsElement())
tgt.setCorsElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_14_40.convertType(src.getCorsElement()));
if (src.hasService()) {
for (org.hl7.fhir.dstu2016may.model.CodeableConcept t : src.getService()) tgt.addService(VersionConvertor_14_40.convertCodeableConcept(t));
}
@ -577,13 +583,13 @@ public class Conformance14_40 {
return null;
org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestSecurityComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestSecurityComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasCors())
tgt.setCors(src.getCors());
if (src.hasCorsElement())
tgt.setCorsElement((BooleanType) VersionConvertor_14_40.convertType(src.getCorsElement()));
if (src.hasService()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getService()) tgt.addService(VersionConvertor_14_40.convertCodeableConcept(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getDescriptionElement()));
return tgt;
}
@ -592,13 +598,13 @@ public class Conformance14_40 {
return null;
org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementSoftwareComponent tgt = new org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementSoftwareComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName());
if (src.hasNameElement()) {
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
}
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasReleaseDate())
tgt.setReleaseDate(src.getReleaseDate());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getVersionElement()));
if (src.hasReleaseDateElement())
tgt.setReleaseDateElement((DateTimeType) VersionConvertor_14_40.convertType(src.getReleaseDateElement()));
return tgt;
}
@ -607,13 +613,13 @@ public class Conformance14_40 {
return null;
org.hl7.fhir.dstu2016may.model.Conformance.ConformanceSoftwareComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceSoftwareComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName());
if (src.hasNameElement()) {
tgt.setNameElement((StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
}
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasReleaseDate())
tgt.setReleaseDate(src.getReleaseDate());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getVersionElement()));
if (src.hasReleaseDateElement())
tgt.setReleaseDateElement((org.hl7.fhir.dstu2016may.model.DateTimeType) VersionConvertor_14_40.convertType(src.getReleaseDateElement()));
return tgt;
}

View File

@ -2,7 +2,13 @@ package org.hl7.fhir.convertors.conv14_40;
import org.hl7.fhir.convertors.VersionConvertor_14_40;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.BooleanType;
import org.hl7.fhir.r4.model.DateTimeType;
import org.hl7.fhir.r4.model.StringType;
import org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionKind;
import org.hl7.fhir.r4.model.UriType;
import java.util.Collections;
public class DataElement14_40 {
@ -11,24 +17,24 @@ public class DataElement14_40 {
return null;
org.hl7.fhir.r4.model.StructureDefinition tgt = new org.hl7.fhir.r4.model.StructureDefinition();
VersionConvertor_14_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((UriType) VersionConvertor_14_40.convertType(src.getUrlElement()));
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2016may.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_14_40.convertIdentifier(t));
}
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasVersionElement())
tgt.setVersionElement((StringType) VersionConvertor_14_40.convertType(src.getVersionElement()));
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_14_40.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasDate())
tgt.setDate(src.getDate());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((BooleanType) VersionConvertor_14_40.convertType(src.getExperimentalElement()));
if (src.hasPublisherElement())
tgt.setPublisherElement((StringType) VersionConvertor_14_40.convertType(src.getPublisherElement()));
if (src.hasDateElement())
tgt.setDateElement((DateTimeType) VersionConvertor_14_40.convertType(src.getDateElement()));
if (src.hasNameElement())
tgt.setNameElement((StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasContact()) {
for (org.hl7.fhir.dstu2016may.model.DataElement.DataElementContactComponent t : src.getContact()) tgt.addContact(convertDataElementContactComponent(t));
}
@ -57,8 +63,8 @@ public class DataElement14_40 {
return null;
org.hl7.fhir.dstu2016may.model.DataElement.DataElementContactComponent tgt = new org.hl7.fhir.dstu2016may.model.DataElement.DataElementContactComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasTelecom()) {
for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_14_40.convertContactPoint(t));
}
@ -70,8 +76,8 @@ public class DataElement14_40 {
return null;
org.hl7.fhir.r4.model.ContactDetail tgt = new org.hl7.fhir.r4.model.ContactDetail();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2016may.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_14_40.convertContactPoint(t));
}
@ -86,12 +92,12 @@ public class DataElement14_40 {
if (src.hasIdentity()) {
tgt.setIdentity(src.getIdentity());
}
if (src.hasUri())
tgt.setUri(src.getUri());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasComment())
tgt.setComment(src.getComment());
if (src.hasUriElement())
tgt.setUriElement((UriType) VersionConvertor_14_40.convertType(src.getUriElement()));
if (src.hasNameElement())
tgt.setNameElement((StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasCommentElement())
tgt.setCommentElement((StringType) VersionConvertor_14_40.convertType(src.getCommentElement()));
return tgt;
}
}

View File

@ -2,13 +2,16 @@ package org.hl7.fhir.convertors.conv14_40;
import org.hl7.fhir.convertors.VersionConvertorConstants;
import org.hl7.fhir.convertors.VersionConvertor_14_40;
import org.hl7.fhir.dstu2016may.model.IdType;
import org.hl7.fhir.dstu2016may.model.ImplementationGuide.GuidePageKind;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.CanonicalType;
import org.hl7.fhir.r4.model.Enumeration;
import org.hl7.fhir.r4.model.ImplementationGuide.GuidePageGeneration;
import org.hl7.fhir.r4.model.StringType;
import org.hl7.fhir.r4.model.Type;
import java.util.List;
import java.util.Collections;
public class ImplementationGuide14_40 {
@ -17,35 +20,33 @@ public class ImplementationGuide14_40 {
return null;
org.hl7.fhir.dstu2016may.model.ImplementationGuide tgt = new org.hl7.fhir.dstu2016may.model.ImplementationGuide();
VersionConvertor_14_40.copyDomainResource(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl());
}
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName()) {
tgt.setName(src.getName());
}
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu2016may.model.UriType) VersionConvertor_14_40.convertType(src.getUrlElement()));
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_14_40.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.dstu2016may.model.BooleanType) VersionConvertor_14_40.convertType(src.getExperimentalElement()));
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(convertImplementationGuideContactComponent(t));
}
if (src.hasDate())
tgt.setDate(src.getDate());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDateElement())
tgt.setDateElement((org.hl7.fhir.dstu2016may.model.DateTimeType) VersionConvertor_14_40.convertType(src.getDateElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getDescriptionElement()));
for (org.hl7.fhir.r4.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept())
tgt.addUseContext(VersionConvertor_14_40.convertCodeableConcept(t.getValueCodeableConcept()));
if (src.hasJurisdiction()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_14_40.convertCodeableConcept(t));
}
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getCopyrightElement()));
if (src.hasFhirVersion())
for (Enumeration<org.hl7.fhir.r4.model.Enumerations.FHIRVersion> v : src.getFhirVersion()) {
tgt.setFhirVersion(v.asStringValue());
@ -73,26 +74,24 @@ public class ImplementationGuide14_40 {
return null;
org.hl7.fhir.r4.model.ImplementationGuide tgt = new org.hl7.fhir.r4.model.ImplementationGuide();
VersionConvertor_14_40.copyDomainResource(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl());
}
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName()) {
tgt.setName(src.getName());
}
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_14_40.convertType(src.getUrlElement()));
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_14_40.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_14_40.convertType(src.getExperimentalElement()));
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideContactComponent t : src.getContact()) tgt.addContact(convertImplementationGuideContactComponent(t));
}
if (src.hasDate())
tgt.setDate(src.getDate());
if (src.hasDateElement())
tgt.setDateElement((org.hl7.fhir.r4.model.DateTimeType) VersionConvertor_14_40.convertType(src.getDateElement()));
if (src.hasDescription())
tgt.setDescription(src.getDescription());
for (org.hl7.fhir.dstu2016may.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_14_40.isJurisdiction(t))
@ -102,7 +101,7 @@ public class ImplementationGuide14_40 {
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasFhirVersion())
tgt.addFhirVersion(org.hl7.fhir.r4.model.Enumerations.FHIRVersion.fromCode(src.getFhirVersion()));
tgt.addFhirVersion(org.hl7.fhir.r4.model.Enumerations.FHIRVersion.fromCode(src.getFhirVersion()));
if (src.hasDependency()) {
for (org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideDependencyComponent t : src.getDependency()) tgt.addDependsOn(convertImplementationGuideDependencyComponent(t));
}
@ -123,8 +122,8 @@ public class ImplementationGuide14_40 {
return null;
org.hl7.fhir.r4.model.ContactDetail tgt = new org.hl7.fhir.r4.model.ContactDetail();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2016may.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_14_40.convertContactPoint(t));
}
@ -136,8 +135,8 @@ public class ImplementationGuide14_40 {
return null;
org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideContactComponent tgt = new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideContactComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasTelecom()) {
for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_14_40.convertContactPoint(t));
}
@ -150,9 +149,8 @@ public class ImplementationGuide14_40 {
org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideDependencyComponent tgt = new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideDependencyComponent();
VersionConvertor_14_40.copyElement(src, tgt);
tgt.setType(org.hl7.fhir.dstu2016may.model.ImplementationGuide.GuideDependencyType.REFERENCE);
if (src.hasUri()) {
tgt.setUri(src.getUri());
}
if (src.hasUriElement())
tgt.setUriElement((org.hl7.fhir.dstu2016may.model.UriType) VersionConvertor_14_40.convertType(src.getUriElement()));
return tgt;
}
@ -161,9 +159,8 @@ public class ImplementationGuide14_40 {
return null;
org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDependsOnComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDependsOnComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasUri()) {
tgt.setUri(src.getUri());
}
if (src.hasUriElement())
tgt.setUriElement((org.hl7.fhir.r4.model.CanonicalType) VersionConvertor_14_40.convertType(src.getUriElement()));
if (org.hl7.fhir.dstu2016may.utils.ToolingExtensions.hasExtension(src, VersionConvertorConstants.IG_DEPENDSON_PACKAGE_EXTENSION)) {
tgt.setPackageId(org.hl7.fhir.dstu2016may.utils.ToolingExtensions.readStringExtension(src, VersionConvertorConstants.IG_DEPENDSON_PACKAGE_EXTENSION));
}
@ -178,9 +175,8 @@ public class ImplementationGuide14_40 {
return null;
org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideGlobalComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(src.getType());
}
if (src.hasTypeElement())
tgt.setTypeElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_14_40.convertType(src.getTypeElement()));
if (src.hasProfile()) {
tgt.setProfileElement(VersionConvertor_14_40.convertReferenceToCanonical(src.getProfile()));
}
@ -192,9 +188,8 @@ public class ImplementationGuide14_40 {
return null;
org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideGlobalComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasType()) {
tgt.setType(src.getType());
}
if (src.hasTypeElement())
tgt.setTypeElement((org.hl7.fhir.dstu2016may.model.CodeType) VersionConvertor_14_40.convertType(src.getTypeElement()));
if (src.hasProfileElement()) {
tgt.setProfile(VersionConvertor_14_40.convertCanonicalToReference(src.getProfileElement()));
}
@ -209,8 +204,8 @@ public class ImplementationGuide14_40 {
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((StringType) VersionConvertor_14_40.convertType(src.getDescriptionElement()));
for (org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePackageResourceComponent t : src.getResource()) {
org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideDefinitionResourceComponent tn = convertImplementationGuidePackageResourceComponent(t);
tn.setGroupingId(tgt.getId());
@ -224,14 +219,13 @@ public class ImplementationGuide14_40 {
return null;
org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePackageComponent tgt = new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePackageComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasId()) {
tgt.setId(src.getId());
if (src.hasIdElement()) {
tgt.setIdElement((IdType) VersionConvertor_14_40.convertType(src.getIdElement()));
}
if (src.hasName()) {
tgt.setName(src.getName());
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getDescriptionElement()));
return tgt;
}
@ -249,10 +243,10 @@ public class ImplementationGuide14_40 {
tgt.setExample(src.getExampleBooleanType().getValue());
else
tgt.setExample(false);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getDescriptionElement()));
if (src.hasReference())
tgt.setSource(VersionConvertor_14_40.convertReference(src.getReference()));
return tgt;
@ -267,11 +261,11 @@ public class ImplementationGuide14_40 {
Type t = VersionConvertor_14_40.convertType(src.getExampleFor());
tgt.setExample(t instanceof org.hl7.fhir.r4.model.Reference ? new CanonicalType(((org.hl7.fhir.r4.model.Reference) t).getReference()) : t);
} else if (src.hasExample())
tgt.setExample(new org.hl7.fhir.r4.model.BooleanType(src.getExample()));
if (src.hasName())
tgt.setName(src.getName());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
tgt.setExample(new org.hl7.fhir.r4.model.BooleanType(src.getExample()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getDescriptionElement()));
if (src.hasSourceReference())
tgt.setReference(VersionConvertor_14_40.convertReference(src.getSourceReference()));
else if (src.hasSourceUriType())
@ -286,8 +280,8 @@ public class ImplementationGuide14_40 {
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasSource())
tgt.setName(convertUriToUrl(src.getSourceElement()));
if (src.hasName()) {
tgt.setTitle(src.getName());
if (src.hasNameElement()) {
tgt.setTitleElement((StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
}
if (src.hasKind())
tgt.setGeneration(convertPageGeneration(src.getKind()));
@ -304,8 +298,8 @@ public class ImplementationGuide14_40 {
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasNameUrlType())
tgt.setSource(src.getNameUrlType().getValue());
if (src.hasTitle()) {
tgt.setName(src.getTitle());
if (src.hasTitleElement()) {
tgt.setNameElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getTitleElement()));
}
if (src.hasGeneration())
tgt.setKind(convertPageGeneration(src.getGeneration()));

View File

@ -1,7 +1,9 @@
package org.hl7.fhir.convertors.conv14_40;
import org.hl7.fhir.convertors.VersionConvertor_14_40;
import org.hl7.fhir.dstu2016may.model.StringType;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class NamingSystem14_40 {
@ -10,25 +12,23 @@ public class NamingSystem14_40 {
return null;
org.hl7.fhir.r4.model.NamingSystem tgt = new org.hl7.fhir.r4.model.NamingSystem();
VersionConvertor_14_40.copyDomainResource(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName());
}
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_14_40.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasKind()) {
tgt.setKind(convertNamingSystemType(src.getKind()));
}
if (src.hasDate()) {
tgt.setDate(src.getDate());
}
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasDateElement())
tgt.setDateElement((org.hl7.fhir.r4.model.DateTimeType) VersionConvertor_14_40.convertType(src.getDateElement()));
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.dstu2016may.model.NamingSystem.NamingSystemContactComponent t : src.getContact()) tgt.addContact(convertNamingSystemContactComponent(t));
}
if (src.hasResponsible())
tgt.setResponsible(src.getResponsible());
if (src.hasResponsibleElement())
tgt.setResponsibleElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getResponsibleElement()));
if (src.hasType()) {
tgt.setType(VersionConvertor_14_40.convertCodeableConcept(src.getType()));
}
@ -38,8 +38,8 @@ public class NamingSystem14_40 {
tgt.addJurisdiction(VersionConvertor_14_40.convertCodeableConcept(t));
else
tgt.addUseContext(VersionConvertor_14_40.convertCodeableConceptToUsageContext(t));
if (src.hasUsage())
tgt.setUsage(src.getUsage());
if (src.hasUsageElement())
tgt.setUsageElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getUsageElement()));
if (src.hasUniqueId()) {
for (org.hl7.fhir.dstu2016may.model.NamingSystem.NamingSystemUniqueIdComponent t : src.getUniqueId()) tgt.addUniqueId(convertNamingSystemUniqueIdComponent(t));
}
@ -51,37 +51,35 @@ public class NamingSystem14_40 {
return null;
org.hl7.fhir.dstu2016may.model.NamingSystem tgt = new org.hl7.fhir.dstu2016may.model.NamingSystem();
VersionConvertor_14_40.copyDomainResource(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName());
}
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_14_40.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasKind()) {
tgt.setKind(convertNamingSystemType(src.getKind()));
}
if (src.hasDate()) {
tgt.setDate(src.getDate());
}
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasDateElement())
tgt.setDateElement((org.hl7.fhir.dstu2016may.model.DateTimeType) VersionConvertor_14_40.convertType(src.getDateElement()));
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(convertNamingSystemContactComponent(t));
}
if (src.hasResponsible())
tgt.setResponsible(src.getResponsible());
if (src.hasResponsibleElement())
tgt.setResponsibleElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getResponsibleElement()));
if (src.hasType()) {
tgt.setType(VersionConvertor_14_40.convertCodeableConcept(src.getType()));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getDescriptionElement()));
for (org.hl7.fhir.r4.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept())
tgt.addUseContext(VersionConvertor_14_40.convertCodeableConcept(t.getValueCodeableConcept()));
if (src.hasJurisdiction()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_14_40.convertCodeableConcept(t));
}
if (src.hasUsage())
tgt.setUsage(src.getUsage());
if (src.hasUsageElement())
tgt.setUsageElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getUsageElement()));
if (src.hasUniqueId()) {
for (org.hl7.fhir.r4.model.NamingSystem.NamingSystemUniqueIdComponent t : src.getUniqueId()) tgt.addUniqueId(convertNamingSystemUniqueIdComponent(t));
}
@ -93,8 +91,8 @@ public class NamingSystem14_40 {
return null;
org.hl7.fhir.dstu2016may.model.NamingSystem.NamingSystemContactComponent tgt = new org.hl7.fhir.dstu2016may.model.NamingSystem.NamingSystemContactComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasTelecom()) {
for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_14_40.convertContactPoint(t));
}
@ -106,8 +104,8 @@ public class NamingSystem14_40 {
return null;
org.hl7.fhir.r4.model.ContactDetail tgt = new org.hl7.fhir.r4.model.ContactDetail();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2016may.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_14_40.convertContactPoint(t));
}
@ -186,11 +184,10 @@ public class NamingSystem14_40 {
if (src.hasType()) {
tgt.setType(convertNamingSystemIdentifierType(src.getType()));
}
if (src.hasValue()) {
tgt.setValue(src.getValue());
}
if (src.hasPreferred())
tgt.setPreferred(src.getPreferred());
if (src.hasValueElement())
tgt.setValueElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getValueElement()));
if (src.hasPreferredElement())
tgt.setPreferredElement((org.hl7.fhir.dstu2016may.model.BooleanType) VersionConvertor_14_40.convertType(src.getPreferredElement()));
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_14_40.convertPeriod(src.getPeriod()));
}
@ -205,11 +202,10 @@ public class NamingSystem14_40 {
if (src.hasType()) {
tgt.setType(convertNamingSystemIdentifierType(src.getType()));
}
if (src.hasValue()) {
tgt.setValue(src.getValue());
}
if (src.hasPreferred())
tgt.setPreferred(src.getPreferred());
if (src.hasValueElement())
tgt.setValueElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getValueElement()));
if (src.hasPreferredElement())
tgt.setPreferredElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_14_40.convertType(src.getPreferredElement()));
if (src.hasPeriod()) {
tgt.setPeriod(VersionConvertor_14_40.convertPeriod(src.getPeriod()));
}

View File

@ -2,8 +2,10 @@ package org.hl7.fhir.convertors.conv14_40;
import org.hl7.fhir.convertors.VersionConvertorConstants;
import org.hl7.fhir.convertors.VersionConvertor_14_40;
import org.hl7.fhir.dstu2016may.model.StringType;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.Type;
import java.util.Collections;
public class OperationDefinition14_40 {
@ -12,25 +14,24 @@ public class OperationDefinition14_40 {
return null;
org.hl7.fhir.r4.model.OperationDefinition tgt = new org.hl7.fhir.r4.model.OperationDefinition();
VersionConvertor_14_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName()) {
tgt.setName(src.getName());
}
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_14_40.convertType(src.getUrlElement()));
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_14_40.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasKind()) {
tgt.setKind(convertOperationKind(src.getKind()));
}
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasDate())
tgt.setDate(src.getDate());
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_14_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement((org.hl7.fhir.r4.model.DateTimeType) VersionConvertor_14_40.convertType(src.getDateElement()));
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionContactComponent t : src.getContact()) tgt.addContact(convertOperationDefinitionContactComponent(t));
}
@ -44,24 +45,21 @@ public class OperationDefinition14_40 {
tgt.setPurpose(src.getRequirements());
if (src.hasIdempotent())
tgt.setAffectsState(!src.getIdempotent());
if (src.hasCode()) {
tgt.setCode(src.getCode());
}
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_14_40.convertType(src.getCodeElement()));
if (src.hasComment())
tgt.setComment(src.getComment());
if (src.hasBase()) {
tgt.setBaseElement(VersionConvertor_14_40.convertReferenceToCanonical(src.getBase()));
}
if (src.hasSystem()) {
tgt.setSystem(src.getSystem());
}
if (src.hasSystemElement())
tgt.setSystemElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_14_40.convertType(src.getSystemElement()));
if (src.hasType()) {
for (org.hl7.fhir.dstu2016may.model.CodeType t : src.getType()) tgt.addResource(t.getValue());
}
tgt.setType(tgt.hasResource());
if (src.hasInstance()) {
tgt.setInstance(src.getInstance());
}
if (src.hasInstanceElement())
tgt.setInstanceElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_14_40.convertType(src.getInstanceElement()));
if (src.hasParameter()) {
for (org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionParameterComponent t : src.getParameter()) tgt.addParameter(convertOperationDefinitionParameterComponent(t));
}
@ -73,30 +71,29 @@ public class OperationDefinition14_40 {
return null;
org.hl7.fhir.dstu2016may.model.OperationDefinition tgt = new org.hl7.fhir.dstu2016may.model.OperationDefinition();
VersionConvertor_14_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName()) {
tgt.setName(src.getName());
}
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu2016may.model.UriType) VersionConvertor_14_40.convertType(src.getUrlElement()));
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_14_40.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasKind()) {
tgt.setKind(convertOperationKind(src.getKind()));
}
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasDate())
tgt.setDate(src.getDate());
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.dstu2016may.model.BooleanType) VersionConvertor_14_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement((org.hl7.fhir.dstu2016may.model.DateTimeType) VersionConvertor_14_40.convertType(src.getDateElement()));
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(convertOperationDefinitionContactComponent(t));
}
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getDescriptionElement()));
for (org.hl7.fhir.r4.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept())
tgt.addUseContext(VersionConvertor_14_40.convertCodeableConcept(t.getValueCodeableConcept()));
if (src.hasJurisdiction()) {
@ -106,24 +103,21 @@ public class OperationDefinition14_40 {
tgt.setRequirements(src.getPurpose());
if (src.hasAffectsState())
tgt.setIdempotent(!src.getAffectsState());
if (src.hasCode()) {
tgt.setCode(src.getCode());
}
if (src.hasComment())
tgt.setComment(src.getComment());
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.dstu2016may.model.CodeType) VersionConvertor_14_40.convertType(src.getCodeElement()));
if (src.hasCommentElement())
tgt.setCommentElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getCommentElement()));
if (src.hasBaseElement()) {
tgt.setBase(VersionConvertor_14_40.convertCanonicalToReference(src.getBaseElement()));
}
if (src.hasSystem()) {
tgt.setSystem(src.getSystem());
}
if (src.hasSystemElement())
tgt.setSystemElement((org.hl7.fhir.dstu2016may.model.BooleanType) VersionConvertor_14_40.convertType(src.getSystemElement()));
if (src.getType())
if (src.hasResource()) {
for (org.hl7.fhir.r4.model.CodeType t : src.getResource()) tgt.addType(t.getValue());
}
if (src.hasInstance()) {
tgt.setInstance(src.getInstance());
}
if (src.hasInstanceElement())
tgt.setInstanceElement((org.hl7.fhir.dstu2016may.model.BooleanType) VersionConvertor_14_40.convertType(src.getInstanceElement()));
if (src.hasParameter()) {
for (org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionParameterComponent t : src.getParameter()) tgt.addParameter(convertOperationDefinitionParameterComponent(t));
}
@ -135,8 +129,8 @@ public class OperationDefinition14_40 {
return null;
org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionContactComponent tgt = new org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionContactComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasTelecom()) {
for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_14_40.convertContactPoint(t));
}
@ -148,8 +142,8 @@ public class OperationDefinition14_40 {
return null;
org.hl7.fhir.r4.model.ContactDetail tgt = new org.hl7.fhir.r4.model.ContactDetail();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2016may.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_14_40.convertContactPoint(t));
}
@ -194,22 +188,19 @@ public class OperationDefinition14_40 {
return null;
org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionParameterComponent tgt = new org.hl7.fhir.r4.model.OperationDefinition.OperationDefinitionParameterComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName());
}
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasUse()) {
tgt.setUse(convertOperationParameterUse(src.getUse()));
}
if (src.hasMin()) {
tgt.setMin(src.getMin());
}
if (src.hasMax()) {
tgt.setMax(src.getMax());
}
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasType())
tgt.setType(src.getType());
if (src.hasMinElement())
tgt.setMinElement((org.hl7.fhir.r4.model.IntegerType) VersionConvertor_14_40.convertType(src.getMinElement()));
if (src.hasMaxElement())
tgt.setMaxElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getMaxElement()));
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getDocumentationElement()));
if (src.hasTypeElement())
tgt.setTypeElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_14_40.convertType(src.getTypeElement()));
if (src.hasSearchType()) {
tgt.setSearchType(VersionConvertor_14_40.convertSearchParamType(src.getSearchType()));
}
@ -230,22 +221,19 @@ public class OperationDefinition14_40 {
return null;
org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionParameterComponent tgt = new org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionParameterComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName());
}
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu2016may.model.CodeType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasUse()) {
tgt.setUse(convertOperationParameterUse(src.getUse()));
}
if (src.hasMin()) {
tgt.setMin(src.getMin());
}
if (src.hasMax()) {
tgt.setMax(src.getMax());
}
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasType())
tgt.setType(src.getType());
if (src.hasMinElement())
tgt.setMinElement((org.hl7.fhir.dstu2016may.model.IntegerType) VersionConvertor_14_40.convertType(src.getMinElement()));
if (src.hasMaxElement())
tgt.setMaxElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getMaxElement()));
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getDocumentationElement()));
if (src.hasTypeElement())
tgt.setTypeElement((org.hl7.fhir.dstu2016may.model.CodeType) VersionConvertor_14_40.convertType(src.getTypeElement()));
if (src.hasSearchType()) {
tgt.setSearchType(VersionConvertor_14_40.convertSearchParamType(src.getSearchType()));
}

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv14_40;
import org.hl7.fhir.convertors.VersionConvertor_14_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class OperationOutcome14_40 {
@ -209,8 +210,8 @@ public class OperationOutcome14_40 {
if (src.hasDetails()) {
tgt.setDetails(VersionConvertor_14_40.convertCodeableConcept(src.getDetails()));
}
if (src.hasDiagnostics())
tgt.setDiagnostics(src.getDiagnostics());
if (src.hasDiagnosticsElement())
tgt.setDiagnosticsElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getDiagnosticsElement()));
if (src.hasLocation()) {
for (org.hl7.fhir.r4.model.StringType t : src.getLocation()) tgt.addLocation(t.getValue());
}
@ -234,8 +235,8 @@ public class OperationOutcome14_40 {
if (src.hasDetails()) {
tgt.setDetails(VersionConvertor_14_40.convertCodeableConcept(src.getDetails()));
}
if (src.hasDiagnostics())
tgt.setDiagnostics(src.getDiagnostics());
if (src.hasDiagnosticsElement())
tgt.setDiagnosticsElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getDiagnosticsElement()));
if (src.hasLocation()) {
for (org.hl7.fhir.dstu2016may.model.StringType t : src.getLocation()) tgt.addLocation(t.getValue());
}

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv14_40;
import org.hl7.fhir.convertors.VersionConvertor_14_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class Parameters14_40 {
@ -32,9 +33,8 @@ public class Parameters14_40 {
return null;
org.hl7.fhir.r4.model.Parameters.ParametersParameterComponent tgt = new org.hl7.fhir.r4.model.Parameters.ParametersParameterComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName());
}
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasValue()) {
tgt.setValue(VersionConvertor_14_40.convertType(src.getValue()));
}
@ -52,9 +52,8 @@ public class Parameters14_40 {
return null;
org.hl7.fhir.dstu2016may.model.Parameters.ParametersParameterComponent tgt = new org.hl7.fhir.dstu2016may.model.Parameters.ParametersParameterComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName());
}
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasValue()) {
tgt.setValue(VersionConvertor_14_40.convertType(src.getValue()));
}

View File

@ -5,6 +5,7 @@ import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.ContactDetail;
import org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemOperator;
import org.hl7.fhir.r4.model.UsageContext;
import java.util.Collections;
public class Questionnaire14_40 {
@ -13,20 +14,20 @@ public class Questionnaire14_40 {
return null;
org.hl7.fhir.r4.model.Questionnaire tgt = new org.hl7.fhir.r4.model.Questionnaire();
VersionConvertor_14_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_14_40.convertType(src.getUrlElement()));
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2016may.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_14_40.convertIdentifier(t));
}
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getVersionElement()));
if (src.hasStatus()) {
tgt.setStatus(convertQuestionnaireStatus(src.getStatus()));
}
if (src.hasDate())
tgt.setDate(src.getDate());
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasDateElement())
tgt.setDateElement((org.hl7.fhir.r4.model.DateTimeType) VersionConvertor_14_40.convertType(src.getDateElement()));
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getPublisherElement()));
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2016may.model.ContactPoint t : src.getTelecom()) tgt.addContact(convertQuestionnaireContactComponent(t));
}
@ -34,8 +35,8 @@ public class Questionnaire14_40 {
tgt.addJurisdiction(VersionConvertor_14_40.convertCodeableConcept(t));
else
tgt.addUseContext(VersionConvertor_14_40.convertCodeableConceptToUsageContext(t));
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getTitleElement()));
if (src.hasConcept()) {
for (org.hl7.fhir.dstu2016may.model.Coding t : src.getConcept()) tgt.addCode(VersionConvertor_14_40.convertCoding(t));
}
@ -53,20 +54,20 @@ public class Questionnaire14_40 {
return null;
org.hl7.fhir.dstu2016may.model.Questionnaire tgt = new org.hl7.fhir.dstu2016may.model.Questionnaire();
VersionConvertor_14_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu2016may.model.UriType) VersionConvertor_14_40.convertType(src.getUrlElement()));
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_14_40.convertIdentifier(t));
}
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getVersionElement()));
if (src.hasStatus()) {
tgt.setStatus(convertQuestionnaireStatus(src.getStatus()));
}
if (src.hasDate())
tgt.setDate(src.getDate());
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasDateElement())
tgt.setDateElement((org.hl7.fhir.dstu2016may.model.DateTimeType) VersionConvertor_14_40.convertType(src.getDateElement()));
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (ContactDetail t : src.getContact()) for (org.hl7.fhir.r4.model.ContactPoint t1 : t.getTelecom()) tgt.addTelecom(VersionConvertor_14_40.convertContactPoint(t1));
}
@ -76,8 +77,8 @@ public class Questionnaire14_40 {
if (src.hasJurisdiction()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_14_40.convertCodeableConcept(t));
}
if (src.hasTitle())
tgt.setTitle(src.getTitle());
if (src.hasTitleElement())
tgt.setTitleElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getTitleElement()));
if (src.hasCode()) {
for (org.hl7.fhir.r4.model.Coding t : src.getCode()) tgt.addConcept(VersionConvertor_14_40.convertCoding(t));
}
@ -104,29 +105,29 @@ public class Questionnaire14_40 {
return null;
org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemComponent tgt = new org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasLinkId())
tgt.setLinkId(src.getLinkId());
if (src.hasLinkIdElement())
tgt.setLinkIdElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getLinkIdElement()));
if (src.hasConcept()) {
for (org.hl7.fhir.dstu2016may.model.Coding t : src.getConcept()) tgt.addCode(VersionConvertor_14_40.convertCoding(t));
}
if (src.hasPrefix())
tgt.setPrefix(src.getPrefix());
if (src.hasText())
tgt.setText(src.getText());
if (src.hasPrefixElement())
tgt.setPrefixElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getPrefixElement()));
if (src.hasTextElement())
tgt.setTextElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getTextElement()));
if (src.hasType()) {
tgt.setType(convertQuestionnaireItemType(src.getType()));
}
if (src.hasEnableWhen()) {
for (org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemEnableWhenComponent t : src.getEnableWhen()) tgt.addEnableWhen(convertQuestionnaireItemEnableWhenComponent(t));
}
if (src.hasRequired())
tgt.setRequired(src.getRequired());
if (src.hasRepeats())
tgt.setRepeats(src.getRepeats());
if (src.hasReadOnly())
tgt.setReadOnly(src.getReadOnly());
if (src.hasMaxLength())
tgt.setMaxLength(src.getMaxLength());
if (src.hasRequiredElement())
tgt.setRequiredElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_14_40.convertType(src.getRequiredElement()));
if (src.hasRepeatsElement())
tgt.setRepeatsElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_14_40.convertType(src.getRepeatsElement()));
if (src.hasReadOnlyElement())
tgt.setReadOnlyElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_14_40.convertType(src.getReadOnlyElement()));
if (src.hasMaxLengthElement())
tgt.setMaxLengthElement((org.hl7.fhir.r4.model.IntegerType) VersionConvertor_14_40.convertType(src.getMaxLengthElement()));
if (src.hasOptions()) {
tgt.setAnswerValueSetElement(VersionConvertor_14_40.convertReferenceToCanonical(src.getOptions()));
}
@ -147,29 +148,29 @@ public class Questionnaire14_40 {
return null;
org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemComponent tgt = new org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasLinkId())
tgt.setLinkId(src.getLinkId());
if (src.hasLinkIdElement())
tgt.setLinkIdElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getLinkIdElement()));
if (src.hasCode()) {
for (org.hl7.fhir.r4.model.Coding t : src.getCode()) tgt.addConcept(VersionConvertor_14_40.convertCoding(t));
}
if (src.hasPrefix())
tgt.setPrefix(src.getPrefix());
if (src.hasText())
tgt.setText(src.getText());
if (src.hasPrefixElement())
tgt.setPrefixElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getPrefixElement()));
if (src.hasTextElement())
tgt.setTextElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getTextElement()));
if (src.hasType()) {
tgt.setType(convertQuestionnaireItemType(src.getType()));
}
if (src.hasEnableWhen()) {
for (org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemEnableWhenComponent t : src.getEnableWhen()) tgt.addEnableWhen(convertQuestionnaireItemEnableWhenComponent(t));
}
if (src.hasRequired())
tgt.setRequired(src.getRequired());
if (src.hasRepeats())
tgt.setRepeats(src.getRepeats());
if (src.hasReadOnly())
tgt.setReadOnly(src.getReadOnly());
if (src.hasMaxLength())
tgt.setMaxLength(src.getMaxLength());
if (src.hasRequiredElement())
tgt.setRequiredElement((org.hl7.fhir.dstu2016may.model.BooleanType) VersionConvertor_14_40.convertType(src.getRequiredElement()));
if (src.hasRepeatsElement())
tgt.setRepeatsElement((org.hl7.fhir.dstu2016may.model.BooleanType) VersionConvertor_14_40.convertType(src.getRepeatsElement()));
if (src.hasReadOnlyElement())
tgt.setReadOnlyElement((org.hl7.fhir.dstu2016may.model.BooleanType) VersionConvertor_14_40.convertType(src.getReadOnlyElement()));
if (src.hasMaxLengthElement())
tgt.setMaxLengthElement((org.hl7.fhir.dstu2016may.model.IntegerType) VersionConvertor_14_40.convertType(src.getMaxLengthElement()));
if (src.hasAnswerValueSetElement()) {
tgt.setOptions(VersionConvertor_14_40.convertCanonicalToReference(src.getAnswerValueSetElement()));
}
@ -189,9 +190,8 @@ public class Questionnaire14_40 {
return null;
org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemEnableWhenComponent tgt = new org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemEnableWhenComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasQuestion()) {
tgt.setQuestion(src.getQuestion());
}
if (src.hasQuestionElement())
tgt.setQuestionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getQuestionElement()));
if (src.hasAnswered()) {
tgt.setOperator(QuestionnaireItemOperator.EXISTS);
if (src.hasAnsweredElement()) {
@ -209,9 +209,8 @@ public class Questionnaire14_40 {
return null;
org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemEnableWhenComponent tgt = new org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemEnableWhenComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasQuestion()) {
tgt.setQuestion(src.getQuestion());
}
if (src.hasQuestionElement())
tgt.setQuestionElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getQuestionElement()));
if (src.hasOperator() && src.getOperator() == QuestionnaireItemOperator.EXISTS)
tgt.setAnswered(src.getAnswerBooleanType().getValue());
else

View File

@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv14_40;
import org.hl7.fhir.convertors.VersionConvertor_14_40;
import org.hl7.fhir.exceptions.FHIRException;
import java.util.Collections;
public class QuestionnaireResponse14_40 {
@ -28,8 +29,8 @@ public class QuestionnaireResponse14_40 {
if (src.hasAuthor()) {
tgt.setAuthor(VersionConvertor_14_40.convertReference(src.getAuthor()));
}
if (src.hasAuthored())
tgt.setAuthored(src.getAuthored());
if (src.hasAuthoredElement())
tgt.setAuthoredElement((org.hl7.fhir.r4.model.DateTimeType) VersionConvertor_14_40.convertType(src.getAuthoredElement()));
if (src.hasSource()) {
tgt.setSource(VersionConvertor_14_40.convertReference(src.getSource()));
}
@ -62,8 +63,8 @@ public class QuestionnaireResponse14_40 {
if (src.hasAuthor()) {
tgt.setAuthor(VersionConvertor_14_40.convertReference(src.getAuthor()));
}
if (src.hasAuthored())
tgt.setAuthored(src.getAuthored());
if (src.hasAuthoredElement())
tgt.setAuthoredElement((org.hl7.fhir.dstu2016may.model.DateTimeType) VersionConvertor_14_40.convertType(src.getAuthoredElement()));
if (src.hasSource()) {
tgt.setSource(VersionConvertor_14_40.convertReference(src.getSource()));
}
@ -106,10 +107,10 @@ public class QuestionnaireResponse14_40 {
return null;
org.hl7.fhir.dstu2016may.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt = new org.hl7.fhir.dstu2016may.model.QuestionnaireResponse.QuestionnaireResponseItemComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasLinkId())
tgt.setLinkId(src.getLinkId());
if (src.hasText())
tgt.setText(src.getText());
if (src.hasLinkIdElement())
tgt.setLinkIdElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getLinkIdElement()));
if (src.hasTextElement())
tgt.setTextElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getTextElement()));
if (src.hasAnswer()) {
for (org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent t : src.getAnswer()) tgt.addAnswer(convertQuestionnaireResponseItemAnswerComponent(t));
}
@ -124,10 +125,10 @@ public class QuestionnaireResponse14_40 {
return null;
org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemComponent tgt = new org.hl7.fhir.r4.model.QuestionnaireResponse.QuestionnaireResponseItemComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasLinkId())
tgt.setLinkId(src.getLinkId());
if (src.hasText())
tgt.setText(src.getText());
if (src.hasLinkIdElement())
tgt.setLinkIdElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getLinkIdElement()));
if (src.hasTextElement())
tgt.setTextElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getTextElement()));
if (src.hasAnswer()) {
for (org.hl7.fhir.dstu2016may.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent t : src.getAnswer()) tgt.addAnswer(convertQuestionnaireResponseItemAnswerComponent(t));
}

View File

@ -2,6 +2,9 @@ package org.hl7.fhir.convertors.conv14_40;
import org.hl7.fhir.convertors.VersionConvertor_14_40;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.StringType;
import java.util.Collections;
public class SearchParameter14_40 {
@ -10,21 +13,19 @@ public class SearchParameter14_40 {
return null;
org.hl7.fhir.r4.model.SearchParameter tgt = new org.hl7.fhir.r4.model.SearchParameter();
VersionConvertor_14_40.copyDomainResource(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl());
}
if (src.hasName()) {
tgt.setName(src.getName());
}
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_14_40.convertType(src.getUrlElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_14_40.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasDate())
tgt.setDate(src.getDate());
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_14_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement((org.hl7.fhir.r4.model.DateTimeType) VersionConvertor_14_40.convertType(src.getDateElement()));
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.dstu2016may.model.SearchParameter.SearchParameterContactComponent t : src.getContact()) tgt.addContact(convertSearchParameterContactComponent(t));
}
@ -34,22 +35,19 @@ public class SearchParameter14_40 {
tgt.addUseContext(VersionConvertor_14_40.convertCodeableConceptToUsageContext(t));
if (src.hasRequirements())
tgt.setPurpose(src.getRequirements());
if (src.hasCode()) {
tgt.setCode(src.getCode());
}
if (src.hasBase()) {
tgt.addBase(src.getBase());
}
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_14_40.convertType(src.getCodeElement()));
if (src.hasBaseElement())
tgt.setBase(Collections.singletonList((org.hl7.fhir.r4.model.CodeType) VersionConvertor_14_40.convertType(src.getBaseElement())));
if (src.hasType()) {
tgt.setType(VersionConvertor_14_40.convertSearchParamType(src.getType()));
}
if (src.hasDescription()) {
if (src.hasDescription())
tgt.setDescription(src.getDescription());
}
if (src.hasExpression())
tgt.setExpression(VersionConvertor_14_40.convertToR4Expression(src.getExpression()));
if (src.hasXpath())
tgt.setXpath(src.getXpath());
if (src.hasExpressionElement())
tgt.setExpressionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getExpressionElement()));
if (src.hasXpathElement())
tgt.setXpathElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getXpathElement()));
if (src.hasXpathUsage()) {
tgt.setXpathUsage(convertXPathUsageType(src.getXpathUsage()));
}
@ -64,21 +62,19 @@ public class SearchParameter14_40 {
return null;
org.hl7.fhir.dstu2016may.model.SearchParameter tgt = new org.hl7.fhir.dstu2016may.model.SearchParameter();
VersionConvertor_14_40.copyDomainResource(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl());
}
if (src.hasName()) {
tgt.setName(src.getName());
}
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu2016may.model.UriType) VersionConvertor_14_40.convertType(src.getUrlElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_14_40.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasDate())
tgt.setDate(src.getDate());
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.dstu2016may.model.BooleanType) VersionConvertor_14_40.convertType(src.getExperimentalElement()));
if (src.hasDateElement())
tgt.setDateElement((org.hl7.fhir.dstu2016may.model.DateTimeType) VersionConvertor_14_40.convertType(src.getDateElement()));
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(convertSearchParameterContactComponent(t));
}
@ -89,22 +85,20 @@ public class SearchParameter14_40 {
}
if (src.hasPurpose())
tgt.setRequirements(src.getPurpose());
if (src.hasCode()) {
tgt.setCode(src.getCode());
}
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.dstu2016may.model.CodeType) VersionConvertor_14_40.convertType(src.getCodeElement()));
if (src.hasBase()) {
for (org.hl7.fhir.r4.model.CodeType t : src.getBase()) tgt.setBase(t.asStringValue());
}
if (src.hasType()) {
tgt.setType(VersionConvertor_14_40.convertSearchParamType(src.getType()));
}
if (src.hasDescription()) {
tgt.setDescription(src.getDescription());
}
if (src.hasExpression())
tgt.setExpression(VersionConvertor_14_40.convertTo2016MayExpression(src.getExpression()));
if (src.hasXpath())
tgt.setXpath(src.getXpath());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getDescriptionElement()));
if (src.hasExpressionElement())
tgt.setExpressionElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getExpressionElement()));
if (src.hasXpathElement())
tgt.setXpathElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getXpathElement()));
if (src.hasXpathUsage()) {
tgt.setXpathUsage(convertXPathUsageType(src.getXpathUsage()));
}
@ -119,8 +113,8 @@ public class SearchParameter14_40 {
return null;
org.hl7.fhir.r4.model.ContactDetail tgt = new org.hl7.fhir.r4.model.ContactDetail();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2016may.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_14_40.convertContactPoint(t));
}
@ -132,8 +126,8 @@ public class SearchParameter14_40 {
return null;
org.hl7.fhir.dstu2016may.model.SearchParameter.SearchParameterContactComponent tgt = new org.hl7.fhir.dstu2016may.model.SearchParameter.SearchParameterContactComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasTelecom()) {
for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_14_40.convertContactPoint(t));
}

View File

@ -1,10 +1,12 @@
package org.hl7.fhir.convertors.conv14_40;
import org.hl7.fhir.convertors.VersionConvertor_14_40;
import org.hl7.fhir.dstu2016may.model.StringType;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.ElementDefinition;
import org.hl7.fhir.r4.model.StructureDefinition.TypeDerivationRule;
import org.hl7.fhir.utilities.Utilities;
import java.util.Collections;
public class StructureDefinition14_40 {
@ -48,32 +50,31 @@ public class StructureDefinition14_40 {
return null;
org.hl7.fhir.dstu2016may.model.StructureDefinition tgt = new org.hl7.fhir.dstu2016may.model.StructureDefinition();
VersionConvertor_14_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu2016may.model.UriType) VersionConvertor_14_40.convertType(src.getUrlElement()));
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_14_40.convertIdentifier(t));
}
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName()) {
tgt.setName(src.getName());
}
if (src.hasTitle())
tgt.setDisplay(src.getTitle());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasTitleElement())
tgt.setDisplayElement((StringType) VersionConvertor_14_40.convertType(src.getTitleElement()));
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_14_40.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.dstu2016may.model.BooleanType) VersionConvertor_14_40.convertType(src.getExperimentalElement()));
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(convertStructureDefinitionContactComponent(t));
}
if (src.hasDate())
tgt.setDate(src.getDate());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDateElement())
tgt.setDateElement((org.hl7.fhir.dstu2016may.model.DateTimeType) VersionConvertor_14_40.convertType(src.getDateElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getDescriptionElement()));
for (org.hl7.fhir.r4.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept())
tgt.addUseContext(VersionConvertor_14_40.convertCodeableConcept(t.getValueCodeableConcept()));
if (src.hasJurisdiction()) {
@ -81,8 +82,8 @@ public class StructureDefinition14_40 {
}
if (src.hasPurpose())
tgt.setRequirements(src.getPurpose());
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getCopyrightElement()));
if (src.hasKeyword()) {
for (org.hl7.fhir.r4.model.Coding t : src.getKeyword()) tgt.addCode(VersionConvertor_14_40.convertCoding(t));
}
@ -94,16 +95,15 @@ public class StructureDefinition14_40 {
if (src.hasKind()) {
tgt.setKind(convertStructureDefinitionKind(src.getKind()));
}
if (src.hasAbstract()) {
tgt.setAbstract(src.getAbstract());
}
if (src.hasAbstractElement())
tgt.setAbstractElement((org.hl7.fhir.dstu2016may.model.BooleanType) VersionConvertor_14_40.convertType(src.getAbstractElement()));
for (org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionContextComponent t : src.getContext()) {
if (!tgt.hasContextType())
tgt.setContextType(convertExtensionContext(t.getType(), t.getExpression()));
tgt.addContext("Element".equals(t.getExpression()) ? "*" : t.getExpression());
}
if (src.hasBaseDefinition())
tgt.setBaseDefinition(src.getBaseDefinition());
if (src.hasBaseDefinitionElement())
tgt.setBaseDefinitionElement((org.hl7.fhir.dstu2016may.model.UriType) VersionConvertor_14_40.convertType(src.getBaseDefinitionElement()));
if (src.hasType() && src.getDerivation() == org.hl7.fhir.r4.model.StructureDefinition.TypeDerivationRule.CONSTRAINT)
tgt.setBaseType(src.getType());
if (src.hasDerivation()) {
@ -122,30 +122,29 @@ public class StructureDefinition14_40 {
return null;
org.hl7.fhir.r4.model.StructureDefinition tgt = new org.hl7.fhir.r4.model.StructureDefinition();
VersionConvertor_14_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_14_40.convertType(src.getUrlElement()));
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2016may.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_14_40.convertIdentifier(t));
}
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName()) {
tgt.setName(src.getName());
}
if (src.hasDisplay())
tgt.setTitle(src.getDisplay());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasDisplayElement())
tgt.setTitleElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getDisplayElement()));
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_14_40.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_14_40.convertType(src.getExperimentalElement()));
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionContactComponent t : src.getContact()) tgt.addContact(convertStructureDefinitionContactComponent(t));
}
if (src.hasDate())
tgt.setDate(src.getDate());
if (src.hasDateElement())
tgt.setDateElement((org.hl7.fhir.r4.model.DateTimeType) VersionConvertor_14_40.convertType(src.getDateElement()));
if (src.hasDescription())
tgt.setDescription(src.getDescription());
for (org.hl7.fhir.dstu2016may.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_14_40.isJurisdiction(t))
@ -167,9 +166,8 @@ public class StructureDefinition14_40 {
if (src.hasKind()) {
tgt.setKind(convertStructureDefinitionKind(src.getKind(), src.getName()));
}
if (src.hasAbstract()) {
tgt.setAbstract(src.getAbstract());
}
if (src.hasAbstractElement())
tgt.setAbstractElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_14_40.convertType(src.getAbstractElement()));
for (org.hl7.fhir.dstu2016may.model.StringType t : src.getContext()) {
org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionContextComponent ec = tgt.addContext();
if (src.hasContextType()) {
@ -181,8 +179,8 @@ public class StructureDefinition14_40 {
tgt.setType(src.getBaseType());
else
tgt.setType(src.getId());
if (src.hasBaseDefinition())
tgt.setBaseDefinition(src.getBaseDefinition());
if (src.hasBaseDefinitionElement())
tgt.setBaseDefinitionElement((org.hl7.fhir.r4.model.CanonicalType) VersionConvertor_14_40.convertType(src.getBaseDefinitionElement()));
if (src.hasDerivation()) {
tgt.setDerivation(convertTypeDerivationRule(src.getDerivation()));
}
@ -213,8 +211,8 @@ public class StructureDefinition14_40 {
return null;
org.hl7.fhir.r4.model.ContactDetail tgt = new org.hl7.fhir.r4.model.ContactDetail();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2016may.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_14_40.convertContactPoint(t));
}
@ -226,8 +224,8 @@ public class StructureDefinition14_40 {
return null;
org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionContactComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionContactComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasTelecom()) {
for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_14_40.convertContactPoint(t));
}
@ -296,15 +294,14 @@ public class StructureDefinition14_40 {
return null;
org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureDefinition.StructureDefinitionMappingComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasIdentity()) {
tgt.setIdentity(src.getIdentity());
}
if (src.hasUri())
tgt.setUri(src.getUri());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasComment())
tgt.setComments(src.getComment());
if (src.hasIdentityElement())
tgt.setIdentityElement((org.hl7.fhir.dstu2016may.model.IdType) VersionConvertor_14_40.convertType(src.getIdentityElement()));
if (src.hasUriElement())
tgt.setUriElement((org.hl7.fhir.dstu2016may.model.UriType) VersionConvertor_14_40.convertType(src.getUriElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasCommentElement())
tgt.setCommentsElement((StringType) VersionConvertor_14_40.convertType(src.getCommentElement()));
return tgt;
}
@ -313,15 +310,14 @@ public class StructureDefinition14_40 {
return null;
org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionMappingComponent tgt = new org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionMappingComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasIdentity()) {
tgt.setIdentity(src.getIdentity());
}
if (src.hasUri())
tgt.setUri(src.getUri());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasComments())
tgt.setComment(src.getComments());
if (src.hasIdentityElement())
tgt.setIdentityElement((org.hl7.fhir.r4.model.IdType) VersionConvertor_14_40.convertType(src.getIdentityElement()));
if (src.hasUriElement())
tgt.setUriElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_14_40.convertType(src.getUriElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasCommentsElement())
tgt.setCommentElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getCommentsElement()));
return tgt;
}

View File

@ -1,11 +1,13 @@
package org.hl7.fhir.convertors.conv14_40;
import org.hl7.fhir.convertors.VersionConvertor_14_40;
import org.hl7.fhir.dstu2016may.model.StringType;
import org.hl7.fhir.dstu2016may.model.StructureMap;
import org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapContextType;
import org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapListMode;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.Enumeration;
import java.util.Collections;
public class StructureMap14_40 {
@ -14,31 +16,29 @@ public class StructureMap14_40 {
return null;
org.hl7.fhir.dstu2016may.model.StructureMap tgt = new org.hl7.fhir.dstu2016may.model.StructureMap();
VersionConvertor_14_40.copyDomainResource(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl());
}
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName()) {
tgt.setName(src.getName());
}
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu2016may.model.UriType) VersionConvertor_14_40.convertType(src.getUrlElement()));
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_14_40.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_14_40.convertIdentifier(t));
}
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.dstu2016may.model.BooleanType) VersionConvertor_14_40.convertType(src.getExperimentalElement()));
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(convertStructureMapContactComponent(t));
}
if (src.hasDate())
tgt.setDate(src.getDate());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDateElement())
tgt.setDateElement((org.hl7.fhir.dstu2016may.model.DateTimeType) VersionConvertor_14_40.convertType(src.getDateElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getDescriptionElement()));
for (org.hl7.fhir.r4.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept())
tgt.addUseContext(VersionConvertor_14_40.convertCodeableConcept(t.getValueCodeableConcept()));
if (src.hasJurisdiction()) {
@ -46,8 +46,8 @@ public class StructureMap14_40 {
}
if (src.hasPurpose())
tgt.setRequirements(src.getPurpose());
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getCopyrightElement()));
if (src.hasStructure()) {
for (org.hl7.fhir.r4.model.StructureMap.StructureMapStructureComponent t : src.getStructure()) tgt.addStructure(convertStructureMapStructureComponent(t));
}
@ -65,29 +65,27 @@ public class StructureMap14_40 {
return null;
org.hl7.fhir.r4.model.StructureMap tgt = new org.hl7.fhir.r4.model.StructureMap();
VersionConvertor_14_40.copyDomainResource(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl());
}
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName()) {
tgt.setName(src.getName());
}
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_14_40.convertType(src.getUrlElement()));
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_14_40.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasIdentifier()) {
for (org.hl7.fhir.dstu2016may.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_14_40.convertIdentifier(t));
}
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_14_40.convertType(src.getExperimentalElement()));
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapContactComponent t : src.getContact()) tgt.addContact(convertStructureMapContactComponent(t));
}
if (src.hasDate())
tgt.setDate(src.getDate());
if (src.hasDateElement())
tgt.setDateElement((org.hl7.fhir.r4.model.DateTimeType) VersionConvertor_14_40.convertType(src.getDateElement()));
if (src.hasDescription())
tgt.setDescription(src.getDescription());
for (org.hl7.fhir.dstu2016may.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_14_40.isJurisdiction(t))
@ -115,8 +113,8 @@ public class StructureMap14_40 {
return null;
org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapContactComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapContactComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasTelecom()) {
for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_14_40.convertContactPoint(t));
}
@ -128,8 +126,8 @@ public class StructureMap14_40 {
return null;
org.hl7.fhir.r4.model.ContactDetail tgt = new org.hl7.fhir.r4.model.ContactDetail();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2016may.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_14_40.convertContactPoint(t));
}
@ -167,15 +165,14 @@ public class StructureMap14_40 {
return null;
org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName());
}
if (src.hasExtends())
tgt.setExtends(src.getExtends());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu2016may.model.IdType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasExtendsElement())
tgt.setExtendsElement((org.hl7.fhir.dstu2016may.model.IdType) VersionConvertor_14_40.convertType(src.getExtendsElement()));
if (!src.getTypeMode().equals(org.hl7.fhir.r4.model.StructureMap.StructureMapGroupTypeMode.NONE))
throw new FHIRException("Unable to downgrade structure map with group.typeMode other than 'None': " + src.getTypeMode().getDisplay());
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getDocumentationElement()));
if (src.hasInput()) {
for (org.hl7.fhir.r4.model.StructureMap.StructureMapGroupInputComponent t : src.getInput()) tgt.addInput(convertStructureMapGroupInputComponent(t));
}
@ -190,14 +187,13 @@ public class StructureMap14_40 {
return null;
org.hl7.fhir.r4.model.StructureMap.StructureMapGroupComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName());
}
if (src.hasExtends())
tgt.setExtends(src.getExtends());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.IdType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasExtendsElement())
tgt.setExtendsElement((org.hl7.fhir.r4.model.IdType) VersionConvertor_14_40.convertType(src.getExtendsElement()));
tgt.setTypeMode(org.hl7.fhir.r4.model.StructureMap.StructureMapGroupTypeMode.NONE);
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getDocumentationElement()));
if (src.hasInput()) {
for (org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupInputComponent t : src.getInput()) tgt.addInput(convertStructureMapGroupInputComponent(t));
}
@ -212,16 +208,15 @@ public class StructureMap14_40 {
return null;
org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupInputComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupInputComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName());
}
if (src.hasType())
tgt.setType(src.getType());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu2016may.model.IdType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasTypeElement())
tgt.setTypeElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getTypeElement()));
if (src.hasMode()) {
tgt.setMode(convertStructureMapInputMode(src.getMode()));
}
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getDocumentationElement()));
return tgt;
}
@ -230,16 +225,15 @@ public class StructureMap14_40 {
return null;
org.hl7.fhir.r4.model.StructureMap.StructureMapGroupInputComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupInputComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName());
}
if (src.hasType())
tgt.setType(src.getType());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.IdType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasTypeElement())
tgt.setTypeElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getTypeElement()));
if (src.hasMode()) {
tgt.setMode(convertStructureMapInputMode(src.getMode()));
}
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getDocumentationElement()));
return tgt;
}
@ -248,9 +242,8 @@ public class StructureMap14_40 {
return null;
org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName());
}
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu2016may.model.IdType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasSource()) {
for (org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleSourceComponent t : src.getSource()) tgt.addSource(convertStructureMapGroupRuleSourceComponent(t));
}
@ -263,8 +256,8 @@ public class StructureMap14_40 {
if (src.hasDependent()) {
for (org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleDependentComponent t : src.getDependent()) tgt.addDependent(convertStructureMapGroupRuleDependentComponent(t));
}
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getDocumentationElement()));
return tgt;
}
@ -273,9 +266,8 @@ public class StructureMap14_40 {
return null;
org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName());
}
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.IdType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasSource()) {
for (org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleSourceComponent t : src.getSource()) tgt.addSource(convertStructureMapGroupRuleSourceComponent(t));
}
@ -288,8 +280,8 @@ public class StructureMap14_40 {
if (src.hasDependent()) {
for (org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleDependentComponent t : src.getDependent()) tgt.addDependent(convertStructureMapGroupRuleDependentComponent(t));
}
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getDocumentationElement()));
return tgt;
}
@ -298,9 +290,8 @@ public class StructureMap14_40 {
return null;
org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleDependentComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleDependentComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName());
}
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu2016may.model.IdType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasVariable()) {
for (org.hl7.fhir.r4.model.StringType t : src.getVariable()) tgt.addVariable(t.asStringValue());
}
@ -312,9 +303,8 @@ public class StructureMap14_40 {
return null;
org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleDependentComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleDependentComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName());
}
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.IdType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasVariable()) {
for (org.hl7.fhir.dstu2016may.model.StringType t : src.getVariable()) tgt.addVariable(t.asStringValue());
}
@ -330,17 +320,17 @@ public class StructureMap14_40 {
tgt.setMin(src.getRequired() ? 1 : 0);
}
if (src.getContextType().equals(StructureMap.StructureMapContextType.TYPE))
tgt.setType(src.getContext());
if (src.hasElement())
tgt.setElement(src.getElement());
tgt.setContextElement((org.hl7.fhir.r4.model.IdType) VersionConvertor_14_40.convertType(src.getContextElement()));
if (src.hasElementElement())
tgt.setElementElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getElementElement()));
if (src.hasListMode())
tgt.setListMode(convertStructureMapSourceListMode(src.getListMode()));
if (src.hasVariable())
tgt.setVariable(src.getVariable());
if (src.hasCondition())
tgt.setCondition(src.getCondition());
if (src.hasCheck())
tgt.setCheck(src.getCheck());
if (src.hasVariableElement())
tgt.setVariableElement((org.hl7.fhir.r4.model.IdType) VersionConvertor_14_40.convertType(src.getVariableElement()));
if (src.hasConditionElement())
tgt.setConditionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getConditionElement()));
if (src.hasCheckElement())
tgt.setCheckElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getCheckElement()));
return tgt;
}
@ -350,19 +340,18 @@ public class StructureMap14_40 {
org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleSourceComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleSourceComponent();
VersionConvertor_14_40.copyElement(src, tgt);
tgt.setContextType(StructureMapContextType.TYPE);
if (src.hasContext()) {
tgt.setContext(src.getContext());
}
if (src.hasElement())
tgt.setElement(src.getElement());
if (src.hasContextElement())
tgt.setContextElement((org.hl7.fhir.dstu2016may.model.IdType) VersionConvertor_14_40.convertType(src.getContextElement()));
if (src.hasElementElement())
tgt.setElementElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getElementElement()));
if (src.hasListMode())
tgt.setListMode(convertStructureMapSourceListMode(src.getListMode()));
if (src.hasVariable())
tgt.setVariable(src.getVariable());
if (src.hasCondition())
tgt.setCondition(src.getCondition());
if (src.hasCheck())
tgt.setCheck(src.getCheck());
if (src.hasVariableElement())
tgt.setVariableElement((org.hl7.fhir.dstu2016may.model.IdType) VersionConvertor_14_40.convertType(src.getVariableElement()));
if (src.hasConditionElement())
tgt.setConditionElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getConditionElement()));
if (src.hasCheckElement())
tgt.setCheckElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getCheckElement()));
return tgt;
}
@ -371,19 +360,19 @@ public class StructureMap14_40 {
return null;
org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleTargetComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleTargetComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasContext())
tgt.setContext(src.getContext());
if (src.hasContextElement())
tgt.setContextElement((org.hl7.fhir.dstu2016may.model.IdType) VersionConvertor_14_40.convertType(src.getContextElement()));
if (src.hasContextType())
tgt.setContextType(convertStructureMapContextType(src.getContextType()));
if (src.hasElement())
tgt.setElement(src.getElement());
if (src.hasVariable())
tgt.setVariable(src.getVariable());
if (src.hasElementElement())
tgt.setElementElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getElementElement()));
if (src.hasVariableElement())
tgt.setVariableElement((org.hl7.fhir.dstu2016may.model.IdType) VersionConvertor_14_40.convertType(src.getVariableElement()));
if (src.hasListMode()) {
for (Enumeration<org.hl7.fhir.r4.model.StructureMap.StructureMapTargetListMode> t : src.getListMode()) tgt.addListMode(convertStructureMapTargetListMode(t.getValue()));
}
if (src.hasListRuleId())
tgt.setListRuleId(src.getListRuleId());
if (src.hasListRuleIdElement())
tgt.setListRuleIdElement((org.hl7.fhir.dstu2016may.model.IdType) VersionConvertor_14_40.convertType(src.getListRuleIdElement()));
if (src.hasTransform())
tgt.setTransform(convertStructureMapTransform(src.getTransform()));
if (src.hasParameter()) {
@ -397,19 +386,19 @@ public class StructureMap14_40 {
return null;
org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleTargetComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleTargetComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasContext())
tgt.setContext(src.getContext());
if (src.hasContextElement())
tgt.setContextElement((org.hl7.fhir.r4.model.IdType) VersionConvertor_14_40.convertType(src.getContextElement()));
if (src.hasContextType())
tgt.setContextType(convertStructureMapContextType(src.getContextType()));
if (src.hasElement())
tgt.setElement(src.getElement());
if (src.hasVariable())
tgt.setVariable(src.getVariable());
if (src.hasElementElement())
tgt.setElementElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getElementElement()));
if (src.hasVariableElement())
tgt.setVariableElement((org.hl7.fhir.r4.model.IdType) VersionConvertor_14_40.convertType(src.getVariableElement()));
if (src.hasListMode()) {
for (org.hl7.fhir.dstu2016may.model.Enumeration<org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapListMode> t : src.getListMode()) VersionConvertor_14_40.copyElement(t, tgt.addListModeElement().setValue(convertStructureMapTargetListMode(t.getValue())));
}
if (src.hasListRuleId())
tgt.setListRuleId(src.getListRuleId());
if (src.hasListRuleIdElement())
tgt.setListRuleIdElement((org.hl7.fhir.r4.model.IdType) VersionConvertor_14_40.convertType(src.getListRuleIdElement()));
if (src.hasTransform())
tgt.setTransform(convertStructureMapTransform(src.getTransform()));
if (src.hasParameter()) {
@ -497,14 +486,13 @@ public class StructureMap14_40 {
return null;
org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapStructureComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapStructureComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl());
}
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu2016may.model.UriType) VersionConvertor_14_40.convertType(src.getUrlElement()));
if (src.hasMode()) {
tgt.setMode(convertStructureMapStructureMode(src.getMode()));
}
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getDocumentationElement()));
return tgt;
}
@ -513,14 +501,13 @@ public class StructureMap14_40 {
return null;
org.hl7.fhir.r4.model.StructureMap.StructureMapStructureComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapStructureComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasUrl()) {
tgt.setUrl(src.getUrl());
}
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.CanonicalType) VersionConvertor_14_40.convertType(src.getUrlElement()));
if (src.hasMode()) {
tgt.setMode(convertStructureMapStructureMode(src.getMode()));
}
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getDocumentationElement()));
return tgt;
}

View File

@ -3,6 +3,9 @@ package org.hl7.fhir.convertors.conv14_40;
import org.hl7.fhir.convertors.VersionConvertor_14_40;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r4.model.BooleanType;
import org.hl7.fhir.r4.model.DateType;
import java.util.Collections;
public class ValueSet14_40 {
@ -11,11 +14,10 @@ public class ValueSet14_40 {
return null;
org.hl7.fhir.r4.model.ValueSet.ConceptReferenceComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ConceptReferenceComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(src.getCode());
}
if (src.hasDisplay())
tgt.setDisplay(src.getDisplay());
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_14_40.convertType(src.getCodeElement()));
if (src.hasDisplayElement())
tgt.setDisplayElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getDisplayElement()));
if (src.hasDesignation()) {
for (org.hl7.fhir.dstu2016may.model.ValueSet.ConceptReferenceDesignationComponent t : src.getDesignation()) tgt.addDesignation(convertConceptReferenceDesignationComponent(t));
}
@ -27,11 +29,10 @@ public class ValueSet14_40 {
return null;
org.hl7.fhir.dstu2016may.model.ValueSet.ConceptReferenceComponent tgt = new org.hl7.fhir.dstu2016may.model.ValueSet.ConceptReferenceComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasCode()) {
tgt.setCode(src.getCode());
}
if (src.hasDisplay())
tgt.setDisplay(src.getDisplay());
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.dstu2016may.model.CodeType) VersionConvertor_14_40.convertType(src.getCodeElement()));
if (src.hasDisplayElement())
tgt.setDisplayElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getDisplayElement()));
if (src.hasDesignation()) {
for (org.hl7.fhir.r4.model.ValueSet.ConceptReferenceDesignationComponent t : src.getDesignation()) tgt.addDesignation(convertConceptReferenceDesignationComponent(t));
}
@ -43,14 +44,13 @@ public class ValueSet14_40 {
return null;
org.hl7.fhir.dstu2016may.model.ValueSet.ConceptReferenceDesignationComponent tgt = new org.hl7.fhir.dstu2016may.model.ValueSet.ConceptReferenceDesignationComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasLanguage())
tgt.setLanguage(src.getLanguage());
if (src.hasLanguageElement())
tgt.setLanguageElement((org.hl7.fhir.dstu2016may.model.CodeType) VersionConvertor_14_40.convertType(src.getLanguageElement()));
if (src.hasUse()) {
tgt.setUse(VersionConvertor_14_40.convertCoding(src.getUse()));
}
if (src.hasValue()) {
tgt.setValue(src.getValue());
}
if (src.hasValueElement())
tgt.setValueElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getValueElement()));
return tgt;
}
@ -59,14 +59,13 @@ public class ValueSet14_40 {
return null;
org.hl7.fhir.r4.model.ValueSet.ConceptReferenceDesignationComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ConceptReferenceDesignationComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasLanguage())
tgt.setLanguage(src.getLanguage());
if (src.hasLanguageElement())
tgt.setLanguageElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_14_40.convertType(src.getLanguageElement()));
if (src.hasUse()) {
tgt.setUse(VersionConvertor_14_40.convertCoding(src.getUse()));
}
if (src.hasValue()) {
tgt.setValue(src.getValue());
}
if (src.hasValueElement())
tgt.setValueElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getValueElement()));
return tgt;
}
@ -75,11 +74,10 @@ public class ValueSet14_40 {
return null;
org.hl7.fhir.r4.model.ValueSet.ConceptSetComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ConceptSetComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasSystem()) {
tgt.setSystem(src.getSystem());
}
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasSystemElement())
tgt.setSystemElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_14_40.convertType(src.getSystemElement()));
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getVersionElement()));
if (src.hasConcept()) {
for (org.hl7.fhir.dstu2016may.model.ValueSet.ConceptReferenceComponent t : src.getConcept()) tgt.addConcept(convertConceptReferenceComponent(t));
}
@ -94,11 +92,10 @@ public class ValueSet14_40 {
return null;
org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetComponent tgt = new org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasSystem()) {
tgt.setSystem(src.getSystem());
}
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasSystemElement())
tgt.setSystemElement((org.hl7.fhir.dstu2016may.model.UriType) VersionConvertor_14_40.convertType(src.getSystemElement()));
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getVersionElement()));
if (src.hasConcept()) {
for (org.hl7.fhir.r4.model.ValueSet.ConceptReferenceComponent t : src.getConcept()) tgt.addConcept(convertConceptReferenceComponent(t));
}
@ -113,15 +110,13 @@ public class ValueSet14_40 {
return null;
org.hl7.fhir.r4.model.ValueSet.ConceptSetFilterComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ConceptSetFilterComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasProperty()) {
tgt.setProperty(src.getProperty());
}
if (src.hasPropertyElement())
tgt.setPropertyElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_14_40.convertType(src.getPropertyElement()));
if (src.hasOp()) {
tgt.setOp(convertFilterOperator(src.getOp()));
}
if (src.hasValue()) {
tgt.setValue(src.getValue());
}
if (src.hasValueElement())
tgt.setValueElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getValueElement()));
return tgt;
}
@ -130,15 +125,13 @@ public class ValueSet14_40 {
return null;
org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetFilterComponent tgt = new org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetFilterComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasProperty()) {
tgt.setProperty(src.getProperty());
}
if (src.hasPropertyElement())
tgt.setPropertyElement((org.hl7.fhir.dstu2016may.model.CodeType) VersionConvertor_14_40.convertType(src.getPropertyElement()));
if (src.hasOp()) {
tgt.setOp(convertFilterOperator(src.getOp()));
}
if (src.hasValue()) {
tgt.setValue(src.getValue());
}
if (src.hasValueElement())
tgt.setValueElement((org.hl7.fhir.dstu2016may.model.CodeType) VersionConvertor_14_40.convertType(src.getValueElement()));
return tgt;
}
@ -189,34 +182,34 @@ public class ValueSet14_40 {
return null;
org.hl7.fhir.r4.model.ValueSet tgt = new org.hl7.fhir.r4.model.ValueSet();
VersionConvertor_14_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_14_40.convertType(src.getUrlElement()));
if (src.hasIdentifier())
tgt.addIdentifier(VersionConvertor_14_40.convertIdentifier(src.getIdentifier()));
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_14_40.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_14_40.convertType(src.getExperimentalElement()));
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetContactComponent t : src.getContact()) tgt.addContact(convertValueSetContactComponent(t));
}
if (src.hasDate())
tgt.setDate(src.getDate());
if (src.hasDateElement())
tgt.setDateElement((org.hl7.fhir.r4.model.DateTimeType) VersionConvertor_14_40.convertType(src.getDateElement()));
if (src.hasDescription())
tgt.setDescription(src.getDescription());
for (org.hl7.fhir.dstu2016may.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_14_40.isJurisdiction(t))
tgt.addJurisdiction(VersionConvertor_14_40.convertCodeableConcept(t));
else
tgt.addUseContext(VersionConvertor_14_40.convertCodeableConceptToUsageContext(t));
if (src.hasImmutable())
tgt.setImmutable(src.getImmutable());
if (src.hasImmutableElement())
tgt.setImmutableElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_14_40.convertType(src.getImmutableElement()));
if (src.hasRequirements())
tgt.setPurpose(src.getRequirements());
if (src.hasCopyright())
@ -226,8 +219,8 @@ public class ValueSet14_40 {
if (src.hasCompose()) {
tgt.setCompose(convertValueSetComposeComponent(src.getCompose()));
}
if (src.hasLockedDate())
tgt.getCompose().setLockedDate(src.getLockedDate());
if (src.hasLockedDateElement())
tgt.getCompose().setLockedDateElement((DateType) VersionConvertor_14_40.convertType(src.getLockedDateElement()));
if (src.hasExpansion()) {
tgt.setExpansion(convertValueSetExpansionComponent(src.getExpansion()));
}
@ -239,42 +232,42 @@ public class ValueSet14_40 {
return null;
org.hl7.fhir.dstu2016may.model.ValueSet tgt = new org.hl7.fhir.dstu2016may.model.ValueSet();
VersionConvertor_14_40.copyDomainResource(src, tgt);
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu2016may.model.UriType) VersionConvertor_14_40.convertType(src.getUrlElement()));
if (src.hasIdentifier()) {
for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.setIdentifier(VersionConvertor_14_40.convertIdentifier(t));
}
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasName())
tgt.setName(src.getName());
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getVersionElement()));
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasStatus()) {
tgt.setStatus(VersionConvertor_14_40.convertConformanceResourceStatus(src.getStatus()));
}
if (src.hasExperimental())
tgt.setExperimental(src.getExperimental());
if (src.hasPublisher())
tgt.setPublisher(src.getPublisher());
if (src.hasExperimentalElement())
tgt.setExperimentalElement((org.hl7.fhir.dstu2016may.model.BooleanType) VersionConvertor_14_40.convertType(src.getExperimentalElement()));
if (src.hasPublisherElement())
tgt.setPublisherElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getPublisherElement()));
if (src.hasContact()) {
for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(convertValueSetContactComponent(t));
}
if (src.hasDate())
tgt.setDate(src.getDate());
if (src.hasDateElement())
tgt.setDateElement((org.hl7.fhir.dstu2016may.model.DateTimeType) VersionConvertor_14_40.convertType(src.getDateElement()));
if (src.getCompose().hasLockedDate())
tgt.setLockedDate(src.getCompose().getLockedDate());
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getDescriptionElement()));
for (org.hl7.fhir.r4.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept())
tgt.addUseContext(VersionConvertor_14_40.convertCodeableConcept(t.getValueCodeableConcept()));
if (src.hasJurisdiction()) {
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getJurisdiction()) tgt.addUseContext(VersionConvertor_14_40.convertCodeableConcept(t));
}
if (src.hasImmutable())
tgt.setImmutable(src.getImmutable());
if (src.hasImmutableElement())
tgt.setImmutableElement((org.hl7.fhir.dstu2016may.model.BooleanType) VersionConvertor_14_40.convertType(src.getImmutableElement()));
if (src.hasPurpose())
tgt.setRequirements(src.getPurpose());
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getCopyrightElement()));
if (src.hasExtension("http://hl7.org/fhir/StructureDefinition/valueset-extensible"))
tgt.setExtensible(((BooleanType) src.getExtensionByUrl("http://hl7.org/fhir/StructureDefinition/valueset-extensible").getValue()).booleanValue());
if (src.hasCompose()) {
@ -322,8 +315,8 @@ public class ValueSet14_40 {
return null;
org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetContactComponent tgt = new org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetContactComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasTelecom()) {
for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_14_40.convertContactPoint(t));
}
@ -335,8 +328,8 @@ public class ValueSet14_40 {
return null;
org.hl7.fhir.r4.model.ContactDetail tgt = new org.hl7.fhir.r4.model.ContactDetail();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName())
tgt.setName(src.getName());
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasTelecom()) {
for (org.hl7.fhir.dstu2016may.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(VersionConvertor_14_40.convertContactPoint(t));
}
@ -348,16 +341,14 @@ public class ValueSet14_40 {
return null;
org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionComponent tgt = new org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasIdentifier()) {
tgt.setIdentifier(src.getIdentifier());
}
if (src.hasTimestamp()) {
tgt.setTimestamp(src.getTimestamp());
}
if (src.hasTotal())
tgt.setTotal(src.getTotal());
if (src.hasOffset())
tgt.setOffset(src.getOffset());
if (src.hasIdentifierElement())
tgt.setIdentifierElement((org.hl7.fhir.dstu2016may.model.UriType) VersionConvertor_14_40.convertType(src.getIdentifierElement()));
if (src.hasTimestampElement())
tgt.setTimestampElement((org.hl7.fhir.dstu2016may.model.DateTimeType) VersionConvertor_14_40.convertType(src.getTimestampElement()));
if (src.hasTotalElement())
tgt.setTotalElement((org.hl7.fhir.dstu2016may.model.IntegerType) VersionConvertor_14_40.convertType(src.getTotalElement()));
if (src.hasOffsetElement())
tgt.setOffsetElement((org.hl7.fhir.dstu2016may.model.IntegerType) VersionConvertor_14_40.convertType(src.getOffsetElement()));
if (src.hasParameter()) {
for (org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionParameterComponent t : src.getParameter()) tgt.addParameter(convertValueSetExpansionParameterComponent(t));
}
@ -372,16 +363,14 @@ public class ValueSet14_40 {
return null;
org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasIdentifier()) {
tgt.setIdentifier(src.getIdentifier());
}
if (src.hasTimestamp()) {
tgt.setTimestamp(src.getTimestamp());
}
if (src.hasTotal())
tgt.setTotal(src.getTotal());
if (src.hasOffset())
tgt.setOffset(src.getOffset());
if (src.hasIdentifierElement())
tgt.setIdentifierElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_14_40.convertType(src.getIdentifierElement()));
if (src.hasTimestampElement())
tgt.setTimestampElement((org.hl7.fhir.r4.model.DateTimeType) VersionConvertor_14_40.convertType(src.getTimestampElement()));
if (src.hasTotalElement())
tgt.setTotalElement((org.hl7.fhir.r4.model.IntegerType) VersionConvertor_14_40.convertType(src.getTotalElement()));
if (src.hasOffsetElement())
tgt.setOffsetElement((org.hl7.fhir.r4.model.IntegerType) VersionConvertor_14_40.convertType(src.getOffsetElement()));
if (src.hasParameter()) {
for (org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionParameterComponent t : src.getParameter()) tgt.addParameter(convertValueSetExpansionParameterComponent(t));
}
@ -396,16 +385,16 @@ public class ValueSet14_40 {
return null;
org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionContainsComponent tgt = new org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionContainsComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasSystem())
tgt.setSystem(src.getSystem());
if (src.hasAbstract())
tgt.setAbstract(src.getAbstract());
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasCode())
tgt.setCode(src.getCode());
if (src.hasDisplay())
tgt.setDisplay(src.getDisplay());
if (src.hasSystemElement())
tgt.setSystemElement((org.hl7.fhir.dstu2016may.model.UriType) VersionConvertor_14_40.convertType(src.getSystemElement()));
if (src.hasAbstractElement())
tgt.setAbstractElement((org.hl7.fhir.dstu2016may.model.BooleanType) VersionConvertor_14_40.convertType(src.getAbstractElement()));
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getVersionElement()));
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.dstu2016may.model.CodeType) VersionConvertor_14_40.convertType(src.getCodeElement()));
if (src.hasDisplayElement())
tgt.setDisplayElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getDisplayElement()));
if (src.hasContains()) {
for (org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionContainsComponent t : src.getContains()) tgt.addContains(convertValueSetExpansionContainsComponent(t));
}
@ -417,16 +406,16 @@ public class ValueSet14_40 {
return null;
org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionContainsComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionContainsComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasSystem())
tgt.setSystem(src.getSystem());
if (src.hasAbstract())
tgt.setAbstract(src.getAbstract());
if (src.hasVersion())
tgt.setVersion(src.getVersion());
if (src.hasCode())
tgt.setCode(src.getCode());
if (src.hasDisplay())
tgt.setDisplay(src.getDisplay());
if (src.hasSystemElement())
tgt.setSystemElement((org.hl7.fhir.r4.model.UriType) VersionConvertor_14_40.convertType(src.getSystemElement()));
if (src.hasAbstractElement())
tgt.setAbstractElement((org.hl7.fhir.r4.model.BooleanType) VersionConvertor_14_40.convertType(src.getAbstractElement()));
if (src.hasVersionElement())
tgt.setVersionElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getVersionElement()));
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.r4.model.CodeType) VersionConvertor_14_40.convertType(src.getCodeElement()));
if (src.hasDisplayElement())
tgt.setDisplayElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getDisplayElement()));
if (src.hasContains()) {
for (org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionContainsComponent t : src.getContains()) tgt.addContains(convertValueSetExpansionContainsComponent(t));
}
@ -438,9 +427,8 @@ public class ValueSet14_40 {
return null;
org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionParameterComponent tgt = new org.hl7.fhir.r4.model.ValueSet.ValueSetExpansionParameterComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName());
}
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r4.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasValue()) {
tgt.setValue(VersionConvertor_14_40.convertType(src.getValue()));
}
@ -452,9 +440,8 @@ public class ValueSet14_40 {
return null;
org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionParameterComponent tgt = new org.hl7.fhir.dstu2016may.model.ValueSet.ValueSetExpansionParameterComponent();
VersionConvertor_14_40.copyElement(src, tgt);
if (src.hasName()) {
tgt.setName(src.getName());
}
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_40.convertType(src.getNameElement()));
if (src.hasValue()) {
tgt.setValue(VersionConvertor_14_40.convertType(src.getValue()));
}

View File

@ -92,7 +92,7 @@ public class Parser {
// VERSION_FILES.forEach(version -> {
String version = "14_30";
String version = "14_40";
List<String> filenames = listAllJavaFilesInDirectory(new File("").getAbsolutePath() + "/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv" + version + "/");
System.out.println("Checking the following files:");
Collections.sort(filenames);