diff --git a/org.hl7.fhir.convertors/pom.xml b/org.hl7.fhir.convertors/pom.xml
index 363482bd27..43376ef47c 100644
--- a/org.hl7.fhir.convertors/pom.xml
+++ b/org.hl7.fhir.convertors/pom.xml
@@ -86,6 +86,7 @@
xpp3
true
+
org.apache.httpcomponents
@@ -120,6 +121,12 @@
test
+
+ org.assertj
+ assertj-core
+ test
+
+
org.xerial
sqlite-jdbc
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 12df637b7f..139fea6c3c 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
@@ -14,6 +14,7 @@
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.dstu3.model.Enumerations;
import org.hl7.fhir.exceptions.FHIRException;
public class ElementDefinition10_30 {
@@ -124,17 +125,17 @@ static public org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.ElementDefinition.PropertyRepresentationEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
if (src.getValue() == null) {
- tgt.setValue(org.hl7.fhir.dstu3.model.ElementDefinition.PropertyRepresentation.NULL);
- } else {
- switch (src.getValue()) {
+ tgt.setValue(null);
+} else {
+ switch(src.getValue()) {
case XMLATTR:
- tgt.setValue(org.hl7.fhir.dstu3.model.ElementDefinition.PropertyRepresentation.XMLATTR);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.ElementDefinition.PropertyRepresentation.NULL);
- break;
- }
- }
+ tgt.setValue(ElementDefinition.PropertyRepresentation.XMLATTR);
+ break;
+ default:
+ tgt.setValue(ElementDefinition.PropertyRepresentation.NULL);
+ break;
+ }
+}
return tgt;
}
@@ -143,17 +144,17 @@ static public org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.ElementDefinition.PropertyRepresentationEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
if (src.getValue() == null) {
- tgt.setValue(org.hl7.fhir.dstu2.model.ElementDefinition.PropertyRepresentation.NULL);
- } else {
- switch (src.getValue()) {
+ tgt.setValue(null);
+} else {
+ switch(src.getValue()) {
case XMLATTR:
- tgt.setValue(org.hl7.fhir.dstu2.model.ElementDefinition.PropertyRepresentation.XMLATTR);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.ElementDefinition.PropertyRepresentation.NULL);
- break;
- }
- }
+ tgt.setValue(org.hl7.fhir.dstu2.model.ElementDefinition.PropertyRepresentation.XMLATTR);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu2.model.ElementDefinition.PropertyRepresentation.NULL);
+ break;
+ }
+}
return tgt;
}
@@ -186,23 +187,23 @@ static public org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new ElementDefinition.SlicingRulesEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
if (src.getValue() == null) {
- tgt.setValue(ElementDefinition.SlicingRules.NULL);
- } else {
- switch (src.getValue()) {
+ tgt.setValue(null);
+} else {
+ switch(src.getValue()) {
case CLOSED:
- tgt.setValue(ElementDefinition.SlicingRules.CLOSED);
- break;
- case OPEN:
- tgt.setValue(ElementDefinition.SlicingRules.OPEN);
- break;
- case OPENATEND:
- tgt.setValue(ElementDefinition.SlicingRules.OPENATEND);
- break;
- default:
- tgt.setValue(ElementDefinition.SlicingRules.NULL);
- break;
- }
- }
+ tgt.setValue(ElementDefinition.SlicingRules.CLOSED);
+ break;
+ case OPEN:
+ tgt.setValue(ElementDefinition.SlicingRules.OPEN);
+ break;
+ case OPENATEND:
+ tgt.setValue(ElementDefinition.SlicingRules.OPENATEND);
+ break;
+ default:
+ tgt.setValue(ElementDefinition.SlicingRules.NULL);
+ break;
+ }
+}
return tgt;
}
@@ -211,23 +212,23 @@ static public org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.ElementDefinition.SlicingRulesEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
if (src.getValue() == null) {
- tgt.setValue(org.hl7.fhir.dstu2.model.ElementDefinition.SlicingRules.NULL);
- } else {
- switch (src.getValue()) {
+ tgt.setValue(null);
+} else {
+ switch(src.getValue()) {
case CLOSED:
- tgt.setValue(org.hl7.fhir.dstu2.model.ElementDefinition.SlicingRules.CLOSED);
- break;
- case OPEN:
- tgt.setValue(org.hl7.fhir.dstu2.model.ElementDefinition.SlicingRules.OPEN);
- break;
- case OPENATEND:
- tgt.setValue(org.hl7.fhir.dstu2.model.ElementDefinition.SlicingRules.OPENATEND);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.ElementDefinition.SlicingRules.NULL);
- break;
- }
- }
+ tgt.setValue(org.hl7.fhir.dstu2.model.ElementDefinition.SlicingRules.CLOSED);
+ break;
+ case OPEN:
+ tgt.setValue(org.hl7.fhir.dstu2.model.ElementDefinition.SlicingRules.OPEN);
+ break;
+ case OPENATEND:
+ tgt.setValue(org.hl7.fhir.dstu2.model.ElementDefinition.SlicingRules.OPENATEND);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu2.model.ElementDefinition.SlicingRules.NULL);
+ break;
+ }
+}
return tgt;
}
@@ -280,23 +281,23 @@ static public org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new ElementDefinition.AggregationModeEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
if (src.getValue() == null) {
- tgt.setValue(ElementDefinition.AggregationMode.NULL);
- } else {
- switch (src.getValue()) {
+ tgt.setValue(null);
+} else {
+ switch(src.getValue()) {
case CONTAINED:
- tgt.setValue(ElementDefinition.AggregationMode.CONTAINED);
- break;
- case REFERENCED:
- tgt.setValue(ElementDefinition.AggregationMode.REFERENCED);
- break;
- case BUNDLED:
- tgt.setValue(ElementDefinition.AggregationMode.BUNDLED);
- break;
- default:
- tgt.setValue(ElementDefinition.AggregationMode.NULL);
- break;
- }
- }
+ tgt.setValue(ElementDefinition.AggregationMode.CONTAINED);
+ break;
+ case REFERENCED:
+ tgt.setValue(ElementDefinition.AggregationMode.REFERENCED);
+ break;
+ case BUNDLED:
+ tgt.setValue(ElementDefinition.AggregationMode.BUNDLED);
+ break;
+ default:
+ tgt.setValue(ElementDefinition.AggregationMode.NULL);
+ break;
+ }
+}
return tgt;
}
@@ -305,23 +306,23 @@ static public org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.ElementDefinition.AggregationModeEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
if (src.getValue() == null) {
- tgt.setValue(org.hl7.fhir.dstu2.model.ElementDefinition.AggregationMode.NULL);
- } else {
- switch (src.getValue()) {
+ tgt.setValue(null);
+} else {
+ switch(src.getValue()) {
case CONTAINED:
- tgt.setValue(org.hl7.fhir.dstu2.model.ElementDefinition.AggregationMode.CONTAINED);
- break;
- case REFERENCED:
- tgt.setValue(org.hl7.fhir.dstu2.model.ElementDefinition.AggregationMode.REFERENCED);
- break;
- case BUNDLED:
- tgt.setValue(org.hl7.fhir.dstu2.model.ElementDefinition.AggregationMode.BUNDLED);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.ElementDefinition.AggregationMode.NULL);
- break;
- }
- }
+ tgt.setValue(org.hl7.fhir.dstu2.model.ElementDefinition.AggregationMode.CONTAINED);
+ break;
+ case REFERENCED:
+ tgt.setValue(org.hl7.fhir.dstu2.model.ElementDefinition.AggregationMode.REFERENCED);
+ break;
+ case BUNDLED:
+ tgt.setValue(org.hl7.fhir.dstu2.model.ElementDefinition.AggregationMode.BUNDLED);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu2.model.ElementDefinition.AggregationMode.NULL);
+ break;
+ }
+}
return tgt;
}
@@ -359,20 +360,20 @@ static public org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new ElementDefinition.ConstraintSeverityEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
if (src.getValue() == null) {
- tgt.setValue(ElementDefinition.ConstraintSeverity.NULL);
- } else {
- switch (src.getValue()) {
+ tgt.setValue(null);
+} else {
+ switch(src.getValue()) {
case ERROR:
- tgt.setValue(ElementDefinition.ConstraintSeverity.ERROR);
- break;
- case WARNING:
- tgt.setValue(ElementDefinition.ConstraintSeverity.WARNING);
- break;
- default:
- tgt.setValue(ElementDefinition.ConstraintSeverity.NULL);
- break;
- }
- }
+ tgt.setValue(ElementDefinition.ConstraintSeverity.ERROR);
+ break;
+ case WARNING:
+ tgt.setValue(ElementDefinition.ConstraintSeverity.WARNING);
+ break;
+ default:
+ tgt.setValue(ElementDefinition.ConstraintSeverity.NULL);
+ break;
+ }
+}
return tgt;
}
@@ -381,20 +382,20 @@ static public org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.ElementDefinition.ConstraintSeverityEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
if (src.getValue() == null) {
- tgt.setValue(org.hl7.fhir.dstu2.model.ElementDefinition.ConstraintSeverity.NULL);
- } else {
- switch (src.getValue()) {
+ tgt.setValue(null);
+} else {
+ switch(src.getValue()) {
case ERROR:
- tgt.setValue(org.hl7.fhir.dstu2.model.ElementDefinition.ConstraintSeverity.ERROR);
- break;
- case WARNING:
- tgt.setValue(org.hl7.fhir.dstu2.model.ElementDefinition.ConstraintSeverity.WARNING);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.ElementDefinition.ConstraintSeverity.NULL);
- break;
- }
- }
+ tgt.setValue(org.hl7.fhir.dstu2.model.ElementDefinition.ConstraintSeverity.ERROR);
+ break;
+ case WARNING:
+ tgt.setValue(org.hl7.fhir.dstu2.model.ElementDefinition.ConstraintSeverity.WARNING);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu2.model.ElementDefinition.ConstraintSeverity.NULL);
+ break;
+ }
+}
return tgt;
}
@@ -425,26 +426,26 @@ static public org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.Enumerations.BindingStrengthEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
if (src.getValue() == null) {
- tgt.setValue(org.hl7.fhir.dstu3.model.Enumerations.BindingStrength.NULL);
- } else {
- switch (src.getValue()) {
+ tgt.setValue(null);
+} else {
+ switch(src.getValue()) {
case REQUIRED:
- tgt.setValue(org.hl7.fhir.dstu3.model.Enumerations.BindingStrength.REQUIRED);
- break;
- case EXTENSIBLE:
- tgt.setValue(org.hl7.fhir.dstu3.model.Enumerations.BindingStrength.EXTENSIBLE);
- break;
- case PREFERRED:
- tgt.setValue(org.hl7.fhir.dstu3.model.Enumerations.BindingStrength.PREFERRED);
- break;
- case EXAMPLE:
- tgt.setValue(org.hl7.fhir.dstu3.model.Enumerations.BindingStrength.EXAMPLE);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.Enumerations.BindingStrength.NULL);
- break;
- }
- }
+ tgt.setValue(Enumerations.BindingStrength.REQUIRED);
+ break;
+ case EXTENSIBLE:
+ tgt.setValue(Enumerations.BindingStrength.EXTENSIBLE);
+ break;
+ case PREFERRED:
+ tgt.setValue(Enumerations.BindingStrength.PREFERRED);
+ break;
+ case EXAMPLE:
+ tgt.setValue(Enumerations.BindingStrength.EXAMPLE);
+ break;
+ default:
+ tgt.setValue(Enumerations.BindingStrength.NULL);
+ break;
+ }
+}
return tgt;
}
@@ -453,26 +454,26 @@ static public org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Enumerations.BindingStrengthEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
if (src.getValue() == null) {
- tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.BindingStrength.NULL);
- } else {
- switch (src.getValue()) {
+ tgt.setValue(null);
+} else {
+ switch(src.getValue()) {
case REQUIRED:
- tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.BindingStrength.REQUIRED);
- break;
- case EXTENSIBLE:
- tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.BindingStrength.EXTENSIBLE);
- break;
- case PREFERRED:
- tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.BindingStrength.PREFERRED);
- break;
- case EXAMPLE:
- tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.BindingStrength.EXAMPLE);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.BindingStrength.NULL);
- break;
- }
- }
+ tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.BindingStrength.REQUIRED);
+ break;
+ case EXTENSIBLE:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.BindingStrength.EXTENSIBLE);
+ break;
+ case PREFERRED:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.BindingStrength.PREFERRED);
+ break;
+ case EXAMPLE:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.BindingStrength.EXAMPLE);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.BindingStrength.NULL);
+ break;
+ }
+}
return tgt;
}
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/Narrative10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/Narrative10_30.java
index 3890ad3012..74d1845ad8 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/Narrative10_30.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/Narrative10_30.java
@@ -1,6 +1,7 @@
package org.hl7.fhir.convertors.conv10_30.datatypes10_30;
import org.hl7.fhir.convertors.context.ConversionContext10_30;
+import org.hl7.fhir.dstu3.model.Narrative;
import org.hl7.fhir.exceptions.FHIRException;
public class Narrative10_30 {
@@ -27,26 +28,26 @@ static public org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.Narrative.NarrativeStatusEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
if (src.getValue() == null) {
- tgt.setValue(org.hl7.fhir.dstu3.model.Narrative.NarrativeStatus.NULL);
- } else {
- switch (src.getValue()) {
+ tgt.setValue(null);
+} else {
+ switch(src.getValue()) {
case GENERATED:
- tgt.setValue(org.hl7.fhir.dstu3.model.Narrative.NarrativeStatus.GENERATED);
- break;
- case EXTENSIONS:
- tgt.setValue(org.hl7.fhir.dstu3.model.Narrative.NarrativeStatus.EXTENSIONS);
- break;
- case ADDITIONAL:
- tgt.setValue(org.hl7.fhir.dstu3.model.Narrative.NarrativeStatus.ADDITIONAL);
- break;
- case EMPTY:
- tgt.setValue(org.hl7.fhir.dstu3.model.Narrative.NarrativeStatus.EMPTY);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.Narrative.NarrativeStatus.NULL);
- break;
- }
- }
+ tgt.setValue(Narrative.NarrativeStatus.GENERATED);
+ break;
+ case EXTENSIONS:
+ tgt.setValue(Narrative.NarrativeStatus.EXTENSIONS);
+ break;
+ case ADDITIONAL:
+ tgt.setValue(Narrative.NarrativeStatus.ADDITIONAL);
+ break;
+ case EMPTY:
+ tgt.setValue(Narrative.NarrativeStatus.EMPTY);
+ break;
+ default:
+ tgt.setValue(Narrative.NarrativeStatus.NULL);
+ break;
+ }
+}
return tgt;
}
@@ -55,26 +56,26 @@ static public org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Narrative.NarrativeStatusEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
if (src.getValue() == null) {
- tgt.setValue(org.hl7.fhir.dstu2.model.Narrative.NarrativeStatus.NULL);
- } else {
- switch (src.getValue()) {
+ tgt.setValue(null);
+} else {
+ switch(src.getValue()) {
case GENERATED:
- tgt.setValue(org.hl7.fhir.dstu2.model.Narrative.NarrativeStatus.GENERATED);
- break;
- case EXTENSIONS:
- tgt.setValue(org.hl7.fhir.dstu2.model.Narrative.NarrativeStatus.EXTENSIONS);
- break;
- case ADDITIONAL:
- tgt.setValue(org.hl7.fhir.dstu2.model.Narrative.NarrativeStatus.ADDITIONAL);
- break;
- case EMPTY:
- tgt.setValue(org.hl7.fhir.dstu2.model.Narrative.NarrativeStatus.EMPTY);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.Narrative.NarrativeStatus.NULL);
- break;
- }
- }
+ tgt.setValue(org.hl7.fhir.dstu2.model.Narrative.NarrativeStatus.GENERATED);
+ break;
+ case EXTENSIONS:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Narrative.NarrativeStatus.EXTENSIONS);
+ break;
+ case ADDITIONAL:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Narrative.NarrativeStatus.ADDITIONAL);
+ break;
+ case EMPTY:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Narrative.NarrativeStatus.EMPTY);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Narrative.NarrativeStatus.NULL);
+ break;
+ }
+}
return tgt;
}
}
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/complextypes10_30/Address10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/complextypes10_30/Address10_30.java
index ec8274342b..9b59d1ef4a 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/complextypes10_30/Address10_30.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/complextypes10_30/Address10_30.java
@@ -2,6 +2,7 @@
import org.hl7.fhir.convertors.context.ConversionContext10_30;
import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.String10_30;
+import org.hl7.fhir.dstu3.model.Address;
import org.hl7.fhir.exceptions.FHIRException;
public class Address10_30 {
@@ -44,26 +45,26 @@ static public org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.Address.AddressUseEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
if (src.getValue() == null) {
- tgt.setValue(org.hl7.fhir.dstu3.model.Address.AddressUse.NULL);
- } else {
- switch (src.getValue()) {
+ tgt.setValue(null);
+} else {
+ switch(src.getValue()) {
case HOME:
- tgt.setValue(org.hl7.fhir.dstu3.model.Address.AddressUse.HOME);
- break;
- case WORK:
- tgt.setValue(org.hl7.fhir.dstu3.model.Address.AddressUse.WORK);
- break;
- case TEMP:
- tgt.setValue(org.hl7.fhir.dstu3.model.Address.AddressUse.TEMP);
- break;
- case OLD:
- tgt.setValue(org.hl7.fhir.dstu3.model.Address.AddressUse.OLD);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.Address.AddressUse.NULL);
- break;
- }
- }
+ tgt.setValue(Address.AddressUse.HOME);
+ break;
+ case WORK:
+ tgt.setValue(Address.AddressUse.WORK);
+ break;
+ case TEMP:
+ tgt.setValue(Address.AddressUse.TEMP);
+ break;
+ case OLD:
+ tgt.setValue(Address.AddressUse.OLD);
+ break;
+ default:
+ tgt.setValue(Address.AddressUse.NULL);
+ break;
+ }
+}
return tgt;
}
@@ -72,26 +73,26 @@ static public org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Address.AddressUseEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
if (src.getValue() == null) {
- tgt.setValue(org.hl7.fhir.dstu2.model.Address.AddressUse.NULL);
- } else {
- switch (src.getValue()) {
+ tgt.setValue(null);
+} else {
+ switch(src.getValue()) {
case HOME:
- tgt.setValue(org.hl7.fhir.dstu2.model.Address.AddressUse.HOME);
- break;
- case WORK:
- tgt.setValue(org.hl7.fhir.dstu2.model.Address.AddressUse.WORK);
- break;
- case TEMP:
- tgt.setValue(org.hl7.fhir.dstu2.model.Address.AddressUse.TEMP);
- break;
- case OLD:
- tgt.setValue(org.hl7.fhir.dstu2.model.Address.AddressUse.OLD);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.Address.AddressUse.NULL);
- break;
- }
- }
+ tgt.setValue(org.hl7.fhir.dstu2.model.Address.AddressUse.HOME);
+ break;
+ case WORK:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Address.AddressUse.WORK);
+ break;
+ case TEMP:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Address.AddressUse.TEMP);
+ break;
+ case OLD:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Address.AddressUse.OLD);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Address.AddressUse.NULL);
+ break;
+ }
+}
return tgt;
}
@@ -100,23 +101,23 @@ static public org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.Address.AddressTypeEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
if (src.getValue() == null) {
- tgt.setValue(org.hl7.fhir.dstu3.model.Address.AddressType.NULL);
- } else {
- switch (src.getValue()) {
+ tgt.setValue(null);
+} else {
+ switch(src.getValue()) {
case POSTAL:
- tgt.setValue(org.hl7.fhir.dstu3.model.Address.AddressType.POSTAL);
- break;
- case PHYSICAL:
- tgt.setValue(org.hl7.fhir.dstu3.model.Address.AddressType.PHYSICAL);
- break;
- case BOTH:
- tgt.setValue(org.hl7.fhir.dstu3.model.Address.AddressType.BOTH);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.Address.AddressType.NULL);
- break;
- }
- }
+ tgt.setValue(Address.AddressType.POSTAL);
+ break;
+ case PHYSICAL:
+ tgt.setValue(Address.AddressType.PHYSICAL);
+ break;
+ case BOTH:
+ tgt.setValue(Address.AddressType.BOTH);
+ break;
+ default:
+ tgt.setValue(Address.AddressType.NULL);
+ break;
+ }
+}
return tgt;
}
@@ -125,23 +126,23 @@ static public org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Address.AddressTypeEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
if (src.getValue() == null) {
- tgt.setValue(org.hl7.fhir.dstu2.model.Address.AddressType.NULL);
- } else {
- switch (src.getValue()) {
+ tgt.setValue(null);
+} else {
+ switch(src.getValue()) {
case POSTAL:
- tgt.setValue(org.hl7.fhir.dstu2.model.Address.AddressType.POSTAL);
- break;
- case PHYSICAL:
- tgt.setValue(org.hl7.fhir.dstu2.model.Address.AddressType.PHYSICAL);
- break;
- case BOTH:
- tgt.setValue(org.hl7.fhir.dstu2.model.Address.AddressType.BOTH);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.Address.AddressType.NULL);
- break;
- }
- }
+ tgt.setValue(org.hl7.fhir.dstu2.model.Address.AddressType.POSTAL);
+ break;
+ case PHYSICAL:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Address.AddressType.PHYSICAL);
+ break;
+ case BOTH:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Address.AddressType.BOTH);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Address.AddressType.NULL);
+ break;
+ }
+}
return tgt;
}
}
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/complextypes10_30/ContactPoint10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/complextypes10_30/ContactPoint10_30.java
index 5a62c9e0f2..054f09a6d7 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/complextypes10_30/ContactPoint10_30.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/complextypes10_30/ContactPoint10_30.java
@@ -3,6 +3,7 @@
import org.hl7.fhir.convertors.context.ConversionContext10_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.ContactPoint;
import org.hl7.fhir.exceptions.FHIRException;
public class ContactPoint10_30 {
@@ -35,29 +36,29 @@ static public org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.ContactPoint.ContactPointSystemEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
if (src.getValue() == null) {
- tgt.setValue(org.hl7.fhir.dstu3.model.ContactPoint.ContactPointSystem.NULL);
- } else {
- switch (src.getValue()) {
+ tgt.setValue(null);
+} else {
+ switch(src.getValue()) {
case PHONE:
- tgt.setValue(org.hl7.fhir.dstu3.model.ContactPoint.ContactPointSystem.PHONE);
- break;
- case FAX:
- tgt.setValue(org.hl7.fhir.dstu3.model.ContactPoint.ContactPointSystem.FAX);
- break;
- case EMAIL:
- tgt.setValue(org.hl7.fhir.dstu3.model.ContactPoint.ContactPointSystem.EMAIL);
- break;
- case PAGER:
- tgt.setValue(org.hl7.fhir.dstu3.model.ContactPoint.ContactPointSystem.PAGER);
- break;
- case OTHER:
- tgt.setValue(org.hl7.fhir.dstu3.model.ContactPoint.ContactPointSystem.OTHER);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.ContactPoint.ContactPointSystem.NULL);
- break;
- }
- }
+ tgt.setValue(ContactPoint.ContactPointSystem.PHONE);
+ break;
+ case FAX:
+ tgt.setValue(ContactPoint.ContactPointSystem.FAX);
+ break;
+ case EMAIL:
+ tgt.setValue(ContactPoint.ContactPointSystem.EMAIL);
+ break;
+ case PAGER:
+ tgt.setValue(ContactPoint.ContactPointSystem.PAGER);
+ break;
+ case OTHER:
+ tgt.setValue(ContactPoint.ContactPointSystem.OTHER);
+ break;
+ default:
+ tgt.setValue(ContactPoint.ContactPointSystem.NULL);
+ break;
+ }
+}
return tgt;
}
@@ -66,32 +67,32 @@ static public org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.ContactPoint.ContactPointSystemEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
if (src.getValue() == null) {
- tgt.setValue(org.hl7.fhir.dstu2.model.ContactPoint.ContactPointSystem.NULL);
- } else {
- switch (src.getValue()) {
+ tgt.setValue(null);
+} else {
+ switch(src.getValue()) {
case PHONE:
- tgt.setValue(org.hl7.fhir.dstu2.model.ContactPoint.ContactPointSystem.PHONE);
- break;
- case FAX:
- tgt.setValue(org.hl7.fhir.dstu2.model.ContactPoint.ContactPointSystem.FAX);
- break;
- case EMAIL:
- tgt.setValue(org.hl7.fhir.dstu2.model.ContactPoint.ContactPointSystem.EMAIL);
- break;
- case PAGER:
- tgt.setValue(org.hl7.fhir.dstu2.model.ContactPoint.ContactPointSystem.PAGER);
- break;
- case OTHER:
- tgt.setValue(org.hl7.fhir.dstu2.model.ContactPoint.ContactPointSystem.OTHER);
- break;
- case URL:
- tgt.setValue(org.hl7.fhir.dstu2.model.ContactPoint.ContactPointSystem.OTHER);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.ContactPoint.ContactPointSystem.NULL);
- break;
- }
- }
+ tgt.setValue(org.hl7.fhir.dstu2.model.ContactPoint.ContactPointSystem.PHONE);
+ break;
+ case FAX:
+ tgt.setValue(org.hl7.fhir.dstu2.model.ContactPoint.ContactPointSystem.FAX);
+ break;
+ case EMAIL:
+ tgt.setValue(org.hl7.fhir.dstu2.model.ContactPoint.ContactPointSystem.EMAIL);
+ break;
+ case PAGER:
+ tgt.setValue(org.hl7.fhir.dstu2.model.ContactPoint.ContactPointSystem.PAGER);
+ break;
+ case OTHER:
+ tgt.setValue(org.hl7.fhir.dstu2.model.ContactPoint.ContactPointSystem.OTHER);
+ break;
+ case URL:
+ tgt.setValue(org.hl7.fhir.dstu2.model.ContactPoint.ContactPointSystem.OTHER);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu2.model.ContactPoint.ContactPointSystem.NULL);
+ break;
+ }
+}
return tgt;
}
@@ -100,29 +101,29 @@ static public org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.ContactPoint.ContactPointUseEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
if (src.getValue() == null) {
- tgt.setValue(org.hl7.fhir.dstu3.model.ContactPoint.ContactPointUse.NULL);
- } else {
- switch (src.getValue()) {
+ tgt.setValue(null);
+} else {
+ switch(src.getValue()) {
case HOME:
- tgt.setValue(org.hl7.fhir.dstu3.model.ContactPoint.ContactPointUse.HOME);
- break;
- case WORK:
- tgt.setValue(org.hl7.fhir.dstu3.model.ContactPoint.ContactPointUse.WORK);
- break;
- case TEMP:
- tgt.setValue(org.hl7.fhir.dstu3.model.ContactPoint.ContactPointUse.TEMP);
- break;
- case OLD:
- tgt.setValue(org.hl7.fhir.dstu3.model.ContactPoint.ContactPointUse.OLD);
- break;
- case MOBILE:
- tgt.setValue(org.hl7.fhir.dstu3.model.ContactPoint.ContactPointUse.MOBILE);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.ContactPoint.ContactPointUse.NULL);
- break;
- }
- }
+ tgt.setValue(ContactPoint.ContactPointUse.HOME);
+ break;
+ case WORK:
+ tgt.setValue(ContactPoint.ContactPointUse.WORK);
+ break;
+ case TEMP:
+ tgt.setValue(ContactPoint.ContactPointUse.TEMP);
+ break;
+ case OLD:
+ tgt.setValue(ContactPoint.ContactPointUse.OLD);
+ break;
+ case MOBILE:
+ tgt.setValue(ContactPoint.ContactPointUse.MOBILE);
+ break;
+ default:
+ tgt.setValue(ContactPoint.ContactPointUse.NULL);
+ break;
+ }
+}
return tgt;
}
@@ -131,29 +132,29 @@ static public org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.ContactPoint.ContactPointUseEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
if (src.getValue() == null) {
- tgt.setValue(org.hl7.fhir.dstu2.model.ContactPoint.ContactPointUse.NULL);
- } else {
- switch (src.getValue()) {
+ tgt.setValue(null);
+} else {
+ switch(src.getValue()) {
case HOME:
- tgt.setValue(org.hl7.fhir.dstu2.model.ContactPoint.ContactPointUse.HOME);
- break;
- case WORK:
- tgt.setValue(org.hl7.fhir.dstu2.model.ContactPoint.ContactPointUse.WORK);
- break;
- case TEMP:
- tgt.setValue(org.hl7.fhir.dstu2.model.ContactPoint.ContactPointUse.TEMP);
- break;
- case OLD:
- tgt.setValue(org.hl7.fhir.dstu2.model.ContactPoint.ContactPointUse.OLD);
- break;
- case MOBILE:
- tgt.setValue(org.hl7.fhir.dstu2.model.ContactPoint.ContactPointUse.MOBILE);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.ContactPoint.ContactPointUse.NULL);
- break;
- }
- }
+ tgt.setValue(org.hl7.fhir.dstu2.model.ContactPoint.ContactPointUse.HOME);
+ break;
+ case WORK:
+ tgt.setValue(org.hl7.fhir.dstu2.model.ContactPoint.ContactPointUse.WORK);
+ break;
+ case TEMP:
+ tgt.setValue(org.hl7.fhir.dstu2.model.ContactPoint.ContactPointUse.TEMP);
+ break;
+ case OLD:
+ tgt.setValue(org.hl7.fhir.dstu2.model.ContactPoint.ContactPointUse.OLD);
+ break;
+ case MOBILE:
+ tgt.setValue(org.hl7.fhir.dstu2.model.ContactPoint.ContactPointUse.MOBILE);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu2.model.ContactPoint.ContactPointUse.NULL);
+ break;
+ }
+}
return tgt;
}
}
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/complextypes10_30/HumanName10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/complextypes10_30/HumanName10_30.java
index 918e5702ec..ae14b2f648 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/complextypes10_30/HumanName10_30.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/complextypes10_30/HumanName10_30.java
@@ -2,6 +2,7 @@
import org.hl7.fhir.convertors.context.ConversionContext10_30;
import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.String10_30;
+import org.hl7.fhir.dstu3.model.HumanName;
import org.hl7.fhir.exceptions.FHIRException;
public class HumanName10_30 {
@@ -38,35 +39,35 @@ static public org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.HumanName.NameUseEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
if (src.getValue() == null) {
- tgt.setValue(org.hl7.fhir.dstu3.model.HumanName.NameUse.NULL);
- } else {
- switch (src.getValue()) {
+ tgt.setValue(null);
+} else {
+ switch(src.getValue()) {
case USUAL:
- tgt.setValue(org.hl7.fhir.dstu3.model.HumanName.NameUse.USUAL);
- break;
- case OFFICIAL:
- tgt.setValue(org.hl7.fhir.dstu3.model.HumanName.NameUse.OFFICIAL);
- break;
- case TEMP:
- tgt.setValue(org.hl7.fhir.dstu3.model.HumanName.NameUse.TEMP);
- break;
- case NICKNAME:
- tgt.setValue(org.hl7.fhir.dstu3.model.HumanName.NameUse.NICKNAME);
- break;
- case ANONYMOUS:
- tgt.setValue(org.hl7.fhir.dstu3.model.HumanName.NameUse.ANONYMOUS);
- break;
- case OLD:
- tgt.setValue(org.hl7.fhir.dstu3.model.HumanName.NameUse.OLD);
- break;
- case MAIDEN:
- tgt.setValue(org.hl7.fhir.dstu3.model.HumanName.NameUse.MAIDEN);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.HumanName.NameUse.NULL);
- break;
- }
- }
+ tgt.setValue(HumanName.NameUse.USUAL);
+ break;
+ case OFFICIAL:
+ tgt.setValue(HumanName.NameUse.OFFICIAL);
+ break;
+ case TEMP:
+ tgt.setValue(HumanName.NameUse.TEMP);
+ break;
+ case NICKNAME:
+ tgt.setValue(HumanName.NameUse.NICKNAME);
+ break;
+ case ANONYMOUS:
+ tgt.setValue(HumanName.NameUse.ANONYMOUS);
+ break;
+ case OLD:
+ tgt.setValue(HumanName.NameUse.OLD);
+ break;
+ case MAIDEN:
+ tgt.setValue(HumanName.NameUse.MAIDEN);
+ break;
+ default:
+ tgt.setValue(HumanName.NameUse.NULL);
+ break;
+ }
+}
return tgt;
}
@@ -75,35 +76,35 @@ static public org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.HumanName.NameUseEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
if (src.getValue() == null) {
- tgt.setValue(org.hl7.fhir.dstu2.model.HumanName.NameUse.NULL);
- } else {
- switch (src.getValue()) {
+ tgt.setValue(null);
+} else {
+ switch(src.getValue()) {
case USUAL:
- tgt.setValue(org.hl7.fhir.dstu2.model.HumanName.NameUse.USUAL);
- break;
- case OFFICIAL:
- tgt.setValue(org.hl7.fhir.dstu2.model.HumanName.NameUse.OFFICIAL);
- break;
- case TEMP:
- tgt.setValue(org.hl7.fhir.dstu2.model.HumanName.NameUse.TEMP);
- break;
- case NICKNAME:
- tgt.setValue(org.hl7.fhir.dstu2.model.HumanName.NameUse.NICKNAME);
- break;
- case ANONYMOUS:
- tgt.setValue(org.hl7.fhir.dstu2.model.HumanName.NameUse.ANONYMOUS);
- break;
- case OLD:
- tgt.setValue(org.hl7.fhir.dstu2.model.HumanName.NameUse.OLD);
- break;
- case MAIDEN:
- tgt.setValue(org.hl7.fhir.dstu2.model.HumanName.NameUse.MAIDEN);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.HumanName.NameUse.NULL);
- break;
- }
- }
+ tgt.setValue(org.hl7.fhir.dstu2.model.HumanName.NameUse.USUAL);
+ break;
+ case OFFICIAL:
+ tgt.setValue(org.hl7.fhir.dstu2.model.HumanName.NameUse.OFFICIAL);
+ break;
+ case TEMP:
+ tgt.setValue(org.hl7.fhir.dstu2.model.HumanName.NameUse.TEMP);
+ break;
+ case NICKNAME:
+ tgt.setValue(org.hl7.fhir.dstu2.model.HumanName.NameUse.NICKNAME);
+ break;
+ case ANONYMOUS:
+ tgt.setValue(org.hl7.fhir.dstu2.model.HumanName.NameUse.ANONYMOUS);
+ break;
+ case OLD:
+ tgt.setValue(org.hl7.fhir.dstu2.model.HumanName.NameUse.OLD);
+ break;
+ case MAIDEN:
+ tgt.setValue(org.hl7.fhir.dstu2.model.HumanName.NameUse.MAIDEN);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu2.model.HumanName.NameUse.NULL);
+ break;
+ }
+}
return tgt;
}
}
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/complextypes10_30/Identifier10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/complextypes10_30/Identifier10_30.java
index f7d210cad5..6f3248535e 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/complextypes10_30/Identifier10_30.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/complextypes10_30/Identifier10_30.java
@@ -4,6 +4,7 @@
import org.hl7.fhir.convertors.conv10_30.datatypes10_30.Reference10_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.Identifier;
import org.hl7.fhir.exceptions.FHIRException;
public class Identifier10_30 {
@@ -38,26 +39,26 @@ static public org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.Identifier.IdentifierUseEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
if (src.getValue() == null) {
- tgt.setValue(org.hl7.fhir.dstu3.model.Identifier.IdentifierUse.NULL);
- } else {
- switch (src.getValue()) {
+ tgt.setValue(null);
+} else {
+ switch(src.getValue()) {
case USUAL:
- tgt.setValue(org.hl7.fhir.dstu3.model.Identifier.IdentifierUse.USUAL);
- break;
- case OFFICIAL:
- tgt.setValue(org.hl7.fhir.dstu3.model.Identifier.IdentifierUse.OFFICIAL);
- break;
- case TEMP:
- tgt.setValue(org.hl7.fhir.dstu3.model.Identifier.IdentifierUse.TEMP);
- break;
- case SECONDARY:
- tgt.setValue(org.hl7.fhir.dstu3.model.Identifier.IdentifierUse.SECONDARY);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.Identifier.IdentifierUse.NULL);
- break;
- }
- }
+ tgt.setValue(Identifier.IdentifierUse.USUAL);
+ break;
+ case OFFICIAL:
+ tgt.setValue(Identifier.IdentifierUse.OFFICIAL);
+ break;
+ case TEMP:
+ tgt.setValue(Identifier.IdentifierUse.TEMP);
+ break;
+ case SECONDARY:
+ tgt.setValue(Identifier.IdentifierUse.SECONDARY);
+ break;
+ default:
+ tgt.setValue(Identifier.IdentifierUse.NULL);
+ break;
+ }
+}
return tgt;
}
@@ -66,26 +67,26 @@ static public org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Identifier.IdentifierUseEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
if (src.getValue() == null) {
- tgt.setValue(org.hl7.fhir.dstu2.model.Identifier.IdentifierUse.NULL);
- } else {
- switch (src.getValue()) {
+ tgt.setValue(null);
+} else {
+ switch(src.getValue()) {
case USUAL:
- tgt.setValue(org.hl7.fhir.dstu2.model.Identifier.IdentifierUse.USUAL);
- break;
- case OFFICIAL:
- tgt.setValue(org.hl7.fhir.dstu2.model.Identifier.IdentifierUse.OFFICIAL);
- break;
- case TEMP:
- tgt.setValue(org.hl7.fhir.dstu2.model.Identifier.IdentifierUse.TEMP);
- break;
- case SECONDARY:
- tgt.setValue(org.hl7.fhir.dstu2.model.Identifier.IdentifierUse.SECONDARY);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.Identifier.IdentifierUse.NULL);
- break;
- }
- }
+ tgt.setValue(org.hl7.fhir.dstu2.model.Identifier.IdentifierUse.USUAL);
+ break;
+ case OFFICIAL:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Identifier.IdentifierUse.OFFICIAL);
+ break;
+ case TEMP:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Identifier.IdentifierUse.TEMP);
+ break;
+ case SECONDARY:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Identifier.IdentifierUse.SECONDARY);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Identifier.IdentifierUse.NULL);
+ break;
+ }
+}
return tgt;
}
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/complextypes10_30/Quantity10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/complextypes10_30/Quantity10_30.java
index 8ec507d6fb..830e874d9b 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/complextypes10_30/Quantity10_30.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/datatypes10_30/complextypes10_30/Quantity10_30.java
@@ -5,6 +5,7 @@
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;
import org.hl7.fhir.convertors.conv10_30.datatypes10_30.primitivetypes10_30.Uri10_30;
+import org.hl7.fhir.dstu3.model.Quantity;
import org.hl7.fhir.exceptions.FHIRException;
public class Quantity10_30 {
@@ -37,26 +38,26 @@ static public org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.Quantity.QuantityComparatorEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
if (src.getValue() == null) {
- tgt.setValue(org.hl7.fhir.dstu3.model.Quantity.QuantityComparator.NULL);
- } else {
- switch (src.getValue()) {
+ tgt.setValue(null);
+} else {
+ switch(src.getValue()) {
case LESS_THAN:
- tgt.setValue(org.hl7.fhir.dstu3.model.Quantity.QuantityComparator.LESS_THAN);
- break;
- case LESS_OR_EQUAL:
- tgt.setValue(org.hl7.fhir.dstu3.model.Quantity.QuantityComparator.LESS_OR_EQUAL);
- break;
- case GREATER_OR_EQUAL:
- tgt.setValue(org.hl7.fhir.dstu3.model.Quantity.QuantityComparator.GREATER_OR_EQUAL);
- break;
- case GREATER_THAN:
- tgt.setValue(org.hl7.fhir.dstu3.model.Quantity.QuantityComparator.GREATER_THAN);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.Quantity.QuantityComparator.NULL);
- break;
- }
- }
+ tgt.setValue(Quantity.QuantityComparator.LESS_THAN);
+ break;
+ case LESS_OR_EQUAL:
+ tgt.setValue(Quantity.QuantityComparator.LESS_OR_EQUAL);
+ break;
+ case GREATER_OR_EQUAL:
+ tgt.setValue(Quantity.QuantityComparator.GREATER_OR_EQUAL);
+ break;
+ case GREATER_THAN:
+ tgt.setValue(Quantity.QuantityComparator.GREATER_THAN);
+ break;
+ default:
+ tgt.setValue(Quantity.QuantityComparator.NULL);
+ break;
+ }
+}
return tgt;
}
@@ -65,26 +66,26 @@ static public org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Quantity.QuantityComparatorEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
if (src.getValue() == null) {
- tgt.setValue(org.hl7.fhir.dstu2.model.Quantity.QuantityComparator.NULL);
- } else {
- switch (src.getValue()) {
+ tgt.setValue(null);
+} else {
+ switch(src.getValue()) {
case LESS_THAN:
- tgt.setValue(org.hl7.fhir.dstu2.model.Quantity.QuantityComparator.LESS_THAN);
- break;
- case LESS_OR_EQUAL:
- tgt.setValue(org.hl7.fhir.dstu2.model.Quantity.QuantityComparator.LESS_OR_EQUAL);
- break;
- case GREATER_OR_EQUAL:
- tgt.setValue(org.hl7.fhir.dstu2.model.Quantity.QuantityComparator.GREATER_OR_EQUAL);
- break;
- case GREATER_THAN:
- tgt.setValue(org.hl7.fhir.dstu2.model.Quantity.QuantityComparator.GREATER_THAN);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.Quantity.QuantityComparator.NULL);
- break;
- }
- }
+ tgt.setValue(org.hl7.fhir.dstu2.model.Quantity.QuantityComparator.LESS_THAN);
+ break;
+ case LESS_OR_EQUAL:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Quantity.QuantityComparator.LESS_OR_EQUAL);
+ break;
+ case GREATER_OR_EQUAL:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Quantity.QuantityComparator.GREATER_OR_EQUAL);
+ break;
+ case GREATER_THAN:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Quantity.QuantityComparator.GREATER_THAN);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Quantity.QuantityComparator.NULL);
+ break;
+ }
+}
return tgt;
}
}
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 ca047237c2..b8e19e0825 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
@@ -5,6 +5,7 @@
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.dstu3.model.Timing;
import org.hl7.fhir.exceptions.FHIRException;
public class Timing10_30 {
@@ -75,35 +76,35 @@ static public org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.Timing.UnitsOfTimeEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
if (src.getValue() == null) {
- tgt.setValue(org.hl7.fhir.dstu3.model.Timing.UnitsOfTime.NULL);
- } else {
- switch (src.getValue()) {
+ tgt.setValue(null);
+} else {
+ switch(src.getValue()) {
case S:
- tgt.setValue(org.hl7.fhir.dstu3.model.Timing.UnitsOfTime.S);
- break;
- case MIN:
- tgt.setValue(org.hl7.fhir.dstu3.model.Timing.UnitsOfTime.MIN);
- break;
- case H:
- tgt.setValue(org.hl7.fhir.dstu3.model.Timing.UnitsOfTime.H);
- break;
- case D:
- tgt.setValue(org.hl7.fhir.dstu3.model.Timing.UnitsOfTime.D);
- break;
- case WK:
- tgt.setValue(org.hl7.fhir.dstu3.model.Timing.UnitsOfTime.WK);
- break;
- case MO:
- tgt.setValue(org.hl7.fhir.dstu3.model.Timing.UnitsOfTime.MO);
- break;
- case A:
- tgt.setValue(org.hl7.fhir.dstu3.model.Timing.UnitsOfTime.A);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.Timing.UnitsOfTime.NULL);
- break;
- }
- }
+ tgt.setValue(Timing.UnitsOfTime.S);
+ break;
+ case MIN:
+ tgt.setValue(Timing.UnitsOfTime.MIN);
+ break;
+ case H:
+ tgt.setValue(Timing.UnitsOfTime.H);
+ break;
+ case D:
+ tgt.setValue(Timing.UnitsOfTime.D);
+ break;
+ case WK:
+ tgt.setValue(Timing.UnitsOfTime.WK);
+ break;
+ case MO:
+ tgt.setValue(Timing.UnitsOfTime.MO);
+ break;
+ case A:
+ tgt.setValue(Timing.UnitsOfTime.A);
+ break;
+ default:
+ tgt.setValue(Timing.UnitsOfTime.NULL);
+ break;
+ }
+}
return tgt;
}
@@ -112,35 +113,35 @@ static public org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Timing.UnitsOfTimeEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
if (src.getValue() == null) {
- tgt.setValue(org.hl7.fhir.dstu2.model.Timing.UnitsOfTime.NULL);
- } else {
- switch (src.getValue()) {
+ tgt.setValue(null);
+} else {
+ switch(src.getValue()) {
case S:
- tgt.setValue(org.hl7.fhir.dstu2.model.Timing.UnitsOfTime.S);
- break;
- case MIN:
- tgt.setValue(org.hl7.fhir.dstu2.model.Timing.UnitsOfTime.MIN);
- break;
- case H:
- tgt.setValue(org.hl7.fhir.dstu2.model.Timing.UnitsOfTime.H);
- break;
- case D:
- tgt.setValue(org.hl7.fhir.dstu2.model.Timing.UnitsOfTime.D);
- break;
- case WK:
- tgt.setValue(org.hl7.fhir.dstu2.model.Timing.UnitsOfTime.WK);
- break;
- case MO:
- tgt.setValue(org.hl7.fhir.dstu2.model.Timing.UnitsOfTime.MO);
- break;
- case A:
- tgt.setValue(org.hl7.fhir.dstu2.model.Timing.UnitsOfTime.A);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.Timing.UnitsOfTime.NULL);
- break;
- }
- }
+ tgt.setValue(org.hl7.fhir.dstu2.model.Timing.UnitsOfTime.S);
+ break;
+ case MIN:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Timing.UnitsOfTime.MIN);
+ break;
+ case H:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Timing.UnitsOfTime.H);
+ break;
+ case D:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Timing.UnitsOfTime.D);
+ break;
+ case WK:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Timing.UnitsOfTime.WK);
+ break;
+ case MO:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Timing.UnitsOfTime.MO);
+ break;
+ case A:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Timing.UnitsOfTime.A);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Timing.UnitsOfTime.NULL);
+ break;
+ }
+}
return tgt;
}
@@ -149,56 +150,56 @@ static public org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.Timing.EventTimingEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
if (src.getValue() == null) {
- tgt.setValue(org.hl7.fhir.dstu3.model.Timing.EventTiming.NULL);
- } else {
- switch (src.getValue()) {
+ tgt.setValue(null);
+} else {
+ switch(src.getValue()) {
case HS:
- tgt.setValue(org.hl7.fhir.dstu3.model.Timing.EventTiming.HS);
- break;
- case WAKE:
- tgt.setValue(org.hl7.fhir.dstu3.model.Timing.EventTiming.WAKE);
- break;
- case C:
- tgt.setValue(org.hl7.fhir.dstu3.model.Timing.EventTiming.C);
- break;
- case CM:
- tgt.setValue(org.hl7.fhir.dstu3.model.Timing.EventTiming.CM);
- break;
- case CD:
- tgt.setValue(org.hl7.fhir.dstu3.model.Timing.EventTiming.CD);
- break;
- case CV:
- tgt.setValue(org.hl7.fhir.dstu3.model.Timing.EventTiming.CV);
- break;
- case AC:
- tgt.setValue(org.hl7.fhir.dstu3.model.Timing.EventTiming.AC);
- break;
- case ACM:
- tgt.setValue(org.hl7.fhir.dstu3.model.Timing.EventTiming.ACM);
- break;
- case ACD:
- tgt.setValue(org.hl7.fhir.dstu3.model.Timing.EventTiming.ACD);
- break;
- case ACV:
- tgt.setValue(org.hl7.fhir.dstu3.model.Timing.EventTiming.ACV);
- break;
- case PC:
- tgt.setValue(org.hl7.fhir.dstu3.model.Timing.EventTiming.PC);
- break;
- case PCM:
- tgt.setValue(org.hl7.fhir.dstu3.model.Timing.EventTiming.PCM);
- break;
- case PCD:
- tgt.setValue(org.hl7.fhir.dstu3.model.Timing.EventTiming.PCD);
- break;
- case PCV:
- tgt.setValue(org.hl7.fhir.dstu3.model.Timing.EventTiming.PCV);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.Timing.EventTiming.NULL);
- break;
- }
- }
+ tgt.setValue(Timing.EventTiming.HS);
+ break;
+ case WAKE:
+ tgt.setValue(Timing.EventTiming.WAKE);
+ break;
+ case C:
+ tgt.setValue(Timing.EventTiming.C);
+ break;
+ case CM:
+ tgt.setValue(Timing.EventTiming.CM);
+ break;
+ case CD:
+ tgt.setValue(Timing.EventTiming.CD);
+ break;
+ case CV:
+ tgt.setValue(Timing.EventTiming.CV);
+ break;
+ case AC:
+ tgt.setValue(Timing.EventTiming.AC);
+ break;
+ case ACM:
+ tgt.setValue(Timing.EventTiming.ACM);
+ break;
+ case ACD:
+ tgt.setValue(Timing.EventTiming.ACD);
+ break;
+ case ACV:
+ tgt.setValue(Timing.EventTiming.ACV);
+ break;
+ case PC:
+ tgt.setValue(Timing.EventTiming.PC);
+ break;
+ case PCM:
+ tgt.setValue(Timing.EventTiming.PCM);
+ break;
+ case PCD:
+ tgt.setValue(Timing.EventTiming.PCD);
+ break;
+ case PCV:
+ tgt.setValue(Timing.EventTiming.PCV);
+ break;
+ default:
+ tgt.setValue(Timing.EventTiming.NULL);
+ break;
+ }
+}
return tgt;
}
@@ -207,56 +208,56 @@ static public org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Timing.EventTimingEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
if (src.getValue() == null) {
- tgt.setValue(org.hl7.fhir.dstu2.model.Timing.EventTiming.NULL);
- } else {
- switch (src.getValue()) {
+ tgt.setValue(null);
+} else {
+ switch(src.getValue()) {
case HS:
- tgt.setValue(org.hl7.fhir.dstu2.model.Timing.EventTiming.HS);
- break;
- case WAKE:
- tgt.setValue(org.hl7.fhir.dstu2.model.Timing.EventTiming.WAKE);
- break;
- case C:
- tgt.setValue(org.hl7.fhir.dstu2.model.Timing.EventTiming.C);
- break;
- case CM:
- tgt.setValue(org.hl7.fhir.dstu2.model.Timing.EventTiming.CM);
- break;
- case CD:
- tgt.setValue(org.hl7.fhir.dstu2.model.Timing.EventTiming.CD);
- break;
- case CV:
- tgt.setValue(org.hl7.fhir.dstu2.model.Timing.EventTiming.CV);
- break;
- case AC:
- tgt.setValue(org.hl7.fhir.dstu2.model.Timing.EventTiming.AC);
- break;
- case ACM:
- tgt.setValue(org.hl7.fhir.dstu2.model.Timing.EventTiming.ACM);
- break;
- case ACD:
- tgt.setValue(org.hl7.fhir.dstu2.model.Timing.EventTiming.ACD);
- break;
- case ACV:
- tgt.setValue(org.hl7.fhir.dstu2.model.Timing.EventTiming.ACV);
- break;
- case PC:
- tgt.setValue(org.hl7.fhir.dstu2.model.Timing.EventTiming.PC);
- break;
- case PCM:
- tgt.setValue(org.hl7.fhir.dstu2.model.Timing.EventTiming.PCM);
- break;
- case PCD:
- tgt.setValue(org.hl7.fhir.dstu2.model.Timing.EventTiming.PCD);
- break;
- case PCV:
- tgt.setValue(org.hl7.fhir.dstu2.model.Timing.EventTiming.PCV);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.Timing.EventTiming.NULL);
- break;
- }
- }
+ tgt.setValue(org.hl7.fhir.dstu2.model.Timing.EventTiming.HS);
+ break;
+ case WAKE:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Timing.EventTiming.WAKE);
+ break;
+ case C:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Timing.EventTiming.C);
+ break;
+ case CM:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Timing.EventTiming.CM);
+ break;
+ case CD:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Timing.EventTiming.CD);
+ break;
+ case CV:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Timing.EventTiming.CV);
+ break;
+ case AC:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Timing.EventTiming.AC);
+ break;
+ case ACM:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Timing.EventTiming.ACM);
+ break;
+ case ACD:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Timing.EventTiming.ACD);
+ break;
+ case ACV:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Timing.EventTiming.ACV);
+ break;
+ case PC:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Timing.EventTiming.PC);
+ break;
+ case PCM:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Timing.EventTiming.PCM);
+ break;
+ case PCD:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Timing.EventTiming.PCD);
+ break;
+ case PCV:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Timing.EventTiming.PCV);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Timing.EventTiming.NULL);
+ break;
+ }
+}
return tgt;
}
}
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Account10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Account10_30.java
index 6d15eb72a4..2e20ffe88c 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Account10_30.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Account10_30.java
@@ -7,6 +7,8 @@
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.primitivetypes10_30.String10_30;
+import org.hl7.fhir.dstu3.model.Account;
+import org.hl7.fhir.dstu3.model.Enumeration;
import org.hl7.fhir.exceptions.FHIRException;
public class Account10_30 {
@@ -66,18 +68,22 @@ public static org.hl7.fhir.dstu3.model.Account convertAccount(org.hl7.fhir.dstu2
static public org.hl7.fhir.dstu3.model.Enumeration convertAccountStatus(org.hl7.fhir.dstu2.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.Account.AccountStatusEnumFactory());
+ Enumeration tgt = new Enumeration<>(new Account.AccountStatusEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case ACTIVE:
- tgt.setValue(org.hl7.fhir.dstu3.model.Account.AccountStatus.ACTIVE);
- break;
- case INACTIVE:
- tgt.setValue(org.hl7.fhir.dstu3.model.Account.AccountStatus.INACTIVE);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.Account.AccountStatus.NULL);
- break;
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case ACTIVE:
+ tgt.setValue(Account.AccountStatus.ACTIVE);
+ break;
+ case INACTIVE:
+ tgt.setValue(Account.AccountStatus.INACTIVE);
+ break;
+ default:
+ tgt.setValue(Account.AccountStatus.NULL);
+ break;
+ }
}
return tgt;
}
@@ -87,16 +93,20 @@ static public org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Account.AccountStatusEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case ACTIVE:
- tgt.setValue(org.hl7.fhir.dstu2.model.Account.AccountStatus.ACTIVE);
- break;
- case INACTIVE:
- tgt.setValue(org.hl7.fhir.dstu2.model.Account.AccountStatus.INACTIVE);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.Account.AccountStatus.NULL);
- break;
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case ACTIVE:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Account.AccountStatus.ACTIVE);
+ break;
+ case INACTIVE:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Account.AccountStatus.INACTIVE);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Account.AccountStatus.NULL);
+ break;
+ }
}
return tgt;
}
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Appointment10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Appointment10_30.java
index f6c047e59f..415eba918b 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Appointment10_30.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Appointment10_30.java
@@ -8,6 +8,8 @@
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.UnsignedInt10_30;
+import org.hl7.fhir.dstu2.model.Appointment;
+import org.hl7.fhir.dstu2.model.Enumeration;
import org.hl7.fhir.exceptions.FHIRException;
public class Appointment10_30 {
@@ -105,33 +107,37 @@ public static org.hl7.fhir.dstu3.model.Appointment.AppointmentParticipantCompone
static public org.hl7.fhir.dstu2.model.Enumeration convertAppointmentStatus(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
- org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Appointment.AppointmentStatusEnumFactory());
+ Enumeration tgt = new Enumeration<>(new Appointment.AppointmentStatusEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case PROPOSED:
- tgt.setValue(org.hl7.fhir.dstu2.model.Appointment.AppointmentStatus.PROPOSED);
- break;
- case PENDING:
- tgt.setValue(org.hl7.fhir.dstu2.model.Appointment.AppointmentStatus.PENDING);
- break;
- case BOOKED:
- tgt.setValue(org.hl7.fhir.dstu2.model.Appointment.AppointmentStatus.BOOKED);
- break;
- case ARRIVED:
- tgt.setValue(org.hl7.fhir.dstu2.model.Appointment.AppointmentStatus.ARRIVED);
- break;
- case FULFILLED:
- tgt.setValue(org.hl7.fhir.dstu2.model.Appointment.AppointmentStatus.FULFILLED);
- break;
- case CANCELLED:
- tgt.setValue(org.hl7.fhir.dstu2.model.Appointment.AppointmentStatus.CANCELLED);
- break;
- case NOSHOW:
- tgt.setValue(org.hl7.fhir.dstu2.model.Appointment.AppointmentStatus.NOSHOW);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.Appointment.AppointmentStatus.NULL);
- break;
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case PROPOSED:
+ tgt.setValue(Appointment.AppointmentStatus.PROPOSED);
+ break;
+ case PENDING:
+ tgt.setValue(Appointment.AppointmentStatus.PENDING);
+ break;
+ case BOOKED:
+ tgt.setValue(Appointment.AppointmentStatus.BOOKED);
+ break;
+ case ARRIVED:
+ tgt.setValue(Appointment.AppointmentStatus.ARRIVED);
+ break;
+ case FULFILLED:
+ tgt.setValue(Appointment.AppointmentStatus.FULFILLED);
+ break;
+ case CANCELLED:
+ tgt.setValue(Appointment.AppointmentStatus.CANCELLED);
+ break;
+ case NOSHOW:
+ tgt.setValue(Appointment.AppointmentStatus.NOSHOW);
+ break;
+ default:
+ tgt.setValue(Appointment.AppointmentStatus.NULL);
+ break;
+ }
}
return tgt;
}
@@ -141,31 +147,35 @@ static public org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.Appointment.AppointmentStatusEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case PROPOSED:
- tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.AppointmentStatus.PROPOSED);
- break;
- case PENDING:
- tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.AppointmentStatus.PENDING);
- break;
- case BOOKED:
- tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.AppointmentStatus.BOOKED);
- break;
- case ARRIVED:
- tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.AppointmentStatus.ARRIVED);
- break;
- case FULFILLED:
- tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.AppointmentStatus.FULFILLED);
- break;
- case CANCELLED:
- tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.AppointmentStatus.CANCELLED);
- break;
- case NOSHOW:
- tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.AppointmentStatus.NOSHOW);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.AppointmentStatus.NULL);
- break;
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case PROPOSED:
+ tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.AppointmentStatus.PROPOSED);
+ break;
+ case PENDING:
+ tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.AppointmentStatus.PENDING);
+ break;
+ case BOOKED:
+ tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.AppointmentStatus.BOOKED);
+ break;
+ case ARRIVED:
+ tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.AppointmentStatus.ARRIVED);
+ break;
+ case FULFILLED:
+ tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.AppointmentStatus.FULFILLED);
+ break;
+ case CANCELLED:
+ tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.AppointmentStatus.CANCELLED);
+ break;
+ case NOSHOW:
+ tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.AppointmentStatus.NOSHOW);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.AppointmentStatus.NULL);
+ break;
+ }
}
return tgt;
}
@@ -173,21 +183,25 @@ static public org.hl7.fhir.dstu3.model.Enumeration convertParticipantRequired(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
- org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Appointment.ParticipantRequiredEnumFactory());
+ Enumeration tgt = new Enumeration<>(new Appointment.ParticipantRequiredEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case REQUIRED:
- tgt.setValue(org.hl7.fhir.dstu2.model.Appointment.ParticipantRequired.REQUIRED);
- break;
- case OPTIONAL:
- tgt.setValue(org.hl7.fhir.dstu2.model.Appointment.ParticipantRequired.OPTIONAL);
- break;
- case INFORMATIONONLY:
- tgt.setValue(org.hl7.fhir.dstu2.model.Appointment.ParticipantRequired.INFORMATIONONLY);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.Appointment.ParticipantRequired.NULL);
- break;
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case REQUIRED:
+ tgt.setValue(Appointment.ParticipantRequired.REQUIRED);
+ break;
+ case OPTIONAL:
+ tgt.setValue(Appointment.ParticipantRequired.OPTIONAL);
+ break;
+ case INFORMATIONONLY:
+ tgt.setValue(Appointment.ParticipantRequired.INFORMATIONONLY);
+ break;
+ default:
+ tgt.setValue(Appointment.ParticipantRequired.NULL);
+ break;
+ }
}
return tgt;
}
@@ -197,19 +211,23 @@ static public org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.Appointment.ParticipantRequiredEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case REQUIRED:
- tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.ParticipantRequired.REQUIRED);
- break;
- case OPTIONAL:
- tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.ParticipantRequired.OPTIONAL);
- break;
- case INFORMATIONONLY:
- tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.ParticipantRequired.INFORMATIONONLY);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.ParticipantRequired.NULL);
- break;
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case REQUIRED:
+ tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.ParticipantRequired.REQUIRED);
+ break;
+ case OPTIONAL:
+ tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.ParticipantRequired.OPTIONAL);
+ break;
+ case INFORMATIONONLY:
+ tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.ParticipantRequired.INFORMATIONONLY);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.ParticipantRequired.NULL);
+ break;
+ }
}
return tgt;
}
@@ -217,24 +235,28 @@ static public org.hl7.fhir.dstu3.model.Enumeration convertParticipationStatus(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException {
if (src == null || src.isEmpty())
return null;
- org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Appointment.ParticipationStatusEnumFactory());
+ Enumeration tgt = new Enumeration<>(new Appointment.ParticipationStatusEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case ACCEPTED:
- tgt.setValue(org.hl7.fhir.dstu2.model.Appointment.ParticipationStatus.ACCEPTED);
- break;
- case DECLINED:
- tgt.setValue(org.hl7.fhir.dstu2.model.Appointment.ParticipationStatus.DECLINED);
- break;
- case TENTATIVE:
- tgt.setValue(org.hl7.fhir.dstu2.model.Appointment.ParticipationStatus.TENTATIVE);
- break;
- case NEEDSACTION:
- tgt.setValue(org.hl7.fhir.dstu2.model.Appointment.ParticipationStatus.NEEDSACTION);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.Appointment.ParticipationStatus.NULL);
- break;
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case ACCEPTED:
+ tgt.setValue(Appointment.ParticipationStatus.ACCEPTED);
+ break;
+ case DECLINED:
+ tgt.setValue(Appointment.ParticipationStatus.DECLINED);
+ break;
+ case TENTATIVE:
+ tgt.setValue(Appointment.ParticipationStatus.TENTATIVE);
+ break;
+ case NEEDSACTION:
+ tgt.setValue(Appointment.ParticipationStatus.NEEDSACTION);
+ break;
+ default:
+ tgt.setValue(Appointment.ParticipationStatus.NULL);
+ break;
+ }
}
return tgt;
}
@@ -244,22 +266,26 @@ static public org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.Appointment.ParticipationStatusEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case ACCEPTED:
- tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.ParticipationStatus.ACCEPTED);
- break;
- case DECLINED:
- tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.ParticipationStatus.DECLINED);
- break;
- case TENTATIVE:
- tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.ParticipationStatus.TENTATIVE);
- break;
- case NEEDSACTION:
- tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.ParticipationStatus.NEEDSACTION);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.ParticipationStatus.NULL);
- break;
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case ACCEPTED:
+ tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.ParticipationStatus.ACCEPTED);
+ break;
+ case DECLINED:
+ tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.ParticipationStatus.DECLINED);
+ break;
+ case TENTATIVE:
+ tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.ParticipationStatus.TENTATIVE);
+ break;
+ case NEEDSACTION:
+ tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.ParticipationStatus.NEEDSACTION);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu3.model.Appointment.ParticipationStatus.NULL);
+ break;
+ }
}
return tgt;
}
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/AppointmentResponse10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/AppointmentResponse10_30.java
index c8828a4352..d917bc95cb 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/AppointmentResponse10_30.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/AppointmentResponse10_30.java
@@ -6,6 +6,8 @@
import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.Identifier10_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.dstu3.model.AppointmentResponse;
+import org.hl7.fhir.dstu3.model.Enumeration;
import org.hl7.fhir.exceptions.FHIRException;
public class AppointmentResponse10_30 {
@@ -61,30 +63,34 @@ public static org.hl7.fhir.dstu3.model.AppointmentResponse convertAppointmentRes
static public org.hl7.fhir.dstu3.model.Enumeration convertParticipantStatus(org.hl7.fhir.dstu2.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.AppointmentResponse.ParticipantStatusEnumFactory());
+ Enumeration tgt = new Enumeration<>(new AppointmentResponse.ParticipantStatusEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case ACCEPTED:
- tgt.setValue(org.hl7.fhir.dstu3.model.AppointmentResponse.ParticipantStatus.ACCEPTED);
- break;
- case DECLINED:
- tgt.setValue(org.hl7.fhir.dstu3.model.AppointmentResponse.ParticipantStatus.DECLINED);
- break;
- case TENTATIVE:
- tgt.setValue(org.hl7.fhir.dstu3.model.AppointmentResponse.ParticipantStatus.TENTATIVE);
- break;
- case INPROCESS:
- tgt.setValue(org.hl7.fhir.dstu3.model.AppointmentResponse.ParticipantStatus.ACCEPTED);
- break;
- case COMPLETED:
- tgt.setValue(org.hl7.fhir.dstu3.model.AppointmentResponse.ParticipantStatus.ACCEPTED);
- break;
- case NEEDSACTION:
- tgt.setValue(org.hl7.fhir.dstu3.model.AppointmentResponse.ParticipantStatus.NEEDSACTION);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.AppointmentResponse.ParticipantStatus.NULL);
- break;
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case ACCEPTED:
+ tgt.setValue(AppointmentResponse.ParticipantStatus.ACCEPTED);
+ break;
+ case DECLINED:
+ tgt.setValue(AppointmentResponse.ParticipantStatus.DECLINED);
+ break;
+ case TENTATIVE:
+ tgt.setValue(AppointmentResponse.ParticipantStatus.TENTATIVE);
+ break;
+ case INPROCESS:
+ tgt.setValue(AppointmentResponse.ParticipantStatus.ACCEPTED);
+ break;
+ case COMPLETED:
+ tgt.setValue(AppointmentResponse.ParticipantStatus.ACCEPTED);
+ break;
+ case NEEDSACTION:
+ tgt.setValue(AppointmentResponse.ParticipantStatus.NEEDSACTION);
+ break;
+ default:
+ tgt.setValue(AppointmentResponse.ParticipantStatus.NULL);
+ break;
+ }
}
return tgt;
}
@@ -94,22 +100,26 @@ static public org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.AppointmentResponse.ParticipantStatusEnumFactory());
ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case ACCEPTED:
- tgt.setValue(org.hl7.fhir.dstu2.model.AppointmentResponse.ParticipantStatus.ACCEPTED);
- break;
- case DECLINED:
- tgt.setValue(org.hl7.fhir.dstu2.model.AppointmentResponse.ParticipantStatus.DECLINED);
- break;
- case TENTATIVE:
- tgt.setValue(org.hl7.fhir.dstu2.model.AppointmentResponse.ParticipantStatus.TENTATIVE);
- break;
- case NEEDSACTION:
- tgt.setValue(org.hl7.fhir.dstu2.model.AppointmentResponse.ParticipantStatus.NEEDSACTION);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.AppointmentResponse.ParticipantStatus.NULL);
- break;
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case ACCEPTED:
+ tgt.setValue(org.hl7.fhir.dstu2.model.AppointmentResponse.ParticipantStatus.ACCEPTED);
+ break;
+ case DECLINED:
+ tgt.setValue(org.hl7.fhir.dstu2.model.AppointmentResponse.ParticipantStatus.DECLINED);
+ break;
+ case TENTATIVE:
+ tgt.setValue(org.hl7.fhir.dstu2.model.AppointmentResponse.ParticipantStatus.TENTATIVE);
+ break;
+ case NEEDSACTION:
+ tgt.setValue(org.hl7.fhir.dstu2.model.AppointmentResponse.ParticipantStatus.NEEDSACTION);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu2.model.AppointmentResponse.ParticipantStatus.NULL);
+ break;
+ }
}
return tgt;
}
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/AuditEvent10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/AuditEvent10_30.java
index 51d0c67101..2009d570a1 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/AuditEvent10_30.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/AuditEvent10_30.java
@@ -8,6 +8,8 @@
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.String10_30;
+import org.hl7.fhir.dstu3.model.AuditEvent;
+import org.hl7.fhir.dstu3.model.Enumeration;
import org.hl7.fhir.exceptions.FHIRException;
public class AuditEvent10_30 {
@@ -62,59 +64,67 @@ public static org.hl7.fhir.dstu3.model.AuditEvent convertAuditEvent(org.hl7.fhir
}
static public org.hl7.fhir.dstu3.model.Enumeration convertAuditEventAction(org.hl7.fhir.dstu2.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.AuditEvent.AuditEventActionEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case C:
- tgt.setValue(org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAction.C);
- break;
- case R:
- tgt.setValue(org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAction.R);
- break;
- case U:
- tgt.setValue(org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAction.U);
- break;
- case D:
- tgt.setValue(org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAction.D);
- break;
- case E:
- tgt.setValue(org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAction.E);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAction.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ Enumeration tgt = new Enumeration<>(new AuditEvent.AuditEventActionEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case C:
+ tgt.setValue(AuditEvent.AuditEventAction.C);
+ break;
+ case R:
+ tgt.setValue(AuditEvent.AuditEventAction.R);
+ break;
+ case U:
+ tgt.setValue(AuditEvent.AuditEventAction.U);
+ break;
+ case D:
+ tgt.setValue(AuditEvent.AuditEventAction.D);
+ break;
+ case E:
+ tgt.setValue(AuditEvent.AuditEventAction.E);
+ break;
+ default:
+ tgt.setValue(AuditEvent.AuditEventAction.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu2.model.Enumeration convertAuditEventAction(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException {
- if (src == null || src.isEmpty())
- return null;
- org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventActionEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case C:
- tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventAction.C);
- break;
- case R:
- tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventAction.R);
- break;
- case U:
- tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventAction.U);
- break;
- case D:
- tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventAction.D);
- break;
- case E:
- tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventAction.E);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventAction.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventActionEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case C:
+ tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventAction.C);
+ break;
+ case R:
+ tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventAction.R);
+ break;
+ case U:
+ tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventAction.U);
+ break;
+ case D:
+ tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventAction.D);
+ break;
+ case E:
+ tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventAction.E);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventAction.NULL);
+ break;
+ }
+ }
+ return tgt;
}
public static org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentComponent convertAuditEventAgentComponent(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantComponent src) throws FHIRException {
@@ -278,109 +288,125 @@ public static org.hl7.fhir.dstu3.model.AuditEvent.AuditEventEntityDetailComponen
}
static public org.hl7.fhir.dstu3.model.Enumeration convertAuditEventOutcome(org.hl7.fhir.dstu2.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.AuditEvent.AuditEventOutcomeEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case _0:
- tgt.setValue(org.hl7.fhir.dstu3.model.AuditEvent.AuditEventOutcome._0);
- break;
- case _4:
- tgt.setValue(org.hl7.fhir.dstu3.model.AuditEvent.AuditEventOutcome._4);
- break;
- case _8:
- tgt.setValue(org.hl7.fhir.dstu3.model.AuditEvent.AuditEventOutcome._8);
- break;
- case _12:
- tgt.setValue(org.hl7.fhir.dstu3.model.AuditEvent.AuditEventOutcome._12);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.AuditEvent.AuditEventOutcome.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ Enumeration tgt = new Enumeration<>(new AuditEvent.AuditEventOutcomeEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case _0:
+ tgt.setValue(AuditEvent.AuditEventOutcome._0);
+ break;
+ case _4:
+ tgt.setValue(AuditEvent.AuditEventOutcome._4);
+ break;
+ case _8:
+ tgt.setValue(AuditEvent.AuditEventOutcome._8);
+ break;
+ case _12:
+ tgt.setValue(AuditEvent.AuditEventOutcome._12);
+ break;
+ default:
+ tgt.setValue(AuditEvent.AuditEventOutcome.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu2.model.Enumeration convertAuditEventOutcome(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException {
- if (src == null || src.isEmpty())
- return null;
- org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventOutcomeEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case _0:
- tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventOutcome._0);
- break;
- case _4:
- tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventOutcome._4);
- break;
- case _8:
- tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventOutcome._8);
- break;
- case _12:
- tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventOutcome._12);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventOutcome.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventOutcomeEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case _0:
+ tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventOutcome._0);
+ break;
+ case _4:
+ tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventOutcome._4);
+ break;
+ case _8:
+ tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventOutcome._8);
+ break;
+ case _12:
+ tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventOutcome._12);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventOutcome.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu2.model.Enumeration convertAuditEventParticipantNetworkType(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException {
- if (src == null || src.isEmpty())
- return null;
- org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkTypeEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case _1:
- tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkType._1);
- break;
- case _2:
- tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkType._2);
- break;
- case _3:
- tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkType._3);
- break;
- case _4:
- tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkType._4);
- break;
- case _5:
- tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkType._5);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkType.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkTypeEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case _1:
+ tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkType._1);
+ break;
+ case _2:
+ tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkType._2);
+ break;
+ case _3:
+ tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkType._3);
+ break;
+ case _4:
+ tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkType._4);
+ break;
+ case _5:
+ tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkType._5);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu2.model.AuditEvent.AuditEventParticipantNetworkType.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu3.model.Enumeration convertAuditEventParticipantNetworkType(org.hl7.fhir.dstu2.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.AuditEvent.AuditEventAgentNetworkTypeEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case _1:
- tgt.setValue(org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentNetworkType._1);
- break;
- case _2:
- tgt.setValue(org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentNetworkType._2);
- break;
- case _3:
- tgt.setValue(org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentNetworkType._3);
- break;
- case _4:
- tgt.setValue(org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentNetworkType._4);
- break;
- case _5:
- tgt.setValue(org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentNetworkType._5);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.AuditEvent.AuditEventAgentNetworkType.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ Enumeration tgt = new Enumeration<>(new AuditEvent.AuditEventAgentNetworkTypeEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case _1:
+ tgt.setValue(AuditEvent.AuditEventAgentNetworkType._1);
+ break;
+ case _2:
+ tgt.setValue(AuditEvent.AuditEventAgentNetworkType._2);
+ break;
+ case _3:
+ tgt.setValue(AuditEvent.AuditEventAgentNetworkType._3);
+ break;
+ case _4:
+ tgt.setValue(AuditEvent.AuditEventAgentNetworkType._4);
+ break;
+ case _5:
+ tgt.setValue(AuditEvent.AuditEventAgentNetworkType._5);
+ break;
+ default:
+ tgt.setValue(AuditEvent.AuditEventAgentNetworkType.NULL);
+ break;
+ }
+ }
+ return tgt;
}
public static org.hl7.fhir.dstu2.model.AuditEvent.AuditEventSourceComponent convertAuditEventSourceComponent(org.hl7.fhir.dstu3.model.AuditEvent.AuditEventSourceComponent src) throws FHIRException {
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 56dafebf6e..4ff0e88262 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
@@ -8,6 +8,8 @@
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.Bundle;
+import org.hl7.fhir.dstu3.model.Enumeration;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.utilities.FhirPublication;
@@ -220,176 +222,200 @@ public static org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent convertBundleL
}
static public org.hl7.fhir.dstu3.model.Enumeration convertBundleType(org.hl7.fhir.dstu2.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.Bundle.BundleTypeEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case DOCUMENT:
- tgt.setValue(org.hl7.fhir.dstu3.model.Bundle.BundleType.DOCUMENT);
- break;
- case MESSAGE:
- tgt.setValue(org.hl7.fhir.dstu3.model.Bundle.BundleType.MESSAGE);
- break;
- case TRANSACTION:
- tgt.setValue(org.hl7.fhir.dstu3.model.Bundle.BundleType.TRANSACTION);
- break;
- case TRANSACTIONRESPONSE:
- tgt.setValue(org.hl7.fhir.dstu3.model.Bundle.BundleType.TRANSACTIONRESPONSE);
- break;
- case BATCH:
- tgt.setValue(org.hl7.fhir.dstu3.model.Bundle.BundleType.BATCH);
- break;
- case BATCHRESPONSE:
- tgt.setValue(org.hl7.fhir.dstu3.model.Bundle.BundleType.BATCHRESPONSE);
- break;
- case HISTORY:
- tgt.setValue(org.hl7.fhir.dstu3.model.Bundle.BundleType.HISTORY);
- break;
- case SEARCHSET:
- tgt.setValue(org.hl7.fhir.dstu3.model.Bundle.BundleType.SEARCHSET);
- break;
- case COLLECTION:
- tgt.setValue(org.hl7.fhir.dstu3.model.Bundle.BundleType.COLLECTION);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.Bundle.BundleType.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ Enumeration tgt = new Enumeration<>(new Bundle.BundleTypeEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case DOCUMENT:
+ tgt.setValue(Bundle.BundleType.DOCUMENT);
+ break;
+ case MESSAGE:
+ tgt.setValue(Bundle.BundleType.MESSAGE);
+ break;
+ case TRANSACTION:
+ tgt.setValue(Bundle.BundleType.TRANSACTION);
+ break;
+ case TRANSACTIONRESPONSE:
+ tgt.setValue(Bundle.BundleType.TRANSACTIONRESPONSE);
+ break;
+ case BATCH:
+ tgt.setValue(Bundle.BundleType.BATCH);
+ break;
+ case BATCHRESPONSE:
+ tgt.setValue(Bundle.BundleType.BATCHRESPONSE);
+ break;
+ case HISTORY:
+ tgt.setValue(Bundle.BundleType.HISTORY);
+ break;
+ case SEARCHSET:
+ tgt.setValue(Bundle.BundleType.SEARCHSET);
+ break;
+ case COLLECTION:
+ tgt.setValue(Bundle.BundleType.COLLECTION);
+ break;
+ default:
+ tgt.setValue(Bundle.BundleType.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu2.model.Enumeration convertBundleType(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException {
- if (src == null || src.isEmpty())
- return null;
- org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Bundle.BundleTypeEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case DOCUMENT:
- tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.BundleType.DOCUMENT);
- break;
- case MESSAGE:
- tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.BundleType.MESSAGE);
- break;
- case TRANSACTION:
- tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.BundleType.TRANSACTION);
- break;
- case TRANSACTIONRESPONSE:
- tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.BundleType.TRANSACTIONRESPONSE);
- break;
- case BATCH:
- tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.BundleType.BATCH);
- break;
- case BATCHRESPONSE:
- tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.BundleType.BATCHRESPONSE);
- break;
- case HISTORY:
- tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.BundleType.HISTORY);
- break;
- case SEARCHSET:
- tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.BundleType.SEARCHSET);
- break;
- case COLLECTION:
- tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.BundleType.COLLECTION);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.BundleType.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Bundle.BundleTypeEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case DOCUMENT:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.BundleType.DOCUMENT);
+ break;
+ case MESSAGE:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.BundleType.MESSAGE);
+ break;
+ case TRANSACTION:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.BundleType.TRANSACTION);
+ break;
+ case TRANSACTIONRESPONSE:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.BundleType.TRANSACTIONRESPONSE);
+ break;
+ case BATCH:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.BundleType.BATCH);
+ break;
+ case BATCHRESPONSE:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.BundleType.BATCHRESPONSE);
+ break;
+ case HISTORY:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.BundleType.HISTORY);
+ break;
+ case SEARCHSET:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.BundleType.SEARCHSET);
+ break;
+ case COLLECTION:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.BundleType.COLLECTION);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.BundleType.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu3.model.Enumeration convertHTTPVerb(org.hl7.fhir.dstu2.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.Bundle.HTTPVerbEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case GET:
- tgt.setValue(org.hl7.fhir.dstu3.model.Bundle.HTTPVerb.GET);
- break;
- case POST:
- tgt.setValue(org.hl7.fhir.dstu3.model.Bundle.HTTPVerb.POST);
- break;
- case PUT:
- tgt.setValue(org.hl7.fhir.dstu3.model.Bundle.HTTPVerb.PUT);
- break;
- case DELETE:
- tgt.setValue(org.hl7.fhir.dstu3.model.Bundle.HTTPVerb.DELETE);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.Bundle.HTTPVerb.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ Enumeration tgt = new Enumeration<>(new Bundle.HTTPVerbEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case GET:
+ tgt.setValue(Bundle.HTTPVerb.GET);
+ break;
+ case POST:
+ tgt.setValue(Bundle.HTTPVerb.POST);
+ break;
+ case PUT:
+ tgt.setValue(Bundle.HTTPVerb.PUT);
+ break;
+ case DELETE:
+ tgt.setValue(Bundle.HTTPVerb.DELETE);
+ break;
+ default:
+ tgt.setValue(Bundle.HTTPVerb.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu2.model.Enumeration convertHTTPVerb(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException {
- if (src == null || src.isEmpty())
- return null;
- org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Bundle.HTTPVerbEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case GET:
- tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.HTTPVerb.GET);
- break;
- case POST:
- tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.HTTPVerb.POST);
- break;
- case PUT:
- tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.HTTPVerb.PUT);
- break;
- case DELETE:
- tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.HTTPVerb.DELETE);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.HTTPVerb.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Bundle.HTTPVerbEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case GET:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.HTTPVerb.GET);
+ break;
+ case POST:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.HTTPVerb.POST);
+ break;
+ case PUT:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.HTTPVerb.PUT);
+ break;
+ case DELETE:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.HTTPVerb.DELETE);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.HTTPVerb.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu3.model.Enumeration convertSearchEntryMode(org.hl7.fhir.dstu2.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.Bundle.SearchEntryModeEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case MATCH:
- tgt.setValue(org.hl7.fhir.dstu3.model.Bundle.SearchEntryMode.MATCH);
- break;
- case INCLUDE:
- tgt.setValue(org.hl7.fhir.dstu3.model.Bundle.SearchEntryMode.INCLUDE);
- break;
- case OUTCOME:
- tgt.setValue(org.hl7.fhir.dstu3.model.Bundle.SearchEntryMode.OUTCOME);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.Bundle.SearchEntryMode.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ Enumeration tgt = new Enumeration<>(new Bundle.SearchEntryModeEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case MATCH:
+ tgt.setValue(Bundle.SearchEntryMode.MATCH);
+ break;
+ case INCLUDE:
+ tgt.setValue(Bundle.SearchEntryMode.INCLUDE);
+ break;
+ case OUTCOME:
+ tgt.setValue(Bundle.SearchEntryMode.OUTCOME);
+ break;
+ default:
+ tgt.setValue(Bundle.SearchEntryMode.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu2.model.Enumeration convertSearchEntryMode(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException {
- if (src == null || src.isEmpty())
- return null;
- org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Bundle.SearchEntryModeEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case MATCH:
- tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.SearchEntryMode.MATCH);
- break;
- case INCLUDE:
- tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.SearchEntryMode.INCLUDE);
- break;
- case OUTCOME:
- tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.SearchEntryMode.OUTCOME);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.SearchEntryMode.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Bundle.SearchEntryModeEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case MATCH:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.SearchEntryMode.MATCH);
+ break;
+ case INCLUDE:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.SearchEntryMode.INCLUDE);
+ break;
+ case OUTCOME:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.SearchEntryMode.OUTCOME);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Bundle.SearchEntryMode.NULL);
+ break;
+ }
+ }
+ return tgt;
}
}
\ No newline at end of file
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 68e2ed269f..3db71f748c 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
@@ -9,6 +9,8 @@
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.dstu2.model.CarePlan;
+import org.hl7.fhir.dstu2.model.Enumeration;
import org.hl7.fhir.exceptions.FHIRException;
public class CarePlan10_30 {
@@ -168,117 +170,133 @@ public static org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent
}
static public org.hl7.fhir.dstu2.model.Enumeration convertCarePlanActivityStatus(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException {
- if (src == null || src.isEmpty())
- return null;
- org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityStatusEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case NOTSTARTED:
- tgt.setValue(org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityStatus.NOTSTARTED);
- break;
- case SCHEDULED:
- tgt.setValue(org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityStatus.SCHEDULED);
- break;
- case INPROGRESS:
- tgt.setValue(org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityStatus.INPROGRESS);
- break;
- case ONHOLD:
- tgt.setValue(org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityStatus.ONHOLD);
- break;
- case COMPLETED:
- tgt.setValue(org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityStatus.COMPLETED);
- break;
- case CANCELLED:
- tgt.setValue(org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityStatus.CANCELLED);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityStatus.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ Enumeration tgt = new Enumeration<>(new CarePlan.CarePlanActivityStatusEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case NOTSTARTED:
+ tgt.setValue(CarePlan.CarePlanActivityStatus.NOTSTARTED);
+ break;
+ case SCHEDULED:
+ tgt.setValue(CarePlan.CarePlanActivityStatus.SCHEDULED);
+ break;
+ case INPROGRESS:
+ tgt.setValue(CarePlan.CarePlanActivityStatus.INPROGRESS);
+ break;
+ case ONHOLD:
+ tgt.setValue(CarePlan.CarePlanActivityStatus.ONHOLD);
+ break;
+ case COMPLETED:
+ tgt.setValue(CarePlan.CarePlanActivityStatus.COMPLETED);
+ break;
+ case CANCELLED:
+ tgt.setValue(CarePlan.CarePlanActivityStatus.CANCELLED);
+ break;
+ default:
+ tgt.setValue(CarePlan.CarePlanActivityStatus.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu3.model.Enumeration convertCarePlanActivityStatus(org.hl7.fhir.dstu2.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.CarePlan.CarePlanActivityStatusEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case NOTSTARTED:
- tgt.setValue(org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityStatus.NOTSTARTED);
- break;
- case SCHEDULED:
- tgt.setValue(org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityStatus.SCHEDULED);
- break;
- case INPROGRESS:
- tgt.setValue(org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityStatus.INPROGRESS);
- break;
- case ONHOLD:
- tgt.setValue(org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityStatus.ONHOLD);
- break;
- case COMPLETED:
- tgt.setValue(org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityStatus.COMPLETED);
- break;
- case CANCELLED:
- tgt.setValue(org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityStatus.CANCELLED);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityStatus.NULL);
- break;
- }
- return tgt;
+ 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.CarePlan.CarePlanActivityStatusEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case NOTSTARTED:
+ tgt.setValue(org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityStatus.NOTSTARTED);
+ break;
+ case SCHEDULED:
+ tgt.setValue(org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityStatus.SCHEDULED);
+ break;
+ case INPROGRESS:
+ tgt.setValue(org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityStatus.INPROGRESS);
+ break;
+ case ONHOLD:
+ tgt.setValue(org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityStatus.ONHOLD);
+ break;
+ case COMPLETED:
+ tgt.setValue(org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityStatus.COMPLETED);
+ break;
+ case CANCELLED:
+ tgt.setValue(org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityStatus.CANCELLED);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityStatus.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu2.model.Enumeration convertCarePlanStatus(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException {
- if (src == null || src.isEmpty())
- return null;
- org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.CarePlan.CarePlanStatusEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case DRAFT:
- tgt.setValue(org.hl7.fhir.dstu2.model.CarePlan.CarePlanStatus.DRAFT);
- break;
- case ACTIVE:
- tgt.setValue(org.hl7.fhir.dstu2.model.CarePlan.CarePlanStatus.ACTIVE);
- break;
- case COMPLETED:
- tgt.setValue(org.hl7.fhir.dstu2.model.CarePlan.CarePlanStatus.COMPLETED);
- break;
- case CANCELLED:
- tgt.setValue(org.hl7.fhir.dstu2.model.CarePlan.CarePlanStatus.CANCELLED);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.CarePlan.CarePlanStatus.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ Enumeration tgt = new Enumeration<>(new CarePlan.CarePlanStatusEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case DRAFT:
+ tgt.setValue(CarePlan.CarePlanStatus.DRAFT);
+ break;
+ case ACTIVE:
+ tgt.setValue(CarePlan.CarePlanStatus.ACTIVE);
+ break;
+ case COMPLETED:
+ tgt.setValue(CarePlan.CarePlanStatus.COMPLETED);
+ break;
+ case CANCELLED:
+ tgt.setValue(CarePlan.CarePlanStatus.CANCELLED);
+ break;
+ default:
+ tgt.setValue(CarePlan.CarePlanStatus.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu3.model.Enumeration convertCarePlanStatus(org.hl7.fhir.dstu2.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.CarePlan.CarePlanStatusEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case PROPOSED:
- tgt.setValue(org.hl7.fhir.dstu3.model.CarePlan.CarePlanStatus.DRAFT);
- break;
- case DRAFT:
- tgt.setValue(org.hl7.fhir.dstu3.model.CarePlan.CarePlanStatus.DRAFT);
- break;
- case ACTIVE:
- tgt.setValue(org.hl7.fhir.dstu3.model.CarePlan.CarePlanStatus.ACTIVE);
- break;
- case COMPLETED:
- tgt.setValue(org.hl7.fhir.dstu3.model.CarePlan.CarePlanStatus.COMPLETED);
- break;
- case CANCELLED:
- tgt.setValue(org.hl7.fhir.dstu3.model.CarePlan.CarePlanStatus.CANCELLED);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.CarePlan.CarePlanStatus.NULL);
- break;
- }
- return tgt;
+ 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.CarePlan.CarePlanStatusEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case PROPOSED:
+ tgt.setValue(org.hl7.fhir.dstu3.model.CarePlan.CarePlanStatus.DRAFT);
+ break;
+ case DRAFT:
+ tgt.setValue(org.hl7.fhir.dstu3.model.CarePlan.CarePlanStatus.DRAFT);
+ break;
+ case ACTIVE:
+ tgt.setValue(org.hl7.fhir.dstu3.model.CarePlan.CarePlanStatus.ACTIVE);
+ break;
+ case COMPLETED:
+ tgt.setValue(org.hl7.fhir.dstu3.model.CarePlan.CarePlanStatus.COMPLETED);
+ break;
+ case CANCELLED:
+ tgt.setValue(org.hl7.fhir.dstu3.model.CarePlan.CarePlanStatus.CANCELLED);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu3.model.CarePlan.CarePlanStatus.NULL);
+ break;
+ }
+ }
+ return tgt;
}
}
\ No newline at end of file
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ClinicalImpression10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ClinicalImpression10_30.java
index f53be89bf6..3b9751ebce 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ClinicalImpression10_30.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/ClinicalImpression10_30.java
@@ -5,6 +5,8 @@
import org.hl7.fhir.convertors.conv10_30.datatypes10_30.complextypes10_30.CodeableConcept10_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.ClinicalImpression;
+import org.hl7.fhir.dstu3.model.Enumeration;
import org.hl7.fhir.dstu3.model.UriType;
import org.hl7.fhir.exceptions.FHIRException;
@@ -93,46 +95,54 @@ public static org.hl7.fhir.dstu2.model.ClinicalImpression.ClinicalImpressionFind
}
static public org.hl7.fhir.dstu3.model.Enumeration convertClinicalImpressionStatus(org.hl7.fhir.dstu2.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.ClinicalImpression.ClinicalImpressionStatusEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case INPROGRESS:
- tgt.setValue(org.hl7.fhir.dstu3.model.ClinicalImpression.ClinicalImpressionStatus.DRAFT);
- break;
- case COMPLETED:
- tgt.setValue(org.hl7.fhir.dstu3.model.ClinicalImpression.ClinicalImpressionStatus.COMPLETED);
- break;
- case ENTEREDINERROR:
- tgt.setValue(org.hl7.fhir.dstu3.model.ClinicalImpression.ClinicalImpressionStatus.ENTEREDINERROR);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.ClinicalImpression.ClinicalImpressionStatus.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ Enumeration tgt = new Enumeration<>(new ClinicalImpression.ClinicalImpressionStatusEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case INPROGRESS:
+ tgt.setValue(ClinicalImpression.ClinicalImpressionStatus.DRAFT);
+ break;
+ case COMPLETED:
+ tgt.setValue(ClinicalImpression.ClinicalImpressionStatus.COMPLETED);
+ break;
+ case ENTEREDINERROR:
+ tgt.setValue(ClinicalImpression.ClinicalImpressionStatus.ENTEREDINERROR);
+ break;
+ default:
+ tgt.setValue(ClinicalImpression.ClinicalImpressionStatus.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu2.model.Enumeration convertClinicalImpressionStatus(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException {
- if (src == null || src.isEmpty())
- return null;
- org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.ClinicalImpression.ClinicalImpressionStatusEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case DRAFT:
- tgt.setValue(org.hl7.fhir.dstu2.model.ClinicalImpression.ClinicalImpressionStatus.INPROGRESS);
- break;
- case COMPLETED:
- tgt.setValue(org.hl7.fhir.dstu2.model.ClinicalImpression.ClinicalImpressionStatus.COMPLETED);
- break;
- case ENTEREDINERROR:
- tgt.setValue(org.hl7.fhir.dstu2.model.ClinicalImpression.ClinicalImpressionStatus.ENTEREDINERROR);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.ClinicalImpression.ClinicalImpressionStatus.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.ClinicalImpression.ClinicalImpressionStatusEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case DRAFT:
+ tgt.setValue(org.hl7.fhir.dstu2.model.ClinicalImpression.ClinicalImpressionStatus.INPROGRESS);
+ break;
+ case COMPLETED:
+ tgt.setValue(org.hl7.fhir.dstu2.model.ClinicalImpression.ClinicalImpressionStatus.COMPLETED);
+ break;
+ case ENTEREDINERROR:
+ tgt.setValue(org.hl7.fhir.dstu2.model.ClinicalImpression.ClinicalImpressionStatus.ENTEREDINERROR);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu2.model.ClinicalImpression.ClinicalImpressionStatus.NULL);
+ break;
+ }
+ }
+ return tgt;
}
}
\ No newline at end of file
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Communication10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Communication10_30.java
index 0ec05a439b..052a3533d5 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Communication10_30.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Communication10_30.java
@@ -5,6 +5,8 @@
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.primitivetypes10_30.DateTime10_30;
+import org.hl7.fhir.dstu3.model.Communication;
+import org.hl7.fhir.dstu3.model.Enumeration;
import org.hl7.fhir.exceptions.FHIRException;
public class Communication10_30 {
@@ -94,58 +96,66 @@ public static org.hl7.fhir.dstu3.model.Communication.CommunicationPayloadCompone
}
static public org.hl7.fhir.dstu3.model.Enumeration convertCommunicationStatus(org.hl7.fhir.dstu2.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.Communication.CommunicationStatusEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case INPROGRESS:
- tgt.setValue(org.hl7.fhir.dstu3.model.Communication.CommunicationStatus.INPROGRESS);
- break;
- case COMPLETED:
- tgt.setValue(org.hl7.fhir.dstu3.model.Communication.CommunicationStatus.COMPLETED);
- break;
- case SUSPENDED:
- tgt.setValue(org.hl7.fhir.dstu3.model.Communication.CommunicationStatus.SUSPENDED);
- break;
- case REJECTED:
- tgt.setValue(org.hl7.fhir.dstu3.model.Communication.CommunicationStatus.ENTEREDINERROR);
- break;
- case FAILED:
- tgt.setValue(org.hl7.fhir.dstu3.model.Communication.CommunicationStatus.ABORTED);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.Communication.CommunicationStatus.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ Enumeration tgt = new Enumeration<>(new Communication.CommunicationStatusEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case INPROGRESS:
+ tgt.setValue(Communication.CommunicationStatus.INPROGRESS);
+ break;
+ case COMPLETED:
+ tgt.setValue(Communication.CommunicationStatus.COMPLETED);
+ break;
+ case SUSPENDED:
+ tgt.setValue(Communication.CommunicationStatus.SUSPENDED);
+ break;
+ case REJECTED:
+ tgt.setValue(Communication.CommunicationStatus.ENTEREDINERROR);
+ break;
+ case FAILED:
+ tgt.setValue(Communication.CommunicationStatus.ABORTED);
+ break;
+ default:
+ tgt.setValue(Communication.CommunicationStatus.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu2.model.Enumeration convertCommunicationStatus(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException {
- if (src == null || src.isEmpty())
- return null;
- org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Communication.CommunicationStatusEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case INPROGRESS:
- tgt.setValue(org.hl7.fhir.dstu2.model.Communication.CommunicationStatus.INPROGRESS);
- break;
- case COMPLETED:
- tgt.setValue(org.hl7.fhir.dstu2.model.Communication.CommunicationStatus.COMPLETED);
- break;
- case SUSPENDED:
- tgt.setValue(org.hl7.fhir.dstu2.model.Communication.CommunicationStatus.SUSPENDED);
- break;
- case ENTEREDINERROR:
- tgt.setValue(org.hl7.fhir.dstu2.model.Communication.CommunicationStatus.REJECTED);
- break;
- case ABORTED:
- tgt.setValue(org.hl7.fhir.dstu2.model.Communication.CommunicationStatus.FAILED);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.Communication.CommunicationStatus.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Communication.CommunicationStatusEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case INPROGRESS:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Communication.CommunicationStatus.INPROGRESS);
+ break;
+ case COMPLETED:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Communication.CommunicationStatus.COMPLETED);
+ break;
+ case SUSPENDED:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Communication.CommunicationStatus.SUSPENDED);
+ break;
+ case ENTEREDINERROR:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Communication.CommunicationStatus.REJECTED);
+ break;
+ case ABORTED:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Communication.CommunicationStatus.FAILED);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Communication.CommunicationStatus.NULL);
+ break;
+ }
+ }
+ return tgt;
}
}
\ No newline at end of file
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/CommunicationRequest10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/CommunicationRequest10_30.java
index f37d6e1875..993be190e6 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/CommunicationRequest10_30.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/CommunicationRequest10_30.java
@@ -5,6 +5,8 @@
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.primitivetypes10_30.DateTime10_30;
+import org.hl7.fhir.dstu3.model.CommunicationRequest;
+import org.hl7.fhir.dstu3.model.Enumeration;
import org.hl7.fhir.exceptions.FHIRException;
public class CommunicationRequest10_30 {
@@ -100,71 +102,79 @@ public static org.hl7.fhir.dstu3.model.CommunicationRequest.CommunicationRequest
}
static public org.hl7.fhir.dstu3.model.Enumeration convertCommunicationRequestStatus(org.hl7.fhir.dstu2.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.CommunicationRequest.CommunicationRequestStatusEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case PROPOSED:
- tgt.setValue(org.hl7.fhir.dstu3.model.CommunicationRequest.CommunicationRequestStatus.DRAFT);
- break;
- case PLANNED:
- tgt.setValue(org.hl7.fhir.dstu3.model.CommunicationRequest.CommunicationRequestStatus.ACTIVE);
- break;
- case REQUESTED:
- tgt.setValue(org.hl7.fhir.dstu3.model.CommunicationRequest.CommunicationRequestStatus.ACTIVE);
- break;
- case RECEIVED:
- tgt.setValue(org.hl7.fhir.dstu3.model.CommunicationRequest.CommunicationRequestStatus.ACTIVE);
- break;
- case ACCEPTED:
- tgt.setValue(org.hl7.fhir.dstu3.model.CommunicationRequest.CommunicationRequestStatus.ACTIVE);
- break;
- case INPROGRESS:
- tgt.setValue(org.hl7.fhir.dstu3.model.CommunicationRequest.CommunicationRequestStatus.ACTIVE);
- break;
- case COMPLETED:
- tgt.setValue(org.hl7.fhir.dstu3.model.CommunicationRequest.CommunicationRequestStatus.COMPLETED);
- break;
- case SUSPENDED:
- tgt.setValue(org.hl7.fhir.dstu3.model.CommunicationRequest.CommunicationRequestStatus.SUSPENDED);
- break;
- case REJECTED:
- tgt.setValue(org.hl7.fhir.dstu3.model.CommunicationRequest.CommunicationRequestStatus.ENTEREDINERROR);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.CommunicationRequest.CommunicationRequestStatus.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ Enumeration tgt = new Enumeration<>(new CommunicationRequest.CommunicationRequestStatusEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case PROPOSED:
+ tgt.setValue(CommunicationRequest.CommunicationRequestStatus.DRAFT);
+ break;
+ case PLANNED:
+ tgt.setValue(CommunicationRequest.CommunicationRequestStatus.ACTIVE);
+ break;
+ case REQUESTED:
+ tgt.setValue(CommunicationRequest.CommunicationRequestStatus.ACTIVE);
+ break;
+ case RECEIVED:
+ tgt.setValue(CommunicationRequest.CommunicationRequestStatus.ACTIVE);
+ break;
+ case ACCEPTED:
+ tgt.setValue(CommunicationRequest.CommunicationRequestStatus.ACTIVE);
+ break;
+ case INPROGRESS:
+ tgt.setValue(CommunicationRequest.CommunicationRequestStatus.ACTIVE);
+ break;
+ case COMPLETED:
+ tgt.setValue(CommunicationRequest.CommunicationRequestStatus.COMPLETED);
+ break;
+ case SUSPENDED:
+ tgt.setValue(CommunicationRequest.CommunicationRequestStatus.SUSPENDED);
+ break;
+ case REJECTED:
+ tgt.setValue(CommunicationRequest.CommunicationRequestStatus.ENTEREDINERROR);
+ break;
+ default:
+ tgt.setValue(CommunicationRequest.CommunicationRequestStatus.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu2.model.Enumeration convertCommunicationRequestStatus(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException {
- if (src == null || src.isEmpty())
- return null;
- org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestStatusEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case DRAFT:
- tgt.setValue(org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestStatus.PROPOSED);
- break;
- case ACTIVE:
- tgt.setValue(org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestStatus.INPROGRESS);
- break;
- case COMPLETED:
- tgt.setValue(org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestStatus.COMPLETED);
- break;
- case SUSPENDED:
- tgt.setValue(org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestStatus.SUSPENDED);
- break;
- case ENTEREDINERROR:
- tgt.setValue(org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestStatus.REJECTED);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestStatus.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestStatusEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case DRAFT:
+ tgt.setValue(org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestStatus.PROPOSED);
+ break;
+ case ACTIVE:
+ tgt.setValue(org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestStatus.INPROGRESS);
+ break;
+ case COMPLETED:
+ tgt.setValue(org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestStatus.COMPLETED);
+ break;
+ case SUSPENDED:
+ tgt.setValue(org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestStatus.SUSPENDED);
+ break;
+ case ENTEREDINERROR:
+ tgt.setValue(org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestStatus.REJECTED);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu2.model.CommunicationRequest.CommunicationRequestStatus.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu2.model.CodeableConcept convertPriorityCode(org.hl7.fhir.dstu3.model.CommunicationRequest.CommunicationPriority priority) {
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 53a998aa3c..84f05d4a9f 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
@@ -10,6 +10,8 @@
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.String10_30;
+import org.hl7.fhir.dstu3.model.Composition;
+import org.hl7.fhir.dstu3.model.Enumeration;
import org.hl7.fhir.exceptions.FHIRException;
public class Composition10_30 {
@@ -88,53 +90,61 @@ public static org.hl7.fhir.dstu2.model.Composition convertComposition(org.hl7.fh
}
static public org.hl7.fhir.dstu3.model.Enumeration convertCompositionAttestationMode(org.hl7.fhir.dstu2.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.Composition.CompositionAttestationModeEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case PERSONAL:
- tgt.setValue(org.hl7.fhir.dstu3.model.Composition.CompositionAttestationMode.PERSONAL);
- break;
- case PROFESSIONAL:
- tgt.setValue(org.hl7.fhir.dstu3.model.Composition.CompositionAttestationMode.PROFESSIONAL);
- break;
- case LEGAL:
- tgt.setValue(org.hl7.fhir.dstu3.model.Composition.CompositionAttestationMode.LEGAL);
- break;
- case OFFICIAL:
- tgt.setValue(org.hl7.fhir.dstu3.model.Composition.CompositionAttestationMode.OFFICIAL);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.Composition.CompositionAttestationMode.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ Enumeration tgt = new Enumeration<>(new Composition.CompositionAttestationModeEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case PERSONAL:
+ tgt.setValue(Composition.CompositionAttestationMode.PERSONAL);
+ break;
+ case PROFESSIONAL:
+ tgt.setValue(Composition.CompositionAttestationMode.PROFESSIONAL);
+ break;
+ case LEGAL:
+ tgt.setValue(Composition.CompositionAttestationMode.LEGAL);
+ break;
+ case OFFICIAL:
+ tgt.setValue(Composition.CompositionAttestationMode.OFFICIAL);
+ break;
+ default:
+ tgt.setValue(Composition.CompositionAttestationMode.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu2.model.Enumeration convertCompositionAttestationMode(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException {
- if (src == null || src.isEmpty())
- return null;
- org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Composition.CompositionAttestationModeEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case PERSONAL:
- tgt.setValue(org.hl7.fhir.dstu2.model.Composition.CompositionAttestationMode.PERSONAL);
- break;
- case PROFESSIONAL:
- tgt.setValue(org.hl7.fhir.dstu2.model.Composition.CompositionAttestationMode.PROFESSIONAL);
- break;
- case LEGAL:
- tgt.setValue(org.hl7.fhir.dstu2.model.Composition.CompositionAttestationMode.LEGAL);
- break;
- case OFFICIAL:
- tgt.setValue(org.hl7.fhir.dstu2.model.Composition.CompositionAttestationMode.OFFICIAL);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.Composition.CompositionAttestationMode.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Composition.CompositionAttestationModeEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case PERSONAL:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Composition.CompositionAttestationMode.PERSONAL);
+ break;
+ case PROFESSIONAL:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Composition.CompositionAttestationMode.PROFESSIONAL);
+ break;
+ case LEGAL:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Composition.CompositionAttestationMode.LEGAL);
+ break;
+ case OFFICIAL:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Composition.CompositionAttestationMode.OFFICIAL);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Composition.CompositionAttestationMode.NULL);
+ break;
+ }
+ }
+ return tgt;
}
public static org.hl7.fhir.dstu3.model.Composition.CompositionAttesterComponent convertCompositionAttesterComponent(org.hl7.fhir.dstu2.model.Composition.CompositionAttesterComponent src) throws FHIRException {
@@ -194,53 +204,61 @@ public static org.hl7.fhir.dstu3.model.Composition.CompositionEventComponent con
}
static public org.hl7.fhir.dstu3.model.Enumeration convertCompositionStatus(org.hl7.fhir.dstu2.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.Composition.CompositionStatusEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case PRELIMINARY:
- tgt.setValue(org.hl7.fhir.dstu3.model.Composition.CompositionStatus.PRELIMINARY);
- break;
- case FINAL:
- tgt.setValue(org.hl7.fhir.dstu3.model.Composition.CompositionStatus.FINAL);
- break;
- case AMENDED:
- tgt.setValue(org.hl7.fhir.dstu3.model.Composition.CompositionStatus.AMENDED);
- break;
- case ENTEREDINERROR:
- tgt.setValue(org.hl7.fhir.dstu3.model.Composition.CompositionStatus.ENTEREDINERROR);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.Composition.CompositionStatus.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ Enumeration tgt = new Enumeration<>(new Composition.CompositionStatusEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case PRELIMINARY:
+ tgt.setValue(Composition.CompositionStatus.PRELIMINARY);
+ break;
+ case FINAL:
+ tgt.setValue(Composition.CompositionStatus.FINAL);
+ break;
+ case AMENDED:
+ tgt.setValue(Composition.CompositionStatus.AMENDED);
+ break;
+ case ENTEREDINERROR:
+ tgt.setValue(Composition.CompositionStatus.ENTEREDINERROR);
+ break;
+ default:
+ tgt.setValue(Composition.CompositionStatus.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu2.model.Enumeration convertCompositionStatus(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException {
- if (src == null || src.isEmpty())
- return null;
- org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Composition.CompositionStatusEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case PRELIMINARY:
- tgt.setValue(org.hl7.fhir.dstu2.model.Composition.CompositionStatus.PRELIMINARY);
- break;
- case FINAL:
- tgt.setValue(org.hl7.fhir.dstu2.model.Composition.CompositionStatus.FINAL);
- break;
- case AMENDED:
- tgt.setValue(org.hl7.fhir.dstu2.model.Composition.CompositionStatus.AMENDED);
- break;
- case ENTEREDINERROR:
- tgt.setValue(org.hl7.fhir.dstu2.model.Composition.CompositionStatus.ENTEREDINERROR);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.Composition.CompositionStatus.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Composition.CompositionStatusEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case PRELIMINARY:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Composition.CompositionStatus.PRELIMINARY);
+ break;
+ case FINAL:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Composition.CompositionStatus.FINAL);
+ break;
+ case AMENDED:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Composition.CompositionStatus.AMENDED);
+ break;
+ case ENTEREDINERROR:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Composition.CompositionStatus.ENTEREDINERROR);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Composition.CompositionStatus.NULL);
+ break;
+ }
+ }
+ return tgt;
}
public static org.hl7.fhir.dstu3.model.Composition.SectionComponent convertSectionComponent(org.hl7.fhir.dstu2.model.Composition.SectionComponent 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 79f99dd3f8..a2902bd548 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
@@ -16,6 +16,8 @@
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.dstu3.model.Enumeration;
+import org.hl7.fhir.dstu3.model.Enumerations;
import org.hl7.fhir.exceptions.FHIRException;
public class ConceptMap10_30 {
@@ -135,83 +137,91 @@ public static org.hl7.fhir.dstu2.model.ConceptMap.ConceptMapContactComponent con
}
static public org.hl7.fhir.dstu3.model.Enumeration convertConceptMapEquivalence(org.hl7.fhir.dstu2.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.Enumerations.ConceptMapEquivalenceEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case EQUIVALENT:
- tgt.setValue(org.hl7.fhir.dstu3.model.Enumerations.ConceptMapEquivalence.EQUIVALENT);
- break;
- case EQUAL:
- tgt.setValue(org.hl7.fhir.dstu3.model.Enumerations.ConceptMapEquivalence.EQUAL);
- break;
- case WIDER:
- tgt.setValue(org.hl7.fhir.dstu3.model.Enumerations.ConceptMapEquivalence.WIDER);
- break;
- case SUBSUMES:
- tgt.setValue(org.hl7.fhir.dstu3.model.Enumerations.ConceptMapEquivalence.SUBSUMES);
- break;
- case NARROWER:
- tgt.setValue(org.hl7.fhir.dstu3.model.Enumerations.ConceptMapEquivalence.NARROWER);
- break;
- case SPECIALIZES:
- tgt.setValue(org.hl7.fhir.dstu3.model.Enumerations.ConceptMapEquivalence.SPECIALIZES);
- break;
- case INEXACT:
- tgt.setValue(org.hl7.fhir.dstu3.model.Enumerations.ConceptMapEquivalence.INEXACT);
- break;
- case UNMATCHED:
- tgt.setValue(org.hl7.fhir.dstu3.model.Enumerations.ConceptMapEquivalence.UNMATCHED);
- break;
- case DISJOINT:
- tgt.setValue(org.hl7.fhir.dstu3.model.Enumerations.ConceptMapEquivalence.DISJOINT);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.Enumerations.ConceptMapEquivalence.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ Enumeration tgt = new Enumeration<>(new Enumerations.ConceptMapEquivalenceEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case EQUIVALENT:
+ tgt.setValue(Enumerations.ConceptMapEquivalence.EQUIVALENT);
+ break;
+ case EQUAL:
+ tgt.setValue(Enumerations.ConceptMapEquivalence.EQUAL);
+ break;
+ case WIDER:
+ tgt.setValue(Enumerations.ConceptMapEquivalence.WIDER);
+ break;
+ case SUBSUMES:
+ tgt.setValue(Enumerations.ConceptMapEquivalence.SUBSUMES);
+ break;
+ case NARROWER:
+ tgt.setValue(Enumerations.ConceptMapEquivalence.NARROWER);
+ break;
+ case SPECIALIZES:
+ tgt.setValue(Enumerations.ConceptMapEquivalence.SPECIALIZES);
+ break;
+ case INEXACT:
+ tgt.setValue(Enumerations.ConceptMapEquivalence.INEXACT);
+ break;
+ case UNMATCHED:
+ tgt.setValue(Enumerations.ConceptMapEquivalence.UNMATCHED);
+ break;
+ case DISJOINT:
+ tgt.setValue(Enumerations.ConceptMapEquivalence.DISJOINT);
+ break;
+ default:
+ tgt.setValue(Enumerations.ConceptMapEquivalence.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu2.model.Enumeration convertConceptMapEquivalence(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException {
- if (src == null || src.isEmpty())
- return null;
- org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalenceEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case EQUIVALENT:
- tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalence.EQUIVALENT);
- break;
- case EQUAL:
- tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalence.EQUAL);
- break;
- case WIDER:
- tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalence.WIDER);
- break;
- case SUBSUMES:
- tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalence.SUBSUMES);
- break;
- case NARROWER:
- tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalence.NARROWER);
- break;
- case SPECIALIZES:
- tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalence.SPECIALIZES);
- break;
- case INEXACT:
- tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalence.INEXACT);
- break;
- case UNMATCHED:
- tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalence.UNMATCHED);
- break;
- case DISJOINT:
- tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalence.DISJOINT);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalence.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalenceEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case EQUIVALENT:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalence.EQUIVALENT);
+ break;
+ case EQUAL:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalence.EQUAL);
+ break;
+ case WIDER:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalence.WIDER);
+ break;
+ case SUBSUMES:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalence.SUBSUMES);
+ break;
+ case NARROWER:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalence.NARROWER);
+ break;
+ case SPECIALIZES:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalence.SPECIALIZES);
+ break;
+ case INEXACT:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalence.INEXACT);
+ break;
+ case UNMATCHED:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalence.UNMATCHED);
+ break;
+ case DISJOINT:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalence.DISJOINT);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalence.NULL);
+ break;
+ }
+ }
+ return tgt;
}
public static org.hl7.fhir.dstu3.model.ConceptMap.OtherElementComponent convertOtherElementComponent(org.hl7.fhir.dstu2.model.ConceptMap.OtherElementComponent src) throws FHIRException {
diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Condition10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Condition10_30.java
index c705d77587..8718cc1fb7 100644
--- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Condition10_30.java
+++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_30/resources10_30/Condition10_30.java
@@ -4,6 +4,8 @@
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.Identifier10_30;
+import org.hl7.fhir.dstu2.model.Condition;
+import org.hl7.fhir.dstu2.model.Enumeration;
import org.hl7.fhir.exceptions.FHIRException;
public class Condition10_30 {
@@ -134,64 +136,72 @@ public static org.hl7.fhir.dstu2.model.Condition.ConditionStageComponent convert
}
static public org.hl7.fhir.dstu2.model.Enumeration convertConditionVerificationStatus(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException {
- if (src == null || src.isEmpty())
- return null;
- org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Condition.ConditionVerificationStatusEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case PROVISIONAL:
- tgt.setValue(org.hl7.fhir.dstu2.model.Condition.ConditionVerificationStatus.PROVISIONAL);
- break;
- case DIFFERENTIAL:
- tgt.setValue(org.hl7.fhir.dstu2.model.Condition.ConditionVerificationStatus.DIFFERENTIAL);
- break;
- case CONFIRMED:
- tgt.setValue(org.hl7.fhir.dstu2.model.Condition.ConditionVerificationStatus.CONFIRMED);
- break;
- case REFUTED:
- tgt.setValue(org.hl7.fhir.dstu2.model.Condition.ConditionVerificationStatus.REFUTED);
- break;
- case ENTEREDINERROR:
- tgt.setValue(org.hl7.fhir.dstu2.model.Condition.ConditionVerificationStatus.ENTEREDINERROR);
- break;
- case UNKNOWN:
- tgt.setValue(org.hl7.fhir.dstu2.model.Condition.ConditionVerificationStatus.UNKNOWN);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.Condition.ConditionVerificationStatus.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ Enumeration tgt = new Enumeration<>(new Condition.ConditionVerificationStatusEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case PROVISIONAL:
+ tgt.setValue(Condition.ConditionVerificationStatus.PROVISIONAL);
+ break;
+ case DIFFERENTIAL:
+ tgt.setValue(Condition.ConditionVerificationStatus.DIFFERENTIAL);
+ break;
+ case CONFIRMED:
+ tgt.setValue(Condition.ConditionVerificationStatus.CONFIRMED);
+ break;
+ case REFUTED:
+ tgt.setValue(Condition.ConditionVerificationStatus.REFUTED);
+ break;
+ case ENTEREDINERROR:
+ tgt.setValue(Condition.ConditionVerificationStatus.ENTEREDINERROR);
+ break;
+ case UNKNOWN:
+ tgt.setValue(Condition.ConditionVerificationStatus.UNKNOWN);
+ break;
+ default:
+ tgt.setValue(Condition.ConditionVerificationStatus.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu3.model.Enumeration convertConditionVerificationStatus(org.hl7.fhir.dstu2.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.Condition.ConditionVerificationStatusEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case PROVISIONAL:
- tgt.setValue(org.hl7.fhir.dstu3.model.Condition.ConditionVerificationStatus.PROVISIONAL);
- break;
- case DIFFERENTIAL:
- tgt.setValue(org.hl7.fhir.dstu3.model.Condition.ConditionVerificationStatus.DIFFERENTIAL);
- break;
- case CONFIRMED:
- tgt.setValue(org.hl7.fhir.dstu3.model.Condition.ConditionVerificationStatus.CONFIRMED);
- break;
- case REFUTED:
- tgt.setValue(org.hl7.fhir.dstu3.model.Condition.ConditionVerificationStatus.REFUTED);
- break;
- case ENTEREDINERROR:
- tgt.setValue(org.hl7.fhir.dstu3.model.Condition.ConditionVerificationStatus.ENTEREDINERROR);
- break;
- case UNKNOWN:
- tgt.setValue(org.hl7.fhir.dstu3.model.Condition.ConditionVerificationStatus.UNKNOWN);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.Condition.ConditionVerificationStatus.NULL);
- break;
- }
- return tgt;
+ 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.Condition.ConditionVerificationStatusEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case PROVISIONAL:
+ tgt.setValue(org.hl7.fhir.dstu3.model.Condition.ConditionVerificationStatus.PROVISIONAL);
+ break;
+ case DIFFERENTIAL:
+ tgt.setValue(org.hl7.fhir.dstu3.model.Condition.ConditionVerificationStatus.DIFFERENTIAL);
+ break;
+ case CONFIRMED:
+ tgt.setValue(org.hl7.fhir.dstu3.model.Condition.ConditionVerificationStatus.CONFIRMED);
+ break;
+ case REFUTED:
+ tgt.setValue(org.hl7.fhir.dstu3.model.Condition.ConditionVerificationStatus.REFUTED);
+ break;
+ case ENTEREDINERROR:
+ tgt.setValue(org.hl7.fhir.dstu3.model.Condition.ConditionVerificationStatus.ENTEREDINERROR);
+ break;
+ case UNKNOWN:
+ tgt.setValue(org.hl7.fhir.dstu3.model.Condition.ConditionVerificationStatus.UNKNOWN);
+ break;
+ default:
+ tgt.setValue(org.hl7.fhir.dstu3.model.Condition.ConditionVerificationStatus.NULL);
+ break;
+ }
+ }
+ return tgt;
}
}
\ No newline at end of file
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 e7c1301c7a..018b887feb 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
@@ -13,53 +13,64 @@
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.dstu2.model.Conformance;
+import org.hl7.fhir.dstu2.model.Enumeration;
+import org.hl7.fhir.dstu3.model.CapabilityStatement;
import org.hl7.fhir.dstu3.model.CapabilityStatement.SystemRestfulInteraction;
import org.hl7.fhir.exceptions.FHIRException;
public class Conformance10_30 {
static public org.hl7.fhir.dstu2.model.Enumeration convertConditionalDeleteStatus(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException {
- if (src == null || src.isEmpty())
- return null;
- org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Conformance.ConditionalDeleteStatusEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case NOTSUPPORTED:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.ConditionalDeleteStatus.NOTSUPPORTED);
- break;
- case SINGLE:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.ConditionalDeleteStatus.SINGLE);
- break;
- case MULTIPLE:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.ConditionalDeleteStatus.MULTIPLE);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.ConditionalDeleteStatus.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ Enumeration tgt = new Enumeration<>(new Conformance.ConditionalDeleteStatusEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case NOTSUPPORTED:
+ tgt.setValue(Conformance.ConditionalDeleteStatus.NOTSUPPORTED);
+ break;
+ case SINGLE:
+ tgt.setValue(Conformance.ConditionalDeleteStatus.SINGLE);
+ break;
+ case MULTIPLE:
+ tgt.setValue(Conformance.ConditionalDeleteStatus.MULTIPLE);
+ break;
+ default:
+ tgt.setValue(Conformance.ConditionalDeleteStatus.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu3.model.Enumeration convertConditionalDeleteStatus(org.hl7.fhir.dstu2.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.CapabilityStatement.ConditionalDeleteStatusEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case NOTSUPPORTED:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.ConditionalDeleteStatus.NOTSUPPORTED);
- break;
- case SINGLE:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.ConditionalDeleteStatus.SINGLE);
- break;
- case MULTIPLE:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.ConditionalDeleteStatus.MULTIPLE);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.ConditionalDeleteStatus.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new CapabilityStatement.ConditionalDeleteStatusEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case NOTSUPPORTED:
+ tgt.setValue(CapabilityStatement.ConditionalDeleteStatus.NOTSUPPORTED);
+ break;
+ case SINGLE:
+ tgt.setValue(CapabilityStatement.ConditionalDeleteStatus.SINGLE);
+ break;
+ case MULTIPLE:
+ tgt.setValue(CapabilityStatement.ConditionalDeleteStatus.MULTIPLE);
+ break;
+ default:
+ tgt.setValue(CapabilityStatement.ConditionalDeleteStatus.NULL);
+ break;
+ }
+ }
+ return tgt;
}
public static org.hl7.fhir.dstu2.model.Conformance convertConformance(org.hl7.fhir.dstu3.model.CapabilityStatement src) throws FHIRException {
@@ -211,41 +222,49 @@ public static org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementDo
}
static public org.hl7.fhir.dstu2.model.Enumeration convertConformanceEventMode(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException {
- if (src == null || src.isEmpty())
- return null;
- org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Conformance.ConformanceEventModeEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case SENDER:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.ConformanceEventMode.SENDER);
- break;
- case RECEIVER:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.ConformanceEventMode.RECEIVER);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.ConformanceEventMode.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ Enumeration tgt = new Enumeration<>(new Conformance.ConformanceEventModeEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case SENDER:
+ tgt.setValue(Conformance.ConformanceEventMode.SENDER);
+ break;
+ case RECEIVER:
+ tgt.setValue(Conformance.ConformanceEventMode.RECEIVER);
+ break;
+ default:
+ tgt.setValue(Conformance.ConformanceEventMode.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu3.model.Enumeration convertConformanceEventMode(org.hl7.fhir.dstu2.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.CapabilityStatement.EventCapabilityModeEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case SENDER:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.EventCapabilityMode.SENDER);
- break;
- case RECEIVER:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.EventCapabilityMode.RECEIVER);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.EventCapabilityMode.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new CapabilityStatement.EventCapabilityModeEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case SENDER:
+ tgt.setValue(CapabilityStatement.EventCapabilityMode.SENDER);
+ break;
+ case RECEIVER:
+ tgt.setValue(CapabilityStatement.EventCapabilityMode.RECEIVER);
+ break;
+ default:
+ tgt.setValue(CapabilityStatement.EventCapabilityMode.NULL);
+ break;
+ }
+ }
+ return tgt;
}
public static org.hl7.fhir.dstu2.model.Conformance.ConformanceImplementationComponent convertConformanceImplementationComponent(org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementImplementationComponent src) throws FHIRException {
@@ -633,129 +652,153 @@ public static org.hl7.fhir.dstu2.model.Conformance.ConformanceSoftwareComponent
}
static public org.hl7.fhir.dstu3.model.Enumeration convertConformanceStatementKind(org.hl7.fhir.dstu2.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.CapabilityStatement.CapabilityStatementKindEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case INSTANCE:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementKind.INSTANCE);
- break;
- case CAPABILITY:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementKind.CAPABILITY);
- break;
- case REQUIREMENTS:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementKind.REQUIREMENTS);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementKind.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new CapabilityStatement.CapabilityStatementKindEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case INSTANCE:
+ tgt.setValue(CapabilityStatement.CapabilityStatementKind.INSTANCE);
+ break;
+ case CAPABILITY:
+ tgt.setValue(CapabilityStatement.CapabilityStatementKind.CAPABILITY);
+ break;
+ case REQUIREMENTS:
+ tgt.setValue(CapabilityStatement.CapabilityStatementKind.REQUIREMENTS);
+ break;
+ default:
+ tgt.setValue(CapabilityStatement.CapabilityStatementKind.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu2.model.Enumeration convertConformanceStatementKind(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException {
- if (src == null || src.isEmpty())
- return null;
- org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Conformance.ConformanceStatementKindEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case INSTANCE:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.ConformanceStatementKind.INSTANCE);
- break;
- case CAPABILITY:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.ConformanceStatementKind.CAPABILITY);
- break;
- case REQUIREMENTS:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.ConformanceStatementKind.REQUIREMENTS);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.ConformanceStatementKind.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ Enumeration tgt = new Enumeration<>(new Conformance.ConformanceStatementKindEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case INSTANCE:
+ tgt.setValue(Conformance.ConformanceStatementKind.INSTANCE);
+ break;
+ case CAPABILITY:
+ tgt.setValue(Conformance.ConformanceStatementKind.CAPABILITY);
+ break;
+ case REQUIREMENTS:
+ tgt.setValue(Conformance.ConformanceStatementKind.REQUIREMENTS);
+ break;
+ default:
+ tgt.setValue(Conformance.ConformanceStatementKind.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu3.model.Enumeration convertDocumentMode(org.hl7.fhir.dstu2.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.CapabilityStatement.DocumentModeEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case PRODUCER:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.DocumentMode.PRODUCER);
- break;
- case CONSUMER:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.DocumentMode.CONSUMER);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.DocumentMode.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new CapabilityStatement.DocumentModeEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case PRODUCER:
+ tgt.setValue(CapabilityStatement.DocumentMode.PRODUCER);
+ break;
+ case CONSUMER:
+ tgt.setValue(CapabilityStatement.DocumentMode.CONSUMER);
+ break;
+ default:
+ tgt.setValue(CapabilityStatement.DocumentMode.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu2.model.Enumeration convertDocumentMode(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException {
- if (src == null || src.isEmpty())
- return null;
- org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Conformance.DocumentModeEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case PRODUCER:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.DocumentMode.PRODUCER);
- break;
- case CONSUMER:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.DocumentMode.CONSUMER);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.DocumentMode.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ Enumeration tgt = new Enumeration<>(new Conformance.DocumentModeEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case PRODUCER:
+ tgt.setValue(Conformance.DocumentMode.PRODUCER);
+ break;
+ case CONSUMER:
+ tgt.setValue(Conformance.DocumentMode.CONSUMER);
+ break;
+ default:
+ tgt.setValue(Conformance.DocumentMode.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu3.model.Enumeration convertMessageSignificanceCategory(org.hl7.fhir.dstu2.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.CapabilityStatement.MessageSignificanceCategoryEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case CONSEQUENCE:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.MessageSignificanceCategory.CONSEQUENCE);
- break;
- case CURRENCY:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.MessageSignificanceCategory.CURRENCY);
- break;
- case NOTIFICATION:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.MessageSignificanceCategory.NOTIFICATION);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.MessageSignificanceCategory.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new CapabilityStatement.MessageSignificanceCategoryEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case CONSEQUENCE:
+ tgt.setValue(CapabilityStatement.MessageSignificanceCategory.CONSEQUENCE);
+ break;
+ case CURRENCY:
+ tgt.setValue(CapabilityStatement.MessageSignificanceCategory.CURRENCY);
+ break;
+ case NOTIFICATION:
+ tgt.setValue(CapabilityStatement.MessageSignificanceCategory.NOTIFICATION);
+ break;
+ default:
+ tgt.setValue(CapabilityStatement.MessageSignificanceCategory.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu2.model.Enumeration convertMessageSignificanceCategory(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException {
- if (src == null || src.isEmpty())
- return null;
- org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Conformance.MessageSignificanceCategoryEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case CONSEQUENCE:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.MessageSignificanceCategory.CONSEQUENCE);
- break;
- case CURRENCY:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.MessageSignificanceCategory.CURRENCY);
- break;
- case NOTIFICATION:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.MessageSignificanceCategory.NOTIFICATION);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.MessageSignificanceCategory.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ Enumeration tgt = new Enumeration<>(new Conformance.MessageSignificanceCategoryEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case CONSEQUENCE:
+ tgt.setValue(Conformance.MessageSignificanceCategory.CONSEQUENCE);
+ break;
+ case CURRENCY:
+ tgt.setValue(Conformance.MessageSignificanceCategory.CURRENCY);
+ break;
+ case NOTIFICATION:
+ tgt.setValue(Conformance.MessageSignificanceCategory.NOTIFICATION);
+ break;
+ default:
+ tgt.setValue(Conformance.MessageSignificanceCategory.NULL);
+ break;
+ }
+ }
+ return tgt;
}
public static org.hl7.fhir.dstu3.model.CapabilityStatement.ResourceInteractionComponent convertResourceInteractionComponent(org.hl7.fhir.dstu2.model.Conformance.ResourceInteractionComponent src) throws FHIRException {
@@ -783,85 +826,101 @@ public static org.hl7.fhir.dstu2.model.Conformance.ResourceInteractionComponent
}
static public org.hl7.fhir.dstu2.model.Enumeration convertResourceVersionPolicy(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException {
- if (src == null || src.isEmpty())
- return null;
- org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Conformance.ResourceVersionPolicyEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case NOVERSION:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.ResourceVersionPolicy.NOVERSION);
- break;
- case VERSIONED:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.ResourceVersionPolicy.VERSIONED);
- break;
- case VERSIONEDUPDATE:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.ResourceVersionPolicy.VERSIONEDUPDATE);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.ResourceVersionPolicy.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ Enumeration tgt = new Enumeration<>(new Conformance.ResourceVersionPolicyEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case NOVERSION:
+ tgt.setValue(Conformance.ResourceVersionPolicy.NOVERSION);
+ break;
+ case VERSIONED:
+ tgt.setValue(Conformance.ResourceVersionPolicy.VERSIONED);
+ break;
+ case VERSIONEDUPDATE:
+ tgt.setValue(Conformance.ResourceVersionPolicy.VERSIONEDUPDATE);
+ break;
+ default:
+ tgt.setValue(Conformance.ResourceVersionPolicy.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu3.model.Enumeration convertResourceVersionPolicy(org.hl7.fhir.dstu2.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.CapabilityStatement.ResourceVersionPolicyEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case NOVERSION:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.ResourceVersionPolicy.NOVERSION);
- break;
- case VERSIONED:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.ResourceVersionPolicy.VERSIONED);
- break;
- case VERSIONEDUPDATE:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.ResourceVersionPolicy.VERSIONEDUPDATE);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.ResourceVersionPolicy.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new CapabilityStatement.ResourceVersionPolicyEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case NOVERSION:
+ tgt.setValue(CapabilityStatement.ResourceVersionPolicy.NOVERSION);
+ break;
+ case VERSIONED:
+ tgt.setValue(CapabilityStatement.ResourceVersionPolicy.VERSIONED);
+ break;
+ case VERSIONEDUPDATE:
+ tgt.setValue(CapabilityStatement.ResourceVersionPolicy.VERSIONEDUPDATE);
+ break;
+ default:
+ tgt.setValue(CapabilityStatement.ResourceVersionPolicy.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu2.model.Enumeration convertRestfulConformanceMode(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException {
- if (src == null || src.isEmpty())
- return null;
- org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Conformance.RestfulConformanceModeEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case CLIENT:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.RestfulConformanceMode.CLIENT);
- break;
- case SERVER:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.RestfulConformanceMode.SERVER);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.RestfulConformanceMode.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ Enumeration tgt = new Enumeration<>(new Conformance.RestfulConformanceModeEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case CLIENT:
+ tgt.setValue(Conformance.RestfulConformanceMode.CLIENT);
+ break;
+ case SERVER:
+ tgt.setValue(Conformance.RestfulConformanceMode.SERVER);
+ break;
+ default:
+ tgt.setValue(Conformance.RestfulConformanceMode.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu3.model.Enumeration convertRestfulConformanceMode(org.hl7.fhir.dstu2.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.CapabilityStatement.RestfulCapabilityModeEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case CLIENT:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.RestfulCapabilityMode.CLIENT);
- break;
- case SERVER:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.RestfulCapabilityMode.SERVER);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.RestfulCapabilityMode.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new CapabilityStatement.RestfulCapabilityModeEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case CLIENT:
+ tgt.setValue(CapabilityStatement.RestfulCapabilityMode.CLIENT);
+ break;
+ case SERVER:
+ tgt.setValue(CapabilityStatement.RestfulCapabilityMode.SERVER);
+ break;
+ default:
+ tgt.setValue(CapabilityStatement.RestfulCapabilityMode.NULL);
+ break;
+ }
+ }
+ return tgt;
}
public static org.hl7.fhir.dstu2.model.Conformance.SystemInteractionComponent convertSystemInteractionComponent(org.hl7.fhir.dstu3.model.CapabilityStatement.SystemInteractionComponent src) throws FHIRException {
@@ -889,170 +948,194 @@ public static org.hl7.fhir.dstu3.model.CapabilityStatement.SystemInteractionComp
}
static public org.hl7.fhir.dstu3.model.Enumeration convertSystemRestfulInteraction(org.hl7.fhir.dstu2.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.CapabilityStatement.SystemRestfulInteractionEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case TRANSACTION:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.SystemRestfulInteraction.TRANSACTION);
- break;
- case SEARCHSYSTEM:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.SystemRestfulInteraction.SEARCHSYSTEM);
- break;
- case HISTORYSYSTEM:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.SystemRestfulInteraction.HISTORYSYSTEM);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.SystemRestfulInteraction.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new CapabilityStatement.SystemRestfulInteractionEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case TRANSACTION:
+ tgt.setValue(SystemRestfulInteraction.TRANSACTION);
+ break;
+ case SEARCHSYSTEM:
+ tgt.setValue(SystemRestfulInteraction.SEARCHSYSTEM);
+ break;
+ case HISTORYSYSTEM:
+ tgt.setValue(SystemRestfulInteraction.HISTORYSYSTEM);
+ break;
+ default:
+ tgt.setValue(SystemRestfulInteraction.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu2.model.Enumeration convertSystemRestfulInteraction(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException {
- if (src == null || src.isEmpty())
- return null;
- org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Conformance.SystemRestfulInteractionEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case TRANSACTION:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.SystemRestfulInteraction.TRANSACTION);
- break;
- case SEARCHSYSTEM:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.SystemRestfulInteraction.SEARCHSYSTEM);
- break;
- case HISTORYSYSTEM:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.SystemRestfulInteraction.HISTORYSYSTEM);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.SystemRestfulInteraction.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ Enumeration tgt = new Enumeration<>(new Conformance.SystemRestfulInteractionEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case TRANSACTION:
+ tgt.setValue(Conformance.SystemRestfulInteraction.TRANSACTION);
+ break;
+ case SEARCHSYSTEM:
+ tgt.setValue(Conformance.SystemRestfulInteraction.SEARCHSYSTEM);
+ break;
+ case HISTORYSYSTEM:
+ tgt.setValue(Conformance.SystemRestfulInteraction.HISTORYSYSTEM);
+ break;
+ default:
+ tgt.setValue(Conformance.SystemRestfulInteraction.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu3.model.Enumeration convertTypeRestfulInteraction(org.hl7.fhir.dstu2.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.CapabilityStatement.TypeRestfulInteractionEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case READ:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.TypeRestfulInteraction.READ);
- break;
- case VREAD:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.TypeRestfulInteraction.VREAD);
- break;
- case UPDATE:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.TypeRestfulInteraction.UPDATE);
- break;
- case DELETE:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.TypeRestfulInteraction.DELETE);
- break;
- case HISTORYINSTANCE:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.TypeRestfulInteraction.HISTORYINSTANCE);
- break;
- case HISTORYTYPE:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.TypeRestfulInteraction.HISTORYTYPE);
- break;
- case CREATE:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.TypeRestfulInteraction.CREATE);
- break;
- case SEARCHTYPE:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.TypeRestfulInteraction.SEARCHTYPE);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.TypeRestfulInteraction.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new CapabilityStatement.TypeRestfulInteractionEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case READ:
+ tgt.setValue(CapabilityStatement.TypeRestfulInteraction.READ);
+ break;
+ case VREAD:
+ tgt.setValue(CapabilityStatement.TypeRestfulInteraction.VREAD);
+ break;
+ case UPDATE:
+ tgt.setValue(CapabilityStatement.TypeRestfulInteraction.UPDATE);
+ break;
+ case DELETE:
+ tgt.setValue(CapabilityStatement.TypeRestfulInteraction.DELETE);
+ break;
+ case HISTORYINSTANCE:
+ tgt.setValue(CapabilityStatement.TypeRestfulInteraction.HISTORYINSTANCE);
+ break;
+ case HISTORYTYPE:
+ tgt.setValue(CapabilityStatement.TypeRestfulInteraction.HISTORYTYPE);
+ break;
+ case CREATE:
+ tgt.setValue(CapabilityStatement.TypeRestfulInteraction.CREATE);
+ break;
+ case SEARCHTYPE:
+ tgt.setValue(CapabilityStatement.TypeRestfulInteraction.SEARCHTYPE);
+ break;
+ default:
+ tgt.setValue(CapabilityStatement.TypeRestfulInteraction.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu2.model.Enumeration convertTypeRestfulInteraction(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException {
- if (src == null || src.isEmpty())
- return null;
- org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Conformance.TypeRestfulInteractionEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case READ:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.TypeRestfulInteraction.READ);
- break;
- case VREAD:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.TypeRestfulInteraction.VREAD);
- break;
- case UPDATE:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.TypeRestfulInteraction.UPDATE);
- break;
- case DELETE:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.TypeRestfulInteraction.DELETE);
- break;
- case HISTORYINSTANCE:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.TypeRestfulInteraction.HISTORYINSTANCE);
- break;
- case HISTORYTYPE:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.TypeRestfulInteraction.HISTORYTYPE);
- break;
- case CREATE:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.TypeRestfulInteraction.CREATE);
- break;
- case SEARCHTYPE:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.TypeRestfulInteraction.SEARCHTYPE);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu2.model.Conformance.TypeRestfulInteraction.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ Enumeration tgt = new Enumeration<>(new Conformance.TypeRestfulInteractionEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case READ:
+ tgt.setValue(Conformance.TypeRestfulInteraction.READ);
+ break;
+ case VREAD:
+ tgt.setValue(Conformance.TypeRestfulInteraction.VREAD);
+ break;
+ case UPDATE:
+ tgt.setValue(Conformance.TypeRestfulInteraction.UPDATE);
+ break;
+ case DELETE:
+ tgt.setValue(Conformance.TypeRestfulInteraction.DELETE);
+ break;
+ case HISTORYINSTANCE:
+ tgt.setValue(Conformance.TypeRestfulInteraction.HISTORYINSTANCE);
+ break;
+ case HISTORYTYPE:
+ tgt.setValue(Conformance.TypeRestfulInteraction.HISTORYTYPE);
+ break;
+ case CREATE:
+ tgt.setValue(Conformance.TypeRestfulInteraction.CREATE);
+ break;
+ case SEARCHTYPE:
+ tgt.setValue(Conformance.TypeRestfulInteraction.SEARCHTYPE);
+ break;
+ default:
+ tgt.setValue(Conformance.TypeRestfulInteraction.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu3.model.Enumeration convertUnknownContentCode(org.hl7.fhir.dstu2.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.CapabilityStatement.UnknownContentCodeEnumFactory());
- ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
- switch (src.getValue()) {
- case NO:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.UnknownContentCode.NO);
- break;
- case EXTENSIONS:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.UnknownContentCode.EXTENSIONS);
- break;
- case ELEMENTS:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.UnknownContentCode.ELEMENTS);
- break;
- case BOTH:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.UnknownContentCode.BOTH);
- break;
- default:
- tgt.setValue(org.hl7.fhir.dstu3.model.CapabilityStatement.UnknownContentCode.NULL);
- break;
- }
- return tgt;
+ if (src == null || src.isEmpty())
+ return null;
+ org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new CapabilityStatement.UnknownContentCodeEnumFactory());
+ ConversionContext10_30.INSTANCE.getVersionConvertor_10_30().copyElement(src, tgt);
+ if (src.getValue() == null) {
+ tgt.setValue(null);
+ } else {
+ switch (src.getValue()) {
+ case NO:
+ tgt.setValue(CapabilityStatement.UnknownContentCode.NO);
+ break;
+ case EXTENSIONS:
+ tgt.setValue(CapabilityStatement.UnknownContentCode.EXTENSIONS);
+ break;
+ case ELEMENTS:
+ tgt.setValue(CapabilityStatement.UnknownContentCode.ELEMENTS);
+ break;
+ case BOTH:
+ tgt.setValue(CapabilityStatement.UnknownContentCode.BOTH);
+ break;
+ default:
+ tgt.setValue(CapabilityStatement.UnknownContentCode.NULL);
+ break;
+ }
+ }
+ return tgt;
}
static public org.hl7.fhir.dstu2.model.Enumeration convertUnknownContentCode(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException {
- if (src == null || src.isEmpty())
- return null;
- org.hl7.fhir.dstu2.model.Enumeration