Add R5 snapshot3 to R4 versions enum

This commit is contained in:
Grahame Grieve 2022-12-16 08:48:24 +11:00
parent ba67d790b8
commit 415d8acc12
3 changed files with 29 additions and 0 deletions

View File

@ -248,6 +248,9 @@ public class Enumerations40_50 {
case _5_0_0BALLOT:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FHIRVersion._5_0_0BALLOT);
break;
case _5_0_0SNAPSHOT3:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FHIRVersion._5_0_0SNAPSHOT3);
break;
default:
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FHIRVersion.NULL);
break;
@ -354,6 +357,9 @@ public class Enumerations40_50 {
case _5_0_0BALLOT:
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.FHIRVersion._5_0_0BALLOT);
break;
case _5_0_0SNAPSHOT3:
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.FHIRVersion._5_0_0SNAPSHOT3);
break;
default:
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.FHIRVersion.NULL);

View File

@ -10154,6 +10154,10 @@ The primary difference between a medication statement and a medication administr
* R5 Ballot.
*/
_5_0_0BALLOT,
/**
* R5Connectathon 32 release.
*/
_5_0_0SNAPSHOT3,
/**
* added to help the parsers
*/
@ -10271,6 +10275,8 @@ The primary difference between a medication statement and a medication administr
return _5_0_0SNAPSHOT2;
if ("5.0.0-ballot".equals(codeString))
return _5_0_0BALLOT;
if ("5.0.0-snapshot3".equals(codeString))
return _5_0_0SNAPSHOT3;
throw new FHIRException("Unknown FHIRVersion code '"+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_0SNAPSHOT2: return "5.0.0-snapshot2";
case _5_0_0BALLOT: return "5.0.0-ballot";
case _5_0_0SNAPSHOT3: return "5.0.0-snapshot3";
case NULL: return null;
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_0SNAPSHOT2: 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;
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_0SNAPSHOT2: return "R5 Interim tooling stage.";
case _5_0_0BALLOT: return "R5 Ballot.";
case _5_0_0SNAPSHOT3: return "R5 Connectathon 32 release.";
case NULL: return null;
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_0SNAPSHOT2: return "5.0.0-snapshot2";
case _5_0_0BALLOT: return "5.0.0-ballot";
case _5_0_0SNAPSHOT3: return "5.0.0-snapshot3";
case NULL: return null;
default: return "?";
}
@ -10741,6 +10751,8 @@ The primary difference between a medication statement and a medication administr
return FHIRVersion._5_0_0SNAPSHOT2;
if ("5.0.0-ballot".equals(codeString))
return FHIRVersion._5_0_0BALLOT;
if ("5.0.0-snapshot3".equals(codeString))
return FHIRVersion._5_0_0SNAPSHOT3;
throw new IllegalArgumentException("Unknown FHIRVersion code '"+codeString+"'");
}
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);
if ("5.0.0-ballot".equals(codeString))
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+"'");
}
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";
if (code == FHIRVersion._5_0_0BALLOT)
return "5.0.0-ballot";
if (code == FHIRVersion._5_0_0SNAPSHOT3)
return "5.0.0-snapshot3";
return "?";
}
public String toSystem(FHIRVersion code) {

View File

@ -96,4 +96,11 @@ public class PackageInformation {
public String toString() {
return getVID();
}
public String dense() {
if (id.startsWith("hl7.fhir")) {
return id.substring(9);
}
return id;
}
}