Add Author to DocumentReference30_40 Converter

The current code for DocumentReference30_40 does not transfer the Author(s) of the DocumentReference while converting. This change adds transferring of the Author(s).
This commit is contained in:
NSolooki 2022-08-04 07:45:18 -04:00 committed by GitHub
parent 8051f476a9
commit 1e7601f39b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -49,6 +49,8 @@ public class DocumentReference30_40 {
tgt.addContent(convertDocumentReferenceContentComponent(t));
if (src.hasContext())
tgt.setContext(convertDocumentReferenceContextComponent(src.getContext()));
for (org.hl7.fhir.r4.model.Reference t : src.getAuthor())
tgt.addAuthor(Reference30_40.convertReference(t));
return tgt;
}
@ -87,6 +89,8 @@ public class DocumentReference30_40 {
tgt.addContent(convertDocumentReferenceContentComponent(t));
if (src.hasContext())
tgt.setContext(convertDocumentReferenceContextComponent(src.getContext()));
for (org.hl7.fhir.dstu3.model.Reference t : src.getAuthor())
tgt.addAuthor(Reference30_40.convertReference(t));
return tgt;
}