Merge pull request #337 from ItayGoren/allergy-intolerance-bugfix

add copyDomainResource to allergy intolerance of version convertor 10 40
This commit is contained in:
Grahame Grieve 2020-09-08 12:47:29 +10:00 committed by GitHub
commit f64e96143b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -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()));

View File

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

View File

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