From 1e7601f39b7d4dc56be3dbe045dddb4be72faaef Mon Sep 17 00:00:00 2001 From: NSolooki <70294137+NSolooki@users.noreply.github.com> Date: Thu, 4 Aug 2022 07:45:18 -0400 Subject: [PATCH 1/4] 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). --- .../conv30_40/resources30_40/DocumentReference30_40.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/DocumentReference30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/DocumentReference30_40.java index bc9868d8f..8608d32d2 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/DocumentReference30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_40/resources30_40/DocumentReference30_40.java @@ -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; } @@ -364,4 +368,4 @@ public class DocumentReference30_40 { } return tgt; } -} \ No newline at end of file +} From 5d2643a86f34fda82e554c697a7d353fff8b3fae Mon Sep 17 00:00:00 2001 From: NSolooki <70294137+NSolooki@users.noreply.github.com> Date: Tue, 20 Sep 2022 12:38:43 -0400 Subject: [PATCH 2/4] Update DocumentReference30_50.java --- .../conv30_50/resources30_50/DocumentReference30_50.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DocumentReference30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DocumentReference30_50.java index 19d477f69..8860aff7c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DocumentReference30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DocumentReference30_50.java @@ -49,6 +49,8 @@ public class DocumentReference30_50 { tgt.addContent(convertDocumentReferenceContentComponent(t)); if (src.hasContext()) convertDocumentReferenceContextComponent(src.getContext(), tgt); + for (org.hl7.fhir.dstu3.model.Reference t : src.getAuthor()) + tgt.addAuthor(Reference30_50.convertReference(t)); return tgt; } @@ -87,6 +89,8 @@ public class DocumentReference30_50 { tgt.addSecurityLabel(CodeableConcept30_50.convertCodeableConcept(t)); for (org.hl7.fhir.r5.model.DocumentReference.DocumentReferenceContentComponent t : src.getContent()) tgt.addContent(convertDocumentReferenceContentComponent(t)); + for (org.hl7.fhir.r5.model.Reference t : src.getAuthor()) + tgt.addAuthor(Reference30_50.convertReference(t)); convertDocumentReferenceContextComponent(src, tgt.getContext()); return tgt; } @@ -337,4 +341,4 @@ public class DocumentReference30_50 { } return tgt; } -} \ No newline at end of file +} From bef61d64f22f8e9c2cb45005992198a09e233969 Mon Sep 17 00:00:00 2001 From: NSolooki <70294137+NSolooki@users.noreply.github.com> Date: Tue, 20 Sep 2022 12:40:43 -0400 Subject: [PATCH 3/4] Update DocumentReference43_50.java --- .../conv43_50/resources43_50/DocumentReference43_50.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/DocumentReference43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/DocumentReference43_50.java index 8f1ba520e..1b90af9d3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/DocumentReference43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/DocumentReference43_50.java @@ -81,6 +81,8 @@ public class DocumentReference43_50 { tgt.addContent(convertDocumentReferenceContentComponent(t)); if (src.hasContext()) convertDocumentReferenceContextComponent(src.getContext(), tgt); + for (org.hl7.fhir.r4b.model.Reference t : src.getAuthor()) + tgt.addAuthor(Reference43_50.convertReference(t)); return tgt; } @@ -121,6 +123,8 @@ public class DocumentReference43_50 { for (org.hl7.fhir.r5.model.DocumentReference.DocumentReferenceContentComponent t : src.getContent()) tgt.addContent(convertDocumentReferenceContentComponent(t)); convertDocumentReferenceContextComponent(src, tgt.getContext()); + for (org.hl7.fhir.r5.model.Reference t : src.getAuthor()) + tgt.addAuthor(Reference43_50.convertReference(t)); return tgt; } @@ -297,4 +301,4 @@ public class DocumentReference43_50 { // tgt.setSourcePatientInfo(Reference43_50.convertReference(src.getSourcePatientInfo())); // for (org.hl7.fhir.r5.model.Reference t : src.getRelated()) tgt.addRelated(Reference43_50.convertReference(t)); } -} \ No newline at end of file +} From bf4854f434b038180ee8494b4d71103f8e254d6c Mon Sep 17 00:00:00 2001 From: NSolooki <70294137+NSolooki@users.noreply.github.com> Date: Tue, 20 Sep 2022 12:41:20 -0400 Subject: [PATCH 4/4] Update DocumentReference30_50.java --- .../conv30_50/resources30_50/DocumentReference30_50.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DocumentReference30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DocumentReference30_50.java index 8860aff7c..ee80876bf 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DocumentReference30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/resources30_50/DocumentReference30_50.java @@ -89,9 +89,9 @@ public class DocumentReference30_50 { tgt.addSecurityLabel(CodeableConcept30_50.convertCodeableConcept(t)); for (org.hl7.fhir.r5.model.DocumentReference.DocumentReferenceContentComponent t : src.getContent()) tgt.addContent(convertDocumentReferenceContentComponent(t)); + convertDocumentReferenceContextComponent(src, tgt.getContext()); for (org.hl7.fhir.r5.model.Reference t : src.getAuthor()) tgt.addAuthor(Reference30_50.convertReference(t)); - convertDocumentReferenceContextComponent(src, tgt.getContext()); return tgt; }