add copyDomainResource to allergy intolerance of version convertor 10 40

This commit is contained in:
Itay Goren 2020-09-06 10:23:43 +03:00
parent f56235d596
commit 222a4babe3
3 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,7 @@ public class AllergyIntolerance10_40 {
if (src == null) if (src == null)
return null; return null;
org.hl7.fhir.r4.model.AllergyIntolerance tgt = new org.hl7.fhir.r4.model.AllergyIntolerance(); 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)); for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_40.convertIdentifier(t));
if (src.hasOnset()) if (src.hasOnset())
tgt.setOnset(VersionConvertor_10_40.convertType(src.getOnsetElement())); tgt.setOnset(VersionConvertor_10_40.convertType(src.getOnsetElement()));

View File

@ -1,5 +1,6 @@
{ {
"resourceType" : "AllergyIntolerance", "resourceType" : "AllergyIntolerance",
"id" : "TBwnNbrAqC0Qw5Ha7AFT-2AB",
"clinicalStatus" : { "clinicalStatus" : {
"coding" : [ "coding" : [
{ {

View File

@ -1,5 +1,6 @@
{ {
"resourceType" : "AllergyIntolerance", "resourceType" : "AllergyIntolerance",
"id": "TKebKfLXzu6Sp.LY-IpvpmQB",
"clinicalStatus" : { "clinicalStatus" : {
"coding" : [ "coding" : [
{ {