This commit is contained in:
Grahame Grieve 2020-02-12 09:43:40 +11:00
commit 9bcc947885
19 changed files with 136 additions and 131 deletions

View File

@ -178,8 +178,8 @@ public class ConceptMap10_50 {
if (src.hasPropertyElement()) {
tgt.setElementElement((org.hl7.fhir.dstu2.model.UriType) VersionConvertor_10_50.convertType(src.getPropertyElement()));
}
if (src.hasSystemElement()) {
tgt.setCodeSystemElement((org.hl7.fhir.dstu2.model.UriType) VersionConvertor_10_50.convertType(src.getSystemElement()));
if (src.hasSystem()) {
tgt.setCodeSystem(src.getSystem());
}
if (src.hasValueElement()) {
tgt.setCodeElement((org.hl7.fhir.dstu2.model.StringType) VersionConvertor_10_50.convertType(src.getValueElement()));
@ -195,8 +195,8 @@ public class ConceptMap10_50 {
if (src.hasElementElement()) {
tgt.setPropertyElement((UriType) VersionConvertor_10_50.convertType(src.getElementElement()));
}
if (src.hasCodeSystemElement()) {
tgt.setSystemElement((CanonicalType) VersionConvertor_10_50.convertType(src.getCodeSystemElement()));
if (src.hasCodeSystem()) {
tgt.setSystem(src.getCodeSystem());
}
if (src.hasCodeElement()) {
tgt.setValueElement((StringType) VersionConvertor_10_50.convertType(src.getCodeElement()));

View File

@ -332,8 +332,8 @@ public class Conformance10_50 {
if (src.hasProtocol()) {
tgt.setProtocol(VersionConvertor_10_50.convertCoding(src.getProtocol()));
}
if (src.hasAddressElement()) {
tgt.setAddressElement((UrlType) VersionConvertor_10_50.convertType(src.getAddressElement()));
if (src.hasAddress()) {
tgt.setAddress(src.getAddress());
}
return tgt;
}
@ -346,8 +346,8 @@ public class Conformance10_50 {
if (src.hasProtocol()) {
tgt.setProtocol(VersionConvertor_10_50.convertCoding(src.getProtocol()));
}
if (src.hasAddressElement()) {
tgt.setAddressElement((UriType) VersionConvertor_10_50.convertType(src.getAddressElement()));
if (src.hasAddress()) {
tgt.setAddress(src.getAddress());
}
return tgt;
}

View File

@ -32,8 +32,8 @@ public class SearchParameter10_50 {
if (src.hasContact()) {
for (org.hl7.fhir.r5.model.ContactDetail t : src.getContact()) tgt.addContact(convertSearchParameterContactComponent(t));
}
if (src.hasPurposeElement()) {
tgt.setRequirementsElement((StringType) VersionConvertor_10_50.convertType(src.getPurposeElement()));
if (src.hasPurpose()) {
tgt.setRequirements(src.getPurpose());
}
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.dstu2.model.CodeType) VersionConvertor_10_50.convertType(src.getCodeElement()));
@ -43,8 +43,8 @@ public class SearchParameter10_50 {
if (src.hasType()) {
tgt.setType(VersionConvertor_10_50.convertSearchParamType(src.getType()));
}
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu2.model.StringType) VersionConvertor_10_50.convertType(src.getDescriptionElement()));
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasExpression()) {
org.hl7.fhir.dstu2.utils.ToolingExtensions.setStringExtension(tgt, ToolingExtensions.EXT_EXPRESSION, src.getExpression());
}
@ -80,8 +80,8 @@ public class SearchParameter10_50 {
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_50.convertType(src.getRequirementsElement()));
if (src.hasRequirements()) {
tgt.setPurpose(src.getRequirements());
}
if (src.hasCodeElement())
tgt.setCodeElement((org.hl7.fhir.r5.model.CodeType) VersionConvertor_10_50.convertType(src.getCodeElement()));
@ -90,8 +90,8 @@ public class SearchParameter10_50 {
if (src.hasType()) {
tgt.setType(VersionConvertor_10_50.convertSearchParamType(src.getType()));
}
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r5.model.MarkdownType) VersionConvertor_10_50.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.r5.model.StringType) VersionConvertor_10_50.convertType(src.getXpathElement()));

View File

@ -79,8 +79,8 @@ public class StructureDefinition10_50 {
}
if (src.hasDateElement())
tgt.setDateElement((org.hl7.fhir.dstu2.model.DateTimeType) VersionConvertor_10_50.convertType(src.getDateElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu2.model.StringType) VersionConvertor_10_50.convertType(src.getDescriptionElement()));
if (src.hasDescription())
tgt.setDescription(src.getDescription());
for (org.hl7.fhir.r5.model.UsageContext t : src.getUseContext()) if (t.hasValueCodeableConcept())
tgt.addUseContext(VersionConvertor_10_50.convertCodeableConcept(t.getValueCodeableConcept()));
if (src.hasJurisdiction()) {
@ -159,8 +159,8 @@ public class StructureDefinition10_50 {
}
if (src.hasDateElement())
tgt.setDateElement((org.hl7.fhir.r5.model.DateTimeType) VersionConvertor_10_50.convertType(src.getDateElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r5.model.MarkdownType) VersionConvertor_10_50.convertType(src.getDescriptionElement()));
if (src.hasDescription())
tgt.setDescription(src.getDescription());
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_50.isJurisdiction(t))
tgt.addJurisdiction(VersionConvertor_10_50.convertCodeableConcept(t));
else
@ -168,8 +168,8 @@ public class StructureDefinition10_50 {
if (src.hasRequirements()) {
tgt.setPurpose(src.getRequirements());
}
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.r5.model.MarkdownType) VersionConvertor_10_50.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_50.convertCoding(t));
}
@ -191,16 +191,16 @@ public class StructureDefinition10_50 {
}
ec.setExpression("*".equals(t.getValue()) ? "Element" : t.getValue());
}
if (src.hasConstrainedTypeElement())
tgt.setTypeElement((UriType) VersionConvertor_10_50.convertType(src.getConstrainedTypeElement()));
if (src.hasConstrainedType())
tgt.setType(src.getConstrainedType());
else if (src.getSnapshot().hasElement())
tgt.setType(src.getSnapshot().getElement().get(0).getPath());
else if (src.getDifferential().hasElement() && !src.getDifferential().getElement().get(0).getPath().contains("."))
tgt.setType(src.getDifferential().getElement().get(0).getPath());
else
tgt.setType(src.getDifferential().getElement().get(0).getPath().substring(0, src.getDifferential().getElement().get(0).getPath().indexOf(".")));
if (src.hasBaseElement()) {
tgt.setBaseDefinitionElement((CanonicalType) VersionConvertor_10_50.convertType(src.getBaseElement()));
if (src.hasBase()) {
tgt.setBaseDefinition(src.getBase());
}
tgt.setDerivation(src.hasConstrainedType() ? org.hl7.fhir.r5.model.StructureDefinition.TypeDerivationRule.CONSTRAINT : org.hl7.fhir.r5.model.StructureDefinition.TypeDerivationRule.SPECIALIZATION);
if (src.hasSnapshot()) {

View File

@ -256,8 +256,8 @@ public class ValueSet10_50 {
}
if (src.hasDateElement())
tgt.setDateElement((org.hl7.fhir.r5.model.DateTimeType) VersionConvertor_10_50.convertType(src.getDateElement()));
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r5.model.MarkdownType) VersionConvertor_10_50.convertType(src.getDescriptionElement()));
if (src.hasDescription())
tgt.setDescription(src.getDescription());
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_50.isJurisdiction(t))
tgt.addJurisdiction(VersionConvertor_10_50.convertCodeableConcept(t));
else
@ -267,8 +267,8 @@ public class ValueSet10_50 {
if (src.hasRequirements()) {
tgt.setPurpose(src.getRequirements());
}
if (src.hasCopyrightElement())
tgt.setCopyrightElement((org.hl7.fhir.r5.model.MarkdownType) VersionConvertor_10_50.convertType(src.getCopyrightElement()));
if (src.hasCopyright())
tgt.setCopyright(src.getCopyright());
if (src.hasExtensible())
tgt.addExtension("http://hl7.org/fhir/StructureDefinition/valueset-extensible", new BooleanType(src.getExtensible()));
if (src.hasCompose()) {
@ -307,8 +307,8 @@ public class ValueSet10_50 {
}
if (src.hasDateElement())
tgtcs.setDateElement((DateTimeType) VersionConvertor_10_50.convertType(src.getDateElement()));
if (src.hasDescriptionElement()) {
tgtcs.setDescriptionElement((MarkdownType) VersionConvertor_10_50.convertType(src.getDescriptionElement()));
if (src.hasDescription()) {
tgtcs.setDescription(src.getDescription());
}
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getUseContext()) if (VersionConvertor_10_50.isJurisdiction(t))
tgtcs.addJurisdiction(VersionConvertor_10_50.convertCodeableConcept(t));

View File

@ -50,8 +50,8 @@ public class CodeSystem14_50 {
tgt.setCopyrightElement((org.hl7.fhir.dstu2016may.model.StringType) VersionConvertor_14_50.convertType(src.getCopyrightElement()));
if (src.hasCaseSensitiveElement())
tgt.setCaseSensitiveElement((org.hl7.fhir.dstu2016may.model.BooleanType) VersionConvertor_14_50.convertType(src.getCaseSensitiveElement()));
if (src.hasValueSetElement())
tgt.setValueSetElement((org.hl7.fhir.dstu2016may.model.UriType) VersionConvertor_14_50.convertType(src.getValueSetElement()));
if (src.hasValueSet())
tgt.setValueSet(src.getValueSet());
if (src.hasCompositionalElement())
tgt.setCompositionalElement((org.hl7.fhir.dstu2016may.model.BooleanType) VersionConvertor_14_50.convertType(src.getCompositionalElement()));
if (src.hasVersionNeededElement())
@ -110,8 +110,8 @@ public class CodeSystem14_50 {
tgt.setCopyright(src.getCopyright());
if (src.hasCaseSensitiveElement())
tgt.setCaseSensitiveElement((org.hl7.fhir.r5.model.BooleanType) VersionConvertor_14_50.convertType(src.getCaseSensitiveElement()));
if (src.hasValueSetElement())
tgt.setValueSetElement((org.hl7.fhir.r5.model.CanonicalType) VersionConvertor_14_50.convertType(src.getValueSetElement()));
if (src.hasValueSet())
tgt.setValueSet(src.getValueSet());
if (src.hasCompositionalElement())
tgt.setCompositionalElement((org.hl7.fhir.r5.model.BooleanType) VersionConvertor_14_50.convertType(src.getCompositionalElement()));
if (src.hasVersionNeededElement())
@ -119,8 +119,8 @@ public class CodeSystem14_50 {
if (src.hasContent()) {
tgt.setContent(convertCodeSystemContentMode(src.getContent()));
}
if (src.hasCountElement())
tgt.setCountElement((org.hl7.fhir.r5.model.UnsignedIntType) VersionConvertor_14_50.convertType(src.getCountElement()));
if (src.hasCount())
tgt.setCount(src.getCount());
if (src.hasFilter()) {
for (org.hl7.fhir.dstu2016may.model.CodeSystem.CodeSystemFilterComponent t : src.getFilter()) tgt.addFilter(convertCodeSystemFilterComponent(t));
}

View File

@ -208,8 +208,8 @@ public class ConceptMap14_50 {
if (src.hasElementElement()) {
tgt.setPropertyElement((org.hl7.fhir.r5.model.UriType) VersionConvertor_14_50.convertType(src.getElementElement()));
}
if (src.hasSystemElement())
tgt.setSystemElement((org.hl7.fhir.r5.model.CanonicalType) VersionConvertor_14_50.convertType(src.getSystemElement()));
if (src.hasSystem())
tgt.setSystem(src.getSystem());
if (src.hasCodeElement()) {
tgt.setValueElement((org.hl7.fhir.r5.model.StringType) VersionConvertor_14_50.convertType(src.getCodeElement()));
}

View File

@ -241,8 +241,8 @@ public class Conformance14_50 {
if (src.hasDescription()) {
tgt.setDescription(src.getDescription());
}
if (src.hasUrlElement())
tgt.setUrlElement((UrlType) VersionConvertor_14_50.convertType(src.getUrlElement()));
if (src.hasUrl())
tgt.setUrl(src.getUrl());
return tgt;
}
@ -301,8 +301,8 @@ public class Conformance14_50 {
if (src.hasEndpoint()) {
for (org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertConformanceMessagingEndpointComponent(t));
}
if (src.hasReliableCacheElement())
tgt.setReliableCacheElement((org.hl7.fhir.r5.model.UnsignedIntType) VersionConvertor_14_50.convertType(src.getReliableCacheElement()));
if (src.hasReliableCache())
tgt.setReliableCache(src.getReliableCache());
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
for (org.hl7.fhir.dstu2016may.model.Conformance.ConformanceMessagingEventComponent t : src.getEvent()) {
@ -350,8 +350,8 @@ public class Conformance14_50 {
if (src.hasProtocol()) {
tgt.setProtocol(VersionConvertor_14_50.convertCoding(src.getProtocol()));
}
if (src.hasAddressElement()) {
tgt.setAddressElement((UrlType) VersionConvertor_14_50.convertType(src.getAddressElement()));
if (src.hasAddress()) {
tgt.setAddress(src.getAddress());
}
return tgt;
}

View File

@ -1,8 +1,10 @@
package org.hl7.fhir.convertors.conv14_50;
import org.hl7.fhir.convertors.VersionConvertor_10_50;
import org.hl7.fhir.convertors.VersionConvertor_14_50;
import org.hl7.fhir.dstu2016may.model.StringType;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r5.model.CanonicalType;
import org.hl7.fhir.r5.model.ElementDefinition;
import org.hl7.fhir.r5.model.StructureDefinition.TypeDerivationRule;
import org.hl7.fhir.utilities.Utilities;
@ -102,8 +104,8 @@ public class StructureDefinition14_50 {
tgt.setContextType(convertExtensionContext(t.getType(), t.getExpression()));
tgt.addContext("Element".equals(t.getExpression()) ? "*" : t.getExpression());
}
if (src.hasBaseDefinitionElement())
tgt.setBaseDefinitionElement((org.hl7.fhir.dstu2016may.model.UriType) VersionConvertor_14_50.convertType(src.getBaseDefinitionElement()));
if (src.hasBaseDefinition())
tgt.setBaseDefinition(src.getBaseDefinition());
if (src.hasType() && src.getDerivation() == org.hl7.fhir.r5.model.StructureDefinition.TypeDerivationRule.CONSTRAINT)
tgt.setBaseType(src.getType());
if (src.hasDerivation()) {
@ -179,8 +181,8 @@ public class StructureDefinition14_50 {
tgt.setType(src.getBaseType());
else
tgt.setType(src.getId());
if (src.hasBaseDefinitionElement())
tgt.setBaseDefinitionElement((org.hl7.fhir.r5.model.CanonicalType) VersionConvertor_14_50.convertType(src.getBaseDefinitionElement()));
if (src.hasBaseDefinition())
tgt.setBaseDefinition(src.getBaseDefinition());
if (src.hasDerivation()) {
tgt.setDerivation(convertTypeDerivationRule(src.getDerivation()));
}

View File

@ -191,10 +191,10 @@ public class CapabilityStatement30_50 {
return null;
org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementImplementationComponent tgt = new org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementImplementationComponent();
VersionConvertor_30_50.copyElement(src, tgt);
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r5.model.StringType) VersionConvertor_30_50.convertType(src.getDescriptionElement()));
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r5.model.UrlType) VersionConvertor_30_50.convertType(src.getUrlElement()));
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasUrl())
tgt.setUrl(src.getUrl());
return tgt;
}
@ -203,10 +203,10 @@ public class CapabilityStatement30_50 {
return null;
org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementImplementationComponent tgt = new org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementImplementationComponent();
VersionConvertor_30_50.copyElement(src, tgt);
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_50.convertType(src.getDescriptionElement()));
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_50.convertType(src.getUrlElement()));
if (src.hasDescription())
tgt.setDescription(src.getDescription());
if (src.hasUrl())
tgt.setUrl(src.getUrl());
return tgt;
}
@ -248,10 +248,10 @@ public class CapabilityStatement30_50 {
if (src.hasEndpoint()) {
for (org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertCapabilityStatementMessagingEndpointComponent(t));
}
if (src.hasReliableCacheElement())
tgt.setReliableCacheElement((org.hl7.fhir.dstu3.model.UnsignedIntType) VersionConvertor_30_50.convertType(src.getReliableCacheElement()));
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_50.convertType(src.getDocumentationElement()));
if (src.hasReliableCache())
tgt.setReliableCache(src.getReliableCache());
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasSupportedMessage()) {
for (org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementMessagingSupportedMessageComponent t : src.getSupportedMessage()) tgt.addSupportedMessage(convertCapabilityStatementMessagingSupportedMessageComponent(t));
}
@ -285,10 +285,10 @@ public class CapabilityStatement30_50 {
if (src.hasEndpoint()) {
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingEndpointComponent t : src.getEndpoint()) tgt.addEndpoint(convertCapabilityStatementMessagingEndpointComponent(t));
}
if (src.hasReliableCacheElement())
tgt.setReliableCacheElement((org.hl7.fhir.r5.model.UnsignedIntType) VersionConvertor_30_50.convertType(src.getReliableCacheElement()));
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.r5.model.MarkdownType) VersionConvertor_30_50.convertType(src.getDocumentationElement()));
if (src.hasReliableCache())
tgt.setReliableCache(src.getReliableCache());
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasSupportedMessage()) {
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementMessagingSupportedMessageComponent t : src.getSupportedMessage()) tgt.addSupportedMessage(convertCapabilityStatementMessagingSupportedMessageComponent(t));
}
@ -322,8 +322,8 @@ public class CapabilityStatement30_50 {
VersionConvertor_30_50.copyElement(src, tgt);
if (src.hasProtocol())
tgt.setProtocol(VersionConvertor_30_50.convertCoding(src.getProtocol()));
if (src.hasAddressElement())
tgt.setAddressElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_50.convertType(src.getAddressElement()));
if (src.hasAddress())
tgt.setAddress(src.getAddress());
return tgt;
}
@ -334,8 +334,8 @@ public class CapabilityStatement30_50 {
VersionConvertor_30_50.copyElement(src, tgt);
if (src.hasProtocol())
tgt.setProtocol(VersionConvertor_30_50.convertCoding(src.getProtocol()));
if (src.hasAddressElement())
tgt.setAddressElement((org.hl7.fhir.r5.model.UrlType) VersionConvertor_30_50.convertType(src.getAddressElement()));
if (src.hasAddress())
tgt.setAddress(src.getAddress());
return tgt;
}
@ -370,8 +370,8 @@ public class CapabilityStatement30_50 {
VersionConvertor_30_50.copyElement(src, tgt);
if (src.hasMode())
tgt.setMode(convertRestfulCapabilityMode(src.getMode()));
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_50.convertType(src.getDocumentationElement()));
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasSecurity())
tgt.setSecurity(convertCapabilityStatementRestSecurityComponent(src.getSecurity()));
if (src.hasResource()) {
@ -399,8 +399,8 @@ public class CapabilityStatement30_50 {
VersionConvertor_30_50.copyElement(src, tgt);
if (src.hasMode())
tgt.setMode(convertRestfulCapabilityMode(src.getMode()));
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.r5.model.MarkdownType) VersionConvertor_30_50.convertType(src.getDocumentationElement()));
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
if (src.hasSecurity())
tgt.setSecurity(convertCapabilityStatementRestSecurityComponent(src.getSecurity()));
if (src.hasResource()) {
@ -538,12 +538,12 @@ public class CapabilityStatement30_50 {
VersionConvertor_30_50.copyElement(src, tgt);
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_50.convertType(src.getNameElement()));
if (src.hasDefinitionElement())
tgt.setDefinitionElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_50.convertType(src.getDefinitionElement()));
if (src.hasDefinition())
tgt.setDefinition(src.getDefinition());
if (src.hasType())
tgt.setType(VersionConvertor_30_50.convertSearchParamType(src.getType()));
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_50.convertType(src.getDocumentationElement()));
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
return tgt;
}
@ -554,12 +554,12 @@ public class CapabilityStatement30_50 {
VersionConvertor_30_50.copyElement(src, tgt);
if (src.hasNameElement())
tgt.setNameElement((org.hl7.fhir.r5.model.StringType) VersionConvertor_30_50.convertType(src.getNameElement()));
if (src.hasDefinitionElement())
tgt.setDefinitionElement((org.hl7.fhir.r5.model.CanonicalType) VersionConvertor_30_50.convertType(src.getDefinitionElement()));
if (src.hasDefinition())
tgt.setDefinition(src.getDefinition());
if (src.hasType())
tgt.setType(VersionConvertor_30_50.convertSearchParamType(src.getType()));
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.r5.model.MarkdownType) VersionConvertor_30_50.convertType(src.getDocumentationElement()));
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
return tgt;
}
@ -573,8 +573,8 @@ public class CapabilityStatement30_50 {
if (src.hasService()) {
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getService()) tgt.addService(VersionConvertor_30_50.convertCodeableConcept(t));
}
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_50.convertType(src.getDescriptionElement()));
if (src.hasDescription())
tgt.setDescription(src.getDescription());
return tgt;
}
@ -588,8 +588,8 @@ public class CapabilityStatement30_50 {
if (src.hasService()) {
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getService()) tgt.addService(VersionConvertor_30_50.convertCodeableConcept(t));
}
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r5.model.MarkdownType) VersionConvertor_30_50.convertType(src.getDescriptionElement()));
if (src.hasDescription())
tgt.setDescription(src.getDescription());
return tgt;
}
@ -782,8 +782,8 @@ public class CapabilityStatement30_50 {
VersionConvertor_30_50.copyElement(src, tgt);
if (src.hasCode())
tgt.setCode(convertTypeRestfulInteraction(src.getCode()));
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.r5.model.MarkdownType) VersionConvertor_30_50.convertType(src.getDocumentationElement()));
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
return tgt;
}
@ -794,8 +794,8 @@ public class CapabilityStatement30_50 {
VersionConvertor_30_50.copyElement(src, tgt);
if (src.hasCode())
tgt.setCode(convertTypeRestfulInteraction(src.getCode()));
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_50.convertType(src.getDocumentationElement()));
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
return tgt;
}
@ -862,8 +862,8 @@ public class CapabilityStatement30_50 {
VersionConvertor_30_50.copyElement(src, tgt);
if (src.hasCode())
tgt.setCode(convertSystemRestfulInteraction(src.getCode()));
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_50.convertType(src.getDocumentationElement()));
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
return tgt;
}
@ -874,8 +874,8 @@ public class CapabilityStatement30_50 {
VersionConvertor_30_50.copyElement(src, tgt);
if (src.hasCode())
tgt.setCode(convertSystemRestfulInteraction(src.getCode()));
if (src.hasDocumentationElement())
tgt.setDocumentationElement((org.hl7.fhir.r5.model.MarkdownType) VersionConvertor_30_50.convertType(src.getDocumentationElement()));
if (src.hasDocumentation())
tgt.setDocumentation(src.getDocumentation());
return tgt;
}

View File

@ -48,8 +48,8 @@ public class CodeSystem30_50 {
tgt.setCopyrightElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_50.convertType(src.getCopyrightElement()));
if (src.hasCaseSensitiveElement())
tgt.setCaseSensitiveElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_50.convertType(src.getCaseSensitiveElement()));
if (src.hasValueSetElement())
tgt.setValueSetElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_50.convertType(src.getValueSetElement()));
if (src.hasValueSet())
tgt.setValueSet(src.getValueSet());
if (src.hasHierarchyMeaning())
tgt.setHierarchyMeaning(convertCodeSystemHierarchyMeaning(src.getHierarchyMeaning()));
if (src.hasCompositionalElement())
@ -58,8 +58,8 @@ public class CodeSystem30_50 {
tgt.setVersionNeededElement((org.hl7.fhir.dstu3.model.BooleanType) VersionConvertor_30_50.convertType(src.getVersionNeededElement()));
if (src.hasContent())
tgt.setContent(convertCodeSystemContentMode(src.getContent()));
if (src.hasCountElement())
tgt.setCountElement((org.hl7.fhir.dstu3.model.UnsignedIntType) VersionConvertor_30_50.convertType(src.getCountElement()));
if (src.hasCount())
tgt.setCount(src.getCount());
if (src.hasFilter()) {
for (org.hl7.fhir.r5.model.CodeSystem.CodeSystemFilterComponent t : src.getFilter()) tgt.addFilter(convertCodeSystemFilterComponent(t));
}
@ -112,8 +112,8 @@ public class CodeSystem30_50 {
tgt.setCopyrightElement((org.hl7.fhir.r5.model.MarkdownType) VersionConvertor_30_50.convertType(src.getCopyrightElement()));
if (src.hasCaseSensitiveElement())
tgt.setCaseSensitiveElement((org.hl7.fhir.r5.model.BooleanType) VersionConvertor_30_50.convertType(src.getCaseSensitiveElement()));
if (src.hasValueSetElement())
tgt.setValueSetElement((org.hl7.fhir.r5.model.CanonicalType) VersionConvertor_30_50.convertType(src.getValueSetElement()));
if (src.hasValueSet())
tgt.setValueSet(src.getValueSet());
if (src.hasHierarchyMeaning())
tgt.setHierarchyMeaning(convertCodeSystemHierarchyMeaning(src.getHierarchyMeaning()));
if (src.hasCompositionalElement())
@ -122,8 +122,8 @@ public class CodeSystem30_50 {
tgt.setVersionNeededElement((org.hl7.fhir.r5.model.BooleanType) VersionConvertor_30_50.convertType(src.getVersionNeededElement()));
if (src.hasContent())
tgt.setContent(convertCodeSystemContentMode(src.getContent()));
if (src.hasCountElement())
tgt.setCountElement((org.hl7.fhir.r5.model.UnsignedIntType) VersionConvertor_30_50.convertType(src.getCountElement()));
if (src.hasCount())
tgt.setCount(src.getCount());
if (src.hasFilter()) {
for (org.hl7.fhir.dstu3.model.CodeSystem.CodeSystemFilterComponent t : src.getFilter()) tgt.addFilter(convertCodeSystemFilterComponent(t));
}

View File

@ -172,8 +172,8 @@ public class ConceptMap30_50 {
tgt.setCodeElement((org.hl7.fhir.r5.model.CodeType) VersionConvertor_30_50.convertType(src.getCodeElement()));
if (src.hasDisplayElement())
tgt.setDisplayElement((org.hl7.fhir.r5.model.StringType) VersionConvertor_30_50.convertType(src.getDisplayElement()));
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r5.model.CanonicalType) VersionConvertor_30_50.convertType(src.getUrlElement()));
if (src.hasUrl())
tgt.setUrl(src.getUrl());
return tgt;
}
@ -188,8 +188,8 @@ public class ConceptMap30_50 {
tgt.setCodeElement((org.hl7.fhir.dstu3.model.CodeType) VersionConvertor_30_50.convertType(src.getCodeElement()));
if (src.hasDisplayElement())
tgt.setDisplayElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_50.convertType(src.getDisplayElement()));
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_50.convertType(src.getUrlElement()));
if (src.hasUrl())
tgt.setUrl(src.getUrl());
return tgt;
}
@ -259,8 +259,8 @@ public class ConceptMap30_50 {
VersionConvertor_30_50.copyElement(src, tgt);
if (src.hasPropertyElement())
tgt.setPropertyElement((org.hl7.fhir.r5.model.UriType) VersionConvertor_30_50.convertType(src.getPropertyElement()));
if (src.hasSystemElement())
tgt.setSystemElement((org.hl7.fhir.r5.model.CanonicalType) VersionConvertor_30_50.convertType(src.getSystemElement()));
if (src.hasSystem())
tgt.setSystem(src.getSystem());
if (src.hasCodeElement())
tgt.setValueElement((StringType) VersionConvertor_30_50.convertType(src.getCodeElement()));
if (src.hasDisplayElement())
@ -275,8 +275,8 @@ public class ConceptMap30_50 {
VersionConvertor_30_50.copyElement(src, tgt);
if (src.hasPropertyElement())
tgt.setPropertyElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_50.convertType(src.getPropertyElement()));
if (src.hasSystemElement())
tgt.setSystemElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_50.convertType(src.getSystemElement()));
if (src.hasSystem())
tgt.setSystem(src.getSystem());
if (src.hasValueElement())
tgt.setCodeElement((org.hl7.fhir.dstu3.model.StringType) VersionConvertor_30_50.convertType(src.getValueElement()));
if (src.hasDisplayElement())

View File

@ -119,8 +119,8 @@ public class ImplementationGuide30_50 {
org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideDependencyComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideDependencyComponent();
VersionConvertor_30_50.copyElement(src, tgt);
tgt.setType(org.hl7.fhir.dstu3.model.ImplementationGuide.GuideDependencyType.REFERENCE);
if (src.hasUriElement())
tgt.setUriElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_50.convertType(src.getUriElement()));
if (src.hasUri())
tgt.setUri(src.getUri());
if (src.hasPackageId())
tgt.addExtension(new org.hl7.fhir.dstu3.model.Extension(VersionConvertorConstants.IG_DEPENDSON_PACKAGE_EXTENSION, new org.hl7.fhir.dstu3.model.IdType(src.getPackageId())));
if (src.hasVersion())
@ -133,8 +133,8 @@ public class ImplementationGuide30_50 {
return null;
org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDependsOnComponent tgt = new org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideDependsOnComponent();
VersionConvertor_30_50.copyElement(src, tgt);
if (src.hasUriElement())
tgt.setUriElement((org.hl7.fhir.r5.model.CanonicalType) VersionConvertor_30_50.convertType(src.getUriElement()));
if (src.hasUri())
tgt.setUri(src.getUri());
if (org.hl7.fhir.dstu3.utils.ToolingExtensions.hasExtension(src, VersionConvertorConstants.IG_DEPENDSON_PACKAGE_EXTENSION)) {
tgt.setPackageId(org.hl7.fhir.dstu3.utils.ToolingExtensions.readStringExtension(src, VersionConvertorConstants.IG_DEPENDSON_PACKAGE_EXTENSION));
}

View File

@ -155,8 +155,8 @@ public class SearchParameter30_50 {
}
if (src.hasType())
tgt.setType(VersionConvertor_30_50.convertSearchParamType(src.getType()));
if (src.hasDerivedFromElement())
tgt.setDerivedFromElement((org.hl7.fhir.r5.model.CanonicalType) VersionConvertor_30_50.convertType(src.getDerivedFromElement()));
if (src.hasDerivedFrom())
tgt.setDerivedFrom(src.getDerivedFrom());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.r5.model.MarkdownType) VersionConvertor_30_50.convertType(src.getDescriptionElement()));
if (src.hasExpressionElement())
@ -220,8 +220,8 @@ public class SearchParameter30_50 {
}
if (src.hasType())
tgt.setType(VersionConvertor_30_50.convertSearchParamType(src.getType()));
if (src.hasDerivedFromElement())
tgt.setDerivedFromElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_50.convertType(src.getDerivedFromElement()));
if (src.hasDerivedFrom())
tgt.setDerivedFrom(src.getDerivedFrom());
if (src.hasDescriptionElement())
tgt.setDescriptionElement((org.hl7.fhir.dstu3.model.MarkdownType) VersionConvertor_30_50.convertType(src.getDescriptionElement()));
if (src.hasExpressionElement())

View File

@ -105,8 +105,8 @@ public class StructureDefinition30_50 {
}
if (src.hasType())
tgt.setType(src.getType());
if (src.hasBaseDefinitionElement())
tgt.setBaseDefinitionElement((org.hl7.fhir.r5.model.CanonicalType) VersionConvertor_30_50.convertType(src.getBaseDefinitionElement()));
if (src.hasBaseDefinition())
tgt.setBaseDefinition(src.getBaseDefinition());
if (src.hasDerivation())
tgt.setDerivation(convertTypeDerivationRule(src.getDerivation()));
if (src.hasSnapshot())
@ -184,8 +184,8 @@ public class StructureDefinition30_50 {
}
if (src.hasType())
tgt.setType(src.getType());
if (src.hasBaseDefinitionElement())
tgt.setBaseDefinitionElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_50.convertType(src.getBaseDefinitionElement()));
if (src.hasBaseDefinition())
tgt.setBaseDefinition(src.getBaseDefinition());
if (src.hasDerivation())
tgt.setDerivation(convertTypeDerivationRule(src.getDerivation()));
if (src.hasSnapshot())

View File

@ -545,8 +545,8 @@ public class StructureMap30_50 {
return null;
org.hl7.fhir.dstu3.model.StructureMap.StructureMapStructureComponent tgt = new org.hl7.fhir.dstu3.model.StructureMap.StructureMapStructureComponent();
VersionConvertor_30_50.copyElement(src, tgt);
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.dstu3.model.UriType) VersionConvertor_30_50.convertType(src.getUrlElement()));
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasMode())
tgt.setMode(convertStructureMapModelMode(src.getMode()));
if (src.hasAliasElement())
@ -561,8 +561,8 @@ public class StructureMap30_50 {
return null;
org.hl7.fhir.r5.model.StructureMap.StructureMapStructureComponent tgt = new org.hl7.fhir.r5.model.StructureMap.StructureMapStructureComponent();
VersionConvertor_30_50.copyElement(src, tgt);
if (src.hasUrlElement())
tgt.setUrlElement((org.hl7.fhir.r5.model.CanonicalType) VersionConvertor_30_50.convertType(src.getUrlElement()));
if (src.hasUrl())
tgt.setUrl(src.getUrl());
if (src.hasMode())
tgt.setMode(convertStructureMapModelMode(src.getMode()));
if (src.hasAliasElement())

View File

@ -978,7 +978,7 @@ This period may be different to the coveragePeriod which is the duration of time
return this.name != null && !this.name.isEmpty();
}
public boolean hasName() {
public boolean hasName() {
return this.name != null && !this.name.isEmpty();
}

View File

@ -2,6 +2,9 @@ package org.hl7.fhir.r5.model;
import org.junit.Test;
import java.util.Date;
import java.util.TimeZone;
import static org.junit.Assert.*;
public class BaseDateTimeTypeTest {
@ -33,6 +36,8 @@ public class BaseDateTimeTypeTest {
@Test
public void equalsUsingFhirPathRulesOther() {
// Exact same - Same timezone
assertTrue( compareDateTimes("2001-01-02T11:22:33.444Z", "2001-01-02T11:22:33.444Z"));
// Exact same - Different timezone

View File

@ -3,10 +3,7 @@ package org.hl7.fhir.r5.test;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.*;
import javax.xml.parsers.ParserConfigurationException;
@ -150,6 +147,7 @@ public class FHIRPathTests {
@SuppressWarnings("deprecation")
@Test
public void test() throws FileNotFoundException, IOException, FHIRException, org.hl7.fhir.exceptions.FHIRException, UcumException {
if (fp == null)
fp = new FHIRPathEngine(TestingUtilities.context());
fp.setHostServices(new FHIRPathTestEvaluationServices());