diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/ExtensionDefinitionGenerator.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/ExtensionDefinitionGenerator.java index 73fc1f5de..0e79da9bf 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/ExtensionDefinitionGenerator.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/ExtensionDefinitionGenerator.java @@ -1,5 +1,49 @@ package org.hl7.fhir.convertors; +import java.io.IOException; +import java.io.InputStream; +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Calendar; +import java.util.GregorianCalendar; +import java.util.HashSet; +import java.util.List; +import java.util.Locale; +import java.util.Set; +import java.util.TimeZone; + +import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_10_40; +import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_30_40; +import org.hl7.fhir.convertors.factory.VersionConvertorFactory_10_40; +import org.hl7.fhir.convertors.factory.VersionConvertorFactory_14_40; +import org.hl7.fhir.convertors.factory.VersionConvertorFactory_30_40; +import org.hl7.fhir.convertors.loaders.loaderR4.R2016MayToR4Loader; +import org.hl7.fhir.convertors.loaders.loaderR4.R2ToR4Loader; +import org.hl7.fhir.convertors.loaders.loaderR4.R3ToR4Loader; +import org.hl7.fhir.convertors.misc.IGR2ConvertorAdvisor; +import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.r4.conformance.ProfileUtilities; +import org.hl7.fhir.r4.context.BaseWorkerContext; +import org.hl7.fhir.r4.context.SimpleWorkerContext; +import org.hl7.fhir.r4.formats.JsonParser; +import org.hl7.fhir.r4.model.ElementDefinition; +import org.hl7.fhir.r4.model.ElementDefinition.TypeRefComponent; +import org.hl7.fhir.r4.model.Enumerations.FHIRVersion; +import org.hl7.fhir.r4.model.Enumerations.PublicationStatus; +import org.hl7.fhir.r4.model.ImplementationGuide.SPDXLicense; +import org.hl7.fhir.r4.model.Resource; +import org.hl7.fhir.r4.model.StructureDefinition; +import org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionKind; +import org.hl7.fhir.r4.model.StructureDefinition.TypeDerivationRule; +import org.hl7.fhir.r4.model.UriType; +import org.hl7.fhir.r4.utils.NPMPackageGenerator; +import org.hl7.fhir.r4.utils.NPMPackageGenerator.Category; +import org.hl7.fhir.utilities.Utilities; +import org.hl7.fhir.utilities.npm.FilesystemPackageCacheManager; +import org.hl7.fhir.utilities.npm.NpmPackage; +import org.hl7.fhir.utilities.npm.PackageGenerator.PackageType; +import org.hl7.fhir.utilities.npm.ToolsVersion; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -32,42 +76,6 @@ package org.hl7.fhir.convertors; import com.google.gson.JsonArray; import com.google.gson.JsonObject; -import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_10_40; -import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_30_40; -import org.hl7.fhir.convertors.factory.VersionConvertorFactory_10_40; -import org.hl7.fhir.convertors.factory.VersionConvertorFactory_14_40; -import org.hl7.fhir.convertors.factory.VersionConvertorFactory_30_40; -import org.hl7.fhir.convertors.loaders.loaderR4.R2016MayToR4Loader; -import org.hl7.fhir.convertors.loaders.loaderR4.R2ToR4Loader; -import org.hl7.fhir.convertors.loaders.loaderR4.R3ToR4Loader; -import org.hl7.fhir.convertors.misc.IGR2ConvertorAdvisor; -import org.hl7.fhir.exceptions.FHIRException; -import org.hl7.fhir.r4.conformance.ProfileUtilities; -import org.hl7.fhir.r4.context.BaseWorkerContext; -import org.hl7.fhir.r4.context.SimpleWorkerContext; -import org.hl7.fhir.r4.formats.JsonParser; -import org.hl7.fhir.r4.model.ElementDefinition; -import org.hl7.fhir.r4.model.ElementDefinition.TypeRefComponent; -import org.hl7.fhir.r4.model.Enumerations.FHIRVersion; -import org.hl7.fhir.r4.model.Enumerations.PublicationStatus; -import org.hl7.fhir.r4.model.ImplementationGuide.SPDXLicense; -import org.hl7.fhir.r4.model.Resource; -import org.hl7.fhir.r4.model.StructureDefinition; -import org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionKind; -import org.hl7.fhir.r4.model.StructureDefinition.TypeDerivationRule; -import org.hl7.fhir.r4.model.UriType; -import org.hl7.fhir.r4.utils.NPMPackageGenerator; -import org.hl7.fhir.r4.utils.NPMPackageGenerator.Category; -import org.hl7.fhir.utilities.Utilities; -import org.hl7.fhir.utilities.npm.FilesystemPackageCacheManager; -import org.hl7.fhir.utilities.npm.NpmPackage; -import org.hl7.fhir.utilities.npm.PackageGenerator.PackageType; -import org.hl7.fhir.utilities.npm.ToolsVersion; - -import java.io.IOException; -import java.io.InputStream; -import java.text.SimpleDateFormat; -import java.util.*; public class ExtensionDefinitionGenerator { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/R2R3ConversionManager.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/R2R3ConversionManager.java index f4d51e3ed..01da45d4b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/R2R3ConversionManager.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/R2R3ConversionManager.java @@ -1,5 +1,21 @@ package org.hl7.fhir.convertors; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.UUID; +import java.util.zip.ZipEntry; +import java.util.zip.ZipInputStream; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -36,18 +52,22 @@ import org.hl7.fhir.dstu3.elementmodel.Manager.FhirFormat; import org.hl7.fhir.dstu3.formats.FormatUtilities; import org.hl7.fhir.dstu3.formats.IParser.OutputStyle; import org.hl7.fhir.dstu3.formats.JsonParser; -import org.hl7.fhir.dstu3.model.*; +import org.hl7.fhir.dstu3.model.Base; +import org.hl7.fhir.dstu3.model.Coding; +import org.hl7.fhir.dstu3.model.ExpansionProfile; +import org.hl7.fhir.dstu3.model.MetadataResource; +import org.hl7.fhir.dstu3.model.PractitionerRole; +import org.hl7.fhir.dstu3.model.Resource; +import org.hl7.fhir.dstu3.model.ResourceFactory; +import org.hl7.fhir.dstu3.model.StructureDefinition; import org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionKind; +import org.hl7.fhir.dstu3.model.StructureMap; +import org.hl7.fhir.dstu3.model.UriType; import org.hl7.fhir.dstu3.utils.StructureMapUtilities; import org.hl7.fhir.dstu3.utils.StructureMapUtilities.ITransformerServices; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.utilities.TextFile; -import java.io.*; -import java.util.*; -import java.util.zip.ZipEntry; -import java.util.zip.ZipInputStream; - /** * This class manages conversion from R2 to R3 and vice versa *

diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/SpecDifferenceEvaluator.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/SpecDifferenceEvaluator.java index 11f53c074..d3a967c67 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/SpecDifferenceEvaluator.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/SpecDifferenceEvaluator.java @@ -1,5 +1,53 @@ package org.hl7.fhir.convertors; +import java.io.ByteArrayOutputStream; +import java.io.FileInputStream; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import org.hl7.fhir.convertors.conv40_50.resources40_50.StructureDefinition40_50; +import org.hl7.fhir.convertors.conv40_50.resources40_50.ValueSet40_50; +import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.exceptions.FHIRFormatError; +import org.hl7.fhir.r5.elementmodel.Manager.FhirFormat; +import org.hl7.fhir.r5.formats.IParser.OutputStyle; +import org.hl7.fhir.r5.formats.JsonParser; +import org.hl7.fhir.r5.formats.XmlParser; +import org.hl7.fhir.r5.model.Base; +import org.hl7.fhir.r5.model.Bundle; +import org.hl7.fhir.r5.model.Bundle.BundleEntryComponent; +import org.hl7.fhir.r5.model.CanonicalType; +import org.hl7.fhir.r5.model.DataType; +import org.hl7.fhir.r5.model.ElementDefinition; +import org.hl7.fhir.r5.model.ElementDefinition.ElementDefinitionBindingComponent; +import org.hl7.fhir.r5.model.ElementDefinition.TypeRefComponent; +import org.hl7.fhir.r5.model.Enumerations.BindingStrength; +import org.hl7.fhir.r5.model.PrimitiveType; +import org.hl7.fhir.r5.model.Resource; +import org.hl7.fhir.r5.model.StructureDefinition; +import org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionKind; +import org.hl7.fhir.r5.model.UriType; +import org.hl7.fhir.r5.model.ValueSet; +import org.hl7.fhir.r5.model.ValueSet.ValueSetExpansionContainsComponent; +import org.hl7.fhir.r5.utils.ToolingExtensions; +import org.hl7.fhir.utilities.CommaSeparatedStringBuilder; +import org.hl7.fhir.utilities.IniFile; +import org.hl7.fhir.utilities.TextFile; +import org.hl7.fhir.utilities.Utilities; +import org.hl7.fhir.utilities.VersionUtilities; +import org.hl7.fhir.utilities.ZipGenerator; +import org.hl7.fhir.utilities.xhtml.NodeType; +import org.hl7.fhir.utilities.xhtml.XhtmlComposer; +import org.hl7.fhir.utilities.xhtml.XhtmlNode; +import org.w3c.dom.Document; +import org.w3c.dom.Element; +import org.w3c.dom.Node; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -33,34 +81,6 @@ package org.hl7.fhir.convertors; import com.google.gson.JsonArray; import com.google.gson.JsonObject; import com.google.gson.JsonPrimitive; -import org.hl7.fhir.convertors.conv40_50.resources40_50.StructureDefinition40_50; -import org.hl7.fhir.convertors.conv40_50.resources40_50.ValueSet40_50; -import org.hl7.fhir.exceptions.FHIRException; -import org.hl7.fhir.exceptions.FHIRFormatError; -import org.hl7.fhir.r5.elementmodel.Manager.FhirFormat; -import org.hl7.fhir.r5.formats.IParser.OutputStyle; -import org.hl7.fhir.r5.formats.JsonParser; -import org.hl7.fhir.r5.formats.XmlParser; -import org.hl7.fhir.r5.model.*; -import org.hl7.fhir.r5.model.Bundle.BundleEntryComponent; -import org.hl7.fhir.r5.model.ElementDefinition.ElementDefinitionBindingComponent; -import org.hl7.fhir.r5.model.ElementDefinition.TypeRefComponent; -import org.hl7.fhir.r5.model.Enumerations.BindingStrength; -import org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionKind; -import org.hl7.fhir.r5.model.ValueSet.ValueSetExpansionContainsComponent; -import org.hl7.fhir.r5.utils.ToolingExtensions; -import org.hl7.fhir.utilities.*; -import org.hl7.fhir.utilities.xhtml.NodeType; -import org.hl7.fhir.utilities.xhtml.XhtmlComposer; -import org.hl7.fhir.utilities.xhtml.XhtmlNode; -import org.w3c.dom.Document; -import org.w3c.dom.Element; -import org.w3c.dom.Node; - -import java.io.ByteArrayOutputStream; -import java.io.FileInputStream; -import java.io.IOException; -import java.util.*; public class SpecDifferenceEvaluator { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/SpecPackage.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/SpecPackage.java index 7388e5fe1..d44099128 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/SpecPackage.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/SpecPackage.java @@ -1,13 +1,14 @@ package org.hl7.fhir.convertors; +import java.util.HashMap; +import java.util.Map; + +import org.hl7.fhir.r5.model.StructureDefinition; +import org.hl7.fhir.r5.model.ValueSet; + import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; -import org.hl7.fhir.r5.model.StructureDefinition; -import org.hl7.fhir.r5.model.ValueSet; - -import java.util.HashMap; -import java.util.Map; @AllArgsConstructor @NoArgsConstructor diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/TransformContextR2R3.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/TransformContextR2R3.java index b89cd3be1..d59e4a965 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/TransformContextR2R3.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/TransformContextR2R3.java @@ -1,8 +1,9 @@ package org.hl7.fhir.convertors; +import org.hl7.fhir.dstu3.context.SimpleWorkerContext; + import lombok.AllArgsConstructor; import lombok.Data; -import org.hl7.fhir.dstu3.context.SimpleWorkerContext; @AllArgsConstructor @Data diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConversionService.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConversionService.java index c33294bb6..5f4eeb4ec 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConversionService.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConversionService.java @@ -1,5 +1,7 @@ package org.hl7.fhir.convertors; +import java.io.IOException; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -28,16 +30,16 @@ package org.hl7.fhir.convertors; POSSIBILITY OF SUCH DAMAGE. */ - - -import org.hl7.fhir.convertors.factory.*; +import org.hl7.fhir.convertors.factory.VersionConvertorFactory_10_30; +import org.hl7.fhir.convertors.factory.VersionConvertorFactory_10_40; +import org.hl7.fhir.convertors.factory.VersionConvertorFactory_14_30; +import org.hl7.fhir.convertors.factory.VersionConvertorFactory_14_40; +import org.hl7.fhir.convertors.factory.VersionConvertorFactory_30_40; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.elementmodel.Manager.FhirFormat; import org.hl7.fhir.r4.formats.IParser.OutputStyle; import org.hl7.fhir.r4.model.FhirPublication; -import java.io.IOException; - public class VersionConversionService { /** * use the package manager to load relevant conversion packages, and then initialise internally as required diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/impl/BaseAdvisor_10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/impl/BaseAdvisor_10_30.java index 72187c205..178a9cda3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/impl/BaseAdvisor_10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/impl/BaseAdvisor_10_30.java @@ -1,12 +1,13 @@ package org.hl7.fhir.convertors.advisors.impl; -import org.hl7.fhir.convertors.advisors.interfaces.BaseAdvisor30; - -import javax.annotation.Nonnull; import java.util.ArrayList; import java.util.Collections; import java.util.List; +import javax.annotation.Nonnull; + +import org.hl7.fhir.convertors.advisors.interfaces.BaseAdvisor30; + public class BaseAdvisor_10_30 extends BaseAdvisor30 { private final List ignoredUrls = new ArrayList<>(Collections.singletonList("http://hl7.org/fhir/3.0/StructureDefinition/extension-CapabilityStatement.acceptUnknown")); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/impl/BaseAdvisor_10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/impl/BaseAdvisor_10_40.java index 0d444e7ef..d2121a7a0 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/impl/BaseAdvisor_10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/impl/BaseAdvisor_10_40.java @@ -1,15 +1,16 @@ package org.hl7.fhir.convertors.advisors.impl; -import org.hl7.fhir.convertors.advisors.interfaces.BaseAdvisor40; -import org.hl7.fhir.r4.model.Expression; -import org.hl7.fhir.r4.model.Type; - -import javax.annotation.Nonnull; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; +import javax.annotation.Nonnull; + +import org.hl7.fhir.convertors.advisors.interfaces.BaseAdvisor40; +import org.hl7.fhir.r4.model.Expression; +import org.hl7.fhir.r4.model.Type; + public class BaseAdvisor_10_40 extends BaseAdvisor40 { final List conformanceIgnoredUrls = Collections.singletonList("http://hl7.org/fhir/3.0/StructureDefinition/extension-CapabilityStatement.acceptUnknown"); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/impl/BaseAdvisor_10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/impl/BaseAdvisor_10_50.java index c25478f3d..54be39982 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/impl/BaseAdvisor_10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/impl/BaseAdvisor_10_50.java @@ -1,15 +1,16 @@ package org.hl7.fhir.convertors.advisors.impl; -import org.hl7.fhir.convertors.advisors.interfaces.BaseAdvisor50; -import org.hl7.fhir.r5.model.DataType; -import org.hl7.fhir.r5.model.Expression; - -import javax.annotation.Nonnull; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; +import javax.annotation.Nonnull; + +import org.hl7.fhir.convertors.advisors.interfaces.BaseAdvisor50; +import org.hl7.fhir.r5.model.DataType; +import org.hl7.fhir.r5.model.Expression; + public class BaseAdvisor_10_50 extends BaseAdvisor50 { final List conformanceIgnoredUrls = Collections.singletonList("http://hl7.org/fhir/3.0/StructureDefinition/extension-CapabilityStatement.acceptUnknown"); private final List> ignoredExtensionTypes = new ArrayList<>(Collections.singletonList(Expression.class)); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/impl/BaseAdvisor_14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/impl/BaseAdvisor_14_30.java index 076f3ec28..d4a399054 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/impl/BaseAdvisor_14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/impl/BaseAdvisor_14_30.java @@ -1,12 +1,13 @@ package org.hl7.fhir.convertors.advisors.impl; -import org.hl7.fhir.convertors.advisors.interfaces.BaseAdvisor30; - -import javax.annotation.Nonnull; import java.util.ArrayList; import java.util.Collections; import java.util.List; +import javax.annotation.Nonnull; + +import org.hl7.fhir.convertors.advisors.interfaces.BaseAdvisor30; + public class BaseAdvisor_14_30 extends BaseAdvisor30 { private final List ignoredUrls = new ArrayList<>(Collections.singletonList("http://hl7.org/fhir/3.0/StructureDefinition/extension-CapabilityStatement.acceptUnknown")); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/impl/BaseAdvisor_14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/impl/BaseAdvisor_14_40.java index 1547f20fb..ab99fb8df 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/impl/BaseAdvisor_14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/impl/BaseAdvisor_14_40.java @@ -1,15 +1,16 @@ package org.hl7.fhir.convertors.advisors.impl; -import org.hl7.fhir.convertors.advisors.interfaces.BaseAdvisor40; -import org.hl7.fhir.r4.model.Expression; -import org.hl7.fhir.r4.model.Type; - -import javax.annotation.Nonnull; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; +import javax.annotation.Nonnull; + +import org.hl7.fhir.convertors.advisors.interfaces.BaseAdvisor40; +import org.hl7.fhir.r4.model.Expression; +import org.hl7.fhir.r4.model.Type; + public class BaseAdvisor_14_40 extends BaseAdvisor40 { final List conformanceIgnoredUrls = Collections.singletonList("http://hl7.org/fhir/3.0/StructureDefinition/extension-CapabilityStatement.acceptUnknown"); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/impl/BaseAdvisor_14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/impl/BaseAdvisor_14_50.java index ac1c8f540..f001512ad 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/impl/BaseAdvisor_14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/impl/BaseAdvisor_14_50.java @@ -1,13 +1,14 @@ package org.hl7.fhir.convertors.advisors.impl; -import org.hl7.fhir.convertors.advisors.interfaces.BaseAdvisor50; -import org.hl7.fhir.exceptions.FHIRException; - -import javax.annotation.Nonnull; import java.util.Arrays; import java.util.Collections; import java.util.List; +import javax.annotation.Nonnull; + +import org.hl7.fhir.convertors.advisors.interfaces.BaseAdvisor50; +import org.hl7.fhir.exceptions.FHIRException; + public class BaseAdvisor_14_50 extends BaseAdvisor50 { final List capabilityStatementIgnoredUrls = Collections.singletonList("http://hl7.org/fhir/3.0/StructureDefinition/extension-CapabilityStatement.acceptUnknown"); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/impl/BaseAdvisor_30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/impl/BaseAdvisor_30_40.java index 82e7d7a17..1dadc1d5a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/impl/BaseAdvisor_30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/impl/BaseAdvisor_30_40.java @@ -1,13 +1,14 @@ package org.hl7.fhir.convertors.advisors.impl; -import org.hl7.fhir.convertors.advisors.interfaces.BaseAdvisor40; -import org.hl7.fhir.exceptions.FHIRException; - -import javax.annotation.Nonnull; import java.util.Arrays; import java.util.Collections; import java.util.List; +import javax.annotation.Nonnull; + +import org.hl7.fhir.convertors.advisors.interfaces.BaseAdvisor40; +import org.hl7.fhir.exceptions.FHIRException; + public class BaseAdvisor_30_40 extends BaseAdvisor40 { final List capabilityStatementIgnoredUrls = Collections.singletonList("http://hl7.org/fhir/3.0/StructureDefinition/extension-CapabilityStatement.acceptUnknown"); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/impl/BaseAdvisor_30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/impl/BaseAdvisor_30_50.java index 88f6ee0a9..90c424e1a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/impl/BaseAdvisor_30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/impl/BaseAdvisor_30_50.java @@ -1,13 +1,14 @@ package org.hl7.fhir.convertors.advisors.impl; -import org.hl7.fhir.convertors.advisors.interfaces.BaseAdvisor50; -import org.hl7.fhir.exceptions.FHIRException; - -import javax.annotation.Nonnull; import java.util.Arrays; import java.util.Collections; import java.util.List; +import javax.annotation.Nonnull; + +import org.hl7.fhir.convertors.advisors.interfaces.BaseAdvisor50; +import org.hl7.fhir.exceptions.FHIRException; + public class BaseAdvisor_30_50 extends BaseAdvisor50 { final List valueSetIgnoredUrls = Collections.singletonList("http://hl7.org/fhir/StructureDefinition/valueset-extensible"); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/interfaces/BaseAdvisor30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/interfaces/BaseAdvisor30.java index 3214af867..8e752abf5 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/interfaces/BaseAdvisor30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/interfaces/BaseAdvisor30.java @@ -1,14 +1,19 @@ package org.hl7.fhir.convertors.advisors.interfaces; -import org.hl7.fhir.dstu3.model.*; +import java.util.ArrayList; +import java.util.List; + +import javax.annotation.Nonnull; + +import org.hl7.fhir.dstu3.model.Bundle; +import org.hl7.fhir.dstu3.model.CodeSystem; +import org.hl7.fhir.dstu3.model.Extension; +import org.hl7.fhir.dstu3.model.Type; +import org.hl7.fhir.dstu3.model.ValueSet; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.instance.model.api.IBaseExtension; import org.hl7.fhir.utilities.FhirPublication; -import javax.annotation.Nonnull; -import java.util.ArrayList; -import java.util.List; - public abstract class BaseAdvisor30 extends BaseAdvisor { private final List cslist = new ArrayList<>(); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/interfaces/BaseAdvisor40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/interfaces/BaseAdvisor40.java index c86761462..702d3c590 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/interfaces/BaseAdvisor40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/interfaces/BaseAdvisor40.java @@ -1,12 +1,17 @@ package org.hl7.fhir.convertors.advisors.interfaces; +import java.util.ArrayList; +import java.util.List; + +import javax.annotation.Nonnull; + import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.instance.model.api.IBaseExtension; -import org.hl7.fhir.r4.model.*; - -import javax.annotation.Nonnull; -import java.util.ArrayList; -import java.util.List; +import org.hl7.fhir.r4.model.Bundle; +import org.hl7.fhir.r4.model.CodeSystem; +import org.hl7.fhir.r4.model.Extension; +import org.hl7.fhir.r4.model.Type; +import org.hl7.fhir.r4.model.ValueSet; public abstract class BaseAdvisor40 extends BaseAdvisor { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/interfaces/BaseAdvisor43.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/interfaces/BaseAdvisor43.java index 30f0f1836..45ca19c2e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/interfaces/BaseAdvisor43.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/interfaces/BaseAdvisor43.java @@ -1,12 +1,17 @@ package org.hl7.fhir.convertors.advisors.interfaces; +import java.util.ArrayList; +import java.util.List; + +import javax.annotation.Nonnull; + import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.instance.model.api.IBaseExtension; -import org.hl7.fhir.r4b.model.*; - -import javax.annotation.Nonnull; -import java.util.ArrayList; -import java.util.List; +import org.hl7.fhir.r4b.model.Bundle; +import org.hl7.fhir.r4b.model.CodeSystem; +import org.hl7.fhir.r4b.model.DataType; +import org.hl7.fhir.r4b.model.Extension; +import org.hl7.fhir.r4b.model.ValueSet; public abstract class BaseAdvisor43 extends BaseAdvisor { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/interfaces/BaseAdvisor50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/interfaces/BaseAdvisor50.java index f6073677b..4c6686fa5 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/interfaces/BaseAdvisor50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/advisors/interfaces/BaseAdvisor50.java @@ -1,14 +1,19 @@ package org.hl7.fhir.convertors.advisors.interfaces; +import java.util.ArrayList; +import java.util.List; + +import javax.annotation.Nonnull; + import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.instance.model.api.IBaseExtension; -import org.hl7.fhir.r5.model.*; +import org.hl7.fhir.r5.model.Bundle; +import org.hl7.fhir.r5.model.CodeSystem; +import org.hl7.fhir.r5.model.DataType; +import org.hl7.fhir.r5.model.Extension; +import org.hl7.fhir.r5.model.ValueSet; import org.hl7.fhir.utilities.FhirPublication; -import javax.annotation.Nonnull; -import java.util.ArrayList; -import java.util.List; - public abstract class BaseAdvisor50 extends BaseAdvisor { private final List cslist = new ArrayList<>(); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/analytics/PackageVisitor.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/analytics/PackageVisitor.java index 38ce67160..8cb1407e2 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/analytics/PackageVisitor.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/analytics/PackageVisitor.java @@ -10,10 +10,10 @@ import javax.xml.parsers.ParserConfigurationException; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.utilities.SimpleHTTPClient; -import org.hl7.fhir.utilities.TextFile; import org.hl7.fhir.utilities.SimpleHTTPClient.HTTPResult; -import org.hl7.fhir.utilities.json.JsonUtilities; +import org.hl7.fhir.utilities.TextFile; import org.hl7.fhir.utilities.json.JsonTrackingParser; +import org.hl7.fhir.utilities.json.JsonUtilities; import org.hl7.fhir.utilities.npm.FilesystemPackageCacheManager; import org.hl7.fhir.utilities.npm.NpmPackage; import org.hl7.fhir.utilities.npm.PackageClient; @@ -24,7 +24,6 @@ import org.w3c.dom.Document; import org.w3c.dom.Element; import org.xml.sax.SAXException; -import com.google.gson.JsonArray; import com.google.gson.JsonObject; public class PackageVisitor { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/analytics/SearchParameterAnalysis.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/analytics/SearchParameterAnalysis.java index 53d44ac93..c01fa50ba 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/analytics/SearchParameterAnalysis.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/analytics/SearchParameterAnalysis.java @@ -12,10 +12,8 @@ import java.util.Set; import javax.xml.parsers.ParserConfigurationException; import org.hl7.fhir.convertors.analytics.PackageVisitor.IPackageVisitorProcessor; -import org.hl7.fhir.dstu2.model.SearchParameter; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.exceptions.FHIRFormatError; -import org.hl7.fhir.r5.model.Bundle.BundleEntryComponent; import org.hl7.fhir.utilities.Utilities; import org.hl7.fhir.utilities.VersionUtilities; import org.xml.sax.SAXException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/context/VersionConvertorContext.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/context/VersionConvertorContext.java index cebce2653..642511e7b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/context/VersionConvertorContext.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/context/VersionConvertorContext.java @@ -1,12 +1,12 @@ package org.hl7.fhir.convertors.context; +import java.util.ArrayList; +import java.util.Stack; + import org.hl7.fhir.exceptions.FHIRException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import java.util.ArrayList; -import java.util.Stack; - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/VersionConvertor_10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/VersionConvertor_10_30.java index 2ccac7ce0..44ad9714a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/VersionConvertor_10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/VersionConvertor_10_30.java @@ -1,17 +1,16 @@ package org.hl7.fhir.convertors.conv10_30; +import javax.annotation.Nonnull; + import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_10_30; import org.hl7.fhir.convertors.context.ConversionContext10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.BackboneElement10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.Element10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.Type10_30; import org.hl7.fhir.convertors.conv10_30.resources10_30.Resource10_30; -import org.hl7.fhir.convertors.conv10_40.datatypes10_40.BackboneElement10_40; import org.hl7.fhir.dstu2.model.CodeableConcept; import org.hl7.fhir.exceptions.FHIRException; -import javax.annotation.Nonnull; - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/BackboneElement10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/BackboneElement10_30.java index 82346156a..80298ad18 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/BackboneElement10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/BackboneElement10_30.java @@ -1,8 +1,6 @@ package org.hl7.fhir.convertors.conv10_30.datatypes10_30; import org.hl7.fhir.convertors.context.ConversionContext10_30; -import org.hl7.fhir.convertors.context.ConversionContext10_40; -import org.hl7.fhir.convertors.conv10_40.datatypes10_40.Extension10_40; import org.hl7.fhir.exceptions.FHIRException; public class BackboneElement10_30 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/Element10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/Element10_30.java index 1a3aee2ec..2d11cdde9 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/Element10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/Element10_30.java @@ -1,10 +1,10 @@ package org.hl7.fhir.convertors.conv10_30.datatypes10_30; +import java.util.Arrays; + import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_10_30; import org.hl7.fhir.exceptions.FHIRException; -import java.util.Arrays; - public class Element10_30 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/ElementDefinition10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/ElementDefinition10_30.java index 87c6e9524..12df637b7 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/ElementDefinition10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/ElementDefinition10_30.java @@ -1,16 +1,21 @@ package org.hl7.fhir.convertors.conv10_30.datatypes10_30; +import java.util.List; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Coding10_30; -import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.*; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Boolean10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Code10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Id10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Integer10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.MarkDown10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.String10_30; import org.hl7.fhir.dstu2.utils.ToolingExtensions; import org.hl7.fhir.dstu3.conformance.ProfileUtilities; import org.hl7.fhir.dstu3.model.ElementDefinition; import org.hl7.fhir.exceptions.FHIRException; -import java.util.List; -import java.util.stream.Collectors; - public class ElementDefinition10_30 { public static org.hl7.fhir.dstu3.model.ElementDefinition convertElementDefinition(org.hl7.fhir.dstu2.model.ElementDefinition src, List slicePaths) throws FHIRException { if (src == null || src.isEmpty()) return null; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/Type10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/Type10_30.java index 204be9f44..9b6b69a54 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/Type10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/Type10_30.java @@ -1,12 +1,48 @@ package org.hl7.fhir.convertors.conv10_30.datatypes10_30; -import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_10_30; -import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.*; -import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.*; -import org.hl7.fhir.exceptions.FHIRException; - import java.util.ArrayList; +import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Address10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Age10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Annotation10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Attachment10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.CodeableConcept10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Coding10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.ContactPoint10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Count10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Distance10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Duration10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.HumanName10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Identifier10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Money10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Period10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Quantity10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Range10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Ratio10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.SampledData10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Signature10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.SimpleQuantity10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Timing10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Base64Binary10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Boolean10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Code10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Date10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.DateTime10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Decimal10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Id10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Instant10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Integer10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.MarkDown10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Oid10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.PositiveInt10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.String10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Time10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.UnsignedInt10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Uri10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Uuid10_30; +import org.hl7.fhir.exceptions.FHIRException; + public class Type10_30 { private final BaseAdvisor_10_30 advisor; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/complextypes10_30/Attachment10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/complextypes10_30/Attachment10_30.java index aec7a4ee4..5811c4f20 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/complextypes10_30/Attachment10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/complextypes10_30/Attachment10_30.java @@ -1,7 +1,12 @@ package org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30; import org.hl7.fhir.convertors.context.ConversionContext10_30; -import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.*; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Base64Binary10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Code10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.DateTime10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.String10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.UnsignedInt10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Uri10_30; import org.hl7.fhir.exceptions.FHIRException; public class Attachment10_30 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/complextypes10_30/Timing10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/complextypes10_30/Timing10_30.java index f3941902b..ca047237c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/complextypes10_30/Timing10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/complextypes10_30/Timing10_30.java @@ -1,12 +1,12 @@ package org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30; +import java.util.Collections; + import org.hl7.fhir.convertors.context.ConversionContext10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Decimal10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Integer10_30; import org.hl7.fhir.exceptions.FHIRException; -import java.util.Collections; - public class Timing10_30 { public static org.hl7.fhir.dstu3.model.Timing convertTiming(org.hl7.fhir.dstu2.model.Timing src) throws FHIRException { if (src == null || src.isEmpty()) return null; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/AllergyIntolerance10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/AllergyIntolerance10_30.java index df64fa93a..de9be44c7 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/AllergyIntolerance10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/AllergyIntolerance10_30.java @@ -1,7 +1,6 @@ package org.hl7.fhir.convertors.conv10_30.resources10_30; import org.hl7.fhir.convertors.context.ConversionContext10_30; -import org.hl7.fhir.convertors.conv10_30.datatypes10_30.Extension10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.Reference10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Annotation10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.CodeableConcept10_30; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Bundle10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Bundle10_30.java index bc42bf0ed..56dafebf6 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Bundle10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Bundle10_30.java @@ -3,7 +3,11 @@ package org.hl7.fhir.convertors.conv10_30.resources10_30; import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_10_30; import org.hl7.fhir.convertors.context.ConversionContext10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Signature10_30; -import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.*; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Decimal10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Instant10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.String10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.UnsignedInt10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Uri10_30; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.utilities.FhirPublication; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/CarePlan10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/CarePlan10_30.java index 51a34c79c..68e2ed269 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/CarePlan10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/CarePlan10_30.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv10_30.resources10_30; import org.hl7.fhir.convertors.context.ConversionContext10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.Reference10_30; -import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.*; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Annotation10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.CodeableConcept10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Identifier10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Period10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.SimpleQuantity10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Boolean10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.String10_30; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Composition10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Composition10_30.java index ba64bfafe..53a998aa3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Composition10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Composition10_30.java @@ -1,5 +1,7 @@ package org.hl7.fhir.convertors.conv10_30.resources10_30; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.Narrative10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.Reference10_30; @@ -10,8 +12,6 @@ import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Date import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.String10_30; import org.hl7.fhir.exceptions.FHIRException; -import java.util.stream.Collectors; - public class Composition10_30 { public static org.hl7.fhir.dstu3.model.Composition convertComposition(org.hl7.fhir.dstu2.model.Composition src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ConceptMap10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ConceptMap10_30.java index bd6752b1d..79f99dd3f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ConceptMap10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ConceptMap10_30.java @@ -1,19 +1,23 @@ package org.hl7.fhir.convertors.conv10_30.resources10_30; +import java.util.ArrayList; +import java.util.List; + import org.hl7.fhir.convertors.SourceElementComponentWrapper; import org.hl7.fhir.convertors.context.ConversionContext10_30; import org.hl7.fhir.convertors.conv10_30.VersionConvertor_10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.CodeableConcept10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.ContactPoint10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Identifier10_30; -import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.*; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Boolean10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Code10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.DateTime10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.String10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Uri10_30; import org.hl7.fhir.dstu3.model.ConceptMap; import org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapGroupComponent; import org.hl7.fhir.exceptions.FHIRException; -import java.util.ArrayList; -import java.util.List; - public class ConceptMap10_30 { public static org.hl7.fhir.dstu2.model.ConceptMap convertConceptMap(org.hl7.fhir.dstu3.model.ConceptMap src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Conformance10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Conformance10_30.java index 0d6e8c3ee..e7c1301c7 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Conformance10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Conformance10_30.java @@ -5,7 +5,14 @@ import org.hl7.fhir.convertors.conv10_30.datatypes10_30.Reference10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.CodeableConcept10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Coding10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.ContactPoint10_30; -import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.*; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Base64Binary10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Boolean10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Code10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.DateTime10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Id10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.String10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.UnsignedInt10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Uri10_30; import org.hl7.fhir.dstu3.model.CapabilityStatement.SystemRestfulInteraction; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Contract10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Contract10_30.java index c9af6b489..c4b07c6b9 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Contract10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Contract10_30.java @@ -3,7 +3,12 @@ package org.hl7.fhir.convertors.conv10_30.resources10_30; import org.apache.commons.codec.binary.Base64; import org.hl7.fhir.convertors.context.ConversionContext10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.Reference10_30; -import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.*; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.CodeableConcept10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Coding10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Identifier10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Money10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Period10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.SimpleQuantity10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.DateTime10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Decimal10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.String10_30; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DataElement10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DataElement10_30.java index 91c1afcd2..479b3dec5 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DataElement10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DataElement10_30.java @@ -1,17 +1,21 @@ package org.hl7.fhir.convertors.conv10_30.resources10_30; +import java.util.ArrayList; +import java.util.List; + import org.hl7.fhir.convertors.context.ConversionContext10_30; import org.hl7.fhir.convertors.conv10_30.VersionConvertor_10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.ElementDefinition10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.CodeableConcept10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.ContactPoint10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Identifier10_30; -import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.*; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Boolean10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.DateTime10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Id10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.String10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Uri10_30; import org.hl7.fhir.exceptions.FHIRException; -import java.util.ArrayList; -import java.util.List; - public class DataElement10_30 { public static org.hl7.fhir.dstu2.model.DataElement convertDataElement(org.hl7.fhir.dstu3.model.DataElement src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DocumentReference10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DocumentReference10_30.java index acbf99939..39f3e0303 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DocumentReference10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/DocumentReference10_30.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv10_30.resources10_30; import org.hl7.fhir.convertors.context.ConversionContext10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.Reference10_30; -import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.*; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Attachment10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.CodeableConcept10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Coding10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Identifier10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Period10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.DateTime10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Instant10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.String10_30; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/HealthcareService10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/HealthcareService10_30.java index d3a43075a..06e0315e7 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/HealthcareService10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/HealthcareService10_30.java @@ -1,15 +1,19 @@ package org.hl7.fhir.convertors.conv10_30.resources10_30; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.Reference10_30; -import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.*; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Attachment10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.CodeableConcept10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.ContactPoint10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Identifier10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Period10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Boolean10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.String10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Time10_30; import org.hl7.fhir.exceptions.FHIRException; -import java.util.stream.Collectors; - public class HealthcareService10_30 { static public org.hl7.fhir.dstu2.model.Enumeration convertDaysOfWeek(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Immunization10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Immunization10_30.java index 94046093e..33325837d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Immunization10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Immunization10_30.java @@ -1,18 +1,22 @@ package org.hl7.fhir.convertors.conv10_30.resources10_30; +import java.util.List; + import org.hl7.fhir.convertors.context.ConversionContext10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.Reference10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Annotation10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.CodeableConcept10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Identifier10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.SimpleQuantity10_30; -import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.*; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Boolean10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Date10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.DateTime10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.PositiveInt10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.String10_30; import org.hl7.fhir.dstu3.model.Coding; import org.hl7.fhir.dstu3.model.Immunization.ImmunizationPractitionerComponent; import org.hl7.fhir.exceptions.FHIRException; -import java.util.List; - public class Immunization10_30 { public static org.hl7.fhir.dstu2.model.Immunization convertImmunization(org.hl7.fhir.dstu3.model.Immunization src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ImplementationGuide10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ImplementationGuide10_30.java index 85a245fb1..9f2e2f0d3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ImplementationGuide10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ImplementationGuide10_30.java @@ -5,7 +5,12 @@ import org.hl7.fhir.convertors.conv10_30.VersionConvertor_10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.Reference10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.CodeableConcept10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.ContactPoint10_30; -import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.*; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Boolean10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Code10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.DateTime10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Id10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.String10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Uri10_30; import org.hl7.fhir.exceptions.FHIRException; public class ImplementationGuide10_30 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/MedicationDispense10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/MedicationDispense10_30.java index 466b5edfc..3bc4c2159 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/MedicationDispense10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/MedicationDispense10_30.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv10_30.resources10_30; import org.hl7.fhir.convertors.context.ConversionContext10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.Reference10_30; -import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.*; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.CodeableConcept10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Identifier10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Ratio10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.SimpleQuantity10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Timing10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.DateTime10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.String10_30; import org.hl7.fhir.dstu3.model.Dosage; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/MedicationRequest10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/MedicationRequest10_30.java index de3e25bb0..783573907 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/MedicationRequest10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/MedicationRequest10_30.java @@ -2,7 +2,13 @@ package org.hl7.fhir.convertors.conv10_30.resources10_30; import org.hl7.fhir.convertors.context.ConversionContext10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.Reference10_30; -import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.*; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.CodeableConcept10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Duration10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Identifier10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Period10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Ratio10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.SimpleQuantity10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Timing10_30; import org.hl7.fhir.dstu2.model.MedicationOrder; import org.hl7.fhir.dstu3.model.MedicationRequest; import org.hl7.fhir.dstu3.model.StringType; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/OperationDefinition10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/OperationDefinition10_30.java index b83dc08e7..295836598 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/OperationDefinition10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/OperationDefinition10_30.java @@ -4,7 +4,12 @@ import org.hl7.fhir.convertors.context.ConversionContext10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.ElementDefinition10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.Reference10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.ContactPoint10_30; -import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.*; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Boolean10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Code10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.DateTime10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Integer10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.String10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Uri10_30; import org.hl7.fhir.dstu3.model.Enumerations.SearchParamType; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.utilities.Utilities; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Organization10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Organization10_30.java index 3961e5a6e..35bbff336 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Organization10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Organization10_30.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv10_30.resources10_30; import org.hl7.fhir.convertors.context.ConversionContext10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.Reference10_30; -import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.*; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Address10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.CodeableConcept10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.ContactPoint10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.HumanName10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Identifier10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Boolean10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.String10_30; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Patient10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Patient10_30.java index bf43e0346..832e8cd76 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Patient10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Patient10_30.java @@ -2,7 +2,13 @@ package org.hl7.fhir.convertors.conv10_30.resources10_30; import org.hl7.fhir.convertors.context.ConversionContext10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.Reference10_30; -import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.*; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Address10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Attachment10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.CodeableConcept10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.ContactPoint10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.HumanName10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Identifier10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Period10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Boolean10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Date10_30; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Person10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Person10_30.java index 0e16d9eb6..c2f7e22a9 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Person10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Person10_30.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv10_30.resources10_30; import org.hl7.fhir.convertors.context.ConversionContext10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.Reference10_30; -import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.*; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Address10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Attachment10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.ContactPoint10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.HumanName10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Identifier10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Boolean10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Date10_30; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Practitioner10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Practitioner10_30.java index ecc0df040..16e7cbdc6 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Practitioner10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Practitioner10_30.java @@ -2,7 +2,13 @@ package org.hl7.fhir.convertors.conv10_30.resources10_30; import org.hl7.fhir.convertors.context.ConversionContext10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.Reference10_30; -import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.*; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Address10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Attachment10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.CodeableConcept10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.ContactPoint10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.HumanName10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Identifier10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Period10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Boolean10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Date10_30; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/RelatedPerson10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/RelatedPerson10_30.java index 9fa4a5ad6..5103512a2 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/RelatedPerson10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/RelatedPerson10_30.java @@ -2,7 +2,13 @@ package org.hl7.fhir.convertors.conv10_30.resources10_30; import org.hl7.fhir.convertors.context.ConversionContext10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.Reference10_30; -import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.*; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Address10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Attachment10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.CodeableConcept10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.ContactPoint10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.HumanName10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Identifier10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Period10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Date10_30; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/SearchParameter10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/SearchParameter10_30.java index 0fa643d43..f43a2df19 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/SearchParameter10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/SearchParameter10_30.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv10_30.resources10_30; import org.hl7.fhir.convertors.context.ConversionContext10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.ContactPoint10_30; -import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.*; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Boolean10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Code10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.DateTime10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.String10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Uri10_30; import org.hl7.fhir.dstu2.utils.ToolingExtensions; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/StructureDefinition10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/StructureDefinition10_30.java index b9cb8ec1c..9c528d015 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/StructureDefinition10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/StructureDefinition10_30.java @@ -1,5 +1,8 @@ package org.hl7.fhir.convertors.conv10_30.resources10_30; +import java.util.ArrayList; +import java.util.List; + import org.hl7.fhir.convertors.context.ConversionContext10_30; import org.hl7.fhir.convertors.conv10_30.VersionConvertor_10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.ElementDefinition10_30; @@ -7,15 +10,17 @@ import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Codeab import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Coding10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.ContactPoint10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Identifier10_30; -import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.*; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Boolean10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Code10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.DateTime10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Id10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.String10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Uri10_30; import org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionKind; import org.hl7.fhir.dstu3.model.StructureDefinition.TypeDerivationRule; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.utilities.Utilities; -import java.util.ArrayList; -import java.util.List; - public class StructureDefinition10_30 { static public org.hl7.fhir.dstu3.model.Enumeration convertExtensionContext(org.hl7.fhir.dstu2.model.Enumeration src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/TestScript10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/TestScript10_30.java index 1f2c45c9e..6fd5c5c7a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/TestScript10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/TestScript10_30.java @@ -7,7 +7,13 @@ import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Codeab import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Coding10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.ContactPoint10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Identifier10_30; -import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.*; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Boolean10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Code10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.DateTime10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Id10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Integer10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.String10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Uri10_30; import org.hl7.fhir.exceptions.FHIRException; public class TestScript10_30 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ValueSet10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ValueSet10_30.java index cd4bced59..937e14c91 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ValueSet10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ValueSet10_30.java @@ -1,5 +1,7 @@ package org.hl7.fhir.convertors.conv10_30.resources10_30; +import java.util.List; + import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_10_30; import org.hl7.fhir.convertors.context.ConversionContext10_30; import org.hl7.fhir.convertors.conv10_30.VersionConvertor_10_30; @@ -7,7 +9,12 @@ import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Codeab import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Coding10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.ContactPoint10_30; import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Identifier10_30; -import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.*; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Boolean10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Code10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.DateTime10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Integer10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.String10_30; +import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Uri10_30; import org.hl7.fhir.dstu2.model.ValueSet; import org.hl7.fhir.dstu3.model.CodeSystem; import org.hl7.fhir.dstu3.model.CodeSystem.CodeSystemContentMode; @@ -15,8 +22,6 @@ import org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionComponent; import org.hl7.fhir.dstu3.terminologies.CodeSystemUtilities; import org.hl7.fhir.exceptions.FHIRException; -import java.util.List; - public class ValueSet10_30 { public static org.hl7.fhir.dstu2.model.ValueSet.ConceptReferenceComponent convertConceptReferenceComponent(org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/VersionConvertor_10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/VersionConvertor_10_40.java index c126cb137..b0d396cd7 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/VersionConvertor_10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/VersionConvertor_10_40.java @@ -1,5 +1,10 @@ package org.hl7.fhir.convertors.conv10_40; +import java.util.ArrayList; +import java.util.List; + +import javax.annotation.Nonnull; + import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_10_40; import org.hl7.fhir.convertors.context.ConversionContext10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.BackboneElement10_40; @@ -9,10 +14,6 @@ import org.hl7.fhir.convertors.conv10_40.resources10_40.Resource10_40; import org.hl7.fhir.dstu2.model.CodeableConcept; import org.hl7.fhir.exceptions.FHIRException; -import javax.annotation.Nonnull; -import java.util.ArrayList; -import java.util.List; - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/datatypes10_40/Element10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/datatypes10_40/Element10_40.java index 5e958c105..6263e05e8 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/datatypes10_40/Element10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/datatypes10_40/Element10_40.java @@ -1,10 +1,10 @@ package org.hl7.fhir.convertors.conv10_40.datatypes10_40; +import java.util.Arrays; + import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_10_40; import org.hl7.fhir.exceptions.FHIRException; -import java.util.Arrays; - public class Element10_40 { public final BaseAdvisor_10_40 advisor; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/datatypes10_40/ElementDefinition10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/datatypes10_40/ElementDefinition10_40.java index 30d596dd9..a7c8be702 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/datatypes10_40/ElementDefinition10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/datatypes10_40/ElementDefinition10_40.java @@ -1,18 +1,23 @@ package org.hl7.fhir.convertors.conv10_40.datatypes10_40; +import java.util.List; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.VersionConvertorConstants; import org.hl7.fhir.convertors.context.ConversionContext10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Coding10_40; -import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.*; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Boolean10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Code10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Id10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Integer10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.MarkDown10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.String10_40; import org.hl7.fhir.dstu2.utils.ToolingExtensions; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.conformance.ProfileUtilities; import org.hl7.fhir.r4.model.ElementDefinition; import org.hl7.fhir.utilities.Utilities; -import java.util.List; -import java.util.stream.Collectors; - public class ElementDefinition10_40 { public static org.hl7.fhir.r4.model.ElementDefinition convertElementDefinition(org.hl7.fhir.dstu2.model.ElementDefinition src, List slicePaths, List context, int pos) throws FHIRException { if (src == null || src.isEmpty()) return null; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/datatypes10_40/Reference10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/datatypes10_40/Reference10_40.java index d6583a29f..26fad559a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/datatypes10_40/Reference10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/datatypes10_40/Reference10_40.java @@ -1,13 +1,13 @@ package org.hl7.fhir.convertors.conv10_40.datatypes10_40; +import java.util.List; + import org.hl7.fhir.convertors.context.ConversionContext10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.CodeableConcept10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.String10_40; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.Immunization; -import java.util.List; - public class Reference10_40 { public static org.hl7.fhir.r4.model.Reference convertReference(org.hl7.fhir.dstu2.model.Reference src) throws FHIRException { if (src == null || src.isEmpty()) return null; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/datatypes10_40/Type10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/datatypes10_40/Type10_40.java index 3cb2df76a..c6d1c739c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/datatypes10_40/Type10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/datatypes10_40/Type10_40.java @@ -1,8 +1,44 @@ package org.hl7.fhir.convertors.conv10_40.datatypes10_40; import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_10_40; -import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.*; -import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.*; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Address10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Age10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Annotation10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Attachment10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.CodeableConcept10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Coding10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.ContactPoint10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Count10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Distance10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Duration10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.HumanName10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Identifier10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Money10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Period10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Quantity10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Range10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Ratio10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.SampledData10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Signature10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.SimpleQuantity10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Timing10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Base64Binary10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Boolean10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Code10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Date10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.DateTime10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Decimal10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Id10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Instant10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Integer10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.MarkDown10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Oid10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.PositiveInt10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.String10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Time10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.UnsignedInt10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Uri10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Uuid10_40; import org.hl7.fhir.exceptions.FHIRException; public class Type10_40 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/datatypes10_40/complextypes10_40/Attachment10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/datatypes10_40/complextypes10_40/Attachment10_40.java index c49994dd4..b7cac158d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/datatypes10_40/complextypes10_40/Attachment10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/datatypes10_40/complextypes10_40/Attachment10_40.java @@ -1,7 +1,11 @@ package org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40; import org.hl7.fhir.convertors.context.ConversionContext10_40; -import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.*; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Base64Binary10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Code10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.DateTime10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.String10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.UnsignedInt10_40; import org.hl7.fhir.exceptions.FHIRException; public class Attachment10_40 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/datatypes10_40/complextypes10_40/Timing10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/datatypes10_40/complextypes10_40/Timing10_40.java index 67b56e502..e27e5346c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/datatypes10_40/complextypes10_40/Timing10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/datatypes10_40/complextypes10_40/Timing10_40.java @@ -1,11 +1,11 @@ package org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40; +import java.util.Collections; + import org.hl7.fhir.convertors.context.ConversionContext10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Decimal10_40; import org.hl7.fhir.exceptions.FHIRException; -import java.util.Collections; - public class Timing10_40 { public static org.hl7.fhir.r4.model.Timing convertTiming(org.hl7.fhir.dstu2.model.Timing src) throws FHIRException { if (src == null || src.isEmpty()) return null; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/AllergyIntolerance10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/AllergyIntolerance10_40.java index 48ca8e9b0..baa502e3d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/AllergyIntolerance10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/AllergyIntolerance10_40.java @@ -1,7 +1,6 @@ package org.hl7.fhir.convertors.conv10_40.resources10_40; import org.hl7.fhir.convertors.context.ConversionContext10_40; -import org.hl7.fhir.convertors.conv10_40.datatypes10_40.Extension10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.Reference10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Annotation10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.CodeableConcept10_40; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Bundle10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Bundle10_40.java index 71868a21d..2db22f354 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Bundle10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Bundle10_40.java @@ -3,7 +3,11 @@ package org.hl7.fhir.convertors.conv10_40.resources10_40; import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_10_40; import org.hl7.fhir.convertors.context.ConversionContext10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Signature10_40; -import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.*; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Decimal10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Instant10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.String10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.UnsignedInt10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Uri10_40; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.utilities.FhirPublication; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/CarePlan10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/CarePlan10_40.java index f3e7823b6..fff63356a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/CarePlan10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/CarePlan10_40.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv10_40.resources10_40; import org.hl7.fhir.convertors.context.ConversionContext10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.Reference10_40; -import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.*; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Annotation10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.CodeableConcept10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Identifier10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Period10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.SimpleQuantity10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Boolean10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.String10_40; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Composition10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Composition10_40.java index cdd7d4783..ddf889063 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Composition10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Composition10_40.java @@ -1,5 +1,7 @@ package org.hl7.fhir.convertors.conv10_40.resources10_40; +import java.util.Collections; + import org.hl7.fhir.convertors.context.ConversionContext10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.Narrative10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.Reference10_40; @@ -10,8 +12,6 @@ import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Date import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.String10_40; import org.hl7.fhir.exceptions.FHIRException; -import java.util.Collections; - public class Composition10_40 { public static org.hl7.fhir.dstu2.model.Composition convertComposition(org.hl7.fhir.r4.model.Composition src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/ConceptMap10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/ConceptMap10_40.java index 8cb735acc..c676399a1 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/ConceptMap10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/ConceptMap10_40.java @@ -1,20 +1,24 @@ package org.hl7.fhir.convertors.conv10_40.resources10_40; +import java.util.ArrayList; +import java.util.List; + import org.hl7.fhir.convertors.SourceElementComponentWrapper; import org.hl7.fhir.convertors.context.ConversionContext10_40; import org.hl7.fhir.convertors.conv10_40.VersionConvertor_10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.CodeableConcept10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.ContactPoint10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Identifier10_40; -import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.*; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Boolean10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Code10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.DateTime10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.String10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Uri10_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.ConceptMap.ConceptMapGroupComponent; -import java.util.ArrayList; -import java.util.List; - public class ConceptMap10_40 { public static org.hl7.fhir.r4.model.ConceptMap convertConceptMap(org.hl7.fhir.dstu2.model.ConceptMap src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Conformance10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Conformance10_40.java index f4545ed9f..424e9fa31 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Conformance10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Conformance10_40.java @@ -7,7 +7,13 @@ import org.hl7.fhir.convertors.conv10_40.datatypes10_40.Reference10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.CodeableConcept10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Coding10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.ContactPoint10_40; -import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.*; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Boolean10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Canonical10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Code10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.DateTime10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.String10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.UnsignedInt10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Uri10_40; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestComponent; import org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceComponent; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/DataElement10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/DataElement10_40.java index 40b8db38c..8d1641932 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/DataElement10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/DataElement10_40.java @@ -1,19 +1,23 @@ package org.hl7.fhir.convertors.conv10_40.resources10_40; +import java.util.ArrayList; +import java.util.List; + import org.hl7.fhir.convertors.context.ConversionContext10_40; import org.hl7.fhir.convertors.conv10_40.VersionConvertor_10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.ElementDefinition10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.CodeableConcept10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.ContactPoint10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Identifier10_40; -import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.*; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Boolean10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.DateTime10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Id10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.String10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Uri10_40; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionKind; import org.hl7.fhir.r4.model.StructureDefinition.TypeDerivationRule; -import java.util.ArrayList; -import java.util.List; - public class DataElement10_40 { public static org.hl7.fhir.r4.model.StructureDefinition convertDataElement(org.hl7.fhir.dstu2.model.DataElement src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/DocumentReference10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/DocumentReference10_40.java index 4d43903e9..c95d2637f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/DocumentReference10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/DocumentReference10_40.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv10_40.resources10_40; import org.hl7.fhir.convertors.context.ConversionContext10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.Reference10_40; -import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.*; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Attachment10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.CodeableConcept10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Coding10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Identifier10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Period10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.String10_40; import org.hl7.fhir.dstu2.model.CodeableConcept; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/HealthcareService10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/HealthcareService10_40.java index b66ae8400..13eb481b6 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/HealthcareService10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/HealthcareService10_40.java @@ -1,15 +1,19 @@ package org.hl7.fhir.convertors.conv10_40.resources10_40; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.Reference10_40; -import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.*; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Attachment10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.CodeableConcept10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.ContactPoint10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Identifier10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Period10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Boolean10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.String10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Time10_40; import org.hl7.fhir.exceptions.FHIRException; -import java.util.stream.Collectors; - public class HealthcareService10_40 { static public org.hl7.fhir.r4.model.Enumeration convertDaysOfWeek(org.hl7.fhir.dstu2.model.Enumeration src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/ImplementationGuide10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/ImplementationGuide10_40.java index c25d29d49..e86f7d785 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/ImplementationGuide10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/ImplementationGuide10_40.java @@ -1,19 +1,24 @@ package org.hl7.fhir.convertors.conv10_40.resources10_40; +import java.util.List; + import org.hl7.fhir.convertors.context.ConversionContext10_40; import org.hl7.fhir.convertors.conv10_40.VersionConvertor_10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.Reference10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.CodeableConcept10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.ContactPoint10_40; -import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.*; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Boolean10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Canonical10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Code10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.DateTime10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.String10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Uri10_40; import org.hl7.fhir.dstu2.model.ImplementationGuide; import org.hl7.fhir.dstu2.model.ImplementationGuide.GuidePageKind; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.Enumeration; import org.hl7.fhir.r4.model.ImplementationGuide.GuidePageGeneration; -import java.util.List; - public class ImplementationGuide10_40 { public static org.hl7.fhir.r4.model.ImplementationGuide convertImplementationGuide(org.hl7.fhir.dstu2.model.ImplementationGuide src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/MedicationDispense10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/MedicationDispense10_40.java index 3e4cd7d22..94aaff812 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/MedicationDispense10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/MedicationDispense10_40.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv10_40.resources10_40; import org.hl7.fhir.convertors.context.ConversionContext10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.Reference10_40; -import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.*; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.CodeableConcept10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Identifier10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Ratio10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.SimpleQuantity10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Timing10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.DateTime10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.String10_40; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/MedicationRequest10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/MedicationRequest10_40.java index cccf9e813..d3b3d34e7 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/MedicationRequest10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/MedicationRequest10_40.java @@ -2,7 +2,13 @@ package org.hl7.fhir.convertors.conv10_40.resources10_40; import org.hl7.fhir.convertors.context.ConversionContext10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.Reference10_40; -import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.*; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.CodeableConcept10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Duration10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Identifier10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Period10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Ratio10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.SimpleQuantity10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Timing10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.DateTime10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.String10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.UnsignedInt10_40; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/OperationDefinition10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/OperationDefinition10_40.java index a97d52509..46e9b00c2 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/OperationDefinition10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/OperationDefinition10_40.java @@ -4,7 +4,13 @@ import org.hl7.fhir.convertors.VersionConvertorConstants; import org.hl7.fhir.convertors.context.ConversionContext10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.ElementDefinition10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.ContactPoint10_40; -import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.*; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Boolean10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Canonical10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Code10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.DateTime10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Integer10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.String10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Uri10_40; import org.hl7.fhir.dstu2.model.Reference; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.Enumerations.SearchParamType; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Organization10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Organization10_40.java index bd00b6110..9af0477f3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Organization10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Organization10_40.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv10_40.resources10_40; import org.hl7.fhir.convertors.context.ConversionContext10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.Reference10_40; -import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.*; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Address10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.CodeableConcept10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.ContactPoint10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.HumanName10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Identifier10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Boolean10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.String10_40; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Patient10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Patient10_40.java index 21fb93738..11ca83115 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Patient10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Patient10_40.java @@ -2,7 +2,13 @@ package org.hl7.fhir.convertors.conv10_40.resources10_40; import org.hl7.fhir.convertors.context.ConversionContext10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.Reference10_40; -import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.*; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Address10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Attachment10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.CodeableConcept10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.ContactPoint10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.HumanName10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Identifier10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Period10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Boolean10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Date10_40; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Person10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Person10_40.java index 9ebecd39c..9dbececd2 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Person10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Person10_40.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv10_40.resources10_40; import org.hl7.fhir.convertors.context.ConversionContext10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.Reference10_40; -import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.*; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Address10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Attachment10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.ContactPoint10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.HumanName10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Identifier10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Boolean10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Date10_40; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Practitioner10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Practitioner10_40.java index 219f700a7..64ee53037 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Practitioner10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/Practitioner10_40.java @@ -2,7 +2,13 @@ package org.hl7.fhir.convertors.conv10_40.resources10_40; import org.hl7.fhir.convertors.context.ConversionContext10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.Reference10_40; -import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.*; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Address10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Attachment10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.CodeableConcept10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.ContactPoint10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.HumanName10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Identifier10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Period10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Boolean10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Date10_40; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/SearchParameter10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/SearchParameter10_40.java index 64cba70c8..21c76e2bc 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/SearchParameter10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/SearchParameter10_40.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv10_40.resources10_40; import org.hl7.fhir.convertors.context.ConversionContext10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.ContactPoint10_40; -import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.*; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Boolean10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Code10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.DateTime10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.String10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Uri10_40; import org.hl7.fhir.dstu2.utils.ToolingExtensions; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/StructureDefinition10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/StructureDefinition10_40.java index ef1dc7175..879f8ac23 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/StructureDefinition10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/StructureDefinition10_40.java @@ -1,5 +1,8 @@ package org.hl7.fhir.convertors.conv10_40.resources10_40; +import java.util.ArrayList; +import java.util.List; + import org.hl7.fhir.convertors.context.ConversionContext10_40; import org.hl7.fhir.convertors.conv10_40.VersionConvertor_10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.ElementDefinition10_40; @@ -7,16 +10,17 @@ import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Codeab import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Coding10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.ContactPoint10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Identifier10_40; -import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.*; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Boolean10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.DateTime10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Id10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.String10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Uri10_40; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.ElementDefinition; import org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionKind; import org.hl7.fhir.r4.model.StructureDefinition.TypeDerivationRule; import org.hl7.fhir.utilities.Utilities; -import java.util.ArrayList; -import java.util.List; - public class StructureDefinition10_40 { static public org.hl7.fhir.r4.model.Enumeration convertExtensionContext(org.hl7.fhir.dstu2.model.Enumeration src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/TestScript10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/TestScript10_40.java index 507032fbd..e3ef2d47f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/TestScript10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/TestScript10_40.java @@ -7,7 +7,14 @@ import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Codeab import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Coding10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.ContactPoint10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Identifier10_40; -import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.*; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Boolean10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Canonical10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Code10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.DateTime10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Id10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Integer10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.String10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Uri10_40; import org.hl7.fhir.exceptions.FHIRException; public class TestScript10_40 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/ValueSet10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/ValueSet10_40.java index e0ba502f2..3fa218021 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/ValueSet10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/resources10_40/ValueSet10_40.java @@ -1,5 +1,7 @@ package org.hl7.fhir.convertors.conv10_40.resources10_40; +import java.util.List; + import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_10_40; import org.hl7.fhir.convertors.context.ConversionContext10_40; import org.hl7.fhir.convertors.conv10_40.VersionConvertor_10_40; @@ -7,7 +9,12 @@ import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Codeab import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Coding10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.ContactPoint10_40; import org.hl7.fhir.convertors.conv10_40.datatypes10_40.complextypes10_40.Identifier10_40; -import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.*; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Boolean10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Code10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.DateTime10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Integer10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.String10_40; +import org.hl7.fhir.convertors.conv10_40.datatypes10_40.primitivetypes10_40.Uri10_40; import org.hl7.fhir.dstu2.model.ValueSet; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.BooleanType; @@ -16,8 +23,6 @@ import org.hl7.fhir.r4.model.CodeSystem.CodeSystemContentMode; import org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionComponent; import org.hl7.fhir.r4.terminologies.CodeSystemUtilities; -import java.util.List; - public class ValueSet10_40 { public static org.hl7.fhir.r4.model.ValueSet.ConceptReferenceComponent convertConceptReferenceComponent(org.hl7.fhir.dstu2.model.ValueSet.ConceptReferenceComponent src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/VersionConvertor_10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/VersionConvertor_10_50.java index 36b2f93f5..21663a2e5 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/VersionConvertor_10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/VersionConvertor_10_50.java @@ -1,19 +1,19 @@ package org.hl7.fhir.convertors.conv10_50; +import java.util.ArrayList; +import java.util.List; + +import javax.annotation.Nonnull; + import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_10_50; import org.hl7.fhir.convertors.context.ConversionContext10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.BackboneElement10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.Element10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.Type10_50; import org.hl7.fhir.convertors.conv10_50.resources10_50.Resource10_50; -import org.hl7.fhir.convertors.conv14_40.datatypes14_40.BackboneElement14_40; import org.hl7.fhir.dstu2.model.CodeableConcept; import org.hl7.fhir.exceptions.FHIRException; -import javax.annotation.Nonnull; -import java.util.ArrayList; -import java.util.List; - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/Element10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/Element10_50.java index 79e10f4a2..30d76b29d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/Element10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/Element10_50.java @@ -1,10 +1,10 @@ package org.hl7.fhir.convertors.conv10_50.datatypes10_50; +import java.util.Arrays; + import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_10_50; import org.hl7.fhir.exceptions.FHIRException; -import java.util.Arrays; - public class Element10_50 { public final BaseAdvisor_10_50 advisor; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/ElementDefinition10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/ElementDefinition10_50.java index 674a4e6ad..d416715e1 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/ElementDefinition10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/ElementDefinition10_50.java @@ -1,9 +1,17 @@ package org.hl7.fhir.convertors.conv10_50.datatypes10_50; +import java.util.List; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.VersionConvertorConstants; import org.hl7.fhir.convertors.context.ConversionContext10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Coding10_50; -import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.*; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Boolean10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Code10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Id10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Integer10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.MarkDown10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.String10_50; import org.hl7.fhir.convertors.conv10_50.resources10_50.Enumerations10_50; import org.hl7.fhir.dstu2.utils.ToolingExtensions; import org.hl7.fhir.exceptions.FHIRException; @@ -11,9 +19,6 @@ import org.hl7.fhir.r5.conformance.ProfileUtilities; import org.hl7.fhir.r5.model.ElementDefinition; import org.hl7.fhir.utilities.Utilities; -import java.util.List; -import java.util.stream.Collectors; - public class ElementDefinition10_50 { public static org.hl7.fhir.r5.model.ElementDefinition convertElementDefinition(org.hl7.fhir.dstu2.model.ElementDefinition src, List slicePaths, List context, int pos) throws FHIRException { if (src == null || src.isEmpty()) return null; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/Reference10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/Reference10_50.java index a485ef94c..2de9e4563 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/Reference10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/Reference10_50.java @@ -1,5 +1,7 @@ package org.hl7.fhir.convertors.conv10_50.datatypes10_50; +import java.util.List; + import org.hl7.fhir.convertors.context.ConversionContext10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.CodeableConcept10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.String10_50; @@ -8,8 +10,6 @@ import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CanonicalType; import org.hl7.fhir.r5.model.Immunization; -import java.util.List; - public class Reference10_50 { public static org.hl7.fhir.r5.model.Reference convertReference(org.hl7.fhir.dstu2.model.Reference src) throws FHIRException { if (src == null || src.isEmpty()) return null; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/Type10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/Type10_50.java index 39db7e923..befbb68fa 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/Type10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/Type10_50.java @@ -1,8 +1,44 @@ package org.hl7.fhir.convertors.conv10_50.datatypes10_50; import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_10_50; -import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.*; -import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.*; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Address10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Age10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Annotation10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Attachment10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.CodeableConcept10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Coding10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.ContactPoint10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Count10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Distance10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Duration10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.HumanName10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Identifier10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Money10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Period10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Quantity10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Range10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Ratio10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.SampledData10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Signature10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.SimpleQuantity10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Timing10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Base64Binary10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Boolean10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Code10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Date10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.DateTime10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Decimal10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Id10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Instant10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Integer10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.MarkDown10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Oid10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.PositiveInt10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.String10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Time10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.UnsignedInt10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Uri10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Uuid10_50; import org.hl7.fhir.exceptions.FHIRException; public class Type10_50 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/complextypes10_50/Timing10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/complextypes10_50/Timing10_50.java index 6735c151d..f4eb009d7 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/complextypes10_50/Timing10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/datatypes10_50/complextypes10_50/Timing10_50.java @@ -1,11 +1,11 @@ package org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50; +import java.util.Collections; + import org.hl7.fhir.convertors.context.ConversionContext10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Decimal10_50; import org.hl7.fhir.exceptions.FHIRException; -import java.util.Collections; - public class Timing10_50 { public static org.hl7.fhir.r5.model.Timing convertTiming(org.hl7.fhir.dstu2.model.Timing src) throws FHIRException { if (src == null || src.isEmpty()) return null; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Bundle10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Bundle10_50.java index fb6c66c5c..e87e8e5ee 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Bundle10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Bundle10_50.java @@ -3,7 +3,11 @@ package org.hl7.fhir.convertors.conv10_50.resources10_50; import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_10_50; import org.hl7.fhir.convertors.context.ConversionContext10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Signature10_50; -import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.*; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Decimal10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Instant10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.String10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.UnsignedInt10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Uri10_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.Bundle.LinkRelationTypes; import org.hl7.fhir.utilities.FhirPublication; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/CarePlan10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/CarePlan10_50.java index c8a10bdcf..0367dfd6b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/CarePlan10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/CarePlan10_50.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv10_50.resources10_50; import org.hl7.fhir.convertors.context.ConversionContext10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.Reference10_50; -import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.*; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Annotation10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.CodeableConcept10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Identifier10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Period10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.SimpleQuantity10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Boolean10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.String10_50; import org.hl7.fhir.dstu2.model.Reference; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Composition10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Composition10_50.java index a40e2da7b..13bb12f75 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Composition10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Composition10_50.java @@ -1,19 +1,18 @@ package org.hl7.fhir.convertors.conv10_50.resources10_50; +import java.util.Collections; + import org.hl7.fhir.convertors.context.ConversionContext10_50; -import org.hl7.fhir.convertors.context.ConversionContext40_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.Narrative10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.Reference10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.CodeableConcept10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Identifier10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Period10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Code10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.DateTime10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.String10_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Code43_50; import org.hl7.fhir.exceptions.FHIRException; -import java.util.Collections; - public class Composition10_50 { public static org.hl7.fhir.r5.model.Composition convertComposition(org.hl7.fhir.dstu2.model.Composition src) throws FHIRException { @@ -35,7 +34,7 @@ public class Composition10_50 { tgt.setStatusElement(convertCompositionStatus(src.getStatusElement())); try { if (src.hasConfidentiality()) - tgt.getMeta().addSecurity().setCodeElement(Code43_50.convertCode(src.getConfidentialityElement())); + tgt.getMeta().addSecurity().setCodeElement(Code10_50.convertCode(src.getConfidentialityElement())); } catch (org.hl7.fhir.exceptions.FHIRException e) { throw new FHIRException(e); } diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/ConceptMap10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/ConceptMap10_50.java index 531944ec9..1e693c990 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/ConceptMap10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/ConceptMap10_50.java @@ -1,5 +1,8 @@ package org.hl7.fhir.convertors.conv10_50.resources10_50; +import java.util.ArrayList; +import java.util.List; + import org.hl7.fhir.convertors.SourceElementComponentWrapper; import org.hl7.fhir.convertors.VersionConvertorConstants; import org.hl7.fhir.convertors.context.ConversionContext10_50; @@ -7,12 +10,14 @@ import org.hl7.fhir.convertors.conv10_50.VersionConvertor_10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.CodeableConcept10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.ContactPoint10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Identifier10_50; -import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.*; -import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.String14_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Boolean10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Code10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.DateTime10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.String10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Uri10_50; import org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalence; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CanonicalType; -import org.hl7.fhir.r5.model.Coding; import org.hl7.fhir.r5.model.ConceptMap; import org.hl7.fhir.r5.model.ConceptMap.ConceptMapGroupComponent; import org.hl7.fhir.r5.model.Enumeration; @@ -20,9 +25,6 @@ import org.hl7.fhir.r5.model.Enumerations; import org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship; import org.hl7.fhir.r5.utils.ToolingExtensions; -import java.util.ArrayList; -import java.util.List; - public class ConceptMap10_50 { public static org.hl7.fhir.r5.model.ConceptMap convertConceptMap(org.hl7.fhir.dstu2.model.ConceptMap src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Condition10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Condition10_50.java index ca0f9a8bd..f0173fa69 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Condition10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Condition10_50.java @@ -4,13 +4,9 @@ import java.util.ArrayList; import java.util.List; import org.hl7.fhir.convertors.context.ConversionContext10_50; -import org.hl7.fhir.convertors.context.ConversionContext30_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.Reference10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.CodeableConcept10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Identifier10_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Reference30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeableConcept; import org.hl7.fhir.r5.model.CodeableReference; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Conformance10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Conformance10_50.java index e9faf46ff..a65328e4d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Conformance10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Conformance10_50.java @@ -7,7 +7,12 @@ import org.hl7.fhir.convertors.conv10_50.datatypes10_50.Reference10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.CodeableConcept10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Coding10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.ContactPoint10_50; -import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.*; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Boolean10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Code10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.DateTime10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.String10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.UnsignedInt10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Uri10_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestComponent; import org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestResourceComponent; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/DataElement10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/DataElement10_50.java index 4741459de..eb061b3ca 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/DataElement10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/DataElement10_50.java @@ -1,19 +1,23 @@ package org.hl7.fhir.convertors.conv10_50.resources10_50; +import java.util.ArrayList; +import java.util.List; + import org.hl7.fhir.convertors.context.ConversionContext10_50; import org.hl7.fhir.convertors.conv10_50.VersionConvertor_10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.ElementDefinition10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.CodeableConcept10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.ContactPoint10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Identifier10_50; -import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.*; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Boolean10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.DateTime10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Id10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.String10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Uri10_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionKind; import org.hl7.fhir.r5.model.StructureDefinition.TypeDerivationRule; -import java.util.ArrayList; -import java.util.List; - public class DataElement10_50 { public static org.hl7.fhir.r5.model.StructureDefinition convertDataElement(org.hl7.fhir.dstu2.model.DataElement src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/DocumentReference10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/DocumentReference10_50.java index cb92a443e..10d8a4c11 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/DocumentReference10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/DocumentReference10_50.java @@ -2,7 +2,10 @@ package org.hl7.fhir.convertors.conv10_50.resources10_50; import org.hl7.fhir.convertors.context.ConversionContext10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.Reference10_50; -import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.*; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Attachment10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.CodeableConcept10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Identifier10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Period10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.MarkDown10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.String10_50; import org.hl7.fhir.dstu2.model.CodeableConcept; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/HealthcareService10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/HealthcareService10_50.java index 9bb75272e..85950a50b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/HealthcareService10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/HealthcareService10_50.java @@ -2,15 +2,15 @@ package org.hl7.fhir.convertors.conv10_50.resources10_50; import org.hl7.fhir.convertors.context.ConversionContext10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.Reference10_50; -import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.*; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Attachment10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.CodeableConcept10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.ContactPoint10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Identifier10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Boolean10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.String10_50; -import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Time10_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.ExtendedContactDetail; -import java.util.stream.Collectors; - public class HealthcareService10_50 { static public org.hl7.fhir.dstu2.model.Enumeration convertDaysOfWeek(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/ImplementationGuide10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/ImplementationGuide10_50.java index 80c4db629..3d692ca7d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/ImplementationGuide10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/ImplementationGuide10_50.java @@ -1,19 +1,23 @@ package org.hl7.fhir.convertors.conv10_50.resources10_50; +import java.util.List; + import org.hl7.fhir.convertors.context.ConversionContext10_50; import org.hl7.fhir.convertors.conv10_50.VersionConvertor_10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.Reference10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.CodeableConcept10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.ContactPoint10_50; -import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.*; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Boolean10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Code10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.DateTime10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.String10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Uri10_50; import org.hl7.fhir.dstu2.model.ImplementationGuide; import org.hl7.fhir.dstu2.model.ImplementationGuide.GuidePageKind; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.Enumeration; import org.hl7.fhir.r5.model.ImplementationGuide.GuidePageGeneration; -import java.util.List; - public class ImplementationGuide10_50 { public static org.hl7.fhir.r5.model.ImplementationGuide convertImplementationGuide(org.hl7.fhir.dstu2.model.ImplementationGuide src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/MedicationDispense10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/MedicationDispense10_50.java index 6e884d9c0..8309badfc 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/MedicationDispense10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/MedicationDispense10_50.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv10_50.resources10_50; import org.hl7.fhir.convertors.context.ConversionContext10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.Reference10_50; -import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.*; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.CodeableConcept10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Identifier10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Ratio10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.SimpleQuantity10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Timing10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Boolean10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.DateTime10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.String10_50; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/MessageHeader10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/MessageHeader10_50.java index 751d995ed..42307a975 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/MessageHeader10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/MessageHeader10_50.java @@ -5,7 +5,6 @@ import org.hl7.fhir.convertors.conv10_50.datatypes10_50.Reference10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.CodeableConcept10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Coding10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.ContactPoint10_50; -import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Id10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.String10_50; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/OperationDefinition10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/OperationDefinition10_50.java index e0bf5c1ca..140fa49c5 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/OperationDefinition10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/OperationDefinition10_50.java @@ -4,13 +4,17 @@ import org.hl7.fhir.convertors.VersionConvertorConstants; import org.hl7.fhir.convertors.context.ConversionContext10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.Reference10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.ContactPoint10_50; -import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.*; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Boolean10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Code10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.DateTime10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Integer10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.String10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Uri10_50; import org.hl7.fhir.dstu2.model.Reference; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeType; import org.hl7.fhir.r5.model.DataType; import org.hl7.fhir.r5.model.Enumerations; -import org.hl7.fhir.r5.model.Enumerations.FHIRTypes; import org.hl7.fhir.r5.model.Enumerations.SearchParamType; import org.hl7.fhir.utilities.Utilities; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Organization10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Organization10_50.java index b0dc63263..4c16bd274 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Organization10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Organization10_50.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv10_50.resources10_50; import org.hl7.fhir.convertors.context.ConversionContext10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.Reference10_50; -import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.*; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Address10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.CodeableConcept10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.ContactPoint10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.HumanName10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Identifier10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Boolean10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.String10_50; import org.hl7.fhir.exceptions.FHIRException; @@ -23,9 +27,9 @@ public class Organization10_50 { tgt.addType(CodeableConcept10_50.convertCodeableConcept(src.getType())); if (src.hasNameElement()) tgt.setNameElement(String10_50.convertString(src.getNameElement())); + for (org.hl7.fhir.dstu2.model.Address t : src.getAddress()) tgt.addContact().setAddress(Address10_50.convertAddress(t)); for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.getContactFirstRep().addTelecom(ContactPoint10_50.convertContactPoint(t)); - for (org.hl7.fhir.dstu2.model.Address t : src.getAddress()) tgt.addAddress(Address10_50.convertAddress(t)); if (src.hasPartOf()) tgt.setPartOf(Reference10_50.convertReference(src.getPartOf())); for (org.hl7.fhir.dstu2.model.Organization.OrganizationContactComponent t : src.getContact()) @@ -49,7 +53,9 @@ public class Organization10_50 { for (ExtendedContactDetail t1 : src.getContact()) for (org.hl7.fhir.r5.model.ContactPoint t : t1.getTelecom()) tgt.addTelecom(ContactPoint10_50.convertContactPoint(t)); - for (org.hl7.fhir.r5.model.Address t : src.getAddress()) tgt.addAddress(Address10_50.convertAddress(t)); + for (ExtendedContactDetail t : src.getContact()) + if (t.hasAddress()) + tgt.addAddress(Address10_50.convertAddress(t.getAddress())); if (src.hasPartOf()) tgt.setPartOf(Reference10_50.convertReference(src.getPartOf())); for (org.hl7.fhir.r5.model.ExtendedContactDetail t : src.getContact()) @@ -64,8 +70,8 @@ public class Organization10_50 { ConversionContext10_50.INSTANCE.getVersionConvertor_10_50().copyElement(src, tgt); if (src.hasPurpose()) tgt.setPurpose(CodeableConcept10_50.convertCodeableConcept(src.getPurpose())); - if (src.hasName()) - tgt.setName(HumanName10_50.convertHumanName(src.getName())); + for (org.hl7.fhir.r5.model.HumanName t : src.getName()) + tgt.setName(HumanName10_50.convertHumanName(t)); for (org.hl7.fhir.r5.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(ContactPoint10_50.convertContactPoint(t)); if (src.hasAddress()) @@ -81,7 +87,7 @@ public class Organization10_50 { if (src.hasPurpose()) tgt.setPurpose(CodeableConcept10_50.convertCodeableConcept(src.getPurpose())); if (src.hasName()) - tgt.setName(HumanName10_50.convertHumanName(src.getName())); + tgt.addName(HumanName10_50.convertHumanName(src.getName())); for (org.hl7.fhir.dstu2.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(ContactPoint10_50.convertContactPoint(t)); if (src.hasAddress()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Patient10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Patient10_50.java index 5e54e11c4..26e1b863e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Patient10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Patient10_50.java @@ -2,7 +2,13 @@ package org.hl7.fhir.convertors.conv10_50.resources10_50; import org.hl7.fhir.convertors.context.ConversionContext10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.Reference10_50; -import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.*; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Address10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Attachment10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.CodeableConcept10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.ContactPoint10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.HumanName10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Identifier10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Period10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Boolean10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Date10_50; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Person10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Person10_50.java index cb579c8e2..5a745cc9b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Person10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Person10_50.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv10_50.resources10_50; import org.hl7.fhir.convertors.context.ConversionContext10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.Reference10_50; -import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.*; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Address10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Attachment10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.ContactPoint10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.HumanName10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Identifier10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Boolean10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Date10_50; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Practitioner10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Practitioner10_50.java index 29e7cc4ae..cdcb15a9d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Practitioner10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/Practitioner10_50.java @@ -2,7 +2,13 @@ package org.hl7.fhir.convertors.conv10_50.resources10_50; import org.hl7.fhir.convertors.context.ConversionContext10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.Reference10_50; -import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.*; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Address10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Attachment10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.CodeableConcept10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.ContactPoint10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.HumanName10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Identifier10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Period10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Boolean10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Date10_50; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/SearchParameter10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/SearchParameter10_50.java index 4eb1f97df..fbdb5c66e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/SearchParameter10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/SearchParameter10_50.java @@ -2,13 +2,14 @@ package org.hl7.fhir.convertors.conv10_50.resources10_50; import org.hl7.fhir.convertors.context.ConversionContext10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.ContactPoint10_50; -import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.*; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Boolean10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Code10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.DateTime10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.String10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Uri10_50; import org.hl7.fhir.dstu2.utils.ToolingExtensions; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeType; -import org.hl7.fhir.r5.model.Enumeration; -import org.hl7.fhir.r5.model.Enumerations; -import org.hl7.fhir.r5.model.Enumerations.AllResourceTypes; public class SearchParameter10_50 { @@ -35,7 +36,7 @@ public class SearchParameter10_50 { tgt.setRequirements(src.getPurpose()); if (src.hasCodeElement()) tgt.setCodeElement(Code10_50.convertCode(src.getCodeElement())); - for (Enumeration t : src.getBase()) tgt.setBase(t.asStringValue()); + for (CodeType t : src.getBase()) tgt.setBaseElement(Code10_50.convertCode(t)); if (src.hasType()) tgt.setTypeElement(Enumerations10_50.convertSearchParamType(src.getTypeElement())); if (src.hasDescription()) @@ -72,7 +73,7 @@ public class SearchParameter10_50 { tgt.setPurpose(src.getRequirements()); if (src.hasCodeElement()) tgt.setCodeElement(Code10_50.convertCode(src.getCodeElement())); - tgt.addBase(Enumerations.AllResourceTypes.fromCode(src.getBase())); + tgt.getBase().add(Code10_50.convertCode(src.getBaseElement())); if (src.hasType()) tgt.setTypeElement(Enumerations10_50.convertSearchParamType(src.getTypeElement())); if (src.hasDescription()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/StructureDefinition10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/StructureDefinition10_50.java index 859595894..696fde75c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/StructureDefinition10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/StructureDefinition10_50.java @@ -1,5 +1,8 @@ package org.hl7.fhir.convertors.conv10_50.resources10_50; +import java.util.ArrayList; +import java.util.List; + import org.hl7.fhir.convertors.context.ConversionContext10_50; import org.hl7.fhir.convertors.conv10_50.VersionConvertor_10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.ElementDefinition10_50; @@ -7,16 +10,17 @@ import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Codeab import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Coding10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.ContactPoint10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Identifier10_50; -import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.*; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Boolean10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.DateTime10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Id10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.String10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Uri10_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.ElementDefinition; import org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionKind; import org.hl7.fhir.r5.model.StructureDefinition.TypeDerivationRule; import org.hl7.fhir.utilities.Utilities; -import java.util.ArrayList; -import java.util.List; - public class StructureDefinition10_50 { static public org.hl7.fhir.r5.model.Enumeration convertExtensionContext(org.hl7.fhir.dstu2.model.Enumeration src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/TestScript10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/TestScript10_50.java index a4025b56a..d447493cc 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/TestScript10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/TestScript10_50.java @@ -7,9 +7,13 @@ import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Codeab import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Coding10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.ContactPoint10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Identifier10_50; -import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.*; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Boolean10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.DateTime10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Id10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Integer10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.String10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Uri10_50; import org.hl7.fhir.exceptions.FHIRException; -import org.hl7.fhir.r5.model.TestScript; public class TestScript10_50 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/ValueSet10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/ValueSet10_50.java index 47abf7396..6d9dd5a6c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/ValueSet10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/resources10_50/ValueSet10_50.java @@ -1,5 +1,7 @@ package org.hl7.fhir.convertors.conv10_50.resources10_50; +import java.util.List; + import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_10_50; import org.hl7.fhir.convertors.context.ConversionContext10_50; import org.hl7.fhir.convertors.conv10_50.VersionConvertor_10_50; @@ -7,7 +9,12 @@ import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Codeab import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Coding10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.ContactPoint10_50; import org.hl7.fhir.convertors.conv10_50.datatypes10_50.complextypes10_50.Identifier10_50; -import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.*; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Boolean10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Code10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.DateTime10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Integer10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.String10_50; +import org.hl7.fhir.convertors.conv10_50.datatypes10_50.primitivetypes10_50.Uri10_50; import org.hl7.fhir.dstu2.model.ValueSet; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.BooleanType; @@ -16,8 +23,6 @@ import org.hl7.fhir.r5.model.CodeSystem.CodeSystemContentMode; import org.hl7.fhir.r5.model.CodeSystem.ConceptDefinitionComponent; import org.hl7.fhir.r5.terminologies.CodeSystemUtilities; -import java.util.List; - public class ValueSet10_50 { public static org.hl7.fhir.r5.model.ValueSet.ConceptReferenceComponent convertConceptReferenceComponent(org.hl7.fhir.dstu2.model.ValueSet.ConceptReferenceComponent src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/VersionConvertor_14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/VersionConvertor_14_30.java index 4b2a6a9c1..64cec76b3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/VersionConvertor_14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/VersionConvertor_14_30.java @@ -1,5 +1,7 @@ package org.hl7.fhir.convertors.conv14_30; +import javax.annotation.Nonnull; + import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_14_30; import org.hl7.fhir.convertors.context.ConversionContext14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.BackboneElement14_30; @@ -9,8 +11,6 @@ import org.hl7.fhir.convertors.conv14_30.resources14_30.Resource14_30; import org.hl7.fhir.dstu2016may.model.CodeableConcept; import org.hl7.fhir.exceptions.FHIRException; -import javax.annotation.Nonnull; - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/datatypes14_30/Element14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/datatypes14_30/Element14_30.java index 26feeabae..62d2bfd90 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/datatypes14_30/Element14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/datatypes14_30/Element14_30.java @@ -1,11 +1,11 @@ package org.hl7.fhir.convertors.conv14_30.datatypes14_30; +import java.util.Arrays; + import org.hl7.fhir.convertors.VersionConvertorConstants; import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_14_30; import org.hl7.fhir.exceptions.FHIRException; -import java.util.Arrays; - public class Element14_30 { public final BaseAdvisor_14_30 advisor; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/datatypes14_30/ElementDefinition14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/datatypes14_30/ElementDefinition14_30.java index c718c234d..ab17d2daf 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/datatypes14_30/ElementDefinition14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/datatypes14_30/ElementDefinition14_30.java @@ -1,15 +1,21 @@ package org.hl7.fhir.convertors.conv14_30.datatypes14_30; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.VersionConvertorConstants; import org.hl7.fhir.convertors.context.ConversionContext14_30; -import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.*; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Boolean14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Code14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Id14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Integer14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.MarkDown14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.String14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Uri14_30; import org.hl7.fhir.convertors.conv14_30.resources14_30.Enumerations14_30; import org.hl7.fhir.dstu3.conformance.ProfileUtilities; import org.hl7.fhir.dstu3.model.ElementDefinition; import org.hl7.fhir.exceptions.FHIRException; -import java.util.stream.Collectors; - public class ElementDefinition14_30 { public static org.hl7.fhir.dstu3.model.ElementDefinition convertElementDefinition(org.hl7.fhir.dstu2016may.model.ElementDefinition src) throws FHIRException { if (src == null || src.isEmpty()) return null; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/datatypes14_30/Type14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/datatypes14_30/Type14_30.java index bc181f6c7..3912f22a3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/datatypes14_30/Type14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/datatypes14_30/Type14_30.java @@ -1,8 +1,42 @@ package org.hl7.fhir.convertors.conv14_30.datatypes14_30; import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_14_30; -import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.*; -import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.*; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.Address14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.Age14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.Annotation14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.Attachment14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.CodeableConcept14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.ContactPoint14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.Count14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.Distance14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.Duration14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.HumanName14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.Identifier14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.Money14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.Period14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.Quantity14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.Range14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.Ratio14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.SampledData14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.Signature14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.Timing14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Base64Binary14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Boolean14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Code14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Date14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.DateTime14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Decimal14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Id14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Instant14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Integer14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.MarkDown14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Oid14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.PositiveInt14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.String14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Time14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.UnsignedInt14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Uri14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Uuid14_30; import org.hl7.fhir.exceptions.FHIRException; public class Type14_30 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/datatypes14_30/complextypes14_30/Attachment14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/datatypes14_30/complextypes14_30/Attachment14_30.java index d7cc627a9..2ee845f89 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/datatypes14_30/complextypes14_30/Attachment14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/datatypes14_30/complextypes14_30/Attachment14_30.java @@ -1,7 +1,12 @@ package org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30; import org.hl7.fhir.convertors.context.ConversionContext14_30; -import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.*; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Base64Binary14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Code14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.DateTime14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.String14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.UnsignedInt14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Uri14_30; import org.hl7.fhir.exceptions.FHIRException; public class Attachment14_30 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/datatypes14_30/complextypes14_30/Timing14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/datatypes14_30/complextypes14_30/Timing14_30.java index 56227f9fc..2aa610ba6 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/datatypes14_30/complextypes14_30/Timing14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/datatypes14_30/complextypes14_30/Timing14_30.java @@ -1,13 +1,13 @@ package org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30; +import java.util.Collections; + import org.hl7.fhir.convertors.context.ConversionContext14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Decimal14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Integer14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.UnsignedInt14_30; import org.hl7.fhir.exceptions.FHIRException; -import java.util.Collections; - public class Timing14_30 { public static org.hl7.fhir.dstu3.model.Timing convertTiming(org.hl7.fhir.dstu2016may.model.Timing src) throws FHIRException { if (src == null || src.isEmpty()) return null; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/Bundle14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/Bundle14_30.java index aaef01a97..eeb178452 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/Bundle14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/Bundle14_30.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv14_30.resources14_30; import org.hl7.fhir.convertors.context.ConversionContext14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.Signature14_30; -import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.*; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Decimal14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Instant14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.String14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.UnsignedInt14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Uri14_30; import org.hl7.fhir.exceptions.FHIRException; public class Bundle14_30 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/CodeSystem14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/CodeSystem14_30.java index e0c4fdbe3..169968453 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/CodeSystem14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/CodeSystem14_30.java @@ -5,7 +5,12 @@ import org.hl7.fhir.convertors.conv14_30.VersionConvertor_14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.CodeableConcept14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.ContactPoint14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.Identifier14_30; -import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.*; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Boolean14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Code14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.DateTime14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.String14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.UnsignedInt14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Uri14_30; import org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionPropertyComponent; import org.hl7.fhir.dstu3.model.CodeSystem; import org.hl7.fhir.dstu3.model.CodeSystem.FilterOperator; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/CompartmentDefinition14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/CompartmentDefinition14_30.java index 97b1efbc1..f39ddd9e1 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/CompartmentDefinition14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/CompartmentDefinition14_30.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv14_30.resources14_30; import org.hl7.fhir.convertors.context.ConversionContext14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.ContactPoint14_30; -import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.*; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Boolean14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Code14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.DateTime14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.String14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Uri14_30; import org.hl7.fhir.exceptions.FHIRException; public class CompartmentDefinition14_30 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/ConceptMap14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/ConceptMap14_30.java index 88c802de2..063f9021f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/ConceptMap14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/ConceptMap14_30.java @@ -1,19 +1,23 @@ package org.hl7.fhir.convertors.conv14_30.resources14_30; +import java.util.ArrayList; +import java.util.List; + import org.hl7.fhir.convertors.SourceElementComponentWrapper; import org.hl7.fhir.convertors.context.ConversionContext14_30; import org.hl7.fhir.convertors.conv14_30.VersionConvertor_14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.CodeableConcept14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.ContactPoint14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.Identifier14_30; -import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.*; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Boolean14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Code14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.DateTime14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.String14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Uri14_30; import org.hl7.fhir.dstu3.model.ConceptMap; import org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapGroupComponent; import org.hl7.fhir.exceptions.FHIRException; -import java.util.ArrayList; -import java.util.List; - public class ConceptMap14_30 { public static org.hl7.fhir.dstu2016may.model.ConceptMap convertConceptMap(org.hl7.fhir.dstu3.model.ConceptMap src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/Conformance14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/Conformance14_30.java index 130c9a626..357251ad3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/Conformance14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/Conformance14_30.java @@ -5,7 +5,14 @@ import org.hl7.fhir.convertors.conv14_30.VersionConvertor_14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.Reference14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.CodeableConcept14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.ContactPoint14_30; -import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.*; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Base64Binary14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Boolean14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Code14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.DateTime14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Id14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.String14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.UnsignedInt14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Uri14_30; import org.hl7.fhir.exceptions.FHIRException; public class Conformance14_30 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/DataElement14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/DataElement14_30.java index 822c55a71..8bf6cfad9 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/DataElement14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/DataElement14_30.java @@ -6,7 +6,11 @@ import org.hl7.fhir.convertors.conv14_30.datatypes14_30.ElementDefinition14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.CodeableConcept14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.ContactPoint14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.Identifier14_30; -import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.*; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Boolean14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.DateTime14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Id14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.String14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Uri14_30; import org.hl7.fhir.exceptions.FHIRException; public class DataElement14_30 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/ImplementationGuide14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/ImplementationGuide14_30.java index 2e31aba0b..ec0252c5e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/ImplementationGuide14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/ImplementationGuide14_30.java @@ -5,7 +5,12 @@ import org.hl7.fhir.convertors.conv14_30.VersionConvertor_14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.Reference14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.CodeableConcept14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.ContactPoint14_30; -import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.*; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Boolean14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Code14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.DateTime14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Id14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.String14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Uri14_30; import org.hl7.fhir.exceptions.FHIRException; public class ImplementationGuide14_30 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/OperationDefinition14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/OperationDefinition14_30.java index 1d9a40736..ff57615be 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/OperationDefinition14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/OperationDefinition14_30.java @@ -5,7 +5,12 @@ import org.hl7.fhir.convertors.conv14_30.VersionConvertor_14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.Reference14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.CodeableConcept14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.ContactPoint14_30; -import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.*; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Boolean14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Code14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.DateTime14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Integer14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.String14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Uri14_30; import org.hl7.fhir.dstu3.model.Enumerations.SearchParamType; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.utilities.Utilities; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/Questionnaire14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/Questionnaire14_30.java index 2904f096b..38c105e26 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/Questionnaire14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/Questionnaire14_30.java @@ -6,7 +6,12 @@ import org.hl7.fhir.convertors.conv14_30.datatypes14_30.Reference14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.CodeableConcept14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.ContactPoint14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.Identifier14_30; -import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.*; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Boolean14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Code14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.DateTime14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Integer14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.String14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Uri14_30; import org.hl7.fhir.dstu3.model.ContactDetail; import org.hl7.fhir.dstu3.model.UsageContext; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/SearchParameter14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/SearchParameter14_30.java index e21e560b7..6141dfd13 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/SearchParameter14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/SearchParameter14_30.java @@ -4,7 +4,11 @@ import org.hl7.fhir.convertors.context.ConversionContext14_30; import org.hl7.fhir.convertors.conv14_30.VersionConvertor_14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.CodeableConcept14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.ContactPoint14_30; -import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.*; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Boolean14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Code14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.DateTime14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.String14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Uri14_30; import org.hl7.fhir.exceptions.FHIRException; public class SearchParameter14_30 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/StructureDefinition14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/StructureDefinition14_30.java index 6fdc02b45..e426a72e3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/StructureDefinition14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/StructureDefinition14_30.java @@ -6,7 +6,12 @@ import org.hl7.fhir.convertors.conv14_30.datatypes14_30.ElementDefinition14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.CodeableConcept14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.ContactPoint14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.Identifier14_30; -import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.*; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Boolean14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Code14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.DateTime14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Id14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.String14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Uri14_30; import org.hl7.fhir.dstu2016may.model.StructureDefinition.TypeDerivationRule; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/TestScript14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/TestScript14_30.java index 9d56bcb54..aba9bd8f6 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/TestScript14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/TestScript14_30.java @@ -6,7 +6,13 @@ import org.hl7.fhir.convertors.conv14_30.datatypes14_30.Reference14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.CodeableConcept14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.ContactPoint14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.Identifier14_30; -import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.*; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Boolean14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Code14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.DateTime14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Id14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Integer14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.String14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Uri14_30; import org.hl7.fhir.exceptions.FHIRException; public class TestScript14_30 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/ValueSet14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/ValueSet14_30.java index 5bc5a0777..52a3cea61 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/ValueSet14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_30/resources14_30/ValueSet14_30.java @@ -5,7 +5,12 @@ import org.hl7.fhir.convertors.conv14_30.VersionConvertor_14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.CodeableConcept14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.ContactPoint14_30; import org.hl7.fhir.convertors.conv14_30.datatypes14_30.complextypes14_30.Identifier14_30; -import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.*; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Boolean14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Code14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.DateTime14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Integer14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.String14_30; +import org.hl7.fhir.convertors.conv14_30.datatypes14_30.primitivetypes14_30.Uri14_30; import org.hl7.fhir.exceptions.FHIRException; public class ValueSet14_30 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/VersionConvertor_14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/VersionConvertor_14_40.java index 161a89d42..eb0d50d5c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/VersionConvertor_14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/VersionConvertor_14_40.java @@ -1,5 +1,10 @@ package org.hl7.fhir.convertors.conv14_40; +import java.util.ArrayList; +import java.util.List; + +import javax.annotation.Nonnull; + import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_14_40; import org.hl7.fhir.convertors.context.ConversionContext14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.BackboneElement14_40; @@ -9,10 +14,6 @@ import org.hl7.fhir.convertors.conv14_40.resources14_40.Resource14_40; import org.hl7.fhir.dstu2016may.model.CodeableConcept; import org.hl7.fhir.exceptions.FHIRException; -import javax.annotation.Nonnull; -import java.util.ArrayList; -import java.util.List; - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/datatypes14_40/Element14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/datatypes14_40/Element14_40.java index af9d07cd0..998bb754f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/datatypes14_40/Element14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/datatypes14_40/Element14_40.java @@ -1,10 +1,10 @@ package org.hl7.fhir.convertors.conv14_40.datatypes14_40; +import java.util.Arrays; + import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_14_40; import org.hl7.fhir.exceptions.FHIRException; -import java.util.Arrays; - public class Element14_40 { public final BaseAdvisor_14_40 advisor; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/datatypes14_40/ElementDefinition14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/datatypes14_40/ElementDefinition14_40.java index 464ed0cd4..ad1cf2729 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/datatypes14_40/ElementDefinition14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/datatypes14_40/ElementDefinition14_40.java @@ -1,19 +1,25 @@ package org.hl7.fhir.convertors.conv14_40.datatypes14_40; +import java.util.List; +import java.util.stream.Collectors; + import org.apache.commons.lang3.StringUtils; import org.hl7.fhir.convertors.VersionConvertorConstants; import org.hl7.fhir.convertors.context.ConversionContext14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Coding14_40; -import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.*; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Boolean14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Code14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Id14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Integer14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.MarkDown14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.String14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Uri14_40; import org.hl7.fhir.convertors.conv14_40.resources14_40.Enumerations14_40; import org.hl7.fhir.dstu2016may.model.ElementDefinition; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.conformance.ProfileUtilities; import org.hl7.fhir.utilities.Utilities; -import java.util.List; -import java.util.stream.Collectors; - public class ElementDefinition14_40 { public static org.hl7.fhir.r4.model.ElementDefinition convertElementDefinition(org.hl7.fhir.dstu2016may.model.ElementDefinition src, List context, int pos) throws FHIRException { if (src == null || src.isEmpty()) return null; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/datatypes14_40/Type14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/datatypes14_40/Type14_40.java index 45dd19c17..bdf0f3101 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/datatypes14_40/Type14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/datatypes14_40/Type14_40.java @@ -1,8 +1,43 @@ package org.hl7.fhir.convertors.conv14_40.datatypes14_40; import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_14_40; -import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.*; -import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.*; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Address14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Age14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Annotation14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Attachment14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.CodeableConcept14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Coding14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.ContactPoint14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Count14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Distance14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Duration14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.HumanName14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Identifier14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Money14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Period14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Quantity14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Range14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Ratio14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.SampledData14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Signature14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Timing14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Base64Binary14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Boolean14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Code14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Date14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.DateTime14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Decimal14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Id14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Instant14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Integer14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.MarkDown14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Oid14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.PositiveInt14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.String14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Time14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.UnsignedInt14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Uri14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Uuid14_40; import org.hl7.fhir.exceptions.FHIRException; public class Type14_40 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/datatypes14_40/complextypes14_40/Attachment14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/datatypes14_40/complextypes14_40/Attachment14_40.java index d5aaa16d2..1d9d6e836 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/datatypes14_40/complextypes14_40/Attachment14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/datatypes14_40/complextypes14_40/Attachment14_40.java @@ -1,7 +1,11 @@ package org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40; import org.hl7.fhir.convertors.context.ConversionContext14_40; -import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.*; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Base64Binary14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Code14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.DateTime14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.String14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.UnsignedInt14_40; import org.hl7.fhir.exceptions.FHIRException; public class Attachment14_40 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/datatypes14_40/complextypes14_40/Timing14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/datatypes14_40/complextypes14_40/Timing14_40.java index abbf7d39f..05936f046 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/datatypes14_40/complextypes14_40/Timing14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/datatypes14_40/complextypes14_40/Timing14_40.java @@ -1,12 +1,12 @@ package org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40; +import java.util.Collections; + import org.hl7.fhir.convertors.context.ConversionContext14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Decimal14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.UnsignedInt14_40; import org.hl7.fhir.exceptions.FHIRException; -import java.util.Collections; - public class Timing14_40 { public static org.hl7.fhir.r4.model.Timing convertTiming(org.hl7.fhir.dstu2016may.model.Timing src) throws FHIRException { if (src == null || src.isEmpty()) return null; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/Bundle14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/Bundle14_40.java index 03926e3eb..04e8a8277 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/Bundle14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/Bundle14_40.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv14_40.resources14_40; import org.hl7.fhir.convertors.context.ConversionContext14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Signature14_40; -import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.*; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Decimal14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Instant14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.String14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.UnsignedInt14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Uri14_40; import org.hl7.fhir.exceptions.FHIRException; public class Bundle14_40 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/CodeSystem14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/CodeSystem14_40.java index 02554f2d5..91eaf9e6b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/CodeSystem14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/CodeSystem14_40.java @@ -6,7 +6,12 @@ import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Codeab import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Coding14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.ContactPoint14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Identifier14_40; -import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.*; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Boolean14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Code14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.DateTime14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.String14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.UnsignedInt14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Uri14_40; import org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionPropertyComponent; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.CodeSystem; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/CompartmentDefinition14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/CompartmentDefinition14_40.java index 2d85de5b7..086dc4f9f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/CompartmentDefinition14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/CompartmentDefinition14_40.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv14_40.resources14_40; import org.hl7.fhir.convertors.context.ConversionContext14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.ContactPoint14_40; -import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.*; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Boolean14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Code14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.DateTime14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.String14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Uri14_40; import org.hl7.fhir.exceptions.FHIRException; public class CompartmentDefinition14_40 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/ConceptMap14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/ConceptMap14_40.java index 7d9bd7ee3..765369cc8 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/ConceptMap14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/ConceptMap14_40.java @@ -1,5 +1,8 @@ package org.hl7.fhir.convertors.conv14_40.resources14_40; +import java.util.ArrayList; +import java.util.List; + import org.hl7.fhir.convertors.SourceElementComponentWrapper; import org.hl7.fhir.convertors.context.ConversionContext14_40; import org.hl7.fhir.convertors.conv14_40.VersionConvertor_14_40; @@ -7,15 +10,16 @@ import org.hl7.fhir.convertors.conv14_40.datatypes14_40.Reference14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.CodeableConcept14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.ContactPoint14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Identifier14_40; -import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.*; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Boolean14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Code14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.DateTime14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.String14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Uri14_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.ConceptMap.ConceptMapGroupComponent; -import java.util.ArrayList; -import java.util.List; - public class ConceptMap14_40 { public static org.hl7.fhir.r4.model.ConceptMap convertConceptMap(org.hl7.fhir.dstu2016may.model.ConceptMap src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/Conformance14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/Conformance14_40.java index 919b84331..29ac51302 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/Conformance14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/Conformance14_40.java @@ -7,7 +7,12 @@ import org.hl7.fhir.convertors.conv14_40.datatypes14_40.Reference14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.CodeableConcept14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Coding14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.ContactPoint14_40; -import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.*; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Boolean14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Code14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.DateTime14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.String14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.UnsignedInt14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Uri14_40; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestComponent; import org.hl7.fhir.r4.model.CapabilityStatement.CapabilityStatementRestResourceComponent; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/DataElement14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/DataElement14_40.java index b15794c02..3712147eb 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/DataElement14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/DataElement14_40.java @@ -6,7 +6,11 @@ import org.hl7.fhir.convertors.conv14_40.datatypes14_40.ElementDefinition14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.CodeableConcept14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.ContactPoint14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Identifier14_40; -import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.*; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Boolean14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.DateTime14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Id14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.String14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Uri14_40; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionKind; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/ImplementationGuide14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/ImplementationGuide14_40.java index aef5e86a4..a3b9bae07 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/ImplementationGuide14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/ImplementationGuide14_40.java @@ -1,12 +1,18 @@ package org.hl7.fhir.convertors.conv14_40.resources14_40; +import java.util.List; + import org.hl7.fhir.convertors.VersionConvertorConstants; import org.hl7.fhir.convertors.context.ConversionContext14_40; import org.hl7.fhir.convertors.conv14_40.VersionConvertor_14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.Reference14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.CodeableConcept14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.ContactPoint14_40; -import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.*; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Boolean14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Code14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.DateTime14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.String14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Uri14_40; import org.hl7.fhir.dstu2016may.model.ImplementationGuide; import org.hl7.fhir.dstu2016may.model.ImplementationGuide.GuidePageKind; import org.hl7.fhir.exceptions.FHIRException; @@ -15,8 +21,6 @@ import org.hl7.fhir.r4.model.Enumeration; import org.hl7.fhir.r4.model.ImplementationGuide.GuidePageGeneration; import org.hl7.fhir.r4.model.Type; -import java.util.List; - public class ImplementationGuide14_40 { public static org.hl7.fhir.dstu2016may.model.ImplementationGuide convertImplementationGuide(org.hl7.fhir.r4.model.ImplementationGuide src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/OperationDefinition14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/OperationDefinition14_40.java index 9d191c49b..daf05a6e7 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/OperationDefinition14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/OperationDefinition14_40.java @@ -6,7 +6,12 @@ import org.hl7.fhir.convertors.conv14_40.VersionConvertor_14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.Reference14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.CodeableConcept14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.ContactPoint14_40; -import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.*; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Boolean14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Code14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.DateTime14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Integer14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.String14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Uri14_40; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.Type; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/Questionnaire14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/Questionnaire14_40.java index f5474cd05..a02b0e5de 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/Questionnaire14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/Questionnaire14_40.java @@ -7,7 +7,11 @@ import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Codeab import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Coding14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.ContactPoint14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Identifier14_40; -import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.*; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Boolean14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.DateTime14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Integer14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.String14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Uri14_40; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.ContactDetail; import org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemOperator; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/SearchParameter14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/SearchParameter14_40.java index bc7b5d89a..641bce909 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/SearchParameter14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/SearchParameter14_40.java @@ -5,7 +5,11 @@ import org.hl7.fhir.convertors.conv14_40.VersionConvertor_14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.Expression14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.CodeableConcept14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.ContactPoint14_40; -import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.*; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Boolean14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Code14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.DateTime14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.String14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Uri14_40; import org.hl7.fhir.exceptions.FHIRException; public class SearchParameter14_40 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/StructureDefinition14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/StructureDefinition14_40.java index c19f00419..8053b3b9f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/StructureDefinition14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/StructureDefinition14_40.java @@ -7,7 +7,11 @@ import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Codeab import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Coding14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.ContactPoint14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Identifier14_40; -import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.*; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Boolean14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.DateTime14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Id14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.String14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Uri14_40; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.ElementDefinition; import org.hl7.fhir.r4.model.StructureDefinition.TypeDerivationRule; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/StructureMap14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/StructureMap14_40.java index 7642809c5..ff39486ee 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/StructureMap14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/StructureMap14_40.java @@ -1,18 +1,22 @@ package org.hl7.fhir.convertors.conv14_40.resources14_40; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext14_40; import org.hl7.fhir.convertors.conv14_40.VersionConvertor_14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.CodeableConcept14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.ContactPoint14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Identifier14_40; -import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.*; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Boolean14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.DateTime14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Id14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.String14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Uri14_40; 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 java.util.stream.Collectors; - public class StructureMap14_40 { public static org.hl7.fhir.dstu2016may.model.StructureMap convertStructureMap(org.hl7.fhir.r4.model.StructureMap src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/ValueSet14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/ValueSet14_40.java index 0499d3e86..1c8233214 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/ValueSet14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_40/resources14_40/ValueSet14_40.java @@ -6,7 +6,12 @@ import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Codeab import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Coding14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.ContactPoint14_40; import org.hl7.fhir.convertors.conv14_40.datatypes14_40.complextypes14_40.Identifier14_40; -import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.*; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Boolean14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Code14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.DateTime14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Integer14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.String14_40; +import org.hl7.fhir.convertors.conv14_40.datatypes14_40.primitivetypes14_40.Uri14_40; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.BooleanType; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/VersionConvertor_14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/VersionConvertor_14_50.java index 9d0fc2a3e..0718ec831 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/VersionConvertor_14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/VersionConvertor_14_50.java @@ -1,18 +1,18 @@ package org.hl7.fhir.convertors.conv14_50; +import java.util.ArrayList; +import java.util.List; + +import javax.annotation.Nonnull; + import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_14_50; import org.hl7.fhir.convertors.context.ConversionContext14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.BackboneElement14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.Element14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.Type14_50; import org.hl7.fhir.convertors.conv14_50.resources14_50.Resource14_50; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.BackboneElement30_40; import org.hl7.fhir.exceptions.FHIRException; -import javax.annotation.Nonnull; -import java.util.ArrayList; -import java.util.List; - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/datatypes14_50/Element14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/datatypes14_50/Element14_50.java index a9759d367..a0c7a2576 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/datatypes14_50/Element14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/datatypes14_50/Element14_50.java @@ -1,10 +1,10 @@ package org.hl7.fhir.convertors.conv14_50.datatypes14_50; +import java.util.Arrays; + import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_14_50; import org.hl7.fhir.exceptions.FHIRException; -import java.util.Arrays; - public class Element14_50 { public final BaseAdvisor_14_50 advisor; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/datatypes14_50/ElementDefinition14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/datatypes14_50/ElementDefinition14_50.java index 6ca4afd90..9888307d8 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/datatypes14_50/ElementDefinition14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/datatypes14_50/ElementDefinition14_50.java @@ -1,19 +1,25 @@ package org.hl7.fhir.convertors.conv14_50.datatypes14_50; +import java.util.List; +import java.util.stream.Collectors; + import org.apache.commons.lang3.StringUtils; import org.hl7.fhir.convertors.VersionConvertorConstants; import org.hl7.fhir.convertors.context.ConversionContext14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Coding14_50; -import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.*; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Boolean14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Code14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Id14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Integer14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.MarkDown14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.String14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Uri14_50; import org.hl7.fhir.convertors.conv14_50.resources14_50.Enumerations14_50; import org.hl7.fhir.dstu2016may.model.ElementDefinition; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.conformance.ProfileUtilities; import org.hl7.fhir.utilities.Utilities; -import java.util.List; -import java.util.stream.Collectors; - public class ElementDefinition14_50 { public static org.hl7.fhir.r5.model.ElementDefinition convertElementDefinition(org.hl7.fhir.dstu2016may.model.ElementDefinition src, List context, int pos) throws FHIRException { if (src == null || src.isEmpty()) return null; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/datatypes14_50/Type14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/datatypes14_50/Type14_50.java index f68f3b820..aa14be253 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/datatypes14_50/Type14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/datatypes14_50/Type14_50.java @@ -1,8 +1,43 @@ package org.hl7.fhir.convertors.conv14_50.datatypes14_50; import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_14_50; -import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.*; -import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.*; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Address14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Age14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Annotation14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Attachment14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.CodeableConcept14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Coding14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.ContactPoint14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Count14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Distance14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Duration14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.HumanName14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Identifier14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Money14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Period14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Quantity14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Range14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Ratio14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.SampledData14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Signature14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Timing14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Base64Binary14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Boolean14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Code14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Date14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.DateTime14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Decimal14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Id14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Instant14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Integer14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.MarkDown14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Oid14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.PositiveInt14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.String14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Time14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.UnsignedInt14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Uri14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Uuid14_50; import org.hl7.fhir.exceptions.FHIRException; public class Type14_50 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/datatypes14_50/complextypes14_50/Timing14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/datatypes14_50/complextypes14_50/Timing14_50.java index 8c484ffbf..27d2e80b4 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/datatypes14_50/complextypes14_50/Timing14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/datatypes14_50/complextypes14_50/Timing14_50.java @@ -1,12 +1,12 @@ package org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50; +import java.util.Collections; + import org.hl7.fhir.convertors.context.ConversionContext14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Decimal14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.UnsignedInt14_50; import org.hl7.fhir.exceptions.FHIRException; -import java.util.Collections; - public class Timing14_50 { public static org.hl7.fhir.r5.model.Timing convertTiming(org.hl7.fhir.dstu2016may.model.Timing src) throws FHIRException { if (src == null || src.isEmpty()) return null; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/Bundle14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/Bundle14_50.java index 55a1785e2..269e7f65e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/Bundle14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/Bundle14_50.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv14_50.resources14_50; import org.hl7.fhir.convertors.context.ConversionContext14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Signature14_50; -import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.*; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Decimal14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Instant14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.String14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.UnsignedInt14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Uri14_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.Bundle.LinkRelationTypes; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/CodeSystem14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/CodeSystem14_50.java index 848999ea6..a54d9b671 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/CodeSystem14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/CodeSystem14_50.java @@ -5,7 +5,12 @@ import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Codeab import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Coding14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.ContactPoint14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Identifier14_50; -import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.*; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Boolean14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Code14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.DateTime14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.String14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.UnsignedInt14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Uri14_50; import org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionPropertyComponent; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.Enumeration; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/CompartmentDefinition14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/CompartmentDefinition14_50.java index b7c4ff699..426c014a2 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/CompartmentDefinition14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/CompartmentDefinition14_50.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv14_50.resources14_50; import org.hl7.fhir.convertors.context.ConversionContext14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.ContactPoint14_50; -import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.*; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Boolean14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Code14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.DateTime14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.String14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Uri14_50; import org.hl7.fhir.exceptions.FHIRException; public class CompartmentDefinition14_50 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/ConceptMap14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/ConceptMap14_50.java index b043d4953..790bac02f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/ConceptMap14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/ConceptMap14_50.java @@ -1,5 +1,8 @@ package org.hl7.fhir.convertors.conv14_50.resources14_50; +import java.util.ArrayList; +import java.util.List; + import org.hl7.fhir.convertors.SourceElementComponentWrapper; import org.hl7.fhir.convertors.VersionConvertorConstants; import org.hl7.fhir.convertors.context.ConversionContext14_50; @@ -7,7 +10,11 @@ import org.hl7.fhir.convertors.conv14_50.datatypes14_50.Reference14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.CodeableConcept14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.ContactPoint14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Identifier14_50; -import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.*; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Boolean14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Code14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.DateTime14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.String14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Uri14_50; import org.hl7.fhir.dstu2016may.model.Enumerations.ConceptMapEquivalence; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CanonicalType; @@ -19,9 +26,6 @@ import org.hl7.fhir.r5.model.Enumerations; import org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship; import org.hl7.fhir.r5.utils.ToolingExtensions; -import java.util.ArrayList; -import java.util.List; - public class ConceptMap14_50 { public static org.hl7.fhir.r5.model.ConceptMap convertConceptMap(org.hl7.fhir.dstu2016may.model.ConceptMap src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/Conformance14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/Conformance14_50.java index d56d89b15..196b28c71 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/Conformance14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/Conformance14_50.java @@ -6,7 +6,12 @@ import org.hl7.fhir.convertors.conv14_50.datatypes14_50.Reference14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.CodeableConcept14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Coding14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.ContactPoint14_50; -import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.*; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Boolean14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Code14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.DateTime14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.String14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.UnsignedInt14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Uri14_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestComponent; import org.hl7.fhir.r5.model.CapabilityStatement.CapabilityStatementRestResourceComponent; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/DataElement14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/DataElement14_50.java index 902c269e1..dfd579a03 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/DataElement14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/DataElement14_50.java @@ -5,7 +5,11 @@ import org.hl7.fhir.convertors.conv14_50.datatypes14_50.ElementDefinition14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.CodeableConcept14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.ContactPoint14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Identifier14_50; -import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.*; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Boolean14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.DateTime14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Id14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.String14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Uri14_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionKind; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/ImplementationGuide14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/ImplementationGuide14_50.java index 5ce47d596..81140d2e7 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/ImplementationGuide14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/ImplementationGuide14_50.java @@ -1,22 +1,23 @@ package org.hl7.fhir.convertors.conv14_50.resources14_50; +import java.util.List; + import org.hl7.fhir.convertors.VersionConvertorConstants; import org.hl7.fhir.convertors.context.ConversionContext14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.Reference14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.CodeableConcept14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.ContactPoint14_50; -import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.*; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Reference30_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Boolean14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Code14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.DateTime14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.String14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Uri14_50; import org.hl7.fhir.dstu2016may.model.ImplementationGuide; import org.hl7.fhir.dstu2016may.model.ImplementationGuide.GuidePageKind; import org.hl7.fhir.exceptions.FHIRException; -import org.hl7.fhir.r5.model.CanonicalType; -import org.hl7.fhir.r5.model.DataType; import org.hl7.fhir.r5.model.Enumeration; import org.hl7.fhir.r5.model.ImplementationGuide.GuidePageGeneration; -import java.util.List; - public class ImplementationGuide14_50 { public static org.hl7.fhir.dstu2016may.model.ImplementationGuide convertImplementationGuide(org.hl7.fhir.r5.model.ImplementationGuide src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/OperationDefinition14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/OperationDefinition14_50.java index f23a0ecbe..28ce4edb3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/OperationDefinition14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/OperationDefinition14_50.java @@ -5,7 +5,12 @@ import org.hl7.fhir.convertors.context.ConversionContext14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.Reference14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.CodeableConcept14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.ContactPoint14_50; -import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.*; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Boolean14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Code14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.DateTime14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Integer14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.String14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Uri14_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeType; import org.hl7.fhir.r5.model.DataType; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/Questionnaire14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/Questionnaire14_50.java index 9baf63828..442fabcf7 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/Questionnaire14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/Questionnaire14_50.java @@ -7,7 +7,11 @@ import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Codeab import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Coding14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.ContactPoint14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Identifier14_50; -import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.*; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Boolean14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.DateTime14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Integer14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.String14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Uri14_50; import org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemType; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeType; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/SearchParameter14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/SearchParameter14_50.java index 191416a88..66fef5020 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/SearchParameter14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/SearchParameter14_50.java @@ -4,12 +4,13 @@ import org.hl7.fhir.convertors.context.ConversionContext14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.ElementDefinition14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.CodeableConcept14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.ContactPoint14_50; -import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.*; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Boolean14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Code14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.DateTime14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.String14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Uri14_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeType; -import org.hl7.fhir.r5.model.Enumeration; -import org.hl7.fhir.r5.model.Enumerations; -import org.hl7.fhir.r5.model.Enumerations.AllResourceTypes; public class SearchParameter14_50 { @@ -41,7 +42,7 @@ public class SearchParameter14_50 { tgt.setRequirements(src.getPurpose()); if (src.hasCodeElement()) tgt.setCodeElement(Code14_50.convertCode(src.getCodeElement())); - for (Enumeration t : src.getBase()) tgt.setBase(t.asStringValue()); + for (CodeType t : src.getBase()) tgt.setBase(t.asStringValue()); if (src.hasType()) tgt.setTypeElement(Enumerations14_50.convertSearchParamType(src.getTypeElement())); if (src.hasDescription()) @@ -84,7 +85,7 @@ public class SearchParameter14_50 { tgt.setPurpose(src.getRequirements()); if (src.hasCodeElement()) tgt.setCodeElement(Code14_50.convertCode(src.getCodeElement())); - tgt.addBase(Enumerations.AllResourceTypes.fromCode(src.getBase())); + tgt.getBase().add(Code14_50.convertCode(src.getBaseElement())); if (src.hasType()) tgt.setTypeElement(Enumerations14_50.convertSearchParamType(src.getTypeElement())); if (src.hasDescription()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/StructureDefinition14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/StructureDefinition14_50.java index eebb729a6..c547f3278 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/StructureDefinition14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/StructureDefinition14_50.java @@ -6,7 +6,11 @@ import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Codeab import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Coding14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.ContactPoint14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Identifier14_50; -import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.*; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Boolean14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.DateTime14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Id14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.String14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Uri14_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.ElementDefinition; import org.hl7.fhir.r5.model.StructureDefinition.TypeDerivationRule; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/StructureMap14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/StructureMap14_50.java index dac3c4a64..c0ad74018 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/StructureMap14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/StructureMap14_50.java @@ -1,18 +1,21 @@ package org.hl7.fhir.convertors.conv14_50.resources14_50; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.CodeableConcept14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.ContactPoint14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Identifier14_50; -import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.*; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Boolean14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.DateTime14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Id14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.String14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Uri14_50; import org.hl7.fhir.dstu2016may.model.StructureMap; import org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapContextType; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleTargetParameterComponent; -import java.util.stream.Collectors; - public class StructureMap14_50 { public static org.hl7.fhir.r5.model.StructureMap convertStructureMap(org.hl7.fhir.dstu2016may.model.StructureMap src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/ValueSet14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/ValueSet14_50.java index c297e5d56..a9c187097 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/ValueSet14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/resources14_50/ValueSet14_50.java @@ -5,7 +5,12 @@ import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Codeab import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Coding14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.ContactPoint14_50; import org.hl7.fhir.convertors.conv14_50.datatypes14_50.complextypes14_50.Identifier14_50; -import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.*; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Boolean14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Code14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.DateTime14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Integer14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.String14_50; +import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.Uri14_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.BooleanType; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/VersionConvertor_30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/VersionConvertor_30_40.java index 2caca98da..9d73a678f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/VersionConvertor_30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/VersionConvertor_30_40.java @@ -1,5 +1,10 @@ package org.hl7.fhir.convertors.conv30_40; +import java.util.ArrayList; +import java.util.List; + +import javax.annotation.Nonnull; + import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_30_40; import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.BackboneElement30_40; @@ -8,10 +13,6 @@ import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Type30_40; import org.hl7.fhir.convertors.conv30_40.resources30_40.Resource30_40; import org.hl7.fhir.exceptions.FHIRException; -import javax.annotation.Nonnull; -import java.util.ArrayList; -import java.util.List; - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/datatypes30_40/Element30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/datatypes30_40/Element30_40.java index 3ebac466c..5f00af98a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/datatypes30_40/Element30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/datatypes30_40/Element30_40.java @@ -1,10 +1,10 @@ package org.hl7.fhir.convertors.conv30_40.datatypes30_40; +import java.util.Arrays; + import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_30_40; import org.hl7.fhir.exceptions.FHIRException; -import java.util.Arrays; - public class Element30_40 { public final BaseAdvisor_30_40 advisor; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/datatypes30_40/ElementDefinition30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/datatypes30_40/ElementDefinition30_40.java index 0138bebc6..beb931c19 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/datatypes30_40/ElementDefinition30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/datatypes30_40/ElementDefinition30_40.java @@ -1,20 +1,26 @@ package org.hl7.fhir.convertors.conv30_40.datatypes30_40; +import java.util.List; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.VersionConvertorConstants; import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.VersionConvertor_30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Coding30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Boolean30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Code30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Id30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Integer30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.MarkDown30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.UnsignedInt30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Uri30_40; import org.hl7.fhir.convertors.conv30_40.resources30_40.Enumerations30_40; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.ElementDefinition; import org.hl7.fhir.r4.model.Type; -import org.hl7.fhir.r4.model.UriType; import org.hl7.fhir.utilities.Utilities; -import java.util.List; -import java.util.stream.Collectors; - public class ElementDefinition30_40 { public static org.hl7.fhir.r4.model.ElementDefinition convertElementDefinition(org.hl7.fhir.dstu3.model.ElementDefinition src) throws FHIRException { if (src == null) return null; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/datatypes30_40/Type30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/datatypes30_40/Type30_40.java index 838ac5fcd..17f2955b7 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/datatypes30_40/Type30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/datatypes30_40/Type30_40.java @@ -1,8 +1,44 @@ package org.hl7.fhir.convertors.conv30_40.datatypes30_40; import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.*; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Address30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Age30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Annotation30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Attachment30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.CodeableConcept30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Coding30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.ContactPoint30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Count30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Distance30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Duration30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.HumanName30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Identifier30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Money30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Period30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Quantity30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Range30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Ratio30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.SampledData30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Signature30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.SimpleQuantity30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Timing30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Base64Binary30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Boolean30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Code30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Date30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.DateTime30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Decimal30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Id30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Instant30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Integer30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.MarkDown30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Oid30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.PositiveInt30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Time30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.UnsignedInt30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Uri30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Uuid30_40; import org.hl7.fhir.exceptions.FHIRException; public class Type30_40 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/datatypes30_40/complextypes30_40/Attachment30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/datatypes30_40/complextypes30_40/Attachment30_40.java index 20cbadff1..7d689005e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/datatypes30_40/complextypes30_40/Attachment30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/datatypes30_40/complextypes30_40/Attachment30_40.java @@ -1,7 +1,11 @@ package org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40; import org.hl7.fhir.convertors.context.ConversionContext30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Base64Binary30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Code30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.DateTime30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.UnsignedInt30_40; import org.hl7.fhir.exceptions.FHIRException; public class Attachment30_40 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/datatypes30_40/complextypes30_40/Timing30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/datatypes30_40/complextypes30_40/Timing30_40.java index 3ced008c0..241191ae2 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/datatypes30_40/complextypes30_40/Timing30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/datatypes30_40/complextypes30_40/Timing30_40.java @@ -1,12 +1,12 @@ package org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Decimal30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.UnsignedInt30_40; import org.hl7.fhir.exceptions.FHIRException; -import java.util.stream.Collectors; - public class Timing30_40 { public static org.hl7.fhir.r4.model.Timing convertTiming(org.hl7.fhir.dstu3.model.Timing src) throws FHIRException { if (src == null) return null; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ActivityDefinition30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ActivityDefinition30_40.java index b5b58c11f..3ff0b6c01 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ActivityDefinition30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ActivityDefinition30_40.java @@ -5,8 +5,17 @@ import org.hl7.fhir.convertors.conv30_40.datatypes30_40.ContactDetail30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Dosage30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Reference30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.RelatedArtifact30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.*; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.CodeableConcept30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Identifier30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Period30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.SimpleQuantity30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Timing30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Boolean30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Date30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.DateTime30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.MarkDown30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Uri30_40; import org.hl7.fhir.dstu3.model.ContactDetail; import org.hl7.fhir.dstu3.model.Contributor.ContributorType; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/AllergyIntolerance30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/AllergyIntolerance30_40.java index 2ab89a665..203e88d9a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/AllergyIntolerance30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/AllergyIntolerance30_40.java @@ -1,5 +1,7 @@ package org.hl7.fhir.convertors.conv30_40.resources30_40; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Reference30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Annotation30_40; @@ -9,8 +11,6 @@ import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Date import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; import org.hl7.fhir.exceptions.FHIRException; -import java.util.stream.Collectors; - public class AllergyIntolerance30_40 { public static org.hl7.fhir.dstu3.model.AllergyIntolerance convertAllergyIntolerance(org.hl7.fhir.r4.model.AllergyIntolerance src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Appointment30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Appointment30_40.java index 94e61ad65..086ed3d69 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Appointment30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Appointment30_40.java @@ -5,7 +5,11 @@ import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Reference30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.CodeableConcept30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Identifier30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Period30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.DateTime30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Instant30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.PositiveInt30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.UnsignedInt30_40; import org.hl7.fhir.exceptions.FHIRException; public class Appointment30_40 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Bundle30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Bundle30_40.java index 14af1ef19..f70c40d62 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Bundle30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Bundle30_40.java @@ -3,7 +3,11 @@ package org.hl7.fhir.convertors.conv30_40.resources30_40; import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Identifier30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Signature30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Decimal30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Instant30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.UnsignedInt30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Uri30_40; import org.hl7.fhir.exceptions.FHIRException; public class Bundle30_40 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CapabilityStatement30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CapabilityStatement30_40.java index f006ba0d3..025ebaccb 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CapabilityStatement30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CapabilityStatement30_40.java @@ -1,5 +1,7 @@ package org.hl7.fhir.convertors.conv30_40.resources30_40; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.VersionConvertorConstants; import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.ContactDetail30_40; @@ -7,11 +9,15 @@ import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Reference30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.CodeableConcept30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Coding30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Timing30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Boolean30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Code30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.DateTime30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.MarkDown30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.UnsignedInt30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Uri30_40; import org.hl7.fhir.exceptions.FHIRException; -import java.util.stream.Collectors; - public class CapabilityStatement30_40 { public static org.hl7.fhir.dstu3.model.CapabilityStatement convertCapabilityStatement(org.hl7.fhir.r4.model.CapabilityStatement src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CarePlan30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CarePlan30_40.java index 4f30f674b..84d78f915 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CarePlan30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CarePlan30_40.java @@ -1,16 +1,20 @@ package org.hl7.fhir.convertors.conv30_40.resources30_40; +import java.util.List; + import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Reference30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Annotation30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.CodeableConcept30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Identifier30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Period30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.SimpleQuantity30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Boolean30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; import org.hl7.fhir.dstu3.model.Reference; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.Coding; -import java.util.List; - public class CarePlan30_40 { private static final String CarePlanActivityDetailComponentExtension = "http://hl7.org/fhir/3.0/StructureDefinition/extension-CarePlan.activity.detail.category"; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CodeSystem30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CodeSystem30_40.java index 85f0a3833..bbbabcd57 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CodeSystem30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CodeSystem30_40.java @@ -1,16 +1,22 @@ package org.hl7.fhir.convertors.conv30_40.resources30_40; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.ContactDetail30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.CodeableConcept30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Coding30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Identifier30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Timing30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Boolean30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Code30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.DateTime30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.MarkDown30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.UnsignedInt30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Uri30_40; import org.hl7.fhir.exceptions.FHIRException; -import java.util.stream.Collectors; - public class CodeSystem30_40 { public static org.hl7.fhir.r4.model.CodeSystem convertCodeSystem(org.hl7.fhir.dstu3.model.CodeSystem src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CompartmentDefinition30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CompartmentDefinition30_40.java index a044773dc..1779e6f17 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CompartmentDefinition30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/CompartmentDefinition30_40.java @@ -4,7 +4,12 @@ import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.ContactDetail30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.CodeableConcept30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Timing30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Boolean30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Code30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.DateTime30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.MarkDown30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Uri30_40; import org.hl7.fhir.exceptions.FHIRException; public class CompartmentDefinition30_40 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Composition30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Composition30_40.java index 054a799c3..e5821f000 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Composition30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Composition30_40.java @@ -1,5 +1,7 @@ package org.hl7.fhir.convertors.conv30_40.resources30_40; +import java.util.Collections; + import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Narrative30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Reference30_40; @@ -10,8 +12,6 @@ import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Date import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; import org.hl7.fhir.exceptions.FHIRException; -import java.util.Collections; - public class Composition30_40 { public static org.hl7.fhir.dstu3.model.Composition convertComposition(org.hl7.fhir.r4.model.Composition src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ConceptMap30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ConceptMap30_40.java index 1e7fc95af..7582683d7 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ConceptMap30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ConceptMap30_40.java @@ -5,7 +5,12 @@ import org.hl7.fhir.convertors.conv30_40.datatypes30_40.ContactDetail30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.CodeableConcept30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Identifier30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Timing30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Boolean30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Code30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.DateTime30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.MarkDown30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Uri30_40; import org.hl7.fhir.exceptions.FHIRException; public class ConceptMap30_40 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Consent30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Consent30_40.java index 82918f266..1c783f74c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Consent30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Consent30_40.java @@ -1,5 +1,7 @@ package org.hl7.fhir.convertors.conv30_40.resources30_40; +import java.util.List; + import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.VersionConvertor_30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Reference30_40; @@ -13,8 +15,6 @@ import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.CodeableConcept; import org.hl7.fhir.r4.model.Identifier; -import java.util.List; - public class Consent30_40 { static public org.hl7.fhir.r4.model.Consent convertConsent(org.hl7.fhir.dstu3.model.Consent src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/DataElement30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/DataElement30_40.java index 33e7d4b5c..d13818d3a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/DataElement30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/DataElement30_40.java @@ -6,7 +6,12 @@ import org.hl7.fhir.convertors.conv30_40.datatypes30_40.ElementDefinition30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.CodeableConcept30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Identifier30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Timing30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Boolean30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.DateTime30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Id30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.MarkDown30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Uri30_40; import org.hl7.fhir.exceptions.FHIRException; public class DataElement30_40 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Device30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Device30_40.java index a60c22908..e2d639fda 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Device30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Device30_40.java @@ -1,6 +1,9 @@ package org.hl7.fhir.convertors.conv30_40.resources30_40; +import java.util.Collections; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Reference30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Annotation30_40; @@ -14,9 +17,6 @@ import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Uri3 import org.hl7.fhir.dstu3.model.Device; import org.hl7.fhir.exceptions.FHIRException; -import java.util.Collections; -import java.util.stream.Collectors; - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/DocumentReference30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/DocumentReference30_40.java index bc9868d8f..52b627f28 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/DocumentReference30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/DocumentReference30_40.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv30_40.resources30_40; import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Reference30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Attachment30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.CodeableConcept30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Coding30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Identifier30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Period30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Encounter30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Encounter30_40.java index bf0383799..d5dc27547 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Encounter30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Encounter30_40.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv30_40.resources30_40; import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Reference30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.CodeableConcept30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Coding30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Duration30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Identifier30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Period30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.PositiveInt30_40; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Endpoint30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Endpoint30_40.java index 5ec4d9d49..7c52a77c6 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Endpoint30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Endpoint30_40.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv30_40.resources30_40; import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Reference30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.CodeableConcept30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Coding30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.ContactPoint30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Identifier30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Period30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/GraphDefinition30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/GraphDefinition30_40.java index 107662330..6b7f7da02 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/GraphDefinition30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/GraphDefinition30_40.java @@ -4,7 +4,13 @@ import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.ContactDetail30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.CodeableConcept30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Timing30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Boolean30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Code30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.DateTime30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Integer30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.MarkDown30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Uri30_40; import org.hl7.fhir.exceptions.FHIRException; public class GraphDefinition30_40 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/HealthcareService30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/HealthcareService30_40.java index 427f32ae4..d7e46c88c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/HealthcareService30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/HealthcareService30_40.java @@ -1,8 +1,14 @@ package org.hl7.fhir.convertors.conv30_40.resources30_40; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Reference30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Attachment30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.CodeableConcept30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.ContactPoint30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Identifier30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Period30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Boolean30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Time30_40; @@ -10,8 +16,6 @@ import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.CodeableConcept; import org.hl7.fhir.r4.model.HealthcareService.HealthcareServiceEligibilityComponent; -import java.util.stream.Collectors; - public class HealthcareService30_40 { public static org.hl7.fhir.dstu3.model.HealthcareService convertHealthcareService(org.hl7.fhir.r4.model.HealthcareService src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ImagingStudy30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ImagingStudy30_40.java index 59b139b35..389b8edfe 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ImagingStudy30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ImagingStudy30_40.java @@ -1,5 +1,7 @@ package org.hl7.fhir.convertors.conv30_40.resources30_40; +import java.util.List; + import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.VersionConvertor_30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Reference30_40; @@ -13,8 +15,6 @@ import org.hl7.fhir.dstu3.model.Reference; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.CodeableConcept; -import java.util.List; - public class ImagingStudy30_40 { private static final String URN_DICOM_UID = "urn:dicom:uid"; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ImplementationGuide30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ImplementationGuide30_40.java index cb12ea4b1..842945042 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ImplementationGuide30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ImplementationGuide30_40.java @@ -1,17 +1,22 @@ package org.hl7.fhir.convertors.conv30_40.resources30_40; +import java.util.List; + import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.ContactDetail30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Reference30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.CodeableConcept30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Timing30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Boolean30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Code30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.DateTime30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.MarkDown30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Uri30_40; import org.hl7.fhir.dstu3.model.ImplementationGuide; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.Enumeration; -import java.util.List; - public class ImplementationGuide30_40 { public static org.hl7.fhir.dstu3.model.ImplementationGuide convertImplementationGuide(org.hl7.fhir.r4.model.ImplementationGuide src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Library30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Library30_40.java index 7d232f6e7..a04b24a51 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Library30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Library30_40.java @@ -5,8 +5,17 @@ import org.hl7.fhir.convertors.conv30_40.datatypes30_40.ContactDetail30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.ParameterDefinition30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.RelatedArtifact30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.TriggerDefinition30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.*; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Attachment30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.CodeableConcept30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Identifier30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Period30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Timing30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Boolean30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Date30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.DateTime30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.MarkDown30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Uri30_40; import org.hl7.fhir.dstu3.model.ContactDetail; import org.hl7.fhir.dstu3.model.Contributor.ContributorType; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Location30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Location30_40.java index 82d57a30c..ae413fc39 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Location30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Location30_40.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv30_40.resources30_40; import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Reference30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Address30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.CodeableConcept30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Coding30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.ContactPoint30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Identifier30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Decimal30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/MedicationAdministration30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/MedicationAdministration30_40.java index 8d52e93d3..14b085f99 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/MedicationAdministration30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/MedicationAdministration30_40.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv30_40.resources30_40; import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Reference30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Annotation30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.CodeableConcept30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Identifier30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Quantity30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.SimpleQuantity30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; import org.hl7.fhir.dstu3.model.SimpleQuantity; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/MedicationRequest30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/MedicationRequest30_40.java index bc31da767..45e562c29 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/MedicationRequest30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/MedicationRequest30_40.java @@ -3,7 +3,12 @@ package org.hl7.fhir.convertors.conv30_40.resources30_40; import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Dosage30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Reference30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Annotation30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.CodeableConcept30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Duration30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Identifier30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Period30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.SimpleQuantity30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Boolean30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.DateTime30_40; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/MessageDefinition30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/MessageDefinition30_40.java index 2f0b9f7a4..c8fe851ef 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/MessageDefinition30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/MessageDefinition30_40.java @@ -7,7 +7,13 @@ import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Codeab import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Coding30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Identifier30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Timing30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Boolean30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Code30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.DateTime30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.MarkDown30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.UnsignedInt30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Uri30_40; import org.hl7.fhir.exceptions.FHIRException; public class MessageDefinition30_40 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/OperationDefinition30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/OperationDefinition30_40.java index 73dd0cefe..8fb8cf804 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/OperationDefinition30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/OperationDefinition30_40.java @@ -6,7 +6,13 @@ import org.hl7.fhir.convertors.conv30_40.datatypes30_40.ContactDetail30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Reference30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.CodeableConcept30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Timing30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Boolean30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Code30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.DateTime30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Integer30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.MarkDown30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Uri30_40; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.Type; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Organization30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Organization30_40.java index 42a193c86..4dfd23805 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Organization30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Organization30_40.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv30_40.resources30_40; import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Reference30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Address30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.CodeableConcept30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.ContactPoint30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.HumanName30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Identifier30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Boolean30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Patient30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Patient30_40.java index 302c1b563..43d54d240 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Patient30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Patient30_40.java @@ -2,7 +2,13 @@ package org.hl7.fhir.convertors.conv30_40.resources30_40; import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Reference30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Address30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Attachment30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.CodeableConcept30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.ContactPoint30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.HumanName30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Identifier30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Period30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Boolean30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Date30_40; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Person30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Person30_40.java index 6b46a4e42..a24d49478 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Person30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Person30_40.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv30_40.resources30_40; import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Reference30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Address30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Attachment30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.ContactPoint30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.HumanName30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Identifier30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Boolean30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Date30_40; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/PlanDefinition30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/PlanDefinition30_40.java index f47e2bec2..597d236a0 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/PlanDefinition30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/PlanDefinition30_40.java @@ -5,8 +5,19 @@ import org.hl7.fhir.convertors.conv30_40.datatypes30_40.ContactDetail30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Reference30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.RelatedArtifact30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.TriggerDefinition30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.*; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.CodeableConcept30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Coding30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Duration30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Identifier30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Period30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Timing30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Boolean30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Date30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.DateTime30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Id30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.MarkDown30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Uri30_40; import org.hl7.fhir.dstu3.model.ContactDetail; import org.hl7.fhir.dstu3.model.Contributor.ContributorType; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Practitioner30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Practitioner30_40.java index 8e67be570..02e1284b9 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Practitioner30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Practitioner30_40.java @@ -2,7 +2,13 @@ package org.hl7.fhir.convertors.conv30_40.resources30_40; import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Reference30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Address30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Attachment30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.CodeableConcept30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.ContactPoint30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.HumanName30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Identifier30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Period30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Boolean30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Date30_40; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/PractitionerRole30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/PractitionerRole30_40.java index 817fe97bd..8a29b696c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/PractitionerRole30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/PractitionerRole30_40.java @@ -1,5 +1,7 @@ package org.hl7.fhir.convertors.conv30_40.resources30_40; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Reference30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.CodeableConcept30_40; @@ -11,8 +13,6 @@ import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Stri import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Time30_40; import org.hl7.fhir.exceptions.FHIRException; -import java.util.stream.Collectors; - public class PractitionerRole30_40 { public static org.hl7.fhir.r4.model.PractitionerRole convertPractitionerRole(org.hl7.fhir.dstu3.model.PractitionerRole src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ProcedureRequest30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ProcedureRequest30_40.java index 1dcd21478..bd96968cc 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ProcedureRequest30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ProcedureRequest30_40.java @@ -1,5 +1,7 @@ package org.hl7.fhir.convertors.conv30_40.resources30_40; +import java.util.List; + import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Reference30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Annotation30_40; @@ -10,8 +12,6 @@ import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Date import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.Reference; -import java.util.List; - public class ProcedureRequest30_40 { static public org.hl7.fhir.r4.model.ServiceRequest convertProcedureRequest(org.hl7.fhir.dstu3.model.ProcedureRequest src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Questionnaire30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Questionnaire30_40.java index d4a60ae55..7f941b333 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Questionnaire30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/Questionnaire30_40.java @@ -4,8 +4,18 @@ import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.ContactDetail30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Extension30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Reference30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.*; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.CodeableConcept30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Coding30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Identifier30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Period30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Timing30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Boolean30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Date30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.DateTime30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Integer30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.MarkDown30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Uri30_40; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.Questionnaire; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/RelatedPerson30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/RelatedPerson30_40.java index 37682d545..446d5f669 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/RelatedPerson30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/RelatedPerson30_40.java @@ -1,14 +1,20 @@ package org.hl7.fhir.convertors.conv30_40.resources30_40; +import java.util.List; + import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Reference30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Address30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Attachment30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.CodeableConcept30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.ContactPoint30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.HumanName30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Identifier30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Period30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Boolean30_40; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.CodeableConcept; -import java.util.List; - public class RelatedPerson30_40 { public static org.hl7.fhir.dstu3.model.RelatedPerson convertRelatedPerson(org.hl7.fhir.r4.model.RelatedPerson src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/SearchParameter30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/SearchParameter30_40.java index 7224bf699..619315bfa 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/SearchParameter30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/SearchParameter30_40.java @@ -1,15 +1,20 @@ package org.hl7.fhir.convertors.conv30_40.resources30_40; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.ContactDetail30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Reference30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.CodeableConcept30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Timing30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Boolean30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Code30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.DateTime30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.MarkDown30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Uri30_40; import org.hl7.fhir.exceptions.FHIRException; -import java.util.stream.Collectors; - public class SearchParameter30_40 { static public org.hl7.fhir.r4.model.Enumeration convertSearchComparator(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/StructureDefinition30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/StructureDefinition30_40.java index 427fa9487..7112fb48e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/StructureDefinition30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/StructureDefinition30_40.java @@ -7,7 +7,12 @@ import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Codeab import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Coding30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Identifier30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Timing30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Boolean30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.DateTime30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Id30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.MarkDown30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Uri30_40; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.utilities.Utilities; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/StructureMap30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/StructureMap30_40.java index 4b301e09c..cfa89c842 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/StructureMap30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/StructureMap30_40.java @@ -1,15 +1,21 @@ package org.hl7.fhir.convertors.conv30_40.resources30_40; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.ContactDetail30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.CodeableConcept30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Identifier30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Timing30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Boolean30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.DateTime30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Id30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Integer30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.MarkDown30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Uri30_40; import org.hl7.fhir.exceptions.FHIRException; -import java.util.stream.Collectors; - public class StructureMap30_40 { public static org.hl7.fhir.dstu3.model.StructureMap convertStructureMap(org.hl7.fhir.r4.model.StructureMap src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/TestReport30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/TestReport30_40.java index 372005669..81184f17e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/TestReport30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/TestReport30_40.java @@ -3,7 +3,11 @@ package org.hl7.fhir.convertors.conv30_40.resources30_40; import org.hl7.fhir.convertors.context.ConversionContext30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.Reference30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Identifier30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.DateTime30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Decimal30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.MarkDown30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Uri30_40; import org.hl7.fhir.exceptions.FHIRException; public class TestReport30_40 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/TestScript30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/TestScript30_40.java index 811af72f7..a80e630f9 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/TestScript30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/TestScript30_40.java @@ -7,7 +7,14 @@ import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Codeab import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Coding30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Identifier30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Timing30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Boolean30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Code30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.DateTime30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Id30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Integer30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.MarkDown30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Uri30_40; import org.hl7.fhir.exceptions.FHIRException; public class TestScript30_40 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ValueSet30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ValueSet30_40.java index 02c1683c1..71d6b49be 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ValueSet30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/ValueSet30_40.java @@ -6,7 +6,14 @@ import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Codeab import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Coding30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Identifier30_40; import org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40.Timing30_40; -import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.*; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Boolean30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Code30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Date30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.DateTime30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Integer30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.MarkDown30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.String30_40; +import org.hl7.fhir.convertors.conv30_40.datatypes30_40.primitivetypes30_40.Uri30_40; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.BooleanType; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/Resource30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/Resource30_50.java index 62f7bafc0..3c69ea958 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/Resource30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/Resource30_50.java @@ -7,7 +7,85 @@ import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Meta30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Narrative30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Code30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Id30_50; -import org.hl7.fhir.convertors.conv30_50.resources30_50.*; +import org.hl7.fhir.convertors.conv30_50.resources30_50.ActivityDefinition30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.AllergyIntolerance30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.Appointment30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.AppointmentResponse30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.AuditEvent30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.Basic30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.Binary30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.BodySite30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.Bundle30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.CapabilityStatement30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.CarePlan30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.CareTeam30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.ClinicalImpression30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.CodeSystem30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.Communication30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.CompartmentDefinition30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.Composition30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.ConceptMap30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.Condition30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.Consent30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.DataElement30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.DetectedIssue30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.DeviceUseStatement30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.DiagnosticReport30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.DocumentReference30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.Encounter30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.Endpoint30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.EpisodeOfCare30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.ExpansionProfile30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.FamilyMemberHistory30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.Flag30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.Goal30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.GraphDefinition30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.Group30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.HealthcareService30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.ImagingStudy30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.Immunization30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.ImplementationGuide30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.Library30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.Linkage30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.List30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.Location30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.Measure30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.Media30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.Medication30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.MedicationAdministration30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.MedicationDispense30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.MedicationRequest30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.MedicationStatement30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.MessageDefinition30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.MessageHeader30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.NamingSystem30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.Observation30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.OperationDefinition30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.OperationOutcome30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.Organization30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.Parameters30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.Patient30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.PaymentNotice30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.Person30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.PlanDefinition30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.Practitioner30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.PractitionerRole30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.Provenance30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.Questionnaire30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.QuestionnaireResponse30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.RelatedPerson30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.RiskAssessment30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.Schedule30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.SearchParameter30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.Slot30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.Specimen30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.StructureDefinition30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.StructureMap30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.Substance30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.SupplyDelivery30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.TestReport30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.TestScript30_50; +import org.hl7.fhir.convertors.conv30_50.resources30_50.ValueSet30_50; import org.hl7.fhir.exceptions.FHIRException; public class Resource30_50 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/VersionConvertor_30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/VersionConvertor_30_50.java index 8b329e3ef..3ea40bead 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/VersionConvertor_30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/VersionConvertor_30_50.java @@ -1,5 +1,10 @@ package org.hl7.fhir.convertors.conv30_50; +import java.util.ArrayList; +import java.util.List; + +import javax.annotation.Nonnull; + import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_30_50; import org.hl7.fhir.convertors.context.ConversionContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.BackboneElement30_50; @@ -7,10 +12,6 @@ import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Element30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Type30_50; import org.hl7.fhir.exceptions.FHIRException; -import javax.annotation.Nonnull; -import java.util.ArrayList; -import java.util.List; - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/datatypes30_50/Dosage30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/datatypes30_50/Dosage30_50.java index 6cec33890..9d1620498 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/datatypes30_50/Dosage30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/datatypes30_50/Dosage30_50.java @@ -8,8 +8,6 @@ import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Timing import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Boolean30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Integer30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; import org.hl7.fhir.exceptions.FHIRException; public class Dosage30_50 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/datatypes30_50/Element30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/datatypes30_50/Element30_50.java index 49d2a272a..6dcc899cf 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/datatypes30_50/Element30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/datatypes30_50/Element30_50.java @@ -1,10 +1,10 @@ package org.hl7.fhir.convertors.conv30_50.datatypes30_50; +import java.util.Arrays; + import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_30_50; import org.hl7.fhir.exceptions.FHIRException; -import java.util.Arrays; - public class Element30_50 { public final BaseAdvisor_30_50 advisor; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/datatypes30_50/ElementDefinition30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/datatypes30_50/ElementDefinition30_50.java index 9dd84c33f..30506c147 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/datatypes30_50/ElementDefinition30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/datatypes30_50/ElementDefinition30_50.java @@ -1,21 +1,27 @@ package org.hl7.fhir.convertors.conv30_50.datatypes30_50; +import java.util.List; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.VersionConvertorConstants; import org.hl7.fhir.convertors.context.ConversionContext30_50; import org.hl7.fhir.convertors.conv30_50.VersionConvertor_30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Coding30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Boolean30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Code30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Id30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Integer30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.MarkDown30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.UnsignedInt30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Uri30_50; import org.hl7.fhir.convertors.conv30_50.resources30_50.Enumerations30_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CanonicalType; import org.hl7.fhir.r5.model.DataType; import org.hl7.fhir.r5.model.ElementDefinition; -import org.hl7.fhir.r5.model.UriType; import org.hl7.fhir.utilities.Utilities; -import java.util.List; -import java.util.stream.Collectors; - public class ElementDefinition30_50 { public static org.hl7.fhir.r5.model.ElementDefinition convertElementDefinition(org.hl7.fhir.dstu3.model.ElementDefinition src) throws FHIRException { if (src == null) return null; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/datatypes30_50/Reference30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/datatypes30_50/Reference30_50.java index 0ea4dc547..c01716a95 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/datatypes30_50/Reference30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/datatypes30_50/Reference30_50.java @@ -5,7 +5,6 @@ import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Codeab import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identifier30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; import org.hl7.fhir.exceptions.FHIRException; -import org.hl7.fhir.r5.model.CodeableReference; public class Reference30_50 { public static org.hl7.fhir.r5.model.Reference convertReference(org.hl7.fhir.dstu3.model.Reference src) throws FHIRException { @@ -28,14 +27,21 @@ public class Reference30_50 { return tgt; } - static public CodeableReference convertReferenceToCodableReference(org.hl7.fhir.dstu3.model.Reference src) { - CodeableReference tgt = new CodeableReference(); + static public org.hl7.fhir.r5.model.CodeableReference convertReferenceToCodableReference(org.hl7.fhir.dstu3.model.Reference src) { + org.hl7.fhir.r5.model.CodeableReference tgt = new org.hl7.fhir.r5.model.CodeableReference(); tgt.setReference(convertReference(src)); return tgt; } - static public CodeableReference convertCodeableConceptToCodableReference(org.hl7.fhir.dstu3.model.CodeableConcept src) { - CodeableReference tgt = new CodeableReference(); + static public org.hl7.fhir.dstu3.model.Reference convertCodeableReferenceToReference(org.hl7.fhir.r5.model.CodeableReference src) { + org.hl7.fhir.dstu3.model.Reference tgt = new org.hl7.fhir.dstu3.model.Reference(); + ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); + tgt.setReference(src.getReference().getReference()); + return tgt; + } + + static public org.hl7.fhir.r5.model.CodeableReference convertCodeableConceptToCodableReference(org.hl7.fhir.dstu3.model.CodeableConcept src) { + org.hl7.fhir.r5.model.CodeableReference tgt = new org.hl7.fhir.r5.model.CodeableReference(); tgt.setConcept(CodeableConcept30_50.convertCodeableConcept(src)); return tgt; } diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/datatypes30_50/Type30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/datatypes30_50/Type30_50.java index caa8d2c24..27ebde866 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/datatypes30_50/Type30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/datatypes30_50/Type30_50.java @@ -1,8 +1,43 @@ package org.hl7.fhir.convertors.conv30_50.datatypes30_50; import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.*; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Address30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Age30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Annotation30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Attachment30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Coding30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.ContactPoint30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Count30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Distance30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Duration30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.HumanName30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identifier30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Money30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Period30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Quantity30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Range30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Ratio30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.SampledData30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Signature30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Timing30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Base64Binary30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Boolean30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Code30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Date30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.DateTime30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Decimal30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Id30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Instant30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Integer30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.MarkDown30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Oid30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.PositiveInt30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Time30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.UnsignedInt30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Uri30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Uuid30_50; import org.hl7.fhir.exceptions.FHIRException; public class Type30_50 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/datatypes30_50/complextypes30_50/Timing30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/datatypes30_50/complextypes30_50/Timing30_50.java index 61ffa0006..84604fb91 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/datatypes30_50/complextypes30_50/Timing30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/datatypes30_50/complextypes30_50/Timing30_50.java @@ -1,12 +1,12 @@ package org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Decimal30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.UnsignedInt30_50; import org.hl7.fhir.exceptions.FHIRException; -import java.util.stream.Collectors; - public class Timing30_50 { public static org.hl7.fhir.r5.model.Timing convertTiming(org.hl7.fhir.dstu3.model.Timing src) throws FHIRException { if (src == null) return null; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/datatypes30_50/primitivetypes30_50/Date30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/datatypes30_50/primitivetypes30_50/Date30_50.java index ac838d331..18aa2fed0 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/datatypes30_50/primitivetypes30_50/Date30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/datatypes30_50/primitivetypes30_50/Date30_50.java @@ -1,10 +1,7 @@ package org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50; -import org.hl7.fhir.convertors.context.ConversionContext10_50; import org.hl7.fhir.convertors.context.ConversionContext30_50; -import org.hl7.fhir.dstu3.model.DateType; import org.hl7.fhir.exceptions.FHIRException; -import org.hl7.fhir.r5.model.DateTimeType; public class Date30_50 { public static org.hl7.fhir.r5.model.DateType convertDate(org.hl7.fhir.dstu3.model.DateType src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ActivityDefinition30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ActivityDefinition30_50.java index 4a55ebf56..e87dcff07 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ActivityDefinition30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ActivityDefinition30_50.java @@ -1,12 +1,21 @@ package org.hl7.fhir.convertors.conv30_50.resources30_50; import org.hl7.fhir.convertors.context.ConversionContext30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.ContactDetail30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Dosage30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Reference30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.RelatedArtifact30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.UsageContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identifier30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Period30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.SimpleQuantity30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Boolean30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Date30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.DateTime30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.MarkDown30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Uri30_50; import org.hl7.fhir.dstu3.model.ContactDetail; import org.hl7.fhir.dstu3.model.Contributor.ContributorType; import org.hl7.fhir.exceptions.FHIRException; @@ -226,68 +235,65 @@ public class ActivityDefinition30_50 { return tgt; } - static public org.hl7.fhir.r5.model.Enumeration convertActivityDefinitionKind(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException { + static public org.hl7.fhir.r5.model.Enumeration convertActivityDefinitionKind(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException { if (src == null || src.isEmpty()) return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypeEnumFactory()); + org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypesEnumFactory()); ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); switch (src.getValue()) { case APPOINTMENT: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.APPOINTMENT); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.APPOINTMENT); break; case APPOINTMENTRESPONSE: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.APPOINTMENTRESPONSE); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.APPOINTMENTRESPONSE); break; case CAREPLAN: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.CAREPLAN); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.CAREPLAN); break; case CLAIM: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.CLAIM); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.CLAIM); break; case COMMUNICATIONREQUEST: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.COMMUNICATIONREQUEST); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.COMMUNICATIONREQUEST); break; case CONTRACT: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.CONTRACT); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.CONTRACT); break; case DEVICEREQUEST: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.DEVICEREQUEST); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.DEVICEREQUEST); break; case ENROLLMENTREQUEST: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.ENROLLMENTREQUEST); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.ENROLLMENTREQUEST); break; case IMMUNIZATIONRECOMMENDATION: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.IMMUNIZATIONRECOMMENDATION); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.IMMUNIZATIONRECOMMENDATION); break; case MEDICATIONREQUEST: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.MEDICATIONREQUEST); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.MEDICATIONREQUEST); break; case NUTRITIONORDER: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.NUTRITIONORDER); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.NUTRITIONORDER); break; case PROCEDUREREQUEST: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.SERVICEREQUEST); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.SERVICEREQUEST); break; case REFERRALREQUEST: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.SERVICEREQUEST); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.SERVICEREQUEST); break; case SUPPLYREQUEST: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.SUPPLYREQUEST); - break; - case TASK: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.TASK); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.SUPPLYREQUEST); break; case VISIONPRESCRIPTION: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.VISIONPRESCRIPTION); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.VISIONPRESCRIPTION); break; default: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.NULL); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.NULL); break; } return tgt; } - static public org.hl7.fhir.dstu3.model.Enumeration convertActivityDefinitionKind(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { + static public org.hl7.fhir.dstu3.model.Enumeration convertActivityDefinitionKind(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.ActivityDefinition.ActivityDefinitionKindEnumFactory()); @@ -332,9 +338,6 @@ public class ActivityDefinition30_50 { case SUPPLYREQUEST: tgt.setValue(org.hl7.fhir.dstu3.model.ActivityDefinition.ActivityDefinitionKind.SUPPLYREQUEST); break; - case TASK: - tgt.setValue(org.hl7.fhir.dstu3.model.ActivityDefinition.ActivityDefinitionKind.TASK); - break; case VISIONPRESCRIPTION: tgt.setValue(org.hl7.fhir.dstu3.model.ActivityDefinition.ActivityDefinitionKind.VISIONPRESCRIPTION); break; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/AllergyIntolerance30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/AllergyIntolerance30_50.java index ad93a4e84..f87f44be9 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/AllergyIntolerance30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/AllergyIntolerance30_50.java @@ -1,5 +1,7 @@ package org.hl7.fhir.convertors.conv30_50.resources30_50; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Reference30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Annotation30_50; @@ -13,8 +15,6 @@ import org.hl7.fhir.r5.model.CodeableConcept; import org.hl7.fhir.r5.model.CodeableReference; import org.hl7.fhir.r5.model.Coding; -import java.util.stream.Collectors; - public class AllergyIntolerance30_50 { public static org.hl7.fhir.dstu3.model.AllergyIntolerance convertAllergyIntolerance(org.hl7.fhir.r5.model.AllergyIntolerance src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Bundle30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Bundle30_50.java index cc6eb49cd..a52ec69bb 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Bundle30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Bundle30_50.java @@ -3,7 +3,11 @@ package org.hl7.fhir.convertors.conv30_50.resources30_50; import org.hl7.fhir.convertors.context.ConversionContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identifier30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Signature30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Decimal30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Instant30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.UnsignedInt30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Uri30_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.Bundle.LinkRelationTypes; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CapabilityStatement30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CapabilityStatement30_50.java index f4fedb71c..966d6dd86 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CapabilityStatement30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CapabilityStatement30_50.java @@ -1,5 +1,7 @@ package org.hl7.fhir.convertors.conv30_50.resources30_50; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.VersionConvertorConstants; import org.hl7.fhir.convertors.context.ConversionContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.ContactDetail30_50; @@ -7,11 +9,15 @@ import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Reference30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.UsageContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Coding30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Boolean30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Code30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.DateTime30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.MarkDown30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.UnsignedInt30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Uri30_50; import org.hl7.fhir.exceptions.FHIRException; -import java.util.stream.Collectors; - public class CapabilityStatement30_50 { public static org.hl7.fhir.r5.model.CapabilityStatement convertCapabilityStatement(org.hl7.fhir.dstu3.model.CapabilityStatement src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CarePlan30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CarePlan30_50.java index e7e13a124..4f6150b19 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CarePlan30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CarePlan30_50.java @@ -1,8 +1,14 @@ package org.hl7.fhir.convertors.conv30_50.resources30_50; +import java.util.List; + import org.hl7.fhir.convertors.context.ConversionContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Reference30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Annotation30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identifier30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Period30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.SimpleQuantity30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Boolean30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; import org.hl7.fhir.dstu3.model.Reference; @@ -10,8 +16,6 @@ import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeableReference; import org.hl7.fhir.r5.model.Coding; -import java.util.List; - public class CarePlan30_50 { private static final String CarePlanActivityDetailComponentExtension = "http://hl7.org/fhir/3.0/StructureDefinition/extension-CarePlan.activity.detail.category"; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CodeSystem30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CodeSystem30_50.java index 4b0289cef..3bce882f8 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CodeSystem30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CodeSystem30_50.java @@ -1,16 +1,22 @@ package org.hl7.fhir.convertors.conv30_50.resources30_50; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.ContactDetail30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.UsageContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Coding30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identifier30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Boolean30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Code30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.DateTime30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.MarkDown30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.UnsignedInt30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Uri30_50; import org.hl7.fhir.exceptions.FHIRException; -import java.util.stream.Collectors; - public class CodeSystem30_50 { public static org.hl7.fhir.dstu3.model.CodeSystem convertCodeSystem(org.hl7.fhir.r5.model.CodeSystem src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CompartmentDefinition30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CompartmentDefinition30_50.java index 377b9723f..21246f079 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CompartmentDefinition30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/CompartmentDefinition30_50.java @@ -4,7 +4,12 @@ import org.hl7.fhir.convertors.context.ConversionContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.ContactDetail30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.UsageContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Boolean30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Code30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.DateTime30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.MarkDown30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Uri30_50; import org.hl7.fhir.exceptions.FHIRException; public class CompartmentDefinition30_50 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Composition30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Composition30_50.java index f906a022c..990e44966 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Composition30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Composition30_50.java @@ -1,8 +1,8 @@ package org.hl7.fhir.convertors.conv30_50.resources30_50; -import org.hl7.fhir.convertors.context.ConversionContext10_50; +import java.util.Collections; + import org.hl7.fhir.convertors.context.ConversionContext30_50; -import org.hl7.fhir.convertors.context.ConversionContext40_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Narrative30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Reference30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; @@ -10,12 +10,9 @@ import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identi import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Period30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.DateTime30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Code43_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.RelatedArtifact; -import java.util.Collections; - public class Composition30_50 { public static org.hl7.fhir.r5.model.Composition convertComposition(org.hl7.fhir.dstu3.model.Composition src) throws FHIRException { @@ -41,7 +38,7 @@ public class Composition30_50 { if (src.hasTitle()) tgt.setTitleElement(String30_50.convertString(src.getTitleElement())); if (src.hasConfidentiality()) - tgt.getMeta().addSecurity().setCodeElement(Code30_50.convertCode(src.getConfidentialityElement())); + tgt.getMeta().addSecurity(convertDocumentConfidentiality(src.getConfidentialityElement())); for (org.hl7.fhir.dstu3.model.Composition.CompositionAttesterComponent t : src.getAttester()) tgt.addAttester(convertCompositionAttesterComponent(t)); if (src.hasCustodian()) @@ -77,10 +74,8 @@ public class Composition30_50 { for (org.hl7.fhir.r5.model.Reference t : src.getAuthor()) tgt.addAuthor(Reference30_50.convertReference(t)); if (src.hasTitle()) tgt.setTitleElement(String30_50.convertString(src.getTitleElement())); - if (src.hasConfidentiality()) - tgt.setConfidentiality(src.getMeta().getSecurityFirstRep().getCode()); - - tgt.setConfidentialityElement(convertDocumentConfidentiality(src.getConfidentialityElement())); + if (src.getMeta().hasSecurity()) + tgt.setConfidentialityElement(convertDocumentConfidentiality(src.getMeta().getSecurityFirstRep())); for (org.hl7.fhir.r5.model.Composition.CompositionAttesterComponent t : src.getAttester()) tgt.addAttester(convertCompositionAttesterComponent(t)); if (src.hasCustodian()) @@ -322,21 +317,21 @@ public class Composition30_50 { return tgt; } - static public org.hl7.fhir.r5.model.CodeType convertDocumentConfidentiality(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException { + static public org.hl7.fhir.r5.model.Coding convertDocumentConfidentiality(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException { if (src == null || src.isEmpty()) return null; - org.hl7.fhir.r5.model.CodeType tgt = new org.hl7.fhir.r5.model.CodeType(); + org.hl7.fhir.r5.model.Coding tgt = new org.hl7.fhir.r5.model.Coding(); ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); - tgt.setValue(src.getValue().toCode()); + tgt.setCode(src.getValue().toCode()); return tgt; } - static public org.hl7.fhir.dstu3.model.Enumeration convertDocumentConfidentiality(org.hl7.fhir.r5.model.CodeType src) throws FHIRException { + static public org.hl7.fhir.dstu3.model.Enumeration convertDocumentConfidentiality(org.hl7.fhir.r5.model.Coding src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.Composition.DocumentConfidentialityEnumFactory()); ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); - switch (src.getValue()) { + switch (src.getCode()) { case "U": tgt.setValue(org.hl7.fhir.dstu3.model.Composition.DocumentConfidentiality.U); break; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ConceptMap30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ConceptMap30_50.java index 342e56588..931e5aa90 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ConceptMap30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ConceptMap30_50.java @@ -2,12 +2,16 @@ package org.hl7.fhir.convertors.conv30_50.resources30_50; import org.hl7.fhir.convertors.VersionConvertorConstants; import org.hl7.fhir.convertors.context.ConversionContext30_50; -import org.hl7.fhir.convertors.conv14_50.datatypes14_50.primitivetypes14_50.String14_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.ContactDetail30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.UsageContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identifier30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Boolean30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Code30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.DateTime30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.MarkDown30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Uri30_50; import org.hl7.fhir.dstu3.model.Enumerations.ConceptMapEquivalence; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CanonicalType; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Condition30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Condition30_50.java index 12a975f66..5f960a775 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Condition30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Condition30_50.java @@ -9,7 +9,6 @@ import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Annota import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identifier30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.DateTime30_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeableConcept; import org.hl7.fhir.r5.model.Coding; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Consent30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Consent30_50.java index 876dbc42b..63a36bddb 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Consent30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Consent30_50.java @@ -38,59 +38,59 @@ public class Consent30_50 { return tgt; } - static public org.hl7.fhir.r5.model.Enumeration convertConsentDataMeaning(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Consent.ConsentDataMeaningEnumFactory()); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); - if (src.getValue() == null) { - tgt.setValue(org.hl7.fhir.r5.model.Consent.ConsentDataMeaning.NULL); - } else { - switch (src.getValue()) { - case INSTANCE: - tgt.setValue(org.hl7.fhir.r5.model.Consent.ConsentDataMeaning.INSTANCE); - break; - case RELATED: - tgt.setValue(org.hl7.fhir.r5.model.Consent.ConsentDataMeaning.RELATED); - break; - case DEPENDENTS: - tgt.setValue(org.hl7.fhir.r5.model.Consent.ConsentDataMeaning.DEPENDENTS); - break; - case AUTHOREDBY: - tgt.setValue(org.hl7.fhir.r5.model.Consent.ConsentDataMeaning.AUTHOREDBY); - break; - default: - tgt.setValue(org.hl7.fhir.r5.model.Consent.ConsentDataMeaning.NULL); - break; - } - } - return tgt; - } - - static public org.hl7.fhir.dstu3.model.Enumeration convertConsentDataMeaning(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) return null; - org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.Consent.ConsentDataMeaningEnumFactory()); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); - if (src.getValue() == null) { - tgt.setValue(org.hl7.fhir.dstu3.model.Consent.ConsentDataMeaning.NULL); - } else { - switch (src.getValue()) { - case INSTANCE: - tgt.setValue(org.hl7.fhir.dstu3.model.Consent.ConsentDataMeaning.INSTANCE); - break; - case RELATED: - tgt.setValue(org.hl7.fhir.dstu3.model.Consent.ConsentDataMeaning.RELATED); - break; - case DEPENDENTS: - tgt.setValue(org.hl7.fhir.dstu3.model.Consent.ConsentDataMeaning.DEPENDENTS); - break; - case AUTHOREDBY: - tgt.setValue(org.hl7.fhir.dstu3.model.Consent.ConsentDataMeaning.AUTHOREDBY); - break; - default: - tgt.setValue(org.hl7.fhir.dstu3.model.Consent.ConsentDataMeaning.NULL); - break; - } - } - return tgt; - } +// static public org.hl7.fhir.r5.model.Enumeration convertConsentDataMeaning(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException { +// if (src == null || src.isEmpty()) return null; +// org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Consent.ConsentDataMeaningEnumFactory()); +// ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); +// if (src.getValue() == null) { +// tgt.setValue(org.hl7.fhir.r5.model.Consent.ConsentDataMeaning.NULL); +// } else { +// switch (src.getValue()) { +// case INSTANCE: +// tgt.setValue(org.hl7.fhir.r5.model.Consent.ConsentDataMeaning.INSTANCE); +// break; +// case RELATED: +// tgt.setValue(org.hl7.fhir.r5.model.Consent.ConsentDataMeaning.RELATED); +// break; +// case DEPENDENTS: +// tgt.setValue(org.hl7.fhir.r5.model.Consent.ConsentDataMeaning.DEPENDENTS); +// break; +// case AUTHOREDBY: +// tgt.setValue(org.hl7.fhir.r5.model.Consent.ConsentDataMeaning.AUTHOREDBY); +// break; +// default: +// tgt.setValue(org.hl7.fhir.r5.model.Consent.ConsentDataMeaning.NULL); +// break; +// } +// } +// return tgt; +// } +// +// static public org.hl7.fhir.dstu3.model.Enumeration convertConsentDataMeaning(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { +// if (src == null || src.isEmpty()) return null; +// org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.Consent.ConsentDataMeaningEnumFactory()); +// ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); +// if (src.getValue() == null) { +// tgt.setValue(org.hl7.fhir.dstu3.model.Consent.ConsentDataMeaning.NULL); +// } else { +// switch (src.getValue()) { +// case INSTANCE: +// tgt.setValue(org.hl7.fhir.dstu3.model.Consent.ConsentDataMeaning.INSTANCE); +// break; +// case RELATED: +// tgt.setValue(org.hl7.fhir.dstu3.model.Consent.ConsentDataMeaning.RELATED); +// break; +// case DEPENDENTS: +// tgt.setValue(org.hl7.fhir.dstu3.model.Consent.ConsentDataMeaning.DEPENDENTS); +// break; +// case AUTHOREDBY: +// tgt.setValue(org.hl7.fhir.dstu3.model.Consent.ConsentDataMeaning.AUTHOREDBY); +// break; +// default: +// tgt.setValue(org.hl7.fhir.dstu3.model.Consent.ConsentDataMeaning.NULL); +// break; +// } +// } +// return tgt; +// } } \ No newline at end of file diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DataElement30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DataElement30_50.java index 8376bfb5b..f4a62d4df 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DataElement30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DataElement30_50.java @@ -6,7 +6,12 @@ import org.hl7.fhir.convertors.conv30_50.datatypes30_50.ElementDefinition30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.UsageContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identifier30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Boolean30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.DateTime30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Id30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.MarkDown30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Uri30_50; import org.hl7.fhir.exceptions.FHIRException; public class DataElement30_50 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DocumentReference30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DocumentReference30_50.java index 2156f1f4b..19d477f69 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DocumentReference30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DocumentReference30_50.java @@ -2,7 +2,10 @@ package org.hl7.fhir.convertors.conv30_50.resources30_50; import org.hl7.fhir.convertors.context.ConversionContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Reference30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Attachment30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identifier30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Period30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeableReference; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Encounter30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Encounter30_50.java index 652c4703f..125edde21 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Encounter30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Encounter30_50.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv30_50.resources30_50; import org.hl7.fhir.convertors.context.ConversionContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Reference30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Coding30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Duration30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identifier30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Period30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.PositiveInt30_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeableReference; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Endpoint30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Endpoint30_50.java index 724e58b7a..d4a076600 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Endpoint30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Endpoint30_50.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv30_50.resources30_50; import org.hl7.fhir.convertors.context.ConversionContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Reference30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Coding30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.ContactPoint30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identifier30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Period30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; import org.hl7.fhir.exceptions.FHIRException; @@ -46,7 +50,7 @@ public class Endpoint30_50 { if (src.hasStatus()) tgt.setStatusElement(convertEndpointStatus(src.getStatusElement())); if (src.hasConnectionType()) - tgt.addConnectionType(Coding30_50.convertCoding(src.getConnectionType())); + tgt.addConnectionType(Coding30_50.convertCodingToCodeableConcept(src.getConnectionType())); if (src.hasName()) tgt.setNameElement(String30_50.convertString(src.getNameElement())); if (src.hasManagingOrganization()) @@ -85,9 +89,6 @@ public class Endpoint30_50 { case ENTEREDINERROR: tgt.setValue(org.hl7.fhir.r5.model.Endpoint.EndpointStatus.ENTEREDINERROR); break; - case TEST: - tgt.setValue(org.hl7.fhir.r5.model.Endpoint.EndpointStatus.TEST); - break; default: tgt.setValue(org.hl7.fhir.r5.model.Endpoint.EndpointStatus.NULL); break; @@ -116,9 +117,6 @@ public class Endpoint30_50 { case ENTEREDINERROR: tgt.setValue(org.hl7.fhir.dstu3.model.Endpoint.EndpointStatus.ENTEREDINERROR); break; - case TEST: - tgt.setValue(org.hl7.fhir.dstu3.model.Endpoint.EndpointStatus.TEST); - break; default: tgt.setValue(org.hl7.fhir.dstu3.model.Endpoint.EndpointStatus.NULL); break; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/EpisodeOfCare30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/EpisodeOfCare30_50.java index af5ffdbda..789d25c09 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/EpisodeOfCare30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/EpisodeOfCare30_50.java @@ -35,7 +35,7 @@ public class EpisodeOfCare30_50 { tgt.addReferralRequest(Reference30_50.convertReference(t)); if (src.hasCareManager()) tgt.setCareManager(Reference30_50.convertReference(src.getCareManager())); - for (org.hl7.fhir.r5.model.Reference t : src.getTeam()) tgt.addTeam(Reference30_50.convertReference(t)); + for (org.hl7.fhir.r5.model.Reference t : src.getCareTeam()) tgt.addTeam(Reference30_50.convertReference(t)); for (org.hl7.fhir.r5.model.Reference t : src.getAccount()) tgt.addAccount(Reference30_50.convertReference(t)); return tgt; } @@ -65,7 +65,7 @@ public class EpisodeOfCare30_50 { tgt.addReferralRequest(Reference30_50.convertReference(t)); if (src.hasCareManager()) tgt.setCareManager(Reference30_50.convertReference(src.getCareManager())); - for (org.hl7.fhir.dstu3.model.Reference t : src.getTeam()) tgt.addTeam(Reference30_50.convertReference(t)); + for (org.hl7.fhir.dstu3.model.Reference t : src.getTeam()) tgt.addCareTeam(Reference30_50.convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getAccount()) tgt.addAccount(Reference30_50.convertReference(t)); return tgt; } @@ -166,7 +166,7 @@ public class EpisodeOfCare30_50 { if (src == null) return null; org.hl7.fhir.r5.model.EpisodeOfCare.DiagnosisComponent tgt = new org.hl7.fhir.r5.model.EpisodeOfCare.DiagnosisComponent(); ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); - if (src.hasCondition()) tgt.setCondition(Reference30_50.convertReference(src.getCondition())); + if (src.hasCondition()) tgt.setCondition(Reference30_50.convertReferenceToCodableReference(src.getCondition())); if (src.hasRole()) tgt.setRole(CodeableConcept30_50.convertCodeableConcept(src.getRole())); if (src.hasRank()) tgt.setRankElement(PositiveInt30_50.convertPositiveInt(src.getRankElement())); return tgt; @@ -176,7 +176,7 @@ public class EpisodeOfCare30_50 { if (src == null) return null; org.hl7.fhir.dstu3.model.EpisodeOfCare.DiagnosisComponent tgt = new org.hl7.fhir.dstu3.model.EpisodeOfCare.DiagnosisComponent(); ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); - if (src.hasCondition()) tgt.setCondition(Reference30_50.convertReference(src.getCondition())); + if (src.hasCondition()) tgt.setCondition(Reference30_50.convertCodeableReferenceToReference(src.getCondition())); if (src.hasRole()) tgt.setRole(CodeableConcept30_50.convertCodeableConcept(src.getRole())); if (src.hasRank()) tgt.setRankElement(PositiveInt30_50.convertPositiveInt(src.getRankElement())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/GraphDefinition30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/GraphDefinition30_50.java index 9ac2a8689..fb1e9bb20 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/GraphDefinition30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/GraphDefinition30_50.java @@ -4,7 +4,13 @@ import org.hl7.fhir.convertors.context.ConversionContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.ContactDetail30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.UsageContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Boolean30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Code30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.DateTime30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Integer30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.MarkDown30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Uri30_50; import org.hl7.fhir.exceptions.FHIRException; public class GraphDefinition30_50 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/HealthcareService30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/HealthcareService30_50.java index 96a96a25d..64cbc6324 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/HealthcareService30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/HealthcareService30_50.java @@ -2,17 +2,17 @@ package org.hl7.fhir.convertors.conv30_50.resources30_50; import org.hl7.fhir.convertors.context.ConversionContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Reference30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Attachment30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.ContactPoint30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identifier30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Boolean30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Time30_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeableConcept; import org.hl7.fhir.r5.model.ExtendedContactDetail; import org.hl7.fhir.r5.model.HealthcareService.HealthcareServiceEligibilityComponent; -import java.util.stream.Collectors; - public class HealthcareService30_50 { public static org.hl7.fhir.r5.model.HealthcareService convertHealthcareService(org.hl7.fhir.dstu3.model.HealthcareService src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ImagingStudy30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ImagingStudy30_50.java index 447c3d03d..aee662fd3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ImagingStudy30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ImagingStudy30_50.java @@ -1,5 +1,7 @@ package org.hl7.fhir.convertors.conv30_50.resources30_50; +import java.util.List; + import org.hl7.fhir.convertors.context.ConversionContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Reference30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; @@ -14,8 +16,6 @@ import org.hl7.fhir.r5.model.CodeableConcept; import org.hl7.fhir.r5.model.CodeableReference; import org.hl7.fhir.r5.model.Coding; -import java.util.List; - public class ImagingStudy30_50 { private static final String URN_DICOM_UID = "urn:dicom:uid"; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Immunization30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Immunization30_50.java index e44d8c25b..3cfa56a9f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Immunization30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Immunization30_50.java @@ -11,7 +11,6 @@ import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Date import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.DateTime30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; import org.hl7.fhir.exceptions.FHIRException; -import org.hl7.fhir.r4.model.codesystems.CoverageeligibilityresponseExAuthSupportEnumFactory; import org.hl7.fhir.r5.model.CodeableReference; public class Immunization30_50 { @@ -40,7 +39,7 @@ public class Immunization30_50 { if (src.hasLocation()) tgt.setLocation(Reference30_50.convertReference(src.getLocation())); if (src.hasManufacturer()) - tgt.setManufacturer(Reference30_50.convertReference(src.getManufacturer())); + tgt.setManufacturer(Reference30_50.convertReferenceToCodableReference(src.getManufacturer())); if (src.hasLotNumber()) tgt.setLotNumberElement(String30_50.convertString(src.getLotNumberElement())); if (src.hasExpirationDate()) @@ -83,7 +82,7 @@ public class Immunization30_50 { if (src.hasLocation()) tgt.setLocation(Reference30_50.convertReference(src.getLocation())); if (src.hasManufacturer()) - tgt.setManufacturer(Reference30_50.convertReference(src.getManufacturer())); + tgt.setManufacturer(Reference30_50.convertCodeableReferenceToReference(src.getManufacturer())); if (src.hasLotNumber()) tgt.setLotNumberElement(String30_50.convertString(src.getLotNumberElement())); if (src.hasExpirationDate()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ImplementationGuide30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ImplementationGuide30_50.java index 135cfcc53..56793307f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ImplementationGuide30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ImplementationGuide30_50.java @@ -1,18 +1,23 @@ package org.hl7.fhir.convertors.conv30_50.resources30_50; +import java.util.List; + import org.hl7.fhir.convertors.VersionConvertorConstants; import org.hl7.fhir.convertors.context.ConversionContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.ContactDetail30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Reference30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.UsageContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Boolean30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Code30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.DateTime30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.MarkDown30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Uri30_50; import org.hl7.fhir.dstu3.model.ImplementationGuide; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.Enumeration; -import java.util.List; - public class ImplementationGuide30_50 { public static org.hl7.fhir.dstu3.model.ImplementationGuide convertImplementationGuide(org.hl7.fhir.r5.model.ImplementationGuide src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Library30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Library30_50.java index 8b8a5a198..a1e3d7768 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Library30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Library30_50.java @@ -1,12 +1,21 @@ package org.hl7.fhir.convertors.conv30_50.resources30_50; import org.hl7.fhir.convertors.context.ConversionContext30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.ContactDetail30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.DataRequirement30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.ParameterDefinition30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.RelatedArtifact30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.UsageContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Attachment30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identifier30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Period30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Boolean30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Date30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.DateTime30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.MarkDown30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Uri30_50; import org.hl7.fhir.dstu3.model.ContactDetail; import org.hl7.fhir.dstu3.model.Contributor.ContributorType; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Location30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Location30_50.java index c636b5668..b0b4d718d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Location30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Location30_50.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv30_50.resources30_50; import org.hl7.fhir.convertors.context.ConversionContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Reference30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Address30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Coding30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.ContactPoint30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identifier30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Decimal30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Measure30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Measure30_50.java index cab0067a2..948f5e5ac 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Measure30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Measure30_50.java @@ -8,11 +8,17 @@ import org.hl7.fhir.convertors.conv30_50.datatypes30_50.UsageContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identifier30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Period30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Boolean30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Date30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.DateTime30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.MarkDown30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Uri30_50; import org.hl7.fhir.dstu3.model.ContactDetail; import org.hl7.fhir.dstu3.model.Contributor; import org.hl7.fhir.dstu3.model.Contributor.ContributorType; import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.r5.model.Measure.MeasureTermComponent; public class Measure30_50 { @@ -112,7 +118,7 @@ public class Measure30_50 { else tgt.setImprovementNotation(new org.hl7.fhir.r5.model.CodeableConcept().setText(src.getImprovementNotation())); } - for (org.hl7.fhir.dstu3.model.MarkdownType m : src.getDefinition()) tgt.addDefinition(m.getValue()); + for (org.hl7.fhir.dstu3.model.MarkdownType m : src.getDefinition()) tgt.addTerm().setDefinition(m.getValue()); if (src.hasGuidance()) tgt.setGuidanceElement(MarkDown30_50.convertMarkdown(src.getGuidanceElement())); for (org.hl7.fhir.dstu3.model.Measure.MeasureGroupComponent g : src.getGroup()) @@ -223,7 +229,8 @@ public class Measure30_50 { else if (cc.hasCode() && cc.getCode().equals("decrease")) tgt.setImprovementNotation(cc.getCode()); } - for (org.hl7.fhir.r5.model.MarkdownType m : src.getDefinition()) tgt.addDefinition(m.getValue()); + for (MeasureTermComponent t : src.getTerm()) + tgt.getDefinition().add(MarkDown30_50.convertMarkdown(t.getDefinitionElement())); if (src.hasGuidance()) tgt.setGuidanceElement(MarkDown30_50.convertMarkdown(src.getGuidanceElement())); for (org.hl7.fhir.r5.model.Measure.MeasureGroupComponent g : src.getGroup()) tgt.addGroup(convertMeasureGroup(g)); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MedicationAdministration30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MedicationAdministration30_50.java index 7397a1339..9319bc002 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MedicationAdministration30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MedicationAdministration30_50.java @@ -20,7 +20,7 @@ public class MedicationAdministration30_50 { ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyDomainResource(src, tgt); for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(Identifier30_50.convertIdentifier(t)); - for (org.hl7.fhir.r5.model.UriType t : src.getInstantiatesUri()) tgt.addDefinition().setReference(t.getValue()); +// for (org.hl7.fhir.r5.model.UriType t : src.getInstantiatesUri()) tgt.addDefinition().setReference(t.getValue()); for (org.hl7.fhir.r5.model.Reference t : src.getPartOf()) tgt.addPartOf(Reference30_50.convertReference(t)); if (src.hasStatus()) tgt.setStatusElement(convertMedicationAdministrationStatus(src.getStatusElement())); @@ -64,7 +64,7 @@ public class MedicationAdministration30_50 { ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyDomainResource(src, tgt); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(Identifier30_50.convertIdentifier(t)); - for (org.hl7.fhir.dstu3.model.Reference t : src.getDefinition()) tgt.addInstantiatesUri(t.getReference()); +// for (org.hl7.fhir.dstu3.model.Reference t : src.getDefinition()) tgt.addInstantiatesUri(t.getReference()); for (org.hl7.fhir.dstu3.model.Reference t : src.getPartOf()) tgt.addPartOf(Reference30_50.convertReference(t)); if (src.hasStatus()) tgt.setStatusElement(convertMedicationAdministrationStatus(src.getStatusElement())); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MedicationRequest30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MedicationRequest30_50.java index 256579add..e1a135ac0 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MedicationRequest30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MedicationRequest30_50.java @@ -3,7 +3,12 @@ package org.hl7.fhir.convertors.conv30_50.resources30_50; import org.hl7.fhir.convertors.context.ConversionContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Dosage30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Reference30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Annotation30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Duration30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identifier30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Period30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.SimpleQuantity30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Boolean30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.DateTime30_50; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MessageDefinition30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MessageDefinition30_50.java index e65055db9..efe85adec 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MessageDefinition30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MessageDefinition30_50.java @@ -7,7 +7,13 @@ import org.hl7.fhir.convertors.conv30_50.datatypes30_50.UsageContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Coding30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identifier30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Boolean30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Code30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.DateTime30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.MarkDown30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.UnsignedInt30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Uri30_50; import org.hl7.fhir.exceptions.FHIRException; public class MessageDefinition30_50 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MessageHeader30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MessageHeader30_50.java index 4009c735f..cc7fd1b1c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MessageHeader30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/MessageHeader30_50.java @@ -5,7 +5,6 @@ import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Reference30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Coding30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.ContactPoint30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Id30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/OperationDefinition30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/OperationDefinition30_50.java index f92a11026..2699442e2 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/OperationDefinition30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/OperationDefinition30_50.java @@ -6,7 +6,13 @@ import org.hl7.fhir.convertors.conv30_50.datatypes30_50.ContactDetail30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Reference30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.UsageContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Boolean30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Code30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.DateTime30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Integer30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.MarkDown30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Uri30_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.DataType; import org.hl7.fhir.r5.model.Enumerations; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Organization30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Organization30_50.java index 4721d4746..70c987f06 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Organization30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Organization30_50.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv30_50.resources30_50; import org.hl7.fhir.convertors.context.ConversionContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Reference30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Address30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.ContactPoint30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.HumanName30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identifier30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Boolean30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; import org.hl7.fhir.exceptions.FHIRException; @@ -24,9 +28,9 @@ public class Organization30_50 { if (src.hasName()) tgt.setNameElement(String30_50.convertString(src.getNameElement())); for (org.hl7.fhir.dstu3.model.StringType t : src.getAlias()) tgt.addAlias(t.getValue()); + for (org.hl7.fhir.dstu3.model.Address t : src.getAddress()) tgt.addContact().setAddress(Address30_50.convertAddress(t)); for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.getContactFirstRep().addTelecom(ContactPoint30_50.convertContactPoint(t)); - for (org.hl7.fhir.dstu3.model.Address t : src.getAddress()) tgt.addAddress(Address30_50.convertAddress(t)); if (src.hasPartOf()) tgt.setPartOf(Reference30_50.convertReference(src.getPartOf())); for (org.hl7.fhir.dstu3.model.Organization.OrganizationContactComponent t : src.getContact()) @@ -52,7 +56,9 @@ public class Organization30_50 { for (ExtendedContactDetail t1 : src.getContact()) for (org.hl7.fhir.r5.model.ContactPoint t : t1.getTelecom()) tgt.addTelecom(ContactPoint30_50.convertContactPoint(t)); - for (org.hl7.fhir.r5.model.Address t : src.getAddress()) tgt.addAddress(Address30_50.convertAddress(t)); + for (ExtendedContactDetail t : src.getContact()) + if (t.hasAddress()) + tgt.addAddress(Address30_50.convertAddress(t.getAddress())); if (src.hasPartOf()) tgt.setPartOf(Reference30_50.convertReference(src.getPartOf())); for (org.hl7.fhir.r5.model.ExtendedContactDetail t : src.getContact()) @@ -68,8 +74,8 @@ public class Organization30_50 { ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); if (src.hasPurpose()) tgt.setPurpose(CodeableConcept30_50.convertCodeableConcept(src.getPurpose())); - if (src.hasName()) - tgt.setName(HumanName30_50.convertHumanName(src.getName())); + for (org.hl7.fhir.r5.model.HumanName t : src.getName()) + tgt.setName(HumanName30_50.convertHumanName(t)); for (org.hl7.fhir.r5.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(ContactPoint30_50.convertContactPoint(t)); if (src.hasAddress()) @@ -85,7 +91,7 @@ public class Organization30_50 { if (src.hasPurpose()) tgt.setPurpose(CodeableConcept30_50.convertCodeableConcept(src.getPurpose())); if (src.hasName()) - tgt.setName(HumanName30_50.convertHumanName(src.getName())); + tgt.addName(HumanName30_50.convertHumanName(src.getName())); for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(ContactPoint30_50.convertContactPoint(t)); if (src.hasAddress()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Patient30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Patient30_50.java index a6db0c9da..98ac4f92e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Patient30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Patient30_50.java @@ -2,7 +2,13 @@ package org.hl7.fhir.convertors.conv30_50.resources30_50; import org.hl7.fhir.convertors.context.ConversionContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Reference30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Address30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Attachment30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.ContactPoint30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.HumanName30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identifier30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Period30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Boolean30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Date30_50; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Person30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Person30_50.java index 08d58a90a..ed1bc8adf 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Person30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Person30_50.java @@ -2,7 +2,11 @@ package org.hl7.fhir.convertors.conv30_50.resources30_50; import org.hl7.fhir.convertors.context.ConversionContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Reference30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Address30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Attachment30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.ContactPoint30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.HumanName30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identifier30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Boolean30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Date30_50; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/PlanDefinition30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/PlanDefinition30_50.java index df999a276..1ab241239 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/PlanDefinition30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/PlanDefinition30_50.java @@ -1,9 +1,24 @@ package org.hl7.fhir.convertors.conv30_50.resources30_50; import org.hl7.fhir.convertors.context.ConversionContext30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.*; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.*; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.ContactDetail30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.DataRequirement30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Reference30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.RelatedArtifact30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.TriggerDefinition30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.UsageContext30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Coding30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Duration30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identifier30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Period30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Boolean30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Date30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.DateTime30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Id30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.MarkDown30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Uri30_50; import org.hl7.fhir.dstu3.model.ContactDetail; import org.hl7.fhir.dstu3.model.Contributor.ContributorType; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Practitioner30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Practitioner30_50.java index fac867432..6d38e89d3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Practitioner30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Practitioner30_50.java @@ -2,7 +2,13 @@ package org.hl7.fhir.convertors.conv30_50.resources30_50; import org.hl7.fhir.convertors.context.ConversionContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Reference30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Address30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Attachment30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.ContactPoint30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.HumanName30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identifier30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Period30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Boolean30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Date30_50; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/PractitionerRole30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/PractitionerRole30_50.java index 21bdf6eab..2913c5053 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/PractitionerRole30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/PractitionerRole30_50.java @@ -7,12 +7,8 @@ import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Contac import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identifier30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Period30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Boolean30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Time30_50; import org.hl7.fhir.exceptions.FHIRException; -import java.util.stream.Collectors; - public class PractitionerRole30_50 { public static org.hl7.fhir.dstu3.model.PractitionerRole convertPractitionerRole(org.hl7.fhir.r5.model.PractitionerRole src) throws FHIRException { @@ -37,14 +33,15 @@ public class PractitionerRole30_50 { for (org.hl7.fhir.r5.model.Reference t : src.getLocation()) tgt.addLocation(Reference30_50.convertReference(t)); for (org.hl7.fhir.r5.model.Reference t : src.getHealthcareService()) tgt.addHealthcareService(Reference30_50.convertReference(t)); - for (org.hl7.fhir.r5.model.ContactPoint t : src.getTelecom()) - tgt.addTelecom(ContactPoint30_50.convertContactPoint(t)); - for (org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent t : src.getAvailableTime()) - tgt.addAvailableTime(convertPractitionerRoleAvailableTimeComponent(t)); - for (org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent t : src.getNotAvailable()) - tgt.addNotAvailable(convertPractitionerRoleNotAvailableComponent(t)); - if (src.hasAvailabilityExceptions()) - tgt.setAvailabilityExceptionsElement(String30_50.convertString(src.getAvailabilityExceptionsElement())); + for (org.hl7.fhir.r5.model.ExtendedContactDetail t1 : src.getContact()) + for (org.hl7.fhir.r5.model.ContactPoint t : t1.getTelecom()) + tgt.addTelecom(ContactPoint30_50.convertContactPoint(t)); +// for (org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent t : src.getAvailableTime()) +// tgt.addAvailableTime(convertPractitionerRoleAvailableTimeComponent(t)); +// for (org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent t : src.getNotAvailable()) +// tgt.addNotAvailable(convertPractitionerRoleNotAvailableComponent(t)); +// if (src.hasAvailabilityExceptions()) +// tgt.setAvailabilityExceptionsElement(String30_50.convertString(src.getAvailabilityExceptionsElement())); for (org.hl7.fhir.r5.model.Reference t : src.getEndpoint()) tgt.addEndpoint(Reference30_50.convertReference(t)); return tgt; } @@ -72,143 +69,143 @@ public class PractitionerRole30_50 { for (org.hl7.fhir.dstu3.model.Reference t : src.getHealthcareService()) tgt.addHealthcareService(Reference30_50.convertReference(t)); for (org.hl7.fhir.dstu3.model.ContactPoint t : src.getTelecom()) - tgt.addTelecom(ContactPoint30_50.convertContactPoint(t)); - for (org.hl7.fhir.dstu3.model.PractitionerRole.PractitionerRoleAvailableTimeComponent t : src.getAvailableTime()) - tgt.addAvailableTime(convertPractitionerRoleAvailableTimeComponent(t)); - for (org.hl7.fhir.dstu3.model.PractitionerRole.PractitionerRoleNotAvailableComponent t : src.getNotAvailable()) - tgt.addNotAvailable(convertPractitionerRoleNotAvailableComponent(t)); - if (src.hasAvailabilityExceptions()) - tgt.setAvailabilityExceptionsElement(String30_50.convertString(src.getAvailabilityExceptionsElement())); + tgt.getContactFirstRep().addTelecom(ContactPoint30_50.convertContactPoint(t)); +// for (org.hl7.fhir.dstu3.model.PractitionerRole.PractitionerRoleAvailableTimeComponent t : src.getAvailableTime()) +// tgt.addAvailableTime(convertPractitionerRoleAvailableTimeComponent(t)); +// for (org.hl7.fhir.dstu3.model.PractitionerRole.PractitionerRoleNotAvailableComponent t : src.getNotAvailable()) +// tgt.addNotAvailable(convertPractitionerRoleNotAvailableComponent(t)); +// if (src.hasAvailabilityExceptions()) +// tgt.setAvailabilityExceptionsElement(String30_50.convertString(src.getAvailabilityExceptionsElement())); for (org.hl7.fhir.dstu3.model.Reference t : src.getEndpoint()) tgt.addEndpoint(Reference30_50.convertReference(t)); return tgt; } +// +// public static org.hl7.fhir.dstu3.model.PractitionerRole.PractitionerRoleAvailableTimeComponent convertPractitionerRoleAvailableTimeComponent(org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent src) throws FHIRException { +// if (src == null) +// return null; +// org.hl7.fhir.dstu3.model.PractitionerRole.PractitionerRoleAvailableTimeComponent tgt = new org.hl7.fhir.dstu3.model.PractitionerRole.PractitionerRoleAvailableTimeComponent(); +// ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); +// tgt.setDaysOfWeek(src.getDaysOfWeek().stream() +// .map(PractitionerRole30_50::convertDaysOfWeek) +// .collect(Collectors.toList())); +// if (src.hasAllDay()) +// tgt.setAllDayElement(Boolean30_50.convertBoolean(src.getAllDayElement())); +// if (src.hasAvailableStartTime()) +// tgt.setAvailableStartTimeElement(Time30_50.convertTime(src.getAvailableStartTimeElement())); +// if (src.hasAvailableEndTime()) +// tgt.setAvailableEndTimeElement(Time30_50.convertTime(src.getAvailableEndTimeElement())); +// return tgt; +// } - public static org.hl7.fhir.dstu3.model.PractitionerRole.PractitionerRoleAvailableTimeComponent convertPractitionerRoleAvailableTimeComponent(org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.dstu3.model.PractitionerRole.PractitionerRoleAvailableTimeComponent tgt = new org.hl7.fhir.dstu3.model.PractitionerRole.PractitionerRoleAvailableTimeComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); - tgt.setDaysOfWeek(src.getDaysOfWeek().stream() - .map(PractitionerRole30_50::convertDaysOfWeek) - .collect(Collectors.toList())); - if (src.hasAllDay()) - tgt.setAllDayElement(Boolean30_50.convertBoolean(src.getAllDayElement())); - if (src.hasAvailableStartTime()) - tgt.setAvailableStartTimeElement(Time30_50.convertTime(src.getAvailableStartTimeElement())); - if (src.hasAvailableEndTime()) - tgt.setAvailableEndTimeElement(Time30_50.convertTime(src.getAvailableEndTimeElement())); - return tgt; - } +// public static org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent convertPractitionerRoleAvailableTimeComponent(org.hl7.fhir.dstu3.model.PractitionerRole.PractitionerRoleAvailableTimeComponent src) throws FHIRException { +// if (src == null) +// return null; +// org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent tgt = new org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent(); +// ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); +// tgt.setDaysOfWeek(src.getDaysOfWeek().stream() +// .map(PractitionerRole30_50::convertDaysOfWeek) +// .collect(Collectors.toList())); +// if (src.hasAllDay()) +// tgt.setAllDayElement(Boolean30_50.convertBoolean(src.getAllDayElement())); +// if (src.hasAvailableStartTime()) +// tgt.setAvailableStartTimeElement(Time30_50.convertTime(src.getAvailableStartTimeElement())); +// if (src.hasAvailableEndTime()) +// tgt.setAvailableEndTimeElement(Time30_50.convertTime(src.getAvailableEndTimeElement())); +// return tgt; +// } +// +// public static org.hl7.fhir.dstu3.model.PractitionerRole.PractitionerRoleNotAvailableComponent convertPractitionerRoleNotAvailableComponent(org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent src) throws FHIRException { +// if (src == null) +// return null; +// org.hl7.fhir.dstu3.model.PractitionerRole.PractitionerRoleNotAvailableComponent tgt = new org.hl7.fhir.dstu3.model.PractitionerRole.PractitionerRoleNotAvailableComponent(); +// ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); +// if (src.hasDescription()) +// tgt.setDescriptionElement(String30_50.convertString(src.getDescriptionElement())); +// if (src.hasDuring()) +// tgt.setDuring(Period30_50.convertPeriod(src.getDuring())); +// return tgt; +// } +// +// public static org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent convertPractitionerRoleNotAvailableComponent(org.hl7.fhir.dstu3.model.PractitionerRole.PractitionerRoleNotAvailableComponent src) throws FHIRException { +// if (src == null) +// return null; +// org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent tgt = new org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent(); +// ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); +// if (src.hasDescription()) +// tgt.setDescriptionElement(String30_50.convertString(src.getDescriptionElement())); +// if (src.hasDuring()) +// tgt.setDuring(Period30_50.convertPeriod(src.getDuring())); +// return tgt; +// } - public static org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent convertPractitionerRoleAvailableTimeComponent(org.hl7.fhir.dstu3.model.PractitionerRole.PractitionerRoleAvailableTimeComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent tgt = new org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); - tgt.setDaysOfWeek(src.getDaysOfWeek().stream() - .map(PractitionerRole30_50::convertDaysOfWeek) - .collect(Collectors.toList())); - if (src.hasAllDay()) - tgt.setAllDayElement(Boolean30_50.convertBoolean(src.getAllDayElement())); - if (src.hasAvailableStartTime()) - tgt.setAvailableStartTimeElement(Time30_50.convertTime(src.getAvailableStartTimeElement())); - if (src.hasAvailableEndTime()) - tgt.setAvailableEndTimeElement(Time30_50.convertTime(src.getAvailableEndTimeElement())); - return tgt; - } - - public static org.hl7.fhir.dstu3.model.PractitionerRole.PractitionerRoleNotAvailableComponent convertPractitionerRoleNotAvailableComponent(org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.dstu3.model.PractitionerRole.PractitionerRoleNotAvailableComponent tgt = new org.hl7.fhir.dstu3.model.PractitionerRole.PractitionerRoleNotAvailableComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); - if (src.hasDescription()) - tgt.setDescriptionElement(String30_50.convertString(src.getDescriptionElement())); - if (src.hasDuring()) - tgt.setDuring(Period30_50.convertPeriod(src.getDuring())); - return tgt; - } - - public static org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent convertPractitionerRoleNotAvailableComponent(org.hl7.fhir.dstu3.model.PractitionerRole.PractitionerRoleNotAvailableComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent tgt = new org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent(); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyBackboneElement(src,tgt); - if (src.hasDescription()) - tgt.setDescriptionElement(String30_50.convertString(src.getDescriptionElement())); - if (src.hasDuring()) - tgt.setDuring(Period30_50.convertPeriod(src.getDuring())); - return tgt; - } - - static public org.hl7.fhir.dstu3.model.Enumeration convertDaysOfWeek(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.PractitionerRole.DaysOfWeekEnumFactory()); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); - switch (src.getValue()) { - case MON: - tgt.setValue(org.hl7.fhir.dstu3.model.PractitionerRole.DaysOfWeek.MON); - break; - case TUE: - tgt.setValue(org.hl7.fhir.dstu3.model.PractitionerRole.DaysOfWeek.TUE); - break; - case WED: - tgt.setValue(org.hl7.fhir.dstu3.model.PractitionerRole.DaysOfWeek.WED); - break; - case THU: - tgt.setValue(org.hl7.fhir.dstu3.model.PractitionerRole.DaysOfWeek.THU); - break; - case FRI: - tgt.setValue(org.hl7.fhir.dstu3.model.PractitionerRole.DaysOfWeek.FRI); - break; - case SAT: - tgt.setValue(org.hl7.fhir.dstu3.model.PractitionerRole.DaysOfWeek.SAT); - break; - case SUN: - tgt.setValue(org.hl7.fhir.dstu3.model.PractitionerRole.DaysOfWeek.SUN); - break; - default: - tgt.setValue(org.hl7.fhir.dstu3.model.PractitionerRole.DaysOfWeek.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r5.model.Enumeration convertDaysOfWeek(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.DaysOfWeekEnumFactory()); - ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); - if (src.getValue() == null) { - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.NULL); - } else { - switch (src.getValue()) { - case MON: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.MON); - break; - case TUE: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.TUE); - break; - case WED: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.WED); - break; - case THU: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.THU); - break; - case FRI: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.FRI); - break; - case SAT: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.SAT); - break; - case SUN: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.SUN); - break; - default: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.NULL); - break; - } - } - return tgt; - } +// static public org.hl7.fhir.dstu3.model.Enumeration convertDaysOfWeek(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { +// if (src == null || src.isEmpty()) +// return null; +// org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.PractitionerRole.DaysOfWeekEnumFactory()); +// ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); +// switch (src.getValue()) { +// case MON: +// tgt.setValue(org.hl7.fhir.dstu3.model.PractitionerRole.DaysOfWeek.MON); +// break; +// case TUE: +// tgt.setValue(org.hl7.fhir.dstu3.model.PractitionerRole.DaysOfWeek.TUE); +// break; +// case WED: +// tgt.setValue(org.hl7.fhir.dstu3.model.PractitionerRole.DaysOfWeek.WED); +// break; +// case THU: +// tgt.setValue(org.hl7.fhir.dstu3.model.PractitionerRole.DaysOfWeek.THU); +// break; +// case FRI: +// tgt.setValue(org.hl7.fhir.dstu3.model.PractitionerRole.DaysOfWeek.FRI); +// break; +// case SAT: +// tgt.setValue(org.hl7.fhir.dstu3.model.PractitionerRole.DaysOfWeek.SAT); +// break; +// case SUN: +// tgt.setValue(org.hl7.fhir.dstu3.model.PractitionerRole.DaysOfWeek.SUN); +// break; +// default: +// tgt.setValue(org.hl7.fhir.dstu3.model.PractitionerRole.DaysOfWeek.NULL); +// break; +// } +// return tgt; +// } +// +// static public org.hl7.fhir.r5.model.Enumeration convertDaysOfWeek(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException { +// if (src == null || src.isEmpty()) return null; +// org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.DaysOfWeekEnumFactory()); +// ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt); +// if (src.getValue() == null) { +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.NULL); +// } else { +// switch (src.getValue()) { +// case MON: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.MON); +// break; +// case TUE: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.TUE); +// break; +// case WED: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.WED); +// break; +// case THU: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.THU); +// break; +// case FRI: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.FRI); +// break; +// case SAT: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.SAT); +// break; +// case SUN: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.SUN); +// break; +// default: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.NULL); +// break; +// } +// } +// return tgt; +// } } \ No newline at end of file diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Questionnaire30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Questionnaire30_50.java index e5f39c8fc..b27ad9d07 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Questionnaire30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/Questionnaire30_50.java @@ -10,7 +10,13 @@ import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Codeab import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Coding30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identifier30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Period30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Boolean30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Date30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.DateTime30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Integer30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.MarkDown30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Uri30_50; import org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemType; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeType; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/RelatedPerson30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/RelatedPerson30_50.java index 591e5e3d8..99db46641 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/RelatedPerson30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/RelatedPerson30_50.java @@ -1,14 +1,20 @@ package org.hl7.fhir.convertors.conv30_50.resources30_50; +import java.util.List; + import org.hl7.fhir.convertors.context.ConversionContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Reference30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Address30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Attachment30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.ContactPoint30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.HumanName30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identifier30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Period30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Boolean30_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeableConcept; -import java.util.List; - public class RelatedPerson30_50 { public static org.hl7.fhir.dstu3.model.RelatedPerson convertRelatedPerson(org.hl7.fhir.r5.model.RelatedPerson src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/SearchParameter30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/SearchParameter30_50.java index 87ddf7099..eed145ced 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/SearchParameter30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/SearchParameter30_50.java @@ -1,17 +1,20 @@ package org.hl7.fhir.convertors.conv30_50.resources30_50; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.ContactDetail30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Reference30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.UsageContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Boolean30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Code30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.DateTime30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.MarkDown30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Uri30_50; import org.hl7.fhir.exceptions.FHIRException; -import org.hl7.fhir.r5.model.Enumeration; -import org.hl7.fhir.r5.model.Enumerations; -import org.hl7.fhir.r5.model.Enumerations.AllResourceTypes; - -import java.util.stream.Collectors; +import org.hl7.fhir.r5.model.CodeType; public class SearchParameter30_50 { @@ -210,7 +213,7 @@ public class SearchParameter30_50 { tgt.setPurposeElement(MarkDown30_50.convertMarkdown(src.getPurposeElement())); if (src.hasCode()) tgt.setCodeElement(Code30_50.convertCode(src.getCodeElement())); - for (org.hl7.fhir.dstu3.model.CodeType t : src.getBase()) tgt.addBase(Enumerations.AllResourceTypes.fromCode(t.getValue())); + for (org.hl7.fhir.dstu3.model.CodeType t : src.getBase()) tgt.getBase().add(Code30_50.convertCode(t)); if (src.hasType()) tgt.setTypeElement(Enumerations30_50.convertSearchParamType(src.getTypeElement())); if (src.hasDerivedFrom()) @@ -265,7 +268,7 @@ public class SearchParameter30_50 { tgt.setPurposeElement(MarkDown30_50.convertMarkdown(src.getPurposeElement())); if (src.hasCode()) tgt.setCodeElement(Code30_50.convertCode(src.getCodeElement())); - for (Enumeration t : src.getBase()) tgt.addBase(t.getValue().toCode()); + for (CodeType t : src.getBase()) tgt.getBase().add(Code30_50.convertCode(t)); if (src.hasType()) tgt.setTypeElement(Enumerations30_50.convertSearchParamType(src.getTypeElement())); if (src.hasDerivedFrom()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/StructureDefinition30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/StructureDefinition30_50.java index 8481f0fa0..675df3c5d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/StructureDefinition30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/StructureDefinition30_50.java @@ -7,7 +7,12 @@ import org.hl7.fhir.convertors.conv30_50.datatypes30_50.UsageContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Coding30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identifier30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Boolean30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.DateTime30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Id30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.MarkDown30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Uri30_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.utilities.Utilities; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/StructureMap30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/StructureMap30_50.java index 20dbb2449..777abeaeb 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/StructureMap30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/StructureMap30_50.java @@ -1,18 +1,23 @@ package org.hl7.fhir.convertors.conv30_50.resources30_50; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.ContactDetail30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.UsageContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identifier30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.*; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Boolean30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.DateTime30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Id30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Integer30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.MarkDown30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Uri30_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.StringType; import org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleTargetParameterComponent; -import java.util.stream.Collectors; - public class StructureMap30_50 { public static org.hl7.fhir.r5.model.StructureMap convertStructureMap(org.hl7.fhir.dstu3.model.StructureMap src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/SupplyDelivery30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/SupplyDelivery30_50.java index 3af9a836b..9681889bf 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/SupplyDelivery30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/SupplyDelivery30_50.java @@ -25,7 +25,7 @@ public class SupplyDelivery30_50 { if (src.hasType()) tgt.setType(CodeableConcept30_50.convertCodeableConcept(src.getType())); if (src.hasSuppliedItem()) - tgt.setSuppliedItem(convertSupplyDeliverySuppliedItemComponent(src.getSuppliedItem())); + tgt.addSuppliedItem(convertSupplyDeliverySuppliedItemComponent(src.getSuppliedItem())); if (src.hasOccurrence()) tgt.setOccurrence(ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().convertType(src.getOccurrence())); if (src.hasSupplier()) @@ -52,7 +52,7 @@ public class SupplyDelivery30_50 { if (src.hasType()) tgt.setType(CodeableConcept30_50.convertCodeableConcept(src.getType())); if (src.hasSuppliedItem()) - tgt.setSuppliedItem(convertSupplyDeliverySuppliedItemComponent(src.getSuppliedItem())); + tgt.setSuppliedItem(convertSupplyDeliverySuppliedItemComponent(src.getSuppliedItemFirstRep())); if (src.hasOccurrence()) tgt.setOccurrence(ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().convertType(src.getOccurrence())); if (src.hasSupplier()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/TestReport30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/TestReport30_50.java index 675866fc8..45848a56d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/TestReport30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/TestReport30_50.java @@ -1,9 +1,12 @@ package org.hl7.fhir.convertors.conv30_50.resources30_50; import org.hl7.fhir.convertors.context.ConversionContext30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Reference30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identifier30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.DateTime30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Decimal30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.MarkDown30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Uri30_50; import org.hl7.fhir.dstu3.model.Reference; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/TestScript30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/TestScript30_50.java index 73b6b0847..d2cee9993 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/TestScript30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/TestScript30_50.java @@ -7,7 +7,13 @@ import org.hl7.fhir.convertors.conv30_50.datatypes30_50.UsageContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Coding30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identifier30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Boolean30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.DateTime30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Id30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Integer30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.MarkDown30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Uri30_50; import org.hl7.fhir.exceptions.FHIRException; public class TestScript30_50 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ValueSet30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ValueSet30_50.java index 0e605a168..77d6622d1 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ValueSet30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/ValueSet30_50.java @@ -6,7 +6,14 @@ import org.hl7.fhir.convertors.conv30_50.datatypes30_50.UsageContext30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.CodeableConcept30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Coding30_50; import org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50.Identifier30_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.*; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Boolean30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Code30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Date30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.DateTime30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Integer30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.MarkDown30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; +import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.Uri30_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.BooleanType; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/VersionConvertor_40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/VersionConvertor_40_50.java index 97a757074..c7db605b8 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/VersionConvertor_40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/VersionConvertor_40_50.java @@ -1,5 +1,7 @@ package org.hl7.fhir.convertors.conv40_50; +import javax.annotation.Nonnull; + import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.BackboneElement40_50; @@ -8,8 +10,6 @@ import org.hl7.fhir.convertors.conv40_50.datatypes40_50.Type40_50; import org.hl7.fhir.convertors.conv40_50.resources40_50.Resource40_50; import org.hl7.fhir.exceptions.FHIRException; -import javax.annotation.Nonnull; - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/Element40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/Element40_50.java index 6bdcbf8c3..52bf28954 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/Element40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/Element40_50.java @@ -1,11 +1,11 @@ package org.hl7.fhir.convertors.conv40_50.datatypes40_50; +import java.util.Arrays; + import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Extension40_50; import org.hl7.fhir.exceptions.FHIRException; -import java.util.Arrays; - public class Element40_50 { public final BaseAdvisor_40_50 advisor; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/Type40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/Type40_50.java index 26752d874..53c97d087 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/Type40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/Type40_50.java @@ -1,11 +1,66 @@ package org.hl7.fhir.convertors.conv40_50.datatypes40_50; import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.*; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.*; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.*; -import org.hl7.fhir.convertors.conv40_50.resources40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Address40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Age40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Annotation40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Attachment40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Coding40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.ContactPoint40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Count40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Distance40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Duration40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.HumanName40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Money40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.MoneyQuantity40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Period40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Quantity40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Range40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Ratio40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.SampledData40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Signature40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.SimpleQuantity40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Timing40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.ContactDetail40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.Contributor40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.DataRequirement40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.Expression40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.ParameterDefinition40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.RelatedArtifact40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.TriggerDefinition40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.UsageContext40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Base64Binary40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Canonical40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Code40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Date40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Decimal40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Id40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Instant40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Integer40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.MarkDown40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Oid40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.PositiveInt40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Time40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.UnsignedInt40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Url40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uuid40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Dosage40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.ElementDefinition40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Extension40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Meta40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Narrative40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; +import org.hl7.fhir.convertors.conv40_50.resources40_50.MarketingStatus40_50; +import org.hl7.fhir.convertors.conv40_50.resources40_50.Population40_50; +import org.hl7.fhir.convertors.conv40_50.resources40_50.ProdCharacteristic40_50; +import org.hl7.fhir.convertors.conv40_50.resources40_50.ProductShelfLife40_50; +import org.hl7.fhir.convertors.conv40_50.resources40_50.SubstanceAmount40_50; import org.hl7.fhir.exceptions.FHIRException; public class Type40_50 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/general40_50/Attachment40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/general40_50/Attachment40_50.java index 8c6ee305c..9067fe8ee 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/general40_50/Attachment40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/general40_50/Attachment40_50.java @@ -1,7 +1,12 @@ package org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Base64Binary40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Code40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.UnsignedInt40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Url40_50; import org.hl7.fhir.exceptions.FHIRException; public class Attachment40_50 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/general40_50/CodeableConcept40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/general40_50/CodeableConcept40_50.java index b62c60baa..6a593fe7f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/general40_50/CodeableConcept40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/general40_50/CodeableConcept40_50.java @@ -29,4 +29,10 @@ public class CodeableConcept40_50 { tgt.setConcept(convertCodeableConcept(src)); return tgt; } + + + public static org.hl7.fhir.r4.model.CodeableConcept convertCodeableReferenceToCodeableConcept(CodeableReference src) { + return convertCodeableConcept(src.getConcept()); + } } + diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/general40_50/Coding40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/general40_50/Coding40_50.java index 83c716d19..d147f49d2 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/general40_50/Coding40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/general40_50/Coding40_50.java @@ -31,4 +31,47 @@ public class Coding40_50 { if (src.hasUserSelected()) tgt.setUserSelectedElement(Boolean40_50.convertBoolean(src.getUserSelectedElement())); return tgt; } + + public static org.hl7.fhir.r5.model.CodeableConcept convertCodingToCodeableConcept(org.hl7.fhir.r4.model.Coding src) throws FHIRException { + if (src == null) return null; + org.hl7.fhir.r5.model.CodeableConcept tgt = new org.hl7.fhir.r5.model.CodeableConcept(); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + if (src.hasSystem()) tgt.getCodingFirstRep().setSystem(src.getSystem()); + if (src.hasVersion()) tgt.getCodingFirstRep().setVersion(src.getVersion()); + if (src.hasCode()) tgt.getCodingFirstRep().setCode(src.getCode()); + if (src.hasDisplay()) tgt.getCodingFirstRep().setDisplay(src.getDisplay()); + if (src.hasUserSelected()) tgt.getCodingFirstRep().setUserSelected(src.getUserSelected()); + return tgt; + } + + public static org.hl7.fhir.r5.model.Coding convertCoding(org.hl7.fhir.r4.model.CodeableConcept src) throws FHIRException { + if (src == null) return null; + org.hl7.fhir.r5.model.Coding tgt = new org.hl7.fhir.r5.model.Coding(); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + if (src.hasCoding()) { + if (src.getCodingFirstRep().hasSystem()) tgt.setSystem(src.getCodingFirstRep().getSystem()); + if (src.getCodingFirstRep().hasVersion()) tgt.setVersion(src.getCodingFirstRep().getVersion()); + if (src.getCodingFirstRep().hasCode()) tgt.setCode(src.getCodingFirstRep().getCode()); + if (src.getCodingFirstRep().hasDisplay()) tgt.setDisplay(src.getCodingFirstRep().getDisplay()); + if (src.getCodingFirstRep().hasUserSelected()) tgt.setUserSelected(src.getCodingFirstRep().getUserSelected()); + } + return tgt; + } + + + public static org.hl7.fhir.r4.model.Coding convertCoding(org.hl7.fhir.r5.model.CodeableConcept src) throws FHIRException { + if (src == null) return null; + org.hl7.fhir.r4.model.Coding tgt = new org.hl7.fhir.r4.model.Coding(); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + if (src.hasCoding()) { + if (src.getCodingFirstRep().hasSystem()) tgt.setSystem(src.getCodingFirstRep().getSystem()); + if (src.getCodingFirstRep().hasVersion()) tgt.setVersion(src.getCodingFirstRep().getVersion()); + if (src.getCodingFirstRep().hasCode()) tgt.setCode(src.getCodingFirstRep().getCode()); + if (src.getCodingFirstRep().hasDisplay()) tgt.setDisplay(src.getCodingFirstRep().getDisplay()); + if (src.getCodingFirstRep().hasUserSelected()) tgt.setUserSelected(src.getCodingFirstRep().getUserSelected()); + } + return tgt; + } + + } diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/general40_50/Timing40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/general40_50/Timing40_50.java index b7cf269f2..f48c9b22a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/general40_50/Timing40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/general40_50/Timing40_50.java @@ -1,12 +1,16 @@ package org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.BackboneElement40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Decimal40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.PositiveInt40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Time40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.UnsignedInt40_50; import org.hl7.fhir.exceptions.FHIRException; -import java.util.stream.Collectors; - public class Timing40_50 { public static org.hl7.fhir.r4.model.Timing convertTiming(org.hl7.fhir.r5.model.Timing src) throws FHIRException { if (src == null) return null; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/primitive40_50/Date40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/primitive40_50/Date40_50.java index 34547f931..019612b96 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/primitive40_50/Date40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/primitive40_50/Date40_50.java @@ -1,10 +1,7 @@ package org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50; -import org.hl7.fhir.convertors.context.ConversionContext10_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; import org.hl7.fhir.exceptions.FHIRException; -import org.hl7.fhir.r4.model.DateType; -import org.hl7.fhir.r5.model.DateTimeType; public class Date40_50 { public static org.hl7.fhir.r5.model.DateType convertDate(org.hl7.fhir.r4.model.DateType src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/primitive40_50/String40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/primitive40_50/String40_50.java index 9366b7b04..838d55a75 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/primitive40_50/String40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/primitive40_50/String40_50.java @@ -1,6 +1,5 @@ package org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50; -import org.hl7.fhir.convertors.context.ConversionContext30_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/special40_50/ElementDefinition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/special40_50/ElementDefinition40_50.java index 53a86b30d..264296958 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/special40_50/ElementDefinition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/special40_50/ElementDefinition40_50.java @@ -1,14 +1,22 @@ package org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.BackboneElement40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Coding40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Canonical40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Code40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Id40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Integer40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.MarkDown40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.UnsignedInt40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; import org.hl7.fhir.convertors.conv40_50.resources40_50.Enumerations40_50; import org.hl7.fhir.exceptions.FHIRException; -import java.util.stream.Collectors; - public class ElementDefinition40_50 { public static org.hl7.fhir.r5.model.ElementDefinition convertElementDefinition(org.hl7.fhir.r4.model.ElementDefinition src) throws FHIRException { if (src == null) return null; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/special40_50/Reference40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/special40_50/Reference40_50.java index 65682d8dd..e9e5e51a8 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/special40_50/Reference40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/datatypes40_50/special40_50/Reference40_50.java @@ -35,4 +35,30 @@ public class Reference40_50 { tgt.setReference(convertReference(src)); return tgt; } + + + public static org.hl7.fhir.r5.model.CanonicalType convertReferenceToCanonical(org.hl7.fhir.r4.model.Reference src) { + if (src == null) return null; + org.hl7.fhir.r5.model.CanonicalType tgt = new org.hl7.fhir.r5.model.CanonicalType(); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + if (src.hasReference()) tgt.setValue(src.getReference()); + return tgt; + } + + public static org.hl7.fhir.r4.model.Reference convertReferenceToCanonical(org.hl7.fhir.r5.model.CanonicalType src) { + if (src == null) return null; + org.hl7.fhir.r4.model.Reference tgt = new org.hl7.fhir.r4.model.Reference(); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + if (src.hasValue()) tgt.setReference(src.getValue()); + return tgt; + } + + + static public org.hl7.fhir.r4.model.Reference convertCodeableReferenceToReference(org.hl7.fhir.r5.model.CodeableReference src) { + org.hl7.fhir.r4.model.Reference tgt = new org.hl7.fhir.r4.model.Reference(); + ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); + tgt.setReference(src.getReference().getReference()); + return tgt; + } + } diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Account40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Account40_50.java index fd65fc13d..c5cee1b53 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Account40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Account40_50.java @@ -65,8 +65,8 @@ public class Account40_50 { tgt.setDescriptionElement(String40_50.convertString(src.getDescriptionElement())); for (org.hl7.fhir.r4.model.Account.GuarantorComponent t : src.getGuarantor()) tgt.addGuarantor(convertGuarantorComponent(t)); - if (src.hasPartOf()) - tgt.setPartOf(Reference40_50.convertReference(src.getPartOf())); +// if (src.hasPartOf()) +// tgt.setPartOf(Reference40_50.convertReference(src.getPartOf())); return tgt; } @@ -94,8 +94,8 @@ public class Account40_50 { tgt.setDescriptionElement(String40_50.convertString(src.getDescriptionElement())); for (org.hl7.fhir.r5.model.Account.GuarantorComponent t : src.getGuarantor()) tgt.addGuarantor(convertGuarantorComponent(t)); - if (src.hasPartOf()) - tgt.setPartOf(Reference40_50.convertReference(src.getPartOf())); +// if (src.hasPartOf()) +// tgt.setPartOf(Reference40_50.convertReference(src.getPartOf())); return tgt; } diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ActivityDefinition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ActivityDefinition40_50.java index 3e5d00938..a5115b5b1 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ActivityDefinition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ActivityDefinition40_50.java @@ -9,7 +9,13 @@ import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.ContactDet import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.Expression40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.RelatedArtifact40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.UsageContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Canonical40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Date40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.MarkDown40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Dosage40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; import org.hl7.fhir.exceptions.FHIRException; @@ -133,11 +139,11 @@ public class ActivityDefinition40_50 { for (org.hl7.fhir.r4.model.CodeableConcept t : src.getBodySite()) tgt.addBodySite(CodeableConcept40_50.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.Reference t : src.getSpecimenRequirement()) - tgt.addSpecimenRequirement(Reference40_50.convertReference(t)); + tgt.getSpecimenRequirement().add(Reference40_50.convertReferenceToCanonical(t)); for (org.hl7.fhir.r4.model.Reference t : src.getObservationRequirement()) - tgt.addObservationRequirement(Reference40_50.convertReference(t)); + tgt.getObservationRequirement().add(Reference40_50.convertReferenceToCanonical(t)); for (org.hl7.fhir.r4.model.Reference t : src.getObservationResultRequirement()) - tgt.addObservationResultRequirement(Reference40_50.convertReference(t)); + tgt.getObservationResultRequirement().add(Reference40_50.convertReferenceToCanonical(t)); if (src.hasTransform()) tgt.setTransformElement(Canonical40_50.convertCanonical(src.getTransformElement())); for (org.hl7.fhir.r4.model.ActivityDefinition.ActivityDefinitionDynamicValueComponent t : src.getDynamicValue()) @@ -231,12 +237,12 @@ public class ActivityDefinition40_50 { for (org.hl7.fhir.r5.model.Dosage t : src.getDosage()) tgt.addDosage(Dosage40_50.convertDosage(t)); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getBodySite()) tgt.addBodySite(CodeableConcept40_50.convertCodeableConcept(t)); - for (org.hl7.fhir.r5.model.Reference t : src.getSpecimenRequirement()) - tgt.addSpecimenRequirement(Reference40_50.convertReference(t)); - for (org.hl7.fhir.r5.model.Reference t : src.getObservationRequirement()) - tgt.addObservationRequirement(Reference40_50.convertReference(t)); - for (org.hl7.fhir.r5.model.Reference t : src.getObservationResultRequirement()) - tgt.addObservationResultRequirement(Reference40_50.convertReference(t)); + for (org.hl7.fhir.r5.model.CanonicalType t : src.getSpecimenRequirement()) + tgt.addSpecimenRequirement(Reference40_50.convertReferenceToCanonical(t)); + for (org.hl7.fhir.r5.model.CanonicalType t : src.getObservationRequirement()) + tgt.addObservationRequirement(Reference40_50.convertReferenceToCanonical(t)); + for (org.hl7.fhir.r5.model.CanonicalType t : src.getObservationResultRequirement()) + tgt.addObservationResultRequirement(Reference40_50.convertReferenceToCanonical(t)); if (src.hasTransform()) tgt.setTransformElement(Canonical40_50.convertCanonical(src.getTransformElement())); for (org.hl7.fhir.r5.model.ActivityDefinition.ActivityDefinitionDynamicValueComponent t : src.getDynamicValue()) @@ -244,65 +250,62 @@ public class ActivityDefinition40_50 { return tgt; } - static public org.hl7.fhir.r5.model.Enumeration convertActivityDefinitionKind(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { + static public org.hl7.fhir.r5.model.Enumeration convertActivityDefinitionKind(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { if (src == null || src.isEmpty()) return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypeEnumFactory()); + org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypesEnumFactory()); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); switch (src.getValue()) { case APPOINTMENT: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.APPOINTMENT); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.APPOINTMENT); break; case APPOINTMENTRESPONSE: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.APPOINTMENTRESPONSE); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.APPOINTMENTRESPONSE); break; case CAREPLAN: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.CAREPLAN); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.CAREPLAN); break; case CLAIM: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.CLAIM); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.CLAIM); break; case COMMUNICATIONREQUEST: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.COMMUNICATIONREQUEST); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.COMMUNICATIONREQUEST); break; case CONTRACT: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.CONTRACT); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.CONTRACT); break; case DEVICEREQUEST: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.DEVICEREQUEST); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.DEVICEREQUEST); break; case ENROLLMENTREQUEST: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.ENROLLMENTREQUEST); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.ENROLLMENTREQUEST); break; case IMMUNIZATIONRECOMMENDATION: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.IMMUNIZATIONRECOMMENDATION); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.IMMUNIZATIONRECOMMENDATION); break; case MEDICATIONREQUEST: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.MEDICATIONREQUEST); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.MEDICATIONREQUEST); break; case NUTRITIONORDER: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.NUTRITIONORDER); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.NUTRITIONORDER); break; case SERVICEREQUEST: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.SERVICEREQUEST); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.SERVICEREQUEST); break; case SUPPLYREQUEST: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.SUPPLYREQUEST); - break; - case TASK: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.TASK); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.SUPPLYREQUEST); break; case VISIONPRESCRIPTION: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.VISIONPRESCRIPTION); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.VISIONPRESCRIPTION); break; default: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.NULL); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.NULL); break; } return tgt; } - static public org.hl7.fhir.r4.model.Enumeration convertActivityDefinitionKind(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { + static public org.hl7.fhir.r4.model.Enumeration convertActivityDefinitionKind(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.ActivityDefinition.ActivityDefinitionKindEnumFactory()); @@ -347,9 +350,6 @@ public class ActivityDefinition40_50 { case SUPPLYREQUEST: tgt.setValue(org.hl7.fhir.r4.model.ActivityDefinition.ActivityDefinitionKind.SUPPLYREQUEST); break; - case TASK: - tgt.setValue(org.hl7.fhir.r4.model.ActivityDefinition.ActivityDefinitionKind.TASK); - break; case VISIONPRESCRIPTION: tgt.setValue(org.hl7.fhir.r4.model.ActivityDefinition.ActivityDefinitionKind.VISIONPRESCRIPTION); break; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/AllergyIntolerance40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/AllergyIntolerance40_50.java index 54733e246..0381fb6cc 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/AllergyIntolerance40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/AllergyIntolerance40_50.java @@ -1,7 +1,8 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext40_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Reference30_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Annotation40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; @@ -9,12 +10,10 @@ import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime4 import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.r5.model.AllergyIntolerance.AllergyIntoleranceParticipantComponent; import org.hl7.fhir.r5.model.CodeableConcept; import org.hl7.fhir.r5.model.CodeableReference; import org.hl7.fhir.r5.model.Coding; -import org.hl7.fhir.r5.model.AllergyIntolerance.AllergyIntoleranceParticipantComponent; - -import java.util.stream.Collectors; /* Copyright (c) 2011+, HL7, Inc. diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/AuditEvent40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/AuditEvent40_50.java index 28af893ae..f8f6f776c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/AuditEvent40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/AuditEvent40_50.java @@ -4,7 +4,11 @@ import org.hl7.fhir.convertors.context.ConversionContext40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Coding40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Period40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Base64Binary40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Instant40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeableConcept; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/BiologicallyDerivedProduct40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/BiologicallyDerivedProduct40_50.java index 6a18f2fb9..e2da5b12c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/BiologicallyDerivedProduct40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/BiologicallyDerivedProduct40_50.java @@ -1,12 +1,7 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Period40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Decimal40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Integer40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Bundle40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Bundle40_50.java index 0603baa50..40c59be66 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Bundle40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Bundle40_50.java @@ -3,7 +3,11 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Signature40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Decimal40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Instant40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.UnsignedInt40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.Bundle.LinkRelationTypes; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CapabilityStatement40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CapabilityStatement40_50.java index 31214e5be..614704097 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CapabilityStatement40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CapabilityStatement40_50.java @@ -1,16 +1,24 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Coding40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.ContactDetail40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.UsageContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Canonical40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Code40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.MarkDown40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.UnsignedInt40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Url40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; import org.hl7.fhir.exceptions.FHIRException; -import java.util.stream.Collectors; - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CarePlan40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CarePlan40_50.java index 858ae82b3..46b38d28b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CarePlan40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CarePlan40_50.java @@ -1,8 +1,16 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.*; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Annotation40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Period40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.SimpleQuantity40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Canonical40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeableReference; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CareTeam40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CareTeam40_50.java index 5733ae075..aa1f84bd4 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CareTeam40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CareTeam40_50.java @@ -1,7 +1,11 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Annotation40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.ContactPoint40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Period40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ChargeItem40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ChargeItem40_50.java index 2f95a4a87..adc424be4 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ChargeItem40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ChargeItem40_50.java @@ -1,10 +1,17 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.*; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Annotation40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Quantity40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Canonical40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.r5.model.CodeableReference; /* Copyright (c) 2011+, HL7, Inc. @@ -55,7 +62,7 @@ public class ChargeItem40_50 { if (src.hasSubject()) tgt.setSubject(Reference40_50.convertReference(src.getSubject())); if (src.hasContext()) - tgt.setContext(Reference40_50.convertReference(src.getContext())); + tgt.setEncounter(Reference40_50.convertReference(src.getContext())); if (src.hasOccurrence()) tgt.setOccurrence(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getOccurrence())); for (org.hl7.fhir.r4.model.ChargeItem.ChargeItemPerformerComponent t : src.getPerformer()) @@ -71,18 +78,18 @@ public class ChargeItem40_50 { for (org.hl7.fhir.r4.model.CodeableConcept t : src.getBodysite()) tgt.addBodysite(CodeableConcept40_50.convertCodeableConcept(t)); if (src.hasFactorOverride()) - tgt.setFactorOverrideElement(Decimal40_50.convertDecimal(src.getFactorOverrideElement())); - if (src.hasPriceOverride()) - tgt.setPriceOverride(Money40_50.convertMoney(src.getPriceOverride())); - if (src.hasOverrideReason()) - tgt.setOverrideReasonElement(String40_50.convertString(src.getOverrideReasonElement())); +// tgt.setFactorOverrideElement(Decimal40_50.convertDecimal(src.getFactorOverrideElement())); +// if (src.hasPriceOverride()) +// tgt.setPriceOverride(Money40_50.convertMoney(src.getPriceOverride())); +// if (src.hasOverrideReason()) + tgt.getOverrideReason().setTextElement(String40_50.convertString(src.getOverrideReasonElement())); if (src.hasEnterer()) tgt.setEnterer(Reference40_50.convertReference(src.getEnterer())); if (src.hasEnteredDate()) tgt.setEnteredDateElement(DateTime40_50.convertDateTime(src.getEnteredDateElement())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReason()) tgt.addReason(CodeableConcept40_50.convertCodeableConcept(t)); - for (org.hl7.fhir.r4.model.Reference t : src.getService()) tgt.addService(Reference40_50.convertReference(t)); + for (org.hl7.fhir.r4.model.Reference t : src.getService()) tgt.addService(Reference40_50.convertReferenceToCodeableReference(t)); if (src.hasProductCodeableConcept()) tgt.addProduct().setConcept(CodeableConcept40_50.convertCodeableConcept(src.getProductCodeableConcept())); else if (src.hasProductReference()) @@ -111,8 +118,8 @@ public class ChargeItem40_50 { tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); if (src.hasSubject()) tgt.setSubject(Reference40_50.convertReference(src.getSubject())); - if (src.hasContext()) - tgt.setContext(Reference40_50.convertReference(src.getContext())); + if (src.hasEncounter()) + tgt.setContext(Reference40_50.convertReference(src.getEncounter())); if (src.hasOccurrence()) tgt.setOccurrence(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getOccurrence())); for (org.hl7.fhir.r5.model.ChargeItem.ChargeItemPerformerComponent t : src.getPerformer()) @@ -127,19 +134,19 @@ public class ChargeItem40_50 { tgt.setQuantity(Quantity40_50.convertQuantity(src.getQuantity())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getBodysite()) tgt.addBodysite(CodeableConcept40_50.convertCodeableConcept(t)); - if (src.hasFactorOverride()) - tgt.setFactorOverrideElement(Decimal40_50.convertDecimal(src.getFactorOverrideElement())); - if (src.hasPriceOverride()) - tgt.setPriceOverride(Money40_50.convertMoney(src.getPriceOverride())); +// if (src.hasFactorOverride()) +// tgt.setFactorOverrideElement(Decimal40_50.convertDecimal(src.getFactorOverrideElement())); +// if (src.hasPriceOverride()) +// tgt.setPriceOverride(Money40_50.convertMoney(src.getPriceOverride())); if (src.hasOverrideReason()) - tgt.setOverrideReasonElement(String40_50.convertString(src.getOverrideReasonElement())); + tgt.setOverrideReasonElement(String40_50.convertString(src.getOverrideReason().getTextElement())); if (src.hasEnterer()) tgt.setEnterer(Reference40_50.convertReference(src.getEnterer())); if (src.hasEnteredDate()) tgt.setEnteredDateElement(DateTime40_50.convertDateTime(src.getEnteredDateElement())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReason()) tgt.addReason(CodeableConcept40_50.convertCodeableConcept(t)); - for (org.hl7.fhir.r5.model.Reference t : src.getService()) tgt.addService(Reference40_50.convertReference(t)); + for (CodeableReference t : src.getService()) tgt.addService(Reference40_50.convertCodeableReferenceToReference(t)); if (src.getProductFirstRep().hasConcept()) tgt.setProduct(CodeableConcept40_50.convertCodeableConcept(src.getProductFirstRep().getConcept())); if (src.getProductFirstRep().hasReference()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ChargeItemDefinition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ChargeItemDefinition40_50.java index c20dd16da..d1daec1ba 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ChargeItemDefinition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ChargeItemDefinition40_50.java @@ -3,11 +3,16 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Money40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Period40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.ContactDetail40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.UsageContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Canonical40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Date40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.MarkDown40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; import org.hl7.fhir.exceptions.FHIRException; @@ -152,11 +157,11 @@ public class ChargeItemDefinition40_50 { org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionApplicabilityComponent tgt = new org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionApplicabilityComponent(); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasDescription()) - tgt.setDescriptionElement(String40_50.convertString(src.getDescriptionElement())); + tgt.getCondition().setDescriptionElement(String40_50.convertString(src.getDescriptionElement())); if (src.hasLanguage()) - tgt.setLanguageElement(String40_50.convertString(src.getLanguageElement())); + tgt.getCondition().setLanguage(src.getLanguage()); if (src.hasExpression()) - tgt.setExpressionElement(String40_50.convertString(src.getExpressionElement())); + tgt.getCondition().setExpressionElement(String40_50.convertString(src.getExpressionElement())); return tgt; } @@ -165,12 +170,12 @@ public class ChargeItemDefinition40_50 { return null; org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionApplicabilityComponent tgt = new org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionApplicabilityComponent(); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); - if (src.hasDescription()) - tgt.setDescriptionElement(String40_50.convertString(src.getDescriptionElement())); - if (src.hasLanguage()) - tgt.setLanguageElement(String40_50.convertString(src.getLanguageElement())); - if (src.hasExpression()) - tgt.setExpressionElement(String40_50.convertString(src.getExpressionElement())); + if (src.getCondition().hasDescription()) + tgt.setDescriptionElement(String40_50.convertString(src.getCondition().getDescriptionElement())); + if (src.getCondition().hasLanguage()) + tgt.setLanguageElement(String40_50.convertString(src.getCondition().getLanguageElement())); + if (src.getCondition().hasExpression()) + tgt.setExpressionElement(String40_50.convertString(src.getCondition().getExpressionElement())); return tgt; } @@ -181,8 +186,8 @@ public class ChargeItemDefinition40_50 { ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionApplicabilityComponent t : src.getApplicability()) tgt.addApplicability(convertChargeItemDefinitionApplicabilityComponent(t)); - for (org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent t : src.getPriceComponent()) - tgt.addPriceComponent(convertChargeItemDefinitionPropertyGroupPriceComponentComponent(t)); +// for (org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent t : src.getPriceComponent()) +// tgt.addPriceComponent(convertChargeItemDefinitionPropertyGroupPriceComponentComponent(t)); return tgt; } @@ -193,102 +198,102 @@ public class ChargeItemDefinition40_50 { ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionApplicabilityComponent t : src.getApplicability()) tgt.addApplicability(convertChargeItemDefinitionApplicabilityComponent(t)); - for (org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent t : src.getPriceComponent()) - tgt.addPriceComponent(convertChargeItemDefinitionPropertyGroupPriceComponentComponent(t)); +// for (org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent t : src.getPriceComponent()) +// tgt.addPriceComponent(convertChargeItemDefinitionPropertyGroupPriceComponentComponent(t)); return tgt; } - public static org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent convertChargeItemDefinitionPropertyGroupPriceComponentComponent(org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent tgt = new org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); - if (src.hasType()) - tgt.setTypeElement(convertChargeItemDefinitionPriceComponentType(src.getTypeElement())); - if (src.hasCode()) - tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); - if (src.hasFactor()) - tgt.setFactorElement(Decimal40_50.convertDecimal(src.getFactorElement())); - if (src.hasAmount()) - tgt.setAmount(Money40_50.convertMoney(src.getAmount())); - return tgt; - } - - public static org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent convertChargeItemDefinitionPropertyGroupPriceComponentComponent(org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent tgt = new org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); - if (src.hasType()) - tgt.setTypeElement(convertChargeItemDefinitionPriceComponentType(src.getTypeElement())); - if (src.hasCode()) - tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); - if (src.hasFactor()) - tgt.setFactorElement(Decimal40_50.convertDecimal(src.getFactorElement())); - if (src.hasAmount()) - tgt.setAmount(Money40_50.convertMoney(src.getAmount())); - return tgt; - } - - static public org.hl7.fhir.r5.model.Enumeration convertChargeItemDefinitionPriceComponentType(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentTypeEnumFactory()); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); - switch (src.getValue()) { - case BASE: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.BASE); - break; - case SURCHARGE: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.SURCHARGE); - break; - case DEDUCTION: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.DEDUCTION); - break; - case DISCOUNT: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.DISCOUNT); - break; - case TAX: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.TAX); - break; - case INFORMATIONAL: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.INFORMATIONAL); - break; - default: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r4.model.Enumeration convertChargeItemDefinitionPriceComponentType(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPriceComponentTypeEnumFactory()); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); - switch (src.getValue()) { - case BASE: - tgt.setValue(org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPriceComponentType.BASE); - break; - case SURCHARGE: - tgt.setValue(org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPriceComponentType.SURCHARGE); - break; - case DEDUCTION: - tgt.setValue(org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPriceComponentType.DEDUCTION); - break; - case DISCOUNT: - tgt.setValue(org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPriceComponentType.DISCOUNT); - break; - case TAX: - tgt.setValue(org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPriceComponentType.TAX); - break; - case INFORMATIONAL: - tgt.setValue(org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPriceComponentType.INFORMATIONAL); - break; - default: - tgt.setValue(org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPriceComponentType.NULL); - break; - } - return tgt; - } +// public static org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent convertChargeItemDefinitionPropertyGroupPriceComponentComponent(org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent src) throws FHIRException { +// if (src == null) +// return null; +// org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent tgt = new org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent(); +// ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); +// if (src.hasType()) +// tgt.setTypeElement(convertChargeItemDefinitionPriceComponentType(src.getTypeElement())); +// if (src.hasCode()) +// tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); +// if (src.hasFactor()) +// tgt.setFactorElement(Decimal40_50.convertDecimal(src.getFactorElement())); +// if (src.hasAmount()) +// tgt.setAmount(Money40_50.convertMoney(src.getAmount())); +// return tgt; +// } +// +// public static org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent convertChargeItemDefinitionPropertyGroupPriceComponentComponent(org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent src) throws FHIRException { +// if (src == null) +// return null; +// org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent tgt = new org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent(); +// ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); +// if (src.hasType()) +// tgt.setTypeElement(convertChargeItemDefinitionPriceComponentType(src.getTypeElement())); +// if (src.hasCode()) +// tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); +// if (src.hasFactor()) +// tgt.setFactorElement(Decimal40_50.convertDecimal(src.getFactorElement())); +// if (src.hasAmount()) +// tgt.setAmount(Money40_50.convertMoney(src.getAmount())); +// return tgt; +// } +// +// static public org.hl7.fhir.r5.model.Enumeration convertChargeItemDefinitionPriceComponentType(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { +// if (src == null || src.isEmpty()) +// return null; +// org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentTypeEnumFactory()); +// ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); +// switch (src.getValue()) { +// case BASE: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.BASE); +// break; +// case SURCHARGE: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.SURCHARGE); +// break; +// case DEDUCTION: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.DEDUCTION); +// break; +// case DISCOUNT: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.DISCOUNT); +// break; +// case TAX: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.TAX); +// break; +// case INFORMATIONAL: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.INFORMATIONAL); +// break; +// default: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.NULL); +// break; +// } +// return tgt; +// } +// +// static public org.hl7.fhir.r4.model.Enumeration convertChargeItemDefinitionPriceComponentType(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { +// if (src == null || src.isEmpty()) +// return null; +// org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPriceComponentTypeEnumFactory()); +// ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); +// switch (src.getValue()) { +// case BASE: +// tgt.setValue(org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPriceComponentType.BASE); +// break; +// case SURCHARGE: +// tgt.setValue(org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPriceComponentType.SURCHARGE); +// break; +// case DEDUCTION: +// tgt.setValue(org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPriceComponentType.DEDUCTION); +// break; +// case DISCOUNT: +// tgt.setValue(org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPriceComponentType.DISCOUNT); +// break; +// case TAX: +// tgt.setValue(org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPriceComponentType.TAX); +// break; +// case INFORMATIONAL: +// tgt.setValue(org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPriceComponentType.INFORMATIONAL); +// break; +// default: +// tgt.setValue(org.hl7.fhir.r4.model.ChargeItemDefinition.ChargeItemDefinitionPriceComponentType.NULL); +// break; +// } +// return tgt; +// } } \ No newline at end of file diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Claim40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Claim40_50.java index 9c9c8c952..9c5380059 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Claim40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Claim40_50.java @@ -1,8 +1,17 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.*; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Money40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Period40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.SimpleQuantity40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Date40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Decimal40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.PositiveInt40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; import org.hl7.fhir.exceptions.FHIRException; @@ -319,7 +328,7 @@ public class Claim40_50 { if (src.hasRole()) tgt.setRole(CodeableConcept40_50.convertCodeableConcept(src.getRole())); if (src.hasQualification()) - tgt.setQualification(CodeableConcept40_50.convertCodeableConcept(src.getQualification())); + tgt.setSpecialty(CodeableConcept40_50.convertCodeableConcept(src.getQualification())); return tgt; } @@ -336,8 +345,8 @@ public class Claim40_50 { tgt.setResponsibleElement(Boolean40_50.convertBoolean(src.getResponsibleElement())); if (src.hasRole()) tgt.setRole(CodeableConcept40_50.convertCodeableConcept(src.getRole())); - if (src.hasQualification()) - tgt.setQualification(CodeableConcept40_50.convertCodeableConcept(src.getQualification())); + if (src.hasSpecialty()) + tgt.setQualification(CodeableConcept40_50.convertCodeableConcept(src.getSpecialty())); return tgt; } @@ -394,8 +403,8 @@ public class Claim40_50 { tgt.addType(CodeableConcept40_50.convertCodeableConcept(t)); if (src.hasOnAdmission()) tgt.setOnAdmission(CodeableConcept40_50.convertCodeableConcept(src.getOnAdmission())); - if (src.hasPackageCode()) - tgt.setPackageCode(CodeableConcept40_50.convertCodeableConcept(src.getPackageCode())); +// if (src.hasPackageCode()) +// tgt.setPackageCode(CodeableConcept40_50.convertCodeableConcept(src.getPackageCode())); return tgt; } @@ -412,8 +421,8 @@ public class Claim40_50 { tgt.addType(CodeableConcept40_50.convertCodeableConcept(t)); if (src.hasOnAdmission()) tgt.setOnAdmission(CodeableConcept40_50.convertCodeableConcept(src.getOnAdmission())); - if (src.hasPackageCode()) - tgt.setPackageCode(CodeableConcept40_50.convertCodeableConcept(src.getPackageCode())); +// if (src.hasPackageCode()) +// tgt.setPackageCode(CodeableConcept40_50.convertCodeableConcept(src.getPackageCode())); return tgt; } @@ -562,9 +571,9 @@ public class Claim40_50 { tgt.setNet(Money40_50.convertMoney(src.getNet())); for (org.hl7.fhir.r4.model.Reference t : src.getUdi()) tgt.addUdi(Reference40_50.convertReference(t)); if (src.hasBodySite()) - tgt.setBodySite(CodeableConcept40_50.convertCodeableConcept(src.getBodySite())); + tgt.getBodySiteFirstRep().addSite(CodeableConcept40_50.convertCodeableConceptToCodeableReference(src.getBodySite())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getSubSite()) - tgt.addSubSite(CodeableConcept40_50.convertCodeableConcept(t)); + tgt.getBodySiteFirstRep().addSubSite(CodeableConcept40_50.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.Reference t : src.getEncounter()) tgt.addEncounter(Reference40_50.convertReference(t)); for (org.hl7.fhir.r4.model.Claim.DetailComponent t : src.getDetail()) tgt.addDetail(convertDetailComponent(t)); return tgt; @@ -608,9 +617,9 @@ public class Claim40_50 { if (src.hasNet()) tgt.setNet(Money40_50.convertMoney(src.getNet())); for (org.hl7.fhir.r5.model.Reference t : src.getUdi()) tgt.addUdi(Reference40_50.convertReference(t)); - if (src.hasBodySite()) - tgt.setBodySite(CodeableConcept40_50.convertCodeableConcept(src.getBodySite())); - for (org.hl7.fhir.r5.model.CodeableConcept t : src.getSubSite()) + if (src.getBodySiteFirstRep().hasSite()) + tgt.setBodySite(CodeableConcept40_50.convertCodeableReferenceToCodeableConcept(src.getBodySiteFirstRep().getSiteFirstRep())); + for (org.hl7.fhir.r5.model.CodeableConcept t : src.getBodySiteFirstRep().getSubSite()) tgt.addSubSite(CodeableConcept40_50.convertCodeableConcept(t)); for (org.hl7.fhir.r5.model.Reference t : src.getEncounter()) tgt.addEncounter(Reference40_50.convertReference(t)); for (org.hl7.fhir.r5.model.Claim.DetailComponent t : src.getDetail()) tgt.addDetail(convertDetailComponent(t)); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ClaimResponse40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ClaimResponse40_50.java index cbe124ee0..c6d204434 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ClaimResponse40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ClaimResponse40_50.java @@ -1,8 +1,18 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.*; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Attachment40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Money40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Period40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.SimpleQuantity40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Date40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Decimal40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.PositiveInt40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; import org.hl7.fhir.exceptions.FHIRException; @@ -454,9 +464,9 @@ public class ClaimResponse40_50 { if (src.hasNet()) tgt.setNet(Money40_50.convertMoney(src.getNet())); if (src.hasBodySite()) - tgt.setBodySite(CodeableConcept40_50.convertCodeableConcept(src.getBodySite())); + tgt.getBodySiteFirstRep().addSite(CodeableConcept40_50.convertCodeableConceptToCodeableReference(src.getBodySite())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getSubSite()) - tgt.addSubSite(CodeableConcept40_50.convertCodeableConcept(t)); + tgt.getBodySiteFirstRep().addSubSite(CodeableConcept40_50.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.PositiveIntType t : src.getNoteNumber()) tgt.getNoteNumber().add(PositiveInt40_50.convertPositiveInt(t)); for (org.hl7.fhir.r4.model.ClaimResponse.AdjudicationComponent t : src.getAdjudication()) @@ -496,9 +506,9 @@ public class ClaimResponse40_50 { tgt.setFactorElement(Decimal40_50.convertDecimal(src.getFactorElement())); if (src.hasNet()) tgt.setNet(Money40_50.convertMoney(src.getNet())); - if (src.hasBodySite()) - tgt.setBodySite(CodeableConcept40_50.convertCodeableConcept(src.getBodySite())); - for (org.hl7.fhir.r5.model.CodeableConcept t : src.getSubSite()) + if (src.getBodySiteFirstRep().hasSite()) + tgt.setBodySite(CodeableConcept40_50.convertCodeableReferenceToCodeableConcept(src.getBodySiteFirstRep().getSiteFirstRep())); + for (org.hl7.fhir.r5.model.CodeableConcept t : src.getBodySiteFirstRep().getSubSite()) tgt.addSubSite(CodeableConcept40_50.convertCodeableConcept(t)); for (org.hl7.fhir.r5.model.PositiveIntType t : src.getNoteNumber()) tgt.getNoteNumber().add(PositiveInt40_50.convertPositiveInt(t)); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CodeSystem40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CodeSystem40_50.java index 5313be8c6..c975516e3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CodeSystem40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CodeSystem40_50.java @@ -1,16 +1,23 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Coding40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.ContactDetail40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.UsageContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Canonical40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Code40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.MarkDown40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.UnsignedInt40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; import org.hl7.fhir.exceptions.FHIRException; -import java.util.stream.Collectors; - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CompartmentDefinition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CompartmentDefinition40_50.java index ac5b10039..e56f46be0 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CompartmentDefinition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CompartmentDefinition40_50.java @@ -3,7 +3,12 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.ContactDetail40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.UsageContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Code40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.MarkDown40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; import org.hl7.fhir.exceptions.FHIRException; /* diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Composition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Composition40_50.java index d462dd93e..bfe176736 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Composition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Composition40_50.java @@ -1,17 +1,13 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; -import org.hl7.fhir.convertors.context.ConversionContext30_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Reference30_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Period40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Code40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Narrative40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Code43_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.RelatedArtifact; @@ -69,7 +65,7 @@ public class Composition40_50 { if (src.hasTitle()) tgt.setTitleElement(String40_50.convertString(src.getTitleElement())); if (src.hasConfidentiality()) - tgt.getMeta().addSecurity().setCodeElement(Code40_50.convertCode(src.getConfidentialityElement())); + tgt.getMeta().addSecurity().setCode(src.getConfidentiality().toCode()); for (org.hl7.fhir.r4.model.Composition.CompositionAttesterComponent t : src.getAttester()) tgt.addAttester(convertCompositionAttesterComponent(t)); if (src.hasCustodian()) @@ -105,8 +101,8 @@ public class Composition40_50 { for (org.hl7.fhir.r5.model.Reference t : src.getAuthor()) tgt.addAuthor(Reference40_50.convertReference(t)); if (src.hasTitle()) tgt.setTitleElement(String40_50.convertString(src.getTitleElement())); - if (src.hasConfidentiality()) - tgt.setConfidentialityElement(convertDocumentConfidentiality(src.getConfidentialityElement())); + if (src.getMeta().hasSecurity()) + tgt.setConfidentialityElement(convertDocumentConfidentiality(src.getMeta().getSecurityFirstRep())); for (org.hl7.fhir.r5.model.Composition.CompositionAttesterComponent t : src.getAttester()) tgt.addAttester(convertCompositionAttesterComponent(t)); if (src.hasCustodian()) @@ -170,21 +166,21 @@ public class Composition40_50 { return tgt; } - static public org.hl7.fhir.r5.model.CodeType convertDocumentConfidentiality(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { + static public org.hl7.fhir.r5.model.Coding convertDocumentConfidentiality(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { if (src == null || src.isEmpty()) return null; - org.hl7.fhir.r5.model.CodeType tgt = new org.hl7.fhir.r5.model.CodeType(); + org.hl7.fhir.r5.model.Coding tgt = new org.hl7.fhir.r5.model.Coding(); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); - tgt.setValue(src.getValue().toCode()); + tgt.setCode(src.getValue().toCode()); return tgt; } - static public org.hl7.fhir.r4.model.Enumeration convertDocumentConfidentiality(org.hl7.fhir.r5.model.CodeType src) throws FHIRException { + static public org.hl7.fhir.r4.model.Enumeration convertDocumentConfidentiality(org.hl7.fhir.r5.model.Coding src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.Composition.DocumentConfidentialityEnumFactory()); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); - switch (src.getValue()) { + switch (src.getCode()) { case "U": tgt.setValue(org.hl7.fhir.r4.model.Composition.DocumentConfidentiality.U); break; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ConceptMap40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ConceptMap40_50.java index 695509b1b..1aad37a33 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ConceptMap40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ConceptMap40_50.java @@ -2,12 +2,17 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.VersionConvertorConstants; import org.hl7.fhir.convertors.context.ConversionContext40_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.ContactDetail40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.UsageContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Canonical40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Code40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.MarkDown40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.Enumerations.ConceptMapEquivalence; import org.hl7.fhir.r5.model.CanonicalType; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Condition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Condition40_50.java index b1452b2f2..557f46e69 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Condition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Condition40_50.java @@ -3,7 +3,6 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import java.util.ArrayList; import java.util.List; -import org.hl7.fhir.convertors.context.ConversionContext40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Annotation40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; @@ -14,7 +13,6 @@ import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeableConcept; import org.hl7.fhir.r5.model.CodeableReference; import org.hl7.fhir.r5.model.Coding; -import org.hl7.fhir.r5.model.Condition.ConditionParticipantComponent; /* Copyright (c) 2011+, HL7, Inc. diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Consent40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Consent40_50.java index 741140c74..6dd65cd2b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Consent40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Consent40_50.java @@ -1,7 +1,11 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Attachment40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Coding40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Period40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; @@ -270,26 +274,26 @@ public class Consent40_50 { return tgt; } - static public org.hl7.fhir.r5.model.Enumeration convertConsentProvisionType(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { + static public org.hl7.fhir.r5.model.Enumeration convertConsentProvisionType(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { if (src == null || src.isEmpty()) return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Consent.ConsentProvisionTypeEnumFactory()); + org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.ConsentProvisionTypeEnumFactory()); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); switch (src.getValue()) { case DENY: - tgt.setValue(org.hl7.fhir.r5.model.Consent.ConsentProvisionType.DENY); + tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConsentProvisionType.DENY); break; case PERMIT: - tgt.setValue(org.hl7.fhir.r5.model.Consent.ConsentProvisionType.PERMIT); + tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConsentProvisionType.PERMIT); break; default: - tgt.setValue(org.hl7.fhir.r5.model.Consent.ConsentProvisionType.NULL); + tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConsentProvisionType.NULL); break; } return tgt; } - static public org.hl7.fhir.r4.model.Enumeration convertConsentProvisionType(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { + static public org.hl7.fhir.r4.model.Enumeration convertConsentProvisionType(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.Consent.ConsentProvisionTypeEnumFactory()); @@ -356,32 +360,32 @@ public class Consent40_50 { return tgt; } - static public org.hl7.fhir.r5.model.Enumeration convertConsentDataMeaning(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { + static public org.hl7.fhir.r5.model.Enumeration convertConsentDataMeaning(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { if (src == null || src.isEmpty()) return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Consent.ConsentDataMeaningEnumFactory()); + org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.ConsentDataMeaningEnumFactory()); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); switch (src.getValue()) { case INSTANCE: - tgt.setValue(org.hl7.fhir.r5.model.Consent.ConsentDataMeaning.INSTANCE); + tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConsentDataMeaning.INSTANCE); break; case RELATED: - tgt.setValue(org.hl7.fhir.r5.model.Consent.ConsentDataMeaning.RELATED); + tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConsentDataMeaning.RELATED); break; case DEPENDENTS: - tgt.setValue(org.hl7.fhir.r5.model.Consent.ConsentDataMeaning.DEPENDENTS); + tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConsentDataMeaning.DEPENDENTS); break; case AUTHOREDBY: - tgt.setValue(org.hl7.fhir.r5.model.Consent.ConsentDataMeaning.AUTHOREDBY); + tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConsentDataMeaning.AUTHOREDBY); break; default: - tgt.setValue(org.hl7.fhir.r5.model.Consent.ConsentDataMeaning.NULL); + tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConsentDataMeaning.NULL); break; } return tgt; } - static public org.hl7.fhir.r4.model.Enumeration convertConsentDataMeaning(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { + static public org.hl7.fhir.r4.model.Enumeration convertConsentDataMeaning(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.Consent.ConsentDataMeaningEnumFactory()); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Contract40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Contract40_50.java index 6030a33f7..6e164ec61 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Contract40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Contract40_50.java @@ -1,8 +1,21 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.*; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Annotation40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Coding40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Money40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Period40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Signature40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.SimpleQuantity40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Decimal40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.MarkDown40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.UnsignedInt40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeableReference; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Coverage40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Coverage40_50.java index 7b6bb64a8..15cee8eb1 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Coverage40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Coverage40_50.java @@ -57,7 +57,7 @@ public class Coverage40_50 { if (src.hasSubscriber()) tgt.setSubscriber(Reference40_50.convertReference(src.getSubscriber())); if (src.hasSubscriberId()) - tgt.getSubscriberId().setValueElement(String40_50.convertString(src.getSubscriberIdElement())); + tgt.getSubscriberIdFirstRep().setValueElement(String40_50.convertString(src.getSubscriberIdElement())); if (src.hasBeneficiary()) tgt.setBeneficiary(Reference40_50.convertReference(src.getBeneficiary())); if (src.hasDependent()) @@ -66,7 +66,7 @@ public class Coverage40_50 { tgt.setRelationship(CodeableConcept40_50.convertCodeableConcept(src.getRelationship())); if (src.hasPeriod()) tgt.setPeriod(Period40_50.convertPeriod(src.getPeriod())); - for (org.hl7.fhir.r4.model.Reference t : src.getPayor()) tgt.addPayor(Reference40_50.convertReference(t)); + for (org.hl7.fhir.r4.model.Reference t : src.getPayor()) tgt.setInsurer(Reference40_50.convertReference(t)); for (org.hl7.fhir.r4.model.Coverage.ClassComponent t : src.getClass_()) tgt.addClass_(convertClassComponent(t)); if (src.hasOrder()) tgt.setOrderElement(PositiveInt40_50.convertPositiveInt(src.getOrderElement())); @@ -96,7 +96,7 @@ public class Coverage40_50 { if (src.hasSubscriber()) tgt.setSubscriber(Reference40_50.convertReference(src.getSubscriber())); if (src.hasSubscriberId()) - tgt.setSubscriberIdElement(String40_50.convertString(src.getSubscriberId().getValueElement())); + tgt.setSubscriberIdElement(String40_50.convertString(src.getSubscriberIdFirstRep().getValueElement())); if (src.hasBeneficiary()) tgt.setBeneficiary(Reference40_50.convertReference(src.getBeneficiary())); if (src.hasDependent()) @@ -105,7 +105,7 @@ public class Coverage40_50 { tgt.setRelationship(CodeableConcept40_50.convertCodeableConcept(src.getRelationship())); if (src.hasPeriod()) tgt.setPeriod(Period40_50.convertPeriod(src.getPeriod())); - for (org.hl7.fhir.r5.model.Reference t : src.getPayor()) tgt.addPayor(Reference40_50.convertReference(t)); + tgt.addPayor(Reference40_50.convertReference(src.getInsurer())); for (org.hl7.fhir.r5.model.Coverage.ClassComponent t : src.getClass_()) tgt.addClass_(convertClassComponent(t)); if (src.hasOrder()) tgt.setOrderElement(PositiveInt40_50.convertPositiveInt(src.getOrderElement())); @@ -177,7 +177,7 @@ public class Coverage40_50 { if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasValue()) - tgt.setValueElement(String40_50.convertString(src.getValueElement())); + tgt.getValue().setValueElement(String40_50.convertString(src.getValueElement())); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); return tgt; @@ -191,7 +191,7 @@ public class Coverage40_50 { if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasValue()) - tgt.setValueElement(String40_50.convertString(src.getValueElement())); + tgt.setValueElement(String40_50.convertString(src.getValue().getValueElement())); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CoverageEligibilityRequest40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CoverageEligibilityRequest40_50.java index ff49daf8f..02249b55b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CoverageEligibilityRequest40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/CoverageEligibilityRequest40_50.java @@ -1,5 +1,7 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; @@ -12,8 +14,6 @@ import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_ import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; import org.hl7.fhir.exceptions.FHIRException; -import java.util.stream.Collectors; - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Device40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Device40_50.java index 364e1c1b3..b82037db1 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Device40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Device40_50.java @@ -1,7 +1,11 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Annotation40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.ContactPoint40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Quantity40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Base64Binary40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; @@ -53,8 +57,8 @@ public class Device40_50 { tgt.addUdiCarrier(convertDeviceUdiCarrierComponent(t)); if (src.hasStatus()) tgt.setStatusElement(convertFHIRDeviceStatus(src.getStatusElement())); - for (org.hl7.fhir.r4.model.CodeableConcept t : src.getStatusReason()) - tgt.addStatusReason(CodeableConcept40_50.convertCodeableConcept(t)); +// for (org.hl7.fhir.r4.model.CodeableConcept t : src.getStatusReason()) +// tgt.addStatusReason(CodeableConcept40_50.convertCodeableConcept(t)); if (src.hasDistinctIdentifier()) tgt.getBiologicalSourceEvent().setValueElement(String40_50.convertString(src.getDistinctIdentifierElement())); if (src.hasManufacturer()) @@ -82,7 +86,7 @@ public class Device40_50 { for (org.hl7.fhir.r4.model.Device.DevicePropertyComponent t : src.getProperty()) tgt.addProperty(convertDevicePropertyComponent(t)); if (src.hasPatient()) - tgt.setSubject(Reference40_50.convertReference(src.getPatient())); + tgt.getAssociationFirstRep().setHumanSubject(Reference40_50.convertReference(src.getPatient())); if (src.hasOwner()) tgt.setOwner(Reference40_50.convertReference(src.getOwner())); for (org.hl7.fhir.r4.model.ContactPoint t : src.getContact()) @@ -112,8 +116,8 @@ public class Device40_50 { tgt.addUdiCarrier(convertDeviceUdiCarrierComponent(t)); if (src.hasStatus()) tgt.setStatusElement(convertFHIRDeviceStatus(src.getStatusElement())); - for (org.hl7.fhir.r5.model.CodeableConcept t : src.getStatusReason()) - tgt.addStatusReason(CodeableConcept40_50.convertCodeableConcept(t)); +// for (org.hl7.fhir.r5.model.CodeableConcept t : src.getStatusReason()) +// tgt.addStatusReason(CodeableConcept40_50.convertCodeableConcept(t)); if (src.hasBiologicalSourceEvent()) tgt.setDistinctIdentifierElement(String40_50.convertString(src.getBiologicalSourceEvent().getValueElement())); if (src.hasManufacturer()) @@ -140,8 +144,8 @@ public class Device40_50 { tgt.addVersion(convertDeviceVersionComponent(t)); for (org.hl7.fhir.r5.model.Device.DevicePropertyComponent t : src.getProperty()) tgt.addProperty(convertDevicePropertyComponent(t)); - if (src.hasSubject()) - tgt.setPatient(Reference40_50.convertReference(src.getSubject())); + if (src.getAssociationFirstRep().hasHumanSubject()) + tgt.setPatient(Reference40_50.convertReference(src.getAssociationFirstRep().getHumanSubject())); if (src.hasOwner()) tgt.setOwner(Reference40_50.convertReference(src.getOwner())); for (org.hl7.fhir.r5.model.ContactPoint t : src.getContact()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DeviceDefinition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DeviceDefinition40_50.java index 36351ae66..e31207094 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DeviceDefinition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DeviceDefinition40_50.java @@ -1,7 +1,11 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Annotation40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.ContactPoint40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Quantity40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DocumentReference40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DocumentReference40_50.java index 64adc2c0b..5076b0178 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DocumentReference40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/DocumentReference40_50.java @@ -1,7 +1,10 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Attachment40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Period40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Instant40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.MarkDown40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Encounter40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Encounter40_50.java index 04ae29853..12eb4d6c1 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Encounter40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Encounter40_50.java @@ -1,7 +1,11 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Coding40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Duration40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Period40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.PositiveInt40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Endpoint40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Endpoint40_50.java index 2fe3d5c66..0082b142a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Endpoint40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Endpoint40_50.java @@ -1,7 +1,11 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Coding40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.ContactPoint40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Period40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Code40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Url40_50; @@ -49,7 +53,7 @@ public class Endpoint40_50 { if (src.hasStatus()) tgt.setStatusElement(convertEndpointStatus(src.getStatusElement())); if (src.hasConnectionType()) - tgt.addConnectionType(Coding40_50.convertCoding(src.getConnectionType())); + tgt.addConnectionType(Coding40_50.convertCodingToCodeableConcept(src.getConnectionType())); if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); if (src.hasManagingOrganization()) @@ -118,9 +122,6 @@ public class Endpoint40_50 { case ENTEREDINERROR: tgt.setValue(org.hl7.fhir.r5.model.Endpoint.EndpointStatus.ENTEREDINERROR); break; - case TEST: - tgt.setValue(org.hl7.fhir.r5.model.Endpoint.EndpointStatus.TEST); - break; default: tgt.setValue(org.hl7.fhir.r5.model.Endpoint.EndpointStatus.NULL); break; @@ -149,9 +150,6 @@ public class Endpoint40_50 { case ENTEREDINERROR: tgt.setValue(org.hl7.fhir.r4.model.Endpoint.EndpointStatus.ENTEREDINERROR); break; - case TEST: - tgt.setValue(org.hl7.fhir.r4.model.Endpoint.EndpointStatus.TEST); - break; default: tgt.setValue(org.hl7.fhir.r4.model.Endpoint.EndpointStatus.NULL); break; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Enumerations40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Enumerations40_50.java index b519517fb..8bf970061 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Enumerations40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Enumerations40_50.java @@ -227,12 +227,6 @@ public class Enumerations40_50 { case _4_1_0: tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FHIRVersion._4_1_0); break; - case _4_3_0_CIBUILD: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FHIRVersion._4_3_0CIBUILD); - break; - case _4_3_0_SNAPSHOT1: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FHIRVersion._4_3_0SNAPSHOT1); - break; case _4_3_0: tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FHIRVersion._4_3_0); break; @@ -321,12 +315,6 @@ public class Enumerations40_50 { case _4_1_0: tgt.setValue(org.hl7.fhir.r4.model.Enumerations.FHIRVersion._4_1_0); break; - case _4_3_0CIBUILD: - tgt.setValue(org.hl7.fhir.r4.model.Enumerations.FHIRVersion._4_3_0_CIBUILD); - break; - case _4_3_0SNAPSHOT1: - tgt.setValue(org.hl7.fhir.r4.model.Enumerations.FHIRVersion._4_3_0_SNAPSHOT1); - break; case _4_3_0: tgt.setValue(org.hl7.fhir.r4.model.Enumerations.FHIRVersion._4_3_0); break; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/EpisodeOfCare40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/EpisodeOfCare40_50.java index f8b23e729..2f62258da 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/EpisodeOfCare40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/EpisodeOfCare40_50.java @@ -64,7 +64,7 @@ public class EpisodeOfCare40_50 { tgt.addReferralRequest(Reference40_50.convertReference(t)); if (src.hasCareManager()) tgt.setCareManager(Reference40_50.convertReference(src.getCareManager())); - for (org.hl7.fhir.r4.model.Reference t : src.getTeam()) tgt.addTeam(Reference40_50.convertReference(t)); + for (org.hl7.fhir.r4.model.Reference t : src.getTeam()) tgt.addCareTeam(Reference40_50.convertReference(t)); for (org.hl7.fhir.r4.model.Reference t : src.getAccount()) tgt.addAccount(Reference40_50.convertReference(t)); return tgt; } @@ -94,7 +94,7 @@ public class EpisodeOfCare40_50 { tgt.addReferralRequest(Reference40_50.convertReference(t)); if (src.hasCareManager()) tgt.setCareManager(Reference40_50.convertReference(src.getCareManager())); - for (org.hl7.fhir.r5.model.Reference t : src.getTeam()) tgt.addTeam(Reference40_50.convertReference(t)); + for (org.hl7.fhir.r5.model.Reference t : src.getCareTeam()) tgt.addTeam(Reference40_50.convertReference(t)); for (org.hl7.fhir.r5.model.Reference t : src.getAccount()) tgt.addAccount(Reference40_50.convertReference(t)); return tgt; } @@ -197,7 +197,7 @@ public class EpisodeOfCare40_50 { org.hl7.fhir.r5.model.EpisodeOfCare.DiagnosisComponent tgt = new org.hl7.fhir.r5.model.EpisodeOfCare.DiagnosisComponent(); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCondition()) - tgt.setCondition(Reference40_50.convertReference(src.getCondition())); + tgt.setCondition(Reference40_50.convertReferenceToCodeableReference(src.getCondition())); if (src.hasRole()) tgt.setRole(CodeableConcept40_50.convertCodeableConcept(src.getRole())); if (src.hasRank()) @@ -211,7 +211,7 @@ public class EpisodeOfCare40_50 { org.hl7.fhir.r4.model.EpisodeOfCare.DiagnosisComponent tgt = new org.hl7.fhir.r4.model.EpisodeOfCare.DiagnosisComponent(); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCondition()) - tgt.setCondition(Reference40_50.convertReference(src.getCondition())); + tgt.setCondition(Reference40_50.convertCodeableReferenceToReference(src.getCondition())); if (src.hasRole()) tgt.setRole(CodeableConcept40_50.convertCodeableConcept(src.getRole())); if (src.hasRank()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/EventDefinition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/EventDefinition40_50.java index d4ad0c792..c2744faa4 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/EventDefinition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/EventDefinition40_50.java @@ -8,7 +8,12 @@ import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.ContactDet import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.RelatedArtifact40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.TriggerDefinition40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.UsageContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Date40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.MarkDown40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; import org.hl7.fhir.exceptions.FHIRException; /* diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ExampleScenario40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ExampleScenario40_50.java index d8ac1c057..05a4ab40a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ExampleScenario40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ExampleScenario40_50.java @@ -5,8 +5,13 @@ import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableCon import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.ContactDetail40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.UsageContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.MarkDown40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.r4.model.ExampleScenario.FHIRResourceType; /* Copyright (c) 2011+, HL7, Inc. @@ -76,8 +81,8 @@ public class ExampleScenario40_50 { tgt.addInstance(convertExampleScenarioInstanceComponent(t)); for (org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioProcessComponent t : src.getProcess()) tgt.addProcess(convertExampleScenarioProcessComponent(t)); - for (org.hl7.fhir.r4.model.CanonicalType t : src.getWorkflow()) - tgt.getWorkflow().add(Canonical40_50.convertCanonical(t)); +// for (org.hl7.fhir.r4.model.CanonicalType t : src.getWorkflow()) +// tgt.getWorkflow().add(Canonical40_50.convertCanonical(t)); return tgt; } @@ -118,8 +123,8 @@ public class ExampleScenario40_50 { tgt.addInstance(convertExampleScenarioInstanceComponent(t)); for (org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioProcessComponent t : src.getProcess()) tgt.addProcess(convertExampleScenarioProcessComponent(t)); - for (org.hl7.fhir.r5.model.CanonicalType t : src.getWorkflow()) - tgt.getWorkflow().add(Canonical40_50.convertCanonical(t)); +// for (org.hl7.fhir.r5.model.CanonicalType t : src.getWorkflow()) +// tgt.getWorkflow().add(Canonical40_50.convertCanonical(t)); return tgt; } @@ -129,11 +134,11 @@ public class ExampleScenario40_50 { org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioActorComponent tgt = new org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioActorComponent(); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasActorId()) - tgt.setActorIdElement(String40_50.convertString(src.getActorIdElement())); + tgt.setKeyElement(String40_50.convertString(src.getActorIdElement())); if (src.hasType()) tgt.setTypeElement(convertExampleScenarioActorType(src.getTypeElement())); if (src.hasName()) - tgt.setNameElement(String40_50.convertString(src.getNameElement())); + tgt.setTitleElement(String40_50.convertString(src.getNameElement())); if (src.hasDescription()) tgt.setDescriptionElement(MarkDown40_50.convertMarkdown(src.getDescriptionElement())); return tgt; @@ -144,37 +149,37 @@ public class ExampleScenario40_50 { return null; org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioActorComponent tgt = new org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioActorComponent(); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); - if (src.hasActorId()) - tgt.setActorIdElement(String40_50.convertString(src.getActorIdElement())); + if (src.hasKey()) + tgt.setActorIdElement(String40_50.convertString(src.getKeyElement())); if (src.hasType()) tgt.setTypeElement(convertExampleScenarioActorType(src.getTypeElement())); - if (src.hasName()) - tgt.setNameElement(String40_50.convertString(src.getNameElement())); + if (src.hasTitle()) + tgt.setNameElement(String40_50.convertString(src.getTitleElement())); if (src.hasDescription()) tgt.setDescriptionElement(MarkDown40_50.convertMarkdown(src.getDescriptionElement())); return tgt; } - static public org.hl7.fhir.r5.model.Enumeration convertExampleScenarioActorType(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { + static public org.hl7.fhir.r5.model.Enumeration convertExampleScenarioActorType(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { if (src == null || src.isEmpty()) return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioActorTypeEnumFactory()); + org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.ExampleScenarioActorTypeEnumFactory()); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); switch (src.getValue()) { case PERSON: - tgt.setValue(org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioActorType.PERSON); + tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ExampleScenarioActorType.PERSON); break; case ENTITY: - tgt.setValue(org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioActorType.ENTITY); + tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ExampleScenarioActorType.SYSTEM); break; default: - tgt.setValue(org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioActorType.NULL); + tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ExampleScenarioActorType.NULL); break; } return tgt; } - static public org.hl7.fhir.r4.model.Enumeration convertExampleScenarioActorType(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { + static public org.hl7.fhir.r4.model.Enumeration convertExampleScenarioActorType(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioActorTypeEnumFactory()); @@ -183,7 +188,7 @@ public class ExampleScenario40_50 { case PERSON: tgt.setValue(org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioActorType.PERSON); break; - case ENTITY: + case SYSTEM: tgt.setValue(org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioActorType.ENTITY); break; default: @@ -199,11 +204,11 @@ public class ExampleScenario40_50 { org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioInstanceComponent tgt = new org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioInstanceComponent(); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasResourceId()) - tgt.setResourceIdElement(String40_50.convertString(src.getResourceIdElement())); + tgt.setKeyElement(String40_50.convertString(src.getResourceIdElement())); if (src.hasResourceType()) - tgt.setTypeElement(convertFHIRResourceType(src.getResourceTypeElement())); + tgt.getStructureType().setCode(src.getResourceType().toCode()); if (src.hasName()) - tgt.setNameElement(String40_50.convertString(src.getNameElement())); + tgt.setTitleElement(String40_50.convertString(src.getNameElement())); if (src.hasDescription()) tgt.setDescriptionElement(MarkDown40_50.convertMarkdown(src.getDescriptionElement())); for (org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioInstanceVersionComponent t : src.getVersion()) @@ -218,12 +223,12 @@ public class ExampleScenario40_50 { return null; org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioInstanceComponent tgt = new org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioInstanceComponent(); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); - if (src.hasResourceId()) - tgt.setResourceIdElement(String40_50.convertString(src.getResourceIdElement())); + if (src.hasKey()) + tgt.setResourceIdElement(String40_50.convertString(src.getKeyElement())); if (src.hasType()) - tgt.setResourceTypeElement(convertFHIRResourceType(src.getTypeElement())); - if (src.hasName()) - tgt.setNameElement(String40_50.convertString(src.getNameElement())); + tgt.setResourceType(FHIRResourceType.fromCode(src.getStructureType().getCode())); + if (src.hasTitle()) + tgt.setNameElement(String40_50.convertString(src.getTitleElement())); if (src.hasDescription()) tgt.setDescriptionElement(MarkDown40_50.convertMarkdown(src.getDescriptionElement())); for (org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioInstanceVersionComponent t : src.getVersion()) @@ -255,7 +260,7 @@ public class ExampleScenario40_50 { org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioInstanceVersionComponent tgt = new org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioInstanceVersionComponent(); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasVersionId()) - tgt.setVersionIdElement(String40_50.convertString(src.getVersionIdElement())); + tgt.setKeyElement(String40_50.convertString(src.getVersionIdElement())); if (src.hasDescription()) tgt.setDescriptionElement(MarkDown40_50.convertMarkdown(src.getDescriptionElement())); return tgt; @@ -266,8 +271,8 @@ public class ExampleScenario40_50 { return null; org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioInstanceVersionComponent tgt = new org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioInstanceVersionComponent(); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); - if (src.hasVersionId()) - tgt.setVersionIdElement(String40_50.convertString(src.getVersionIdElement())); + if (src.hasKey()) + tgt.setVersionIdElement(String40_50.convertString(src.getKeyElement())); if (src.hasDescription()) tgt.setDescriptionElement(MarkDown40_50.convertMarkdown(src.getDescriptionElement())); return tgt; @@ -279,9 +284,9 @@ public class ExampleScenario40_50 { org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioInstanceContainedInstanceComponent tgt = new org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioInstanceContainedInstanceComponent(); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasResourceId()) - tgt.setResourceIdElement(String40_50.convertString(src.getResourceIdElement())); + tgt.setInstanceReferenceElement(String40_50.convertString(src.getResourceIdElement())); if (src.hasVersionId()) - tgt.setVersionIdElement(String40_50.convertString(src.getVersionIdElement())); + tgt.setVersionReferenceElement(String40_50.convertString(src.getVersionIdElement())); return tgt; } @@ -290,10 +295,10 @@ public class ExampleScenario40_50 { return null; org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioInstanceContainedInstanceComponent tgt = new org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioInstanceContainedInstanceComponent(); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); - if (src.hasResourceId()) - tgt.setResourceIdElement(String40_50.convertString(src.getResourceIdElement())); - if (src.hasVersionId()) - tgt.setVersionIdElement(String40_50.convertString(src.getVersionIdElement())); + if (src.hasInstanceReference()) + tgt.setResourceIdElement(String40_50.convertString(src.getInstanceReferenceElement())); + if (src.hasVersionReference()) + tgt.setVersionIdElement(String40_50.convertString(src.getVersionReferenceElement())); return tgt; } @@ -339,7 +344,7 @@ public class ExampleScenario40_50 { org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioProcessStepComponent tgt = new org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioProcessStepComponent(); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioProcessComponent t : src.getProcess()) - tgt.addProcess(convertExampleScenarioProcessComponent(t)); + tgt.setProcess(convertExampleScenarioProcessComponent(t)); if (src.hasPause()) tgt.setPauseElement(Boolean40_50.convertBoolean(src.getPauseElement())); if (src.hasOperation()) @@ -354,8 +359,7 @@ public class ExampleScenario40_50 { return null; org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioProcessStepComponent tgt = new org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioProcessStepComponent(); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); - for (org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioProcessComponent t : src.getProcess()) - tgt.addProcess(convertExampleScenarioProcessComponent(t)); + tgt.addProcess(convertExampleScenarioProcessComponent(src.getProcess())); if (src.hasPause()) tgt.setPauseElement(Boolean40_50.convertBoolean(src.getPauseElement())); if (src.hasOperation()) @@ -370,12 +374,12 @@ public class ExampleScenario40_50 { return null; org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioProcessStepOperationComponent tgt = new org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioProcessStepOperationComponent(); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); - if (src.hasNumber()) - tgt.setNumberElement(String40_50.convertString(src.getNumberElement())); +// if (src.hasNumber()) +// tgt.setNumberElement(String40_50.convertString(src.getNumberElement())); if (src.hasType()) - tgt.setTypeElement(String40_50.convertString(src.getTypeElement())); + tgt.getType().setCode(src.getType()); if (src.hasName()) - tgt.setNameElement(String40_50.convertString(src.getNameElement())); + tgt.setTitleElement(String40_50.convertString(src.getNameElement())); if (src.hasInitiator()) tgt.setInitiatorElement(String40_50.convertString(src.getInitiatorElement())); if (src.hasReceiver()) @@ -398,12 +402,12 @@ public class ExampleScenario40_50 { return null; org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioProcessStepOperationComponent tgt = new org.hl7.fhir.r4.model.ExampleScenario.ExampleScenarioProcessStepOperationComponent(); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); - if (src.hasNumber()) - tgt.setNumberElement(String40_50.convertString(src.getNumberElement())); +// if (src.hasNumber()) +// tgt.setNumberElement(String40_50.convertString(src.getNumberElement())); if (src.hasType()) - tgt.setTypeElement(String40_50.convertString(src.getTypeElement())); - if (src.hasName()) - tgt.setNameElement(String40_50.convertString(src.getNameElement())); + tgt.setType(src.getType().getCode()); + if (src.hasTitle()) + tgt.setNameElement(String40_50.convertString(src.getTitleElement())); if (src.hasInitiator()) tgt.setInitiatorElement(String40_50.convertString(src.getInitiatorElement())); if (src.hasReceiver()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ExplanationOfBenefit40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ExplanationOfBenefit40_50.java index b15252e1e..62e50bd8e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ExplanationOfBenefit40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ExplanationOfBenefit40_50.java @@ -1,8 +1,19 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.*; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Attachment40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Coding40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Money40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Period40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.SimpleQuantity40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Date40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Decimal40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.PositiveInt40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; import org.hl7.fhir.exceptions.FHIRException; @@ -435,7 +446,7 @@ public class ExplanationOfBenefit40_50 { if (src.hasRole()) tgt.setRole(CodeableConcept40_50.convertCodeableConcept(src.getRole())); if (src.hasQualification()) - tgt.setQualification(CodeableConcept40_50.convertCodeableConcept(src.getQualification())); + tgt.setSpecialty(CodeableConcept40_50.convertCodeableConcept(src.getQualification())); return tgt; } @@ -452,8 +463,8 @@ public class ExplanationOfBenefit40_50 { tgt.setResponsibleElement(Boolean40_50.convertBoolean(src.getResponsibleElement())); if (src.hasRole()) tgt.setRole(CodeableConcept40_50.convertCodeableConcept(src.getRole())); - if (src.hasQualification()) - tgt.setQualification(CodeableConcept40_50.convertCodeableConcept(src.getQualification())); + if (src.hasSpecialty()) + tgt.setQualification(CodeableConcept40_50.convertCodeableConcept(src.getSpecialty())); return tgt; } @@ -510,8 +521,8 @@ public class ExplanationOfBenefit40_50 { tgt.addType(CodeableConcept40_50.convertCodeableConcept(t)); if (src.hasOnAdmission()) tgt.setOnAdmission(CodeableConcept40_50.convertCodeableConcept(src.getOnAdmission())); - if (src.hasPackageCode()) - tgt.setPackageCode(CodeableConcept40_50.convertCodeableConcept(src.getPackageCode())); +// if (src.hasPackageCode()) +// tgt.setPackageCode(CodeableConcept40_50.convertCodeableConcept(src.getPackageCode())); return tgt; } @@ -528,8 +539,8 @@ public class ExplanationOfBenefit40_50 { tgt.addType(CodeableConcept40_50.convertCodeableConcept(t)); if (src.hasOnAdmission()) tgt.setOnAdmission(CodeableConcept40_50.convertCodeableConcept(src.getOnAdmission())); - if (src.hasPackageCode()) - tgt.setPackageCode(CodeableConcept40_50.convertCodeableConcept(src.getPackageCode())); +// if (src.hasPackageCode()) +// tgt.setPackageCode(CodeableConcept40_50.convertCodeableConcept(src.getPackageCode())); return tgt; } @@ -662,9 +673,9 @@ public class ExplanationOfBenefit40_50 { tgt.setNet(Money40_50.convertMoney(src.getNet())); for (org.hl7.fhir.r4.model.Reference t : src.getUdi()) tgt.addUdi(Reference40_50.convertReference(t)); if (src.hasBodySite()) - tgt.setBodySite(CodeableConcept40_50.convertCodeableConcept(src.getBodySite())); + tgt.getBodySiteFirstRep().addSite(CodeableConcept40_50.convertCodeableConceptToCodeableReference(src.getBodySite())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getSubSite()) - tgt.addSubSite(CodeableConcept40_50.convertCodeableConcept(t)); + tgt.getBodySiteFirstRep().addSubSite(CodeableConcept40_50.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.Reference t : src.getEncounter()) tgt.addEncounter(Reference40_50.convertReference(t)); for (org.hl7.fhir.r4.model.PositiveIntType t : src.getNoteNumber()) tgt.getNoteNumber().add(PositiveInt40_50.convertPositiveInt(t)); @@ -713,9 +724,9 @@ public class ExplanationOfBenefit40_50 { if (src.hasNet()) tgt.setNet(Money40_50.convertMoney(src.getNet())); for (org.hl7.fhir.r5.model.Reference t : src.getUdi()) tgt.addUdi(Reference40_50.convertReference(t)); - if (src.hasBodySite()) - tgt.setBodySite(CodeableConcept40_50.convertCodeableConcept(src.getBodySite())); - for (org.hl7.fhir.r5.model.CodeableConcept t : src.getSubSite()) + if (src.getBodySiteFirstRep().hasSite()) + tgt.setBodySite(CodeableConcept40_50.convertCodeableReferenceToCodeableConcept(src.getBodySiteFirstRep().getSiteFirstRep())); + for (org.hl7.fhir.r5.model.CodeableConcept t : src.getBodySiteFirstRep().getSubSite()) tgt.addSubSite(CodeableConcept40_50.convertCodeableConcept(t)); for (org.hl7.fhir.r5.model.Reference t : src.getEncounter()) tgt.addEncounter(Reference40_50.convertReference(t)); for (org.hl7.fhir.r5.model.PositiveIntType t : src.getNoteNumber()) @@ -926,9 +937,9 @@ public class ExplanationOfBenefit40_50 { if (src.hasNet()) tgt.setNet(Money40_50.convertMoney(src.getNet())); if (src.hasBodySite()) - tgt.setBodySite(CodeableConcept40_50.convertCodeableConcept(src.getBodySite())); + tgt.getBodySiteFirstRep().addSite(CodeableConcept40_50.convertCodeableConceptToCodeableReference(src.getBodySite())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getSubSite()) - tgt.addSubSite(CodeableConcept40_50.convertCodeableConcept(t)); + tgt.getBodySiteFirstRep().addSubSite(CodeableConcept40_50.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.PositiveIntType t : src.getNoteNumber()) tgt.getNoteNumber().add(PositiveInt40_50.convertPositiveInt(t)); for (org.hl7.fhir.r4.model.ExplanationOfBenefit.AdjudicationComponent t : src.getAdjudication()) @@ -968,9 +979,9 @@ public class ExplanationOfBenefit40_50 { tgt.setFactorElement(Decimal40_50.convertDecimal(src.getFactorElement())); if (src.hasNet()) tgt.setNet(Money40_50.convertMoney(src.getNet())); - if (src.hasBodySite()) - tgt.setBodySite(CodeableConcept40_50.convertCodeableConcept(src.getBodySite())); - for (org.hl7.fhir.r5.model.CodeableConcept t : src.getSubSite()) + if (src.getBodySiteFirstRep().hasSite()) + tgt.setBodySite(CodeableConcept40_50.convertCodeableReferenceToCodeableConcept(src.getBodySiteFirstRep().getSiteFirstRep())); + for (org.hl7.fhir.r5.model.CodeableConcept t : src.getBodySiteFirstRep().getSubSite()) tgt.addSubSite(CodeableConcept40_50.convertCodeableConcept(t)); for (org.hl7.fhir.r5.model.PositiveIntType t : src.getNoteNumber()) tgt.getNoteNumber().add(PositiveInt40_50.convertPositiveInt(t)); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/FamilyMemberHistory40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/FamilyMemberHistory40_50.java index d29c1c198..32e476893 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/FamilyMemberHistory40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/FamilyMemberHistory40_50.java @@ -4,7 +4,11 @@ import org.hl7.fhir.convertors.context.ConversionContext40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Annotation40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Canonical40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeableReference; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/GraphDefinition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/GraphDefinition40_50.java index aab9b7a79..d12e19fab 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/GraphDefinition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/GraphDefinition40_50.java @@ -4,7 +4,14 @@ import org.hl7.fhir.convertors.context.ConversionContext40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.ContactDetail40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.UsageContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Canonical40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Code40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Integer40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.MarkDown40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; import org.hl7.fhir.exceptions.FHIRException; /* diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/HealthcareService40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/HealthcareService40_50.java index 88f7b2e88..8304370c9 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/HealthcareService40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/HealthcareService40_50.java @@ -1,17 +1,17 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Attachment40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.ContactPoint40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.MarkDown40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Time40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.ExtendedContactDetail; -import java.util.stream.Collectors; - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ImagingStudy40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ImagingStudy40_50.java index 81ca8d681..deec1546d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ImagingStudy40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ImagingStudy40_50.java @@ -11,7 +11,6 @@ import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_ import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.UnsignedInt40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; import org.hl7.fhir.exceptions.FHIRException; -import org.hl7.fhir.r4.model.codesystems.CodesystemAltcodeKindEnumFactory; import org.hl7.fhir.r5.model.CodeableConcept; import org.hl7.fhir.r5.model.CodeableReference; import org.hl7.fhir.r5.model.Coding; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Immunization40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Immunization40_50.java index f75ac82d7..9bc7d5d11 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Immunization40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Immunization40_50.java @@ -5,7 +5,10 @@ import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Annotation4 import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.SimpleQuantity40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Date40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeableReference; @@ -69,7 +72,7 @@ public class Immunization40_50 { if (src.hasLocation()) tgt.setLocation(Reference40_50.convertReference(src.getLocation())); if (src.hasManufacturer()) - tgt.setManufacturer(Reference40_50.convertReference(src.getManufacturer())); + tgt.setManufacturer(Reference40_50.convertReferenceToCodeableReference(src.getManufacturer())); if (src.hasLotNumber()) tgt.setLotNumberElement(String40_50.convertString(src.getLotNumberElement())); if (src.hasExpirationDate()) @@ -92,10 +95,10 @@ public class Immunization40_50 { for (org.hl7.fhir.r4.model.CodeableConcept t : src.getSubpotentReason()) tgt.addSubpotentReason(CodeableConcept40_50.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.Immunization.ImmunizationEducationComponent t : src.getEducation()) - tgt.addEducation(convertImmunizationEducationComponent(t)); - for (org.hl7.fhir.r4.model.CodeableConcept t : src.getProgramEligibility()) - tgt.addProgramEligibility(CodeableConcept40_50.convertCodeableConcept(t)); - if (src.hasFundingSource()) +// tgt.addEducation(convertImmunizationEducationComponent(t)); +// for (org.hl7.fhir.r4.model.CodeableConcept t : src.getProgramEligibility()) +// tgt.addProgramEligibility(CodeableConcept40_50.convertCodeableConcept(t)); +// if (src.hasFundingSource()) tgt.setFundingSource(CodeableConcept40_50.convertCodeableConcept(src.getFundingSource())); for (org.hl7.fhir.r4.model.Immunization.ImmunizationReactionComponent t : src.getReaction()) tgt.addReaction(convertImmunizationReactionComponent(t)); @@ -132,7 +135,7 @@ public class Immunization40_50 { if (src.hasLocation()) tgt.setLocation(Reference40_50.convertReference(src.getLocation())); if (src.hasManufacturer()) - tgt.setManufacturer(Reference40_50.convertReference(src.getManufacturer())); + tgt.setManufacturer(Reference40_50.convertCodeableReferenceToReference(src.getManufacturer())); if (src.hasLotNumber()) tgt.setLotNumberElement(String40_50.convertString(src.getLotNumberElement())); if (src.hasExpirationDate()) @@ -156,10 +159,10 @@ public class Immunization40_50 { tgt.setIsSubpotentElement(Boolean40_50.convertBoolean(src.getIsSubpotentElement())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getSubpotentReason()) tgt.addSubpotentReason(CodeableConcept40_50.convertCodeableConcept(t)); - for (org.hl7.fhir.r5.model.Immunization.ImmunizationEducationComponent t : src.getEducation()) - tgt.addEducation(convertImmunizationEducationComponent(t)); - for (org.hl7.fhir.r5.model.CodeableConcept t : src.getProgramEligibility()) - tgt.addProgramEligibility(CodeableConcept40_50.convertCodeableConcept(t)); +// for (org.hl7.fhir.r5.model.Immunization.ImmunizationEducationComponent t : src.getEducation()) +// tgt.addEducation(convertImmunizationEducationComponent(t)); +// for (org.hl7.fhir.r5.model.CodeableConcept t : src.getProgramEligibility()) +// tgt.addProgramEligibility(CodeableConcept40_50.convertCodeableConcept(t)); if (src.hasFundingSource()) tgt.setFundingSource(CodeableConcept40_50.convertCodeableConcept(src.getFundingSource())); for (org.hl7.fhir.r5.model.Immunization.ImmunizationReactionComponent t : src.getReaction()) @@ -237,37 +240,37 @@ public class Immunization40_50 { return tgt; } - public static org.hl7.fhir.r5.model.Immunization.ImmunizationEducationComponent convertImmunizationEducationComponent(org.hl7.fhir.r4.model.Immunization.ImmunizationEducationComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.Immunization.ImmunizationEducationComponent tgt = new org.hl7.fhir.r5.model.Immunization.ImmunizationEducationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); - if (src.hasDocumentType()) - tgt.setDocumentTypeElement(String40_50.convertString(src.getDocumentTypeElement())); - if (src.hasReference()) - tgt.setReferenceElement(Uri40_50.convertUri(src.getReferenceElement())); - if (src.hasPublicationDate()) - tgt.setPublicationDateElement(DateTime40_50.convertDateTime(src.getPublicationDateElement())); - if (src.hasPresentationDate()) - tgt.setPresentationDateElement(DateTime40_50.convertDateTime(src.getPresentationDateElement())); - return tgt; - } - - public static org.hl7.fhir.r4.model.Immunization.ImmunizationEducationComponent convertImmunizationEducationComponent(org.hl7.fhir.r5.model.Immunization.ImmunizationEducationComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r4.model.Immunization.ImmunizationEducationComponent tgt = new org.hl7.fhir.r4.model.Immunization.ImmunizationEducationComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); - if (src.hasDocumentType()) - tgt.setDocumentTypeElement(String40_50.convertString(src.getDocumentTypeElement())); - if (src.hasReference()) - tgt.setReferenceElement(Uri40_50.convertUri(src.getReferenceElement())); - if (src.hasPublicationDate()) - tgt.setPublicationDateElement(DateTime40_50.convertDateTime(src.getPublicationDateElement())); - if (src.hasPresentationDate()) - tgt.setPresentationDateElement(DateTime40_50.convertDateTime(src.getPresentationDateElement())); - return tgt; - } +// public static org.hl7.fhir.r5.model.Immunization.ImmunizationEducationComponent convertImmunizationEducationComponent(org.hl7.fhir.r4.model.Immunization.ImmunizationEducationComponent src) throws FHIRException { +// if (src == null) +// return null; +// org.hl7.fhir.r5.model.Immunization.ImmunizationEducationComponent tgt = new org.hl7.fhir.r5.model.Immunization.ImmunizationEducationComponent(); +// ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); +// if (src.hasDocumentType()) +// tgt.setDocumentTypeElement(String40_50.convertString(src.getDocumentTypeElement())); +// if (src.hasReference()) +// tgt.setReferenceElement(Uri40_50.convertUri(src.getReferenceElement())); +// if (src.hasPublicationDate()) +// tgt.setPublicationDateElement(DateTime40_50.convertDateTime(src.getPublicationDateElement())); +// if (src.hasPresentationDate()) +// tgt.setPresentationDateElement(DateTime40_50.convertDateTime(src.getPresentationDateElement())); +// return tgt; +// } +// +// public static org.hl7.fhir.r4.model.Immunization.ImmunizationEducationComponent convertImmunizationEducationComponent(org.hl7.fhir.r5.model.Immunization.ImmunizationEducationComponent src) throws FHIRException { +// if (src == null) +// return null; +// org.hl7.fhir.r4.model.Immunization.ImmunizationEducationComponent tgt = new org.hl7.fhir.r4.model.Immunization.ImmunizationEducationComponent(); +// ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); +// if (src.hasDocumentType()) +// tgt.setDocumentTypeElement(String40_50.convertString(src.getDocumentTypeElement())); +// if (src.hasReference()) +// tgt.setReferenceElement(Uri40_50.convertUri(src.getReferenceElement())); +// if (src.hasPublicationDate()) +// tgt.setPublicationDateElement(DateTime40_50.convertDateTime(src.getPublicationDateElement())); +// if (src.hasPresentationDate()) +// tgt.setPresentationDateElement(DateTime40_50.convertDateTime(src.getPresentationDateElement())); +// return tgt; +// } public static org.hl7.fhir.r5.model.Immunization.ImmunizationReactionComponent convertImmunizationReactionComponent(org.hl7.fhir.r4.model.Immunization.ImmunizationReactionComponent src) throws FHIRException { if (src == null) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ImplementationGuide40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ImplementationGuide40_50.java index c0fe7464e..04c31ecad 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ImplementationGuide40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ImplementationGuide40_50.java @@ -1,18 +1,24 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.ContactDetail40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.UsageContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Canonical40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Code40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Id40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.MarkDown40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Url40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Canonical43_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.utilities.Utilities; -import java.util.stream.Collectors; - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -2280,7 +2286,7 @@ public class ImplementationGuide40_50 { org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideGlobalComponent(); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) - tgt.setTypeElement(Code40_50.convertResourceEnum(src.getTypeElement())); + tgt.setTypeElement(Code40_50.convertCode(src.getTypeElement())); if (src.hasProfile()) tgt.setProfileElement(Canonical40_50.convertCanonical(src.getProfileElement())); return tgt; @@ -2292,7 +2298,7 @@ public class ImplementationGuide40_50 { org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.r4.model.ImplementationGuide.ImplementationGuideGlobalComponent(); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) - tgt.setTypeElement(Code40_50.convertResourceEnum(src.getTypeElement())); + tgt.setTypeElement(Code40_50.convertCode(src.getTypeElement())); if (src.hasProfile()) tgt.setProfileElement(Canonical40_50.convertCanonical(src.getProfileElement())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/InsurancePlan40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/InsurancePlan40_50.java index 6202df4be..d34f18153 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/InsurancePlan40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/InsurancePlan40_50.java @@ -1,7 +1,14 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Address40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.ContactPoint40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.HumanName40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Money40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Period40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Quantity40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.PositiveInt40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; @@ -113,7 +120,7 @@ public class InsurancePlan40_50 { if (src.hasPurpose()) tgt.setPurpose(CodeableConcept40_50.convertCodeableConcept(src.getPurpose())); if (src.hasName()) - tgt.setName(HumanName40_50.convertHumanName(src.getName())); + tgt.addName(HumanName40_50.convertHumanName(src.getName())); for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(ContactPoint40_50.convertContactPoint(t)); if (src.hasAddress()) @@ -129,7 +136,7 @@ public class InsurancePlan40_50 { if (src.hasPurpose()) tgt.setPurpose(CodeableConcept40_50.convertCodeableConcept(src.getPurpose())); if (src.hasName()) - tgt.setName(HumanName40_50.convertHumanName(src.getName())); + tgt.setName(HumanName40_50.convertHumanName(src.getNameFirstRep())); for (org.hl7.fhir.r5.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(ContactPoint40_50.convertContactPoint(t)); if (src.hasAddress()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Invoice40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Invoice40_50.java index e8924d500..752fbd53e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Invoice40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Invoice40_50.java @@ -5,7 +5,10 @@ import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Annotation4 import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Money40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.MarkDown40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.PositiveInt40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; import org.hl7.fhir.exceptions.FHIRException; @@ -67,8 +70,8 @@ public class Invoice40_50 { tgt.setAccount(Reference40_50.convertReference(src.getAccount())); for (org.hl7.fhir.r4.model.Invoice.InvoiceLineItemComponent t : src.getLineItem()) tgt.addLineItem(convertInvoiceLineItemComponent(t)); - for (org.hl7.fhir.r4.model.Invoice.InvoiceLineItemPriceComponentComponent t : src.getTotalPriceComponent()) - tgt.addTotalPriceComponent(convertInvoiceLineItemPriceComponentComponent(t)); +// for (org.hl7.fhir.r4.model.Invoice.InvoiceLineItemPriceComponentComponent t : src.getTotalPriceComponent()) +// tgt.addTotalPriceComponent(convertInvoiceLineItemPriceComponentComponent(t)); if (src.hasTotalNet()) tgt.setTotalNet(Money40_50.convertMoney(src.getTotalNet())); if (src.hasTotalGross()) @@ -106,8 +109,8 @@ public class Invoice40_50 { tgt.setAccount(Reference40_50.convertReference(src.getAccount())); for (org.hl7.fhir.r5.model.Invoice.InvoiceLineItemComponent t : src.getLineItem()) tgt.addLineItem(convertInvoiceLineItemComponent(t)); - for (org.hl7.fhir.r5.model.Invoice.InvoiceLineItemPriceComponentComponent t : src.getTotalPriceComponent()) - tgt.addTotalPriceComponent(convertInvoiceLineItemPriceComponentComponent(t)); +// for (org.hl7.fhir.r5.model.Invoice.InvoiceLineItemPriceComponentComponent t : src.getTotalPriceComponent()) +// tgt.addTotalPriceComponent(convertInvoiceLineItemPriceComponentComponent(t)); if (src.hasTotalNet()) tgt.setTotalNet(Money40_50.convertMoney(src.getTotalNet())); if (src.hasTotalGross()) @@ -207,8 +210,8 @@ public class Invoice40_50 { tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); if (src.hasChargeItem()) tgt.setChargeItem(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getChargeItem())); - for (org.hl7.fhir.r4.model.Invoice.InvoiceLineItemPriceComponentComponent t : src.getPriceComponent()) - tgt.addPriceComponent(convertInvoiceLineItemPriceComponentComponent(t)); +// for (org.hl7.fhir.r4.model.Invoice.InvoiceLineItemPriceComponentComponent t : src.getPriceComponent()) +// tgt.addPriceComponent(convertInvoiceLineItemPriceComponentComponent(t)); return tgt; } @@ -221,102 +224,102 @@ public class Invoice40_50 { tgt.setSequenceElement(PositiveInt40_50.convertPositiveInt(src.getSequenceElement())); if (src.hasChargeItem()) tgt.setChargeItem(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getChargeItem())); - for (org.hl7.fhir.r5.model.Invoice.InvoiceLineItemPriceComponentComponent t : src.getPriceComponent()) - tgt.addPriceComponent(convertInvoiceLineItemPriceComponentComponent(t)); +// for (org.hl7.fhir.r5.model.Invoice.InvoiceLineItemPriceComponentComponent t : src.getPriceComponent()) +// tgt.addPriceComponent(convertInvoiceLineItemPriceComponentComponent(t)); return tgt; } - public static org.hl7.fhir.r5.model.Invoice.InvoiceLineItemPriceComponentComponent convertInvoiceLineItemPriceComponentComponent(org.hl7.fhir.r4.model.Invoice.InvoiceLineItemPriceComponentComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.Invoice.InvoiceLineItemPriceComponentComponent tgt = new org.hl7.fhir.r5.model.Invoice.InvoiceLineItemPriceComponentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); - if (src.hasType()) - tgt.setTypeElement(convertInvoicePriceComponentType(src.getTypeElement())); - if (src.hasCode()) - tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); - if (src.hasFactor()) - tgt.setFactorElement(Decimal40_50.convertDecimal(src.getFactorElement())); - if (src.hasAmount()) - tgt.setAmount(Money40_50.convertMoney(src.getAmount())); - return tgt; - } - - public static org.hl7.fhir.r4.model.Invoice.InvoiceLineItemPriceComponentComponent convertInvoiceLineItemPriceComponentComponent(org.hl7.fhir.r5.model.Invoice.InvoiceLineItemPriceComponentComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r4.model.Invoice.InvoiceLineItemPriceComponentComponent tgt = new org.hl7.fhir.r4.model.Invoice.InvoiceLineItemPriceComponentComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); - if (src.hasType()) - tgt.setTypeElement(convertInvoicePriceComponentType(src.getTypeElement())); - if (src.hasCode()) - tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); - if (src.hasFactor()) - tgt.setFactorElement(Decimal40_50.convertDecimal(src.getFactorElement())); - if (src.hasAmount()) - tgt.setAmount(Money40_50.convertMoney(src.getAmount())); - return tgt; - } - - static public org.hl7.fhir.r5.model.Enumeration convertInvoicePriceComponentType(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentTypeEnumFactory()); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); - switch (src.getValue()) { - case BASE: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.BASE); - break; - case SURCHARGE: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.SURCHARGE); - break; - case DEDUCTION: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.DEDUCTION); - break; - case DISCOUNT: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.DISCOUNT); - break; - case TAX: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.TAX); - break; - case INFORMATIONAL: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.INFORMATIONAL); - break; - default: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r4.model.Enumeration convertInvoicePriceComponentType(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.Invoice.InvoicePriceComponentTypeEnumFactory()); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); - switch (src.getValue()) { - case BASE: - tgt.setValue(org.hl7.fhir.r4.model.Invoice.InvoicePriceComponentType.BASE); - break; - case SURCHARGE: - tgt.setValue(org.hl7.fhir.r4.model.Invoice.InvoicePriceComponentType.SURCHARGE); - break; - case DEDUCTION: - tgt.setValue(org.hl7.fhir.r4.model.Invoice.InvoicePriceComponentType.DEDUCTION); - break; - case DISCOUNT: - tgt.setValue(org.hl7.fhir.r4.model.Invoice.InvoicePriceComponentType.DISCOUNT); - break; - case TAX: - tgt.setValue(org.hl7.fhir.r4.model.Invoice.InvoicePriceComponentType.TAX); - break; - case INFORMATIONAL: - tgt.setValue(org.hl7.fhir.r4.model.Invoice.InvoicePriceComponentType.INFORMATIONAL); - break; - default: - tgt.setValue(org.hl7.fhir.r4.model.Invoice.InvoicePriceComponentType.NULL); - break; - } - return tgt; - } +// public static org.hl7.fhir.r5.model.Invoice.InvoiceLineItemPriceComponentComponent convertInvoiceLineItemPriceComponentComponent(org.hl7.fhir.r4.model.Invoice.InvoiceLineItemPriceComponentComponent src) throws FHIRException { +// if (src == null) +// return null; +// org.hl7.fhir.r5.model.Invoice.InvoiceLineItemPriceComponentComponent tgt = new org.hl7.fhir.r5.model.Invoice.InvoiceLineItemPriceComponentComponent(); +// ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); +// if (src.hasType()) +// tgt.setTypeElement(convertInvoicePriceComponentType(src.getTypeElement())); +// if (src.hasCode()) +// tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); +// if (src.hasFactor()) +// tgt.setFactorElement(Decimal40_50.convertDecimal(src.getFactorElement())); +// if (src.hasAmount()) +// tgt.setAmount(Money40_50.convertMoney(src.getAmount())); +// return tgt; +// } +// +// public static org.hl7.fhir.r4.model.Invoice.InvoiceLineItemPriceComponentComponent convertInvoiceLineItemPriceComponentComponent(org.hl7.fhir.r5.model.Invoice.InvoiceLineItemPriceComponentComponent src) throws FHIRException { +// if (src == null) +// return null; +// org.hl7.fhir.r4.model.Invoice.InvoiceLineItemPriceComponentComponent tgt = new org.hl7.fhir.r4.model.Invoice.InvoiceLineItemPriceComponentComponent(); +// ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); +// if (src.hasType()) +// tgt.setTypeElement(convertInvoicePriceComponentType(src.getTypeElement())); +// if (src.hasCode()) +// tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); +// if (src.hasFactor()) +// tgt.setFactorElement(Decimal40_50.convertDecimal(src.getFactorElement())); +// if (src.hasAmount()) +// tgt.setAmount(Money40_50.convertMoney(src.getAmount())); +// return tgt; +// } +// +// static public org.hl7.fhir.r5.model.Enumeration convertInvoicePriceComponentType(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { +// if (src == null || src.isEmpty()) +// return null; +// org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentTypeEnumFactory()); +// ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); +// switch (src.getValue()) { +// case BASE: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.BASE); +// break; +// case SURCHARGE: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.SURCHARGE); +// break; +// case DEDUCTION: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.DEDUCTION); +// break; +// case DISCOUNT: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.DISCOUNT); +// break; +// case TAX: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.TAX); +// break; +// case INFORMATIONAL: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.INFORMATIONAL); +// break; +// default: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.NULL); +// break; +// } +// return tgt; +// } +// +// static public org.hl7.fhir.r4.model.Enumeration convertInvoicePriceComponentType(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { +// if (src == null || src.isEmpty()) +// return null; +// org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.Invoice.InvoicePriceComponentTypeEnumFactory()); +// ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); +// switch (src.getValue()) { +// case BASE: +// tgt.setValue(org.hl7.fhir.r4.model.Invoice.InvoicePriceComponentType.BASE); +// break; +// case SURCHARGE: +// tgt.setValue(org.hl7.fhir.r4.model.Invoice.InvoicePriceComponentType.SURCHARGE); +// break; +// case DEDUCTION: +// tgt.setValue(org.hl7.fhir.r4.model.Invoice.InvoicePriceComponentType.DEDUCTION); +// break; +// case DISCOUNT: +// tgt.setValue(org.hl7.fhir.r4.model.Invoice.InvoicePriceComponentType.DISCOUNT); +// break; +// case TAX: +// tgt.setValue(org.hl7.fhir.r4.model.Invoice.InvoicePriceComponentType.TAX); +// break; +// case INFORMATIONAL: +// tgt.setValue(org.hl7.fhir.r4.model.Invoice.InvoicePriceComponentType.INFORMATIONAL); +// break; +// default: +// tgt.setValue(org.hl7.fhir.r4.model.Invoice.InvoicePriceComponentType.NULL); +// break; +// } +// return tgt; +// } } \ No newline at end of file diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Library40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Library40_50.java index 1da694271..e21129edf 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Library40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Library40_50.java @@ -5,8 +5,17 @@ import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Attachment4 import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Period40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.*; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.ContactDetail40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.DataRequirement40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.ParameterDefinition40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.RelatedArtifact40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.UsageContext40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Date40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.MarkDown40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; import org.hl7.fhir.exceptions.FHIRException; /* diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Location40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Location40_50.java index 383169423..60e5043ee 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Location40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Location40_50.java @@ -1,18 +1,18 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.*; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Address40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Coding40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.ContactPoint40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Decimal40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Time40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.ContactPoint; import org.hl7.fhir.r5.model.ExtendedContactDetail; -import java.util.stream.Collectors; - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Measure40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Measure40_50.java index 9cea836d4..03258da84 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Measure40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Measure40_50.java @@ -8,8 +8,15 @@ import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.ContactDet import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.Expression40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.RelatedArtifact40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.UsageContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Canonical40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Date40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.MarkDown40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.r5.model.Measure.MeasureTermComponent; /* Copyright (c) 2011+, HL7, Inc. @@ -122,7 +129,7 @@ public class Measure40_50 { if (src.hasImprovementNotation()) tgt.setImprovementNotation(CodeableConcept40_50.convertCodeableConcept(src.getImprovementNotation())); for (org.hl7.fhir.r4.model.MarkdownType t : src.getDefinition()) - tgt.getDefinition().add(MarkDown40_50.convertMarkdown(t)); + tgt.addTerm().setDefinitionElement(MarkDown40_50.convertMarkdown(t)); if (src.hasGuidance()) tgt.setGuidanceElement(MarkDown40_50.convertMarkdown(src.getGuidanceElement())); for (org.hl7.fhir.r4.model.Measure.MeasureGroupComponent t : src.getGroup()) @@ -211,8 +218,8 @@ public class Measure40_50 { tgt.setClinicalRecommendationStatementElement(MarkDown40_50.convertMarkdown(src.getClinicalRecommendationStatementElement())); if (src.hasImprovementNotation()) tgt.setImprovementNotation(CodeableConcept40_50.convertCodeableConcept(src.getImprovementNotation())); - for (org.hl7.fhir.r5.model.MarkdownType t : src.getDefinition()) - tgt.getDefinition().add(MarkDown40_50.convertMarkdown(t)); + for (MeasureTermComponent t : src.getTerm()) + tgt.getDefinition().add(MarkDown40_50.convertMarkdown(t.getDefinitionElement())); if (src.hasGuidance()) tgt.setGuidanceElement(MarkDown40_50.convertMarkdown(src.getGuidanceElement())); for (org.hl7.fhir.r5.model.Measure.MeasureGroupComponent t : src.getGroup()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MeasureReport40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MeasureReport40_50.java index a612b570c..72731318a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MeasureReport40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MeasureReport40_50.java @@ -162,7 +162,7 @@ public class MeasureReport40_50 { tgt.setValue(org.hl7.fhir.r5.model.MeasureReport.MeasureReportType.SUMMARY); break; case DATACOLLECTION: - tgt.setValue(org.hl7.fhir.r5.model.MeasureReport.MeasureReportType.DATACOLLECTION); + tgt.setValue(org.hl7.fhir.r5.model.MeasureReport.MeasureReportType.DATAEXCHANGE); break; default: tgt.setValue(org.hl7.fhir.r5.model.MeasureReport.MeasureReportType.NULL); @@ -186,7 +186,7 @@ public class MeasureReport40_50 { case SUMMARY: tgt.setValue(org.hl7.fhir.r4.model.MeasureReport.MeasureReportType.SUMMARY); break; - case DATACOLLECTION: + case DATAEXCHANGE: tgt.setValue(org.hl7.fhir.r4.model.MeasureReport.MeasureReportType.DATACOLLECTION); break; default: @@ -262,7 +262,7 @@ public class MeasureReport40_50 { org.hl7.fhir.r5.model.MeasureReport.MeasureReportGroupStratifierComponent tgt = new org.hl7.fhir.r5.model.MeasureReport.MeasureReportGroupStratifierComponent(); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCode()) - tgt.addCode(CodeableConcept40_50.convertCodeableConcept(t)); + tgt.setCode(CodeableConcept40_50.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.MeasureReport.StratifierGroupComponent t : src.getStratum()) tgt.addStratum(convertStratifierGroupComponent(t)); return tgt; @@ -273,8 +273,7 @@ public class MeasureReport40_50 { return null; org.hl7.fhir.r4.model.MeasureReport.MeasureReportGroupStratifierComponent tgt = new org.hl7.fhir.r4.model.MeasureReport.MeasureReportGroupStratifierComponent(); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); - for (org.hl7.fhir.r5.model.CodeableConcept t : src.getCode()) - tgt.addCode(CodeableConcept40_50.convertCodeableConcept(t)); + tgt.addCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); for (org.hl7.fhir.r5.model.MeasureReport.StratifierGroupComponent t : src.getStratum()) tgt.addStratum(convertStratifierGroupComponent(t)); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MedicationAdministration40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MedicationAdministration40_50.java index 00ebfc315..37d149214 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MedicationAdministration40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MedicationAdministration40_50.java @@ -6,7 +6,6 @@ import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableCon import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.SimpleQuantity40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeableReference; @@ -49,7 +48,7 @@ public class MedicationAdministration40_50 { ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyDomainResource(src, tgt); for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(Identifier40_50.convertIdentifier(t)); - for (org.hl7.fhir.r4.model.UriType t : src.getInstantiates()) tgt.getInstantiatesUri().add(Uri40_50.convertUri(t)); +// for (org.hl7.fhir.r4.model.UriType t : src.getInstantiates()) tgt.getInstantiatesUri().add(Uri40_50.convertUri(t)); for (org.hl7.fhir.r4.model.Reference t : src.getPartOf()) tgt.addPartOf(Reference40_50.convertReference(t)); if (src.hasStatus()) tgt.setStatusElement(convertMedicationAdministrationStatus(src.getStatusElement())); @@ -93,7 +92,7 @@ public class MedicationAdministration40_50 { ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyDomainResource(src, tgt); for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(Identifier40_50.convertIdentifier(t)); - for (org.hl7.fhir.r5.model.UriType t : src.getInstantiatesUri()) tgt.getInstantiates().add(Uri40_50.convertUri(t)); +// for (org.hl7.fhir.r5.model.UriType t : src.getInstantiatesUri()) tgt.getInstantiates().add(Uri40_50.convertUri(t)); for (org.hl7.fhir.r5.model.Reference t : src.getPartOf()) tgt.addPartOf(Reference40_50.convertReference(t)); if (src.hasStatus()) tgt.setStatusElement(convertMedicationAdministrationStatus(src.getStatusElement())); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MedicationKnowledge40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MedicationKnowledge40_50.java index 043cab61c..6847745f3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MedicationKnowledge40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MedicationKnowledge40_50.java @@ -1,14 +1,15 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Duration40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Money40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.SimpleQuantity40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.MarkDown40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; import org.hl7.fhir.exceptions.FHIRException; -import org.hl7.fhir.r5.model.CodeableConcept; -import org.hl7.fhir.r5.model.Coding; import org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgePackagingComponent; import org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgeStatusCodesEnumFactory; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MedicationRequest40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MedicationRequest40_50.java index 42596e62d..a47dace69 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MedicationRequest40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MedicationRequest40_50.java @@ -1,8 +1,15 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.*; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Annotation40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Duration40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Period40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.SimpleQuantity40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.UnsignedInt40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Dosage40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; import org.hl7.fhir.exceptions.FHIRException; @@ -85,10 +92,10 @@ public class MedicationRequest40_50 { tgt.addReason().setConcept(CodeableConcept40_50.convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.Reference t : src.getReasonReference()) tgt.addReason().setReference(Reference40_50.convertReference(t)); - for (org.hl7.fhir.r4.model.CanonicalType t : src.getInstantiatesCanonical()) - tgt.getInstantiatesCanonical().add(Canonical40_50.convertCanonical(t)); - for (org.hl7.fhir.r4.model.UriType t : src.getInstantiatesUri()) - tgt.getInstantiatesUri().add(Uri40_50.convertUri(t)); +// for (org.hl7.fhir.r4.model.CanonicalType t : src.getInstantiatesCanonical()) +// tgt.getInstantiatesCanonical().add(Canonical40_50.convertCanonical(t)); +// for (org.hl7.fhir.r4.model.UriType t : src.getInstantiatesUri()) +// tgt.getInstantiatesUri().add(Uri40_50.convertUri(t)); for (org.hl7.fhir.r4.model.Reference t : src.getBasedOn()) tgt.addBasedOn(Reference40_50.convertReference(t)); if (src.hasGroupIdentifier()) tgt.setGroupIdentifier(Identifier40_50.convertIdentifier(src.getGroupIdentifier())); @@ -160,10 +167,10 @@ public class MedicationRequest40_50 { if (t.hasReference()) tgt.addReasonReference(Reference40_50.convertReference(t.getReference())); } - for (org.hl7.fhir.r5.model.CanonicalType t : src.getInstantiatesCanonical()) - tgt.getInstantiatesCanonical().add(Canonical40_50.convertCanonical(t)); - for (org.hl7.fhir.r5.model.UriType t : src.getInstantiatesUri()) - tgt.getInstantiatesUri().add(Uri40_50.convertUri(t)); +// for (org.hl7.fhir.r5.model.CanonicalType t : src.getInstantiatesCanonical()) +// tgt.getInstantiatesCanonical().add(Canonical40_50.convertCanonical(t)); +// for (org.hl7.fhir.r5.model.UriType t : src.getInstantiatesUri()) +// tgt.getInstantiatesUri().add(Uri40_50.convertUri(t)); for (org.hl7.fhir.r5.model.Reference t : src.getBasedOn()) tgt.addBasedOn(Reference40_50.convertReference(t)); if (src.hasGroupIdentifier()) tgt.setGroupIdentifier(Identifier40_50.convertIdentifier(src.getGroupIdentifier())); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MessageDefinition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MessageDefinition40_50.java index 1c1300269..260725d22 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MessageDefinition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MessageDefinition40_50.java @@ -5,7 +5,14 @@ import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableCon import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.ContactDetail40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.UsageContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Canonical40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Code40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.MarkDown40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.UnsignedInt40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; import org.hl7.fhir.exceptions.FHIRException; /* @@ -250,7 +257,7 @@ public class MessageDefinition40_50 { org.hl7.fhir.r5.model.MessageDefinition.MessageDefinitionFocusComponent tgt = new org.hl7.fhir.r5.model.MessageDefinition.MessageDefinitionFocusComponent(); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) - tgt.setCodeElement(Code40_50.convertResourceEnum(src.getCodeElement())); + tgt.setCodeElement(Code40_50.convertCode(src.getCodeElement())); if (src.hasProfile()) tgt.setProfileElement(Canonical40_50.convertCanonical(src.getProfileElement())); if (src.hasMin()) @@ -266,7 +273,7 @@ public class MessageDefinition40_50 { org.hl7.fhir.r4.model.MessageDefinition.MessageDefinitionFocusComponent tgt = new org.hl7.fhir.r4.model.MessageDefinition.MessageDefinitionFocusComponent(); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasCode()) - tgt.setCodeElement(Code40_50.convertResourceEnum(src.getCodeElement())); + tgt.setCodeElement(Code40_50.convertCode(src.getCodeElement())); if (src.hasProfile()) tgt.setProfileElement(Canonical40_50.convertCanonical(src.getProfileElement())); if (src.hasMin()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MessageHeader40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MessageHeader40_50.java index ea5d248cf..2feb5d60c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MessageHeader40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/MessageHeader40_50.java @@ -4,7 +4,6 @@ import org.hl7.fhir.convertors.context.ConversionContext40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.ContactPoint40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Canonical40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Id40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Url40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/NutritionOrder40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/NutritionOrder40_50.java index 530440b83..ab0ba8385 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/NutritionOrder40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/NutritionOrder40_50.java @@ -1,7 +1,11 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Annotation40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.SimpleQuantity40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Timing40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Canonical40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; @@ -57,7 +61,7 @@ public class NutritionOrder40_50 { if (src.hasIntent()) tgt.setIntentElement(convertNutritiionOrderIntent(src.getIntentElement())); if (src.hasPatient()) - tgt.setPatient(Reference40_50.convertReference(src.getPatient())); + tgt.setSubject(Reference40_50.convertReference(src.getPatient())); if (src.hasEncounter()) tgt.setEncounter(Reference40_50.convertReference(src.getEncounter())); if (src.hasDateTime()) @@ -96,8 +100,8 @@ public class NutritionOrder40_50 { tgt.setStatusElement(convertNutritionOrderStatus(src.getStatusElement())); if (src.hasIntent()) tgt.setIntentElement(convertNutritiionOrderIntent(src.getIntentElement())); - if (src.hasPatient()) - tgt.setPatient(Reference40_50.convertReference(src.getPatient())); + if (src.hasSubject()) + tgt.setPatient(Reference40_50.convertReference(src.getSubject())); if (src.hasEncounter()) tgt.setEncounter(Reference40_50.convertReference(src.getEncounter())); if (src.hasDateTime()) @@ -275,7 +279,7 @@ public class NutritionOrder40_50 { ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getType()) tgt.addType(CodeableConcept40_50.convertCodeableConcept(t)); - for (org.hl7.fhir.r4.model.Timing t : src.getSchedule()) tgt.addSchedule(Timing40_50.convertTiming(t)); + for (org.hl7.fhir.r4.model.Timing t : src.getSchedule()) tgt.getSchedule().addTiming(Timing40_50.convertTiming(t)); for (org.hl7.fhir.r4.model.NutritionOrder.NutritionOrderOralDietNutrientComponent t : src.getNutrient()) tgt.addNutrient(convertNutritionOrderOralDietNutrientComponent(t)); for (org.hl7.fhir.r4.model.NutritionOrder.NutritionOrderOralDietTextureComponent t : src.getTexture()) @@ -294,7 +298,7 @@ public class NutritionOrder40_50 { ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getType()) tgt.addType(CodeableConcept40_50.convertCodeableConcept(t)); - for (org.hl7.fhir.r5.model.Timing t : src.getSchedule()) tgt.addSchedule(Timing40_50.convertTiming(t)); + for (org.hl7.fhir.r5.model.Timing t : src.getSchedule().getTiming()) tgt.addSchedule(Timing40_50.convertTiming(t)); for (org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderOralDietNutrientComponent t : src.getNutrient()) tgt.addNutrient(convertNutritionOrderOralDietNutrientComponent(t)); for (org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderOralDietTextureComponent t : src.getTexture()) @@ -360,10 +364,10 @@ public class NutritionOrder40_50 { org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderSupplementComponent tgt = new org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderSupplementComponent(); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) - tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); + tgt.setType(CodeableConcept40_50.convertCodeableConceptToCodeableReference(src.getType())); if (src.hasProductName()) tgt.setProductNameElement(String40_50.convertString(src.getProductNameElement())); - for (org.hl7.fhir.r4.model.Timing t : src.getSchedule()) tgt.addSchedule(Timing40_50.convertTiming(t)); + for (org.hl7.fhir.r4.model.Timing t : src.getSchedule()) tgt.getSchedule().addTiming(Timing40_50.convertTiming(t)); if (src.hasQuantity()) tgt.setQuantity(SimpleQuantity40_50.convertSimpleQuantity(src.getQuantity())); if (src.hasInstruction()) @@ -377,10 +381,10 @@ public class NutritionOrder40_50 { org.hl7.fhir.r4.model.NutritionOrder.NutritionOrderSupplementComponent tgt = new org.hl7.fhir.r4.model.NutritionOrder.NutritionOrderSupplementComponent(); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) - tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); + tgt.setType(CodeableConcept40_50.convertCodeableReferenceToCodeableConcept(src.getType())); if (src.hasProductName()) tgt.setProductNameElement(String40_50.convertString(src.getProductNameElement())); - for (org.hl7.fhir.r5.model.Timing t : src.getSchedule()) tgt.addSchedule(Timing40_50.convertTiming(t)); + for (org.hl7.fhir.r5.model.Timing t : src.getSchedule().getTiming()) tgt.addSchedule(Timing40_50.convertTiming(t)); if (src.hasQuantity()) tgt.setQuantity(SimpleQuantity40_50.convertSimpleQuantity(src.getQuantity())); if (src.hasInstruction()) @@ -394,17 +398,17 @@ public class NutritionOrder40_50 { org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderEnteralFormulaComponent tgt = new org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderEnteralFormulaComponent(); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasBaseFormulaType()) - tgt.setBaseFormulaType(CodeableConcept40_50.convertCodeableConcept(src.getBaseFormulaType())); + tgt.setBaseFormulaType(CodeableConcept40_50.convertCodeableConceptToCodeableReference(src.getBaseFormulaType())); if (src.hasBaseFormulaProductName()) tgt.setBaseFormulaProductNameElement(String40_50.convertString(src.getBaseFormulaProductNameElement())); - if (src.hasAdditiveType()) - tgt.setAdditiveType(CodeableConcept40_50.convertCodeableConcept(src.getAdditiveType())); - if (src.hasAdditiveProductName()) - tgt.setAdditiveProductNameElement(String40_50.convertString(src.getAdditiveProductNameElement())); +// if (src.hasAdditiveType()) +// tgt.setAdditiveType(CodeableConcept40_50.convertCodeableConcept(src.getAdditiveType())); +// if (src.hasAdditiveProductName()) +// tgt.setAdditiveProductNameElement(String40_50.convertString(src.getAdditiveProductNameElement())); if (src.hasCaloricDensity()) tgt.setCaloricDensity(SimpleQuantity40_50.convertSimpleQuantity(src.getCaloricDensity())); if (src.hasRouteofAdministration()) - tgt.setRouteofAdministration(CodeableConcept40_50.convertCodeableConcept(src.getRouteofAdministration())); + tgt.setRouteOfAdministration(CodeableConcept40_50.convertCodeableConcept(src.getRouteofAdministration())); for (org.hl7.fhir.r4.model.NutritionOrder.NutritionOrderEnteralFormulaAdministrationComponent t : src.getAdministration()) tgt.addAdministration(convertNutritionOrderEnteralFormulaAdministrationComponent(t)); if (src.hasMaxVolumeToDeliver()) @@ -420,17 +424,14 @@ public class NutritionOrder40_50 { org.hl7.fhir.r4.model.NutritionOrder.NutritionOrderEnteralFormulaComponent tgt = new org.hl7.fhir.r4.model.NutritionOrder.NutritionOrderEnteralFormulaComponent(); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasBaseFormulaType()) - tgt.setBaseFormulaType(CodeableConcept40_50.convertCodeableConcept(src.getBaseFormulaType())); + tgt.setBaseFormulaType(CodeableConcept40_50.convertCodeableReferenceToCodeableConcept(src.getBaseFormulaType())); if (src.hasBaseFormulaProductName()) tgt.setBaseFormulaProductNameElement(String40_50.convertString(src.getBaseFormulaProductNameElement())); - if (src.hasAdditiveType()) - tgt.setAdditiveType(CodeableConcept40_50.convertCodeableConcept(src.getAdditiveType())); - if (src.hasAdditiveProductName()) - tgt.setAdditiveProductNameElement(String40_50.convertString(src.getAdditiveProductNameElement())); +// if (src.hasAdditeProductNameElement(String40_50.convertString(src.getAdditiveProductNameElement())); if (src.hasCaloricDensity()) tgt.setCaloricDensity(SimpleQuantity40_50.convertSimpleQuantity(src.getCaloricDensity())); - if (src.hasRouteofAdministration()) - tgt.setRouteofAdministration(CodeableConcept40_50.convertCodeableConcept(src.getRouteofAdministration())); + if (src.hasRouteOfAdministration()) + tgt.setRouteofAdministration(CodeableConcept40_50.convertCodeableConcept(src.getRouteOfAdministration())); for (org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderEnteralFormulaAdministrationComponent t : src.getAdministration()) tgt.addAdministration(convertNutritionOrderEnteralFormulaAdministrationComponent(t)); if (src.hasMaxVolumeToDeliver()) @@ -446,7 +447,7 @@ public class NutritionOrder40_50 { org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderEnteralFormulaAdministrationComponent tgt = new org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderEnteralFormulaAdministrationComponent(); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasSchedule()) - tgt.setSchedule(Timing40_50.convertTiming(src.getSchedule())); + tgt.getSchedule().addTiming(Timing40_50.convertTiming(src.getSchedule())); if (src.hasQuantity()) tgt.setQuantity(SimpleQuantity40_50.convertSimpleQuantity(src.getQuantity())); if (src.hasRate()) @@ -459,8 +460,8 @@ public class NutritionOrder40_50 { return null; org.hl7.fhir.r4.model.NutritionOrder.NutritionOrderEnteralFormulaAdministrationComponent tgt = new org.hl7.fhir.r4.model.NutritionOrder.NutritionOrderEnteralFormulaAdministrationComponent(); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); - if (src.hasSchedule()) - tgt.setSchedule(Timing40_50.convertTiming(src.getSchedule())); + if (src.getSchedule().hasTiming()) + tgt.setSchedule(Timing40_50.convertTiming(src.getSchedule().getTimingFirstRep())); if (src.hasQuantity()) tgt.setQuantity(SimpleQuantity40_50.convertSimpleQuantity(src.getQuantity())); if (src.hasRate()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Observation40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Observation40_50.java index 1773ee716..cf4b9ad9d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Observation40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Observation40_50.java @@ -1,7 +1,11 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Annotation40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Range40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.SimpleQuantity40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Instant40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ObservationDefinition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ObservationDefinition40_50.java index 6b5b4b092..8a826f4be 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ObservationDefinition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ObservationDefinition40_50.java @@ -1,5 +1,7 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; @@ -9,8 +11,6 @@ import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Integer40 import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; import org.hl7.fhir.exceptions.FHIRException; -import java.util.stream.Collectors; - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/OperationDefinition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/OperationDefinition40_50.java index 955289aa4..5a5fd1951 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/OperationDefinition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/OperationDefinition40_50.java @@ -4,7 +4,14 @@ import org.hl7.fhir.convertors.context.ConversionContext40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.ContactDetail40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.UsageContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Canonical40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Code40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Integer40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.MarkDown40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeType; @@ -80,7 +87,7 @@ public class OperationDefinition40_50 { tgt.setCommentElement(MarkDown40_50.convertMarkdown(src.getCommentElement())); if (src.hasBase()) tgt.setBaseElement(Canonical40_50.convertCanonical(src.getBaseElement())); - for (org.hl7.fhir.r4.model.CodeType t : src.getResource()) tgt.getResource().add(Code40_50.convertResourceEnum(t)); + for (org.hl7.fhir.r4.model.CodeType t : src.getResource()) tgt.getResource().add(Code40_50.convertCode(t)); if (src.hasSystem()) tgt.setSystemElement(Boolean40_50.convertBoolean(src.getSystemElement())); if (src.hasType()) @@ -139,7 +146,7 @@ public class OperationDefinition40_50 { tgt.setCommentElement(MarkDown40_50.convertMarkdown(src.getCommentElement())); if (src.hasBase()) tgt.setBaseElement(Canonical40_50.convertCanonical(src.getBaseElement())); - for (CodeType t : src.getResource()) tgt.getResource().add(Code40_50.convertResourceEnum(t)); + for (CodeType t : src.getResource()) tgt.getResource().add(Code40_50.convertCode(t)); if (src.hasSystem()) tgt.setSystemElement(Boolean40_50.convertBoolean(src.getSystemElement())); if (src.hasType()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Organization40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Organization40_50.java index a067091a2..2d0559baa 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Organization40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Organization40_50.java @@ -1,7 +1,11 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Address40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.ContactPoint40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.HumanName40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; @@ -53,9 +57,9 @@ public class Organization40_50 { if (src.hasName()) tgt.setNameElement(String40_50.convertString(src.getNameElement())); for (org.hl7.fhir.r4.model.StringType t : src.getAlias()) tgt.getAlias().add(String40_50.convertString(t)); + for (org.hl7.fhir.r4.model.Address t : src.getAddress()) tgt.addContact().setAddress(Address40_50.convertAddress(t)); for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.getContactFirstRep().addTelecom(ContactPoint40_50.convertContactPoint(t)); - for (org.hl7.fhir.r4.model.Address t : src.getAddress()) tgt.addAddress(Address40_50.convertAddress(t)); if (src.hasPartOf()) tgt.setPartOf(Reference40_50.convertReference(src.getPartOf())); for (org.hl7.fhir.r4.model.Organization.OrganizationContactComponent t : src.getContact()) @@ -81,7 +85,9 @@ public class Organization40_50 { for (ExtendedContactDetail t1 : src.getContact()) for (org.hl7.fhir.r5.model.ContactPoint t : t1.getTelecom()) tgt.addTelecom(ContactPoint40_50.convertContactPoint(t)); - for (org.hl7.fhir.r5.model.Address t : src.getAddress()) tgt.addAddress(Address40_50.convertAddress(t)); + for (ExtendedContactDetail t : src.getContact()) + if (t.hasAddress()) + tgt.addAddress(Address40_50.convertAddress(t.getAddress())); if (src.hasPartOf()) tgt.setPartOf(Reference40_50.convertReference(src.getPartOf())); for (org.hl7.fhir.r5.model.ExtendedContactDetail t : src.getContact()) @@ -98,7 +104,7 @@ public class Organization40_50 { if (src.hasPurpose()) tgt.setPurpose(CodeableConcept40_50.convertCodeableConcept(src.getPurpose())); if (src.hasName()) - tgt.setName(HumanName40_50.convertHumanName(src.getName())); + tgt.addName(HumanName40_50.convertHumanName(src.getName())); for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(ContactPoint40_50.convertContactPoint(t)); if (src.hasAddress()) @@ -113,8 +119,8 @@ public class Organization40_50 { ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); if (src.hasPurpose()) tgt.setPurpose(CodeableConcept40_50.convertCodeableConcept(src.getPurpose())); - if (src.hasName()) - tgt.setName(HumanName40_50.convertHumanName(src.getName())); + for (org.hl7.fhir.r5.model.HumanName t : src.getName()) + tgt.setName(HumanName40_50.convertHumanName(t)); for (org.hl7.fhir.r5.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(ContactPoint40_50.convertContactPoint(t)); if (src.hasAddress()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/OrganizationAffiliation40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/OrganizationAffiliation40_50.java index b9f89b4d9..6e022a0d2 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/OrganizationAffiliation40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/OrganizationAffiliation40_50.java @@ -64,7 +64,7 @@ public class OrganizationAffiliation40_50 { for (org.hl7.fhir.r4.model.Reference t : src.getHealthcareService()) tgt.addHealthcareService(Reference40_50.convertReference(t)); for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) - tgt.addTelecom(ContactPoint40_50.convertContactPoint(t)); + tgt.getContactFirstRep().addTelecom(ContactPoint40_50.convertContactPoint(t)); for (org.hl7.fhir.r4.model.Reference t : src.getEndpoint()) tgt.addEndpoint(Reference40_50.convertReference(t)); return tgt; } @@ -92,8 +92,9 @@ public class OrganizationAffiliation40_50 { for (org.hl7.fhir.r5.model.Reference t : src.getLocation()) tgt.addLocation(Reference40_50.convertReference(t)); for (org.hl7.fhir.r5.model.Reference t : src.getHealthcareService()) tgt.addHealthcareService(Reference40_50.convertReference(t)); - for (org.hl7.fhir.r5.model.ContactPoint t : src.getTelecom()) - tgt.addTelecom(ContactPoint40_50.convertContactPoint(t)); + for (org.hl7.fhir.r5.model.ExtendedContactDetail t1 : src.getContact()) + for (org.hl7.fhir.r5.model.ContactPoint t : t1.getTelecom()) + tgt.addTelecom(ContactPoint40_50.convertContactPoint(t)); for (org.hl7.fhir.r5.model.Reference t : src.getEndpoint()) tgt.addEndpoint(Reference40_50.convertReference(t)); return tgt; } diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Patient40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Patient40_50.java index 30ae1abfe..0b35c3a1c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Patient40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Patient40_50.java @@ -1,7 +1,13 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Address40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Attachment40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.ContactPoint40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.HumanName40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Period40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Date40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Person40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Person40_50.java index 69b996be0..4b902f8f6 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Person40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Person40_50.java @@ -1,7 +1,11 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Address40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Attachment40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.ContactPoint40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.HumanName40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Date40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/PlanDefinition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/PlanDefinition40_50.java index cb1d5c435..c6f33d1e4 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/PlanDefinition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/PlanDefinition40_50.java @@ -5,8 +5,20 @@ import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableCon import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Duration40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Period40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.*; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.ContactDetail40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.DataRequirement40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.Expression40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.RelatedArtifact40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.TriggerDefinition40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.UsageContext40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Canonical40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Date40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Id40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.MarkDown40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.DataRequirement; import org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionInputComponent; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Practitioner40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Practitioner40_50.java index e65969daf..8ecf5d2ed 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Practitioner40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Practitioner40_50.java @@ -1,7 +1,13 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Address40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Attachment40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.ContactPoint40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.HumanName40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Period40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Date40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/PractitionerRole40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/PractitionerRole40_50.java index 394069d5f..407e241a3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/PractitionerRole40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/PractitionerRole40_50.java @@ -6,13 +6,9 @@ import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.ContactPoin import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Period40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Time40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; import org.hl7.fhir.exceptions.FHIRException; -import java.util.stream.Collectors; - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -67,13 +63,13 @@ public class PractitionerRole40_50 { for (org.hl7.fhir.r4.model.Reference t : src.getHealthcareService()) tgt.addHealthcareService(Reference40_50.convertReference(t)); for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) - tgt.addTelecom(ContactPoint40_50.convertContactPoint(t)); - for (org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleAvailableTimeComponent t : src.getAvailableTime()) - tgt.addAvailableTime(convertPractitionerRoleAvailableTimeComponent(t)); - for (org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleNotAvailableComponent t : src.getNotAvailable()) - tgt.addNotAvailable(convertPractitionerRoleNotAvailableComponent(t)); - if (src.hasAvailabilityExceptions()) - tgt.setAvailabilityExceptionsElement(String40_50.convertString(src.getAvailabilityExceptionsElement())); + tgt.getContactFirstRep().addTelecom(ContactPoint40_50.convertContactPoint(t)); +// for (org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleAvailableTimeComponent t : src.getAvailableTime()) +// tgt.addAvailableTime(convertPractitionerRoleAvailableTimeComponent(t)); +// for (org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleNotAvailableComponent t : src.getNotAvailable()) +// tgt.addNotAvailable(convertPractitionerRoleNotAvailableComponent(t)); +// if (src.hasAvailabilityExceptions()) +// tgt.setAvailabilityExceptionsElement(String40_50.convertString(src.getAvailabilityExceptionsElement())); for (org.hl7.fhir.r4.model.Reference t : src.getEndpoint()) tgt.addEndpoint(Reference40_50.convertReference(t)); return tgt; } @@ -100,141 +96,142 @@ public class PractitionerRole40_50 { for (org.hl7.fhir.r5.model.Reference t : src.getLocation()) tgt.addLocation(Reference40_50.convertReference(t)); for (org.hl7.fhir.r5.model.Reference t : src.getHealthcareService()) tgt.addHealthcareService(Reference40_50.convertReference(t)); - for (org.hl7.fhir.r5.model.ContactPoint t : src.getTelecom()) - tgt.addTelecom(ContactPoint40_50.convertContactPoint(t)); - for (org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent t : src.getAvailableTime()) - tgt.addAvailableTime(convertPractitionerRoleAvailableTimeComponent(t)); - for (org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent t : src.getNotAvailable()) - tgt.addNotAvailable(convertPractitionerRoleNotAvailableComponent(t)); - if (src.hasAvailabilityExceptions()) - tgt.setAvailabilityExceptionsElement(String40_50.convertString(src.getAvailabilityExceptionsElement())); + for (org.hl7.fhir.r5.model.ExtendedContactDetail t1 : src.getContact()) + for (org.hl7.fhir.r5.model.ContactPoint t : t1.getTelecom()) + tgt.addTelecom(ContactPoint40_50.convertContactPoint(t)); +// for (org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent t : src.getAvailableTime()) +// tgt.addAvailableTime(convertPractitionerRoleAvailableTimeComponent(t)); +// for (org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent t : src.getNotAvailable()) +// tgt.addNotAvailable(convertPractitionerRoleNotAvailableComponent(t)); +// if (src.hasAvailabilityExceptions()) +// tgt.setAvailabilityExceptionsElement(String40_50.convertString(src.getAvailabilityExceptionsElement())); for (org.hl7.fhir.r5.model.Reference t : src.getEndpoint()) tgt.addEndpoint(Reference40_50.convertReference(t)); return tgt; } - public static org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent convertPractitionerRoleAvailableTimeComponent(org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleAvailableTimeComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent tgt = new org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); - tgt.setDaysOfWeek(src.getDaysOfWeek().stream() - .map(PractitionerRole40_50::convertDaysOfWeek) - .collect(Collectors.toList())); - if (src.hasAllDay()) - tgt.setAllDayElement(Boolean40_50.convertBoolean(src.getAllDayElement())); - if (src.hasAvailableStartTime()) - tgt.setAvailableStartTimeElement(Time40_50.convertTime(src.getAvailableStartTimeElement())); - if (src.hasAvailableEndTime()) - tgt.setAvailableEndTimeElement(Time40_50.convertTime(src.getAvailableEndTimeElement())); - return tgt; - } - - public static org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleAvailableTimeComponent convertPractitionerRoleAvailableTimeComponent(org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleAvailableTimeComponent tgt = new org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleAvailableTimeComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); - tgt.setDaysOfWeek(src.getDaysOfWeek().stream() - .map(PractitionerRole40_50::convertDaysOfWeek) - .collect(Collectors.toList())); - if (src.hasAllDay()) - tgt.setAllDayElement(Boolean40_50.convertBoolean(src.getAllDayElement())); - if (src.hasAvailableStartTime()) - tgt.setAvailableStartTimeElement(Time40_50.convertTime(src.getAvailableStartTimeElement())); - if (src.hasAvailableEndTime()) - tgt.setAvailableEndTimeElement(Time40_50.convertTime(src.getAvailableEndTimeElement())); - return tgt; - } - - static public org.hl7.fhir.r5.model.Enumeration convertDaysOfWeek(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.DaysOfWeekEnumFactory()); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); - switch (src.getValue()) { - case MON: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.MON); - break; - case TUE: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.TUE); - break; - case WED: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.WED); - break; - case THU: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.THU); - break; - case FRI: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.FRI); - break; - case SAT: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.SAT); - break; - case SUN: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.SUN); - break; - default: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r4.model.Enumeration convertDaysOfWeek(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.PractitionerRole.DaysOfWeekEnumFactory()); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); - switch (src.getValue()) { - case MON: - tgt.setValue(org.hl7.fhir.r4.model.PractitionerRole.DaysOfWeek.MON); - break; - case TUE: - tgt.setValue(org.hl7.fhir.r4.model.PractitionerRole.DaysOfWeek.TUE); - break; - case WED: - tgt.setValue(org.hl7.fhir.r4.model.PractitionerRole.DaysOfWeek.WED); - break; - case THU: - tgt.setValue(org.hl7.fhir.r4.model.PractitionerRole.DaysOfWeek.THU); - break; - case FRI: - tgt.setValue(org.hl7.fhir.r4.model.PractitionerRole.DaysOfWeek.FRI); - break; - case SAT: - tgt.setValue(org.hl7.fhir.r4.model.PractitionerRole.DaysOfWeek.SAT); - break; - case SUN: - tgt.setValue(org.hl7.fhir.r4.model.PractitionerRole.DaysOfWeek.SUN); - break; - default: - tgt.setValue(org.hl7.fhir.r4.model.PractitionerRole.DaysOfWeek.NULL); - break; - } - return tgt; - } - - public static org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent convertPractitionerRoleNotAvailableComponent(org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleNotAvailableComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent tgt = new org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); - if (src.hasDescription()) - tgt.setDescriptionElement(String40_50.convertString(src.getDescriptionElement())); - if (src.hasDuring()) - tgt.setDuring(Period40_50.convertPeriod(src.getDuring())); - return tgt; - } - - public static org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleNotAvailableComponent convertPractitionerRoleNotAvailableComponent(org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleNotAvailableComponent tgt = new org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleNotAvailableComponent(); - ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); - if (src.hasDescription()) - tgt.setDescriptionElement(String40_50.convertString(src.getDescriptionElement())); - if (src.hasDuring()) - tgt.setDuring(Period40_50.convertPeriod(src.getDuring())); - return tgt; - } +// public static org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent convertPractitionerRoleAvailableTimeComponent(org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleAvailableTimeComponent src) throws FHIRException { +// if (src == null) +// return null; +// org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent tgt = new org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent(); +// ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); +// tgt.setDaysOfWeek(src.getDaysOfWeek().stream() +// .map(PractitionerRole40_50::convertDaysOfWeek) +// .collect(Collectors.toList())); +// if (src.hasAllDay()) +// tgt.setAllDayElement(Boolean40_50.convertBoolean(src.getAllDayElement())); +// if (src.hasAvailableStartTime()) +// tgt.setAvailableStartTimeElement(Time40_50.convertTime(src.getAvailableStartTimeElement())); +// if (src.hasAvailableEndTime()) +// tgt.setAvailableEndTimeElement(Time40_50.convertTime(src.getAvailableEndTimeElement())); +// return tgt; +// } +// +// public static org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleAvailableTimeComponent convertPractitionerRoleAvailableTimeComponent(org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent src) throws FHIRException { +// if (src == null) +// return null; +// org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleAvailableTimeComponent tgt = new org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleAvailableTimeComponent(); +// ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); +// tgt.setDaysOfWeek(src.getDaysOfWeek().stream() +// .map(PractitionerRole40_50::convertDaysOfWeek) +// .collect(Collectors.toList())); +// if (src.hasAllDay()) +// tgt.setAllDayElement(Boolean40_50.convertBoolean(src.getAllDayElement())); +// if (src.hasAvailableStartTime()) +// tgt.setAvailableStartTimeElement(Time40_50.convertTime(src.getAvailableStartTimeElement())); +// if (src.hasAvailableEndTime()) +// tgt.setAvailableEndTimeElement(Time40_50.convertTime(src.getAvailableEndTimeElement())); +// return tgt; +// } +// +// static public org.hl7.fhir.r5.model.Enumeration convertDaysOfWeek(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { +// if (src == null || src.isEmpty()) +// return null; +// org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.DaysOfWeekEnumFactory()); +// ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); +// switch (src.getValue()) { +// case MON: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.MON); +// break; +// case TUE: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.TUE); +// break; +// case WED: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.WED); +// break; +// case THU: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.THU); +// break; +// case FRI: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.FRI); +// break; +// case SAT: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.SAT); +// break; +// case SUN: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.SUN); +// break; +// default: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.NULL); +// break; +// } +// return tgt; +// } +// +// static public org.hl7.fhir.r4.model.Enumeration convertDaysOfWeek(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { +// if (src == null || src.isEmpty()) +// return null; +// org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.PractitionerRole.DaysOfWeekEnumFactory()); +// ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyElement(src, tgt); +// switch (src.getValue()) { +// case MON: +// tgt.setValue(org.hl7.fhir.r4.model.PractitionerRole.DaysOfWeek.MON); +// break; +// case TUE: +// tgt.setValue(org.hl7.fhir.r4.model.PractitionerRole.DaysOfWeek.TUE); +// break; +// case WED: +// tgt.setValue(org.hl7.fhir.r4.model.PractitionerRole.DaysOfWeek.WED); +// break; +// case THU: +// tgt.setValue(org.hl7.fhir.r4.model.PractitionerRole.DaysOfWeek.THU); +// break; +// case FRI: +// tgt.setValue(org.hl7.fhir.r4.model.PractitionerRole.DaysOfWeek.FRI); +// break; +// case SAT: +// tgt.setValue(org.hl7.fhir.r4.model.PractitionerRole.DaysOfWeek.SAT); +// break; +// case SUN: +// tgt.setValue(org.hl7.fhir.r4.model.PractitionerRole.DaysOfWeek.SUN); +// break; +// default: +// tgt.setValue(org.hl7.fhir.r4.model.PractitionerRole.DaysOfWeek.NULL); +// break; +// } +// return tgt; +// } +// +// public static org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent convertPractitionerRoleNotAvailableComponent(org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleNotAvailableComponent src) throws FHIRException { +// if (src == null) +// return null; +// org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent tgt = new org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent(); +// ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); +// if (src.hasDescription()) +// tgt.setDescriptionElement(String40_50.convertString(src.getDescriptionElement())); +// if (src.hasDuring()) +// tgt.setDuring(Period40_50.convertPeriod(src.getDuring())); +// return tgt; +// } +// +// public static org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleNotAvailableComponent convertPractitionerRoleNotAvailableComponent(org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent src) throws FHIRException { +// if (src == null) +// return null; +// org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleNotAvailableComponent tgt = new org.hl7.fhir.r4.model.PractitionerRole.PractitionerRoleNotAvailableComponent(); +// ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); +// if (src.hasDescription()) +// tgt.setDescriptionElement(String40_50.convertString(src.getDescriptionElement())); +// if (src.hasDuring()) +// tgt.setDuring(Period40_50.convertPeriod(src.getDuring())); +// return tgt; +// } } \ No newline at end of file diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Questionnaire40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Questionnaire40_50.java index 84afc3b2a..680f31418 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Questionnaire40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Questionnaire40_50.java @@ -8,7 +8,15 @@ import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier4 import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Period40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.ContactDetail40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.UsageContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Canonical40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Code40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Date40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Integer40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.MarkDown40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemType; import org.hl7.fhir.r5.model.CodeType; @@ -67,7 +75,7 @@ public class Questionnaire40_50 { if (src.hasExperimental()) tgt.setExperimentalElement(Boolean40_50.convertBoolean(src.getExperimentalElement())); for (org.hl7.fhir.r4.model.CodeType t : src.getSubjectType()) - tgt.getSubjectType().add(Code40_50.convertResourceEnum(t)); + tgt.getSubjectType().add(Code40_50.convertCode(t)); if (src.hasDate()) tgt.setDateElement(DateTime40_50.convertDateTime(src.getDateElement())); if (src.hasPublisher()) @@ -117,7 +125,7 @@ public class Questionnaire40_50 { tgt.setStatusElement(Enumerations40_50.convertPublicationStatus(src.getStatusElement())); if (src.hasExperimental()) tgt.setExperimentalElement(Boolean40_50.convertBoolean(src.getExperimentalElement())); - for (CodeType t : src.getSubjectType()) tgt.getSubjectType().add(Code40_50.convertResourceEnum(t)); + for (CodeType t : src.getSubjectType()) tgt.getSubjectType().add(Code40_50.convertCode(t)); if (src.hasDate()) tgt.setDateElement(DateTime40_50.convertDateTime(src.getDateElement())); if (src.hasPublisher()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/RelatedPerson40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/RelatedPerson40_50.java index da62868e1..f290edbbf 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/RelatedPerson40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/RelatedPerson40_50.java @@ -1,7 +1,13 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Address40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Attachment40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.ContactPoint40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.HumanName40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Period40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Date40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SearchParameter40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SearchParameter40_50.java index 7f615ecb5..fd7b97ef7 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SearchParameter40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SearchParameter40_50.java @@ -1,17 +1,20 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.ContactDetail40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.UsageContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Canonical40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Code40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.MarkDown40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeType; -import org.hl7.fhir.r5.model.Enumeration; -import org.hl7.fhir.r5.model.Enumerations; -import org.hl7.fhir.r5.model.Enumerations.AllResourceTypes; - -import java.util.stream.Collectors; /* Copyright (c) 2011+, HL7, Inc. @@ -77,7 +80,7 @@ public class SearchParameter40_50 { tgt.setPurposeElement(MarkDown40_50.convertMarkdown(src.getPurposeElement())); if (src.hasCode()) tgt.setCodeElement(Code40_50.convertCode(src.getCodeElement())); - for (org.hl7.fhir.r4.model.CodeType t : src.getBase()) tgt.getBase().add(new Enumeration(new Enumerations.AllResourceTypesEnumFactory(), t.getCode())); + for (org.hl7.fhir.r4.model.CodeType t : src.getBase()) tgt.getBase().add(Code40_50.convertCode(t)); if (src.hasType()) tgt.setTypeElement(Enumerations40_50.convertSearchParamType(src.getTypeElement())); if (src.hasExpression()) @@ -86,7 +89,7 @@ public class SearchParameter40_50 { // tgt.setXpathElement(String40_50.convertString(src.getXpathElement())); if (src.hasXpathUsage()) tgt.setProcessingModeElement(convertXPathUsageType(src.getXpathUsageElement())); - for (org.hl7.fhir.r4.model.CodeType t : src.getTarget()) tgt.getTarget().add(Code40_50.convertResourceEnum(t)); + for (org.hl7.fhir.r4.model.CodeType t : src.getTarget()) tgt.getTarget().add(Code40_50.convertCode(t)); if (src.hasMultipleOr()) tgt.setMultipleOrElement(Boolean40_50.convertBoolean(src.getMultipleOrElement())); if (src.hasMultipleAnd()) @@ -136,7 +139,7 @@ public class SearchParameter40_50 { tgt.setPurposeElement(MarkDown40_50.convertMarkdown(src.getPurposeElement())); if (src.hasCode()) tgt.setCodeElement(Code40_50.convertCode(src.getCodeElement())); - for (Enumeration t : src.getBase()) tgt.getBase().add(new org.hl7.fhir.r4.model.CodeType(t.getCode())); + for (CodeType t : src.getBase()) tgt.getBase().add(Code40_50.convertCode(t)); if (src.hasType()) tgt.setTypeElement(Enumerations40_50.convertSearchParamType(src.getTypeElement())); if (src.hasExpression()) @@ -145,7 +148,7 @@ public class SearchParameter40_50 { // tgt.setXpathElement(String40_50.convertString(src.getXpathElement())); if (src.hasProcessingMode()) tgt.setXpathUsageElement(convertXPathUsageType(src.getProcessingModeElement())); - for (CodeType t : src.getTarget()) tgt.getTarget().add(Code40_50.convertResourceEnum(t)); + for (CodeType t : src.getTarget()) tgt.getTarget().add(Code40_50.convertCode(t)); if (src.hasMultipleOr()) tgt.setMultipleOrElement(Boolean40_50.convertBoolean(src.getMultipleOrElement())); if (src.hasMultipleAnd()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ServiceRequest40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ServiceRequest40_50.java index a496699d4..a2f47e04d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ServiceRequest40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ServiceRequest40_50.java @@ -4,7 +4,11 @@ import org.hl7.fhir.convertors.context.ConversionContext40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Annotation40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Canonical40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeableReference; @@ -66,7 +70,7 @@ public class ServiceRequest40_50 { if (src.hasDoNotPerform()) tgt.setDoNotPerformElement(Boolean40_50.convertBoolean(src.getDoNotPerformElement())); if (src.hasCode()) - tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); + tgt.setCode(CodeableConcept40_50.convertCodeableConceptToCodeableReference(src.getCode())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getOrderDetail()) tgt.addOrderDetail(CodeableConcept40_50.convertCodeableConcept(t)); if (src.hasQuantity()) @@ -134,7 +138,7 @@ public class ServiceRequest40_50 { if (src.hasDoNotPerform()) tgt.setDoNotPerformElement(Boolean40_50.convertBoolean(src.getDoNotPerformElement())); if (src.hasCode()) - tgt.setCode(CodeableConcept40_50.convertCodeableConcept(src.getCode())); + tgt.setCode(CodeableConcept40_50.convertCodeableReferenceToCodeableConcept(src.getCode())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getOrderDetail()) tgt.addOrderDetail(CodeableConcept40_50.convertCodeableConcept(t)); if (src.hasQuantity()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Specimen40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Specimen40_50.java index c793d9f68..0c66e42fe 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Specimen40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Specimen40_50.java @@ -1,7 +1,11 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Annotation40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Duration40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.SimpleQuantity40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SpecimenDefinition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SpecimenDefinition40_50.java index c4f4b09ed..ebd9e109f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SpecimenDefinition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SpecimenDefinition40_50.java @@ -1,7 +1,11 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Duration40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Range40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.SimpleQuantity40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; import org.hl7.fhir.exceptions.FHIRException; @@ -43,7 +47,7 @@ public class SpecimenDefinition40_50 { org.hl7.fhir.r5.model.SpecimenDefinition tgt = new org.hl7.fhir.r5.model.SpecimenDefinition(); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyDomainResource(src, tgt); if (src.hasIdentifier()) - tgt.setIdentifier(Identifier40_50.convertIdentifier(src.getIdentifier())); + tgt.addIdentifier(Identifier40_50.convertIdentifier(src.getIdentifier())); if (src.hasTypeCollected()) tgt.setTypeCollected(CodeableConcept40_50.convertCodeableConcept(src.getTypeCollected())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getPatientPreparation()) @@ -63,7 +67,7 @@ public class SpecimenDefinition40_50 { org.hl7.fhir.r4.model.SpecimenDefinition tgt = new org.hl7.fhir.r4.model.SpecimenDefinition(); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyDomainResource(src, tgt); if (src.hasIdentifier()) - tgt.setIdentifier(Identifier40_50.convertIdentifier(src.getIdentifier())); + tgt.setIdentifier(Identifier40_50.convertIdentifier(src.getIdentifierFirstRep())); if (src.hasTypeCollected()) tgt.setTypeCollected(CodeableConcept40_50.convertCodeableConcept(src.getTypeCollected())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getPatientPreparation()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/StructureDefinition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/StructureDefinition40_50.java index 8282ca32a..603384d12 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/StructureDefinition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/StructureDefinition40_50.java @@ -6,7 +6,13 @@ import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Coding40_50 import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.ContactDetail40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.UsageContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Canonical40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Id40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.MarkDown40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.ElementDefinition40_50; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/StructureMap40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/StructureMap40_50.java index e0ca4d9c5..613010c9a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/StructureMap40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/StructureMap40_50.java @@ -1,21 +1,33 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.ContactDetail40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.UsageContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Canonical40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Id40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Integer40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.MarkDown40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.StructureMap.StructureMapGroupTypeMode; import org.hl7.fhir.r4.utils.ToolingExtensions; -import org.hl7.fhir.r5.model.*; +import org.hl7.fhir.r5.model.BooleanType; +import org.hl7.fhir.r5.model.DataType; +import org.hl7.fhir.r5.model.DecimalType; +import org.hl7.fhir.r5.model.IdType; +import org.hl7.fhir.r5.model.IntegerType; +import org.hl7.fhir.r5.model.StringType; import org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleTargetParameterComponent; import org.hl7.fhir.r5.utils.FHIRPathConstant; import org.hl7.fhir.utilities.Utilities; -import java.util.stream.Collectors; - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SupplyDelivery40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SupplyDelivery40_50.java index 25404265b..cb4ce28aa 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SupplyDelivery40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/SupplyDelivery40_50.java @@ -54,7 +54,7 @@ public class SupplyDelivery40_50 { if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasSuppliedItem()) - tgt.setSuppliedItem(convertSupplyDeliverySuppliedItemComponent(src.getSuppliedItem())); + tgt.addSuppliedItem(convertSupplyDeliverySuppliedItemComponent(src.getSuppliedItem())); if (src.hasOccurrence()) tgt.setOccurrence(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getOccurrence())); if (src.hasSupplier()) @@ -81,7 +81,7 @@ public class SupplyDelivery40_50 { if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); if (src.hasSuppliedItem()) - tgt.setSuppliedItem(convertSupplyDeliverySuppliedItemComponent(src.getSuppliedItem())); + tgt.setSuppliedItem(convertSupplyDeliverySuppliedItemComponent(src.getSuppliedItemFirstRep())); if (src.hasOccurrence()) tgt.setOccurrence(ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().convertType(src.getOccurrence())); if (src.hasSupplier()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Task40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Task40_50.java index 6a3a32e50..1593bfa7f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Task40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/Task40_50.java @@ -5,9 +5,14 @@ import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Annotation4 import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Period40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Canonical40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.PositiveInt40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.r5.model.CodeableReference; /* Copyright (c) 2011+, HL7, Inc. @@ -58,7 +63,7 @@ public class Task40_50 { if (src.hasStatus()) tgt.setStatusElement(convertTaskStatus(src.getStatusElement())); if (src.hasStatusReason()) - tgt.setStatusReason(CodeableConcept40_50.convertCodeableConcept(src.getStatusReason())); + tgt.setStatusReason(CodeableConcept40_50.convertCodeableConceptToCodeableReference(src.getStatusReason())); if (src.hasBusinessStatus()) tgt.setBusinessStatus(CodeableConcept40_50.convertCodeableConcept(src.getBusinessStatus())); if (src.hasIntent()) @@ -84,15 +89,15 @@ public class Task40_50 { if (src.hasRequester()) tgt.setRequester(Reference40_50.convertReference(src.getRequester())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getPerformerType()) - tgt.addPerformerType(CodeableConcept40_50.convertCodeableConcept(t)); + tgt.addRequestedPerformer(CodeableConcept40_50.convertCodeableConceptToCodeableReference(t)); if (src.hasOwner()) tgt.setOwner(Reference40_50.convertReference(src.getOwner())); if (src.hasLocation()) tgt.setLocation(Reference40_50.convertReference(src.getLocation())); if (src.hasReasonCode()) - tgt.setReasonCode(CodeableConcept40_50.convertCodeableConcept(src.getReasonCode())); + tgt.addReason(CodeableConcept40_50.convertCodeableConceptToCodeableReference(src.getReasonCode())); if (src.hasReasonReference()) - tgt.setReasonReference(Reference40_50.convertReference(src.getReasonReference())); + tgt.addReason(Reference40_50.convertReferenceToCodeableReference(src.getReasonReference())); for (org.hl7.fhir.r4.model.Reference t : src.getInsurance()) tgt.addInsurance(Reference40_50.convertReference(t)); for (org.hl7.fhir.r4.model.Annotation t : src.getNote()) tgt.addNote(Annotation40_50.convertAnnotation(t)); for (org.hl7.fhir.r4.model.Reference t : src.getRelevantHistory()) @@ -123,7 +128,7 @@ public class Task40_50 { if (src.hasStatus()) tgt.setStatusElement(convertTaskStatus(src.getStatusElement())); if (src.hasStatusReason()) - tgt.setStatusReason(CodeableConcept40_50.convertCodeableConcept(src.getStatusReason())); + tgt.setStatusReason(CodeableConcept40_50.convertCodeableReferenceToCodeableConcept(src.getStatusReason())); if (src.hasBusinessStatus()) tgt.setBusinessStatus(CodeableConcept40_50.convertCodeableConcept(src.getBusinessStatus())); if (src.hasIntent()) @@ -148,23 +153,25 @@ public class Task40_50 { tgt.setLastModifiedElement(DateTime40_50.convertDateTime(src.getLastModifiedElement())); if (src.hasRequester()) tgt.setRequester(Reference40_50.convertReference(src.getRequester())); - for (org.hl7.fhir.r5.model.CodeableConcept t : src.getPerformerType()) - tgt.addPerformerType(CodeableConcept40_50.convertCodeableConcept(t)); + for (org.hl7.fhir.r5.model.CodeableReference t : src.getRequestedPerformer()) + tgt.addPerformerType(CodeableConcept40_50.convertCodeableReferenceToCodeableConcept(t)); if (src.hasOwner()) tgt.setOwner(Reference40_50.convertReference(src.getOwner())); if (src.hasLocation()) tgt.setLocation(Reference40_50.convertReference(src.getLocation())); - if (src.hasReasonCode()) - tgt.setReasonCode(CodeableConcept40_50.convertCodeableConcept(src.getReasonCode())); - if (src.hasReasonReference()) - tgt.setReasonReference(Reference40_50.convertReference(src.getReasonReference())); + for (CodeableReference t : src.getReason()) { + if (t.hasConcept()) + tgt.setReasonCode(CodeableConcept40_50.convertCodeableConcept(t.getConcept())); + else if (t.hasReference()) + tgt.setReasonReference(Reference40_50.convertReference(t.getReference())); + } for (org.hl7.fhir.r5.model.Reference t : src.getInsurance()) tgt.addInsurance(Reference40_50.convertReference(t)); for (org.hl7.fhir.r5.model.Annotation t : src.getNote()) tgt.addNote(Annotation40_50.convertAnnotation(t)); for (org.hl7.fhir.r5.model.Reference t : src.getRelevantHistory()) tgt.addRelevantHistory(Reference40_50.convertReference(t)); if (src.hasRestriction()) tgt.setRestriction(convertTaskRestrictionComponent(src.getRestriction())); - for (org.hl7.fhir.r5.model.Task.ParameterComponent t : src.getInput()) tgt.addInput(convertParameterComponent(t)); + for (org.hl7.fhir.r5.model.Task.TaskInputComponent t : src.getInput()) tgt.addInput(convertParameterComponent(t)); for (org.hl7.fhir.r5.model.Task.TaskOutputComponent t : src.getOutput()) tgt.addOutput(convertTaskOutputComponent(t)); return tgt; @@ -424,10 +431,10 @@ public class Task40_50 { return tgt; } - public static org.hl7.fhir.r5.model.Task.ParameterComponent convertParameterComponent(org.hl7.fhir.r4.model.Task.ParameterComponent src) throws FHIRException { + public static org.hl7.fhir.r5.model.Task.TaskInputComponent convertParameterComponent(org.hl7.fhir.r4.model.Task.ParameterComponent src) throws FHIRException { if (src == null) return null; - org.hl7.fhir.r5.model.Task.ParameterComponent tgt = new org.hl7.fhir.r5.model.Task.ParameterComponent(); + org.hl7.fhir.r5.model.Task.TaskInputComponent tgt = new org.hl7.fhir.r5.model.Task.TaskInputComponent(); ConversionContext40_50.INSTANCE.getVersionConvertor_40_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept40_50.convertCodeableConcept(src.getType())); @@ -436,7 +443,7 @@ public class Task40_50 { return tgt; } - public static org.hl7.fhir.r4.model.Task.ParameterComponent convertParameterComponent(org.hl7.fhir.r5.model.Task.ParameterComponent src) throws FHIRException { + public static org.hl7.fhir.r4.model.Task.ParameterComponent convertParameterComponent(org.hl7.fhir.r5.model.Task.TaskInputComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r4.model.Task.ParameterComponent tgt = new org.hl7.fhir.r4.model.Task.ParameterComponent(); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/TerminologyCapabilities40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/TerminologyCapabilities40_50.java index 8774833b0..e8936566c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/TerminologyCapabilities40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/TerminologyCapabilities40_50.java @@ -4,7 +4,14 @@ import org.hl7.fhir.convertors.context.ConversionContext40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.CodeableConcept40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.ContactDetail40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.UsageContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Canonical40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Code40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.MarkDown40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Url40_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.CodeType; import org.hl7.fhir.r5.model.Enumeration; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/TestReport40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/TestReport40_50.java index e35d4b7af..04dc55684 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/TestReport40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/TestReport40_50.java @@ -2,8 +2,11 @@ package org.hl7.fhir.convertors.conv40_50.resources40_50; import org.hl7.fhir.convertors.context.ConversionContext40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Decimal40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.MarkDown40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.Reference; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/TestScript40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/TestScript40_50.java index 4bb079f34..6ee0357fb 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/TestScript40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/TestScript40_50.java @@ -6,10 +6,17 @@ import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Coding40_50 import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.ContactDetail40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.UsageContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Canonical40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Code40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Id40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Integer40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.MarkDown40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.special40_50.Reference40_50; import org.hl7.fhir.exceptions.FHIRException; -import org.hl7.fhir.r4.utils.ToolingExtensions; import org.hl7.fhir.r5.model.TestScript.TestScriptScopeComponent; /* diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ValueSet40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ValueSet40_50.java index a7fb4ad84..1c8cf569e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ValueSet40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/resources40_50/ValueSet40_50.java @@ -6,7 +6,15 @@ import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Coding40_50 import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.Identifier40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.ContactDetail40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.UsageContext40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.*; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Canonical40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Code40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Date40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.DateTime40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Integer40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.MarkDown40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.String40_50; +import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Uri40_50; import org.hl7.fhir.exceptions.FHIRException; /* diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/VersionConvertor_43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/VersionConvertor_43_50.java index ddfe044a8..d0dacff6c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/VersionConvertor_43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/VersionConvertor_43_50.java @@ -1,5 +1,7 @@ package org.hl7.fhir.convertors.conv43_50; +import javax.annotation.Nonnull; + import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.BackboneElement43_50; @@ -8,8 +10,6 @@ import org.hl7.fhir.convertors.conv43_50.datatypes43_50.Type43_50; import org.hl7.fhir.convertors.conv43_50.resources43_50.Resource43_50; import org.hl7.fhir.exceptions.FHIRException; -import javax.annotation.Nonnull; - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/Element43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/Element43_50.java index c76e68995..c7cd18342 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/Element43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/Element43_50.java @@ -1,11 +1,11 @@ package org.hl7.fhir.convertors.conv43_50.datatypes43_50; +import java.util.Arrays; + import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Extension43_50; import org.hl7.fhir.exceptions.FHIRException; -import java.util.Arrays; - public class Element43_50 { public final BaseAdvisor_43_50 advisor; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/Type43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/Type43_50.java index 79eea204c..3ee650ed6 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/Type43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/Type43_50.java @@ -1,11 +1,66 @@ package org.hl7.fhir.convertors.conv43_50.datatypes43_50; import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.*; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.*; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.*; -import org.hl7.fhir.convertors.conv43_50.resources43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Address43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Age43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Annotation43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Attachment43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Coding43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.ContactPoint43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Count43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Distance43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Duration43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.HumanName43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Money43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.MoneyQuantity43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Period43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Quantity43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Range43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Ratio43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.SampledData43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Signature43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.SimpleQuantity43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Timing43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.ContactDetail43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.Contributor43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.DataRequirement43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.Expression43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.ParameterDefinition43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.RelatedArtifact43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.TriggerDefinition43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.UsageContext43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Base64Binary43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Canonical43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Code43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Date43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Decimal43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Id43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Instant43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Integer43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.MarkDown43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Oid43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.PositiveInt43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Time43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.UnsignedInt43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Url43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uuid43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Dosage43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.ElementDefinition43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Extension43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Meta43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Narrative43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; +import org.hl7.fhir.convertors.conv43_50.resources43_50.MarketingStatus43_50; +import org.hl7.fhir.convertors.conv43_50.resources43_50.Population43_50; +import org.hl7.fhir.convertors.conv43_50.resources43_50.ProdCharacteristic43_50; +import org.hl7.fhir.convertors.conv43_50.resources43_50.ProductShelfLife43_50; +import org.hl7.fhir.convertors.conv43_50.resources43_50.SubstanceAmount43_50; import org.hl7.fhir.exceptions.FHIRException; public class Type43_50 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/general43_50/Attachment43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/general43_50/Attachment43_50.java index ba8538f85..2ea322847 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/general43_50/Attachment43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/general43_50/Attachment43_50.java @@ -1,7 +1,12 @@ package org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Base64Binary43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Code43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.UnsignedInt43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Url43_50; import org.hl7.fhir.exceptions.FHIRException; public class Attachment43_50 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/general43_50/CodeableConcept43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/general43_50/CodeableConcept43_50.java index 3d18c2154..7391c635c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/general43_50/CodeableConcept43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/general43_50/CodeableConcept43_50.java @@ -29,4 +29,8 @@ public class CodeableConcept43_50 { tgt.setConcept(convertCodeableConcept(src)); return tgt; } + + public static org.hl7.fhir.r4b.model.CodeableConcept convertCodeableReferenceToCodeableConcept(CodeableReference src) { + return convertCodeableConcept(src.getConcept()); + } } diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/general43_50/Coding43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/general43_50/Coding43_50.java index 36424ea1a..436508619 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/general43_50/Coding43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/general43_50/Coding43_50.java @@ -31,4 +31,48 @@ public class Coding43_50 { if (src.hasUserSelected()) tgt.setUserSelectedElement(Boolean43_50.convertBoolean(src.getUserSelectedElement())); return tgt; } + + + public static org.hl7.fhir.r5.model.CodeableConcept convertCodingToCodeableConcept(org.hl7.fhir.r4b.model.Coding src) throws FHIRException { + if (src == null) return null; + org.hl7.fhir.r5.model.CodeableConcept tgt = new org.hl7.fhir.r5.model.CodeableConcept(); + ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyElement(src, tgt); + if (src.hasSystem()) tgt.getCodingFirstRep().setSystem(src.getSystem()); + if (src.hasVersion()) tgt.getCodingFirstRep().setVersion(src.getVersion()); + if (src.hasCode()) tgt.getCodingFirstRep().setCode(src.getCode()); + if (src.hasDisplay()) tgt.getCodingFirstRep().setDisplay(src.getDisplay()); + if (src.hasUserSelected()) tgt.getCodingFirstRep().setUserSelected(src.getUserSelected()); + return tgt; + } + + public static org.hl7.fhir.r5.model.Coding convertCoding(org.hl7.fhir.r4b.model.CodeableConcept src) throws FHIRException { + if (src == null) return null; + org.hl7.fhir.r5.model.Coding tgt = new org.hl7.fhir.r5.model.Coding(); + ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyElement(src, tgt); + if (src.hasCoding()) { + if (src.getCodingFirstRep().hasSystem()) tgt.setSystem(src.getCodingFirstRep().getSystem()); + if (src.getCodingFirstRep().hasVersion()) tgt.setVersion(src.getCodingFirstRep().getVersion()); + if (src.getCodingFirstRep().hasCode()) tgt.setCode(src.getCodingFirstRep().getCode()); + if (src.getCodingFirstRep().hasDisplay()) tgt.setDisplay(src.getCodingFirstRep().getDisplay()); + if (src.getCodingFirstRep().hasUserSelected()) tgt.setUserSelected(src.getCodingFirstRep().getUserSelected()); + } + return tgt; + } + + + public static org.hl7.fhir.r4b.model.Coding convertCoding(org.hl7.fhir.r5.model.CodeableConcept src) throws FHIRException { + if (src == null) return null; + org.hl7.fhir.r4b.model.Coding tgt = new org.hl7.fhir.r4b.model.Coding(); + ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyElement(src, tgt); + if (src.hasCoding()) { + if (src.getCodingFirstRep().hasSystem()) tgt.setSystem(src.getCodingFirstRep().getSystem()); + if (src.getCodingFirstRep().hasVersion()) tgt.setVersion(src.getCodingFirstRep().getVersion()); + if (src.getCodingFirstRep().hasCode()) tgt.setCode(src.getCodingFirstRep().getCode()); + if (src.getCodingFirstRep().hasDisplay()) tgt.setDisplay(src.getCodingFirstRep().getDisplay()); + if (src.getCodingFirstRep().hasUserSelected()) tgt.setUserSelected(src.getCodingFirstRep().getUserSelected()); + } + return tgt; + } + + } diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/general43_50/Timing43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/general43_50/Timing43_50.java index 3b52122ec..db7223e6c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/general43_50/Timing43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/general43_50/Timing43_50.java @@ -1,13 +1,17 @@ package org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.BackboneElement43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.BackboneType43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Decimal43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.PositiveInt43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Time43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.UnsignedInt43_50; import org.hl7.fhir.exceptions.FHIRException; -import java.util.stream.Collectors; - public class Timing43_50 { public static org.hl7.fhir.r4b.model.Timing convertTiming(org.hl7.fhir.r5.model.Timing src) throws FHIRException { if (src == null) return null; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/primitive43_50/Date43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/primitive43_50/Date43_50.java index 1d83a6be4..66922b6df 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/primitive43_50/Date43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/primitive43_50/Date43_50.java @@ -1,10 +1,7 @@ package org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50; -import org.hl7.fhir.convertors.context.ConversionContext10_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; import org.hl7.fhir.exceptions.FHIRException; -import org.hl7.fhir.r4b.model.DateType; -import org.hl7.fhir.r5.model.DateTimeType; public class Date43_50 { public static org.hl7.fhir.r5.model.DateType convertDate(org.hl7.fhir.r4b.model.DateType src) throws FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/primitive43_50/String43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/primitive43_50/String43_50.java index f877e05a2..9a93e4b7c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/primitive43_50/String43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/primitive43_50/String43_50.java @@ -1,6 +1,5 @@ package org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50; -import org.hl7.fhir.convertors.context.ConversionContext30_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/special43_50/ElementDefinition43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/special43_50/ElementDefinition43_50.java index 8d4796d29..beb1d9412 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/special43_50/ElementDefinition43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/special43_50/ElementDefinition43_50.java @@ -1,14 +1,22 @@ package org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.BackboneElement43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Coding43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Canonical43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Code43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Id43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Integer43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.MarkDown43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.UnsignedInt43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; import org.hl7.fhir.convertors.conv43_50.resources43_50.Enumerations43_50; import org.hl7.fhir.exceptions.FHIRException; -import java.util.stream.Collectors; - public class ElementDefinition43_50 { public static org.hl7.fhir.r5.model.ElementDefinition convertElementDefinition(org.hl7.fhir.r4b.model.ElementDefinition src) throws FHIRException { if (src == null) return null; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/special43_50/Reference43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/special43_50/Reference43_50.java index 8c6349c57..fa603f668 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/special43_50/Reference43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/datatypes43_50/special43_50/Reference43_50.java @@ -35,4 +35,30 @@ public class Reference43_50 { tgt.setReference(convertReference(src)); return tgt; } + + public static org.hl7.fhir.r5.model.CanonicalType convertReferenceToCanonical(org.hl7.fhir.r4b.model.Reference src) { + if (src == null) return null; + org.hl7.fhir.r5.model.CanonicalType tgt = new org.hl7.fhir.r5.model.CanonicalType(); + ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyElement(src, tgt); + if (src.hasReference()) tgt.setValue(src.getReference()); + return tgt; + } + + public static org.hl7.fhir.r4b.model.Reference convertReferenceToCanonical(org.hl7.fhir.r5.model.CanonicalType src) { + if (src == null) return null; + org.hl7.fhir.r4b.model.Reference tgt = new org.hl7.fhir.r4b.model.Reference(); + ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyElement(src, tgt); + if (src.hasValue()) tgt.setReference(src.getValue()); + return tgt; + } + + + static public org.hl7.fhir.r4b.model.Reference convertCodeableReferenceToReference(org.hl7.fhir.r5.model.CodeableReference src) { + org.hl7.fhir.r4b.model.Reference tgt = new org.hl7.fhir.r4b.model.Reference(); + ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyElement(src, tgt); + tgt.setReference(src.getReference().getReference()); + return tgt; + } + + } diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Account43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Account43_50.java index 4858fb022..2520b039e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Account43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Account43_50.java @@ -65,8 +65,8 @@ public class Account43_50 { tgt.setDescriptionElement(String43_50.convertString(src.getDescriptionElement())); for (org.hl7.fhir.r4b.model.Account.GuarantorComponent t : src.getGuarantor()) tgt.addGuarantor(convertGuarantorComponent(t)); - if (src.hasPartOf()) - tgt.setPartOf(Reference43_50.convertReference(src.getPartOf())); +// if (src.hasPartOf()) +// tgt.setPartOf(Reference43_50.convertReference(src.getPartOf())); return tgt; } @@ -94,8 +94,8 @@ public class Account43_50 { tgt.setDescriptionElement(String43_50.convertString(src.getDescriptionElement())); for (org.hl7.fhir.r5.model.Account.GuarantorComponent t : src.getGuarantor()) tgt.addGuarantor(convertGuarantorComponent(t)); - if (src.hasPartOf()) - tgt.setPartOf(Reference43_50.convertReference(src.getPartOf())); +// if (src.hasPartOf()) +// tgt.setPartOf(Reference43_50.convertReference(src.getPartOf())); return tgt; } diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ActivityDefinition43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ActivityDefinition43_50.java index 1f1bb5e52..13bad0e57 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ActivityDefinition43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ActivityDefinition43_50.java @@ -9,7 +9,13 @@ import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.ContactDet import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.Expression43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.RelatedArtifact43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.UsageContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Canonical43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Date43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.MarkDown43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Dosage43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; import org.hl7.fhir.exceptions.FHIRException; @@ -133,11 +139,11 @@ public class ActivityDefinition43_50 { for (org.hl7.fhir.r4b.model.CodeableConcept t : src.getBodySite()) tgt.addBodySite(CodeableConcept43_50.convertCodeableConcept(t)); for (org.hl7.fhir.r4b.model.Reference t : src.getSpecimenRequirement()) - tgt.addSpecimenRequirement(Reference43_50.convertReference(t)); + tgt.getSpecimenRequirement().add(Reference43_50.convertReferenceToCanonical(t)); for (org.hl7.fhir.r4b.model.Reference t : src.getObservationRequirement()) - tgt.addObservationRequirement(Reference43_50.convertReference(t)); + tgt.getObservationRequirement().add(Reference43_50.convertReferenceToCanonical(t)); for (org.hl7.fhir.r4b.model.Reference t : src.getObservationResultRequirement()) - tgt.addObservationResultRequirement(Reference43_50.convertReference(t)); + tgt.getObservationResultRequirement().add(Reference43_50.convertReferenceToCanonical(t)); if (src.hasTransform()) tgt.setTransformElement(Canonical43_50.convertCanonical(src.getTransformElement())); for (org.hl7.fhir.r4b.model.ActivityDefinition.ActivityDefinitionDynamicValueComponent t : src.getDynamicValue()) @@ -231,12 +237,12 @@ public class ActivityDefinition43_50 { for (org.hl7.fhir.r5.model.Dosage t : src.getDosage()) tgt.addDosage(Dosage43_50.convertDosage(t)); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getBodySite()) tgt.addBodySite(CodeableConcept43_50.convertCodeableConcept(t)); - for (org.hl7.fhir.r5.model.Reference t : src.getSpecimenRequirement()) - tgt.addSpecimenRequirement(Reference43_50.convertReference(t)); - for (org.hl7.fhir.r5.model.Reference t : src.getObservationRequirement()) - tgt.addObservationRequirement(Reference43_50.convertReference(t)); - for (org.hl7.fhir.r5.model.Reference t : src.getObservationResultRequirement()) - tgt.addObservationResultRequirement(Reference43_50.convertReference(t)); + for (org.hl7.fhir.r5.model.CanonicalType t : src.getSpecimenRequirement()) + tgt.addSpecimenRequirement(Reference43_50.convertReferenceToCanonical(t)); + for (org.hl7.fhir.r5.model.CanonicalType t : src.getObservationRequirement()) + tgt.addObservationRequirement(Reference43_50.convertReferenceToCanonical(t)); + for (org.hl7.fhir.r5.model.CanonicalType t : src.getObservationResultRequirement()) + tgt.addObservationResultRequirement(Reference43_50.convertReferenceToCanonical(t)); if (src.hasTransform()) tgt.setTransformElement(Canonical43_50.convertCanonical(src.getTransformElement())); for (org.hl7.fhir.r5.model.ActivityDefinition.ActivityDefinitionDynamicValueComponent t : src.getDynamicValue()) @@ -244,65 +250,62 @@ public class ActivityDefinition43_50 { return tgt; } - static public org.hl7.fhir.r5.model.Enumeration convertActivityDefinitionKind(org.hl7.fhir.r4b.model.Enumeration src) throws FHIRException { + static public org.hl7.fhir.r5.model.Enumeration convertActivityDefinitionKind(org.hl7.fhir.r4b.model.Enumeration src) throws FHIRException { if (src == null || src.isEmpty()) return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypeEnumFactory()); + org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypesEnumFactory()); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyElement(src, tgt); switch (src.getValue()) { case APPOINTMENT: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.APPOINTMENT); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.APPOINTMENT); break; case APPOINTMENTRESPONSE: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.APPOINTMENTRESPONSE); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.APPOINTMENTRESPONSE); break; case CAREPLAN: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.CAREPLAN); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.CAREPLAN); break; case CLAIM: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.CLAIM); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.CLAIM); break; case COMMUNICATIONREQUEST: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.COMMUNICATIONREQUEST); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.COMMUNICATIONREQUEST); break; case CONTRACT: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.CONTRACT); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.CONTRACT); break; case DEVICEREQUEST: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.DEVICEREQUEST); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.DEVICEREQUEST); break; case ENROLLMENTREQUEST: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.ENROLLMENTREQUEST); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.ENROLLMENTREQUEST); break; case IMMUNIZATIONRECOMMENDATION: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.IMMUNIZATIONRECOMMENDATION); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.IMMUNIZATIONRECOMMENDATION); break; case MEDICATIONREQUEST: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.MEDICATIONREQUEST); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.MEDICATIONREQUEST); break; case NUTRITIONORDER: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.NUTRITIONORDER); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.NUTRITIONORDER); break; case SERVICEREQUEST: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.SERVICEREQUEST); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.SERVICEREQUEST); break; case SUPPLYREQUEST: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.SUPPLYREQUEST); - break; - case TASK: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.TASK); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.SUPPLYREQUEST); break; case VISIONPRESCRIPTION: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.VISIONPRESCRIPTION); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.VISIONPRESCRIPTION); break; default: - tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceType.NULL); + tgt.setValue(org.hl7.fhir.r5.model.ActivityDefinition.RequestResourceTypes.NULL); break; } return tgt; } - static public org.hl7.fhir.r4b.model.Enumeration convertActivityDefinitionKind(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { + static public org.hl7.fhir.r4b.model.Enumeration convertActivityDefinitionKind(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4b.model.Enumeration tgt = new org.hl7.fhir.r4b.model.Enumeration<>(new org.hl7.fhir.r4b.model.ActivityDefinition.RequestResourceTypeEnumFactory()); @@ -347,9 +350,6 @@ public class ActivityDefinition43_50 { case SUPPLYREQUEST: tgt.setValue(org.hl7.fhir.r4b.model.ActivityDefinition.RequestResourceType.SUPPLYREQUEST); break; - case TASK: - tgt.setValue(org.hl7.fhir.r4b.model.ActivityDefinition.RequestResourceType.TASK); - break; case VISIONPRESCRIPTION: tgt.setValue(org.hl7.fhir.r4b.model.ActivityDefinition.RequestResourceType.VISIONPRESCRIPTION); break; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/AllergyIntolerance43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/AllergyIntolerance43_50.java index f7f0e6aaa..41d6d244f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/AllergyIntolerance43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/AllergyIntolerance43_50.java @@ -1,7 +1,8 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Reference30_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Annotation43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; @@ -9,12 +10,10 @@ import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime4 import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.r5.model.AllergyIntolerance.AllergyIntoleranceParticipantComponent; import org.hl7.fhir.r5.model.CodeableConcept; import org.hl7.fhir.r5.model.CodeableReference; import org.hl7.fhir.r5.model.Coding; -import org.hl7.fhir.r5.model.AllergyIntolerance.AllergyIntoleranceParticipantComponent; - -import java.util.stream.Collectors; /* Copyright (c) 2011+, HL7, Inc. diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/AuditEvent43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/AuditEvent43_50.java index 94dd3582e..bd4166eb6 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/AuditEvent43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/AuditEvent43_50.java @@ -4,7 +4,11 @@ import org.hl7.fhir.convertors.context.ConversionContext43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Coding43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Period43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Base64Binary43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Instant43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeableConcept; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/BiologicallyDerivedProduct43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/BiologicallyDerivedProduct43_50.java index 822b5ddbf..ec9b5e2b1 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/BiologicallyDerivedProduct43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/BiologicallyDerivedProduct43_50.java @@ -1,12 +1,7 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Period43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Decimal43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Integer43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Bundle43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Bundle43_50.java index 3229fe46f..9714aa16d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Bundle43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Bundle43_50.java @@ -3,7 +3,11 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Signature43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Decimal43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Instant43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.UnsignedInt43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.Bundle.LinkRelationTypes; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/CapabilityStatement43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/CapabilityStatement43_50.java index 6c46f7855..756d5879c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/CapabilityStatement43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/CapabilityStatement43_50.java @@ -1,16 +1,24 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Coding43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.ContactDetail43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.UsageContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Canonical43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Code43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.MarkDown43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.UnsignedInt43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Url43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; import org.hl7.fhir.exceptions.FHIRException; -import java.util.stream.Collectors; - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/CarePlan43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/CarePlan43_50.java index 7ee43d634..a814a38fb 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/CarePlan43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/CarePlan43_50.java @@ -1,8 +1,16 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.*; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Annotation43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Period43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.SimpleQuantity43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Canonical43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeableReference; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/CareTeam43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/CareTeam43_50.java index a144b6507..700f484e3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/CareTeam43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/CareTeam43_50.java @@ -1,7 +1,11 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Annotation43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.ContactPoint43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Period43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ChargeItem43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ChargeItem43_50.java index 48c74b590..5c27e01bc 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ChargeItem43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ChargeItem43_50.java @@ -1,10 +1,17 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.*; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Annotation43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Quantity43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Canonical43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.r5.model.CodeableReference; /* Copyright (c) 2011+, HL7, Inc. @@ -55,7 +62,7 @@ public class ChargeItem43_50 { if (src.hasSubject()) tgt.setSubject(Reference43_50.convertReference(src.getSubject())); if (src.hasContext()) - tgt.setContext(Reference43_50.convertReference(src.getContext())); + tgt.setEncounter(Reference43_50.convertReference(src.getContext())); if (src.hasOccurrence()) tgt.setOccurrence(ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().convertType(src.getOccurrence())); for (org.hl7.fhir.r4b.model.ChargeItem.ChargeItemPerformerComponent t : src.getPerformer()) @@ -70,19 +77,19 @@ public class ChargeItem43_50 { tgt.setQuantity(Quantity43_50.convertQuantity(src.getQuantity())); for (org.hl7.fhir.r4b.model.CodeableConcept t : src.getBodysite()) tgt.addBodysite(CodeableConcept43_50.convertCodeableConcept(t)); - if (src.hasFactorOverride()) - tgt.setFactorOverrideElement(Decimal43_50.convertDecimal(src.getFactorOverrideElement())); - if (src.hasPriceOverride()) - tgt.setPriceOverride(Money43_50.convertMoney(src.getPriceOverride())); +// if (src.hasFactorOverride()) +// tgt.setFactorOverrideElement(Decimal43_50.convertDecimal(src.getFactorOverrideElement())); +// if (src.hasPriceOverride()) +// tgt.setPriceOverride(Money43_50.convertMoney(src.getPriceOverride())); if (src.hasOverrideReason()) - tgt.setOverrideReasonElement(String43_50.convertString(src.getOverrideReasonElement())); + tgt.getOverrideReason().setTextElement(String43_50.convertString(src.getOverrideReasonElement())); if (src.hasEnterer()) tgt.setEnterer(Reference43_50.convertReference(src.getEnterer())); if (src.hasEnteredDate()) tgt.setEnteredDateElement(DateTime43_50.convertDateTime(src.getEnteredDateElement())); for (org.hl7.fhir.r4b.model.CodeableConcept t : src.getReason()) tgt.addReason(CodeableConcept43_50.convertCodeableConcept(t)); - for (org.hl7.fhir.r4b.model.Reference t : src.getService()) tgt.addService(Reference43_50.convertReference(t)); + for (org.hl7.fhir.r4b.model.Reference t : src.getService()) tgt.addService(Reference43_50.convertReferenceToCodeableReference(t)); if (src.hasProductCodeableConcept()) tgt.addProduct().setConcept(CodeableConcept43_50.convertCodeableConcept(src.getProductCodeableConcept())); else if (src.hasProductReference()) @@ -111,8 +118,8 @@ public class ChargeItem43_50 { tgt.setCode(CodeableConcept43_50.convertCodeableConcept(src.getCode())); if (src.hasSubject()) tgt.setSubject(Reference43_50.convertReference(src.getSubject())); - if (src.hasContext()) - tgt.setContext(Reference43_50.convertReference(src.getContext())); + if (src.hasEncounter()) + tgt.setContext(Reference43_50.convertReference(src.getEncounter())); if (src.hasOccurrence()) tgt.setOccurrence(ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().convertType(src.getOccurrence())); for (org.hl7.fhir.r5.model.ChargeItem.ChargeItemPerformerComponent t : src.getPerformer()) @@ -127,19 +134,19 @@ public class ChargeItem43_50 { tgt.setQuantity(Quantity43_50.convertQuantity(src.getQuantity())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getBodysite()) tgt.addBodysite(CodeableConcept43_50.convertCodeableConcept(t)); - if (src.hasFactorOverride()) - tgt.setFactorOverrideElement(Decimal43_50.convertDecimal(src.getFactorOverrideElement())); - if (src.hasPriceOverride()) - tgt.setPriceOverride(Money43_50.convertMoney(src.getPriceOverride())); - if (src.hasOverrideReason()) - tgt.setOverrideReasonElement(String43_50.convertString(src.getOverrideReasonElement())); +// if (src.hasFactorOverride()) +// tgt.setFactorOverrideElement(Decimal43_50.convertDecimal(src.getFactorOverrideElement())); +// if (src.hasPriceOverride()) +// tgt.setPriceOverride(Money43_50.convertMoney(src.getPriceOverride())); + if (src.getOverrideReason().hasText()) + tgt.setOverrideReasonElement(String43_50.convertString(src.getOverrideReason().getTextElement())); if (src.hasEnterer()) tgt.setEnterer(Reference43_50.convertReference(src.getEnterer())); if (src.hasEnteredDate()) tgt.setEnteredDateElement(DateTime43_50.convertDateTime(src.getEnteredDateElement())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReason()) tgt.addReason(CodeableConcept43_50.convertCodeableConcept(t)); - for (org.hl7.fhir.r5.model.Reference t : src.getService()) tgt.addService(Reference43_50.convertReference(t)); + for (CodeableReference t : src.getService()) tgt.addService(Reference43_50.convertCodeableReferenceToReference(t)); if (src.getProductFirstRep().hasConcept()) tgt.setProduct(CodeableConcept43_50.convertCodeableConcept(src.getProductFirstRep().getConcept())); if (src.getProductFirstRep().hasReference()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ChargeItemDefinition43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ChargeItemDefinition43_50.java index efadc1f3a..0b0dba11b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ChargeItemDefinition43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ChargeItemDefinition43_50.java @@ -3,11 +3,16 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Money43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Period43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.ContactDetail43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.UsageContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Canonical43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Date43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.MarkDown43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; import org.hl7.fhir.exceptions.FHIRException; @@ -152,11 +157,11 @@ public class ChargeItemDefinition43_50 { org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionApplicabilityComponent tgt = new org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionApplicabilityComponent(); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); if (src.hasDescription()) - tgt.setDescriptionElement(String43_50.convertString(src.getDescriptionElement())); + tgt.getCondition().setDescriptionElement(String43_50.convertString(src.getDescriptionElement())); if (src.hasLanguage()) - tgt.setLanguageElement(String43_50.convertString(src.getLanguageElement())); + tgt.getCondition().setLanguage(src.getLanguage()); if (src.hasExpression()) - tgt.setExpressionElement(String43_50.convertString(src.getExpressionElement())); + tgt.getCondition().setExpressionElement(String43_50.convertString(src.getExpressionElement())); return tgt; } @@ -165,12 +170,12 @@ public class ChargeItemDefinition43_50 { return null; org.hl7.fhir.r4b.model.ChargeItemDefinition.ChargeItemDefinitionApplicabilityComponent tgt = new org.hl7.fhir.r4b.model.ChargeItemDefinition.ChargeItemDefinitionApplicabilityComponent(); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); - if (src.hasDescription()) - tgt.setDescriptionElement(String43_50.convertString(src.getDescriptionElement())); - if (src.hasLanguage()) - tgt.setLanguageElement(String43_50.convertString(src.getLanguageElement())); - if (src.hasExpression()) - tgt.setExpressionElement(String43_50.convertString(src.getExpressionElement())); + if (src.getCondition().hasDescription()) + tgt.setDescriptionElement(String43_50.convertString(src.getCondition().getDescriptionElement())); + if (src.getCondition().hasLanguage()) + tgt.setLanguageElement(String43_50.convertString(src.getCondition().getLanguageElement())); + if (src.getCondition().hasExpression()) + tgt.setExpressionElement(String43_50.convertString(src.getCondition().getExpressionElement())); return tgt; } @@ -181,8 +186,8 @@ public class ChargeItemDefinition43_50 { ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4b.model.ChargeItemDefinition.ChargeItemDefinitionApplicabilityComponent t : src.getApplicability()) tgt.addApplicability(convertChargeItemDefinitionApplicabilityComponent(t)); - for (org.hl7.fhir.r4b.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent t : src.getPriceComponent()) - tgt.addPriceComponent(convertChargeItemDefinitionPropertyGroupPriceComponentComponent(t)); +// for (org.hl7.fhir.r4b.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent t : src.getPriceComponent()) +// tgt.addPriceComponent(convertChargeItemDefinitionPropertyGroupPriceComponentComponent(t)); return tgt; } @@ -193,102 +198,102 @@ public class ChargeItemDefinition43_50 { ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionApplicabilityComponent t : src.getApplicability()) tgt.addApplicability(convertChargeItemDefinitionApplicabilityComponent(t)); - for (org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent t : src.getPriceComponent()) - tgt.addPriceComponent(convertChargeItemDefinitionPropertyGroupPriceComponentComponent(t)); +// for (org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent t : src.getPriceComponent()) +// tgt.addPriceComponent(convertChargeItemDefinitionPropertyGroupPriceComponentComponent(t)); return tgt; } - public static org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent convertChargeItemDefinitionPropertyGroupPriceComponentComponent(org.hl7.fhir.r4b.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent tgt = new org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent(); - ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); - if (src.hasType()) - tgt.setTypeElement(convertChargeItemDefinitionPriceComponentType(src.getTypeElement())); - if (src.hasCode()) - tgt.setCode(CodeableConcept43_50.convertCodeableConcept(src.getCode())); - if (src.hasFactor()) - tgt.setFactorElement(Decimal43_50.convertDecimal(src.getFactorElement())); - if (src.hasAmount()) - tgt.setAmount(Money43_50.convertMoney(src.getAmount())); - return tgt; - } - - public static org.hl7.fhir.r4b.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent convertChargeItemDefinitionPropertyGroupPriceComponentComponent(org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r4b.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent tgt = new org.hl7.fhir.r4b.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent(); - ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); - if (src.hasType()) - tgt.setTypeElement(convertChargeItemDefinitionPriceComponentType(src.getTypeElement())); - if (src.hasCode()) - tgt.setCode(CodeableConcept43_50.convertCodeableConcept(src.getCode())); - if (src.hasFactor()) - tgt.setFactorElement(Decimal43_50.convertDecimal(src.getFactorElement())); - if (src.hasAmount()) - tgt.setAmount(Money43_50.convertMoney(src.getAmount())); - return tgt; - } - - static public org.hl7.fhir.r5.model.Enumeration convertChargeItemDefinitionPriceComponentType(org.hl7.fhir.r4b.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentTypeEnumFactory()); - ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyElement(src, tgt); - switch (src.getValue()) { - case BASE: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.BASE); - break; - case SURCHARGE: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.SURCHARGE); - break; - case DEDUCTION: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.DEDUCTION); - break; - case DISCOUNT: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.DISCOUNT); - break; - case TAX: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.TAX); - break; - case INFORMATIONAL: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.INFORMATIONAL); - break; - default: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r4b.model.Enumeration convertChargeItemDefinitionPriceComponentType(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r4b.model.Enumeration tgt = new org.hl7.fhir.r4b.model.Enumeration<>(new org.hl7.fhir.r4b.model.Enumerations.InvoicePriceComponentTypeEnumFactory()); - ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyElement(src, tgt); - switch (src.getValue()) { - case BASE: - tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.InvoicePriceComponentType.BASE); - break; - case SURCHARGE: - tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.InvoicePriceComponentType.SURCHARGE); - break; - case DEDUCTION: - tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.InvoicePriceComponentType.DEDUCTION); - break; - case DISCOUNT: - tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.InvoicePriceComponentType.DISCOUNT); - break; - case TAX: - tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.InvoicePriceComponentType.TAX); - break; - case INFORMATIONAL: - tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.InvoicePriceComponentType.INFORMATIONAL); - break; - default: - tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.InvoicePriceComponentType.NULL); - break; - } - return tgt; - } +// public static org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent convertChargeItemDefinitionPropertyGroupPriceComponentComponent(org.hl7.fhir.r4b.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent src) throws FHIRException { +// if (src == null) +// return null; +// org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent tgt = new org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent(); +// ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); +// if (src.hasType()) +// tgt.setTypeElement(convertChargeItemDefinitionPriceComponentType(src.getTypeElement())); +// if (src.hasCode()) +// tgt.setCode(CodeableConcept43_50.convertCodeableConcept(src.getCode())); +// if (src.hasFactor()) +// tgt.setFactorElement(Decimal43_50.convertDecimal(src.getFactorElement())); +// if (src.hasAmount()) +// tgt.setAmount(Money43_50.convertMoney(src.getAmount())); +// return tgt; +// } +// +// public static org.hl7.fhir.r4b.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent convertChargeItemDefinitionPropertyGroupPriceComponentComponent(org.hl7.fhir.r5.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent src) throws FHIRException { +// if (src == null) +// return null; +// org.hl7.fhir.r4b.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent tgt = new org.hl7.fhir.r4b.model.ChargeItemDefinition.ChargeItemDefinitionPropertyGroupPriceComponentComponent(); +// ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); +// if (src.hasType()) +// tgt.setTypeElement(convertChargeItemDefinitionPriceComponentType(src.getTypeElement())); +// if (src.hasCode()) +// tgt.setCode(CodeableConcept43_50.convertCodeableConcept(src.getCode())); +// if (src.hasFactor()) +// tgt.setFactorElement(Decimal43_50.convertDecimal(src.getFactorElement())); +// if (src.hasAmount()) +// tgt.setAmount(Money43_50.convertMoney(src.getAmount())); +// return tgt; +// } +// +// static public org.hl7.fhir.r5.model.Enumeration convertChargeItemDefinitionPriceComponentType(org.hl7.fhir.r4b.model.Enumeration src) throws FHIRException { +// if (src == null || src.isEmpty()) +// return null; +// org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentTypeEnumFactory()); +// ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyElement(src, tgt); +// switch (src.getValue()) { +// case BASE: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.BASE); +// break; +// case SURCHARGE: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.SURCHARGE); +// break; +// case DEDUCTION: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.DEDUCTION); +// break; +// case DISCOUNT: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.DISCOUNT); +// break; +// case TAX: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.TAX); +// break; +// case INFORMATIONAL: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.INFORMATIONAL); +// break; +// default: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.NULL); +// break; +// } +// return tgt; +// } +// +// static public org.hl7.fhir.r4b.model.Enumeration convertChargeItemDefinitionPriceComponentType(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { +// if (src == null || src.isEmpty()) +// return null; +// org.hl7.fhir.r4b.model.Enumeration tgt = new org.hl7.fhir.r4b.model.Enumeration<>(new org.hl7.fhir.r4b.model.Enumerations.InvoicePriceComponentTypeEnumFactory()); +// ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyElement(src, tgt); +// switch (src.getValue()) { +// case BASE: +// tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.InvoicePriceComponentType.BASE); +// break; +// case SURCHARGE: +// tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.InvoicePriceComponentType.SURCHARGE); +// break; +// case DEDUCTION: +// tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.InvoicePriceComponentType.DEDUCTION); +// break; +// case DISCOUNT: +// tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.InvoicePriceComponentType.DISCOUNT); +// break; +// case TAX: +// tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.InvoicePriceComponentType.TAX); +// break; +// case INFORMATIONAL: +// tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.InvoicePriceComponentType.INFORMATIONAL); +// break; +// default: +// tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.InvoicePriceComponentType.NULL); +// break; +// } +// return tgt; +// } } \ No newline at end of file diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Claim43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Claim43_50.java index bcaab55c7..999e5ad27 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Claim43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Claim43_50.java @@ -1,8 +1,17 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.*; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Money43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Period43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.SimpleQuantity43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Date43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Decimal43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.PositiveInt43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; import org.hl7.fhir.exceptions.FHIRException; @@ -319,7 +328,7 @@ public class Claim43_50 { if (src.hasRole()) tgt.setRole(CodeableConcept43_50.convertCodeableConcept(src.getRole())); if (src.hasQualification()) - tgt.setQualification(CodeableConcept43_50.convertCodeableConcept(src.getQualification())); + tgt.setSpecialty(CodeableConcept43_50.convertCodeableConcept(src.getQualification())); return tgt; } @@ -336,8 +345,8 @@ public class Claim43_50 { tgt.setResponsibleElement(Boolean43_50.convertBoolean(src.getResponsibleElement())); if (src.hasRole()) tgt.setRole(CodeableConcept43_50.convertCodeableConcept(src.getRole())); - if (src.hasQualification()) - tgt.setQualification(CodeableConcept43_50.convertCodeableConcept(src.getQualification())); + if (src.hasSpecialty()) + tgt.setQualification(CodeableConcept43_50.convertCodeableConcept(src.getSpecialty())); return tgt; } @@ -394,8 +403,8 @@ public class Claim43_50 { tgt.addType(CodeableConcept43_50.convertCodeableConcept(t)); if (src.hasOnAdmission()) tgt.setOnAdmission(CodeableConcept43_50.convertCodeableConcept(src.getOnAdmission())); - if (src.hasPackageCode()) - tgt.setPackageCode(CodeableConcept43_50.convertCodeableConcept(src.getPackageCode())); +// if (src.hasPackageCode()) +// tgt.setPackageCode(CodeableConcept43_50.convertCodeableConcept(src.getPackageCode())); return tgt; } @@ -412,8 +421,8 @@ public class Claim43_50 { tgt.addType(CodeableConcept43_50.convertCodeableConcept(t)); if (src.hasOnAdmission()) tgt.setOnAdmission(CodeableConcept43_50.convertCodeableConcept(src.getOnAdmission())); - if (src.hasPackageCode()) - tgt.setPackageCode(CodeableConcept43_50.convertCodeableConcept(src.getPackageCode())); +// if (src.hasPackageCode()) +// tgt.setPackageCode(CodeableConcept43_50.convertCodeableConcept(src.getPackageCode())); return tgt; } @@ -562,9 +571,9 @@ public class Claim43_50 { tgt.setNet(Money43_50.convertMoney(src.getNet())); for (org.hl7.fhir.r4b.model.Reference t : src.getUdi()) tgt.addUdi(Reference43_50.convertReference(t)); if (src.hasBodySite()) - tgt.setBodySite(CodeableConcept43_50.convertCodeableConcept(src.getBodySite())); + tgt.getBodySiteFirstRep().addSite(CodeableConcept43_50.convertCodeableConceptToCodeableReference(src.getBodySite())); for (org.hl7.fhir.r4b.model.CodeableConcept t : src.getSubSite()) - tgt.addSubSite(CodeableConcept43_50.convertCodeableConcept(t)); + tgt.getBodySiteFirstRep().addSubSite(CodeableConcept43_50.convertCodeableConcept(t)); for (org.hl7.fhir.r4b.model.Reference t : src.getEncounter()) tgt.addEncounter(Reference43_50.convertReference(t)); for (org.hl7.fhir.r4b.model.Claim.DetailComponent t : src.getDetail()) tgt.addDetail(convertDetailComponent(t)); return tgt; @@ -609,8 +618,8 @@ public class Claim43_50 { tgt.setNet(Money43_50.convertMoney(src.getNet())); for (org.hl7.fhir.r5.model.Reference t : src.getUdi()) tgt.addUdi(Reference43_50.convertReference(t)); if (src.hasBodySite()) - tgt.setBodySite(CodeableConcept43_50.convertCodeableConcept(src.getBodySite())); - for (org.hl7.fhir.r5.model.CodeableConcept t : src.getSubSite()) + tgt.setBodySite(CodeableConcept43_50.convertCodeableReferenceToCodeableConcept(src.getBodySiteFirstRep().getSiteFirstRep())); + for (org.hl7.fhir.r5.model.CodeableConcept t : src.getBodySiteFirstRep().getSubSite()) tgt.addSubSite(CodeableConcept43_50.convertCodeableConcept(t)); for (org.hl7.fhir.r5.model.Reference t : src.getEncounter()) tgt.addEncounter(Reference43_50.convertReference(t)); for (org.hl7.fhir.r5.model.Claim.DetailComponent t : src.getDetail()) tgt.addDetail(convertDetailComponent(t)); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ClaimResponse43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ClaimResponse43_50.java index 7053da1f8..272d33d33 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ClaimResponse43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ClaimResponse43_50.java @@ -1,8 +1,18 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.*; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Attachment43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Money43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Period43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.SimpleQuantity43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Date43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Decimal43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.PositiveInt43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; import org.hl7.fhir.exceptions.FHIRException; @@ -454,9 +464,9 @@ public class ClaimResponse43_50 { if (src.hasNet()) tgt.setNet(Money43_50.convertMoney(src.getNet())); if (src.hasBodySite()) - tgt.setBodySite(CodeableConcept43_50.convertCodeableConcept(src.getBodySite())); + tgt.getBodySiteFirstRep().addSite(CodeableConcept43_50.convertCodeableConceptToCodeableReference(src.getBodySite())); for (org.hl7.fhir.r4b.model.CodeableConcept t : src.getSubSite()) - tgt.addSubSite(CodeableConcept43_50.convertCodeableConcept(t)); + tgt.getBodySiteFirstRep().addSubSite(CodeableConcept43_50.convertCodeableConcept(t)); for (org.hl7.fhir.r4b.model.PositiveIntType t : src.getNoteNumber()) tgt.getNoteNumber().add(PositiveInt43_50.convertPositiveInt(t)); for (org.hl7.fhir.r4b.model.ClaimResponse.AdjudicationComponent t : src.getAdjudication()) @@ -496,9 +506,9 @@ public class ClaimResponse43_50 { tgt.setFactorElement(Decimal43_50.convertDecimal(src.getFactorElement())); if (src.hasNet()) tgt.setNet(Money43_50.convertMoney(src.getNet())); - if (src.hasBodySite()) - tgt.setBodySite(CodeableConcept43_50.convertCodeableConcept(src.getBodySite())); - for (org.hl7.fhir.r5.model.CodeableConcept t : src.getSubSite()) + if (src.getBodySiteFirstRep().hasSite()) + tgt.setBodySite(CodeableConcept43_50.convertCodeableReferenceToCodeableConcept(src.getBodySiteFirstRep().getSiteFirstRep())); + for (org.hl7.fhir.r5.model.CodeableConcept t : src.getBodySiteFirstRep().getSubSite()) tgt.addSubSite(CodeableConcept43_50.convertCodeableConcept(t)); for (org.hl7.fhir.r5.model.PositiveIntType t : src.getNoteNumber()) tgt.getNoteNumber().add(PositiveInt43_50.convertPositiveInt(t)); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/CodeSystem43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/CodeSystem43_50.java index 12d79aa70..35365757f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/CodeSystem43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/CodeSystem43_50.java @@ -1,16 +1,23 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Coding43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.ContactDetail43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.UsageContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Canonical43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Code43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.MarkDown43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.UnsignedInt43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; import org.hl7.fhir.exceptions.FHIRException; -import java.util.stream.Collectors; - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/CompartmentDefinition43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/CompartmentDefinition43_50.java index f5c95e119..05c4c9271 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/CompartmentDefinition43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/CompartmentDefinition43_50.java @@ -3,7 +3,12 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.ContactDetail43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.UsageContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Code43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.MarkDown43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; import org.hl7.fhir.exceptions.FHIRException; /* diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Composition43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Composition43_50.java index 4f8a92536..3215a8820 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Composition43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Composition43_50.java @@ -1,8 +1,6 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; -import org.hl7.fhir.convertors.context.ConversionContext30_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.Reference30_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Period43_50; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ConceptMap43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ConceptMap43_50.java index f9bf30165..b26cc19a0 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ConceptMap43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ConceptMap43_50.java @@ -2,12 +2,17 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.VersionConvertorConstants; import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv30_50.datatypes30_50.primitivetypes30_50.String30_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.ContactDetail43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.UsageContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Canonical43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Code43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.MarkDown43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CanonicalType; import org.hl7.fhir.r5.model.Coding; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Condition43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Condition43_50.java index 805eb0180..befc64d14 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Condition43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Condition43_50.java @@ -3,7 +3,6 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import java.util.ArrayList; import java.util.List; -import org.hl7.fhir.convertors.context.ConversionContext43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Annotation43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; @@ -14,7 +13,6 @@ import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeableConcept; import org.hl7.fhir.r5.model.CodeableReference; import org.hl7.fhir.r5.model.Coding; -import org.hl7.fhir.r5.model.Condition.ConditionParticipantComponent; /* Copyright (c) 2011+, HL7, Inc. diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Consent43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Consent43_50.java index b240ff084..8031cf8af 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Consent43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Consent43_50.java @@ -1,7 +1,11 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Attachment43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Coding43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Period43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; @@ -270,26 +274,26 @@ public class Consent43_50 { return tgt; } - static public org.hl7.fhir.r5.model.Enumeration convertConsentProvisionType(org.hl7.fhir.r4b.model.Enumeration src) throws FHIRException { + static public org.hl7.fhir.r5.model.Enumeration convertConsentProvisionType(org.hl7.fhir.r4b.model.Enumeration src) throws FHIRException { if (src == null || src.isEmpty()) return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Consent.ConsentProvisionTypeEnumFactory()); + org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.ConsentProvisionTypeEnumFactory()); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyElement(src, tgt); switch (src.getValue()) { case DENY: - tgt.setValue(org.hl7.fhir.r5.model.Consent.ConsentProvisionType.DENY); + tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConsentProvisionType.DENY); break; case PERMIT: - tgt.setValue(org.hl7.fhir.r5.model.Consent.ConsentProvisionType.PERMIT); + tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConsentProvisionType.PERMIT); break; default: - tgt.setValue(org.hl7.fhir.r5.model.Consent.ConsentProvisionType.NULL); + tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConsentProvisionType.NULL); break; } return tgt; } - static public org.hl7.fhir.r4b.model.Enumeration convertConsentProvisionType(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { + static public org.hl7.fhir.r4b.model.Enumeration convertConsentProvisionType(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4b.model.Enumeration tgt = new org.hl7.fhir.r4b.model.Enumeration<>(new org.hl7.fhir.r4b.model.Consent.ConsentProvisionTypeEnumFactory()); @@ -356,32 +360,32 @@ public class Consent43_50 { return tgt; } - static public org.hl7.fhir.r5.model.Enumeration convertConsentDataMeaning(org.hl7.fhir.r4b.model.Enumeration src) throws FHIRException { + static public org.hl7.fhir.r5.model.Enumeration convertConsentDataMeaning(org.hl7.fhir.r4b.model.Enumeration src) throws FHIRException { if (src == null || src.isEmpty()) return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Consent.ConsentDataMeaningEnumFactory()); + org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.ConsentDataMeaningEnumFactory()); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyElement(src, tgt); switch (src.getValue()) { case INSTANCE: - tgt.setValue(org.hl7.fhir.r5.model.Consent.ConsentDataMeaning.INSTANCE); + tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConsentDataMeaning.INSTANCE); break; case RELATED: - tgt.setValue(org.hl7.fhir.r5.model.Consent.ConsentDataMeaning.RELATED); + tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConsentDataMeaning.RELATED); break; case DEPENDENTS: - tgt.setValue(org.hl7.fhir.r5.model.Consent.ConsentDataMeaning.DEPENDENTS); + tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConsentDataMeaning.DEPENDENTS); break; case AUTHOREDBY: - tgt.setValue(org.hl7.fhir.r5.model.Consent.ConsentDataMeaning.AUTHOREDBY); + tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConsentDataMeaning.AUTHOREDBY); break; default: - tgt.setValue(org.hl7.fhir.r5.model.Consent.ConsentDataMeaning.NULL); + tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConsentDataMeaning.NULL); break; } return tgt; } - static public org.hl7.fhir.r4b.model.Enumeration convertConsentDataMeaning(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { + static public org.hl7.fhir.r4b.model.Enumeration convertConsentDataMeaning(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4b.model.Enumeration tgt = new org.hl7.fhir.r4b.model.Enumeration<>(new org.hl7.fhir.r4b.model.Consent.ConsentDataMeaningEnumFactory()); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Contract43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Contract43_50.java index 106dc8c44..5f0b7dd01 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Contract43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Contract43_50.java @@ -1,8 +1,21 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.*; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Annotation43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Coding43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Money43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Period43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Signature43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.SimpleQuantity43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Decimal43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.MarkDown43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.UnsignedInt43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeableReference; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Coverage43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Coverage43_50.java index 63564dc89..92c3a3382 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Coverage43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Coverage43_50.java @@ -57,7 +57,7 @@ public class Coverage43_50 { if (src.hasSubscriber()) tgt.setSubscriber(Reference43_50.convertReference(src.getSubscriber())); if (src.hasSubscriberId()) - tgt.getSubscriberId().setValueElement(String43_50.convertString(src.getSubscriberIdElement())); + tgt.getSubscriberIdFirstRep().setValueElement(String43_50.convertString(src.getSubscriberIdElement())); if (src.hasBeneficiary()) tgt.setBeneficiary(Reference43_50.convertReference(src.getBeneficiary())); if (src.hasDependent()) @@ -66,7 +66,7 @@ public class Coverage43_50 { tgt.setRelationship(CodeableConcept43_50.convertCodeableConcept(src.getRelationship())); if (src.hasPeriod()) tgt.setPeriod(Period43_50.convertPeriod(src.getPeriod())); - for (org.hl7.fhir.r4b.model.Reference t : src.getPayor()) tgt.addPayor(Reference43_50.convertReference(t)); + for (org.hl7.fhir.r4b.model.Reference t : src.getPayor()) tgt.setInsurer(Reference43_50.convertReference(t)); for (org.hl7.fhir.r4b.model.Coverage.ClassComponent t : src.getClass_()) tgt.addClass_(convertClassComponent(t)); if (src.hasOrder()) tgt.setOrderElement(PositiveInt43_50.convertPositiveInt(src.getOrderElement())); @@ -96,7 +96,7 @@ public class Coverage43_50 { if (src.hasSubscriber()) tgt.setSubscriber(Reference43_50.convertReference(src.getSubscriber())); if (src.hasSubscriberId()) - tgt.setSubscriberIdElement(String43_50.convertString(src.getSubscriberId().getValueElement())); + tgt.setSubscriberIdElement(String43_50.convertString(src.getSubscriberIdFirstRep().getValueElement())); if (src.hasBeneficiary()) tgt.setBeneficiary(Reference43_50.convertReference(src.getBeneficiary())); if (src.hasDependent()) @@ -105,7 +105,7 @@ public class Coverage43_50 { tgt.setRelationship(CodeableConcept43_50.convertCodeableConcept(src.getRelationship())); if (src.hasPeriod()) tgt.setPeriod(Period43_50.convertPeriod(src.getPeriod())); - for (org.hl7.fhir.r5.model.Reference t : src.getPayor()) tgt.addPayor(Reference43_50.convertReference(t)); + tgt.addPayor(Reference43_50.convertReference(src.getInsurer())); for (org.hl7.fhir.r5.model.Coverage.ClassComponent t : src.getClass_()) tgt.addClass_(convertClassComponent(t)); if (src.hasOrder()) tgt.setOrderElement(PositiveInt43_50.convertPositiveInt(src.getOrderElement())); @@ -177,7 +177,7 @@ public class Coverage43_50 { if (src.hasType()) tgt.setType(CodeableConcept43_50.convertCodeableConcept(src.getType())); if (src.hasValue()) - tgt.setValueElement(String43_50.convertString(src.getValueElement())); + tgt.getValue().setValueElement(String43_50.convertString(src.getValueElement())); if (src.hasName()) tgt.setNameElement(String43_50.convertString(src.getNameElement())); return tgt; @@ -191,7 +191,7 @@ public class Coverage43_50 { if (src.hasType()) tgt.setType(CodeableConcept43_50.convertCodeableConcept(src.getType())); if (src.hasValue()) - tgt.setValueElement(String43_50.convertString(src.getValueElement())); + tgt.setValueElement(String43_50.convertString(src.getValue().getValueElement())); if (src.hasName()) tgt.setNameElement(String43_50.convertString(src.getNameElement())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/CoverageEligibilityRequest43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/CoverageEligibilityRequest43_50.java index adb4cb81c..2661feee0 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/CoverageEligibilityRequest43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/CoverageEligibilityRequest43_50.java @@ -1,5 +1,7 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; @@ -12,8 +14,6 @@ import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_ import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; import org.hl7.fhir.exceptions.FHIRException; -import java.util.stream.Collectors; - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Device43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Device43_50.java index fd8708fe5..32a1bfa72 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Device43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Device43_50.java @@ -1,7 +1,11 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Annotation43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.ContactPoint43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Quantity43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Base64Binary43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; @@ -53,8 +57,8 @@ public class Device43_50 { tgt.addUdiCarrier(convertDeviceUdiCarrierComponent(t)); if (src.hasStatus()) tgt.setStatusElement(convertFHIRDeviceStatus(src.getStatusElement())); - for (org.hl7.fhir.r4b.model.CodeableConcept t : src.getStatusReason()) - tgt.addStatusReason(CodeableConcept43_50.convertCodeableConcept(t)); +// for (org.hl7.fhir.r4b.model.CodeableConcept t : src.getStatusReason()) +// tgt.addStatusReason(CodeableConcept43_50.convertCodeableConcept(t)); if (src.hasDistinctIdentifier()) tgt.getBiologicalSourceEvent().setValueElement(String43_50.convertString(src.getDistinctIdentifierElement())); if (src.hasManufacturer()) @@ -82,7 +86,7 @@ public class Device43_50 { for (org.hl7.fhir.r4b.model.Device.DevicePropertyComponent t : src.getProperty()) tgt.addProperty(convertDevicePropertyComponent(t)); if (src.hasPatient()) - tgt.setSubject(Reference43_50.convertReference(src.getPatient())); + tgt.getAssociationFirstRep().setHumanSubject(Reference43_50.convertReference(src.getPatient())); if (src.hasOwner()) tgt.setOwner(Reference43_50.convertReference(src.getOwner())); for (org.hl7.fhir.r4b.model.ContactPoint t : src.getContact()) @@ -112,8 +116,8 @@ public class Device43_50 { tgt.addUdiCarrier(convertDeviceUdiCarrierComponent(t)); if (src.hasStatus()) tgt.setStatusElement(convertFHIRDeviceStatus(src.getStatusElement())); - for (org.hl7.fhir.r5.model.CodeableConcept t : src.getStatusReason()) - tgt.addStatusReason(CodeableConcept43_50.convertCodeableConcept(t)); +// for (org.hl7.fhir.r5.model.CodeableConcept t : src.getStatusReason()) +// tgt.addStatusReason(CodeableConcept43_50.convertCodeableConcept(t)); if (src.hasBiologicalSourceEvent()) tgt.setDistinctIdentifierElement(String43_50.convertString(src.getBiologicalSourceEvent().getValueElement())); if (src.hasManufacturer()) @@ -140,8 +144,8 @@ public class Device43_50 { tgt.addVersion(convertDeviceVersionComponent(t)); for (org.hl7.fhir.r5.model.Device.DevicePropertyComponent t : src.getProperty()) tgt.addProperty(convertDevicePropertyComponent(t)); - if (src.hasSubject()) - tgt.setPatient(Reference43_50.convertReference(src.getSubject())); + if (src.getAssociationFirstRep().hasHumanSubject()) + tgt.setPatient(Reference43_50.convertReference(src.getAssociationFirstRep().getHumanSubject())); if (src.hasOwner()) tgt.setOwner(Reference43_50.convertReference(src.getOwner())); for (org.hl7.fhir.r5.model.ContactPoint t : src.getContact()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/DeviceDefinition43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/DeviceDefinition43_50.java index 9a4089742..e205718d3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/DeviceDefinition43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/DeviceDefinition43_50.java @@ -1,7 +1,11 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Annotation43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.ContactPoint43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Quantity43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/DocumentReference43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/DocumentReference43_50.java index 381d6df5c..8f1ba520e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/DocumentReference43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/DocumentReference43_50.java @@ -1,7 +1,10 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Attachment43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Period43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Instant43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.MarkDown43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Encounter43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Encounter43_50.java index efab202b3..6add01984 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Encounter43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Encounter43_50.java @@ -1,7 +1,11 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Coding43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Duration43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Period43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.PositiveInt43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Endpoint43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Endpoint43_50.java index eb2e04efe..e5dc7f51d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Endpoint43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Endpoint43_50.java @@ -1,7 +1,11 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Coding43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.ContactPoint43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Period43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Code43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Url43_50; @@ -49,7 +53,7 @@ public class Endpoint43_50 { if (src.hasStatus()) tgt.setStatusElement(convertEndpointStatus(src.getStatusElement())); if (src.hasConnectionType()) - tgt.addConnectionType(Coding43_50.convertCoding(src.getConnectionType())); + tgt.addConnectionType(Coding43_50.convertCodingToCodeableConcept(src.getConnectionType())); if (src.hasName()) tgt.setNameElement(String43_50.convertString(src.getNameElement())); if (src.hasManagingOrganization()) @@ -118,9 +122,6 @@ public class Endpoint43_50 { case ENTEREDINERROR: tgt.setValue(org.hl7.fhir.r5.model.Endpoint.EndpointStatus.ENTEREDINERROR); break; - case TEST: - tgt.setValue(org.hl7.fhir.r5.model.Endpoint.EndpointStatus.TEST); - break; default: tgt.setValue(org.hl7.fhir.r5.model.Endpoint.EndpointStatus.NULL); break; @@ -149,9 +150,6 @@ public class Endpoint43_50 { case ENTEREDINERROR: tgt.setValue(org.hl7.fhir.r4b.model.Endpoint.EndpointStatus.ENTEREDINERROR); break; - case TEST: - tgt.setValue(org.hl7.fhir.r4b.model.Endpoint.EndpointStatus.TEST); - break; default: tgt.setValue(org.hl7.fhir.r4b.model.Endpoint.EndpointStatus.NULL); break; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Enumerations43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Enumerations43_50.java index dc56badc5..148f3ee18 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Enumerations43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Enumerations43_50.java @@ -227,12 +227,6 @@ public class Enumerations43_50 { case _4_1_0: tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FHIRVersion._4_1_0); break; - case _4_3_0CIBUILD: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FHIRVersion._4_3_0CIBUILD); - break; - case _4_3_0SNAPSHOT1: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FHIRVersion._4_3_0SNAPSHOT1); - break; case _4_3_0: tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FHIRVersion._4_3_0); break; @@ -321,12 +315,6 @@ public class Enumerations43_50 { case _4_1_0: tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.FHIRVersion._4_1_0); break; - case _4_3_0CIBUILD: - tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.FHIRVersion._4_3_0CIBUILD); - break; - case _4_3_0SNAPSHOT1: - tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.FHIRVersion._4_3_0SNAPSHOT1); - break; case _4_3_0: tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.FHIRVersion._4_3_0); break; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/EpisodeOfCare43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/EpisodeOfCare43_50.java index b36e9c5ec..6f9ba59a0 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/EpisodeOfCare43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/EpisodeOfCare43_50.java @@ -64,7 +64,7 @@ public class EpisodeOfCare43_50 { tgt.addReferralRequest(Reference43_50.convertReference(t)); if (src.hasCareManager()) tgt.setCareManager(Reference43_50.convertReference(src.getCareManager())); - for (org.hl7.fhir.r4b.model.Reference t : src.getTeam()) tgt.addTeam(Reference43_50.convertReference(t)); + for (org.hl7.fhir.r4b.model.Reference t : src.getTeam()) tgt.addCareTeam(Reference43_50.convertReference(t)); for (org.hl7.fhir.r4b.model.Reference t : src.getAccount()) tgt.addAccount(Reference43_50.convertReference(t)); return tgt; } @@ -94,7 +94,7 @@ public class EpisodeOfCare43_50 { tgt.addReferralRequest(Reference43_50.convertReference(t)); if (src.hasCareManager()) tgt.setCareManager(Reference43_50.convertReference(src.getCareManager())); - for (org.hl7.fhir.r5.model.Reference t : src.getTeam()) tgt.addTeam(Reference43_50.convertReference(t)); + for (org.hl7.fhir.r5.model.Reference t : src.getCareTeam()) tgt.addTeam(Reference43_50.convertReference(t)); for (org.hl7.fhir.r5.model.Reference t : src.getAccount()) tgt.addAccount(Reference43_50.convertReference(t)); return tgt; } @@ -197,7 +197,7 @@ public class EpisodeOfCare43_50 { org.hl7.fhir.r5.model.EpisodeOfCare.DiagnosisComponent tgt = new org.hl7.fhir.r5.model.EpisodeOfCare.DiagnosisComponent(); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); if (src.hasCondition()) - tgt.setCondition(Reference43_50.convertReference(src.getCondition())); + tgt.setCondition(Reference43_50.convertReferenceToCodeableReference(src.getCondition())); if (src.hasRole()) tgt.setRole(CodeableConcept43_50.convertCodeableConcept(src.getRole())); if (src.hasRank()) @@ -211,7 +211,7 @@ public class EpisodeOfCare43_50 { org.hl7.fhir.r4b.model.EpisodeOfCare.DiagnosisComponent tgt = new org.hl7.fhir.r4b.model.EpisodeOfCare.DiagnosisComponent(); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); if (src.hasCondition()) - tgt.setCondition(Reference43_50.convertReference(src.getCondition())); + tgt.setCondition(Reference43_50.convertCodeableReferenceToReference(src.getCondition())); if (src.hasRole()) tgt.setRole(CodeableConcept43_50.convertCodeableConcept(src.getRole())); if (src.hasRank()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/EventDefinition43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/EventDefinition43_50.java index f874dc45e..60dd4ba8d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/EventDefinition43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/EventDefinition43_50.java @@ -8,7 +8,12 @@ import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.ContactDet import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.RelatedArtifact43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.TriggerDefinition43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.UsageContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Date43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.MarkDown43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; import org.hl7.fhir.exceptions.FHIRException; /* diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ExampleScenario43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ExampleScenario43_50.java index aae4cef62..3c4e7ed86 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ExampleScenario43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ExampleScenario43_50.java @@ -5,7 +5,11 @@ import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableCon import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.ContactDetail43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.UsageContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.MarkDown43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; import org.hl7.fhir.exceptions.FHIRException; /* @@ -76,8 +80,8 @@ public class ExampleScenario43_50 { tgt.addInstance(convertExampleScenarioInstanceComponent(t)); for (org.hl7.fhir.r4b.model.ExampleScenario.ExampleScenarioProcessComponent t : src.getProcess()) tgt.addProcess(convertExampleScenarioProcessComponent(t)); - for (org.hl7.fhir.r4b.model.CanonicalType t : src.getWorkflow()) - tgt.getWorkflow().add(Canonical43_50.convertCanonical(t)); +// for (org.hl7.fhir.r4b.model.CanonicalType t : src.getWorkflow()) +// tgt.getWorkflow().add(Canonical43_50.convertCanonical(t)); return tgt; } @@ -118,8 +122,8 @@ public class ExampleScenario43_50 { tgt.addInstance(convertExampleScenarioInstanceComponent(t)); for (org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioProcessComponent t : src.getProcess()) tgt.addProcess(convertExampleScenarioProcessComponent(t)); - for (org.hl7.fhir.r5.model.CanonicalType t : src.getWorkflow()) - tgt.getWorkflow().add(Canonical43_50.convertCanonical(t)); +// for (org.hl7.fhir.r5.model.CanonicalType t : src.getWorkflow()) +// tgt.getWorkflow().add(Canonical43_50.convertCanonical(t)); return tgt; } @@ -129,11 +133,11 @@ public class ExampleScenario43_50 { org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioActorComponent tgt = new org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioActorComponent(); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); if (src.hasActorId()) - tgt.setActorIdElement(String43_50.convertString(src.getActorIdElement())); + tgt.setKeyElement(String43_50.convertString(src.getActorIdElement())); if (src.hasType()) tgt.setTypeElement(convertExampleScenarioActorType(src.getTypeElement())); if (src.hasName()) - tgt.setNameElement(String43_50.convertString(src.getNameElement())); + tgt.setTitleElement(String43_50.convertString(src.getNameElement())); if (src.hasDescription()) tgt.setDescriptionElement(MarkDown43_50.convertMarkdown(src.getDescriptionElement())); return tgt; @@ -144,37 +148,37 @@ public class ExampleScenario43_50 { return null; org.hl7.fhir.r4b.model.ExampleScenario.ExampleScenarioActorComponent tgt = new org.hl7.fhir.r4b.model.ExampleScenario.ExampleScenarioActorComponent(); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); - if (src.hasActorId()) - tgt.setActorIdElement(String43_50.convertString(src.getActorIdElement())); + if (src.hasKey()) + tgt.setActorIdElement(String43_50.convertString(src.getKeyElement())); if (src.hasType()) tgt.setTypeElement(convertExampleScenarioActorType(src.getTypeElement())); - if (src.hasName()) - tgt.setNameElement(String43_50.convertString(src.getNameElement())); + if (src.hasTitle()) + tgt.setNameElement(String43_50.convertString(src.getTitleElement())); if (src.hasDescription()) tgt.setDescriptionElement(MarkDown43_50.convertMarkdown(src.getDescriptionElement())); return tgt; } - static public org.hl7.fhir.r5.model.Enumeration convertExampleScenarioActorType(org.hl7.fhir.r4b.model.Enumeration src) throws FHIRException { + static public org.hl7.fhir.r5.model.Enumeration convertExampleScenarioActorType(org.hl7.fhir.r4b.model.Enumeration src) throws FHIRException { if (src == null || src.isEmpty()) return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioActorTypeEnumFactory()); + org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.ExampleScenarioActorTypeEnumFactory()); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyElement(src, tgt); switch (src.getValue()) { case PERSON: - tgt.setValue(org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioActorType.PERSON); + tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ExampleScenarioActorType.PERSON); break; case ENTITY: - tgt.setValue(org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioActorType.ENTITY); + tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ExampleScenarioActorType.SYSTEM); break; default: - tgt.setValue(org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioActorType.NULL); + tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ExampleScenarioActorType.NULL); break; } return tgt; } - static public org.hl7.fhir.r4b.model.Enumeration convertExampleScenarioActorType(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { + static public org.hl7.fhir.r4b.model.Enumeration convertExampleScenarioActorType(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4b.model.Enumeration tgt = new org.hl7.fhir.r4b.model.Enumeration<>(new org.hl7.fhir.r4b.model.ExampleScenario.ExampleScenarioActorTypeEnumFactory()); @@ -183,7 +187,7 @@ public class ExampleScenario43_50 { case PERSON: tgt.setValue(org.hl7.fhir.r4b.model.ExampleScenario.ExampleScenarioActorType.PERSON); break; - case ENTITY: + case SYSTEM: tgt.setValue(org.hl7.fhir.r4b.model.ExampleScenario.ExampleScenarioActorType.ENTITY); break; default: @@ -199,11 +203,11 @@ public class ExampleScenario43_50 { org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioInstanceComponent tgt = new org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioInstanceComponent(); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); if (src.hasResourceId()) - tgt.setResourceIdElement(String43_50.convertString(src.getResourceIdElement())); + tgt.setKeyElement(String43_50.convertString(src.getResourceIdElement())); if (src.hasResourceType()) - tgt.setTypeElement(Code43_50.convertCode(src.getResourceTypeElement())); + tgt.getStructureType().setCode(src.getResourceType()); if (src.hasName()) - tgt.setNameElement(String43_50.convertString(src.getNameElement())); + tgt.setTitleElement(String43_50.convertString(src.getNameElement())); if (src.hasDescription()) tgt.setDescriptionElement(MarkDown43_50.convertMarkdown(src.getDescriptionElement())); for (org.hl7.fhir.r4b.model.ExampleScenario.ExampleScenarioInstanceVersionComponent t : src.getVersion()) @@ -218,12 +222,12 @@ public class ExampleScenario43_50 { return null; org.hl7.fhir.r4b.model.ExampleScenario.ExampleScenarioInstanceComponent tgt = new org.hl7.fhir.r4b.model.ExampleScenario.ExampleScenarioInstanceComponent(); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); - if (src.hasResourceId()) - tgt.setResourceIdElement(String43_50.convertString(src.getResourceIdElement())); + if (src.hasKey()) + tgt.setResourceIdElement(String43_50.convertString(src.getKeyElement())); if (src.hasType()) - tgt.setResourceTypeElement(Code43_50.convertCode(src.getTypeElement())); - if (src.hasName()) - tgt.setNameElement(String43_50.convertString(src.getNameElement())); + tgt.setResourceType(src.getStructureType().getCode()); + if (src.hasTitle()) + tgt.setNameElement(String43_50.convertString(src.getTitleElement())); if (src.hasDescription()) tgt.setDescriptionElement(MarkDown43_50.convertMarkdown(src.getDescriptionElement())); for (org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioInstanceVersionComponent t : src.getVersion()) @@ -240,7 +244,7 @@ public class ExampleScenario43_50 { org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioInstanceVersionComponent tgt = new org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioInstanceVersionComponent(); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); if (src.hasVersionId()) - tgt.setVersionIdElement(String43_50.convertString(src.getVersionIdElement())); + tgt.setKeyElement(String43_50.convertString(src.getVersionIdElement())); if (src.hasDescription()) tgt.setDescriptionElement(MarkDown43_50.convertMarkdown(src.getDescriptionElement())); return tgt; @@ -251,8 +255,8 @@ public class ExampleScenario43_50 { return null; org.hl7.fhir.r4b.model.ExampleScenario.ExampleScenarioInstanceVersionComponent tgt = new org.hl7.fhir.r4b.model.ExampleScenario.ExampleScenarioInstanceVersionComponent(); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); - if (src.hasVersionId()) - tgt.setVersionIdElement(String43_50.convertString(src.getVersionIdElement())); + if (src.hasKey()) + tgt.setVersionIdElement(String43_50.convertString(src.getKeyElement())); if (src.hasDescription()) tgt.setDescriptionElement(MarkDown43_50.convertMarkdown(src.getDescriptionElement())); return tgt; @@ -264,9 +268,9 @@ public class ExampleScenario43_50 { org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioInstanceContainedInstanceComponent tgt = new org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioInstanceContainedInstanceComponent(); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); if (src.hasResourceId()) - tgt.setResourceIdElement(String43_50.convertString(src.getResourceIdElement())); + tgt.setInstanceReferenceElement(String43_50.convertString(src.getResourceIdElement())); if (src.hasVersionId()) - tgt.setVersionIdElement(String43_50.convertString(src.getVersionIdElement())); + tgt.setVersionReferenceElement(String43_50.convertString(src.getVersionIdElement())); return tgt; } @@ -275,10 +279,10 @@ public class ExampleScenario43_50 { return null; org.hl7.fhir.r4b.model.ExampleScenario.ExampleScenarioInstanceContainedInstanceComponent tgt = new org.hl7.fhir.r4b.model.ExampleScenario.ExampleScenarioInstanceContainedInstanceComponent(); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); - if (src.hasResourceId()) - tgt.setResourceIdElement(String43_50.convertString(src.getResourceIdElement())); - if (src.hasVersionId()) - tgt.setVersionIdElement(String43_50.convertString(src.getVersionIdElement())); + if (src.hasInstanceReference()) + tgt.setResourceIdElement(String43_50.convertString(src.getInstanceReferenceElement())); + if (src.hasVersionReference()) + tgt.setVersionIdElement(String43_50.convertString(src.getVersionReferenceElement())); return tgt; } @@ -324,7 +328,7 @@ public class ExampleScenario43_50 { org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioProcessStepComponent tgt = new org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioProcessStepComponent(); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4b.model.ExampleScenario.ExampleScenarioProcessComponent t : src.getProcess()) - tgt.addProcess(convertExampleScenarioProcessComponent(t)); + tgt.setProcess(convertExampleScenarioProcessComponent(t)); if (src.hasPause()) tgt.setPauseElement(Boolean43_50.convertBoolean(src.getPauseElement())); if (src.hasOperation()) @@ -339,8 +343,7 @@ public class ExampleScenario43_50 { return null; org.hl7.fhir.r4b.model.ExampleScenario.ExampleScenarioProcessStepComponent tgt = new org.hl7.fhir.r4b.model.ExampleScenario.ExampleScenarioProcessStepComponent(); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); - for (org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioProcessComponent t : src.getProcess()) - tgt.addProcess(convertExampleScenarioProcessComponent(t)); + tgt.addProcess(convertExampleScenarioProcessComponent(src.getProcess())); if (src.hasPause()) tgt.setPauseElement(Boolean43_50.convertBoolean(src.getPauseElement())); if (src.hasOperation()) @@ -356,11 +359,11 @@ public class ExampleScenario43_50 { org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioProcessStepOperationComponent tgt = new org.hl7.fhir.r5.model.ExampleScenario.ExampleScenarioProcessStepOperationComponent(); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); if (src.hasNumber()) - tgt.setNumberElement(String43_50.convertString(src.getNumberElement())); - if (src.hasType()) - tgt.setTypeElement(String43_50.convertString(src.getTypeElement())); +// tgt.setNumberElement(String43_50.convertString(src.getNumberElement())); +// if (src.hasType()) + tgt.getType().setCode(src.getType()); if (src.hasName()) - tgt.setNameElement(String43_50.convertString(src.getNameElement())); + tgt.setTitleElement(String43_50.convertString(src.getNameElement())); if (src.hasInitiator()) tgt.setInitiatorElement(String43_50.convertString(src.getInitiatorElement())); if (src.hasReceiver()) @@ -383,12 +386,12 @@ public class ExampleScenario43_50 { return null; org.hl7.fhir.r4b.model.ExampleScenario.ExampleScenarioProcessStepOperationComponent tgt = new org.hl7.fhir.r4b.model.ExampleScenario.ExampleScenarioProcessStepOperationComponent(); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); - if (src.hasNumber()) - tgt.setNumberElement(String43_50.convertString(src.getNumberElement())); +// if (src.hasNumber()) +// tgt.setNumberElement(String43_50.convertString(src.getNumberElement())); if (src.hasType()) - tgt.setTypeElement(String43_50.convertString(src.getTypeElement())); - if (src.hasName()) - tgt.setNameElement(String43_50.convertString(src.getNameElement())); + tgt.setType(src.getType().getCode()); + if (src.hasTitle()) + tgt.setNameElement(String43_50.convertString(src.getTitleElement())); if (src.hasInitiator()) tgt.setInitiatorElement(String43_50.convertString(src.getInitiatorElement())); if (src.hasReceiver()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ExplanationOfBenefit43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ExplanationOfBenefit43_50.java index 127e8119b..1d7db11e1 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ExplanationOfBenefit43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ExplanationOfBenefit43_50.java @@ -1,8 +1,19 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.*; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Attachment43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Coding43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Money43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Period43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.SimpleQuantity43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Date43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Decimal43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.PositiveInt43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; import org.hl7.fhir.exceptions.FHIRException; @@ -435,7 +446,7 @@ public class ExplanationOfBenefit43_50 { if (src.hasRole()) tgt.setRole(CodeableConcept43_50.convertCodeableConcept(src.getRole())); if (src.hasQualification()) - tgt.setQualification(CodeableConcept43_50.convertCodeableConcept(src.getQualification())); + tgt.setSpecialty(CodeableConcept43_50.convertCodeableConcept(src.getQualification())); return tgt; } @@ -452,8 +463,8 @@ public class ExplanationOfBenefit43_50 { tgt.setResponsibleElement(Boolean43_50.convertBoolean(src.getResponsibleElement())); if (src.hasRole()) tgt.setRole(CodeableConcept43_50.convertCodeableConcept(src.getRole())); - if (src.hasQualification()) - tgt.setQualification(CodeableConcept43_50.convertCodeableConcept(src.getQualification())); + if (src.hasSpecialty()) + tgt.setQualification(CodeableConcept43_50.convertCodeableConcept(src.getSpecialty())); return tgt; } @@ -510,8 +521,8 @@ public class ExplanationOfBenefit43_50 { tgt.addType(CodeableConcept43_50.convertCodeableConcept(t)); if (src.hasOnAdmission()) tgt.setOnAdmission(CodeableConcept43_50.convertCodeableConcept(src.getOnAdmission())); - if (src.hasPackageCode()) - tgt.setPackageCode(CodeableConcept43_50.convertCodeableConcept(src.getPackageCode())); +// if (src.hasPackageCode()) +// tgt.setPackageCode(CodeableConcept43_50.convertCodeableConcept(src.getPackageCode())); return tgt; } @@ -528,8 +539,8 @@ public class ExplanationOfBenefit43_50 { tgt.addType(CodeableConcept43_50.convertCodeableConcept(t)); if (src.hasOnAdmission()) tgt.setOnAdmission(CodeableConcept43_50.convertCodeableConcept(src.getOnAdmission())); - if (src.hasPackageCode()) - tgt.setPackageCode(CodeableConcept43_50.convertCodeableConcept(src.getPackageCode())); +// if (src.hasPackageCode()) +// tgt.setPackageCode(CodeableConcept43_50.convertCodeableConcept(src.getPackageCode())); return tgt; } @@ -662,9 +673,9 @@ public class ExplanationOfBenefit43_50 { tgt.setNet(Money43_50.convertMoney(src.getNet())); for (org.hl7.fhir.r4b.model.Reference t : src.getUdi()) tgt.addUdi(Reference43_50.convertReference(t)); if (src.hasBodySite()) - tgt.setBodySite(CodeableConcept43_50.convertCodeableConcept(src.getBodySite())); + tgt.getBodySiteFirstRep().addSite(CodeableConcept43_50.convertCodeableConceptToCodeableReference(src.getBodySite())); for (org.hl7.fhir.r4b.model.CodeableConcept t : src.getSubSite()) - tgt.addSubSite(CodeableConcept43_50.convertCodeableConcept(t)); + tgt.getBodySiteFirstRep().addSubSite(CodeableConcept43_50.convertCodeableConcept(t)); for (org.hl7.fhir.r4b.model.Reference t : src.getEncounter()) tgt.addEncounter(Reference43_50.convertReference(t)); for (org.hl7.fhir.r4b.model.PositiveIntType t : src.getNoteNumber()) tgt.getNoteNumber().add(PositiveInt43_50.convertPositiveInt(t)); @@ -713,9 +724,9 @@ public class ExplanationOfBenefit43_50 { if (src.hasNet()) tgt.setNet(Money43_50.convertMoney(src.getNet())); for (org.hl7.fhir.r5.model.Reference t : src.getUdi()) tgt.addUdi(Reference43_50.convertReference(t)); - if (src.hasBodySite()) - tgt.setBodySite(CodeableConcept43_50.convertCodeableConcept(src.getBodySite())); - for (org.hl7.fhir.r5.model.CodeableConcept t : src.getSubSite()) + if (src.getBodySiteFirstRep().hasSite()) + tgt.setBodySite(CodeableConcept43_50.convertCodeableReferenceToCodeableConcept(src.getBodySiteFirstRep().getSiteFirstRep())); + for (org.hl7.fhir.r5.model.CodeableConcept t : src.getBodySiteFirstRep().getSubSite()) tgt.addSubSite(CodeableConcept43_50.convertCodeableConcept(t)); for (org.hl7.fhir.r5.model.Reference t : src.getEncounter()) tgt.addEncounter(Reference43_50.convertReference(t)); for (org.hl7.fhir.r5.model.PositiveIntType t : src.getNoteNumber()) @@ -926,9 +937,9 @@ public class ExplanationOfBenefit43_50 { if (src.hasNet()) tgt.setNet(Money43_50.convertMoney(src.getNet())); if (src.hasBodySite()) - tgt.setBodySite(CodeableConcept43_50.convertCodeableConcept(src.getBodySite())); + tgt.getBodySiteFirstRep().addSite(CodeableConcept43_50.convertCodeableConceptToCodeableReference(src.getBodySite())); for (org.hl7.fhir.r4b.model.CodeableConcept t : src.getSubSite()) - tgt.addSubSite(CodeableConcept43_50.convertCodeableConcept(t)); + tgt.getBodySiteFirstRep().addSubSite(CodeableConcept43_50.convertCodeableConcept(t)); for (org.hl7.fhir.r4b.model.PositiveIntType t : src.getNoteNumber()) tgt.getNoteNumber().add(PositiveInt43_50.convertPositiveInt(t)); for (org.hl7.fhir.r4b.model.ExplanationOfBenefit.AdjudicationComponent t : src.getAdjudication()) @@ -969,8 +980,8 @@ public class ExplanationOfBenefit43_50 { if (src.hasNet()) tgt.setNet(Money43_50.convertMoney(src.getNet())); if (src.hasBodySite()) - tgt.setBodySite(CodeableConcept43_50.convertCodeableConcept(src.getBodySite())); - for (org.hl7.fhir.r5.model.CodeableConcept t : src.getSubSite()) + tgt.setBodySite(CodeableConcept43_50.convertCodeableReferenceToCodeableConcept(src.getBodySiteFirstRep().getSiteFirstRep())); + for (org.hl7.fhir.r5.model.CodeableConcept t : src.getBodySiteFirstRep().getSubSite()) tgt.addSubSite(CodeableConcept43_50.convertCodeableConcept(t)); for (org.hl7.fhir.r5.model.PositiveIntType t : src.getNoteNumber()) tgt.getNoteNumber().add(PositiveInt43_50.convertPositiveInt(t)); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/FamilyMemberHistory43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/FamilyMemberHistory43_50.java index df5d187a0..7cbf49e20 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/FamilyMemberHistory43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/FamilyMemberHistory43_50.java @@ -4,7 +4,11 @@ import org.hl7.fhir.convertors.context.ConversionContext43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Annotation43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Canonical43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeableReference; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/GraphDefinition43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/GraphDefinition43_50.java index 448b42805..3898c77fd 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/GraphDefinition43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/GraphDefinition43_50.java @@ -4,7 +4,14 @@ import org.hl7.fhir.convertors.context.ConversionContext43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.ContactDetail43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.UsageContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Canonical43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Code43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Integer43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.MarkDown43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; import org.hl7.fhir.exceptions.FHIRException; /* diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/HealthcareService43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/HealthcareService43_50.java index de0f04428..142126b0f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/HealthcareService43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/HealthcareService43_50.java @@ -1,17 +1,17 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Attachment43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.ContactPoint43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.MarkDown43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Time43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.ExtendedContactDetail; -import java.util.stream.Collectors; - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Immunization43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Immunization43_50.java index 9b6bc03a2..b7a745a4b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Immunization43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Immunization43_50.java @@ -5,7 +5,10 @@ import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Annotation4 import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.SimpleQuantity43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Date43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeableReference; @@ -69,7 +72,7 @@ public class Immunization43_50 { if (src.hasLocation()) tgt.setLocation(Reference43_50.convertReference(src.getLocation())); if (src.hasManufacturer()) - tgt.setManufacturer(Reference43_50.convertReference(src.getManufacturer())); + tgt.setManufacturer(Reference43_50.convertReferenceToCodeableReference(src.getManufacturer())); if (src.hasLotNumber()) tgt.setLotNumberElement(String43_50.convertString(src.getLotNumberElement())); if (src.hasExpirationDate()) @@ -91,10 +94,10 @@ public class Immunization43_50 { tgt.setIsSubpotentElement(Boolean43_50.convertBoolean(src.getIsSubpotentElement())); for (org.hl7.fhir.r4b.model.CodeableConcept t : src.getSubpotentReason()) tgt.addSubpotentReason(CodeableConcept43_50.convertCodeableConcept(t)); - for (org.hl7.fhir.r4b.model.Immunization.ImmunizationEducationComponent t : src.getEducation()) - tgt.addEducation(convertImmunizationEducationComponent(t)); - for (org.hl7.fhir.r4b.model.CodeableConcept t : src.getProgramEligibility()) - tgt.addProgramEligibility(CodeableConcept43_50.convertCodeableConcept(t)); +// for (org.hl7.fhir.r4b.model.Immunization.ImmunizationEducationComponent t : src.getEducation()) +// tgt.addEducation(convertImmunizationEducationComponent(t)); +// for (org.hl7.fhir.r4b.model.CodeableConcept t : src.getProgramEligibility()) +// tgt.addProgramEligibility(CodeableConcept43_50.convertCodeableConcept(t)); if (src.hasFundingSource()) tgt.setFundingSource(CodeableConcept43_50.convertCodeableConcept(src.getFundingSource())); for (org.hl7.fhir.r4b.model.Immunization.ImmunizationReactionComponent t : src.getReaction()) @@ -132,7 +135,7 @@ public class Immunization43_50 { if (src.hasLocation()) tgt.setLocation(Reference43_50.convertReference(src.getLocation())); if (src.hasManufacturer()) - tgt.setManufacturer(Reference43_50.convertReference(src.getManufacturer())); + tgt.setManufacturer(Reference43_50.convertCodeableReferenceToReference(src.getManufacturer())); if (src.hasLotNumber()) tgt.setLotNumberElement(String43_50.convertString(src.getLotNumberElement())); if (src.hasExpirationDate()) @@ -156,10 +159,10 @@ public class Immunization43_50 { tgt.setIsSubpotentElement(Boolean43_50.convertBoolean(src.getIsSubpotentElement())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getSubpotentReason()) tgt.addSubpotentReason(CodeableConcept43_50.convertCodeableConcept(t)); - for (org.hl7.fhir.r5.model.Immunization.ImmunizationEducationComponent t : src.getEducation()) - tgt.addEducation(convertImmunizationEducationComponent(t)); - for (org.hl7.fhir.r5.model.CodeableConcept t : src.getProgramEligibility()) - tgt.addProgramEligibility(CodeableConcept43_50.convertCodeableConcept(t)); +// for (org.hl7.fhir.r5.model.Immunization.ImmunizationEducationComponent t : src.getEducation()) +// tgt.addEducation(convertImmunizationEducationComponent(t)); +// for (org.hl7.fhir.r5.model.CodeableConcept t : src.getProgramEligibility()) +// tgt.addProgramEligibility(CodeableConcept43_50.convertCodeableConcept(t)); if (src.hasFundingSource()) tgt.setFundingSource(CodeableConcept43_50.convertCodeableConcept(src.getFundingSource())); for (org.hl7.fhir.r5.model.Immunization.ImmunizationReactionComponent t : src.getReaction()) @@ -237,37 +240,37 @@ public class Immunization43_50 { return tgt; } - public static org.hl7.fhir.r5.model.Immunization.ImmunizationEducationComponent convertImmunizationEducationComponent(org.hl7.fhir.r4b.model.Immunization.ImmunizationEducationComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.Immunization.ImmunizationEducationComponent tgt = new org.hl7.fhir.r5.model.Immunization.ImmunizationEducationComponent(); - ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); - if (src.hasDocumentType()) - tgt.setDocumentTypeElement(String43_50.convertString(src.getDocumentTypeElement())); - if (src.hasReference()) - tgt.setReferenceElement(Uri43_50.convertUri(src.getReferenceElement())); - if (src.hasPublicationDate()) - tgt.setPublicationDateElement(DateTime43_50.convertDateTime(src.getPublicationDateElement())); - if (src.hasPresentationDate()) - tgt.setPresentationDateElement(DateTime43_50.convertDateTime(src.getPresentationDateElement())); - return tgt; - } - - public static org.hl7.fhir.r4b.model.Immunization.ImmunizationEducationComponent convertImmunizationEducationComponent(org.hl7.fhir.r5.model.Immunization.ImmunizationEducationComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r4b.model.Immunization.ImmunizationEducationComponent tgt = new org.hl7.fhir.r4b.model.Immunization.ImmunizationEducationComponent(); - ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); - if (src.hasDocumentType()) - tgt.setDocumentTypeElement(String43_50.convertString(src.getDocumentTypeElement())); - if (src.hasReference()) - tgt.setReferenceElement(Uri43_50.convertUri(src.getReferenceElement())); - if (src.hasPublicationDate()) - tgt.setPublicationDateElement(DateTime43_50.convertDateTime(src.getPublicationDateElement())); - if (src.hasPresentationDate()) - tgt.setPresentationDateElement(DateTime43_50.convertDateTime(src.getPresentationDateElement())); - return tgt; - } +// public static org.hl7.fhir.r5.model.Immunization.ImmunizationEducationComponent convertImmunizationEducationComponent(org.hl7.fhir.r4b.model.Immunization.ImmunizationEducationComponent src) throws FHIRException { +// if (src == null) +// return null; +// org.hl7.fhir.r5.model.Immunization.ImmunizationEducationComponent tgt = new org.hl7.fhir.r5.model.Immunization.ImmunizationEducationComponent(); +// ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); +// if (src.hasDocumentType()) +// tgt.setDocumentTypeElement(String43_50.convertString(src.getDocumentTypeElement())); +// if (src.hasReference()) +// tgt.setReferenceElement(Uri43_50.convertUri(src.getReferenceElement())); +// if (src.hasPublicationDate()) +// tgt.setPublicationDateElement(DateTime43_50.convertDateTime(src.getPublicationDateElement())); +// if (src.hasPresentationDate()) +// tgt.setPresentationDateElement(DateTime43_50.convertDateTime(src.getPresentationDateElement())); +// return tgt; +// } +// +// public static org.hl7.fhir.r4b.model.Immunization.ImmunizationEducationComponent convertImmunizationEducationComponent(org.hl7.fhir.r5.model.Immunization.ImmunizationEducationComponent src) throws FHIRException { +// if (src == null) +// return null; +// org.hl7.fhir.r4b.model.Immunization.ImmunizationEducationComponent tgt = new org.hl7.fhir.r4b.model.Immunization.ImmunizationEducationComponent(); +// ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); +// if (src.hasDocumentType()) +// tgt.setDocumentTypeElement(String43_50.convertString(src.getDocumentTypeElement())); +// if (src.hasReference()) +// tgt.setReferenceElement(Uri43_50.convertUri(src.getReferenceElement())); +// if (src.hasPublicationDate()) +// tgt.setPublicationDateElement(DateTime43_50.convertDateTime(src.getPublicationDateElement())); +// if (src.hasPresentationDate()) +// tgt.setPresentationDateElement(DateTime43_50.convertDateTime(src.getPresentationDateElement())); +// return tgt; +// } public static org.hl7.fhir.r5.model.Immunization.ImmunizationReactionComponent convertImmunizationReactionComponent(org.hl7.fhir.r4b.model.Immunization.ImmunizationReactionComponent src) throws FHIRException { if (src == null) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ImplementationGuide43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ImplementationGuide43_50.java index 0db9e3d9c..9ead6b044 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ImplementationGuide43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ImplementationGuide43_50.java @@ -1,18 +1,24 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Boolean40_50; -import org.hl7.fhir.convertors.conv40_50.datatypes40_50.primitive40_50.Canonical40_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.ContactDetail43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.UsageContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Canonical43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Code43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Id43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.MarkDown43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Url43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.utilities.Utilities; -import java.util.stream.Collectors; - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -2280,7 +2286,7 @@ public class ImplementationGuide43_50 { org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.r5.model.ImplementationGuide.ImplementationGuideGlobalComponent(); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); if (src.hasType()) - tgt.setTypeElement(Code43_50.convertResourceEnum(src.getTypeElement())); + tgt.setTypeElement(Code43_50.convertCode(src.getTypeElement())); if (src.hasProfile()) tgt.setProfileElement(Canonical43_50.convertCanonical(src.getProfileElement())); return tgt; @@ -2292,7 +2298,7 @@ public class ImplementationGuide43_50 { org.hl7.fhir.r4b.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.r4b.model.ImplementationGuide.ImplementationGuideGlobalComponent(); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); if (src.hasType()) - tgt.setTypeElement(Code43_50.convertResourceEnum(src.getTypeElement())); + tgt.setTypeElement(Code43_50.convertCode(src.getTypeElement())); if (src.hasProfile()) tgt.setProfileElement(Canonical43_50.convertCanonical(src.getProfileElement())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/InsurancePlan43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/InsurancePlan43_50.java index a08fd0a23..43ac1890c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/InsurancePlan43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/InsurancePlan43_50.java @@ -1,7 +1,14 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Address43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.ContactPoint43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.HumanName43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Money43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Period43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Quantity43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.PositiveInt43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; @@ -113,7 +120,7 @@ public class InsurancePlan43_50 { if (src.hasPurpose()) tgt.setPurpose(CodeableConcept43_50.convertCodeableConcept(src.getPurpose())); if (src.hasName()) - tgt.setName(HumanName43_50.convertHumanName(src.getName())); + tgt.addName(HumanName43_50.convertHumanName(src.getName())); for (org.hl7.fhir.r4b.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(ContactPoint43_50.convertContactPoint(t)); if (src.hasAddress()) @@ -129,7 +136,7 @@ public class InsurancePlan43_50 { if (src.hasPurpose()) tgt.setPurpose(CodeableConcept43_50.convertCodeableConcept(src.getPurpose())); if (src.hasName()) - tgt.setName(HumanName43_50.convertHumanName(src.getName())); + tgt.setName(HumanName43_50.convertHumanName(src.getNameFirstRep())); for (org.hl7.fhir.r5.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(ContactPoint43_50.convertContactPoint(t)); if (src.hasAddress()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Invoice43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Invoice43_50.java index 7e695eb25..740c312c1 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Invoice43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Invoice43_50.java @@ -5,7 +5,10 @@ import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Annotation4 import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Money43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.MarkDown43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.PositiveInt43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; import org.hl7.fhir.exceptions.FHIRException; @@ -67,8 +70,8 @@ public class Invoice43_50 { tgt.setAccount(Reference43_50.convertReference(src.getAccount())); for (org.hl7.fhir.r4b.model.Invoice.InvoiceLineItemComponent t : src.getLineItem()) tgt.addLineItem(convertInvoiceLineItemComponent(t)); - for (org.hl7.fhir.r4b.model.Invoice.InvoiceLineItemPriceComponentComponent t : src.getTotalPriceComponent()) - tgt.addTotalPriceComponent(convertInvoiceLineItemPriceComponentComponent(t)); +// for (org.hl7.fhir.r4b.model.Invoice.InvoiceLineItemPriceComponentComponent t : src.getTotalPriceComponent()) +// tgt.addTotalPriceComponent(convertInvoiceLineItemPriceComponentComponent(t)); if (src.hasTotalNet()) tgt.setTotalNet(Money43_50.convertMoney(src.getTotalNet())); if (src.hasTotalGross()) @@ -106,8 +109,8 @@ public class Invoice43_50 { tgt.setAccount(Reference43_50.convertReference(src.getAccount())); for (org.hl7.fhir.r5.model.Invoice.InvoiceLineItemComponent t : src.getLineItem()) tgt.addLineItem(convertInvoiceLineItemComponent(t)); - for (org.hl7.fhir.r5.model.Invoice.InvoiceLineItemPriceComponentComponent t : src.getTotalPriceComponent()) - tgt.addTotalPriceComponent(convertInvoiceLineItemPriceComponentComponent(t)); +// for (org.hl7.fhir.r5.model.Invoice.InvoiceLineItemPriceComponentComponent t : src.getTotalPriceComponent()) +// tgt.addTotalPriceComponent(convertInvoiceLineItemPriceComponentComponent(t)); if (src.hasTotalNet()) tgt.setTotalNet(Money43_50.convertMoney(src.getTotalNet())); if (src.hasTotalGross()) @@ -207,8 +210,8 @@ public class Invoice43_50 { tgt.setSequenceElement(PositiveInt43_50.convertPositiveInt(src.getSequenceElement())); if (src.hasChargeItem()) tgt.setChargeItem(ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().convertType(src.getChargeItem())); - for (org.hl7.fhir.r4b.model.Invoice.InvoiceLineItemPriceComponentComponent t : src.getPriceComponent()) - tgt.addPriceComponent(convertInvoiceLineItemPriceComponentComponent(t)); +// for (org.hl7.fhir.r4b.model.Invoice.InvoiceLineItemPriceComponentComponent t : src.getPriceComponent()) +// tgt.addPriceComponent(convertInvoiceLineItemPriceComponentComponent(t)); return tgt; } @@ -221,102 +224,102 @@ public class Invoice43_50 { tgt.setSequenceElement(PositiveInt43_50.convertPositiveInt(src.getSequenceElement())); if (src.hasChargeItem()) tgt.setChargeItem(ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().convertType(src.getChargeItem())); - for (org.hl7.fhir.r5.model.Invoice.InvoiceLineItemPriceComponentComponent t : src.getPriceComponent()) - tgt.addPriceComponent(convertInvoiceLineItemPriceComponentComponent(t)); +// for (org.hl7.fhir.r5.model.Invoice.InvoiceLineItemPriceComponentComponent t : src.getPriceComponent()) +// tgt.addPriceComponent(convertInvoiceLineItemPriceComponentComponent(t)); return tgt; } - public static org.hl7.fhir.r5.model.Invoice.InvoiceLineItemPriceComponentComponent convertInvoiceLineItemPriceComponentComponent(org.hl7.fhir.r4b.model.Invoice.InvoiceLineItemPriceComponentComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.Invoice.InvoiceLineItemPriceComponentComponent tgt = new org.hl7.fhir.r5.model.Invoice.InvoiceLineItemPriceComponentComponent(); - ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); - if (src.hasType()) - tgt.setTypeElement(convertInvoicePriceComponentType(src.getTypeElement())); - if (src.hasCode()) - tgt.setCode(CodeableConcept43_50.convertCodeableConcept(src.getCode())); - if (src.hasFactor()) - tgt.setFactorElement(Decimal43_50.convertDecimal(src.getFactorElement())); - if (src.hasAmount()) - tgt.setAmount(Money43_50.convertMoney(src.getAmount())); - return tgt; - } +// public static org.hl7.fhir.r5.model.Invoice.InvoiceLineItemPriceComponentComponent convertInvoiceLineItemPriceComponentComponent(org.hl7.fhir.r4b.model.Invoice.InvoiceLineItemPriceComponentComponent src) throws FHIRException { +// if (src == null) +// return null; +// org.hl7.fhir.r5.model.Invoice.InvoiceLineItemPriceComponentComponent tgt = new org.hl7.fhir.r5.model.Invoice.InvoiceLineItemPriceComponentComponent(); +// ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); +// if (src.hasType()) +// tgt.setTypeElement(convertInvoicePriceComponentType(src.getTypeElement())); +// if (src.hasCode()) +// tgt.setCode(CodeableConcept43_50.convertCodeableConcept(src.getCode())); +// if (src.hasFactor()) +// tgt.setFactorElement(Decimal43_50.convertDecimal(src.getFactorElement())); +// if (src.hasAmount()) +// tgt.setAmount(Money43_50.convertMoney(src.getAmount())); +// return tgt; +// } - public static org.hl7.fhir.r4b.model.Invoice.InvoiceLineItemPriceComponentComponent convertInvoiceLineItemPriceComponentComponent(org.hl7.fhir.r5.model.Invoice.InvoiceLineItemPriceComponentComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r4b.model.Invoice.InvoiceLineItemPriceComponentComponent tgt = new org.hl7.fhir.r4b.model.Invoice.InvoiceLineItemPriceComponentComponent(); - ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); - if (src.hasType()) - tgt.setTypeElement(convertInvoicePriceComponentType(src.getTypeElement())); - if (src.hasCode()) - tgt.setCode(CodeableConcept43_50.convertCodeableConcept(src.getCode())); - if (src.hasFactor()) - tgt.setFactorElement(Decimal43_50.convertDecimal(src.getFactorElement())); - if (src.hasAmount()) - tgt.setAmount(Money43_50.convertMoney(src.getAmount())); - return tgt; - } +// public static org.hl7.fhir.r4b.model.Invoice.InvoiceLineItemPriceComponentComponent convertInvoiceLineItemPriceComponentComponent(org.hl7.fhir.r5.model.Invoice.InvoiceLineItemPriceComponentComponent src) throws FHIRException { +// if (src == null) +// return null; +// org.hl7.fhir.r4b.model.Invoice.InvoiceLineItemPriceComponentComponent tgt = new org.hl7.fhir.r4b.model.Invoice.InvoiceLineItemPriceComponentComponent(); +// ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); +// if (src.hasType()) +// tgt.setTypeElement(convertInvoicePriceComponentType(src.getTypeElement())); +// if (src.hasCode()) +// tgt.setCode(CodeableConcept43_50.convertCodeableConcept(src.getCode())); +// if (src.hasFactor()) +// tgt.setFactorElement(Decimal43_50.convertDecimal(src.getFactorElement())); +// if (src.hasAmount()) +// tgt.setAmount(Money43_50.convertMoney(src.getAmount())); +// return tgt; +// } - static public org.hl7.fhir.r5.model.Enumeration convertInvoicePriceComponentType(org.hl7.fhir.r4b.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentTypeEnumFactory()); - ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyElement(src, tgt); - switch (src.getValue()) { - case BASE: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.BASE); - break; - case SURCHARGE: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.SURCHARGE); - break; - case DEDUCTION: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.DEDUCTION); - break; - case DISCOUNT: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.DISCOUNT); - break; - case TAX: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.TAX); - break; - case INFORMATIONAL: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.INFORMATIONAL); - break; - default: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r4b.model.Enumeration convertInvoicePriceComponentType(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r4b.model.Enumeration tgt = new org.hl7.fhir.r4b.model.Enumeration<>(new org.hl7.fhir.r4b.model.Enumerations.InvoicePriceComponentTypeEnumFactory()); - ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyElement(src, tgt); - switch (src.getValue()) { - case BASE: - tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.InvoicePriceComponentType.BASE); - break; - case SURCHARGE: - tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.InvoicePriceComponentType.SURCHARGE); - break; - case DEDUCTION: - tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.InvoicePriceComponentType.DEDUCTION); - break; - case DISCOUNT: - tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.InvoicePriceComponentType.DISCOUNT); - break; - case TAX: - tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.InvoicePriceComponentType.TAX); - break; - case INFORMATIONAL: - tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.InvoicePriceComponentType.INFORMATIONAL); - break; - default: - tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.InvoicePriceComponentType.NULL); - break; - } - return tgt; - } +// static public org.hl7.fhir.r5.model.Enumeration convertInvoicePriceComponentType(org.hl7.fhir.r4b.model.Enumeration src) throws FHIRException { +// if (src == null || src.isEmpty()) +// return null; +// org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentTypeEnumFactory()); +// ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyElement(src, tgt); +// switch (src.getValue()) { +// case BASE: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.BASE); +// break; +// case SURCHARGE: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.SURCHARGE); +// break; +// case DEDUCTION: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.DEDUCTION); +// break; +// case DISCOUNT: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.DISCOUNT); +// break; +// case TAX: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.TAX); +// break; +// case INFORMATIONAL: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.INFORMATIONAL); +// break; +// default: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.InvoicePriceComponentType.NULL); +// break; +// } +// return tgt; +// } +// +// static public org.hl7.fhir.r4b.model.Enumeration convertInvoicePriceComponentType(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { +// if (src == null || src.isEmpty()) +// return null; +// org.hl7.fhir.r4b.model.Enumeration tgt = new org.hl7.fhir.r4b.model.Enumeration<>(new org.hl7.fhir.r4b.model.Enumerations.InvoicePriceComponentTypeEnumFactory()); +// ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyElement(src, tgt); +// switch (src.getValue()) { +// case BASE: +// tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.InvoicePriceComponentType.BASE); +// break; +// case SURCHARGE: +// tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.InvoicePriceComponentType.SURCHARGE); +// break; +// case DEDUCTION: +// tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.InvoicePriceComponentType.DEDUCTION); +// break; +// case DISCOUNT: +// tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.InvoicePriceComponentType.DISCOUNT); +// break; +// case TAX: +// tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.InvoicePriceComponentType.TAX); +// break; +// case INFORMATIONAL: +// tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.InvoicePriceComponentType.INFORMATIONAL); +// break; +// default: +// tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.InvoicePriceComponentType.NULL); +// break; +// } +// return tgt; +// } } \ No newline at end of file diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Library43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Library43_50.java index 4c22e3039..52d84854e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Library43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Library43_50.java @@ -5,8 +5,17 @@ import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Attachment4 import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Period43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.*; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.ContactDetail43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.DataRequirement43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.ParameterDefinition43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.RelatedArtifact43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.UsageContext43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Date43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.MarkDown43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; import org.hl7.fhir.exceptions.FHIRException; /* diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Location43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Location43_50.java index ce1991392..23278bb41 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Location43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Location43_50.java @@ -1,18 +1,18 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.*; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Address43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Coding43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.ContactPoint43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Decimal43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Time43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.ContactPoint; import org.hl7.fhir.r5.model.ExtendedContactDetail; -import java.util.stream.Collectors; - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Measure43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Measure43_50.java index eaaf556a4..efa911a71 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Measure43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Measure43_50.java @@ -8,8 +8,15 @@ import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.ContactDet import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.Expression43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.RelatedArtifact43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.UsageContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Canonical43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Date43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.MarkDown43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.r5.model.Measure.MeasureTermComponent; /* Copyright (c) 2011+, HL7, Inc. @@ -122,7 +129,7 @@ public class Measure43_50 { if (src.hasImprovementNotation()) tgt.setImprovementNotation(CodeableConcept43_50.convertCodeableConcept(src.getImprovementNotation())); for (org.hl7.fhir.r4b.model.MarkdownType t : src.getDefinition()) - tgt.getDefinition().add(MarkDown43_50.convertMarkdown(t)); + tgt.addTerm().setDefinitionElement(MarkDown43_50.convertMarkdown(t)); if (src.hasGuidance()) tgt.setGuidanceElement(MarkDown43_50.convertMarkdown(src.getGuidanceElement())); for (org.hl7.fhir.r4b.model.Measure.MeasureGroupComponent t : src.getGroup()) @@ -211,8 +218,8 @@ public class Measure43_50 { tgt.setClinicalRecommendationStatementElement(MarkDown43_50.convertMarkdown(src.getClinicalRecommendationStatementElement())); if (src.hasImprovementNotation()) tgt.setImprovementNotation(CodeableConcept43_50.convertCodeableConcept(src.getImprovementNotation())); - for (org.hl7.fhir.r5.model.MarkdownType t : src.getDefinition()) - tgt.getDefinition().add(MarkDown43_50.convertMarkdown(t)); + for (MeasureTermComponent t : src.getTerm()) + tgt.getDefinition().add(MarkDown43_50.convertMarkdown(t.getDefinitionElement())); if (src.hasGuidance()) tgt.setGuidanceElement(MarkDown43_50.convertMarkdown(src.getGuidanceElement())); for (org.hl7.fhir.r5.model.Measure.MeasureGroupComponent t : src.getGroup()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/MeasureReport43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/MeasureReport43_50.java index 8c3ac5800..1f1866f7a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/MeasureReport43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/MeasureReport43_50.java @@ -162,7 +162,7 @@ public class MeasureReport43_50 { tgt.setValue(org.hl7.fhir.r5.model.MeasureReport.MeasureReportType.SUMMARY); break; case DATACOLLECTION: - tgt.setValue(org.hl7.fhir.r5.model.MeasureReport.MeasureReportType.DATACOLLECTION); + tgt.setValue(org.hl7.fhir.r5.model.MeasureReport.MeasureReportType.DATAEXCHANGE); break; default: tgt.setValue(org.hl7.fhir.r5.model.MeasureReport.MeasureReportType.NULL); @@ -186,7 +186,7 @@ public class MeasureReport43_50 { case SUMMARY: tgt.setValue(org.hl7.fhir.r4b.model.MeasureReport.MeasureReportType.SUMMARY); break; - case DATACOLLECTION: + case DATAEXCHANGE: tgt.setValue(org.hl7.fhir.r4b.model.MeasureReport.MeasureReportType.DATACOLLECTION); break; default: @@ -262,7 +262,7 @@ public class MeasureReport43_50 { org.hl7.fhir.r5.model.MeasureReport.MeasureReportGroupStratifierComponent tgt = new org.hl7.fhir.r5.model.MeasureReport.MeasureReportGroupStratifierComponent(); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4b.model.CodeableConcept t : src.getCode()) - tgt.addCode(CodeableConcept43_50.convertCodeableConcept(t)); + tgt.setCode(CodeableConcept43_50.convertCodeableConcept(t)); for (org.hl7.fhir.r4b.model.MeasureReport.StratifierGroupComponent t : src.getStratum()) tgt.addStratum(convertStratifierGroupComponent(t)); return tgt; @@ -273,8 +273,7 @@ public class MeasureReport43_50 { return null; org.hl7.fhir.r4b.model.MeasureReport.MeasureReportGroupStratifierComponent tgt = new org.hl7.fhir.r4b.model.MeasureReport.MeasureReportGroupStratifierComponent(); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); - for (org.hl7.fhir.r5.model.CodeableConcept t : src.getCode()) - tgt.addCode(CodeableConcept43_50.convertCodeableConcept(t)); + tgt.addCode(CodeableConcept43_50.convertCodeableConcept(src.getCode())); for (org.hl7.fhir.r5.model.MeasureReport.StratifierGroupComponent t : src.getStratum()) tgt.addStratum(convertStratifierGroupComponent(t)); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/MedicationAdministration43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/MedicationAdministration43_50.java index aa5952dd0..41ae656b3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/MedicationAdministration43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/MedicationAdministration43_50.java @@ -6,7 +6,6 @@ import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableCon import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.SimpleQuantity43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeableReference; @@ -49,7 +48,7 @@ public class MedicationAdministration43_50 { ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyDomainResource(src, tgt); for (org.hl7.fhir.r4b.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(Identifier43_50.convertIdentifier(t)); - for (org.hl7.fhir.r4b.model.UriType t : src.getInstantiates()) tgt.getInstantiatesUri().add(Uri43_50.convertUri(t)); +// for (org.hl7.fhir.r4b.model.UriType t : src.getInstantiates()) tgt.getInstantiatesUri().add(Uri43_50.convertUri(t)); for (org.hl7.fhir.r4b.model.Reference t : src.getPartOf()) tgt.addPartOf(Reference43_50.convertReference(t)); if (src.hasStatus()) tgt.setStatusElement(convertMedicationAdministrationStatus(src.getStatusElement())); @@ -93,7 +92,7 @@ public class MedicationAdministration43_50 { ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyDomainResource(src, tgt); for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(Identifier43_50.convertIdentifier(t)); - for (org.hl7.fhir.r5.model.UriType t : src.getInstantiatesUri()) tgt.getInstantiates().add(Uri43_50.convertUri(t)); +// for (org.hl7.fhir.r5.model.UriType t : src.getInstantiatesUri()) tgt.getInstantiates().add(Uri43_50.convertUri(t)); for (org.hl7.fhir.r5.model.Reference t : src.getPartOf()) tgt.addPartOf(Reference43_50.convertReference(t)); if (src.hasStatus()) tgt.setStatusElement(convertMedicationAdministrationStatus(src.getStatusElement())); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/MedicationKnowledge43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/MedicationKnowledge43_50.java index f68f54bfd..67541b5eb 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/MedicationKnowledge43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/MedicationKnowledge43_50.java @@ -1,14 +1,15 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Duration43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Money43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.SimpleQuantity43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.MarkDown43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; import org.hl7.fhir.exceptions.FHIRException; -import org.hl7.fhir.r5.model.CodeableConcept; -import org.hl7.fhir.r5.model.Coding; import org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgePackagingComponent; import org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgeStatusCodesEnumFactory; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/MedicationRequest43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/MedicationRequest43_50.java index 7047dcc5b..0bf468df3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/MedicationRequest43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/MedicationRequest43_50.java @@ -1,8 +1,15 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.*; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Annotation43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Duration43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Period43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.SimpleQuantity43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.UnsignedInt43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Dosage43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; import org.hl7.fhir.exceptions.FHIRException; @@ -85,10 +92,10 @@ public class MedicationRequest43_50 { tgt.addReason().setConcept(CodeableConcept43_50.convertCodeableConcept(t)); for (org.hl7.fhir.r4b.model.Reference t : src.getReasonReference()) tgt.addReason().setReference(Reference43_50.convertReference(t)); - for (org.hl7.fhir.r4b.model.CanonicalType t : src.getInstantiatesCanonical()) - tgt.getInstantiatesCanonical().add(Canonical43_50.convertCanonical(t)); - for (org.hl7.fhir.r4b.model.UriType t : src.getInstantiatesUri()) - tgt.getInstantiatesUri().add(Uri43_50.convertUri(t)); +// for (org.hl7.fhir.r4b.model.CanonicalType t : src.getInstantiatesCanonical()) +// tgt.getInstantiatesCanonical().add(Canonical43_50.convertCanonical(t)); +// for (org.hl7.fhir.r4b.model.UriType t : src.getInstantiatesUri()) +// tgt.getInstantiatesUri().add(Uri43_50.convertUri(t)); for (org.hl7.fhir.r4b.model.Reference t : src.getBasedOn()) tgt.addBasedOn(Reference43_50.convertReference(t)); if (src.hasGroupIdentifier()) tgt.setGroupIdentifier(Identifier43_50.convertIdentifier(src.getGroupIdentifier())); @@ -160,10 +167,10 @@ public class MedicationRequest43_50 { if (t.hasReference()) tgt.addReasonReference(Reference43_50.convertReference(t.getReference())); } - for (org.hl7.fhir.r5.model.CanonicalType t : src.getInstantiatesCanonical()) - tgt.getInstantiatesCanonical().add(Canonical43_50.convertCanonical(t)); - for (org.hl7.fhir.r5.model.UriType t : src.getInstantiatesUri()) - tgt.getInstantiatesUri().add(Uri43_50.convertUri(t)); +// for (org.hl7.fhir.r5.model.CanonicalType t : src.getInstantiatesCanonical()) +// tgt.getInstantiatesCanonical().add(Canonical43_50.convertCanonical(t)); +// for (org.hl7.fhir.r5.model.UriType t : src.getInstantiatesUri()) +// tgt.getInstantiatesUri().add(Uri43_50.convertUri(t)); for (org.hl7.fhir.r5.model.Reference t : src.getBasedOn()) tgt.addBasedOn(Reference43_50.convertReference(t)); if (src.hasGroupIdentifier()) tgt.setGroupIdentifier(Identifier43_50.convertIdentifier(src.getGroupIdentifier())); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/MessageDefinition43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/MessageDefinition43_50.java index f3be9c2eb..3f1e3d5f1 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/MessageDefinition43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/MessageDefinition43_50.java @@ -5,7 +5,14 @@ import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableCon import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.ContactDetail43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.UsageContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Canonical43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Code43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.MarkDown43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.UnsignedInt43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; import org.hl7.fhir.exceptions.FHIRException; /* @@ -250,7 +257,7 @@ public class MessageDefinition43_50 { org.hl7.fhir.r5.model.MessageDefinition.MessageDefinitionFocusComponent tgt = new org.hl7.fhir.r5.model.MessageDefinition.MessageDefinitionFocusComponent(); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); if (src.hasCode()) - tgt.setCodeElement(Code43_50.convertResourceEnum(src.getCodeElement())); + tgt.setCodeElement(Code43_50.convertCode(src.getCodeElement())); if (src.hasProfile()) tgt.setProfileElement(Canonical43_50.convertCanonical(src.getProfileElement())); if (src.hasMin()) @@ -266,7 +273,7 @@ public class MessageDefinition43_50 { org.hl7.fhir.r4b.model.MessageDefinition.MessageDefinitionFocusComponent tgt = new org.hl7.fhir.r4b.model.MessageDefinition.MessageDefinitionFocusComponent(); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); if (src.hasCode()) - tgt.setCodeElement(Code43_50.convertResourceEnum(src.getCodeElement())); + tgt.setCodeElement(Code43_50.convertCode(src.getCodeElement())); if (src.hasProfile()) tgt.setProfileElement(Canonical43_50.convertCanonical(src.getProfileElement())); if (src.hasMin()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/MessageHeader43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/MessageHeader43_50.java index a91585b3d..602a4977d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/MessageHeader43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/MessageHeader43_50.java @@ -4,7 +4,6 @@ import org.hl7.fhir.convertors.context.ConversionContext43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.ContactPoint43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Canonical43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Id43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Url43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/NutritionOrder43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/NutritionOrder43_50.java index f5f13f63f..981f0067a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/NutritionOrder43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/NutritionOrder43_50.java @@ -1,7 +1,11 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Annotation43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.SimpleQuantity43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Timing43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Canonical43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; @@ -57,7 +61,7 @@ public class NutritionOrder43_50 { if (src.hasIntent()) tgt.setIntentElement(convertNutritiionOrderIntent(src.getIntentElement())); if (src.hasPatient()) - tgt.setPatient(Reference43_50.convertReference(src.getPatient())); + tgt.setSubject(Reference43_50.convertReference(src.getPatient())); if (src.hasEncounter()) tgt.setEncounter(Reference43_50.convertReference(src.getEncounter())); if (src.hasDateTime()) @@ -96,8 +100,8 @@ public class NutritionOrder43_50 { tgt.setStatusElement(convertNutritionOrderStatus(src.getStatusElement())); if (src.hasIntent()) tgt.setIntentElement(convertNutritiionOrderIntent(src.getIntentElement())); - if (src.hasPatient()) - tgt.setPatient(Reference43_50.convertReference(src.getPatient())); + if (src.hasSubject()) + tgt.setPatient(Reference43_50.convertReference(src.getSubject())); if (src.hasEncounter()) tgt.setEncounter(Reference43_50.convertReference(src.getEncounter())); if (src.hasDateTime()) @@ -275,7 +279,7 @@ public class NutritionOrder43_50 { ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r4b.model.CodeableConcept t : src.getType()) tgt.addType(CodeableConcept43_50.convertCodeableConcept(t)); - for (org.hl7.fhir.r4b.model.Timing t : src.getSchedule()) tgt.addSchedule(Timing43_50.convertTiming(t)); + for (org.hl7.fhir.r4b.model.Timing t : src.getSchedule()) tgt.getSchedule().addTiming(Timing43_50.convertTiming(t)); for (org.hl7.fhir.r4b.model.NutritionOrder.NutritionOrderOralDietNutrientComponent t : src.getNutrient()) tgt.addNutrient(convertNutritionOrderOralDietNutrientComponent(t)); for (org.hl7.fhir.r4b.model.NutritionOrder.NutritionOrderOralDietTextureComponent t : src.getTexture()) @@ -294,7 +298,7 @@ public class NutritionOrder43_50 { ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getType()) tgt.addType(CodeableConcept43_50.convertCodeableConcept(t)); - for (org.hl7.fhir.r5.model.Timing t : src.getSchedule()) tgt.addSchedule(Timing43_50.convertTiming(t)); + for (org.hl7.fhir.r5.model.Timing t : src.getSchedule().getTiming()) tgt.addSchedule(Timing43_50.convertTiming(t)); for (org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderOralDietNutrientComponent t : src.getNutrient()) tgt.addNutrient(convertNutritionOrderOralDietNutrientComponent(t)); for (org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderOralDietTextureComponent t : src.getTexture()) @@ -360,10 +364,10 @@ public class NutritionOrder43_50 { org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderSupplementComponent tgt = new org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderSupplementComponent(); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); if (src.hasType()) - tgt.setType(CodeableConcept43_50.convertCodeableConcept(src.getType())); + tgt.setType(CodeableConcept43_50.convertCodeableConceptToCodeableReference(src.getType())); if (src.hasProductName()) tgt.setProductNameElement(String43_50.convertString(src.getProductNameElement())); - for (org.hl7.fhir.r4b.model.Timing t : src.getSchedule()) tgt.addSchedule(Timing43_50.convertTiming(t)); + for (org.hl7.fhir.r4b.model.Timing t : src.getSchedule()) tgt.getSchedule().addTiming(Timing43_50.convertTiming(t)); if (src.hasQuantity()) tgt.setQuantity(SimpleQuantity43_50.convertSimpleQuantity(src.getQuantity())); if (src.hasInstruction()) @@ -377,10 +381,10 @@ public class NutritionOrder43_50 { org.hl7.fhir.r4b.model.NutritionOrder.NutritionOrderSupplementComponent tgt = new org.hl7.fhir.r4b.model.NutritionOrder.NutritionOrderSupplementComponent(); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); if (src.hasType()) - tgt.setType(CodeableConcept43_50.convertCodeableConcept(src.getType())); + tgt.setType(CodeableConcept43_50.convertCodeableReferenceToCodeableConcept(src.getType())); if (src.hasProductName()) tgt.setProductNameElement(String43_50.convertString(src.getProductNameElement())); - for (org.hl7.fhir.r5.model.Timing t : src.getSchedule()) tgt.addSchedule(Timing43_50.convertTiming(t)); + for (org.hl7.fhir.r5.model.Timing t : src.getSchedule().getTiming()) tgt.addSchedule(Timing43_50.convertTiming(t)); if (src.hasQuantity()) tgt.setQuantity(SimpleQuantity43_50.convertSimpleQuantity(src.getQuantity())); if (src.hasInstruction()) @@ -394,17 +398,17 @@ public class NutritionOrder43_50 { org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderEnteralFormulaComponent tgt = new org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderEnteralFormulaComponent(); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); if (src.hasBaseFormulaType()) - tgt.setBaseFormulaType(CodeableConcept43_50.convertCodeableConcept(src.getBaseFormulaType())); + tgt.setBaseFormulaType(CodeableConcept43_50.convertCodeableConceptToCodeableReference(src.getBaseFormulaType())); if (src.hasBaseFormulaProductName()) tgt.setBaseFormulaProductNameElement(String43_50.convertString(src.getBaseFormulaProductNameElement())); - if (src.hasAdditiveType()) - tgt.setAdditiveType(CodeableConcept43_50.convertCodeableConcept(src.getAdditiveType())); - if (src.hasAdditiveProductName()) - tgt.setAdditiveProductNameElement(String43_50.convertString(src.getAdditiveProductNameElement())); +// if (src.hasAdditiveType()) +// tgt.setAdditiveType(CodeableConcept43_50.convertCodeableConcept(src.getAdditiveType())); +// if (src.hasAdditiveProductName()) +// tgt.setAdditiveProductNameElement(String43_50.convertString(src.getAdditiveProductNameElement())); if (src.hasCaloricDensity()) tgt.setCaloricDensity(SimpleQuantity43_50.convertSimpleQuantity(src.getCaloricDensity())); if (src.hasRouteofAdministration()) - tgt.setRouteofAdministration(CodeableConcept43_50.convertCodeableConcept(src.getRouteofAdministration())); + tgt.setRouteOfAdministration(CodeableConcept43_50.convertCodeableConcept(src.getRouteofAdministration())); for (org.hl7.fhir.r4b.model.NutritionOrder.NutritionOrderEnteralFormulaAdministrationComponent t : src.getAdministration()) tgt.addAdministration(convertNutritionOrderEnteralFormulaAdministrationComponent(t)); if (src.hasMaxVolumeToDeliver()) @@ -420,17 +424,17 @@ public class NutritionOrder43_50 { org.hl7.fhir.r4b.model.NutritionOrder.NutritionOrderEnteralFormulaComponent tgt = new org.hl7.fhir.r4b.model.NutritionOrder.NutritionOrderEnteralFormulaComponent(); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); if (src.hasBaseFormulaType()) - tgt.setBaseFormulaType(CodeableConcept43_50.convertCodeableConcept(src.getBaseFormulaType())); + tgt.setBaseFormulaType(CodeableConcept43_50.convertCodeableReferenceToCodeableConcept(src.getBaseFormulaType())); if (src.hasBaseFormulaProductName()) tgt.setBaseFormulaProductNameElement(String43_50.convertString(src.getBaseFormulaProductNameElement())); - if (src.hasAdditiveType()) - tgt.setAdditiveType(CodeableConcept43_50.convertCodeableConcept(src.getAdditiveType())); - if (src.hasAdditiveProductName()) - tgt.setAdditiveProductNameElement(String43_50.convertString(src.getAdditiveProductNameElement())); +// if (src.hasAdditiveType()) +// tgt.setAdditiveType(CodeableConcept43_50.convertCodeableConcept(src.getAdditiveType())); +// if (src.hasAdditiveProductName()) +// tgt.setAdditiveProductNameElement(String43_50.convertString(src.getAdditiveProductNameElement())); if (src.hasCaloricDensity()) tgt.setCaloricDensity(SimpleQuantity43_50.convertSimpleQuantity(src.getCaloricDensity())); - if (src.hasRouteofAdministration()) - tgt.setRouteofAdministration(CodeableConcept43_50.convertCodeableConcept(src.getRouteofAdministration())); + if (src.hasRouteOfAdministration()) + tgt.setRouteofAdministration(CodeableConcept43_50.convertCodeableConcept(src.getRouteOfAdministration())); for (org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderEnteralFormulaAdministrationComponent t : src.getAdministration()) tgt.addAdministration(convertNutritionOrderEnteralFormulaAdministrationComponent(t)); if (src.hasMaxVolumeToDeliver()) @@ -446,7 +450,7 @@ public class NutritionOrder43_50 { org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderEnteralFormulaAdministrationComponent tgt = new org.hl7.fhir.r5.model.NutritionOrder.NutritionOrderEnteralFormulaAdministrationComponent(); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); if (src.hasSchedule()) - tgt.setSchedule(Timing43_50.convertTiming(src.getSchedule())); + tgt.getSchedule().addTiming(Timing43_50.convertTiming(src.getSchedule())); if (src.hasQuantity()) tgt.setQuantity(SimpleQuantity43_50.convertSimpleQuantity(src.getQuantity())); if (src.hasRate()) @@ -459,8 +463,8 @@ public class NutritionOrder43_50 { return null; org.hl7.fhir.r4b.model.NutritionOrder.NutritionOrderEnteralFormulaAdministrationComponent tgt = new org.hl7.fhir.r4b.model.NutritionOrder.NutritionOrderEnteralFormulaAdministrationComponent(); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); - if (src.hasSchedule()) - tgt.setSchedule(Timing43_50.convertTiming(src.getSchedule())); + if (src.getSchedule().hasTiming()) + tgt.setSchedule(Timing43_50.convertTiming(src.getSchedule().getTimingFirstRep())); if (src.hasQuantity()) tgt.setQuantity(SimpleQuantity43_50.convertSimpleQuantity(src.getQuantity())); if (src.hasRate()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Observation43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Observation43_50.java index 3535f3885..8a61c6a8f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Observation43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Observation43_50.java @@ -1,7 +1,11 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Annotation43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Range43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.SimpleQuantity43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Instant43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ObservationDefinition43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ObservationDefinition43_50.java index f3030b6eb..d048fe13c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ObservationDefinition43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ObservationDefinition43_50.java @@ -1,5 +1,7 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; @@ -9,8 +11,6 @@ import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Integer43 import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; import org.hl7.fhir.exceptions.FHIRException; -import java.util.stream.Collectors; - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/OperationDefinition43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/OperationDefinition43_50.java index ad68abe12..ffc2f1998 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/OperationDefinition43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/OperationDefinition43_50.java @@ -4,7 +4,14 @@ import org.hl7.fhir.convertors.context.ConversionContext43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.ContactDetail43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.UsageContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Canonical43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Code43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Integer43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.MarkDown43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeType; @@ -80,7 +87,7 @@ public class OperationDefinition43_50 { tgt.setCommentElement(MarkDown43_50.convertMarkdown(src.getCommentElement())); if (src.hasBase()) tgt.setBaseElement(Canonical43_50.convertCanonical(src.getBaseElement())); - for (org.hl7.fhir.r4b.model.CodeType t : src.getResource()) tgt.getResource().add(Code43_50.convertResourceEnum(t)); + for (org.hl7.fhir.r4b.model.CodeType t : src.getResource()) tgt.getResource().add(Code43_50.convertCode(t)); if (src.hasSystem()) tgt.setSystemElement(Boolean43_50.convertBoolean(src.getSystemElement())); if (src.hasType()) @@ -139,7 +146,7 @@ public class OperationDefinition43_50 { tgt.setCommentElement(MarkDown43_50.convertMarkdown(src.getCommentElement())); if (src.hasBase()) tgt.setBaseElement(Canonical43_50.convertCanonical(src.getBaseElement())); - for (CodeType t : src.getResource()) tgt.getResource().add(Code43_50.convertResourceEnum(t)); + for (CodeType t : src.getResource()) tgt.getResource().add(Code43_50.convertCode(t)); if (src.hasSystem()) tgt.setSystemElement(Boolean43_50.convertBoolean(src.getSystemElement())); if (src.hasType()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Organization43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Organization43_50.java index d6a4e0271..ff4692930 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Organization43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Organization43_50.java @@ -1,7 +1,11 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Address43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.ContactPoint43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.HumanName43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; @@ -53,9 +57,9 @@ public class Organization43_50 { if (src.hasName()) tgt.setNameElement(String43_50.convertString(src.getNameElement())); for (org.hl7.fhir.r4b.model.StringType t : src.getAlias()) tgt.getAlias().add(String43_50.convertString(t)); + for (org.hl7.fhir.r4b.model.Address t : src.getAddress()) tgt.addContact().setAddress(Address43_50.convertAddress(t)); for (org.hl7.fhir.r4b.model.ContactPoint t : src.getTelecom()) tgt.getContactFirstRep().addTelecom(ContactPoint43_50.convertContactPoint(t)); - for (org.hl7.fhir.r4b.model.Address t : src.getAddress()) tgt.addAddress(Address43_50.convertAddress(t)); if (src.hasPartOf()) tgt.setPartOf(Reference43_50.convertReference(src.getPartOf())); for (org.hl7.fhir.r4b.model.Organization.OrganizationContactComponent t : src.getContact()) @@ -81,7 +85,9 @@ public class Organization43_50 { for (ExtendedContactDetail t1 : src.getContact()) for (org.hl7.fhir.r5.model.ContactPoint t : t1.getTelecom()) tgt.addTelecom(ContactPoint43_50.convertContactPoint(t)); - for (org.hl7.fhir.r5.model.Address t : src.getAddress()) tgt.addAddress(Address43_50.convertAddress(t)); + for (ExtendedContactDetail t : src.getContact()) + if (t.hasAddress()) + tgt.addAddress(Address43_50.convertAddress(t.getAddress())); if (src.hasPartOf()) tgt.setPartOf(Reference43_50.convertReference(src.getPartOf())); for (org.hl7.fhir.r5.model.ExtendedContactDetail t : src.getContact()) @@ -98,7 +104,7 @@ public class Organization43_50 { if (src.hasPurpose()) tgt.setPurpose(CodeableConcept43_50.convertCodeableConcept(src.getPurpose())); if (src.hasName()) - tgt.setName(HumanName43_50.convertHumanName(src.getName())); + tgt.addName(HumanName43_50.convertHumanName(src.getName())); for (org.hl7.fhir.r4b.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(ContactPoint43_50.convertContactPoint(t)); if (src.hasAddress()) @@ -113,8 +119,8 @@ public class Organization43_50 { ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyElement(src, tgt); if (src.hasPurpose()) tgt.setPurpose(CodeableConcept43_50.convertCodeableConcept(src.getPurpose())); - if (src.hasName()) - tgt.setName(HumanName43_50.convertHumanName(src.getName())); + for (org.hl7.fhir.r5.model.HumanName t : src.getName()) + tgt.setName(HumanName43_50.convertHumanName(t)); for (org.hl7.fhir.r5.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(ContactPoint43_50.convertContactPoint(t)); if (src.hasAddress()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/OrganizationAffiliation43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/OrganizationAffiliation43_50.java index 0c0688e4e..bca40219c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/OrganizationAffiliation43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/OrganizationAffiliation43_50.java @@ -64,7 +64,7 @@ public class OrganizationAffiliation43_50 { for (org.hl7.fhir.r4b.model.Reference t : src.getHealthcareService()) tgt.addHealthcareService(Reference43_50.convertReference(t)); for (org.hl7.fhir.r4b.model.ContactPoint t : src.getTelecom()) - tgt.addTelecom(ContactPoint43_50.convertContactPoint(t)); + tgt.getContactFirstRep().addTelecom(ContactPoint43_50.convertContactPoint(t)); for (org.hl7.fhir.r4b.model.Reference t : src.getEndpoint()) tgt.addEndpoint(Reference43_50.convertReference(t)); return tgt; } @@ -92,8 +92,9 @@ public class OrganizationAffiliation43_50 { for (org.hl7.fhir.r5.model.Reference t : src.getLocation()) tgt.addLocation(Reference43_50.convertReference(t)); for (org.hl7.fhir.r5.model.Reference t : src.getHealthcareService()) tgt.addHealthcareService(Reference43_50.convertReference(t)); - for (org.hl7.fhir.r5.model.ContactPoint t : src.getTelecom()) - tgt.addTelecom(ContactPoint43_50.convertContactPoint(t)); + for (org.hl7.fhir.r5.model.ExtendedContactDetail t1 : src.getContact()) + for (org.hl7.fhir.r5.model.ContactPoint t : t1.getTelecom()) + tgt.addTelecom(ContactPoint43_50.convertContactPoint(t)); for (org.hl7.fhir.r5.model.Reference t : src.getEndpoint()) tgt.addEndpoint(Reference43_50.convertReference(t)); return tgt; } diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Patient43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Patient43_50.java index cb053bf4c..6ca2ee655 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Patient43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Patient43_50.java @@ -1,7 +1,13 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Address43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Attachment43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.ContactPoint43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.HumanName43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Period43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Date43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Person43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Person43_50.java index 1a493692b..23f4a9254 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Person43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Person43_50.java @@ -1,7 +1,11 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Address43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Attachment43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.ContactPoint43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.HumanName43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Date43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/PlanDefinition43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/PlanDefinition43_50.java index d92781c56..00cc40ce7 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/PlanDefinition43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/PlanDefinition43_50.java @@ -5,8 +5,20 @@ import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableCon import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Duration43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Period43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.*; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.ContactDetail43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.DataRequirement43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.Expression43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.RelatedArtifact43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.TriggerDefinition43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.UsageContext43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Canonical43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Date43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Id43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.MarkDown43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.DataRequirement; import org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionInputComponent; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Practitioner43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Practitioner43_50.java index 0d8bc878d..9f1e1f64d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Practitioner43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Practitioner43_50.java @@ -1,7 +1,13 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Address43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Attachment43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.ContactPoint43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.HumanName43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Period43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Date43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/PractitionerRole43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/PractitionerRole43_50.java index b60dfa52a..88907cbe2 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/PractitionerRole43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/PractitionerRole43_50.java @@ -6,13 +6,9 @@ import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.ContactPoin import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Period43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Time43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; import org.hl7.fhir.exceptions.FHIRException; -import java.util.stream.Collectors; - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -67,13 +63,13 @@ public class PractitionerRole43_50 { for (org.hl7.fhir.r4b.model.Reference t : src.getHealthcareService()) tgt.addHealthcareService(Reference43_50.convertReference(t)); for (org.hl7.fhir.r4b.model.ContactPoint t : src.getTelecom()) - tgt.addTelecom(ContactPoint43_50.convertContactPoint(t)); - for (org.hl7.fhir.r4b.model.PractitionerRole.PractitionerRoleAvailableTimeComponent t : src.getAvailableTime()) - tgt.addAvailableTime(convertPractitionerRoleAvailableTimeComponent(t)); - for (org.hl7.fhir.r4b.model.PractitionerRole.PractitionerRoleNotAvailableComponent t : src.getNotAvailable()) - tgt.addNotAvailable(convertPractitionerRoleNotAvailableComponent(t)); - if (src.hasAvailabilityExceptions()) - tgt.setAvailabilityExceptionsElement(String43_50.convertString(src.getAvailabilityExceptionsElement())); + tgt.getContactFirstRep().addTelecom(ContactPoint43_50.convertContactPoint(t)); +// for (org.hl7.fhir.r4b.model.PractitionerRole.PractitionerRoleAvailableTimeComponent t : src.getAvailableTime()) +// tgt.addAvailableTime(convertPractitionerRoleAvailableTimeComponent(t)); +// for (org.hl7.fhir.r4b.model.PractitionerRole.PractitionerRoleNotAvailableComponent t : src.getNotAvailable()) +// tgt.addNotAvailable(convertPractitionerRoleNotAvailableComponent(t)); +// if (src.hasAvailabilityExceptions()) +// tgt.setAvailabilityExceptionsElement(String43_50.convertString(src.getAvailabilityExceptionsElement())); for (org.hl7.fhir.r4b.model.Reference t : src.getEndpoint()) tgt.addEndpoint(Reference43_50.convertReference(t)); return tgt; } @@ -100,141 +96,142 @@ public class PractitionerRole43_50 { for (org.hl7.fhir.r5.model.Reference t : src.getLocation()) tgt.addLocation(Reference43_50.convertReference(t)); for (org.hl7.fhir.r5.model.Reference t : src.getHealthcareService()) tgt.addHealthcareService(Reference43_50.convertReference(t)); - for (org.hl7.fhir.r5.model.ContactPoint t : src.getTelecom()) - tgt.addTelecom(ContactPoint43_50.convertContactPoint(t)); - for (org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent t : src.getAvailableTime()) - tgt.addAvailableTime(convertPractitionerRoleAvailableTimeComponent(t)); - for (org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent t : src.getNotAvailable()) - tgt.addNotAvailable(convertPractitionerRoleNotAvailableComponent(t)); - if (src.hasAvailabilityExceptions()) - tgt.setAvailabilityExceptionsElement(String43_50.convertString(src.getAvailabilityExceptionsElement())); + for (org.hl7.fhir.r5.model.ExtendedContactDetail t1 : src.getContact()) + for (org.hl7.fhir.r5.model.ContactPoint t : t1.getTelecom()) + tgt.addTelecom(ContactPoint43_50.convertContactPoint(t)); +// for (org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent t : src.getAvailableTime()) +// tgt.addAvailableTime(convertPractitionerRoleAvailableTimeComponent(t)); +// for (org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent t : src.getNotAvailable()) +// tgt.addNotAvailable(convertPractitionerRoleNotAvailableComponent(t)); +// if (src.hasAvailabilityExceptions()) +// tgt.setAvailabilityExceptionsElement(String43_50.convertString(src.getAvailabilityExceptionsElement())); for (org.hl7.fhir.r5.model.Reference t : src.getEndpoint()) tgt.addEndpoint(Reference43_50.convertReference(t)); return tgt; } - public static org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent convertPractitionerRoleAvailableTimeComponent(org.hl7.fhir.r4b.model.PractitionerRole.PractitionerRoleAvailableTimeComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent tgt = new org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent(); - ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); - tgt.setDaysOfWeek(src.getDaysOfWeek().stream() - .map(PractitionerRole43_50::convertDaysOfWeek) - .collect(Collectors.toList())); - if (src.hasAllDay()) - tgt.setAllDayElement(Boolean43_50.convertBoolean(src.getAllDayElement())); - if (src.hasAvailableStartTime()) - tgt.setAvailableStartTimeElement(Time43_50.convertTime(src.getAvailableStartTimeElement())); - if (src.hasAvailableEndTime()) - tgt.setAvailableEndTimeElement(Time43_50.convertTime(src.getAvailableEndTimeElement())); - return tgt; - } - - public static org.hl7.fhir.r4b.model.PractitionerRole.PractitionerRoleAvailableTimeComponent convertPractitionerRoleAvailableTimeComponent(org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r4b.model.PractitionerRole.PractitionerRoleAvailableTimeComponent tgt = new org.hl7.fhir.r4b.model.PractitionerRole.PractitionerRoleAvailableTimeComponent(); - ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); - tgt.setDaysOfWeek(src.getDaysOfWeek().stream() - .map(PractitionerRole43_50::convertDaysOfWeek) - .collect(Collectors.toList())); - if (src.hasAllDay()) - tgt.setAllDayElement(Boolean43_50.convertBoolean(src.getAllDayElement())); - if (src.hasAvailableStartTime()) - tgt.setAvailableStartTimeElement(Time43_50.convertTime(src.getAvailableStartTimeElement())); - if (src.hasAvailableEndTime()) - tgt.setAvailableEndTimeElement(Time43_50.convertTime(src.getAvailableEndTimeElement())); - return tgt; - } - - static public org.hl7.fhir.r5.model.Enumeration convertDaysOfWeek(org.hl7.fhir.r4b.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.DaysOfWeekEnumFactory()); - ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyElement(src, tgt); - switch (src.getValue()) { - case MON: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.MON); - break; - case TUE: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.TUE); - break; - case WED: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.WED); - break; - case THU: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.THU); - break; - case FRI: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.FRI); - break; - case SAT: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.SAT); - break; - case SUN: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.SUN); - break; - default: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r4b.model.Enumeration convertDaysOfWeek(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r4b.model.Enumeration tgt = new org.hl7.fhir.r4b.model.Enumeration<>(new org.hl7.fhir.r4b.model.Enumerations.DaysOfWeekEnumFactory()); - ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyElement(src, tgt); - switch (src.getValue()) { - case MON: - tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.DaysOfWeek.MON); - break; - case TUE: - tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.DaysOfWeek.TUE); - break; - case WED: - tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.DaysOfWeek.WED); - break; - case THU: - tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.DaysOfWeek.THU); - break; - case FRI: - tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.DaysOfWeek.FRI); - break; - case SAT: - tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.DaysOfWeek.SAT); - break; - case SUN: - tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.DaysOfWeek.SUN); - break; - default: - tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.DaysOfWeek.NULL); - break; - } - return tgt; - } - - public static org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent convertPractitionerRoleNotAvailableComponent(org.hl7.fhir.r4b.model.PractitionerRole.PractitionerRoleNotAvailableComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent tgt = new org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent(); - ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); - if (src.hasDescription()) - tgt.setDescriptionElement(String43_50.convertString(src.getDescriptionElement())); - if (src.hasDuring()) - tgt.setDuring(Period43_50.convertPeriod(src.getDuring())); - return tgt; - } - - public static org.hl7.fhir.r4b.model.PractitionerRole.PractitionerRoleNotAvailableComponent convertPractitionerRoleNotAvailableComponent(org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r4b.model.PractitionerRole.PractitionerRoleNotAvailableComponent tgt = new org.hl7.fhir.r4b.model.PractitionerRole.PractitionerRoleNotAvailableComponent(); - ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); - if (src.hasDescription()) - tgt.setDescriptionElement(String43_50.convertString(src.getDescriptionElement())); - if (src.hasDuring()) - tgt.setDuring(Period43_50.convertPeriod(src.getDuring())); - return tgt; - } +// public static org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent convertPractitionerRoleAvailableTimeComponent(org.hl7.fhir.r4b.model.PractitionerRole.PractitionerRoleAvailableTimeComponent src) throws FHIRException { +// if (src == null) +// return null; +// org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent tgt = new org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent(); +// ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); +// tgt.setDaysOfWeek(src.getDaysOfWeek().stream() +// .map(PractitionerRole43_50::convertDaysOfWeek) +// .collect(Collectors.toList())); +// if (src.hasAllDay()) +// tgt.setAllDayElement(Boolean43_50.convertBoolean(src.getAllDayElement())); +// if (src.hasAvailableStartTime()) +// tgt.setAvailableStartTimeElement(Time43_50.convertTime(src.getAvailableStartTimeElement())); +// if (src.hasAvailableEndTime()) +// tgt.setAvailableEndTimeElement(Time43_50.convertTime(src.getAvailableEndTimeElement())); +// return tgt; +// } +// +// public static org.hl7.fhir.r4b.model.PractitionerRole.PractitionerRoleAvailableTimeComponent convertPractitionerRoleAvailableTimeComponent(org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleAvailableTimeComponent src) throws FHIRException { +// if (src == null) +// return null; +// org.hl7.fhir.r4b.model.PractitionerRole.PractitionerRoleAvailableTimeComponent tgt = new org.hl7.fhir.r4b.model.PractitionerRole.PractitionerRoleAvailableTimeComponent(); +// ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); +// tgt.setDaysOfWeek(src.getDaysOfWeek().stream() +// .map(PractitionerRole43_50::convertDaysOfWeek) +// .collect(Collectors.toList())); +// if (src.hasAllDay()) +// tgt.setAllDayElement(Boolean43_50.convertBoolean(src.getAllDayElement())); +// if (src.hasAvailableStartTime()) +// tgt.setAvailableStartTimeElement(Time43_50.convertTime(src.getAvailableStartTimeElement())); +// if (src.hasAvailableEndTime()) +// tgt.setAvailableEndTimeElement(Time43_50.convertTime(src.getAvailableEndTimeElement())); +// return tgt; +// } +// +// static public org.hl7.fhir.r5.model.Enumeration convertDaysOfWeek(org.hl7.fhir.r4b.model.Enumeration src) throws FHIRException { +// if (src == null || src.isEmpty()) +// return null; +// org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.DaysOfWeekEnumFactory()); +// ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyElement(src, tgt); +// switch (src.getValue()) { +// case MON: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.MON); +// break; +// case TUE: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.TUE); +// break; +// case WED: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.WED); +// break; +// case THU: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.THU); +// break; +// case FRI: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.FRI); +// break; +// case SAT: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.SAT); +// break; +// case SUN: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.SUN); +// break; +// default: +// tgt.setValue(org.hl7.fhir.r5.model.Enumerations.DaysOfWeek.NULL); +// break; +// } +// return tgt; +// } +// +// static public org.hl7.fhir.r4b.model.Enumeration convertDaysOfWeek(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { +// if (src == null || src.isEmpty()) +// return null; +// org.hl7.fhir.r4b.model.Enumeration tgt = new org.hl7.fhir.r4b.model.Enumeration<>(new org.hl7.fhir.r4b.model.Enumerations.DaysOfWeekEnumFactory()); +// ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyElement(src, tgt); +// switch (src.getValue()) { +// case MON: +// tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.DaysOfWeek.MON); +// break; +// case TUE: +// tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.DaysOfWeek.TUE); +// break; +// case WED: +// tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.DaysOfWeek.WED); +// break; +// case THU: +// tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.DaysOfWeek.THU); +// break; +// case FRI: +// tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.DaysOfWeek.FRI); +// break; +// case SAT: +// tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.DaysOfWeek.SAT); +// break; +// case SUN: +// tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.DaysOfWeek.SUN); +// break; +// default: +// tgt.setValue(org.hl7.fhir.r4b.model.Enumerations.DaysOfWeek.NULL); +// break; +// } +// return tgt; +// } +// +// public static org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent convertPractitionerRoleNotAvailableComponent(org.hl7.fhir.r4b.model.PractitionerRole.PractitionerRoleNotAvailableComponent src) throws FHIRException { +// if (src == null) +// return null; +// org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent tgt = new org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent(); +// ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); +// if (src.hasDescription()) +// tgt.setDescriptionElement(String43_50.convertString(src.getDescriptionElement())); +// if (src.hasDuring()) +// tgt.setDuring(Period43_50.convertPeriod(src.getDuring())); +// return tgt; +// } +// +// public static org.hl7.fhir.r4b.model.PractitionerRole.PractitionerRoleNotAvailableComponent convertPractitionerRoleNotAvailableComponent(org.hl7.fhir.r5.model.PractitionerRole.PractitionerRoleNotAvailableComponent src) throws FHIRException { +// if (src == null) +// return null; +// org.hl7.fhir.r4b.model.PractitionerRole.PractitionerRoleNotAvailableComponent tgt = new org.hl7.fhir.r4b.model.PractitionerRole.PractitionerRoleNotAvailableComponent(); +// ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); +// if (src.hasDescription()) +// tgt.setDescriptionElement(String43_50.convertString(src.getDescriptionElement())); +// if (src.hasDuring()) +// tgt.setDuring(Period43_50.convertPeriod(src.getDuring())); +// return tgt; +// } } \ No newline at end of file diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Questionnaire43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Questionnaire43_50.java index 28ba9b581..1d8669c0d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Questionnaire43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Questionnaire43_50.java @@ -8,7 +8,15 @@ import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier4 import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Period43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.ContactDetail43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.UsageContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Canonical43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Code43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Date43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Integer43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.MarkDown43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4b.model.Questionnaire.QuestionnaireItemType; import org.hl7.fhir.r5.model.CodeType; @@ -67,7 +75,7 @@ public class Questionnaire43_50 { if (src.hasExperimental()) tgt.setExperimentalElement(Boolean43_50.convertBoolean(src.getExperimentalElement())); for (org.hl7.fhir.r4b.model.CodeType t : src.getSubjectType()) - tgt.getSubjectType().add(Code43_50.convertResourceEnum(t)); + tgt.getSubjectType().add(Code43_50.convertCode(t)); if (src.hasDate()) tgt.setDateElement(DateTime43_50.convertDateTime(src.getDateElement())); if (src.hasPublisher()) @@ -117,7 +125,7 @@ public class Questionnaire43_50 { tgt.setStatusElement(Enumerations43_50.convertPublicationStatus(src.getStatusElement())); if (src.hasExperimental()) tgt.setExperimentalElement(Boolean43_50.convertBoolean(src.getExperimentalElement())); - for (CodeType t : src.getSubjectType()) tgt.getSubjectType().add(Code43_50.convertResourceEnum(t)); + for (CodeType t : src.getSubjectType()) tgt.getSubjectType().add(Code43_50.convertCode(t)); if (src.hasDate()) tgt.setDateElement(DateTime43_50.convertDateTime(src.getDateElement())); if (src.hasPublisher()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/RelatedPerson43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/RelatedPerson43_50.java index c879dea2b..b9e5e1c0e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/RelatedPerson43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/RelatedPerson43_50.java @@ -1,7 +1,13 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Address43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Attachment43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.ContactPoint43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.HumanName43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Period43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Date43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/SearchParameter43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/SearchParameter43_50.java index 33f931731..1964bd53a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/SearchParameter43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/SearchParameter43_50.java @@ -1,17 +1,20 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.ContactDetail43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.UsageContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Canonical43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Code43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.MarkDown43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeType; -import org.hl7.fhir.r5.model.Enumeration; -import org.hl7.fhir.r5.model.Enumerations; -import org.hl7.fhir.r5.model.Enumerations.AllResourceTypes; - -import java.util.stream.Collectors; /* Copyright (c) 2011+, HL7, Inc. @@ -77,7 +80,7 @@ public class SearchParameter43_50 { tgt.setPurposeElement(MarkDown43_50.convertMarkdown(src.getPurposeElement())); if (src.hasCode()) tgt.setCodeElement(Code43_50.convertCode(src.getCodeElement())); - for (org.hl7.fhir.r4b.model.CodeType t : src.getBase()) tgt.getBase().add(new Enumeration(new Enumerations.AllResourceTypesEnumFactory(), t.getCode())); + for (org.hl7.fhir.r4b.model.CodeType t : src.getBase()) tgt.getBase().add(Code43_50.convertCode(t)); if (src.hasType()) tgt.setTypeElement(Enumerations43_50.convertSearchParamType(src.getTypeElement())); if (src.hasExpression()) @@ -86,7 +89,7 @@ public class SearchParameter43_50 { // tgt.setXpathElement(String43_50.convertString(src.getXpathElement())); if (src.hasXpathUsage()) tgt.setProcessingModeElement(convertXPathUsageType(src.getXpathUsageElement())); - for (org.hl7.fhir.r4b.model.CodeType t : src.getTarget()) tgt.getTarget().add(Code43_50.convertResourceEnum(t)); + for (org.hl7.fhir.r4b.model.CodeType t : src.getTarget()) tgt.getTarget().add(Code43_50.convertCode(t)); if (src.hasMultipleOr()) tgt.setMultipleOrElement(Boolean43_50.convertBoolean(src.getMultipleOrElement())); if (src.hasMultipleAnd()) @@ -136,7 +139,7 @@ public class SearchParameter43_50 { tgt.setPurposeElement(MarkDown43_50.convertMarkdown(src.getPurposeElement())); if (src.hasCode()) tgt.setCodeElement(Code43_50.convertCode(src.getCodeElement())); - for (Enumeration t : src.getBase()) tgt.getBase().add(new org.hl7.fhir.r4b.model.CodeType(t.getCode())); + for (CodeType t : src.getBase()) tgt.getBase().add(Code43_50.convertCode(t)); if (src.hasType()) tgt.setTypeElement(Enumerations43_50.convertSearchParamType(src.getTypeElement())); if (src.hasExpression()) @@ -145,7 +148,7 @@ public class SearchParameter43_50 { // tgt.setXpathElement(String43_50.convertString(src.getXpathElement())); if (src.hasProcessingMode()) tgt.setXpathUsageElement(convertXPathUsageType(src.getProcessingModeElement())); - for (CodeType t : src.getTarget()) tgt.getTarget().add(Code43_50.convertResourceEnum(t)); + for (CodeType t : src.getTarget()) tgt.getTarget().add(Code43_50.convertCode(t)); if (src.hasMultipleOr()) tgt.setMultipleOrElement(Boolean43_50.convertBoolean(src.getMultipleOrElement())); if (src.hasMultipleAnd()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ServiceRequest43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ServiceRequest43_50.java index a28f1ca27..166c25a7b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ServiceRequest43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ServiceRequest43_50.java @@ -4,7 +4,11 @@ import org.hl7.fhir.convertors.context.ConversionContext43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Annotation43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Canonical43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeableReference; @@ -66,7 +70,7 @@ public class ServiceRequest43_50 { if (src.hasDoNotPerform()) tgt.setDoNotPerformElement(Boolean43_50.convertBoolean(src.getDoNotPerformElement())); if (src.hasCode()) - tgt.setCode(CodeableConcept43_50.convertCodeableConcept(src.getCode())); + tgt.setCode(CodeableConcept43_50.convertCodeableConceptToCodeableReference(src.getCode())); for (org.hl7.fhir.r4b.model.CodeableConcept t : src.getOrderDetail()) tgt.addOrderDetail(CodeableConcept43_50.convertCodeableConcept(t)); if (src.hasQuantity()) @@ -134,7 +138,7 @@ public class ServiceRequest43_50 { if (src.hasDoNotPerform()) tgt.setDoNotPerformElement(Boolean43_50.convertBoolean(src.getDoNotPerformElement())); if (src.hasCode()) - tgt.setCode(CodeableConcept43_50.convertCodeableConcept(src.getCode())); + tgt.setCode(CodeableConcept43_50.convertCodeableReferenceToCodeableConcept(src.getCode())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getOrderDetail()) tgt.addOrderDetail(CodeableConcept43_50.convertCodeableConcept(t)); if (src.hasQuantity()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Specimen43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Specimen43_50.java index 877a99d98..b4680e188 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Specimen43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Specimen43_50.java @@ -1,7 +1,11 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Annotation43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Duration43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.SimpleQuantity43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/SpecimenDefinition43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/SpecimenDefinition43_50.java index 239642dcd..5c426e4b4 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/SpecimenDefinition43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/SpecimenDefinition43_50.java @@ -1,7 +1,11 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Duration43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Range43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.SimpleQuantity43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; import org.hl7.fhir.exceptions.FHIRException; @@ -43,7 +47,7 @@ public class SpecimenDefinition43_50 { org.hl7.fhir.r5.model.SpecimenDefinition tgt = new org.hl7.fhir.r5.model.SpecimenDefinition(); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyDomainResource(src, tgt); if (src.hasIdentifier()) - tgt.setIdentifier(Identifier43_50.convertIdentifier(src.getIdentifier())); + tgt.addIdentifier(Identifier43_50.convertIdentifier(src.getIdentifier())); if (src.hasTypeCollected()) tgt.setTypeCollected(CodeableConcept43_50.convertCodeableConcept(src.getTypeCollected())); for (org.hl7.fhir.r4b.model.CodeableConcept t : src.getPatientPreparation()) @@ -63,7 +67,7 @@ public class SpecimenDefinition43_50 { org.hl7.fhir.r4b.model.SpecimenDefinition tgt = new org.hl7.fhir.r4b.model.SpecimenDefinition(); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyDomainResource(src, tgt); if (src.hasIdentifier()) - tgt.setIdentifier(Identifier43_50.convertIdentifier(src.getIdentifier())); + tgt.setIdentifier(Identifier43_50.convertIdentifier(src.getIdentifierFirstRep())); if (src.hasTypeCollected()) tgt.setTypeCollected(CodeableConcept43_50.convertCodeableConcept(src.getTypeCollected())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getPatientPreparation()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/StructureDefinition43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/StructureDefinition43_50.java index 3b74f1910..dcc08ea49 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/StructureDefinition43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/StructureDefinition43_50.java @@ -6,7 +6,13 @@ import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Coding43_50 import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.ContactDetail43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.UsageContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Canonical43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Id43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.MarkDown43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.ElementDefinition43_50; import org.hl7.fhir.exceptions.FHIRException; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/StructureMap43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/StructureMap43_50.java index f36315861..4104faa2f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/StructureMap43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/StructureMap43_50.java @@ -1,21 +1,33 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; +import java.util.stream.Collectors; + import org.hl7.fhir.convertors.context.ConversionContext43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.ContactDetail43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.UsageContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Canonical43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Id43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Integer43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.MarkDown43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4b.model.StructureMap.StructureMapGroupTypeMode; import org.hl7.fhir.r4b.utils.ToolingExtensions; -import org.hl7.fhir.r5.model.*; +import org.hl7.fhir.r5.model.BooleanType; +import org.hl7.fhir.r5.model.DataType; +import org.hl7.fhir.r5.model.DecimalType; +import org.hl7.fhir.r5.model.IdType; +import org.hl7.fhir.r5.model.IntegerType; +import org.hl7.fhir.r5.model.StringType; import org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleTargetParameterComponent; import org.hl7.fhir.r5.utils.FHIRPathConstant; import org.hl7.fhir.utilities.Utilities; -import java.util.stream.Collectors; - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/SupplyDelivery43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/SupplyDelivery43_50.java index 7532be742..f9bdb64c6 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/SupplyDelivery43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/SupplyDelivery43_50.java @@ -54,7 +54,7 @@ public class SupplyDelivery43_50 { if (src.hasType()) tgt.setType(CodeableConcept43_50.convertCodeableConcept(src.getType())); if (src.hasSuppliedItem()) - tgt.setSuppliedItem(convertSupplyDeliverySuppliedItemComponent(src.getSuppliedItem())); + tgt.addSuppliedItem(convertSupplyDeliverySuppliedItemComponent(src.getSuppliedItem())); if (src.hasOccurrence()) tgt.setOccurrence(ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().convertType(src.getOccurrence())); if (src.hasSupplier()) @@ -81,7 +81,7 @@ public class SupplyDelivery43_50 { if (src.hasType()) tgt.setType(CodeableConcept43_50.convertCodeableConcept(src.getType())); if (src.hasSuppliedItem()) - tgt.setSuppliedItem(convertSupplyDeliverySuppliedItemComponent(src.getSuppliedItem())); + tgt.setSuppliedItem(convertSupplyDeliverySuppliedItemComponent(src.getSuppliedItemFirstRep())); if (src.hasOccurrence()) tgt.setOccurrence(ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().convertType(src.getOccurrence())); if (src.hasSupplier()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Task43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Task43_50.java index 683dad228..628fbc992 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Task43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/Task43_50.java @@ -5,9 +5,14 @@ import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Annotation4 import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Period43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Canonical43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.PositiveInt43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.r5.model.CodeableReference; /* Copyright (c) 2011+, HL7, Inc. @@ -58,7 +63,7 @@ public class Task43_50 { if (src.hasStatus()) tgt.setStatusElement(convertTaskStatus(src.getStatusElement())); if (src.hasStatusReason()) - tgt.setStatusReason(CodeableConcept43_50.convertCodeableConcept(src.getStatusReason())); + tgt.setStatusReason(CodeableConcept43_50.convertCodeableConceptToCodeableReference(src.getStatusReason())); if (src.hasBusinessStatus()) tgt.setBusinessStatus(CodeableConcept43_50.convertCodeableConcept(src.getBusinessStatus())); if (src.hasIntent()) @@ -84,15 +89,15 @@ public class Task43_50 { if (src.hasRequester()) tgt.setRequester(Reference43_50.convertReference(src.getRequester())); for (org.hl7.fhir.r4b.model.CodeableConcept t : src.getPerformerType()) - tgt.addPerformerType(CodeableConcept43_50.convertCodeableConcept(t)); + tgt.addRequestedPerformer(CodeableConcept43_50.convertCodeableConceptToCodeableReference(t)); if (src.hasOwner()) tgt.setOwner(Reference43_50.convertReference(src.getOwner())); if (src.hasLocation()) tgt.setLocation(Reference43_50.convertReference(src.getLocation())); if (src.hasReasonCode()) - tgt.setReasonCode(CodeableConcept43_50.convertCodeableConcept(src.getReasonCode())); + tgt.addReason(CodeableConcept43_50.convertCodeableConceptToCodeableReference(src.getReasonCode())); if (src.hasReasonReference()) - tgt.setReasonReference(Reference43_50.convertReference(src.getReasonReference())); + tgt.addReason(Reference43_50.convertReferenceToCodeableReference(src.getReasonReference())); for (org.hl7.fhir.r4b.model.Reference t : src.getInsurance()) tgt.addInsurance(Reference43_50.convertReference(t)); for (org.hl7.fhir.r4b.model.Annotation t : src.getNote()) tgt.addNote(Annotation43_50.convertAnnotation(t)); for (org.hl7.fhir.r4b.model.Reference t : src.getRelevantHistory()) @@ -123,7 +128,7 @@ public class Task43_50 { if (src.hasStatus()) tgt.setStatusElement(convertTaskStatus(src.getStatusElement())); if (src.hasStatusReason()) - tgt.setStatusReason(CodeableConcept43_50.convertCodeableConcept(src.getStatusReason())); + tgt.setStatusReason(CodeableConcept43_50.convertCodeableReferenceToCodeableConcept(src.getStatusReason())); if (src.hasBusinessStatus()) tgt.setBusinessStatus(CodeableConcept43_50.convertCodeableConcept(src.getBusinessStatus())); if (src.hasIntent()) @@ -148,23 +153,25 @@ public class Task43_50 { tgt.setLastModifiedElement(DateTime43_50.convertDateTime(src.getLastModifiedElement())); if (src.hasRequester()) tgt.setRequester(Reference43_50.convertReference(src.getRequester())); - for (org.hl7.fhir.r5.model.CodeableConcept t : src.getPerformerType()) - tgt.addPerformerType(CodeableConcept43_50.convertCodeableConcept(t)); + for (org.hl7.fhir.r5.model.CodeableReference t : src.getRequestedPerformer()) + tgt.addPerformerType(CodeableConcept43_50.convertCodeableReferenceToCodeableConcept(t)); if (src.hasOwner()) tgt.setOwner(Reference43_50.convertReference(src.getOwner())); if (src.hasLocation()) tgt.setLocation(Reference43_50.convertReference(src.getLocation())); - if (src.hasReasonCode()) - tgt.setReasonCode(CodeableConcept43_50.convertCodeableConcept(src.getReasonCode())); - if (src.hasReasonReference()) - tgt.setReasonReference(Reference43_50.convertReference(src.getReasonReference())); + for (CodeableReference t : src.getReason()) { + if (t.hasConcept()) + tgt.setReasonCode(CodeableConcept43_50.convertCodeableConcept(t.getConcept())); + else if (t.hasReference()) + tgt.setReasonReference(Reference43_50.convertReference(t.getReference())); + } for (org.hl7.fhir.r5.model.Reference t : src.getInsurance()) tgt.addInsurance(Reference43_50.convertReference(t)); for (org.hl7.fhir.r5.model.Annotation t : src.getNote()) tgt.addNote(Annotation43_50.convertAnnotation(t)); for (org.hl7.fhir.r5.model.Reference t : src.getRelevantHistory()) tgt.addRelevantHistory(Reference43_50.convertReference(t)); if (src.hasRestriction()) tgt.setRestriction(convertTaskRestrictionComponent(src.getRestriction())); - for (org.hl7.fhir.r5.model.Task.ParameterComponent t : src.getInput()) tgt.addInput(convertParameterComponent(t)); + for (org.hl7.fhir.r5.model.Task.TaskInputComponent t : src.getInput()) tgt.addInput(convertParameterComponent(t)); for (org.hl7.fhir.r5.model.Task.TaskOutputComponent t : src.getOutput()) tgt.addOutput(convertTaskOutputComponent(t)); return tgt; @@ -424,10 +431,10 @@ public class Task43_50 { return tgt; } - public static org.hl7.fhir.r5.model.Task.ParameterComponent convertParameterComponent(org.hl7.fhir.r4b.model.Task.ParameterComponent src) throws FHIRException { + public static org.hl7.fhir.r5.model.Task.TaskInputComponent convertParameterComponent(org.hl7.fhir.r4b.model.Task.ParameterComponent src) throws FHIRException { if (src == null) return null; - org.hl7.fhir.r5.model.Task.ParameterComponent tgt = new org.hl7.fhir.r5.model.Task.ParameterComponent(); + org.hl7.fhir.r5.model.Task.TaskInputComponent tgt = new org.hl7.fhir.r5.model.Task.TaskInputComponent(); ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); if (src.hasType()) tgt.setType(CodeableConcept43_50.convertCodeableConcept(src.getType())); @@ -436,7 +443,7 @@ public class Task43_50 { return tgt; } - public static org.hl7.fhir.r4b.model.Task.ParameterComponent convertParameterComponent(org.hl7.fhir.r5.model.Task.ParameterComponent src) throws FHIRException { + public static org.hl7.fhir.r4b.model.Task.ParameterComponent convertParameterComponent(org.hl7.fhir.r5.model.Task.TaskInputComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r4b.model.Task.ParameterComponent tgt = new org.hl7.fhir.r4b.model.Task.ParameterComponent(); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/TerminologyCapabilities43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/TerminologyCapabilities43_50.java index 620de12f9..77ba260ca 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/TerminologyCapabilities43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/TerminologyCapabilities43_50.java @@ -4,7 +4,14 @@ import org.hl7.fhir.convertors.context.ConversionContext43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.ContactDetail43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.UsageContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Canonical43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Code43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.MarkDown43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Url43_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4b.model.CodeType; import org.hl7.fhir.r5.model.Enumeration; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/TestReport43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/TestReport43_50.java index b7dcd92c3..e1b3613be 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/TestReport43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/TestReport43_50.java @@ -2,8 +2,11 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Decimal43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.MarkDown43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4b.model.Reference; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/TestScript43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/TestScript43_50.java index e8a24ae27..13d2092e9 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/TestScript43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/TestScript43_50.java @@ -6,10 +6,17 @@ import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Coding43_50 import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.ContactDetail43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.UsageContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Canonical43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Code43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Id43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Integer43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.MarkDown43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; import org.hl7.fhir.exceptions.FHIRException; -import org.hl7.fhir.r4b.utils.ToolingExtensions; import org.hl7.fhir.r5.model.TestScript.TestScriptScopeComponent; /* diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ValueSet43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ValueSet43_50.java index eeb8c3c98..d075c99c0 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ValueSet43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/ValueSet43_50.java @@ -6,7 +6,15 @@ import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Coding43_50 import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.ContactDetail43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.metadata43_50.UsageContext43_50; -import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.*; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Boolean43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Canonical43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Code43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Date43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Integer43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.MarkDown43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.String43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Uri43_50; import org.hl7.fhir.exceptions.FHIRException; /* diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/XVersionLoader.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/XVersionLoader.java index 63788b6c0..a811f0de1 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/XVersionLoader.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/XVersionLoader.java @@ -1,5 +1,8 @@ package org.hl7.fhir.convertors.loaders; +import java.io.IOException; +import java.io.InputStream; + import org.hl7.fhir.convertors.factory.VersionConvertorFactory_10_50; import org.hl7.fhir.convertors.factory.VersionConvertorFactory_14_50; import org.hl7.fhir.convertors.factory.VersionConvertorFactory_30_50; @@ -10,9 +13,6 @@ import org.hl7.fhir.r5.model.Resource; import org.hl7.fhir.utilities.Utilities; import org.hl7.fhir.utilities.VersionUtilities; -import java.io.IOException; -import java.io.InputStream; - public class XVersionLoader { public static Resource loadXml(String version, InputStream stream) throws FHIRFormatError, IOException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR3/BaseLoaderR3.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR3/BaseLoaderR3.java index b85adb90d..d8137aa0a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR3/BaseLoaderR3.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR3/BaseLoaderR3.java @@ -1,12 +1,13 @@ package org.hl7.fhir.convertors.loaders.loaderR3; +import javax.annotation.Nonnull; + +import org.hl7.fhir.dstu3.context.SimpleWorkerContext.IContextResourceLoader; +import org.hl7.fhir.dstu3.model.Resource; + import lombok.Getter; import lombok.Setter; import lombok.experimental.Accessors; -import org.hl7.fhir.dstu3.context.SimpleWorkerContext.IContextResourceLoader; -import org.hl7.fhir.dstu3.model.Resource; - -import javax.annotation.Nonnull; @Accessors(chain = true) public abstract class BaseLoaderR3 implements IContextResourceLoader { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR3/R2ToR3Loader.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR3/R2ToR3Loader.java index 4a038f9a9..c2dc878dd 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR3/R2ToR3Loader.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR3/R2ToR3Loader.java @@ -1,5 +1,11 @@ package org.hl7.fhir.convertors.loaders.loaderR3; +import java.io.IOException; +import java.io.InputStream; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -44,12 +50,6 @@ import org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionKind; import org.hl7.fhir.dstu3.model.UriType; import org.hl7.fhir.exceptions.FHIRException; -import java.io.IOException; -import java.io.InputStream; -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; - public class R2ToR3Loader extends BaseLoaderR3 { private final BaseAdvisor_10_30 advisor_10_30 = new BaseAdvisor_10_30(); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR4/BaseLoaderR4.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR4/BaseLoaderR4.java index 404e2f3be..ad72d6c79 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR4/BaseLoaderR4.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR4/BaseLoaderR4.java @@ -1,12 +1,13 @@ package org.hl7.fhir.convertors.loaders.loaderR4; +import javax.annotation.Nonnull; + +import org.hl7.fhir.r4.context.SimpleWorkerContext.IContextResourceLoader; +import org.hl7.fhir.r4.model.Resource; + import lombok.Getter; import lombok.Setter; import lombok.experimental.Accessors; -import org.hl7.fhir.r4.context.SimpleWorkerContext.IContextResourceLoader; -import org.hl7.fhir.r4.model.Resource; - -import javax.annotation.Nonnull; @Accessors(chain = true) public abstract class BaseLoaderR4 implements IContextResourceLoader { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR4/R2016MayToR4Loader.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR4/R2016MayToR4Loader.java index b6b8b4181..6f55a6fa1 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR4/R2016MayToR4Loader.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR4/R2016MayToR4Loader.java @@ -1,5 +1,11 @@ package org.hl7.fhir.convertors.loaders.loaderR4; +import java.io.IOException; +import java.io.InputStream; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -38,16 +44,14 @@ import org.hl7.fhir.dstu2016may.model.Resource; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.conformance.ProfileUtilities; import org.hl7.fhir.r4.context.SimpleWorkerContext.IContextResourceLoader; -import org.hl7.fhir.r4.model.*; +import org.hl7.fhir.r4.model.Bundle; import org.hl7.fhir.r4.model.Bundle.BundleEntryComponent; import org.hl7.fhir.r4.model.Bundle.BundleType; +import org.hl7.fhir.r4.model.CodeSystem; +import org.hl7.fhir.r4.model.MetadataResource; +import org.hl7.fhir.r4.model.StructureDefinition; import org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionKind; - -import java.io.IOException; -import java.io.InputStream; -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; +import org.hl7.fhir.r4.model.UriType; public class R2016MayToR4Loader extends BaseLoaderR4 implements IContextResourceLoader { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR4/R2ToR4Loader.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR4/R2ToR4Loader.java index 707feb248..06b3e3b49 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR4/R2ToR4Loader.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR4/R2ToR4Loader.java @@ -1,5 +1,11 @@ package org.hl7.fhir.convertors.loaders.loaderR4; +import java.io.IOException; +import java.io.InputStream; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -44,12 +50,6 @@ import org.hl7.fhir.r4.model.StructureDefinition; import org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionKind; import org.hl7.fhir.r4.model.UriType; -import java.io.IOException; -import java.io.InputStream; -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; - public class R2ToR4Loader extends BaseLoaderR4 { private final BaseAdvisor_10_40 advisor = new BaseAdvisor_10_40(); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR4/R3ToR4Loader.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR4/R3ToR4Loader.java index af403e74a..637509acc 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR4/R3ToR4Loader.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR4/R3ToR4Loader.java @@ -1,5 +1,11 @@ package org.hl7.fhir.convertors.loaders.loaderR4; +import java.io.IOException; +import java.io.InputStream; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -37,17 +43,17 @@ import org.hl7.fhir.dstu3.formats.XmlParser; import org.hl7.fhir.dstu3.model.Resource; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.context.SimpleWorkerContext.IContextResourceLoader; -import org.hl7.fhir.r4.model.*; +import org.hl7.fhir.r4.model.Bundle; import org.hl7.fhir.r4.model.Bundle.BundleEntryComponent; import org.hl7.fhir.r4.model.Bundle.BundleType; +import org.hl7.fhir.r4.model.CanonicalType; +import org.hl7.fhir.r4.model.CodeSystem; +import org.hl7.fhir.r4.model.ElementDefinition; import org.hl7.fhir.r4.model.ElementDefinition.TypeRefComponent; +import org.hl7.fhir.r4.model.MetadataResource; +import org.hl7.fhir.r4.model.StructureDefinition; import org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionKind; - -import java.io.IOException; -import java.io.InputStream; -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; +import org.hl7.fhir.r4.model.UriType; public class R3ToR4Loader extends BaseLoaderR4 implements IContextResourceLoader { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/BaseLoaderR5.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/BaseLoaderR5.java index 58e5b2ff0..b648289f5 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/BaseLoaderR5.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/BaseLoaderR5.java @@ -1,16 +1,18 @@ package org.hl7.fhir.convertors.loaders.loaderR5; -import com.google.gson.JsonSyntaxException; -import lombok.Getter; -import lombok.Setter; -import lombok.experimental.Accessors; +import java.io.IOException; + import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoader; import org.hl7.fhir.r5.model.Resource; import org.hl7.fhir.utilities.VersionUtilities; import org.hl7.fhir.utilities.npm.NpmPackage; -import java.io.IOException; +import com.google.gson.JsonSyntaxException; + +import lombok.Getter; +import lombok.Setter; +import lombok.experimental.Accessors; @Accessors(chain = true) public abstract class BaseLoaderR5 implements IContextResourceLoader { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/ILoaderKnowledgeProviderR5.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/ILoaderKnowledgeProviderR5.java index 3a8c1ca3b..d1b241875 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/ILoaderKnowledgeProviderR5.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/ILoaderKnowledgeProviderR5.java @@ -1,10 +1,11 @@ package org.hl7.fhir.convertors.loaders.loaderR5; -import com.google.gson.JsonSyntaxException; +import java.io.IOException; + import org.hl7.fhir.r5.model.Resource; import org.hl7.fhir.utilities.npm.NpmPackage; -import java.io.IOException; +import com.google.gson.JsonSyntaxException; public interface ILoaderKnowledgeProviderR5 { /** diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/R2016MayToR5Loader.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/R2016MayToR5Loader.java index 616ef6e9e..89903a31c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/R2016MayToR5Loader.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/R2016MayToR5Loader.java @@ -1,5 +1,11 @@ package org.hl7.fhir.convertors.loaders.loaderR5; +import java.io.IOException; +import java.io.InputStream; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -37,17 +43,17 @@ import org.hl7.fhir.dstu2016may.formats.XmlParser; import org.hl7.fhir.dstu2016may.model.Resource; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.conformance.ProfileUtilities; -import org.hl7.fhir.r5.model.*; +import org.hl7.fhir.r5.model.Bundle; import org.hl7.fhir.r5.model.Bundle.BundleEntryComponent; import org.hl7.fhir.r5.model.Bundle.BundleType; +import org.hl7.fhir.r5.model.CanonicalResource; +import org.hl7.fhir.r5.model.CanonicalType; +import org.hl7.fhir.r5.model.CodeSystem; +import org.hl7.fhir.r5.model.ElementDefinition; import org.hl7.fhir.r5.model.ElementDefinition.TypeRefComponent; +import org.hl7.fhir.r5.model.StructureDefinition; import org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionKind; - -import java.io.IOException; -import java.io.InputStream; -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; +import org.hl7.fhir.r5.model.UriType; public class R2016MayToR5Loader extends BaseLoaderR5 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/R2ToR5Loader.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/R2ToR5Loader.java index 80066e5e4..303ccad8d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/R2ToR5Loader.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/R2ToR5Loader.java @@ -1,5 +1,11 @@ package org.hl7.fhir.convertors.loaders.loaderR5; +import java.io.IOException; +import java.io.InputStream; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -37,17 +43,17 @@ import org.hl7.fhir.dstu2.formats.XmlParser; import org.hl7.fhir.dstu2.model.Resource; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoader; -import org.hl7.fhir.r5.model.*; +import org.hl7.fhir.r5.model.Bundle; import org.hl7.fhir.r5.model.Bundle.BundleEntryComponent; import org.hl7.fhir.r5.model.Bundle.BundleType; +import org.hl7.fhir.r5.model.CanonicalResource; +import org.hl7.fhir.r5.model.CanonicalType; +import org.hl7.fhir.r5.model.CodeSystem; +import org.hl7.fhir.r5.model.ElementDefinition; import org.hl7.fhir.r5.model.ElementDefinition.TypeRefComponent; +import org.hl7.fhir.r5.model.StructureDefinition; import org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionKind; - -import java.io.IOException; -import java.io.InputStream; -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; +import org.hl7.fhir.r5.model.UriType; public class R2ToR5Loader extends BaseLoaderR5 implements IContextResourceLoader { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/R3ToR5Loader.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/R3ToR5Loader.java index 0df909627..85a5eed3d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/R3ToR5Loader.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/R3ToR5Loader.java @@ -1,5 +1,11 @@ package org.hl7.fhir.convertors.loaders.loaderR5; +import java.io.IOException; +import java.io.InputStream; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -37,17 +43,17 @@ import org.hl7.fhir.dstu3.formats.XmlParser; import org.hl7.fhir.dstu3.model.Resource; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoader; -import org.hl7.fhir.r5.model.*; +import org.hl7.fhir.r5.model.Bundle; import org.hl7.fhir.r5.model.Bundle.BundleEntryComponent; import org.hl7.fhir.r5.model.Bundle.BundleType; +import org.hl7.fhir.r5.model.CanonicalResource; +import org.hl7.fhir.r5.model.CanonicalType; +import org.hl7.fhir.r5.model.CodeSystem; +import org.hl7.fhir.r5.model.ElementDefinition; import org.hl7.fhir.r5.model.ElementDefinition.TypeRefComponent; +import org.hl7.fhir.r5.model.StructureDefinition; import org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionKind; - -import java.io.IOException; -import java.io.InputStream; -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; +import org.hl7.fhir.r5.model.UriType; public class R3ToR5Loader extends BaseLoaderR5 implements IContextResourceLoader { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/R4BToR5Loader.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/R4BToR5Loader.java index 2bfa3d960..233c2b276 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/R4BToR5Loader.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/R4BToR5Loader.java @@ -1,5 +1,11 @@ package org.hl7.fhir.convertors.loaders.loaderR5; +import java.io.IOException; +import java.io.InputStream; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -38,19 +44,19 @@ import org.hl7.fhir.r4.formats.XmlParser; import org.hl7.fhir.r4.model.Resource; import org.hl7.fhir.r5.conformance.StructureDefinitionHacker; import org.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoader; -import org.hl7.fhir.r5.model.*; +import org.hl7.fhir.r5.model.Bundle; import org.hl7.fhir.r5.model.Bundle.BundleEntryComponent; import org.hl7.fhir.r5.model.Bundle.BundleType; +import org.hl7.fhir.r5.model.CanonicalResource; +import org.hl7.fhir.r5.model.CanonicalType; +import org.hl7.fhir.r5.model.CodeSystem; +import org.hl7.fhir.r5.model.ElementDefinition; import org.hl7.fhir.r5.model.ElementDefinition.TypeRefComponent; +import org.hl7.fhir.r5.model.StructureDefinition; import org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionKind; +import org.hl7.fhir.r5.model.UriType; import org.hl7.fhir.utilities.VersionUtilities; -import java.io.IOException; -import java.io.InputStream; -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; - public class R4BToR5Loader extends BaseLoaderR5 implements IContextResourceLoader { private final BaseAdvisor_40_50 advisor = new BaseAdvisor_40_50(); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/R4ToR5Loader.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/R4ToR5Loader.java index 04b12e807..c5a62942b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/R4ToR5Loader.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/R4ToR5Loader.java @@ -1,5 +1,11 @@ package org.hl7.fhir.convertors.loaders.loaderR5; +import java.io.IOException; +import java.io.InputStream; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -38,19 +44,19 @@ import org.hl7.fhir.r4.formats.XmlParser; import org.hl7.fhir.r4.model.Resource; import org.hl7.fhir.r5.conformance.StructureDefinitionHacker; import org.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoader; -import org.hl7.fhir.r5.model.*; +import org.hl7.fhir.r5.model.Bundle; import org.hl7.fhir.r5.model.Bundle.BundleEntryComponent; import org.hl7.fhir.r5.model.Bundle.BundleType; +import org.hl7.fhir.r5.model.CanonicalResource; +import org.hl7.fhir.r5.model.CanonicalType; +import org.hl7.fhir.r5.model.CodeSystem; +import org.hl7.fhir.r5.model.ElementDefinition; import org.hl7.fhir.r5.model.ElementDefinition.TypeRefComponent; +import org.hl7.fhir.r5.model.StructureDefinition; import org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionKind; +import org.hl7.fhir.r5.model.UriType; import org.hl7.fhir.utilities.VersionUtilities; -import java.io.IOException; -import java.io.InputStream; -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; - public class R4ToR5Loader extends BaseLoaderR5 implements IContextResourceLoader { private final BaseAdvisor_40_50 advisor = new BaseAdvisor_40_50(); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/R5ToR5Loader.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/R5ToR5Loader.java index 5e7492909..928dd2442 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/R5ToR5Loader.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/loaders/loaderR5/R5ToR5Loader.java @@ -1,5 +1,11 @@ package org.hl7.fhir.convertors.loaders.loaderR5; +import java.io.IOException; +import java.io.InputStream; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -33,17 +39,18 @@ package org.hl7.fhir.convertors.loaders.loaderR5; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.formats.JsonParser; import org.hl7.fhir.r5.formats.XmlParser; -import org.hl7.fhir.r5.model.*; +import org.hl7.fhir.r5.model.Bundle; import org.hl7.fhir.r5.model.Bundle.BundleEntryComponent; import org.hl7.fhir.r5.model.Bundle.BundleType; +import org.hl7.fhir.r5.model.CanonicalResource; +import org.hl7.fhir.r5.model.CanonicalType; +import org.hl7.fhir.r5.model.CodeSystem; +import org.hl7.fhir.r5.model.ElementDefinition; import org.hl7.fhir.r5.model.ElementDefinition.TypeRefComponent; +import org.hl7.fhir.r5.model.Resource; +import org.hl7.fhir.r5.model.StructureDefinition; import org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionKind; - -import java.io.IOException; -import java.io.InputStream; -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; +import org.hl7.fhir.r5.model.UriType; public class R5ToR5Loader extends BaseLoaderR5 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/CDAUtilities.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/CDAUtilities.java index 4a0004ab0..d336c6ae5 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/CDAUtilities.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/CDAUtilities.java @@ -4,6 +4,13 @@ package org.hl7.fhir.convertors.misc; +import java.io.InputStream; +import java.util.ArrayList; +import java.util.List; + +import javax.xml.parsers.DocumentBuilder; +import javax.xml.parsers.DocumentBuilderFactory; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -39,12 +46,6 @@ import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.Node; -import javax.xml.parsers.DocumentBuilder; -import javax.xml.parsers.DocumentBuilderFactory; -import java.io.InputStream; -import java.util.ArrayList; -import java.util.List; - public class CDAUtilities { private final Document doc; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/CKMImporter.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/CKMImporter.java index 3e4e3cecc..99147ab1a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/CKMImporter.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/CKMImporter.java @@ -1,7 +1,13 @@ package org.hl7.fhir.convertors.misc; -import org.hl7.fhir.utilities.SimpleHTTPClient; -import org.hl7.fhir.utilities.SimpleHTTPClient.HTTPResult; +import java.io.ByteArrayInputStream; +import java.io.File; +import java.io.InputStream; +import java.util.ArrayList; +import java.util.List; + +import javax.xml.parsers.DocumentBuilder; +import javax.xml.parsers.DocumentBuilderFactory; /* Copyright (c) 2011+, HL7, Inc. @@ -34,21 +40,14 @@ import org.hl7.fhir.utilities.SimpleHTTPClient.HTTPResult; import org.hl7.fhir.convertors.misc.adl.ADLImporter; +import org.hl7.fhir.utilities.SimpleHTTPClient; +import org.hl7.fhir.utilities.SimpleHTTPClient.HTTPResult; import org.hl7.fhir.utilities.TextFile; import org.hl7.fhir.utilities.Utilities; import org.hl7.fhir.utilities.xml.XMLUtil; import org.w3c.dom.Document; import org.w3c.dom.Element; -import javax.xml.parsers.DocumentBuilder; -import javax.xml.parsers.DocumentBuilderFactory; - -import java.io.ByteArrayInputStream; -import java.io.File; -import java.io.InputStream; -import java.util.ArrayList; -import java.util.List; - public class CKMImporter { private String ckm; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/Convert.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/Convert.java index 875db2292..1cae84835 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/Convert.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/Convert.java @@ -4,6 +4,12 @@ package org.hl7.fhir.convertors.misc; +import java.math.BigDecimal; +import java.util.HashSet; +import java.util.List; +import java.util.Set; +import java.util.UUID; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -35,27 +41,37 @@ package org.hl7.fhir.convertors.misc; import org.fhir.ucum.UcumService; -import org.hl7.fhir.dstu3.model.*; +import org.hl7.fhir.dstu3.model.Address; import org.hl7.fhir.dstu3.model.Address.AddressUse; +import org.hl7.fhir.dstu3.model.CodeableConcept; +import org.hl7.fhir.dstu3.model.Coding; +import org.hl7.fhir.dstu3.model.ContactPoint; import org.hl7.fhir.dstu3.model.ContactPoint.ContactPointSystem; import org.hl7.fhir.dstu3.model.ContactPoint.ContactPointUse; +import org.hl7.fhir.dstu3.model.DateTimeType; +import org.hl7.fhir.dstu3.model.DateType; import org.hl7.fhir.dstu3.model.Enumerations.AdministrativeGender; +import org.hl7.fhir.dstu3.model.Factory; +import org.hl7.fhir.dstu3.model.HumanName; import org.hl7.fhir.dstu3.model.HumanName.NameUse; +import org.hl7.fhir.dstu3.model.Identifier; +import org.hl7.fhir.dstu3.model.InstantType; +import org.hl7.fhir.dstu3.model.Period; +import org.hl7.fhir.dstu3.model.Quantity; +import org.hl7.fhir.dstu3.model.Range; +import org.hl7.fhir.dstu3.model.SimpleQuantity; +import org.hl7.fhir.dstu3.model.StringType; +import org.hl7.fhir.dstu3.model.Timing; import org.hl7.fhir.dstu3.model.Timing.EventTiming; import org.hl7.fhir.dstu3.model.Timing.TimingRepeatComponent; import org.hl7.fhir.dstu3.model.Timing.UnitsOfTime; +import org.hl7.fhir.dstu3.model.Type; import org.hl7.fhir.utilities.CommaSeparatedStringBuilder; import org.hl7.fhir.utilities.OIDUtils; import org.hl7.fhir.utilities.Utilities; import org.w3c.dom.Element; import org.w3c.dom.Node; -import java.math.BigDecimal; -import java.util.HashSet; -import java.util.List; -import java.util.Set; -import java.util.UUID; - public class Convert { private final CDAUtilities cda; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/CorePackageTools.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/CorePackageTools.java index 1c09a521e..ea3da93bb 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/CorePackageTools.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/CorePackageTools.java @@ -1,16 +1,17 @@ package org.hl7.fhir.convertors.misc; -import com.google.gson.JsonObject; -import org.hl7.fhir.exceptions.FHIRFormatError; -import org.hl7.fhir.utilities.Utilities; -import org.hl7.fhir.utilities.json.JsonTrackingParser; -import org.hl7.fhir.utilities.npm.NpmPackage; - import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; +import org.hl7.fhir.exceptions.FHIRFormatError; +import org.hl7.fhir.utilities.Utilities; +import org.hl7.fhir.utilities.json.JsonTrackingParser; +import org.hl7.fhir.utilities.npm.NpmPackage; + +import com.google.gson.JsonObject; + public class CorePackageTools { public static void main(String[] args) throws FHIRFormatError, IOException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/CountryCodesConverter.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/CountryCodesConverter.java index 38be38ce5..0c1adc775 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/CountryCodesConverter.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/CountryCodesConverter.java @@ -1,5 +1,12 @@ package org.hl7.fhir.convertors.misc; +import java.io.FileInputStream; +import java.io.IOException; + +import javax.xml.parsers.DocumentBuilder; +import javax.xml.parsers.DocumentBuilderFactory; +import javax.xml.parsers.ParserConfigurationException; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -43,12 +50,6 @@ import org.w3c.dom.Document; import org.w3c.dom.Element; import org.xml.sax.SAXException; -import javax.xml.parsers.DocumentBuilder; -import javax.xml.parsers.DocumentBuilderFactory; -import javax.xml.parsers.ParserConfigurationException; -import java.io.FileInputStream; -import java.io.IOException; - public class CountryCodesConverter { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/DicomPackageBuilder.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/DicomPackageBuilder.java index c2967d14d..9ed7ba7b4 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/DicomPackageBuilder.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/DicomPackageBuilder.java @@ -17,11 +17,11 @@ import org.hl7.fhir.r4.formats.JsonParser; import org.hl7.fhir.r4.model.CodeSystem; import org.hl7.fhir.r4.model.CodeSystem.CodeSystemContentMode; import org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionComponent; +import org.hl7.fhir.r4.model.Enumerations.PublicationStatus; import org.hl7.fhir.r4.model.Identifier; import org.hl7.fhir.r4.model.ValueSet; import org.hl7.fhir.r4.utils.NPMPackageGenerator; import org.hl7.fhir.r4.utils.NPMPackageGenerator.Category; -import org.hl7.fhir.r4.model.Enumerations.PublicationStatus; import org.hl7.fhir.utilities.Utilities; import org.hl7.fhir.utilities.xml.XMLUtil; import org.w3c.dom.Document; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/ExamplesPackageBuilder.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/ExamplesPackageBuilder.java index 13cc57fc0..c80be57c8 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/ExamplesPackageBuilder.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/ExamplesPackageBuilder.java @@ -3,30 +3,17 @@ package org.hl7.fhir.convertors.misc; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; -import java.io.FileOutputStream; import java.io.IOException; -import java.nio.charset.StandardCharsets; -import java.util.Date; import java.util.HashSet; import java.util.Set; -import org.hl7.fhir.convertors.factory.VersionConvertorFactory_30_50; import org.hl7.fhir.convertors.factory.VersionConvertorFactory_40_50; import org.hl7.fhir.exceptions.FHIRFormatError; -import org.hl7.fhir.r4b.formats.JsonParser; -import org.hl7.fhir.r4b.model.Bundle; -import org.hl7.fhir.r4b.model.Bundle.BundleEntryComponent; import org.hl7.fhir.utilities.TextFile; -import org.hl7.fhir.utilities.Utilities; import org.hl7.fhir.utilities.json.JsonTrackingParser; -import com.google.gson.JsonArray; import com.google.gson.JsonObject; -import org.hl7.fhir.r4b.model.SearchParameter; -import org.hl7.fhir.r4b.utils.NPMPackageGenerator; -import org.hl7.fhir.r4b.utils.NPMPackageGenerator.Category; - public class ExamplesPackageBuilder { public static void main(String[] args) throws FHIRFormatError, FileNotFoundException, IOException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/GenValueSetExpansionConvertor.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/GenValueSetExpansionConvertor.java index d652913eb..14a2ef99d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/GenValueSetExpansionConvertor.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/GenValueSetExpansionConvertor.java @@ -1,5 +1,9 @@ package org.hl7.fhir.convertors.misc; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.IOException; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -40,10 +44,6 @@ import org.hl7.fhir.dstu2.model.ValueSet; import org.hl7.fhir.exceptions.FHIRFormatError; import org.hl7.fhir.utilities.Utilities; -import java.io.FileInputStream; -import java.io.FileOutputStream; -import java.io.IOException; - public class GenValueSetExpansionConvertor { public static void main(String[] args) throws FHIRFormatError, IOException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/ICD11Generator.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/ICD11Generator.java index 9f9bf14a5..208cf3e74 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/ICD11Generator.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/ICD11Generator.java @@ -1,32 +1,37 @@ package org.hl7.fhir.convertors.misc; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; +import java.io.FileOutputStream; +import java.io.IOException; +import java.util.Date; +import java.util.HashSet; +import java.util.Set; + import org.hl7.fhir.r4.formats.IParser.OutputStyle; import org.hl7.fhir.r4.formats.XmlParser; import org.hl7.fhir.r4.formats.XmlParserBase.XmlVersion; -import org.hl7.fhir.r4.model.*; +import org.hl7.fhir.r4.model.BooleanType; +import org.hl7.fhir.r4.model.CodeSystem; import org.hl7.fhir.r4.model.CodeSystem.CodeSystemContentMode; import org.hl7.fhir.r4.model.CodeSystem.CodeSystemHierarchyMeaning; import org.hl7.fhir.r4.model.CodeSystem.ConceptPropertyComponent; import org.hl7.fhir.r4.model.CodeSystem.PropertyType; +import org.hl7.fhir.r4.model.CodeType; +import org.hl7.fhir.r4.model.Coding; +import org.hl7.fhir.r4.model.DateTimeType; import org.hl7.fhir.r4.model.Enumerations.PublicationStatus; +import org.hl7.fhir.r4.model.StringType; +import org.hl7.fhir.r4.model.ValueSet; import org.hl7.fhir.r4.model.ValueSet.ConceptSetComponent; import org.hl7.fhir.r4.model.ValueSet.FilterOperator; import org.hl7.fhir.r4.terminologies.CodeSystemUtilities; import org.hl7.fhir.r4.utils.ToolingExtensions; -import org.hl7.fhir.utilities.TextFile; -import org.hl7.fhir.utilities.Utilities; import org.hl7.fhir.utilities.SimpleHTTPClient; import org.hl7.fhir.utilities.SimpleHTTPClient.HTTPResult; +import org.hl7.fhir.utilities.Utilities; import org.hl7.fhir.utilities.json.JsonTrackingParser; -import java.io.FileOutputStream; -import java.io.IOException; -import java.net.URL; -import java.util.Date; -import java.util.HashSet; -import java.util.Set; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; public class ICD11Generator { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/ICPC2Importer.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/ICPC2Importer.java index 4f491eaa1..abce5b74a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/ICPC2Importer.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/ICPC2Importer.java @@ -1,5 +1,15 @@ package org.hl7.fhir.convertors.misc; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import javax.xml.parsers.DocumentBuilder; +import javax.xml.parsers.DocumentBuilderFactory; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -32,10 +42,14 @@ package org.hl7.fhir.convertors.misc; import org.hl7.fhir.dstu3.formats.IParser.OutputStyle; import org.hl7.fhir.dstu3.formats.XmlParser; -import org.hl7.fhir.dstu3.model.*; +import org.hl7.fhir.dstu3.model.CodeSystem; import org.hl7.fhir.dstu3.model.CodeSystem.CodeSystemHierarchyMeaning; import org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionComponent; +import org.hl7.fhir.dstu3.model.Coding; +import org.hl7.fhir.dstu3.model.DateTimeType; import org.hl7.fhir.dstu3.model.Enumerations.PublicationStatus; +import org.hl7.fhir.dstu3.model.Identifier; +import org.hl7.fhir.dstu3.model.ValueSet; import org.hl7.fhir.dstu3.terminologies.CodeSystemUtilities; import org.hl7.fhir.exceptions.FHIRFormatError; import org.hl7.fhir.utilities.Utilities; @@ -43,15 +57,6 @@ import org.hl7.fhir.utilities.xml.XMLUtil; import org.w3c.dom.Document; import org.w3c.dom.Element; -import javax.xml.parsers.DocumentBuilder; -import javax.xml.parsers.DocumentBuilderFactory; -import java.io.FileInputStream; -import java.io.FileOutputStream; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - /** * This is defined as a prototype ClaML importer diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/IEEE11073Convertor.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/IEEE11073Convertor.java index 9b0ba0ff6..038c99614 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/IEEE11073Convertor.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/IEEE11073Convertor.java @@ -1,5 +1,16 @@ package org.hl7.fhir.convertors.misc; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -34,26 +45,30 @@ import org.fhir.ucum.UcumEssenceService; import org.fhir.ucum.UcumService; import org.hl7.fhir.dstu3.formats.IParser.OutputStyle; import org.hl7.fhir.dstu3.formats.XmlParser; -import org.hl7.fhir.dstu3.model.*; +import org.hl7.fhir.dstu3.model.CodeSystem; import org.hl7.fhir.dstu3.model.CodeSystem.CodeSystemContentMode; import org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionComponent; import org.hl7.fhir.dstu3.model.CodeSystem.PropertyType; +import org.hl7.fhir.dstu3.model.CodeType; +import org.hl7.fhir.dstu3.model.Coding; +import org.hl7.fhir.dstu3.model.ConceptMap; import org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapGroupComponent; import org.hl7.fhir.dstu3.model.ConceptMap.SourceElementComponent; import org.hl7.fhir.dstu3.model.ConceptMap.TargetElementComponent; +import org.hl7.fhir.dstu3.model.ContactDetail; +import org.hl7.fhir.dstu3.model.ContactPoint; import org.hl7.fhir.dstu3.model.ContactPoint.ContactPointSystem; +import org.hl7.fhir.dstu3.model.DateTimeType; import org.hl7.fhir.dstu3.model.Enumerations.ConceptMapEquivalence; import org.hl7.fhir.dstu3.model.Enumerations.PublicationStatus; +import org.hl7.fhir.dstu3.model.Identifier; +import org.hl7.fhir.dstu3.model.StringType; +import org.hl7.fhir.dstu3.model.UriType; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.utilities.CSVReader; import org.hl7.fhir.utilities.CommaSeparatedStringBuilder; import org.hl7.fhir.utilities.Utilities; -import java.io.FileInputStream; -import java.io.FileOutputStream; -import java.io.IOException; -import java.util.*; - public class IEEE11073Convertor { public static final String UCUM_PATH = "c:\\work\\org.hl7.fhir\\build\\implementations\\java\\org.hl7.fhir.convertors\\samples\\ucum-essence.xml"; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/IGPackConverter102.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/IGPackConverter102.java index e0af519a0..de176df97 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/IGPackConverter102.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/IGPackConverter102.java @@ -1,5 +1,13 @@ package org.hl7.fhir.convertors.misc; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.IOException; +import java.util.Date; + +import javax.annotation.Nonnull; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -41,13 +49,6 @@ import org.hl7.fhir.dstu3.model.ValueSet; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.utilities.FhirPublication; import org.hl7.fhir.utilities.Utilities; -import javax.annotation.Nonnull; - -import java.io.File; -import java.io.FileInputStream; -import java.io.FileOutputStream; -import java.io.IOException; -import java.util.Date; public class IGPackConverter102 extends BaseAdvisor_10_30 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/IGPackConverter140.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/IGPackConverter140.java index ee2074631..0766a1a5f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/IGPackConverter140.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/IGPackConverter140.java @@ -1,5 +1,9 @@ package org.hl7.fhir.convertors.misc; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileOutputStream; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -34,10 +38,6 @@ import org.hl7.fhir.convertors.factory.VersionConvertorFactory_14_30; import org.hl7.fhir.dstu3.formats.IParser.OutputStyle; import org.hl7.fhir.utilities.Utilities; -import java.io.File; -import java.io.FileInputStream; -import java.io.FileOutputStream; - public class IGPackConverter140 { public static void main(String[] args) throws Exception { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/IGR2ConvertorAdvisor.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/IGR2ConvertorAdvisor.java index 9597a2896..32895aa70 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/IGR2ConvertorAdvisor.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/IGR2ConvertorAdvisor.java @@ -1,5 +1,7 @@ package org.hl7.fhir.convertors.misc; +import javax.annotation.Nonnull; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -32,7 +34,6 @@ package org.hl7.fhir.convertors.misc; import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_10_40; import org.hl7.fhir.r4.model.CodeSystem; import org.hl7.fhir.r4.model.ValueSet; -import javax.annotation.Nonnull; public class IGR2ConvertorAdvisor extends BaseAdvisor_10_40 { @Override diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/IGR2ConvertorAdvisor5.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/IGR2ConvertorAdvisor5.java index 08711abd5..75c8c3c1c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/IGR2ConvertorAdvisor5.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/IGR2ConvertorAdvisor5.java @@ -1,5 +1,7 @@ package org.hl7.fhir.convertors.misc; +import javax.annotation.Nonnull; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -33,7 +35,6 @@ package org.hl7.fhir.convertors.misc; import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_10_50; import org.hl7.fhir.r5.model.CodeSystem; import org.hl7.fhir.r5.model.ValueSet; -import javax.annotation.Nonnull; public class IGR2ConvertorAdvisor5 extends BaseAdvisor_10_50 { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/NUCCConvertor.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/NUCCConvertor.java index 1dca2f396..ba628d28f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/NUCCConvertor.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/NUCCConvertor.java @@ -1,5 +1,9 @@ package org.hl7.fhir.convertors.misc; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.IOException; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -45,10 +49,6 @@ import org.hl7.fhir.r4.model.StringType; import org.hl7.fhir.utilities.CSVReader; import org.hl7.fhir.utilities.Utilities; -import java.io.FileInputStream; -import java.io.FileOutputStream; -import java.io.IOException; - public class NUCCConvertor { public static void main(String[] args) throws Exception { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/NpmPackageVersionConverter.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/NpmPackageVersionConverter.java index eb50e9479..4b7a6d345 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/NpmPackageVersionConverter.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/NpmPackageVersionConverter.java @@ -1,22 +1,5 @@ package org.hl7.fhir.convertors.misc; -import com.google.common.base.Charsets; -import com.google.gson.JsonArray; -import com.google.gson.JsonObject; -import org.apache.commons.compress.archivers.tar.TarArchiveEntry; -import org.apache.commons.compress.archivers.tar.TarArchiveInputStream; -import org.apache.commons.compress.archivers.tar.TarArchiveOutputStream; -import org.apache.commons.compress.compressors.gzip.GzipCompressorInputStream; -import org.apache.commons.compress.compressors.gzip.GzipCompressorOutputStream; -import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_30_40; -import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_30_50; -import org.hl7.fhir.convertors.factory.*; -import org.hl7.fhir.utilities.TextFile; -import org.hl7.fhir.utilities.VersionUtilities; -import org.hl7.fhir.utilities.json.JsonUtilities; -import org.hl7.fhir.utilities.json.JsonTrackingParser; -import org.hl7.fhir.utilities.npm.NpmPackageIndexBuilder; - import java.io.BufferedOutputStream; import java.io.ByteArrayOutputStream; import java.io.FileInputStream; @@ -28,6 +11,32 @@ import java.util.List; import java.util.Map; import java.util.Map.Entry; +import org.apache.commons.compress.archivers.tar.TarArchiveEntry; +import org.apache.commons.compress.archivers.tar.TarArchiveInputStream; +import org.apache.commons.compress.archivers.tar.TarArchiveOutputStream; +import org.apache.commons.compress.compressors.gzip.GzipCompressorInputStream; +import org.apache.commons.compress.compressors.gzip.GzipCompressorOutputStream; +import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_30_40; +import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_30_50; +import org.hl7.fhir.convertors.factory.VersionConvertorFactory_10_30; +import org.hl7.fhir.convertors.factory.VersionConvertorFactory_10_40; +import org.hl7.fhir.convertors.factory.VersionConvertorFactory_10_50; +import org.hl7.fhir.convertors.factory.VersionConvertorFactory_14_30; +import org.hl7.fhir.convertors.factory.VersionConvertorFactory_14_40; +import org.hl7.fhir.convertors.factory.VersionConvertorFactory_14_50; +import org.hl7.fhir.convertors.factory.VersionConvertorFactory_30_40; +import org.hl7.fhir.convertors.factory.VersionConvertorFactory_30_50; +import org.hl7.fhir.convertors.factory.VersionConvertorFactory_40_50; +import org.hl7.fhir.utilities.TextFile; +import org.hl7.fhir.utilities.VersionUtilities; +import org.hl7.fhir.utilities.json.JsonTrackingParser; +import org.hl7.fhir.utilities.json.JsonUtilities; +import org.hl7.fhir.utilities.npm.NpmPackageIndexBuilder; + +import com.google.common.base.Charsets; +import com.google.gson.JsonArray; +import com.google.gson.JsonObject; + public class NpmPackageVersionConverter { private static final int BUFFER_SIZE = 1024; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/OIDBasedValueSetImporter.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/OIDBasedValueSetImporter.java index 736696d47..c0147d688 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/OIDBasedValueSetImporter.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/OIDBasedValueSetImporter.java @@ -1,5 +1,7 @@ package org.hl7.fhir.convertors.misc; +import java.io.IOException; + import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.context.IWorkerContext; import org.hl7.fhir.r5.context.SimpleWorkerContext; @@ -9,8 +11,6 @@ import org.hl7.fhir.utilities.npm.FilesystemPackageCacheManager; import org.hl7.fhir.utilities.npm.NpmPackage; import org.hl7.fhir.utilities.npm.ToolsVersion; -import java.io.IOException; - public class OIDBasedValueSetImporter { protected IWorkerContext context; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/ObservationStatsBuilder.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/ObservationStatsBuilder.java index ac4e2e32a..772cbffc0 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/ObservationStatsBuilder.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/ObservationStatsBuilder.java @@ -1,5 +1,12 @@ package org.hl7.fhir.convertors.misc; +import java.io.FileNotFoundException; +import java.io.FileOutputStream; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.Calendar; +import java.util.UUID; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -32,21 +39,19 @@ package org.hl7.fhir.convertors.misc; import org.hl7.fhir.dstu3.formats.IParser.OutputStyle; import org.hl7.fhir.dstu3.formats.XmlParser; -import org.hl7.fhir.dstu3.model.*; +import org.hl7.fhir.dstu3.model.Bundle; import org.hl7.fhir.dstu3.model.Bundle.BundleType; +import org.hl7.fhir.dstu3.model.DateTimeType; +import org.hl7.fhir.dstu3.model.Observation; import org.hl7.fhir.dstu3.model.Observation.ObservationComponentComponent; import org.hl7.fhir.dstu3.model.Observation.ObservationStatus; +import org.hl7.fhir.dstu3.model.Quantity; +import org.hl7.fhir.dstu3.model.Reference; +import org.hl7.fhir.dstu3.model.Type; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.exceptions.FHIRFormatError; import org.hl7.fhir.utilities.Utilities; -import java.io.FileNotFoundException; -import java.io.FileOutputStream; -import java.io.IOException; -import java.math.BigDecimal; -import java.util.Calendar; -import java.util.UUID; - public class ObservationStatsBuilder { public static void main(String[] args) throws IOException, FHIRException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/PR2Handler.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/PR2Handler.java index 4c46ddc54..076870d0b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/PR2Handler.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/PR2Handler.java @@ -1,5 +1,7 @@ package org.hl7.fhir.convertors.misc; +import javax.annotation.Nonnull; + import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_10_40; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.Bundle; @@ -7,8 +9,6 @@ import org.hl7.fhir.r4.model.CodeSystem; import org.hl7.fhir.r4.model.ValueSet; import org.hl7.fhir.utilities.FhirPublication; -import javax.annotation.Nonnull; - class PR2Handler extends BaseAdvisor_10_40 { @Override diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/PackageMaintainer.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/PackageMaintainer.java index c05b6ac76..021066544 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/PackageMaintainer.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/PackageMaintainer.java @@ -1,5 +1,14 @@ package org.hl7.fhir.convertors.misc; +import java.io.File; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import org.hl7.fhir.utilities.TextFile; +import org.hl7.fhir.utilities.Utilities; +import org.hl7.fhir.utilities.json.JsonTrackingParser; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -33,14 +42,6 @@ package org.hl7.fhir.convertors.misc; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.JsonObject; -import org.hl7.fhir.utilities.TextFile; -import org.hl7.fhir.utilities.Utilities; -import org.hl7.fhir.utilities.json.JsonTrackingParser; - -import java.io.File; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; public class PackageMaintainer { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/PackagePreparer.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/PackagePreparer.java index 08012e243..b0e0783c2 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/PackagePreparer.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/PackagePreparer.java @@ -1,5 +1,9 @@ package org.hl7.fhir.convertors.misc; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileOutputStream; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -35,10 +39,6 @@ import org.hl7.fhir.dstu3.model.Bundle; import org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent; import org.hl7.fhir.utilities.Utilities; -import java.io.File; -import java.io.FileInputStream; -import java.io.FileOutputStream; - /* * load reosurces in xml format, and sve them in package format (json, with correct name * diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/PhinVadsImporter.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/PhinVadsImporter.java index 4a0b26d88..0f8226746 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/PhinVadsImporter.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/PhinVadsImporter.java @@ -1,5 +1,13 @@ package org.hl7.fhir.convertors.misc; +import java.io.ByteArrayInputStream; +import java.io.File; +import java.io.FileOutputStream; +import java.io.IOException; +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.util.List; + import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.formats.IParser.OutputStyle; import org.hl7.fhir.r5.formats.JsonParser; @@ -10,14 +18,6 @@ import org.hl7.fhir.utilities.CSVReader; import org.hl7.fhir.utilities.TextFile; import org.hl7.fhir.utilities.Utilities; -import java.io.ByteArrayInputStream; -import java.io.File; -import java.io.FileOutputStream; -import java.io.IOException; -import java.text.ParseException; -import java.text.SimpleDateFormat; -import java.util.List; - public class PhinVadsImporter extends OIDBasedValueSetImporter { public PhinVadsImporter() throws FHIRException, IOException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/Test.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/Test.java index 9fd2877cc..00aea3a1f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/Test.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/Test.java @@ -4,6 +4,9 @@ package org.hl7.fhir.convertors.misc; +import java.io.FileInputStream; +import java.io.FileOutputStream; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -43,9 +46,6 @@ import org.hl7.fhir.dstu3.formats.XmlParser; import org.hl7.fhir.dstu3.model.Bundle; import org.hl7.fhir.utilities.Utilities; -import java.io.FileInputStream; -import java.io.FileOutputStream; - public class Test { public final static String DEF_TS_SERVER = "http://fhir-dev.healthintersections.com.au/open"; public final static String DEV_TS_SERVER = "http://local.fhir.org:8080/open"; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/VSACImporter.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/VSACImporter.java index c87c25e0c..2ed89a96f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/VSACImporter.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/VSACImporter.java @@ -1,5 +1,13 @@ package org.hl7.fhir.convertors.misc; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.IOException; +import java.net.URISyntaxException; +import java.text.ParseException; +import java.util.HashMap; +import java.util.Map; + import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.formats.IParser.OutputStyle; import org.hl7.fhir.r4.formats.JsonParser; @@ -11,14 +19,6 @@ import org.hl7.fhir.r4.utils.client.FHIRToolingClient; import org.hl7.fhir.utilities.CSVReader; import org.hl7.fhir.utilities.Utilities; -import java.io.FileInputStream; -import java.io.FileOutputStream; -import java.io.IOException; -import java.net.URISyntaxException; -import java.text.ParseException; -import java.util.HashMap; -import java.util.Map; - public class VSACImporter extends OIDBasedValueSetImporter { public VSACImporter() throws FHIRException, IOException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/XMLPackageConvertor.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/XMLPackageConvertor.java index 3c89d2ebc..974eb2093 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/XMLPackageConvertor.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/XMLPackageConvertor.java @@ -1,14 +1,15 @@ package org.hl7.fhir.convertors.misc; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import org.hl7.fhir.utilities.npm.NpmPackage; - import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.util.Map.Entry; +import org.hl7.fhir.utilities.npm.NpmPackage; + +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; + public class XMLPackageConvertor { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/XVerPackegeFixer.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/XVerPackegeFixer.java index 8335423de..a73041dd8 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/XVerPackegeFixer.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/XVerPackegeFixer.java @@ -12,10 +12,8 @@ import java.util.Map; import java.util.Map.Entry; import java.util.Set; -import javax.naming.ldap.StartTlsRequest; import javax.xml.parsers.ParserConfigurationException; -import org.hl7.fhir.convertors.misc.XVerPackegeFixer.References; import org.hl7.fhir.dstu2.model.ElementDefinition; import org.hl7.fhir.dstu2.model.StructureDefinition; import org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionSnapshotComponent; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/adl/ADLImporter.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/adl/ADLImporter.java index 81f95b295..7ace1274f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/adl/ADLImporter.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/adl/ADLImporter.java @@ -1,5 +1,15 @@ package org.hl7.fhir.convertors.misc.adl; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import javax.xml.parsers.DocumentBuilder; +import javax.xml.parsers.DocumentBuilderFactory; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -39,15 +49,6 @@ import org.hl7.fhir.dstu3.model.StructureDefinition; import org.hl7.fhir.utilities.xml.XMLUtil; import org.w3c.dom.Element; -import javax.xml.parsers.DocumentBuilder; -import javax.xml.parsers.DocumentBuilderFactory; -import java.io.FileInputStream; -import java.io.FileOutputStream; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - public class ADLImporter { private final Map texts = new HashMap(); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/adl/NodeTreeEntry.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/adl/NodeTreeEntry.java index 8185ea60a..9258a71b2 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/adl/NodeTreeEntry.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/adl/NodeTreeEntry.java @@ -1,10 +1,10 @@ package org.hl7.fhir.convertors.misc.adl; -import lombok.Data; - import java.util.ArrayList; import java.util.List; +import lombok.Data; + @Data public class NodeTreeEntry { private final List children = new ArrayList(); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/argonaut/ArgonautConverter.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/argonaut/ArgonautConverter.java index 8cea044a3..01a181685 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/argonaut/ArgonautConverter.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/argonaut/ArgonautConverter.java @@ -1,5 +1,17 @@ package org.hl7.fhir.convertors.misc.argonaut; +import java.io.ByteArrayOutputStream; +import java.io.File; +import java.io.FileInputStream; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -34,31 +46,66 @@ import org.apache.commons.io.IOUtils; import org.fhir.ucum.UcumEssenceService; import org.fhir.ucum.UcumService; import org.hl7.fhir.convertors.misc.CDAUtilities; -import org.hl7.fhir.convertors.misc.ccda.CcdaExtensions; import org.hl7.fhir.convertors.misc.Convert; import org.hl7.fhir.convertors.misc.ConverterBase; +import org.hl7.fhir.convertors.misc.ccda.CcdaExtensions; import org.hl7.fhir.dstu3.context.SimpleWorkerContext; import org.hl7.fhir.dstu3.formats.IParser.OutputStyle; import org.hl7.fhir.dstu3.formats.JsonParser; import org.hl7.fhir.dstu3.formats.XmlParser; -import org.hl7.fhir.dstu3.model.*; +import org.hl7.fhir.dstu3.model.Address; +import org.hl7.fhir.dstu3.model.AllergyIntolerance; import org.hl7.fhir.dstu3.model.AllergyIntolerance.AllergyIntoleranceReactionComponent; +import org.hl7.fhir.dstu3.model.Base; +import org.hl7.fhir.dstu3.model.Binary; +import org.hl7.fhir.dstu3.model.BooleanType; +import org.hl7.fhir.dstu3.model.CodeableConcept; +import org.hl7.fhir.dstu3.model.Coding; +import org.hl7.fhir.dstu3.model.Condition; import org.hl7.fhir.dstu3.model.Condition.ConditionVerificationStatus; +import org.hl7.fhir.dstu3.model.ContactPoint; +import org.hl7.fhir.dstu3.model.DocumentReference; import org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContentComponent; import org.hl7.fhir.dstu3.model.DocumentReference.DocumentReferenceContextComponent; +import org.hl7.fhir.dstu3.model.DomainResource; +import org.hl7.fhir.dstu3.model.Dosage; +import org.hl7.fhir.dstu3.model.Encounter; import org.hl7.fhir.dstu3.model.Encounter.EncounterHospitalizationComponent; import org.hl7.fhir.dstu3.model.Encounter.EncounterStatus; import org.hl7.fhir.dstu3.model.Enumerations.DocumentReferenceStatus; +import org.hl7.fhir.dstu3.model.Extension; +import org.hl7.fhir.dstu3.model.Factory; +import org.hl7.fhir.dstu3.model.HumanName; +import org.hl7.fhir.dstu3.model.Identifier; +import org.hl7.fhir.dstu3.model.Immunization; import org.hl7.fhir.dstu3.model.Immunization.ImmunizationExplanationComponent; import org.hl7.fhir.dstu3.model.Immunization.ImmunizationStatus; +import org.hl7.fhir.dstu3.model.InstantType; +import org.hl7.fhir.dstu3.model.ListResource; import org.hl7.fhir.dstu3.model.ListResource.ListMode; import org.hl7.fhir.dstu3.model.ListResource.ListStatus; +import org.hl7.fhir.dstu3.model.Location; +import org.hl7.fhir.dstu3.model.Medication; +import org.hl7.fhir.dstu3.model.MedicationStatement; import org.hl7.fhir.dstu3.model.MedicationStatement.MedicationStatementStatus; +import org.hl7.fhir.dstu3.model.Narrative; import org.hl7.fhir.dstu3.model.Narrative.NarrativeStatus; +import org.hl7.fhir.dstu3.model.Observation; import org.hl7.fhir.dstu3.model.Observation.ObservationRelationshipType; import org.hl7.fhir.dstu3.model.Observation.ObservationStatus; +import org.hl7.fhir.dstu3.model.Organization; +import org.hl7.fhir.dstu3.model.Patient; +import org.hl7.fhir.dstu3.model.Period; +import org.hl7.fhir.dstu3.model.Practitioner; +import org.hl7.fhir.dstu3.model.Procedure; import org.hl7.fhir.dstu3.model.Procedure.ProcedurePerformerComponent; import org.hl7.fhir.dstu3.model.Procedure.ProcedureStatus; +import org.hl7.fhir.dstu3.model.Reference; +import org.hl7.fhir.dstu3.model.Resource; +import org.hl7.fhir.dstu3.model.StringType; +import org.hl7.fhir.dstu3.model.StructureDefinition; +import org.hl7.fhir.dstu3.model.Timing; +import org.hl7.fhir.dstu3.model.Type; import org.hl7.fhir.dstu3.utils.NarrativeGenerator; import org.hl7.fhir.dstu3.utils.ResourceUtilities; import org.hl7.fhir.utilities.Utilities; @@ -70,12 +117,6 @@ import org.hl7.fhir.utilities.xhtml.XhtmlNode; import org.hl7.fhir.utilities.xml.XMLUtil; import org.w3c.dom.Element; -import java.io.ByteArrayOutputStream; -import java.io.File; -import java.io.FileInputStream; -import java.io.IOException; -import java.util.*; - public class ArgonautConverter extends ConverterBase { // public final static String DEF_TS_SERVER = "http://fhir-dev.healthintersections.com.au/open"; public final static String DEV_TS_SERVER = "http://local.fhir.org:8080/open"; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/argonaut/Context.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/argonaut/Context.java index 10358c1d4..1af0db975 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/argonaut/Context.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/argonaut/Context.java @@ -1,11 +1,12 @@ package org.hl7.fhir.convertors.misc.argonaut; -import lombok.Data; import org.hl7.fhir.dstu3.model.Coding; import org.hl7.fhir.dstu3.model.DateTimeType; import org.hl7.fhir.dstu3.model.Encounter; import org.hl7.fhir.dstu3.model.Reference; +import lombok.Data; + @Data public class Context { private String baseId; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/ccda/CCDAConverter.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/ccda/CCDAConverter.java index cfdb16468..7fd11b42f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/ccda/CCDAConverter.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/ccda/CCDAConverter.java @@ -4,6 +4,12 @@ package org.hl7.fhir.convertors.misc.ccda; +import java.io.InputStream; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.UUID; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -38,29 +44,53 @@ import org.fhir.ucum.UcumService; import org.hl7.fhir.convertors.misc.CDAUtilities; import org.hl7.fhir.convertors.misc.Convert; import org.hl7.fhir.dstu3.context.IWorkerContext; -import org.hl7.fhir.dstu3.model.*; -import org.hl7.fhir.dstu3.model.AllergyIntolerance.*; +import org.hl7.fhir.dstu3.model.AllergyIntolerance; +import org.hl7.fhir.dstu3.model.AllergyIntolerance.AllergyIntoleranceClinicalStatus; +import org.hl7.fhir.dstu3.model.AllergyIntolerance.AllergyIntoleranceCriticality; +import org.hl7.fhir.dstu3.model.AllergyIntolerance.AllergyIntoleranceReactionComponent; +import org.hl7.fhir.dstu3.model.AllergyIntolerance.AllergyIntoleranceSeverity; +import org.hl7.fhir.dstu3.model.AllergyIntolerance.AllergyIntoleranceType; +import org.hl7.fhir.dstu3.model.AllergyIntolerance.AllergyIntoleranceVerificationStatus; +import org.hl7.fhir.dstu3.model.Bundle; import org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent; +import org.hl7.fhir.dstu3.model.CodeableConcept; +import org.hl7.fhir.dstu3.model.Coding; +import org.hl7.fhir.dstu3.model.Comparison; +import org.hl7.fhir.dstu3.model.Composition; import org.hl7.fhir.dstu3.model.Composition.CompositionAttestationMode; import org.hl7.fhir.dstu3.model.Composition.CompositionAttesterComponent; import org.hl7.fhir.dstu3.model.Composition.DocumentConfidentiality; import org.hl7.fhir.dstu3.model.Composition.SectionComponent; +import org.hl7.fhir.dstu3.model.ContactPoint; +import org.hl7.fhir.dstu3.model.Device; +import org.hl7.fhir.dstu3.model.DomainResource; +import org.hl7.fhir.dstu3.model.Encounter; +import org.hl7.fhir.dstu3.model.Extension; +import org.hl7.fhir.dstu3.model.Factory; +import org.hl7.fhir.dstu3.model.Identifier; +import org.hl7.fhir.dstu3.model.InstantType; +import org.hl7.fhir.dstu3.model.ListResource; import org.hl7.fhir.dstu3.model.ListResource.ListEntryComponent; +import org.hl7.fhir.dstu3.model.Location; +import org.hl7.fhir.dstu3.model.Meta; +import org.hl7.fhir.dstu3.model.Narrative; import org.hl7.fhir.dstu3.model.Narrative.NarrativeStatus; +import org.hl7.fhir.dstu3.model.Observation; import org.hl7.fhir.dstu3.model.Observation.ObservationRelatedComponent; import org.hl7.fhir.dstu3.model.Observation.ObservationRelationshipType; import org.hl7.fhir.dstu3.model.Observation.ObservationStatus; +import org.hl7.fhir.dstu3.model.Organization; +import org.hl7.fhir.dstu3.model.Patient; +import org.hl7.fhir.dstu3.model.Period; +import org.hl7.fhir.dstu3.model.Practitioner; +import org.hl7.fhir.dstu3.model.Procedure; import org.hl7.fhir.dstu3.model.Procedure.ProcedurePerformerComponent; +import org.hl7.fhir.dstu3.model.Reference; +import org.hl7.fhir.dstu3.model.ResourceFactory; import org.hl7.fhir.dstu3.utils.NarrativeGenerator; import org.hl7.fhir.dstu3.utils.ToolingExtensions; import org.w3c.dom.Element; -import java.io.InputStream; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.UUID; - /** * Advance Directives Section 42348-3 : * Allergies, Adverse Reactions, Alerts Section 48765-2 : List(AlleryIntolerance) processAdverseReactionsSection diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/iso21090/DataType.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/iso21090/DataType.java index 8cebedec3..3992b2d08 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/iso21090/DataType.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/iso21090/DataType.java @@ -1,10 +1,10 @@ package org.hl7.fhir.convertors.misc.iso21090; -import lombok.Data; - import java.util.ArrayList; import java.util.List; +import lombok.Data; + @Data class DataType { private final List properties = new ArrayList<>(); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/iso21090/EnumValueSet.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/iso21090/EnumValueSet.java index 4a6732a31..881a72505 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/iso21090/EnumValueSet.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/iso21090/EnumValueSet.java @@ -1,12 +1,12 @@ package org.hl7.fhir.convertors.misc.iso21090; -import lombok.Data; - import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import lombok.Data; + @Data public class EnumValueSet { private final List codes = new ArrayList<>(); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/iso21090/ISO21090Importer.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/iso21090/ISO21090Importer.java index d3b42faae..e919aedd7 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/iso21090/ISO21090Importer.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/iso21090/ISO21090Importer.java @@ -1,5 +1,17 @@ package org.hl7.fhir.convertors.misc.iso21090; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.IOException; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import javax.xml.parsers.DocumentBuilder; +import javax.xml.parsers.DocumentBuilderFactory; +import javax.xml.parsers.ParserConfigurationException; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -52,14 +64,6 @@ import org.w3c.dom.Document; import org.w3c.dom.Element; import org.xml.sax.SAXException; -import javax.xml.parsers.DocumentBuilder; -import javax.xml.parsers.DocumentBuilderFactory; -import javax.xml.parsers.ParserConfigurationException; -import java.io.FileInputStream; -import java.io.FileOutputStream; -import java.io.IOException; -import java.util.*; - public class ISO21090Importer { private final Map bindings = new HashMap<>(); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/searchparam/SearchParameterProcessor.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/searchparam/SearchParameterProcessor.java index f7e0fa9ff..769f3117d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/searchparam/SearchParameterProcessor.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/searchparam/SearchParameterProcessor.java @@ -1,5 +1,13 @@ package org.hl7.fhir.convertors.misc.searchparam; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collections; +import java.util.Date; +import java.util.List; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -42,14 +50,6 @@ import org.hl7.fhir.r5.model.Enumerations.PublicationStatus; import org.hl7.fhir.utilities.CSVReader; import org.hl7.fhir.utilities.Utilities; -import java.io.FileInputStream; -import java.io.FileOutputStream; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Collections; -import java.util.Date; -import java.util.List; - public class SearchParameterProcessor { private static final String ROOT = "C:\\work\\org.hl7.fhir\\org.fhir.interversion\\package"; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/utg/UTGCaseSensitivePopulator.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/utg/UTGCaseSensitivePopulator.java index b7284759f..5e0ed10d0 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/utg/UTGCaseSensitivePopulator.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/utg/UTGCaseSensitivePopulator.java @@ -5,12 +5,9 @@ import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; -import java.time.LocalDate; -import java.time.ZoneId; import java.util.Calendar; import java.util.Date; -import org.hl7.fhir.exceptions.FHIRFormatError; import org.hl7.fhir.r4.formats.IParser; import org.hl7.fhir.r4.formats.IParser.OutputStyle; import org.hl7.fhir.r4.formats.JsonParser; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/utg/UTGVersionSorter.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/utg/UTGVersionSorter.java index 7f3a30da0..3f1804ddb 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/utg/UTGVersionSorter.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/misc/utg/UTGVersionSorter.java @@ -1,29 +1,40 @@ package org.hl7.fhir.convertors.misc.utg; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import org.hl7.fhir.convertors.factory.VersionConvertorFactory_10_50; -import org.hl7.fhir.convertors.factory.VersionConvertorFactory_30_50; -import org.hl7.fhir.convertors.factory.VersionConvertorFactory_40_50; -import org.hl7.fhir.exceptions.FHIRException; -import org.hl7.fhir.r5.formats.IParser.OutputStyle; -import org.hl7.fhir.r5.formats.JsonParser; -import org.hl7.fhir.r5.formats.XmlParser; -import org.hl7.fhir.r5.model.*; -import org.hl7.fhir.r5.model.Provenance.ProvenanceAgentComponent; -import org.hl7.fhir.r5.utils.ToolingExtensions; -import org.hl7.fhir.utilities.Utilities; -import org.hl7.fhir.utilities.npm.FilesystemPackageCacheManager; -import org.hl7.fhir.utilities.npm.NpmPackage; -import org.hl7.fhir.utilities.npm.NpmPackage.PackageResourceInformation; -import org.hl7.fhir.utilities.npm.ToolsVersion; - import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.net.URISyntaxException; import java.text.ParseException; -import java.util.*; +import java.util.ArrayList; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.hl7.fhir.convertors.factory.VersionConvertorFactory_10_50; +import org.hl7.fhir.convertors.factory.VersionConvertorFactory_30_50; +import org.hl7.fhir.convertors.factory.VersionConvertorFactory_40_50; +import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.r5.formats.IParser.OutputStyle; +import org.hl7.fhir.r5.formats.JsonParser; +import org.hl7.fhir.r5.formats.XmlParser; +import org.hl7.fhir.r5.model.Base; +import org.hl7.fhir.r5.model.Bundle; +import org.hl7.fhir.r5.model.CanonicalResource; +import org.hl7.fhir.r5.model.CodeSystem; +import org.hl7.fhir.r5.model.Provenance; +import org.hl7.fhir.r5.model.Provenance.ProvenanceAgentComponent; +import org.hl7.fhir.r5.model.Resource; +import org.hl7.fhir.r5.model.ValueSet; +import org.hl7.fhir.r5.utils.ToolingExtensions; +import org.hl7.fhir.utilities.Utilities; +import org.hl7.fhir.utilities.npm.FilesystemPackageCacheManager; +import org.hl7.fhir.utilities.npm.NpmPackage; +import org.hl7.fhir.utilities.npm.NpmPackage.PackageResourceInformation; +import org.hl7.fhir.utilities.npm.ToolsVersion; + +import ca.uhn.fhir.model.api.TemporalPrecisionEnum; public class UTGVersionSorter { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/txClient/TerminologyClientFactory.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/txClient/TerminologyClientFactory.java index ea2dbeb9a..d22ad072e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/txClient/TerminologyClientFactory.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/txClient/TerminologyClientFactory.java @@ -1,12 +1,12 @@ package org.hl7.fhir.convertors.txClient; +import java.net.URISyntaxException; + import org.hl7.fhir.r5.terminologies.TerminologyClient; import org.hl7.fhir.utilities.FhirPublication; import org.hl7.fhir.utilities.Utilities; import org.hl7.fhir.utilities.VersionUtilities; -import java.net.URISyntaxException; - public class TerminologyClientFactory { public static TerminologyClient makeClient(String url, String userAgent, FhirPublication v) throws URISyntaxException { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/txClient/TerminologyClientR2.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/txClient/TerminologyClientR2.java index af4dbe26e..2d0321ffb 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/txClient/TerminologyClientR2.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/txClient/TerminologyClientR2.java @@ -1,5 +1,9 @@ package org.hl7.fhir.convertors.txClient; +import java.net.URISyntaxException; +import java.util.EnumSet; +import java.util.Map; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -35,18 +39,18 @@ import org.hl7.fhir.convertors.factory.VersionConvertorFactory_10_50; import org.hl7.fhir.dstu2.model.Resource; import org.hl7.fhir.dstu2.utils.client.FHIRToolingClient; import org.hl7.fhir.exceptions.FHIRException; -import org.hl7.fhir.r5.model.*; -import org.hl7.fhir.r5.model.Enumerations.FHIRVersion; +import org.hl7.fhir.r5.model.Bundle; +import org.hl7.fhir.r5.model.CanonicalResource; +import org.hl7.fhir.r5.model.CapabilityStatement; +import org.hl7.fhir.r5.model.Parameters; +import org.hl7.fhir.r5.model.TerminologyCapabilities; +import org.hl7.fhir.r5.model.ValueSet; import org.hl7.fhir.r5.terminologies.TerminologyClient; import org.hl7.fhir.r5.utils.client.network.ClientHeaders; import org.hl7.fhir.utilities.FhirPublication; import org.hl7.fhir.utilities.ToolingClientLogger; import org.hl7.fhir.utilities.Utilities; -import java.net.URISyntaxException; -import java.util.EnumSet; -import java.util.Map; - public class TerminologyClientR2 implements TerminologyClient { private final FHIRToolingClient client; // todo: use the R2 client diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/txClient/TerminologyClientR3.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/txClient/TerminologyClientR3.java index d8c2a3a70..bb5549551 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/txClient/TerminologyClientR3.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/txClient/TerminologyClientR3.java @@ -1,5 +1,9 @@ package org.hl7.fhir.convertors.txClient; +import java.net.URISyntaxException; +import java.util.EnumSet; +import java.util.Map; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -35,17 +39,18 @@ import org.hl7.fhir.convertors.factory.VersionConvertorFactory_30_50; import org.hl7.fhir.dstu3.model.Resource; import org.hl7.fhir.dstu3.utils.client.FHIRToolingClient; import org.hl7.fhir.exceptions.FHIRException; -import org.hl7.fhir.r5.model.*; +import org.hl7.fhir.r5.model.Bundle; +import org.hl7.fhir.r5.model.CanonicalResource; +import org.hl7.fhir.r5.model.CapabilityStatement; +import org.hl7.fhir.r5.model.Parameters; +import org.hl7.fhir.r5.model.TerminologyCapabilities; +import org.hl7.fhir.r5.model.ValueSet; import org.hl7.fhir.r5.terminologies.TerminologyClient; import org.hl7.fhir.r5.utils.client.network.ClientHeaders; import org.hl7.fhir.utilities.FhirPublication; import org.hl7.fhir.utilities.ToolingClientLogger; import org.hl7.fhir.utilities.Utilities; -import java.net.URISyntaxException; -import java.util.EnumSet; -import java.util.Map; - public class TerminologyClientR3 implements TerminologyClient { private final FHIRToolingClient client; // todo: use the R2 client diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/txClient/TerminologyClientR4.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/txClient/TerminologyClientR4.java index 36076a467..aff4ab8fa 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/txClient/TerminologyClientR4.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/txClient/TerminologyClientR4.java @@ -1,5 +1,9 @@ package org.hl7.fhir.convertors.txClient; +import java.net.URISyntaxException; +import java.util.EnumSet; +import java.util.Map; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -35,17 +39,18 @@ import org.hl7.fhir.convertors.factory.VersionConvertorFactory_40_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.Resource; import org.hl7.fhir.r4.utils.client.FHIRToolingClient; -import org.hl7.fhir.r5.model.*; +import org.hl7.fhir.r5.model.Bundle; +import org.hl7.fhir.r5.model.CanonicalResource; +import org.hl7.fhir.r5.model.CapabilityStatement; +import org.hl7.fhir.r5.model.Parameters; +import org.hl7.fhir.r5.model.TerminologyCapabilities; +import org.hl7.fhir.r5.model.ValueSet; import org.hl7.fhir.r5.terminologies.TerminologyClient; import org.hl7.fhir.r5.utils.client.network.ClientHeaders; import org.hl7.fhir.utilities.FhirPublication; import org.hl7.fhir.utilities.ToolingClientLogger; import org.hl7.fhir.utilities.Utilities; -import java.net.URISyntaxException; -import java.util.EnumSet; -import java.util.Map; - public class TerminologyClientR4 implements TerminologyClient { private final FHIRToolingClient client; // todo: use the R2 client diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/txClient/TerminologyClientR5.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/txClient/TerminologyClientR5.java index a5046dc48..f67c6b8b2 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/txClient/TerminologyClientR5.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/txClient/TerminologyClientR5.java @@ -1,5 +1,9 @@ package org.hl7.fhir.convertors.txClient; +import java.net.URISyntaxException; +import java.util.EnumSet; +import java.util.Map; + /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -31,19 +35,20 @@ package org.hl7.fhir.convertors.txClient; import org.hl7.fhir.exceptions.FHIRException; -import org.hl7.fhir.r5.model.*; +import org.hl7.fhir.r5.model.Bundle; +import org.hl7.fhir.r5.model.CanonicalResource; +import org.hl7.fhir.r5.model.CapabilityStatement; +import org.hl7.fhir.r5.model.CodeSystem; +import org.hl7.fhir.r5.model.Parameters; +import org.hl7.fhir.r5.model.Resource; +import org.hl7.fhir.r5.model.TerminologyCapabilities; +import org.hl7.fhir.r5.model.ValueSet; import org.hl7.fhir.r5.terminologies.TerminologyClient; import org.hl7.fhir.r5.utils.client.FHIRToolingClient; import org.hl7.fhir.r5.utils.client.network.ClientHeaders; import org.hl7.fhir.utilities.FhirPublication; import org.hl7.fhir.utilities.ToolingClientLogger; import org.hl7.fhir.utilities.Utilities; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import java.net.URISyntaxException; -import java.util.EnumSet; -import java.util.Map; public class TerminologyClientR5 implements TerminologyClient { diff --git a/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/analysis/Analyser.java b/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/analysis/Analyser.java index 4a84c22e2..435d3e4f0 100644 --- a/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/analysis/Analyser.java +++ b/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/analysis/Analyser.java @@ -309,8 +309,8 @@ public class Analyser { if (!Utilities.existsInList(name, "Resource")) { for (SearchParameter sp : definitions.getSearchParams().getList()) { boolean relevant = false; - for (Enumeration c : sp.getBase()) { - if (c.getValue().toCode().equals(name)) { + for (CodeType c : sp.getBase()) { + if (c.getValue().equals(name)) { relevant = true; break; } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/formats/JsonParser.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/formats/JsonParser.java index 7965c2c28..6b49122c5 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/formats/JsonParser.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/formats/JsonParser.java @@ -27278,10 +27278,25 @@ public class JsonParser extends JsonParserBase { res.setLabelElement(parseString(json.get("label").getAsString())); if (json.has("_label")) parseElementProperties(getJObject(json, "_label"), res.getLabelElement()); - if (json.has("conformance")) - res.setConformanceElement(parseEnumeration(json.get("conformance").getAsString(), Requirements.ConformanceExpectation.NULL, new Requirements.ConformanceExpectationEnumFactory())); - if (json.has("_conformance")) - parseElementProperties(getJObject(json, "_conformance"), res.getConformanceElement()); + if (json.has("conformance")) { + JsonArray array = getJArray(json, "conformance"); + for (int i = 0; i < array.size(); i++) { + if (array.get(i).isJsonNull()) { + res.getConformance().add(new Enumeration(new Requirements.ConformanceExpectationEnumFactory(), Requirements.ConformanceExpectation.NULL)); + } else {; + res.getConformance().add(parseEnumeration(array.get(i).getAsString(), Requirements.ConformanceExpectation.NULL, new Requirements.ConformanceExpectationEnumFactory())); + } + } + }; + if (json.has("_conformance")) { + JsonArray array = getJArray(json, "_conformance"); + for (int i = 0; i < array.size(); i++) { + if (i == res.getConformance().size()) + res.getConformance().add(parseEnumeration(null, Requirements.ConformanceExpectation.NULL, new Requirements.ConformanceExpectationEnumFactory())); + if (array.get(i) instanceof JsonObject) + parseElementProperties(array.get(i).getAsJsonObject(), res.getConformance().get(i)); + } + }; if (json.has("requirement")) res.setRequirementElement(parseMarkdown(json.get("requirement").getAsString())); if (json.has("_requirement")) @@ -28007,9 +28022,9 @@ public class JsonParser extends JsonParserBase { JsonArray array = getJArray(json, "base"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { - res.getBase().add(new Enumeration(new Enumerations.AllResourceTypesEnumFactory(), Enumerations.AllResourceTypes.NULL)); + res.getBase().add(new CodeType()); } else {; - res.getBase().add(parseEnumeration(array.get(i).getAsString(), Enumerations.AllResourceTypes.NULL, new Enumerations.AllResourceTypesEnumFactory())); + res.getBase().add(parseCode(array.get(i).getAsString())); } } }; @@ -28017,7 +28032,7 @@ public class JsonParser extends JsonParserBase { JsonArray array = getJArray(json, "_base"); for (int i = 0; i < array.size(); i++) { if (i == res.getBase().size()) - res.getBase().add(parseEnumeration(null, Enumerations.AllResourceTypes.NULL, new Enumerations.AllResourceTypesEnumFactory())); + res.getBase().add(new CodeType()); if (array.get(i) instanceof JsonObject) parseElementProperties(array.get(i).getAsJsonObject(), res.getBase().get(i)); } @@ -64128,10 +64143,18 @@ public class JsonParser extends JsonParserBase { composeStringCore("label", element.getLabelElement(), false); composeStringExtras("label", element.getLabelElement(), false); } - if (element.hasConformanceElement()) { - composeEnumerationCore("conformance", element.getConformanceElement(), new Requirements.ConformanceExpectationEnumFactory(), false); - composeEnumerationExtras("conformance", element.getConformanceElement(), new Requirements.ConformanceExpectationEnumFactory(), false); + if (element.hasConformance()) { + openArray("conformance"); + for (Enumeration e : element.getConformance()) + composeEnumerationCore(null, e, new Requirements.ConformanceExpectationEnumFactory(), true); + closeArray(); + if (anyHasExtras(element.getConformance())) { + openArray("_conformance"); + for (Enumeration e : element.getConformance()) + composeEnumerationExtras(null, e, new Requirements.ConformanceExpectationEnumFactory(), true); + closeArray(); } + }; if (element.hasRequirementElement()) { composeMarkdownCore("requirement", element.getRequirementElement(), false); composeMarkdownExtras("requirement", element.getRequirementElement(), false); @@ -64909,13 +64932,13 @@ public class JsonParser extends JsonParserBase { } if (element.hasBase()) { openArray("base"); - for (Enumeration e : element.getBase()) - composeEnumerationCore(null, e, new Enumerations.AllResourceTypesEnumFactory(), true); + for (CodeType e : element.getBase()) + composeCodeCore(null, e, true); closeArray(); if (anyHasExtras(element.getBase())) { openArray("_base"); - for (Enumeration e : element.getBase()) - composeEnumerationExtras(null, e, new Enumerations.AllResourceTypesEnumFactory(), true); + for (CodeType e : element.getBase()) + composeCodeExtras(null, e, true); closeArray(); } }; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/formats/RdfParser.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/formats/RdfParser.java index 4de5073a2..28d127241 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/formats/RdfParser.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/formats/RdfParser.java @@ -21893,8 +21893,8 @@ public class RdfParser extends RdfParserBase { if (element.hasLabelElement()) { composeString(t, "RequirementsStatementComponent", "label", element.getLabelElement(), -1); } - if (element.hasConformanceElement()) { - composeEnum(t, "RequirementsStatementComponent", "conformance", element.getConformanceElement(), -1); + for (int i = 0; i < element.getConformance().size(); i++) { + composeEnum(t, "RequirementsStatementComponent", "conformance", element.getConformance().get(i), i); } if (element.hasRequirementElement()) { composeMarkdown(t, "RequirementsStatementComponent", "requirement", element.getRequirementElement(), -1); @@ -22485,7 +22485,7 @@ public class RdfParser extends RdfParserBase { composeCode(t, "SearchParameter", "code", element.getCodeElement(), -1); } for (int i = 0; i < element.getBase().size(); i++) { - composeEnum(t, "SearchParameter", "base", element.getBase().get(i), i); + composeCode(t, "SearchParameter", "base", element.getBase().get(i), i); } if (element.hasTypeElement()) { composeEnum(t, "SearchParameter", "type", element.getTypeElement(), -1); diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/formats/XmlParser.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/formats/XmlParser.java index c8db4faa2..25fc47aa8 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/formats/XmlParser.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/formats/XmlParser.java @@ -23699,7 +23699,7 @@ public class XmlParser extends XmlParserBase { } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("label")) { res.setLabelElement(parseString(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("conformance")) { - res.setConformanceElement(parseEnumeration(xpp, Requirements.ConformanceExpectation.NULL, new Requirements.ConformanceExpectationEnumFactory())); + res.getConformance().add(parseEnumeration(xpp, Requirements.ConformanceExpectation.NULL, new Requirements.ConformanceExpectationEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("requirement")) { res.setRequirementElement(parseMarkdown(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("derivedFrom")) { @@ -24317,7 +24317,7 @@ public class XmlParser extends XmlParserBase { } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("code")) { res.setCodeElement(parseCode(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("base")) { - res.getBase().add(parseEnumeration(xpp, Enumerations.AllResourceTypes.NULL, new Enumerations.AllResourceTypesEnumFactory())); + res.getBase().add(parseCode(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { res.setTypeElement(parseEnumeration(xpp, Enumerations.SearchParamType.NULL, new Enumerations.SearchParamTypeEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("expression")) { @@ -55102,8 +55102,9 @@ public class XmlParser extends XmlParserBase { if (element.hasLabelElement()) { composeString("label", element.getLabelElement()); } - if (element.hasConformanceElement()) - composeEnumeration("conformance", element.getConformanceElement(), new Requirements.ConformanceExpectationEnumFactory()); + if (element.hasConformance()) + for (Enumeration e : element.getConformance()) + composeEnumeration("conformance", e, new Requirements.ConformanceExpectationEnumFactory()); if (element.hasRequirementElement()) { composeMarkdown("requirement", element.getRequirementElement()); } @@ -55759,8 +55760,8 @@ public class XmlParser extends XmlParserBase { composeCode("code", element.getCodeElement()); } if (element.hasBase()) - for (Enumeration e : element.getBase()) - composeEnumeration("base", e, new Enumerations.AllResourceTypesEnumFactory()); + for (CodeType e : element.getBase()) + composeCode("base", e); if (element.hasTypeElement()) composeEnumeration("type", element.getTypeElement(), new Enumerations.SearchParamTypeEnumFactory()); if (element.hasExpressionElement()) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Enumerations.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Enumerations.java index 1e871627d..588262d8a 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Enumerations.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Enumerations.java @@ -12493,87 +12493,87 @@ The primary difference between a medicationusage and a medicationadministration /** * DSTU 1 Ballot version. */ - OID_0_11, + _0_11, /** * DSTU 1 version. */ - OID_0_0, + _0_0, /** * DSTU 1 Official version. */ - OID_0_0_80, + _0_0_80, /** * DSTU 1 Official version Technical Errata #1. */ - OID_0_0_81, + _0_0_81, /** * DSTU 1 Official version Technical Errata #2. */ - OID_0_0_82, + _0_0_82, /** * January 2015 Ballot. */ - OID_0_4, + _0_4, /** * Draft For Comment (January 2015 Ballot). */ - OID_0_4_0, + _0_4_0, /** * May 2015 Ballot. */ - OID_0_5, + _0_5, /** * DSTU 2 Ballot version (May 2015 Ballot). */ - OID_0_5_0, + _0_5_0, /** * DSTU 2 version. */ - OID_1_0, + _1_0, /** * DSTU 2 QA Preview + CQIF Ballot (Sep 2015). */ - OID_1_0_0, + _1_0_0, /** * DSTU 2 (Official version). */ - OID_1_0_1, + _1_0_1, /** * DSTU 2 (Official version) with 1 technical errata. */ - OID_1_0_2, + _1_0_2, /** * GAO Ballot version. */ - OID_1_1, + _1_1, /** * GAO Ballot + draft changes to main FHIR standard. */ - OID_1_1_0, + _1_1_0, /** * Connectathon 12 (Montreal) version. */ - OID_1_4, + _1_4, /** * CQF on FHIR Ballot + Connectathon 12 (Montreal). */ - OID_1_4_0, + _1_4_0, /** * Connectathon 13 (Baltimore) version. */ - OID_1_6, + _1_6, /** * FHIR STU3 Ballot + Connectathon 13 (Baltimore). */ - OID_1_6_0, + _1_6_0, /** * Connectathon 14 (San Antonio) version. */ - OID_1_8, + _1_8, /** * FHIR STU3 Candidate + Connectathon 14 (San Antonio). */ - OID_1_8_0, + _1_8_0, /** * STU3 version. */ @@ -12704,47 +12704,47 @@ The primary difference between a medicationusage and a medicationadministration if ("0.06".equals(codeString)) return _0_06; if ("0.11".equals(codeString)) - return OID_0_11; + return _0_11; if ("0.0".equals(codeString)) - return OID_0_0; + return _0_0; if ("0.0.80".equals(codeString)) - return OID_0_0_80; + return _0_0_80; if ("0.0.81".equals(codeString)) - return OID_0_0_81; + return _0_0_81; if ("0.0.82".equals(codeString)) - return OID_0_0_82; + return _0_0_82; if ("0.4".equals(codeString)) - return OID_0_4; + return _0_4; if ("0.4.0".equals(codeString)) - return OID_0_4_0; + return _0_4_0; if ("0.5".equals(codeString)) - return OID_0_5; + return _0_5; if ("0.5.0".equals(codeString)) - return OID_0_5_0; + return _0_5_0; if ("1.0".equals(codeString)) - return OID_1_0; + return _1_0; if ("1.0.0".equals(codeString)) - return OID_1_0_0; + return _1_0_0; if ("1.0.1".equals(codeString)) - return OID_1_0_1; + return _1_0_1; if ("1.0.2".equals(codeString)) - return OID_1_0_2; + return _1_0_2; if ("1.1".equals(codeString)) - return OID_1_1; + return _1_1; if ("1.1.0".equals(codeString)) - return OID_1_1_0; + return _1_1_0; if ("1.4".equals(codeString)) - return OID_1_4; + return _1_4; if ("1.4.0".equals(codeString)) - return OID_1_4_0; + return _1_4_0; if ("1.6".equals(codeString)) - return OID_1_6; + return _1_6; if ("1.6.0".equals(codeString)) - return OID_1_6_0; + return _1_6_0; if ("1.8".equals(codeString)) - return OID_1_8; + return _1_8; if ("1.8.0".equals(codeString)) - return OID_1_8_0; + return _1_8_0; if ("3.0".equals(codeString)) return _3_0; if ("3.0.0".equals(codeString)) @@ -12810,27 +12810,27 @@ The primary difference between a medicationusage and a medicationadministration case _0_01: return "0.01"; case _0_05: return "0.05"; case _0_06: return "0.06"; - case OID_0_11: return "0.11"; - case OID_0_0: return "0.0"; - case OID_0_0_80: return "0.0.80"; - case OID_0_0_81: return "0.0.81"; - case OID_0_0_82: return "0.0.82"; - case OID_0_4: return "0.4"; - case OID_0_4_0: return "0.4.0"; - case OID_0_5: return "0.5"; - case OID_0_5_0: return "0.5.0"; - case OID_1_0: return "1.0"; - case OID_1_0_0: return "1.0.0"; - case OID_1_0_1: return "1.0.1"; - case OID_1_0_2: return "1.0.2"; - case OID_1_1: return "1.1"; - case OID_1_1_0: return "1.1.0"; - case OID_1_4: return "1.4"; - case OID_1_4_0: return "1.4.0"; - case OID_1_6: return "1.6"; - case OID_1_6_0: return "1.6.0"; - case OID_1_8: return "1.8"; - case OID_1_8_0: return "1.8.0"; + case _0_11: return "0.11"; + case _0_0: return "0.0"; + case _0_0_80: return "0.0.80"; + case _0_0_81: return "0.0.81"; + case _0_0_82: return "0.0.82"; + case _0_4: return "0.4"; + case _0_4_0: return "0.4.0"; + case _0_5: return "0.5"; + case _0_5_0: return "0.5.0"; + case _1_0: return "1.0"; + case _1_0_0: return "1.0.0"; + case _1_0_1: return "1.0.1"; + case _1_0_2: return "1.0.2"; + case _1_1: return "1.1"; + case _1_1_0: return "1.1.0"; + case _1_4: return "1.4"; + case _1_4_0: return "1.4.0"; + case _1_6: return "1.6"; + case _1_6_0: return "1.6.0"; + case _1_8: return "1.8"; + case _1_8_0: return "1.8.0"; case _3_0: return "3.0"; case _3_0_0: return "3.0.0"; case _3_0_1: return "3.0.1"; @@ -12869,27 +12869,27 @@ The primary difference between a medicationusage and a medicationadministration case _0_01: return "http://hl7.org/fhir/FHIR-version"; case _0_05: return "http://hl7.org/fhir/FHIR-version"; case _0_06: return "http://hl7.org/fhir/FHIR-version"; - case OID_0_11: return "http://hl7.org/fhir/FHIR-version"; - case OID_0_0: return "http://hl7.org/fhir/FHIR-version"; - case OID_0_0_80: return "http://hl7.org/fhir/FHIR-version"; - case OID_0_0_81: return "http://hl7.org/fhir/FHIR-version"; - case OID_0_0_82: return "http://hl7.org/fhir/FHIR-version"; - case OID_0_4: return "http://hl7.org/fhir/FHIR-version"; - case OID_0_4_0: return "http://hl7.org/fhir/FHIR-version"; - case OID_0_5: return "http://hl7.org/fhir/FHIR-version"; - case OID_0_5_0: return "http://hl7.org/fhir/FHIR-version"; - case OID_1_0: return "http://hl7.org/fhir/FHIR-version"; - case OID_1_0_0: return "http://hl7.org/fhir/FHIR-version"; - case OID_1_0_1: return "http://hl7.org/fhir/FHIR-version"; - case OID_1_0_2: return "http://hl7.org/fhir/FHIR-version"; - case OID_1_1: return "http://hl7.org/fhir/FHIR-version"; - case OID_1_1_0: return "http://hl7.org/fhir/FHIR-version"; - case OID_1_4: return "http://hl7.org/fhir/FHIR-version"; - case OID_1_4_0: return "http://hl7.org/fhir/FHIR-version"; - case OID_1_6: return "http://hl7.org/fhir/FHIR-version"; - case OID_1_6_0: return "http://hl7.org/fhir/FHIR-version"; - case OID_1_8: return "http://hl7.org/fhir/FHIR-version"; - case OID_1_8_0: return "http://hl7.org/fhir/FHIR-version"; + case _0_11: return "http://hl7.org/fhir/FHIR-version"; + case _0_0: return "http://hl7.org/fhir/FHIR-version"; + case _0_0_80: return "http://hl7.org/fhir/FHIR-version"; + case _0_0_81: return "http://hl7.org/fhir/FHIR-version"; + case _0_0_82: return "http://hl7.org/fhir/FHIR-version"; + case _0_4: return "http://hl7.org/fhir/FHIR-version"; + case _0_4_0: return "http://hl7.org/fhir/FHIR-version"; + case _0_5: return "http://hl7.org/fhir/FHIR-version"; + case _0_5_0: return "http://hl7.org/fhir/FHIR-version"; + case _1_0: return "http://hl7.org/fhir/FHIR-version"; + case _1_0_0: return "http://hl7.org/fhir/FHIR-version"; + case _1_0_1: return "http://hl7.org/fhir/FHIR-version"; + case _1_0_2: return "http://hl7.org/fhir/FHIR-version"; + case _1_1: return "http://hl7.org/fhir/FHIR-version"; + case _1_1_0: return "http://hl7.org/fhir/FHIR-version"; + case _1_4: return "http://hl7.org/fhir/FHIR-version"; + case _1_4_0: return "http://hl7.org/fhir/FHIR-version"; + case _1_6: return "http://hl7.org/fhir/FHIR-version"; + case _1_6_0: return "http://hl7.org/fhir/FHIR-version"; + case _1_8: return "http://hl7.org/fhir/FHIR-version"; + case _1_8_0: return "http://hl7.org/fhir/FHIR-version"; case _3_0: return "http://hl7.org/fhir/FHIR-version"; case _3_0_0: return "http://hl7.org/fhir/FHIR-version"; case _3_0_1: return "http://hl7.org/fhir/FHIR-version"; @@ -12928,27 +12928,27 @@ The primary difference between a medicationusage and a medicationadministration case _0_01: return "Oldest archived version of FHIR."; case _0_05: return "1st Draft for Comment (Sept 2012 Ballot)."; case _0_06: return "2nd Draft for Comment (January 2013 Ballot)."; - case OID_0_11: return "DSTU 1 Ballot version."; - case OID_0_0: return "DSTU 1 version."; - case OID_0_0_80: return "DSTU 1 Official version."; - case OID_0_0_81: return "DSTU 1 Official version Technical Errata #1."; - case OID_0_0_82: return "DSTU 1 Official version Technical Errata #2."; - case OID_0_4: return "January 2015 Ballot."; - case OID_0_4_0: return "Draft For Comment (January 2015 Ballot)."; - case OID_0_5: return "May 2015 Ballot."; - case OID_0_5_0: return "DSTU 2 Ballot version (May 2015 Ballot)."; - case OID_1_0: return "DSTU 2 version."; - case OID_1_0_0: return "DSTU 2 QA Preview + CQIF Ballot (Sep 2015)."; - case OID_1_0_1: return "DSTU 2 (Official version)."; - case OID_1_0_2: return "DSTU 2 (Official version) with 1 technical errata."; - case OID_1_1: return "GAO Ballot version."; - case OID_1_1_0: return "GAO Ballot + draft changes to main FHIR standard."; - case OID_1_4: return "Connectathon 12 (Montreal) version."; - case OID_1_4_0: return "CQF on FHIR Ballot + Connectathon 12 (Montreal)."; - case OID_1_6: return "Connectathon 13 (Baltimore) version."; - case OID_1_6_0: return "FHIR STU3 Ballot + Connectathon 13 (Baltimore)."; - case OID_1_8: return "Connectathon 14 (San Antonio) version."; - case OID_1_8_0: return "FHIR STU3 Candidate + Connectathon 14 (San Antonio)."; + case _0_11: return "DSTU 1 Ballot version."; + case _0_0: return "DSTU 1 version."; + case _0_0_80: return "DSTU 1 Official version."; + case _0_0_81: return "DSTU 1 Official version Technical Errata #1."; + case _0_0_82: return "DSTU 1 Official version Technical Errata #2."; + case _0_4: return "January 2015 Ballot."; + case _0_4_0: return "Draft For Comment (January 2015 Ballot)."; + case _0_5: return "May 2015 Ballot."; + case _0_5_0: return "DSTU 2 Ballot version (May 2015 Ballot)."; + case _1_0: return "DSTU 2 version."; + case _1_0_0: return "DSTU 2 QA Preview + CQIF Ballot (Sep 2015)."; + case _1_0_1: return "DSTU 2 (Official version)."; + case _1_0_2: return "DSTU 2 (Official version) with 1 technical errata."; + case _1_1: return "GAO Ballot version."; + case _1_1_0: return "GAO Ballot + draft changes to main FHIR standard."; + case _1_4: return "Connectathon 12 (Montreal) version."; + case _1_4_0: return "CQF on FHIR Ballot + Connectathon 12 (Montreal)."; + case _1_6: return "Connectathon 13 (Baltimore) version."; + case _1_6_0: return "FHIR STU3 Ballot + Connectathon 13 (Baltimore)."; + case _1_8: return "Connectathon 14 (San Antonio) version."; + case _1_8_0: return "FHIR STU3 Candidate + Connectathon 14 (San Antonio)."; case _3_0: return "STU3 version."; case _3_0_0: return "FHIR Release 3 (STU)."; case _3_0_1: return "FHIR Release 3 (STU) with 1 technical errata."; @@ -12987,27 +12987,27 @@ The primary difference between a medicationusage and a medicationadministration case _0_01: return "0.01"; case _0_05: return "0.05"; case _0_06: return "0.06"; - case OID_0_11: return "0.11"; - case OID_0_0: return "0.0"; - case OID_0_0_80: return "0.0.80"; - case OID_0_0_81: return "0.0.81"; - case OID_0_0_82: return "0.0.82"; - case OID_0_4: return "0.4"; - case OID_0_4_0: return "0.4.0"; - case OID_0_5: return "0.5"; - case OID_0_5_0: return "0.5.0"; - case OID_1_0: return "1.0"; - case OID_1_0_0: return "1.0.0"; - case OID_1_0_1: return "1.0.1"; - case OID_1_0_2: return "1.0.2"; - case OID_1_1: return "1.1"; - case OID_1_1_0: return "1.1.0"; - case OID_1_4: return "1.4"; - case OID_1_4_0: return "1.4.0"; - case OID_1_6: return "1.6"; - case OID_1_6_0: return "1.6.0"; - case OID_1_8: return "1.8"; - case OID_1_8_0: return "1.8.0"; + case _0_11: return "0.11"; + case _0_0: return "0.0"; + case _0_0_80: return "0.0.80"; + case _0_0_81: return "0.0.81"; + case _0_0_82: return "0.0.82"; + case _0_4: return "0.4"; + case _0_4_0: return "0.4.0"; + case _0_5: return "0.5"; + case _0_5_0: return "0.5.0"; + case _1_0: return "1.0"; + case _1_0_0: return "1.0.0"; + case _1_0_1: return "1.0.1"; + case _1_0_2: return "1.0.2"; + case _1_1: return "1.1"; + case _1_1_0: return "1.1.0"; + case _1_4: return "1.4"; + case _1_4_0: return "1.4.0"; + case _1_6: return "1.6"; + case _1_6_0: return "1.6.0"; + case _1_8: return "1.8"; + case _1_8_0: return "1.8.0"; case _3_0: return "3.0"; case _3_0_0: return "3.0.0"; case _3_0_1: return "3.0.1"; @@ -13072,47 +13072,47 @@ The primary difference between a medicationusage and a medicationadministration if ("0.06".equals(codeString)) return FHIRVersion._0_06; if ("0.11".equals(codeString)) - return FHIRVersion.OID_0_11; + return FHIRVersion._0_11; if ("0.0".equals(codeString)) - return FHIRVersion.OID_0_0; + return FHIRVersion._0_0; if ("0.0.80".equals(codeString)) - return FHIRVersion.OID_0_0_80; + return FHIRVersion._0_0_80; if ("0.0.81".equals(codeString)) - return FHIRVersion.OID_0_0_81; + return FHIRVersion._0_0_81; if ("0.0.82".equals(codeString)) - return FHIRVersion.OID_0_0_82; + return FHIRVersion._0_0_82; if ("0.4".equals(codeString)) - return FHIRVersion.OID_0_4; + return FHIRVersion._0_4; if ("0.4.0".equals(codeString)) - return FHIRVersion.OID_0_4_0; + return FHIRVersion._0_4_0; if ("0.5".equals(codeString)) - return FHIRVersion.OID_0_5; + return FHIRVersion._0_5; if ("0.5.0".equals(codeString)) - return FHIRVersion.OID_0_5_0; + return FHIRVersion._0_5_0; if ("1.0".equals(codeString)) - return FHIRVersion.OID_1_0; + return FHIRVersion._1_0; if ("1.0.0".equals(codeString)) - return FHIRVersion.OID_1_0_0; + return FHIRVersion._1_0_0; if ("1.0.1".equals(codeString)) - return FHIRVersion.OID_1_0_1; + return FHIRVersion._1_0_1; if ("1.0.2".equals(codeString)) - return FHIRVersion.OID_1_0_2; + return FHIRVersion._1_0_2; if ("1.1".equals(codeString)) - return FHIRVersion.OID_1_1; + return FHIRVersion._1_1; if ("1.1.0".equals(codeString)) - return FHIRVersion.OID_1_1_0; + return FHIRVersion._1_1_0; if ("1.4".equals(codeString)) - return FHIRVersion.OID_1_4; + return FHIRVersion._1_4; if ("1.4.0".equals(codeString)) - return FHIRVersion.OID_1_4_0; + return FHIRVersion._1_4_0; if ("1.6".equals(codeString)) - return FHIRVersion.OID_1_6; + return FHIRVersion._1_6; if ("1.6.0".equals(codeString)) - return FHIRVersion.OID_1_6_0; + return FHIRVersion._1_6_0; if ("1.8".equals(codeString)) - return FHIRVersion.OID_1_8; + return FHIRVersion._1_8; if ("1.8.0".equals(codeString)) - return FHIRVersion.OID_1_8_0; + return FHIRVersion._1_8_0; if ("3.0".equals(codeString)) return FHIRVersion._3_0; if ("3.0.0".equals(codeString)) @@ -13188,47 +13188,47 @@ The primary difference between a medicationusage and a medicationadministration if ("0.06".equals(codeString)) return new Enumeration(this, FHIRVersion._0_06); if ("0.11".equals(codeString)) - return new Enumeration(this, FHIRVersion.OID_0_11); + return new Enumeration(this, FHIRVersion._0_11); if ("0.0".equals(codeString)) - return new Enumeration(this, FHIRVersion.OID_0_0); + return new Enumeration(this, FHIRVersion._0_0); if ("0.0.80".equals(codeString)) - return new Enumeration(this, FHIRVersion.OID_0_0_80); + return new Enumeration(this, FHIRVersion._0_0_80); if ("0.0.81".equals(codeString)) - return new Enumeration(this, FHIRVersion.OID_0_0_81); + return new Enumeration(this, FHIRVersion._0_0_81); if ("0.0.82".equals(codeString)) - return new Enumeration(this, FHIRVersion.OID_0_0_82); + return new Enumeration(this, FHIRVersion._0_0_82); if ("0.4".equals(codeString)) - return new Enumeration(this, FHIRVersion.OID_0_4); + return new Enumeration(this, FHIRVersion._0_4); if ("0.4.0".equals(codeString)) - return new Enumeration(this, FHIRVersion.OID_0_4_0); + return new Enumeration(this, FHIRVersion._0_4_0); if ("0.5".equals(codeString)) - return new Enumeration(this, FHIRVersion.OID_0_5); + return new Enumeration(this, FHIRVersion._0_5); if ("0.5.0".equals(codeString)) - return new Enumeration(this, FHIRVersion.OID_0_5_0); + return new Enumeration(this, FHIRVersion._0_5_0); if ("1.0".equals(codeString)) - return new Enumeration(this, FHIRVersion.OID_1_0); + return new Enumeration(this, FHIRVersion._1_0); if ("1.0.0".equals(codeString)) - return new Enumeration(this, FHIRVersion.OID_1_0_0); + return new Enumeration(this, FHIRVersion._1_0_0); if ("1.0.1".equals(codeString)) - return new Enumeration(this, FHIRVersion.OID_1_0_1); + return new Enumeration(this, FHIRVersion._1_0_1); if ("1.0.2".equals(codeString)) - return new Enumeration(this, FHIRVersion.OID_1_0_2); + return new Enumeration(this, FHIRVersion._1_0_2); if ("1.1".equals(codeString)) - return new Enumeration(this, FHIRVersion.OID_1_1); + return new Enumeration(this, FHIRVersion._1_1); if ("1.1.0".equals(codeString)) - return new Enumeration(this, FHIRVersion.OID_1_1_0); + return new Enumeration(this, FHIRVersion._1_1_0); if ("1.4".equals(codeString)) - return new Enumeration(this, FHIRVersion.OID_1_4); + return new Enumeration(this, FHIRVersion._1_4); if ("1.4.0".equals(codeString)) - return new Enumeration(this, FHIRVersion.OID_1_4_0); + return new Enumeration(this, FHIRVersion._1_4_0); if ("1.6".equals(codeString)) - return new Enumeration(this, FHIRVersion.OID_1_6); + return new Enumeration(this, FHIRVersion._1_6); if ("1.6.0".equals(codeString)) - return new Enumeration(this, FHIRVersion.OID_1_6_0); + return new Enumeration(this, FHIRVersion._1_6_0); if ("1.8".equals(codeString)) - return new Enumeration(this, FHIRVersion.OID_1_8); + return new Enumeration(this, FHIRVersion._1_8); if ("1.8.0".equals(codeString)) - return new Enumeration(this, FHIRVersion.OID_1_8_0); + return new Enumeration(this, FHIRVersion._1_8_0); if ("3.0".equals(codeString)) return new Enumeration(this, FHIRVersion._3_0); if ("3.0.0".equals(codeString)) @@ -13296,47 +13296,47 @@ The primary difference between a medicationusage and a medicationadministration return "0.05"; if (code == FHIRVersion._0_06) return "0.06"; - if (code == FHIRVersion.OID_0_11) + if (code == FHIRVersion._0_11) return "0.11"; - if (code == FHIRVersion.OID_0_0) + if (code == FHIRVersion._0_0) return "0.0"; - if (code == FHIRVersion.OID_0_0_80) + if (code == FHIRVersion._0_0_80) return "0.0.80"; - if (code == FHIRVersion.OID_0_0_81) + if (code == FHIRVersion._0_0_81) return "0.0.81"; - if (code == FHIRVersion.OID_0_0_82) + if (code == FHIRVersion._0_0_82) return "0.0.82"; - if (code == FHIRVersion.OID_0_4) + if (code == FHIRVersion._0_4) return "0.4"; - if (code == FHIRVersion.OID_0_4_0) + if (code == FHIRVersion._0_4_0) return "0.4.0"; - if (code == FHIRVersion.OID_0_5) + if (code == FHIRVersion._0_5) return "0.5"; - if (code == FHIRVersion.OID_0_5_0) + if (code == FHIRVersion._0_5_0) return "0.5.0"; - if (code == FHIRVersion.OID_1_0) + if (code == FHIRVersion._1_0) return "1.0"; - if (code == FHIRVersion.OID_1_0_0) + if (code == FHIRVersion._1_0_0) return "1.0.0"; - if (code == FHIRVersion.OID_1_0_1) + if (code == FHIRVersion._1_0_1) return "1.0.1"; - if (code == FHIRVersion.OID_1_0_2) + if (code == FHIRVersion._1_0_2) return "1.0.2"; - if (code == FHIRVersion.OID_1_1) + if (code == FHIRVersion._1_1) return "1.1"; - if (code == FHIRVersion.OID_1_1_0) + if (code == FHIRVersion._1_1_0) return "1.1.0"; - if (code == FHIRVersion.OID_1_4) + if (code == FHIRVersion._1_4) return "1.4"; - if (code == FHIRVersion.OID_1_4_0) + if (code == FHIRVersion._1_4_0) return "1.4.0"; - if (code == FHIRVersion.OID_1_6) + if (code == FHIRVersion._1_6) return "1.6"; - if (code == FHIRVersion.OID_1_6_0) + if (code == FHIRVersion._1_6_0) return "1.6.0"; - if (code == FHIRVersion.OID_1_8) + if (code == FHIRVersion._1_8) return "1.8"; - if (code == FHIRVersion.OID_1_8_0) + if (code == FHIRVersion._1_8_0) return "1.8.0"; if (code == FHIRVersion._3_0) return "3.0"; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Requirements.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Requirements.java index c5438381c..abd8c8b6e 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Requirements.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Requirements.java @@ -200,10 +200,10 @@ public class Requirements extends CanonicalResource { /** * A short human usable label for this statement. */ - @Child(name = "conformance", type = {CodeType.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Child(name = "conformance", type = {CodeType.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="SHALL | SHOULD | MAY | SHOULD-NOT", formalDefinition="A short human usable label for this statement." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/conformance-expectation") - protected Enumeration conformance; + protected List> conformance; /** * The actual requirement for human consumption. @@ -230,17 +230,17 @@ public class Requirements extends CanonicalResource { * A reference to another artifact that created this requirement. This could be a Profile, etc, or external regulation, or business requirements expressed elsewhere. */ @Child(name = "reference", type = {UrlType.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Design artifact that creates this requirement", formalDefinition="A reference to another artifact that created this requirement. This could be a Profile, etc, or external regulation, or business requirements expressed elsewhere." ) + @Description(shortDefinition="External artifact (rule/document etc that) created this requirement", formalDefinition="A reference to another artifact that created this requirement. This could be a Profile, etc, or external regulation, or business requirements expressed elsewhere." ) protected List reference; /** * Who asked for this statement to be a requirement. By default, it's assumed that the publisher knows who it is if it matters. */ - @Child(name = "source", type = {Patient.class, RelatedPerson.class, Practitioner.class, Organization.class, CareTeam.class, Group.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "source", type = {Practitioner.class, Organization.class, CareTeam.class, Group.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Who asked for this statement", formalDefinition="Who asked for this statement to be a requirement. By default, it's assumed that the publisher knows who it is if it matters." ) protected List source; - private static final long serialVersionUID = 456033856L; + private static final long serialVersionUID = -811662792L; /** * Constructor @@ -353,52 +353,64 @@ public class Requirements extends CanonicalResource { } /** - * @return {@link #conformance} (A short human usable label for this statement.). This is the underlying object with id, value and extensions. The accessor "getConformance" gives direct access to the value + * @return {@link #conformance} (A short human usable label for this statement.) */ - public Enumeration getConformanceElement() { + public List> getConformance() { if (this.conformance == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create RequirementsStatementComponent.conformance"); - else if (Configuration.doAutoCreate()) - this.conformance = new Enumeration(new ConformanceExpectationEnumFactory()); // bb + this.conformance = new ArrayList>(); return this.conformance; } - public boolean hasConformanceElement() { - return this.conformance != null && !this.conformance.isEmpty(); + /** + * @return Returns a reference to this for easy method chaining + */ + public RequirementsStatementComponent setConformance(List> theConformance) { + this.conformance = theConformance; + return this; } public boolean hasConformance() { - return this.conformance != null && !this.conformance.isEmpty(); + if (this.conformance == null) + return false; + for (Enumeration item : this.conformance) + if (!item.isEmpty()) + return true; + return false; } /** - * @param value {@link #conformance} (A short human usable label for this statement.). This is the underlying object with id, value and extensions. The accessor "getConformance" gives direct access to the value + * @return {@link #conformance} (A short human usable label for this statement.) */ - public RequirementsStatementComponent setConformanceElement(Enumeration value) { - this.conformance = value; + public Enumeration addConformanceElement() {//2 + Enumeration t = new Enumeration(new ConformanceExpectationEnumFactory()); + if (this.conformance == null) + this.conformance = new ArrayList>(); + this.conformance.add(t); + return t; + } + + /** + * @param value {@link #conformance} (A short human usable label for this statement.) + */ + public RequirementsStatementComponent addConformance(ConformanceExpectation value) { //1 + Enumeration t = new Enumeration(new ConformanceExpectationEnumFactory()); + t.setValue(value); + if (this.conformance == null) + this.conformance = new ArrayList>(); + this.conformance.add(t); return this; } /** - * @return A short human usable label for this statement. + * @param value {@link #conformance} (A short human usable label for this statement.) */ - public ConformanceExpectation getConformance() { - return this.conformance == null ? null : this.conformance.getValue(); - } - - /** - * @param value A short human usable label for this statement. - */ - public RequirementsStatementComponent setConformance(ConformanceExpectation value) { - if (value == null) - this.conformance = null; - else { + public boolean hasConformance(ConformanceExpectation value) { if (this.conformance == null) - this.conformance = new Enumeration(new ConformanceExpectationEnumFactory()); - this.conformance.setValue(value); - } - return this; + return false; + for (Enumeration v : this.conformance) + if (v.getValue().equals(value)) // code + return true; + return false; } /** @@ -674,12 +686,12 @@ public class Requirements extends CanonicalResource { super.listChildren(children); children.add(new Property("key", "id", "Key that identifies this statement (unique within this resource).", 0, 1, key)); children.add(new Property("label", "string", "A short human usable label for this statement.", 0, 1, label)); - children.add(new Property("conformance", "code", "A short human usable label for this statement.", 0, 1, conformance)); + children.add(new Property("conformance", "code", "A short human usable label for this statement.", 0, java.lang.Integer.MAX_VALUE, conformance)); children.add(new Property("requirement", "markdown", "The actual requirement for human consumption.", 0, 1, requirement)); children.add(new Property("derivedFrom", "string", "Another statement on one of the requirements that this requirement clarifies or restricts.", 0, 1, derivedFrom)); children.add(new Property("satisfiedBy", "url", "A reference to another artifact that satisfies this requirement. This could be a Profile, extension, or an element in one of those, or a CapabilityStatement, OperationDefinition, SearchParameter, CodeSystem(/code), ValueSet, Libary etc.", 0, java.lang.Integer.MAX_VALUE, satisfiedBy)); children.add(new Property("reference", "url", "A reference to another artifact that created this requirement. This could be a Profile, etc, or external regulation, or business requirements expressed elsewhere.", 0, java.lang.Integer.MAX_VALUE, reference)); - children.add(new Property("source", "Reference(Patient|RelatedPerson|Practitioner|Organization|CareTeam|Group)", "Who asked for this statement to be a requirement. By default, it's assumed that the publisher knows who it is if it matters.", 0, java.lang.Integer.MAX_VALUE, source)); + children.add(new Property("source", "Reference(Practitioner|Organization|CareTeam|Group)", "Who asked for this statement to be a requirement. By default, it's assumed that the publisher knows who it is if it matters.", 0, java.lang.Integer.MAX_VALUE, source)); } @Override @@ -687,12 +699,12 @@ public class Requirements extends CanonicalResource { switch (_hash) { case 106079: /*key*/ return new Property("key", "id", "Key that identifies this statement (unique within this resource).", 0, 1, key); case 102727412: /*label*/ return new Property("label", "string", "A short human usable label for this statement.", 0, 1, label); - case 1374858133: /*conformance*/ return new Property("conformance", "code", "A short human usable label for this statement.", 0, 1, conformance); + case 1374858133: /*conformance*/ return new Property("conformance", "code", "A short human usable label for this statement.", 0, java.lang.Integer.MAX_VALUE, conformance); case 363387971: /*requirement*/ return new Property("requirement", "markdown", "The actual requirement for human consumption.", 0, 1, requirement); case 1077922663: /*derivedFrom*/ return new Property("derivedFrom", "string", "Another statement on one of the requirements that this requirement clarifies or restricts.", 0, 1, derivedFrom); case -1268787159: /*satisfiedBy*/ return new Property("satisfiedBy", "url", "A reference to another artifact that satisfies this requirement. This could be a Profile, extension, or an element in one of those, or a CapabilityStatement, OperationDefinition, SearchParameter, CodeSystem(/code), ValueSet, Libary etc.", 0, java.lang.Integer.MAX_VALUE, satisfiedBy); case -925155509: /*reference*/ return new Property("reference", "url", "A reference to another artifact that created this requirement. This could be a Profile, etc, or external regulation, or business requirements expressed elsewhere.", 0, java.lang.Integer.MAX_VALUE, reference); - case -896505829: /*source*/ return new Property("source", "Reference(Patient|RelatedPerson|Practitioner|Organization|CareTeam|Group)", "Who asked for this statement to be a requirement. By default, it's assumed that the publisher knows who it is if it matters.", 0, java.lang.Integer.MAX_VALUE, source); + case -896505829: /*source*/ return new Property("source", "Reference(Practitioner|Organization|CareTeam|Group)", "Who asked for this statement to be a requirement. By default, it's assumed that the publisher knows who it is if it matters.", 0, java.lang.Integer.MAX_VALUE, source); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -703,7 +715,7 @@ public class Requirements extends CanonicalResource { switch (hash) { case 106079: /*key*/ return this.key == null ? new Base[0] : new Base[] {this.key}; // IdType case 102727412: /*label*/ return this.label == null ? new Base[0] : new Base[] {this.label}; // StringType - case 1374858133: /*conformance*/ return this.conformance == null ? new Base[0] : new Base[] {this.conformance}; // Enumeration + case 1374858133: /*conformance*/ return this.conformance == null ? new Base[0] : this.conformance.toArray(new Base[this.conformance.size()]); // Enumeration case 363387971: /*requirement*/ return this.requirement == null ? new Base[0] : new Base[] {this.requirement}; // MarkdownType case 1077922663: /*derivedFrom*/ return this.derivedFrom == null ? new Base[0] : new Base[] {this.derivedFrom}; // StringType case -1268787159: /*satisfiedBy*/ return this.satisfiedBy == null ? new Base[0] : this.satisfiedBy.toArray(new Base[this.satisfiedBy.size()]); // UrlType @@ -725,7 +737,7 @@ public class Requirements extends CanonicalResource { return value; case 1374858133: // conformance value = new ConformanceExpectationEnumFactory().fromType(TypeConvertor.castToCode(value)); - this.conformance = (Enumeration) value; // Enumeration + this.getConformance().add((Enumeration) value); // Enumeration return value; case 363387971: // requirement this.requirement = TypeConvertor.castToMarkdown(value); // MarkdownType @@ -755,7 +767,7 @@ public class Requirements extends CanonicalResource { this.label = TypeConvertor.castToString(value); // StringType } else if (name.equals("conformance")) { value = new ConformanceExpectationEnumFactory().fromType(TypeConvertor.castToCode(value)); - this.conformance = (Enumeration) value; // Enumeration + this.getConformance().add((Enumeration) value); } else if (name.equals("requirement")) { this.requirement = TypeConvertor.castToMarkdown(value); // MarkdownType } else if (name.equals("derivedFrom")) { @@ -776,7 +788,7 @@ public class Requirements extends CanonicalResource { switch (hash) { case 106079: return getKeyElement(); case 102727412: return getLabelElement(); - case 1374858133: return getConformanceElement(); + case 1374858133: return addConformanceElement(); case 363387971: return getRequirementElement(); case 1077922663: return getDerivedFromElement(); case -1268787159: return addSatisfiedByElement(); @@ -843,7 +855,11 @@ public class Requirements extends CanonicalResource { super.copyValues(dst); dst.key = key == null ? null : key.copy(); dst.label = label == null ? null : label.copy(); - dst.conformance = conformance == null ? null : conformance.copy(); + if (conformance != null) { + dst.conformance = new ArrayList>(); + for (Enumeration i : conformance) + dst.conformance.add(i.copy()); + }; dst.requirement = requirement == null ? null : requirement.copy(); dst.derivedFrom = derivedFrom == null ? null : derivedFrom.copy(); if (satisfiedBy != null) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SearchParameter.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SearchParameter.java index 1e6b4977a..675369187 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SearchParameter.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SearchParameter.java @@ -1050,7 +1050,7 @@ public class SearchParameter extends CanonicalResource { @Child(name = "base", type = {CodeType.class}, order=16, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="The resource type(s) this search parameter applies to", formalDefinition="The base resource type(s) that this search parameter can be used against." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/all-resource-types") - protected List> base; + protected List base; /** * The type of value that a search parameter may contain, and how the content is interpreted. @@ -1146,7 +1146,7 @@ public class SearchParameter extends CanonicalResource { /** * Constructor */ - public SearchParameter(String url, String name, PublicationStatus status, String description, String code, AllResourceTypes base, SearchParamType type) { + public SearchParameter(String url, String name, PublicationStatus status, String description, String code, String base, SearchParamType type) { super(); this.setUrl(url); this.setName(name); @@ -1934,16 +1934,16 @@ public class SearchParameter extends CanonicalResource { /** * @return {@link #base} (The base resource type(s) that this search parameter can be used against.) */ - public List> getBase() { + public List getBase() { if (this.base == null) - this.base = new ArrayList>(); + this.base = new ArrayList(); return this.base; } /** * @return Returns a reference to this for easy method chaining */ - public SearchParameter setBase(List> theBase) { + public SearchParameter setBase(List theBase) { this.base = theBase; return this; } @@ -1951,7 +1951,7 @@ public class SearchParameter extends CanonicalResource { public boolean hasBase() { if (this.base == null) return false; - for (Enumeration item : this.base) + for (CodeType item : this.base) if (!item.isEmpty()) return true; return false; @@ -1960,10 +1960,10 @@ public class SearchParameter extends CanonicalResource { /** * @return {@link #base} (The base resource type(s) that this search parameter can be used against.) */ - public Enumeration addBaseElement() {//2 - Enumeration t = new Enumeration(new AllResourceTypesEnumFactory()); + public CodeType addBaseElement() {//2 + CodeType t = new CodeType(); if (this.base == null) - this.base = new ArrayList>(); + this.base = new ArrayList(); this.base.add(t); return t; } @@ -1971,11 +1971,11 @@ public class SearchParameter extends CanonicalResource { /** * @param value {@link #base} (The base resource type(s) that this search parameter can be used against.) */ - public SearchParameter addBase(AllResourceTypes value) { //1 - Enumeration t = new Enumeration(new AllResourceTypesEnumFactory()); - t.setValue(value); + public SearchParameter addBase(String code) { //1 + CodeType t = new CodeType(); + t.setValue(code); if (this.base == null) - this.base = new ArrayList>(); + this.base = new ArrayList(); this.base.add(t); return this; } @@ -1983,11 +1983,11 @@ public class SearchParameter extends CanonicalResource { /** * @param value {@link #base} (The base resource type(s) that this search parameter can be used against.) */ - public boolean hasBase(AllResourceTypes value) { + public boolean hasBase(String code) { if (this.base == null) return false; - for (Enumeration v : this.base) - if (v.getValue().equals(value)) // code + for (CodeType v : this.base) + if (v.getValue().equals(code)) // code return true; return false; } @@ -2838,8 +2838,8 @@ public class SearchParameter extends CanonicalResource { this.code = TypeConvertor.castToCode(value); // CodeType return value; case 3016401: // base - value = new AllResourceTypesEnumFactory().fromType(TypeConvertor.castToCode(value)); - this.getBase().add((Enumeration) value); // Enumeration + value = TypeConvertor.castToCode(value); + this.getBase().add((CodeType) value); // Enumeration return value; case 3575610: // type value = new SearchParamTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); @@ -2919,8 +2919,8 @@ public class SearchParameter extends CanonicalResource { } else if (name.equals("code")) { this.code = TypeConvertor.castToCode(value); // CodeType } else if (name.equals("base")) { - value = new AllResourceTypesEnumFactory().fromType(TypeConvertor.castToCode(value)); - this.getBase().add((Enumeration) value); + value = TypeConvertor.castToCode(value); + this.getBase().add((CodeType) value); } else if (name.equals("type")) { value = new SearchParamTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); this.type = (Enumeration) value; // Enumeration @@ -3162,8 +3162,8 @@ public class SearchParameter extends CanonicalResource { dst.purpose = purpose == null ? null : purpose.copy(); dst.code = code == null ? null : code.copy(); if (base != null) { - dst.base = new ArrayList>(); - for (Enumeration i : base) + dst.base = new ArrayList(); + for (CodeType i : base) dst.base.add(i.copy()); }; dst.type = type == null ? null : type.copy(); diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/ProfileDrivenRenderer.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/ProfileDrivenRenderer.java index 944444d6f..ba060dfe6 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/ProfileDrivenRenderer.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/ProfileDrivenRenderer.java @@ -14,6 +14,7 @@ import org.apache.commons.lang3.NotImplementedException; import org.hl7.fhir.exceptions.DefinitionException; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.exceptions.FHIRFormatError; +import org.hl7.fhir.r5.conformance.ProfileUtilities; import org.hl7.fhir.r5.formats.FormatUtilities; import org.hl7.fhir.r5.model.Address; import org.hl7.fhir.r5.model.Annotation; @@ -648,7 +649,7 @@ public class ProfileDrivenRenderer extends ResourceRenderer { return code.equals("Element") || code.equals("BackboneElement"); } - private List getChildrenForPath(List elements, String path) throws DefinitionException { + private List getChildrenForPath(StructureDefinition profile, List elements, String path) throws DefinitionException { // do we need to do a name reference substitution? for (ElementDefinition e : elements) { if (e.getPath().equals(path) && e.hasContentReference()) { @@ -666,11 +667,19 @@ public class ProfileDrivenRenderer extends ResourceRenderer { } } + ElementDefinition t = null; List results = new ArrayList(); for (ElementDefinition e : elements) { + if (e.getPath().equals(path)) { + t = e; + } if (e.getPath().startsWith(path+".") && !e.getPath().substring(path.length()+1).contains(".")) results.add(e); } + if (results.isEmpty() && t != null && t.getType().size() == 1) { + StructureDefinition tsd = context.getWorker().fetchTypeDefinition(t.getTypeFirstRep().getWorkingCode()); + return getChildrenForPath(tsd, tsd.getSnapshot().getElement(), tsd.getType()); + } return results; } @@ -681,7 +690,7 @@ public class ProfileDrivenRenderer extends ResourceRenderer { x.para().b().tx("Generated Narrative: "+profile.present()+(showCodeDetails ? " with Details" : "")); } try { - generateByProfile(rcontext.getResourceResource(), profile, rcontext.getResourceResource(), profile.getSnapshot().getElement(), profile.getSnapshot().getElement().get(0), getChildrenForPath(profile.getSnapshot().getElement(), rcontext.getResourceResource().getResourceType().toString()), x, rcontext.getResourceResource().getResourceType().toString(), showCodeDetails); + generateByProfile(rcontext.getResourceResource(), profile, rcontext.getResourceResource(), profile.getSnapshot().getElement(), profile.getSnapshot().getElement().get(0), getChildrenForPath(profile, profile.getSnapshot().getElement(), rcontext.getResourceResource().getResourceType().toString()), x, rcontext.getResourceResource().getResourceType().toString(), showCodeDetails); } catch (Exception e) { e.printStackTrace(); x.para().b().style("color: maroon").tx("Exception generating Narrative: "+e.getMessage()); @@ -730,7 +739,7 @@ public class ProfileDrivenRenderer extends ResourceRenderer { if (isExtension(p)) { hasExtensions = true; } - List grandChildren = getChildrenForPath(allElements, path+"."+p.getName()); + List grandChildren = getChildrenForPath(profile, allElements, path+"."+p.getName()); filterGrandChildren(grandChildren, path+"."+p.getName(), p); if (p.getValues().size() > 0) { if (isPrimitive(child)) { @@ -792,7 +801,7 @@ public class ProfileDrivenRenderer extends ResourceRenderer { bq.para().b().addText(isExtension(p) ? p.getStructure().present() : p.getName()); for (BaseWrapper vv : ev.getValues()) { StructureDefinition ex = context.getWorker().fetchTypeDefinition("Extension"); - List children = getChildrenForPath(ex.getSnapshot().getElement(), "Extension"); + List children = getChildrenForPath(profile, ex.getSnapshot().getElement(), "Extension"); generateByProfile(res, ex, vv, allElements, child, children, bq, "Extension", showCodeDetails, indent+1); } } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/SearchParameterRenderer.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/SearchParameterRenderer.java index 7a55dd8ef..8ccd2dd38 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/SearchParameterRenderer.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/SearchParameterRenderer.java @@ -55,7 +55,7 @@ public class SearchParameterRenderer extends TerminologyRenderer { XhtmlNode tr = tbl.tr(); tr.td().tx(Utilities.pluralize("Resource", spd.getBase().size())); XhtmlNode td = tr.td(); - for (Enumeration t : spd.getBase()) { + for (CodeType t : spd.getBase()) { StructureDefinition sd = context.getWorker().fetchTypeDefinition(t.toString()); if (sd != null && sd.hasUserData("path")) { td.ah(sd.getUserString("path")).sep(", ").tx(t.getCode()); diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/GraphQLEngine.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/GraphQLEngine.java index 277b9321f..b5e8071cc 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/GraphQLEngine.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/GraphQLEngine.java @@ -41,6 +41,7 @@ import org.hl7.fhir.r5.context.IWorkerContext; import org.hl7.fhir.r5.model.*; import org.hl7.fhir.r5.model.Bundle.BundleEntryComponent; import org.hl7.fhir.r5.model.Bundle.BundleLinkComponent; +import org.hl7.fhir.r5.model.Bundle.LinkRelationTypes; import org.hl7.fhir.utilities.Utilities; import org.hl7.fhir.utilities.graphql.Argument; import org.hl7.fhir.utilities.graphql.Argument.ArgumentListStatus; @@ -117,7 +118,7 @@ public class GraphQLEngine implements IGraphQLEngine { this.type = type; this.bnd = bnd; for (BundleLinkComponent bl : bnd.getLink()) - if (bl.getRelation().equals("self")) + if (bl.getRelation().equals(LinkRelationTypes.SELF)) map = parseURL(bl.getUrl()); } @@ -186,7 +187,7 @@ public class GraphQLEngine implements IGraphQLEngine { private Base extractLink(String _name) throws FHIRException { for (BundleLinkComponent bl : bnd.getLink()) { - if (bl.getRelation().equals(_name)) { + if (bl.getRelation().toCode().equals(_name)) { Map map = parseURL(bl.getUrl()); return new StringType(map.get("search-id")+':'+map.get("search-offset")); } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/QuestionnaireBuilder.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/QuestionnaireBuilder.java index f83a2f8be..36e8759ac 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/QuestionnaireBuilder.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/QuestionnaireBuilder.java @@ -235,7 +235,7 @@ public class QuestionnaireBuilder { questionnaire.addItem(item); item.setLinkId("meta"); item.getCode().addAll(profile.getKeyword()); - questionnaire.setId(nextId("qs")); + questionnaire.setId(nextId("qs-"+profile.getType())); } if (response != null) { diff --git a/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/test/NarrativeGenerationTests.java b/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/test/NarrativeGenerationTests.java index 42cb884eb..e373bd165 100644 --- a/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/test/NarrativeGenerationTests.java +++ b/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/test/NarrativeGenerationTests.java @@ -173,7 +173,7 @@ public class NarrativeGenerationTests { @BeforeAll public static void setUp() { - context = TestingUtilities.getSharedWorkerContext(); + context = TestingUtilities.getSharedWorkerContext("5.0.0-ballot"); } @ParameterizedTest(name = "{index}: file {0}") diff --git a/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/test/ParsingTests.java b/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/test/ParsingTests.java index de0ad27d0..5bfcff748 100644 --- a/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/test/ParsingTests.java +++ b/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/test/ParsingTests.java @@ -35,7 +35,8 @@ public class ParsingTests { public static Stream data() throws ParserConfigurationException, IOException, FHIRFormatError, SAXException { FilesystemPackageCacheManager pcm = new FilesystemPackageCacheManager(true, ToolsVersion.TOOLS_VERSION); - npm = pcm.loadPackage("hl7.fhir.r5.examples", "5.0.0"); +// npm = pcm.loadPackage("hl7.fhir.r5.examples", "5.0.0"); + npm = NpmPackage.fromPackage(TestingUtilities.loadTestResourceStream("r5", "hl7.fhir.r5.examples.tgz")); List objects = new ArrayList<>(); List names = npm.list("package"); for (String n : names) { diff --git a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/InstanceValidator.java b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/InstanceValidator.java index 4360240b3..b6cbf4cb7 100644 --- a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/InstanceValidator.java +++ b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/InstanceValidator.java @@ -3322,7 +3322,12 @@ public class InstanceValidator extends BaseValidator implements IResourceValidat private void checkSampledData(List errors, String path, Element focus, SampledData fixed, String fixedSource, boolean pattern) { checkFixedValue(errors, path + ".origin", focus.getNamedChild("origin"), fixed.getOrigin(), fixedSource, "origin", focus, pattern); - checkFixedValue(errors, path + ".period", focus.getNamedChild("period"), fixed.getPeriodElement(), fixedSource, "period", focus, pattern); + if (VersionUtilities.isR5VerOrLater(context.getVersion())) { + checkFixedValue(errors, path + ".interval", focus.getNamedChild("period"), fixed.getIntervalElement(), fixedSource, "interval", focus, pattern); + checkFixedValue(errors, path + ".intervalUnit", focus.getNamedChild("period"), fixed.getIntervalUnitElement(), fixedSource, "intervalUnit", focus, pattern); + } else { + checkFixedValue(errors, path + ".period", focus.getNamedChild("period"), fixed.getIntervalElement(), fixedSource, "period", focus, pattern); + } checkFixedValue(errors, path + ".factor", focus.getNamedChild("factor"), fixed.getFactorElement(), fixedSource, "factor", focus, pattern); checkFixedValue(errors, path + ".lowerLimit", focus.getNamedChild("lowerLimit"), fixed.getLowerLimitElement(), fixedSource, "lowerLimit", focus, pattern); checkFixedValue(errors, path + ".upperLimit", focus.getNamedChild("upperLimit"), fixed.getUpperLimitElement(), fixedSource, "upperLimit", focus, pattern);