Add R5 snapshot3 to R4 versions enum
This commit is contained in:
parent
ba67d790b8
commit
415d8acc12
|
@ -248,6 +248,9 @@ public class Enumerations40_50 {
|
||||||
case _5_0_0BALLOT:
|
case _5_0_0BALLOT:
|
||||||
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FHIRVersion._5_0_0BALLOT);
|
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FHIRVersion._5_0_0BALLOT);
|
||||||
break;
|
break;
|
||||||
|
case _5_0_0SNAPSHOT3:
|
||||||
|
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FHIRVersion._5_0_0SNAPSHOT3);
|
||||||
|
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;
|
||||||
|
@ -354,6 +357,9 @@ public class Enumerations40_50 {
|
||||||
case _5_0_0BALLOT:
|
case _5_0_0BALLOT:
|
||||||
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.FHIRVersion._5_0_0BALLOT);
|
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.FHIRVersion._5_0_0BALLOT);
|
||||||
break;
|
break;
|
||||||
|
case _5_0_0SNAPSHOT3:
|
||||||
|
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.FHIRVersion._5_0_0SNAPSHOT3);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.FHIRVersion.NULL);
|
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.FHIRVersion.NULL);
|
||||||
|
|
|
@ -10154,6 +10154,10 @@ The primary difference between a medication statement and a medication administr
|
||||||
* R5 Ballot.
|
* R5 Ballot.
|
||||||
*/
|
*/
|
||||||
_5_0_0BALLOT,
|
_5_0_0BALLOT,
|
||||||
|
/**
|
||||||
|
* R5Connectathon 32 release.
|
||||||
|
*/
|
||||||
|
_5_0_0SNAPSHOT3,
|
||||||
/**
|
/**
|
||||||
* added to help the parsers
|
* added to help the parsers
|
||||||
*/
|
*/
|
||||||
|
@ -10271,6 +10275,8 @@ The primary difference between a medication statement and a medication administr
|
||||||
return _5_0_0SNAPSHOT2;
|
return _5_0_0SNAPSHOT2;
|
||||||
if ("5.0.0-ballot".equals(codeString))
|
if ("5.0.0-ballot".equals(codeString))
|
||||||
return _5_0_0BALLOT;
|
return _5_0_0BALLOT;
|
||||||
|
if ("5.0.0-snapshot3".equals(codeString))
|
||||||
|
return _5_0_0SNAPSHOT3;
|
||||||
throw new FHIRException("Unknown FHIRVersion code '"+codeString+"'");
|
throw new FHIRException("Unknown FHIRVersion code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public static boolean isValidCode(String codeString) {
|
public static boolean isValidCode(String codeString) {
|
||||||
|
@ -10441,6 +10447,7 @@ The primary difference between a medication statement and a medication administr
|
||||||
case _5_0_0SNAPSHOT1: return "5.0.0-snapshot1";
|
case _5_0_0SNAPSHOT1: return "5.0.0-snapshot1";
|
||||||
case _5_0_0SNAPSHOT2: return "5.0.0-snapshot2";
|
case _5_0_0SNAPSHOT2: return "5.0.0-snapshot2";
|
||||||
case _5_0_0BALLOT: return "5.0.0-ballot";
|
case _5_0_0BALLOT: return "5.0.0-ballot";
|
||||||
|
case _5_0_0SNAPSHOT3: return "5.0.0-snapshot3";
|
||||||
case NULL: return null;
|
case NULL: return null;
|
||||||
default: return "?";
|
default: return "?";
|
||||||
}
|
}
|
||||||
|
@ -10502,6 +10509,7 @@ The primary difference between a medication statement and a medication administr
|
||||||
case _5_0_0SNAPSHOT1: return "http://hl7.org/fhir/FHIR-version";
|
case _5_0_0SNAPSHOT1: return "http://hl7.org/fhir/FHIR-version";
|
||||||
case _5_0_0SNAPSHOT2: return "http://hl7.org/fhir/FHIR-version";
|
case _5_0_0SNAPSHOT2: return "http://hl7.org/fhir/FHIR-version";
|
||||||
case _5_0_0BALLOT: return "http://hl7.org/fhir/FHIR-version";
|
case _5_0_0BALLOT: return "http://hl7.org/fhir/FHIR-version";
|
||||||
|
case _5_0_0SNAPSHOT3: return "http://hl7.org/fhir/FHIR-version";
|
||||||
case NULL: return null;
|
case NULL: return null;
|
||||||
default: return "?";
|
default: return "?";
|
||||||
}
|
}
|
||||||
|
@ -10563,6 +10571,7 @@ The primary difference between a medication statement and a medication administr
|
||||||
case _5_0_0SNAPSHOT1: return "R5 Preview #2.";
|
case _5_0_0SNAPSHOT1: return "R5 Preview #2.";
|
||||||
case _5_0_0SNAPSHOT2: return "R5 Interim tooling stage.";
|
case _5_0_0SNAPSHOT2: return "R5 Interim tooling stage.";
|
||||||
case _5_0_0BALLOT: return "R5 Ballot.";
|
case _5_0_0BALLOT: return "R5 Ballot.";
|
||||||
|
case _5_0_0SNAPSHOT3: return "R5 Connectathon 32 release.";
|
||||||
case NULL: return null;
|
case NULL: return null;
|
||||||
default: return "?";
|
default: return "?";
|
||||||
}
|
}
|
||||||
|
@ -10624,6 +10633,7 @@ The primary difference between a medication statement and a medication administr
|
||||||
case _5_0_0SNAPSHOT1: return "5.0.0-snapshot1";
|
case _5_0_0SNAPSHOT1: return "5.0.0-snapshot1";
|
||||||
case _5_0_0SNAPSHOT2: return "5.0.0-snapshot2";
|
case _5_0_0SNAPSHOT2: return "5.0.0-snapshot2";
|
||||||
case _5_0_0BALLOT: return "5.0.0-ballot";
|
case _5_0_0BALLOT: return "5.0.0-ballot";
|
||||||
|
case _5_0_0SNAPSHOT3: return "5.0.0-snapshot3";
|
||||||
case NULL: return null;
|
case NULL: return null;
|
||||||
default: return "?";
|
default: return "?";
|
||||||
}
|
}
|
||||||
|
@ -10741,6 +10751,8 @@ The primary difference between a medication statement and a medication administr
|
||||||
return FHIRVersion._5_0_0SNAPSHOT2;
|
return FHIRVersion._5_0_0SNAPSHOT2;
|
||||||
if ("5.0.0-ballot".equals(codeString))
|
if ("5.0.0-ballot".equals(codeString))
|
||||||
return FHIRVersion._5_0_0BALLOT;
|
return FHIRVersion._5_0_0BALLOT;
|
||||||
|
if ("5.0.0-snapshot3".equals(codeString))
|
||||||
|
return FHIRVersion._5_0_0SNAPSHOT3;
|
||||||
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 {
|
||||||
|
@ -10861,6 +10873,8 @@ The primary difference between a medication statement and a medication administr
|
||||||
return new Enumeration<FHIRVersion>(this, FHIRVersion._5_0_0SNAPSHOT2);
|
return new Enumeration<FHIRVersion>(this, FHIRVersion._5_0_0SNAPSHOT2);
|
||||||
if ("5.0.0-ballot".equals(codeString))
|
if ("5.0.0-ballot".equals(codeString))
|
||||||
return new Enumeration<FHIRVersion>(this, FHIRVersion._5_0_0BALLOT);
|
return new Enumeration<FHIRVersion>(this, FHIRVersion._5_0_0BALLOT);
|
||||||
|
if ("5.0.0-snapshot3".equals(codeString))
|
||||||
|
return new Enumeration<FHIRVersion>(this, FHIRVersion._5_0_0SNAPSHOT3);
|
||||||
throw new FHIRException("Unknown FHIRVersion code '"+codeString+"'");
|
throw new FHIRException("Unknown FHIRVersion code '"+codeString+"'");
|
||||||
}
|
}
|
||||||
public String toCode(FHIRVersion code) {
|
public String toCode(FHIRVersion code) {
|
||||||
|
@ -10974,6 +10988,8 @@ The primary difference between a medication statement and a medication administr
|
||||||
return "5.0.0-snapshot2";
|
return "5.0.0-snapshot2";
|
||||||
if (code == FHIRVersion._5_0_0BALLOT)
|
if (code == FHIRVersion._5_0_0BALLOT)
|
||||||
return "5.0.0-ballot";
|
return "5.0.0-ballot";
|
||||||
|
if (code == FHIRVersion._5_0_0SNAPSHOT3)
|
||||||
|
return "5.0.0-snapshot3";
|
||||||
return "?";
|
return "?";
|
||||||
}
|
}
|
||||||
public String toSystem(FHIRVersion code) {
|
public String toSystem(FHIRVersion code) {
|
||||||
|
|
|
@ -96,4 +96,11 @@ public class PackageInformation {
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return getVID();
|
return getVID();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String dense() {
|
||||||
|
if (id.startsWith("hl7.fhir")) {
|
||||||
|
return id.substring(9);
|
||||||
|
}
|
||||||
|
return id;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue