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:
parent
8051f476a9
commit
1e7601f39b
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue