Added R4B releases to the R4<->R5 conversion process

Corrected release number for R4B to be 4.3xxx rather than 4.1xxx
This commit is contained in:
Lloyd McKenzie 2022-03-11 11:16:04 -07:00
parent 685ea98d37
commit a6faece71b
2 changed files with 253 additions and 241 deletions

View File

@ -227,6 +227,12 @@ public class Enumerations40_50 {
case _4_1_0: case _4_1_0:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FHIRVersion._4_1_0); tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FHIRVersion._4_1_0);
break; break;
case _4_3_0_CIBUILD:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FHIRVersion._4_3_0CIBUILD);
break;
case _4_3_0_SNAPSHOT1:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FHIRVersion._4_3_0SNAPSHOT1);
break;
default: default:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FHIRVersion.NULL); tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FHIRVersion.NULL);
break; break;
@ -312,6 +318,12 @@ public class Enumerations40_50 {
case _4_1_0: case _4_1_0:
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.FHIRVersion._4_1_0); tgt.setValue(org.hl7.fhir.r4.model.Enumerations.FHIRVersion._4_1_0);
break; break;
case _4_3_0CIBUILD:
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.FHIRVersion._4_3_0_CIBUILD);
break;
case _4_3_0SNAPSHOT1:
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.FHIRVersion._4_3_0_SNAPSHOT1);
break;
default: default:
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.FHIRVersion.NULL); tgt.setValue(org.hl7.fhir.r4.model.Enumerations.FHIRVersion.NULL);
break; break;

View File

@ -6874,71 +6874,71 @@ The primary difference between a medicationusage and a medicationadministration
public static FHIRVersion fromCode(String codeString) throws FHIRException { public static FHIRVersion fromCode(String codeString) throws FHIRException {
if (codeString == null || "".equals(codeString)) if (codeString == null || "".equals(codeString))
return null; return null;
if ("0.01".equals(codeString)) if ("0.01".equals(codeString))
return _0_01; return _0_01;
if ("0.05".equals(codeString)) if ("0.05".equals(codeString))
return _0_05; return _0_05;
if ("0.06".equals(codeString)) if ("0.06".equals(codeString))
return _0_06; return _0_06;
if ("0.11".equals(codeString)) if ("0.11".equals(codeString))
return _0_11; return _0_11;
if ("0.0.80".equals(codeString)) if ("0.0.80".equals(codeString))
return _0_0_80; return _0_0_80;
if ("0.0.81".equals(codeString)) if ("0.0.81".equals(codeString))
return _0_0_81; return _0_0_81;
if ("0.0.82".equals(codeString)) if ("0.0.82".equals(codeString))
return _0_0_82; return _0_0_82;
if ("0.4.0".equals(codeString)) if ("0.4.0".equals(codeString))
return _0_4_0; return _0_4_0;
if ("0.5.0".equals(codeString)) if ("0.5.0".equals(codeString))
return _0_5_0; return _0_5_0;
if ("1.0.0".equals(codeString)) if ("1.0.0".equals(codeString))
return _1_0_0; return _1_0_0;
if ("1.0.1".equals(codeString)) if ("1.0.1".equals(codeString))
return _1_0_1; return _1_0_1;
if ("1.0.2".equals(codeString)) if ("1.0.2".equals(codeString))
return _1_0_2; return _1_0_2;
if ("1.1.0".equals(codeString)) if ("1.1.0".equals(codeString))
return _1_1_0; return _1_1_0;
if ("1.4.0".equals(codeString)) if ("1.4.0".equals(codeString))
return _1_4_0; return _1_4_0;
if ("1.6.0".equals(codeString)) if ("1.6.0".equals(codeString))
return _1_6_0; return _1_6_0;
if ("1.8.0".equals(codeString)) if ("1.8.0".equals(codeString))
return _1_8_0; return _1_8_0;
if ("3.0.0".equals(codeString)) if ("3.0.0".equals(codeString))
return _3_0_0; return _3_0_0;
if ("3.0.1".equals(codeString)) if ("3.0.1".equals(codeString))
return _3_0_1; return _3_0_1;
if ("3.0.2".equals(codeString)) if ("3.0.2".equals(codeString))
return _3_0_2; return _3_0_2;
if ("3.3.0".equals(codeString)) if ("3.3.0".equals(codeString))
return _3_3_0; return _3_3_0;
if ("3.5.0".equals(codeString)) if ("3.5.0".equals(codeString))
return _3_5_0; return _3_5_0;
if ("4.0.0".equals(codeString)) if ("4.0.0".equals(codeString))
return _4_0_0; return _4_0_0;
if ("4.0.1".equals(codeString)) if ("4.0.1".equals(codeString))
return _4_0_1; return _4_0_1;
if ("4.1.0".equals(codeString)) if ("4.1.0".equals(codeString))
return _4_1_0; return _4_1_0;
if ("4.2.0".equals(codeString)) if ("4.2.0".equals(codeString))
return _4_2_0; return _4_2_0;
if ("4.3.0-snapshot1".equals(codeString)) if ("4.3.0-snapshot1".equals(codeString))
return _4_3_0SNAPSHOT1; return _4_3_0SNAPSHOT1;
if ("4.3.0-cibuild".equals(codeString)) if ("4.3.0-cibuild".equals(codeString))
return _4_3_0CIBUILD; return _4_3_0CIBUILD;
if ("4.4.0".equals(codeString)) if ("4.4.0".equals(codeString))
return _4_4_0; return _4_4_0;
if ("4.5.0".equals(codeString)) if ("4.5.0".equals(codeString))
return _4_5_0; return _4_5_0;
if ("4.6.0".equals(codeString)) if ("4.6.0".equals(codeString))
return _4_6_0; return _4_6_0;
if ("5.0.0-snapshot1".equals(codeString)) if ("5.0.0-snapshot1".equals(codeString))
return _5_0_0SNAPSHOT1; return _5_0_0SNAPSHOT1;
if ("5.0.0-cibuild".equals(codeString)) if ("5.0.0-cibuild".equals(codeString))
return _5_0_0CIBUILD; return _5_0_0CIBUILD;
throw new FHIRException("Unknown FHIRVersion code '"+codeString+"'"); throw new FHIRException("Unknown FHIRVersion code '"+codeString+"'");
} }
public String toCode() { public String toCode() {
switch (this) { switch (this) {
@ -7104,51 +7104,51 @@ public String toCode(int len) {
public static boolean isValidCode(String codeString) { public static boolean isValidCode(String codeString) {
if (codeString == null || "".equals(codeString)) if (codeString == null || "".equals(codeString))
return false; return false;
if ("0.01".equals(codeString)) if ("0.01".equals(codeString))
return true; return true;
if ("0.05".equals(codeString)) if ("0.05".equals(codeString))
return true; return true;
if ("0.06".equals(codeString)) if ("0.06".equals(codeString))
return true; return true;
if ("0.11".equals(codeString)) if ("0.11".equals(codeString))
return true; return true;
if ("0.0.80".equals(codeString)) if ("0.0.80".equals(codeString))
return true; return true;
if ("0.0.81".equals(codeString)) if ("0.0.81".equals(codeString))
return true; return true;
if ("0.0.82".equals(codeString)) if ("0.0.82".equals(codeString))
return true; return true;
if ("0.4.0".equals(codeString)) if ("0.4.0".equals(codeString))
return true; return true;
if ("0.5.0".equals(codeString)) if ("0.5.0".equals(codeString))
return true; return true;
if ("1.0.0".equals(codeString)) if ("1.0.0".equals(codeString))
return true; return true;
if ("1.0.1".equals(codeString)) if ("1.0.1".equals(codeString))
return true; return true;
if ("1.0.2".equals(codeString)) if ("1.0.2".equals(codeString))
return true; return true;
if ("1.1.0".equals(codeString)) if ("1.1.0".equals(codeString))
return true; return true;
if ("1.4.0".equals(codeString)) if ("1.4.0".equals(codeString))
return true; return true;
if ("1.6.0".equals(codeString)) if ("1.6.0".equals(codeString))
return true; return true;
if ("1.8.0".equals(codeString)) if ("1.8.0".equals(codeString))
return true; return true;
if ("3.0.0".equals(codeString)) if ("3.0.0".equals(codeString))
return true; return true;
if ("3.0.1".equals(codeString)) if ("3.0.1".equals(codeString))
return true; return true;
if ("3.3.0".equals(codeString)) if ("3.3.0".equals(codeString))
return true; return true;
if ("3.5.0".equals(codeString)) if ("3.5.0".equals(codeString))
return true; return true;
if ("4.0.0".equals(codeString)) if ("4.0.0".equals(codeString))
return true; return true;
if ("4.2.0".equals(codeString)) if ("4.2.0".equals(codeString))
return true; return true;
return false; return false;
} }
@Override @Override
@ -7158,7 +7158,7 @@ public String toCode(int len) {
public boolean isR4B() { public boolean isR4B() {
return toCode().startsWith("4.1"); return toCode().startsWith("4.3");
} }
// end addition // end addition
@ -7169,71 +7169,71 @@ public String toCode(int len) {
if (codeString == null || "".equals(codeString)) if (codeString == null || "".equals(codeString))
if (codeString == null || "".equals(codeString)) if (codeString == null || "".equals(codeString))
return null; return null;
if ("0.01".equals(codeString)) if ("0.01".equals(codeString))
return FHIRVersion._0_01; return FHIRVersion._0_01;
if ("0.05".equals(codeString)) if ("0.05".equals(codeString))
return FHIRVersion._0_05; return FHIRVersion._0_05;
if ("0.06".equals(codeString)) if ("0.06".equals(codeString))
return FHIRVersion._0_06; return FHIRVersion._0_06;
if ("0.11".equals(codeString)) if ("0.11".equals(codeString))
return FHIRVersion._0_11; return FHIRVersion._0_11;
if ("0.0.80".equals(codeString)) if ("0.0.80".equals(codeString))
return FHIRVersion._0_0_80; return FHIRVersion._0_0_80;
if ("0.0.81".equals(codeString)) if ("0.0.81".equals(codeString))
return FHIRVersion._0_0_81; return FHIRVersion._0_0_81;
if ("0.0.82".equals(codeString)) if ("0.0.82".equals(codeString))
return FHIRVersion._0_0_82; return FHIRVersion._0_0_82;
if ("0.4.0".equals(codeString)) if ("0.4.0".equals(codeString))
return FHIRVersion._0_4_0; return FHIRVersion._0_4_0;
if ("0.5.0".equals(codeString)) if ("0.5.0".equals(codeString))
return FHIRVersion._0_5_0; return FHIRVersion._0_5_0;
if ("1.0.0".equals(codeString)) if ("1.0.0".equals(codeString))
return FHIRVersion._1_0_0; return FHIRVersion._1_0_0;
if ("1.0.1".equals(codeString)) if ("1.0.1".equals(codeString))
return FHIRVersion._1_0_1; return FHIRVersion._1_0_1;
if ("1.0.2".equals(codeString)) if ("1.0.2".equals(codeString))
return FHIRVersion._1_0_2; return FHIRVersion._1_0_2;
if ("1.1.0".equals(codeString)) if ("1.1.0".equals(codeString))
return FHIRVersion._1_1_0; return FHIRVersion._1_1_0;
if ("1.4.0".equals(codeString)) if ("1.4.0".equals(codeString))
return FHIRVersion._1_4_0; return FHIRVersion._1_4_0;
if ("1.6.0".equals(codeString)) if ("1.6.0".equals(codeString))
return FHIRVersion._1_6_0; return FHIRVersion._1_6_0;
if ("1.8.0".equals(codeString)) if ("1.8.0".equals(codeString))
return FHIRVersion._1_8_0; return FHIRVersion._1_8_0;
if ("3.0.0".equals(codeString)) if ("3.0.0".equals(codeString))
return FHIRVersion._3_0_0; return FHIRVersion._3_0_0;
if ("3.0.1".equals(codeString)) if ("3.0.1".equals(codeString))
return FHIRVersion._3_0_1; return FHIRVersion._3_0_1;
if ("3.0.2".equals(codeString)) if ("3.0.2".equals(codeString))
return FHIRVersion._3_0_2; return FHIRVersion._3_0_2;
if ("3.3.0".equals(codeString)) if ("3.3.0".equals(codeString))
return FHIRVersion._3_3_0; return FHIRVersion._3_3_0;
if ("3.5.0".equals(codeString)) if ("3.5.0".equals(codeString))
return FHIRVersion._3_5_0; return FHIRVersion._3_5_0;
if ("4.0.0".equals(codeString)) if ("4.0.0".equals(codeString))
return FHIRVersion._4_0_0; return FHIRVersion._4_0_0;
if ("4.0.1".equals(codeString)) if ("4.0.1".equals(codeString))
return FHIRVersion._4_0_1; return FHIRVersion._4_0_1;
if ("4.1.0".equals(codeString)) if ("4.1.0".equals(codeString))
return FHIRVersion._4_1_0; return FHIRVersion._4_1_0;
if ("4.2.0".equals(codeString)) if ("4.2.0".equals(codeString))
return FHIRVersion._4_2_0; return FHIRVersion._4_2_0;
if ("4.3.0-snapshot1".equals(codeString)) if ("4.3.0-snapshot1".equals(codeString))
return FHIRVersion._4_3_0SNAPSHOT1; return FHIRVersion._4_3_0SNAPSHOT1;
if ("4.3.0-cibuild".equals(codeString)) if ("4.3.0-cibuild".equals(codeString))
return FHIRVersion._4_3_0CIBUILD; return FHIRVersion._4_3_0CIBUILD;
if ("4.4.0".equals(codeString)) if ("4.4.0".equals(codeString))
return FHIRVersion._4_4_0; return FHIRVersion._4_4_0;
if ("4.5.0".equals(codeString)) if ("4.5.0".equals(codeString))
return FHIRVersion._4_5_0; return FHIRVersion._4_5_0;
if ("4.6.0".equals(codeString)) if ("4.6.0".equals(codeString))
return FHIRVersion._4_6_0; return FHIRVersion._4_6_0;
if ("5.0.0-snapshot1".equals(codeString)) if ("5.0.0-snapshot1".equals(codeString))
return FHIRVersion._5_0_0SNAPSHOT1; return FHIRVersion._5_0_0SNAPSHOT1;
if ("5.0.0-cibuild".equals(codeString)) if ("5.0.0-cibuild".equals(codeString))
return FHIRVersion._5_0_0CIBUILD; return FHIRVersion._5_0_0CIBUILD;
throw new IllegalArgumentException("Unknown FHIRVersion code '"+codeString+"'"); throw new IllegalArgumentException("Unknown FHIRVersion code '"+codeString+"'");
} }
public Enumeration<FHIRVersion> fromType(Base code) throws FHIRException { public Enumeration<FHIRVersion> fromType(Base code) throws FHIRException {
if (code == null) if (code == null)
@ -7243,71 +7243,71 @@ public String toCode(int len) {
String codeString = ((PrimitiveType) code).asStringValue(); String codeString = ((PrimitiveType) code).asStringValue();
if (codeString == null || "".equals(codeString)) if (codeString == null || "".equals(codeString))
return null; return null;
if ("0.01".equals(codeString)) if ("0.01".equals(codeString))
return new Enumeration<FHIRVersion>(this, FHIRVersion._0_01); return new Enumeration<FHIRVersion>(this, FHIRVersion._0_01);
if ("0.05".equals(codeString)) if ("0.05".equals(codeString))
return new Enumeration<FHIRVersion>(this, FHIRVersion._0_05); return new Enumeration<FHIRVersion>(this, FHIRVersion._0_05);
if ("0.06".equals(codeString)) if ("0.06".equals(codeString))
return new Enumeration<FHIRVersion>(this, FHIRVersion._0_06); return new Enumeration<FHIRVersion>(this, FHIRVersion._0_06);
if ("0.11".equals(codeString)) if ("0.11".equals(codeString))
return new Enumeration<FHIRVersion>(this, FHIRVersion._0_11); return new Enumeration<FHIRVersion>(this, FHIRVersion._0_11);
if ("0.0.80".equals(codeString)) if ("0.0.80".equals(codeString))
return new Enumeration<FHIRVersion>(this, FHIRVersion._0_0_80); return new Enumeration<FHIRVersion>(this, FHIRVersion._0_0_80);
if ("0.0.81".equals(codeString)) if ("0.0.81".equals(codeString))
return new Enumeration<FHIRVersion>(this, FHIRVersion._0_0_81); return new Enumeration<FHIRVersion>(this, FHIRVersion._0_0_81);
if ("0.0.82".equals(codeString)) if ("0.0.82".equals(codeString))
return new Enumeration<FHIRVersion>(this, FHIRVersion._0_0_82); return new Enumeration<FHIRVersion>(this, FHIRVersion._0_0_82);
if ("0.4.0".equals(codeString)) if ("0.4.0".equals(codeString))
return new Enumeration<FHIRVersion>(this, FHIRVersion._0_4_0); return new Enumeration<FHIRVersion>(this, FHIRVersion._0_4_0);
if ("0.5.0".equals(codeString)) if ("0.5.0".equals(codeString))
return new Enumeration<FHIRVersion>(this, FHIRVersion._0_5_0); return new Enumeration<FHIRVersion>(this, FHIRVersion._0_5_0);
if ("1.0.0".equals(codeString)) if ("1.0.0".equals(codeString))
return new Enumeration<FHIRVersion>(this, FHIRVersion._1_0_0); return new Enumeration<FHIRVersion>(this, FHIRVersion._1_0_0);
if ("1.0.1".equals(codeString)) if ("1.0.1".equals(codeString))
return new Enumeration<FHIRVersion>(this, FHIRVersion._1_0_1); return new Enumeration<FHIRVersion>(this, FHIRVersion._1_0_1);
if ("1.0.2".equals(codeString)) if ("1.0.2".equals(codeString))
return new Enumeration<FHIRVersion>(this, FHIRVersion._1_0_2); return new Enumeration<FHIRVersion>(this, FHIRVersion._1_0_2);
if ("1.1.0".equals(codeString)) if ("1.1.0".equals(codeString))
return new Enumeration<FHIRVersion>(this, FHIRVersion._1_1_0); return new Enumeration<FHIRVersion>(this, FHIRVersion._1_1_0);
if ("1.4.0".equals(codeString)) if ("1.4.0".equals(codeString))
return new Enumeration<FHIRVersion>(this, FHIRVersion._1_4_0); return new Enumeration<FHIRVersion>(this, FHIRVersion._1_4_0);
if ("1.6.0".equals(codeString)) if ("1.6.0".equals(codeString))
return new Enumeration<FHIRVersion>(this, FHIRVersion._1_6_0); return new Enumeration<FHIRVersion>(this, FHIRVersion._1_6_0);
if ("1.8.0".equals(codeString)) if ("1.8.0".equals(codeString))
return new Enumeration<FHIRVersion>(this, FHIRVersion._1_8_0); return new Enumeration<FHIRVersion>(this, FHIRVersion._1_8_0);
if ("3.0.0".equals(codeString)) if ("3.0.0".equals(codeString))
return new Enumeration<FHIRVersion>(this, FHIRVersion._3_0_0); return new Enumeration<FHIRVersion>(this, FHIRVersion._3_0_0);
if ("3.0.1".equals(codeString)) if ("3.0.1".equals(codeString))
return new Enumeration<FHIRVersion>(this, FHIRVersion._3_0_1); return new Enumeration<FHIRVersion>(this, FHIRVersion._3_0_1);
if ("3.0.2".equals(codeString)) if ("3.0.2".equals(codeString))
return new Enumeration<FHIRVersion>(this, FHIRVersion._3_0_2); return new Enumeration<FHIRVersion>(this, FHIRVersion._3_0_2);
if ("3.3.0".equals(codeString)) if ("3.3.0".equals(codeString))
return new Enumeration<FHIRVersion>(this, FHIRVersion._3_3_0); return new Enumeration<FHIRVersion>(this, FHIRVersion._3_3_0);
if ("3.5.0".equals(codeString)) if ("3.5.0".equals(codeString))
return new Enumeration<FHIRVersion>(this, FHIRVersion._3_5_0); return new Enumeration<FHIRVersion>(this, FHIRVersion._3_5_0);
if ("4.0.0".equals(codeString)) if ("4.0.0".equals(codeString))
return new Enumeration<FHIRVersion>(this, FHIRVersion._4_0_0); return new Enumeration<FHIRVersion>(this, FHIRVersion._4_0_0);
if ("4.0.1".equals(codeString)) if ("4.0.1".equals(codeString))
return new Enumeration<FHIRVersion>(this, FHIRVersion._4_0_1); return new Enumeration<FHIRVersion>(this, FHIRVersion._4_0_1);
if ("4.1.0".equals(codeString)) if ("4.1.0".equals(codeString))
return new Enumeration<FHIRVersion>(this, FHIRVersion._4_1_0); return new Enumeration<FHIRVersion>(this, FHIRVersion._4_1_0);
if ("4.2.0".equals(codeString)) if ("4.2.0".equals(codeString))
return new Enumeration<FHIRVersion>(this, FHIRVersion._4_2_0); return new Enumeration<FHIRVersion>(this, FHIRVersion._4_2_0);
if ("4.3.0-snapshot1".equals(codeString)) if ("4.3.0-snapshot1".equals(codeString))
return new Enumeration<FHIRVersion>(this, FHIRVersion._4_3_0SNAPSHOT1); return new Enumeration<FHIRVersion>(this, FHIRVersion._4_3_0SNAPSHOT1);
if ("4.3.0-cibuild".equals(codeString)) if ("4.3.0-cibuild".equals(codeString))
return new Enumeration<FHIRVersion>(this, FHIRVersion._4_3_0CIBUILD); return new Enumeration<FHIRVersion>(this, FHIRVersion._4_3_0CIBUILD);
if ("4.4.0".equals(codeString)) if ("4.4.0".equals(codeString))
return new Enumeration<FHIRVersion>(this, FHIRVersion._4_4_0); return new Enumeration<FHIRVersion>(this, FHIRVersion._4_4_0);
if ("4.5.0".equals(codeString)) if ("4.5.0".equals(codeString))
return new Enumeration<FHIRVersion>(this, FHIRVersion._4_5_0); return new Enumeration<FHIRVersion>(this, FHIRVersion._4_5_0);
if ("4.6.0".equals(codeString)) if ("4.6.0".equals(codeString))
return new Enumeration<FHIRVersion>(this, FHIRVersion._4_6_0); return new Enumeration<FHIRVersion>(this, FHIRVersion._4_6_0);
if ("5.0.0-snapshot1".equals(codeString)) if ("5.0.0-snapshot1".equals(codeString))
return new Enumeration<FHIRVersion>(this, FHIRVersion._5_0_0SNAPSHOT1); return new Enumeration<FHIRVersion>(this, FHIRVersion._5_0_0SNAPSHOT1);
if ("5.0.0-cibuild".equals(codeString)) if ("5.0.0-cibuild".equals(codeString))
return new Enumeration<FHIRVersion>(this, FHIRVersion._5_0_0CIBUILD); return new Enumeration<FHIRVersion>(this, FHIRVersion._5_0_0CIBUILD);
throw new FHIRException("Unknown FHIRVersion code '"+codeString+"'"); throw new FHIRException("Unknown FHIRVersion code '"+codeString+"'");
} }
public String toCode(FHIRVersion code) { public String toCode(FHIRVersion code) {
if (code == FHIRVersion._0_01) if (code == FHIRVersion._0_01)