From 829549eeff80bf67d2098bfb6c81d523bde2eee7 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Fri, 28 Apr 2023 07:36:13 +1000 Subject: [PATCH] Add support for R6 formal version --- .../java/org/hl7/fhir/r5/model/Enumerations.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Enumerations.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Enumerations.java index 9f9f9fc3d..3e0b5c753 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Enumerations.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Enumerations.java @@ -12025,6 +12025,10 @@ The primary difference between a medicationstatement and a medicationadministrat * R6 Rolling ci-build. */ _6_0_0CIBUILD, + /** + * R6 Formal version (does not exist yet) + */ + _6_0_0, /** * added to help the parsers */ @@ -12148,6 +12152,8 @@ The primary difference between a medicationstatement and a medicationadministrat return _5_0_0DRAFTFINAL; if ("6.0.0-cibuild".equals(codeString)) return _6_0_0CIBUILD; + if ("6.0.0".equals(codeString)) + return _6_0_0; throw new FHIRException("Unknown FHIRVersion code '"+codeString+"'"); } public static boolean isValidCode(String codeString) { @@ -12215,6 +12221,7 @@ The primary difference between a medicationstatement and a medicationadministrat case _5_0_0SNAPSHOT3: return "5.0.0-snapshot3"; case _5_0_0DRAFTFINAL: return "5.0.0-draft-final"; case _6_0_0CIBUILD: return "6.0.0-cibuild"; + case _6_0_0: return "6.0.0"; case NULL: return null; default: return "?"; } @@ -12279,6 +12286,7 @@ The primary difference between a medicationstatement and a medicationadministrat case _5_0_0SNAPSHOT3: return "http://hl7.org/fhir/FHIR-version"; case _5_0_0DRAFTFINAL: return "http://hl7.org/fhir/FHIR-version"; case _6_0_0CIBUILD: return "http://hl7.org/fhir/FHIR-version"; + case _6_0_0: return "http://hl7.org/fhir/FHIR-version"; case NULL: return null; default: return "?"; } @@ -12343,6 +12351,7 @@ The primary difference between a medicationstatement and a medicationadministrat case _5_0_0SNAPSHOT3: return "R5 January 2023 Staging Release + Connectathon 32."; case _5_0_0DRAFTFINAL: return "R5 Final QA."; case _6_0_0CIBUILD: return "R6 Rolling ci-build."; + case _6_0_0: return "R6 Final Version."; case NULL: return null; default: return "?"; } @@ -12407,6 +12416,7 @@ The primary difference between a medicationstatement and a medicationadministrat case _5_0_0SNAPSHOT3: return "5.0.0-snapshot3"; case _5_0_0DRAFTFINAL: return "5.0.0-draft-final"; case _6_0_0CIBUILD: return "6.0.0-cibuild"; + case _6_0_0: return "6.0.0"; case NULL: return null; default: return "?"; } @@ -12551,6 +12561,8 @@ The primary difference between a medicationstatement and a medicationadministrat return FHIRVersion._5_0_0DRAFTFINAL; if ("6.0.0-cibuild".equals(codeString)) return FHIRVersion._6_0_0CIBUILD; + if ("6.0.0".equals(codeString)) + return FHIRVersion._6_0_0; throw new IllegalArgumentException("Unknown FHIRVersion code '"+codeString+"'"); } @@ -12678,6 +12690,8 @@ The primary difference between a medicationstatement and a medicationadministrat return new Enumeration(this, FHIRVersion._5_0_0DRAFTFINAL, code); if ("6.0.0-cibuild".equals(codeString)) return new Enumeration(this, FHIRVersion._6_0_0CIBUILD, code); + if ("6.0.0".equals(codeString)) + return new Enumeration(this, FHIRVersion._6_0_0, code); throw new FHIRException("Unknown FHIRVersion code '"+codeString+"'"); } public String toCode(FHIRVersion code) { @@ -12797,6 +12811,8 @@ The primary difference between a medicationstatement and a medicationadministrat return "5.0.0-draft-final"; if (code == FHIRVersion._6_0_0CIBUILD) return "6.0.0-cibuild"; + if (code == FHIRVersion._6_0_0) + return "6.0.0"; return "?"; } public String toSystem(FHIRVersion code) {