fix URL, and add an additional legacy URL

(cherry picked from commit 8048a63e024f43b25705963bbcfc0197d28e3142)
This commit is contained in:
Tobias Brieden 2019-06-20 15:57:05 +02:00
parent 249ffc907d
commit b7dca094b6
1 changed files with 23 additions and 11 deletions

View File

@ -8244,7 +8244,8 @@ public class VersionConvertor_30_40 {
} }
private static final String VALUE_SET_CONDITION_CLINICAL_URL = "http://hl7.org/fhir/ValueSet/condition-clinical"; private static final String VALUE_SET_CONDITION_CLINICAL_URL = "http://hl7.org/fhir/ValueSet/condition-clinical";
private static final String CODE_SYSTEM_CONDITION_CLINICAL_URL = "https://terminology.hl7.org/CodeSystem/condition-clinical"; private static final String CODE_SYSTEM_CONDITION_CLINICAL_URL = "http://terminology.hl7.org/CodeSystem/condition-clinical";
private static final String VALUE_SET_LEGACY_CONDITION_CLINICAL_URL = "http://hl7.org/fhir/condition-clinical";
private static org.hl7.fhir.r4.model.CodeableConcept convertConditionClinicalStatus(org.hl7.fhir.dstu3.model.Condition.ConditionClinicalStatus src) throws FHIRException { private static org.hl7.fhir.r4.model.CodeableConcept convertConditionClinicalStatus(org.hl7.fhir.dstu3.model.Condition.ConditionClinicalStatus src) throws FHIRException {
if (src == null) if (src == null)
@ -8274,20 +8275,26 @@ public class VersionConvertor_30_40 {
if (src == null) if (src == null)
return null; return null;
if (src.hasCoding(VALUE_SET_CONDITION_CLINICAL_URL, "active") if (src.hasCoding(VALUE_SET_CONDITION_CLINICAL_URL, "active")
||src.hasCoding(CODE_SYSTEM_CONDITION_CLINICAL_URL, "active")) return org.hl7.fhir.dstu3.model.Condition.ConditionClinicalStatus.ACTIVE; ||src.hasCoding(CODE_SYSTEM_CONDITION_CLINICAL_URL, "active")
||src.hasCoding(VALUE_SET_LEGACY_CONDITION_CLINICAL_URL, "active")) return org.hl7.fhir.dstu3.model.Condition.ConditionClinicalStatus.ACTIVE;
if (src.hasCoding(VALUE_SET_CONDITION_CLINICAL_URL, "recurrence") if (src.hasCoding(VALUE_SET_CONDITION_CLINICAL_URL, "recurrence")
||src.hasCoding(CODE_SYSTEM_CONDITION_CLINICAL_URL, "recurrence")) return org.hl7.fhir.dstu3.model.Condition.ConditionClinicalStatus.RECURRENCE; ||src.hasCoding(CODE_SYSTEM_CONDITION_CLINICAL_URL, "recurrence")
||src.hasCoding(VALUE_SET_LEGACY_CONDITION_CLINICAL_URL, "recurrence")) return org.hl7.fhir.dstu3.model.Condition.ConditionClinicalStatus.RECURRENCE;
if (src.hasCoding(VALUE_SET_CONDITION_CLINICAL_URL, "inactive") if (src.hasCoding(VALUE_SET_CONDITION_CLINICAL_URL, "inactive")
||src.hasCoding(CODE_SYSTEM_CONDITION_CLINICAL_URL, "inactive")) return org.hl7.fhir.dstu3.model.Condition.ConditionClinicalStatus.INACTIVE; ||src.hasCoding(CODE_SYSTEM_CONDITION_CLINICAL_URL, "inactive")
||src.hasCoding(VALUE_SET_LEGACY_CONDITION_CLINICAL_URL, "inactive")) return org.hl7.fhir.dstu3.model.Condition.ConditionClinicalStatus.INACTIVE;
if (src.hasCoding(VALUE_SET_CONDITION_CLINICAL_URL, "remission") if (src.hasCoding(VALUE_SET_CONDITION_CLINICAL_URL, "remission")
||src.hasCoding(CODE_SYSTEM_CONDITION_CLINICAL_URL, "remission")) return org.hl7.fhir.dstu3.model.Condition.ConditionClinicalStatus.REMISSION; ||src.hasCoding(CODE_SYSTEM_CONDITION_CLINICAL_URL, "remission")
||src.hasCoding(VALUE_SET_LEGACY_CONDITION_CLINICAL_URL, "remission")) return org.hl7.fhir.dstu3.model.Condition.ConditionClinicalStatus.REMISSION;
if (src.hasCoding(VALUE_SET_CONDITION_CLINICAL_URL, "resolved") if (src.hasCoding(VALUE_SET_CONDITION_CLINICAL_URL, "resolved")
||src.hasCoding(CODE_SYSTEM_CONDITION_CLINICAL_URL, "resolved")) return org.hl7.fhir.dstu3.model.Condition.ConditionClinicalStatus.RESOLVED; ||src.hasCoding(CODE_SYSTEM_CONDITION_CLINICAL_URL, "resolved")
||src.hasCoding(VALUE_SET_LEGACY_CONDITION_CLINICAL_URL, "resolved")) return org.hl7.fhir.dstu3.model.Condition.ConditionClinicalStatus.RESOLVED;
return org.hl7.fhir.dstu3.model.Condition.ConditionClinicalStatus.NULL; return org.hl7.fhir.dstu3.model.Condition.ConditionClinicalStatus.NULL;
} }
private static final String VALUE_SET_CONDITION_VER_CLINICAL_URL = "http://hl7.org/fhir/ValueSet/condition-ver-status"; private static final String VALUE_SET_CONDITION_VER_CLINICAL_URL = "http://hl7.org/fhir/ValueSet/condition-ver-status";
private static final String CODE_SYSTEM_CONDITION_VER_CLINICAL_URL = "http://terminology.hl7.org/CodeSystem/condition-ver-status"; private static final String CODE_SYSTEM_CONDITION_VER_CLINICAL_URL = "http://terminology.hl7.org/CodeSystem/condition-ver-status";
private static final String VALUE_SET_LEGACY_CONDITION_VER_CLINICAL_URL = "http://hl7.org/fhir/condition-ver-status";
private static org.hl7.fhir.r4.model.CodeableConcept convertConditionVerificationStatus(org.hl7.fhir.dstu3.model.Condition.ConditionVerificationStatus src) throws FHIRException { private static org.hl7.fhir.r4.model.CodeableConcept convertConditionVerificationStatus(org.hl7.fhir.dstu3.model.Condition.ConditionVerificationStatus src) throws FHIRException {
if (src == null) if (src == null)
@ -8317,15 +8324,20 @@ public class VersionConvertor_30_40 {
if (src == null) if (src == null)
return null; return null;
if (src.hasCoding(VALUE_SET_CONDITION_VER_CLINICAL_URL, "provisional") if (src.hasCoding(VALUE_SET_CONDITION_VER_CLINICAL_URL, "provisional")
||src.hasCoding(CODE_SYSTEM_CONDITION_VER_CLINICAL_URL, "provisional")) return org.hl7.fhir.dstu3.model.Condition.ConditionVerificationStatus.PROVISIONAL; ||src.hasCoding(CODE_SYSTEM_CONDITION_VER_CLINICAL_URL, "provisional")
||src.hasCoding(VALUE_SET_LEGACY_CONDITION_VER_CLINICAL_URL, "provisional")) return org.hl7.fhir.dstu3.model.Condition.ConditionVerificationStatus.PROVISIONAL;
if (src.hasCoding(VALUE_SET_CONDITION_VER_CLINICAL_URL, "differential") if (src.hasCoding(VALUE_SET_CONDITION_VER_CLINICAL_URL, "differential")
||src.hasCoding(CODE_SYSTEM_CONDITION_VER_CLINICAL_URL, "differential")) return org.hl7.fhir.dstu3.model.Condition.ConditionVerificationStatus.DIFFERENTIAL; ||src.hasCoding(CODE_SYSTEM_CONDITION_VER_CLINICAL_URL, "differential")
||src.hasCoding(VALUE_SET_LEGACY_CONDITION_VER_CLINICAL_URL, "differential")) return org.hl7.fhir.dstu3.model.Condition.ConditionVerificationStatus.DIFFERENTIAL;
if (src.hasCoding(VALUE_SET_CONDITION_VER_CLINICAL_URL, "confirmed") if (src.hasCoding(VALUE_SET_CONDITION_VER_CLINICAL_URL, "confirmed")
||src.hasCoding(CODE_SYSTEM_CONDITION_VER_CLINICAL_URL, "confirmed")) return org.hl7.fhir.dstu3.model.Condition.ConditionVerificationStatus.CONFIRMED; ||src.hasCoding(CODE_SYSTEM_CONDITION_VER_CLINICAL_URL, "confirmed")
||src.hasCoding(VALUE_SET_LEGACY_CONDITION_VER_CLINICAL_URL, "confirmed")) return org.hl7.fhir.dstu3.model.Condition.ConditionVerificationStatus.CONFIRMED;
if (src.hasCoding(VALUE_SET_CONDITION_VER_CLINICAL_URL, "refuted") if (src.hasCoding(VALUE_SET_CONDITION_VER_CLINICAL_URL, "refuted")
||src.hasCoding(CODE_SYSTEM_CONDITION_VER_CLINICAL_URL, "refuted")) return org.hl7.fhir.dstu3.model.Condition.ConditionVerificationStatus.REFUTED; ||src.hasCoding(CODE_SYSTEM_CONDITION_VER_CLINICAL_URL, "refuted")
||src.hasCoding(VALUE_SET_LEGACY_CONDITION_VER_CLINICAL_URL, "refuted")) return org.hl7.fhir.dstu3.model.Condition.ConditionVerificationStatus.REFUTED;
if (src.hasCoding(VALUE_SET_CONDITION_VER_CLINICAL_URL, "entered-in-error") if (src.hasCoding(VALUE_SET_CONDITION_VER_CLINICAL_URL, "entered-in-error")
||src.hasCoding(CODE_SYSTEM_CONDITION_VER_CLINICAL_URL, "entered-in-error")) return org.hl7.fhir.dstu3.model.Condition.ConditionVerificationStatus.ENTEREDINERROR; ||src.hasCoding(CODE_SYSTEM_CONDITION_VER_CLINICAL_URL, "entered-in-error")
||src.hasCoding(VALUE_SET_LEGACY_CONDITION_VER_CLINICAL_URL, "entered-in-error")) return org.hl7.fhir.dstu3.model.Condition.ConditionVerificationStatus.ENTEREDINERROR;
return org.hl7.fhir.dstu3.model.Condition.ConditionVerificationStatus.NULL; return org.hl7.fhir.dstu3.model.Condition.ConditionVerificationStatus.NULL;
} }