diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/AllergyIntolerance10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/AllergyIntolerance10_40.java index e5c51c648..70ac34f1f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/AllergyIntolerance10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_40/AllergyIntolerance10_40.java @@ -9,6 +9,7 @@ public class AllergyIntolerance10_40 { if (src == null) return null; org.hl7.fhir.r4.model.AllergyIntolerance tgt = new org.hl7.fhir.r4.model.AllergyIntolerance(); + VersionConvertor_10_40.copyDomainResource(src, tgt); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t)); if (src.hasOnset()) tgt.setOnset(VersionConvertor_10_40.convertType(src.getOnsetElement())); diff --git a/org.hl7.fhir.convertors/src/test/resources/0_allergy_intolerance_40.json b/org.hl7.fhir.convertors/src/test/resources/0_allergy_intolerance_40.json index e02782189..1fec970d1 100644 --- a/org.hl7.fhir.convertors/src/test/resources/0_allergy_intolerance_40.json +++ b/org.hl7.fhir.convertors/src/test/resources/0_allergy_intolerance_40.json @@ -1,5 +1,6 @@ { "resourceType" : "AllergyIntolerance", + "id" : "TBwnNbrAqC0Qw5Ha7AFT-2AB", "clinicalStatus" : { "coding" : [ { diff --git a/org.hl7.fhir.convertors/src/test/resources/1_allergy_intolerance_40.json b/org.hl7.fhir.convertors/src/test/resources/1_allergy_intolerance_40.json index a38da25a8..fb2cb4e64 100644 --- a/org.hl7.fhir.convertors/src/test/resources/1_allergy_intolerance_40.json +++ b/org.hl7.fhir.convertors/src/test/resources/1_allergy_intolerance_40.json @@ -1,5 +1,6 @@ { "resourceType" : "AllergyIntolerance", + "id": "TKebKfLXzu6Sp.LY-IpvpmQB", "clinicalStatus" : { "coding" : [ {