From b03b55ce66219119d0132de9d2e84c3232840556 Mon Sep 17 00:00:00 2001 From: Boya Wu <38548227+BoyaWu10@users.noreply.github.com> Date: Tue, 28 Sep 2021 14:12:58 +0800 Subject: [PATCH 1/5] Add condition for notice generation (#320) --- release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/release.yml b/release.yml index 6d319f5ff..012a689bd 100644 --- a/release.yml +++ b/release.yml @@ -55,14 +55,17 @@ stages: nobuild: true - task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0 + condition: eq(variables['build.sourceBranch'], 'refs/heads/main') displayName: 'component detection' - task: notice@0 + condition: eq(variables['build.sourceBranch'], 'refs/heads/main') displayName: 'generate NOTICE file' inputs: outputformat: 'text' - task: DownloadBuildArtifacts@0 + condition: eq(variables['build.sourceBranch'], 'refs/heads/main') inputs: buildType: 'current' downloadType: 'single' From fe8f141b7cb4f37ac7a15a0fab1714262e2bbb6e Mon Sep 17 00:00:00 2001 From: Boya Wu <38548227+BoyaWu10@users.noreply.github.com> Date: Wed, 29 Sep 2021 10:49:28 +0800 Subject: [PATCH 2/5] Skip FHIR valiator tests (#321) --- .../RuleBasedTests.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/RuleBasedTests.cs b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/RuleBasedTests.cs index fb72be7eb..0868701ec 100644 --- a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/RuleBasedTests.cs +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/RuleBasedTests.cs @@ -34,6 +34,7 @@ public class RuleBasedTests private static readonly FhirJsonParser _fhirParser = new FhirJsonParser(); private static readonly int _maxRevealDepth = 1 << 7; + private static readonly bool _skipValidator = true; private readonly ITestOutputHelper _output; @@ -190,11 +191,14 @@ public async Task CheckValuesRevealInOrigin(string templateName, string samplePa [Theory] [MemberData(nameof(GetHL7V2Cases))] - - // comment out the fhir validator for ccda since it takes too much time - // [MemberData(nameof(GetCcdaCases))] + [MemberData(nameof(GetCcdaCases))] public async Task CheckPassOfficialValidator(string templateName, string samplePath, DataType dataType) { + if (_skipValidator) + { + return; + } + (bool javaStatus, string javaMessage) = await ExecuteCommand("-version"); Assert.True(javaStatus, javaMessage); From e8b1572cdc802cd45f965e92a01cc7dd178e3c6d Mon Sep 17 00:00:00 2001 From: Qiwei Jin Date: Thu, 14 Oct 2021 11:20:49 +0800 Subject: [PATCH 3/5] templates update milestone 1 (#322) * add pr trigger for xoriant * Xoriant/m1 (#317) * ADT_A02 template * pushing testfile * Revert "pushing testfile" This reverts commit 768948995f4db3f5133af38dd79ba7da51d48d70. * Phase-1 , Milestone-1 all HL7 and template message * Added ADT_A60 test case * Added original ADT01-23 message in smaple data * FunctionTest.cs failure issue fix * Added Provenance "div" & new expected json * Removed CodeSystem files * Fixed UnitTest and FuntionalTest failure * Expected value 834 updated in Templatecollection * Added expected no for unused segment * Updated RuleBase and FT expected json Co-authored-by: Pulak.Roy * Xoriant/m1 template removed (#323) * ADT_A02 template * pushing testfile * Revert "pushing testfile" This reverts commit 768948995f4db3f5133af38dd79ba7da51d48d70. * Phase-1 , Milestone-1 all HL7 and template message * Added ADT_A60 test case * Added original ADT01-23 message in smaple data * FunctionTest.cs failure issue fix * Added Provenance "div" & new expected json * Removed CodeSystem files * Fixed UnitTest and FuntionalTest failure * Expected value 834 updated in Templatecollection * Added expected no for unused segment * Updated RuleBase and FT expected json * Bundle ID creation and referencing * skiping ccda validation and tool update * recode base to Xoriant/m1 * Removed the ADT-11,13,25,26,27,29,45 template * Modified the existing template * DG1 segment modification * FT and Rule base test changes * Added changes for Expected Json * TemplateCollectionProviderTests value updated * pushing testfile * Revert "pushing testfile" This reverts commit 768948995f4db3f5133af38dd79ba7da51d48d70. * Phase-1 , Milestone-1 all HL7 and template message * Added original ADT01-23 message in smaple data * FunctionTest.cs failure issue fix * Removed CodeSystem files * Bundle ID creation and referencing * Removed the ADT-11,13,25,26,27,29,45 template * Modified the existing template * DG1 segment modification * FT and Rule base test changes * Added changes for Expected Json * TemplateCollectionProviderTests value updated * Removed the condition check from functionalTest.cs Co-authored-by: Pulak.Roy Co-authored-by: Dhanashree.Tannirwar Co-authored-by: shashanknarang27 <75470172+shashanknarang27@users.noreply.github.com> Co-authored-by: Pulak.Roy Co-authored-by: Dhanashree.Tannirwar --- data/SampleData/Hl7v2/ADT04-251.hl7 | 2 +- data/SampleData/Hl7v2/ADT_A01-2.hl7 | 4 + data/SampleData/Hl7v2/ADT_A01.hl7 | 17 + data/SampleData/Hl7v2/ADT_A02-2.hl7 | 4 + data/SampleData/Hl7v2/ADT_A02.hl7 | 9 + data/SampleData/Hl7v2/ADT_A03-2.hl7 | 4 + data/SampleData/Hl7v2/ADT_A03.hl7 | 17 + data/SampleData/Hl7v2/ADT_A04-2.hl7 | 4 + data/SampleData/Hl7v2/ADT_A04.hl7 | 17 + data/SampleData/Hl7v2/ADT_A05-2.hl7 | 4 + data/SampleData/Hl7v2/ADT_A05.hl7 | 17 + data/SampleData/Hl7v2/ADT_A08-2.hl7 | 4 + data/SampleData/Hl7v2/ADT_A08.hl7 | 17 + data/SampleData/Hl7v2/ADT_A14-2.hl7 | 4 + data/SampleData/Hl7v2/ADT_A14.hl7 | 17 + data/SampleData/Hl7v2/ADT_A15-2.hl7 | 4 + data/SampleData/Hl7v2/ADT_A15.hl7 | 9 + data/SampleData/Hl7v2/ADT_A16-2.hl7 | 4 + data/SampleData/Hl7v2/ADT_A16.hl7 | 17 + data/SampleData/Hl7v2/ADT_A28-2.hl7 | 4 + data/SampleData/Hl7v2/ADT_A28.hl7 | 17 + data/SampleData/Hl7v2/ADT_A31-2.hl7 | 4 + data/SampleData/Hl7v2/ADT_A31.hl7 | 17 + data/SampleData/Hl7v2/ADT_A47-2.hl7 | 3 + data/SampleData/Hl7v2/ADT_A47.hl7 | 5 + data/SampleData/Hl7v2/ADT_A60-2.hl7 | 4 + data/SampleData/Hl7v2/ADT_A60.hl7 | 9 + data/Templates/Hl7v2/ADT_A01.liquid | 657 ++- data/Templates/Hl7v2/ADT_A02.liquid | 328 ++ data/Templates/Hl7v2/ADT_A03.liquid | 618 +++ data/Templates/Hl7v2/ADT_A04.liquid | 619 +++ data/Templates/Hl7v2/ADT_A05.liquid | 619 +++ data/Templates/Hl7v2/ADT_A08.liquid | 621 +++ data/Templates/Hl7v2/ADT_A14.liquid | 615 +++ data/Templates/Hl7v2/ADT_A15.liquid | 318 ++ data/Templates/Hl7v2/ADT_A16.liquid | 613 +++ data/Templates/Hl7v2/ADT_A28.liquid | 615 +++ data/Templates/Hl7v2/ADT_A31.liquid | 617 +++ data/Templates/Hl7v2/ADT_A47.liquid | 144 + data/Templates/Hl7v2/ADT_A60.liquid | 291 + .../Hl7v2/CodeSystem/CodeSystem.json | 1805 ++++++- .../Hl7v2/DataType/_CECodeableConcept.liquid | 26 + .../Hl7v2/DataType/_CFCodeableConcept.liquid | 66 + .../Hl7v2/DataType/_CNECodeableConcept.liquid | 42 + data/Templates/Hl7v2/DataType/_CWECode.liquid | 13 +- .../Hl7v2/DataType/_CWECodeableConcept.liquid | 28 +- .../_CWECodeableConceptRepeatable.liquid | 66 + .../Hl7v2/DataType/_CWECoding.liquid | 15 +- .../Hl7v2/DataType/_CWEIdentifier.liquid | 20 + .../Hl7v2/DataType/_CWEQuantity.liquid | 8 +- data/Templates/Hl7v2/DataType/_CX.liquid | 10 + .../Hl7v2/DataType/_DLDLocation.liquid | 34 + data/Templates/Hl7v2/DataType/_DLN.liquid | 2 +- .../Templates/Hl7v2/DataType/_DRPeriod.liquid | 4 + ...ttachment.liquid => _EDAttachment1.liquid} | 0 .../Hl7v2/DataType/_EDAttachment2.liquid | 4 + .../Hl7v2/DataType/_EIIdentifier.liquid | 30 + .../Hl7v2/DataType/_FNHumanName.liquid | 3 + .../Templates/Hl7v2/DataType/_HDDevice.liquid | 38 + .../DataType/_HDDevice_InternalValue.liquid | 38 + .../Hl7v2/DataType/_HDLocation.liquid | 34 + .../Templates/Hl7v2/DataType/_HDMSH_24.liquid | 8 - data/Templates/Hl7v2/DataType/_HDMSH_3.liquid | 3 - data/Templates/Hl7v2/DataType/_HDMSH_4.liquid | 0 data/Templates/Hl7v2/DataType/_HDMSH_5.liquid | 3 - data/Templates/Hl7v2/DataType/_HDMSH_6.liquid | 3 - .../_HDMessageHeader_destination.liquid | 17 + .../DataType/_HDMessageHeader_source.liquid | 17 + .../Hl7v2/DataType/_HDOrganization.liquid | 36 +- .../_HDOrganization_InternalValue.liquid | 36 + data/Templates/Hl7v2/DataType/_HDUri.liquid | 16 + .../Hl7v2/DataType/_IDCodeableConcept.liquid | 24 + .../Templates/Hl7v2/DataType/_IDCoding.liquid | 14 + .../Hl7v2/DataType/_ISCodeableConcept.liquid | 8 + data/Templates/Hl7v2/DataType/_MSG.liquid | 17 + data/Templates/Hl7v2/DataType/_NRRange.liquid | 14 + .../Hl7v2/DataType/_PL_HDLocation.liquid | 34 + .../Hl7v2/DataType/_RPAttachment.liquid | 4 + .../Hl7v2/DataType/_SNQuantity.liquid | 3 + data/Templates/Hl7v2/DataType/_SNRange.liquid | 8 +- data/Templates/Hl7v2/DataType/_SNRatio.liquid | 10 +- .../Templates/Hl7v2/DataType/_STCoding.liquid | 6 + .../Hl7v2/DataType/_XADAddress.liquid | 31 + .../Hl7v2/DataType/_XCNPractitioner.liquid | 14 +- .../DataType/_XCNPractitionerRole.liquid | 3 + .../Hl7v2/DataType/_XCNRelatedPerson.liquid | 16 +- .../Hl7v2/DataType/_XONOrganization.liquid | 7 +- .../Hl7v2/DataType/_XONString.liquid | 7 +- data/Templates/Hl7v2/DataType/_XPN.liquid | 4 + data/Templates/Hl7v2/DataType/_XTN.liquid | 21 +- .../_AllergyIntoleranceExtension.liquid | 25 + .../Condition/_ConditionExtension.liquid | 16 + .../Encounter/_EncounterExtension.liquid | 12 + .../Observation/_ObservationExtension.liquid | 19 + .../Patient/_PatientExtension.liquid | 56 + .../RelatedPerson/_RelatedPerson.liquid | 12 + .../_AllergyIntoleranceActionCode.liquid | 7 + .../_AllergyIntoleranceTypeCode.liquid | 4 + .../Templates/Hl7v2/Extensions/_Animal.liquid | 41 + .../Hl7v2/Extensions/_BirthPlace.liquid | 6 + .../Hl7v2/Extensions/_BirthTime.liquid | 10 + .../Extensions/_Condition-assertedDate.liquid | 6 + .../Hl7v2/Extensions/_Condition-dueTo.liquid | 7 + .../Hl7v2/Extensions/_DataAbsentReason.liquid | 7 + .../Extensions/_DisabilityIndicator.liquid | 4 + .../Hl7v2/Extensions/_DisabilityPeriod.liquid | 8 + .../Extensions/_EncounterModeOfArrival.liquid | 7 + .../Hl7v2/Extensions/_EthnicGroup.liquid | 36 + .../Hl7v2/Extensions/_MotherMaidenName.liquid | 7 + .../Extensions/_ObservationStatus.liquid | 13 + .../_ObservationValueAttachment.liquid | 20 + .../Extensions/_PatientCitizenship.liquid | 38 + .../Extensions/_PatientCongregation.liquid | 4 + .../Extensions/_PatientImportance.liquid | 7 + .../Extensions/_PatientNationality.liquid | 35 + .../Hl7v2/Extensions/_PatientReligion.liquid | 7 + data/Templates/Hl7v2/Extensions/_Race.liquid | 50 + .../Extensions/_TemporaryLocation.liquid | 6 + .../Extensions/_VeteranMilitaryStatus.liquid | 12 + .../Hl7v2/ID/_AllergyIntolerance.liquid | 12 +- data/Templates/Hl7v2/ID/_Appointment.liquid | 6 + data/Templates/Hl7v2/ID/_Condition.liquid | 2 + data/Templates/Hl7v2/ID/_Coverage.liquid | 8 + data/Templates/Hl7v2/ID/_Device.liquid | 6 + data/Templates/Hl7v2/ID/_EpisodeOfCare.liquid | 10 + data/Templates/Hl7v2/ID/_Location.liquid | 3 + data/Templates/Hl7v2/ID/_Observation.liquid | 6 +- data/Templates/Hl7v2/ID/_Organization.liquid | 14 + data/Templates/Hl7v2/ID/_Practitioner.liquid | 2 + .../Hl7v2/ID/_PractitionerRole.liquid | 2 + data/Templates/Hl7v2/ID/_Procedure.liquid | 9 +- data/Templates/Hl7v2/ID/_Provenance.liquid | 19 +- .../ID/_Provenance_transformation.liquid | 6 + data/Templates/Hl7v2/ID/_RelatedPerson.liquid | 22 +- .../Templates/Hl7v2/ID/_ServiceRequest.liquid | 4 + data/Templates/Hl7v2/OML_O21.liquid | 154 +- data/Templates/Hl7v2/ORU_R01.liquid | 165 +- data/Templates/Hl7v2/Resource/_Account.liquid | 52 + .../Hl7v2/Resource/_AllergyIntolerance.liquid | 186 +- .../Hl7v2/Resource/_Appointment.liquid | 12 + data/Templates/Hl7v2/Resource/_Bundle.liquid | 1 + .../Hl7v2/Resource/_Condition.liquid | 23 +- .../Templates/Hl7v2/Resource/_Coverage.liquid | 189 + data/Templates/Hl7v2/Resource/_Device.liquid | 45 +- .../Hl7v2/Resource/_Encounter.liquid | 489 +- .../Hl7v2/Resource/_EpisodeOfCare.liquid | 36 +- .../Templates/Hl7v2/Resource/_Location.liquid | 4 +- .../Hl7v2/Resource/_MessageHeader.liquid | 45 +- .../Hl7v2/Resource/_Observation.liquid | 476 +- .../Hl7v2/Resource/_Organization.liquid | 309 +- .../Hl7v2/Resource/_PLLocation.liquid | 217 + data/Templates/Hl7v2/Resource/_Patient.liquid | 341 +- .../Hl7v2/Resource/_Practitioner.liquid | 42 +- .../Hl7v2/Resource/_PractitionerRole.liquid | 50 +- .../Hl7v2/Resource/_Procedure.liquid | 96 +- .../Hl7v2/Resource/_Provenance.liquid | 260 +- .../_Provenance_transformation.liquid | 42 + .../Hl7v2/Resource/_RelatedPerson.liquid | 256 +- .../Hl7v2/Resource/_ServiceRequest.liquid | 91 +- data/Templates/Hl7v2/VXU_V04.liquid | 150 +- release.yml | 1 + .../FunctionalTests.cs | 33 +- .../RuleBasedTests.cs | 32 +- .../Hl7v2/ADT_A01/ADT-A01-expected-2.json | 2130 ++++++++ .../Hl7v2/ADT_A01/ADT-A01-expected.json | 4748 +++++++++++++++++ .../Hl7v2/ADT_A01/ADT01-23-expected.json | 1625 ++++-- .../Hl7v2/ADT_A01/ADT01-28-expected.json | 882 +-- .../Hl7v2/ADT_A01/ADT04-23-expected.json | 538 -- .../Hl7v2/ADT_A01/ADT04-251-expected.json | 278 - .../Hl7v2/ADT_A01/ADT04-28-expected.json | 397 -- .../Hl7v2/ADT_A02/ADT-A02-expected-2.json | 2130 ++++++++ .../Hl7v2/ADT_A02/ADT-A02-expected.json | 3028 +++++++++++ .../Hl7v2/ADT_A03/ADT-A03-expected-2.json | 2130 ++++++++ .../Hl7v2/ADT_A03/ADT-A03-expected.json | 4748 +++++++++++++++++ .../Hl7v2/ADT_A04/ADT-A04-expected-2.json | 2130 ++++++++ .../Hl7v2/ADT_A04/ADT-A04-expected.json | 4748 +++++++++++++++++ .../Hl7v2/ADT_A04/ADT04-23-expected.json | 845 +++ .../Hl7v2/ADT_A04/ADT04-251-expected.json | 335 ++ .../Hl7v2/ADT_A04/ADT04-28-expected.json | 728 +++ .../Hl7v2/ADT_A05/ADT-A05-expected-2.json | 2130 ++++++++ .../Hl7v2/ADT_A05/ADT-A05-expected.json | 4748 +++++++++++++++++ .../Hl7v2/ADT_A08/ADT-A08-expected-2.json | 2130 ++++++++ .../Hl7v2/ADT_A08/ADT-A08-expected.json | 4748 +++++++++++++++++ .../Hl7v2/ADT_A14/ADT-A14-expected-2.json | 2130 ++++++++ .../Hl7v2/ADT_A14/ADT-A14-expected.json | 4748 +++++++++++++++++ .../Hl7v2/ADT_A15/ADT-A15-expected-2.json | 2130 ++++++++ .../Hl7v2/ADT_A15/ADT-A15-expected.json | 3028 +++++++++++ .../Hl7v2/ADT_A16/ADT-A16-expected-2.json | 2130 ++++++++ .../Hl7v2/ADT_A16/ADT-A16-expected.json | 4748 +++++++++++++++++ .../Hl7v2/ADT_A28/ADT-A28-expected-2.json | 2130 ++++++++ .../Hl7v2/ADT_A28/ADT-A28-expected.json | 4748 +++++++++++++++++ .../Hl7v2/ADT_A31/ADT-A31-expected-2.json | 2130 ++++++++ .../Hl7v2/ADT_A31/ADT-A31-expected.json | 4748 +++++++++++++++++ .../Hl7v2/ADT_A47/ADT-A47-expected-2.json | 939 ++++ .../Hl7v2/ADT_A47/ADT-A47-expected.json | 1041 ++++ .../Hl7v2/ADT_A60/ADT-A60-expected-2.json | 1146 ++++ .../Hl7v2/ADT_A60/ADT-A60-expected.json | 2716 ++++++++++ .../OML_O21/MDHHS-OML-O21-1-expected.json | 592 +- .../OML_O21/MDHHS-OML-O21-2-expected.json | 1238 +++-- .../Hl7v2/ORU_R01/LAB-ORU-1-expected.json | 1705 +++--- .../Hl7v2/ORU_R01/LAB-ORU-2-expected.json | 1803 +++---- .../LRI_2.0-NG_CBC_Typ_Message-expected.json | 4256 ++++++--------- .../ORU_R01/ORU-R01-RMGEAD-expected.json | 586 +- ..._1.1_Admin_Child_Max_Message-expected.json | 1205 +++-- .../Expected/Hl7v2/VXU_V04/VXU-expected.json | 1355 ++--- .../Models/Hl7v2/Hl7v2TraceInfoTests.cs | 12 +- .../TemplateCollectionProviderTests.cs | 4 +- 207 files changed, 100776 insertions(+), 9661 deletions(-) create mode 100644 data/SampleData/Hl7v2/ADT_A01-2.hl7 create mode 100644 data/SampleData/Hl7v2/ADT_A01.hl7 create mode 100644 data/SampleData/Hl7v2/ADT_A02-2.hl7 create mode 100644 data/SampleData/Hl7v2/ADT_A02.hl7 create mode 100644 data/SampleData/Hl7v2/ADT_A03-2.hl7 create mode 100644 data/SampleData/Hl7v2/ADT_A03.hl7 create mode 100644 data/SampleData/Hl7v2/ADT_A04-2.hl7 create mode 100644 data/SampleData/Hl7v2/ADT_A04.hl7 create mode 100644 data/SampleData/Hl7v2/ADT_A05-2.hl7 create mode 100644 data/SampleData/Hl7v2/ADT_A05.hl7 create mode 100644 data/SampleData/Hl7v2/ADT_A08-2.hl7 create mode 100644 data/SampleData/Hl7v2/ADT_A08.hl7 create mode 100644 data/SampleData/Hl7v2/ADT_A14-2.hl7 create mode 100644 data/SampleData/Hl7v2/ADT_A14.hl7 create mode 100644 data/SampleData/Hl7v2/ADT_A15-2.hl7 create mode 100644 data/SampleData/Hl7v2/ADT_A15.hl7 create mode 100644 data/SampleData/Hl7v2/ADT_A16-2.hl7 create mode 100644 data/SampleData/Hl7v2/ADT_A16.hl7 create mode 100644 data/SampleData/Hl7v2/ADT_A28-2.hl7 create mode 100644 data/SampleData/Hl7v2/ADT_A28.hl7 create mode 100644 data/SampleData/Hl7v2/ADT_A31-2.hl7 create mode 100644 data/SampleData/Hl7v2/ADT_A31.hl7 create mode 100644 data/SampleData/Hl7v2/ADT_A47-2.hl7 create mode 100644 data/SampleData/Hl7v2/ADT_A47.hl7 create mode 100644 data/SampleData/Hl7v2/ADT_A60-2.hl7 create mode 100644 data/SampleData/Hl7v2/ADT_A60.hl7 create mode 100644 data/Templates/Hl7v2/ADT_A02.liquid create mode 100644 data/Templates/Hl7v2/ADT_A03.liquid create mode 100644 data/Templates/Hl7v2/ADT_A04.liquid create mode 100644 data/Templates/Hl7v2/ADT_A05.liquid create mode 100644 data/Templates/Hl7v2/ADT_A08.liquid create mode 100644 data/Templates/Hl7v2/ADT_A14.liquid create mode 100644 data/Templates/Hl7v2/ADT_A15.liquid create mode 100644 data/Templates/Hl7v2/ADT_A16.liquid create mode 100644 data/Templates/Hl7v2/ADT_A28.liquid create mode 100644 data/Templates/Hl7v2/ADT_A31.liquid create mode 100644 data/Templates/Hl7v2/ADT_A47.liquid create mode 100644 data/Templates/Hl7v2/ADT_A60.liquid create mode 100644 data/Templates/Hl7v2/DataType/_CECodeableConcept.liquid create mode 100644 data/Templates/Hl7v2/DataType/_CFCodeableConcept.liquid create mode 100644 data/Templates/Hl7v2/DataType/_CNECodeableConcept.liquid create mode 100644 data/Templates/Hl7v2/DataType/_CWECodeableConceptRepeatable.liquid create mode 100644 data/Templates/Hl7v2/DataType/_CWEIdentifier.liquid create mode 100644 data/Templates/Hl7v2/DataType/_DLDLocation.liquid create mode 100644 data/Templates/Hl7v2/DataType/_DRPeriod.liquid rename data/Templates/Hl7v2/DataType/{_EDAttachment.liquid => _EDAttachment1.liquid} (100%) create mode 100644 data/Templates/Hl7v2/DataType/_EDAttachment2.liquid create mode 100644 data/Templates/Hl7v2/DataType/_FNHumanName.liquid create mode 100644 data/Templates/Hl7v2/DataType/_HDDevice.liquid create mode 100644 data/Templates/Hl7v2/DataType/_HDDevice_InternalValue.liquid create mode 100644 data/Templates/Hl7v2/DataType/_HDLocation.liquid delete mode 100644 data/Templates/Hl7v2/DataType/_HDMSH_24.liquid delete mode 100644 data/Templates/Hl7v2/DataType/_HDMSH_3.liquid delete mode 100644 data/Templates/Hl7v2/DataType/_HDMSH_4.liquid delete mode 100644 data/Templates/Hl7v2/DataType/_HDMSH_5.liquid delete mode 100644 data/Templates/Hl7v2/DataType/_HDMSH_6.liquid create mode 100644 data/Templates/Hl7v2/DataType/_HDMessageHeader_destination.liquid create mode 100644 data/Templates/Hl7v2/DataType/_HDMessageHeader_source.liquid create mode 100644 data/Templates/Hl7v2/DataType/_HDOrganization_InternalValue.liquid create mode 100644 data/Templates/Hl7v2/DataType/_HDUri.liquid create mode 100644 data/Templates/Hl7v2/DataType/_IDCodeableConcept.liquid create mode 100644 data/Templates/Hl7v2/DataType/_IDCoding.liquid create mode 100644 data/Templates/Hl7v2/DataType/_ISCodeableConcept.liquid create mode 100644 data/Templates/Hl7v2/DataType/_NRRange.liquid create mode 100644 data/Templates/Hl7v2/DataType/_PL_HDLocation.liquid create mode 100644 data/Templates/Hl7v2/DataType/_RPAttachment.liquid create mode 100644 data/Templates/Hl7v2/DataType/_STCoding.liquid create mode 100644 data/Templates/Hl7v2/DataType/_XADAddress.liquid create mode 100644 data/Templates/Hl7v2/Extensions/AllergyIntolerance/_AllergyIntoleranceExtension.liquid create mode 100644 data/Templates/Hl7v2/Extensions/Condition/_ConditionExtension.liquid create mode 100644 data/Templates/Hl7v2/Extensions/Encounter/_EncounterExtension.liquid create mode 100644 data/Templates/Hl7v2/Extensions/Observation/_ObservationExtension.liquid create mode 100644 data/Templates/Hl7v2/Extensions/Patient/_PatientExtension.liquid create mode 100644 data/Templates/Hl7v2/Extensions/RelatedPerson/_RelatedPerson.liquid create mode 100644 data/Templates/Hl7v2/Extensions/_AllergyIntoleranceActionCode.liquid create mode 100644 data/Templates/Hl7v2/Extensions/_AllergyIntoleranceTypeCode.liquid create mode 100644 data/Templates/Hl7v2/Extensions/_Animal.liquid create mode 100644 data/Templates/Hl7v2/Extensions/_BirthPlace.liquid create mode 100644 data/Templates/Hl7v2/Extensions/_BirthTime.liquid create mode 100644 data/Templates/Hl7v2/Extensions/_Condition-assertedDate.liquid create mode 100644 data/Templates/Hl7v2/Extensions/_Condition-dueTo.liquid create mode 100644 data/Templates/Hl7v2/Extensions/_DataAbsentReason.liquid create mode 100644 data/Templates/Hl7v2/Extensions/_DisabilityIndicator.liquid create mode 100644 data/Templates/Hl7v2/Extensions/_DisabilityPeriod.liquid create mode 100644 data/Templates/Hl7v2/Extensions/_EncounterModeOfArrival.liquid create mode 100644 data/Templates/Hl7v2/Extensions/_EthnicGroup.liquid create mode 100644 data/Templates/Hl7v2/Extensions/_MotherMaidenName.liquid create mode 100644 data/Templates/Hl7v2/Extensions/_ObservationStatus.liquid create mode 100644 data/Templates/Hl7v2/Extensions/_ObservationValueAttachment.liquid create mode 100644 data/Templates/Hl7v2/Extensions/_PatientCitizenship.liquid create mode 100644 data/Templates/Hl7v2/Extensions/_PatientCongregation.liquid create mode 100644 data/Templates/Hl7v2/Extensions/_PatientImportance.liquid create mode 100644 data/Templates/Hl7v2/Extensions/_PatientNationality.liquid create mode 100644 data/Templates/Hl7v2/Extensions/_PatientReligion.liquid create mode 100644 data/Templates/Hl7v2/Extensions/_Race.liquid create mode 100644 data/Templates/Hl7v2/Extensions/_TemporaryLocation.liquid create mode 100644 data/Templates/Hl7v2/Extensions/_VeteranMilitaryStatus.liquid create mode 100644 data/Templates/Hl7v2/ID/_Appointment.liquid create mode 100644 data/Templates/Hl7v2/ID/_Coverage.liquid create mode 100644 data/Templates/Hl7v2/ID/_EpisodeOfCare.liquid create mode 100644 data/Templates/Hl7v2/ID/_Provenance_transformation.liquid create mode 100644 data/Templates/Hl7v2/Resource/_Appointment.liquid create mode 100644 data/Templates/Hl7v2/Resource/_Coverage.liquid create mode 100644 data/Templates/Hl7v2/Resource/_PLLocation.liquid create mode 100644 data/Templates/Hl7v2/Resource/_Provenance_transformation.liquid create mode 100644 src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A01/ADT-A01-expected-2.json create mode 100644 src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A01/ADT-A01-expected.json delete mode 100644 src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A01/ADT04-23-expected.json delete mode 100644 src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A01/ADT04-251-expected.json delete mode 100644 src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A01/ADT04-28-expected.json create mode 100644 src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A02/ADT-A02-expected-2.json create mode 100644 src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A02/ADT-A02-expected.json create mode 100644 src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A03/ADT-A03-expected-2.json create mode 100644 src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A03/ADT-A03-expected.json create mode 100644 src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A04/ADT-A04-expected-2.json create mode 100644 src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A04/ADT-A04-expected.json create mode 100644 src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A04/ADT04-23-expected.json create mode 100644 src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A04/ADT04-251-expected.json create mode 100644 src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A04/ADT04-28-expected.json create mode 100644 src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A05/ADT-A05-expected-2.json create mode 100644 src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A05/ADT-A05-expected.json create mode 100644 src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A08/ADT-A08-expected-2.json create mode 100644 src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A08/ADT-A08-expected.json create mode 100644 src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A14/ADT-A14-expected-2.json create mode 100644 src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A14/ADT-A14-expected.json create mode 100644 src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A15/ADT-A15-expected-2.json create mode 100644 src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A15/ADT-A15-expected.json create mode 100644 src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A16/ADT-A16-expected-2.json create mode 100644 src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A16/ADT-A16-expected.json create mode 100644 src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A28/ADT-A28-expected-2.json create mode 100644 src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A28/ADT-A28-expected.json create mode 100644 src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A31/ADT-A31-expected-2.json create mode 100644 src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A31/ADT-A31-expected.json create mode 100644 src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A47/ADT-A47-expected-2.json create mode 100644 src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A47/ADT-A47-expected.json create mode 100644 src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A60/ADT-A60-expected-2.json create mode 100644 src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A60/ADT-A60-expected.json diff --git a/data/SampleData/Hl7v2/ADT04-251.hl7 b/data/SampleData/Hl7v2/ADT04-251.hl7 index 1ed9f199d..f961f1bab 100644 --- a/data/SampleData/Hl7v2/ADT04-251.hl7 +++ b/data/SampleData/Hl7v2/ADT04-251.hl7 @@ -1,4 +1,4 @@ -MSH|^~\&|||||20190502121659.069-0700||ADT^A04^ADT_A01|401|T|2.5.1 +MSH|^~\&|REDOX|RDX|||20190504181205||ADT^A04|1270326314|T|2.3||||||||| PID|||MRN12345^5^M11^^MR^Special Hospital||Doe^Jane||19780101|F||2106-3||||||||123456789 NK1|1|JOHNSON^CONWAY^^^^^L|SPOUS||(130) 724-0433^PRN^PH^^^431^2780404~(330) 274-8214^ORN^PH^^^330^2748214||EMERGENCY PV1||E|||||12345^Johnson^Peter|||||||||||||||||||||||||||||||||||||201905020700 \ No newline at end of file diff --git a/data/SampleData/Hl7v2/ADT_A01-2.hl7 b/data/SampleData/Hl7v2/ADT_A01-2.hl7 new file mode 100644 index 000000000..bed4032e9 --- /dev/null +++ b/data/SampleData/Hl7v2/ADT_A01-2.hl7 @@ -0,0 +1,4 @@ +MSH|^~\&|ADTApp|GHHSFacility^2.16.840.1.122848.1.30^ISO|EHRApp^1.Edu^ISO|GHHRFacility^2.16.840.1.1122848.1.32^ISO|198908181126+0215|SECURITY|ADT^A01^ADT_A01|MSG00001|P|2.8|||||USA||en-US|||22 GHH Inc.|23 GHH Inc.|24GHH^2.16.840.1.114884.10.20^ISO|25GHH^2.16.840.1.114884.10.23^ISO +EVN|A01|20290801070624+0115|20290801070724|01^Patient request^HL70062|C08^Woolfson^Kathleen^2ndname^Jr^Dr^MD^^DRNBR&W1.2&ISO^L^^^ANON|20210817151943.4+0200|Cona_Health^1.3.6.1.4.1.44750.1.4^ISO +PID|1|1234567^4^M11^test^MR^University Hospital^19241011^19241012|PATID1234^5^M11^test1&2.16.1&HCD^MR^GOOD HEALTH HOSPITAL~123456789^^^USSSA^SS|PATID567^^^test2|EVERYMAN&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm~Josh&&&&Bing^^stanley^^^^L^^^^^19241010^19241015|SMITH^Angela^L|198808181126+0215|M|elbert^Son|2106-3^White^HL70005~2028-9^Asian^HL70005|1000&Hospital Lane^Ste. 123^Ann Arbor ^MI^99999^USA^M^^&W^^^20000110&20000120^^^^^^^Near Highway|GL|78788788^^CP^5555^^^1111^^^^^2222^20010110^20020110^^^^18~12121212^^CP|7777^^CP~1111^^TDD|ara^^HL70296^eng^English-us^HL70296^v2^v2.1^TextInEnglish|M^Married|AME|4000776^^^AccMgr&2.4&ISO^VN^1^19241011^19241012|PSSN123121234|DLN-123^US^20010123|1212121^^^NTH&rt23&HCD^AND^^19241011^19241012|N^NOT HISPANIC OR LATINO^HL70189|St. Francis Community Hospital of Lower South Side|N|2|US^United States of America^ISO3166_1|Vet123^retired^ART|BT^Bhutan^ISO3166_1|20080825111630+0115|Y|||20050110015014+0315||125097000^Goat^SCT|4880003^Beagle^SCT|||CA^Canada^ISO3166_1|89898989^WPN^Internet +PV1|1|P|HUH AE OMU&9.8&ISO^OMU B^Bed 03^HOMERTON UNIVER^^C^Homerton UH^Floor5|E|1234567^4^M11^t&2.16.840.1.113883.19&HCD^ANON^University Hospital^19241011^19241012|4 East, room 136, bed B 4E^136^B^CommunityHospital^^N^^^|1122334^Alaz^Mohammed^Mahi^JR^Dr.^MD^^PERSONNELt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al|C006^Woolfson^Kathleen^^^Dr^^^TEST&23.2&HCD^MSK^^^BA|C008^Condoc^leen^^^Dr^^^&2.8&ISO^NAV^^^BR|SUR|||R|NHS Provider-General (inc.A\T\E-this Hosp)||VIP^Very Important Person^L^IMP^^DCM^v1.1^v1.2^Inportant Person|37^DISNEY^WALT^^^^^^AccMgr^^^^ANC|Inpatient|40007716^^^AccMng&1.2&HCD^AM|||||||||||||||||Admitted as Inpatient^Sample^ACR|22&Homes&FDK|Vegan^Vegetarian|HOMERTON UNIVER||Active|POC^Room-2^Bed-103^^^C^Greenland|Nursing home^^^^^^Rosewood|20150208113419+0110||||||50^^^T123&r2.3&ISO^MR||Othhel^^^^^^^^testing&&HCD||EOC124^5^M11^Etest&2.16.1&HCD^MR^CommunityHospital \ No newline at end of file diff --git a/data/SampleData/Hl7v2/ADT_A01.hl7 b/data/SampleData/Hl7v2/ADT_A01.hl7 new file mode 100644 index 000000000..4ed139c72 --- /dev/null +++ b/data/SampleData/Hl7v2/ADT_A01.hl7 @@ -0,0 +1,17 @@ +MSH|^~\&|ADTApp|GHHSFacility^2.16.840.1.122848.1.30^ISO|EHRApp^1.Edu^ISO|GHHRFacility^2.16.840.1.1122848.1.32^ISO|198908181126+0215|SECURITY|ADT^A01^ADT_A01|MSG00001|P|2.8|||||USA||en-US|||22 GHH Inc.|23 GHH Inc.|24GHH^2.16.840.1.114884.10.20^ISO|25GHH^2.16.840.1.114884.10.23^ISO +SFT|Orion|2.4.3.52854|Rhapsody|2.4.3|Testactivity|20070725111624 +EVN|A01|20290801070624+0115|20290801070724|01^Patient request^HL70062|C08^Woolfson^Kathleen^2ndname^Jr^Dr^MD^^DRNBR&W1.2&ISO^L^^^ANON|20210817151943.4+0200|Cona_Health^1.3.6.1.4.1.44750.1.4^ISO +PID|1|1234567^4^M11^test^MR^University Hospital^19241011^19241012|PATID1234^5^M11^test1&2.16.1&HCD^MR^GOOD HEALTH HOSPITAL~123456789^^^USSSA^SS|PATID567^^^test2|EVERYMAN&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm~Josh&&&&Bing^^stanley^^^^L^^^^^19241010^19241015|SMITH^Angela^L|198808181126+0215|M|elbert^Son|2106-3^White^HL70005~2028-9^Asian^HL70005|1000&Hospital Lane^Ste. 123^Ann Arbor ^MI^99999^USA^M^^&W^^^20000110&20000120^^^^^^^Near Highway|GL|78788788^^CP^5555^^^1111^^^^^2222^20010110^20020110^^^^18~12121212^^CP|7777^^CP~1111^^TDD|ara^^HL70296^eng^English-us^HL70296^v2^v2.1^TextInEnglish|M^Married|AME|4000776^^^AccMgr&2.4&ISO^VN^1^19241011^19241012|PSSN123121234|DLN-123^US^20010123|1212121^^^NTH&rt23&HCD^AND^^19241011^19241012|N^NOT HISPANIC OR LATINO^HL70189|St. Francis Community Hospital of Lower South Side|N|2|US^United States of America^ISO3166_1|Vet123^retired^ART|BT^Bhutan^ISO3166_1|20080825111630+0115|Y|||20050110015014+0315||125097000^Goat^SCT|4880003^Beagle^SCT|||CA^Canada^ISO3166_1|89898989^WPN^Internet +PD1|S^^ACR||LINDAS TEST ORGANIZATION^^SIISCLIENT818|88^Hippo^rold^H^V^Dr^MD^^TE^^^M10^DN^^||||||||||Methodist Church|||20150202^20150202 +NK1|1|Evan&&&&Aniston^ADAM^A^III^Dr.^MD^D|EMC^test^ACR^CHD^^^9.0^10.0|2222&HOME&STREET^Highway^GREENSBORO^NC^27401-1020^US^BI^^jkdha&test^^^^20000110^20050111~111&Duck ST^^Fowl|78788788^WPN^Internet^5555^^^^^^^^^20010110^20020110^^^^18~121111^PRN^CP|88888888^PRN^CP^5555^^^^^^^^878777^20010110^20020110^^^^18~6666666^^BP|O|20210818|20211218|||12345567^4^M11^T1&2.16.840.1.113883.19&HCD^MR^University Hospital^19241011^19241012|TestOrg^^O12^^^^EI^^^Org12||F^^^M|19620110045504||||ara||||||||||Green^John^A^II^DR^MD^D^^^19241012^G~Josh&&&&Bing^^stanley^^^^L|898989898^^FX~88888888^^CP|Street1&Palkstreet~ST-2|I-123^^^^BA~I-222^^^^DI||2106-3^test^FDDC||Security no-23|||1515151515^WPN^CP^555544^^^^^^^^777^20010110^20020110^^^^1|444444^^CP +PV1|1|P|HUH AE OMU&9.8&ISO^OMU B^Bed 03^HOMERTON UNIVER^^C^Homerton UH^Floor5|E|1234567^4^M11^t&2.16.840.1.113883.19&HCD^ANON^University Hospital^19241011^19241012|4 East, room 136, bed B 4E^136^B^CommunityHospital^^N^^^|1122334^Alaz^Mohammed^Mahi^JR^Dr.^MD^^PERSONNELt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al|C006^Woolfson^Kathleen^^^Dr^^^TEST&23.2&HCD^MSK^^^BA|C008^Condoc^leen^^^Dr^^^&2.8&ISO^NAV^^^BR|SUR|||R|NHS Provider-General (inc.A\T\E-this Hosp)||VIP^Very Important Person^L^IMP^^DCM^v1.1^v1.2^Inportant Person|37^DISNEY^WALT^^^^^^AccMgr^^^^ANC|Inpatient|40007716^^^AccMng&1.2&HCD^AM|||||||||||||||||Admitted as Inpatient^Sample^ACR|22&Homes&FDK|Vegan^Vegetarian|HOMERTON UNIVER||Active|POC^Room-2^Bed-103^^^C^Greenland|Nursing home^^^^^^Rosewood|20150208113419+0110||||||50^^^T123&r2.3&ISO^MR||Othhel^^^^^^^^testing&&HCD||EOC124^5^M11^Etest&2.16.1&HCD^MR^CommunityHospital +PV2|^ROOM1&2.16.840.1.113883.4.642.1.1108&ISO^BED1^FACILITY1^^^BUILDING1^FLOOR1^^^||140004^Chronic pharyngitis^SCT||||||||2|Health Checkup|12188^Hippocrates^Harold^H^IV^Dr^MD^^TE&Provider Master.Community Health and Hospitals&DNS^^^M10^DN^^|||||||||N|||2^^^3^^^V1.2^V1.3|||||||||||||C +DB1|1|PT|DB123^4^M11^t&1.12&ISO^MR^UH^19241011^19241012|Y|20210830|20210930| +OBX|27|NM|8867-4^heartrate^LN||60~120|beats/min^^ISO|70-80|A^A^HL7nnnn~B^B|||S|||19990702|Org15^ID of producer^CAS|1134^Aly^Zafar^Mahendra^JR^Dr.^MD^^PERSt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al~2234^Pauly^Berrie^Raud|OBS^This is test method^AS4|EI12.3^NI2^UI2^GUID~^^UI1^ISO|19990702|BU^Observation site^E5|EI21^OII||FairOaks Hspital|Research Park^Fairfax^VA^22031^USA|MD-25^Atchinson^Christopher^^MD|||||||PAI-1^FAI-1 +AL1|1|EA|P^PENICILLIN^ICDO|MI|CODE16|20210824 +DG1|1|I9|422504002^Ischemic stroke(disorder)^SCT|Stroke|20040125114025+0420|A|||||||||1|005454^DIAG^ROBIN^B|||20200501133015+0215|DI20^Diagnosis^DTUI^CLIP|A|^^UI^CLIP +PR1|1||76164006^Biopsy of colon (procedure)^SCT|Biopsy of colon, which was part of colonoscopy|200501251140+0100|D^Diagnostic Procedure^HL70230|2|1210^ANES^MARK^B|||121188^Patrick^Harold^H^IV^Dr^MD^^&Provider Master.Community Health and Hospitals&L^L^9^M10^DN^&Good Health Hospital.Community Health and Hospitals&L^A|12345689^Everyman2^Adam2^A^III^DR^PHD^ADT01^^L^4^M11^MR|||799008^Sigmoid colon ulcer^SCT||||PR1006||||OT^201||PR1001 +GT1|1|1516^4^M11^test^MR^Unity Hospital^19241011^19241012|RADIANT^LUCY^^|Rebecca^Jonas|1619 SOUTH UNIVERSITY^^MADISON^WI^53703^US|6082517777^^Internet^8484~717171^^PH|021212^^MD|20010412|F|P/F|SEL|G-SSN-12|20010410|20010415|2|EHS GENERIC EMPLOYER|1979 MILKY WAY^^VERONA^WI^53593^US|082719000^^PH|55121^^^^FI|3|Jupiter Hospital|N|SLF|20000725111420|N||||1231^^^^BC|M|20091010|20101010||||ger||||||MothersMaiden|||Ben^Charles~Ben2|000352^^CP~00121^^FX|Urgent requirement||||GEOrg|||||Germany +IN1|1|BAV^Blue Advantage HMO|IC-1.31^24^BCV^&2.16.840.1.113883.1.1&ISO^NIIP^^19291011^19291012|Blue Cross Blue Shield of Texas|1979 MILKY WAY^^VERONA^WI^53593^US|Henry&&&&Roth^Rony^A^III^Dr.^MD^D^^^19251012|(555)555-5555^BPN^PH|PUBSUMB|SelfPay||Sam P. Hil|19891001|20501001||HMO^health maintenance organization policy|Doe^Rosallie^John^III^Mrs.^Bachelors^R|SPO^Spouse|19750228|3857 Velvet Treasure Terrace^^Midnight^NC^27878^US|||||||||||||||||PN-145|150&USD^DC||||||F^Female|2000 MILKY WAY^^VERONA^WI^53593^US|||B||HMO-12345^^^&2.16.840.1.113883.1.3&ISO^NI +IN2|1117^4^M11^&2.16.840.1.113883.1.4&ISO^EI^University Hospital~1118^^^^BC|425-57-9745|||I^Insurance company|Medicare-12345|Jack&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm|MCN-008||MI-12345||||||||||||||||||||||||eng^English|||||||||||||||Richard^Paul|254622222^^PH|||||||||||PNM1234^4^M11^PM&2.6.1&HCD^MR^University Hospital^19241011^19241012||0005245^WPN^Internet~^^CP|555777888^^FX~^^PH||||||Max Life Insurance||02^Spouse +RF1|P^Pending^HL7283|A^ASAP^HL7280|EXTERNAL|||123-1^name|||19900501120100+0515|R-1^Reason^C4|123-2^Testname|||Patient has a spinal fracture|||||AuthProvider^L^4.4^3^M10^CMS^LR^^^A|114^Beverly^Crusher^An^Mr^Dr.^AHP^^2.3^B^^^BR^^^^^^19241010^19241015^Al||||Check for metastatic disease|U \ No newline at end of file diff --git a/data/SampleData/Hl7v2/ADT_A02-2.hl7 b/data/SampleData/Hl7v2/ADT_A02-2.hl7 new file mode 100644 index 000000000..980cf0222 --- /dev/null +++ b/data/SampleData/Hl7v2/ADT_A02-2.hl7 @@ -0,0 +1,4 @@ +MSH|^~\&|ADTApp|GHHSFacility^2.16.840.1.122848.1.30^ISO|EHRApp^1.Edu^ISO|GHHRFacility^2.16.840.1.1122848.1.32^ISO|198908181126+0215|SECURITY|ADT^A02^ADT_A02|MSG00001|P|2.8|||||USA||en-US|||22 GHH Inc.|23 GHH Inc.|24GHH^2.16.840.1.114884.10.20^ISO|25GHH^2.16.840.1.114884.10.23^ISO +EVN|A01|20290801070624+0115|20290801070724|01^Patient request^HL70062|C08^Woolfson^Kathleen^2ndname^Jr^Dr^MD^^DRNBR&W1.2&ISO^L^^^ANON|20210817151943.4+0200|Cona_Health^1.3.6.1.4.1.44750.1.4^ISO +PID|1|1234567^4^M11^test^MR^University Hospital^19241011^19241012|PATID1234^5^M11^test1&2.16.1&HCD^MR^GOOD HEALTH HOSPITAL~123456789^^^USSSA^SS|PATID567^^^test2|EVERYMAN&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm~Josh&&&&Bing^^stanley^^^^L^^^^^19241010^19241015|SMITH^Angela^L|198808181126+0215|M|elbert^Son|2106-3^White^HL70005~2028-9^Asian^HL70005|1000&Hospital Lane^Ste. 123^Ann Arbor ^MI^99999^USA^M^^&W^^^20000110&20000120^^^^^^^Near Highway|GL|78788788^^CP^5555^^^1111^^^^^2222^20010110^20020110^^^^18~12121212^^CP|7777^^CP~1111^^TDD|ara^^HL70296^eng^English-us^HL70296^v2^v2.1^TextInEnglish|M^Married|AME|4000776^^^AccMgr&2.4&ISO^VN^1^19241011^19241012|PSSN123121234|DLN-123^US^20010123|1212121^^^NTH&rt23&HCD^AND^^19241011^19241012|N^NOT HISPANIC OR LATINO^HL70189|St. Francis Community Hospital of Lower South Side|N|2|US^United States of America^ISO3166_1|Vet123^retired^ART|BT^Bhutan^ISO3166_1|20080825111630+0115|Y|||20050110015014+0315||125097000^Goat^SCT|4880003^Beagle^SCT|||CA^Canada^ISO3166_1|89898989^WPN^Internet +PV1|1|P|HUH AE OMU&9.8&ISO^OMU B^Bed 03^HOMERTON UNIVER^^C^Homerton UH^Floor5|E|1234567^4^M11^t&2.16.840.1.113883.19&HCD^ANON^University Hospital^19241011^19241012|4 East, room 136, bed B 4E^136^B^CommunityHospital^^N^^^|1122334^Alaz^Mohammed^Mahi^JR^Dr.^MD^^PERSONNELt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al|C006^Woolfson^Kathleen^^^Dr^^^TEST&23.2&HCD^MSK^^^BA|C008^Condoc^leen^^^Dr^^^&2.8&ISO^NAV^^^BR|SUR|||R|NHS Provider-General (inc.A\T\E-this Hosp)||VIP^Very Important Person^L^IMP^^DCM^v1.1^v1.2^Inportant Person|37^DISNEY^WALT^^^^^^AccMgr^^^^ANC|Inpatient|40007716^^^AccMng&1.2&HCD^AM|||||||||||||||||Admitted as Inpatient^Sample^ACR|22&Homes&FDK|Vegan^Vegetarian|HOMERTON UNIVER||Active|POC^Room-2^Bed-103^^^C^Greenland|Nursing home^^^^^^Rosewood|20150208113419+0110||||||50^^^T123&r2.3&ISO^MR||Othhel^^^^^^^^testing&&HCD||EOC124^5^M11^Etest&2.16.1&HCD^MR^CommunityHospital \ No newline at end of file diff --git a/data/SampleData/Hl7v2/ADT_A02.hl7 b/data/SampleData/Hl7v2/ADT_A02.hl7 new file mode 100644 index 000000000..6a6cda025 --- /dev/null +++ b/data/SampleData/Hl7v2/ADT_A02.hl7 @@ -0,0 +1,9 @@ +MSH|^~\&|ADTApp|GHHSFacility^2.16.840.1.122848.1.30^ISO|EHRApp^1.Edu^ISO|GHHRFacility^2.16.840.1.1122848.1.32^ISO|198908181126+0215|SECURITY|ADT^A02^ADT_A02|MSG00001|P|2.8|||||USA||en-US|||22 GHH Inc.|23 GHH Inc.|24GHH^2.16.840.1.114884.10.20^ISO|25GHH^2.16.840.1.114884.10.23^ISO +SFT|Orion|2.4.3.52854|Rhapsody|2.4.3|Testactivity|20070725111624 +EVN|A01|20290801070624+0115|20290801070724|01^Patient request^HL70062|C08^Woolfson^Kathleen^2ndname^Jr^Dr^MD^^DRNBR&W1.2&ISO^L^^^ANON|20210817151943.4+0200|Cona_Health^1.3.6.1.4.1.44750.1.4^ISO +PID|1|1234567^4^M11^test^MR^University Hospital^19241011^19241012|PATID1234^5^M11^test1&2.16.1&HCD^MR^GOOD HEALTH HOSPITAL~123456789^^^USSSA^SS|PATID567^^^test2|EVERYMAN&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm~Josh&&&&Bing^^stanley^^^^L^^^^^19241010^19241015|SMITH^Angela^L|198808181126+0215|M|elbert^Son|2106-3^White^HL70005~2028-9^Asian^HL70005|1000&Hospital Lane^Ste. 123^Ann Arbor ^MI^99999^USA^M^^&W^^^20000110&20000120^^^^^^^Near Highway|GL|78788788^^CP^5555^^^1111^^^^^2222^20010110^20020110^^^^18~12121212^^CP|7777^^CP~1111^^TDD|ara^^HL70296^eng^English-us^HL70296^v2^v2.1^TextInEnglish|M^Married|AME|4000776^^^AccMgr&2.4&ISO^VN^1^19241011^19241012|PSSN123121234|DLN-123^US^20010123|1212121^^^NTH&rt23&HCD^AND^^19241011^19241012|N^NOT HISPANIC OR LATINO^HL70189|St. Francis Community Hospital of Lower South Side|N|2|US^United States of America^ISO3166_1|Vet123^retired^ART|BT^Bhutan^ISO3166_1|20080825111630+0115|Y|||20050110015014+0315||125097000^Goat^SCT|4880003^Beagle^SCT|||CA^Canada^ISO3166_1|89898989^WPN^Internet +PD1|S^^ACR||LINDAS TEST ORGANIZATION^^SIISCLIENT818|88^Hippo^rold^H^V^Dr^MD^^TE^^^M10^DN^^||||||||||Methodist Church|||20150202^20150202 +PV1|1|P|HUH AE OMU&9.8&ISO^OMU B^Bed 03^HOMERTON UNIVER^^C^Homerton UH^Floor5|E|1234567^4^M11^t&2.16.840.1.113883.19&HCD^ANON^University Hospital^19241011^19241012|4 East, room 136, bed B 4E^136^B^CommunityHospital^^N^^^|1122334^Alaz^Mohammed^Mahi^JR^Dr.^MD^^PERSONNELt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al|C006^Woolfson^Kathleen^^^Dr^^^TEST&23.2&HCD^MSK^^^BA|C008^Condoc^leen^^^Dr^^^&2.8&ISO^NAV^^^BR|SUR|||R|NHS Provider-General (inc.A\T\E-this Hosp)||VIP^Very Important Person^L^IMP^^DCM^v1.1^v1.2^Inportant Person|37^DISNEY^WALT^^^^^^AccMgr^^^^ANC|Inpatient|40007716^^^AccMng&1.2&HCD^AM|||||||||||||||||Admitted as Inpatient^Sample^ACR|22&Homes&FDK|Vegan^Vegetarian|HOMERTON UNIVER||Active|POC^Room-2^Bed-103^^^C^Greenland|Nursing home^^^^^^Rosewood|20150208113419+0110||||||50^^^T123&r2.3&ISO^MR||Othhel^^^^^^^^testing&&HCD||EOC124^5^M11^Etest&2.16.1&HCD^MR^CommunityHospital +PV2|^ROOM1&2.16.840.1.113883.4.642.1.1108&ISO^BED1^FACILITY1^^^BUILDING1^FLOOR1^^^||140004^Chronic pharyngitis^SCT||||||||2|Health Checkup|12188^Hippocrates^Harold^H^IV^Dr^MD^^TE&Provider Master.Community Health and Hospitals&DNS^^^M10^DN^^|||||||||N|||2^^^3^^^V1.2^V1.3|||||||||||||C +DB1|1|PT|DB123^4^M11^t&1.12&ISO^MR^UH^19241011^19241012|Y|20210830|20210930| +OBX|27|NM|8867-4^heartrate^LN||60~120|beats/min^^ISO|70-80|A^A^HL7nnnn~B^B|||S|||19990702|Org15^ID of producer^CAS|1134^Aly^Zafar^Mahendra^JR^Dr.^MD^^PERSt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al~2234^Pauly^Berrie^Raud|OBS^This is test method^AS4|EI12.3^NI2^UI2^GUID~^^UI1^ISO|19990702|BU^Observation site^E5|EI21^OII||FairOaks Hspital|Research Park^Fairfax^VA^22031^USA|MD-25^Atchinson^Christopher^^MD|||||||PAI-1^FAI-1 \ No newline at end of file diff --git a/data/SampleData/Hl7v2/ADT_A03-2.hl7 b/data/SampleData/Hl7v2/ADT_A03-2.hl7 new file mode 100644 index 000000000..9f6aefaa7 --- /dev/null +++ b/data/SampleData/Hl7v2/ADT_A03-2.hl7 @@ -0,0 +1,4 @@ +MSH|^~\&|ADTApp|GHHSFacility^2.16.840.1.122848.1.30^ISO|EHRApp^1.Edu^ISO|GHHRFacility^2.16.840.1.1122848.1.32^ISO|198908181126+0215|SECURITY|ADT^A03^ADT_A03|MSG00001|P|2.8|||||USA||en-US|||22 GHH Inc.|23 GHH Inc.|24GHH^2.16.840.1.114884.10.20^ISO|25GHH^2.16.840.1.114884.10.23^ISO +EVN|A01|20290801070624+0115|20290801070724|01^Patient request^HL70062|C08^Woolfson^Kathleen^2ndname^Jr^Dr^MD^^DRNBR&W1.2&ISO^L^^^ANON|20210817151943.4+0200|Cona_Health^1.3.6.1.4.1.44750.1.4^ISO +PID|1|1234567^4^M11^test^MR^University Hospital^19241011^19241012|PATID1234^5^M11^test1&2.16.1&HCD^MR^GOOD HEALTH HOSPITAL~123456789^^^USSSA^SS|PATID567^^^test2|EVERYMAN&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm~Josh&&&&Bing^^stanley^^^^L^^^^^19241010^19241015|SMITH^Angela^L|198808181126+0215|M|elbert^Son|2106-3^White^HL70005~2028-9^Asian^HL70005|1000&Hospital Lane^Ste. 123^Ann Arbor ^MI^99999^USA^M^^&W^^^20000110&20000120^^^^^^^Near Highway|GL|78788788^^CP^5555^^^1111^^^^^2222^20010110^20020110^^^^18~12121212^^CP|7777^^CP~1111^^TDD|ara^^HL70296^eng^English-us^HL70296^v2^v2.1^TextInEnglish|M^Married|AME|4000776^^^AccMgr&2.4&ISO^VN^1^19241011^19241012|PSSN123121234|DLN-123^US^20010123|1212121^^^NTH&rt23&HCD^AND^^19241011^19241012|N^NOT HISPANIC OR LATINO^HL70189|St. Francis Community Hospital of Lower South Side|N|2|US^United States of America^ISO3166_1|Vet123^retired^ART|BT^Bhutan^ISO3166_1|20080825111630+0115|Y|||20050110015014+0315||125097000^Goat^SCT|4880003^Beagle^SCT|||CA^Canada^ISO3166_1|89898989^WPN^Internet +PV1|1|P|HUH AE OMU&9.8&ISO^OMU B^Bed 03^HOMERTON UNIVER^^C^Homerton UH^Floor5|E|1234567^4^M11^t&2.16.840.1.113883.19&HCD^ANON^University Hospital^19241011^19241012|4 East, room 136, bed B 4E^136^B^CommunityHospital^^N^^^|1122334^Alaz^Mohammed^Mahi^JR^Dr.^MD^^PERSONNELt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al|C006^Woolfson^Kathleen^^^Dr^^^TEST&23.2&HCD^MSK^^^BA|C008^Condoc^leen^^^Dr^^^&2.8&ISO^NAV^^^BR|SUR|||R|NHS Provider-General (inc.A\T\E-this Hosp)||VIP^Very Important Person^L^IMP^^DCM^v1.1^v1.2^Inportant Person|37^DISNEY^WALT^^^^^^AccMgr^^^^ANC|Inpatient|40007716^^^AccMng&1.2&HCD^AM|||||||||||||||||Admitted as Inpatient^Sample^ACR|22&Homes&FDK|Vegan^Vegetarian|HOMERTON UNIVER||Active|POC^Room-2^Bed-103^^^C^Greenland|Nursing home^^^^^^Rosewood|20150208113419+0110||||||50^^^T123&r2.3&ISO^MR||Othhel^^^^^^^^testing&&HCD||EOC124^5^M11^Etest&2.16.1&HCD^MR^CommunityHospital \ No newline at end of file diff --git a/data/SampleData/Hl7v2/ADT_A03.hl7 b/data/SampleData/Hl7v2/ADT_A03.hl7 new file mode 100644 index 000000000..d0d9da6f0 --- /dev/null +++ b/data/SampleData/Hl7v2/ADT_A03.hl7 @@ -0,0 +1,17 @@ +MSH|^~\&|ADTApp|GHHSFacility^2.16.840.1.122848.1.30^ISO|EHRApp^1.Edu^ISO|GHHRFacility^2.16.840.1.1122848.1.32^ISO|198908181126+0215|SECURITY|ADT^A03^ADT_A03|MSG00001|P|2.8|||||USA||en-US|||22 GHH Inc.|23 GHH Inc.|24GHH^2.16.840.1.114884.10.20^ISO|25GHH^2.16.840.1.114884.10.23^ISO +SFT|Orion|2.4.3.52854|Rhapsody|2.4.3|Testactivity|20070725111624 +EVN|A01|20290801070624+0115|20290801070724|01^Patient request^HL70062|C08^Woolfson^Kathleen^2ndname^Jr^Dr^MD^^DRNBR&W1.2&ISO^L^^^ANON|20210817151943.4+0200|Cona_Health^1.3.6.1.4.1.44750.1.4^ISO +PID|1|1234567^4^M11^test^MR^University Hospital^19241011^19241012|PATID1234^5^M11^test1&2.16.1&HCD^MR^GOOD HEALTH HOSPITAL~123456789^^^USSSA^SS|PATID567^^^test2|EVERYMAN&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm~Josh&&&&Bing^^stanley^^^^L^^^^^19241010^19241015|SMITH^Angela^L|198808181126+0215|M|elbert^Son|2106-3^White^HL70005~2028-9^Asian^HL70005|1000&Hospital Lane^Ste. 123^Ann Arbor ^MI^99999^USA^M^^&W^^^20000110&20000120^^^^^^^Near Highway|GL|78788788^^CP^5555^^^1111^^^^^2222^20010110^20020110^^^^18~12121212^^CP|7777^^CP~1111^^TDD|ara^^HL70296^eng^English-us^HL70296^v2^v2.1^TextInEnglish|M^Married|AME|4000776^^^AccMgr&2.4&ISO^VN^1^19241011^19241012|PSSN123121234|DLN-123^US^20010123|1212121^^^NTH&rt23&HCD^AND^^19241011^19241012|N^NOT HISPANIC OR LATINO^HL70189|St. Francis Community Hospital of Lower South Side|N|2|US^United States of America^ISO3166_1|Vet123^retired^ART|BT^Bhutan^ISO3166_1|20080825111630+0115|Y|||20050110015014+0315||125097000^Goat^SCT|4880003^Beagle^SCT|||CA^Canada^ISO3166_1|89898989^WPN^Internet +PD1|S^^ACR||LINDAS TEST ORGANIZATION^^SIISCLIENT818|88^Hippo^rold^H^V^Dr^MD^^TE^^^M10^DN^^||||||||||Methodist Church|||20150202^20150202 +NK1|1|Evan&&&&Aniston^ADAM^A^III^Dr.^MD^D|EMC^test^ACR^CHD^^^9.0^10.0|2222&HOME&STREET^Highway^GREENSBORO^NC^27401-1020^US^BI^^jkdha&test^^^^20000110^20050111~111&Duck ST^^Fowl|78788788^WPN^Internet^5555^^^^^^^^^20010110^20020110^^^^18~121111^PRN^CP|88888888^PRN^CP^5555^^^^^^^^878777^20010110^20020110^^^^18~6666666^^BP|O|20210818|20211218|||12345567^4^M11^T1&2.16.840.1.113883.19&HCD^MR^University Hospital^19241011^19241012|TestOrg^^O12^^^^EI^^^Org12||F^^^M|19620110045504||||ara||||||||||Green^John^A^II^DR^MD^D^^^19241012^G~Josh&&&&Bing^^stanley^^^^L|898989898^^FX~88888888^^CP|Street1&Palkstreet~ST-2|I-123^^^^BA~I-222^^^^DI||2106-3^test^FDDC||Security no-23|||1515151515^WPN^CP^555544^^^^^^^^777^20010110^20020110^^^^1|444444^^CP +PV1|1|P|HUH AE OMU&9.8&ISO^OMU B^Bed 03^HOMERTON UNIVER^^C^Homerton UH^Floor5|E|1234567^4^M11^t&2.16.840.1.113883.19&HCD^ANON^University Hospital^19241011^19241012|4 East, room 136, bed B 4E^136^B^CommunityHospital^^N^^^|1122334^Alaz^Mohammed^Mahi^JR^Dr.^MD^^PERSONNELt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al|C006^Woolfson^Kathleen^^^Dr^^^TEST&23.2&HCD^MSK^^^BA|C008^Condoc^leen^^^Dr^^^&2.8&ISO^NAV^^^BR|SUR|||R|NHS Provider-General (inc.A\T\E-this Hosp)||VIP^Very Important Person^L^IMP^^DCM^v1.1^v1.2^Inportant Person|37^DISNEY^WALT^^^^^^AccMgr^^^^ANC|Inpatient|40007716^^^AccMng&1.2&HCD^AM|||||||||||||||||Admitted as Inpatient^Sample^ACR|22&Homes&FDK|Vegan^Vegetarian|HOMERTON UNIVER||Active|POC^Room-2^Bed-103^^^C^Greenland|Nursing home^^^^^^Rosewood|20150208113419+0110||||||50^^^T123&r2.3&ISO^MR||Othhel^^^^^^^^testing&&HCD||EOC124^5^M11^Etest&2.16.1&HCD^MR^CommunityHospital +PV2|^ROOM1&2.16.840.1.113883.4.642.1.1108&ISO^BED1^FACILITY1^^^BUILDING1^FLOOR1^^^||140004^Chronic pharyngitis^SCT||||||||2|Health Checkup|12188^Hippocrates^Harold^H^IV^Dr^MD^^TE&Provider Master.Community Health and Hospitals&DNS^^^M10^DN^^|||||||||N|||2^^^3^^^V1.2^V1.3|||||||||||||C +DB1|1|PT|DB123^4^M11^t&1.12&ISO^MR^UH^19241011^19241012|Y|20210830|20210930| +AL1|1|EA|P^PENICILLIN^ICDO|MI|CODE16|20210824 +DG1|1|I9|422504002^Ischemic stroke(disorder)^SCT|Stroke|20040125114025+0420|A|||||||||1|005454^DIAG^ROBIN^B|||20200501133015+0215|DI20^Diagnosis^DTUI^CLIP|A|^^UI^CLIP +PR1|1||76164006^Biopsy of colon (procedure)^SCT|Biopsy of colon, which was part of colonoscopy|200501251140+0100|D^Diagnostic Procedure^HL70230|2|1210^ANES^MARK^B|||121188^Patrick^Harold^H^IV^Dr^MD^^&Provider Master.Community Health and Hospitals&L^L^9^M10^DN^&Good Health Hospital.Community Health and Hospitals&L^A|12345689^Everyman2^Adam2^A^III^DR^PHD^ADT01^^L^4^M11^MR|||799008^Sigmoid colon ulcer^SCT||||PR1006||||OT^201||PR1001 +OBX|27|NM|8867-4^heartrate^LN||60~120|beats/min^^ISO|70-80|A^A^HL7nnnn~B^B|||S|||19990702|Org15^ID of producer^CAS|1134^Aly^Zafar^Mahendra^JR^Dr.^MD^^PERSt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al~2234^Pauly^Berrie^Raud|OBS^This is test method^AS4|EI12.3^NI2^UI2^GUID~^^UI1^ISO|19990702|BU^Observation site^E5|EI21^OII||FairOaks Hspital|Research Park^Fairfax^VA^22031^USA|MD-25^Atchinson^Christopher^^MD|||||||PAI-1^FAI-1 +GT1|1|1516^4^M11^test^MR^Unity Hospital^19241011^19241012|RADIANT^LUCY^^|Rebecca^Jonas|1619 SOUTH UNIVERSITY^^MADISON^WI^53703^US|6082517777^^Internet^8484~717171^^PH|021212^^MD|20010412|F|P/F|SEL|G-SSN-12|20010410|20010415|2|EHS GENERIC EMPLOYER|1979 MILKY WAY^^VERONA^WI^53593^US|082719000^^PH|55121^^^^FI|3|Jupiter Hospital|N|SLF|20000725111420|N||||1231^^^^BC|M|20091010|20101010||||ger||||||MothersMaiden|||Ben^Charles~Ben2|000352^^CP~00121^^FX|Urgent requirement||||GEOrg|||||Germany +IN1|1|BAV^Blue Advantage HMO|IC-1.31^24^BCV^&2.16.840.1.113883.1.1&ISO^NIIP^^19291011^19291012|Blue Cross Blue Shield of Texas|1979 MILKY WAY^^VERONA^WI^53593^US|Henry&&&&Roth^Rony^A^III^Dr.^MD^D^^^19251012|(555)555-5555^BPN^PH|PUBSUMB|SelfPay||Sam P. Hil|19891001|20501001||HMO^health maintenance organization policy|Doe^Rosallie^John^III^Mrs.^Bachelors^R|SPO^Spouse|19750228|3857 Velvet Treasure Terrace^^Midnight^NC^27878^US|||||||||||||||||PN-145|150&USD^DC||||||F^Female|2000 MILKY WAY^^VERONA^WI^53593^US|||B||HMO-12345^^^&2.16.840.1.113883.1.3&ISO^NI +IN2|1117^4^M11^&2.16.840.1.113883.1.4&ISO^EI^University Hospital~1118^^^^BC|425-57-9745|||I^Insurance company|Medicare-12345|Jack&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm|MCN-008||MI-12345||||||||||||||||||||||||eng^English|||||||||||||||Richard^Paul|254622222^^PH|||||||||||PNM1234^4^M11^PM&2.6.1&HCD^MR^University Hospital^19241011^19241012||0005245^WPN^Internet~^^CP|555777888^^FX~^^PH||||||Max Life Insurance||02^Spouse +RF1|P^Pending^HL7283|A^ASAP^HL7280|EXTERNAL|||123-1^name|||19900501120100+0515|R-1^Reason^C4|123-2^Testname|||Patient has a spinal fracture|||||AuthProvider^L^4.4^3^M10^CMS^LR^^^A|114^Beverly^Crusher^An^Mr^Dr.^AHP^^2.3^B^^^BR^^^^^^19241010^19241015^Al||||Check for metastatic disease|U \ No newline at end of file diff --git a/data/SampleData/Hl7v2/ADT_A04-2.hl7 b/data/SampleData/Hl7v2/ADT_A04-2.hl7 new file mode 100644 index 000000000..01242018e --- /dev/null +++ b/data/SampleData/Hl7v2/ADT_A04-2.hl7 @@ -0,0 +1,4 @@ +MSH|^~\&|ADTApp|GHHSFacility^2.16.840.1.122848.1.30^ISO|EHRApp^1.Edu^ISO|GHHRFacility^2.16.840.1.1122848.1.32^ISO|198908181126+0215|SECURITY|ADT^A04^ADT_A04|MSG00001|P|2.8|||||USA||en-US|||22 GHH Inc.|23 GHH Inc.|24GHH^2.16.840.1.114884.10.20^ISO|25GHH^2.16.840.1.114884.10.23^ISO +EVN|A01|20290801070624+0115|20290801070724|01^Patient request^HL70062|C08^Woolfson^Kathleen^2ndname^Jr^Dr^MD^^DRNBR&W1.2&ISO^L^^^ANON|20210817151943.4+0200|Cona_Health^1.3.6.1.4.1.44750.1.4^ISO +PID|1|1234567^4^M11^test^MR^University Hospital^19241011^19241012|PATID1234^5^M11^test1&2.16.1&HCD^MR^GOOD HEALTH HOSPITAL~123456789^^^USSSA^SS|PATID567^^^test2|EVERYMAN&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm~Josh&&&&Bing^^stanley^^^^L^^^^^19241010^19241015|SMITH^Angela^L|198808181126+0215|M|elbert^Son|2106-3^White^HL70005~2028-9^Asian^HL70005|1000&Hospital Lane^Ste. 123^Ann Arbor ^MI^99999^USA^M^^&W^^^20000110&20000120^^^^^^^Near Highway|GL|78788788^^CP^5555^^^1111^^^^^2222^20010110^20020110^^^^18~12121212^^CP|7777^^CP~1111^^TDD|ara^^HL70296^eng^English-us^HL70296^v2^v2.1^TextInEnglish|M^Married|AME|4000776^^^AccMgr&2.4&ISO^VN^1^19241011^19241012|PSSN123121234|DLN-123^US^20010123|1212121^^^NTH&rt23&HCD^AND^^19241011^19241012|N^NOT HISPANIC OR LATINO^HL70189|St. Francis Community Hospital of Lower South Side|N|2|US^United States of America^ISO3166_1|Vet123^retired^ART|BT^Bhutan^ISO3166_1|20080825111630+0115|Y|||20050110015014+0315||125097000^Goat^SCT|4880003^Beagle^SCT|||CA^Canada^ISO3166_1|89898989^WPN^Internet +PV1|1|P|HUH AE OMU&9.8&ISO^OMU B^Bed 03^HOMERTON UNIVER^^C^Homerton UH^Floor5|E|1234567^4^M11^t&2.16.840.1.113883.19&HCD^ANON^University Hospital^19241011^19241012|4 East, room 136, bed B 4E^136^B^CommunityHospital^^N^^^|1122334^Alaz^Mohammed^Mahi^JR^Dr.^MD^^PERSONNELt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al|C006^Woolfson^Kathleen^^^Dr^^^TEST&23.2&HCD^MSK^^^BA|C008^Condoc^leen^^^Dr^^^&2.8&ISO^NAV^^^BR|SUR|||R|NHS Provider-General (inc.A\T\E-this Hosp)||VIP^Very Important Person^L^IMP^^DCM^v1.1^v1.2^Inportant Person|37^DISNEY^WALT^^^^^^AccMgr^^^^ANC|Inpatient|40007716^^^AccMng&1.2&HCD^AM|||||||||||||||||Admitted as Inpatient^Sample^ACR|22&Homes&FDK|Vegan^Vegetarian|HOMERTON UNIVER||Active|POC^Room-2^Bed-103^^^C^Greenland|Nursing home^^^^^^Rosewood|20150208113419+0110||||||50^^^T123&r2.3&ISO^MR||Othhel^^^^^^^^testing&&HCD||EOC124^5^M11^Etest&2.16.1&HCD^MR^CommunityHospital \ No newline at end of file diff --git a/data/SampleData/Hl7v2/ADT_A04.hl7 b/data/SampleData/Hl7v2/ADT_A04.hl7 new file mode 100644 index 000000000..a7ffd33be --- /dev/null +++ b/data/SampleData/Hl7v2/ADT_A04.hl7 @@ -0,0 +1,17 @@ +MSH|^~\&|ADTApp|GHHSFacility^2.16.840.1.122848.1.30^ISO|EHRApp^1.Edu^ISO|GHHRFacility^2.16.840.1.1122848.1.32^ISO|198908181126+0215|SECURITY|ADT^A04^ADT_A04|MSG00001|P|2.8|||||USA||en-US|||22 GHH Inc.|23 GHH Inc.|24GHH^2.16.840.1.114884.10.20^ISO|25GHH^2.16.840.1.114884.10.23^ISO +SFT|Orion|2.4.3.52854|Rhapsody|2.4.3|Testactivity|20070725111624 +EVN|A01|20290801070624+0115|20290801070724|01^Patient request^HL70062|C08^Woolfson^Kathleen^2ndname^Jr^Dr^MD^^DRNBR&W1.2&ISO^L^^^ANON|20210817151943.4+0200|Cona_Health^1.3.6.1.4.1.44750.1.4^ISO +PID|1|1234567^4^M11^test^MR^University Hospital^19241011^19241012|PATID1234^5^M11^test1&2.16.1&HCD^MR^GOOD HEALTH HOSPITAL~123456789^^^USSSA^SS|PATID567^^^test2|EVERYMAN&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm~Josh&&&&Bing^^stanley^^^^L^^^^^19241010^19241015|SMITH^Angela^L|198808181126+0215|M|elbert^Son|2106-3^White^HL70005~2028-9^Asian^HL70005|1000&Hospital Lane^Ste. 123^Ann Arbor ^MI^99999^USA^M^^&W^^^20000110&20000120^^^^^^^Near Highway|GL|78788788^^CP^5555^^^1111^^^^^2222^20010110^20020110^^^^18~12121212^^CP|7777^^CP~1111^^TDD|ara^^HL70296^eng^English-us^HL70296^v2^v2.1^TextInEnglish|M^Married|AME|4000776^^^AccMgr&2.4&ISO^VN^1^19241011^19241012|PSSN123121234|DLN-123^US^20010123|1212121^^^NTH&rt23&HCD^AND^^19241011^19241012|N^NOT HISPANIC OR LATINO^HL70189|St. Francis Community Hospital of Lower South Side|N|2|US^United States of America^ISO3166_1|Vet123^retired^ART|BT^Bhutan^ISO3166_1|20080825111630+0115|Y|||20050110015014+0315||125097000^Goat^SCT|4880003^Beagle^SCT|||CA^Canada^ISO3166_1|89898989^WPN^Internet +PD1|S^^ACR||LINDAS TEST ORGANIZATION^^SIISCLIENT818|88^Hippo^rold^H^V^Dr^MD^^TE^^^M10^DN^^||||||||||Methodist Church|||20150202^20150202 +NK1|1|Evan&&&&Aniston^ADAM^A^III^Dr.^MD^D|EMC^test^ACR^CHD^^^9.0^10.0|2222&HOME&STREET^Highway^GREENSBORO^NC^27401-1020^US^BI^^jkdha&test^^^^20000110^20050111~111&Duck ST^^Fowl|78788788^WPN^Internet^5555^^^^^^^^^20010110^20020110^^^^18~121111^PRN^CP|88888888^PRN^CP^5555^^^^^^^^878777^20010110^20020110^^^^18~6666666^^BP|O|20210818|20211218|||12345567^4^M11^T1&2.16.840.1.113883.19&HCD^MR^University Hospital^19241011^19241012|TestOrg^^O12^^^^EI^^^Org12||F^^^M|19620110045504||||ara||||||||||Green^John^A^II^DR^MD^D^^^19241012^G~Josh&&&&Bing^^stanley^^^^L|898989898^^FX~88888888^^CP|Street1&Palkstreet~ST-2|I-123^^^^BA~I-222^^^^DI||2106-3^test^FDDC||Security no-23|||1515151515^WPN^CP^555544^^^^^^^^777^20010110^20020110^^^^1|444444^^CP +PV1|1|P|HUH AE OMU&9.8&ISO^OMU B^Bed 03^HOMERTON UNIVER^^C^Homerton UH^Floor5|E|1234567^4^M11^t&2.16.840.1.113883.19&HCD^ANON^University Hospital^19241011^19241012|4 East, room 136, bed B 4E^136^B^CommunityHospital^^N^^^|1122334^Alaz^Mohammed^Mahi^JR^Dr.^MD^^PERSONNELt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al|C006^Woolfson^Kathleen^^^Dr^^^TEST&23.2&HCD^MSK^^^BA|C008^Condoc^leen^^^Dr^^^&2.8&ISO^NAV^^^BR|SUR|||R|NHS Provider-General (inc.A\T\E-this Hosp)||VIP^Very Important Person^L^IMP^^DCM^v1.1^v1.2^Inportant Person|37^DISNEY^WALT^^^^^^AccMgr^^^^ANC|Inpatient|40007716^^^AccMng&1.2&HCD^AM|||||||||||||||||Admitted as Inpatient^Sample^ACR|22&Homes&FDK|Vegan^Vegetarian|HOMERTON UNIVER||Active|POC^Room-2^Bed-103^^^C^Greenland|Nursing home^^^^^^Rosewood|20150208113419+0110||||||50^^^T123&r2.3&ISO^MR||Othhel^^^^^^^^testing&&HCD||EOC124^5^M11^Etest&2.16.1&HCD^MR^CommunityHospital +PV2|^ROOM1&2.16.840.1.113883.4.642.1.1108&ISO^BED1^FACILITY1^^^BUILDING1^FLOOR1^^^||140004^Chronic pharyngitis^SCT||||||||2|Health Checkup|12188^Hippocrates^Harold^H^IV^Dr^MD^^TE&Provider Master.Community Health and Hospitals&DNS^^^M10^DN^^|||||||||N|||2^^^3^^^V1.2^V1.3|||||||||||||C +DB1|1|PT|DB123^4^M11^t&1.12&ISO^MR^UH^19241011^19241012|Y|20210830|20210930| +OBX|27|NM|8867-4^heartrate^LN||60~120|beats/min^^ISO|70-80|A^A^HL7nnnn~B^B|||S|||19990702|Org15^ID of producer^CAS|1134^Aly^Zafar^Mahendra^JR^Dr.^MD^^PERSt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al~2234^Pauly^Berrie^Raud|OBS^This is test method^AS4|EI12.3^NI2^UI2^GUID~^^UI1^ISO|19990702|BU^Observation site^E5|EI21^OII||FairOaks Hspital|Research Park^Fairfax^VA^22031^USA|MD-25^Atchinson^Christopher^^MD|||||||PAI-1^FAI-1 +AL1|1|EA|P^PENICILLIN^ICDO|MI|CODE16|20210824 +DG1|1|I9|422504002^Ischemic stroke(disorder)^SCT|Stroke|20040125114025+0420|A|||||||||1|005454^DIAG^ROBIN^B|||20200501133015+0215|DI20^Diagnosis^DTUI^CLIP|A|^^UI^CLIP +PR1|1||76164006^Biopsy of colon (procedure)^SCT|Biopsy of colon, which was part of colonoscopy|200501251140+0100|D^Diagnostic Procedure^HL70230|2|1210^ANES^MARK^B|||121188^Patrick^Harold^H^IV^Dr^MD^^&Provider Master.Community Health and Hospitals&L^L^9^M10^DN^&Good Health Hospital.Community Health and Hospitals&L^A|12345689^Everyman2^Adam2^A^III^DR^PHD^ADT01^^L^4^M11^MR|||799008^Sigmoid colon ulcer^SCT||||PR1006||||OT^201||PR1001 +GT1|1|1516^4^M11^test^MR^Unity Hospital^19241011^19241012|RADIANT^LUCY^^|Rebecca^Jonas|1619 SOUTH UNIVERSITY^^MADISON^WI^53703^US|6082517777^^Internet^8484~717171^^PH|021212^^MD|20010412|F|P/F|SEL|G-SSN-12|20010410|20010415|2|EHS GENERIC EMPLOYER|1979 MILKY WAY^^VERONA^WI^53593^US|082719000^^PH|55121^^^^FI|3|Jupiter Hospital|N|SLF|20000725111420|N||||1231^^^^BC|M|20091010|20101010||||ger||||||MothersMaiden|||Ben^Charles~Ben2|000352^^CP~00121^^FX|Urgent requirement||||GEOrg|||||Germany +IN1|1|BAV^Blue Advantage HMO|IC-1.31^24^BCV^&2.16.840.1.113883.1.1&ISO^NIIP^^19291011^19291012|Blue Cross Blue Shield of Texas|1979 MILKY WAY^^VERONA^WI^53593^US|Henry&&&&Roth^Rony^A^III^Dr.^MD^D^^^19251012|(555)555-5555^BPN^PH|PUBSUMB|SelfPay||Sam P. Hil|19891001|20501001||HMO^health maintenance organization policy|Doe^Rosallie^John^III^Mrs.^Bachelors^R|SPO^Spouse|19750228|3857 Velvet Treasure Terrace^^Midnight^NC^27878^US|||||||||||||||||PN-145|150&USD^DC||||||F^Female|2000 MILKY WAY^^VERONA^WI^53593^US|||B||HMO-12345^^^&2.16.840.1.113883.1.3&ISO^NI +IN2|1117^4^M11^&2.16.840.1.113883.1.4&ISO^EI^University Hospital~1118^^^^BC|425-57-9745|||I^Insurance company|Medicare-12345|Jack&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm|MCN-008||MI-12345||||||||||||||||||||||||eng^English|||||||||||||||Richard^Paul|254622222^^PH|||||||||||PNM1234^4^M11^PM&2.6.1&HCD^MR^University Hospital^19241011^19241012||0005245^WPN^Internet~^^CP|555777888^^FX~^^PH||||||Max Life Insurance||02^Spouse +RF1|P^Pending^HL7283|A^ASAP^HL7280|EXTERNAL|||123-1^name|||19900501120100+0515|R-1^Reason^C4|123-2^Testname|||Patient has a spinal fracture|||||AuthProvider^L^4.4^3^M10^CMS^LR^^^A|114^Beverly^Crusher^An^Mr^Dr.^AHP^^2.3^B^^^BR^^^^^^19241010^19241015^Al||||Check for metastatic disease|U \ No newline at end of file diff --git a/data/SampleData/Hl7v2/ADT_A05-2.hl7 b/data/SampleData/Hl7v2/ADT_A05-2.hl7 new file mode 100644 index 000000000..b995abc80 --- /dev/null +++ b/data/SampleData/Hl7v2/ADT_A05-2.hl7 @@ -0,0 +1,4 @@ +MSH|^~\&|ADTApp|GHHSFacility^2.16.840.1.122848.1.30^ISO|EHRApp^1.Edu^ISO|GHHRFacility^2.16.840.1.1122848.1.32^ISO|198908181126+0215|SECURITY|ADT^A05^ADT_A05|MSG00001|P|2.8|||||USA||en-US|||22 GHH Inc.|23 GHH Inc.|24GHH^2.16.840.1.114884.10.20^ISO|25GHH^2.16.840.1.114884.10.23^ISO +EVN|A01|20290801070624+0115|20290801070724|01^Patient request^HL70062|C08^Woolfson^Kathleen^2ndname^Jr^Dr^MD^^DRNBR&W1.2&ISO^L^^^ANON|20210817151943.4+0200|Cona_Health^1.3.6.1.4.1.44750.1.4^ISO +PID|1|1234567^4^M11^test^MR^University Hospital^19241011^19241012|PATID1234^5^M11^test1&2.16.1&HCD^MR^GOOD HEALTH HOSPITAL~123456789^^^USSSA^SS|PATID567^^^test2|EVERYMAN&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm~Josh&&&&Bing^^stanley^^^^L^^^^^19241010^19241015|SMITH^Angela^L|198808181126+0215|M|elbert^Son|2106-3^White^HL70005~2028-9^Asian^HL70005|1000&Hospital Lane^Ste. 123^Ann Arbor ^MI^99999^USA^M^^&W^^^20000110&20000120^^^^^^^Near Highway|GL|78788788^^CP^5555^^^1111^^^^^2222^20010110^20020110^^^^18~12121212^^CP|7777^^CP~1111^^TDD|ara^^HL70296^eng^English-us^HL70296^v2^v2.1^TextInEnglish|M^Married|AME|4000776^^^AccMgr&2.4&ISO^VN^1^19241011^19241012|PSSN123121234|DLN-123^US^20010123|1212121^^^NTH&rt23&HCD^AND^^19241011^19241012|N^NOT HISPANIC OR LATINO^HL70189|St. Francis Community Hospital of Lower South Side|N|2|US^United States of America^ISO3166_1|Vet123^retired^ART|BT^Bhutan^ISO3166_1|20080825111630+0115|Y|||20050110015014+0315||125097000^Goat^SCT|4880003^Beagle^SCT|||CA^Canada^ISO3166_1|89898989^WPN^Internet +PV1|1|P|HUH AE OMU&9.8&ISO^OMU B^Bed 03^HOMERTON UNIVER^^C^Homerton UH^Floor5|E|1234567^4^M11^t&2.16.840.1.113883.19&HCD^ANON^University Hospital^19241011^19241012|4 East, room 136, bed B 4E^136^B^CommunityHospital^^N^^^|1122334^Alaz^Mohammed^Mahi^JR^Dr.^MD^^PERSONNELt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al|C006^Woolfson^Kathleen^^^Dr^^^TEST&23.2&HCD^MSK^^^BA|C008^Condoc^leen^^^Dr^^^&2.8&ISO^NAV^^^BR|SUR|||R|NHS Provider-General (inc.A\T\E-this Hosp)||VIP^Very Important Person^L^IMP^^DCM^v1.1^v1.2^Inportant Person|37^DISNEY^WALT^^^^^^AccMgr^^^^ANC|Inpatient|40007716^^^AccMng&1.2&HCD^AM|||||||||||||||||Admitted as Inpatient^Sample^ACR|22&Homes&FDK|Vegan^Vegetarian|HOMERTON UNIVER||Active|POC^Room-2^Bed-103^^^C^Greenland|Nursing home^^^^^^Rosewood|20150208113419+0110||||||50^^^T123&r2.3&ISO^MR||Othhel^^^^^^^^testing&&HCD||EOC124^5^M11^Etest&2.16.1&HCD^MR^CommunityHospital \ No newline at end of file diff --git a/data/SampleData/Hl7v2/ADT_A05.hl7 b/data/SampleData/Hl7v2/ADT_A05.hl7 new file mode 100644 index 000000000..3d3800f9f --- /dev/null +++ b/data/SampleData/Hl7v2/ADT_A05.hl7 @@ -0,0 +1,17 @@ +MSH|^~\&|ADTApp|GHHSFacility^2.16.840.1.122848.1.30^ISO|EHRApp^1.Edu^ISO|GHHRFacility^2.16.840.1.1122848.1.32^ISO|198908181126+0215|SECURITY|ADT^A05^ADT_A05|MSG00001|P|2.8|||||USA||en-US|||22 GHH Inc.|23 GHH Inc.|24GHH^2.16.840.1.114884.10.20^ISO|25GHH^2.16.840.1.114884.10.23^ISO +SFT|Orion|2.4.3.52854|Rhapsody|2.4.3|Testactivity|20070725111624 +EVN|A01|20290801070624+0115|20290801070724|01^Patient request^HL70062|C08^Woolfson^Kathleen^2ndname^Jr^Dr^MD^^DRNBR&W1.2&ISO^L^^^ANON|20210817151943.4+0200|Cona_Health^1.3.6.1.4.1.44750.1.4^ISO +PID|1|1234567^4^M11^test^MR^University Hospital^19241011^19241012|PATID1234^5^M11^test1&2.16.1&HCD^MR^GOOD HEALTH HOSPITAL~123456789^^^USSSA^SS|PATID567^^^test2|EVERYMAN&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm~Josh&&&&Bing^^stanley^^^^L^^^^^19241010^19241015|SMITH^Angela^L|198808181126+0215|M|elbert^Son|2106-3^White^HL70005~2028-9^Asian^HL70005|1000&Hospital Lane^Ste. 123^Ann Arbor ^MI^99999^USA^M^^&W^^^20000110&20000120^^^^^^^Near Highway|GL|78788788^^CP^5555^^^1111^^^^^2222^20010110^20020110^^^^18~12121212^^CP|7777^^CP~1111^^TDD|ara^^HL70296^eng^English-us^HL70296^v2^v2.1^TextInEnglish|M^Married|AME|4000776^^^AccMgr&2.4&ISO^VN^1^19241011^19241012|PSSN123121234|DLN-123^US^20010123|1212121^^^NTH&rt23&HCD^AND^^19241011^19241012|N^NOT HISPANIC OR LATINO^HL70189|St. Francis Community Hospital of Lower South Side|N|2|US^United States of America^ISO3166_1|Vet123^retired^ART|BT^Bhutan^ISO3166_1|20080825111630+0115|Y|||20050110015014+0315||125097000^Goat^SCT|4880003^Beagle^SCT|||CA^Canada^ISO3166_1|89898989^WPN^Internet +PD1|S^^ACR||LINDAS TEST ORGANIZATION^^SIISCLIENT818|88^Hippo^rold^H^V^Dr^MD^^TE^^^M10^DN^^||||||||||Methodist Church|||20150202^20150202 +NK1|1|Evan&&&&Aniston^ADAM^A^III^Dr.^MD^D|EMC^test^ACR^CHD^^^9.0^10.0|2222&HOME&STREET^Highway^GREENSBORO^NC^27401-1020^US^BI^^jkdha&test^^^^20000110^20050111~111&Duck ST^^Fowl|78788788^WPN^Internet^5555^^^^^^^^^20010110^20020110^^^^18~121111^PRN^CP|88888888^PRN^CP^5555^^^^^^^^878777^20010110^20020110^^^^18~6666666^^BP|O|20210818|20211218|||12345567^4^M11^T1&2.16.840.1.113883.19&HCD^MR^University Hospital^19241011^19241012|TestOrg^^O12^^^^EI^^^Org12||F^^^M|19620110045504||||ara||||||||||Green^John^A^II^DR^MD^D^^^19241012^G~Josh&&&&Bing^^stanley^^^^L|898989898^^FX~88888888^^CP|Street1&Palkstreet~ST-2|I-123^^^^BA~I-222^^^^DI||2106-3^test^FDDC||Security no-23|||1515151515^WPN^CP^555544^^^^^^^^777^20010110^20020110^^^^1|444444^^CP +PV1|1|P|HUH AE OMU&9.8&ISO^OMU B^Bed 03^HOMERTON UNIVER^^C^Homerton UH^Floor5|E|1234567^4^M11^t&2.16.840.1.113883.19&HCD^ANON^University Hospital^19241011^19241012|4 East, room 136, bed B 4E^136^B^CommunityHospital^^N^^^|1122334^Alaz^Mohammed^Mahi^JR^Dr.^MD^^PERSONNELt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al|C006^Woolfson^Kathleen^^^Dr^^^TEST&23.2&HCD^MSK^^^BA|C008^Condoc^leen^^^Dr^^^&2.8&ISO^NAV^^^BR|SUR|||R|NHS Provider-General (inc.A\T\E-this Hosp)||VIP^Very Important Person^L^IMP^^DCM^v1.1^v1.2^Inportant Person|37^DISNEY^WALT^^^^^^AccMgr^^^^ANC|Inpatient|40007716^^^AccMng&1.2&HCD^AM|||||||||||||||||Admitted as Inpatient^Sample^ACR|22&Homes&FDK|Vegan^Vegetarian|HOMERTON UNIVER||Active|POC^Room-2^Bed-103^^^C^Greenland|Nursing home^^^^^^Rosewood|20150208113419+0110||||||50^^^T123&r2.3&ISO^MR||Othhel^^^^^^^^testing&&HCD||EOC124^5^M11^Etest&2.16.1&HCD^MR^CommunityHospital +PV2|^ROOM1&2.16.840.1.113883.4.642.1.1108&ISO^BED1^FACILITY1^^^BUILDING1^FLOOR1^^^||140004^Chronic pharyngitis^SCT||||||||2|Health Checkup|12188^Hippocrates^Harold^H^IV^Dr^MD^^TE&Provider Master.Community Health and Hospitals&DNS^^^M10^DN^^|||||||||N|||2^^^3^^^V1.2^V1.3|||||||||||||C +DB1|1|PT|DB123^4^M11^t&1.12&ISO^MR^UH^19241011^19241012|Y|20210830|20210930| +OBX|27|NM|8867-4^heartrate^LN||60~120|beats/min^^ISO|70-80|A^A^HL7nnnn~B^B|||S|||19990702|Org15^ID of producer^CAS|1134^Aly^Zafar^Mahendra^JR^Dr.^MD^^PERSt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al~2234^Pauly^Berrie^Raud|OBS^This is test method^AS4|EI12.3^NI2^UI2^GUID~^^UI1^ISO|19990702|BU^Observation site^E5|EI21^OII||FairOaks Hspital|Research Park^Fairfax^VA^22031^USA|MD-25^Atchinson^Christopher^^MD|||||||PAI-1^FAI-1 +AL1|1|EA|P^PENICILLIN^ICDO|MI|CODE16|20210824 +DG1|1|I9|422504002^Ischemic stroke(disorder)^SCT|Stroke|20040125114025+0420|A|||||||||1|005454^DIAG^ROBIN^B|||20200501133015+0215|DI20^Diagnosis^DTUI^CLIP|A|^^UI^CLIP +PR1|1||76164006^Biopsy of colon (procedure)^SCT|Biopsy of colon, which was part of colonoscopy|200501251140+0100|D^Diagnostic Procedure^HL70230|2|1210^ANES^MARK^B|||121188^Patrick^Harold^H^IV^Dr^MD^^&Provider Master.Community Health and Hospitals&L^L^9^M10^DN^&Good Health Hospital.Community Health and Hospitals&L^A|12345689^Everyman2^Adam2^A^III^DR^PHD^ADT01^^L^4^M11^MR|||799008^Sigmoid colon ulcer^SCT||||PR1006||||OT^201||PR1001 +GT1|1|1516^4^M11^test^MR^Unity Hospital^19241011^19241012|RADIANT^LUCY^^|Rebecca^Jonas|1619 SOUTH UNIVERSITY^^MADISON^WI^53703^US|6082517777^^Internet^8484~717171^^PH|021212^^MD|20010412|F|P/F|SEL|G-SSN-12|20010410|20010415|2|EHS GENERIC EMPLOYER|1979 MILKY WAY^^VERONA^WI^53593^US|082719000^^PH|55121^^^^FI|3|Jupiter Hospital|N|SLF|20000725111420|N||||1231^^^^BC|M|20091010|20101010||||ger||||||MothersMaiden|||Ben^Charles~Ben2|000352^^CP~00121^^FX|Urgent requirement||||GEOrg|||||Germany +IN1|1|BAV^Blue Advantage HMO|IC-1.31^24^BCV^&2.16.840.1.113883.1.1&ISO^NIIP^^19291011^19291012|Blue Cross Blue Shield of Texas|1979 MILKY WAY^^VERONA^WI^53593^US|Henry&&&&Roth^Rony^A^III^Dr.^MD^D^^^19251012|(555)555-5555^BPN^PH|PUBSUMB|SelfPay||Sam P. Hil|19891001|20501001||HMO^health maintenance organization policy|Doe^Rosallie^John^III^Mrs.^Bachelors^R|SPO^Spouse|19750228|3857 Velvet Treasure Terrace^^Midnight^NC^27878^US|||||||||||||||||PN-145|150&USD^DC||||||F^Female|2000 MILKY WAY^^VERONA^WI^53593^US|||B||HMO-12345^^^&2.16.840.1.113883.1.3&ISO^NI +IN2|1117^4^M11^&2.16.840.1.113883.1.4&ISO^EI^University Hospital~1118^^^^BC|425-57-9745|||I^Insurance company|Medicare-12345|Jack&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm|MCN-008||MI-12345||||||||||||||||||||||||eng^English|||||||||||||||Richard^Paul|254622222^^PH|||||||||||PNM1234^4^M11^PM&2.6.1&HCD^MR^University Hospital^19241011^19241012||0005245^WPN^Internet~^^CP|555777888^^FX~^^PH||||||Max Life Insurance||02^Spouse +RF1|P^Pending^HL7283|A^ASAP^HL7280|EXTERNAL|||123-1^name|||19900501120100+0515|R-1^Reason^C4|123-2^Testname|||Patient has a spinal fracture|||||AuthProvider^L^4.4^3^M10^CMS^LR^^^A|114^Beverly^Crusher^An^Mr^Dr.^AHP^^2.3^B^^^BR^^^^^^19241010^19241015^Al||||Check for metastatic disease|U \ No newline at end of file diff --git a/data/SampleData/Hl7v2/ADT_A08-2.hl7 b/data/SampleData/Hl7v2/ADT_A08-2.hl7 new file mode 100644 index 000000000..faa950e32 --- /dev/null +++ b/data/SampleData/Hl7v2/ADT_A08-2.hl7 @@ -0,0 +1,4 @@ +MSH|^~\&|ADTApp|GHHSFacility^2.16.840.1.122848.1.30^ISO|EHRApp^1.Edu^ISO|GHHRFacility^2.16.840.1.1122848.1.32^ISO|198908181126+0215|SECURITY|ADT^A08^ADT_A08|MSG00001|P|2.8|||||USA||en-US|||22 GHH Inc.|23 GHH Inc.|24GHH^2.16.840.1.114884.10.20^ISO|25GHH^2.16.840.1.114884.10.23^ISO +EVN|A01|20290801070624+0115|20290801070724|01^Patient request^HL70062|C08^Woolfson^Kathleen^2ndname^Jr^Dr^MD^^DRNBR&W1.2&ISO^L^^^ANON|20210817151943.4+0200|Cona_Health^1.3.6.1.4.1.44750.1.4^ISO +PID|1|1234567^4^M11^test^MR^University Hospital^19241011^19241012|PATID1234^5^M11^test1&2.16.1&HCD^MR^GOOD HEALTH HOSPITAL~123456789^^^USSSA^SS|PATID567^^^test2|EVERYMAN&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm~Josh&&&&Bing^^stanley^^^^L^^^^^19241010^19241015|SMITH^Angela^L|198808181126+0215|M|elbert^Son|2106-3^White^HL70005~2028-9^Asian^HL70005|1000&Hospital Lane^Ste. 123^Ann Arbor ^MI^99999^USA^M^^&W^^^20000110&20000120^^^^^^^Near Highway|GL|78788788^^CP^5555^^^1111^^^^^2222^20010110^20020110^^^^18~12121212^^CP|7777^^CP~1111^^TDD|ara^^HL70296^eng^English-us^HL70296^v2^v2.1^TextInEnglish|M^Married|AME|4000776^^^AccMgr&2.4&ISO^VN^1^19241011^19241012|PSSN123121234|DLN-123^US^20010123|1212121^^^NTH&rt23&HCD^AND^^19241011^19241012|N^NOT HISPANIC OR LATINO^HL70189|St. Francis Community Hospital of Lower South Side|N|2|US^United States of America^ISO3166_1|Vet123^retired^ART|BT^Bhutan^ISO3166_1|20080825111630+0115|Y|||20050110015014+0315||125097000^Goat^SCT|4880003^Beagle^SCT|||CA^Canada^ISO3166_1|89898989^WPN^Internet +PV1|1|P|HUH AE OMU&9.8&ISO^OMU B^Bed 03^HOMERTON UNIVER^^C^Homerton UH^Floor5|E|1234567^4^M11^t&2.16.840.1.113883.19&HCD^ANON^University Hospital^19241011^19241012|4 East, room 136, bed B 4E^136^B^CommunityHospital^^N^^^|1122334^Alaz^Mohammed^Mahi^JR^Dr.^MD^^PERSONNELt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al|C006^Woolfson^Kathleen^^^Dr^^^TEST&23.2&HCD^MSK^^^BA|C008^Condoc^leen^^^Dr^^^&2.8&ISO^NAV^^^BR|SUR|||R|NHS Provider-General (inc.A\T\E-this Hosp)||VIP^Very Important Person^L^IMP^^DCM^v1.1^v1.2^Inportant Person|37^DISNEY^WALT^^^^^^AccMgr^^^^ANC|Inpatient|40007716^^^AccMng&1.2&HCD^AM|||||||||||||||||Admitted as Inpatient^Sample^ACR|22&Homes&FDK|Vegan^Vegetarian|HOMERTON UNIVER||Active|POC^Room-2^Bed-103^^^C^Greenland|Nursing home^^^^^^Rosewood|20150208113419+0110||||||50^^^T123&r2.3&ISO^MR||Othhel^^^^^^^^testing&&HCD||EOC124^5^M11^Etest&2.16.1&HCD^MR^CommunityHospital \ No newline at end of file diff --git a/data/SampleData/Hl7v2/ADT_A08.hl7 b/data/SampleData/Hl7v2/ADT_A08.hl7 new file mode 100644 index 000000000..1cdf2a84f --- /dev/null +++ b/data/SampleData/Hl7v2/ADT_A08.hl7 @@ -0,0 +1,17 @@ +MSH|^~\&|ADTApp|GHHSFacility^2.16.840.1.122848.1.30^ISO|EHRApp^1.Edu^ISO|GHHRFacility^2.16.840.1.1122848.1.32^ISO|198908181126+0215|SECURITY|ADT^A08^ADT_A08|MSG00001|P|2.8|||||USA||en-US|||22 GHH Inc.|23 GHH Inc.|24GHH^2.16.840.1.114884.10.20^ISO|25GHH^2.16.840.1.114884.10.23^ISO +SFT|Orion|2.4.3.52854|Rhapsody|2.4.3|Testactivity|20070725111624 +EVN|A01|20290801070624+0115|20290801070724|01^Patient request^HL70062|C08^Woolfson^Kathleen^2ndname^Jr^Dr^MD^^DRNBR&W1.2&ISO^L^^^ANON|20210817151943.4+0200|Cona_Health^1.3.6.1.4.1.44750.1.4^ISO +PID|1|1234567^4^M11^test^MR^University Hospital^19241011^19241012|PATID1234^5^M11^test1&2.16.1&HCD^MR^GOOD HEALTH HOSPITAL~123456789^^^USSSA^SS|PATID567^^^test2|EVERYMAN&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm~Josh&&&&Bing^^stanley^^^^L^^^^^19241010^19241015|SMITH^Angela^L|198808181126+0215|M|elbert^Son|2106-3^White^HL70005~2028-9^Asian^HL70005|1000&Hospital Lane^Ste. 123^Ann Arbor ^MI^99999^USA^M^^&W^^^20000110&20000120^^^^^^^Near Highway|GL|78788788^^CP^5555^^^1111^^^^^2222^20010110^20020110^^^^18~12121212^^CP|7777^^CP~1111^^TDD|ara^^HL70296^eng^English-us^HL70296^v2^v2.1^TextInEnglish|M^Married|AME|4000776^^^AccMgr&2.4&ISO^VN^1^19241011^19241012|PSSN123121234|DLN-123^US^20010123|1212121^^^NTH&rt23&HCD^AND^^19241011^19241012|N^NOT HISPANIC OR LATINO^HL70189|St. Francis Community Hospital of Lower South Side|N|2|US^United States of America^ISO3166_1|Vet123^retired^ART|BT^Bhutan^ISO3166_1|20080825111630+0115|Y|||20050110015014+0315||125097000^Goat^SCT|4880003^Beagle^SCT|||CA^Canada^ISO3166_1|89898989^WPN^Internet +PD1|S^^ACR||LINDAS TEST ORGANIZATION^^SIISCLIENT818|88^Hippo^rold^H^V^Dr^MD^^TE^^^M10^DN^^||||||||||Methodist Church|||20150202^20150202 +NK1|1|Evan&&&&Aniston^ADAM^A^III^Dr.^MD^D|EMC^test^ACR^CHD^^^9.0^10.0|2222&HOME&STREET^Highway^GREENSBORO^NC^27401-1020^US^BI^^jkdha&test^^^^20000110^20050111~111&Duck ST^^Fowl|78788788^WPN^Internet^5555^^^^^^^^^20010110^20020110^^^^18~121111^PRN^CP|88888888^PRN^CP^5555^^^^^^^^878777^20010110^20020110^^^^18~6666666^^BP|O|20210818|20211218|||12345567^4^M11^T1&2.16.840.1.113883.19&HCD^MR^University Hospital^19241011^19241012|TestOrg^^O12^^^^EI^^^Org12||F^^^M|19620110045504||||ara||||||||||Green^John^A^II^DR^MD^D^^^19241012^G~Josh&&&&Bing^^stanley^^^^L|898989898^^FX~88888888^^CP|Street1&Palkstreet~ST-2|I-123^^^^BA~I-222^^^^DI||2106-3^test^FDDC||Security no-23|||1515151515^WPN^CP^555544^^^^^^^^777^20010110^20020110^^^^1|444444^^CP +PV1|1|P|HUH AE OMU&9.8&ISO^OMU B^Bed 03^HOMERTON UNIVER^^C^Homerton UH^Floor5|E|1234567^4^M11^t&2.16.840.1.113883.19&HCD^ANON^University Hospital^19241011^19241012|4 East, room 136, bed B 4E^136^B^CommunityHospital^^N^^^|1122334^Alaz^Mohammed^Mahi^JR^Dr.^MD^^PERSONNELt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al|C006^Woolfson^Kathleen^^^Dr^^^TEST&23.2&HCD^MSK^^^BA|C008^Condoc^leen^^^Dr^^^&2.8&ISO^NAV^^^BR|SUR|||R|NHS Provider-General (inc.A\T\E-this Hosp)||VIP^Very Important Person^L^IMP^^DCM^v1.1^v1.2^Inportant Person|37^DISNEY^WALT^^^^^^AccMgr^^^^ANC|Inpatient|40007716^^^AccMng&1.2&HCD^AM|||||||||||||||||Admitted as Inpatient^Sample^ACR|22&Homes&FDK|Vegan^Vegetarian|HOMERTON UNIVER||Active|POC^Room-2^Bed-103^^^C^Greenland|Nursing home^^^^^^Rosewood|20150208113419+0110||||||50^^^T123&r2.3&ISO^MR||Othhel^^^^^^^^testing&&HCD||EOC124^5^M11^Etest&2.16.1&HCD^MR^CommunityHospital +PV2|^ROOM1&2.16.840.1.113883.4.642.1.1108&ISO^BED1^FACILITY1^^^BUILDING1^FLOOR1^^^||140004^Chronic pharyngitis^SCT||||||||2|Health Checkup|12188^Hippocrates^Harold^H^IV^Dr^MD^^TE&Provider Master.Community Health and Hospitals&DNS^^^M10^DN^^|||||||||N|||2^^^3^^^V1.2^V1.3|||||||||||||C +DB1|1|PT|DB123^4^M11^t&1.12&ISO^MR^UH^19241011^19241012|Y|20210830|20210930| +OBX|27|NM|8867-4^heartrate^LN||60~120|beats/min^^ISO|70-80|A^A^HL7nnnn~B^B|||S|||19990702|Org15^ID of producer^CAS|1134^Aly^Zafar^Mahendra^JR^Dr.^MD^^PERSt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al~2234^Pauly^Berrie^Raud|OBS^This is test method^AS4|EI12.3^NI2^UI2^GUID~^^UI1^ISO|19990702|BU^Observation site^E5|EI21^OII||FairOaks Hspital|Research Park^Fairfax^VA^22031^USA|MD-25^Atchinson^Christopher^^MD|||||||PAI-1^FAI-1 +AL1|1|EA|P^PENICILLIN^ICDO|MI|CODE16|20210824 +DG1|1|I9|422504002^Ischemic stroke(disorder)^SCT|Stroke|20040125114025+0420|A|||||||||1|005454^DIAG^ROBIN^B|||20200501133015+0215|DI20^Diagnosis^DTUI^CLIP|A|^^UI^CLIP +PR1|1||76164006^Biopsy of colon (procedure)^SCT|Biopsy of colon, which was part of colonoscopy|200501251140+0100|D^Diagnostic Procedure^HL70230|2|1210^ANES^MARK^B|||121188^Patrick^Harold^H^IV^Dr^MD^^&Provider Master.Community Health and Hospitals&L^L^9^M10^DN^&Good Health Hospital.Community Health and Hospitals&L^A|12345689^Everyman2^Adam2^A^III^DR^PHD^ADT01^^L^4^M11^MR|||799008^Sigmoid colon ulcer^SCT||||PR1006||||OT^201||PR1001 +GT1|1|1516^4^M11^test^MR^Unity Hospital^19241011^19241012|RADIANT^LUCY^^|Rebecca^Jonas|1619 SOUTH UNIVERSITY^^MADISON^WI^53703^US|6082517777^^Internet^8484~717171^^PH|021212^^MD|20010412|F|P/F|SEL|G-SSN-12|20010410|20010415|2|EHS GENERIC EMPLOYER|1979 MILKY WAY^^VERONA^WI^53593^US|082719000^^PH|55121^^^^FI|3|Jupiter Hospital|N|SLF|20000725111420|N||||1231^^^^BC|M|20091010|20101010||||ger||||||MothersMaiden|||Ben^Charles~Ben2|000352^^CP~00121^^FX|Urgent requirement||||GEOrg|||||Germany +IN1|1|BAV^Blue Advantage HMO|IC-1.31^24^BCV^&2.16.840.1.113883.1.1&ISO^NIIP^^19291011^19291012|Blue Cross Blue Shield of Texas|1979 MILKY WAY^^VERONA^WI^53593^US|Henry&&&&Roth^Rony^A^III^Dr.^MD^D^^^19251012|(555)555-5555^BPN^PH|PUBSUMB|SelfPay||Sam P. Hil|19891001|20501001||HMO^health maintenance organization policy|Doe^Rosallie^John^III^Mrs.^Bachelors^R|SPO^Spouse|19750228|3857 Velvet Treasure Terrace^^Midnight^NC^27878^US|||||||||||||||||PN-145|150&USD^DC||||||F^Female|2000 MILKY WAY^^VERONA^WI^53593^US|||B||HMO-12345^^^&2.16.840.1.113883.1.3&ISO^NI +IN2|1117^4^M11^&2.16.840.1.113883.1.4&ISO^EI^University Hospital~1118^^^^BC|425-57-9745|||I^Insurance company|Medicare-12345|Jack&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm|MCN-008||MI-12345||||||||||||||||||||||||eng^English|||||||||||||||Richard^Paul|254622222^^PH|||||||||||PNM1234^4^M11^PM&2.6.1&HCD^MR^University Hospital^19241011^19241012||0005245^WPN^Internet~^^CP|555777888^^FX~^^PH||||||Max Life Insurance||02^Spouse +RF1|P^Pending^HL7283|A^ASAP^HL7280|EXTERNAL|||123-1^name|||19900501120100+0515|R-1^Reason^C4|123-2^Testname|||Patient has a spinal fracture|||||AuthProvider^L^4.4^3^M10^CMS^LR^^^A|114^Beverly^Crusher^An^Mr^Dr.^AHP^^2.3^B^^^BR^^^^^^19241010^19241015^Al||||Check for metastatic disease|U \ No newline at end of file diff --git a/data/SampleData/Hl7v2/ADT_A14-2.hl7 b/data/SampleData/Hl7v2/ADT_A14-2.hl7 new file mode 100644 index 000000000..4fcc32726 --- /dev/null +++ b/data/SampleData/Hl7v2/ADT_A14-2.hl7 @@ -0,0 +1,4 @@ +MSH|^~\&|ADTApp|GHHSFacility^2.16.840.1.122848.1.30^ISO|EHRApp^1.Edu^ISO|GHHRFacility^2.16.840.1.1122848.1.32^ISO|198908181126+0215|SECURITY|ADT^A14^ADT_A14|MSG00001|P|2.8|||||USA||en-US|||22 GHH Inc.|23 GHH Inc.|24GHH^2.16.840.1.114884.10.20^ISO|25GHH^2.16.840.1.114884.10.23^ISO +EVN|A01|20290801070624+0115|20290801070724|01^Patient request^HL70062|C08^Woolfson^Kathleen^2ndname^Jr^Dr^MD^^DRNBR&W1.2&ISO^L^^^ANON|20210817151943.4+0200|Cona_Health^1.3.6.1.4.1.44750.1.4^ISO +PID|1|1234567^4^M11^test^MR^University Hospital^19241011^19241012|PATID1234^5^M11^test1&2.16.1&HCD^MR^GOOD HEALTH HOSPITAL~123456789^^^USSSA^SS|PATID567^^^test2|EVERYMAN&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm~Josh&&&&Bing^^stanley^^^^L^^^^^19241010^19241015|SMITH^Angela^L|198808181126+0215|M|elbert^Son|2106-3^White^HL70005~2028-9^Asian^HL70005|1000&Hospital Lane^Ste. 123^Ann Arbor ^MI^99999^USA^M^^&W^^^20000110&20000120^^^^^^^Near Highway|GL|78788788^^CP^5555^^^1111^^^^^2222^20010110^20020110^^^^18~12121212^^CP|7777^^CP~1111^^TDD|ara^^HL70296^eng^English-us^HL70296^v2^v2.1^TextInEnglish|M^Married|AME|4000776^^^AccMgr&2.4&ISO^VN^1^19241011^19241012|PSSN123121234|DLN-123^US^20010123|1212121^^^NTH&rt23&HCD^AND^^19241011^19241012|N^NOT HISPANIC OR LATINO^HL70189|St. Francis Community Hospital of Lower South Side|N|2|US^United States of America^ISO3166_1|Vet123^retired^ART|BT^Bhutan^ISO3166_1|20080825111630+0115|Y|||20050110015014+0315||125097000^Goat^SCT|4880003^Beagle^SCT|||CA^Canada^ISO3166_1|89898989^WPN^Internet +PV1|1|P|HUH AE OMU&9.8&ISO^OMU B^Bed 03^HOMERTON UNIVER^^C^Homerton UH^Floor5|E|1234567^4^M11^t&2.16.840.1.113883.19&HCD^ANON^University Hospital^19241011^19241012|4 East, room 136, bed B 4E^136^B^CommunityHospital^^N^^^|1122334^Alaz^Mohammed^Mahi^JR^Dr.^MD^^PERSONNELt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al|C006^Woolfson^Kathleen^^^Dr^^^TEST&23.2&HCD^MSK^^^BA|C008^Condoc^leen^^^Dr^^^&2.8&ISO^NAV^^^BR|SUR|||R|NHS Provider-General (inc.A\T\E-this Hosp)||VIP^Very Important Person^L^IMP^^DCM^v1.1^v1.2^Inportant Person|37^DISNEY^WALT^^^^^^AccMgr^^^^ANC|Inpatient|40007716^^^AccMng&1.2&HCD^AM|||||||||||||||||Admitted as Inpatient^Sample^ACR|22&Homes&FDK|Vegan^Vegetarian|HOMERTON UNIVER||Active|POC^Room-2^Bed-103^^^C^Greenland|Nursing home^^^^^^Rosewood|20150208113419+0110||||||50^^^T123&r2.3&ISO^MR||Othhel^^^^^^^^testing&&HCD||EOC124^5^M11^Etest&2.16.1&HCD^MR^CommunityHospital \ No newline at end of file diff --git a/data/SampleData/Hl7v2/ADT_A14.hl7 b/data/SampleData/Hl7v2/ADT_A14.hl7 new file mode 100644 index 000000000..07dcce042 --- /dev/null +++ b/data/SampleData/Hl7v2/ADT_A14.hl7 @@ -0,0 +1,17 @@ +MSH|^~\&|ADTApp|GHHSFacility^2.16.840.1.122848.1.30^ISO|EHRApp^1.Edu^ISO|GHHRFacility^2.16.840.1.1122848.1.32^ISO|198908181126+0215|SECURITY|ADT^A14^ADT_A14|MSG00001|P|2.8|||||USA||en-US|||22 GHH Inc.|23 GHH Inc.|24GHH^2.16.840.1.114884.10.20^ISO|25GHH^2.16.840.1.114884.10.23^ISO +SFT|Orion|2.4.3.52854|Rhapsody|2.4.3|Testactivity|20070725111624 +EVN|A01|20290801070624+0115|20290801070724|01^Patient request^HL70062|C08^Woolfson^Kathleen^2ndname^Jr^Dr^MD^^DRNBR&W1.2&ISO^L^^^ANON|20210817151943.4+0200|Cona_Health^1.3.6.1.4.1.44750.1.4^ISO +PID|1|1234567^4^M11^test^MR^University Hospital^19241011^19241012|PATID1234^5^M11^test1&2.16.1&HCD^MR^GOOD HEALTH HOSPITAL~123456789^^^USSSA^SS|PATID567^^^test2|EVERYMAN&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm~Josh&&&&Bing^^stanley^^^^L^^^^^19241010^19241015|SMITH^Angela^L|198808181126+0215|M|elbert^Son|2106-3^White^HL70005~2028-9^Asian^HL70005|1000&Hospital Lane^Ste. 123^Ann Arbor ^MI^99999^USA^M^^&W^^^20000110&20000120^^^^^^^Near Highway|GL|78788788^^CP^5555^^^1111^^^^^2222^20010110^20020110^^^^18~12121212^^CP|7777^^CP~1111^^TDD|ara^^HL70296^eng^English-us^HL70296^v2^v2.1^TextInEnglish|M^Married|AME|4000776^^^AccMgr&2.4&ISO^VN^1^19241011^19241012|PSSN123121234|DLN-123^US^20010123|1212121^^^NTH&rt23&HCD^AND^^19241011^19241012|N^NOT HISPANIC OR LATINO^HL70189|St. Francis Community Hospital of Lower South Side|N|2|US^United States of America^ISO3166_1|Vet123^retired^ART|BT^Bhutan^ISO3166_1|20080825111630+0115|Y|||20050110015014+0315||125097000^Goat^SCT|4880003^Beagle^SCT|||CA^Canada^ISO3166_1|89898989^WPN^Internet +PD1|S^^ACR||LINDAS TEST ORGANIZATION^^SIISCLIENT818|88^Hippo^rold^H^V^Dr^MD^^TE^^^M10^DN^^||||||||||Methodist Church|||20150202^20150202 +NK1|1|Evan&&&&Aniston^ADAM^A^III^Dr.^MD^D|EMC^test^ACR^CHD^^^9.0^10.0|2222&HOME&STREET^Highway^GREENSBORO^NC^27401-1020^US^BI^^jkdha&test^^^^20000110^20050111~111&Duck ST^^Fowl|78788788^WPN^Internet^5555^^^^^^^^^20010110^20020110^^^^18~121111^PRN^CP|88888888^PRN^CP^5555^^^^^^^^878777^20010110^20020110^^^^18~6666666^^BP|O|20210818|20211218|||12345567^4^M11^T1&2.16.840.1.113883.19&HCD^MR^University Hospital^19241011^19241012|TestOrg^^O12^^^^EI^^^Org12||F^^^M|19620110045504||||ara||||||||||Green^John^A^II^DR^MD^D^^^19241012^G~Josh&&&&Bing^^stanley^^^^L|898989898^^FX~88888888^^CP|Street1&Palkstreet~ST-2|I-123^^^^BA~I-222^^^^DI||2106-3^test^FDDC||Security no-23|||1515151515^WPN^CP^555544^^^^^^^^777^20010110^20020110^^^^1|444444^^CP +PV1|1|P|HUH AE OMU&9.8&ISO^OMU B^Bed 03^HOMERTON UNIVER^^C^Homerton UH^Floor5|E|1234567^4^M11^t&2.16.840.1.113883.19&HCD^ANON^University Hospital^19241011^19241012|4 East, room 136, bed B 4E^136^B^CommunityHospital^^N^^^|1122334^Alaz^Mohammed^Mahi^JR^Dr.^MD^^PERSONNELt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al|C006^Woolfson^Kathleen^^^Dr^^^TEST&23.2&HCD^MSK^^^BA|C008^Condoc^leen^^^Dr^^^&2.8&ISO^NAV^^^BR|SUR|||R|NHS Provider-General (inc.A\T\E-this Hosp)||VIP^Very Important Person^L^IMP^^DCM^v1.1^v1.2^Inportant Person|37^DISNEY^WALT^^^^^^AccMgr^^^^ANC|Inpatient|40007716^^^AccMng&1.2&HCD^AM|||||||||||||||||Admitted as Inpatient^Sample^ACR|22&Homes&FDK|Vegan^Vegetarian|HOMERTON UNIVER||Active|POC^Room-2^Bed-103^^^C^Greenland|Nursing home^^^^^^Rosewood|20150208113419+0110||||||50^^^T123&r2.3&ISO^MR||Othhel^^^^^^^^testing&&HCD||EOC124^5^M11^Etest&2.16.1&HCD^MR^CommunityHospital +PV2|^ROOM1&2.16.840.1.113883.4.642.1.1108&ISO^BED1^FACILITY1^^^BUILDING1^FLOOR1^^^||140004^Chronic pharyngitis^SCT||||||||2|Health Checkup|12188^Hippocrates^Harold^H^IV^Dr^MD^^TE&Provider Master.Community Health and Hospitals&DNS^^^M10^DN^^|||||||||N|||2^^^3^^^V1.2^V1.3|||||||||||||C +DB1|1|PT|DB123^4^M11^t&1.12&ISO^MR^UH^19241011^19241012|Y|20210830|20210930| +OBX|27|NM|8867-4^heartrate^LN||60~120|beats/min^^ISO|70-80|A^A^HL7nnnn~B^B|||S|||19990702|Org15^ID of producer^CAS|1134^Aly^Zafar^Mahendra^JR^Dr.^MD^^PERSt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al~2234^Pauly^Berrie^Raud|OBS^This is test method^AS4|EI12.3^NI2^UI2^GUID~^^UI1^ISO|19990702|BU^Observation site^E5|EI21^OII||FairOaks Hspital|Research Park^Fairfax^VA^22031^USA|MD-25^Atchinson^Christopher^^MD|||||||PAI-1^FAI-1 +AL1|1|EA|P^PENICILLIN^ICDO|MI|CODE16|20210824 +DG1|1|I9|422504002^Ischemic stroke(disorder)^SCT|Stroke|20040125114025+0420|A|||||||||1|005454^DIAG^ROBIN^B|||20200501133015+0215|DI20^Diagnosis^DTUI^CLIP|A|^^UI^CLIP +PR1|1||76164006^Biopsy of colon (procedure)^SCT|Biopsy of colon, which was part of colonoscopy|200501251140+0100|D^Diagnostic Procedure^HL70230|2|1210^ANES^MARK^B|||121188^Patrick^Harold^H^IV^Dr^MD^^&Provider Master.Community Health and Hospitals&L^L^9^M10^DN^&Good Health Hospital.Community Health and Hospitals&L^A|12345689^Everyman2^Adam2^A^III^DR^PHD^ADT01^^L^4^M11^MR|||799008^Sigmoid colon ulcer^SCT||||PR1006||||OT^201||PR1001 +GT1|1|1516^4^M11^test^MR^Unity Hospital^19241011^19241012|RADIANT^LUCY^^|Rebecca^Jonas|1619 SOUTH UNIVERSITY^^MADISON^WI^53703^US|6082517777^^Internet^8484~717171^^PH|021212^^MD|20010412|F|P/F|SEL|G-SSN-12|20010410|20010415|2|EHS GENERIC EMPLOYER|1979 MILKY WAY^^VERONA^WI^53593^US|082719000^^PH|55121^^^^FI|3|Jupiter Hospital|N|SLF|20000725111420|N||||1231^^^^BC|M|20091010|20101010||||ger||||||MothersMaiden|||Ben^Charles~Ben2|000352^^CP~00121^^FX|Urgent requirement||||GEOrg|||||Germany +IN1|1|BAV^Blue Advantage HMO|IC-1.31^24^BCV^&2.16.840.1.113883.1.1&ISO^NIIP^^19291011^19291012|Blue Cross Blue Shield of Texas|1979 MILKY WAY^^VERONA^WI^53593^US|Henry&&&&Roth^Rony^A^III^Dr.^MD^D^^^19251012|(555)555-5555^BPN^PH|PUBSUMB|SelfPay||Sam P. Hil|19891001|20501001||HMO^health maintenance organization policy|Doe^Rosallie^John^III^Mrs.^Bachelors^R|SPO^Spouse|19750228|3857 Velvet Treasure Terrace^^Midnight^NC^27878^US|||||||||||||||||PN-145|150&USD^DC||||||F^Female|2000 MILKY WAY^^VERONA^WI^53593^US|||B||HMO-12345^^^&2.16.840.1.113883.1.3&ISO^NI +IN2|1117^4^M11^&2.16.840.1.113883.1.4&ISO^EI^University Hospital~1118^^^^BC|425-57-9745|||I^Insurance company|Medicare-12345|Jack&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm|MCN-008||MI-12345||||||||||||||||||||||||eng^English|||||||||||||||Richard^Paul|254622222^^PH|||||||||||PNM1234^4^M11^PM&2.6.1&HCD^MR^University Hospital^19241011^19241012||0005245^WPN^Internet~^^CP|555777888^^FX~^^PH||||||Max Life Insurance||02^Spouse +RF1|P^Pending^HL7283|A^ASAP^HL7280|EXTERNAL|||123-1^name|||19900501120100+0515|R-1^Reason^C4|123-2^Testname|||Patient has a spinal fracture|||||AuthProvider^L^4.4^3^M10^CMS^LR^^^A|114^Beverly^Crusher^An^Mr^Dr.^AHP^^2.3^B^^^BR^^^^^^19241010^19241015^Al||||Check for metastatic disease|U \ No newline at end of file diff --git a/data/SampleData/Hl7v2/ADT_A15-2.hl7 b/data/SampleData/Hl7v2/ADT_A15-2.hl7 new file mode 100644 index 000000000..c4ea68d86 --- /dev/null +++ b/data/SampleData/Hl7v2/ADT_A15-2.hl7 @@ -0,0 +1,4 @@ +MSH|^~\&|ADTApp|GHHSFacility^2.16.840.1.122848.1.30^ISO|EHRApp^1.Edu^ISO|GHHRFacility^2.16.840.1.1122848.1.32^ISO|198908181126+0215|SECURITY|ADT^A15^ADT_A15|MSG00001|P|2.8|||||USA||en-US|||22 GHH Inc.|23 GHH Inc.|24GHH^2.16.840.1.114884.10.20^ISO|25GHH^2.16.840.1.114884.10.23^ISO +EVN|A01|20290801070624+0115|20290801070724|01^Patient request^HL70062|C08^Woolfson^Kathleen^2ndname^Jr^Dr^MD^^DRNBR&W1.2&ISO^L^^^ANON|20210817151943.4+0200|Cona_Health^1.3.6.1.4.1.44750.1.4^ISO +PID|1|1234567^4^M11^test^MR^University Hospital^19241011^19241012|PATID1234^5^M11^test1&2.16.1&HCD^MR^GOOD HEALTH HOSPITAL~123456789^^^USSSA^SS|PATID567^^^test2|EVERYMAN&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm~Josh&&&&Bing^^stanley^^^^L^^^^^19241010^19241015|SMITH^Angela^L|198808181126+0215|M|elbert^Son|2106-3^White^HL70005~2028-9^Asian^HL70005|1000&Hospital Lane^Ste. 123^Ann Arbor ^MI^99999^USA^M^^&W^^^20000110&20000120^^^^^^^Near Highway|GL|78788788^^CP^5555^^^1111^^^^^2222^20010110^20020110^^^^18~12121212^^CP|7777^^CP~1111^^TDD|ara^^HL70296^eng^English-us^HL70296^v2^v2.1^TextInEnglish|M^Married|AME|4000776^^^AccMgr&2.4&ISO^VN^1^19241011^19241012|PSSN123121234|DLN-123^US^20010123|1212121^^^NTH&rt23&HCD^AND^^19241011^19241012|N^NOT HISPANIC OR LATINO^HL70189|St. Francis Community Hospital of Lower South Side|N|2|US^United States of America^ISO3166_1|Vet123^retired^ART|BT^Bhutan^ISO3166_1|20080825111630+0115|Y|||20050110015014+0315||125097000^Goat^SCT|4880003^Beagle^SCT|||CA^Canada^ISO3166_1|89898989^WPN^Internet +PV1|1|P|HUH AE OMU&9.8&ISO^OMU B^Bed 03^HOMERTON UNIVER^^C^Homerton UH^Floor5|E|1234567^4^M11^t&2.16.840.1.113883.19&HCD^ANON^University Hospital^19241011^19241012|4 East, room 136, bed B 4E^136^B^CommunityHospital^^N^^^|1122334^Alaz^Mohammed^Mahi^JR^Dr.^MD^^PERSONNELt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al|C006^Woolfson^Kathleen^^^Dr^^^TEST&23.2&HCD^MSK^^^BA|C008^Condoc^leen^^^Dr^^^&2.8&ISO^NAV^^^BR|SUR|||R|NHS Provider-General (inc.A\T\E-this Hosp)||VIP^Very Important Person^L^IMP^^DCM^v1.1^v1.2^Inportant Person|37^DISNEY^WALT^^^^^^AccMgr^^^^ANC|Inpatient|40007716^^^AccMng&1.2&HCD^AM|||||||||||||||||Admitted as Inpatient^Sample^ACR|22&Homes&FDK|Vegan^Vegetarian|HOMERTON UNIVER||Active|POC^Room-2^Bed-103^^^C^Greenland|Nursing home^^^^^^Rosewood|20150208113419+0110||||||50^^^T123&r2.3&ISO^MR||Othhel^^^^^^^^testing&&HCD||EOC124^5^M11^Etest&2.16.1&HCD^MR^CommunityHospital \ No newline at end of file diff --git a/data/SampleData/Hl7v2/ADT_A15.hl7 b/data/SampleData/Hl7v2/ADT_A15.hl7 new file mode 100644 index 000000000..30fd9f5ce --- /dev/null +++ b/data/SampleData/Hl7v2/ADT_A15.hl7 @@ -0,0 +1,9 @@ +MSH|^~\&|ADTApp|GHHSFacility^2.16.840.1.122848.1.30^ISO|EHRApp^1.Edu^ISO|GHHRFacility^2.16.840.1.1122848.1.32^ISO|198908181126+0215|SECURITY|ADT^A15^ADT_A15|MSG00001|P|2.8|||||USA||en-US|||22 GHH Inc.|23 GHH Inc.|24GHH^2.16.840.1.114884.10.20^ISO|25GHH^2.16.840.1.114884.10.23^ISO +SFT|Orion|2.4.3.52854|Rhapsody|2.4.3|Testactivity|20070725111624 +EVN|A01|20290801070624+0115|20290801070724|01^Patient request^HL70062|C08^Woolfson^Kathleen^2ndname^Jr^Dr^MD^^DRNBR&W1.2&ISO^L^^^ANON|20210817151943.4+0200|Cona_Health^1.3.6.1.4.1.44750.1.4^ISO +PID|1|1234567^4^M11^test^MR^University Hospital^19241011^19241012|PATID1234^5^M11^test1&2.16.1&HCD^MR^GOOD HEALTH HOSPITAL~123456789^^^USSSA^SS|PATID567^^^test2|EVERYMAN&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm~Josh&&&&Bing^^stanley^^^^L^^^^^19241010^19241015|SMITH^Angela^L|198808181126+0215|M|elbert^Son|2106-3^White^HL70005~2028-9^Asian^HL70005|1000&Hospital Lane^Ste. 123^Ann Arbor ^MI^99999^USA^M^^&W^^^20000110&20000120^^^^^^^Near Highway|GL|78788788^^CP^5555^^^1111^^^^^2222^20010110^20020110^^^^18~12121212^^CP|7777^^CP~1111^^TDD|ara^^HL70296^eng^English-us^HL70296^v2^v2.1^TextInEnglish|M^Married|AME|4000776^^^AccMgr&2.4&ISO^VN^1^19241011^19241012|PSSN123121234|DLN-123^US^20010123|1212121^^^NTH&rt23&HCD^AND^^19241011^19241012|N^NOT HISPANIC OR LATINO^HL70189|St. Francis Community Hospital of Lower South Side|N|2|US^United States of America^ISO3166_1|Vet123^retired^ART|BT^Bhutan^ISO3166_1|20080825111630+0115|Y|||20050110015014+0315||125097000^Goat^SCT|4880003^Beagle^SCT|||CA^Canada^ISO3166_1|89898989^WPN^Internet +PD1|S^^ACR||LINDAS TEST ORGANIZATION^^SIISCLIENT818|88^Hippo^rold^H^V^Dr^MD^^TE^^^M10^DN^^||||||||||Methodist Church|||20150202^20150202 +PV1|1|P|HUH AE OMU&9.8&ISO^OMU B^Bed 03^HOMERTON UNIVER^^C^Homerton UH^Floor5|E|1234567^4^M11^t&2.16.840.1.113883.19&HCD^ANON^University Hospital^19241011^19241012|4 East, room 136, bed B 4E^136^B^CommunityHospital^^N^^^|1122334^Alaz^Mohammed^Mahi^JR^Dr.^MD^^PERSONNELt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al|C006^Woolfson^Kathleen^^^Dr^^^TEST&23.2&HCD^MSK^^^BA|C008^Condoc^leen^^^Dr^^^&2.8&ISO^NAV^^^BR|SUR|||R|NHS Provider-General (inc.A\T\E-this Hosp)||VIP^Very Important Person^L^IMP^^DCM^v1.1^v1.2^Inportant Person|37^DISNEY^WALT^^^^^^AccMgr^^^^ANC|Inpatient|40007716^^^AccMng&1.2&HCD^AM|||||||||||||||||Admitted as Inpatient^Sample^ACR|22&Homes&FDK|Vegan^Vegetarian|HOMERTON UNIVER||Active|POC^Room-2^Bed-103^^^C^Greenland|Nursing home^^^^^^Rosewood|20150208113419+0110||||||50^^^T123&r2.3&ISO^MR||Othhel^^^^^^^^testing&&HCD||EOC124^5^M11^Etest&2.16.1&HCD^MR^CommunityHospital +PV2|^ROOM1&2.16.840.1.113883.4.642.1.1108&ISO^BED1^FACILITY1^^^BUILDING1^FLOOR1^^^||140004^Chronic pharyngitis^SCT||||||||2|Health Checkup|12188^Hippocrates^Harold^H^IV^Dr^MD^^TE&Provider Master.Community Health and Hospitals&DNS^^^M10^DN^^|||||||||N|||2^^^3^^^V1.2^V1.3|||||||||||||C +DB1|1|PT|DB123^4^M11^t&1.12&ISO^MR^UH^19241011^19241012|Y|20210830|20210930| +OBX|27|NM|8867-4^heartrate^LN||60~120|beats/min^^ISO|70-80|A^A^HL7nnnn~B^B|||S|||19990702|Org15^ID of producer^CAS|1134^Aly^Zafar^Mahendra^JR^Dr.^MD^^PERSt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al~2234^Pauly^Berrie^Raud|OBS^This is test method^AS4|EI12.3^NI2^UI2^GUID~^^UI1^ISO|19990702|BU^Observation site^E5|EI21^OII||FairOaks Hspital|Research Park^Fairfax^VA^22031^USA|MD-25^Atchinson^Christopher^^MD|||||||PAI-1^FAI-1 \ No newline at end of file diff --git a/data/SampleData/Hl7v2/ADT_A16-2.hl7 b/data/SampleData/Hl7v2/ADT_A16-2.hl7 new file mode 100644 index 000000000..ffb8f8006 --- /dev/null +++ b/data/SampleData/Hl7v2/ADT_A16-2.hl7 @@ -0,0 +1,4 @@ +MSH|^~\&|ADTApp|GHHSFacility^2.16.840.1.122848.1.30^ISO|EHRApp^1.Edu^ISO|GHHRFacility^2.16.840.1.1122848.1.32^ISO|198908181126+0215|SECURITY|ADT^A16^ADT_A16|MSG00001|P|2.8|||||USA||en-US|||22 GHH Inc.|23 GHH Inc.|24GHH^2.16.840.1.114884.10.20^ISO|25GHH^2.16.840.1.114884.10.23^ISO +EVN|A01|20290801070624+0115|20290801070724|01^Patient request^HL70062|C08^Woolfson^Kathleen^2ndname^Jr^Dr^MD^^DRNBR&W1.2&ISO^L^^^ANON|20210817151943.4+0200|Cona_Health^1.3.6.1.4.1.44750.1.4^ISO +PID|1|1234567^4^M11^test^MR^University Hospital^19241011^19241012|PATID1234^5^M11^test1&2.16.1&HCD^MR^GOOD HEALTH HOSPITAL~123456789^^^USSSA^SS|PATID567^^^test2|EVERYMAN&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm~Josh&&&&Bing^^stanley^^^^L^^^^^19241010^19241015|SMITH^Angela^L|198808181126+0215|M|elbert^Son|2106-3^White^HL70005~2028-9^Asian^HL70005|1000&Hospital Lane^Ste. 123^Ann Arbor ^MI^99999^USA^M^^&W^^^20000110&20000120^^^^^^^Near Highway|GL|78788788^^CP^5555^^^1111^^^^^2222^20010110^20020110^^^^18~12121212^^CP|7777^^CP~1111^^TDD|ara^^HL70296^eng^English-us^HL70296^v2^v2.1^TextInEnglish|M^Married|AME|4000776^^^AccMgr&2.4&ISO^VN^1^19241011^19241012|PSSN123121234|DLN-123^US^20010123|1212121^^^NTH&rt23&HCD^AND^^19241011^19241012|N^NOT HISPANIC OR LATINO^HL70189|St. Francis Community Hospital of Lower South Side|N|2|US^United States of America^ISO3166_1|Vet123^retired^ART|BT^Bhutan^ISO3166_1|20080825111630+0115|Y|||20050110015014+0315||125097000^Goat^SCT|4880003^Beagle^SCT|||CA^Canada^ISO3166_1|89898989^WPN^Internet +PV1|1|P|HUH AE OMU&9.8&ISO^OMU B^Bed 03^HOMERTON UNIVER^^C^Homerton UH^Floor5|E|1234567^4^M11^t&2.16.840.1.113883.19&HCD^ANON^University Hospital^19241011^19241012|4 East, room 136, bed B 4E^136^B^CommunityHospital^^N^^^|1122334^Alaz^Mohammed^Mahi^JR^Dr.^MD^^PERSONNELt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al|C006^Woolfson^Kathleen^^^Dr^^^TEST&23.2&HCD^MSK^^^BA|C008^Condoc^leen^^^Dr^^^&2.8&ISO^NAV^^^BR|SUR|||R|NHS Provider-General (inc.A\T\E-this Hosp)||VIP^Very Important Person^L^IMP^^DCM^v1.1^v1.2^Inportant Person|37^DISNEY^WALT^^^^^^AccMgr^^^^ANC|Inpatient|40007716^^^AccMng&1.2&HCD^AM|||||||||||||||||Admitted as Inpatient^Sample^ACR|22&Homes&FDK|Vegan^Vegetarian|HOMERTON UNIVER||Active|POC^Room-2^Bed-103^^^C^Greenland|Nursing home^^^^^^Rosewood|20150208113419+0110||||||50^^^T123&r2.3&ISO^MR||Othhel^^^^^^^^testing&&HCD||EOC124^5^M11^Etest&2.16.1&HCD^MR^CommunityHospital \ No newline at end of file diff --git a/data/SampleData/Hl7v2/ADT_A16.hl7 b/data/SampleData/Hl7v2/ADT_A16.hl7 new file mode 100644 index 000000000..95dd0c7cb --- /dev/null +++ b/data/SampleData/Hl7v2/ADT_A16.hl7 @@ -0,0 +1,17 @@ +MSH|^~\&|ADTApp|GHHSFacility^2.16.840.1.122848.1.30^ISO|EHRApp^1.Edu^ISO|GHHRFacility^2.16.840.1.1122848.1.32^ISO|198908181126+0215|SECURITY|ADT^A16^ADT_A16|MSG00001|P|2.8|||||USA||en-US|||22 GHH Inc.|23 GHH Inc.|24GHH^2.16.840.1.114884.10.20^ISO|25GHH^2.16.840.1.114884.10.23^ISO +SFT|Orion|2.4.3.52854|Rhapsody|2.4.3|Testactivity|20070725111624 +EVN|A01|20290801070624+0115|20290801070724|01^Patient request^HL70062|C08^Woolfson^Kathleen^2ndname^Jr^Dr^MD^^DRNBR&W1.2&ISO^L^^^ANON|20210817151943.4+0200|Cona_Health^1.3.6.1.4.1.44750.1.4^ISO +PID|1|1234567^4^M11^test^MR^University Hospital^19241011^19241012|PATID1234^5^M11^test1&2.16.1&HCD^MR^GOOD HEALTH HOSPITAL~123456789^^^USSSA^SS|PATID567^^^test2|EVERYMAN&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm~Josh&&&&Bing^^stanley^^^^L^^^^^19241010^19241015|SMITH^Angela^L|198808181126+0215|M|elbert^Son|2106-3^White^HL70005~2028-9^Asian^HL70005|1000&Hospital Lane^Ste. 123^Ann Arbor ^MI^99999^USA^M^^&W^^^20000110&20000120^^^^^^^Near Highway|GL|78788788^^CP^5555^^^1111^^^^^2222^20010110^20020110^^^^18~12121212^^CP|7777^^CP~1111^^TDD|ara^^HL70296^eng^English-us^HL70296^v2^v2.1^TextInEnglish|M^Married|AME|4000776^^^AccMgr&2.4&ISO^VN^1^19241011^19241012|PSSN123121234|DLN-123^US^20010123|1212121^^^NTH&rt23&HCD^AND^^19241011^19241012|N^NOT HISPANIC OR LATINO^HL70189|St. Francis Community Hospital of Lower South Side|N|2|US^United States of America^ISO3166_1|Vet123^retired^ART|BT^Bhutan^ISO3166_1|20080825111630+0115|Y|||20050110015014+0315||125097000^Goat^SCT|4880003^Beagle^SCT|||CA^Canada^ISO3166_1|89898989^WPN^Internet +PD1|S^^ACR||LINDAS TEST ORGANIZATION^^SIISCLIENT818|88^Hippo^rold^H^V^Dr^MD^^TE^^^M10^DN^^||||||||||Methodist Church|||20150202^20150202 +NK1|1|Evan&&&&Aniston^ADAM^A^III^Dr.^MD^D|EMC^test^ACR^CHD^^^9.0^10.0|2222&HOME&STREET^Highway^GREENSBORO^NC^27401-1020^US^BI^^jkdha&test^^^^20000110^20050111~111&Duck ST^^Fowl|78788788^WPN^Internet^5555^^^^^^^^^20010110^20020110^^^^18~121111^PRN^CP|88888888^PRN^CP^5555^^^^^^^^878777^20010110^20020110^^^^18~6666666^^BP|O|20210818|20211218|||12345567^4^M11^T1&2.16.840.1.113883.19&HCD^MR^University Hospital^19241011^19241012|TestOrg^^O12^^^^EI^^^Org12||F^^^M|19620110045504||||ara||||||||||Green^John^A^II^DR^MD^D^^^19241012^G~Josh&&&&Bing^^stanley^^^^L|898989898^^FX~88888888^^CP|Street1&Palkstreet~ST-2|I-123^^^^BA~I-222^^^^DI||2106-3^test^FDDC||Security no-23|||1515151515^WPN^CP^555544^^^^^^^^777^20010110^20020110^^^^1|444444^^CP +PV1|1|P|HUH AE OMU&9.8&ISO^OMU B^Bed 03^HOMERTON UNIVER^^C^Homerton UH^Floor5|E|1234567^4^M11^t&2.16.840.1.113883.19&HCD^ANON^University Hospital^19241011^19241012|4 East, room 136, bed B 4E^136^B^CommunityHospital^^N^^^|1122334^Alaz^Mohammed^Mahi^JR^Dr.^MD^^PERSONNELt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al|C006^Woolfson^Kathleen^^^Dr^^^TEST&23.2&HCD^MSK^^^BA|C008^Condoc^leen^^^Dr^^^&2.8&ISO^NAV^^^BR|SUR|||R|NHS Provider-General (inc.A\T\E-this Hosp)||VIP^Very Important Person^L^IMP^^DCM^v1.1^v1.2^Inportant Person|37^DISNEY^WALT^^^^^^AccMgr^^^^ANC|Inpatient|40007716^^^AccMng&1.2&HCD^AM|||||||||||||||||Admitted as Inpatient^Sample^ACR|22&Homes&FDK|Vegan^Vegetarian|HOMERTON UNIVER||Active|POC^Room-2^Bed-103^^^C^Greenland|Nursing home^^^^^^Rosewood|20150208113419+0110||||||50^^^T123&r2.3&ISO^MR||Othhel^^^^^^^^testing&&HCD||EOC124^5^M11^Etest&2.16.1&HCD^MR^CommunityHospital +PV2|^ROOM1&2.16.840.1.113883.4.642.1.1108&ISO^BED1^FACILITY1^^^BUILDING1^FLOOR1^^^||140004^Chronic pharyngitis^SCT||||||||2|Health Checkup|12188^Hippocrates^Harold^H^IV^Dr^MD^^TE&Provider Master.Community Health and Hospitals&DNS^^^M10^DN^^|||||||||N|||2^^^3^^^V1.2^V1.3|||||||||||||C +DB1|1|PT|DB123^4^M11^t&1.12&ISO^MR^UH^19241011^19241012|Y|20210830|20210930| +OBX|27|NM|8867-4^heartrate^LN||60~120|beats/min^^ISO|70-80|A^A^HL7nnnn~B^B|||S|||19990702|Org15^ID of producer^CAS|1134^Aly^Zafar^Mahendra^JR^Dr.^MD^^PERSt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al~2234^Pauly^Berrie^Raud|OBS^This is test method^AS4|EI12.3^NI2^UI2^GUID~^^UI1^ISO|19990702|BU^Observation site^E5|EI21^OII||FairOaks Hspital|Research Park^Fairfax^VA^22031^USA|MD-25^Atchinson^Christopher^^MD|||||||PAI-1^FAI-1 +AL1|1|EA|P^PENICILLIN^ICDO|MI|CODE16|20210824 +DG1|1|I9|422504002^Ischemic stroke(disorder)^SCT|Stroke|20040125114025+0420|A|||||||||1|005454^DIAG^ROBIN^B|||20200501133015+0215|DI20^Diagnosis^DTUI^CLIP|A|^^UI^CLIP +PR1|1||76164006^Biopsy of colon (procedure)^SCT|Biopsy of colon, which was part of colonoscopy|200501251140+0100|D^Diagnostic Procedure^HL70230|2|1210^ANES^MARK^B|||121188^Patrick^Harold^H^IV^Dr^MD^^&Provider Master.Community Health and Hospitals&L^L^9^M10^DN^&Good Health Hospital.Community Health and Hospitals&L^A|12345689^Everyman2^Adam2^A^III^DR^PHD^ADT01^^L^4^M11^MR|||799008^Sigmoid colon ulcer^SCT||||PR1006||||OT^201||PR1001 +GT1|1|1516^4^M11^test^MR^Unity Hospital^19241011^19241012|RADIANT^LUCY^^|Rebecca^Jonas|1619 SOUTH UNIVERSITY^^MADISON^WI^53703^US|6082517777^^Internet^8484~717171^^PH|021212^^MD|20010412|F|P/F|SEL|G-SSN-12|20010410|20010415|2|EHS GENERIC EMPLOYER|1979 MILKY WAY^^VERONA^WI^53593^US|082719000^^PH|55121^^^^FI|3|Jupiter Hospital|N|SLF|20000725111420|N||||1231^^^^BC|M|20091010|20101010||||ger||||||MothersMaiden|||Ben^Charles~Ben2|000352^^CP~00121^^FX|Urgent requirement||||GEOrg|||||Germany +IN1|1|BAV^Blue Advantage HMO|IC-1.31^24^BCV^&2.16.840.1.113883.1.1&ISO^NIIP^^19291011^19291012|Blue Cross Blue Shield of Texas|1979 MILKY WAY^^VERONA^WI^53593^US|Henry&&&&Roth^Rony^A^III^Dr.^MD^D^^^19251012|(555)555-5555^BPN^PH|PUBSUMB|SelfPay||Sam P. Hil|19891001|20501001||HMO^health maintenance organization policy|Doe^Rosallie^John^III^Mrs.^Bachelors^R|SPO^Spouse|19750228|3857 Velvet Treasure Terrace^^Midnight^NC^27878^US|||||||||||||||||PN-145|150&USD^DC||||||F^Female|2000 MILKY WAY^^VERONA^WI^53593^US|||B||HMO-12345^^^&2.16.840.1.113883.1.3&ISO^NI +IN2|1117^4^M11^&2.16.840.1.113883.1.4&ISO^EI^University Hospital~1118^^^^BC|425-57-9745|||I^Insurance company|Medicare-12345|Jack&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm|MCN-008||MI-12345||||||||||||||||||||||||eng^English|||||||||||||||Richard^Paul|254622222^^PH|||||||||||PNM1234^4^M11^PM&2.6.1&HCD^MR^University Hospital^19241011^19241012||0005245^WPN^Internet~^^CP|555777888^^FX~^^PH||||||Max Life Insurance||02^Spouse +RF1|P^Pending^HL7283|A^ASAP^HL7280|EXTERNAL|||123-1^name|||19900501120100+0515|R-1^Reason^C4|123-2^Testname|||Patient has a spinal fracture|||||AuthProvider^L^4.4^3^M10^CMS^LR^^^A|114^Beverly^Crusher^An^Mr^Dr.^AHP^^2.3^B^^^BR^^^^^^19241010^19241015^Al||||Check for metastatic disease|U \ No newline at end of file diff --git a/data/SampleData/Hl7v2/ADT_A28-2.hl7 b/data/SampleData/Hl7v2/ADT_A28-2.hl7 new file mode 100644 index 000000000..7bcb2f6e2 --- /dev/null +++ b/data/SampleData/Hl7v2/ADT_A28-2.hl7 @@ -0,0 +1,4 @@ +MSH|^~\&|ADTApp|GHHSFacility^2.16.840.1.122848.1.30^ISO|EHRApp^1.Edu^ISO|GHHRFacility^2.16.840.1.1122848.1.32^ISO|198908181126+0215|SECURITY|ADT^A28^ADT_A28|MSG00001|P|2.8|||||USA||en-US|||22 GHH Inc.|23 GHH Inc.|24GHH^2.16.840.1.114884.10.20^ISO|25GHH^2.16.840.1.114884.10.23^ISO +EVN|A01|20290801070624+0115|20290801070724|01^Patient request^HL70062|C08^Woolfson^Kathleen^2ndname^Jr^Dr^MD^^DRNBR&W1.2&ISO^L^^^ANON|20210817151943.4+0200|Cona_Health^1.3.6.1.4.1.44750.1.4^ISO +PID|1|1234567^4^M11^test^MR^University Hospital^19241011^19241012|PATID1234^5^M11^test1&2.16.1&HCD^MR^GOOD HEALTH HOSPITAL~123456789^^^USSSA^SS|PATID567^^^test2|EVERYMAN&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm~Josh&&&&Bing^^stanley^^^^L^^^^^19241010^19241015|SMITH^Angela^L|198808181126+0215|M|elbert^Son|2106-3^White^HL70005~2028-9^Asian^HL70005|1000&Hospital Lane^Ste. 123^Ann Arbor ^MI^99999^USA^M^^&W^^^20000110&20000120^^^^^^^Near Highway|GL|78788788^^CP^5555^^^1111^^^^^2222^20010110^20020110^^^^18~12121212^^CP|7777^^CP~1111^^TDD|ara^^HL70296^eng^English-us^HL70296^v2^v2.1^TextInEnglish|M^Married|AME|4000776^^^AccMgr&2.4&ISO^VN^1^19241011^19241012|PSSN123121234|DLN-123^US^20010123|1212121^^^NTH&rt23&HCD^AND^^19241011^19241012|N^NOT HISPANIC OR LATINO^HL70189|St. Francis Community Hospital of Lower South Side|N|2|US^United States of America^ISO3166_1|Vet123^retired^ART|BT^Bhutan^ISO3166_1|20080825111630+0115|Y|||20050110015014+0315||125097000^Goat^SCT|4880003^Beagle^SCT|||CA^Canada^ISO3166_1|89898989^WPN^Internet +PV1|1|P|HUH AE OMU&9.8&ISO^OMU B^Bed 03^HOMERTON UNIVER^^C^Homerton UH^Floor5|E|1234567^4^M11^t&2.16.840.1.113883.19&HCD^ANON^University Hospital^19241011^19241012|4 East, room 136, bed B 4E^136^B^CommunityHospital^^N^^^|1122334^Alaz^Mohammed^Mahi^JR^Dr.^MD^^PERSONNELt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al|C006^Woolfson^Kathleen^^^Dr^^^TEST&23.2&HCD^MSK^^^BA|C008^Condoc^leen^^^Dr^^^&2.8&ISO^NAV^^^BR|SUR|||R|NHS Provider-General (inc.A\T\E-this Hosp)||VIP^Very Important Person^L^IMP^^DCM^v1.1^v1.2^Inportant Person|37^DISNEY^WALT^^^^^^AccMgr^^^^ANC|Inpatient|40007716^^^AccMng&1.2&HCD^AM|||||||||||||||||Admitted as Inpatient^Sample^ACR|22&Homes&FDK|Vegan^Vegetarian|HOMERTON UNIVER||Active|POC^Room-2^Bed-103^^^C^Greenland|Nursing home^^^^^^Rosewood|20150208113419+0110||||||50^^^T123&r2.3&ISO^MR||Othhel^^^^^^^^testing&&HCD||EOC124^5^M11^Etest&2.16.1&HCD^MR^CommunityHospital \ No newline at end of file diff --git a/data/SampleData/Hl7v2/ADT_A28.hl7 b/data/SampleData/Hl7v2/ADT_A28.hl7 new file mode 100644 index 000000000..5d225a70e --- /dev/null +++ b/data/SampleData/Hl7v2/ADT_A28.hl7 @@ -0,0 +1,17 @@ +MSH|^~\&|ADTApp|GHHSFacility^2.16.840.1.122848.1.30^ISO|EHRApp^1.Edu^ISO|GHHRFacility^2.16.840.1.1122848.1.32^ISO|198908181126+0215|SECURITY|ADT^A28^ADT_A28|MSG00001|P|2.8|||||USA||en-US|||22 GHH Inc.|23 GHH Inc.|24GHH^2.16.840.1.114884.10.20^ISO|25GHH^2.16.840.1.114884.10.23^ISO +SFT|Orion|2.4.3.52854|Rhapsody|2.4.3|Testactivity|20070725111624 +EVN|A01|20290801070624+0115|20290801070724|01^Patient request^HL70062|C08^Woolfson^Kathleen^2ndname^Jr^Dr^MD^^DRNBR&W1.2&ISO^L^^^ANON|20210817151943.4+0200|Cona_Health^1.3.6.1.4.1.44750.1.4^ISO +PID|1|1234567^4^M11^test^MR^University Hospital^19241011^19241012|PATID1234^5^M11^test1&2.16.1&HCD^MR^GOOD HEALTH HOSPITAL~123456789^^^USSSA^SS|PATID567^^^test2|EVERYMAN&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm~Josh&&&&Bing^^stanley^^^^L^^^^^19241010^19241015|SMITH^Angela^L|198808181126+0215|M|elbert^Son|2106-3^White^HL70005~2028-9^Asian^HL70005|1000&Hospital Lane^Ste. 123^Ann Arbor ^MI^99999^USA^M^^&W^^^20000110&20000120^^^^^^^Near Highway|GL|78788788^^CP^5555^^^1111^^^^^2222^20010110^20020110^^^^18~12121212^^CP|7777^^CP~1111^^TDD|ara^^HL70296^eng^English-us^HL70296^v2^v2.1^TextInEnglish|M^Married|AME|4000776^^^AccMgr&2.4&ISO^VN^1^19241011^19241012|PSSN123121234|DLN-123^US^20010123|1212121^^^NTH&rt23&HCD^AND^^19241011^19241012|N^NOT HISPANIC OR LATINO^HL70189|St. Francis Community Hospital of Lower South Side|N|2|US^United States of America^ISO3166_1|Vet123^retired^ART|BT^Bhutan^ISO3166_1|20080825111630+0115|Y|||20050110015014+0315||125097000^Goat^SCT|4880003^Beagle^SCT|||CA^Canada^ISO3166_1|89898989^WPN^Internet +PD1|S^^ACR||LINDAS TEST ORGANIZATION^^SIISCLIENT818|88^Hippo^rold^H^V^Dr^MD^^TE^^^M10^DN^^||||||||||Methodist Church|||20150202^20150202 +NK1|1|Evan&&&&Aniston^ADAM^A^III^Dr.^MD^D|EMC^test^ACR^CHD^^^9.0^10.0|2222&HOME&STREET^Highway^GREENSBORO^NC^27401-1020^US^BI^^jkdha&test^^^^20000110^20050111~111&Duck ST^^Fowl|78788788^WPN^Internet^5555^^^^^^^^^20010110^20020110^^^^18~121111^PRN^CP|88888888^PRN^CP^5555^^^^^^^^878777^20010110^20020110^^^^18~6666666^^BP|O|20210818|20211218|||12345567^4^M11^T1&2.16.840.1.113883.19&HCD^MR^University Hospital^19241011^19241012|TestOrg^^O12^^^^EI^^^Org12||F^^^M|19620110045504||||ara||||||||||Green^John^A^II^DR^MD^D^^^19241012^G~Josh&&&&Bing^^stanley^^^^L|898989898^^FX~88888888^^CP|Street1&Palkstreet~ST-2|I-123^^^^BA~I-222^^^^DI||2106-3^test^FDDC||Security no-23|||1515151515^WPN^CP^555544^^^^^^^^777^20010110^20020110^^^^1|444444^^CP +PV1|1|P|HUH AE OMU&9.8&ISO^OMU B^Bed 03^HOMERTON UNIVER^^C^Homerton UH^Floor5|E|1234567^4^M11^t&2.16.840.1.113883.19&HCD^ANON^University Hospital^19241011^19241012|4 East, room 136, bed B 4E^136^B^CommunityHospital^^N^^^|1122334^Alaz^Mohammed^Mahi^JR^Dr.^MD^^PERSONNELt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al|C006^Woolfson^Kathleen^^^Dr^^^TEST&23.2&HCD^MSK^^^BA|C008^Condoc^leen^^^Dr^^^&2.8&ISO^NAV^^^BR|SUR|||R|NHS Provider-General (inc.A\T\E-this Hosp)||VIP^Very Important Person^L^IMP^^DCM^v1.1^v1.2^Inportant Person|37^DISNEY^WALT^^^^^^AccMgr^^^^ANC|Inpatient|40007716^^^AccMng&1.2&HCD^AM|||||||||||||||||Admitted as Inpatient^Sample^ACR|22&Homes&FDK|Vegan^Vegetarian|HOMERTON UNIVER||Active|POC^Room-2^Bed-103^^^C^Greenland|Nursing home^^^^^^Rosewood|20150208113419+0110||||||50^^^T123&r2.3&ISO^MR||Othhel^^^^^^^^testing&&HCD||EOC124^5^M11^Etest&2.16.1&HCD^MR^CommunityHospital +PV2|^ROOM1&2.16.840.1.113883.4.642.1.1108&ISO^BED1^FACILITY1^^^BUILDING1^FLOOR1^^^||140004^Chronic pharyngitis^SCT||||||||2|Health Checkup|12188^Hippocrates^Harold^H^IV^Dr^MD^^TE&Provider Master.Community Health and Hospitals&DNS^^^M10^DN^^|||||||||N|||2^^^3^^^V1.2^V1.3|||||||||||||C +DB1|1|PT|DB123^4^M11^t&1.12&ISO^MR^UH^19241011^19241012|Y|20210830|20210930| +OBX|27|NM|8867-4^heartrate^LN||60~120|beats/min^^ISO|70-80|A^A^HL7nnnn~B^B|||S|||19990702|Org15^ID of producer^CAS|1134^Aly^Zafar^Mahendra^JR^Dr.^MD^^PERSt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al~2234^Pauly^Berrie^Raud|OBS^This is test method^AS4|EI12.3^NI2^UI2^GUID~^^UI1^ISO|19990702|BU^Observation site^E5|EI21^OII||FairOaks Hspital|Research Park^Fairfax^VA^22031^USA|MD-25^Atchinson^Christopher^^MD|||||||PAI-1^FAI-1 +AL1|1|EA|P^PENICILLIN^ICDO|MI|CODE16|20210824 +DG1|1|I9|422504002^Ischemic stroke(disorder)^SCT|Stroke|20040125114025+0420|A|||||||||1|005454^DIAG^ROBIN^B|||20200501133015+0215|DI20^Diagnosis^DTUI^CLIP|A|^^UI^CLIP +PR1|1||76164006^Biopsy of colon (procedure)^SCT|Biopsy of colon, which was part of colonoscopy|200501251140+0100|D^Diagnostic Procedure^HL70230|2|1210^ANES^MARK^B|||121188^Patrick^Harold^H^IV^Dr^MD^^&Provider Master.Community Health and Hospitals&L^L^9^M10^DN^&Good Health Hospital.Community Health and Hospitals&L^A|12345689^Everyman2^Adam2^A^III^DR^PHD^ADT01^^L^4^M11^MR|||799008^Sigmoid colon ulcer^SCT||||PR1006||||OT^201||PR1001 +GT1|1|1516^4^M11^test^MR^Unity Hospital^19241011^19241012|RADIANT^LUCY^^|Rebecca^Jonas|1619 SOUTH UNIVERSITY^^MADISON^WI^53703^US|6082517777^^Internet^8484~717171^^PH|021212^^MD|20010412|F|P/F|SEL|G-SSN-12|20010410|20010415|2|EHS GENERIC EMPLOYER|1979 MILKY WAY^^VERONA^WI^53593^US|082719000^^PH|55121^^^^FI|3|Jupiter Hospital|N|SLF|20000725111420|N||||1231^^^^BC|M|20091010|20101010||||ger||||||MothersMaiden|||Ben^Charles~Ben2|000352^^CP~00121^^FX|Urgent requirement||||GEOrg|||||Germany +IN1|1|BAV^Blue Advantage HMO|IC-1.31^24^BCV^&2.16.840.1.113883.1.1&ISO^NIIP^^19291011^19291012|Blue Cross Blue Shield of Texas|1979 MILKY WAY^^VERONA^WI^53593^US|Henry&&&&Roth^Rony^A^III^Dr.^MD^D^^^19251012|(555)555-5555^BPN^PH|PUBSUMB|SelfPay||Sam P. Hil|19891001|20501001||HMO^health maintenance organization policy|Doe^Rosallie^John^III^Mrs.^Bachelors^R|SPO^Spouse|19750228|3857 Velvet Treasure Terrace^^Midnight^NC^27878^US|||||||||||||||||PN-145|150&USD^DC||||||F^Female|2000 MILKY WAY^^VERONA^WI^53593^US|||B||HMO-12345^^^&2.16.840.1.113883.1.3&ISO^NI +IN2|1117^4^M11^&2.16.840.1.113883.1.4&ISO^EI^University Hospital~1118^^^^BC|425-57-9745|||I^Insurance company|Medicare-12345|Jack&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm|MCN-008||MI-12345||||||||||||||||||||||||eng^English|||||||||||||||Richard^Paul|254622222^^PH|||||||||||PNM1234^4^M11^PM&2.6.1&HCD^MR^University Hospital^19241011^19241012||0005245^WPN^Internet~^^CP|555777888^^FX~^^PH||||||Max Life Insurance||02^Spouse +RF1|P^Pending^HL7283|A^ASAP^HL7280|EXTERNAL|||123-1^name|||19900501120100+0515|R-1^Reason^C4|123-2^Testname|||Patient has a spinal fracture|||||AuthProvider^L^4.4^3^M10^CMS^LR^^^A|114^Beverly^Crusher^An^Mr^Dr.^AHP^^2.3^B^^^BR^^^^^^19241010^19241015^Al||||Check for metastatic disease|U \ No newline at end of file diff --git a/data/SampleData/Hl7v2/ADT_A31-2.hl7 b/data/SampleData/Hl7v2/ADT_A31-2.hl7 new file mode 100644 index 000000000..3a22bcd19 --- /dev/null +++ b/data/SampleData/Hl7v2/ADT_A31-2.hl7 @@ -0,0 +1,4 @@ +MSH|^~\&|ADTApp|GHHSFacility^2.16.840.1.122848.1.30^ISO|EHRApp^1.Edu^ISO|GHHRFacility^2.16.840.1.1122848.1.32^ISO|198908181126+0215|SECURITY|ADT^A31^ADT_A31|MSG00001|P|2.8|||||USA||en-US|||22 GHH Inc.|23 GHH Inc.|24GHH^2.16.840.1.114884.10.20^ISO|25GHH^2.16.840.1.114884.10.23^ISO +EVN|A01|20290801070624+0115|20290801070724|01^Patient request^HL70062|C08^Woolfson^Kathleen^2ndname^Jr^Dr^MD^^DRNBR&W1.2&ISO^L^^^ANON|20210817151943.4+0200|Cona_Health^1.3.6.1.4.1.44750.1.4^ISO +PID|1|1234567^4^M11^test^MR^University Hospital^19241011^19241012|PATID1234^5^M11^test1&2.16.1&HCD^MR^GOOD HEALTH HOSPITAL~123456789^^^USSSA^SS|PATID567^^^test2|EVERYMAN&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm~Josh&&&&Bing^^stanley^^^^L^^^^^19241010^19241015|SMITH^Angela^L|198808181126+0215|M|elbert^Son|2106-3^White^HL70005~2028-9^Asian^HL70005|1000&Hospital Lane^Ste. 123^Ann Arbor ^MI^99999^USA^M^^&W^^^20000110&20000120^^^^^^^Near Highway|GL|78788788^^CP^5555^^^1111^^^^^2222^20010110^20020110^^^^18~12121212^^CP|7777^^CP~1111^^TDD|ara^^HL70296^eng^English-us^HL70296^v2^v2.1^TextInEnglish|M^Married|AME|4000776^^^AccMgr&2.4&ISO^VN^1^19241011^19241012|PSSN123121234|DLN-123^US^20010123|1212121^^^NTH&rt23&HCD^AND^^19241011^19241012|N^NOT HISPANIC OR LATINO^HL70189|St. Francis Community Hospital of Lower South Side|N|2|US^United States of America^ISO3166_1|Vet123^retired^ART|BT^Bhutan^ISO3166_1|20080825111630+0115|Y|||20050110015014+0315||125097000^Goat^SCT|4880003^Beagle^SCT|||CA^Canada^ISO3166_1|89898989^WPN^Internet +PV1|1|P|HUH AE OMU&9.8&ISO^OMU B^Bed 03^HOMERTON UNIVER^^C^Homerton UH^Floor5|E|1234567^4^M11^t&2.16.840.1.113883.19&HCD^ANON^University Hospital^19241011^19241012|4 East, room 136, bed B 4E^136^B^CommunityHospital^^N^^^|1122334^Alaz^Mohammed^Mahi^JR^Dr.^MD^^PERSONNELt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al|C006^Woolfson^Kathleen^^^Dr^^^TEST&23.2&HCD^MSK^^^BA|C008^Condoc^leen^^^Dr^^^&2.8&ISO^NAV^^^BR|SUR|||R|NHS Provider-General (inc.A\T\E-this Hosp)||VIP^Very Important Person^L^IMP^^DCM^v1.1^v1.2^Inportant Person|37^DISNEY^WALT^^^^^^AccMgr^^^^ANC|Inpatient|40007716^^^AccMng&1.2&HCD^AM|||||||||||||||||Admitted as Inpatient^Sample^ACR|22&Homes&FDK|Vegan^Vegetarian|HOMERTON UNIVER||Active|POC^Room-2^Bed-103^^^C^Greenland|Nursing home^^^^^^Rosewood|20150208113419+0110||||||50^^^T123&r2.3&ISO^MR||Othhel^^^^^^^^testing&&HCD||EOC124^5^M11^Etest&2.16.1&HCD^MR^CommunityHospital \ No newline at end of file diff --git a/data/SampleData/Hl7v2/ADT_A31.hl7 b/data/SampleData/Hl7v2/ADT_A31.hl7 new file mode 100644 index 000000000..914ce19ae --- /dev/null +++ b/data/SampleData/Hl7v2/ADT_A31.hl7 @@ -0,0 +1,17 @@ +MSH|^~\&|ADTApp|GHHSFacility^2.16.840.1.122848.1.30^ISO|EHRApp^1.Edu^ISO|GHHRFacility^2.16.840.1.1122848.1.32^ISO|198908181126+0215|SECURITY|ADT^A31^ADT_A31|MSG00001|P|2.8|||||USA||en-US|||22 GHH Inc.|23 GHH Inc.|24GHH^2.16.840.1.114884.10.20^ISO|25GHH^2.16.840.1.114884.10.23^ISO +SFT|Orion|2.4.3.52854|Rhapsody|2.4.3|Testactivity|20070725111624 +EVN|A01|20290801070624+0115|20290801070724|01^Patient request^HL70062|C08^Woolfson^Kathleen^2ndname^Jr^Dr^MD^^DRNBR&W1.2&ISO^L^^^ANON|20210817151943.4+0200|Cona_Health^1.3.6.1.4.1.44750.1.4^ISO +PID|1|1234567^4^M11^test^MR^University Hospital^19241011^19241012|PATID1234^5^M11^test1&2.16.1&HCD^MR^GOOD HEALTH HOSPITAL~123456789^^^USSSA^SS|PATID567^^^test2|EVERYMAN&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm~Josh&&&&Bing^^stanley^^^^L^^^^^19241010^19241015|SMITH^Angela^L|198808181126+0215|M|elbert^Son|2106-3^White^HL70005~2028-9^Asian^HL70005|1000&Hospital Lane^Ste. 123^Ann Arbor ^MI^99999^USA^M^^&W^^^20000110&20000120^^^^^^^Near Highway|GL|78788788^^CP^5555^^^1111^^^^^2222^20010110^20020110^^^^18~12121212^^CP|7777^^CP~1111^^TDD|ara^^HL70296^eng^English-us^HL70296^v2^v2.1^TextInEnglish|M^Married|AME|4000776^^^AccMgr&2.4&ISO^VN^1^19241011^19241012|PSSN123121234|DLN-123^US^20010123|1212121^^^NTH&rt23&HCD^AND^^19241011^19241012|N^NOT HISPANIC OR LATINO^HL70189|St. Francis Community Hospital of Lower South Side|N|2|US^United States of America^ISO3166_1|Vet123^retired^ART|BT^Bhutan^ISO3166_1|20080825111630+0115|Y|||20050110015014+0315||125097000^Goat^SCT|4880003^Beagle^SCT|||CA^Canada^ISO3166_1|89898989^WPN^Internet +PD1|S^^ACR||LINDAS TEST ORGANIZATION^^SIISCLIENT818|88^Hippo^rold^H^V^Dr^MD^^TE^^^M10^DN^^||||||||||Methodist Church|||20150202^20150202 +NK1|1|Evan&&&&Aniston^ADAM^A^III^Dr.^MD^D|EMC^test^ACR^CHD^^^9.0^10.0|2222&HOME&STREET^Highway^GREENSBORO^NC^27401-1020^US^BI^^jkdha&test^^^^20000110^20050111~111&Duck ST^^Fowl|78788788^WPN^Internet^5555^^^^^^^^^20010110^20020110^^^^18~121111^PRN^CP|88888888^PRN^CP^5555^^^^^^^^878777^20010110^20020110^^^^18~6666666^^BP|O|20210818|20211218|||12345567^4^M11^T1&2.16.840.1.113883.19&HCD^MR^University Hospital^19241011^19241012|TestOrg^^O12^^^^EI^^^Org12||F^^^M|19620110045504||||ara||||||||||Green^John^A^II^DR^MD^D^^^19241012^G~Josh&&&&Bing^^stanley^^^^L|898989898^^FX~88888888^^CP|Street1&Palkstreet~ST-2|I-123^^^^BA~I-222^^^^DI||2106-3^test^FDDC||Security no-23|||1515151515^WPN^CP^555544^^^^^^^^777^20010110^20020110^^^^1|444444^^CP +PV1|1|P|HUH AE OMU&9.8&ISO^OMU B^Bed 03^HOMERTON UNIVER^^C^Homerton UH^Floor5|E|1234567^4^M11^t&2.16.840.1.113883.19&HCD^ANON^University Hospital^19241011^19241012|4 East, room 136, bed B 4E^136^B^CommunityHospital^^N^^^|1122334^Alaz^Mohammed^Mahi^JR^Dr.^MD^^PERSONNELt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al|C006^Woolfson^Kathleen^^^Dr^^^TEST&23.2&HCD^MSK^^^BA|C008^Condoc^leen^^^Dr^^^&2.8&ISO^NAV^^^BR|SUR|||R|NHS Provider-General (inc.A\T\E-this Hosp)||VIP^Very Important Person^L^IMP^^DCM^v1.1^v1.2^Inportant Person|37^DISNEY^WALT^^^^^^AccMgr^^^^ANC|Inpatient|40007716^^^AccMng&1.2&HCD^AM|||||||||||||||||Admitted as Inpatient^Sample^ACR|22&Homes&FDK|Vegan^Vegetarian|HOMERTON UNIVER||Active|POC^Room-2^Bed-103^^^C^Greenland|Nursing home^^^^^^Rosewood|20150208113419+0110||||||50^^^T123&r2.3&ISO^MR||Othhel^^^^^^^^testing&&HCD||EOC124^5^M11^Etest&2.16.1&HCD^MR^CommunityHospital +PV2|^ROOM1&2.16.840.1.113883.4.642.1.1108&ISO^BED1^FACILITY1^^^BUILDING1^FLOOR1^^^||140004^Chronic pharyngitis^SCT||||||||2|Health Checkup|12188^Hippocrates^Harold^H^IV^Dr^MD^^TE&Provider Master.Community Health and Hospitals&DNS^^^M10^DN^^|||||||||N|||2^^^3^^^V1.2^V1.3|||||||||||||C +DB1|1|PT|DB123^4^M11^t&1.12&ISO^MR^UH^19241011^19241012|Y|20210830|20210930| +OBX|27|NM|8867-4^heartrate^LN||60~120|beats/min^^ISO|70-80|A^A^HL7nnnn~B^B|||S|||19990702|Org15^ID of producer^CAS|1134^Aly^Zafar^Mahendra^JR^Dr.^MD^^PERSt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al~2234^Pauly^Berrie^Raud|OBS^This is test method^AS4|EI12.3^NI2^UI2^GUID~^^UI1^ISO|19990702|BU^Observation site^E5|EI21^OII||FairOaks Hspital|Research Park^Fairfax^VA^22031^USA|MD-25^Atchinson^Christopher^^MD|||||||PAI-1^FAI-1 +AL1|1|EA|P^PENICILLIN^ICDO|MI|CODE16|20210824 +DG1|1|I9|422504002^Ischemic stroke(disorder)^SCT|Stroke|20040125114025+0420|A|||||||||1|005454^DIAG^ROBIN^B|||20200501133015+0215|DI20^Diagnosis^DTUI^CLIP|A|^^UI^CLIP +PR1|1||76164006^Biopsy of colon (procedure)^SCT|Biopsy of colon, which was part of colonoscopy|200501251140+0100|D^Diagnostic Procedure^HL70230|2|1210^ANES^MARK^B|||121188^Patrick^Harold^H^IV^Dr^MD^^&Provider Master.Community Health and Hospitals&L^L^9^M10^DN^&Good Health Hospital.Community Health and Hospitals&L^A|12345689^Everyman2^Adam2^A^III^DR^PHD^ADT01^^L^4^M11^MR|||799008^Sigmoid colon ulcer^SCT||||PR1006||||OT^201||PR1001 +GT1|1|1516^4^M11^test^MR^Unity Hospital^19241011^19241012|RADIANT^LUCY^^|Rebecca^Jonas|1619 SOUTH UNIVERSITY^^MADISON^WI^53703^US|6082517777^^Internet^8484~717171^^PH|021212^^MD|20010412|F|P/F|SEL|G-SSN-12|20010410|20010415|2|EHS GENERIC EMPLOYER|1979 MILKY WAY^^VERONA^WI^53593^US|082719000^^PH|55121^^^^FI|3|Jupiter Hospital|N|SLF|20000725111420|N||||1231^^^^BC|M|20091010|20101010||||ger||||||MothersMaiden|||Ben^Charles~Ben2|000352^^CP~00121^^FX|Urgent requirement||||GEOrg|||||Germany +IN1|1|BAV^Blue Advantage HMO|IC-1.31^24^BCV^&2.16.840.1.113883.1.1&ISO^NIIP^^19291011^19291012|Blue Cross Blue Shield of Texas|1979 MILKY WAY^^VERONA^WI^53593^US|Henry&&&&Roth^Rony^A^III^Dr.^MD^D^^^19251012|(555)555-5555^BPN^PH|PUBSUMB|SelfPay||Sam P. Hil|19891001|20501001||HMO^health maintenance organization policy|Doe^Rosallie^John^III^Mrs.^Bachelors^R|SPO^Spouse|19750228|3857 Velvet Treasure Terrace^^Midnight^NC^27878^US|||||||||||||||||PN-145|150&USD^DC||||||F^Female|2000 MILKY WAY^^VERONA^WI^53593^US|||B||HMO-12345^^^&2.16.840.1.113883.1.3&ISO^NI +IN2|1117^4^M11^&2.16.840.1.113883.1.4&ISO^EI^University Hospital~1118^^^^BC|425-57-9745|||I^Insurance company|Medicare-12345|Jack&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm|MCN-008||MI-12345||||||||||||||||||||||||eng^English|||||||||||||||Richard^Paul|254622222^^PH|||||||||||PNM1234^4^M11^PM&2.6.1&HCD^MR^University Hospital^19241011^19241012||0005245^WPN^Internet~^^CP|555777888^^FX~^^PH||||||Max Life Insurance||02^Spouse +RF1|P^Pending^HL7283|A^ASAP^HL7280|EXTERNAL|||123-1^name|||19900501120100+0515|R-1^Reason^C4|123-2^Testname|||Patient has a spinal fracture|||||AuthProvider^L^4.4^3^M10^CMS^LR^^^A|114^Beverly^Crusher^An^Mr^Dr.^AHP^^2.3^B^^^BR^^^^^^19241010^19241015^Al||||Check for metastatic disease|U \ No newline at end of file diff --git a/data/SampleData/Hl7v2/ADT_A47-2.hl7 b/data/SampleData/Hl7v2/ADT_A47-2.hl7 new file mode 100644 index 000000000..a3aca9ba9 --- /dev/null +++ b/data/SampleData/Hl7v2/ADT_A47-2.hl7 @@ -0,0 +1,3 @@ +MSH|^~\&|ADTApp|GHHSFacility^2.16.840.1.122848.1.30^ISO|EHRApp^1.Edu^ISO|GHHRFacility^2.16.840.1.1122848.1.32^ISO|198908181126+0215|SECURITY|ADT^A47^ADT_A47|MSG00001|P|2.8|||||USA||en-US|||22 GHH Inc.|23 GHH Inc.|24GHH^2.16.840.1.114884.10.20^ISO|25GHH^2.16.840.1.114884.10.23^ISO +EVN|A01|20290801070624+0115|20290801070724|01^Patient request^HL70062|C08^Woolfson^Kathleen^2ndname^Jr^Dr^MD^^DRNBR&W1.2&ISO^L^^^ANON|20210817151943.4+0200|Cona_Health^1.3.6.1.4.1.44750.1.4^ISO +PID|1|1234567^4^M11^test^MR^University Hospital^19241011^19241012|PATID1234^5^M11^test1&2.16.1&HCD^MR^GOOD HEALTH HOSPITAL~123456789^^^USSSA^SS|PATID567^^^test2|EVERYMAN&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm~Josh&&&&Bing^^stanley^^^^L^^^^^19241010^19241015|SMITH^Angela^L|198808181126+0215|M|elbert^Son|2106-3^White^HL70005~2028-9^Asian^HL70005|1000&Hospital Lane^Ste. 123^Ann Arbor ^MI^99999^USA^M^^&W^^^20000110&20000120^^^^^^^Near Highway|GL|78788788^^CP^5555^^^1111^^^^^2222^20010110^20020110^^^^18~12121212^^CP|7777^^CP~1111^^TDD|ara^^HL70296^eng^English-us^HL70296^v2^v2.1^TextInEnglish|M^Married|AME|4000776^^^AccMgr&2.4&ISO^VN^1^19241011^19241012|PSSN123121234|DLN-123^US^20010123|1212121^^^NTH&rt23&HCD^AND^^19241011^19241012|N^NOT HISPANIC OR LATINO^HL70189|St. Francis Community Hospital of Lower South Side|N|2|US^United States of America^ISO3166_1|Vet123^retired^ART|BT^Bhutan^ISO3166_1|20080825111630+0115|Y|||20050110015014+0315||125097000^Goat^SCT|4880003^Beagle^SCT|||CA^Canada^ISO3166_1|89898989^WPN^Internet \ No newline at end of file diff --git a/data/SampleData/Hl7v2/ADT_A47.hl7 b/data/SampleData/Hl7v2/ADT_A47.hl7 new file mode 100644 index 000000000..3bd5545d4 --- /dev/null +++ b/data/SampleData/Hl7v2/ADT_A47.hl7 @@ -0,0 +1,5 @@ +MSH|^~\&|ADTApp|GHHSFacility^2.16.840.1.122848.1.30^ISO|EHRApp^1.Edu^ISO|GHHRFacility^2.16.840.1.1122848.1.32^ISO|198908181126+0215|SECURITY|ADT^A47^ADT_A47|MSG00001|P|2.8|||||USA||en-US|||22 GHH Inc.|23 GHH Inc.|24GHH^2.16.840.1.114884.10.20^ISO|25GHH^2.16.840.1.114884.10.23^ISO +SFT|Orion|2.4.3.52854|Rhapsody|2.4.3|Testactivity|20070725111624 +EVN|A01|20290801070624+0115|20290801070724|01^Patient request^HL70062|C08^Woolfson^Kathleen^2ndname^Jr^Dr^MD^^DRNBR&W1.2&ISO^L^^^ANON|20210817151943.4+0200|Cona_Health^1.3.6.1.4.1.44750.1.4^ISO +PID|1|1234567^4^M11^test^MR^University Hospital^19241011^19241012|PATID1234^5^M11^test1&2.16.1&HCD^MR^GOOD HEALTH HOSPITAL~123456789^^^USSSA^SS|PATID567^^^test2|EVERYMAN&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm~Josh&&&&Bing^^stanley^^^^L^^^^^19241010^19241015|SMITH^Angela^L|198808181126+0215|M|elbert^Son|2106-3^White^HL70005~2028-9^Asian^HL70005|1000&Hospital Lane^Ste. 123^Ann Arbor ^MI^99999^USA^M^^&W^^^20000110&20000120^^^^^^^Near Highway|GL|78788788^^CP^5555^^^1111^^^^^2222^20010110^20020110^^^^18~12121212^^CP|7777^^CP~1111^^TDD|ara^^HL70296^eng^English-us^HL70296^v2^v2.1^TextInEnglish|M^Married|AME|4000776^^^AccMgr&2.4&ISO^VN^1^19241011^19241012|PSSN123121234|DLN-123^US^20010123|1212121^^^NTH&rt23&HCD^AND^^19241011^19241012|N^NOT HISPANIC OR LATINO^HL70189|St. Francis Community Hospital of Lower South Side|N|2|US^United States of America^ISO3166_1|Vet123^retired^ART|BT^Bhutan^ISO3166_1|20080825111630+0115|Y|||20050110015014+0315||125097000^Goat^SCT|4880003^Beagle^SCT|||CA^Canada^ISO3166_1|89898989^WPN^Internet +PD1|S^^ACR||LINDAS TEST ORGANIZATION^^SIISCLIENT818|88^Hippo^rold^H^V^Dr^MD^^TE^^^M10^DN^^||||||||||Methodist Church|||20150202^20150202 \ No newline at end of file diff --git a/data/SampleData/Hl7v2/ADT_A60-2.hl7 b/data/SampleData/Hl7v2/ADT_A60-2.hl7 new file mode 100644 index 000000000..9114d2acb --- /dev/null +++ b/data/SampleData/Hl7v2/ADT_A60-2.hl7 @@ -0,0 +1,4 @@ +MSH|^~\&|ADTApp|GHHSFacility^2.16.840.1.122848.1.30^ISO|EHRApp^1.Edu^ISO|GHHRFacility^2.16.840.1.1122848.1.32^ISO|198908181126+0215|SECURITY|ADT^A60^ADT_A60|MSG00001|P|2.8|||||USA||en-US|||22 GHH Inc.|23 GHH Inc.|24GHH^2.16.840.1.114884.10.20^ISO|25GHH^2.16.840.1.114884.10.23^ISO +EVN|A01|20290801070624+0115|20290801070724|01^Patient request^HL70062|C08^Woolfson^Kathleen^2ndname^Jr^Dr^MD^^DRNBR&W1.2&ISO^L^^^ANON|20210817151943.4+0200|Cona_Health^1.3.6.1.4.1.44750.1.4^ISO +PID|1|1234567^4^M11^test^MR^University Hospital^19241011^19241012|PATID1234^5^M11^test1&2.16.1&HCD^MR^GOOD HEALTH HOSPITAL~123456789^^^USSSA^SS|PATID567^^^test2|EVERYMAN&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm~Josh&&&&Bing^^stanley^^^^L^^^^^19241010^19241015|SMITH^Angela^L|198808181126+0215|M|elbert^Son|2106-3^White^HL70005~2028-9^Asian^HL70005|1000&Hospital Lane^Ste. 123^Ann Arbor^MI^99999^USA^M^^&W^^^20000110&20000120^^^^^^^Near Highway|GL|78788788^^CP^5555^^^1111^^^^^2222^20010110^20020110^^^^18~12121212^^CP|7777^^CP~1111^^TDD|ara^^HL70296^eng^English-us^HL70296^v2^v2.1^TextInEnglish|M^Married|AME|4000776^^^AccMgr&2.4&ISO^VN^1^19241011^19241012|PSSN123121234|DLN-123^US^20010123|1212121^^^NTH&rt23&HCD^AND^^19241011^19241012|N^NOT HISPANIC OR LATINO^HL70189|St. Francis Community Hospital of Lower South Side|N|2|US^United States of America^ISO3166_1|Vet123^retired^ART|BT^Bhutan^ISO3166_1|20080825111630+0115|Y|||20050110015014+0315||125097000^Goat^SCT|4880003^Beagle^SCT|||CA^Canada^ISO3166_1|89898989^WPN^Internet +IAM|1|FA^Food allergy^HL70127|12345^Peanut Allergy^L|||A^Add/Insert^HL70206|56789^Cona_Health^1.3.6.1.4.1.44750.1.4^ISO||SE^Side Effect||201805||202010051600|Doe^Rosallie^John^III^Mrs.^Bachelors^R|SPO^Spouse||C^Confirmed or verified||||||9941339108^Smith&Mr.&Smith^Adam^Mellie^Jr^Dr^MD^^NPIID&2.16.840.1.113883.4.6&ISO^L^^^NPI^^^^^^20100115^20200115^GP|202010101600+0215||202010151600+0215|91935009^Allergy to Peanuts^SNM3 \ No newline at end of file diff --git a/data/SampleData/Hl7v2/ADT_A60.hl7 b/data/SampleData/Hl7v2/ADT_A60.hl7 new file mode 100644 index 000000000..0114015f2 --- /dev/null +++ b/data/SampleData/Hl7v2/ADT_A60.hl7 @@ -0,0 +1,9 @@ +MSH|^~\&|ADTApp|GHHSFacility^2.16.840.1.122848.1.30^ISO|EHRApp^1.Edu^ISO|GHHRFacility^2.16.840.1.1122848.1.32^ISO|198908181126+0215|SECURITY|ADT^A60^ADT_A60|MSG00001|P|2.8|||||USA||en-US|||22 GHH Inc.|23 GHH Inc.|24GHH^2.16.840.1.114884.10.20^ISO|25GHH^2.16.840.1.114884.10.23^ISO +SFT|Orion|2.4.3.52854|Rhapsody|2.4.3|Testactivity|20070725111624 +EVN|A01|20290801070624+0115|20290801070724|01^Patient request^HL70062|C08^Woolfson^Kathleen^2ndname^Jr^Dr^MD^^DRNBR&W1.2&ISO^L^^^ANON|20210817151943.4+0200|Cona_Health^1.3.6.1.4.1.44750.1.4^ISO +PID|1|1234567^4^M11^test^MR^University Hospital^19241011^19241012|PATID1234^5^M11^test1&2.16.1&HCD^MR^GOOD HEALTH HOSPITAL~123456789^^^USSSA^SS|PATID567^^^test2|EVERYMAN&&&&Aniston^ADAM^A^III^Dr.^MD^D^^^19241012^^^^PF^Addsm~Josh&&&&Bing^^stanley^^^^L^^^^^19241010^19241015|SMITH^Angela^L|198808181126+0215|M|elbert^Son|2106-3^White^HL70005~2028-9^Asian^HL70005|1000&Hospital Lane^Ste. 123^Ann Arbor^MI^99999^USA^M^^&W^^^20000110&20000120^^^^^^^Near Highway|GL|78788788^^CP^5555^^^1111^^^^^2222^20010110^20020110^^^^18~12121212^^CP|7777^^CP~1111^^TDD|ara^^HL70296^eng^English-us^HL70296^v2^v2.1^TextInEnglish|M^Married|AME|4000776^^^AccMgr&2.4&ISO^VN^1^19241011^19241012|PSSN123121234|DLN-123^US^20010123|1212121^^^NTH&rt23&HCD^AND^^19241011^19241012|N^NOT HISPANIC OR LATINO^HL70189|St. Francis Community Hospital of Lower South Side|N|2|US^United States of America^ISO3166_1|Vet123^retired^ART|BT^Bhutan^ISO3166_1|20080825111630+0115|Y|||20050110015014+0315||125097000^Goat^SCT|4880003^Beagle^SCT|||CA^Canada^ISO3166_1|89898989^WPN^Internet +PV1|1|P|HUH AE OMU&9.8&ISO^OMU B^Bed 03^HOMERTON UNIVER^^C^Homerton UH^Floor5|E|1234567^4^M11^t&2.16.840.1.113883.19&HCD^ANON^University Hospital^19241011^19241012|4 East, room 136, bed B 4E^136^B^CommunityHospital^^N^^^|1122334^Alaz^Mohammed^Mahi^JR^Dr.^MD^^PERSONNELt&1.23&HCD^B^^^BR^^^^^^19241010^19241015^Al|C006^Woolfson^Kathleen^^^Dr^^^TEST&23.2&HCD^MSK^^^BA|C008^Condoc^leen^^^Dr^^^&2.8&ISO^NAV^^^BR|SUR|||R|NHS Provider-General (inc.A\T\E-this Hosp)||VIP^Very Important Person^L^IMP^^DCM^v1.1^v1.2^Inportant Person|37^DISNEY^WALT^^^^^^AccMgr^^^^ANC|Inpatient|40007716^^^AccMng&1.2&HCD^AM|||||||||||||||||Admitted as Inpatient^Sample^ACR|22&Homes&FDK|Vegan^Vegetarian|HOMERTON UNIVER||Active|POC^Room-2^Bed-103^^^C^Greenland|Nursing home^^^^^^Rosewood|20150208113419+0110||||||50^^^T123&r2.3&ISO^MR||Othhel^^^^^^^^testing&&HCD||EOC124^5^M11^Etest&2.16.1&HCD^MR^CommunityHospital +PV2|^ROOM1&2.16.840.1.113883.4.642.1.1108&ISO^BED1^FACILITY1^^^BUILDING1^FLOOR1^^^||140004^Chronic pharyngitis^SCT||||||||2|Health Checkup|12188^Hippocrates^Harold^H^IV^Dr^MD^^TE&Provider Master.Community Health and Hospitals&DNS^^^M10^DN^^|||||||||N|||2^^^3^^^V1.2^V1.3|||||||||||||C +IAM|1|FA^Food allergy^HL70127|12345^Peanut Allergy^L|||A^Add/Insert^HL70206|56789^Cona_Health^1.3.6.1.4.1.44750.1.4^ISO||SE^Side Effect||201805||202010051600|Doe^Rosallie^John^III^Mrs.^Bachelors^R|SPO^Spouse||C^Confirmed or verified||||||9941339108^Smith&Mr.&Smith^Adam^Mellie^Jr^Dr^MD^^NPIID&2.16.840.1.113883.4.6&ISO^L^^^NPI^^^^^^20100115^20200115^GP|202010101600+0215||202010151600+0215|91935009^Allergy to Peanuts^SNM3 +NTE|1||Allergy to peanuts observed.||9941339108^Smith&Mr.&Smith^Adam^Mellie^Jr^Dr^MD^^NPIID&2.16.840.1.113883.4.6&ISO^L^^^NPI^^^^^^20100115^20200115^GP|202010101600+0215| +IAR|34567^Skin Rashness^L|MI^Mild|AL^Allergy|No Action taken \ No newline at end of file diff --git a/data/Templates/Hl7v2/ADT_A01.liquid b/data/Templates/Hl7v2/ADT_A01.liquid index 8691d03be..ab7bedb2d 100644 --- a/data/Templates/Hl7v2/ADT_A01.liquid +++ b/data/Templates/Hl7v2/ADT_A01.liquid @@ -1,107 +1,470 @@ -{% assign firstSegments = hl7v2Data | get_first_segments: 'PID|PD1|PV1|PV2|AVR|MSH' -%} -{% assign pr1SegmentLists = hl7v2Data | get_segment_lists: 'PR1' -%} +{% assign firstSegments = hl7v2Data | get_first_segments: 'PID|PD1|PV1|PV2|MSH|UAC|EVN' -%} +{% assign sftSegmentLists = hl7v2Data | get_segment_lists: 'SFT' -%} +{% assign arvSegmentLists = hl7v2Data | get_segment_lists: 'ARV' -%} +{% assign rolSegmentLists = hl7v2Data | get_segment_lists: 'ROL' -%} {% assign nk1SegmentLists = hl7v2Data | get_segment_lists: 'NK1' -%} +{% assign db1SegmentLists = hl7v2Data | get_segment_lists: 'DB1' -%} {% assign obxSegmentLists = hl7v2Data | get_segment_lists: 'OBX' -%} {% assign al1SegmentLists = hl7v2Data | get_segment_lists: 'AL1' -%} {% assign dg1SegmentLists = hl7v2Data | get_segment_lists: 'DG1' -%} - +{% assign drgSegmentLists = hl7v2Data | get_segment_lists: 'DRG' -%} +{% assign pr1SegmentLists = hl7v2Data | get_segment_lists: 'PR1' -%} +{% assign gt1SegmentLists = hl7v2Data | get_segment_lists: 'GT1' -%} +{% assign in1SegmentLists = hl7v2Data | get_segment_lists: 'IN1' -%} +{% assign in2SegmentLists = hl7v2Data | get_segment_lists: 'IN2' -%} +{% assign in3SegmentLists = hl7v2Data | get_segment_lists: 'IN3' -%} +{% assign autSegmentLists = hl7v2Data | get_segment_lists: 'AUT' -%} +{% assign rf1SegmentLists = hl7v2Data | get_segment_lists: 'RF1' -%} +{% assign accSegmentLists = hl7v2Data | get_segment_lists: 'ACC' -%} +{% assign ub1SegmentLists = hl7v2Data | get_segment_lists: 'UB1' -%} +{% assign ub2SegmentLists = hl7v2Data | get_segment_lists: 'UB2' -%} +{% assign pdaSegmentLists = hl7v2Data | get_segment_lists: 'PDA' -%} +{% evaluate bundleID using 'ID/Bundle' Data: firstSegments.MSH.10 -%} { "resourceType": "Bundle", "type": "batch", {% if firstSegments.MSH.7 -%} - "timestamp":"{{ firstSegments.MSH.7.Value | format_as_date_time }}", + "timestamp":"{{ firstSegments.MSH.7.Value | format_as_date_time }}", {% endif -%} "identifier": { "value":"{{ firstSegments.MSH.10.Value }}", }, + "id":"{{ bundleID }}", "entry": [ - {% evaluate messageHeaderId using 'ID/MessageHeader' MSH: firstSegments.MSH -%} - {% include 'Resource/MessageHeader' MSH: firstSegments.MSH, ID: messageHeaderID -%} {% evaluate patientId using 'ID/Patient' PID: firstSegments.PID, type: 'First' -%} {% assign fullPatientId = patientId | prepend: 'Patient/' -%} + {% evaluate messageHeaderId using 'ID/MessageHeader' MSH: firstSegments.MSH -%} + + {% if firstSegments.MSH -%} + + {% include 'Resource/MessageHeader' MSH: firstSegments.MSH, ID: messageHeaderId -%} + {% evaluate provenanceId using 'ID/Provenance' MSH: firstSegments.MSH, baseId: patientId -%} + {% include 'Resource/Provenance' Root_Template: 'ADT_A01', MSH: firstSegments.MSH, REF_BUNDLE: bundleID, ID: provenanceId -%} + + {%- comment -%} + {% assign transformation_val = 'provenance_transformation' %} + {% evaluate provenanceOrganizationId using 'ID/Organization', prov_id: firstSegments.MSH -%} + {% evaluate provenanceTransformationId using 'ID/Provenance_transformation' prov_id: transformation_val -%} + {% include 'Resource/Organization' org_name: 'Microsoft Corporation', ID: provenanceOrganizationId -%} + {% include 'Resource/Provenance_transformation' Root_Template: 'ADT_A01', Provenance_Organization_ID: provenanceOrganizationId, REF_MSH: messageHeaderId, provenanceOrganizationId, ID: provenanceTransformationId -%} + {%- endcomment -%} + + {% if firstSegments.MSH.4 -%} + {% if firstSegments.MSH.4.1 != "" and firstSegments.MSH.4.1 != null or firstSegments.MSH.4.2 != "" and firstSegments.MSH.4.2 != null or firstSegments.MSH.4.3 != "" and firstSegments.MSH.4.3 != null -%} + {% evaluate organization_ID_MSH_4 using 'ID/Organization' HD: firstSegments.MSH.4 -%} + {% include 'Resource/Organization' MSHHD1: firstSegments.MSH.4, MSH: firstSegments.MSH, ID: organization_ID_MSH_4 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.MSH.6 %} + {% if firstSegments.MSH.6.1 != "" and firstSegments.MSH.6.1 != null or firstSegments.MSH.6.2 != "" and firstSegments.MSH.6.2 != null or firstSegments.MSH.6.3 != "" and firstSegments.MSH.6.3 != null -%} + {% evaluate organization_Id_MSH_6 using 'ID/Organization' HD: firstSegments.MSH.6 -%} + {% include 'Resource/Organization' MSHHD2: firstSegments.MSH.6, MSH: firstSegments.MSH, ID: organization_Id_MSH_6 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.MSH.22 %} + {% if firstSegments.MSH.22.1 != "" and firstSegments.MSH.22.1 != null -%} + {% evaluate organization_Id_MSH_22 using 'ID/Organization' XON: firstSegments.MSH.22 -%} + {% include 'Resource/Organization' MSHXON1: firstSegments.MSH.22, ID: organization_Id_MSH_22 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.MSH.23 %} + {% if firstSegments.MSH.23.1 != "" and firstSegments.MSH.23.1 != null -%} + {% evaluate organization_Id_MSH_23 using 'ID/Organization' XON: firstSegments.MSH.23 -%} + {% include 'Resource/Organization' MSHXON2: firstSegments.MSH.23, ID: organization_Id_MSH_23 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.3 and firstSegments.MSH.24 %} + {% evaluate device_Id_MSH_3 using 'ID/Device' HD: firstSegments.MSH.3 -%} + {% include 'Resource/Device' MSH: firstSegments.MSH, ID: device_Id_MSH_3 -%} + {% endif -%} + + {% endif -%} + + {% for sftSegment in sftSegmentLists.SFT -%} + {% evaluate deviceId_SFT using 'ID/Device' SFT: sftSegment -%} + {% include 'Resource/Device' SFT:sftSegment, ID: deviceId_SFT -%} + {% include 'Resource/MessageHeader' MSH: firstSegments.MSH, SFT:sftSegment, ID: messageHeaderID -%} + {% endfor -%} + {% include 'Resource/Patient' PID: firstSegments.PID, PD1: firstSegments.PD1, ID: patientId -%} + {% include 'Extensions/Patient/PatientExtension' ID: PatientId, PID: firstSegments.PID, PD1: firstSegments.PD1, PV1: firstSegments.PV1 -%} - {% evaluate practitionerId_ORC_10 using 'ID/Practitioner' XCN: firstSegments.ORC.10 -%} - {% evaluate practitionerId_ORC_11 using 'ID/Practitioner' XCN: firstSegments.ORC.11 -%} - {% evaluate practitionerId_ORC_12 using 'ID/Practitioner' XCN: firstSegments.ORC.12 -%} - {% evaluate practitionerId_PV1_7 using 'ID/Practitioner' XCN: firstSegments.PV1.7 -%} - {% evaluate practitionerId_PV1_8 using 'ID/Practitioner' XCN: firstSegments.PV1.8 -%} - {% evaluate practitionerId_PV1_9 using 'ID/Practitioner' XCN: firstSegments.PV1.9 -%} - {% evaluate practitionerId_PV1_17 using 'ID/Practitioner' XCN: firstSegments.PV1.17 -%} - {% evaluate practitionerId_PV1_52 using 'ID/Practitioner' XCN: firstSegments.PV1.52 -%} - - {% include 'Resource/Practitioner' ORC: firstSegments.ORC, ID: practitionerId_ORC_10 -%} - {% include 'Resource/Practitioner' ORC: firstSegments.ORC, ID: practitionerId_ORC_11 -%} - {% include 'Resource/Practitioner' ORC: firstSegments.ORC, ID: practitionerId_ORC_12 -%} - {% include 'Resource/Practitioner' PV1: firstSegments.PV1, ID: practitionerId_PV1_7 -%} - {% include 'Resource/Practitioner' PV1: firstSegments.PV1, ID: practitionerId_PV1_8 -%} - {% include 'Resource/Practitioner' PV1: firstSegments.PV1, ID: practitionerId_PV1_9 -%} - {% include 'Resource/Practitioner' PV1: firstSegments.PV1, ID: practitionerId_PV1_17 -%} - {% include 'Resource/Practitioner' PV1: firstSegments.PV1, ID: practitionerId_PV1_52 -%} - - {% evaluate accountId using 'ID/Account' CX: firstSegments.PID.3 -%} - {% include 'Resource/Account' PID: firstSegments.PID, ID: accountId -%} - {% include 'Reference/Account/Subject' ID: accountId, REF: fullPatientId -%} - - {% evaluate locationId_ORC_21 using 'ID/Location' XON: firstSegments.ORC.21 -%} - {% evaluate locationId_PV1_3 using 'ID/Location' PL: firstSegments.PV1.3 -%} - {% evaluate locationId_PV1_6 using 'ID/Location' PL: firstSegments.PV1.6 -%} - - {% include 'Resource/Location' ORC: firstSegments.ORC, ID: locationId_ORC_21 -%} - {% include 'Resource/Location' PL: firstSegments.PV1.3, ID: locationId_PV1_3 -%} - {% include 'Resource/Location' PL: firstSegments.PV1.6, ID: locationId_PV1_6 -%} - - {% evaluate provenanceId using 'ID/Provenance' MSH: firstSegments.MSH, baseId: patientId -%} - {% include 'Resource/Provenance' Root_Template: 'ADT_A01', MSH: firstSegments.MSH, ORC: firstSegments.ORC, ID: provenanceId -%} - - {% evaluate encounterId using 'ID/Encounter' PV1: firstSegments.PV1, baseId: patientId -%} - {% include 'Resource/Encounter' PV1: firstSegments.PV1, PV2: firstSegments.PV2, ID: encounterId -%} - {% include 'Reference/Encounter/Subject' ID: encounterId, REF: fullPatientId -%} + {% if firstSegments.PID.18 -%} + {% evaluate accountId using 'ID/Account' CX: firstSegments.PID.3 -%} + {% include 'Resource/Account' PID: firstSegments.PID, ID: accountId -%} + {% include 'Reference/Account/Subject' ID: accountId, REF: fullPatientId -%} + {% if firstSegments.PID.18.4.1 != "" and firstSegments.PID.18.4.1 != null and firstSegments.PID.18.4.2 != "" and firstSegments.PID.18.4.2 != null and firstSegments.PID.18.4.3 != "" and firstSegments.PID.18.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_18 using 'ID/Organization' HDORG: firstSegments.PID.18.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.18, ID: Organization_ID_pid_CX_18 -%} + {% endif -%} + {% for gt1SegmentLists in gt1SegmentLists.GT1 -%} + {% if gt1SegmentLists.11.1.Value == "SEL" -%} + {% include 'Resource/Patient' PID: firstSegments.PID, GT1: gt1SegmentLists, ID: patientId, NK1_PER: nk1SegmentLists.NK1[0] -%} + {% if gt1SegmentLists.2.4.1 != "" and gt1SegmentLists.2.4.1 != null and gt1SegmentLists.2.4.2 != "" and gt1SegmentLists.2.4.2 != null and gt1SegmentLists.2.4.3 != "" and gt1SegmentLists.2.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_2 using 'ID/Organization' HDORG: gt1SegmentLists.2.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.2, ID: Organization_ID_gt1_CX_2 -%} + {% endif -%} + {% if gt1SegmentLists.19.4.1 != "" and gt1SegmentLists.19.4.1 != null and gt1SegmentLists.19.4.2 != "" and gt1SegmentLists.19.4.2 != null and gt1SegmentLists.19.4.3 != "" and gt1SegmentLists.19.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_19 using 'ID/Organization' HDORG: gt1SegmentLists.19.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.19, ID: Organization_ID_gt1_CX_19 -%} + {% endif -%} + {% if gt1SegmentLists.29.4.1 != "" and gt1SegmentLists.29.4.1 != null and gt1SegmentLists.29.4.2 != "" and gt1SegmentLists.29.4.2 != null and gt1SegmentLists.29.4.3 != "" and gt1SegmentLists.29.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_29 using 'ID/Organization' HDORG: gt1SegmentLists.29.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.29, ID: Organization_ID_gt1_CX_29 -%} + {% endif -%} + {% if gt1SegmentLists.51 and nk1SegmentLists.NK1[0].7.1.Value == "E" -%} + {% evaluate Organization_ID_gt1_XON_51 using 'ID/Organization' XON: gt1SegmentLists.51 -%} + {% include 'Resource/Organization', GT1_51: gt1SegmentLists, ID: Organization_ID_gt1_XON_51 -%} + {% assign Organization_GT1_51 = Organization_ID_gt1_XON_51 | prepend: 'Organization/' -%} + {% include 'Reference/Patient/Contact_Organization' REF:Organization_GT1_51 , ID: patientId -%} + {% endif -%} + {% else -%} + {% evaluate gt1relatedPersonId using 'ID/RelatedPerson' GT1: gt1SegmentLists, baseId: patientId -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: gt1relatedPersonId, GT1: gt1SegmentLists -%} + {% if gt1SegmentLists.2.4.1 != "" and gt1SegmentLists.2.4.1 != null and gt1SegmentLists.2.4.2 != "" and gt1SegmentLists.2.4.2 != null and gt1SegmentLists.2.4.3 != "" and gt1SegmentLists.2.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_2 using 'ID/Organization' HDORG: gt1SegmentLists.2.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.2, ID: Organization_ID_gt1_CX_2 -%} + {% endif -%} + {% if gt1SegmentLists.19.4.1 != "" and gt1SegmentLists.19.4.1 != null and gt1SegmentLists.19.4.2 != "" and gt1SegmentLists.19.4.2 != null and gt1SegmentLists.19.4.3 != "" and gt1SegmentLists.19.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_19 using 'ID/Organization' HDORG: gt1SegmentLists.19.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.19, ID: Organization_ID_gt1_CX_19 -%} + {% endif -%} + {% endif -%} + {% if gt1SegmentLists.21 -%} + {% evaluate Organization_ID_gt1_XON_21 using 'ID/Organization' XON: gt1SegmentLists.21 -%} + {% include 'Resource/Organization', GT1: gt1SegmentLists, ID: Organization_ID_gt1_XON_21 -%} + {% if gt1SegmentLists.2.4.1 != "" and gt1SegmentLists.2.4.1 != null and gt1SegmentLists.2.4.2 != "" and gt1SegmentLists.2.4.2 != null and gt1SegmentLists.2.4.3 != "" and gt1SegmentLists.2.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_2 using 'ID/Organization' HDORG: gt1SegmentLists.2.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.2, ID: Organization_ID_gt1_CX_2 -%} + {% endif -%} + {% endif -%} + {% include 'Resource/Account' GT1: gt1SegmentLists, ID: accountId, REF_PATIENT: fullPatientId, REF_RELATED_PERSON: gt1relatedPersonId, REF_ORG: Organization_ID_gt1_XON_21 -%} + {% endfor -%} + + {% endif -%} + + {% if firstSegments.PID.2 -%} + {% if firstSegments.PID.2.4.1 != "" and firstSegments.PID.2.4.1 != null and firstSegments.PID.2.4.2 != "" and firstSegments.PID.2.4.2 != null and firstSegments.PID.2.4.3 != "" and firstSegments.PID.2.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_2 using 'ID/Organization' HDORG: firstSegments.PID.2.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.2, ID: Organization_ID_pid_CX_2 -%} + {% endif -%} + {% endif -%} + {% for pid3 in firstSegments.PID.3.Repeats -%} + {% if pid3.4.1 != "" and pid3.4.1 != null and pid3.4.2 != "" and pid3.4.2 != null and pid3.4.3 != "" and pid3.4.3 != null -%} + {% evaluate Organization_ID_pid_CX using 'ID/Organization' HDORG: pid3.4 -%} + {% include 'Resource/Organization', PID: pid3, ID: Organization_ID_pid_CX -%} + {% endif -%} + {% endfor -%} + {% if firstSegments.PID.4 -%} + {% if firstSegments.PID.4.4.1 != "" and firstSegments.PID.4.4.1 != null and firstSegments.PID.4.4.2 != "" and firstSegments.PID.4.4.2 != null and firstSegments.PID.4.4.3 != "" and firstSegments.PID.4.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_4 using 'ID/Organization' HDORG: firstSegments.PID.4.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.4, ID: Organization_ID_pid_CX_4 -%} + {% endif -%} + {% endif -%} + + {% unless nk1SegmentLists.NK1 -%} + {% if firstSegments.PID.21 -%} + {% if firstSegments.PID.21.4.1 != "" and firstSegments.PID.21.4.1 != null and firstSegments.PID.21.4.2 != "" and firstSegments.PID.21.4.2 != null and firstSegments.PID.21.4.3 != "" and firstSegments.PID.21.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_21 using 'ID/Organization' HDORG: firstSegments.PID.21.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.21, ID: Organization_ID_pid_CX_21 -%} + {% endif -%} + {% evaluate pidrelatedPersonId using 'ID/RelatedPerson' PID: firstSegments.PID, baseId: patientId -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: pidrelatedPersonId, PID: firstSegments.PID -%} + {% endif -%} + {% endunless -%} + {% if firstSegments.PD1.3 -%} + {% evaluate Organization_ID_PD1_3 using 'ID/Organization' XON: firstSegments.PD1.3 -%} + {% include 'Resource/Organization' PD1: firstSegments.PD1, ID: Organization_ID_PD1_3 -%} + {% endif -%} + + {% if firstSegments.PD1.4 -%} + {% if firstSegments.PD1.4.9.1 != "" and firstSegments.PD1.4.9.1 != null and firstSegments.PD1.4.9.2 != "" and firstSegments.PD1.4.9.2 != null and firstSegments.PD1.4.9.3 != "" and firstSegments.PD1.4.9.3 != null -%} + {% evaluate Organization_ID_PD1_4_9 using 'ID/Organization' HDORG: firstSegments.PD1.4.9 -%} + {% include 'Resource/Organization', PD1_4: firstSegments.PD1.4.9, ID: Organization_ID_PD1_4_9 -%} + {% endif -%} + {% evaluate Practitioner_ID_PD1_4 using 'ID/Practitioner' XCN: firstSegments.PD1.4 -%} + {% include 'Resource/Practitioner' PD1: firstSegments.PD1.4, ID: Practitioner_ID_PD1_4 -%} + {% endif -%} + + {% if firstSegments.PV1 -%} + {% if firstSegments.PV1.5 -%} + {% if firstSegments.PV1.5.4.1 != "" and firstSegments.PV1.5.4.1 != null and firstSegments.PV1.5.4.2 != "" and firstSegments.PV1.5.4.2 != null and firstSegments.PV1.5.4.3 != "" and firstSegments.PV1.5.4.3 != null -%} + {% evaluate Organization_ID_PV1_5_4 using 'ID/Organization' HDORG: firstSegments.PV1.5.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.5.4, ID: Organization_ID_PV1_5_4 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PV1.19 -%} + {% if firstSegments.PV1.19.4.1 != "" and firstSegments.PV1.19.4.1 != null and firstSegments.PV1.19.4.2 != "" and firstSegments.PV1.19.4.2 != null and firstSegments.PV1.19.4.3 != "" and firstSegments.PV1.19.4.3 != null -%} + {% evaluate Organization_ID_PV1_19_4 using 'ID/Organization' HDORG: firstSegments.PV1.19.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.19.4, ID: Organization_ID_PV1_19_4 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PV1.7 -%} + {% if firstSegments.PV1.7.9.1 != "" and firstSegments.PV1.7.9.1 != null and firstSegments.PV1.7.9.2 != "" and firstSegments.PV1.7.9.2 != null and firstSegments.PV1.7.9.3 != "" and firstSegments.PV1.7.9.3 != null -%} + {% evaluate Organization_ID_PV1_7_9 using 'ID/Organization' HDORG: firstSegments.PV1.7.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.7.9, ID: Organization_ID_PV1_7_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_7 using 'ID/Practitioner' XCN: firstSegments.PV1.7 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.7, ID: practitionerId_PV1_7 -%} + {% endif -%} + + {% if firstSegments.PV1.8 -%} + {% if firstSegments.PV1.8.9.1 != "" and firstSegments.PV1.8.9.1 != null and firstSegments.PV1.8.9.2 != "" and firstSegments.PV1.8.9.2 != null and firstSegments.PV1.8.9.3 != "" and firstSegments.PV1.8.9.3 != null -%} + {% evaluate Organization_ID_PV1_8_9 using 'ID/Organization' HDORG: firstSegments.PV1.8.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.8.9, ID: Organization_ID_PV1_8_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_8 using 'ID/Practitioner' XCN: firstSegments.PV1.8 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.8, ID: practitionerId_PV1_8 -%} + {% endif -%} + + {% if firstSegments.PV1.9 -%} + {% if firstSegments.PV1.9.9.1 != "" and firstSegments.PV1.9.9.1 != null and firstSegments.PV1.9.9.2 != "" and firstSegments.PV1.9.9.2 != null and firstSegments.PV1.9.9.3 != "" and firstSegments.PV1.9.9.3 != null -%} + {% evaluate Organization_ID_PV1_9_9 using 'ID/Organization' HDORG: firstSegments.PV1.9.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.9.9, ID: Organization_ID_PV1_9_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_9 using 'ID/Practitioner' XCN: firstSegments.PV1.9 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.9, ID: practitionerId_PV1_9 -%} + {% endif -%} + + {% if firstSegments.PV1.17 -%} + {% if firstSegments.PV1.17.9.1 != "" and firstSegments.PV1.17.9.1 != null and firstSegments.PV1.17.9.2 != "" and firstSegments.PV1.17.9.2 != null and firstSegments.PV1.17.9.3 != "" and firstSegments.PV1.17.9.3 != null -%} + {% evaluate Organization_ID_PV1_17_9 using 'ID/Organization' HDORG: firstSegments.PV1.17.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.17.9, ID: Organization_ID_PV1_17_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_17 using 'ID/Practitioner' XCN: firstSegments.PV1.17 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.17, ID: practitionerId_PV1_17 -%} + {% endif -%} + + {% if firstSegments.PV1.50 -%} + {% for p in firstSegments.PV1.50.Repeats -%} + {% if p.4.1 != "" and p.4.1 != null and p.4.2 != "" and p.4.2 != null and p.4.3 != "" and p.4.3 != null -%} + {% evaluate Organization_ID_PV1_50_4 using 'ID/Organization' HDORG: p.4 -%} + {% include 'Resource/Organization', PV1: p.4, ID: Organization_ID_PV1_50_4 -%} + {% endif -%} + {% endfor -%} + {% endif -%} + + {% if firstSegments.PV1.52 -%} + {% if firstSegments.PV1.52.9.1 != "" and firstSegments.PV1.52.9.1 != null and firstSegments.PV1.52.9.2 != "" and firstSegments.PV1.52.9.2 != null and firstSegments.PV1.52.9.3 != "" and firstSegments.PV1.52.9.3 != null -%} + {% evaluate Organization_ID_PV1_52_9 using 'ID/Organization' HDORG: firstSegments.PV1.52.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.52.9, ID: Organization_ID_PV1_52_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_52 using 'ID/Practitioner' XCN: firstSegments.PV1.52 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.52, ID: practitionerId_PV1_52 -%} + {% endif -%} + + {% if firstSegments.PV2.13 -%} + {% if firstSegments.PV2.13.9.1 != "" and firstSegments.PV2.13.9.1 != null and firstSegments.PV2.13.9.2 != "" and firstSegments.PV2.13.9.2 != null and firstSegments.PV2.13.9.3 != "" and firstSegments.PV2.13.9.3 != null -%} + {% evaluate Organization_ID_PV2_13_9 using 'ID/Organization' HDORG: firstSegments.PV2.13.9 -%} + {% include 'Resource/Organization', PV2: firstSegments.PV2.13.9, ID: Organization_ID_PV2_13_9 -%} + {% endif -%} + {% evaluate practitionerId_PV2_13 using 'ID/Practitioner' XCN: firstSegments.PV2.13 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV2.13, ID: practitionerId_PV2_13 -%} + {% endif -%} + + {% if firstSegments.PV1.3 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.3-%} + {% endif -%} + + {% if firstSegments.PV1.6 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.6 -%} + {% endif -%} + + {% if firstSegments.PV1.37 -%} + {% evaluate location_ID_PV1_37 using 'ID/Location' DLD: firstSegments.PV1.37 -%} + {% include 'Resource/Location' PV1: firstSegments.PV1.37, ID: location_ID_PV1_37-%} + {% endif -%} + + {% if firstSegments.PV1.42 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.42-%} + {% endif -%} + + {% if firstSegments.PV1.43 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.43-%} + {% endif -%} + + {% if firstSegments.PV2.1 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV2.1-%} + {% endif -%} + + {% if firstSegments.PV1.54 -%} + {% if firstSegments.PV1.54.4.1 != "" and firstSegments.PV1.54.4.1 != null and firstSegments.PV1.54.4.2 != "" and firstSegments.PV1.54.4.2 != null and firstSegments.PV1.54.4.3 != "" and firstSegments.PV1.54.4.3 != null -%} + {% evaluate Organization_ID_PV1_54_4 using 'ID/Organization' HDORG: firstSegments.PV1.54.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.54.4, ID: Organization_ID_PV1_54_4 -%} + {% endif -%} + {% evaluate EpisodeOfCare_ID using 'ID/EpisodeOfCare' PV1: firstSegments.PV1.54 -%} + {% include 'Resource/EpisodeOfCare' PV1: firstSegments.PV1, ID: EpisodeOfCare_ID, patientRefrenceID: fullPatientId -%} + {% endif -%} + + {% evaluate encounterId using 'ID/Encounter' PV1: firstSegments.PV1, baseId: patientId -%} + {% include 'Resource/Encounter' Root_Template: 'ADT_A01', PV1: firstSegments.PV1, PV2: firstSegments.PV2, ID: encounterId -%} + {% include 'Reference/Encounter/Subject' ID: encounterId, REF: fullPatientId -%} + {% include 'Extensions/Encounter/EncounterExtension' ID: encounterId, PV1: firstSegments.PV1, PV2: firstSegments.PV2, -%} + {% endif -%} + + {% if firstSegments.EVN -%} + {% evaluate provenanceId using 'ID/Provenance' EVN: firstSegments.EVN, baseId: patientId -%} + {% include 'Resource/Provenance' EVN: firstSegments.EVN, EVNTEXT: firstSegments.MSH.9, REF_BUNDLE: bundleID, ID: provenanceId -%} + {% if firstSegments.EVN.5 -%} + {% if firstSegments.EVN.5.9.1 != "" and firstSegments.EVN.5.9.1 != null and firstSegments.EVN.5.9.2 != "" and firstSegments.EVN.5.9.2 != null and firstSegments.EVN.5.9.3 != "" and firstSegments.EVN.5.9.3 != null -%} + {% evaluate Organization_ID_EVN_5_9 using 'ID/Organization' HDORG: firstSegments.EVN.5.9 -%} + {% include 'Resource/Organization', EVN: firstSegments.EVN.5.9, ID: Organization_ID_EVN_5_9 -%} + {% endif -%} + {% evaluate practitionerId_EVN_5 using 'ID/Practitioner' XCN: firstSegments.EVN.5 -%} + {% include 'Resource/Practitioner' EVN: firstSegments.EVN.5, ID: practitionerId_EVN_5 -%} + {% if firstSegments.EVN.7 -%} + {% evaluate locationId_EVN_7 using 'ID/Location' HD: firstSegments.EVN.7 -%} + {% include 'Resource/Location' EVN: firstSegments.EVN.7, ID: locationId_EVN_7 -%} + {% endif -%} + {% endif -%} + {% endif -%} + {% for pr1Segment in pr1SegmentLists.PR1 -%} - {% evaluate locationId_PR1_23 using 'ID/Location' PL: pr1Segment.23 -%} - {% include 'Resource/Location' PL: pr1Segment.23, ID: locationId_PR1_23 -%} + {% if pr1Segment.8 -%} + {% if pr1Segment.8.9.1 != "" and pr1Segment.8.9.1 != null and pr1Segment.8.9.2 != "" and pr1Segment.8.9.2 != null and pr1Segment.8.9.3 != "" and pr1Segment.8.9.3 != null -%} + {% evaluate Organization_ID_PR1_8 using 'ID/Organization' HDORG: pr1Segment.8.9 -%} + {% include 'Resource/Organization', PR1: pr1Segment.8.9, ID: Organization_ID_PR1_8 -%} + {% endif -%} + {% evaluate practitionerId_PR1_8 using 'ID/Practitioner' XCN: pr1Segment.8 -%} + {% include 'Resource/Practitioner' PR1: pr1Segment.8, ID: practitionerId_PR1_8 -%} + {% endif -%} + + {% if pr1Segment.11 -%} + {% if pr1Segment.11.9.1 != "" and pr1Segment.11.9.1 != null and pr1Segment.11.9.2 != "" and pr1Segment.11.9.2 != null and pr1Segment.11.9.3 != "" and pr1Segment.11.9.3 != null -%} + {% evaluate Organization_ID_PR1_11 using 'ID/Organization' HDORG: pr1Segment.11.9 -%} + {% include 'Resource/Organization', PR1: pr1Segment.11.9, ID: Organization_ID_PR1_11 -%} + {% endif -%} + {% evaluate practitionerId_PR1_11 using 'ID/Practitioner' XCN: pr1Segment.11 -%} + {% include 'Resource/Practitioner' PR1: pr1Segment.11, ID: practitionerId_PR1_11 -%} + {% endif -%} + + {% if pr1Segment.12 -%} + {% if pr1Segment.12.9.1 != "" and pr1Segment.12.9.1 != null and pr1Segment.12.9.2 != "" and pr1Segment.12.9.2 != null and pr1Segment.12.9.3 != "" and pr1Segment.12.9.3 != null -%} + {% evaluate Organization_ID_PR1_12 using 'ID/Organization' HDORG: pr1Segment.12.9 -%} + {% include 'Resource/Organization', PR1: pr1Segment.12.9, ID: Organization_ID_PR1_12 -%} + {% endif -%} + {% evaluate practitionerId_PR1_12 using 'ID/Practitioner' XCN: pr1Segment.12 -%} + {% include 'Resource/Practitioner' PR1: pr1Segment.12, ID: practitionerId_PR1_12 -%} + {% endif -%} + + {% if pr1Segment.23.1 -%} + {% evaluate Location_ID_PR1_23_1 using 'ID/Location' PL: pr1Segment.23.1 -%} + {% include 'Resource/PLLocation' PL_1: pr1Segment.23.1, ID: Location_ID_PR1_23_1-%} + {% else %} + {% if pr1Segment.23.2 %} + {% evaluate Location_ID_PR1_23_2 using 'ID/Location' PL: pr1Segment.23.2 -%} + {% include 'Resource/PLLocation' PL_2: pr1Segment.23.2, ID: Location_ID_PR1_23_2-%} + {% endif %} + {% endif %} + + {% if pr1Segment.25 -%} + {% evaluate Procedure_ID_PR1_25 using 'ID/Procedure' PR1: pr1Segment.25, baseId: fullPatientId -%} + {% include 'Resource/Procedure' PR1_25: pr1Segment.25, PV1: firstSegments.PV1, Procedure_Subject_ID: fullPatientId, ID: Procedure_ID_PR1_25 -%} + {% endif -%} {% evaluate procedureId using 'ID/Procedure' PR1: pr1Segment, baseId: patientId -%} - {% include 'Resource/Procedure' PR1: pr1Segment, Procedure_Subject_ID: fullPatientId, ID: procedureId -%} + {% include 'Resource/Procedure' PR1: pr1Segment, PV1: firstSegments.PV1, Procedure_Subject_ID: fullPatientId, ID: procedureId -%} {% endfor -%} {% for nk1Segment in nk1SegmentLists.NK1 -%} - {% evaluate organizationId_NK1_13 using 'ID/Organization' XON: nk1Segment.13 -%} - {% include 'Resource/Organization' NK1: nk1Segment, ID: organizationId_NK1_13 -%} - - {% include 'Resource/Patient' NK1: nk1Segment, ID: patientId -%} + {% evaluate relatedPersonId using 'ID/RelatedPerson' NK1: nk1Segment, baseId: patientId -%} + {% if nk1Segment.13 -%} + {% evaluate organizationId_NK1_13 using 'ID/Organization' XON: nk1Segment.13 -%} + {% include 'Resource/Organization' NK1: nk1Segment, ID: organizationId_NK1_13 -%} + {% assign Organization_NK1_13 = organizationId_NK1_13 | prepend: 'Organization/' -%} + {% include 'Reference/Patient/Contact_Organization' REF:Organization_NK1_13 , ID: patientId -%} + {% endif -%} + {% unless nk1Segment.3.1.Value == "EMR" or nk1Segment.3.1.Value == "CGV" or nk1Segment.7.1.Value == "E" or nk1Segment.7.1.Value =="F" or nk1Segment.7.1.Value == "I" or nk1Segment.7.1.Value =="S" -%} + {% include 'Resource/Patient' NK1: nk1Segment, ID: patientId -%} + {% include 'Resource/RelatedPerson' NK1: nk1Segment, RelatedPerson_Patient_ID: fullPatientId, ID: relatedPersonId, PID: firstSegments.PID -%} + {% include 'Extensions/RelatedPerson/RelatedPerson' ID: relatedPersonId, NK1: nk1Segment -%} + {% if nk1Segment.12.4.1 != "" and nk1Segment.12.4.1 != null and nk1Segment.12.4.2 != "" and nk1Segment.12.4.2 != null and nk1Segment.12.4.3 != "" and nk1Segment.12.4.3 != null -%} + {% evaluate Organization_ID_nk_CX_12 using 'ID/Organization' HDORG: nk1Segment.12.4 -%} + {% include 'Resource/Organization', NK1_12: nk1Segment.12, ID: Organization_ID_nk_CX_12 -%} + {% endif -%} + {% endunless -%} + {% if firstSegments.PID.21 -%} + {% include 'Resource/RelatedPerson' ID: relatedPersonId, PID: firstSegments.PID, RelatedPerson_Patient_ID: fullPatientId -%} + {% if firstSegments.PID.21.4.1 != "" and firstSegments.PID.21.4.1 != null and firstSegments.PID.21.4.2 != "" and firstSegments.PID.21.4.2 != null and firstSegments.PID.21.4.3 != "" and firstSegments.PID.21.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_21 using 'ID/Organization' HDORG: firstSegments.PID.21.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.21, ID: Organization_ID_pid_CX_21 -%} + {% endif -%} + {% endif -%} - {% evaluate relatedPersonId using 'ID/RelatedPerson' NK1: nk1Segment, baseId: patientId -%} - {% include 'Resource/RelatedPerson' NK1: nk1Segment, RelatedPerson_Patient_ID: fullPatientId, ID: relatedPersonId -%} + {% for nk33 in nk1Segment.33.Repeats -%} + {% if nk33.4.1 != "" and nk33.4.1 != null and nk33.4.2 != "" and nk33.4.2 != null and nk33.4.3 != "" and nk33.4.3 != null -%} + {% evaluate Organization_ID_nk_CX_33 using 'ID/Organization' HDORG: nk33.4 -%} + {% include 'Resource/Organization', NK1_33: nk33, ID: Organization_ID_nk_CX_33 -%} + {% endif -%} + {% endfor -%} {% endfor -%} - {% for obxSegment in obxSegmentLists.OBX -%} - {% evaluate organizationId_OBX_23 using 'ID/Organization' XON: obxSegment.23 -%} - {% if obxSegment.24 or obxSegment.25 -%} - {% include 'Resource/Organization' OBX: obxSegment, ID: organizationId_OBX_23 -%} + {% for db1Segment in db1SegmentLists.DB1 -%} + {% if db1Segment.2.1.Value == "PT" %} + {% for db in db1Segment.3.Repeats -%} + {% if db.4.1 != "" and db.4.1 != null and db.4.2 != "" and db.4.2 != null and db.4.3 != "" and db.4.3 != null -%} + {% evaluate Organization_ID_DB1_3 using 'ID/Organization' HDORG: db.4 -%} + {% include 'Resource/Organization', DB1: db.4, ID: Organization_ID_DB1_3 -%} + {% endif -%} + {% endfor %} + {% include 'Extensions/Patient/PatientExtension' ID: PatientId, DB1: db1Segment -%} {% endif -%} + {% include 'Resource/Patient' DB1: db1Segment, ID: patientId -%} + {% endfor %} - {% evaluate practitionerId_OBX_16 using 'ID/Practitioner' XCN: obxSegment.16 -%} - {% if obxSegment.16 -%} - {% include 'Resource/Practitioner' OBX: obxSegment, ID: practitionerId_OBX_16 -%} + {% for obxSegment in obxSegmentLists.OBX -%} + + {% for obx_16 in obxSegment.16.Repeats -%} + {% if obx_16.9.1 != "" and obx_16.9.1 != null and obx_16.9.2 != "" and obx_16.9.2 != null and obx_16.9.3 != "" and obx_16.9.3 != null -%} + {% evaluate Organization_ID_OBX_16 using 'ID/Organization' HDORG: obx_16.9 -%} + {% include 'Resource/Organization' OBX: obx_16.9, ID: Organization_ID_OBX_16 -%} {% endif -%} + {% evaluate practitionerId_OBX_16 using 'ID/Practitioner' XCN: obx_16 -%} + {% include 'Resource/Practitioner' OBX: obxSegment, OBXXCN1: obx_16, ID: practitionerId_OBX_16 -%} + {% evaluate practitionerRoleId_OBX_16 using 'ID/PractitionerRole' XCN: obx_16 -%} + {% assign full_practitionerId_OBX_16 = practitionerId_OBX_16 | prepend: 'Practitioner/' %} + {% include 'Resource/PractitionerRole' OBXXCN1: obx_16, ID: practitionerRoleId_OBX_16 -%} + {% include 'Reference/PractitionerRole/Practitioner' REF: full_practitionerId_OBX_16, ID: practitionerRoleId_OBX_16 -%} + {% endfor %} + + {% if obxSegment.18 -%} + {% evaluate deviceId_OBX_18 using 'ID/Device' EI: obxSegment.18.Repeats[0] -%} + {% include 'Resource/Device' EI_OBX18: obxSegment.18, ID: deviceId_OBX_18 -%} + {% endif -%} + {% if obxSegment.23 or obxSegment.25 %} {% evaluate practitionerRoleId_OBX_25 using 'ID/PractitionerRole' XCN: obxSegment.25 -%} - {% if obxSegment.16 or obxSegment.23 or obxSegment.25 -%} - {% include 'Resource/PractitionerRole' OBX: obxSegment, ID: practitionerRoleId_OBX_25 -%} + {% endif %} + {% if obxSegment.25 -%} + {% evaluate practitionerId_OBX_25 using 'ID/Practitioner' XCN: obxSegment.25 -%} + {% include 'Resource/Practitioner' OBX: obxSegment, OBXXCN2: obxSegment.25, ID: practitionerId_OBX_25 -%} + {% assign full_practitionerId_OBX_25 = practitionerId_OBX_25 | prepend: 'Practitioner/' %} + {% include 'Resource/PractitionerRole' OBXXCN2: obxSegment.25, ID: practitionerRoleId_OBX_25 -%} + + {% include 'Reference/PractitionerRole/Practitioner' REF: full_practitionerId_OBX_25, ID: practitionerRoleId_OBX_25 -%} {% endif -%} - - {% evaluate deviceId_OBX_18 using 'ID/Device' HD: obxSegment.18 -%} - {% if obxSegment.18 -%} - {% include 'Resource/Device' OBX: obxSegment, ID: deviceId_OBX_18 -%} + {% if obxSegment.23 -%} + {% evaluate organizationId_OBX_23 using 'ID/Organization' XON: obxSegment.23 -%} + {% include 'Resource/Organization' OBX_23: obxSegment.23, OBX_24: obxSegment.24, ID: organizationId_OBX_23 -%} + {% if obxSegment.25 -%} + {% assign full_organizationId_OBX_23 = organizationId_OBX_23 | prepend: 'Organization/' %} + {% include 'Reference/PractitionerRole/Organization' REF: full_organizationId_OBX_23, ID: practitionerRoleId_OBX_25 -%} {% endif -%} + {% endif -%} - {% evaluate observationId using 'ID/Observation' OBX: obxSegment, baseId: patientId -%} - {% include 'Resource/Observation' OBX: obxSegment, Observation_Subject_ID: fullPatientId, ID: observationId -%} - {% endfor -%} + {% evaluate observationId using 'ID/Observation' OBX: obxSegment, baseId: patientId -%} + + {% include 'Resource/Observation' OBX: obxSegment, Observation_Subject_ID: fullPatientId, ID: observationId -%} + {% include 'Extensions/Observation/ObservationExtension' OBX: obxSegment, ID: observationId %} + {% endfor -%} {% for al1Segment in al1SegmentLists.AL1 -%} {% evaluate allergyIntoleranceId using 'ID/AllergyIntolerance' AL1: al1Segment, baseId: patientId -%} @@ -109,14 +472,162 @@ {% endfor -%} {% for dg1Segment in dg1SegmentLists.DG1 -%} - {% evaluate practitionerId_DG1_16 using 'ID/Practitioner' XCN: dg1Segment.16 -%} - {% include 'Resource/Practitioner' DG1: dg1Segment, ID: practitionerId_DG1_16 -%} - + {% if dg1Segment.16.Repeats[0] %} + {% if dg1Segment.16.Repeats[0].9.1 != "" and dg1Segment.16.Repeats[0].9.1 != null and dg1Segment.16.Repeats[0].9.2 != "" and dg1Segment.16.Repeats[0].9.2 != null and dg1Segment.16.Repeats[0].9.3 != "" and dg1Segment.16.Repeats[0].9.3 != null -%} + {% evaluate Organization_ID_DG1_16 using 'ID/Organization' HDORG: dg1Segment.16.Repeats[0].9 -%} + {% include 'Resource/Organization', DG1: dg1Segment.16.Repeats[0].9, ID: Organization_ID_DG1_16 -%} + {% endif -%} + {% evaluate practitionerId_DG1_16 using 'ID/Practitioner' XCN: dg1Segment.16.Repeats[0] -%} + {% include 'Resource/Practitioner' DG1: dg1Segment, ID: practitionerId_DG1_16 -%} + {% endif -%} + {% evaluate conditionId using 'ID/Condition' DG1: dg1Segment, baseId: patientId -%} - {% include 'Resource/Condition' DG1: dg1Segment, Condition_Subject_ID: fullPatientId, ID: conditionId -%} + {% include 'Resource/Condition' DG1: dg1Segment, Condition_Subject_ID: fullPatientId, baseId: patientId, ID: conditionId -%} + + {% if encounterId -%} + {% include 'Resource/Encounter' DG1: dg1Segment, conditionId: conditionId, ID: encounterId -%} + {% endif %} + {% if EpisodeOfCare_ID %} + {% include 'Resource/EpisodeOfCare' DG1: dg1Segment, conditionId: conditionId, ID: EpisodeOfCare_ID -%} + {% endif %} + {% if dg1Segment.22 -%} + {% evaluate conditionId_DG1_22 using 'ID/Condition' DG1: dg1Segment.22, baseId: patientId -%} + {% include 'Resource/Condition' DG1_22: dg1Segment.22, Condition_Subject_ID_DG1_22: fullPatientId, ID: conditionId_DG1_22 -%} + {% endif -%} + {% include 'Extensions/Condition/ConditionExtension' DG1: dg1Segment, ID_DG1_22:conditionId_DG1_22, ID: conditionId %} + + {% endfor -%} + + {% for rf1Segment in rf1SegmentLists.RF1 -%} + {% if rf1Segment.19 -%} + {% evaluate Organization_ID_RF1_19 using 'ID/Organization' XON: rf1Segment.19 -%} + {% include 'Resource/Organization' RF1: rf1Segment.19, ID: Organization_ID_RF1_19 -%} + {% endif -%} + + {% if rf1Segment.20 -%} + {% if rf1Segment.20.9.1 != "" and rf1Segment.20.9.1 != null and rf1Segment.20.9.2 != "" and rf1Segment.20.9.2 != null and rf1Segment.20.9.3 != "" and rf1Segment.20.9.3 != null -%} + {% evaluate Organization_ID_RF1_20_9 using 'ID/Organization' HDORG: rf1Segment.20.9 -%} + {% include 'Resource/Organization', RF1_20: rf1Segment.20.9, ID: Organization_ID_RF1_20_9 -%} + {% endif -%} + {% evaluate Practitioner_ID_RF1_20 using 'ID/Practitioner' XCN: rf1Segment.20 -%} + {% include 'Resource/Practitioner' RF1: rf1Segment.20, ID: Practitioner_ID_RF1_20 -%} + {% endif -%} + + {% evaluate serviceRequestId using 'ID/ServiceRequest' RF1: rf1Segment, baseId: patientId -%} + {% include 'Resource/ServiceRequest' RF1: rf1Segment, ID: serviceRequestId, ServiceRequest_Subject_ID: fullPatientId -%} + {% endfor -%} + + {% for in1Segment in in1SegmentLists.IN1 -%} + + {% evaluate coverageId using 'ID/Coverage' CX: in1Segment -%} + {% include 'Resource/Coverage' IN1: in1Segment, ID: coverageId -%} + {% include 'Reference/Coverage/Beneficiary' ID: coverageId, REF: fullPatientId -%} + + {% for in1_49 in in1Segment.49.Repeats -%} + {% if in1_49.4.1 != "" and in1_49.4.1 != null and in1_49.4.2 != "" and in1_49.4.2 != null and in1_49.4.3 != "" and in1_49.4.3 != null -%} + {% evaluate Organization_ID_in1_CX_49 using 'ID/Organization' HDORG: in1_49.4 -%} + {% include 'Resource/Organization', IN1_49: in1_49, ID: Organization_ID_in1_CX_49 -%} + {% endif -%} + {% endfor -%} + + {% for in1_3 in in1Segment.3.Repeats -%} + {% if in1_3.4.1 != "" and in1_3.4.1 != null and in1_3.4.2 != "" and in1_3.4.2 != null and in1_3.4.3 != "" and in1_3.4.3 != null -%} + {% evaluate Organization_ID_in1_CX_3 using 'ID/Organization' HDORG: in1_3.4 -%} + {% include 'Resource/Organization', IN1_3: in1_3, ID: Organization_ID_in1_CX_3 -%} + {% endif -%} + {% endfor -%} + + {% for in1_10 in in1Segment.10.Repeats -%} + {% if in1_10.4.1 != "" and in1_10.4.1 != null and in1_10.4.2 != "" and in1_10.4.2 != null and in1_10.4.3 != "" and in1_10.4.3 != null -%} + {% evaluate Organization_ID_in1_CX_10 using 'ID/Organization' HDORG: in1_10.4 -%} + {% include 'Resource/Organization', IN1_10: in1_10, ID: Organization_ID_in1_CX_10 -%} + {% endif -%} + {% endfor -%} + + {% if in1Segment.4 -%} + {% evaluate Organization_ID_in1_4 using 'ID/Organization' XON: in1Segment.4 -%} + {% else -%} + {% evaluate Organization_ID_in1_4 using 'ID/Organization' CX: in1Segment -%} + {% endif -%} + {% if Organization_ID_in1_4 -%} + {% include 'Resource/Organization', IN1: in1Segment, ID: Organization_ID_in1_4 -%} + {% assign org_in1_4 = Organization_ID_in1_4 | prepend: 'Organization/' -%} + {% include 'Reference/Coverage/Payor' ID: coverageId, REF: org_in1_4 -%} + {% endif -%} + + {% if in1Segment.11 -%} + {% evaluate Organization_ID_in1_11 using 'ID/Organization' XON: in1Segment.11 -%} + {% else -%} + {% evaluate Organization_ID_in1_11 using 'ID/Organization' CX_IN1: in1Segment -%} + {% endif -%} + {% if Organization_ID_in1_11 -%} + {% include 'Resource/Organization', IN1_11: in1Segment, ID: Organization_ID_in1_11 -%} + {% assign org_in1_11 = Organization_ID_in1_11 | prepend: 'Organization/' -%} + {% include 'Reference/Coverage/PolicyHolder' ID: coverageId, REF: org_in1_11 -%} + {% endif -%} + + {% if in1Segment.17.1.Value == "SEL" -%} + {% include 'Resource/Patient' PID_IN1: firstSegments.PID, IN1: in1Segment, ID: patientId -%} + {% include 'Reference/Coverage/Subscriber' ID: coverageId, REF: fullPatientId -%} + {% endif -%} + {% unless in1Segment.17.1.Value == "SEL" or in1Segment.17.Value == "" -%} + {% evaluate in1relatedPersonId using 'ID/RelatedPerson' IN1: in1Segment, baseId: patientId -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: in1relatedPersonId, IN1: in1Segment -%} + {% assign rel_in1_17 = in1relatedPersonId | prepend: 'RelatedPerson/' -%} + {% include 'Reference/Coverage/Subscriber' ID: coverageId, REF: rel_in1_17 -%} + {% endunless -%} + + {% for in2Segment in in2SegmentLists.IN2 -%} + {% if in1Segment.17.1.Value == "SEL" -%} + {% include 'Resource/Patient' IN2: in2Segment, ID: patientId -%} + {% endif -%} + {% unless in1Segment.17.1.Value == "SEL" or in1Segment.17.Value == "" -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: in1relatedPersonId, IN2: in2Segment -%} + {% endunless -%} + + {% unless in1Segment.10 and in1Segment.11 -%} + {% if in2Segment.3 -%} + {% evaluate in2relatedPersonId using 'ID/RelatedPerson' IN2: in2Segment, baseId: patientId -%} + {% if in2Segment.3.9.1 != "" and in2Segment.3.9.1 != null and in2Segment.3.9.2 != "" and in2Segment.3.9.2 != null and in2Segment.3.9.3 != "" and in2Segment.3.9.3 != null -%} + {% evaluate Organization_ID_IN2_3_9 using 'ID/Organization' HDORG: in2Segment.3.9 -%} + {% include 'Resource/Organization', IN2_3: in2Segment.3.9, ID: Organization_ID_IN2_3_9 -%} + {% endif -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: in2relatedPersonId, IN2_3: in2Segment -%} + {% assign relatedperson_3 = in2relatedPersonId | prepend: 'RelatedPerson/' -%} + {% include 'Reference/Coverage/PolicyHolder' ID: coverageId, REF: relatedperson_3 -%} + {% endif -%} + {% endunless -%} + + {% if in1Segment.10 == null and in1Segment.11 == null and in2Segment.3 == null -%} + {% if in2Segment.70 -%} + {% evaluate organization_Id_IN2_70 using 'ID/Organization' XON: in2Segment.70 -%} + {% include 'Resource/Organization' IN2_70: in2Segment, ID: organization_Id_IN2_70 -%} + {% assign org_in2_70 = organization_Id_IN2_70 | prepend: 'Organization/' -%} + {% include 'Reference/Coverage/PolicyHolder' ID: coverageId, REF: org_in2_70 -%} + {% endif -%} + {% endif -%} + + {% if Organization_ID_in1_11 -%} + {% include 'Resource/Organization', IN2_49: in2Segment, ID: Organization_ID_in1_11 -%} + {% endif -%} + {% include 'Resource/Coverage' IN2: in2Segment, ID: coverageId -%} + {% include 'Resource/Patient' IN2_6: in2Segment, ID: patientId -%} + + {% for in2_1 in in2Segment.1.Repeats -%} + {% if in2_1.4.1 != "" and in2_1.4.1 != null and in2_1.4.2 != "" and in2_1.4.2 != null and in2_1.4.3 != "" and in2_1.4.3 != null -%} + {% evaluate Organization_ID_in2_CX_1 using 'ID/Organization' HDORG: in2_1.4 -%} + {% include 'Resource/Organization', IN2_1: in2_1, ID: Organization_ID_in2_CX_1 -%} + {% endif -%} + {% endfor -%} + {% if in2Segment.61 -%} + {% if in2Segment.61.4.1 != "" and in2Segment.61.4.1 != null and in2Segment.61.4.2 != "" and in2Segment.61.4.2 != null and in2Segment.61.4.3 != "" and in2Segment.61.4.3 != null -%} + {% evaluate Organization_ID_in2_CX_61 using 'ID/Organization' HDORG: in2Segment.61.4 -%} + {% include 'Resource/Organization', IN2_61: in2Segment.61, ID: Organization_ID_in2_CX_61 -%} + {% endif -%} + {% endif -%} + {% endfor -%} - {% assign fullConditionId = conditionId | prepend: 'Condition/' -%} - {% include 'Reference/Encounter/Diagnosis_Condition' ID: encounterId, REF: fullConditionId -%} {% endfor -%} + ] } \ No newline at end of file diff --git a/data/Templates/Hl7v2/ADT_A02.liquid b/data/Templates/Hl7v2/ADT_A02.liquid new file mode 100644 index 000000000..afed1d6d4 --- /dev/null +++ b/data/Templates/Hl7v2/ADT_A02.liquid @@ -0,0 +1,328 @@ +{% assign firstSegments = hl7v2Data | get_first_segments: 'PID|PD1|PV1|PV2|ARV|MSH|EVN' -%} +{% assign sftSegmentLists = hl7v2Data | get_segment_lists: 'SFT' -%} +{% assign uacSegmentLists = hl7v2Data | get_segment_lists: 'UAC' -%} +{% assign obxSegmentLists = hl7v2Data | get_segment_lists: 'OBX' -%} +{% assign rolSegmentLists = hl7v2Data | get_segment_lists: 'ROL' -%} +{% assign db1SegmentLists = hl7v2Data | get_segment_lists: 'DB1' -%} +{% assign pdaSegmentLists = hl7v2Data | get_segment_lists: 'PDA' -%} +{% evaluate bundleID using 'ID/Bundle' Data: firstSegments.MSH.10 -%} + +{ + "resourceType": "Bundle", + "type": "batch", + {% if firstSegments.MSH.7 -%} + "timestamp":"{{ firstSegments.MSH.7.Value | format_as_date_time }}", + {% endif -%} + "identifier": + { + "value":"{{ firstSegments.MSH.10.Value }}", + }, + "id":"{{ bundleID }}", + "entry": [ + + {% evaluate patientId using 'ID/Patient' PID: firstSegments.PID, type: 'First' -%} + {% assign fullPatientId = patientId | prepend: 'Patient/' -%} + {% evaluate messageHeaderId using 'ID/MessageHeader' MSH: firstSegments.MSH -%} + + {% if firstSegments.MSH -%} + {% include 'Resource/MessageHeader' MSH: firstSegments.MSH, ID: messageHeaderId -%} + {% evaluate provenanceId using 'ID/Provenance' MSH: firstSegments.MSH, baseId: patientId -%} + {% include 'Resource/Provenance' Root_Template: 'ADT_A02', MSH: firstSegments.MSH, REF_BUNDLE: bundleID, ID: provenanceId -%} + + {%- comment -%} + {% assign transformation_val = 'provenance_transformation' %} + {% evaluate provenanceOrganizationId using 'ID/Organization', prov_id: firstSegments.MSH -%} + {% evaluate provenanceTransformationId using 'ID/Provenance_transformation' prov_id: transformation_val -%} + {% include 'Resource/Organization' org_name: 'Microsoft Corporation', ID: provenanceOrganizationId -%} + {% include 'Resource/Provenance_transformation' Root_Template: 'ADT_A02', Provenance_Organization_ID: provenanceOrganizationId, REF_MSH: messageHeaderId, provenanceOrganizationId, ID: provenanceTransformationId -%} + {%- endcomment -%} + + {% if firstSegments.MSH.4 -%} + {% if firstSegments.MSH.4.1 != "" and firstSegments.MSH.4.1 != null or firstSegments.MSH.4.2 != "" and firstSegments.MSH.4.2 != null or firstSegments.MSH.4.3 != "" and firstSegments.MSH.4.3 != null -%} + {% evaluate organization_ID_MSH_4 using 'ID/Organization' HD: firstSegments.MSH.4 -%} + {% include 'Resource/Organization' MSHHD1: firstSegments.MSH.4, MSH: firstSegments.MSH, ID: organization_ID_MSH_4 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.6 %} + {% if firstSegments.MSH.6.1 != "" and firstSegments.MSH.6.1 != null or firstSegments.MSH.6.2 != "" and firstSegments.MSH.6.2 != null or firstSegments.MSH.6.3 != "" and firstSegments.MSH.6.3 != null -%} + {% evaluate organization_Id_MSH_6 using 'ID/Organization' HD: firstSegments.MSH.6 -%} + {% include 'Resource/Organization' MSHHD2: firstSegments.MSH.6, MSH: firstSegments.MSH, ID: organization_Id_MSH_6 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.22 %} + {% if firstSegments.MSH.22.1 != "" and firstSegments.MSH.22.1 != null -%} + {% evaluate organization_Id_MSH_22 using 'ID/Organization' XON: firstSegments.MSH.22 -%} + {% include 'Resource/Organization' MSHXON1: firstSegments.MSH.22, ID: organization_Id_MSH_22 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.23 %} + {% if firstSegments.MSH.23.1 != "" and firstSegments.MSH.23.1 != null -%} + {% evaluate organization_Id_MSH_23 using 'ID/Organization' XON: firstSegments.MSH.23 -%} + {% include 'Resource/Organization' MSHXON2: firstSegments.MSH.23, ID: organization_Id_MSH_23 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.3 and firstSegments.MSH.24 %} + {% evaluate device_Id_MSH_3 using 'ID/Device' HD: firstSegments.MSH.3 -%} + {% include 'Resource/Device' MSH: firstSegments.MSH, ID: device_Id_MSH_3 -%} + {% endif -%} + {% endif -%} + + {% for sftSegment in sftSegmentLists.SFT -%} + {% evaluate deviceId_SFT using 'ID/Device' SFT: sftSegment -%} + {% include 'Resource/Device' SFT:sftSegment, ID: deviceId_SFT -%} + {% include 'Resource/MessageHeader' MSH: firstSegments.MSH, SFT:sftSegment, ID: messageHeaderID -%} + {% endfor -%} + + {% include 'Resource/Patient' PID: firstSegments.PID, PD1: firstSegments.PD1, ID: patientId -%} + {% include 'Extensions/Patient/PatientExtension' ID: PatientId, PID: firstSegments.PID, PD1: firstSegments.PD1, PV1: firstSegments.PV1 -%} + + {% if firstSegments.PID.18 -%} + {% evaluate accountId using 'ID/Account' CX: firstSegments.PID.3 -%} + {% include 'Resource/Account' PID: firstSegments.PID, ID: accountId -%} + {% include 'Reference/Account/Subject' ID: accountId, REF: fullPatientId -%} + {% if firstSegments.PID.18.4.1 != "" and firstSegments.PID.18.4.1 != null and firstSegments.PID.18.4.2 != "" and firstSegments.PID.18.4.2 != null and firstSegments.PID.18.4.3 != "" and firstSegments.PID.18.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_18 using 'ID/Organization' HDORG: firstSegments.PID.18.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.18, ID: Organization_ID_pid_CX_18 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PID.2 -%} + {% if firstSegments.PID.2.4.1 != "" and firstSegments.PID.2.4.1 != null and firstSegments.PID.2.4.2 != "" and firstSegments.PID.2.4.2 != null and firstSegments.PID.2.4.3 != "" and firstSegments.PID.2.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_2 using 'ID/Organization' HDORG: firstSegments.PID.2.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.2, ID: Organization_ID_pid_CX_2 -%} + {% endif -%} + {% endif -%} + {% for pid3 in firstSegments.PID.3.Repeats -%} + {% if pid3.4.1 != "" and pid3.4.1 != null and pid3.4.2 != "" and pid3.4.2 != null and pid3.4.3 != "" and pid3.4.3 != null -%} + {% evaluate Organization_ID_pid_CX using 'ID/Organization' HDORG: pid3.4 -%} + {% include 'Resource/Organization', PID: pid3, ID: Organization_ID_pid_CX -%} + {% endif -%} + {% endfor -%} + {% if firstSegments.PID.4 -%} + {% if firstSegments.PID.4.4.1 != "" and firstSegments.PID.4.4.1 != null and firstSegments.PID.4.4.2 != "" and firstSegments.PID.4.4.2 != null and firstSegments.PID.4.4.3 != "" and firstSegments.PID.4.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_4 using 'ID/Organization' HDORG: firstSegments.PID.4.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.4, ID: Organization_ID_pid_CX_4 -%} + {% endif -%} + {% endif -%} + + {% unless nk1SegmentLists.NK1 -%} + {% if firstSegments.PID.21 -%} + {% if firstSegments.PID.21.4.1 != "" and firstSegments.PID.21.4.1 != null and firstSegments.PID.21.4.2 != "" and firstSegments.PID.21.4.2 != null and firstSegments.PID.21.4.3 != "" and firstSegments.PID.21.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_21 using 'ID/Organization' HDORG: firstSegments.PID.21.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.21, ID: Organization_ID_pid_CX_21 -%} + {% endif -%} + {% evaluate pidrelatedPersonId using 'ID/RelatedPerson' PID: firstSegments.PID, baseId: patientId -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: pidrelatedPersonId, PID: firstSegments.PID -%} + {% endif -%} + {% endunless -%} + + {% if firstSegments.PD1.3 -%} + {% evaluate Organization_ID_PD1_3 using 'ID/Organization' XON: firstSegments.PD1.3 -%} + {% include 'Resource/Organization' PD1: firstSegments.PD1, ID: Organization_ID_PD1_3 -%} + {% endif -%} + + {% if firstSegments.PD1.4 -%} + {% if firstSegments.PD1.4.9.1 != "" and firstSegments.PD1.4.9.1 != null and firstSegments.PD1.4.9.2 != "" and firstSegments.PD1.4.9.2 != null and firstSegments.PD1.4.9.3 != "" and firstSegments.PD1.4.9.3 != null -%} + {% evaluate Organization_ID_PD1_4_9 using 'ID/Organization' HDORG: firstSegments.PD1.4.9 -%} + {% include 'Resource/Organization', PD1_4: firstSegments.PD1.4.9, ID: Organization_ID_PD1_4_9 -%} + {% endif -%} + {% evaluate Practitioner_ID_PD1_4 using 'ID/Practitioner' XCN: firstSegments.PD1.4 -%} + {% include 'Resource/Practitioner' PD1: firstSegments.PD1.4, ID: Practitioner_ID_PD1_4 -%} + {% endif -%} + + {% if firstSegments.PV1 -%} + {% if firstSegments.PV1.5 -%} + {% if firstSegments.PV1.5.4.1 != "" and firstSegments.PV1.5.4.1 != null and firstSegments.PV1.5.4.2 != "" and firstSegments.PV1.5.4.2 != null and firstSegments.PV1.5.4.3 != "" and firstSegments.PV1.5.4.3 != null -%} + {% evaluate Organization_ID_PV1_5_4 using 'ID/Organization' HDORG: firstSegments.PV1.5.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.5.4, ID: Organization_ID_PV1_5_4 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PV1.19 -%} + {% if firstSegments.PV1.19.4.1 != "" and firstSegments.PV1.19.4.1 != null and firstSegments.PV1.19.4.2 != "" and firstSegments.PV1.19.4.2 != null and firstSegments.PV1.19.4.3 != "" and firstSegments.PV1.19.4.3 != null -%} + {% evaluate Organization_ID_PV1_19_4 using 'ID/Organization' HDORG: firstSegments.PV1.19.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.19.4, ID: Organization_ID_PV1_19_4 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PV1.7 -%} + {% if firstSegments.PV1.7.9.1 != "" and firstSegments.PV1.7.9.1 != null and firstSegments.PV1.7.9.2 != "" and firstSegments.PV1.7.9.2 != null and firstSegments.PV1.7.9.3 != "" and firstSegments.PV1.7.9.3 != null -%} + {% evaluate Organization_ID_PV1_7_9 using 'ID/Organization' HDORG: firstSegments.PV1.7.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.7.9, ID: Organization_ID_PV1_7_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_7 using 'ID/Practitioner' XCN: firstSegments.PV1.7 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.7, ID: practitionerId_PV1_7 -%} + {% endif -%} + + {% if firstSegments.PV1.8 -%} + {% if firstSegments.PV1.8.9.1 != "" and firstSegments.PV1.8.9.1 != null and firstSegments.PV1.8.9.2 != "" and firstSegments.PV1.8.9.2 != null and firstSegments.PV1.8.9.3 != "" and firstSegments.PV1.8.9.3 != null -%} + {% evaluate Organization_ID_PV1_8_9 using 'ID/Organization' HDORG: firstSegments.PV1.8.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.8.9, ID: Organization_ID_PV1_8_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_8 using 'ID/Practitioner' XCN: firstSegments.PV1.8 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.8, ID: practitionerId_PV1_8 -%} + {% endif -%} + + {% if firstSegments.PV1.9 -%} + {% if firstSegments.PV1.9.9.1 != "" and firstSegments.PV1.9.9.1 != null and firstSegments.PV1.9.9.2 != "" and firstSegments.PV1.9.9.2 != null and firstSegments.PV1.9.9.3 != "" and firstSegments.PV1.9.9.3 != null -%} + {% evaluate Organization_ID_PV1_9_9 using 'ID/Organization' HDORG: firstSegments.PV1.9.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.9.9, ID: Organization_ID_PV1_9_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_9 using 'ID/Practitioner' XCN: firstSegments.PV1.9 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.9, ID: practitionerId_PV1_9 -%} + {% endif -%} + + {% if firstSegments.PV1.17 -%} + {% if firstSegments.PV1.17.9.1 != "" and firstSegments.PV1.17.9.1 != null and firstSegments.PV1.17.9.2 != "" and firstSegments.PV1.17.9.2 != null and firstSegments.PV1.17.9.3 != "" and firstSegments.PV1.17.9.3 != null -%} + {% evaluate Organization_ID_PV1_17_9 using 'ID/Organization' HDORG: firstSegments.PV1.17.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.17.9, ID: Organization_ID_PV1_17_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_17 using 'ID/Practitioner' XCN: firstSegments.PV1.17 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.17, ID: practitionerId_PV1_17 -%} + {% endif -%} + + {% if firstSegments.PV1.50 -%} + {% for p in firstSegments.PV1.50.Repeats -%} + {% if p.4.1 != "" and p.4.1 != null and p.4.2 != "" and p.4.2 != null and p.4.3 != "" and p.4.3 != null -%} + {% evaluate Organization_ID_PV1_50_4 using 'ID/Organization' HDORG: p.4 -%} + {% include 'Resource/Organization', PV1: p.4, ID: Organization_ID_PV1_50_4 -%} + {% endif -%} + {% endfor -%} + {% endif -%} + + {% if firstSegments.PV1.52 -%} + {% if firstSegments.PV1.52.9.1 != "" and firstSegments.PV1.52.9.1 != null and firstSegments.PV1.52.9.2 != "" and firstSegments.PV1.52.9.2 != null and firstSegments.PV1.52.9.3 != "" and firstSegments.PV1.52.9.3 != null -%} + {% evaluate Organization_ID_PV1_52_9 using 'ID/Organization' HDORG: firstSegments.PV1.52.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.52.9, ID: Organization_ID_PV1_52_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_52 using 'ID/Practitioner' XCN: firstSegments.PV1.52 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.52, ID: practitionerId_PV1_52 -%} + {% endif -%} + + {% if firstSegments.PV2.13 -%} + {% if firstSegments.PV2.13.9.1 != "" and firstSegments.PV2.13.9.1 != null and firstSegments.PV2.13.9.2 != "" and firstSegments.PV2.13.9.2 != null and firstSegments.PV2.13.9.3 != "" and firstSegments.PV2.13.9.3 != null -%} + {% evaluate Organization_ID_PV2_13_9 using 'ID/Organization' HDORG: firstSegments.PV2.13.9 -%} + {% include 'Resource/Organization', PV2: firstSegments.PV2.13.9, ID: Organization_ID_PV2_13_9 -%} + {% endif -%} + {% evaluate practitionerId_PV2_13 using 'ID/Practitioner' XCN: firstSegments.PV2.13 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV2.13, ID: practitionerId_PV2_13 -%} + {% endif -%} + + {% if firstSegments.PV1.3 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.3-%} + {% endif -%} + + {% if firstSegments.PV1.6 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.6 -%} + {% endif -%} + + {% if firstSegments.PV1.37 -%} + {% evaluate location_ID_PV1_37 using 'ID/Location' DLD: firstSegments.PV1.37 -%} + {% include 'Resource/Location' PV1: firstSegments.PV1.37, ID: location_ID_PV1_37-%} + {% endif -%} + + {% if firstSegments.PV1.42 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.42-%} + {% endif -%} + + {% if firstSegments.PV1.43 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.43-%} + {% endif -%} + + {% if firstSegments.PV2.1 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV2.1-%} + {% endif -%} + + {% if firstSegments.PV1.54 -%} + {% if firstSegments.PV1.54.4.1 != "" and firstSegments.PV1.54.4.1 != null and firstSegments.PV1.54.4.2 != "" and firstSegments.PV1.54.4.2 != null and firstSegments.PV1.54.4.3 != "" and firstSegments.PV1.54.4.3 != null -%} + {% evaluate Organization_ID_PV1_54_4 using 'ID/Organization' HDORG: firstSegments.PV1.54.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.54.4, ID: Organization_ID_PV1_54_4 -%} + {% endif -%} + {% evaluate EpisodeOfCare_ID using 'ID/EpisodeOfCare' PV1: firstSegments.PV1.54 -%} + {% include 'Resource/EpisodeOfCare' PV1: firstSegments.PV1, ID: EpisodeOfCare_ID, patientRefrenceID: fullPatientId -%} + {% endif -%} + + {% evaluate encounterId using 'ID/Encounter' PV1: firstSegments.PV1, baseId: patientId -%} + {% include 'Resource/Encounter' Root_Template: 'ADT_A02', PV1: firstSegments.PV1, PV2: firstSegments.PV2, ID: encounterId -%} + {% include 'Reference/Encounter/Subject' ID: encounterId, REF: fullPatientId -%} + {% include 'Extensions/Encounter/EncounterExtension' ID: encounterId, PV1: firstSegments.PV1, PV2: firstSegments.PV2, -%} + {% endif -%} + + {% if firstSegments.EVN -%} + {% evaluate provenanceId using 'ID/Provenance' EVN: firstSegments.EVN, baseId: patientId -%} + {% include 'Resource/Provenance' EVN: firstSegments.EVN, EVNTEXT: firstSegments.MSH.9, REF_BUNDLE: bundleID, ID: provenanceId -%} + {% if firstSegments.EVN.5 -%} + {% if firstSegments.EVN.5.9.1 != "" and firstSegments.EVN.5.9.1 != null and firstSegments.EVN.5.9.2 != "" and firstSegments.EVN.5.9.2 != null and firstSegments.EVN.5.9.3 != "" and firstSegments.EVN.5.9.3 != null -%} + {% evaluate Organization_ID_EVN_5_9 using 'ID/Organization' HDORG: firstSegments.EVN.5.9 -%} + {% include 'Resource/Organization', EVN: firstSegments.EVN.5.9, ID: Organization_ID_EVN_5_9 -%} + {% endif -%} + {% evaluate practitionerId_EVN_5 using 'ID/Practitioner' XCN: firstSegments.EVN.5 -%} + {% include 'Resource/Practitioner' EVN: firstSegments.EVN.5, ID: practitionerId_EVN_5 -%} + {% if firstSegments.EVN.7 -%} + {% evaluate locationId_EVN_7 using 'ID/Location' HD: firstSegments.EVN.7 -%} + {% include 'Resource/Location' EVN: firstSegments.EVN.7, ID: locationId_EVN_7 -%} + {% endif -%} + {% endif -%} + {% endif -%} + + {% for db1Segment in db1SegmentLists.DB1 -%} + {% if db1Segment.2.1.Value == "PT" %} + {% for db in db1Segment.3.Repeats -%} + {% if db.4.1 != "" and db.4.1 != null and db.4.2 != "" and db.4.2 != null and db.4.3 != "" and db.4.3 != null -%} + {% evaluate Organization_ID_DB1_3 using 'ID/Organization' HDORG: db.4 -%} + {% include 'Resource/Organization', DB1: db.4, ID: Organization_ID_DB1_3 -%} + {% endif -%} + {% endfor %} + {% include 'Extensions/Patient/PatientExtension' ID: PatientId, DB1: db1Segment -%} + {% endif -%} + {% include 'Resource/Patient' DB1: db1Segment, ID: patientId -%} + {% endfor %} + + {% for obxSegment in obxSegmentLists.OBX -%} + + {% for obx_16 in obxSegment.16.Repeats -%} + {% if obx_16.9.1 != "" and obx_16.9.1 != null and obx_16.9.2 != "" and obx_16.9.2 != null and obx_16.9.3 != "" and obx_16.9.3 != null -%} + {% evaluate Organization_ID_OBX_16 using 'ID/Organization' HDORG: obx_16.9 -%} + {% include 'Resource/Organization' OBX: obx_16.9, ID: Organization_ID_OBX_16 -%} + {% endif -%} + {% evaluate practitionerId_OBX_16 using 'ID/Practitioner' XCN: obx_16 -%} + {% include 'Resource/Practitioner' OBX: obxSegment, OBXXCN1: obx_16, ID: practitionerId_OBX_16 -%} + {% evaluate practitionerRoleId_OBX_16 using 'ID/PractitionerRole' XCN: obx_16 -%} + {% assign full_practitionerId_OBX_16 = practitionerId_OBX_16 | prepend: 'Practitioner/' %} + {% include 'Resource/PractitionerRole' OBXXCN1: obx_16, ID: practitionerRoleId_OBX_16 -%} + {% include 'Reference/PractitionerRole/Practitioner' REF: full_practitionerId_OBX_16, ID: practitionerRoleId_OBX_16 -%} + {% endfor %} + + {% if obxSegment.18 -%} + {% evaluate deviceId_OBX_18 using 'ID/Device' EI: obxSegment.18.Repeats[0] -%} + {% include 'Resource/Device' EI_OBX18: obxSegment.18, ID: deviceId_OBX_18 -%} + {% endif -%} + + {% if obxSegment.23 or obxSegment.25 %} + {% evaluate practitionerRoleId_OBX_25 using 'ID/PractitionerRole' XCN: obxSegment.25 -%} + {% endif %} + {% if obxSegment.25 -%} + {% evaluate practitionerId_OBX_25 using 'ID/Practitioner' XCN: obxSegment.25 -%} + {% include 'Resource/Practitioner' OBX: obxSegment, OBXXCN2: obxSegment.25, ID: practitionerId_OBX_25 -%} + {% assign full_practitionerId_OBX_25 = practitionerId_OBX_25 | prepend: 'Practitioner/' %} + {% include 'Resource/PractitionerRole' OBXXCN2: obxSegment.25, ID: practitionerRoleId_OBX_25 -%} + + {% include 'Reference/PractitionerRole/Practitioner' REF: full_practitionerId_OBX_25, ID: practitionerRoleId_OBX_25 -%} + {% endif -%} + {% if obxSegment.23 -%} + {% evaluate organizationId_OBX_23 using 'ID/Organization' XON: obxSegment.23 -%} + {% include 'Resource/Organization' OBX_23: obxSegment.23, OBX_24: obxSegment.24, ID: organizationId_OBX_23 -%} + {% if obxSegment.25 -%} + {% assign full_organizationId_OBX_23 = organizationId_OBX_23 | prepend: 'Organization/' %} + {% include 'Reference/PractitionerRole/Organization' REF: full_organizationId_OBX_23, ID: practitionerRoleId_OBX_25 -%} + {% endif -%} + {% endif -%} + + {% evaluate observationId using 'ID/Observation' OBX: obxSegment, baseId: patientId -%} + + {% include 'Resource/Observation' OBX: obxSegment, Observation_Subject_ID: fullPatientId, ID: observationId -%} + {% include 'Extensions/Observation/ObservationExtension' OBX: obxSegment, ID: observationId %} + {% endfor -%} + + ] +} \ No newline at end of file diff --git a/data/Templates/Hl7v2/ADT_A03.liquid b/data/Templates/Hl7v2/ADT_A03.liquid new file mode 100644 index 000000000..a1733a63c --- /dev/null +++ b/data/Templates/Hl7v2/ADT_A03.liquid @@ -0,0 +1,618 @@ +{% assign firstSegments = hl7v2Data | get_first_segments: 'PID|PD1|PV1|PV2|MSH|UAC|EVN' -%} +{% assign sftSegmentLists = hl7v2Data | get_segment_lists: 'SFT' -%} +{% assign arvSegmentLists = hl7v2Data | get_segment_lists: 'ARV' -%} +{% assign rolSegmentLists = hl7v2Data | get_segment_lists: 'ROL' -%} +{% assign nk1SegmentLists = hl7v2Data | get_segment_lists: 'NK1' -%} +{% assign db1SegmentLists = hl7v2Data | get_segment_lists: 'DB1' -%} +{% assign obxSegmentLists = hl7v2Data | get_segment_lists: 'OBX' -%} +{% assign al1SegmentLists = hl7v2Data | get_segment_lists: 'AL1' -%} +{% assign dg1SegmentLists = hl7v2Data | get_segment_lists: 'DG1' -%} +{% assign drgSegmentLists = hl7v2Data | get_segment_lists: 'DRG' -%} +{% assign pr1SegmentLists = hl7v2Data | get_segment_lists: 'PR1' -%} +{% assign gt1SegmentLists = hl7v2Data | get_segment_lists: 'GT1' -%} +{% assign in1SegmentLists = hl7v2Data | get_segment_lists: 'IN1' -%} +{% assign in2SegmentLists = hl7v2Data | get_segment_lists: 'IN2' -%} +{% assign in3SegmentLists = hl7v2Data | get_segment_lists: 'IN3' -%} +{% assign autSegmentLists = hl7v2Data | get_segment_lists: 'AUT' -%} +{% assign rf1SegmentLists = hl7v2Data | get_segment_lists: 'RF1' -%} +{% assign accSegmentLists = hl7v2Data | get_segment_lists: 'ACC' -%} +{% assign pdaSegmentLists = hl7v2Data | get_segment_lists: 'PDA' -%} +{% evaluate bundleID using 'ID/Bundle' Data: firstSegments.MSH.10 -%} +{ + "resourceType": "Bundle", + "type": "batch", + {% if firstSegments.MSH.7 -%} + "timestamp":"{{ firstSegments.MSH.7.Value | format_as_date_time }}", + {% endif -%} + "identifier": + { + "value":"{{ firstSegments.MSH.10.Value }}", + }, + "id":"{{ bundleID }}", + "entry": [ + + {% evaluate patientId using 'ID/Patient' PID: firstSegments.PID, type: 'First' -%} + {% assign fullPatientId = patientId | prepend: 'Patient/' -%} + {% evaluate messageHeaderId using 'ID/MessageHeader' MSH: firstSegments.MSH -%} + + {% if firstSegments.MSH -%} + {% include 'Resource/MessageHeader' MSH: firstSegments.MSH, ID: messageHeaderId -%} + {% evaluate provenanceId using 'ID/Provenance' MSH: firstSegments.MSH, baseId: patientId -%} + {% include 'Resource/Provenance' Root_Template: 'ADT_A03', MSH: firstSegments.MSH, REF_BUNDLE: bundleID, ID: provenanceId -%} + + {%- comment -%} + {% assign transformation_val = 'provenance_transformation' %} + {% evaluate provenanceOrganizationId using 'ID/Organization', prov_id: firstSegments.MSH -%} + {% evaluate provenanceTransformationId using 'ID/Provenance_transformation' prov_id: transformation_val -%} + {% include 'Resource/Organization' org_name: 'Microsoft Corporation', ID: provenanceOrganizationId -%} + {% include 'Resource/Provenance_transformation' Root_Template: 'ADT_A03', Provenance_Organization_ID: provenanceOrganizationId, REF_MSH: messageHeaderId, provenanceOrganizationId, ID: provenanceTransformationId -%} + {%- endcomment -%} + {% if firstSegments.MSH.4 -%} + {% if firstSegments.MSH.4.1 != "" and firstSegments.MSH.4.1 != null or firstSegments.MSH.4.2 != "" and firstSegments.MSH.4.2 != null or firstSegments.MSH.4.3 != "" and firstSegments.MSH.4.3 != null -%} + {% evaluate organization_ID_MSH_4 using 'ID/Organization' HD: firstSegments.MSH.4 -%} + {% include 'Resource/Organization' MSHHD1: firstSegments.MSH.4, MSH: firstSegments.MSH, ID: organization_ID_MSH_4 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.6 %} + {% if firstSegments.MSH.6.1 != "" and firstSegments.MSH.6.1 != null or firstSegments.MSH.6.2 != "" and firstSegments.MSH.6.2 != null or firstSegments.MSH.6.3 != "" and firstSegments.MSH.6.3 != null -%} + {% evaluate organization_Id_MSH_6 using 'ID/Organization' HD: firstSegments.MSH.6 -%} + {% include 'Resource/Organization' MSHHD2: firstSegments.MSH.6, MSH: firstSegments.MSH, ID: organization_Id_MSH_6 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.22 %} + {% if firstSegments.MSH.22.1 != "" and firstSegments.MSH.22.1 != null -%} + {% evaluate organization_Id_MSH_22 using 'ID/Organization' XON: firstSegments.MSH.22 -%} + {% include 'Resource/Organization' MSHXON1: firstSegments.MSH.22, ID: organization_Id_MSH_22 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.23 %} + {% if firstSegments.MSH.23.1 != "" and firstSegments.MSH.23.1 != null -%} + {% evaluate organization_Id_MSH_23 using 'ID/Organization' XON: firstSegments.MSH.23 -%} + {% include 'Resource/Organization' MSHXON2: firstSegments.MSH.23, ID: organization_Id_MSH_23 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.3 and firstSegments.MSH.24 %} + {% evaluate device_Id_MSH_3 using 'ID/Device' HD: firstSegments.MSH.3 -%} + {% include 'Resource/Device' MSH: firstSegments.MSH, ID: device_Id_MSH_3 -%} + {% endif -%} + {% endif -%} + + {% for sftSegment in sftSegmentLists.SFT -%} + {% evaluate deviceId_SFT using 'ID/Device' SFT: sftSegment -%} + {% include 'Resource/Device' SFT:sftSegment, ID: deviceId_SFT -%} + {% include 'Resource/MessageHeader' MSH: firstSegments.MSH, SFT:sftSegment, ID: messageHeaderID -%} + {% endfor -%} + + {% include 'Resource/Patient' PID: firstSegments.PID, PD1: firstSegments.PD1, ID: patientId -%} + {% include 'Extensions/Patient/PatientExtension' ID: PatientId, PID: firstSegments.PID, PD1: firstSegments.PD1, PV1: firstSegments.PV1 -%} + + {% if firstSegments.PID.18 -%} + {% evaluate accountId using 'ID/Account' CX: firstSegments.PID.3 -%} + {% include 'Resource/Account' PID: firstSegments.PID, ID: accountId -%} + {% include 'Reference/Account/Subject' ID: accountId, REF: fullPatientId -%} + {% if firstSegments.PID.18.4.1 != "" and firstSegments.PID.18.4.1 != null and firstSegments.PID.18.4.2 != "" and firstSegments.PID.18.4.2 != null and firstSegments.PID.18.4.3 != "" and firstSegments.PID.18.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_18 using 'ID/Organization' HDORG: firstSegments.PID.18.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.18, ID: Organization_ID_pid_CX_18 -%} + {% endif -%} + + {% for gt1SegmentLists in gt1SegmentLists.GT1 -%} + {% if gt1SegmentLists.11.1.Value == "SEL" -%} + {% include 'Resource/Patient' PID: firstSegments.PID, GT1: gt1SegmentLists, ID: patientId, NK1_PER: nk1SegmentLists.NK1[0] -%} + {% if gt1SegmentLists.2.4.1 != "" and gt1SegmentLists.2.4.1 != null and gt1SegmentLists.2.4.2 != "" and gt1SegmentLists.2.4.2 != null and gt1SegmentLists.2.4.3 != "" and gt1SegmentLists.2.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_2 using 'ID/Organization' HDORG: gt1SegmentLists.2.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.2, ID: Organization_ID_gt1_CX_2 -%} + {% endif -%} + {% if gt1SegmentLists.19.4.1 != "" and gt1SegmentLists.19.4.1 != null and gt1SegmentLists.19.4.2 != "" and gt1SegmentLists.19.4.2 != null and gt1SegmentLists.19.4.3 != "" and gt1SegmentLists.19.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_19 using 'ID/Organization' HDORG: gt1SegmentLists.19.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.19, ID: Organization_ID_gt1_CX_19 -%} + {% endif -%} + {% if gt1SegmentLists.29.4.1 != "" and gt1SegmentLists.29.4.1 != null and gt1SegmentLists.29.4.2 != "" and gt1SegmentLists.29.4.2 != null and gt1SegmentLists.29.4.3 != "" and gt1SegmentLists.29.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_29 using 'ID/Organization' HDORG: gt1SegmentLists.29.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.29, ID: Organization_ID_gt1_CX_29 -%} + {% endif -%} + {% if gt1SegmentLists.51 and nk1SegmentLists.NK1[0].7.1.Value == "E" -%} + {% evaluate Organization_ID_gt1_XON_51 using 'ID/Organization' XON: gt1SegmentLists.51 -%} + {% include 'Resource/Organization', GT1_51: gt1SegmentLists, ID: Organization_ID_gt1_XON_51 -%} + {% assign Organization_GT1_51 = Organization_ID_gt1_XON_51 | prepend: 'Organization/' -%} + {% include 'Reference/Patient/Contact_Organization' REF:Organization_GT1_51 , ID: patientId -%} + {% endif -%} + {% else -%} + {% evaluate gt1relatedPersonId using 'ID/RelatedPerson' GT1: gt1SegmentLists, baseId: patientId -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: gt1relatedPersonId, GT1: gt1SegmentLists -%} + {% if gt1SegmentLists.2.4.1 != "" and gt1SegmentLists.2.4.1 != null and gt1SegmentLists.2.4.2 != "" and gt1SegmentLists.2.4.2 != null and gt1SegmentLists.2.4.3 != "" and gt1SegmentLists.2.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_2 using 'ID/Organization' HDORG: gt1SegmentLists.2.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.2, ID: Organization_ID_gt1_CX_2 -%} + {% endif -%} + {% if gt1SegmentLists.19.4.1 != "" and gt1SegmentLists.19.4.1 != null and gt1SegmentLists.19.4.2 != "" and gt1SegmentLists.19.4.2 != null and gt1SegmentLists.19.4.3 != "" and gt1SegmentLists.19.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_19 using 'ID/Organization' HDORG: gt1SegmentLists.19.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.19, ID: Organization_ID_gt1_CX_19 -%} + {% endif -%} + {% endif -%} + {% if gt1SegmentLists.21 -%} + {% evaluate Organization_ID_gt1_XON_21 using 'ID/Organization' XON: gt1SegmentLists.21 -%} + {% include 'Resource/Organization', GT1: gt1SegmentLists, ID: Organization_ID_gt1_XON_21 -%} + {% if gt1SegmentLists.2.4.1 != "" and gt1SegmentLists.2.4.1 != null and gt1SegmentLists.2.4.2 != "" and gt1SegmentLists.2.4.2 != null and gt1SegmentLists.2.4.3 != "" and gt1SegmentLists.2.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_2 using 'ID/Organization' HDORG: gt1SegmentLists.2.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.2, ID: Organization_ID_gt1_CX_2 -%} + {% endif -%} + {% endif -%} + {% include 'Resource/Account' GT1: gt1SegmentLists, ID: accountId, REF_PATIENT: fullPatientId, REF_RELATED_PERSON: gt1relatedPersonId, REF_ORG: Organization_ID_gt1_XON_21 -%} + {% endfor -%} + + {% endif -%} + + {% if firstSegments.PID.2 -%} + {% if firstSegments.PID.2.4.1 != "" and firstSegments.PID.2.4.1 != null and firstSegments.PID.2.4.2 != "" and firstSegments.PID.2.4.2 != null and firstSegments.PID.2.4.3 != "" and firstSegments.PID.2.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_2 using 'ID/Organization' HDORG: firstSegments.PID.2.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.2, ID: Organization_ID_pid_CX_2 -%} + {% endif -%} + {% endif -%} + {% for pid3 in firstSegments.PID.3.Repeats -%} + {% if pid3.4.1 != "" and pid3.4.1 != null and pid3.4.2 != "" and pid3.4.2 != null and pid3.4.3 != "" and pid3.4.3 != null -%} + {% evaluate Organization_ID_pid_CX using 'ID/Organization' HDORG: pid3.4 -%} + {% include 'Resource/Organization', PID: pid3, ID: Organization_ID_pid_CX -%} + {% endif -%} + {% endfor -%} + {% if firstSegments.PID.4 -%} + {% if firstSegments.PID.4.4.1 != "" and firstSegments.PID.4.4.1 != null and firstSegments.PID.4.4.2 != "" and firstSegments.PID.4.4.2 != null and firstSegments.PID.4.4.3 != "" and firstSegments.PID.4.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_4 using 'ID/Organization' HDORG: firstSegments.PID.4.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.4, ID: Organization_ID_pid_CX_4 -%} + {% endif -%} + {% endif -%} + + {% unless nk1SegmentLists.NK1 -%} + {% if firstSegments.PID.21 -%} + {% if firstSegments.PID.21.4.1 != "" and firstSegments.PID.21.4.1 != null and firstSegments.PID.21.4.2 != "" and firstSegments.PID.21.4.2 != null and firstSegments.PID.21.4.3 != "" and firstSegments.PID.21.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_21 using 'ID/Organization' HDORG: firstSegments.PID.21.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.21, ID: Organization_ID_pid_CX_21 -%} + {% endif -%} + {% evaluate pidrelatedPersonId using 'ID/RelatedPerson' PID: firstSegments.PID, baseId: patientId -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: pidrelatedPersonId, PID: firstSegments.PID -%} + {% endif -%} + {% endunless -%} + {% if firstSegments.PD1.3 -%} + {% evaluate Organization_ID_PD1_3 using 'ID/Organization' XON: firstSegments.PD1.3 -%} + {% include 'Resource/Organization' PD1: firstSegments.PD1, ID: Organization_ID_PD1_3 -%} + {% endif -%} + + {% if firstSegments.PD1.4 -%} + {% if firstSegments.PD1.4.9.1 != "" and firstSegments.PD1.4.9.1 != null and firstSegments.PD1.4.9.2 != "" and firstSegments.PD1.4.9.2 != null and firstSegments.PD1.4.9.3 != "" and firstSegments.PD1.4.9.3 != null -%} + {% evaluate Organization_ID_PD1_4_9 using 'ID/Organization' HDORG: firstSegments.PD1.4.9 -%} + {% include 'Resource/Organization', PD1_4: firstSegments.PD1.4.9, ID: Organization_ID_PD1_4_9 -%} + {% endif -%} + {% evaluate Practitioner_ID_PD1_4 using 'ID/Practitioner' XCN: firstSegments.PD1.4 -%} + {% include 'Resource/Practitioner' PD1: firstSegments.PD1.4, ID: Practitioner_ID_PD1_4 -%} + {% endif -%} + + {% if firstSegments.PV1 -%} + {% if firstSegments.PV1.5 -%} + {% if firstSegments.PV1.5.4.1 != "" and firstSegments.PV1.5.4.1 != null and firstSegments.PV1.5.4.2 != "" and firstSegments.PV1.5.4.2 != null and firstSegments.PV1.5.4.3 != "" and firstSegments.PV1.5.4.3 != null -%} + {% evaluate Organization_ID_PV1_5_4 using 'ID/Organization' HDORG: firstSegments.PV1.5.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.5.4, ID: Organization_ID_PV1_5_4 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PV1.19 -%} + {% if firstSegments.PV1.19.4.1 != "" and firstSegments.PV1.19.4.1 != null and firstSegments.PV1.19.4.2 != "" and firstSegments.PV1.19.4.2 != null and firstSegments.PV1.19.4.3 != "" and firstSegments.PV1.19.4.3 != null -%} + {% evaluate Organization_ID_PV1_19_4 using 'ID/Organization' HDORG: firstSegments.PV1.19.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.19.4, ID: Organization_ID_PV1_19_4 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PV1.7 -%} + {% if firstSegments.PV1.7.9.1 != "" and firstSegments.PV1.7.9.1 != null and firstSegments.PV1.7.9.2 != "" and firstSegments.PV1.7.9.2 != null and firstSegments.PV1.7.9.3 != "" and firstSegments.PV1.7.9.3 != null -%} + {% evaluate Organization_ID_PV1_7_9 using 'ID/Organization' HDORG: firstSegments.PV1.7.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.7.9, ID: Organization_ID_PV1_7_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_7 using 'ID/Practitioner' XCN: firstSegments.PV1.7 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.7, ID: practitionerId_PV1_7 -%} + {% endif -%} + + {% if firstSegments.PV1.8 -%} + {% if firstSegments.PV1.8.9.1 != "" and firstSegments.PV1.8.9.1 != null and firstSegments.PV1.8.9.2 != "" and firstSegments.PV1.8.9.2 != null and firstSegments.PV1.8.9.3 != "" and firstSegments.PV1.8.9.3 != null -%} + {% evaluate Organization_ID_PV1_8_9 using 'ID/Organization' HDORG: firstSegments.PV1.8.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.8.9, ID: Organization_ID_PV1_8_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_8 using 'ID/Practitioner' XCN: firstSegments.PV1.8 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.8, ID: practitionerId_PV1_8 -%} + {% endif -%} + + {% if firstSegments.PV1.9 -%} + {% if firstSegments.PV1.9.9.1 != "" and firstSegments.PV1.9.9.1 != null and firstSegments.PV1.9.9.2 != "" and firstSegments.PV1.9.9.2 != null and firstSegments.PV1.9.9.3 != "" and firstSegments.PV1.9.9.3 != null -%} + {% evaluate Organization_ID_PV1_9_9 using 'ID/Organization' HDORG: firstSegments.PV1.9.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.9.9, ID: Organization_ID_PV1_9_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_9 using 'ID/Practitioner' XCN: firstSegments.PV1.9 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.9, ID: practitionerId_PV1_9 -%} + {% endif -%} + + {% if firstSegments.PV1.17 -%} + {% if firstSegments.PV1.17.9.1 != "" and firstSegments.PV1.17.9.1 != null and firstSegments.PV1.17.9.2 != "" and firstSegments.PV1.17.9.2 != null and firstSegments.PV1.17.9.3 != "" and firstSegments.PV1.17.9.3 != null -%} + {% evaluate Organization_ID_PV1_17_9 using 'ID/Organization' HDORG: firstSegments.PV1.17.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.17.9, ID: Organization_ID_PV1_17_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_17 using 'ID/Practitioner' XCN: firstSegments.PV1.17 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.17, ID: practitionerId_PV1_17 -%} + {% endif -%} + + {% if firstSegments.PV1.50 -%} + {% for p in firstSegments.PV1.50.Repeats -%} + {% if p.4.1 != "" and p.4.1 != null and p.4.2 != "" and p.4.2 != null and p.4.3 != "" and p.4.3 != null -%} + {% evaluate Organization_ID_PV1_50_4 using 'ID/Organization' HDORG: p.4 -%} + {% include 'Resource/Organization', PV1: p.4, ID: Organization_ID_PV1_50_4 -%} + {% endif -%} + {% endfor -%} + {% endif -%} + + {% if firstSegments.PV1.52 -%} + {% if firstSegments.PV1.52.9.1 != "" and firstSegments.PV1.52.9.1 != null and firstSegments.PV1.52.9.2 != "" and firstSegments.PV1.52.9.2 != null and firstSegments.PV1.52.9.3 != "" and firstSegments.PV1.52.9.3 != null -%} + {% evaluate Organization_ID_PV1_52_9 using 'ID/Organization' HDORG: firstSegments.PV1.52.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.52.9, ID: Organization_ID_PV1_52_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_52 using 'ID/Practitioner' XCN: firstSegments.PV1.52 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.52, ID: practitionerId_PV1_52 -%} + {% endif -%} + + {% if firstSegments.PV2.13 -%} + {% if firstSegments.PV2.13.9.1 != "" and firstSegments.PV2.13.9.1 != null and firstSegments.PV2.13.9.2 != "" and firstSegments.PV2.13.9.2 != null and firstSegments.PV2.13.9.3 != "" and firstSegments.PV2.13.9.3 != null -%} + {% evaluate Organization_ID_PV2_13_9 using 'ID/Organization' HDORG: firstSegments.PV2.13.9 -%} + {% include 'Resource/Organization', PV2: firstSegments.PV2.13.9, ID: Organization_ID_PV2_13_9 -%} + {% endif -%} + {% evaluate practitionerId_PV2_13 using 'ID/Practitioner' XCN: firstSegments.PV2.13 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV2.13, ID: practitionerId_PV2_13 -%} + {% endif -%} + + {% if firstSegments.PV1.3 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.3-%} + {% endif -%} + + {% if firstSegments.PV1.6 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.6 -%} + {% endif -%} + + {% if firstSegments.PV1.37 -%} + {% evaluate location_ID_PV1_37 using 'ID/Location' DLD: firstSegments.PV1.37 -%} + {% include 'Resource/Location' PV1: firstSegments.PV1.37, ID: location_ID_PV1_37-%} + {% endif -%} + + {% if firstSegments.PV1.42 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.42-%} + {% endif -%} + + {% if firstSegments.PV1.43 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.43-%} + {% endif -%} + + {% if firstSegments.PV2.1 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV2.1-%} + {% endif -%} + + {% if firstSegments.PV1.54 -%} + {% if firstSegments.PV1.54.4.1 != "" and firstSegments.PV1.54.4.1 != null and firstSegments.PV1.54.4.2 != "" and firstSegments.PV1.54.4.2 != null and firstSegments.PV1.54.4.3 != "" and firstSegments.PV1.54.4.3 != null -%} + {% evaluate Organization_ID_PV1_54_4 using 'ID/Organization' HDORG: firstSegments.PV1.54.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.54.4, ID: Organization_ID_PV1_54_4 -%} + {% endif -%} + {% evaluate EpisodeOfCare_ID using 'ID/EpisodeOfCare' PV1: firstSegments.PV1.54 -%} + {% include 'Resource/EpisodeOfCare' PV1: firstSegments.PV1, ID: EpisodeOfCare_ID, patientRefrenceID: fullPatientId -%} + {% endif -%} + + {% evaluate encounterId using 'ID/Encounter' PV1: firstSegments.PV1, baseId: patientId -%} + {% include 'Resource/Encounter' Root_Template: 'ADT_A03', PV1: firstSegments.PV1, PV2: firstSegments.PV2, ID: encounterId -%} + {% include 'Reference/Encounter/Subject' ID: encounterId, REF: fullPatientId -%} + {% include 'Extensions/Encounter/EncounterExtension' ID: encounterId, PV1: firstSegments.PV1, PV2: firstSegments.PV2, -%} + {% endif -%} + + {% if firstSegments.EVN -%} + {% evaluate provenanceId using 'ID/Provenance' EVN: firstSegments.EVN, baseId: patientId -%} + {% include 'Resource/Provenance' EVN: firstSegments.EVN, EVNTEXT: firstSegments.MSH.9, REF_BUNDLE: bundleID, ID: provenanceId -%} + {% if firstSegments.EVN.5 -%} + {% if firstSegments.EVN.5.9.1 != "" and firstSegments.EVN.5.9.1 != null and firstSegments.EVN.5.9.2 != "" and firstSegments.EVN.5.9.2 != null and firstSegments.EVN.5.9.3 != "" and firstSegments.EVN.5.9.3 != null -%} + {% evaluate Organization_ID_EVN_5_9 using 'ID/Organization' HDORG: firstSegments.EVN.5.9 -%} + {% include 'Resource/Organization', EVN: firstSegments.EVN.5.9, ID: Organization_ID_EVN_5_9 -%} + {% endif -%} + {% evaluate practitionerId_EVN_5 using 'ID/Practitioner' XCN: firstSegments.EVN.5 -%} + {% include 'Resource/Practitioner' EVN: firstSegments.EVN.5, ID: practitionerId_EVN_5 -%} + {% if firstSegments.EVN.7 -%} + {% evaluate locationId_EVN_7 using 'ID/Location' HD: firstSegments.EVN.7 -%} + {% include 'Resource/Location' EVN: firstSegments.EVN.7, ID: locationId_EVN_7 -%} + {% endif -%} + {% endif -%} + {% endif -%} + + {% for pr1Segment in pr1SegmentLists.PR1 -%} + {% if pr1Segment.8 -%} + {% if pr1Segment.8.9.1 != "" and pr1Segment.8.9.1 != null and pr1Segment.8.9.2 != "" and pr1Segment.8.9.2 != null and pr1Segment.8.9.3 != "" and pr1Segment.8.9.3 != null -%} + {% evaluate Organization_ID_PR1_8 using 'ID/Organization' HDORG: pr1Segment.8.9 -%} + {% include 'Resource/Organization', PR1: pr1Segment.8.9, ID: Organization_ID_PR1_8 -%} + {% endif -%} + {% evaluate practitionerId_PR1_8 using 'ID/Practitioner' XCN: pr1Segment.8 -%} + {% include 'Resource/Practitioner' PR1: pr1Segment.8, ID: practitionerId_PR1_8 -%} + {% endif -%} + + {% if pr1Segment.11 -%} + {% if pr1Segment.11.9.1 != "" and pr1Segment.11.9.1 != null and pr1Segment.11.9.2 != "" and pr1Segment.11.9.2 != null and pr1Segment.11.9.3 != "" and pr1Segment.11.9.3 != null -%} + {% evaluate Organization_ID_PR1_11 using 'ID/Organization' HDORG: pr1Segment.11.9 -%} + {% include 'Resource/Organization', PR1: pr1Segment.11.9, ID: Organization_ID_PR1_11 -%} + {% endif -%} + {% evaluate practitionerId_PR1_11 using 'ID/Practitioner' XCN: pr1Segment.11 -%} + {% include 'Resource/Practitioner' PR1: pr1Segment.11, ID: practitionerId_PR1_11 -%} + {% endif -%} + + {% if pr1Segment.12 -%} + {% if pr1Segment.12.9.1 != "" and pr1Segment.12.9.1 != null and pr1Segment.12.9.2 != "" and pr1Segment.12.9.2 != null and pr1Segment.12.9.3 != "" and pr1Segment.12.9.3 != null -%} + {% evaluate Organization_ID_PR1_12 using 'ID/Organization' HDORG: pr1Segment.12.9 -%} + {% include 'Resource/Organization', PR1: pr1Segment.12.9, ID: Organization_ID_PR1_12 -%} + {% endif -%} + {% evaluate practitionerId_PR1_12 using 'ID/Practitioner' XCN: pr1Segment.12 -%} + {% include 'Resource/Practitioner' PR1: pr1Segment.12, ID: practitionerId_PR1_12 -%} + {% endif -%} + + {% if pr1Segment.23.1 -%} + {% evaluate Location_ID_PR1_23_1 using 'ID/Location' PL: pr1Segment.23.1 -%} + {% include 'Resource/PLLocation' PL_1: pr1Segment.23.1, ID: Location_ID_PR1_23_1-%} + {% else %} + {% if pr1Segment.23.2 %} + {% evaluate Location_ID_PR1_23_2 using 'ID/Location' PL: pr1Segment.23.2 -%} + {% include 'Resource/PLLocation' PL_2: pr1Segment.23.2, ID: Location_ID_PR1_23_2-%} + {% endif %} + {% endif %} + + {% if pr1Segment.25 -%} + {% evaluate Procedure_ID_PR1_25 using 'ID/Procedure' PR1: pr1Segment.25, baseId: fullPatientId -%} + {% include 'Resource/Procedure' PR1_25: pr1Segment.25, PV1: firstSegments.PV1, Procedure_Subject_ID: fullPatientId, ID: Procedure_ID_PR1_25 -%} + {% endif -%} + + {% evaluate procedureId using 'ID/Procedure' PR1: pr1Segment, baseId: patientId -%} + {% include 'Resource/Procedure' PR1: pr1Segment, PV1: firstSegments.PV1, Procedure_Subject_ID: fullPatientId, ID: procedureId -%} + {% endfor -%} + + {% for nk1Segment in nk1SegmentLists.NK1 -%} + {% evaluate relatedPersonId using 'ID/RelatedPerson' NK1: nk1Segment, baseId: patientId -%} + {% if nk1Segment.13 -%} + {% evaluate organizationId_NK1_13 using 'ID/Organization' XON: nk1Segment.13 -%} + {% include 'Resource/Organization' NK1: nk1Segment, ID: organizationId_NK1_13 -%} + {% assign Organization_NK1_13 = organizationId_NK1_13 | prepend: 'Organization/' -%} + {% include 'Reference/Patient/Contact_Organization' REF:Organization_NK1_13 , ID: patientId -%} + {% endif -%} + {% unless nk1Segment.3.1.Value == "EMR" or nk1Segment.3.1.Value == "CGV" or nk1Segment.7.1.Value == "E" or nk1Segment.7.1.Value =="F" or nk1Segment.7.1.Value == "I" or nk1Segment.7.1.Value =="S" -%} + {% include 'Resource/Patient' NK1: nk1Segment, ID: patientId -%} + {% include 'Resource/RelatedPerson' NK1: nk1Segment, RelatedPerson_Patient_ID: fullPatientId, ID: relatedPersonId, PID: firstSegments.PID -%} + {% include 'Extensions/RelatedPerson/RelatedPerson' ID: relatedPersonId, NK1: nk1Segment -%} + {% if nk1Segment.12.4.1 != "" and nk1Segment.12.4.1 != null and nk1Segment.12.4.2 != "" and nk1Segment.12.4.2 != null and nk1Segment.12.4.3 != "" and nk1Segment.12.4.3 != null -%} + {% evaluate Organization_ID_nk_CX_12 using 'ID/Organization' HDORG: nk1Segment.12.4 -%} + {% include 'Resource/Organization', NK1_12: nk1Segment.12, ID: Organization_ID_nk_CX_12 -%} + {% endif -%} + {% endunless -%} + {% if firstSegments.PID.21 -%} + {% include 'Resource/RelatedPerson' ID: relatedPersonId, PID: firstSegments.PID, RelatedPerson_Patient_ID: fullPatientId -%} + {% if firstSegments.PID.21.4.1 != "" and firstSegments.PID.21.4.1 != null and firstSegments.PID.21.4.2 != "" and firstSegments.PID.21.4.2 != null and firstSegments.PID.21.4.3 != "" and firstSegments.PID.21.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_21 using 'ID/Organization' HDORG: firstSegments.PID.21.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.21, ID: Organization_ID_pid_CX_21 -%} + {% endif -%} + {% endif -%} + + {% for nk33 in nk1Segment.33.Repeats -%} + {% if nk33.4.1 != "" and nk33.4.1 != null and nk33.4.2 != "" and nk33.4.2 != null and nk33.4.3 != "" and nk33.4.3 != null -%} + {% evaluate Organization_ID_nk_CX_33 using 'ID/Organization' HDORG: nk33.4 -%} + {% include 'Resource/Organization', NK1_33: nk33, ID: Organization_ID_nk_CX_33 -%} + {% endif -%} + {% endfor -%} + {% endfor -%} + + {% for db1Segment in db1SegmentLists.DB1 -%} + {% if db1Segment.2.1.Value == "PT" %} + {% for db in db1Segment.3.Repeats -%} + {% if db.4.1 != "" and db.4.1 != null and db.4.2 != "" and db.4.2 != null and db.4.3 != "" and db.4.3 != null -%} + {% evaluate Organization_ID_DB1_3 using 'ID/Organization' HDORG: db.4 -%} + {% include 'Resource/Organization', DB1: db.4, ID: Organization_ID_DB1_3 -%} + {% endif -%} + {% endfor %} + {% include 'Extensions/Patient/PatientExtension' ID: PatientId, DB1: db1Segment -%} + {% endif -%} + {% include 'Resource/Patient' DB1: db1Segment, ID: patientId -%} + {% endfor %} + + {% for obxSegment in obxSegmentLists.OBX -%} + {% for obx_16 in obxSegment.16.Repeats -%} + {% if obx_16.9.1 != "" and obx_16.9.1 != null and obx_16.9.2 != "" and obx_16.9.2 != null and obx_16.9.3 != "" and obx_16.9.3 != null -%} + {% evaluate Organization_ID_OBX_16 using 'ID/Organization' HDORG: obx_16.9 -%} + {% include 'Resource/Organization' OBX: obx_16.9, ID: Organization_ID_OBX_16 -%} + {% endif -%} + {% evaluate practitionerId_OBX_16 using 'ID/Practitioner' XCN: obx_16 -%} + {% include 'Resource/Practitioner' OBX: obxSegment, OBXXCN1: obx_16, ID: practitionerId_OBX_16 -%} + {% evaluate practitionerRoleId_OBX_16 using 'ID/PractitionerRole' XCN: obx_16 -%} + {% assign full_practitionerId_OBX_16 = practitionerId_OBX_16 | prepend: 'Practitioner/' %} + {% include 'Resource/PractitionerRole' OBXXCN1: obx_16, ID: practitionerRoleId_OBX_16 -%} + {% include 'Reference/PractitionerRole/Practitioner' REF: full_practitionerId_OBX_16, ID: practitionerRoleId_OBX_16 -%} + {% endfor %} + {% if obxSegment.18 -%} + {% evaluate deviceId_OBX_18 using 'ID/Device' EI: obxSegment.18.Repeats[0] -%} + {% include 'Resource/Device' EI_OBX18: obxSegment.18, ID: deviceId_OBX_18 -%} + {% endif -%} + {% if obxSegment.23 or obxSegment.25 %} + {% evaluate practitionerRoleId_OBX_25 using 'ID/PractitionerRole' XCN: obxSegment.25 -%} + {% endif %} + {% if obxSegment.25 -%} + {% evaluate practitionerId_OBX_25 using 'ID/Practitioner' XCN: obxSegment.25 -%} + {% include 'Resource/Practitioner' OBX: obxSegment, OBXXCN2: obxSegment.25, ID: practitionerId_OBX_25 -%} + {% assign full_practitionerId_OBX_25 = practitionerId_OBX_25 | prepend: 'Practitioner/' %} + {% include 'Resource/PractitionerRole' OBXXCN2: obxSegment.25, ID: practitionerRoleId_OBX_25 -%} + {% include 'Reference/PractitionerRole/Practitioner' REF: full_practitionerId_OBX_25, ID: practitionerRoleId_OBX_25 -%} + {% endif -%} + {% if obxSegment.23 -%} + {% evaluate organizationId_OBX_23 using 'ID/Organization' XON: obxSegment.23 -%} + {% include 'Resource/Organization' OBX_23: obxSegment.23, OBX_24: obxSegment.24, ID: organizationId_OBX_23 -%} + {% if obxSegment.25 -%} + {% assign full_organizationId_OBX_23 = organizationId_OBX_23 | prepend: 'Organization/' %} + {% include 'Reference/PractitionerRole/Organization' REF: full_organizationId_OBX_23, ID: practitionerRoleId_OBX_25 -%} + {% endif -%} + {% endif -%} + {% evaluate observationId using 'ID/Observation' OBX: obxSegment, baseId: patientId -%} + {% include 'Resource/Observation' OBX: obxSegment, Observation_Subject_ID: fullPatientId, ID: observationId -%} + {% include 'Extensions/Observation/ObservationExtension' OBX: obxSegment, ID: observationId %} + {% endfor -%} + + {% for al1Segment in al1SegmentLists.AL1 -%} + {% evaluate allergyIntoleranceId using 'ID/AllergyIntolerance' AL1: al1Segment, baseId: patientId -%} + {% include 'Resource/AllergyIntolerance' AL1: al1Segment, ID: allergyIntoleranceId, AllergyIntolerance_Patient_ID: fullPatientId -%} + {% endfor -%} + + {% for dg1Segment in dg1SegmentLists.DG1 -%} + {% if dg1Segment.16.Repeats[0] %} + {% if dg1Segment.16.Repeats[0].9.1 != "" and dg1Segment.16.Repeats[0].9.1 != null and dg1Segment.16.Repeats[0].9.2 != "" and dg1Segment.16.Repeats[0].9.2 != null and dg1Segment.16.Repeats[0].9.3 != "" and dg1Segment.16.Repeats[0].9.3 != null -%} + {% evaluate Organization_ID_DG1_16 using 'ID/Organization' HDORG: dg1Segment.16.Repeats[0].9 -%} + {% include 'Resource/Organization', DG1: dg1Segment.16.Repeats[0].9, ID: Organization_ID_DG1_16 -%} + {% endif -%} + {% evaluate practitionerId_DG1_16 using 'ID/Practitioner' XCN: dg1Segment.16.Repeats[0] -%} + {% include 'Resource/Practitioner' DG1: dg1Segment, ID: practitionerId_DG1_16 -%} + {% endif -%} + + {% evaluate conditionId using 'ID/Condition' DG1: dg1Segment, baseId: patientId -%} + {% include 'Resource/Condition' DG1: dg1Segment, Condition_Subject_ID: fullPatientId, baseId: patientId, ID: conditionId -%} + + {% if encounterId -%} + {% include 'Resource/Encounter' DG1: dg1Segment, conditionId: conditionId, ID: encounterId -%} + {% endif -%} + {% if EpisodeOfCare_ID %} + {% include 'Resource/EpisodeOfCare' DG1: dg1Segment, conditionId: conditionId, ID: EpisodeOfCare_ID -%} + {% endif %} + {% if dg1Segment.22 -%} + {% evaluate conditionId_DG1_22 using 'ID/Condition' DG1: dg1Segment.22, baseId: patientId -%} + {% include 'Resource/Condition' DG1_22: dg1Segment.22, Condition_Subject_ID_DG1_22: fullPatientId, ID: conditionId_DG1_22 -%} + {% endif -%} + {% include 'Extensions/Condition/ConditionExtension' DG1: dg1Segment, ID_DG1_22:conditionId_DG1_22, ID: conditionId %} + + {% endfor -%} + + {% for rf1Segment in rf1SegmentLists.RF1 -%} + {% if rf1Segment.19 -%} + {% evaluate Organization_ID_RF1_19 using 'ID/Organization' XON: rf1Segment.19 -%} + {% include 'Resource/Organization' RF1: rf1Segment.19, ID: Organization_ID_RF1_19 -%} + {% endif -%} + + {% if rf1Segment.20 -%} + {% if rf1Segment.20.9.1 != "" and rf1Segment.20.9.1 != null and rf1Segment.20.9.2 != "" and rf1Segment.20.9.2 != null and rf1Segment.20.9.3 != "" and rf1Segment.20.9.3 != null -%} + {% evaluate Organization_ID_RF1_20_9 using 'ID/Organization' HDORG: rf1Segment.20.9 -%} + {% include 'Resource/Organization', RF1_20: rf1Segment.20.9, ID: Organization_ID_RF1_20_9 -%} + {% endif -%} + {% evaluate Practitioner_ID_RF1_20 using 'ID/Practitioner' XCN: rf1Segment.20 -%} + {% include 'Resource/Practitioner' RF1: rf1Segment.20, ID: Practitioner_ID_RF1_20 -%} + {% endif -%} + + {% evaluate serviceRequestId using 'ID/ServiceRequest' RF1: rf1Segment, baseId: patientId -%} + {% include 'Resource/ServiceRequest' RF1: rf1Segment, ID: serviceRequestId, ServiceRequest_Subject_ID: fullPatientId -%} + {% endfor -%} + + {% for in1Segment in in1SegmentLists.IN1 -%} + + {% evaluate coverageId using 'ID/Coverage' CX: in1Segment -%} + {% include 'Resource/Coverage' IN1: in1Segment, ID: coverageId -%} + {% include 'Reference/Coverage/Beneficiary' ID: coverageId, REF: fullPatientId -%} + + {% for in1_49 in in1Segment.49.Repeats -%} + {% if in1_49.4.1 != "" and in1_49.4.1 != null and in1_49.4.2 != "" and in1_49.4.2 != null and in1_49.4.3 != "" and in1_49.4.3 != null -%} + {% evaluate Organization_ID_in1_CX_49 using 'ID/Organization' HDORG: in1_49.4 -%} + {% include 'Resource/Organization', IN1_49: in1_49, ID: Organization_ID_in1_CX_49 -%} + {% endif -%} + {% endfor -%} + + {% for in1_3 in in1Segment.3.Repeats -%} + {% if in1_3.4.1 != "" and in1_3.4.1 != null and in1_3.4.2 != "" and in1_3.4.2 != null and in1_3.4.3 != "" and in1_3.4.3 != null -%} + {% evaluate Organization_ID_in1_CX_3 using 'ID/Organization' HDORG: in1_3.4 -%} + {% include 'Resource/Organization', IN1_3: in1_3, ID: Organization_ID_in1_CX_3 -%} + {% endif -%} + {% endfor -%} + + {% for in1_10 in in1Segment.10.Repeats -%} + {% if in1_10.4.1 != "" and in1_10.4.1 != null and in1_10.4.2 != "" and in1_10.4.2 != null and in1_10.4.3 != "" and in1_10.4.3 != null -%} + {% evaluate Organization_ID_in1_CX_10 using 'ID/Organization' HDORG: in1_10.4 -%} + {% include 'Resource/Organization', IN1_10: in1_10, ID: Organization_ID_in1_CX_10 -%} + {% endif -%} + {% endfor -%} + + {% if in1Segment.4 -%} + {% evaluate Organization_ID_in1_4 using 'ID/Organization' XON: in1Segment.4 -%} + {% else -%} + {% evaluate Organization_ID_in1_4 using 'ID/Organization' CX: in1Segment -%} + {% endif -%} + {% if Organization_ID_in1_4 -%} + {% include 'Resource/Organization', IN1: in1Segment, ID: Organization_ID_in1_4 -%} + {% assign org_in1_4 = Organization_ID_in1_4 | prepend: 'Organization/' -%} + {% include 'Reference/Coverage/Payor' ID: coverageId, REF: org_in1_4 -%} + {% endif -%} + + {% if in1Segment.11 -%} + {% evaluate Organization_ID_in1_11 using 'ID/Organization' XON: in1Segment.11 -%} + {% else -%} + {% evaluate Organization_ID_in1_11 using 'ID/Organization' CX_IN1: in1Segment -%} + {% endif -%} + {% if Organization_ID_in1_11 -%} + {% include 'Resource/Organization', IN1_11: in1Segment, ID: Organization_ID_in1_11 -%} + {% assign org_in1_11 = Organization_ID_in1_11 | prepend: 'Organization/' -%} + {% include 'Reference/Coverage/PolicyHolder' ID: coverageId, REF: org_in1_11 -%} + {% endif -%} + + {% if in1Segment.17.1.Value == "SEL" -%} + {% include 'Resource/Patient' PID_IN1: firstSegments.PID, IN1: in1Segment, ID: patientId -%} + {% include 'Reference/Coverage/Subscriber' ID: coverageId, REF: fullPatientId -%} + {% endif -%} + {% unless in1Segment.17.1.Value == "SEL" or in1Segment.17.Value == "" -%} + {% evaluate in1relatedPersonId using 'ID/RelatedPerson' IN1: in1Segment, baseId: patientId -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: in1relatedPersonId, IN1: in1Segment -%} + {% assign rel_in1_17 = in1relatedPersonId | prepend: 'RelatedPerson/' -%} + {% include 'Reference/Coverage/Subscriber' ID: coverageId, REF: rel_in1_17 -%} + {% endunless -%} + + {% for in2Segment in in2SegmentLists.IN2 -%} + {% if in1Segment.17.1.Value == "SEL" -%} + {% include 'Resource/Patient' IN2: in2Segment, ID: patientId -%} + {% endif -%} + {% unless in1Segment.17.1.Value == "SEL" or in1Segment.17.Value == "" -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: in1relatedPersonId, IN2: in2Segment -%} + {% endunless -%} + + {% unless in1Segment.10 and in1Segment.11 -%} + {% if in2Segment.3 -%} + {% evaluate in2relatedPersonId using 'ID/RelatedPerson' IN2: in2Segment, baseId: patientId -%} + {% if in2Segment.3.9.1 != "" and in2Segment.3.9.1 != null and in2Segment.3.9.2 != "" and in2Segment.3.9.2 != null and in2Segment.3.9.3 != "" and in2Segment.3.9.3 != null -%} + {% evaluate Organization_ID_IN2_3_9 using 'ID/Organization' HDORG: in2Segment.3.9 -%} + {% include 'Resource/Organization', IN2_3: in2Segment.3.9, ID: Organization_ID_IN2_3_9 -%} + {% endif -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: in2relatedPersonId, IN2_3: in2Segment -%} + {% assign relatedperson_3 = in2relatedPersonId | prepend: 'RelatedPerson/' -%} + {% include 'Reference/Coverage/PolicyHolder' ID: coverageId, REF: relatedperson_3 -%} + {% endif -%} + {% endunless -%} + + {% if in1Segment.10 == null and in1Segment.11 == null and in2Segment.3 == null -%} + {% if in2Segment.70 -%} + {% evaluate organization_Id_IN2_70 using 'ID/Organization' XON: in2Segment.70 -%} + {% include 'Resource/Organization' IN2_70: in2Segment, ID: organization_Id_IN2_70 -%} + {% assign org_in2_70 = organization_Id_IN2_70 | prepend: 'Organization/' -%} + {% include 'Reference/Coverage/PolicyHolder' ID: coverageId, REF: org_in2_70 -%} + {% endif -%} + {% endif -%} + + {% if Organization_ID_in1_11 -%} + {% include 'Resource/Organization', IN2_49: in2Segment, ID: Organization_ID_in1_11 -%} + {% endif -%} + {% include 'Resource/Coverage' IN2: in2Segment, ID: coverageId -%} + {% include 'Resource/Patient' IN2_6: in2Segment, ID: patientId -%} + + {% for in2_1 in in2Segment.1.Repeats -%} + {% if in2_1.4.1 != "" and in2_1.4.1 != null and in2_1.4.2 != "" and in2_1.4.2 != null and in2_1.4.3 != "" and in2_1.4.3 != null -%} + {% evaluate Organization_ID_in2_CX_1 using 'ID/Organization' HDORG: in2_1.4 -%} + {% include 'Resource/Organization', IN2_1: in2_1, ID: Organization_ID_in2_CX_1 -%} + {% endif -%} + {% endfor -%} + {% if in2Segment.61 -%} + {% if in2Segment.61.4.1 != "" and in2Segment.61.4.1 != null and in2Segment.61.4.2 != "" and in2Segment.61.4.2 != null and in2Segment.61.4.3 != "" and in2Segment.61.4.3 != null -%} + {% evaluate Organization_ID_in2_CX_61 using 'ID/Organization' HDORG: in2Segment.61.4 -%} + {% include 'Resource/Organization', IN2_61: in2Segment.61, ID: Organization_ID_in2_CX_61 -%} + {% endif -%} + {% endif -%} + {% endfor -%} + + {% endfor -%} + ] +} \ No newline at end of file diff --git a/data/Templates/Hl7v2/ADT_A04.liquid b/data/Templates/Hl7v2/ADT_A04.liquid new file mode 100644 index 000000000..1048026cf --- /dev/null +++ b/data/Templates/Hl7v2/ADT_A04.liquid @@ -0,0 +1,619 @@ +{% assign firstSegments = hl7v2Data | get_first_segments: 'PID|PD1|PV1|PV2|MSH|UAC|EVN' -%} +{% assign sftSegmentLists = hl7v2Data | get_segment_lists: 'SFT' -%} +{% assign arvSegmentLists = hl7v2Data | get_segment_lists: 'ARV' -%} +{% assign rolSegmentLists = hl7v2Data | get_segment_lists: 'ROL' -%} +{% assign nk1SegmentLists = hl7v2Data | get_segment_lists: 'NK1' -%} +{% assign db1SegmentLists = hl7v2Data | get_segment_lists: 'DB1' -%} +{% assign obxSegmentLists = hl7v2Data | get_segment_lists: 'OBX' -%} +{% assign al1SegmentLists = hl7v2Data | get_segment_lists: 'AL1' -%} +{% assign dg1SegmentLists = hl7v2Data | get_segment_lists: 'DG1' -%} +{% assign drgSegmentLists = hl7v2Data | get_segment_lists: 'DRG' -%} +{% assign pr1SegmentLists = hl7v2Data | get_segment_lists: 'PR1' -%} +{% assign gt1SegmentLists = hl7v2Data | get_segment_lists: 'GT1' -%} +{% assign in1SegmentLists = hl7v2Data | get_segment_lists: 'IN1' -%} +{% assign in2SegmentLists = hl7v2Data | get_segment_lists: 'IN2' -%} +{% assign in3SegmentLists = hl7v2Data | get_segment_lists: 'IN3' -%} +{% assign autSegmentLists = hl7v2Data | get_segment_lists: 'AUT' -%} +{% assign rf1SegmentLists = hl7v2Data | get_segment_lists: 'RF1' -%} +{% assign accSegmentLists = hl7v2Data | get_segment_lists: 'ACC' -%} +{% assign ub1SegmentLists = hl7v2Data | get_segment_lists: 'UB1' -%} +{% assign ub2SegmentLists = hl7v2Data | get_segment_lists: 'UB2' -%} +{% assign pdaSegmentLists = hl7v2Data | get_segment_lists: 'PDA' -%} +{% evaluate bundleID using 'ID/Bundle' Data: firstSegments.MSH.10 -%} +{ + "resourceType": "Bundle", + "type": "batch", + {% if firstSegments.MSH.7 -%} + "timestamp":"{{ firstSegments.MSH.7.Value | format_as_date_time }}", + {% endif -%} + "identifier": + { + "value":"{{ firstSegments.MSH.10.Value }}", + }, + "id":"{{ bundleID }}", + "entry": [ + + {% evaluate patientId using 'ID/Patient' PID: firstSegments.PID, type: 'First' -%} + {% assign fullPatientId = patientId | prepend: 'Patient/' -%} + {% evaluate messageHeaderId using 'ID/MessageHeader' MSH: firstSegments.MSH -%} + + {% if firstSegments.MSH -%} + {% include 'Resource/MessageHeader' MSH: firstSegments.MSH, ID: messageHeaderId -%} + {% evaluate provenanceId using 'ID/Provenance' MSH: firstSegments.MSH, baseId: patientId -%} + {% include 'Resource/Provenance' Root_Template: 'ADT_A04', MSH: firstSegments.MSH, REF_BUNDLE: bundleID, ID: provenanceId -%} + + {%- comment -%} + {% assign transformation_val = 'provenance_transformation' %} + {% evaluate provenanceOrganizationId using 'ID/Organization', prov_id: firstSegments.MSH -%} + {% evaluate provenanceTransformationId using 'ID/Provenance_transformation' prov_id: transformation_val -%} + {% include 'Resource/Organization' org_name: 'Microsoft Corporation', ID: provenanceOrganizationId -%} + {% include 'Resource/Provenance_transformation' Root_Template: 'ADT_A04', Provenance_Organization_ID: provenanceOrganizationId, REF_MSH: messageHeaderId, provenanceOrganizationId, ID: provenanceTransformationId -%} + {%- endcomment -%} + {% if firstSegments.MSH.4 -%} + {% if firstSegments.MSH.4.1 != "" and firstSegments.MSH.4.1 != null or firstSegments.MSH.4.2 != "" and firstSegments.MSH.4.2 != null or firstSegments.MSH.4.3 != "" and firstSegments.MSH.4.3 != null -%} + {% evaluate organization_ID_MSH_4 using 'ID/Organization' HD: firstSegments.MSH.4 -%} + {% include 'Resource/Organization' MSHHD1: firstSegments.MSH.4, MSH: firstSegments.MSH, ID: organization_ID_MSH_4 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.6 %} + {% if firstSegments.MSH.6.1 != "" and firstSegments.MSH.6.1 != null or firstSegments.MSH.6.2 != "" and firstSegments.MSH.6.2 != null or firstSegments.MSH.6.3 != "" and firstSegments.MSH.6.3 != null -%} + {% evaluate organization_Id_MSH_6 using 'ID/Organization' HD: firstSegments.MSH.6 -%} + {% include 'Resource/Organization' MSHHD2: firstSegments.MSH.6, MSH: firstSegments.MSH, ID: organization_Id_MSH_6 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.22 %} + {% if firstSegments.MSH.22.1 != "" and firstSegments.MSH.22.1 != null -%} + {% evaluate organization_Id_MSH_22 using 'ID/Organization' XON: firstSegments.MSH.22 -%} + {% include 'Resource/Organization' MSHXON1: firstSegments.MSH.22, ID: organization_Id_MSH_22 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.23 %} + {% if firstSegments.MSH.23.1 != "" and firstSegments.MSH.23.1 != null -%} + {% evaluate organization_Id_MSH_23 using 'ID/Organization' XON: firstSegments.MSH.23 -%} + {% include 'Resource/Organization' MSHXON2: firstSegments.MSH.23, ID: organization_Id_MSH_23 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.3 and firstSegments.MSH.24 %} + {% evaluate device_Id_MSH_3 using 'ID/Device' HD: firstSegments.MSH.3 -%} + {% include 'Resource/Device' MSH: firstSegments.MSH, ID: device_Id_MSH_3 -%} + {% endif -%} + {% endif -%} + + {% for sftSegment in sftSegmentLists.SFT -%} + {% evaluate deviceId_SFT using 'ID/Device' SFT: sftSegment -%} + {% include 'Resource/Device' SFT:sftSegment, ID: deviceId_SFT -%} + {% include 'Resource/MessageHeader' MSH: firstSegments.MSH, SFT:sftSegment, ID: messageHeaderID -%} + {% endfor -%} + + {% include 'Resource/Patient' PID: firstSegments.PID, PD1: firstSegments.PD1, ID: patientId -%} + {% include 'Extensions/Patient/PatientExtension' ID: PatientId, PID: firstSegments.PID, PD1: firstSegments.PD1, PV1: firstSegments.PV1 -%} + + {% if firstSegments.PID.18 -%} + {% evaluate accountId using 'ID/Account' CX: firstSegments.PID.3 -%} + {% include 'Resource/Account' PID: firstSegments.PID, ID: accountId -%} + {% include 'Reference/Account/Subject' ID: accountId, REF: fullPatientId -%} + {% if firstSegments.PID.18.4.1 != "" and firstSegments.PID.18.4.1 != null and firstSegments.PID.18.4.2 != "" and firstSegments.PID.18.4.2 != null and firstSegments.PID.18.4.3 != "" and firstSegments.PID.18.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_18 using 'ID/Organization' HDORG: firstSegments.PID.18.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.18, ID: Organization_ID_pid_CX_18 -%} + {% endif -%} + + {% for gt1SegmentLists in gt1SegmentLists.GT1 -%} + {% if gt1SegmentLists.11.1.Value == "SEL" -%} + {% include 'Resource/Patient' PID: firstSegments.PID, GT1: gt1SegmentLists, ID: patientId, NK1_PER: nk1SegmentLists.NK1[0] -%} + {% if gt1SegmentLists.2.4.1 != "" and gt1SegmentLists.2.4.1 != null and gt1SegmentLists.2.4.2 != "" and gt1SegmentLists.2.4.2 != null and gt1SegmentLists.2.4.3 != "" and gt1SegmentLists.2.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_2 using 'ID/Organization' HDORG: gt1SegmentLists.2.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.2, ID: Organization_ID_gt1_CX_2 -%} + {% endif -%} + {% if gt1SegmentLists.19.4.1 != "" and gt1SegmentLists.19.4.1 != null and gt1SegmentLists.19.4.2 != "" and gt1SegmentLists.19.4.2 != null and gt1SegmentLists.19.4.3 != "" and gt1SegmentLists.19.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_19 using 'ID/Organization' HDORG: gt1SegmentLists.19.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.19, ID: Organization_ID_gt1_CX_19 -%} + {% endif -%} + {% if gt1SegmentLists.29.4.1 != "" and gt1SegmentLists.29.4.1 != null and gt1SegmentLists.29.4.2 != "" and gt1SegmentLists.29.4.2 != null and gt1SegmentLists.29.4.3 != "" and gt1SegmentLists.29.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_29 using 'ID/Organization' HDORG: gt1SegmentLists.29.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.29, ID: Organization_ID_gt1_CX_29 -%} + {% endif -%} + {% if gt1SegmentLists.51 and nk1SegmentLists.NK1[0].7.1.Value == "E" -%} + {% evaluate Organization_ID_gt1_XON_51 using 'ID/Organization' XON: gt1SegmentLists.51 -%} + {% include 'Resource/Organization', GT1_51: gt1SegmentLists, ID: Organization_ID_gt1_XON_51 -%} + {% assign Organization_GT1_51 = Organization_ID_gt1_XON_51 | prepend: 'Organization/' -%} + {% include 'Reference/Patient/Contact_Organization' REF:Organization_GT1_51 , ID: patientId -%} + {% endif -%} + {% else -%} + {% evaluate gt1relatedPersonId using 'ID/RelatedPerson' GT1: gt1SegmentLists, baseId: patientId -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: gt1relatedPersonId, GT1: gt1SegmentLists -%} + {% if gt1SegmentLists.2.4.1 != "" and gt1SegmentLists.2.4.1 != null and gt1SegmentLists.2.4.2 != "" and gt1SegmentLists.2.4.2 != null and gt1SegmentLists.2.4.3 != "" and gt1SegmentLists.2.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_2 using 'ID/Organization' HDORG: gt1SegmentLists.2.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.2, ID: Organization_ID_gt1_CX_2 -%} + {% endif -%} + {% if gt1SegmentLists.19.4.1 != "" and gt1SegmentLists.19.4.1 != null and gt1SegmentLists.19.4.2 != "" and gt1SegmentLists.19.4.2 != null and gt1SegmentLists.19.4.3 != "" and gt1SegmentLists.19.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_19 using 'ID/Organization' HDORG: gt1SegmentLists.19.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.19, ID: Organization_ID_gt1_CX_19 -%} + {% endif -%} + {% endif -%} + {% if gt1SegmentLists.21 -%} + {% evaluate Organization_ID_gt1_XON_21 using 'ID/Organization' XON: gt1SegmentLists.21 -%} + {% include 'Resource/Organization', GT1: gt1SegmentLists, ID: Organization_ID_gt1_XON_21 -%} + {% if gt1SegmentLists.2.4.1 != "" and gt1SegmentLists.2.4.1 != null and gt1SegmentLists.2.4.2 != "" and gt1SegmentLists.2.4.2 != null and gt1SegmentLists.2.4.3 != "" and gt1SegmentLists.2.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_2 using 'ID/Organization' HDORG: gt1SegmentLists.2.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.2, ID: Organization_ID_gt1_CX_2 -%} + {% endif -%} + {% endif -%} + {% include 'Resource/Account' GT1: gt1SegmentLists, ID: accountId, REF_PATIENT: fullPatientId, REF_RELATED_PERSON: gt1relatedPersonId, REF_ORG: Organization_ID_gt1_XON_21 -%} + {% endfor -%} + + {% endif -%} + + {% if firstSegments.PID.2 -%} + {% if firstSegments.PID.2.4.1 != "" and firstSegments.PID.2.4.1 != null and firstSegments.PID.2.4.2 != "" and firstSegments.PID.2.4.2 != null and firstSegments.PID.2.4.3 != "" and firstSegments.PID.2.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_2 using 'ID/Organization' HDORG: firstSegments.PID.2.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.2, ID: Organization_ID_pid_CX_2 -%} + {% endif -%} + {% endif -%} + {% for pid3 in firstSegments.PID.3.Repeats -%} + {% if pid3.4.1 != "" and pid3.4.1 != null and pid3.4.2 != "" and pid3.4.2 != null and pid3.4.3 != "" and pid3.4.3 != null -%} + {% evaluate Organization_ID_pid_CX using 'ID/Organization' HDORG: pid3.4 -%} + {% include 'Resource/Organization', PID: pid3, ID: Organization_ID_pid_CX -%} + {% endif -%} + {% endfor -%} + {% if firstSegments.PID.4 -%} + {% if firstSegments.PID.4.4.1 != "" and firstSegments.PID.4.4.1 != null and firstSegments.PID.4.4.2 != "" and firstSegments.PID.4.4.2 != null and firstSegments.PID.4.4.3 != "" and firstSegments.PID.4.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_4 using 'ID/Organization' HDORG: firstSegments.PID.4.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.4, ID: Organization_ID_pid_CX_4 -%} + {% endif -%} + {% endif -%} + + {% unless nk1SegmentLists.NK1 -%} + {% if firstSegments.PID.21 -%} + {% if firstSegments.PID.21.4.1 != "" and firstSegments.PID.21.4.1 != null and firstSegments.PID.21.4.2 != "" and firstSegments.PID.21.4.2 != null and firstSegments.PID.21.4.3 != "" and firstSegments.PID.21.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_21 using 'ID/Organization' HDORG: firstSegments.PID.21.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.21, ID: Organization_ID_pid_CX_21 -%} + {% endif -%} + {% evaluate pidrelatedPersonId using 'ID/RelatedPerson' PID: firstSegments.PID, baseId: patientId -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: pidrelatedPersonId, PID: firstSegments.PID -%} + {% endif -%} + {% endunless -%} + {% if firstSegments.PD1.3 -%} + {% evaluate Organization_ID_PD1_3 using 'ID/Organization' XON: firstSegments.PD1.3 -%} + {% include 'Resource/Organization' PD1: firstSegments.PD1, ID: Organization_ID_PD1_3 -%} + {% endif -%} + + {% if firstSegments.PD1.4 -%} + {% if firstSegments.PD1.4.9.1 != "" and firstSegments.PD1.4.9.1 != null and firstSegments.PD1.4.9.2 != "" and firstSegments.PD1.4.9.2 != null and firstSegments.PD1.4.9.3 != "" and firstSegments.PD1.4.9.3 != null -%} + {% evaluate Organization_ID_PD1_4_9 using 'ID/Organization' HDORG: firstSegments.PD1.4.9 -%} + {% include 'Resource/Organization', PD1_4: firstSegments.PD1.4.9, ID: Organization_ID_PD1_4_9 -%} + {% endif -%} + {% evaluate Practitioner_ID_PD1_4 using 'ID/Practitioner' XCN: firstSegments.PD1.4 -%} + {% include 'Resource/Practitioner' PD1: firstSegments.PD1.4, ID: Practitioner_ID_PD1_4 -%} + {% endif -%} + + {% if firstSegments.PV1 -%} + {% if firstSegments.PV1.5 -%} + {% if firstSegments.PV1.5.4.1 != "" and firstSegments.PV1.5.4.1 != null and firstSegments.PV1.5.4.2 != "" and firstSegments.PV1.5.4.2 != null and firstSegments.PV1.5.4.3 != "" and firstSegments.PV1.5.4.3 != null -%} + {% evaluate Organization_ID_PV1_5_4 using 'ID/Organization' HDORG: firstSegments.PV1.5.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.5.4, ID: Organization_ID_PV1_5_4 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PV1.19 -%} + {% if firstSegments.PV1.19.4.1 != "" and firstSegments.PV1.19.4.1 != null and firstSegments.PV1.19.4.2 != "" and firstSegments.PV1.19.4.2 != null and firstSegments.PV1.19.4.3 != "" and firstSegments.PV1.19.4.3 != null -%} + {% evaluate Organization_ID_PV1_19_4 using 'ID/Organization' HDORG: firstSegments.PV1.19.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.19.4, ID: Organization_ID_PV1_19_4 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PV1.7 -%} + {% if firstSegments.PV1.7.9.1 != "" and firstSegments.PV1.7.9.1 != null and firstSegments.PV1.7.9.2 != "" and firstSegments.PV1.7.9.2 != null and firstSegments.PV1.7.9.3 != "" and firstSegments.PV1.7.9.3 != null -%} + {% evaluate Organization_ID_PV1_7_9 using 'ID/Organization' HDORG: firstSegments.PV1.7.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.7.9, ID: Organization_ID_PV1_7_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_7 using 'ID/Practitioner' XCN: firstSegments.PV1.7 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.7, ID: practitionerId_PV1_7 -%} + {% endif -%} + + {% if firstSegments.PV1.8 -%} + {% if firstSegments.PV1.8.9.1 != "" and firstSegments.PV1.8.9.1 != null and firstSegments.PV1.8.9.2 != "" and firstSegments.PV1.8.9.2 != null and firstSegments.PV1.8.9.3 != "" and firstSegments.PV1.8.9.3 != null -%} + {% evaluate Organization_ID_PV1_8_9 using 'ID/Organization' HDORG: firstSegments.PV1.8.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.8.9, ID: Organization_ID_PV1_8_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_8 using 'ID/Practitioner' XCN: firstSegments.PV1.8 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.8, ID: practitionerId_PV1_8 -%} + {% endif -%} + + {% if firstSegments.PV1.9 -%} + {% if firstSegments.PV1.9.9.1 != "" and firstSegments.PV1.9.9.1 != null and firstSegments.PV1.9.9.2 != "" and firstSegments.PV1.9.9.2 != null and firstSegments.PV1.9.9.3 != "" and firstSegments.PV1.9.9.3 != null -%} + {% evaluate Organization_ID_PV1_9_9 using 'ID/Organization' HDORG: firstSegments.PV1.9.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.9.9, ID: Organization_ID_PV1_9_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_9 using 'ID/Practitioner' XCN: firstSegments.PV1.9 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.9, ID: practitionerId_PV1_9 -%} + {% endif -%} + + {% if firstSegments.PV1.17 -%} + {% if firstSegments.PV1.17.9.1 != "" and firstSegments.PV1.17.9.1 != null and firstSegments.PV1.17.9.2 != "" and firstSegments.PV1.17.9.2 != null and firstSegments.PV1.17.9.3 != "" and firstSegments.PV1.17.9.3 != null -%} + {% evaluate Organization_ID_PV1_17_9 using 'ID/Organization' HDORG: firstSegments.PV1.17.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.17.9, ID: Organization_ID_PV1_17_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_17 using 'ID/Practitioner' XCN: firstSegments.PV1.17 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.17, ID: practitionerId_PV1_17 -%} + {% endif -%} + + {% if firstSegments.PV1.50 -%} + {% for p in firstSegments.PV1.50.Repeats -%} + {% if p.4.1 != "" and p.4.1 != null and p.4.2 != "" and p.4.2 != null and p.4.3 != "" and p.4.3 != null -%} + {% evaluate Organization_ID_PV1_50_4 using 'ID/Organization' HDORG: p.4 -%} + {% include 'Resource/Organization', PV1: p.4, ID: Organization_ID_PV1_50_4 -%} + {% endif -%} + {% endfor -%} + {% endif -%} + + {% if firstSegments.PV1.52 -%} + {% if firstSegments.PV1.52.9.1 != "" and firstSegments.PV1.52.9.1 != null and firstSegments.PV1.52.9.2 != "" and firstSegments.PV1.52.9.2 != null and firstSegments.PV1.52.9.3 != "" and firstSegments.PV1.52.9.3 != null -%} + {% evaluate Organization_ID_PV1_52_9 using 'ID/Organization' HDORG: firstSegments.PV1.52.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.52.9, ID: Organization_ID_PV1_52_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_52 using 'ID/Practitioner' XCN: firstSegments.PV1.52 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.52, ID: practitionerId_PV1_52 -%} + {% endif -%} + + {% if firstSegments.PV2.13 -%} + {% if firstSegments.PV2.13.9.1 != "" and firstSegments.PV2.13.9.1 != null and firstSegments.PV2.13.9.2 != "" and firstSegments.PV2.13.9.2 != null and firstSegments.PV2.13.9.3 != "" and firstSegments.PV2.13.9.3 != null -%} + {% evaluate Organization_ID_PV2_13_9 using 'ID/Organization' HDORG: firstSegments.PV2.13.9 -%} + {% include 'Resource/Organization', PV2: firstSegments.PV2.13.9, ID: Organization_ID_PV2_13_9 -%} + {% endif -%} + {% evaluate practitionerId_PV2_13 using 'ID/Practitioner' XCN: firstSegments.PV2.13 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV2.13, ID: practitionerId_PV2_13 -%} + {% endif -%} + + {% if firstSegments.PV1.3 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.3-%} + {% endif -%} + + {% if firstSegments.PV1.6 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.6 -%} + {% endif -%} + + {% if firstSegments.PV1.37 -%} + {% evaluate location_ID_PV1_37 using 'ID/Location' DLD: firstSegments.PV1.37 -%} + {% include 'Resource/Location' PV1: firstSegments.PV1.37, ID: location_ID_PV1_37-%} + {% endif -%} + + {% if firstSegments.PV1.42 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.42-%} + {% endif -%} + + {% if firstSegments.PV1.43 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.43-%} + {% endif -%} + + {% if firstSegments.PV2.1 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV2.1-%} + {% endif -%} + + {% if firstSegments.PV1.54 -%} + {% if firstSegments.PV1.54.4.1 != "" and firstSegments.PV1.54.4.1 != null and firstSegments.PV1.54.4.2 != "" and firstSegments.PV1.54.4.2 != null and firstSegments.PV1.54.4.3 != "" and firstSegments.PV1.54.4.3 != null -%} + {% evaluate Organization_ID_PV1_54_4 using 'ID/Organization' HDORG: firstSegments.PV1.54.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.54.4, ID: Organization_ID_PV1_54_4 -%} + {% endif -%} + {% evaluate EpisodeOfCare_ID using 'ID/EpisodeOfCare' PV1: firstSegments.PV1.54 -%} + {% include 'Resource/EpisodeOfCare' PV1: firstSegments.PV1, ID: EpisodeOfCare_ID, patientRefrenceID: fullPatientId -%} + {% endif -%} + + {% evaluate encounterId using 'ID/Encounter' PV1: firstSegments.PV1, baseId: patientId -%} + {% include 'Resource/Encounter' Root_Template: 'ADT_A04', PV1: firstSegments.PV1, PV2: firstSegments.PV2, ID: encounterId -%} + {% include 'Reference/Encounter/Subject' ID: encounterId, REF: fullPatientId -%} + {% include 'Extensions/Encounter/EncounterExtension' ID: encounterId, PV1: firstSegments.PV1, PV2: firstSegments.PV2, -%} + {% endif -%} + + {% if firstSegments.EVN -%} + {% evaluate provenanceId using 'ID/Provenance' EVN: firstSegments.EVN, baseId: patientId -%} + {% include 'Resource/Provenance' EVN: firstSegments.EVN, EVNTEXT: firstSegments.MSH.9, REF_BUNDLE: bundleID, ID: provenanceId -%} + {% if firstSegments.EVN.5 -%} + {% if firstSegments.EVN.5.9.1 != "" and firstSegments.EVN.5.9.1 != null and firstSegments.EVN.5.9.2 != "" and firstSegments.EVN.5.9.2 != null and firstSegments.EVN.5.9.3 != "" and firstSegments.EVN.5.9.3 != null -%} + {% evaluate Organization_ID_EVN_5_9 using 'ID/Organization' HDORG: firstSegments.EVN.5.9 -%} + {% include 'Resource/Organization', EVN: firstSegments.EVN.5.9, ID: Organization_ID_EVN_5_9 -%} + {% endif -%} + {% evaluate practitionerId_EVN_5 using 'ID/Practitioner' XCN: firstSegments.EVN.5 -%} + {% include 'Resource/Practitioner' EVN: firstSegments.EVN.5, ID: practitionerId_EVN_5 -%} + {% if firstSegments.EVN.7 -%} + {% evaluate locationId_EVN_7 using 'ID/Location' HD: firstSegments.EVN.7 -%} + {% include 'Resource/Location' EVN: firstSegments.EVN.7, ID: locationId_EVN_7 -%} + {% endif -%} + {% endif -%} + {% endif -%} + + {% for pr1Segment in pr1SegmentLists.PR1 -%} + {% if pr1Segment.8 -%} + {% if pr1Segment.8.9.1 != "" and pr1Segment.8.9.1 != null and pr1Segment.8.9.2 != "" and pr1Segment.8.9.2 != null and pr1Segment.8.9.3 != "" and pr1Segment.8.9.3 != null -%} + {% evaluate Organization_ID_PR1_8 using 'ID/Organization' HDORG: pr1Segment.8.9 -%} + {% include 'Resource/Organization', PR1: pr1Segment.8.9, ID: Organization_ID_PR1_8 -%} + {% endif -%} + {% evaluate practitionerId_PR1_8 using 'ID/Practitioner' XCN: pr1Segment.8 -%} + {% include 'Resource/Practitioner' PR1: pr1Segment.8, ID: practitionerId_PR1_8 -%} + {% endif -%} + + {% if pr1Segment.11 -%} + {% if pr1Segment.11.9.1 != "" and pr1Segment.11.9.1 != null and pr1Segment.11.9.2 != "" and pr1Segment.11.9.2 != null and pr1Segment.11.9.3 != "" and pr1Segment.11.9.3 != null -%} + {% evaluate Organization_ID_PR1_11 using 'ID/Organization' HDORG: pr1Segment.11.9 -%} + {% include 'Resource/Organization', PR1: pr1Segment.11.9, ID: Organization_ID_PR1_11 -%} + {% endif -%} + {% evaluate practitionerId_PR1_11 using 'ID/Practitioner' XCN: pr1Segment.11 -%} + {% include 'Resource/Practitioner' PR1: pr1Segment.11, ID: practitionerId_PR1_11 -%} + {% endif -%} + + {% if pr1Segment.12 -%} + {% if pr1Segment.12.9.1 != "" and pr1Segment.12.9.1 != null and pr1Segment.12.9.2 != "" and pr1Segment.12.9.2 != null and pr1Segment.12.9.3 != "" and pr1Segment.12.9.3 != null -%} + {% evaluate Organization_ID_PR1_12 using 'ID/Organization' HDORG: pr1Segment.12.9 -%} + {% include 'Resource/Organization', PR1: pr1Segment.12.9, ID: Organization_ID_PR1_12 -%} + {% endif -%} + {% evaluate practitionerId_PR1_12 using 'ID/Practitioner' XCN: pr1Segment.12 -%} + {% include 'Resource/Practitioner' PR1: pr1Segment.12, ID: practitionerId_PR1_12 -%} + {% endif -%} + + {% if pr1Segment.23.1 -%} + {% evaluate Location_ID_PR1_23_1 using 'ID/Location' PL: pr1Segment.23.1 -%} + {% include 'Resource/PLLocation' PL_1: pr1Segment.23.1, ID: Location_ID_PR1_23_1-%} + {% else %} + {% if pr1Segment.23.2 %} + {% evaluate Location_ID_PR1_23_2 using 'ID/Location' PL: pr1Segment.23.2 -%} + {% include 'Resource/PLLocation' PL_2: pr1Segment.23.2, ID: Location_ID_PR1_23_2-%} + {% endif %} + {% endif %} + + {% if pr1Segment.25 -%} + {% evaluate Procedure_ID_PR1_25 using 'ID/Procedure' PR1: pr1Segment.25, baseId: fullPatientId -%} + {% include 'Resource/Procedure' PR1_25: pr1Segment.25, PV1: firstSegments.PV1, Procedure_Subject_ID: fullPatientId, ID: Procedure_ID_PR1_25 -%} + {% endif -%} + + {% evaluate procedureId using 'ID/Procedure' PR1: pr1Segment, baseId: patientId -%} + {% include 'Resource/Procedure' PR1: pr1Segment, PV1: firstSegments.PV1, Procedure_Subject_ID: fullPatientId, ID: procedureId -%} + {% endfor -%} + + {% for nk1Segment in nk1SegmentLists.NK1 -%} + {% evaluate relatedPersonId using 'ID/RelatedPerson' NK1: nk1Segment, baseId: patientId -%} + {% if nk1Segment.13 -%} + {% evaluate organizationId_NK1_13 using 'ID/Organization' XON: nk1Segment.13 -%} + {% include 'Resource/Organization' NK1: nk1Segment, ID: organizationId_NK1_13 -%} + {% assign Organization_NK1_13 = organizationId_NK1_13 | prepend: 'Organization/' -%} + {% include 'Reference/Patient/Contact_Organization' REF:Organization_NK1_13 , ID: patientId -%} + {% endif -%} + {% unless nk1Segment.3.1.Value == "EMR" or nk1Segment.3.1.Value == "CGV" or nk1Segment.7.1.Value == "E" or nk1Segment.7.1.Value =="F" or nk1Segment.7.1.Value == "I" or nk1Segment.7.1.Value =="S" -%} + {% include 'Resource/Patient' NK1: nk1Segment, ID: patientId -%} + {% include 'Resource/RelatedPerson' NK1: nk1Segment, RelatedPerson_Patient_ID: fullPatientId, ID: relatedPersonId, PID: firstSegments.PID -%} + {% include 'Extensions/RelatedPerson/RelatedPerson' ID: relatedPersonId, NK1: nk1Segment -%} + {% if nk1Segment.12.4.1 != "" and nk1Segment.12.4.1 != null and nk1Segment.12.4.2 != "" and nk1Segment.12.4.2 != null and nk1Segment.12.4.3 != "" and nk1Segment.12.4.3 != null -%} + {% evaluate Organization_ID_nk_CX_12 using 'ID/Organization' HDORG: nk1Segment.12.4 -%} + {% include 'Resource/Organization', NK1_12: nk1Segment.12, ID: Organization_ID_nk_CX_12 -%} + {% endif -%} + {% endunless -%} + {% if firstSegments.PID.21 -%} + {% include 'Resource/RelatedPerson' ID: relatedPersonId, PID: firstSegments.PID, RelatedPerson_Patient_ID: fullPatientId -%} + {% if firstSegments.PID.21.4.1 != "" and firstSegments.PID.21.4.1 != null and firstSegments.PID.21.4.2 != "" and firstSegments.PID.21.4.2 != null and firstSegments.PID.21.4.3 != "" and firstSegments.PID.21.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_21 using 'ID/Organization' HDORG: firstSegments.PID.21.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.21, ID: Organization_ID_pid_CX_21 -%} + {% endif -%} + {% endif -%} + + {% for nk33 in nk1Segment.33.Repeats -%} + {% if nk33.4.1 != "" and nk33.4.1 != null and nk33.4.2 != "" and nk33.4.2 != null and nk33.4.3 != "" and nk33.4.3 != null -%} + {% evaluate Organization_ID_nk_CX_33 using 'ID/Organization' HDORG: nk33.4 -%} + {% include 'Resource/Organization', NK1_33: nk33, ID: Organization_ID_nk_CX_33 -%} + {% endif -%} + {% endfor -%} + {% endfor -%} + + {% for db1Segment in db1SegmentLists.DB1 -%} + {% if db1Segment.2.1.Value == "PT" %} + {% for db in db1Segment.3.Repeats -%} + {% if db.4.1 != "" and db.4.1 != null and db.4.2 != "" and db.4.2 != null and db.4.3 != "" and db.4.3 != null -%} + {% evaluate Organization_ID_DB1_3 using 'ID/Organization' HDORG: db.4 -%} + {% include 'Resource/Organization', DB1: db.4, ID: Organization_ID_DB1_3 -%} + {% endif -%} + {% endfor %} + {% include 'Extensions/Patient/PatientExtension' ID: PatientId, DB1: db1Segment -%} + {% endif -%} + {% include 'Resource/Patient' DB1: db1Segment, ID: patientId -%} + {% endfor %} + {% for obxSegment in obxSegmentLists.OBX -%} + {% for obx_16 in obxSegment.16.Repeats -%} + {% if obx_16.9.1 != "" and obx_16.9.1 != null and obx_16.9.2 != "" and obx_16.9.2 != null and obx_16.9.3 != "" and obx_16.9.3 != null -%} + {% evaluate Organization_ID_OBX_16 using 'ID/Organization' HDORG: obx_16.9 -%} + {% include 'Resource/Organization' OBX: obx_16.9, ID: Organization_ID_OBX_16 -%} + {% endif -%} + {% evaluate practitionerId_OBX_16 using 'ID/Practitioner' XCN: obx_16 -%} + {% include 'Resource/Practitioner' OBX: obxSegment, OBXXCN1: obx_16, ID: practitionerId_OBX_16 -%} + {% evaluate practitionerRoleId_OBX_16 using 'ID/PractitionerRole' XCN: obx_16 -%} + {% assign full_practitionerId_OBX_16 = practitionerId_OBX_16 | prepend: 'Practitioner/' %} + {% include 'Resource/PractitionerRole' OBXXCN1: obx_16, ID: practitionerRoleId_OBX_16 -%} + {% include 'Reference/PractitionerRole/Practitioner' REF: full_practitionerId_OBX_16, ID: practitionerRoleId_OBX_16 -%} + {% endfor %} + {% if obxSegment.18 -%} + {% evaluate deviceId_OBX_18 using 'ID/Device' EI: obxSegment.18.Repeats[0] -%} + {% include 'Resource/Device' EI_OBX18: obxSegment.18, ID: deviceId_OBX_18 -%} + {% endif -%} + {% if obxSegment.23 or obxSegment.25 %} + {% evaluate practitionerRoleId_OBX_25 using 'ID/PractitionerRole' XCN: obxSegment.25 -%} + {% endif %} + {% if obxSegment.25 -%} + {% evaluate practitionerId_OBX_25 using 'ID/Practitioner' XCN: obxSegment.25 -%} + {% include 'Resource/Practitioner' OBX: obxSegment, OBXXCN2: obxSegment.25, ID: practitionerId_OBX_25 -%} + {% assign full_practitionerId_OBX_25 = practitionerId_OBX_25 | prepend: 'Practitioner/' %} + {% include 'Resource/PractitionerRole' OBXXCN2: obxSegment.25, ID: practitionerRoleId_OBX_25 -%} + {% include 'Reference/PractitionerRole/Practitioner' REF: full_practitionerId_OBX_25, ID: practitionerRoleId_OBX_25 -%} + {% endif -%} + {% if obxSegment.23 -%} + {% evaluate organizationId_OBX_23 using 'ID/Organization' XON: obxSegment.23 -%} + {% include 'Resource/Organization' OBX_23: obxSegment.23, OBX_24: obxSegment.24, ID: organizationId_OBX_23 -%} + {% if obxSegment.25 -%} + {% assign full_organizationId_OBX_23 = organizationId_OBX_23 | prepend: 'Organization/' %} + {% include 'Reference/PractitionerRole/Organization' REF: full_organizationId_OBX_23, ID: practitionerRoleId_OBX_25 -%} + {% endif -%} + {% endif -%} + {% evaluate observationId using 'ID/Observation' OBX: obxSegment, baseId: patientId -%} + {% include 'Resource/Observation' OBX: obxSegment, Observation_Subject_ID: fullPatientId, ID: observationId -%} + {% include 'Extensions/Observation/ObservationExtension' OBX: obxSegment, ID: observationId %} + {% endfor -%} + + {% for al1Segment in al1SegmentLists.AL1 -%} + {% evaluate allergyIntoleranceId using 'ID/AllergyIntolerance' AL1: al1Segment, baseId: patientId -%} + {% include 'Resource/AllergyIntolerance' AL1: al1Segment, ID: allergyIntoleranceId, AllergyIntolerance_Patient_ID: fullPatientId -%} + {% endfor -%} + + {% for dg1Segment in dg1SegmentLists.DG1 -%} + {% if dg1Segment.16.Repeats[0] %} + {% if dg1Segment.16.Repeats[0].9.1 != "" and dg1Segment.16.Repeats[0].9.1 != null and dg1Segment.16.Repeats[0].9.2 != "" and dg1Segment.16.Repeats[0].9.2 != null and dg1Segment.16.Repeats[0].9.3 != "" and dg1Segment.16.Repeats[0].9.3 != null -%} + {% evaluate Organization_ID_DG1_16 using 'ID/Organization' HDORG: dg1Segment.16.Repeats[0].9 -%} + {% include 'Resource/Organization', DG1: dg1Segment.16.Repeats[0].9, ID: Organization_ID_DG1_16 -%} + {% endif -%} + {% evaluate practitionerId_DG1_16 using 'ID/Practitioner' XCN: dg1Segment.16.Repeats[0] -%} + {% include 'Resource/Practitioner' DG1: dg1Segment, ID: practitionerId_DG1_16 -%} + {% endif -%} + + {% evaluate conditionId using 'ID/Condition' DG1: dg1Segment, baseId: patientId -%} + {% include 'Resource/Condition' DG1: dg1Segment, Condition_Subject_ID: fullPatientId, baseId: patientId, ID: conditionId -%} + + {% if encounterId -%} + {% include 'Resource/Encounter' DG1: dg1Segment, conditionId: conditionId, ID: encounterId -%} + {% endif -%} + {% if EpisodeOfCare_ID %} + {% include 'Resource/EpisodeOfCare' DG1: dg1Segment, conditionId: conditionId, ID: EpisodeOfCare_ID -%} + {% endif %} + {% if dg1Segment.22 -%} + {% evaluate conditionId_DG1_22 using 'ID/Condition' DG1: dg1Segment.22, baseId: patientId -%} + {% include 'Resource/Condition' DG1_22: dg1Segment.22, Condition_Subject_ID_DG1_22: fullPatientId, ID: conditionId_DG1_22 -%} + {% endif -%} + {% include 'Extensions/Condition/ConditionExtension' DG1: dg1Segment, ID_DG1_22:conditionId_DG1_22, ID: conditionId %} + + {% endfor -%} + + {% for rf1Segment in rf1SegmentLists.RF1 -%} + {% if rf1Segment.19 -%} + {% evaluate Organization_ID_RF1_19 using 'ID/Organization' XON: rf1Segment.19 -%} + {% include 'Resource/Organization' RF1: rf1Segment.19, ID: Organization_ID_RF1_19 -%} + {% endif -%} + + {% if rf1Segment.20 -%} + {% if rf1Segment.20.9.1 != "" and rf1Segment.20.9.1 != null and rf1Segment.20.9.2 != "" and rf1Segment.20.9.2 != null and rf1Segment.20.9.3 != "" and rf1Segment.20.9.3 != null -%} + {% evaluate Organization_ID_RF1_20_9 using 'ID/Organization' HDORG: rf1Segment.20.9 -%} + {% include 'Resource/Organization', RF1_20: rf1Segment.20.9, ID: Organization_ID_RF1_20_9 -%} + {% endif -%} + {% evaluate Practitioner_ID_RF1_20 using 'ID/Practitioner' XCN: rf1Segment.20 -%} + {% include 'Resource/Practitioner' RF1: rf1Segment.20, ID: Practitioner_ID_RF1_20 -%} + {% endif -%} + + {% evaluate serviceRequestId using 'ID/ServiceRequest' RF1: rf1Segment, baseId: patientId -%} + {% include 'Resource/ServiceRequest' RF1: rf1Segment, ID: serviceRequestId, ServiceRequest_Subject_ID: fullPatientId -%} + {% endfor -%} + + {% for in1Segment in in1SegmentLists.IN1 -%} + + {% evaluate coverageId using 'ID/Coverage' CX: in1Segment -%} + {% include 'Resource/Coverage' IN1: in1Segment, ID: coverageId -%} + {% include 'Reference/Coverage/Beneficiary' ID: coverageId, REF: fullPatientId -%} + + {% for in1_49 in in1Segment.49.Repeats -%} + {% if in1_49.4.1 != "" and in1_49.4.1 != null and in1_49.4.2 != "" and in1_49.4.2 != null and in1_49.4.3 != "" and in1_49.4.3 != null -%} + {% evaluate Organization_ID_in1_CX_49 using 'ID/Organization' HDORG: in1_49.4 -%} + {% include 'Resource/Organization', IN1_49: in1_49, ID: Organization_ID_in1_CX_49 -%} + {% endif -%} + {% endfor -%} + + {% for in1_3 in in1Segment.3.Repeats -%} + {% if in1_3.4.1 != "" and in1_3.4.1 != null and in1_3.4.2 != "" and in1_3.4.2 != null and in1_3.4.3 != "" and in1_3.4.3 != null -%} + {% evaluate Organization_ID_in1_CX_3 using 'ID/Organization' HDORG: in1_3.4 -%} + {% include 'Resource/Organization', IN1_3: in1_3, ID: Organization_ID_in1_CX_3 -%} + {% endif -%} + {% endfor -%} + + {% for in1_10 in in1Segment.10.Repeats -%} + {% if in1_10.4.1 != "" and in1_10.4.1 != null and in1_10.4.2 != "" and in1_10.4.2 != null and in1_10.4.3 != "" and in1_10.4.3 != null -%} + {% evaluate Organization_ID_in1_CX_10 using 'ID/Organization' HDORG: in1_10.4 -%} + {% include 'Resource/Organization', IN1_10: in1_10, ID: Organization_ID_in1_CX_10 -%} + {% endif -%} + {% endfor -%} + + {% if in1Segment.4 -%} + {% evaluate Organization_ID_in1_4 using 'ID/Organization' XON: in1Segment.4 -%} + {% else -%} + {% evaluate Organization_ID_in1_4 using 'ID/Organization' CX: in1Segment -%} + {% endif -%} + {% if Organization_ID_in1_4 -%} + {% include 'Resource/Organization', IN1: in1Segment, ID: Organization_ID_in1_4 -%} + {% assign org_in1_4 = Organization_ID_in1_4 | prepend: 'Organization/' -%} + {% include 'Reference/Coverage/Payor' ID: coverageId, REF: org_in1_4 -%} + {% endif -%} + + {% if in1Segment.11 -%} + {% evaluate Organization_ID_in1_11 using 'ID/Organization' XON: in1Segment.11 -%} + {% else -%} + {% evaluate Organization_ID_in1_11 using 'ID/Organization' CX_IN1: in1Segment -%} + {% endif -%} + {% if Organization_ID_in1_11 -%} + {% include 'Resource/Organization', IN1_11: in1Segment, ID: Organization_ID_in1_11 -%} + {% assign org_in1_11 = Organization_ID_in1_11 | prepend: 'Organization/' -%} + {% include 'Reference/Coverage/PolicyHolder' ID: coverageId, REF: org_in1_11 -%} + {% endif -%} + + {% if in1Segment.17.1.Value == "SEL" -%} + {% include 'Resource/Patient' PID_IN1: firstSegments.PID, IN1: in1Segment, ID: patientId -%} + {% include 'Reference/Coverage/Subscriber' ID: coverageId, REF: fullPatientId -%} + {% endif -%} + {% unless in1Segment.17.1.Value == "SEL" or in1Segment.17.Value == "" -%} + {% evaluate in1relatedPersonId using 'ID/RelatedPerson' IN1: in1Segment, baseId: patientId -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: in1relatedPersonId, IN1: in1Segment -%} + {% assign rel_in1_17 = in1relatedPersonId | prepend: 'RelatedPerson/' -%} + {% include 'Reference/Coverage/Subscriber' ID: coverageId, REF: rel_in1_17 -%} + {% endunless -%} + + {% for in2Segment in in2SegmentLists.IN2 -%} + {% if in1Segment.17.1.Value == "SEL" -%} + {% include 'Resource/Patient' IN2: in2Segment, ID: patientId -%} + {% endif -%} + {% unless in1Segment.17.1.Value == "SEL" or in1Segment.17.Value == "" -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: in1relatedPersonId, IN2: in2Segment -%} + {% endunless -%} + + {% unless in1Segment.10 and in1Segment.11 -%} + {% if in2Segment.3 -%} + {% evaluate in2relatedPersonId using 'ID/RelatedPerson' IN2: in2Segment, baseId: patientId -%} + {% if in2Segment.3.9.1 != "" and in2Segment.3.9.1 != null and in2Segment.3.9.2 != "" and in2Segment.3.9.2 != null and in2Segment.3.9.3 != "" and in2Segment.3.9.3 != null -%} + {% evaluate Organization_ID_IN2_3_9 using 'ID/Organization' HDORG: in2Segment.3.9 -%} + {% include 'Resource/Organization', IN2_3: in2Segment.3.9, ID: Organization_ID_IN2_3_9 -%} + {% endif -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: in2relatedPersonId, IN2_3: in2Segment -%} + {% assign relatedperson_3 = in2relatedPersonId | prepend: 'RelatedPerson/' -%} + {% include 'Reference/Coverage/PolicyHolder' ID: coverageId, REF: relatedperson_3 -%} + {% endif -%} + {% endunless -%} + + {% if in1Segment.10 == null and in1Segment.11 == null and in2Segment.3 == null -%} + {% if in2Segment.70 -%} + {% evaluate organization_Id_IN2_70 using 'ID/Organization' XON: in2Segment.70 -%} + {% include 'Resource/Organization' IN2_70: in2Segment, ID: organization_Id_IN2_70 -%} + {% assign org_in2_70 = organization_Id_IN2_70 | prepend: 'Organization/' -%} + {% include 'Reference/Coverage/PolicyHolder' ID: coverageId, REF: org_in2_70 -%} + {% endif -%} + {% endif -%} + + {% if Organization_ID_in1_11 -%} + {% include 'Resource/Organization', IN2_49: in2Segment, ID: Organization_ID_in1_11 -%} + {% endif -%} + {% include 'Resource/Coverage' IN2: in2Segment, ID: coverageId -%} + {% include 'Resource/Patient' IN2_6: in2Segment, ID: patientId -%} + + {% for in2_1 in in2Segment.1.Repeats -%} + {% if in2_1.4.1 != "" and in2_1.4.1 != null and in2_1.4.2 != "" and in2_1.4.2 != null and in2_1.4.3 != "" and in2_1.4.3 != null -%} + {% evaluate Organization_ID_in2_CX_1 using 'ID/Organization' HDORG: in2_1.4 -%} + {% include 'Resource/Organization', IN2_1: in2_1, ID: Organization_ID_in2_CX_1 -%} + {% endif -%} + {% endfor -%} + {% if in2Segment.61 -%} + {% if in2Segment.61.4.1 != "" and in2Segment.61.4.1 != null and in2Segment.61.4.2 != "" and in2Segment.61.4.2 != null and in2Segment.61.4.3 != "" and in2Segment.61.4.3 != null -%} + {% evaluate Organization_ID_in2_CX_61 using 'ID/Organization' HDORG: in2Segment.61.4 -%} + {% include 'Resource/Organization', IN2_61: in2Segment.61, ID: Organization_ID_in2_CX_61 -%} + {% endif -%} + {% endif -%} + {% endfor -%} + + {% endfor -%} + ] +} \ No newline at end of file diff --git a/data/Templates/Hl7v2/ADT_A05.liquid b/data/Templates/Hl7v2/ADT_A05.liquid new file mode 100644 index 000000000..5a6291fca --- /dev/null +++ b/data/Templates/Hl7v2/ADT_A05.liquid @@ -0,0 +1,619 @@ +{% assign firstSegments = hl7v2Data | get_first_segments: 'PID|PD1|PV1|PV2|MSH|UAC|EVN' -%} +{% assign sftSegmentLists = hl7v2Data | get_segment_lists: 'SFT' -%} +{% assign arvSegmentLists = hl7v2Data | get_segment_lists: 'ARV' -%} +{% assign rolSegmentLists = hl7v2Data | get_segment_lists: 'ROL' -%} +{% assign nk1SegmentLists = hl7v2Data | get_segment_lists: 'NK1' -%} +{% assign db1SegmentLists = hl7v2Data | get_segment_lists: 'DB1' -%} +{% assign obxSegmentLists = hl7v2Data | get_segment_lists: 'OBX' -%} +{% assign al1SegmentLists = hl7v2Data | get_segment_lists: 'AL1' -%} +{% assign dg1SegmentLists = hl7v2Data | get_segment_lists: 'DG1' -%} +{% assign drgSegmentLists = hl7v2Data | get_segment_lists: 'DRG' -%} +{% assign pr1SegmentLists = hl7v2Data | get_segment_lists: 'PR1' -%} +{% assign gt1SegmentLists = hl7v2Data | get_segment_lists: 'GT1' -%} +{% assign in1SegmentLists = hl7v2Data | get_segment_lists: 'IN1' -%} +{% assign in2SegmentLists = hl7v2Data | get_segment_lists: 'IN2' -%} +{% assign in3SegmentLists = hl7v2Data | get_segment_lists: 'IN3' -%} +{% assign autSegmentLists = hl7v2Data | get_segment_lists: 'AUT' -%} +{% assign rf1SegmentLists = hl7v2Data | get_segment_lists: 'RF1' -%} +{% assign accSegmentLists = hl7v2Data | get_segment_lists: 'ACC' -%} +{% assign ub1SegmentLists = hl7v2Data | get_segment_lists: 'UB1' -%} +{% assign ub2SegmentLists = hl7v2Data | get_segment_lists: 'UB2' -%} +{% evaluate bundleID using 'ID/Bundle' Data: firstSegments.MSH.10 -%} +{ + "resourceType": "Bundle", + "type": "batch", + {% if firstSegments.MSH.7 -%} + "timestamp":"{{ firstSegments.MSH.7.Value | format_as_date_time }}", + {% endif -%} + "identifier": + { + "value":"{{ firstSegments.MSH.10.Value }}", + }, + "id":"{{ bundleID }}", + "entry": [ + + {% evaluate patientId using 'ID/Patient' PID: firstSegments.PID, type: 'First' -%} + {% assign fullPatientId = patientId | prepend: 'Patient/' -%} + {% evaluate messageHeaderId using 'ID/MessageHeader' MSH: firstSegments.MSH -%} + + {% if firstSegments.MSH -%} + {% include 'Resource/MessageHeader' MSH: firstSegments.MSH, ID: messageHeaderId -%} + {% evaluate provenanceId using 'ID/Provenance' MSH: firstSegments.MSH, baseId: patientId -%} + {% include 'Resource/Provenance' Root_Template: 'ADT_A05', MSH: firstSegments.MSH, REF_BUNDLE: bundleID, ID: provenanceId -%} + + {%- comment -%} + {% assign transformation_val = 'provenance_transformation' %} + {% evaluate provenanceOrganizationId using 'ID/Organization', prov_id: firstSegments.MSH -%} + {% evaluate provenanceTransformationId using 'ID/Provenance_transformation' prov_id: transformation_val -%} + {% include 'Resource/Organization' org_name: 'Microsoft Corporation', ID: provenanceOrganizationId -%} + {% include 'Resource/Provenance_transformation' Root_Template: 'ADT_A05', Provenance_Organization_ID: provenanceOrganizationId, REF_MSH: messageHeaderId, provenanceOrganizationId, ID: provenanceTransformationId -%} + {%- endcomment -%} + {% if firstSegments.MSH.4 -%} + {% if firstSegments.MSH.4.1 != "" and firstSegments.MSH.4.1 != null or firstSegments.MSH.4.2 != "" and firstSegments.MSH.4.2 != null or firstSegments.MSH.4.3 != "" and firstSegments.MSH.4.3 != null -%} + {% evaluate organization_ID_MSH_4 using 'ID/Organization' HD: firstSegments.MSH.4 -%} + {% include 'Resource/Organization' MSHHD1: firstSegments.MSH.4, MSH: firstSegments.MSH, ID: organization_ID_MSH_4 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.6 %} + {% if firstSegments.MSH.6.1 != "" and firstSegments.MSH.6.1 != null or firstSegments.MSH.6.2 != "" and firstSegments.MSH.6.2 != null or firstSegments.MSH.6.3 != "" and firstSegments.MSH.6.3 != null -%} + {% evaluate organization_Id_MSH_6 using 'ID/Organization' HD: firstSegments.MSH.6 -%} + {% include 'Resource/Organization' MSHHD2: firstSegments.MSH.6, MSH: firstSegments.MSH, ID: organization_Id_MSH_6 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.22 %} + {% if firstSegments.MSH.22.1 != "" and firstSegments.MSH.22.1 != null -%} + {% evaluate organization_Id_MSH_22 using 'ID/Organization' XON: firstSegments.MSH.22 -%} + {% include 'Resource/Organization' MSHXON1: firstSegments.MSH.22, ID: organization_Id_MSH_22 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.23 %} + {% if firstSegments.MSH.23.1 != "" and firstSegments.MSH.23.1 != null -%} + {% evaluate organization_Id_MSH_23 using 'ID/Organization' XON: firstSegments.MSH.23 -%} + {% include 'Resource/Organization' MSHXON2: firstSegments.MSH.23, ID: organization_Id_MSH_23 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.3 and firstSegments.MSH.24 %} + {% evaluate device_Id_MSH_3 using 'ID/Device' HD: firstSegments.MSH.3 -%} + {% include 'Resource/Device' MSH: firstSegments.MSH, ID: device_Id_MSH_3 -%} + {% endif -%} + {% endif -%} + + {% for sftSegment in sftSegmentLists.SFT -%} + {% evaluate deviceId_SFT using 'ID/Device' SFT: sftSegment -%} + {% include 'Resource/Device' SFT:sftSegment, ID: deviceId_SFT -%} + {% include 'Resource/MessageHeader' MSH: firstSegments.MSH, SFT:sftSegment, ID: messageHeaderID -%} + {% endfor -%} + + {% include 'Resource/Patient' PID: firstSegments.PID, PD1: firstSegments.PD1, ID: patientId -%} + {% include 'Extensions/Patient/PatientExtension' ID: PatientId, PID: firstSegments.PID, PD1: firstSegments.PD1, PV1: firstSegments.PV1 -%} + + {% if firstSegments.PID.18 -%} + {% evaluate accountId using 'ID/Account' CX: firstSegments.PID.3 -%} + {% include 'Resource/Account' PID: firstSegments.PID, ID: accountId -%} + {% include 'Reference/Account/Subject' ID: accountId, REF: fullPatientId -%} + {% if firstSegments.PID.18.4.1 != "" and firstSegments.PID.18.4.1 != null and firstSegments.PID.18.4.2 != "" and firstSegments.PID.18.4.2 != null and firstSegments.PID.18.4.3 != "" and firstSegments.PID.18.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_18 using 'ID/Organization' HDORG: firstSegments.PID.18.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.18, ID: Organization_ID_pid_CX_18 -%} + {% endif -%} + + {% for gt1SegmentLists in gt1SegmentLists.GT1 -%} + {% if gt1SegmentLists.11.1.Value == "SEL" -%} + {% include 'Resource/Patient' PID: firstSegments.PID, GT1: gt1SegmentLists, ID: patientId, NK1_PER: nk1SegmentLists.NK1[0] -%} + {% if gt1SegmentLists.2.4.1 != "" and gt1SegmentLists.2.4.1 != null and gt1SegmentLists.2.4.2 != "" and gt1SegmentLists.2.4.2 != null and gt1SegmentLists.2.4.3 != "" and gt1SegmentLists.2.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_2 using 'ID/Organization' HDORG: gt1SegmentLists.2.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.2, ID: Organization_ID_gt1_CX_2 -%} + {% endif -%} + {% if gt1SegmentLists.19.4.1 != "" and gt1SegmentLists.19.4.1 != null and gt1SegmentLists.19.4.2 != "" and gt1SegmentLists.19.4.2 != null and gt1SegmentLists.19.4.3 != "" and gt1SegmentLists.19.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_19 using 'ID/Organization' HDORG: gt1SegmentLists.19.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.19, ID: Organization_ID_gt1_CX_19 -%} + {% endif -%} + {% if gt1SegmentLists.29.4.1 != "" and gt1SegmentLists.29.4.1 != null and gt1SegmentLists.29.4.2 != "" and gt1SegmentLists.29.4.2 != null and gt1SegmentLists.29.4.3 != "" and gt1SegmentLists.29.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_29 using 'ID/Organization' HDORG: gt1SegmentLists.29.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.29, ID: Organization_ID_gt1_CX_29 -%} + {% endif -%} + {% if gt1SegmentLists.51 and nk1SegmentLists.NK1[0].7.1.Value == "E" -%} + {% evaluate Organization_ID_gt1_XON_51 using 'ID/Organization' XON: gt1SegmentLists.51 -%} + {% include 'Resource/Organization', GT1_51: gt1SegmentLists, ID: Organization_ID_gt1_XON_51 -%} + {% assign Organization_GT1_51 = Organization_ID_gt1_XON_51 | prepend: 'Organization/' -%} + {% include 'Reference/Patient/Contact_Organization' REF:Organization_GT1_51 , ID: patientId -%} + {% endif -%} + {% else -%} + {% evaluate gt1relatedPersonId using 'ID/RelatedPerson' GT1: gt1SegmentLists, baseId: patientId -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: gt1relatedPersonId, GT1: gt1SegmentLists -%} + {% if gt1SegmentLists.2.4.1 != "" and gt1SegmentLists.2.4.1 != null and gt1SegmentLists.2.4.2 != "" and gt1SegmentLists.2.4.2 != null and gt1SegmentLists.2.4.3 != "" and gt1SegmentLists.2.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_2 using 'ID/Organization' HDORG: gt1SegmentLists.2.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.2, ID: Organization_ID_gt1_CX_2 -%} + {% endif -%} + {% if gt1SegmentLists.19.4.1 != "" and gt1SegmentLists.19.4.1 != null and gt1SegmentLists.19.4.2 != "" and gt1SegmentLists.19.4.2 != null and gt1SegmentLists.19.4.3 != "" and gt1SegmentLists.19.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_19 using 'ID/Organization' HDORG: gt1SegmentLists.19.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.19, ID: Organization_ID_gt1_CX_19 -%} + {% endif -%} + {% endif -%} + {% if gt1SegmentLists.21 -%} + {% evaluate Organization_ID_gt1_XON_21 using 'ID/Organization' XON: gt1SegmentLists.21 -%} + {% include 'Resource/Organization', GT1: gt1SegmentLists, ID: Organization_ID_gt1_XON_21 -%} + {% if gt1SegmentLists.2.4.1 != "" and gt1SegmentLists.2.4.1 != null and gt1SegmentLists.2.4.2 != "" and gt1SegmentLists.2.4.2 != null and gt1SegmentLists.2.4.3 != "" and gt1SegmentLists.2.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_2 using 'ID/Organization' HDORG: gt1SegmentLists.2.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.2, ID: Organization_ID_gt1_CX_2 -%} + {% endif -%} + {% endif -%} + {% include 'Resource/Account' GT1: gt1SegmentLists, ID: accountId, REF_PATIENT: fullPatientId, REF_RELATED_PERSON: gt1relatedPersonId, REF_ORG: Organization_ID_gt1_XON_21 -%} + {% endfor -%} + + {% endif -%} + + {% if firstSegments.PID.2 -%} + {% if firstSegments.PID.2.4.1 != "" and firstSegments.PID.2.4.1 != null and firstSegments.PID.2.4.2 != "" and firstSegments.PID.2.4.2 != null and firstSegments.PID.2.4.3 != "" and firstSegments.PID.2.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_2 using 'ID/Organization' HDORG: firstSegments.PID.2.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.2, ID: Organization_ID_pid_CX_2 -%} + {% endif -%} + {% endif -%} + {% for pid3 in firstSegments.PID.3.Repeats -%} + {% if pid3.4.1 != "" and pid3.4.1 != null and pid3.4.2 != "" and pid3.4.2 != null and pid3.4.3 != "" and pid3.4.3 != null -%} + {% evaluate Organization_ID_pid_CX using 'ID/Organization' HDORG: pid3.4 -%} + {% include 'Resource/Organization', PID: pid3, ID: Organization_ID_pid_CX -%} + {% endif -%} + {% endfor -%} + {% if firstSegments.PID.4 -%} + {% if firstSegments.PID.4.4.1 != "" and firstSegments.PID.4.4.1 != null and firstSegments.PID.4.4.2 != "" and firstSegments.PID.4.4.2 != null and firstSegments.PID.4.4.3 != "" and firstSegments.PID.4.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_4 using 'ID/Organization' HDORG: firstSegments.PID.4.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.4, ID: Organization_ID_pid_CX_4 -%} + {% endif -%} + {% endif -%} + + {% unless nk1SegmentLists.NK1 -%} + {% if firstSegments.PID.21 -%} + {% if firstSegments.PID.21.4.1 != "" and firstSegments.PID.21.4.1 != null and firstSegments.PID.21.4.2 != "" and firstSegments.PID.21.4.2 != null and firstSegments.PID.21.4.3 != "" and firstSegments.PID.21.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_21 using 'ID/Organization' HDORG: firstSegments.PID.21.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.21, ID: Organization_ID_pid_CX_21 -%} + {% endif -%} + {% evaluate pidrelatedPersonId using 'ID/RelatedPerson' PID: firstSegments.PID, baseId: patientId -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: pidrelatedPersonId, PID: firstSegments.PID -%} + {% endif -%} + {% endunless -%} + {% if firstSegments.PD1.3 -%} + {% evaluate Organization_ID_PD1_3 using 'ID/Organization' XON: firstSegments.PD1.3 -%} + {% include 'Resource/Organization' PD1: firstSegments.PD1, ID: Organization_ID_PD1_3 -%} + {% endif -%} + + {% if firstSegments.PD1.4 -%} + {% if firstSegments.PD1.4.9.1 != "" and firstSegments.PD1.4.9.1 != null and firstSegments.PD1.4.9.2 != "" and firstSegments.PD1.4.9.2 != null and firstSegments.PD1.4.9.3 != "" and firstSegments.PD1.4.9.3 != null -%} + {% evaluate Organization_ID_PD1_4_9 using 'ID/Organization' HDORG: firstSegments.PD1.4.9 -%} + {% include 'Resource/Organization', PD1_4: firstSegments.PD1.4.9, ID: Organization_ID_PD1_4_9 -%} + {% endif -%} + {% evaluate Practitioner_ID_PD1_4 using 'ID/Practitioner' XCN: firstSegments.PD1.4 -%} + {% include 'Resource/Practitioner' PD1: firstSegments.PD1.4, ID: Practitioner_ID_PD1_4 -%} + {% endif -%} + + {% if firstSegments.PV1 -%} + {% if firstSegments.PV1.5 -%} + {% if firstSegments.PV1.5.4.1 != "" and firstSegments.PV1.5.4.1 != null and firstSegments.PV1.5.4.2 != "" and firstSegments.PV1.5.4.2 != null and firstSegments.PV1.5.4.3 != "" and firstSegments.PV1.5.4.3 != null -%} + {% evaluate Organization_ID_PV1_5_4 using 'ID/Organization' HDORG: firstSegments.PV1.5.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.5.4, ID: Organization_ID_PV1_5_4 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PV1.19 -%} + {% if firstSegments.PV1.19.4.1 != "" and firstSegments.PV1.19.4.1 != null and firstSegments.PV1.19.4.2 != "" and firstSegments.PV1.19.4.2 != null and firstSegments.PV1.19.4.3 != "" and firstSegments.PV1.19.4.3 != null -%} + {% evaluate Organization_ID_PV1_19_4 using 'ID/Organization' HDORG: firstSegments.PV1.19.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.19.4, ID: Organization_ID_PV1_19_4 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PV1.7 -%} + {% if firstSegments.PV1.7.9.1 != "" and firstSegments.PV1.7.9.1 != null and firstSegments.PV1.7.9.2 != "" and firstSegments.PV1.7.9.2 != null and firstSegments.PV1.7.9.3 != "" and firstSegments.PV1.7.9.3 != null -%} + {% evaluate Organization_ID_PV1_7_9 using 'ID/Organization' HDORG: firstSegments.PV1.7.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.7.9, ID: Organization_ID_PV1_7_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_7 using 'ID/Practitioner' XCN: firstSegments.PV1.7 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.7, ID: practitionerId_PV1_7 -%} + {% endif -%} + + {% if firstSegments.PV1.8 -%} + {% if firstSegments.PV1.8.9.1 != "" and firstSegments.PV1.8.9.1 != null and firstSegments.PV1.8.9.2 != "" and firstSegments.PV1.8.9.2 != null and firstSegments.PV1.8.9.3 != "" and firstSegments.PV1.8.9.3 != null -%} + {% evaluate Organization_ID_PV1_8_9 using 'ID/Organization' HDORG: firstSegments.PV1.8.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.8.9, ID: Organization_ID_PV1_8_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_8 using 'ID/Practitioner' XCN: firstSegments.PV1.8 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.8, ID: practitionerId_PV1_8 -%} + {% endif -%} + + {% if firstSegments.PV1.9 -%} + {% if firstSegments.PV1.9.9.1 != "" and firstSegments.PV1.9.9.1 != null and firstSegments.PV1.9.9.2 != "" and firstSegments.PV1.9.9.2 != null and firstSegments.PV1.9.9.3 != "" and firstSegments.PV1.9.9.3 != null -%} + {% evaluate Organization_ID_PV1_9_9 using 'ID/Organization' HDORG: firstSegments.PV1.9.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.9.9, ID: Organization_ID_PV1_9_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_9 using 'ID/Practitioner' XCN: firstSegments.PV1.9 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.9, ID: practitionerId_PV1_9 -%} + {% endif -%} + + {% if firstSegments.PV1.17 -%} + {% if firstSegments.PV1.17.9.1 != "" and firstSegments.PV1.17.9.1 != null and firstSegments.PV1.17.9.2 != "" and firstSegments.PV1.17.9.2 != null and firstSegments.PV1.17.9.3 != "" and firstSegments.PV1.17.9.3 != null -%} + {% evaluate Organization_ID_PV1_17_9 using 'ID/Organization' HDORG: firstSegments.PV1.17.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.17.9, ID: Organization_ID_PV1_17_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_17 using 'ID/Practitioner' XCN: firstSegments.PV1.17 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.17, ID: practitionerId_PV1_17 -%} + {% endif -%} + + {% if firstSegments.PV1.50 -%} + {% for p in firstSegments.PV1.50.Repeats -%} + {% if p.4.1 != "" and p.4.1 != null and p.4.2 != "" and p.4.2 != null and p.4.3 != "" and p.4.3 != null -%} + {% evaluate Organization_ID_PV1_50_4 using 'ID/Organization' HDORG: p.4 -%} + {% include 'Resource/Organization', PV1: p.4, ID: Organization_ID_PV1_50_4 -%} + {% endif -%} + {% endfor -%} + {% endif -%} + + {% if firstSegments.PV1.52 -%} + {% if firstSegments.PV1.52.9.1 != "" and firstSegments.PV1.52.9.1 != null and firstSegments.PV1.52.9.2 != "" and firstSegments.PV1.52.9.2 != null and firstSegments.PV1.52.9.3 != "" and firstSegments.PV1.52.9.3 != null -%} + {% evaluate Organization_ID_PV1_52_9 using 'ID/Organization' HDORG: firstSegments.PV1.52.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.52.9, ID: Organization_ID_PV1_52_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_52 using 'ID/Practitioner' XCN: firstSegments.PV1.52 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.52, ID: practitionerId_PV1_52 -%} + {% endif -%} + + {% if firstSegments.PV2.13 -%} + {% if firstSegments.PV2.13.9.1 != "" and firstSegments.PV2.13.9.1 != null and firstSegments.PV2.13.9.2 != "" and firstSegments.PV2.13.9.2 != null and firstSegments.PV2.13.9.3 != "" and firstSegments.PV2.13.9.3 != null -%} + {% evaluate Organization_ID_PV2_13_9 using 'ID/Organization' HDORG: firstSegments.PV2.13.9 -%} + {% include 'Resource/Organization', PV2: firstSegments.PV2.13.9, ID: Organization_ID_PV2_13_9 -%} + {% endif -%} + {% evaluate practitionerId_PV2_13 using 'ID/Practitioner' XCN: firstSegments.PV2.13 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV2.13, ID: practitionerId_PV2_13 -%} + {% endif -%} + + {% if firstSegments.PV1.3 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.3-%} + {% endif -%} + + {% if firstSegments.PV1.6 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.6 -%} + {% endif -%} + + {% if firstSegments.PV1.37 -%} + {% evaluate location_ID_PV1_37 using 'ID/Location' DLD: firstSegments.PV1.37 -%} + {% include 'Resource/Location' PV1: firstSegments.PV1.37, ID: location_ID_PV1_37-%} + {% endif -%} + + {% if firstSegments.PV1.42 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.42-%} + {% endif -%} + + {% if firstSegments.PV1.43 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.43-%} + {% endif -%} + + {% if firstSegments.PV2.1 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV2.1-%} + {% endif -%} + + {% if firstSegments.PV1.54 -%} + {% if firstSegments.PV1.54.4.1 != "" and firstSegments.PV1.54.4.1 != null and firstSegments.PV1.54.4.2 != "" and firstSegments.PV1.54.4.2 != null and firstSegments.PV1.54.4.3 != "" and firstSegments.PV1.54.4.3 != null -%} + {% evaluate Organization_ID_PV1_54_4 using 'ID/Organization' HDORG: firstSegments.PV1.54.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.54.4, ID: Organization_ID_PV1_54_4 -%} + {% endif -%} + {% evaluate EpisodeOfCare_ID using 'ID/EpisodeOfCare' PV1: firstSegments.PV1.54 -%} + {% include 'Resource/EpisodeOfCare' PV1: firstSegments.PV1, ID: EpisodeOfCare_ID, patientRefrenceID: fullPatientId -%} + {% endif -%} + + {% evaluate encounterId using 'ID/Encounter' PV1: firstSegments.PV1, baseId: patientId -%} + {% include 'Resource/Encounter' Root_Template: 'ADT_A05', PV1: firstSegments.PV1, PV2: firstSegments.PV2, ID: encounterId -%} + {% include 'Reference/Encounter/Subject' ID: encounterId, REF: fullPatientId -%} + {% include 'Extensions/Encounter/EncounterExtension' ID: encounterId, PV1: firstSegments.PV1, PV2: firstSegments.PV2, -%} + {% endif -%} + + {% if firstSegments.EVN -%} + {% evaluate provenanceId using 'ID/Provenance' EVN: firstSegments.EVN, baseId: patientId -%} + {% include 'Resource/Provenance' EVN: firstSegments.EVN, EVNTEXT: firstSegments.MSH.9, REF_BUNDLE: bundleID, ID: provenanceId -%} + {% if firstSegments.EVN.5 -%} + {% if firstSegments.EVN.5.9.1 != "" and firstSegments.EVN.5.9.1 != null and firstSegments.EVN.5.9.2 != "" and firstSegments.EVN.5.9.2 != null and firstSegments.EVN.5.9.3 != "" and firstSegments.EVN.5.9.3 != null -%} + {% evaluate Organization_ID_EVN_5_9 using 'ID/Organization' HDORG: firstSegments.EVN.5.9 -%} + {% include 'Resource/Organization', EVN: firstSegments.EVN.5.9, ID: Organization_ID_EVN_5_9 -%} + {% endif -%} + {% evaluate practitionerId_EVN_5 using 'ID/Practitioner' XCN: firstSegments.EVN.5 -%} + {% include 'Resource/Practitioner' EVN: firstSegments.EVN.5, ID: practitionerId_EVN_5 -%} + {% if firstSegments.EVN.7 -%} + {% evaluate locationId_EVN_7 using 'ID/Location' HD: firstSegments.EVN.7 -%} + {% include 'Resource/Location' EVN: firstSegments.EVN.7, ID: locationId_EVN_7 -%} + {% endif -%} + {% endif -%} + {% endif -%} + + {% for pr1Segment in pr1SegmentLists.PR1 -%} + {% if pr1Segment.8 -%} + {% if pr1Segment.8.9.1 != "" and pr1Segment.8.9.1 != null and pr1Segment.8.9.2 != "" and pr1Segment.8.9.2 != null and pr1Segment.8.9.3 != "" and pr1Segment.8.9.3 != null -%} + {% evaluate Organization_ID_PR1_8 using 'ID/Organization' HDORG: pr1Segment.8.9 -%} + {% include 'Resource/Organization', PR1: pr1Segment.8.9, ID: Organization_ID_PR1_8 -%} + {% endif -%} + {% evaluate practitionerId_PR1_8 using 'ID/Practitioner' XCN: pr1Segment.8 -%} + {% include 'Resource/Practitioner' PR1: pr1Segment.8, ID: practitionerId_PR1_8 -%} + {% endif -%} + + {% if pr1Segment.11 -%} + {% if pr1Segment.11.9.1 != "" and pr1Segment.11.9.1 != null and pr1Segment.11.9.2 != "" and pr1Segment.11.9.2 != null and pr1Segment.11.9.3 != "" and pr1Segment.11.9.3 != null -%} + {% evaluate Organization_ID_PR1_11 using 'ID/Organization' HDORG: pr1Segment.11.9 -%} + {% include 'Resource/Organization', PR1: pr1Segment.11.9, ID: Organization_ID_PR1_11 -%} + {% endif -%} + {% evaluate practitionerId_PR1_11 using 'ID/Practitioner' XCN: pr1Segment.11 -%} + {% include 'Resource/Practitioner' PR1: pr1Segment.11, ID: practitionerId_PR1_11 -%} + {% endif -%} + + {% if pr1Segment.12 -%} + {% if pr1Segment.12.9.1 != "" and pr1Segment.12.9.1 != null and pr1Segment.12.9.2 != "" and pr1Segment.12.9.2 != null and pr1Segment.12.9.3 != "" and pr1Segment.12.9.3 != null -%} + {% evaluate Organization_ID_PR1_12 using 'ID/Organization' HDORG: pr1Segment.12.9 -%} + {% include 'Resource/Organization', PR1: pr1Segment.12.9, ID: Organization_ID_PR1_12 -%} + {% endif -%} + {% evaluate practitionerId_PR1_12 using 'ID/Practitioner' XCN: pr1Segment.12 -%} + {% include 'Resource/Practitioner' PR1: pr1Segment.12, ID: practitionerId_PR1_12 -%} + {% endif -%} + + {% if pr1Segment.23.1 -%} + {% evaluate Location_ID_PR1_23_1 using 'ID/Location' PL: pr1Segment.23.1 -%} + {% include 'Resource/PLLocation' PL_1: pr1Segment.23.1, ID: Location_ID_PR1_23_1-%} + {% else %} + {% if pr1Segment.23.2 %} + {% evaluate Location_ID_PR1_23_2 using 'ID/Location' PL: pr1Segment.23.2 -%} + {% include 'Resource/PLLocation' PL_2: pr1Segment.23.2, ID: Location_ID_PR1_23_2-%} + {% endif %} + {% endif %} + + {% if pr1Segment.25 -%} + {% evaluate Procedure_ID_PR1_25 using 'ID/Procedure' PR1: pr1Segment.25, baseId: fullPatientId -%} + {% include 'Resource/Procedure' PR1_25: pr1Segment.25, PV1: firstSegments.PV1, Procedure_Subject_ID: fullPatientId, ID: Procedure_ID_PR1_25 -%} + {% endif -%} + + {% evaluate procedureId using 'ID/Procedure' PR1: pr1Segment, baseId: patientId -%} + {% include 'Resource/Procedure' PR1: pr1Segment, PV1: firstSegments.PV1, Procedure_Subject_ID: fullPatientId, ID: procedureId -%} + {% endfor -%} + + {% for nk1Segment in nk1SegmentLists.NK1 -%} + {% evaluate relatedPersonId using 'ID/RelatedPerson' NK1: nk1Segment, baseId: patientId -%} + {% if nk1Segment.13 -%} + {% evaluate organizationId_NK1_13 using 'ID/Organization' XON: nk1Segment.13 -%} + {% include 'Resource/Organization' NK1: nk1Segment, ID: organizationId_NK1_13 -%} + {% assign Organization_NK1_13 = organizationId_NK1_13 | prepend: 'Organization/' -%} + {% include 'Reference/Patient/Contact_Organization' REF:Organization_NK1_13 , ID: patientId -%} + {% endif -%} + {% unless nk1Segment.3.1.Value == "EMR" or nk1Segment.3.1.Value == "CGV" or nk1Segment.7.1.Value == "E" or nk1Segment.7.1.Value =="F" or nk1Segment.7.1.Value == "I" or nk1Segment.7.1.Value =="S" -%} + {% include 'Resource/Patient' NK1: nk1Segment, ID: patientId -%} + {% include 'Resource/RelatedPerson' NK1: nk1Segment, RelatedPerson_Patient_ID: fullPatientId, ID: relatedPersonId, PID: firstSegments.PID -%} + {% include 'Extensions/RelatedPerson/RelatedPerson' ID: relatedPersonId, NK1: nk1Segment -%} + {% if nk1Segment.12.4.1 != "" and nk1Segment.12.4.1 != null and nk1Segment.12.4.2 != "" and nk1Segment.12.4.2 != null and nk1Segment.12.4.3 != "" and nk1Segment.12.4.3 != null -%} + {% evaluate Organization_ID_nk_CX_12 using 'ID/Organization' HDORG: nk1Segment.12.4 -%} + {% include 'Resource/Organization', NK1_12: nk1Segment.12, ID: Organization_ID_nk_CX_12 -%} + {% endif -%} + {% endunless -%} + {% if firstSegments.PID.21 -%} + {% include 'Resource/RelatedPerson' ID: relatedPersonId, PID: firstSegments.PID, RelatedPerson_Patient_ID: fullPatientId -%} + {% if firstSegments.PID.21.4.1 != "" and firstSegments.PID.21.4.1 != null and firstSegments.PID.21.4.2 != "" and firstSegments.PID.21.4.2 != null and firstSegments.PID.21.4.3 != "" and firstSegments.PID.21.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_21 using 'ID/Organization' HDORG: firstSegments.PID.21.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.21, ID: Organization_ID_pid_CX_21 -%} + {% endif -%} + {% endif -%} + + {% for nk33 in nk1Segment.33.Repeats -%} + {% if nk33.4.1 != "" and nk33.4.1 != null and nk33.4.2 != "" and nk33.4.2 != null and nk33.4.3 != "" and nk33.4.3 != null -%} + {% evaluate Organization_ID_nk_CX_33 using 'ID/Organization' HDORG: nk33.4 -%} + {% include 'Resource/Organization', NK1_33: nk33, ID: Organization_ID_nk_CX_33 -%} + {% endif -%} + {% endfor -%} + {% endfor -%} + + {% for db1Segment in db1SegmentLists.DB1 -%} + {% if db1Segment.2.1.Value == "PT" %} + {% for db in db1Segment.3.Repeats -%} + {% if db.4.1 != "" and db.4.1 != null and db.4.2 != "" and db.4.2 != null and db.4.3 != "" and db.4.3 != null -%} + {% evaluate Organization_ID_DB1_3 using 'ID/Organization' HDORG: db.4 -%} + {% include 'Resource/Organization', DB1: db.4, ID: Organization_ID_DB1_3 -%} + {% endif -%} + {% endfor %} + {% include 'Extensions/Patient/PatientExtension' ID: PatientId, DB1: db1Segment -%} + {% endif -%} + {% include 'Resource/Patient' DB1: db1Segment, ID: patientId -%} + {% endfor %} + + {% for obxSegment in obxSegmentLists.OBX -%} + {% for obx_16 in obxSegment.16.Repeats -%} + {% if obx_16.9.1 != "" and obx_16.9.1 != null and obx_16.9.2 != "" and obx_16.9.2 != null and obx_16.9.3 != "" and obx_16.9.3 != null -%} + {% evaluate Organization_ID_OBX_16 using 'ID/Organization' HDORG: obx_16.9 -%} + {% include 'Resource/Organization' OBX: obx_16.9, ID: Organization_ID_OBX_16 -%} + {% endif -%} + {% evaluate practitionerId_OBX_16 using 'ID/Practitioner' XCN: obx_16 -%} + {% include 'Resource/Practitioner' OBX: obxSegment, OBXXCN1: obx_16, ID: practitionerId_OBX_16 -%} + {% evaluate practitionerRoleId_OBX_16 using 'ID/PractitionerRole' XCN: obx_16 -%} + {% assign full_practitionerId_OBX_16 = practitionerId_OBX_16 | prepend: 'Practitioner/' %} + {% include 'Resource/PractitionerRole' OBXXCN1: obx_16, ID: practitionerRoleId_OBX_16 -%} + {% include 'Reference/PractitionerRole/Practitioner' REF: full_practitionerId_OBX_16, ID: practitionerRoleId_OBX_16 -%} + {% endfor %} + {% if obxSegment.18 -%} + {% evaluate deviceId_OBX_18 using 'ID/Device' EI: obxSegment.18.Repeats[0] -%} + {% include 'Resource/Device' EI_OBX18: obxSegment.18, ID: deviceId_OBX_18 -%} + {% endif -%} + {% if obxSegment.23 or obxSegment.25 %} + {% evaluate practitionerRoleId_OBX_25 using 'ID/PractitionerRole' XCN: obxSegment.25 -%} + {% endif %} + {% if obxSegment.25 -%} + {% evaluate practitionerId_OBX_25 using 'ID/Practitioner' XCN: obxSegment.25 -%} + {% include 'Resource/Practitioner' OBX: obxSegment, OBXXCN2: obxSegment.25, ID: practitionerId_OBX_25 -%} + {% assign full_practitionerId_OBX_25 = practitionerId_OBX_25 | prepend: 'Practitioner/' %} + {% include 'Resource/PractitionerRole' OBXXCN2: obxSegment.25, ID: practitionerRoleId_OBX_25 -%} + {% include 'Reference/PractitionerRole/Practitioner' REF: full_practitionerId_OBX_25, ID: practitionerRoleId_OBX_25 -%} + {% endif -%} + {% if obxSegment.23 -%} + {% evaluate organizationId_OBX_23 using 'ID/Organization' XON: obxSegment.23 -%} + {% include 'Resource/Organization' OBX_23: obxSegment.23, OBX_24: obxSegment.24, ID: organizationId_OBX_23 -%} + {% if obxSegment.25 -%} + {% assign full_organizationId_OBX_23 = organizationId_OBX_23 | prepend: 'Organization/' %} + {% include 'Reference/PractitionerRole/Organization' REF: full_organizationId_OBX_23, ID: practitionerRoleId_OBX_25 -%} + {% endif -%} + {% endif -%} + {% evaluate observationId using 'ID/Observation' OBX: obxSegment, baseId: patientId -%} + {% include 'Resource/Observation' OBX: obxSegment, Observation_Subject_ID: fullPatientId, ID: observationId -%} + {% include 'Extensions/Observation/ObservationExtension' OBX: obxSegment, ID: observationId %} + {% endfor -%} + + {% for al1Segment in al1SegmentLists.AL1 -%} + {% evaluate allergyIntoleranceId using 'ID/AllergyIntolerance' AL1: al1Segment, baseId: patientId -%} + {% include 'Resource/AllergyIntolerance' AL1: al1Segment, ID: allergyIntoleranceId, AllergyIntolerance_Patient_ID: fullPatientId -%} + {% endfor -%} + + {% for dg1Segment in dg1SegmentLists.DG1 -%} + {% if dg1Segment.16.Repeats[0] %} + {% if dg1Segment.16.Repeats[0].9.1 != "" and dg1Segment.16.Repeats[0].9.1 != null and dg1Segment.16.Repeats[0].9.2 != "" and dg1Segment.16.Repeats[0].9.2 != null and dg1Segment.16.Repeats[0].9.3 != "" and dg1Segment.16.Repeats[0].9.3 != null -%} + {% evaluate Organization_ID_DG1_16 using 'ID/Organization' HDORG: dg1Segment.16.Repeats[0].9 -%} + {% include 'Resource/Organization', DG1: dg1Segment.16.Repeats[0].9, ID: Organization_ID_DG1_16 -%} + {% endif -%} + {% evaluate practitionerId_DG1_16 using 'ID/Practitioner' XCN: dg1Segment.16.Repeats[0] -%} + {% include 'Resource/Practitioner' DG1: dg1Segment, ID: practitionerId_DG1_16 -%} + {% endif -%} + + {% evaluate conditionId using 'ID/Condition' DG1: dg1Segment, baseId: patientId -%} + {% include 'Resource/Condition' DG1: dg1Segment, Condition_Subject_ID: fullPatientId, baseId: patientId, ID: conditionId -%} + + {% if encounterId -%} + {% include 'Resource/Encounter' DG1: dg1Segment, conditionId: conditionId, ID: encounterId -%} + {% endif -%} + {% if EpisodeOfCare_ID %} + {% include 'Resource/EpisodeOfCare' DG1: dg1Segment, conditionId: conditionId, ID: EpisodeOfCare_ID -%} + {% endif %} + {% if dg1Segment.22 -%} + {% evaluate conditionId_DG1_22 using 'ID/Condition' DG1: dg1Segment.22, baseId: patientId -%} + {% include 'Resource/Condition' DG1_22: dg1Segment.22, Condition_Subject_ID_DG1_22: fullPatientId, ID: conditionId_DG1_22 -%} + {% endif -%} + {% include 'Extensions/Condition/ConditionExtension' DG1: dg1Segment, ID_DG1_22:conditionId_DG1_22, ID: conditionId %} + + {% endfor -%} + + {% for rf1Segment in rf1SegmentLists.RF1 -%} + {% if rf1Segment.19 -%} + {% evaluate Organization_ID_RF1_19 using 'ID/Organization' XON: rf1Segment.19 -%} + {% include 'Resource/Organization' RF1: rf1Segment.19, ID: Organization_ID_RF1_19 -%} + {% endif -%} + + {% if rf1Segment.20 -%} + {% if rf1Segment.20.9.1 != "" and rf1Segment.20.9.1 != null and rf1Segment.20.9.2 != "" and rf1Segment.20.9.2 != null and rf1Segment.20.9.3 != "" and rf1Segment.20.9.3 != null -%} + {% evaluate Organization_ID_RF1_20_9 using 'ID/Organization' HDORG: rf1Segment.20.9 -%} + {% include 'Resource/Organization', RF1_20: rf1Segment.20.9, ID: Organization_ID_RF1_20_9 -%} + {% endif -%} + {% evaluate Practitioner_ID_RF1_20 using 'ID/Practitioner' XCN: rf1Segment.20 -%} + {% include 'Resource/Practitioner' RF1: rf1Segment.20, ID: Practitioner_ID_RF1_20 -%} + {% endif -%} + + {% evaluate serviceRequestId using 'ID/ServiceRequest' RF1: rf1Segment, baseId: patientId -%} + {% include 'Resource/ServiceRequest' RF1: rf1Segment, ID: serviceRequestId, ServiceRequest_Subject_ID: fullPatientId -%} + {% endfor -%} + + {% for in1Segment in in1SegmentLists.IN1 -%} + + {% evaluate coverageId using 'ID/Coverage' CX: in1Segment -%} + {% include 'Resource/Coverage' IN1: in1Segment, ID: coverageId -%} + {% include 'Reference/Coverage/Beneficiary' ID: coverageId, REF: fullPatientId -%} + + {% for in1_49 in in1Segment.49.Repeats -%} + {% if in1_49.4.1 != "" and in1_49.4.1 != null and in1_49.4.2 != "" and in1_49.4.2 != null and in1_49.4.3 != "" and in1_49.4.3 != null -%} + {% evaluate Organization_ID_in1_CX_49 using 'ID/Organization' HDORG: in1_49.4 -%} + {% include 'Resource/Organization', IN1_49: in1_49, ID: Organization_ID_in1_CX_49 -%} + {% endif -%} + {% endfor -%} + + {% for in1_3 in in1Segment.3.Repeats -%} + {% if in1_3.4.1 != "" and in1_3.4.1 != null and in1_3.4.2 != "" and in1_3.4.2 != null and in1_3.4.3 != "" and in1_3.4.3 != null -%} + {% evaluate Organization_ID_in1_CX_3 using 'ID/Organization' HDORG: in1_3.4 -%} + {% include 'Resource/Organization', IN1_3: in1_3, ID: Organization_ID_in1_CX_3 -%} + {% endif -%} + {% endfor -%} + + {% for in1_10 in in1Segment.10.Repeats -%} + {% if in1_10.4.1 != "" and in1_10.4.1 != null and in1_10.4.2 != "" and in1_10.4.2 != null and in1_10.4.3 != "" and in1_10.4.3 != null -%} + {% evaluate Organization_ID_in1_CX_10 using 'ID/Organization' HDORG: in1_10.4 -%} + {% include 'Resource/Organization', IN1_10: in1_10, ID: Organization_ID_in1_CX_10 -%} + {% endif -%} + {% endfor -%} + + {% if in1Segment.4 -%} + {% evaluate Organization_ID_in1_4 using 'ID/Organization' XON: in1Segment.4 -%} + {% else -%} + {% evaluate Organization_ID_in1_4 using 'ID/Organization' CX: in1Segment -%} + {% endif -%} + {% if Organization_ID_in1_4 -%} + {% include 'Resource/Organization', IN1: in1Segment, ID: Organization_ID_in1_4 -%} + {% assign org_in1_4 = Organization_ID_in1_4 | prepend: 'Organization/' -%} + {% include 'Reference/Coverage/Payor' ID: coverageId, REF: org_in1_4 -%} + {% endif -%} + + {% if in1Segment.11 -%} + {% evaluate Organization_ID_in1_11 using 'ID/Organization' XON: in1Segment.11 -%} + {% else -%} + {% evaluate Organization_ID_in1_11 using 'ID/Organization' CX_IN1: in1Segment -%} + {% endif -%} + {% if Organization_ID_in1_11 -%} + {% include 'Resource/Organization', IN1_11: in1Segment, ID: Organization_ID_in1_11 -%} + {% assign org_in1_11 = Organization_ID_in1_11 | prepend: 'Organization/' -%} + {% include 'Reference/Coverage/PolicyHolder' ID: coverageId, REF: org_in1_11 -%} + {% endif -%} + + {% if in1Segment.17.1.Value == "SEL" -%} + {% include 'Resource/Patient' PID_IN1: firstSegments.PID, IN1: in1Segment, ID: patientId -%} + {% include 'Reference/Coverage/Subscriber' ID: coverageId, REF: fullPatientId -%} + {% endif -%} + {% unless in1Segment.17.1.Value == "SEL" or in1Segment.17.Value == "" -%} + {% evaluate in1relatedPersonId using 'ID/RelatedPerson' IN1: in1Segment, baseId: patientId -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: in1relatedPersonId, IN1: in1Segment -%} + {% assign rel_in1_17 = in1relatedPersonId | prepend: 'RelatedPerson/' -%} + {% include 'Reference/Coverage/Subscriber' ID: coverageId, REF: rel_in1_17 -%} + {% endunless -%} + + {% for in2Segment in in2SegmentLists.IN2 -%} + {% if in1Segment.17.1.Value == "SEL" -%} + {% include 'Resource/Patient' IN2: in2Segment, ID: patientId -%} + {% endif -%} + {% unless in1Segment.17.1.Value == "SEL" or in1Segment.17.Value == "" -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: in1relatedPersonId, IN2: in2Segment -%} + {% endunless -%} + + {% unless in1Segment.10 and in1Segment.11 -%} + {% if in2Segment.3 -%} + {% evaluate in2relatedPersonId using 'ID/RelatedPerson' IN2: in2Segment, baseId: patientId -%} + {% if in2Segment.3.9.1 != "" and in2Segment.3.9.1 != null and in2Segment.3.9.2 != "" and in2Segment.3.9.2 != null and in2Segment.3.9.3 != "" and in2Segment.3.9.3 != null -%} + {% evaluate Organization_ID_IN2_3_9 using 'ID/Organization' HDORG: in2Segment.3.9 -%} + {% include 'Resource/Organization', IN2_3: in2Segment.3.9, ID: Organization_ID_IN2_3_9 -%} + {% endif -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: in2relatedPersonId, IN2_3: in2Segment -%} + {% assign relatedperson_3 = in2relatedPersonId | prepend: 'RelatedPerson/' -%} + {% include 'Reference/Coverage/PolicyHolder' ID: coverageId, REF: relatedperson_3 -%} + {% endif -%} + {% endunless -%} + + {% if in1Segment.10 == null and in1Segment.11 == null and in2Segment.3 == null -%} + {% if in2Segment.70 -%} + {% evaluate organization_Id_IN2_70 using 'ID/Organization' XON: in2Segment.70 -%} + {% include 'Resource/Organization' IN2_70: in2Segment, ID: organization_Id_IN2_70 -%} + {% assign org_in2_70 = organization_Id_IN2_70 | prepend: 'Organization/' -%} + {% include 'Reference/Coverage/PolicyHolder' ID: coverageId, REF: org_in2_70 -%} + {% endif -%} + {% endif -%} + + {% if Organization_ID_in1_11 -%} + {% include 'Resource/Organization', IN2_49: in2Segment, ID: Organization_ID_in1_11 -%} + {% endif -%} + {% include 'Resource/Coverage' IN2: in2Segment, ID: coverageId -%} + {% include 'Resource/Patient' IN2_6: in2Segment, ID: patientId -%} + + {% for in2_1 in in2Segment.1.Repeats -%} + {% if in2_1.4.1 != "" and in2_1.4.1 != null and in2_1.4.2 != "" and in2_1.4.2 != null and in2_1.4.3 != "" and in2_1.4.3 != null -%} + {% evaluate Organization_ID_in2_CX_1 using 'ID/Organization' HDORG: in2_1.4 -%} + {% include 'Resource/Organization', IN2_1: in2_1, ID: Organization_ID_in2_CX_1 -%} + {% endif -%} + {% endfor -%} + {% if in2Segment.61 -%} + {% if in2Segment.61.4.1 != "" and in2Segment.61.4.1 != null and in2Segment.61.4.2 != "" and in2Segment.61.4.2 != null and in2Segment.61.4.3 != "" and in2Segment.61.4.3 != null -%} + {% evaluate Organization_ID_in2_CX_61 using 'ID/Organization' HDORG: in2Segment.61.4 -%} + {% include 'Resource/Organization', IN2_61: in2Segment.61, ID: Organization_ID_in2_CX_61 -%} + {% endif -%} + {% endif -%} + {% endfor -%} + + {% endfor -%} + ] +} \ No newline at end of file diff --git a/data/Templates/Hl7v2/ADT_A08.liquid b/data/Templates/Hl7v2/ADT_A08.liquid new file mode 100644 index 000000000..17f31f42c --- /dev/null +++ b/data/Templates/Hl7v2/ADT_A08.liquid @@ -0,0 +1,621 @@ +{% assign firstSegments = hl7v2Data | get_first_segments: 'PID|PD1|PV1|PV2|MSH|UAC|EVN' -%} +{% assign sftSegmentLists = hl7v2Data | get_segment_lists: 'SFT' -%} +{% assign arvSegmentLists = hl7v2Data | get_segment_lists: 'ARV' -%} +{% assign rolSegmentLists = hl7v2Data | get_segment_lists: 'ROL' -%} +{% assign nk1SegmentLists = hl7v2Data | get_segment_lists: 'NK1' -%} +{% assign db1SegmentLists = hl7v2Data | get_segment_lists: 'DB1' -%} +{% assign obxSegmentLists = hl7v2Data | get_segment_lists: 'OBX' -%} +{% assign al1SegmentLists = hl7v2Data | get_segment_lists: 'AL1' -%} +{% assign dg1SegmentLists = hl7v2Data | get_segment_lists: 'DG1' -%} +{% assign drgSegmentLists = hl7v2Data | get_segment_lists: 'DRG' -%} +{% assign pr1SegmentLists = hl7v2Data | get_segment_lists: 'PR1' -%} +{% assign gt1SegmentLists = hl7v2Data | get_segment_lists: 'GT1' -%} +{% assign in1SegmentLists = hl7v2Data | get_segment_lists: 'IN1' -%} +{% assign in2SegmentLists = hl7v2Data | get_segment_lists: 'IN2' -%} +{% assign in3SegmentLists = hl7v2Data | get_segment_lists: 'IN3' -%} +{% assign autSegmentLists = hl7v2Data | get_segment_lists: 'AUT' -%} +{% assign rf1SegmentLists = hl7v2Data | get_segment_lists: 'RF1' -%} +{% assign accSegmentLists = hl7v2Data | get_segment_lists: 'ACC' -%} +{% assign ub1SegmentLists = hl7v2Data | get_segment_lists: 'UB1' -%} +{% assign ub2SegmentLists = hl7v2Data | get_segment_lists: 'UB2' -%} +{% assign pdaSegmentLists = hl7v2Data | get_segment_lists: 'PDA' -%} +{% evaluate bundleID using 'ID/Bundle' Data: firstSegments.MSH.10 -%} + +{ + "resourceType": "Bundle", + "type": "batch", + {% if firstSegments.MSH.7 -%} + "timestamp":"{{ firstSegments.MSH.7.Value | format_as_date_time }}", + {% endif -%} + "identifier": + { + "value":"{{ firstSegments.MSH.10.Value }}", + }, + "id":"{{ bundleID }}", + "entry": [ + + {% evaluate patientId using 'ID/Patient' PID: firstSegments.PID, type: 'First' -%} + {% assign fullPatientId = patientId | prepend: 'Patient/' -%} + {% evaluate messageHeaderId using 'ID/MessageHeader' MSH: firstSegments.MSH -%} + + {% if firstSegments.MSH -%} + {% include 'Resource/MessageHeader' MSH: firstSegments.MSH, ID: messageHeaderId -%} + {% evaluate provenanceId using 'ID/Provenance' MSH: firstSegments.MSH, baseId: patientId -%} + {% include 'Resource/Provenance' Root_Template: 'ADT_A08', MSH: firstSegments.MSH, REF_BUNDLE: bundleID, ID: provenanceId -%} + + {%- comment -%} + {% assign transformation_val = 'provenance_transformation' %} + {% evaluate provenanceOrganizationId using 'ID/Organization', prov_id: firstSegments.MSH -%} + {% evaluate provenanceTransformationId using 'ID/Provenance_transformation' prov_id: transformation_val -%} + {% include 'Resource/Organization' org_name: 'Microsoft Corporation', ID: provenanceOrganizationId -%} + {% include 'Resource/Provenance_transformation' Root_Template: 'ADT_A08', Provenance_Organization_ID: provenanceOrganizationId, REF_MSH: messageHeaderId, provenanceOrganizationId, ID: provenanceTransformationId -%} + {%- endcomment -%} + {% if firstSegments.MSH.4 -%} + {% if firstSegments.MSH.4.1 != "" and firstSegments.MSH.4.1 != null or firstSegments.MSH.4.2 != "" and firstSegments.MSH.4.2 != null or firstSegments.MSH.4.3 != "" and firstSegments.MSH.4.3 != null -%} + {% evaluate organization_ID_MSH_4 using 'ID/Organization' HD: firstSegments.MSH.4 -%} + {% include 'Resource/Organization' MSHHD1: firstSegments.MSH.4, MSH: firstSegments.MSH, ID: organization_ID_MSH_4 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.6 %} + {% if firstSegments.MSH.6.1 != "" and firstSegments.MSH.6.1 != null or firstSegments.MSH.6.2 != "" and firstSegments.MSH.6.2 != null or firstSegments.MSH.6.3 != "" and firstSegments.MSH.6.3 != null -%} + {% evaluate organization_Id_MSH_6 using 'ID/Organization' HD: firstSegments.MSH.6 -%} + {% include 'Resource/Organization' MSHHD2: firstSegments.MSH.6, MSH: firstSegments.MSH, ID: organization_Id_MSH_6 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.22 %} + {% if firstSegments.MSH.22.1 != "" and firstSegments.MSH.22.1 != null -%} + {% evaluate organization_Id_MSH_22 using 'ID/Organization' XON: firstSegments.MSH.22 -%} + {% include 'Resource/Organization' MSHXON1: firstSegments.MSH.22, ID: organization_Id_MSH_22 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.23 %} + {% if firstSegments.MSH.23.1 != "" and firstSegments.MSH.23.1 != null -%} + {% evaluate organization_Id_MSH_23 using 'ID/Organization' XON: firstSegments.MSH.23 -%} + {% include 'Resource/Organization' MSHXON2: firstSegments.MSH.23, ID: organization_Id_MSH_23 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.3 and firstSegments.MSH.24 %} + {% evaluate device_Id_MSH_3 using 'ID/Device' HD: firstSegments.MSH.3 -%} + {% include 'Resource/Device' MSH: firstSegments.MSH, ID: device_Id_MSH_3 -%} + {% endif -%} + {% endif -%} + + {% for sftSegment in sftSegmentLists.SFT -%} + {% evaluate deviceId_SFT using 'ID/Device' SFT: sftSegment -%} + {% include 'Resource/Device' SFT:sftSegment, ID: deviceId_SFT -%} + {% include 'Resource/MessageHeader' MSH: firstSegments.MSH, SFT:sftSegment, ID: messageHeaderID -%} + {% endfor -%} + + {% include 'Resource/Patient' PID: firstSegments.PID, PD1: firstSegments.PD1, ID: patientId -%} + {% include 'Extensions/Patient/PatientExtension' ID: PatientId, PID: firstSegments.PID, PD1: firstSegments.PD1, PV1: firstSegments.PV1 -%} + + {% if firstSegments.PID.18 -%} + {% evaluate accountId using 'ID/Account' CX: firstSegments.PID.3 -%} + {% include 'Resource/Account' PID: firstSegments.PID, ID: accountId -%} + {% include 'Reference/Account/Subject' ID: accountId, REF: fullPatientId -%} + {% if firstSegments.PID.18.4.1 != "" and firstSegments.PID.18.4.1 != null and firstSegments.PID.18.4.2 != "" and firstSegments.PID.18.4.2 != null and firstSegments.PID.18.4.3 != "" and firstSegments.PID.18.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_18 using 'ID/Organization' HDORG: firstSegments.PID.18.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.18, ID: Organization_ID_pid_CX_18 -%} + {% endif -%} + {% for gt1SegmentLists in gt1SegmentLists.GT1 -%} + {% if gt1SegmentLists.11.1.Value == "SEL" -%} + {% include 'Resource/Patient' PID: firstSegments.PID, GT1: gt1SegmentLists, ID: patientId, NK1_PER: nk1SegmentLists.NK1[0] -%} + {% if gt1SegmentLists.2.4.1 != "" and gt1SegmentLists.2.4.1 != null and gt1SegmentLists.2.4.2 != "" and gt1SegmentLists.2.4.2 != null and gt1SegmentLists.2.4.3 != "" and gt1SegmentLists.2.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_2 using 'ID/Organization' HDORG: gt1SegmentLists.2.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.2, ID: Organization_ID_gt1_CX_2 -%} + {% endif -%} + {% if gt1SegmentLists.19.4.1 != "" and gt1SegmentLists.19.4.1 != null and gt1SegmentLists.19.4.2 != "" and gt1SegmentLists.19.4.2 != null and gt1SegmentLists.19.4.3 != "" and gt1SegmentLists.19.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_19 using 'ID/Organization' HDORG: gt1SegmentLists.19.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.19, ID: Organization_ID_gt1_CX_19 -%} + {% endif -%} + {% if gt1SegmentLists.29.4.1 != "" and gt1SegmentLists.29.4.1 != null and gt1SegmentLists.29.4.2 != "" and gt1SegmentLists.29.4.2 != null and gt1SegmentLists.29.4.3 != "" and gt1SegmentLists.29.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_29 using 'ID/Organization' HDORG: gt1SegmentLists.29.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.29, ID: Organization_ID_gt1_CX_29 -%} + {% endif -%} + {% if gt1SegmentLists.51 and nk1SegmentLists.NK1[0].7.1.Value == "E" -%} + {% evaluate Organization_ID_gt1_XON_51 using 'ID/Organization' XON: gt1SegmentLists.51 -%} + {% include 'Resource/Organization', GT1_51: gt1SegmentLists, ID: Organization_ID_gt1_XON_51 -%} + {% assign Organization_GT1_51 = Organization_ID_gt1_XON_51 | prepend: 'Organization/' -%} + {% include 'Reference/Patient/Contact_Organization' REF:Organization_GT1_51 , ID: patientId -%} + {% endif -%} + {% else -%} + {% evaluate gt1relatedPersonId using 'ID/RelatedPerson' GT1: gt1SegmentLists, baseId: patientId -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: gt1relatedPersonId, GT1: gt1SegmentLists -%} + {% if gt1SegmentLists.2.4.1 != "" and gt1SegmentLists.2.4.1 != null and gt1SegmentLists.2.4.2 != "" and gt1SegmentLists.2.4.2 != null and gt1SegmentLists.2.4.3 != "" and gt1SegmentLists.2.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_2 using 'ID/Organization' HDORG: gt1SegmentLists.2.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.2, ID: Organization_ID_gt1_CX_2 -%} + {% endif -%} + {% if gt1SegmentLists.19.4.1 != "" and gt1SegmentLists.19.4.1 != null and gt1SegmentLists.19.4.2 != "" and gt1SegmentLists.19.4.2 != null and gt1SegmentLists.19.4.3 != "" and gt1SegmentLists.19.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_19 using 'ID/Organization' HDORG: gt1SegmentLists.19.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.19, ID: Organization_ID_gt1_CX_19 -%} + {% endif -%} + {% endif -%} + {% if gt1SegmentLists.21 -%} + {% evaluate Organization_ID_gt1_XON_21 using 'ID/Organization' XON: gt1SegmentLists.21 -%} + {% include 'Resource/Organization', GT1: gt1SegmentLists, ID: Organization_ID_gt1_XON_21 -%} + {% if gt1SegmentLists.2.4.1 != "" and gt1SegmentLists.2.4.1 != null and gt1SegmentLists.2.4.2 != "" and gt1SegmentLists.2.4.2 != null and gt1SegmentLists.2.4.3 != "" and gt1SegmentLists.2.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_2 using 'ID/Organization' HDORG: gt1SegmentLists.2.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.2, ID: Organization_ID_gt1_CX_2 -%} + {% endif -%} + {% endif -%} + {% include 'Resource/Account' GT1: gt1SegmentLists, ID: accountId, REF_PATIENT: fullPatientId, REF_RELATED_PERSON: gt1relatedPersonId, REF_ORG: Organization_ID_gt1_XON_21 -%} + {% endfor -%} + + {% endif -%} + + {% if firstSegments.PID.2 -%} + {% if firstSegments.PID.2.4.1 != "" and firstSegments.PID.2.4.1 != null and firstSegments.PID.2.4.2 != "" and firstSegments.PID.2.4.2 != null and firstSegments.PID.2.4.3 != "" and firstSegments.PID.2.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_2 using 'ID/Organization' HDORG: firstSegments.PID.2.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.2, ID: Organization_ID_pid_CX_2 -%} + {% endif -%} + {% endif -%} + {% for pid3 in firstSegments.PID.3.Repeats -%} + {% if pid3.4.1 != "" and pid3.4.1 != null and pid3.4.2 != "" and pid3.4.2 != null and pid3.4.3 != "" and pid3.4.3 != null -%} + {% evaluate Organization_ID_pid_CX using 'ID/Organization' HDORG: pid3.4 -%} + {% include 'Resource/Organization', PID: pid3, ID: Organization_ID_pid_CX -%} + {% endif -%} + {% endfor -%} + {% if firstSegments.PID.4 -%} + {% if firstSegments.PID.4.4.1 != "" and firstSegments.PID.4.4.1 != null and firstSegments.PID.4.4.2 != "" and firstSegments.PID.4.4.2 != null and firstSegments.PID.4.4.3 != "" and firstSegments.PID.4.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_4 using 'ID/Organization' HDORG: firstSegments.PID.4.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.4, ID: Organization_ID_pid_CX_4 -%} + {% endif -%} + {% endif -%} + + {% unless nk1SegmentLists.NK1 -%} + {% if firstSegments.PID.21 -%} + {% if firstSegments.PID.21.4.1 != "" and firstSegments.PID.21.4.1 != null and firstSegments.PID.21.4.2 != "" and firstSegments.PID.21.4.2 != null and firstSegments.PID.21.4.3 != "" and firstSegments.PID.21.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_21 using 'ID/Organization' HDORG: firstSegments.PID.21.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.21, ID: Organization_ID_pid_CX_21 -%} + {% endif -%} + {% evaluate pidrelatedPersonId using 'ID/RelatedPerson' PID: firstSegments.PID, baseId: patientId -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: pidrelatedPersonId, PID: firstSegments.PID -%} + {% endif -%} + {% endunless -%} + {% if firstSegments.PD1.3 -%} + {% evaluate Organization_ID_PD1_3 using 'ID/Organization' XON: firstSegments.PD1.3 -%} + {% include 'Resource/Organization' PD1: firstSegments.PD1, ID: Organization_ID_PD1_3 -%} + {% endif -%} + + {% if firstSegments.PD1.4 -%} + {% if firstSegments.PD1.4.9.1 != "" and firstSegments.PD1.4.9.1 != null and firstSegments.PD1.4.9.2 != "" and firstSegments.PD1.4.9.2 != null and firstSegments.PD1.4.9.3 != "" and firstSegments.PD1.4.9.3 != null -%} + {% evaluate Organization_ID_PD1_4_9 using 'ID/Organization' HDORG: firstSegments.PD1.4.9 -%} + {% include 'Resource/Organization', PD1_4: firstSegments.PD1.4.9, ID: Organization_ID_PD1_4_9 -%} + {% endif -%} + {% evaluate Practitioner_ID_PD1_4 using 'ID/Practitioner' XCN: firstSegments.PD1.4 -%} + {% include 'Resource/Practitioner' PD1: firstSegments.PD1.4, ID: Practitioner_ID_PD1_4 -%} + {% endif -%} + + {% if firstSegments.PV1 -%} + {% if firstSegments.PV1.5 -%} + {% if firstSegments.PV1.5.4.1 != "" and firstSegments.PV1.5.4.1 != null and firstSegments.PV1.5.4.2 != "" and firstSegments.PV1.5.4.2 != null and firstSegments.PV1.5.4.3 != "" and firstSegments.PV1.5.4.3 != null -%} + {% evaluate Organization_ID_PV1_5_4 using 'ID/Organization' HDORG: firstSegments.PV1.5.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.5.4, ID: Organization_ID_PV1_5_4 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PV1.19 -%} + {% if firstSegments.PV1.19.4.1 != "" and firstSegments.PV1.19.4.1 != null and firstSegments.PV1.19.4.2 != "" and firstSegments.PV1.19.4.2 != null and firstSegments.PV1.19.4.3 != "" and firstSegments.PV1.19.4.3 != null -%} + {% evaluate Organization_ID_PV1_19_4 using 'ID/Organization' HDORG: firstSegments.PV1.19.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.19.4, ID: Organization_ID_PV1_19_4 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PV1.7 -%} + {% if firstSegments.PV1.7.9.1 != "" and firstSegments.PV1.7.9.1 != null and firstSegments.PV1.7.9.2 != "" and firstSegments.PV1.7.9.2 != null and firstSegments.PV1.7.9.3 != "" and firstSegments.PV1.7.9.3 != null -%} + {% evaluate Organization_ID_PV1_7_9 using 'ID/Organization' HDORG: firstSegments.PV1.7.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.7.9, ID: Organization_ID_PV1_7_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_7 using 'ID/Practitioner' XCN: firstSegments.PV1.7 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.7, ID: practitionerId_PV1_7 -%} + {% endif -%} + + {% if firstSegments.PV1.8 -%} + {% if firstSegments.PV1.8.9.1 != "" and firstSegments.PV1.8.9.1 != null and firstSegments.PV1.8.9.2 != "" and firstSegments.PV1.8.9.2 != null and firstSegments.PV1.8.9.3 != "" and firstSegments.PV1.8.9.3 != null -%} + {% evaluate Organization_ID_PV1_8_9 using 'ID/Organization' HDORG: firstSegments.PV1.8.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.8.9, ID: Organization_ID_PV1_8_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_8 using 'ID/Practitioner' XCN: firstSegments.PV1.8 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.8, ID: practitionerId_PV1_8 -%} + {% endif -%} + + {% if firstSegments.PV1.9 -%} + {% if firstSegments.PV1.9.9.1 != "" and firstSegments.PV1.9.9.1 != null and firstSegments.PV1.9.9.2 != "" and firstSegments.PV1.9.9.2 != null and firstSegments.PV1.9.9.3 != "" and firstSegments.PV1.9.9.3 != null -%} + {% evaluate Organization_ID_PV1_9_9 using 'ID/Organization' HDORG: firstSegments.PV1.9.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.9.9, ID: Organization_ID_PV1_9_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_9 using 'ID/Practitioner' XCN: firstSegments.PV1.9 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.9, ID: practitionerId_PV1_9 -%} + {% endif -%} + + {% if firstSegments.PV1.17 -%} + {% if firstSegments.PV1.17.9.1 != "" and firstSegments.PV1.17.9.1 != null and firstSegments.PV1.17.9.2 != "" and firstSegments.PV1.17.9.2 != null and firstSegments.PV1.17.9.3 != "" and firstSegments.PV1.17.9.3 != null -%} + {% evaluate Organization_ID_PV1_17_9 using 'ID/Organization' HDORG: firstSegments.PV1.17.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.17.9, ID: Organization_ID_PV1_17_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_17 using 'ID/Practitioner' XCN: firstSegments.PV1.17 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.17, ID: practitionerId_PV1_17 -%} + {% endif -%} + + {% if firstSegments.PV1.50 -%} + {% for p in firstSegments.PV1.50.Repeats -%} + {% if p.4.1 != "" and p.4.1 != null and p.4.2 != "" and p.4.2 != null and p.4.3 != "" and p.4.3 != null -%} + {% evaluate Organization_ID_PV1_50_4 using 'ID/Organization' HDORG: p.4 -%} + {% include 'Resource/Organization', PV1: p.4, ID: Organization_ID_PV1_50_4 -%} + {% endif -%} + {% endfor -%} + {% endif -%} + + {% if firstSegments.PV1.52 -%} + {% if firstSegments.PV1.52.9.1 != "" and firstSegments.PV1.52.9.1 != null and firstSegments.PV1.52.9.2 != "" and firstSegments.PV1.52.9.2 != null and firstSegments.PV1.52.9.3 != "" and firstSegments.PV1.52.9.3 != null -%} + {% evaluate Organization_ID_PV1_52_9 using 'ID/Organization' HDORG: firstSegments.PV1.52.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.52.9, ID: Organization_ID_PV1_52_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_52 using 'ID/Practitioner' XCN: firstSegments.PV1.52 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.52, ID: practitionerId_PV1_52 -%} + {% endif -%} + + {% if firstSegments.PV2.13 -%} + {% if firstSegments.PV2.13.9.1 != "" and firstSegments.PV2.13.9.1 != null and firstSegments.PV2.13.9.2 != "" and firstSegments.PV2.13.9.2 != null and firstSegments.PV2.13.9.3 != "" and firstSegments.PV2.13.9.3 != null -%} + {% evaluate Organization_ID_PV2_13_9 using 'ID/Organization' HDORG: firstSegments.PV2.13.9 -%} + {% include 'Resource/Organization', PV2: firstSegments.PV2.13.9, ID: Organization_ID_PV2_13_9 -%} + {% endif -%} + {% evaluate practitionerId_PV2_13 using 'ID/Practitioner' XCN: firstSegments.PV2.13 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV2.13, ID: practitionerId_PV2_13 -%} + {% endif -%} + + {% if firstSegments.PV1.3 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.3-%} + {% endif -%} + + {% if firstSegments.PV1.6 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.6 -%} + {% endif -%} + + {% if firstSegments.PV1.37 -%} + {% evaluate location_ID_PV1_37 using 'ID/Location' DLD: firstSegments.PV1.37 -%} + {% include 'Resource/Location' PV1: firstSegments.PV1.37, ID: location_ID_PV1_37-%} + {% endif -%} + + {% if firstSegments.PV1.42 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.42-%} + {% endif -%} + + {% if firstSegments.PV1.43 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.43-%} + {% endif -%} + + {% if firstSegments.PV2.1 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV2.1-%} + {% endif -%} + + {% if firstSegments.PV1.54 -%} + {% if firstSegments.PV1.54.4.1 != "" and firstSegments.PV1.54.4.1 != null and firstSegments.PV1.54.4.2 != "" and firstSegments.PV1.54.4.2 != null and firstSegments.PV1.54.4.3 != "" and firstSegments.PV1.54.4.3 != null -%} + {% evaluate Organization_ID_PV1_54_4 using 'ID/Organization' HDORG: firstSegments.PV1.54.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.54.4, ID: Organization_ID_PV1_54_4 -%} + {% endif -%} + {% evaluate EpisodeOfCare_ID using 'ID/EpisodeOfCare' PV1: firstSegments.PV1.54 -%} + {% include 'Resource/EpisodeOfCare' PV1: firstSegments.PV1, ID: EpisodeOfCare_ID, patientRefrenceID: fullPatientId -%} + {% endif -%} + + {% evaluate encounterId using 'ID/Encounter' PV1: firstSegments.PV1, baseId: patientId -%} + {% include 'Resource/Encounter' Root_Template: 'ADT_A08', PV1: firstSegments.PV1, PV2: firstSegments.PV2, ID: encounterId -%} + {% include 'Reference/Encounter/Subject' ID: encounterId, REF: fullPatientId -%} + {% include 'Extensions/Encounter/EncounterExtension' ID: encounterId, PV1: firstSegments.PV1, PV2: firstSegments.PV2, -%} + {% endif -%} + + {% if firstSegments.EVN -%} + {% evaluate provenanceId using 'ID/Provenance' EVN: firstSegments.EVN, baseId: patientId -%} + {% include 'Resource/Provenance' EVN: firstSegments.EVN, EVNTEXT: firstSegments.MSH.9, REF_BUNDLE: bundleID, ID: provenanceId -%} + {% if firstSegments.EVN.5 -%} + {% if firstSegments.EVN.5.9.1 != "" and firstSegments.EVN.5.9.1 != null and firstSegments.EVN.5.9.2 != "" and firstSegments.EVN.5.9.2 != null and firstSegments.EVN.5.9.3 != "" and firstSegments.EVN.5.9.3 != null -%} + {% evaluate Organization_ID_EVN_5_9 using 'ID/Organization' HDORG: firstSegments.EVN.5.9 -%} + {% include 'Resource/Organization', EVN: firstSegments.EVN.5.9, ID: Organization_ID_EVN_5_9 -%} + {% endif -%} + {% evaluate practitionerId_EVN_5 using 'ID/Practitioner' XCN: firstSegments.EVN.5 -%} + {% include 'Resource/Practitioner' EVN: firstSegments.EVN.5, ID: practitionerId_EVN_5 -%} + {% if firstSegments.EVN.7 -%} + {% evaluate locationId_EVN_7 using 'ID/Location' HD: firstSegments.EVN.7 -%} + {% include 'Resource/Location' EVN: firstSegments.EVN.7, ID: locationId_EVN_7 -%} + {% endif -%} + {% endif -%} + {% endif -%} + + {% for pr1Segment in pr1SegmentLists.PR1 -%} + {% if pr1Segment.8 -%} + {% if pr1Segment.8.9.1 != "" and pr1Segment.8.9.1 != null and pr1Segment.8.9.2 != "" and pr1Segment.8.9.2 != null and pr1Segment.8.9.3 != "" and pr1Segment.8.9.3 != null -%} + {% evaluate Organization_ID_PR1_8 using 'ID/Organization' HDORG: pr1Segment.8.9 -%} + {% include 'Resource/Organization', PR1: pr1Segment.8.9, ID: Organization_ID_PR1_8 -%} + {% endif -%} + {% evaluate practitionerId_PR1_8 using 'ID/Practitioner' XCN: pr1Segment.8 -%} + {% include 'Resource/Practitioner' PR1: pr1Segment.8, ID: practitionerId_PR1_8 -%} + {% endif -%} + + {% if pr1Segment.11 -%} + {% if pr1Segment.11.9.1 != "" and pr1Segment.11.9.1 != null and pr1Segment.11.9.2 != "" and pr1Segment.11.9.2 != null and pr1Segment.11.9.3 != "" and pr1Segment.11.9.3 != null -%} + {% evaluate Organization_ID_PR1_11 using 'ID/Organization' HDORG: pr1Segment.11.9 -%} + {% include 'Resource/Organization', PR1: pr1Segment.11.9, ID: Organization_ID_PR1_11 -%} + {% endif -%} + {% evaluate practitionerId_PR1_11 using 'ID/Practitioner' XCN: pr1Segment.11 -%} + {% include 'Resource/Practitioner' PR1: pr1Segment.11, ID: practitionerId_PR1_11 -%} + {% endif -%} + + {% if pr1Segment.12 -%} + {% if pr1Segment.12.9.1 != "" and pr1Segment.12.9.1 != null and pr1Segment.12.9.2 != "" and pr1Segment.12.9.2 != null and pr1Segment.12.9.3 != "" and pr1Segment.12.9.3 != null -%} + {% evaluate Organization_ID_PR1_12 using 'ID/Organization' HDORG: pr1Segment.12.9 -%} + {% include 'Resource/Organization', PR1: pr1Segment.12.9, ID: Organization_ID_PR1_12 -%} + {% endif -%} + {% evaluate practitionerId_PR1_12 using 'ID/Practitioner' XCN: pr1Segment.12 -%} + {% include 'Resource/Practitioner' PR1: pr1Segment.12, ID: practitionerId_PR1_12 -%} + {% endif -%} + + {% if pr1Segment.23.1 -%} + {% evaluate Location_ID_PR1_23_1 using 'ID/Location' PL: pr1Segment.23.1 -%} + {% include 'Resource/PLLocation' PL_1: pr1Segment.23.1, ID: Location_ID_PR1_23_1-%} + {% else %} + {% if pr1Segment.23.2 %} + {% evaluate Location_ID_PR1_23_2 using 'ID/Location' PL: pr1Segment.23.2 -%} + {% include 'Resource/PLLocation' PL_2: pr1Segment.23.2, ID: Location_ID_PR1_23_2-%} + {% endif %} + {% endif %} + + {% if pr1Segment.25 -%} + {% evaluate Procedure_ID_PR1_25 using 'ID/Procedure' PR1: pr1Segment.25, baseId: fullPatientId -%} + {% include 'Resource/Procedure' PR1_25: pr1Segment.25, PV1: firstSegments.PV1, Procedure_Subject_ID: fullPatientId, ID: Procedure_ID_PR1_25 -%} + {% endif -%} + + {% evaluate procedureId using 'ID/Procedure' PR1: pr1Segment, baseId: patientId -%} + {% include 'Resource/Procedure' PR1: pr1Segment, PV1: firstSegments.PV1, Procedure_Subject_ID: fullPatientId, ID: procedureId -%} + {% endfor -%} + + {% for nk1Segment in nk1SegmentLists.NK1 -%} + {% evaluate relatedPersonId using 'ID/RelatedPerson' NK1: nk1Segment, baseId: patientId -%} + {% if nk1Segment.13 -%} + {% evaluate organizationId_NK1_13 using 'ID/Organization' XON: nk1Segment.13 -%} + {% include 'Resource/Organization' NK1: nk1Segment, ID: organizationId_NK1_13 -%} + {% assign Organization_NK1_13 = organizationId_NK1_13 | prepend: 'Organization/' -%} + {% include 'Reference/Patient/Contact_Organization' REF:Organization_NK1_13 , ID: patientId -%} + {% endif -%} + {% unless nk1Segment.3.1.Value == "EMR" or nk1Segment.3.1.Value == "CGV" or nk1Segment.7.1.Value == "E" or nk1Segment.7.1.Value =="F" or nk1Segment.7.1.Value == "I" or nk1Segment.7.1.Value =="S" -%} + {% include 'Resource/Patient' NK1: nk1Segment, ID: patientId -%} + {% include 'Resource/RelatedPerson' NK1: nk1Segment, RelatedPerson_Patient_ID: fullPatientId, ID: relatedPersonId, PID: firstSegments.PID -%} + {% include 'Extensions/RelatedPerson/RelatedPerson' ID: relatedPersonId, NK1: nk1Segment -%} + {% if nk1Segment.12.4.1 != "" and nk1Segment.12.4.1 != null and nk1Segment.12.4.2 != "" and nk1Segment.12.4.2 != null and nk1Segment.12.4.3 != "" and nk1Segment.12.4.3 != null -%} + {% evaluate Organization_ID_nk_CX_12 using 'ID/Organization' HDORG: nk1Segment.12.4 -%} + {% include 'Resource/Organization', NK1_12: nk1Segment.12, ID: Organization_ID_nk_CX_12 -%} + {% endif -%} + {% endunless -%} + {% if firstSegments.PID.21 -%} + {% include 'Resource/RelatedPerson' ID: relatedPersonId, PID: firstSegments.PID, RelatedPerson_Patient_ID: fullPatientId -%} + {% if firstSegments.PID.21.4.1 != "" and firstSegments.PID.21.4.1 != null and firstSegments.PID.21.4.2 != "" and firstSegments.PID.21.4.2 != null and firstSegments.PID.21.4.3 != "" and firstSegments.PID.21.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_21 using 'ID/Organization' HDORG: firstSegments.PID.21.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.21, ID: Organization_ID_pid_CX_21 -%} + {% endif -%} + {% endif -%} + + {% for nk33 in nk1Segment.33.Repeats -%} + {% if nk33.4.1 != "" and nk33.4.1 != null and nk33.4.2 != "" and nk33.4.2 != null and nk33.4.3 != "" and nk33.4.3 != null -%} + {% evaluate Organization_ID_nk_CX_33 using 'ID/Organization' HDORG: nk33.4 -%} + {% include 'Resource/Organization', NK1_33: nk33, ID: Organization_ID_nk_CX_33 -%} + {% endif -%} + {% endfor -%} + {% endfor -%} + + {% for db1Segment in db1SegmentLists.DB1 -%} + {% if db1Segment.2.1.Value == "PT" %} + {% for db in db1Segment.3.Repeats -%} + {% if db.4.1 != "" and db.4.1 != null and db.4.2 != "" and db.4.2 != null and db.4.3 != "" and db.4.3 != null -%} + {% evaluate Organization_ID_DB1_3 using 'ID/Organization' HDORG: db.4 -%} + {% include 'Resource/Organization', DB1: db.4, ID: Organization_ID_DB1_3 -%} + {% endif -%} + {% endfor %} + {% include 'Extensions/Patient/PatientExtension' ID: PatientId, DB1: db1Segment -%} + {% endif -%} + {% include 'Resource/Patient' DB1: db1Segment, ID: patientId -%} + {% endfor %} + + {% for obxSegment in obxSegmentLists.OBX -%} + {% for obx_16 in obxSegment.16.Repeats -%} + {% if obx_16.9.1 != "" and obx_16.9.1 != null and obx_16.9.2 != "" and obx_16.9.2 != null and obx_16.9.3 != "" and obx_16.9.3 != null -%} + {% evaluate Organization_ID_OBX_16 using 'ID/Organization' HDORG: obx_16.9 -%} + {% include 'Resource/Organization' OBX: obx_16.9, ID: Organization_ID_OBX_16 -%} + {% endif -%} + {% evaluate practitionerId_OBX_16 using 'ID/Practitioner' XCN: obx_16 -%} + {% include 'Resource/Practitioner' OBX: obxSegment, OBXXCN1: obx_16, ID: practitionerId_OBX_16 -%} + {% evaluate practitionerRoleId_OBX_16 using 'ID/PractitionerRole' XCN: obx_16 -%} + {% assign full_practitionerId_OBX_16 = practitionerId_OBX_16 | prepend: 'Practitioner/' %} + {% include 'Resource/PractitionerRole' OBXXCN1: obx_16, ID: practitionerRoleId_OBX_16 -%} + {% include 'Reference/PractitionerRole/Practitioner' REF: full_practitionerId_OBX_16, ID: practitionerRoleId_OBX_16 -%} + {% endfor %} + {% if obxSegment.18 -%} + {% evaluate deviceId_OBX_18 using 'ID/Device' EI: obxSegment.18.Repeats[0] -%} + {% include 'Resource/Device' EI_OBX18: obxSegment.18, ID: deviceId_OBX_18 -%} + {% endif -%} + {% if obxSegment.23 or obxSegment.25 %} + {% evaluate practitionerRoleId_OBX_25 using 'ID/PractitionerRole' XCN: obxSegment.25 -%} + {% endif %} + {% if obxSegment.25 -%} + {% evaluate practitionerId_OBX_25 using 'ID/Practitioner' XCN: obxSegment.25 -%} + {% include 'Resource/Practitioner' OBX: obxSegment, OBXXCN2: obxSegment.25, ID: practitionerId_OBX_25 -%} + {% assign full_practitionerId_OBX_25 = practitionerId_OBX_25 | prepend: 'Practitioner/' %} + {% include 'Resource/PractitionerRole' OBXXCN2: obxSegment.25, ID: practitionerRoleId_OBX_25 -%} + {% include 'Reference/PractitionerRole/Practitioner' REF: full_practitionerId_OBX_25, ID: practitionerRoleId_OBX_25 -%} + {% endif -%} + {% if obxSegment.23 -%} + {% evaluate organizationId_OBX_23 using 'ID/Organization' XON: obxSegment.23 -%} + {% include 'Resource/Organization' OBX_23: obxSegment.23, OBX_24: obxSegment.24, ID: organizationId_OBX_23 -%} + {% if obxSegment.25 -%} + {% assign full_organizationId_OBX_23 = organizationId_OBX_23 | prepend: 'Organization/' %} + {% include 'Reference/PractitionerRole/Organization' REF: full_organizationId_OBX_23, ID: practitionerRoleId_OBX_25 -%} + {% endif -%} + {% endif -%} + {% evaluate observationId using 'ID/Observation' OBX: obxSegment, baseId: patientId -%} + {% include 'Resource/Observation' OBX: obxSegment, Observation_Subject_ID: fullPatientId, ID: observationId -%} + {% include 'Extensions/Observation/ObservationExtension' OBX: obxSegment, ID: observationId %} + {% endfor -%} + + {% for al1Segment in al1SegmentLists.AL1 -%} + {% evaluate allergyIntoleranceId using 'ID/AllergyIntolerance' AL1: al1Segment, baseId: patientId -%} + {% include 'Resource/AllergyIntolerance' AL1: al1Segment, ID: allergyIntoleranceId, AllergyIntolerance_Patient_ID: fullPatientId -%} + {% endfor -%} + + {% for dg1Segment in dg1SegmentLists.DG1 -%} + {% if dg1Segment.16.Repeats[0] %} + {% if dg1Segment.16.Repeats[0].9.1 != "" and dg1Segment.16.Repeats[0].9.1 != null and dg1Segment.16.Repeats[0].9.2 != "" and dg1Segment.16.Repeats[0].9.2 != null and dg1Segment.16.Repeats[0].9.3 != "" and dg1Segment.16.Repeats[0].9.3 != null -%} + {% evaluate Organization_ID_DG1_16 using 'ID/Organization' HDORG: dg1Segment.16.Repeats[0].9 -%} + {% include 'Resource/Organization', DG1: dg1Segment.16.Repeats[0].9, ID: Organization_ID_DG1_16 -%} + {% endif -%} + {% evaluate practitionerId_DG1_16 using 'ID/Practitioner' XCN: dg1Segment.16.Repeats[0] -%} + {% include 'Resource/Practitioner' DG1: dg1Segment, ID: practitionerId_DG1_16 -%} + {% endif -%} + + {% evaluate conditionId using 'ID/Condition' DG1: dg1Segment, baseId: patientId -%} + {% include 'Resource/Condition' DG1: dg1Segment, Condition_Subject_ID: fullPatientId, baseId: patientId, ID: conditionId -%} + + {% if encounterId -%} + {% include 'Resource/Encounter' DG1: dg1Segment, conditionId: conditionId, ID: encounterId -%} + {% endif -%} + + {% if EpisodeOfCare_ID %} + {% include 'Resource/EpisodeOfCare' DG1: dg1Segment, conditionId: conditionId, ID: EpisodeOfCare_ID -%} + {% endif %} + {% if dg1Segment.22 -%} + {% evaluate conditionId_DG1_22 using 'ID/Condition' DG1: dg1Segment.22, baseId: patientId -%} + {% include 'Resource/Condition' DG1_22: dg1Segment.22, Condition_Subject_ID_DG1_22: fullPatientId, ID: conditionId_DG1_22 -%} + {% endif -%} + {% include 'Extensions/Condition/ConditionExtension' DG1: dg1Segment, ID_DG1_22:conditionId_DG1_22, ID: conditionId %} + + {% endfor -%} + + {% for rf1Segment in rf1SegmentLists.RF1 -%} + {% if rf1Segment.19 -%} + {% evaluate Organization_ID_RF1_19 using 'ID/Organization' XON: rf1Segment.19 -%} + {% include 'Resource/Organization' RF1: rf1Segment.19, ID: Organization_ID_RF1_19 -%} + {% endif -%} + + {% if rf1Segment.20 -%} + {% if rf1Segment.20.9.1 != "" and rf1Segment.20.9.1 != null and rf1Segment.20.9.2 != "" and rf1Segment.20.9.2 != null and rf1Segment.20.9.3 != "" and rf1Segment.20.9.3 != null -%} + {% evaluate Organization_ID_RF1_20_9 using 'ID/Organization' HDORG: rf1Segment.20.9 -%} + {% include 'Resource/Organization', RF1_20: rf1Segment.20.9, ID: Organization_ID_RF1_20_9 -%} + {% endif -%} + {% evaluate Practitioner_ID_RF1_20 using 'ID/Practitioner' XCN: rf1Segment.20 -%} + {% include 'Resource/Practitioner' RF1: rf1Segment.20, ID: Practitioner_ID_RF1_20 -%} + {% endif -%} + + {% evaluate serviceRequestId using 'ID/ServiceRequest' RF1: rf1Segment, baseId: patientId -%} + {% include 'Resource/ServiceRequest' RF1: rf1Segment, ID: serviceRequestId, ServiceRequest_Subject_ID: fullPatientId -%} + {% endfor -%} + + {% for in1Segment in in1SegmentLists.IN1 -%} + + {% evaluate coverageId using 'ID/Coverage' CX: in1Segment -%} + {% include 'Resource/Coverage' IN1: in1Segment, ID: coverageId -%} + {% include 'Reference/Coverage/Beneficiary' ID: coverageId, REF: fullPatientId -%} + + {% for in1_49 in in1Segment.49.Repeats -%} + {% if in1_49.4.1 != "" and in1_49.4.1 != null and in1_49.4.2 != "" and in1_49.4.2 != null and in1_49.4.3 != "" and in1_49.4.3 != null -%} + {% evaluate Organization_ID_in1_CX_49 using 'ID/Organization' HDORG: in1_49.4 -%} + {% include 'Resource/Organization', IN1_49: in1_49, ID: Organization_ID_in1_CX_49 -%} + {% endif -%} + {% endfor -%} + + {% for in1_3 in in1Segment.3.Repeats -%} + {% if in1_3.4.1 != "" and in1_3.4.1 != null and in1_3.4.2 != "" and in1_3.4.2 != null and in1_3.4.3 != "" and in1_3.4.3 != null -%} + {% evaluate Organization_ID_in1_CX_3 using 'ID/Organization' HDORG: in1_3.4 -%} + {% include 'Resource/Organization', IN1_3: in1_3, ID: Organization_ID_in1_CX_3 -%} + {% endif -%} + {% endfor -%} + + {% for in1_10 in in1Segment.10.Repeats -%} + {% if in1_10.4.1 != "" and in1_10.4.1 != null and in1_10.4.2 != "" and in1_10.4.2 != null and in1_10.4.3 != "" and in1_10.4.3 != null -%} + {% evaluate Organization_ID_in1_CX_10 using 'ID/Organization' HDORG: in1_10.4 -%} + {% include 'Resource/Organization', IN1_10: in1_10, ID: Organization_ID_in1_CX_10 -%} + {% endif -%} + {% endfor -%} + + {% if in1Segment.4 -%} + {% evaluate Organization_ID_in1_4 using 'ID/Organization' XON: in1Segment.4 -%} + {% else -%} + {% evaluate Organization_ID_in1_4 using 'ID/Organization' CX: in1Segment -%} + {% endif -%} + {% if Organization_ID_in1_4 -%} + {% include 'Resource/Organization', IN1: in1Segment, ID: Organization_ID_in1_4 -%} + {% assign org_in1_4 = Organization_ID_in1_4 | prepend: 'Organization/' -%} + {% include 'Reference/Coverage/Payor' ID: coverageId, REF: org_in1_4 -%} + {% endif -%} + + {% if in1Segment.11 -%} + {% evaluate Organization_ID_in1_11 using 'ID/Organization' XON: in1Segment.11 -%} + {% else -%} + {% evaluate Organization_ID_in1_11 using 'ID/Organization' CX_IN1: in1Segment -%} + {% endif -%} + {% if Organization_ID_in1_11 -%} + {% include 'Resource/Organization', IN1_11: in1Segment, ID: Organization_ID_in1_11 -%} + {% assign org_in1_11 = Organization_ID_in1_11 | prepend: 'Organization/' -%} + {% include 'Reference/Coverage/PolicyHolder' ID: coverageId, REF: org_in1_11 -%} + {% endif -%} + + {% if in1Segment.17.1.Value == "SEL" -%} + {% include 'Resource/Patient' PID_IN1: firstSegments.PID, IN1: in1Segment, ID: patientId -%} + {% include 'Reference/Coverage/Subscriber' ID: coverageId, REF: fullPatientId -%} + {% endif -%} + {% unless in1Segment.17.1.Value == "SEL" or in1Segment.17.Value == "" -%} + {% evaluate in1relatedPersonId using 'ID/RelatedPerson' IN1: in1Segment, baseId: patientId -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: in1relatedPersonId, IN1: in1Segment -%} + {% assign rel_in1_17 = in1relatedPersonId | prepend: 'RelatedPerson/' -%} + {% include 'Reference/Coverage/Subscriber' ID: coverageId, REF: rel_in1_17 -%} + {% endunless -%} + + {% for in2Segment in in2SegmentLists.IN2 -%} + {% if in1Segment.17.1.Value == "SEL" -%} + {% include 'Resource/Patient' IN2: in2Segment, ID: patientId -%} + {% endif -%} + {% unless in1Segment.17.1.Value == "SEL" or in1Segment.17.Value == "" -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: in1relatedPersonId, IN2: in2Segment -%} + {% endunless -%} + + {% unless in1Segment.10 and in1Segment.11 -%} + {% if in2Segment.3 -%} + {% evaluate in2relatedPersonId using 'ID/RelatedPerson' IN2: in2Segment, baseId: patientId -%} + {% if in2Segment.3.9.1 != "" and in2Segment.3.9.1 != null and in2Segment.3.9.2 != "" and in2Segment.3.9.2 != null and in2Segment.3.9.3 != "" and in2Segment.3.9.3 != null -%} + {% evaluate Organization_ID_IN2_3_9 using 'ID/Organization' HDORG: in2Segment.3.9 -%} + {% include 'Resource/Organization', IN2_3: in2Segment.3.9, ID: Organization_ID_IN2_3_9 -%} + {% endif -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: in2relatedPersonId, IN2_3: in2Segment -%} + {% assign relatedperson_3 = in2relatedPersonId | prepend: 'RelatedPerson/' -%} + {% include 'Reference/Coverage/PolicyHolder' ID: coverageId, REF: relatedperson_3 -%} + {% endif -%} + {% endunless -%} + + {% if in1Segment.10 == null and in1Segment.11 == null and in2Segment.3 == null -%} + {% if in2Segment.70 -%} + {% evaluate organization_Id_IN2_70 using 'ID/Organization' XON: in2Segment.70 -%} + {% include 'Resource/Organization' IN2_70: in2Segment, ID: organization_Id_IN2_70 -%} + {% assign org_in2_70 = organization_Id_IN2_70 | prepend: 'Organization/' -%} + {% include 'Reference/Coverage/PolicyHolder' ID: coverageId, REF: org_in2_70 -%} + {% endif -%} + {% endif -%} + + {% if Organization_ID_in1_11 -%} + {% include 'Resource/Organization', IN2_49: in2Segment, ID: Organization_ID_in1_11 -%} + {% endif -%} + {% include 'Resource/Coverage' IN2: in2Segment, ID: coverageId -%} + {% include 'Resource/Patient' IN2_6: in2Segment, ID: patientId -%} + + {% for in2_1 in in2Segment.1.Repeats -%} + {% if in2_1.4.1 != "" and in2_1.4.1 != null and in2_1.4.2 != "" and in2_1.4.2 != null and in2_1.4.3 != "" and in2_1.4.3 != null -%} + {% evaluate Organization_ID_in2_CX_1 using 'ID/Organization' HDORG: in2_1.4 -%} + {% include 'Resource/Organization', IN2_1: in2_1, ID: Organization_ID_in2_CX_1 -%} + {% endif -%} + {% endfor -%} + {% if in2Segment.61 -%} + {% if in2Segment.61.4.1 != "" and in2Segment.61.4.1 != null and in2Segment.61.4.2 != "" and in2Segment.61.4.2 != null and in2Segment.61.4.3 != "" and in2Segment.61.4.3 != null -%} + {% evaluate Organization_ID_in2_CX_61 using 'ID/Organization' HDORG: in2Segment.61.4 -%} + {% include 'Resource/Organization', IN2_61: in2Segment.61, ID: Organization_ID_in2_CX_61 -%} + {% endif -%} + {% endif -%} + {% endfor -%} + + {% endfor -%} + ] +} \ No newline at end of file diff --git a/data/Templates/Hl7v2/ADT_A14.liquid b/data/Templates/Hl7v2/ADT_A14.liquid new file mode 100644 index 000000000..6515c302f --- /dev/null +++ b/data/Templates/Hl7v2/ADT_A14.liquid @@ -0,0 +1,615 @@ +{% assign firstSegments = hl7v2Data | get_first_segments: 'MSH|UAC|EVN|PID|PD1|PV1|PV2|DRG|ACC|UB1|UB2' -%} +{% assign sftSegmentLists = hl7v2Data | get_segment_lists: 'SFT' -%} +{% assign arvSegmentLists = hl7v2Data | get_segment_lists: 'ARV' -%} +{% assign rolSegmentLists = hl7v2Data | get_segment_lists: 'ROL' -%} +{% assign nk1SegmentLists = hl7v2Data | get_segment_lists: 'NK1' -%} +{% assign db1SegmentLists = hl7v2Data | get_segment_lists: 'DB1' -%} +{% assign obxSegmentLists = hl7v2Data | get_segment_lists: 'OBX' -%} +{% assign al1SegmentLists = hl7v2Data | get_segment_lists: 'AL1' -%} +{% assign dg1SegmentLists = hl7v2Data | get_segment_lists: 'DG1' -%} +{% assign pr1SegmentLists = hl7v2Data | get_segment_lists: 'PR1' -%} +{% assign gt1SegmentLists = hl7v2Data | get_segment_lists: 'GT1' -%} +{% assign in1SegmentLists = hl7v2Data | get_segment_lists: 'IN1' -%} +{% assign in2SegmentLists = hl7v2Data | get_segment_lists: 'IN2' -%} +{% assign in3SegmentLists = hl7v2Data | get_segment_lists: 'IN3' -%} +{% assign autSegmentLists = hl7v2Data | get_segment_lists: 'AUT' -%} +{% assign rf1SegmentLists = hl7v2Data | get_segment_lists: 'RF1' -%} +{% evaluate bundleID using 'ID/Bundle' Data: firstSegments.MSH.10 -%} +{ + "resourceType": "Bundle", + "type": "batch", + {% if firstSegments.MSH.7 -%} + "timestamp":"{{ firstSegments.MSH.7.Value | format_as_date_time }}", + {% endif -%} + "identifier": + { + "value":"{{ firstSegments.MSH.10.Value }}", + }, + "id":"{{ bundleID }}", + "entry": [ + {% evaluate patientId using 'ID/Patient' PID: firstSegments.PID, type: 'First' -%} + {% assign fullPatientId = patientId | prepend: 'Patient/' -%} + {% evaluate messageHeaderId using 'ID/MessageHeader' MSH: firstSegments.MSH -%} + + {% if firstSegments.MSH -%} + {% include 'Resource/MessageHeader' MSH: firstSegments.MSH, ID: messageHeaderId -%} + {% evaluate provenanceId using 'ID/Provenance' MSH: firstSegments.MSH, baseId: patientId -%} + {% include 'Resource/Provenance' Root_Template: 'ADT_A14', MSH: firstSegments.MSH, REF_BUNDLE: bundleID, ID: provenanceId -%} + + {%- comment -%} + {% assign transformation_val = 'provenance_transformation' %} + {% evaluate provenanceOrganizationId using 'ID/Organization', prov_id: firstSegments.MSH -%} + {% evaluate provenanceTransformationId using 'ID/Provenance_transformation' prov_id: transformation_val -%} + {% include 'Resource/Organization' org_name: 'Microsoft Corporation', ID: provenanceOrganizationId -%} + {% include 'Resource/Provenance_transformation' Root_Template: 'ADT_A14', Provenance_Organization_ID: provenanceOrganizationId, REF_MSH: messageHeaderId, provenanceOrganizationId, ID: provenanceTransformationId -%} + {%- endcomment -%} + {% if firstSegments.MSH.4 -%} + {% if firstSegments.MSH.4.1 != "" and firstSegments.MSH.4.1 != null or firstSegments.MSH.4.2 != "" and firstSegments.MSH.4.2 != null or firstSegments.MSH.4.3 != "" and firstSegments.MSH.4.3 != null -%} + {% evaluate organization_ID_MSH_4 using 'ID/Organization' HD: firstSegments.MSH.4 -%} + {% include 'Resource/Organization' MSHHD1: firstSegments.MSH.4, MSH: firstSegments.MSH, ID: organization_ID_MSH_4 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.6 %} + {% if firstSegments.MSH.6.1 != "" and firstSegments.MSH.6.1 != null or firstSegments.MSH.6.2 != "" and firstSegments.MSH.6.2 != null or firstSegments.MSH.6.3 != "" and firstSegments.MSH.6.3 != null -%} + {% evaluate organization_Id_MSH_6 using 'ID/Organization' HD: firstSegments.MSH.6 -%} + {% include 'Resource/Organization' MSHHD2: firstSegments.MSH.6, MSH: firstSegments.MSH, ID: organization_Id_MSH_6 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.22 %} + {% if firstSegments.MSH.22.1 != "" and firstSegments.MSH.22.1 != null -%} + {% evaluate organization_Id_MSH_22 using 'ID/Organization' XON: firstSegments.MSH.22 -%} + {% include 'Resource/Organization' MSHXON1: firstSegments.MSH.22, ID: organization_Id_MSH_22 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.23 %} + {% if firstSegments.MSH.23.1 != "" and firstSegments.MSH.23.1 != null -%} + {% evaluate organization_Id_MSH_23 using 'ID/Organization' XON: firstSegments.MSH.23 -%} + {% include 'Resource/Organization' MSHXON2: firstSegments.MSH.23, ID: organization_Id_MSH_23 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.3 and firstSegments.MSH.24 %} + {% evaluate device_Id_MSH_3 using 'ID/Device' HD: firstSegments.MSH.3 -%} + {% include 'Resource/Device' MSH: firstSegments.MSH, ID: device_Id_MSH_3 -%} + {% endif -%} + {% endif -%} + + {% for sftSegment in sftSegmentLists.SFT -%} + {% evaluate deviceId_SFT using 'ID/Device' SFT: sftSegment -%} + {% include 'Resource/Device' SFT:sftSegment, ID: deviceId_SFT -%} + {% include 'Resource/MessageHeader' MSH: firstSegments.MSH, SFT:sftSegment, ID: messageHeaderID -%} + {% endfor -%} + + {% include 'Resource/Patient' PID: firstSegments.PID, PD1: firstSegments.PD1, ID: patientId -%} + {% include 'Extensions/Patient/PatientExtension' ID: PatientId, PID: firstSegments.PID, PD1: firstSegments.PD1, PV1: firstSegments.PV1 -%} + + {% if firstSegments.PID.18 -%} + {% evaluate accountId using 'ID/Account' CX: firstSegments.PID.3 -%} + {% include 'Resource/Account' PID: firstSegments.PID, ID: accountId -%} + {% include 'Reference/Account/Subject' ID: accountId, REF: fullPatientId -%} + {% if firstSegments.PID.18.4.1 != "" and firstSegments.PID.18.4.1 != null and firstSegments.PID.18.4.2 != "" and firstSegments.PID.18.4.2 != null and firstSegments.PID.18.4.3 != "" and firstSegments.PID.18.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_18 using 'ID/Organization' HDORG: firstSegments.PID.18.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.18, ID: Organization_ID_pid_CX_18 -%} + {% endif -%} + + {% for gt1SegmentLists in gt1SegmentLists.GT1 -%} + {% if gt1SegmentLists.11.1.Value == "SEL" -%} + {% include 'Resource/Patient' PID: firstSegments.PID, GT1: gt1SegmentLists, ID: patientId, NK1_PER: nk1SegmentLists.NK1[0] -%} + {% if gt1SegmentLists.2.4.1 != "" and gt1SegmentLists.2.4.1 != null and gt1SegmentLists.2.4.2 != "" and gt1SegmentLists.2.4.2 != null and gt1SegmentLists.2.4.3 != "" and gt1SegmentLists.2.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_2 using 'ID/Organization' HDORG: gt1SegmentLists.2.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.2, ID: Organization_ID_gt1_CX_2 -%} + {% endif -%} + {% if gt1SegmentLists.19.4.1 != "" and gt1SegmentLists.19.4.1 != null and gt1SegmentLists.19.4.2 != "" and gt1SegmentLists.19.4.2 != null and gt1SegmentLists.19.4.3 != "" and gt1SegmentLists.19.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_19 using 'ID/Organization' HDORG: gt1SegmentLists.19.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.19, ID: Organization_ID_gt1_CX_19 -%} + {% endif -%} + {% if gt1SegmentLists.29.4.1 != "" and gt1SegmentLists.29.4.1 != null and gt1SegmentLists.29.4.2 != "" and gt1SegmentLists.29.4.2 != null and gt1SegmentLists.29.4.3 != "" and gt1SegmentLists.29.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_29 using 'ID/Organization' HDORG: gt1SegmentLists.29.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.29, ID: Organization_ID_gt1_CX_29 -%} + {% endif -%} + {% if gt1SegmentLists.51 and nk1SegmentLists.NK1[0].7.1.Value == "E" -%} + {% evaluate Organization_ID_gt1_XON_51 using 'ID/Organization' XON: gt1SegmentLists.51 -%} + {% include 'Resource/Organization', GT1_51: gt1SegmentLists, ID: Organization_ID_gt1_XON_51 -%} + {% assign Organization_GT1_51 = Organization_ID_gt1_XON_51 | prepend: 'Organization/' -%} + {% include 'Reference/Patient/Contact_Organization' REF:Organization_GT1_51 , ID: patientId -%} + {% endif -%} + {% else -%} + {% evaluate gt1relatedPersonId using 'ID/RelatedPerson' GT1: gt1SegmentLists, baseId: patientId -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: gt1relatedPersonId, GT1: gt1SegmentLists -%} + {% if gt1SegmentLists.2.4.1 != "" and gt1SegmentLists.2.4.1 != null and gt1SegmentLists.2.4.2 != "" and gt1SegmentLists.2.4.2 != null and gt1SegmentLists.2.4.3 != "" and gt1SegmentLists.2.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_2 using 'ID/Organization' HDORG: gt1SegmentLists.2.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.2, ID: Organization_ID_gt1_CX_2 -%} + {% endif -%} + {% if gt1SegmentLists.19.4.1 != "" and gt1SegmentLists.19.4.1 != null and gt1SegmentLists.19.4.2 != "" and gt1SegmentLists.19.4.2 != null and gt1SegmentLists.19.4.3 != "" and gt1SegmentLists.19.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_19 using 'ID/Organization' HDORG: gt1SegmentLists.19.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.19, ID: Organization_ID_gt1_CX_19 -%} + {% endif -%} + {% endif -%} + {% if gt1SegmentLists.21 -%} + {% evaluate Organization_ID_gt1_XON_21 using 'ID/Organization' XON: gt1SegmentLists.21 -%} + {% include 'Resource/Organization', GT1: gt1SegmentLists, ID: Organization_ID_gt1_XON_21 -%} + {% if gt1SegmentLists.2.4.1 != "" and gt1SegmentLists.2.4.1 != null and gt1SegmentLists.2.4.2 != "" and gt1SegmentLists.2.4.2 != null and gt1SegmentLists.2.4.3 != "" and gt1SegmentLists.2.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_2 using 'ID/Organization' HDORG: gt1SegmentLists.2.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.2, ID: Organization_ID_gt1_CX_2 -%} + {% endif -%} + {% endif -%} + {% include 'Resource/Account' GT1: gt1SegmentLists, ID: accountId, REF_PATIENT: fullPatientId, REF_RELATED_PERSON: gt1relatedPersonId, REF_ORG: Organization_ID_gt1_XON_21 -%} + {% endfor -%} + + {% endif -%} + + {% if firstSegments.PID.2 -%} + {% if firstSegments.PID.2.4.1 != "" and firstSegments.PID.2.4.1 != null and firstSegments.PID.2.4.2 != "" and firstSegments.PID.2.4.2 != null and firstSegments.PID.2.4.3 != "" and firstSegments.PID.2.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_2 using 'ID/Organization' HDORG: firstSegments.PID.2.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.2, ID: Organization_ID_pid_CX_2 -%} + {% endif -%} + {% endif -%} + {% for pid3 in firstSegments.PID.3.Repeats -%} + {% if pid3.4.1 != "" and pid3.4.1 != null and pid3.4.2 != "" and pid3.4.2 != null and pid3.4.3 != "" and pid3.4.3 != null -%} + {% evaluate Organization_ID_pid_CX using 'ID/Organization' HDORG: pid3.4 -%} + {% include 'Resource/Organization', PID: pid3, ID: Organization_ID_pid_CX -%} + {% endif -%} + {% endfor -%} + {% if firstSegments.PID.4 -%} + {% if firstSegments.PID.4.4.1 != "" and firstSegments.PID.4.4.1 != null and firstSegments.PID.4.4.2 != "" and firstSegments.PID.4.4.2 != null and firstSegments.PID.4.4.3 != "" and firstSegments.PID.4.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_4 using 'ID/Organization' HDORG: firstSegments.PID.4.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.4, ID: Organization_ID_pid_CX_4 -%} + {% endif -%} + {% endif -%} + + {% unless nk1SegmentLists.NK1 -%} + {% if firstSegments.PID.21 -%} + {% if firstSegments.PID.21.4.1 != "" and firstSegments.PID.21.4.1 != null and firstSegments.PID.21.4.2 != "" and firstSegments.PID.21.4.2 != null and firstSegments.PID.21.4.3 != "" and firstSegments.PID.21.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_21 using 'ID/Organization' HDORG: firstSegments.PID.21.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.21, ID: Organization_ID_pid_CX_21 -%} + {% endif -%} + {% evaluate pidrelatedPersonId using 'ID/RelatedPerson' PID: firstSegments.PID, baseId: patientId -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: pidrelatedPersonId, PID: firstSegments.PID -%} + {% endif -%} + {% endunless -%} + {% if firstSegments.PD1.3 -%} + {% evaluate Organization_ID_PD1_3 using 'ID/Organization' XON: firstSegments.PD1.3 -%} + {% include 'Resource/Organization' PD1: firstSegments.PD1, ID: Organization_ID_PD1_3 -%} + {% endif -%} + + {% if firstSegments.PD1.4 -%} + {% if firstSegments.PD1.4.9.1 != "" and firstSegments.PD1.4.9.1 != null and firstSegments.PD1.4.9.2 != "" and firstSegments.PD1.4.9.2 != null and firstSegments.PD1.4.9.3 != "" and firstSegments.PD1.4.9.3 != null -%} + {% evaluate Organization_ID_PD1_4_9 using 'ID/Organization' HDORG: firstSegments.PD1.4.9 -%} + {% include 'Resource/Organization', PD1_4: firstSegments.PD1.4.9, ID: Organization_ID_PD1_4_9 -%} + {% endif -%} + {% evaluate Practitioner_ID_PD1_4 using 'ID/Practitioner' XCN: firstSegments.PD1.4 -%} + {% include 'Resource/Practitioner' PD1: firstSegments.PD1.4, ID: Practitioner_ID_PD1_4 -%} + {% endif -%} + + {% if firstSegments.PV1 -%} + {% if firstSegments.PV1.5 -%} + {% if firstSegments.PV1.5.4.1 != "" and firstSegments.PV1.5.4.1 != null and firstSegments.PV1.5.4.2 != "" and firstSegments.PV1.5.4.2 != null and firstSegments.PV1.5.4.3 != "" and firstSegments.PV1.5.4.3 != null -%} + {% evaluate Organization_ID_PV1_5_4 using 'ID/Organization' HDORG: firstSegments.PV1.5.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.5.4, ID: Organization_ID_PV1_5_4 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PV1.19 -%} + {% if firstSegments.PV1.19.4.1 != "" and firstSegments.PV1.19.4.1 != null and firstSegments.PV1.19.4.2 != "" and firstSegments.PV1.19.4.2 != null and firstSegments.PV1.19.4.3 != "" and firstSegments.PV1.19.4.3 != null -%} + {% evaluate Organization_ID_PV1_19_4 using 'ID/Organization' HDORG: firstSegments.PV1.19.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.19.4, ID: Organization_ID_PV1_19_4 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PV1.7 -%} + {% if firstSegments.PV1.7.9.1 != "" and firstSegments.PV1.7.9.1 != null and firstSegments.PV1.7.9.2 != "" and firstSegments.PV1.7.9.2 != null and firstSegments.PV1.7.9.3 != "" and firstSegments.PV1.7.9.3 != null -%} + {% evaluate Organization_ID_PV1_7_9 using 'ID/Organization' HDORG: firstSegments.PV1.7.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.7.9, ID: Organization_ID_PV1_7_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_7 using 'ID/Practitioner' XCN: firstSegments.PV1.7 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.7, ID: practitionerId_PV1_7 -%} + {% endif -%} + + {% if firstSegments.PV1.8 -%} + {% if firstSegments.PV1.8.9.1 != "" and firstSegments.PV1.8.9.1 != null and firstSegments.PV1.8.9.2 != "" and firstSegments.PV1.8.9.2 != null and firstSegments.PV1.8.9.3 != "" and firstSegments.PV1.8.9.3 != null -%} + {% evaluate Organization_ID_PV1_8_9 using 'ID/Organization' HDORG: firstSegments.PV1.8.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.8.9, ID: Organization_ID_PV1_8_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_8 using 'ID/Practitioner' XCN: firstSegments.PV1.8 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.8, ID: practitionerId_PV1_8 -%} + {% endif -%} + + {% if firstSegments.PV1.9 -%} + {% if firstSegments.PV1.9.9.1 != "" and firstSegments.PV1.9.9.1 != null and firstSegments.PV1.9.9.2 != "" and firstSegments.PV1.9.9.2 != null and firstSegments.PV1.9.9.3 != "" and firstSegments.PV1.9.9.3 != null -%} + {% evaluate Organization_ID_PV1_9_9 using 'ID/Organization' HDORG: firstSegments.PV1.9.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.9.9, ID: Organization_ID_PV1_9_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_9 using 'ID/Practitioner' XCN: firstSegments.PV1.9 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.9, ID: practitionerId_PV1_9 -%} + {% endif -%} + + {% if firstSegments.PV1.17 -%} + {% if firstSegments.PV1.17.9.1 != "" and firstSegments.PV1.17.9.1 != null and firstSegments.PV1.17.9.2 != "" and firstSegments.PV1.17.9.2 != null and firstSegments.PV1.17.9.3 != "" and firstSegments.PV1.17.9.3 != null -%} + {% evaluate Organization_ID_PV1_17_9 using 'ID/Organization' HDORG: firstSegments.PV1.17.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.17.9, ID: Organization_ID_PV1_17_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_17 using 'ID/Practitioner' XCN: firstSegments.PV1.17 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.17, ID: practitionerId_PV1_17 -%} + {% endif -%} + + {% if firstSegments.PV1.50 -%} + {% for p in firstSegments.PV1.50.Repeats -%} + {% if p.4.1 != "" and p.4.1 != null and p.4.2 != "" and p.4.2 != null and p.4.3 != "" and p.4.3 != null -%} + {% evaluate Organization_ID_PV1_50_4 using 'ID/Organization' HDORG: p.4 -%} + {% include 'Resource/Organization', PV1: p.4, ID: Organization_ID_PV1_50_4 -%} + {% endif -%} + {% endfor -%} + {% endif -%} + + {% if firstSegments.PV1.52 -%} + {% if firstSegments.PV1.52.9.1 != "" and firstSegments.PV1.52.9.1 != null and firstSegments.PV1.52.9.2 != "" and firstSegments.PV1.52.9.2 != null and firstSegments.PV1.52.9.3 != "" and firstSegments.PV1.52.9.3 != null -%} + {% evaluate Organization_ID_PV1_52_9 using 'ID/Organization' HDORG: firstSegments.PV1.52.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.52.9, ID: Organization_ID_PV1_52_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_52 using 'ID/Practitioner' XCN: firstSegments.PV1.52 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.52, ID: practitionerId_PV1_52 -%} + {% endif -%} + + {% if firstSegments.PV2.13 -%} + {% if firstSegments.PV2.13.9.1 != "" and firstSegments.PV2.13.9.1 != null and firstSegments.PV2.13.9.2 != "" and firstSegments.PV2.13.9.2 != null and firstSegments.PV2.13.9.3 != "" and firstSegments.PV2.13.9.3 != null -%} + {% evaluate Organization_ID_PV2_13_9 using 'ID/Organization' HDORG: firstSegments.PV2.13.9 -%} + {% include 'Resource/Organization', PV2: firstSegments.PV2.13.9, ID: Organization_ID_PV2_13_9 -%} + {% endif -%} + {% evaluate practitionerId_PV2_13 using 'ID/Practitioner' XCN: firstSegments.PV2.13 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV2.13, ID: practitionerId_PV2_13 -%} + {% endif -%} + + {% if firstSegments.PV1.3 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.3-%} + {% endif -%} + + {% if firstSegments.PV1.6 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.6 -%} + {% endif -%} + + {% if firstSegments.PV1.37 -%} + {% evaluate location_ID_PV1_37 using 'ID/Location' DLD: firstSegments.PV1.37 -%} + {% include 'Resource/Location' PV1: firstSegments.PV1.37, ID: location_ID_PV1_37-%} + {% endif -%} + + {% if firstSegments.PV1.42 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.42-%} + {% endif -%} + + {% if firstSegments.PV1.43 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.43-%} + {% endif -%} + + {% if firstSegments.PV2.1 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV2.1-%} + {% endif -%} + + {% if firstSegments.PV1.54 -%} + {% if firstSegments.PV1.54.4.1 != "" and firstSegments.PV1.54.4.1 != null and firstSegments.PV1.54.4.2 != "" and firstSegments.PV1.54.4.2 != null and firstSegments.PV1.54.4.3 != "" and firstSegments.PV1.54.4.3 != null -%} + {% evaluate Organization_ID_PV1_54_4 using 'ID/Organization' HDORG: firstSegments.PV1.54.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.54.4, ID: Organization_ID_PV1_54_4 -%} + {% endif -%} + {% evaluate EpisodeOfCare_ID using 'ID/EpisodeOfCare' PV1: firstSegments.PV1.54 -%} + {% include 'Resource/EpisodeOfCare' PV1: firstSegments.PV1, ID: EpisodeOfCare_ID, patientRefrenceID: fullPatientId -%} + {% endif -%} + + {% evaluate encounterId using 'ID/Encounter' PV1: firstSegments.PV1, baseId: patientId -%} + {% include 'Resource/Encounter' Root_Template: 'ADT_A14', PV1: firstSegments.PV1, PV2: firstSegments.PV2, ID: encounterId -%} + {% include 'Reference/Encounter/Subject' ID: encounterId, REF: fullPatientId -%} + {% include 'Extensions/Encounter/EncounterExtension' ID: encounterId, PV1: firstSegments.PV1, PV2: firstSegments.PV2, -%} + {% endif -%} + + {% if firstSegments.EVN -%} + {% evaluate provenanceId using 'ID/Provenance' EVN: firstSegments.EVN, baseId: patientId -%} + {% include 'Resource/Provenance' EVN: firstSegments.EVN, EVNTEXT: firstSegments.MSH.9, REF_BUNDLE: bundleID, ID: provenanceId -%} + {% if firstSegments.EVN.5 -%} + {% if firstSegments.EVN.5.9.1 != "" and firstSegments.EVN.5.9.1 != null and firstSegments.EVN.5.9.2 != "" and firstSegments.EVN.5.9.2 != null and firstSegments.EVN.5.9.3 != "" and firstSegments.EVN.5.9.3 != null -%} + {% evaluate Organization_ID_EVN_5_9 using 'ID/Organization' HDORG: firstSegments.EVN.5.9 -%} + {% include 'Resource/Organization', EVN: firstSegments.EVN.5.9, ID: Organization_ID_EVN_5_9 -%} + {% endif -%} + {% evaluate practitionerId_EVN_5 using 'ID/Practitioner' XCN: firstSegments.EVN.5 -%} + {% include 'Resource/Practitioner' EVN: firstSegments.EVN.5, ID: practitionerId_EVN_5 -%} + {% if firstSegments.EVN.7 -%} + {% evaluate locationId_EVN_7 using 'ID/Location' HD: firstSegments.EVN.7 -%} + {% include 'Resource/Location' EVN: firstSegments.EVN.7, ID: locationId_EVN_7 -%} + {% endif -%} + {% endif -%} + {% endif -%} + + {% for pr1Segment in pr1SegmentLists.PR1 -%} + {% if pr1Segment.8 -%} + {% if pr1Segment.8.9.1 != "" and pr1Segment.8.9.1 != null and pr1Segment.8.9.2 != "" and pr1Segment.8.9.2 != null and pr1Segment.8.9.3 != "" and pr1Segment.8.9.3 != null -%} + {% evaluate Organization_ID_PR1_8 using 'ID/Organization' HDORG: pr1Segment.8.9 -%} + {% include 'Resource/Organization', PR1: pr1Segment.8.9, ID: Organization_ID_PR1_8 -%} + {% endif -%} + {% evaluate practitionerId_PR1_8 using 'ID/Practitioner' XCN: pr1Segment.8 -%} + {% include 'Resource/Practitioner' PR1: pr1Segment.8, ID: practitionerId_PR1_8 -%} + {% endif -%} + + {% if pr1Segment.11 -%} + {% if pr1Segment.11.9.1 != "" and pr1Segment.11.9.1 != null and pr1Segment.11.9.2 != "" and pr1Segment.11.9.2 != null and pr1Segment.11.9.3 != "" and pr1Segment.11.9.3 != null -%} + {% evaluate Organization_ID_PR1_11 using 'ID/Organization' HDORG: pr1Segment.11.9 -%} + {% include 'Resource/Organization', PR1: pr1Segment.11.9, ID: Organization_ID_PR1_11 -%} + {% endif -%} + {% evaluate practitionerId_PR1_11 using 'ID/Practitioner' XCN: pr1Segment.11 -%} + {% include 'Resource/Practitioner' PR1: pr1Segment.11, ID: practitionerId_PR1_11 -%} + {% endif -%} + + {% if pr1Segment.12 -%} + {% if pr1Segment.12.9.1 != "" and pr1Segment.12.9.1 != null and pr1Segment.12.9.2 != "" and pr1Segment.12.9.2 != null and pr1Segment.12.9.3 != "" and pr1Segment.12.9.3 != null -%} + {% evaluate Organization_ID_PR1_12 using 'ID/Organization' HDORG: pr1Segment.12.9 -%} + {% include 'Resource/Organization', PR1: pr1Segment.12.9, ID: Organization_ID_PR1_12 -%} + {% endif -%} + {% evaluate practitionerId_PR1_12 using 'ID/Practitioner' XCN: pr1Segment.12 -%} + {% include 'Resource/Practitioner' PR1: pr1Segment.12, ID: practitionerId_PR1_12 -%} + {% endif -%} + + {% if pr1Segment.23.1 -%} + {% evaluate Location_ID_PR1_23_1 using 'ID/Location' PL: pr1Segment.23.1 -%} + {% include 'Resource/PLLocation' PL_1: pr1Segment.23.1, ID: Location_ID_PR1_23_1-%} + {% else %} + {% if pr1Segment.23.2 %} + {% evaluate Location_ID_PR1_23_2 using 'ID/Location' PL: pr1Segment.23.2 -%} + {% include 'Resource/PLLocation' PL_2: pr1Segment.23.2, ID: Location_ID_PR1_23_2-%} + {% endif %} + {% endif %} + + {% if pr1Segment.25 -%} + {% evaluate Procedure_ID_PR1_25 using 'ID/Procedure' PR1: pr1Segment.25, baseId: fullPatientId -%} + {% include 'Resource/Procedure' PR1_25: pr1Segment.25, PV1: firstSegments.PV1, Procedure_Subject_ID: fullPatientId, ID: Procedure_ID_PR1_25 -%} + {% endif -%} + + {% evaluate procedureId using 'ID/Procedure' PR1: pr1Segment, baseId: patientId -%} + {% include 'Resource/Procedure' PR1: pr1Segment, PV1: firstSegments.PV1, Procedure_Subject_ID: fullPatientId, ID: procedureId -%} + {% endfor -%} + + {% for nk1Segment in nk1SegmentLists.NK1 -%} + {% evaluate relatedPersonId using 'ID/RelatedPerson' NK1: nk1Segment, baseId: patientId -%} + {% if nk1Segment.13 -%} + {% evaluate organizationId_NK1_13 using 'ID/Organization' XON: nk1Segment.13 -%} + {% include 'Resource/Organization' NK1: nk1Segment, ID: organizationId_NK1_13 -%} + {% assign Organization_NK1_13 = organizationId_NK1_13 | prepend: 'Organization/' -%} + {% include 'Reference/Patient/Contact_Organization' REF:Organization_NK1_13 , ID: patientId -%} + {% endif -%} + {% unless nk1Segment.3.1.Value == "EMR" or nk1Segment.3.1.Value == "CGV" or nk1Segment.7.1.Value == "E" or nk1Segment.7.1.Value =="F" or nk1Segment.7.1.Value == "I" or nk1Segment.7.1.Value =="S" -%} + {% include 'Resource/Patient' NK1: nk1Segment, ID: patientId -%} + {% include 'Resource/RelatedPerson' NK1: nk1Segment, RelatedPerson_Patient_ID: fullPatientId, ID: relatedPersonId, PID: firstSegments.PID -%} + {% include 'Extensions/RelatedPerson/RelatedPerson' ID: relatedPersonId, NK1: nk1Segment -%} + {% if nk1Segment.12.4.1 != "" and nk1Segment.12.4.1 != null and nk1Segment.12.4.2 != "" and nk1Segment.12.4.2 != null and nk1Segment.12.4.3 != "" and nk1Segment.12.4.3 != null -%} + {% evaluate Organization_ID_nk_CX_12 using 'ID/Organization' HDORG: nk1Segment.12.4 -%} + {% include 'Resource/Organization', NK1_12: nk1Segment.12, ID: Organization_ID_nk_CX_12 -%} + {% endif -%} + {% endunless -%} + {% if firstSegments.PID.21 -%} + {% include 'Resource/RelatedPerson' ID: relatedPersonId, PID: firstSegments.PID, RelatedPerson_Patient_ID: fullPatientId -%} + {% if firstSegments.PID.21.4.1 != "" and firstSegments.PID.21.4.1 != null and firstSegments.PID.21.4.2 != "" and firstSegments.PID.21.4.2 != null and firstSegments.PID.21.4.3 != "" and firstSegments.PID.21.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_21 using 'ID/Organization' HDORG: firstSegments.PID.21.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.21, ID: Organization_ID_pid_CX_21 -%} + {% endif -%} + {% endif -%} + + {% for nk33 in nk1Segment.33.Repeats -%} + {% if nk33.4.1 != "" and nk33.4.1 != null and nk33.4.2 != "" and nk33.4.2 != null and nk33.4.3 != "" and nk33.4.3 != null -%} + {% evaluate Organization_ID_nk_CX_33 using 'ID/Organization' HDORG: nk33.4 -%} + {% include 'Resource/Organization', NK1_33: nk33, ID: Organization_ID_nk_CX_33 -%} + {% endif -%} + {% endfor -%} + {% endfor -%} + + {% for db1Segment in db1SegmentLists.DB1 -%} + {% if db1Segment.2.1.Value == "PT" %} + {% for db in db1Segment.3.Repeats -%} + {% if db.4.1 != "" and db.4.1 != null and db.4.2 != "" and db.4.2 != null and db.4.3 != "" and db.4.3 != null -%} + {% evaluate Organization_ID_DB1_3 using 'ID/Organization' HDORG: db.4 -%} + {% include 'Resource/Organization', DB1: db.4, ID: Organization_ID_DB1_3 -%} + {% endif -%} + {% endfor %} + {% include 'Extensions/Patient/PatientExtension' ID: PatientId, DB1: db1Segment -%} + {% endif -%} + {% include 'Resource/Patient' DB1: db1Segment, ID: patientId -%} + {% endfor %} + + {% for obxSegment in obxSegmentLists.OBX -%} + {% for obx_16 in obxSegment.16.Repeats -%} + {% if obx_16.9.1 != "" and obx_16.9.1 != null and obx_16.9.2 != "" and obx_16.9.2 != null and obx_16.9.3 != "" and obx_16.9.3 != null -%} + {% evaluate Organization_ID_OBX_16 using 'ID/Organization' HDORG: obx_16.9 -%} + {% include 'Resource/Organization' OBX: obx_16.9, ID: Organization_ID_OBX_16 -%} + {% endif -%} + {% evaluate practitionerId_OBX_16 using 'ID/Practitioner' XCN: obx_16 -%} + {% include 'Resource/Practitioner' OBX: obxSegment, OBXXCN1: obx_16, ID: practitionerId_OBX_16 -%} + {% evaluate practitionerRoleId_OBX_16 using 'ID/PractitionerRole' XCN: obx_16 -%} + {% assign full_practitionerId_OBX_16 = practitionerId_OBX_16 | prepend: 'Practitioner/' %} + {% include 'Resource/PractitionerRole' OBXXCN1: obx_16, ID: practitionerRoleId_OBX_16 -%} + {% include 'Reference/PractitionerRole/Practitioner' REF: full_practitionerId_OBX_16, ID: practitionerRoleId_OBX_16 -%} + {% endfor %} + {% if obxSegment.18 -%} + {% evaluate deviceId_OBX_18 using 'ID/Device' EI: obxSegment.18.Repeats[0] -%} + {% include 'Resource/Device' EI_OBX18: obxSegment.18, ID: deviceId_OBX_18 -%} + {% endif -%} + {% if obxSegment.23 or obxSegment.25 %} + {% evaluate practitionerRoleId_OBX_25 using 'ID/PractitionerRole' XCN: obxSegment.25 -%} + {% endif %} + {% if obxSegment.25 -%} + {% evaluate practitionerId_OBX_25 using 'ID/Practitioner' XCN: obxSegment.25 -%} + {% include 'Resource/Practitioner' OBX: obxSegment, OBXXCN2: obxSegment.25, ID: practitionerId_OBX_25 -%} + {% assign full_practitionerId_OBX_25 = practitionerId_OBX_25 | prepend: 'Practitioner/' %} + {% include 'Resource/PractitionerRole' OBXXCN2: obxSegment.25, ID: practitionerRoleId_OBX_25 -%} + {% include 'Reference/PractitionerRole/Practitioner' REF: full_practitionerId_OBX_25, ID: practitionerRoleId_OBX_25 -%} + {% endif -%} + {% if obxSegment.23 -%} + {% evaluate organizationId_OBX_23 using 'ID/Organization' XON: obxSegment.23 -%} + {% include 'Resource/Organization' OBX_23: obxSegment.23, OBX_24: obxSegment.24, ID: organizationId_OBX_23 -%} + {% if obxSegment.25 -%} + {% assign full_organizationId_OBX_23 = organizationId_OBX_23 | prepend: 'Organization/' %} + {% include 'Reference/PractitionerRole/Organization' REF: full_organizationId_OBX_23, ID: practitionerRoleId_OBX_25 -%} + {% endif -%} + {% endif -%} + {% evaluate observationId using 'ID/Observation' OBX: obxSegment, baseId: patientId -%} + {% include 'Resource/Observation' OBX: obxSegment, Observation_Subject_ID: fullPatientId, ID: observationId -%} + {% include 'Extensions/Observation/ObservationExtension' OBX: obxSegment, ID: observationId %} + {% endfor -%} + + {% for al1Segment in al1SegmentLists.AL1 -%} + {% evaluate allergyIntoleranceId using 'ID/AllergyIntolerance' AL1: al1Segment, baseId: patientId -%} + {% include 'Resource/AllergyIntolerance' AL1: al1Segment, ID: allergyIntoleranceId, AllergyIntolerance_Patient_ID: fullPatientId -%} + {% endfor -%} + + {% for dg1Segment in dg1SegmentLists.DG1 -%} + {% if dg1Segment.16.Repeats[0] %} + {% if dg1Segment.16.Repeats[0].9.1 != "" and dg1Segment.16.Repeats[0].9.1 != null and dg1Segment.16.Repeats[0].9.2 != "" and dg1Segment.16.Repeats[0].9.2 != null and dg1Segment.16.Repeats[0].9.3 != "" and dg1Segment.16.Repeats[0].9.3 != null -%} + {% evaluate Organization_ID_DG1_16 using 'ID/Organization' HDORG: dg1Segment.16.Repeats[0].9 -%} + {% include 'Resource/Organization', DG1: dg1Segment.16.Repeats[0].9, ID: Organization_ID_DG1_16 -%} + {% endif -%} + {% evaluate practitionerId_DG1_16 using 'ID/Practitioner' XCN: dg1Segment.16.Repeats[0] -%} + {% include 'Resource/Practitioner' DG1: dg1Segment, ID: practitionerId_DG1_16 -%} + {% endif -%} + + {% evaluate conditionId using 'ID/Condition' DG1: dg1Segment, baseId: patientId -%} + {% include 'Resource/Condition' DG1: dg1Segment, Condition_Subject_ID: fullPatientId, baseId: patientId, ID: conditionId -%} + + {% if encounterId -%} + {% include 'Resource/Encounter' DG1: dg1Segment, conditionId: conditionId, ID: encounterId -%} + {% endif -%} + {% if EpisodeOfCare_ID %} + {% include 'Resource/EpisodeOfCare' DG1: dg1Segment, conditionId: conditionId, ID: EpisodeOfCare_ID -%} + {% endif %} + {% if dg1Segment.22 -%} + {% evaluate conditionId_DG1_22 using 'ID/Condition' DG1: dg1Segment.22, baseId: patientId -%} + {% include 'Resource/Condition' DG1_22: dg1Segment.22, Condition_Subject_ID_DG1_22: fullPatientId, ID: conditionId_DG1_22 -%} + {% endif -%} + {% include 'Extensions/Condition/ConditionExtension' DG1: dg1Segment, ID_DG1_22:conditionId_DG1_22, ID: conditionId %} + + {% endfor -%} + + {% for rf1Segment in rf1SegmentLists.RF1 -%} + {% if rf1Segment.19 -%} + {% evaluate Organization_ID_RF1_19 using 'ID/Organization' XON: rf1Segment.19 -%} + {% include 'Resource/Organization' RF1: rf1Segment.19, ID: Organization_ID_RF1_19 -%} + {% endif -%} + + {% if rf1Segment.20 -%} + {% if rf1Segment.20.9.1 != "" and rf1Segment.20.9.1 != null and rf1Segment.20.9.2 != "" and rf1Segment.20.9.2 != null and rf1Segment.20.9.3 != "" and rf1Segment.20.9.3 != null -%} + {% evaluate Organization_ID_RF1_20_9 using 'ID/Organization' HDORG: rf1Segment.20.9 -%} + {% include 'Resource/Organization', RF1_20: rf1Segment.20.9, ID: Organization_ID_RF1_20_9 -%} + {% endif -%} + {% evaluate Practitioner_ID_RF1_20 using 'ID/Practitioner' XCN: rf1Segment.20 -%} + {% include 'Resource/Practitioner' RF1: rf1Segment.20, ID: Practitioner_ID_RF1_20 -%} + {% endif -%} + + {% evaluate serviceRequestId using 'ID/ServiceRequest' RF1: rf1Segment, baseId: patientId -%} + {% include 'Resource/ServiceRequest' RF1: rf1Segment, ID: serviceRequestId, ServiceRequest_Subject_ID: fullPatientId -%} + {% endfor -%} + + {% for in1Segment in in1SegmentLists.IN1 -%} + + {% evaluate coverageId using 'ID/Coverage' CX: in1Segment -%} + {% include 'Resource/Coverage' IN1: in1Segment, ID: coverageId -%} + {% include 'Reference/Coverage/Beneficiary' ID: coverageId, REF: fullPatientId -%} + + {% for in1_49 in in1Segment.49.Repeats -%} + {% if in1_49.4.1 != "" and in1_49.4.1 != null and in1_49.4.2 != "" and in1_49.4.2 != null and in1_49.4.3 != "" and in1_49.4.3 != null -%} + {% evaluate Organization_ID_in1_CX_49 using 'ID/Organization' HDORG: in1_49.4 -%} + {% include 'Resource/Organization', IN1_49: in1_49, ID: Organization_ID_in1_CX_49 -%} + {% endif -%} + {% endfor -%} + + {% for in1_3 in in1Segment.3.Repeats -%} + {% if in1_3.4.1 != "" and in1_3.4.1 != null and in1_3.4.2 != "" and in1_3.4.2 != null and in1_3.4.3 != "" and in1_3.4.3 != null -%} + {% evaluate Organization_ID_in1_CX_3 using 'ID/Organization' HDORG: in1_3.4 -%} + {% include 'Resource/Organization', IN1_3: in1_3, ID: Organization_ID_in1_CX_3 -%} + {% endif -%} + {% endfor -%} + + {% for in1_10 in in1Segment.10.Repeats -%} + {% if in1_10.4.1 != "" and in1_10.4.1 != null and in1_10.4.2 != "" and in1_10.4.2 != null and in1_10.4.3 != "" and in1_10.4.3 != null -%} + {% evaluate Organization_ID_in1_CX_10 using 'ID/Organization' HDORG: in1_10.4 -%} + {% include 'Resource/Organization', IN1_10: in1_10, ID: Organization_ID_in1_CX_10 -%} + {% endif -%} + {% endfor -%} + + {% if in1Segment.4 -%} + {% evaluate Organization_ID_in1_4 using 'ID/Organization' XON: in1Segment.4 -%} + {% else -%} + {% evaluate Organization_ID_in1_4 using 'ID/Organization' CX: in1Segment -%} + {% endif -%} + {% if Organization_ID_in1_4 -%} + {% include 'Resource/Organization', IN1: in1Segment, ID: Organization_ID_in1_4 -%} + {% assign org_in1_4 = Organization_ID_in1_4 | prepend: 'Organization/' -%} + {% include 'Reference/Coverage/Payor' ID: coverageId, REF: org_in1_4 -%} + {% endif -%} + + {% if in1Segment.11 -%} + {% evaluate Organization_ID_in1_11 using 'ID/Organization' XON: in1Segment.11 -%} + {% else -%} + {% evaluate Organization_ID_in1_11 using 'ID/Organization' CX_IN1: in1Segment -%} + {% endif -%} + {% if Organization_ID_in1_11 -%} + {% include 'Resource/Organization', IN1_11: in1Segment, ID: Organization_ID_in1_11 -%} + {% assign org_in1_11 = Organization_ID_in1_11 | prepend: 'Organization/' -%} + {% include 'Reference/Coverage/PolicyHolder' ID: coverageId, REF: org_in1_11 -%} + {% endif -%} + + {% if in1Segment.17.1.Value == "SEL" -%} + {% include 'Resource/Patient' PID_IN1: firstSegments.PID, IN1: in1Segment, ID: patientId -%} + {% include 'Reference/Coverage/Subscriber' ID: coverageId, REF: fullPatientId -%} + {% endif -%} + {% unless in1Segment.17.1.Value == "SEL" or in1Segment.17.Value == "" -%} + {% evaluate in1relatedPersonId using 'ID/RelatedPerson' IN1: in1Segment, baseId: patientId -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: in1relatedPersonId, IN1: in1Segment -%} + {% assign rel_in1_17 = in1relatedPersonId | prepend: 'RelatedPerson/' -%} + {% include 'Reference/Coverage/Subscriber' ID: coverageId, REF: rel_in1_17 -%} + {% endunless -%} + + {% for in2Segment in in2SegmentLists.IN2 -%} + {% if in1Segment.17.1.Value == "SEL" -%} + {% include 'Resource/Patient' IN2: in2Segment, ID: patientId -%} + {% endif -%} + {% unless in1Segment.17.1.Value == "SEL" or in1Segment.17.Value == "" -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: in1relatedPersonId, IN2: in2Segment -%} + {% endunless -%} + + {% unless in1Segment.10 and in1Segment.11 -%} + {% if in2Segment.3 -%} + {% evaluate in2relatedPersonId using 'ID/RelatedPerson' IN2: in2Segment, baseId: patientId -%} + {% if in2Segment.3.9.1 != "" and in2Segment.3.9.1 != null and in2Segment.3.9.2 != "" and in2Segment.3.9.2 != null and in2Segment.3.9.3 != "" and in2Segment.3.9.3 != null -%} + {% evaluate Organization_ID_IN2_3_9 using 'ID/Organization' HDORG: in2Segment.3.9 -%} + {% include 'Resource/Organization', IN2_3: in2Segment.3.9, ID: Organization_ID_IN2_3_9 -%} + {% endif -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: in2relatedPersonId, IN2_3: in2Segment -%} + {% assign relatedperson_3 = in2relatedPersonId | prepend: 'RelatedPerson/' -%} + {% include 'Reference/Coverage/PolicyHolder' ID: coverageId, REF: relatedperson_3 -%} + {% endif -%} + {% endunless -%} + + {% if in1Segment.10 == null and in1Segment.11 == null and in2Segment.3 == null -%} + {% if in2Segment.70 -%} + {% evaluate organization_Id_IN2_70 using 'ID/Organization' XON: in2Segment.70 -%} + {% include 'Resource/Organization' IN2_70: in2Segment, ID: organization_Id_IN2_70 -%} + {% assign org_in2_70 = organization_Id_IN2_70 | prepend: 'Organization/' -%} + {% include 'Reference/Coverage/PolicyHolder' ID: coverageId, REF: org_in2_70 -%} + {% endif -%} + {% endif -%} + + {% if Organization_ID_in1_11 -%} + {% include 'Resource/Organization', IN2_49: in2Segment, ID: Organization_ID_in1_11 -%} + {% endif -%} + {% include 'Resource/Coverage' IN2: in2Segment, ID: coverageId -%} + {% include 'Resource/Patient' IN2_6: in2Segment, ID: patientId -%} + + {% for in2_1 in in2Segment.1.Repeats -%} + {% if in2_1.4.1 != "" and in2_1.4.1 != null and in2_1.4.2 != "" and in2_1.4.2 != null and in2_1.4.3 != "" and in2_1.4.3 != null -%} + {% evaluate Organization_ID_in2_CX_1 using 'ID/Organization' HDORG: in2_1.4 -%} + {% include 'Resource/Organization', IN2_1: in2_1, ID: Organization_ID_in2_CX_1 -%} + {% endif -%} + {% endfor -%} + {% if in2Segment.61 -%} + {% if in2Segment.61.4.1 != "" and in2Segment.61.4.1 != null and in2Segment.61.4.2 != "" and in2Segment.61.4.2 != null and in2Segment.61.4.3 != "" and in2Segment.61.4.3 != null -%} + {% evaluate Organization_ID_in2_CX_61 using 'ID/Organization' HDORG: in2Segment.61.4 -%} + {% include 'Resource/Organization', IN2_61: in2Segment.61, ID: Organization_ID_in2_CX_61 -%} + {% endif -%} + {% endif -%} + {% endfor -%} + + {% endfor -%} + + ] +} \ No newline at end of file diff --git a/data/Templates/Hl7v2/ADT_A15.liquid b/data/Templates/Hl7v2/ADT_A15.liquid new file mode 100644 index 000000000..cf3469775 --- /dev/null +++ b/data/Templates/Hl7v2/ADT_A15.liquid @@ -0,0 +1,318 @@ +{% assign firstSegments = hl7v2Data | get_first_segments: 'MSH|UAC|EVN|PID|PD1|PV1|PV2' -%} +{% assign sftSegmentLists = hl7v2Data | get_segment_lists: 'SFT' -%} +{% assign arvSegmentLists = hl7v2Data | get_segment_lists: 'ARV' -%} +{% assign rolSegmentLists = hl7v2Data | get_segment_lists: 'ROL' -%} +{% assign db1SegmentLists = hl7v2Data | get_segment_lists: 'DB1' -%} +{% assign obxSegmentLists = hl7v2Data | get_segment_lists: 'OBX' -%} +{% evaluate bundleID using 'ID/Bundle' Data: firstSegments.MSH.10 -%} +{ + "resourceType": "Bundle", + "type": "batch", + {% if firstSegments.MSH.7 -%} + "timestamp":"{{ firstSegments.MSH.7.Value | format_as_date_time }}", + {% endif -%} + "identifier": + { + "value":"{{ firstSegments.MSH.10.Value }}", + }, + "id":"{{ bundleID }}", + "entry": [ + {% evaluate patientId using 'ID/Patient' PID: firstSegments.PID, type: 'First' -%} + {% assign fullPatientId = patientId | prepend: 'Patient/' -%} + {% evaluate messageHeaderId using 'ID/MessageHeader' MSH: firstSegments.MSH -%} + + {% if firstSegments.MSH -%} + {% include 'Resource/MessageHeader' MSH: firstSegments.MSH, ID: messageHeaderId -%} + {% evaluate provenanceId using 'ID/Provenance' MSH: firstSegments.MSH, baseId: patientId -%} + {% include 'Resource/Provenance' Root_Template: 'ADT_A15', MSH: firstSegments.MSH, REF_BUNDLE: bundleID, ID: provenanceId -%} + + {%- comment -%} + {% assign transformation_val = 'provenance_transformation' %} + {% evaluate provenanceOrganizationId using 'ID/Organization', prov_id: firstSegments.MSH -%} + {% evaluate provenanceTransformationId using 'ID/Provenance_transformation' prov_id: transformation_val -%} + {% include 'Resource/Organization' org_name: 'Microsoft Corporation', ID: provenanceOrganizationId -%} + {% include 'Resource/Provenance_transformation' Root_Template: 'ADT_A15', Provenance_Organization_ID: provenanceOrganizationId, REF_MSH: messageHeaderId, provenanceOrganizationId, ID: provenanceTransformationId -%} + {%- endcomment -%} + {% if firstSegments.MSH.4 -%} + {% if firstSegments.MSH.4.1 != "" and firstSegments.MSH.4.1 != null or firstSegments.MSH.4.2 != "" and firstSegments.MSH.4.2 != null or firstSegments.MSH.4.3 != "" and firstSegments.MSH.4.3 != null -%} + {% evaluate organization_ID_MSH_4 using 'ID/Organization' HD: firstSegments.MSH.4 -%} + {% include 'Resource/Organization' MSHHD1: firstSegments.MSH.4, MSH: firstSegments.MSH, ID: organization_ID_MSH_4 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.6 %} + {% if firstSegments.MSH.6.1 != "" and firstSegments.MSH.6.1 != null or firstSegments.MSH.6.2 != "" and firstSegments.MSH.6.2 != null or firstSegments.MSH.6.3 != "" and firstSegments.MSH.6.3 != null -%} + {% evaluate organization_Id_MSH_6 using 'ID/Organization' HD: firstSegments.MSH.6 -%} + {% include 'Resource/Organization' MSHHD2: firstSegments.MSH.6, MSH: firstSegments.MSH, ID: organization_Id_MSH_6 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.22 %} + {% if firstSegments.MSH.22.1 != "" and firstSegments.MSH.22.1 != null -%} + {% evaluate organization_Id_MSH_22 using 'ID/Organization' XON: firstSegments.MSH.22 -%} + {% include 'Resource/Organization' MSHXON1: firstSegments.MSH.22, ID: organization_Id_MSH_22 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.23 %} + {% if firstSegments.MSH.23.1 != "" and firstSegments.MSH.23.1 != null -%} + {% evaluate organization_Id_MSH_23 using 'ID/Organization' XON: firstSegments.MSH.23 -%} + {% include 'Resource/Organization' MSHXON2: firstSegments.MSH.23, ID: organization_Id_MSH_23 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.3 and firstSegments.MSH.24 %} + {% evaluate device_Id_MSH_3 using 'ID/Device' HD: firstSegments.MSH.3 -%} + {% include 'Resource/Device' MSH: firstSegments.MSH, ID: device_Id_MSH_3 -%} + {% endif -%} + {% endif -%} + + {% for sftSegment in sftSegmentLists.SFT -%} + {% evaluate deviceId_SFT using 'ID/Device' SFT: sftSegment -%} + {% include 'Resource/Device' SFT:sftSegment, ID: deviceId_SFT -%} + {% include 'Resource/MessageHeader' MSH: firstSegments.MSH, SFT:sftSegment, ID: messageHeaderID -%} + {% endfor -%} + + {% include 'Resource/Patient' PID: firstSegments.PID, PD1: firstSegments.PD1, ID: patientId -%} + {% include 'Extensions/Patient/PatientExtension' ID: PatientId, PID: firstSegments.PID, PD1: firstSegments.PD1, PV1: firstSegments.PV1 -%} + + {% if firstSegments.PID.18 -%} + {% evaluate accountId using 'ID/Account' CX: firstSegments.PID.3 -%} + {% include 'Resource/Account' PID: firstSegments.PID, ID: accountId -%} + {% include 'Reference/Account/Subject' ID: accountId, REF: fullPatientId -%} + {% if firstSegments.PID.18.4.1 != "" and firstSegments.PID.18.4.1 != null and firstSegments.PID.18.4.2 != "" and firstSegments.PID.18.4.2 != null and firstSegments.PID.18.4.3 != "" and firstSegments.PID.18.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_18 using 'ID/Organization' HDORG: firstSegments.PID.18.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.18, ID: Organization_ID_pid_CX_18 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PID.2 -%} + {% if firstSegments.PID.2.4.1 != "" and firstSegments.PID.2.4.1 != null and firstSegments.PID.2.4.2 != "" and firstSegments.PID.2.4.2 != null and firstSegments.PID.2.4.3 != "" and firstSegments.PID.2.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_2 using 'ID/Organization' HDORG: firstSegments.PID.2.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.2, ID: Organization_ID_pid_CX_2 -%} + {% endif -%} + {% endif -%} + {% for pid3 in firstSegments.PID.3.Repeats -%} + {% if pid3.4.1 != "" and pid3.4.1 != null and pid3.4.2 != "" and pid3.4.2 != null and pid3.4.3 != "" and pid3.4.3 != null -%} + {% evaluate Organization_ID_pid_CX using 'ID/Organization' HDORG: pid3.4 -%} + {% include 'Resource/Organization', PID: pid3, ID: Organization_ID_pid_CX -%} + {% endif -%} + {% endfor -%} + {% if firstSegments.PID.4 -%} + {% if firstSegments.PID.4.4.1 != "" and firstSegments.PID.4.4.1 != null and firstSegments.PID.4.4.2 != "" and firstSegments.PID.4.4.2 != null and firstSegments.PID.4.4.3 != "" and firstSegments.PID.4.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_4 using 'ID/Organization' HDORG: firstSegments.PID.4.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.4, ID: Organization_ID_pid_CX_4 -%} + {% endif -%} + {% endif -%} + + {% unless nk1SegmentLists.NK1 -%} + {% if firstSegments.PID.21 -%} + {% if firstSegments.PID.21.4.1 != "" and firstSegments.PID.21.4.1 != null and firstSegments.PID.21.4.2 != "" and firstSegments.PID.21.4.2 != null and firstSegments.PID.21.4.3 != "" and firstSegments.PID.21.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_21 using 'ID/Organization' HDORG: firstSegments.PID.21.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.21, ID: Organization_ID_pid_CX_21 -%} + {% endif -%} + {% evaluate pidrelatedPersonId using 'ID/RelatedPerson' PID: firstSegments.PID, baseId: patientId -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: pidrelatedPersonId, PID: firstSegments.PID -%} + {% endif -%} + {% endunless -%} + + {% if firstSegments.PD1.3 -%} + {% evaluate Organization_ID_PD1_3 using 'ID/Organization' XON: firstSegments.PD1.3 -%} + {% include 'Resource/Organization' PD1: firstSegments.PD1, ID: Organization_ID_PD1_3 -%} + {% endif -%} + + {% if firstSegments.PD1.4 -%} + {% if firstSegments.PD1.4.9.1 != "" and firstSegments.PD1.4.9.1 != null and firstSegments.PD1.4.9.2 != "" and firstSegments.PD1.4.9.2 != null and firstSegments.PD1.4.9.3 != "" and firstSegments.PD1.4.9.3 != null -%} + {% evaluate Organization_ID_PD1_4_9 using 'ID/Organization' HDORG: firstSegments.PD1.4.9 -%} + {% include 'Resource/Organization', PD1_4: firstSegments.PD1.4.9, ID: Organization_ID_PD1_4_9 -%} + {% endif -%} + {% evaluate Practitioner_ID_PD1_4 using 'ID/Practitioner' XCN: firstSegments.PD1.4 -%} + {% include 'Resource/Practitioner' PD1: firstSegments.PD1.4, ID: Practitioner_ID_PD1_4 -%} + {% endif -%} + + {% if firstSegments.PV1 -%} + {% if firstSegments.PV1.5 -%} + {% if firstSegments.PV1.5.4.1 != "" and firstSegments.PV1.5.4.1 != null and firstSegments.PV1.5.4.2 != "" and firstSegments.PV1.5.4.2 != null and firstSegments.PV1.5.4.3 != "" and firstSegments.PV1.5.4.3 != null -%} + {% evaluate Organization_ID_PV1_5_4 using 'ID/Organization' HDORG: firstSegments.PV1.5.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.5.4, ID: Organization_ID_PV1_5_4 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PV1.19 -%} + {% if firstSegments.PV1.19.4.1 != "" and firstSegments.PV1.19.4.1 != null and firstSegments.PV1.19.4.2 != "" and firstSegments.PV1.19.4.2 != null and firstSegments.PV1.19.4.3 != "" and firstSegments.PV1.19.4.3 != null -%} + {% evaluate Organization_ID_PV1_19_4 using 'ID/Organization' HDORG: firstSegments.PV1.19.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.19.4, ID: Organization_ID_PV1_19_4 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PV1.7 -%} + {% if firstSegments.PV1.7.9.1 != "" and firstSegments.PV1.7.9.1 != null and firstSegments.PV1.7.9.2 != "" and firstSegments.PV1.7.9.2 != null and firstSegments.PV1.7.9.3 != "" and firstSegments.PV1.7.9.3 != null -%} + {% evaluate Organization_ID_PV1_7_9 using 'ID/Organization' HDORG: firstSegments.PV1.7.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.7.9, ID: Organization_ID_PV1_7_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_7 using 'ID/Practitioner' XCN: firstSegments.PV1.7 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.7, ID: practitionerId_PV1_7 -%} + {% endif -%} + + {% if firstSegments.PV1.8 -%} + {% if firstSegments.PV1.8.9.1 != "" and firstSegments.PV1.8.9.1 != null and firstSegments.PV1.8.9.2 != "" and firstSegments.PV1.8.9.2 != null and firstSegments.PV1.8.9.3 != "" and firstSegments.PV1.8.9.3 != null -%} + {% evaluate Organization_ID_PV1_8_9 using 'ID/Organization' HDORG: firstSegments.PV1.8.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.8.9, ID: Organization_ID_PV1_8_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_8 using 'ID/Practitioner' XCN: firstSegments.PV1.8 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.8, ID: practitionerId_PV1_8 -%} + {% endif -%} + + {% if firstSegments.PV1.9 -%} + {% if firstSegments.PV1.9.9.1 != "" and firstSegments.PV1.9.9.1 != null and firstSegments.PV1.9.9.2 != "" and firstSegments.PV1.9.9.2 != null and firstSegments.PV1.9.9.3 != "" and firstSegments.PV1.9.9.3 != null -%} + {% evaluate Organization_ID_PV1_9_9 using 'ID/Organization' HDORG: firstSegments.PV1.9.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.9.9, ID: Organization_ID_PV1_9_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_9 using 'ID/Practitioner' XCN: firstSegments.PV1.9 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.9, ID: practitionerId_PV1_9 -%} + {% endif -%} + + {% if firstSegments.PV1.17 -%} + {% if firstSegments.PV1.17.9.1 != "" and firstSegments.PV1.17.9.1 != null and firstSegments.PV1.17.9.2 != "" and firstSegments.PV1.17.9.2 != null and firstSegments.PV1.17.9.3 != "" and firstSegments.PV1.17.9.3 != null -%} + {% evaluate Organization_ID_PV1_17_9 using 'ID/Organization' HDORG: firstSegments.PV1.17.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.17.9, ID: Organization_ID_PV1_17_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_17 using 'ID/Practitioner' XCN: firstSegments.PV1.17 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.17, ID: practitionerId_PV1_17 -%} + {% endif -%} + + {% if firstSegments.PV1.50 -%} + {% for p in firstSegments.PV1.50.Repeats -%} + {% if p.4.1 != "" and p.4.1 != null and p.4.2 != "" and p.4.2 != null and p.4.3 != "" and p.4.3 != null -%} + {% evaluate Organization_ID_PV1_50_4 using 'ID/Organization' HDORG: p.4 -%} + {% include 'Resource/Organization', PV1: p.4, ID: Organization_ID_PV1_50_4 -%} + {% endif -%} + {% endfor -%} + {% endif -%} + + {% if firstSegments.PV1.52 -%} + {% if firstSegments.PV1.52.9.1 != "" and firstSegments.PV1.52.9.1 != null and firstSegments.PV1.52.9.2 != "" and firstSegments.PV1.52.9.2 != null and firstSegments.PV1.52.9.3 != "" and firstSegments.PV1.52.9.3 != null -%} + {% evaluate Organization_ID_PV1_52_9 using 'ID/Organization' HDORG: firstSegments.PV1.52.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.52.9, ID: Organization_ID_PV1_52_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_52 using 'ID/Practitioner' XCN: firstSegments.PV1.52 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.52, ID: practitionerId_PV1_52 -%} + {% endif -%} + + {% if firstSegments.PV2.13 -%} + {% if firstSegments.PV2.13.9.1 != "" and firstSegments.PV2.13.9.1 != null and firstSegments.PV2.13.9.2 != "" and firstSegments.PV2.13.9.2 != null and firstSegments.PV2.13.9.3 != "" and firstSegments.PV2.13.9.3 != null -%} + {% evaluate Organization_ID_PV2_13_9 using 'ID/Organization' HDORG: firstSegments.PV2.13.9 -%} + {% include 'Resource/Organization', PV2: firstSegments.PV2.13.9, ID: Organization_ID_PV2_13_9 -%} + {% endif -%} + {% evaluate practitionerId_PV2_13 using 'ID/Practitioner' XCN: firstSegments.PV2.13 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV2.13, ID: practitionerId_PV2_13 -%} + {% endif -%} + + {% if firstSegments.PV1.3 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.3-%} + {% endif -%} + + {% if firstSegments.PV1.6 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.6 -%} + {% endif -%} + + {% if firstSegments.PV1.37 -%} + {% evaluate location_ID_PV1_37 using 'ID/Location' DLD: firstSegments.PV1.37 -%} + {% include 'Resource/Location' PV1: firstSegments.PV1.37, ID: location_ID_PV1_37-%} + {% endif -%} + + {% if firstSegments.PV1.42 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.42-%} + {% endif -%} + + {% if firstSegments.PV1.43 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.43-%} + {% endif -%} + + {% if firstSegments.PV2.1 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV2.1-%} + {% endif -%} + + {% if firstSegments.PV1.54 -%} + {% if firstSegments.PV1.54.4.1 != "" and firstSegments.PV1.54.4.1 != null and firstSegments.PV1.54.4.2 != "" and firstSegments.PV1.54.4.2 != null and firstSegments.PV1.54.4.3 != "" and firstSegments.PV1.54.4.3 != null -%} + {% evaluate Organization_ID_PV1_54_4 using 'ID/Organization' HDORG: firstSegments.PV1.54.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.54.4, ID: Organization_ID_PV1_54_4 -%} + {% endif -%} + {% evaluate EpisodeOfCare_ID using 'ID/EpisodeOfCare' PV1: firstSegments.PV1.54 -%} + {% include 'Resource/EpisodeOfCare' PV1: firstSegments.PV1, ID: EpisodeOfCare_ID, patientRefrenceID: fullPatientId -%} + {% endif -%} + + {% evaluate encounterId using 'ID/Encounter' PV1: firstSegments.PV1, baseId: patientId -%} + {% include 'Resource/Encounter' Root_Template: 'ADT_A15', PV1: firstSegments.PV1, PV2: firstSegments.PV2, ID: encounterId -%} + {% include 'Reference/Encounter/Subject' ID: encounterId, REF: fullPatientId -%} + {% include 'Extensions/Encounter/EncounterExtension' ID: encounterId, PV1: firstSegments.PV1, PV2: firstSegments.PV2, -%} + {% endif -%} + + {% if firstSegments.EVN -%} + {% evaluate provenanceId using 'ID/Provenance' EVN: firstSegments.EVN, baseId: patientId -%} + {% include 'Resource/Provenance' EVN: firstSegments.EVN, EVNTEXT: firstSegments.MSH.9, REF_BUNDLE: bundleID, ID: provenanceId -%} + {% if firstSegments.EVN.5 -%} + {% if firstSegments.EVN.5.9.1 != "" and firstSegments.EVN.5.9.1 != null and firstSegments.EVN.5.9.2 != "" and firstSegments.EVN.5.9.2 != null and firstSegments.EVN.5.9.3 != "" and firstSegments.EVN.5.9.3 != null -%} + {% evaluate Organization_ID_EVN_5_9 using 'ID/Organization' HDORG: firstSegments.EVN.5.9 -%} + {% include 'Resource/Organization', EVN: firstSegments.EVN.5.9, ID: Organization_ID_EVN_5_9 -%} + {% endif -%} + {% evaluate practitionerId_EVN_5 using 'ID/Practitioner' XCN: firstSegments.EVN.5 -%} + {% include 'Resource/Practitioner' EVN: firstSegments.EVN.5, ID: practitionerId_EVN_5 -%} + {% if firstSegments.EVN.7 -%} + {% evaluate locationId_EVN_7 using 'ID/Location' HD: firstSegments.EVN.7 -%} + {% include 'Resource/Location' EVN: firstSegments.EVN.7, ID: locationId_EVN_7 -%} + {% endif -%} + {% endif -%} + {% endif -%} + + {% for obxSegment in obxSegmentLists.OBX -%} + {% for obx_16 in obxSegment.16.Repeats -%} + {% if obx_16.9.1 != "" and obx_16.9.1 != null and obx_16.9.2 != "" and obx_16.9.2 != null and obx_16.9.3 != "" and obx_16.9.3 != null -%} + {% evaluate Organization_ID_OBX_16 using 'ID/Organization' HDORG: obx_16.9 -%} + {% include 'Resource/Organization' OBX: obx_16.9, ID: Organization_ID_OBX_16 -%} + {% endif -%} + {% evaluate practitionerId_OBX_16 using 'ID/Practitioner' XCN: obx_16 -%} + {% include 'Resource/Practitioner' OBX: obxSegment, OBXXCN1: obx_16, ID: practitionerId_OBX_16 -%} + {% evaluate practitionerRoleId_OBX_16 using 'ID/PractitionerRole' XCN: obx_16 -%} + {% assign full_practitionerId_OBX_16 = practitionerId_OBX_16 | prepend: 'Practitioner/' %} + {% include 'Resource/PractitionerRole' OBXXCN1: obx_16, ID: practitionerRoleId_OBX_16 -%} + {% include 'Reference/PractitionerRole/Practitioner' REF: full_practitionerId_OBX_16, ID: practitionerRoleId_OBX_16 -%} + {% endfor %} + {% if obxSegment.18 -%} + {% evaluate deviceId_OBX_18 using 'ID/Device' EI: obxSegment.18.Repeats[0] -%} + {% include 'Resource/Device' EI_OBX18: obxSegment.18, ID: deviceId_OBX_18 -%} + {% endif -%} + {% if obxSegment.23 or obxSegment.25 %} + {% evaluate practitionerRoleId_OBX_25 using 'ID/PractitionerRole' XCN: obxSegment.25 -%} + {% endif %} + {% if obxSegment.25 -%} + {% evaluate practitionerId_OBX_25 using 'ID/Practitioner' XCN: obxSegment.25 -%} + {% include 'Resource/Practitioner' OBX: obxSegment, OBXXCN2: obxSegment.25, ID: practitionerId_OBX_25 -%} + {% assign full_practitionerId_OBX_25 = practitionerId_OBX_25 | prepend: 'Practitioner/' %} + {% include 'Resource/PractitionerRole' OBXXCN2: obxSegment.25, ID: practitionerRoleId_OBX_25 -%} + {% include 'Reference/PractitionerRole/Practitioner' REF: full_practitionerId_OBX_25, ID: practitionerRoleId_OBX_25 -%} + {% endif -%} + {% if obxSegment.23 -%} + {% evaluate organizationId_OBX_23 using 'ID/Organization' XON: obxSegment.23 -%} + {% include 'Resource/Organization' OBX_23: obxSegment.23, OBX_24: obxSegment.24, ID: organizationId_OBX_23 -%} + {% if obxSegment.25 -%} + {% assign full_organizationId_OBX_23 = organizationId_OBX_23 | prepend: 'Organization/' %} + {% include 'Reference/PractitionerRole/Organization' REF: full_organizationId_OBX_23, ID: practitionerRoleId_OBX_25 -%} + {% endif -%} + {% endif -%} + {% evaluate observationId using 'ID/Observation' OBX: obxSegment, baseId: patientId -%} + {% include 'Resource/Observation' OBX: obxSegment, Observation_Subject_ID: fullPatientId, ID: observationId -%} + {% include 'Extensions/Observation/ObservationExtension' OBX: obxSegment, ID: observationId %} + {% endfor -%} + + {% for db1Segment in db1SegmentLists.DB1 -%} + {% if db1Segment.2.1.Value == "PT" %} + {% for db in db1Segment.3.Repeats -%} + {% if db.4.1 != "" and db.4.1 != null and db.4.2 != "" and db.4.2 != null and db.4.3 != "" and db.4.3 != null -%} + {% evaluate Organization_ID_DB1_3 using 'ID/Organization' HDORG: db.4 -%} + {% include 'Resource/Organization', DB1: db.4, ID: Organization_ID_DB1_3 -%} + {% endif -%} + {% endfor %} + {% include 'Extensions/Patient/PatientExtension' ID: PatientId, DB1: db1Segment -%} + {% endif -%} + {% include 'Resource/Patient' DB1: db1Segment, ID: patientId -%} + {% endfor %} + + ] +} \ No newline at end of file diff --git a/data/Templates/Hl7v2/ADT_A16.liquid b/data/Templates/Hl7v2/ADT_A16.liquid new file mode 100644 index 000000000..275bf6b08 --- /dev/null +++ b/data/Templates/Hl7v2/ADT_A16.liquid @@ -0,0 +1,613 @@ +{% assign firstSegments = hl7v2Data | get_first_segments: 'MSH|UAC|EVN|PID|PD1|PV1|PV2|DRG|ACC' -%} +{% assign sftSegmentLists = hl7v2Data | get_segment_lists: 'SFT' -%} +{% assign arvSegmentLists = hl7v2Data | get_segment_lists: 'ARV' -%} +{% assign rolSegmentLists = hl7v2Data | get_segment_lists: 'ROL' -%} +{% assign nk1SegmentLists = hl7v2Data | get_segment_lists: 'NK1' -%} +{% assign db1SegmentLists = hl7v2Data | get_segment_lists: 'DB1' -%} +{% assign obxSegmentLists = hl7v2Data | get_segment_lists: 'OBX' -%} +{% assign al1SegmentLists = hl7v2Data | get_segment_lists: 'AL1' -%} +{% assign dg1SegmentLists = hl7v2Data | get_segment_lists: 'DG1' -%} +{% assign pr1SegmentLists = hl7v2Data | get_segment_lists: 'PR1' -%} +{% assign gt1SegmentLists = hl7v2Data | get_segment_lists: 'GT1' -%} +{% assign in1SegmentLists = hl7v2Data | get_segment_lists: 'IN1' -%} +{% assign in2SegmentLists = hl7v2Data | get_segment_lists: 'IN2' -%} +{% assign in3SegmentLists = hl7v2Data | get_segment_lists: 'IN3' -%} +{% assign autSegmentLists = hl7v2Data | get_segment_lists: 'AUT' -%} +{% assign rf1SegmentLists = hl7v2Data | get_segment_lists: 'RF1' -%} +{% evaluate bundleID using 'ID/Bundle' Data: firstSegments.MSH.10 -%} +{ + "resourceType": "Bundle", + "type": "batch", + {% if firstSegments.MSH.7 -%} + "timestamp":"{{ firstSegments.MSH.7.Value | format_as_date_time }}", + {% endif -%} + "identifier": + { + "value":"{{ firstSegments.MSH.10.Value }}", + }, + "id":"{{ bundleID }}", + "entry": [ + {% evaluate patientId using 'ID/Patient' PID: firstSegments.PID, type: 'First' -%} + {% assign fullPatientId = patientId | prepend: 'Patient/' -%} + {% evaluate messageHeaderId using 'ID/MessageHeader' MSH: firstSegments.MSH -%} + + {% if firstSegments.MSH -%} + {% include 'Resource/MessageHeader' MSH: firstSegments.MSH, ID: messageHeaderId -%} + {% evaluate provenanceId using 'ID/Provenance' MSH: firstSegments.MSH, baseId: patientId -%} + {% include 'Resource/Provenance' Root_Template: 'ADT_A16', MSH: firstSegments.MSH, REF_BUNDLE: bundleID, ID: provenanceId -%} + + {%- comment -%} + {% assign transformation_val = 'provenance_transformation' %} + {% evaluate provenanceOrganizationId using 'ID/Organization', prov_id: firstSegments.MSH -%} + {% evaluate provenanceTransformationId using 'ID/Provenance_transformation' prov_id: transformation_val -%} + {% include 'Resource/Organization' org_name: 'Microsoft Corporation', ID: provenanceOrganizationId -%} + {% include 'Resource/Provenance_transformation' Root_Template: 'ADT_A16', Provenance_Organization_ID: provenanceOrganizationId, REF_MSH: messageHeaderId, provenanceOrganizationId, ID: provenanceTransformationId -%} + {%- endcomment -%} + {% if firstSegments.MSH.4 -%} + {% if firstSegments.MSH.4.1 != "" and firstSegments.MSH.4.1 != null or firstSegments.MSH.4.2 != "" and firstSegments.MSH.4.2 != null or firstSegments.MSH.4.3 != "" and firstSegments.MSH.4.3 != null -%} + {% evaluate organization_ID_MSH_4 using 'ID/Organization' HD: firstSegments.MSH.4 -%} + {% include 'Resource/Organization' MSHHD1: firstSegments.MSH.4, MSH: firstSegments.MSH, ID: organization_ID_MSH_4 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.6 %} + {% if firstSegments.MSH.6.1 != "" and firstSegments.MSH.6.1 != null or firstSegments.MSH.6.2 != "" and firstSegments.MSH.6.2 != null or firstSegments.MSH.6.3 != "" and firstSegments.MSH.6.3 != null -%} + {% evaluate organization_Id_MSH_6 using 'ID/Organization' HD: firstSegments.MSH.6 -%} + {% include 'Resource/Organization' MSHHD2: firstSegments.MSH.6, MSH: firstSegments.MSH, ID: organization_Id_MSH_6 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.22 %} + {% if firstSegments.MSH.22.1 != "" and firstSegments.MSH.22.1 != null -%} + {% evaluate organization_Id_MSH_22 using 'ID/Organization' XON: firstSegments.MSH.22 -%} + {% include 'Resource/Organization' MSHXON1: firstSegments.MSH.22, ID: organization_Id_MSH_22 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.23 %} + {% if firstSegments.MSH.23.1 != "" and firstSegments.MSH.23.1 != null -%} + {% evaluate organization_Id_MSH_23 using 'ID/Organization' XON: firstSegments.MSH.23 -%} + {% include 'Resource/Organization' MSHXON2: firstSegments.MSH.23, ID: organization_Id_MSH_23 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.3 and firstSegments.MSH.24 %} + {% evaluate device_Id_MSH_3 using 'ID/Device' HD: firstSegments.MSH.3 -%} + {% include 'Resource/Device' MSH: firstSegments.MSH, ID: device_Id_MSH_3 -%} + {% endif -%} + {% endif -%} + + {% for sftSegment in sftSegmentLists.SFT -%} + {% evaluate deviceId_SFT using 'ID/Device' SFT: sftSegment -%} + {% include 'Resource/Device' SFT:sftSegment, ID: deviceId_SFT -%} + {% include 'Resource/MessageHeader' MSH: firstSegments.MSH, SFT:sftSegment, ID: messageHeaderID -%} + {% endfor -%} + + {% include 'Resource/Patient' PID: firstSegments.PID, PD1: firstSegments.PD1, ID: patientId -%} + {% include 'Extensions/Patient/PatientExtension' ID: PatientId, PID: firstSegments.PID, PD1: firstSegments.PD1, PV1: firstSegments.PV1 -%} + + {% if firstSegments.PID.18 -%} + {% evaluate accountId using 'ID/Account' CX: firstSegments.PID.3 -%} + {% include 'Resource/Account' PID: firstSegments.PID, ID: accountId -%} + {% include 'Reference/Account/Subject' ID: accountId, REF: fullPatientId -%} + {% if firstSegments.PID.18.4.1 != "" and firstSegments.PID.18.4.1 != null and firstSegments.PID.18.4.2 != "" and firstSegments.PID.18.4.2 != null and firstSegments.PID.18.4.3 != "" and firstSegments.PID.18.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_18 using 'ID/Organization' HDORG: firstSegments.PID.18.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.18, ID: Organization_ID_pid_CX_18 -%} + {% endif -%} + + {% for gt1SegmentLists in gt1SegmentLists.GT1 -%} + {% if gt1SegmentLists.11.1.Value == "SEL" -%} + {% include 'Resource/Patient' PID: firstSegments.PID, GT1: gt1SegmentLists, ID: patientId, NK1_PER: nk1SegmentLists.NK1[0] -%} + {% if gt1SegmentLists.2.4.1 != "" and gt1SegmentLists.2.4.1 != null and gt1SegmentLists.2.4.2 != "" and gt1SegmentLists.2.4.2 != null and gt1SegmentLists.2.4.3 != "" and gt1SegmentLists.2.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_2 using 'ID/Organization' HDORG: gt1SegmentLists.2.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.2, ID: Organization_ID_gt1_CX_2 -%} + {% endif -%} + {% if gt1SegmentLists.19.4.1 != "" and gt1SegmentLists.19.4.1 != null and gt1SegmentLists.19.4.2 != "" and gt1SegmentLists.19.4.2 != null and gt1SegmentLists.19.4.3 != "" and gt1SegmentLists.19.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_19 using 'ID/Organization' HDORG: gt1SegmentLists.19.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.19, ID: Organization_ID_gt1_CX_19 -%} + {% endif -%} + {% if gt1SegmentLists.29.4.1 != "" and gt1SegmentLists.29.4.1 != null and gt1SegmentLists.29.4.2 != "" and gt1SegmentLists.29.4.2 != null and gt1SegmentLists.29.4.3 != "" and gt1SegmentLists.29.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_29 using 'ID/Organization' HDORG: gt1SegmentLists.29.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.29, ID: Organization_ID_gt1_CX_29 -%} + {% endif -%} + {% if gt1SegmentLists.51 and nk1SegmentLists.NK1[0].7.1.Value == "E" -%} + {% evaluate Organization_ID_gt1_XON_51 using 'ID/Organization' XON: gt1SegmentLists.51 -%} + {% include 'Resource/Organization', GT1_51: gt1SegmentLists, ID: Organization_ID_gt1_XON_51 -%} + {% assign Organization_GT1_51 = Organization_ID_gt1_XON_51 | prepend: 'Organization/' -%} + {% include 'Reference/Patient/Contact_Organization' REF:Organization_GT1_51 , ID: patientId -%} + {% endif -%} + {% else -%} + {% evaluate gt1relatedPersonId using 'ID/RelatedPerson' GT1: gt1SegmentLists, baseId: patientId -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: gt1relatedPersonId, GT1: gt1SegmentLists -%} + {% if gt1SegmentLists.2.4.1 != "" and gt1SegmentLists.2.4.1 != null and gt1SegmentLists.2.4.2 != "" and gt1SegmentLists.2.4.2 != null and gt1SegmentLists.2.4.3 != "" and gt1SegmentLists.2.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_2 using 'ID/Organization' HDORG: gt1SegmentLists.2.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.2, ID: Organization_ID_gt1_CX_2 -%} + {% endif -%} + {% if gt1SegmentLists.19.4.1 != "" and gt1SegmentLists.19.4.1 != null and gt1SegmentLists.19.4.2 != "" and gt1SegmentLists.19.4.2 != null and gt1SegmentLists.19.4.3 != "" and gt1SegmentLists.19.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_19 using 'ID/Organization' HDORG: gt1SegmentLists.19.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.19, ID: Organization_ID_gt1_CX_19 -%} + {% endif -%} + {% endif -%} + {% if gt1SegmentLists.21 -%} + {% evaluate Organization_ID_gt1_XON_21 using 'ID/Organization' XON: gt1SegmentLists.21 -%} + {% include 'Resource/Organization', GT1: gt1SegmentLists, ID: Organization_ID_gt1_XON_21 -%} + {% if gt1SegmentLists.2.4.1 != "" and gt1SegmentLists.2.4.1 != null and gt1SegmentLists.2.4.2 != "" and gt1SegmentLists.2.4.2 != null and gt1SegmentLists.2.4.3 != "" and gt1SegmentLists.2.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_2 using 'ID/Organization' HDORG: gt1SegmentLists.2.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.2, ID: Organization_ID_gt1_CX_2 -%} + {% endif -%} + {% endif -%} + {% include 'Resource/Account' GT1: gt1SegmentLists, ID: accountId, REF_PATIENT: fullPatientId, REF_RELATED_PERSON: gt1relatedPersonId, REF_ORG: Organization_ID_gt1_XON_21 -%} + {% endfor -%} + {% endif -%} + + {% if firstSegments.PID.2 -%} + {% if firstSegments.PID.2.4.1 != "" and firstSegments.PID.2.4.1 != null and firstSegments.PID.2.4.2 != "" and firstSegments.PID.2.4.2 != null and firstSegments.PID.2.4.3 != "" and firstSegments.PID.2.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_2 using 'ID/Organization' HDORG: firstSegments.PID.2.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.2, ID: Organization_ID_pid_CX_2 -%} + {% endif -%} + {% endif -%} + {% for pid3 in firstSegments.PID.3.Repeats -%} + {% if pid3.4.1 != "" and pid3.4.1 != null and pid3.4.2 != "" and pid3.4.2 != null and pid3.4.3 != "" and pid3.4.3 != null -%} + {% evaluate Organization_ID_pid_CX using 'ID/Organization' HDORG: pid3.4 -%} + {% include 'Resource/Organization', PID: pid3, ID: Organization_ID_pid_CX -%} + {% endif -%} + {% endfor -%} + {% if firstSegments.PID.4 -%} + {% if firstSegments.PID.4.4.1 != "" and firstSegments.PID.4.4.1 != null and firstSegments.PID.4.4.2 != "" and firstSegments.PID.4.4.2 != null and firstSegments.PID.4.4.3 != "" and firstSegments.PID.4.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_4 using 'ID/Organization' HDORG: firstSegments.PID.4.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.4, ID: Organization_ID_pid_CX_4 -%} + {% endif -%} + {% endif -%} + + {% unless nk1SegmentLists.NK1 -%} + {% if firstSegments.PID.21 -%} + {% if firstSegments.PID.21.4.1 != "" and firstSegments.PID.21.4.1 != null and firstSegments.PID.21.4.2 != "" and firstSegments.PID.21.4.2 != null and firstSegments.PID.21.4.3 != "" and firstSegments.PID.21.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_21 using 'ID/Organization' HDORG: firstSegments.PID.21.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.21, ID: Organization_ID_pid_CX_21 -%} + {% endif -%} + {% evaluate pidrelatedPersonId using 'ID/RelatedPerson' PID: firstSegments.PID, baseId: patientId -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: pidrelatedPersonId, PID: firstSegments.PID -%} + {% endif -%} + {% endunless -%} + {% if firstSegments.PD1.3 -%} + {% evaluate Organization_ID_PD1_3 using 'ID/Organization' XON: firstSegments.PD1.3 -%} + {% include 'Resource/Organization' PD1: firstSegments.PD1, ID: Organization_ID_PD1_3 -%} + {% endif -%} + + {% if firstSegments.PD1.4 -%} + {% if firstSegments.PD1.4.9.1 != "" and firstSegments.PD1.4.9.1 != null and firstSegments.PD1.4.9.2 != "" and firstSegments.PD1.4.9.2 != null and firstSegments.PD1.4.9.3 != "" and firstSegments.PD1.4.9.3 != null -%} + {% evaluate Organization_ID_PD1_4_9 using 'ID/Organization' HDORG: firstSegments.PD1.4.9 -%} + {% include 'Resource/Organization', PD1_4: firstSegments.PD1.4.9, ID: Organization_ID_PD1_4_9 -%} + {% endif -%} + {% evaluate Practitioner_ID_PD1_4 using 'ID/Practitioner' XCN: firstSegments.PD1.4 -%} + {% include 'Resource/Practitioner' PD1: firstSegments.PD1.4, ID: Practitioner_ID_PD1_4 -%} + {% endif -%} + + {% if firstSegments.PV1 -%} + {% if firstSegments.PV1.5 -%} + {% if firstSegments.PV1.5.4.1 != "" and firstSegments.PV1.5.4.1 != null and firstSegments.PV1.5.4.2 != "" and firstSegments.PV1.5.4.2 != null and firstSegments.PV1.5.4.3 != "" and firstSegments.PV1.5.4.3 != null -%} + {% evaluate Organization_ID_PV1_5_4 using 'ID/Organization' HDORG: firstSegments.PV1.5.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.5.4, ID: Organization_ID_PV1_5_4 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PV1.19 -%} + {% if firstSegments.PV1.19.4.1 != "" and firstSegments.PV1.19.4.1 != null and firstSegments.PV1.19.4.2 != "" and firstSegments.PV1.19.4.2 != null and firstSegments.PV1.19.4.3 != "" and firstSegments.PV1.19.4.3 != null -%} + {% evaluate Organization_ID_PV1_19_4 using 'ID/Organization' HDORG: firstSegments.PV1.19.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.19.4, ID: Organization_ID_PV1_19_4 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PV1.7 -%} + {% if firstSegments.PV1.7.9.1 != "" and firstSegments.PV1.7.9.1 != null and firstSegments.PV1.7.9.2 != "" and firstSegments.PV1.7.9.2 != null and firstSegments.PV1.7.9.3 != "" and firstSegments.PV1.7.9.3 != null -%} + {% evaluate Organization_ID_PV1_7_9 using 'ID/Organization' HDORG: firstSegments.PV1.7.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.7.9, ID: Organization_ID_PV1_7_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_7 using 'ID/Practitioner' XCN: firstSegments.PV1.7 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.7, ID: practitionerId_PV1_7 -%} + {% endif -%} + + {% if firstSegments.PV1.8 -%} + {% if firstSegments.PV1.8.9.1 != "" and firstSegments.PV1.8.9.1 != null and firstSegments.PV1.8.9.2 != "" and firstSegments.PV1.8.9.2 != null and firstSegments.PV1.8.9.3 != "" and firstSegments.PV1.8.9.3 != null -%} + {% evaluate Organization_ID_PV1_8_9 using 'ID/Organization' HDORG: firstSegments.PV1.8.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.8.9, ID: Organization_ID_PV1_8_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_8 using 'ID/Practitioner' XCN: firstSegments.PV1.8 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.8, ID: practitionerId_PV1_8 -%} + {% endif -%} + + {% if firstSegments.PV1.9 -%} + {% if firstSegments.PV1.9.9.1 != "" and firstSegments.PV1.9.9.1 != null and firstSegments.PV1.9.9.2 != "" and firstSegments.PV1.9.9.2 != null and firstSegments.PV1.9.9.3 != "" and firstSegments.PV1.9.9.3 != null -%} + {% evaluate Organization_ID_PV1_9_9 using 'ID/Organization' HDORG: firstSegments.PV1.9.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.9.9, ID: Organization_ID_PV1_9_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_9 using 'ID/Practitioner' XCN: firstSegments.PV1.9 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.9, ID: practitionerId_PV1_9 -%} + {% endif -%} + + {% if firstSegments.PV1.17 -%} + {% if firstSegments.PV1.17.9.1 != "" and firstSegments.PV1.17.9.1 != null and firstSegments.PV1.17.9.2 != "" and firstSegments.PV1.17.9.2 != null and firstSegments.PV1.17.9.3 != "" and firstSegments.PV1.17.9.3 != null -%} + {% evaluate Organization_ID_PV1_17_9 using 'ID/Organization' HDORG: firstSegments.PV1.17.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.17.9, ID: Organization_ID_PV1_17_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_17 using 'ID/Practitioner' XCN: firstSegments.PV1.17 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.17, ID: practitionerId_PV1_17 -%} + {% endif -%} + + {% if firstSegments.PV1.50 -%} + {% for p in firstSegments.PV1.50.Repeats -%} + {% if p.4.1 != "" and p.4.1 != null and p.4.2 != "" and p.4.2 != null and p.4.3 != "" and p.4.3 != null -%} + {% evaluate Organization_ID_PV1_50_4 using 'ID/Organization' HDORG: p.4 -%} + {% include 'Resource/Organization', PV1: p.4, ID: Organization_ID_PV1_50_4 -%} + {% endif -%} + {% endfor -%} + {% endif -%} + + {% if firstSegments.PV1.52 -%} + {% if firstSegments.PV1.52.9.1 != "" and firstSegments.PV1.52.9.1 != null and firstSegments.PV1.52.9.2 != "" and firstSegments.PV1.52.9.2 != null and firstSegments.PV1.52.9.3 != "" and firstSegments.PV1.52.9.3 != null -%} + {% evaluate Organization_ID_PV1_52_9 using 'ID/Organization' HDORG: firstSegments.PV1.52.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.52.9, ID: Organization_ID_PV1_52_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_52 using 'ID/Practitioner' XCN: firstSegments.PV1.52 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.52, ID: practitionerId_PV1_52 -%} + {% endif -%} + + {% if firstSegments.PV2.13 -%} + {% if firstSegments.PV2.13.9.1 != "" and firstSegments.PV2.13.9.1 != null and firstSegments.PV2.13.9.2 != "" and firstSegments.PV2.13.9.2 != null and firstSegments.PV2.13.9.3 != "" and firstSegments.PV2.13.9.3 != null -%} + {% evaluate Organization_ID_PV2_13_9 using 'ID/Organization' HDORG: firstSegments.PV2.13.9 -%} + {% include 'Resource/Organization', PV2: firstSegments.PV2.13.9, ID: Organization_ID_PV2_13_9 -%} + {% endif -%} + {% evaluate practitionerId_PV2_13 using 'ID/Practitioner' XCN: firstSegments.PV2.13 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV2.13, ID: practitionerId_PV2_13 -%} + {% endif -%} + + {% if firstSegments.PV1.3 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.3-%} + {% endif -%} + + {% if firstSegments.PV1.6 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.6 -%} + {% endif -%} + + {% if firstSegments.PV1.37 -%} + {% evaluate location_ID_PV1_37 using 'ID/Location' DLD: firstSegments.PV1.37 -%} + {% include 'Resource/Location' PV1: firstSegments.PV1.37, ID: location_ID_PV1_37-%} + {% endif -%} + + {% if firstSegments.PV1.42 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.42-%} + {% endif -%} + + {% if firstSegments.PV1.43 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.43-%} + {% endif -%} + + {% if firstSegments.PV2.1 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV2.1-%} + {% endif -%} + + {% if firstSegments.PV1.54 -%} + {% if firstSegments.PV1.54.4.1 != "" and firstSegments.PV1.54.4.1 != null and firstSegments.PV1.54.4.2 != "" and firstSegments.PV1.54.4.2 != null and firstSegments.PV1.54.4.3 != "" and firstSegments.PV1.54.4.3 != null -%} + {% evaluate Organization_ID_PV1_54_4 using 'ID/Organization' HDORG: firstSegments.PV1.54.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.54.4, ID: Organization_ID_PV1_54_4 -%} + {% endif -%} + {% evaluate EpisodeOfCare_ID using 'ID/EpisodeOfCare' PV1: firstSegments.PV1.54 -%} + {% include 'Resource/EpisodeOfCare' PV1: firstSegments.PV1, ID: EpisodeOfCare_ID, patientRefrenceID: fullPatientId -%} + {% endif -%} + + {% evaluate encounterId using 'ID/Encounter' PV1: firstSegments.PV1, baseId: patientId -%} + {% include 'Resource/Encounter' Root_Template: 'ADT_A16', PV1: firstSegments.PV1, PV2: firstSegments.PV2, ID: encounterId -%} + {% include 'Reference/Encounter/Subject' ID: encounterId, REF: fullPatientId -%} + {% include 'Extensions/Encounter/EncounterExtension' ID: encounterId, PV1: firstSegments.PV1, PV2: firstSegments.PV2, -%} + {% endif -%} + + {% if firstSegments.EVN -%} + {% evaluate provenanceId using 'ID/Provenance' EVN: firstSegments.EVN, baseId: patientId -%} + {% include 'Resource/Provenance' EVN: firstSegments.EVN, EVNTEXT: firstSegments.MSH.9, REF_BUNDLE: bundleID, ID: provenanceId -%} + {% if firstSegments.EVN.5 -%} + {% if firstSegments.EVN.5.9.1 != "" and firstSegments.EVN.5.9.1 != null and firstSegments.EVN.5.9.2 != "" and firstSegments.EVN.5.9.2 != null and firstSegments.EVN.5.9.3 != "" and firstSegments.EVN.5.9.3 != null -%} + {% evaluate Organization_ID_EVN_5_9 using 'ID/Organization' HDORG: firstSegments.EVN.5.9 -%} + {% include 'Resource/Organization', EVN: firstSegments.EVN.5.9, ID: Organization_ID_EVN_5_9 -%} + {% endif -%} + {% evaluate practitionerId_EVN_5 using 'ID/Practitioner' XCN: firstSegments.EVN.5 -%} + {% include 'Resource/Practitioner' EVN: firstSegments.EVN.5, ID: practitionerId_EVN_5 -%} + {% if firstSegments.EVN.7 -%} + {% evaluate locationId_EVN_7 using 'ID/Location' HD: firstSegments.EVN.7 -%} + {% include 'Resource/Location' EVN: firstSegments.EVN.7, ID: locationId_EVN_7 -%} + {% endif -%} + {% endif -%} + {% endif -%} + + {% for pr1Segment in pr1SegmentLists.PR1 -%} + {% if pr1Segment.8 -%} + {% if pr1Segment.8.9.1 != "" and pr1Segment.8.9.1 != null and pr1Segment.8.9.2 != "" and pr1Segment.8.9.2 != null and pr1Segment.8.9.3 != "" and pr1Segment.8.9.3 != null -%} + {% evaluate Organization_ID_PR1_8 using 'ID/Organization' HDORG: pr1Segment.8.9 -%} + {% include 'Resource/Organization', PR1: pr1Segment.8.9, ID: Organization_ID_PR1_8 -%} + {% endif -%} + {% evaluate practitionerId_PR1_8 using 'ID/Practitioner' XCN: pr1Segment.8 -%} + {% include 'Resource/Practitioner' PR1: pr1Segment.8, ID: practitionerId_PR1_8 -%} + {% endif -%} + + {% if pr1Segment.11 -%} + {% if pr1Segment.11.9.1 != "" and pr1Segment.11.9.1 != null and pr1Segment.11.9.2 != "" and pr1Segment.11.9.2 != null and pr1Segment.11.9.3 != "" and pr1Segment.11.9.3 != null -%} + {% evaluate Organization_ID_PR1_11 using 'ID/Organization' HDORG: pr1Segment.11.9 -%} + {% include 'Resource/Organization', PR1: pr1Segment.11.9, ID: Organization_ID_PR1_11 -%} + {% endif -%} + {% evaluate practitionerId_PR1_11 using 'ID/Practitioner' XCN: pr1Segment.11 -%} + {% include 'Resource/Practitioner' PR1: pr1Segment.11, ID: practitionerId_PR1_11 -%} + {% endif -%} + + {% if pr1Segment.12 -%} + {% if pr1Segment.12.9.1 != "" and pr1Segment.12.9.1 != null and pr1Segment.12.9.2 != "" and pr1Segment.12.9.2 != null and pr1Segment.12.9.3 != "" and pr1Segment.12.9.3 != null -%} + {% evaluate Organization_ID_PR1_12 using 'ID/Organization' HDORG: pr1Segment.12.9 -%} + {% include 'Resource/Organization', PR1: pr1Segment.12.9, ID: Organization_ID_PR1_12 -%} + {% endif -%} + {% evaluate practitionerId_PR1_12 using 'ID/Practitioner' XCN: pr1Segment.12 -%} + {% include 'Resource/Practitioner' PR1: pr1Segment.12, ID: practitionerId_PR1_12 -%} + {% endif -%} + + {% if pr1Segment.23.1 -%} + {% evaluate Location_ID_PR1_23_1 using 'ID/Location' PL: pr1Segment.23.1 -%} + {% include 'Resource/PLLocation' PL_1: pr1Segment.23.1, ID: Location_ID_PR1_23_1-%} + {% else %} + {% if pr1Segment.23.2 %} + {% evaluate Location_ID_PR1_23_2 using 'ID/Location' PL: pr1Segment.23.2 -%} + {% include 'Resource/PLLocation' PL_2: pr1Segment.23.2, ID: Location_ID_PR1_23_2-%} + {% endif %} + {% endif %} + + {% if pr1Segment.25 -%} + {% evaluate Procedure_ID_PR1_25 using 'ID/Procedure' PR1: pr1Segment.25, baseId: fullPatientId -%} + {% include 'Resource/Procedure' PR1_25: pr1Segment.25, PV1: firstSegments.PV1, Procedure_Subject_ID: fullPatientId, ID: Procedure_ID_PR1_25 -%} + {% endif -%} + + {% evaluate procedureId using 'ID/Procedure' PR1: pr1Segment, baseId: patientId -%} + {% include 'Resource/Procedure' PR1: pr1Segment, PV1: firstSegments.PV1, Procedure_Subject_ID: fullPatientId, ID: procedureId -%} + {% endfor -%} + + {% for nk1Segment in nk1SegmentLists.NK1 -%} + {% evaluate relatedPersonId using 'ID/RelatedPerson' NK1: nk1Segment, baseId: patientId -%} + {% if nk1Segment.13 -%} + {% evaluate organizationId_NK1_13 using 'ID/Organization' XON: nk1Segment.13 -%} + {% include 'Resource/Organization' NK1: nk1Segment, ID: organizationId_NK1_13 -%} + {% assign Organization_NK1_13 = organizationId_NK1_13 | prepend: 'Organization/' -%} + {% include 'Reference/Patient/Contact_Organization' REF:Organization_NK1_13 , ID: patientId -%} + {% endif -%} + {% unless nk1Segment.3.1.Value == "EMR" or nk1Segment.3.1.Value == "CGV" or nk1Segment.7.1.Value == "E" or nk1Segment.7.1.Value =="F" or nk1Segment.7.1.Value == "I" or nk1Segment.7.1.Value =="S" -%} + {% include 'Resource/Patient' NK1: nk1Segment, ID: patientId -%} + {% include 'Resource/RelatedPerson' NK1: nk1Segment, RelatedPerson_Patient_ID: fullPatientId, ID: relatedPersonId, PID: firstSegments.PID -%} + {% include 'Extensions/RelatedPerson/RelatedPerson' ID: relatedPersonId, NK1: nk1Segment -%} + {% if nk1Segment.12.4.1 != "" and nk1Segment.12.4.1 != null and nk1Segment.12.4.2 != "" and nk1Segment.12.4.2 != null and nk1Segment.12.4.3 != "" and nk1Segment.12.4.3 != null -%} + {% evaluate Organization_ID_nk_CX_12 using 'ID/Organization' HDORG: nk1Segment.12.4 -%} + {% include 'Resource/Organization', NK1_12: nk1Segment.12, ID: Organization_ID_nk_CX_12 -%} + {% endif -%} + {% endunless -%} + {% if firstSegments.PID.21 -%} + {% include 'Resource/RelatedPerson' ID: relatedPersonId, PID: firstSegments.PID, RelatedPerson_Patient_ID: fullPatientId -%} + {% if firstSegments.PID.21.4.1 != "" and firstSegments.PID.21.4.1 != null and firstSegments.PID.21.4.2 != "" and firstSegments.PID.21.4.2 != null and firstSegments.PID.21.4.3 != "" and firstSegments.PID.21.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_21 using 'ID/Organization' HDORG: firstSegments.PID.21.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.21, ID: Organization_ID_pid_CX_21 -%} + {% endif -%} + {% endif -%} + + {% for nk33 in nk1Segment.33.Repeats -%} + {% if nk33.4.1 != "" and nk33.4.1 != null and nk33.4.2 != "" and nk33.4.2 != null and nk33.4.3 != "" and nk33.4.3 != null -%} + {% evaluate Organization_ID_nk_CX_33 using 'ID/Organization' HDORG: nk33.4 -%} + {% include 'Resource/Organization', NK1_33: nk33, ID: Organization_ID_nk_CX_33 -%} + {% endif -%} + {% endfor -%} + {% endfor -%} + + {% for db1Segment in db1SegmentLists.DB1 -%} + {% if db1Segment.2.1.Value == "PT" %} + {% for db in db1Segment.3.Repeats -%} + {% if db.4.1 != "" and db.4.1 != null and db.4.2 != "" and db.4.2 != null and db.4.3 != "" and db.4.3 != null -%} + {% evaluate Organization_ID_DB1_3 using 'ID/Organization' HDORG: db.4 -%} + {% include 'Resource/Organization', DB1: db.4, ID: Organization_ID_DB1_3 -%} + {% endif -%} + {% endfor %} + {% include 'Extensions/Patient/PatientExtension' ID: PatientId, DB1: db1Segment -%} + {% endif -%} + {% include 'Resource/Patient' DB1: db1Segment, ID: patientId -%} + {% endfor %} + + {% for obxSegment in obxSegmentLists.OBX -%} + {% for obx_16 in obxSegment.16.Repeats -%} + {% if obx_16.9.1 != "" and obx_16.9.1 != null and obx_16.9.2 != "" and obx_16.9.2 != null and obx_16.9.3 != "" and obx_16.9.3 != null -%} + {% evaluate Organization_ID_OBX_16 using 'ID/Organization' HDORG: obx_16.9 -%} + {% include 'Resource/Organization' OBX: obx_16.9, ID: Organization_ID_OBX_16 -%} + {% endif -%} + {% evaluate practitionerId_OBX_16 using 'ID/Practitioner' XCN: obx_16 -%} + {% include 'Resource/Practitioner' OBX: obxSegment, OBXXCN1: obx_16, ID: practitionerId_OBX_16 -%} + {% evaluate practitionerRoleId_OBX_16 using 'ID/PractitionerRole' XCN: obx_16 -%} + {% assign full_practitionerId_OBX_16 = practitionerId_OBX_16 | prepend: 'Practitioner/' %} + {% include 'Resource/PractitionerRole' OBXXCN1: obx_16, ID: practitionerRoleId_OBX_16 -%} + {% include 'Reference/PractitionerRole/Practitioner' REF: full_practitionerId_OBX_16, ID: practitionerRoleId_OBX_16 -%} + {% endfor %} + {% if obxSegment.18 -%} + {% evaluate deviceId_OBX_18 using 'ID/Device' EI: obxSegment.18.Repeats[0] -%} + {% include 'Resource/Device' EI_OBX18: obxSegment.18, ID: deviceId_OBX_18 -%} + {% endif -%} + {% if obxSegment.23 or obxSegment.25 %} + {% evaluate practitionerRoleId_OBX_25 using 'ID/PractitionerRole' XCN: obxSegment.25 -%} + {% endif %} + {% if obxSegment.25 -%} + {% evaluate practitionerId_OBX_25 using 'ID/Practitioner' XCN: obxSegment.25 -%} + {% include 'Resource/Practitioner' OBX: obxSegment, OBXXCN2: obxSegment.25, ID: practitionerId_OBX_25 -%} + {% assign full_practitionerId_OBX_25 = practitionerId_OBX_25 | prepend: 'Practitioner/' %} + {% include 'Resource/PractitionerRole' OBXXCN2: obxSegment.25, ID: practitionerRoleId_OBX_25 -%} + {% include 'Reference/PractitionerRole/Practitioner' REF: full_practitionerId_OBX_25, ID: practitionerRoleId_OBX_25 -%} + {% endif -%} + {% if obxSegment.23 -%} + {% evaluate organizationId_OBX_23 using 'ID/Organization' XON: obxSegment.23 -%} + {% include 'Resource/Organization' OBX_23: obxSegment.23, OBX_24: obxSegment.24, ID: organizationId_OBX_23 -%} + {% if obxSegment.25 -%} + {% assign full_organizationId_OBX_23 = organizationId_OBX_23 | prepend: 'Organization/' %} + {% include 'Reference/PractitionerRole/Organization' REF: full_organizationId_OBX_23, ID: practitionerRoleId_OBX_25 -%} + {% endif -%} + {% endif -%} + {% evaluate observationId using 'ID/Observation' OBX: obxSegment, baseId: patientId -%} + {% include 'Resource/Observation' OBX: obxSegment, Observation_Subject_ID: fullPatientId, ID: observationId -%} + {% include 'Extensions/Observation/ObservationExtension' OBX: obxSegment, ID: observationId %} + {% endfor -%} + + {% for al1Segment in al1SegmentLists.AL1 -%} + {% evaluate allergyIntoleranceId using 'ID/AllergyIntolerance' AL1: al1Segment, baseId: patientId -%} + {% include 'Resource/AllergyIntolerance' AL1: al1Segment, ID: allergyIntoleranceId, AllergyIntolerance_Patient_ID: fullPatientId -%} + {% endfor -%} + + {% for dg1Segment in dg1SegmentLists.DG1 -%} + {% if dg1Segment.16.Repeats[0] %} + {% if dg1Segment.16.Repeats[0].9.1 != "" and dg1Segment.16.Repeats[0].9.1 != null and dg1Segment.16.Repeats[0].9.2 != "" and dg1Segment.16.Repeats[0].9.2 != null and dg1Segment.16.Repeats[0].9.3 != "" and dg1Segment.16.Repeats[0].9.3 != null -%} + {% evaluate Organization_ID_DG1_16 using 'ID/Organization' HDORG: dg1Segment.16.Repeats[0].9 -%} + {% include 'Resource/Organization', DG1: dg1Segment.16.Repeats[0].9, ID: Organization_ID_DG1_16 -%} + {% endif -%} + {% evaluate practitionerId_DG1_16 using 'ID/Practitioner' XCN: dg1Segment.16.Repeats[0] -%} + {% include 'Resource/Practitioner' DG1: dg1Segment, ID: practitionerId_DG1_16 -%} + {% endif -%} + + {% evaluate conditionId using 'ID/Condition' DG1: dg1Segment, baseId: patientId -%} + {% include 'Resource/Condition' DG1: dg1Segment, Condition_Subject_ID: fullPatientId, baseId: patientId, ID: conditionId -%} + + {% if encounterId -%} + {% include 'Resource/Encounter' DG1: dg1Segment, conditionId: conditionId, ID: encounterId -%} + {% endif -%} + {% if EpisodeOfCare_ID %} + {% include 'Resource/EpisodeOfCare' DG1: dg1Segment, conditionId: conditionId, ID: EpisodeOfCare_ID -%} + {% endif %} + {% if dg1Segment.22 -%} + {% evaluate conditionId_DG1_22 using 'ID/Condition' DG1: dg1Segment.22, baseId: patientId -%} + {% include 'Resource/Condition' DG1_22: dg1Segment.22, Condition_Subject_ID_DG1_22: fullPatientId, ID: conditionId_DG1_22 -%} + {% endif -%} + {% include 'Extensions/Condition/ConditionExtension' DG1: dg1Segment, ID_DG1_22:conditionId_DG1_22, ID: conditionId %} + + {% endfor -%} + + {% for rf1Segment in rf1SegmentLists.RF1 -%} + {% if rf1Segment.19 -%} + {% evaluate Organization_ID_RF1_19 using 'ID/Organization' XON: rf1Segment.19 -%} + {% include 'Resource/Organization' RF1: rf1Segment.19, ID: Organization_ID_RF1_19 -%} + {% endif -%} + + {% if rf1Segment.20 -%} + {% if rf1Segment.20.9.1 != "" and rf1Segment.20.9.1 != null and rf1Segment.20.9.2 != "" and rf1Segment.20.9.2 != null and rf1Segment.20.9.3 != "" and rf1Segment.20.9.3 != null -%} + {% evaluate Organization_ID_RF1_20_9 using 'ID/Organization' HDORG: rf1Segment.20.9 -%} + {% include 'Resource/Organization', RF1_20: rf1Segment.20.9, ID: Organization_ID_RF1_20_9 -%} + {% endif -%} + {% evaluate Practitioner_ID_RF1_20 using 'ID/Practitioner' XCN: rf1Segment.20 -%} + {% include 'Resource/Practitioner' RF1: rf1Segment.20, ID: Practitioner_ID_RF1_20 -%} + {% endif -%} + + {% evaluate serviceRequestId using 'ID/ServiceRequest' RF1: rf1Segment, baseId: patientId -%} + {% include 'Resource/ServiceRequest' RF1: rf1Segment, ID: serviceRequestId, ServiceRequest_Subject_ID: fullPatientId -%} + {% endfor -%} + + {% for in1Segment in in1SegmentLists.IN1 -%} + + {% evaluate coverageId using 'ID/Coverage' CX: in1Segment -%} + {% include 'Resource/Coverage' IN1: in1Segment, ID: coverageId -%} + {% include 'Reference/Coverage/Beneficiary' ID: coverageId, REF: fullPatientId -%} + + {% for in1_49 in in1Segment.49.Repeats -%} + {% if in1_49.4.1 != "" and in1_49.4.1 != null and in1_49.4.2 != "" and in1_49.4.2 != null and in1_49.4.3 != "" and in1_49.4.3 != null -%} + {% evaluate Organization_ID_in1_CX_49 using 'ID/Organization' HDORG: in1_49.4 -%} + {% include 'Resource/Organization', IN1_49: in1_49, ID: Organization_ID_in1_CX_49 -%} + {% endif -%} + {% endfor -%} + + {% for in1_3 in in1Segment.3.Repeats -%} + {% if in1_3.4.1 != "" and in1_3.4.1 != null and in1_3.4.2 != "" and in1_3.4.2 != null and in1_3.4.3 != "" and in1_3.4.3 != null -%} + {% evaluate Organization_ID_in1_CX_3 using 'ID/Organization' HDORG: in1_3.4 -%} + {% include 'Resource/Organization', IN1_3: in1_3, ID: Organization_ID_in1_CX_3 -%} + {% endif -%} + {% endfor -%} + + {% for in1_10 in in1Segment.10.Repeats -%} + {% if in1_10.4.1 != "" and in1_10.4.1 != null and in1_10.4.2 != "" and in1_10.4.2 != null and in1_10.4.3 != "" and in1_10.4.3 != null -%} + {% evaluate Organization_ID_in1_CX_10 using 'ID/Organization' HDORG: in1_10.4 -%} + {% include 'Resource/Organization', IN1_10: in1_10, ID: Organization_ID_in1_CX_10 -%} + {% endif -%} + {% endfor -%} + + {% if in1Segment.4 -%} + {% evaluate Organization_ID_in1_4 using 'ID/Organization' XON: in1Segment.4 -%} + {% else -%} + {% evaluate Organization_ID_in1_4 using 'ID/Organization' CX: in1Segment -%} + {% endif -%} + {% if Organization_ID_in1_4 -%} + {% include 'Resource/Organization', IN1: in1Segment, ID: Organization_ID_in1_4 -%} + {% assign org_in1_4 = Organization_ID_in1_4 | prepend: 'Organization/' -%} + {% include 'Reference/Coverage/Payor' ID: coverageId, REF: org_in1_4 -%} + {% endif -%} + + {% if in1Segment.11 -%} + {% evaluate Organization_ID_in1_11 using 'ID/Organization' XON: in1Segment.11 -%} + {% else -%} + {% evaluate Organization_ID_in1_11 using 'ID/Organization' CX_IN1: in1Segment -%} + {% endif -%} + {% if Organization_ID_in1_11 -%} + {% include 'Resource/Organization', IN1_11: in1Segment, ID: Organization_ID_in1_11 -%} + {% assign org_in1_11 = Organization_ID_in1_11 | prepend: 'Organization/' -%} + {% include 'Reference/Coverage/PolicyHolder' ID: coverageId, REF: org_in1_11 -%} + {% endif -%} + + {% if in1Segment.17.1.Value == "SEL" -%} + {% include 'Resource/Patient' PID_IN1: firstSegments.PID, IN1: in1Segment, ID: patientId -%} + {% include 'Reference/Coverage/Subscriber' ID: coverageId, REF: fullPatientId -%} + {% endif -%} + {% unless in1Segment.17.1.Value == "SEL" or in1Segment.17.Value == "" -%} + {% evaluate in1relatedPersonId using 'ID/RelatedPerson' IN1: in1Segment, baseId: patientId -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: in1relatedPersonId, IN1: in1Segment -%} + {% assign rel_in1_17 = in1relatedPersonId | prepend: 'RelatedPerson/' -%} + {% include 'Reference/Coverage/Subscriber' ID: coverageId, REF: rel_in1_17 -%} + {% endunless -%} + + {% for in2Segment in in2SegmentLists.IN2 -%} + {% if in1Segment.17.1.Value == "SEL" -%} + {% include 'Resource/Patient' IN2: in2Segment, ID: patientId -%} + {% endif -%} + {% unless in1Segment.17.1.Value == "SEL" or in1Segment.17.Value == "" -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: in1relatedPersonId, IN2: in2Segment -%} + {% endunless -%} + + {% unless in1Segment.10 and in1Segment.11 -%} + {% if in2Segment.3 -%} + {% evaluate in2relatedPersonId using 'ID/RelatedPerson' IN2: in2Segment, baseId: patientId -%} + {% if in2Segment.3.9.1 != "" and in2Segment.3.9.1 != null and in2Segment.3.9.2 != "" and in2Segment.3.9.2 != null and in2Segment.3.9.3 != "" and in2Segment.3.9.3 != null -%} + {% evaluate Organization_ID_IN2_3_9 using 'ID/Organization' HDORG: in2Segment.3.9 -%} + {% include 'Resource/Organization', IN2_3: in2Segment.3.9, ID: Organization_ID_IN2_3_9 -%} + {% endif -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: in2relatedPersonId, IN2_3: in2Segment -%} + {% assign relatedperson_3 = in2relatedPersonId | prepend: 'RelatedPerson/' -%} + {% include 'Reference/Coverage/PolicyHolder' ID: coverageId, REF: relatedperson_3 -%} + {% endif -%} + {% endunless -%} + + {% if in1Segment.10 == null and in1Segment.11 == null and in2Segment.3 == null -%} + {% if in2Segment.70 -%} + {% evaluate organization_Id_IN2_70 using 'ID/Organization' XON: in2Segment.70 -%} + {% include 'Resource/Organization' IN2_70: in2Segment, ID: organization_Id_IN2_70 -%} + {% assign org_in2_70 = organization_Id_IN2_70 | prepend: 'Organization/' -%} + {% include 'Reference/Coverage/PolicyHolder' ID: coverageId, REF: org_in2_70 -%} + {% endif -%} + {% endif -%} + + {% if Organization_ID_in1_11 -%} + {% include 'Resource/Organization', IN2_49: in2Segment, ID: Organization_ID_in1_11 -%} + {% endif -%} + {% include 'Resource/Coverage' IN2: in2Segment, ID: coverageId -%} + {% include 'Resource/Patient' IN2_6: in2Segment, ID: patientId -%} + + {% for in2_1 in in2Segment.1.Repeats -%} + {% if in2_1.4.1 != "" and in2_1.4.1 != null and in2_1.4.2 != "" and in2_1.4.2 != null and in2_1.4.3 != "" and in2_1.4.3 != null -%} + {% evaluate Organization_ID_in2_CX_1 using 'ID/Organization' HDORG: in2_1.4 -%} + {% include 'Resource/Organization', IN2_1: in2_1, ID: Organization_ID_in2_CX_1 -%} + {% endif -%} + {% endfor -%} + {% if in2Segment.61 -%} + {% if in2Segment.61.4.1 != "" and in2Segment.61.4.1 != null and in2Segment.61.4.2 != "" and in2Segment.61.4.2 != null and in2Segment.61.4.3 != "" and in2Segment.61.4.3 != null -%} + {% evaluate Organization_ID_in2_CX_61 using 'ID/Organization' HDORG: in2Segment.61.4 -%} + {% include 'Resource/Organization', IN2_61: in2Segment.61, ID: Organization_ID_in2_CX_61 -%} + {% endif -%} + {% endif -%} + {% endfor -%} + + {% endfor -%} + ] +} \ No newline at end of file diff --git a/data/Templates/Hl7v2/ADT_A28.liquid b/data/Templates/Hl7v2/ADT_A28.liquid new file mode 100644 index 000000000..023c6f9dd --- /dev/null +++ b/data/Templates/Hl7v2/ADT_A28.liquid @@ -0,0 +1,615 @@ +{% assign firstSegments = hl7v2Data | get_first_segments: 'PID|PD1|PV1|PV2|UAC|DRG|ACC|UB1|UB2|EVN|MSH' -%} +{% assign nk1SegmentLists = hl7v2Data | get_segment_lists: 'NK1' -%} +{% assign obxSegmentLists = hl7v2Data | get_segment_lists: 'OBX' -%} +{% assign al1SegmentLists = hl7v2Data | get_segment_lists: 'AL1' -%} +{% assign dg1SegmentLists = hl7v2Data | get_segment_lists: 'DG1' -%} +{% assign in1SegmentLists = hl7v2Data | get_segment_lists: 'IN1' -%} +{% assign in2SegmentLists = hl7v2Data | get_segment_lists: 'IN2' -%} +{% assign in3SegmentLists = hl7v2Data | get_segment_lists: 'IN3' -%} +{% assign autSegmentLists = hl7v2Data | get_segment_lists: 'AUT' -%} +{% assign rf1SegmentLists = hl7v2Data | get_segment_lists: 'RF1' -%} +{% assign gt1SegmentLists = hl7v2Data | get_segment_lists: 'GT1' -%} +{% assign rolSegmentLists = hl7v2Data | get_segment_lists: 'ROL' -%} +{% assign db1SegmentLists = hl7v2Data | get_segment_lists: 'DB1' -%} +{% assign arvSegmentLists = hl7v2Data | get_segment_lists: 'ARV' -%} +{% assign sftSegmentLists = hl7v2Data | get_segment_lists: 'SFT' -%} +{% assign pr1SegmentLists = hl7v2Data | get_segment_lists: 'PR1' -%} +{% evaluate bundleID using 'ID/Bundle' Data: firstSegments.MSH.10 -%} + +{ + "resourceType": "Bundle", + "type": "batch", + {% if firstSegments.MSH.7 -%} + "timestamp":"{{ firstSegments.MSH.7.Value | format_as_date_time }}", + {% endif -%} + "identifier": + { + "value":"{{ firstSegments.MSH.10.Value }}", + }, + "id":"{{ bundleID }}", + "entry": [ + {% evaluate patientId using 'ID/Patient' PID: firstSegments.PID, type: 'First' -%} + {% assign fullPatientId = patientId | prepend: 'Patient/' -%} + {% evaluate messageHeaderId using 'ID/MessageHeader' MSH: firstSegments.MSH -%} + + {% if firstSegments.MSH -%} + {% include 'Resource/MessageHeader' MSH: firstSegments.MSH, ID: messageHeaderId -%} + {% evaluate provenanceId using 'ID/Provenance' MSH: firstSegments.MSH, baseId: patientId -%} + {% include 'Resource/Provenance' Root_Template: 'ADT_A28', MSH: firstSegments.MSH, REF_BUNDLE: bundleID, ID: provenanceId -%} + + {%- comment -%} + {% assign transformation_val = 'provenance_transformation' %} + {% evaluate provenanceOrganizationId using 'ID/Organization', prov_id: firstSegments.MSH -%} + {% evaluate provenanceTransformationId using 'ID/Provenance_transformation' prov_id: transformation_val -%} + {% include 'Resource/Organization' org_name: 'Microsoft Corporation', ID: provenanceOrganizationId -%} + {% include 'Resource/Provenance_transformation' Root_Template: 'ADT_A28', Provenance_Organization_ID: provenanceOrganizationId, REF_MSH: messageHeaderId, provenanceOrganizationId, ID: provenanceTransformationId -%} + {%- endcomment -%} + {% if firstSegments.MSH.4 -%} + {% if firstSegments.MSH.4.1 != "" and firstSegments.MSH.4.1 != null or firstSegments.MSH.4.2 != "" and firstSegments.MSH.4.2 != null or firstSegments.MSH.4.3 != "" and firstSegments.MSH.4.3 != null -%} + {% evaluate organization_ID_MSH_4 using 'ID/Organization' HD: firstSegments.MSH.4 -%} + {% include 'Resource/Organization' MSHHD1: firstSegments.MSH.4, MSH: firstSegments.MSH, ID: organization_ID_MSH_4 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.6 %} + {% if firstSegments.MSH.6.1 != "" and firstSegments.MSH.6.1 != null or firstSegments.MSH.6.2 != "" and firstSegments.MSH.6.2 != null or firstSegments.MSH.6.3 != "" and firstSegments.MSH.6.3 != null -%} + {% evaluate organization_Id_MSH_6 using 'ID/Organization' HD: firstSegments.MSH.6 -%} + {% include 'Resource/Organization' MSHHD2: firstSegments.MSH.6, MSH: firstSegments.MSH, ID: organization_Id_MSH_6 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.22 %} + {% if firstSegments.MSH.22.1 != "" and firstSegments.MSH.22.1 != null -%} + {% evaluate organization_Id_MSH_22 using 'ID/Organization' XON: firstSegments.MSH.22 -%} + {% include 'Resource/Organization' MSHXON1: firstSegments.MSH.22, ID: organization_Id_MSH_22 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.23 %} + {% if firstSegments.MSH.23.1 != "" and firstSegments.MSH.23.1 != null -%} + {% evaluate organization_Id_MSH_23 using 'ID/Organization' XON: firstSegments.MSH.23 -%} + {% include 'Resource/Organization' MSHXON2: firstSegments.MSH.23, ID: organization_Id_MSH_23 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.3 and firstSegments.MSH.24 %} + {% evaluate device_Id_MSH_3 using 'ID/Device' HD: firstSegments.MSH.3 -%} + {% include 'Resource/Device' MSH: firstSegments.MSH, ID: device_Id_MSH_3 -%} + {% endif -%} + {% endif -%} + + {% for sftSegment in sftSegmentLists.SFT -%} + {% evaluate deviceId_SFT using 'ID/Device' SFT: sftSegment -%} + {% include 'Resource/Device' SFT:sftSegment, ID: deviceId_SFT -%} + {% include 'Resource/MessageHeader' MSH: firstSegments.MSH, SFT:sftSegment, ID: messageHeaderID -%} + {% endfor -%} + + {% include 'Resource/Patient' PID: firstSegments.PID, PD1: firstSegments.PD1, ID: patientId -%} + {% include 'Extensions/Patient/PatientExtension' ID: PatientId, PID: firstSegments.PID, PD1: firstSegments.PD1, PV1: firstSegments.PV1 -%} + + {% if firstSegments.PID.18 -%} + {% evaluate accountId using 'ID/Account' CX: firstSegments.PID.3 -%} + {% include 'Resource/Account' PID: firstSegments.PID, ID: accountId -%} + {% include 'Reference/Account/Subject' ID: accountId, REF: fullPatientId -%} + {% if firstSegments.PID.18.4.1 != "" and firstSegments.PID.18.4.1 != null and firstSegments.PID.18.4.2 != "" and firstSegments.PID.18.4.2 != null and firstSegments.PID.18.4.3 != "" and firstSegments.PID.18.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_18 using 'ID/Organization' HDORG: firstSegments.PID.18.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.18, ID: Organization_ID_pid_CX_18 -%} + {% endif -%} + + {% for gt1SegmentLists in gt1SegmentLists.GT1 -%} + {% if gt1SegmentLists.11.1.Value == "SEL" -%} + {% include 'Resource/Patient' PID: firstSegments.PID, GT1: gt1SegmentLists, ID: patientId, NK1_PER: nk1SegmentLists.NK1[0] -%} + {% if gt1SegmentLists.2.4.1 != "" and gt1SegmentLists.2.4.1 != null and gt1SegmentLists.2.4.2 != "" and gt1SegmentLists.2.4.2 != null and gt1SegmentLists.2.4.3 != "" and gt1SegmentLists.2.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_2 using 'ID/Organization' HDORG: gt1SegmentLists.2.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.2, ID: Organization_ID_gt1_CX_2 -%} + {% endif -%} + {% if gt1SegmentLists.19.4.1 != "" and gt1SegmentLists.19.4.1 != null and gt1SegmentLists.19.4.2 != "" and gt1SegmentLists.19.4.2 != null and gt1SegmentLists.19.4.3 != "" and gt1SegmentLists.19.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_19 using 'ID/Organization' HDORG: gt1SegmentLists.19.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.19, ID: Organization_ID_gt1_CX_19 -%} + {% endif -%} + {% if gt1SegmentLists.29.4.1 != "" and gt1SegmentLists.29.4.1 != null and gt1SegmentLists.29.4.2 != "" and gt1SegmentLists.29.4.2 != null and gt1SegmentLists.29.4.3 != "" and gt1SegmentLists.29.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_29 using 'ID/Organization' HDORG: gt1SegmentLists.29.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.29, ID: Organization_ID_gt1_CX_29 -%} + {% endif -%} + {% if gt1SegmentLists.51 and nk1SegmentLists.NK1[0].7.1.Value == "E" -%} + {% evaluate Organization_ID_gt1_XON_51 using 'ID/Organization' XON: gt1SegmentLists.51 -%} + {% include 'Resource/Organization', GT1_51: gt1SegmentLists, ID: Organization_ID_gt1_XON_51 -%} + {% assign Organization_GT1_51 = Organization_ID_gt1_XON_51 | prepend: 'Organization/' -%} + {% include 'Reference/Patient/Contact_Organization' REF:Organization_GT1_51 , ID: patientId -%} + {% endif -%} + {% else -%} + {% evaluate gt1relatedPersonId using 'ID/RelatedPerson' GT1: gt1SegmentLists, baseId: patientId -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: gt1relatedPersonId, GT1: gt1SegmentLists -%} + {% if gt1SegmentLists.2.4.1 != "" and gt1SegmentLists.2.4.1 != null and gt1SegmentLists.2.4.2 != "" and gt1SegmentLists.2.4.2 != null and gt1SegmentLists.2.4.3 != "" and gt1SegmentLists.2.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_2 using 'ID/Organization' HDORG: gt1SegmentLists.2.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.2, ID: Organization_ID_gt1_CX_2 -%} + {% endif -%} + {% if gt1SegmentLists.19.4.1 != "" and gt1SegmentLists.19.4.1 != null and gt1SegmentLists.19.4.2 != "" and gt1SegmentLists.19.4.2 != null and gt1SegmentLists.19.4.3 != "" and gt1SegmentLists.19.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_19 using 'ID/Organization' HDORG: gt1SegmentLists.19.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.19, ID: Organization_ID_gt1_CX_19 -%} + {% endif -%} + {% endif -%} + {% if gt1SegmentLists.21 -%} + {% evaluate Organization_ID_gt1_XON_21 using 'ID/Organization' XON: gt1SegmentLists.21 -%} + {% include 'Resource/Organization', GT1: gt1SegmentLists, ID: Organization_ID_gt1_XON_21 -%} + {% if gt1SegmentLists.2.4.1 != "" and gt1SegmentLists.2.4.1 != null and gt1SegmentLists.2.4.2 != "" and gt1SegmentLists.2.4.2 != null and gt1SegmentLists.2.4.3 != "" and gt1SegmentLists.2.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_2 using 'ID/Organization' HDORG: gt1SegmentLists.2.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.2, ID: Organization_ID_gt1_CX_2 -%} + {% endif -%} + {% endif -%} + {% include 'Resource/Account' GT1: gt1SegmentLists, ID: accountId, REF_PATIENT: fullPatientId, REF_RELATED_PERSON: gt1relatedPersonId, REF_ORG: Organization_ID_gt1_XON_21 -%} + {% endfor -%} + + {% endif -%} + + {% if firstSegments.PID.2 -%} + {% if firstSegments.PID.2.4.1 != "" and firstSegments.PID.2.4.1 != null and firstSegments.PID.2.4.2 != "" and firstSegments.PID.2.4.2 != null and firstSegments.PID.2.4.3 != "" and firstSegments.PID.2.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_2 using 'ID/Organization' HDORG: firstSegments.PID.2.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.2, ID: Organization_ID_pid_CX_2 -%} + {% endif -%} + {% endif -%} + {% for pid3 in firstSegments.PID.3.Repeats -%} + {% if pid3.4.1 != "" and pid3.4.1 != null and pid3.4.2 != "" and pid3.4.2 != null and pid3.4.3 != "" and pid3.4.3 != null -%} + {% evaluate Organization_ID_pid_CX using 'ID/Organization' HDORG: pid3.4 -%} + {% include 'Resource/Organization', PID: pid3, ID: Organization_ID_pid_CX -%} + {% endif -%} + {% endfor -%} + {% if firstSegments.PID.4 -%} + {% if firstSegments.PID.4.4.1 != "" and firstSegments.PID.4.4.1 != null and firstSegments.PID.4.4.2 != "" and firstSegments.PID.4.4.2 != null and firstSegments.PID.4.4.3 != "" and firstSegments.PID.4.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_4 using 'ID/Organization' HDORG: firstSegments.PID.4.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.4, ID: Organization_ID_pid_CX_4 -%} + {% endif -%} + {% endif -%} + + {% unless nk1SegmentLists.NK1 -%} + {% if firstSegments.PID.21 -%} + {% if firstSegments.PID.21.4.1 != "" and firstSegments.PID.21.4.1 != null and firstSegments.PID.21.4.2 != "" and firstSegments.PID.21.4.2 != null and firstSegments.PID.21.4.3 != "" and firstSegments.PID.21.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_21 using 'ID/Organization' HDORG: firstSegments.PID.21.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.21, ID: Organization_ID_pid_CX_21 -%} + {% endif -%} + {% evaluate pidrelatedPersonId using 'ID/RelatedPerson' PID: firstSegments.PID, baseId: patientId -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: pidrelatedPersonId, PID: firstSegments.PID -%} + {% endif -%} + {% endunless -%} + {% if firstSegments.PD1.3 -%} + {% evaluate Organization_ID_PD1_3 using 'ID/Organization' XON: firstSegments.PD1.3 -%} + {% include 'Resource/Organization' PD1: firstSegments.PD1, ID: Organization_ID_PD1_3 -%} + {% endif -%} + + {% if firstSegments.PD1.4 -%} + {% if firstSegments.PD1.4.9.1 != "" and firstSegments.PD1.4.9.1 != null and firstSegments.PD1.4.9.2 != "" and firstSegments.PD1.4.9.2 != null and firstSegments.PD1.4.9.3 != "" and firstSegments.PD1.4.9.3 != null -%} + {% evaluate Organization_ID_PD1_4_9 using 'ID/Organization' HDORG: firstSegments.PD1.4.9 -%} + {% include 'Resource/Organization', PD1_4: firstSegments.PD1.4.9, ID: Organization_ID_PD1_4_9 -%} + {% endif -%} + {% evaluate Practitioner_ID_PD1_4 using 'ID/Practitioner' XCN: firstSegments.PD1.4 -%} + {% include 'Resource/Practitioner' PD1: firstSegments.PD1.4, ID: Practitioner_ID_PD1_4 -%} + {% endif -%} + + {% if firstSegments.PV1 -%} + {% if firstSegments.PV1.5 -%} + {% if firstSegments.PV1.5.4.1 != "" and firstSegments.PV1.5.4.1 != null and firstSegments.PV1.5.4.2 != "" and firstSegments.PV1.5.4.2 != null and firstSegments.PV1.5.4.3 != "" and firstSegments.PV1.5.4.3 != null -%} + {% evaluate Organization_ID_PV1_5_4 using 'ID/Organization' HDORG: firstSegments.PV1.5.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.5.4, ID: Organization_ID_PV1_5_4 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PV1.19 -%} + {% if firstSegments.PV1.19.4.1 != "" and firstSegments.PV1.19.4.1 != null and firstSegments.PV1.19.4.2 != "" and firstSegments.PV1.19.4.2 != null and firstSegments.PV1.19.4.3 != "" and firstSegments.PV1.19.4.3 != null -%} + {% evaluate Organization_ID_PV1_19_4 using 'ID/Organization' HDORG: firstSegments.PV1.19.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.19.4, ID: Organization_ID_PV1_19_4 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PV1.7 -%} + {% if firstSegments.PV1.7.9.1 != "" and firstSegments.PV1.7.9.1 != null and firstSegments.PV1.7.9.2 != "" and firstSegments.PV1.7.9.2 != null and firstSegments.PV1.7.9.3 != "" and firstSegments.PV1.7.9.3 != null -%} + {% evaluate Organization_ID_PV1_7_9 using 'ID/Organization' HDORG: firstSegments.PV1.7.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.7.9, ID: Organization_ID_PV1_7_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_7 using 'ID/Practitioner' XCN: firstSegments.PV1.7 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.7, ID: practitionerId_PV1_7 -%} + {% endif -%} + + {% if firstSegments.PV1.8 -%} + {% if firstSegments.PV1.8.9.1 != "" and firstSegments.PV1.8.9.1 != null and firstSegments.PV1.8.9.2 != "" and firstSegments.PV1.8.9.2 != null and firstSegments.PV1.8.9.3 != "" and firstSegments.PV1.8.9.3 != null -%} + {% evaluate Organization_ID_PV1_8_9 using 'ID/Organization' HDORG: firstSegments.PV1.8.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.8.9, ID: Organization_ID_PV1_8_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_8 using 'ID/Practitioner' XCN: firstSegments.PV1.8 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.8, ID: practitionerId_PV1_8 -%} + {% endif -%} + + {% if firstSegments.PV1.9 -%} + {% if firstSegments.PV1.9.9.1 != "" and firstSegments.PV1.9.9.1 != null and firstSegments.PV1.9.9.2 != "" and firstSegments.PV1.9.9.2 != null and firstSegments.PV1.9.9.3 != "" and firstSegments.PV1.9.9.3 != null -%} + {% evaluate Organization_ID_PV1_9_9 using 'ID/Organization' HDORG: firstSegments.PV1.9.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.9.9, ID: Organization_ID_PV1_9_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_9 using 'ID/Practitioner' XCN: firstSegments.PV1.9 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.9, ID: practitionerId_PV1_9 -%} + {% endif -%} + + {% if firstSegments.PV1.17 -%} + {% if firstSegments.PV1.17.9.1 != "" and firstSegments.PV1.17.9.1 != null and firstSegments.PV1.17.9.2 != "" and firstSegments.PV1.17.9.2 != null and firstSegments.PV1.17.9.3 != "" and firstSegments.PV1.17.9.3 != null -%} + {% evaluate Organization_ID_PV1_17_9 using 'ID/Organization' HDORG: firstSegments.PV1.17.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.17.9, ID: Organization_ID_PV1_17_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_17 using 'ID/Practitioner' XCN: firstSegments.PV1.17 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.17, ID: practitionerId_PV1_17 -%} + {% endif -%} + + {% if firstSegments.PV1.50 -%} + {% for p in firstSegments.PV1.50.Repeats -%} + {% if p.4.1 != "" and p.4.1 != null and p.4.2 != "" and p.4.2 != null and p.4.3 != "" and p.4.3 != null -%} + {% evaluate Organization_ID_PV1_50_4 using 'ID/Organization' HDORG: p.4 -%} + {% include 'Resource/Organization', PV1: p.4, ID: Organization_ID_PV1_50_4 -%} + {% endif -%} + {% endfor -%} + {% endif -%} + + {% if firstSegments.PV1.52 -%} + {% if firstSegments.PV1.52.9.1 != "" and firstSegments.PV1.52.9.1 != null and firstSegments.PV1.52.9.2 != "" and firstSegments.PV1.52.9.2 != null and firstSegments.PV1.52.9.3 != "" and firstSegments.PV1.52.9.3 != null -%} + {% evaluate Organization_ID_PV1_52_9 using 'ID/Organization' HDORG: firstSegments.PV1.52.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.52.9, ID: Organization_ID_PV1_52_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_52 using 'ID/Practitioner' XCN: firstSegments.PV1.52 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.52, ID: practitionerId_PV1_52 -%} + {% endif -%} + + {% if firstSegments.PV2.13 -%} + {% if firstSegments.PV2.13.9.1 != "" and firstSegments.PV2.13.9.1 != null and firstSegments.PV2.13.9.2 != "" and firstSegments.PV2.13.9.2 != null and firstSegments.PV2.13.9.3 != "" and firstSegments.PV2.13.9.3 != null -%} + {% evaluate Organization_ID_PV2_13_9 using 'ID/Organization' HDORG: firstSegments.PV2.13.9 -%} + {% include 'Resource/Organization', PV2: firstSegments.PV2.13.9, ID: Organization_ID_PV2_13_9 -%} + {% endif -%} + {% evaluate practitionerId_PV2_13 using 'ID/Practitioner' XCN: firstSegments.PV2.13 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV2.13, ID: practitionerId_PV2_13 -%} + {% endif -%} + + {% if firstSegments.PV1.3 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.3-%} + {% endif -%} + + {% if firstSegments.PV1.6 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.6 -%} + {% endif -%} + + {% if firstSegments.PV1.37 -%} + {% evaluate location_ID_PV1_37 using 'ID/Location' DLD: firstSegments.PV1.37 -%} + {% include 'Resource/Location' PV1: firstSegments.PV1.37, ID: location_ID_PV1_37-%} + {% endif -%} + + {% if firstSegments.PV1.42 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.42-%} + {% endif -%} + + {% if firstSegments.PV1.43 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.43-%} + {% endif -%} + + {% if firstSegments.PV2.1 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV2.1-%} + {% endif -%} + + {% if firstSegments.PV1.54 -%} + {% if firstSegments.PV1.54.4.1 != "" and firstSegments.PV1.54.4.1 != null and firstSegments.PV1.54.4.2 != "" and firstSegments.PV1.54.4.2 != null and firstSegments.PV1.54.4.3 != "" and firstSegments.PV1.54.4.3 != null -%} + {% evaluate Organization_ID_PV1_54_4 using 'ID/Organization' HDORG: firstSegments.PV1.54.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.54.4, ID: Organization_ID_PV1_54_4 -%} + {% endif -%} + {% evaluate EpisodeOfCare_ID using 'ID/EpisodeOfCare' PV1: firstSegments.PV1.54 -%} + {% include 'Resource/EpisodeOfCare' PV1: firstSegments.PV1, ID: EpisodeOfCare_ID, patientRefrenceID: fullPatientId -%} + {% endif -%} + + {% evaluate encounterId using 'ID/Encounter' PV1: firstSegments.PV1, baseId: patientId -%} + {% include 'Resource/Encounter' Root_Template: 'ADT_A28', PV1: firstSegments.PV1, PV2: firstSegments.PV2, ID: encounterId -%} + {% include 'Reference/Encounter/Subject' ID: encounterId, REF: fullPatientId -%} + {% include 'Extensions/Encounter/EncounterExtension' ID: encounterId, PV1: firstSegments.PV1, PV2: firstSegments.PV2, -%} + {% endif -%} + + {% if firstSegments.EVN -%} + {% evaluate provenanceId using 'ID/Provenance' EVN: firstSegments.EVN, baseId: patientId -%} + {% include 'Resource/Provenance' EVN: firstSegments.EVN, EVNTEXT: firstSegments.MSH.9, REF_BUNDLE: bundleID, ID: provenanceId -%} + {% if firstSegments.EVN.5 -%} + {% if firstSegments.EVN.5.9.1 != "" and firstSegments.EVN.5.9.1 != null and firstSegments.EVN.5.9.2 != "" and firstSegments.EVN.5.9.2 != null and firstSegments.EVN.5.9.3 != "" and firstSegments.EVN.5.9.3 != null -%} + {% evaluate Organization_ID_EVN_5_9 using 'ID/Organization' HDORG: firstSegments.EVN.5.9 -%} + {% include 'Resource/Organization', EVN: firstSegments.EVN.5.9, ID: Organization_ID_EVN_5_9 -%} + {% endif -%} + {% evaluate practitionerId_EVN_5 using 'ID/Practitioner' XCN: firstSegments.EVN.5 -%} + {% include 'Resource/Practitioner' EVN: firstSegments.EVN.5, ID: practitionerId_EVN_5 -%} + {% if firstSegments.EVN.7 -%} + {% evaluate locationId_EVN_7 using 'ID/Location' HD: firstSegments.EVN.7 -%} + {% include 'Resource/Location' EVN: firstSegments.EVN.7, ID: locationId_EVN_7 -%} + {% endif -%} + {% endif -%} + {% endif -%} + + {% for pr1Segment in pr1SegmentLists.PR1 -%} + {% if pr1Segment.8 -%} + {% if pr1Segment.8.9.1 != "" and pr1Segment.8.9.1 != null and pr1Segment.8.9.2 != "" and pr1Segment.8.9.2 != null and pr1Segment.8.9.3 != "" and pr1Segment.8.9.3 != null -%} + {% evaluate Organization_ID_PR1_8 using 'ID/Organization' HDORG: pr1Segment.8.9 -%} + {% include 'Resource/Organization', PR1: pr1Segment.8.9, ID: Organization_ID_PR1_8 -%} + {% endif -%} + {% evaluate practitionerId_PR1_8 using 'ID/Practitioner' XCN: pr1Segment.8 -%} + {% include 'Resource/Practitioner' PR1: pr1Segment.8, ID: practitionerId_PR1_8 -%} + {% endif -%} + + {% if pr1Segment.11 -%} + {% if pr1Segment.11.9.1 != "" and pr1Segment.11.9.1 != null and pr1Segment.11.9.2 != "" and pr1Segment.11.9.2 != null and pr1Segment.11.9.3 != "" and pr1Segment.11.9.3 != null -%} + {% evaluate Organization_ID_PR1_11 using 'ID/Organization' HDORG: pr1Segment.11.9 -%} + {% include 'Resource/Organization', PR1: pr1Segment.11.9, ID: Organization_ID_PR1_11 -%} + {% endif -%} + {% evaluate practitionerId_PR1_11 using 'ID/Practitioner' XCN: pr1Segment.11 -%} + {% include 'Resource/Practitioner' PR1: pr1Segment.11, ID: practitionerId_PR1_11 -%} + {% endif -%} + + {% if pr1Segment.12 -%} + {% if pr1Segment.12.9.1 != "" and pr1Segment.12.9.1 != null and pr1Segment.12.9.2 != "" and pr1Segment.12.9.2 != null and pr1Segment.12.9.3 != "" and pr1Segment.12.9.3 != null -%} + {% evaluate Organization_ID_PR1_12 using 'ID/Organization' HDORG: pr1Segment.12.9 -%} + {% include 'Resource/Organization', PR1: pr1Segment.12.9, ID: Organization_ID_PR1_12 -%} + {% endif -%} + {% evaluate practitionerId_PR1_12 using 'ID/Practitioner' XCN: pr1Segment.12 -%} + {% include 'Resource/Practitioner' PR1: pr1Segment.12, ID: practitionerId_PR1_12 -%} + {% endif -%} + + {% if pr1Segment.23.1 -%} + {% evaluate Location_ID_PR1_23_1 using 'ID/Location' PL: pr1Segment.23.1 -%} + {% include 'Resource/PLLocation' PL_1: pr1Segment.23.1, ID: Location_ID_PR1_23_1-%} + {% else %} + {% if pr1Segment.23.2 %} + {% evaluate Location_ID_PR1_23_2 using 'ID/Location' PL: pr1Segment.23.2 -%} + {% include 'Resource/PLLocation' PL_2: pr1Segment.23.2, ID: Location_ID_PR1_23_2-%} + {% endif %} + {% endif %} + + {% if pr1Segment.25 -%} + {% evaluate Procedure_ID_PR1_25 using 'ID/Procedure' PR1: pr1Segment.25, baseId: fullPatientId -%} + {% include 'Resource/Procedure' PR1_25: pr1Segment.25, PV1: firstSegments.PV1, Procedure_Subject_ID: fullPatientId, ID: Procedure_ID_PR1_25 -%} + {% endif -%} + + {% evaluate procedureId using 'ID/Procedure' PR1: pr1Segment, baseId: patientId -%} + {% include 'Resource/Procedure' PR1: pr1Segment, PV1: firstSegments.PV1, Procedure_Subject_ID: fullPatientId, ID: procedureId -%} + {% endfor -%} + + {% for nk1Segment in nk1SegmentLists.NK1 -%} + {% evaluate relatedPersonId using 'ID/RelatedPerson' NK1: nk1Segment, baseId: patientId -%} + {% if nk1Segment.13 -%} + {% evaluate organizationId_NK1_13 using 'ID/Organization' XON: nk1Segment.13 -%} + {% include 'Resource/Organization' NK1: nk1Segment, ID: organizationId_NK1_13 -%} + {% assign Organization_NK1_13 = organizationId_NK1_13 | prepend: 'Organization/' -%} + {% include 'Reference/Patient/Contact_Organization' REF:Organization_NK1_13 , ID: patientId -%} + {% endif -%} + {% unless nk1Segment.3.1.Value == "EMR" or nk1Segment.3.1.Value == "CGV" or nk1Segment.7.1.Value == "E" or nk1Segment.7.1.Value =="F" or nk1Segment.7.1.Value == "I" or nk1Segment.7.1.Value =="S" -%} + {% include 'Resource/Patient' NK1: nk1Segment, ID: patientId -%} + {% include 'Resource/RelatedPerson' NK1: nk1Segment, RelatedPerson_Patient_ID: fullPatientId, ID: relatedPersonId, PID: firstSegments.PID -%} + {% include 'Extensions/RelatedPerson/RelatedPerson' ID: relatedPersonId, NK1: nk1Segment -%} + {% if nk1Segment.12.4.1 != "" and nk1Segment.12.4.1 != null and nk1Segment.12.4.2 != "" and nk1Segment.12.4.2 != null and nk1Segment.12.4.3 != "" and nk1Segment.12.4.3 != null -%} + {% evaluate Organization_ID_nk_CX_12 using 'ID/Organization' HDORG: nk1Segment.12.4 -%} + {% include 'Resource/Organization', NK1_12: nk1Segment.12, ID: Organization_ID_nk_CX_12 -%} + {% endif -%} + {% endunless -%} + {% if firstSegments.PID.21 -%} + {% include 'Resource/RelatedPerson' ID: relatedPersonId, PID: firstSegments.PID, RelatedPerson_Patient_ID: fullPatientId -%} + {% if firstSegments.PID.21.4.1 != "" and firstSegments.PID.21.4.1 != null and firstSegments.PID.21.4.2 != "" and firstSegments.PID.21.4.2 != null and firstSegments.PID.21.4.3 != "" and firstSegments.PID.21.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_21 using 'ID/Organization' HDORG: firstSegments.PID.21.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.21, ID: Organization_ID_pid_CX_21 -%} + {% endif -%} + {% endif -%} + + {% for nk33 in nk1Segment.33.Repeats -%} + {% if nk33.4.1 != "" and nk33.4.1 != null and nk33.4.2 != "" and nk33.4.2 != null and nk33.4.3 != "" and nk33.4.3 != null -%} + {% evaluate Organization_ID_nk_CX_33 using 'ID/Organization' HDORG: nk33.4 -%} + {% include 'Resource/Organization', NK1_33: nk33, ID: Organization_ID_nk_CX_33 -%} + {% endif -%} + {% endfor -%} + {% endfor -%} + + {% for db1Segment in db1SegmentLists.DB1 -%} + {% if db1Segment.2.1.Value == "PT" %} + {% for db in db1Segment.3.Repeats -%} + {% if db.4.1 != "" and db.4.1 != null and db.4.2 != "" and db.4.2 != null and db.4.3 != "" and db.4.3 != null -%} + {% evaluate Organization_ID_DB1_3 using 'ID/Organization' HDORG: db.4 -%} + {% include 'Resource/Organization', DB1: db.4, ID: Organization_ID_DB1_3 -%} + {% endif -%} + {% endfor %} + {% include 'Extensions/Patient/PatientExtension' ID: PatientId, DB1: db1Segment -%} + {% endif -%} + {% include 'Resource/Patient' DB1: db1Segment, ID: patientId -%} + {% endfor %} + + {% for obxSegment in obxSegmentLists.OBX -%} + {% for obx_16 in obxSegment.16.Repeats -%} + {% if obx_16.9.1 != "" and obx_16.9.1 != null and obx_16.9.2 != "" and obx_16.9.2 != null and obx_16.9.3 != "" and obx_16.9.3 != null -%} + {% evaluate Organization_ID_OBX_16 using 'ID/Organization' HDORG: obx_16.9 -%} + {% include 'Resource/Organization' OBX: obx_16.9, ID: Organization_ID_OBX_16 -%} + {% endif -%} + {% evaluate practitionerId_OBX_16 using 'ID/Practitioner' XCN: obx_16 -%} + {% include 'Resource/Practitioner' OBX: obxSegment, OBXXCN1: obx_16, ID: practitionerId_OBX_16 -%} + {% evaluate practitionerRoleId_OBX_16 using 'ID/PractitionerRole' XCN: obx_16 -%} + {% assign full_practitionerId_OBX_16 = practitionerId_OBX_16 | prepend: 'Practitioner/' %} + {% include 'Resource/PractitionerRole' OBXXCN1: obx_16, ID: practitionerRoleId_OBX_16 -%} + {% include 'Reference/PractitionerRole/Practitioner' REF: full_practitionerId_OBX_16, ID: practitionerRoleId_OBX_16 -%} + {% endfor %} + {% if obxSegment.18 -%} + {% evaluate deviceId_OBX_18 using 'ID/Device' EI: obxSegment.18.Repeats[0] -%} + {% include 'Resource/Device' EI_OBX18: obxSegment.18, ID: deviceId_OBX_18 -%} + {% endif -%} + {% if obxSegment.23 or obxSegment.25 %} + {% evaluate practitionerRoleId_OBX_25 using 'ID/PractitionerRole' XCN: obxSegment.25 -%} + {% endif %} + {% if obxSegment.25 -%} + {% evaluate practitionerId_OBX_25 using 'ID/Practitioner' XCN: obxSegment.25 -%} + {% include 'Resource/Practitioner' OBX: obxSegment, OBXXCN2: obxSegment.25, ID: practitionerId_OBX_25 -%} + {% assign full_practitionerId_OBX_25 = practitionerId_OBX_25 | prepend: 'Practitioner/' %} + {% include 'Resource/PractitionerRole' OBXXCN2: obxSegment.25, ID: practitionerRoleId_OBX_25 -%} + {% include 'Reference/PractitionerRole/Practitioner' REF: full_practitionerId_OBX_25, ID: practitionerRoleId_OBX_25 -%} + {% endif -%} + {% if obxSegment.23 -%} + {% evaluate organizationId_OBX_23 using 'ID/Organization' XON: obxSegment.23 -%} + {% include 'Resource/Organization' OBX_23: obxSegment.23, OBX_24: obxSegment.24, ID: organizationId_OBX_23 -%} + {% if obxSegment.25 -%} + {% assign full_organizationId_OBX_23 = organizationId_OBX_23 | prepend: 'Organization/' %} + {% include 'Reference/PractitionerRole/Organization' REF: full_organizationId_OBX_23, ID: practitionerRoleId_OBX_25 -%} + {% endif -%} + {% endif -%} + {% evaluate observationId using 'ID/Observation' OBX: obxSegment, baseId: patientId -%} + {% include 'Resource/Observation' OBX: obxSegment, Observation_Subject_ID: fullPatientId, ID: observationId -%} + {% include 'Extensions/Observation/ObservationExtension' OBX: obxSegment, ID: observationId %} + {% endfor -%} + + {% for al1Segment in al1SegmentLists.AL1 -%} + {% evaluate allergyIntoleranceId using 'ID/AllergyIntolerance' AL1: al1Segment, baseId: patientId -%} + {% include 'Resource/AllergyIntolerance' AL1: al1Segment, ID: allergyIntoleranceId, AllergyIntolerance_Patient_ID: fullPatientId -%} + {% endfor -%} + + {% for dg1Segment in dg1SegmentLists.DG1 -%} + {% if dg1Segment.16.Repeats[0] %} + {% if dg1Segment.16.Repeats[0].9.1 != "" and dg1Segment.16.Repeats[0].9.1 != null and dg1Segment.16.Repeats[0].9.2 != "" and dg1Segment.16.Repeats[0].9.2 != null and dg1Segment.16.Repeats[0].9.3 != "" and dg1Segment.16.Repeats[0].9.3 != null -%} + {% evaluate Organization_ID_DG1_16 using 'ID/Organization' HDORG: dg1Segment.16.Repeats[0].9 -%} + {% include 'Resource/Organization', DG1: dg1Segment.16.Repeats[0].9, ID: Organization_ID_DG1_16 -%} + {% endif -%} + {% evaluate practitionerId_DG1_16 using 'ID/Practitioner' XCN: dg1Segment.16.Repeats[0] -%} + {% include 'Resource/Practitioner' DG1: dg1Segment, ID: practitionerId_DG1_16 -%} + {% endif -%} + + {% evaluate conditionId using 'ID/Condition' DG1: dg1Segment, baseId: patientId -%} + {% include 'Resource/Condition' DG1: dg1Segment, Condition_Subject_ID: fullPatientId, baseId: patientId, ID: conditionId -%} + + {% if encounterId -%} + {% include 'Resource/Encounter' DG1: dg1Segment, conditionId: conditionId, ID: encounterId -%} + {% endif -%} + {% if EpisodeOfCare_ID %} + {% include 'Resource/EpisodeOfCare' DG1: dg1Segment, conditionId: conditionId, ID: EpisodeOfCare_ID -%} + {% endif %} + {% if dg1Segment.22 -%} + {% evaluate conditionId_DG1_22 using 'ID/Condition' DG1: dg1Segment.22, baseId: patientId -%} + {% include 'Resource/Condition' DG1_22: dg1Segment.22, Condition_Subject_ID_DG1_22: fullPatientId, ID: conditionId_DG1_22 -%} + {% endif -%} + {% include 'Extensions/Condition/ConditionExtension' DG1: dg1Segment, ID_DG1_22:conditionId_DG1_22, ID: conditionId %} + + {% endfor -%} + + {% for rf1Segment in rf1SegmentLists.RF1 -%} + {% if rf1Segment.19 -%} + {% evaluate Organization_ID_RF1_19 using 'ID/Organization' XON: rf1Segment.19 -%} + {% include 'Resource/Organization' RF1: rf1Segment.19, ID: Organization_ID_RF1_19 -%} + {% endif -%} + + {% if rf1Segment.20 -%} + {% if rf1Segment.20.9.1 != "" and rf1Segment.20.9.1 != null and rf1Segment.20.9.2 != "" and rf1Segment.20.9.2 != null and rf1Segment.20.9.3 != "" and rf1Segment.20.9.3 != null -%} + {% evaluate Organization_ID_RF1_20_9 using 'ID/Organization' HDORG: rf1Segment.20.9 -%} + {% include 'Resource/Organization', RF1_20: rf1Segment.20.9, ID: Organization_ID_RF1_20_9 -%} + {% endif -%} + {% evaluate Practitioner_ID_RF1_20 using 'ID/Practitioner' XCN: rf1Segment.20 -%} + {% include 'Resource/Practitioner' RF1: rf1Segment.20, ID: Practitioner_ID_RF1_20 -%} + {% endif -%} + + {% evaluate serviceRequestId using 'ID/ServiceRequest' RF1: rf1Segment, baseId: patientId -%} + {% include 'Resource/ServiceRequest' RF1: rf1Segment, ID: serviceRequestId, ServiceRequest_Subject_ID: fullPatientId -%} + {% endfor -%} + + {% for in1Segment in in1SegmentLists.IN1 -%} + + {% evaluate coverageId using 'ID/Coverage' CX: in1Segment -%} + {% include 'Resource/Coverage' IN1: in1Segment, ID: coverageId -%} + {% include 'Reference/Coverage/Beneficiary' ID: coverageId, REF: fullPatientId -%} + + {% for in1_49 in in1Segment.49.Repeats -%} + {% if in1_49.4.1 != "" and in1_49.4.1 != null and in1_49.4.2 != "" and in1_49.4.2 != null and in1_49.4.3 != "" and in1_49.4.3 != null -%} + {% evaluate Organization_ID_in1_CX_49 using 'ID/Organization' HDORG: in1_49.4 -%} + {% include 'Resource/Organization', IN1_49: in1_49, ID: Organization_ID_in1_CX_49 -%} + {% endif -%} + {% endfor -%} + + {% for in1_3 in in1Segment.3.Repeats -%} + {% if in1_3.4.1 != "" and in1_3.4.1 != null and in1_3.4.2 != "" and in1_3.4.2 != null and in1_3.4.3 != "" and in1_3.4.3 != null -%} + {% evaluate Organization_ID_in1_CX_3 using 'ID/Organization' HDORG: in1_3.4 -%} + {% include 'Resource/Organization', IN1_3: in1_3, ID: Organization_ID_in1_CX_3 -%} + {% endif -%} + {% endfor -%} + + {% for in1_10 in in1Segment.10.Repeats -%} + {% if in1_10.4.1 != "" and in1_10.4.1 != null and in1_10.4.2 != "" and in1_10.4.2 != null and in1_10.4.3 != "" and in1_10.4.3 != null -%} + {% evaluate Organization_ID_in1_CX_10 using 'ID/Organization' HDORG: in1_10.4 -%} + {% include 'Resource/Organization', IN1_10: in1_10, ID: Organization_ID_in1_CX_10 -%} + {% endif -%} + {% endfor -%} + + {% if in1Segment.4 -%} + {% evaluate Organization_ID_in1_4 using 'ID/Organization' XON: in1Segment.4 -%} + {% else -%} + {% evaluate Organization_ID_in1_4 using 'ID/Organization' CX: in1Segment -%} + {% endif -%} + {% if Organization_ID_in1_4 -%} + {% include 'Resource/Organization', IN1: in1Segment, ID: Organization_ID_in1_4 -%} + {% assign org_in1_4 = Organization_ID_in1_4 | prepend: 'Organization/' -%} + {% include 'Reference/Coverage/Payor' ID: coverageId, REF: org_in1_4 -%} + {% endif -%} + + {% if in1Segment.11 -%} + {% evaluate Organization_ID_in1_11 using 'ID/Organization' XON: in1Segment.11 -%} + {% else -%} + {% evaluate Organization_ID_in1_11 using 'ID/Organization' CX_IN1: in1Segment -%} + {% endif -%} + {% if Organization_ID_in1_11 -%} + {% include 'Resource/Organization', IN1_11: in1Segment, ID: Organization_ID_in1_11 -%} + {% assign org_in1_11 = Organization_ID_in1_11 | prepend: 'Organization/' -%} + {% include 'Reference/Coverage/PolicyHolder' ID: coverageId, REF: org_in1_11 -%} + {% endif -%} + + {% if in1Segment.17.1.Value == "SEL" -%} + {% include 'Resource/Patient' PID_IN1: firstSegments.PID, IN1: in1Segment, ID: patientId -%} + {% include 'Reference/Coverage/Subscriber' ID: coverageId, REF: fullPatientId -%} + {% endif -%} + {% unless in1Segment.17.1.Value == "SEL" or in1Segment.17.Value == "" -%} + {% evaluate in1relatedPersonId using 'ID/RelatedPerson' IN1: in1Segment, baseId: patientId -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: in1relatedPersonId, IN1: in1Segment -%} + {% assign rel_in1_17 = in1relatedPersonId | prepend: 'RelatedPerson/' -%} + {% include 'Reference/Coverage/Subscriber' ID: coverageId, REF: rel_in1_17 -%} + {% endunless -%} + + {% for in2Segment in in2SegmentLists.IN2 -%} + {% if in1Segment.17.1.Value == "SEL" -%} + {% include 'Resource/Patient' IN2: in2Segment, ID: patientId -%} + {% endif -%} + {% unless in1Segment.17.1.Value == "SEL" or in1Segment.17.Value == "" -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: in1relatedPersonId, IN2: in2Segment -%} + {% endunless -%} + + {% unless in1Segment.10 and in1Segment.11 -%} + {% if in2Segment.3 -%} + {% evaluate in2relatedPersonId using 'ID/RelatedPerson' IN2: in2Segment, baseId: patientId -%} + {% if in2Segment.3.9.1 != "" and in2Segment.3.9.1 != null and in2Segment.3.9.2 != "" and in2Segment.3.9.2 != null and in2Segment.3.9.3 != "" and in2Segment.3.9.3 != null -%} + {% evaluate Organization_ID_IN2_3_9 using 'ID/Organization' HDORG: in2Segment.3.9 -%} + {% include 'Resource/Organization', IN2_3: in2Segment.3.9, ID: Organization_ID_IN2_3_9 -%} + {% endif -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: in2relatedPersonId, IN2_3: in2Segment -%} + {% assign relatedperson_3 = in2relatedPersonId | prepend: 'RelatedPerson/' -%} + {% include 'Reference/Coverage/PolicyHolder' ID: coverageId, REF: relatedperson_3 -%} + {% endif -%} + {% endunless -%} + + {% if in1Segment.10 == null and in1Segment.11 == null and in2Segment.3 == null -%} + {% if in2Segment.70 -%} + {% evaluate organization_Id_IN2_70 using 'ID/Organization' XON: in2Segment.70 -%} + {% include 'Resource/Organization' IN2_70: in2Segment, ID: organization_Id_IN2_70 -%} + {% assign org_in2_70 = organization_Id_IN2_70 | prepend: 'Organization/' -%} + {% include 'Reference/Coverage/PolicyHolder' ID: coverageId, REF: org_in2_70 -%} + {% endif -%} + {% endif -%} + + {% if Organization_ID_in1_11 -%} + {% include 'Resource/Organization', IN2_49: in2Segment, ID: Organization_ID_in1_11 -%} + {% endif -%} + {% include 'Resource/Coverage' IN2: in2Segment, ID: coverageId -%} + {% include 'Resource/Patient' IN2_6: in2Segment, ID: patientId -%} + + {% for in2_1 in in2Segment.1.Repeats -%} + {% if in2_1.4.1 != "" and in2_1.4.1 != null and in2_1.4.2 != "" and in2_1.4.2 != null and in2_1.4.3 != "" and in2_1.4.3 != null -%} + {% evaluate Organization_ID_in2_CX_1 using 'ID/Organization' HDORG: in2_1.4 -%} + {% include 'Resource/Organization', IN2_1: in2_1, ID: Organization_ID_in2_CX_1 -%} + {% endif -%} + {% endfor -%} + {% if in2Segment.61 -%} + {% if in2Segment.61.4.1 != "" and in2Segment.61.4.1 != null and in2Segment.61.4.2 != "" and in2Segment.61.4.2 != null and in2Segment.61.4.3 != "" and in2Segment.61.4.3 != null -%} + {% evaluate Organization_ID_in2_CX_61 using 'ID/Organization' HDORG: in2Segment.61.4 -%} + {% include 'Resource/Organization', IN2_61: in2Segment.61, ID: Organization_ID_in2_CX_61 -%} + {% endif -%} + {% endif -%} + {% endfor -%} + + {% endfor -%} + ] +} \ No newline at end of file diff --git a/data/Templates/Hl7v2/ADT_A31.liquid b/data/Templates/Hl7v2/ADT_A31.liquid new file mode 100644 index 000000000..ac83c2823 --- /dev/null +++ b/data/Templates/Hl7v2/ADT_A31.liquid @@ -0,0 +1,617 @@ +{% assign firstSegments = hl7v2Data | get_first_segments: 'PID|PD1|PV1|PV2|UAC|DRG|ACC|UB1|UB2|EVN|MSH' -%} +{% assign nk1SegmentLists = hl7v2Data | get_segment_lists: 'NK1' -%} +{% assign obxSegmentLists = hl7v2Data | get_segment_lists: 'OBX' -%} +{% assign al1SegmentLists = hl7v2Data | get_segment_lists: 'AL1' -%} +{% assign dg1SegmentLists = hl7v2Data | get_segment_lists: 'DG1' -%} +{% assign in1SegmentLists = hl7v2Data | get_segment_lists: 'IN1' -%} +{% assign in2SegmentLists = hl7v2Data | get_segment_lists: 'IN2' -%} +{% assign in3SegmentLists = hl7v2Data | get_segment_lists: 'IN3' -%} +{% assign autSegmentLists = hl7v2Data | get_segment_lists: 'AUT' -%} +{% assign rf1SegmentLists = hl7v2Data | get_segment_lists: 'RF1' -%} +{% assign gt1SegmentLists = hl7v2Data | get_segment_lists: 'GT1' -%} +{% assign rolSegmentLists = hl7v2Data | get_segment_lists: 'ROL' -%} +{% assign db1SegmentLists = hl7v2Data | get_segment_lists: 'DB1' -%} +{% assign arvSegmentLists = hl7v2Data | get_segment_lists: 'ARV' -%} +{% assign sftSegmentLists = hl7v2Data | get_segment_lists: 'SFT' -%} +{% assign pr1SegmentLists = hl7v2Data | get_segment_lists: 'PR1' -%} +{% evaluate bundleID using 'ID/Bundle' Data: firstSegments.MSH.10 -%} +{ + "resourceType": "Bundle", + "type": "batch", + {% if firstSegments.MSH.7 -%} + "timestamp":"{{ firstSegments.MSH.7.Value | format_as_date_time }}", + {% endif -%} + "identifier": + { + "value":"{{ firstSegments.MSH.10.Value }}", + }, + "id":"{{ bundleID }}", + "entry": [ + {% evaluate patientId using 'ID/Patient' PID: firstSegments.PID, type: 'First' -%} + {% assign fullPatientId = patientId | prepend: 'Patient/' -%} + {% evaluate messageHeaderId using 'ID/MessageHeader' MSH: firstSegments.MSH -%} + + {% if firstSegments.MSH -%} + {% include 'Resource/MessageHeader' MSH: firstSegments.MSH, ID: messageHeaderId -%} + {% evaluate provenanceId using 'ID/Provenance' MSH: firstSegments.MSH, baseId: patientId -%} + {% include 'Resource/Provenance' Root_Template: 'ADT_A31', MSH: firstSegments.MSH, REF_BUNDLE: bundleID, ID: provenanceId -%} + + {%- comment -%} + {% assign transformation_val = 'provenance_transformation' %} + {% evaluate provenanceOrganizationId using 'ID/Organization', prov_id: firstSegments.MSH -%} + {% evaluate provenanceTransformationId using 'ID/Provenance_transformation' prov_id: transformation_val -%} + {% include 'Resource/Organization' org_name: 'Microsoft Corporation', ID: provenanceOrganizationId -%} + {% include 'Resource/Provenance_transformation' Root_Template: 'ADT_A31', Provenance_Organization_ID: provenanceOrganizationId, REF_MSH: messageHeaderId, provenanceOrganizationId, ID: provenanceTransformationId -%} + {%- endcomment -%} + + {% if firstSegments.MSH.4 -%} + {% if firstSegments.MSH.4.1 != "" and firstSegments.MSH.4.1 != null or firstSegments.MSH.4.2 != "" and firstSegments.MSH.4.2 != null or firstSegments.MSH.4.3 != "" and firstSegments.MSH.4.3 != null -%} + {% evaluate organization_ID_MSH_4 using 'ID/Organization' HD: firstSegments.MSH.4 -%} + {% include 'Resource/Organization' MSHHD1: firstSegments.MSH.4, MSH: firstSegments.MSH, ID: organization_ID_MSH_4 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.6 %} + {% if firstSegments.MSH.6.1 != "" and firstSegments.MSH.6.1 != null or firstSegments.MSH.6.2 != "" and firstSegments.MSH.6.2 != null or firstSegments.MSH.6.3 != "" and firstSegments.MSH.6.3 != null -%} + {% evaluate organization_Id_MSH_6 using 'ID/Organization' HD: firstSegments.MSH.6 -%} + {% include 'Resource/Organization' MSHHD2: firstSegments.MSH.6, MSH: firstSegments.MSH, ID: organization_Id_MSH_6 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.22 %} + {% if firstSegments.MSH.22.1 != "" and firstSegments.MSH.22.1 != null -%} + {% evaluate organization_Id_MSH_22 using 'ID/Organization' XON: firstSegments.MSH.22 -%} + {% include 'Resource/Organization' MSHXON1: firstSegments.MSH.22, ID: organization_Id_MSH_22 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.23 %} + {% if firstSegments.MSH.23.1 != "" and firstSegments.MSH.23.1 != null -%} + {% evaluate organization_Id_MSH_23 using 'ID/Organization' XON: firstSegments.MSH.23 -%} + {% include 'Resource/Organization' MSHXON2: firstSegments.MSH.23, ID: organization_Id_MSH_23 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.3 and firstSegments.MSH.24 %} + {% evaluate device_Id_MSH_3 using 'ID/Device' HD: firstSegments.MSH.3 -%} + {% include 'Resource/Device' MSH: firstSegments.MSH, ID: device_Id_MSH_3 -%} + {% endif -%} + {% endif -%} + + {% for sftSegment in sftSegmentLists.SFT -%} + {% evaluate deviceId_SFT using 'ID/Device' SFT: sftSegment -%} + {% include 'Resource/Device' SFT:sftSegment, ID: deviceId_SFT -%} + {% include 'Resource/MessageHeader' MSH: firstSegments.MSH, SFT:sftSegment, ID: messageHeaderID -%} + {% endfor -%} + + {% include 'Resource/Patient' PID: firstSegments.PID, PD1: firstSegments.PD1, ID: patientId -%} + {% include 'Extensions/Patient/PatientExtension' ID: PatientId, PID: firstSegments.PID, PD1: firstSegments.PD1, PV1: firstSegments.PV1 -%} + + {% if firstSegments.PID.18 -%} + {% evaluate accountId using 'ID/Account' CX: firstSegments.PID.3 -%} + {% include 'Resource/Account' PID: firstSegments.PID, ID: accountId -%} + {% include 'Reference/Account/Subject' ID: accountId, REF: fullPatientId -%} + {% if firstSegments.PID.18.4.1 != "" and firstSegments.PID.18.4.1 != null and firstSegments.PID.18.4.2 != "" and firstSegments.PID.18.4.2 != null and firstSegments.PID.18.4.3 != "" and firstSegments.PID.18.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_18 using 'ID/Organization' HDORG: firstSegments.PID.18.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.18, ID: Organization_ID_pid_CX_18 -%} + {% endif -%} + + {% for gt1SegmentLists in gt1SegmentLists.GT1 -%} + {% if gt1SegmentLists.11.1.Value == "SEL" -%} + {% include 'Resource/Patient' PID: firstSegments.PID, GT1: gt1SegmentLists, ID: patientId, NK1_PER: nk1SegmentLists.NK1[0] -%} + {% if gt1SegmentLists.2.4.1 != "" and gt1SegmentLists.2.4.1 != null and gt1SegmentLists.2.4.2 != "" and gt1SegmentLists.2.4.2 != null and gt1SegmentLists.2.4.3 != "" and gt1SegmentLists.2.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_2 using 'ID/Organization' HDORG: gt1SegmentLists.2.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.2, ID: Organization_ID_gt1_CX_2 -%} + {% endif -%} + {% if gt1SegmentLists.19.4.1 != "" and gt1SegmentLists.19.4.1 != null and gt1SegmentLists.19.4.2 != "" and gt1SegmentLists.19.4.2 != null and gt1SegmentLists.19.4.3 != "" and gt1SegmentLists.19.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_19 using 'ID/Organization' HDORG: gt1SegmentLists.19.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.19, ID: Organization_ID_gt1_CX_19 -%} + {% endif -%} + {% if gt1SegmentLists.29.4.1 != "" and gt1SegmentLists.29.4.1 != null and gt1SegmentLists.29.4.2 != "" and gt1SegmentLists.29.4.2 != null and gt1SegmentLists.29.4.3 != "" and gt1SegmentLists.29.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_29 using 'ID/Organization' HDORG: gt1SegmentLists.29.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.29, ID: Organization_ID_gt1_CX_29 -%} + {% endif -%} + {% if gt1SegmentLists.51 and nk1SegmentLists.NK1[0].7.1.Value == "E" -%} + {% evaluate Organization_ID_gt1_XON_51 using 'ID/Organization' XON: gt1SegmentLists.51 -%} + {% include 'Resource/Organization', GT1_51: gt1SegmentLists, ID: Organization_ID_gt1_XON_51 -%} + {% assign Organization_GT1_51 = Organization_ID_gt1_XON_51 | prepend: 'Organization/' -%} + {% include 'Reference/Patient/Contact_Organization' REF:Organization_GT1_51 , ID: patientId -%} + {% endif -%} + {% else -%} + {% evaluate gt1relatedPersonId using 'ID/RelatedPerson' GT1: gt1SegmentLists, baseId: patientId -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: gt1relatedPersonId, GT1: gt1SegmentLists -%} + {% if gt1SegmentLists.2.4.1 != "" and gt1SegmentLists.2.4.1 != null and gt1SegmentLists.2.4.2 != "" and gt1SegmentLists.2.4.2 != null and gt1SegmentLists.2.4.3 != "" and gt1SegmentLists.2.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_2 using 'ID/Organization' HDORG: gt1SegmentLists.2.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.2, ID: Organization_ID_gt1_CX_2 -%} + {% endif -%} + {% if gt1SegmentLists.19.4.1 != "" and gt1SegmentLists.19.4.1 != null and gt1SegmentLists.19.4.2 != "" and gt1SegmentLists.19.4.2 != null and gt1SegmentLists.19.4.3 != "" and gt1SegmentLists.19.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_19 using 'ID/Organization' HDORG: gt1SegmentLists.19.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.19, ID: Organization_ID_gt1_CX_19 -%} + {% endif -%} + {% endif -%} + {% if gt1SegmentLists.21 -%} + {% evaluate Organization_ID_gt1_XON_21 using 'ID/Organization' XON: gt1SegmentLists.21 -%} + {% include 'Resource/Organization', GT1: gt1SegmentLists, ID: Organization_ID_gt1_XON_21 -%} + {% if gt1SegmentLists.2.4.1 != "" and gt1SegmentLists.2.4.1 != null and gt1SegmentLists.2.4.2 != "" and gt1SegmentLists.2.4.2 != null and gt1SegmentLists.2.4.3 != "" and gt1SegmentLists.2.4.3 != null -%} + {% evaluate Organization_ID_gt1_CX_2 using 'ID/Organization' HDORG: gt1SegmentLists.2.4 -%} + {% include 'Resource/Organization', PID: gt1SegmentLists.2, ID: Organization_ID_gt1_CX_2 -%} + {% endif -%} + {% endif -%} + {% include 'Resource/Account' GT1: gt1SegmentLists, ID: accountId, REF_PATIENT: fullPatientId, REF_RELATED_PERSON: gt1relatedPersonId, REF_ORG: Organization_ID_gt1_XON_21 -%} + {% endfor -%} + + + {% endif -%} + + {% if firstSegments.PID.2 -%} + {% if firstSegments.PID.2.4.1 != "" and firstSegments.PID.2.4.1 != null and firstSegments.PID.2.4.2 != "" and firstSegments.PID.2.4.2 != null and firstSegments.PID.2.4.3 != "" and firstSegments.PID.2.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_2 using 'ID/Organization' HDORG: firstSegments.PID.2.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.2, ID: Organization_ID_pid_CX_2 -%} + {% endif -%} + {% endif -%} + {% for pid3 in firstSegments.PID.3.Repeats -%} + {% if pid3.4.1 != "" and pid3.4.1 != null and pid3.4.2 != "" and pid3.4.2 != null and pid3.4.3 != "" and pid3.4.3 != null -%} + {% evaluate Organization_ID_pid_CX using 'ID/Organization' HDORG: pid3.4 -%} + {% include 'Resource/Organization', PID: pid3, ID: Organization_ID_pid_CX -%} + {% endif -%} + {% endfor -%} + {% if firstSegments.PID.4 -%} + {% if firstSegments.PID.4.4.1 != "" and firstSegments.PID.4.4.1 != null and firstSegments.PID.4.4.2 != "" and firstSegments.PID.4.4.2 != null and firstSegments.PID.4.4.3 != "" and firstSegments.PID.4.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_4 using 'ID/Organization' HDORG: firstSegments.PID.4.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.4, ID: Organization_ID_pid_CX_4 -%} + {% endif -%} + {% endif -%} + + {% unless nk1SegmentLists.NK1 -%} + {% if firstSegments.PID.21 -%} + {% if firstSegments.PID.21.4.1 != "" and firstSegments.PID.21.4.1 != null and firstSegments.PID.21.4.2 != "" and firstSegments.PID.21.4.2 != null and firstSegments.PID.21.4.3 != "" and firstSegments.PID.21.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_21 using 'ID/Organization' HDORG: firstSegments.PID.21.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.21, ID: Organization_ID_pid_CX_21 -%} + {% endif -%} + {% evaluate pidrelatedPersonId using 'ID/RelatedPerson' PID: firstSegments.PID, baseId: patientId -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: pidrelatedPersonId, PID: firstSegments.PID -%} + {% endif -%} + {% endunless -%} + {% if firstSegments.PD1.3 -%} + {% evaluate Organization_ID_PD1_3 using 'ID/Organization' XON: firstSegments.PD1.3 -%} + {% include 'Resource/Organization' PD1: firstSegments.PD1, ID: Organization_ID_PD1_3 -%} + {% endif -%} + + {% if firstSegments.PD1.4 -%} + {% if firstSegments.PD1.4.9.1 != "" and firstSegments.PD1.4.9.1 != null and firstSegments.PD1.4.9.2 != "" and firstSegments.PD1.4.9.2 != null and firstSegments.PD1.4.9.3 != "" and firstSegments.PD1.4.9.3 != null -%} + {% evaluate Organization_ID_PD1_4_9 using 'ID/Organization' HDORG: firstSegments.PD1.4.9 -%} + {% include 'Resource/Organization', PD1_4: firstSegments.PD1.4.9, ID: Organization_ID_PD1_4_9 -%} + {% endif -%} + {% evaluate Practitioner_ID_PD1_4 using 'ID/Practitioner' XCN: firstSegments.PD1.4 -%} + {% include 'Resource/Practitioner' PD1: firstSegments.PD1.4, ID: Practitioner_ID_PD1_4 -%} + {% endif -%} + + {% if firstSegments.PV1 -%} + {% if firstSegments.PV1.5 -%} + {% if firstSegments.PV1.5.4.1 != "" and firstSegments.PV1.5.4.1 != null and firstSegments.PV1.5.4.2 != "" and firstSegments.PV1.5.4.2 != null and firstSegments.PV1.5.4.3 != "" and firstSegments.PV1.5.4.3 != null -%} + {% evaluate Organization_ID_PV1_5_4 using 'ID/Organization' HDORG: firstSegments.PV1.5.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.5.4, ID: Organization_ID_PV1_5_4 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PV1.19 -%} + {% if firstSegments.PV1.19.4.1 != "" and firstSegments.PV1.19.4.1 != null and firstSegments.PV1.19.4.2 != "" and firstSegments.PV1.19.4.2 != null and firstSegments.PV1.19.4.3 != "" and firstSegments.PV1.19.4.3 != null -%} + {% evaluate Organization_ID_PV1_19_4 using 'ID/Organization' HDORG: firstSegments.PV1.19.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.19.4, ID: Organization_ID_PV1_19_4 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PV1.7 -%} + {% if firstSegments.PV1.7.9.1 != "" and firstSegments.PV1.7.9.1 != null and firstSegments.PV1.7.9.2 != "" and firstSegments.PV1.7.9.2 != null and firstSegments.PV1.7.9.3 != "" and firstSegments.PV1.7.9.3 != null -%} + {% evaluate Organization_ID_PV1_7_9 using 'ID/Organization' HDORG: firstSegments.PV1.7.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.7.9, ID: Organization_ID_PV1_7_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_7 using 'ID/Practitioner' XCN: firstSegments.PV1.7 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.7, ID: practitionerId_PV1_7 -%} + {% endif -%} + + {% if firstSegments.PV1.8 -%} + {% if firstSegments.PV1.8.9.1 != "" and firstSegments.PV1.8.9.1 != null and firstSegments.PV1.8.9.2 != "" and firstSegments.PV1.8.9.2 != null and firstSegments.PV1.8.9.3 != "" and firstSegments.PV1.8.9.3 != null -%} + {% evaluate Organization_ID_PV1_8_9 using 'ID/Organization' HDORG: firstSegments.PV1.8.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.8.9, ID: Organization_ID_PV1_8_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_8 using 'ID/Practitioner' XCN: firstSegments.PV1.8 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.8, ID: practitionerId_PV1_8 -%} + {% endif -%} + + {% if firstSegments.PV1.9 -%} + {% if firstSegments.PV1.9.9.1 != "" and firstSegments.PV1.9.9.1 != null and firstSegments.PV1.9.9.2 != "" and firstSegments.PV1.9.9.2 != null and firstSegments.PV1.9.9.3 != "" and firstSegments.PV1.9.9.3 != null -%} + {% evaluate Organization_ID_PV1_9_9 using 'ID/Organization' HDORG: firstSegments.PV1.9.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.9.9, ID: Organization_ID_PV1_9_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_9 using 'ID/Practitioner' XCN: firstSegments.PV1.9 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.9, ID: practitionerId_PV1_9 -%} + {% endif -%} + + {% if firstSegments.PV1.17 -%} + {% if firstSegments.PV1.17.9.1 != "" and firstSegments.PV1.17.9.1 != null and firstSegments.PV1.17.9.2 != "" and firstSegments.PV1.17.9.2 != null and firstSegments.PV1.17.9.3 != "" and firstSegments.PV1.17.9.3 != null -%} + {% evaluate Organization_ID_PV1_17_9 using 'ID/Organization' HDORG: firstSegments.PV1.17.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.17.9, ID: Organization_ID_PV1_17_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_17 using 'ID/Practitioner' XCN: firstSegments.PV1.17 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.17, ID: practitionerId_PV1_17 -%} + {% endif -%} + + {% if firstSegments.PV1.50 -%} + {% for p in firstSegments.PV1.50.Repeats -%} + {% if p.4.1 != "" and p.4.1 != null and p.4.2 != "" and p.4.2 != null and p.4.3 != "" and p.4.3 != null -%} + {% evaluate Organization_ID_PV1_50_4 using 'ID/Organization' HDORG: p.4 -%} + {% include 'Resource/Organization', PV1: p.4, ID: Organization_ID_PV1_50_4 -%} + {% endif -%} + {% endfor -%} + {% endif -%} + + {% if firstSegments.PV1.52 -%} + {% if firstSegments.PV1.52.9.1 != "" and firstSegments.PV1.52.9.1 != null and firstSegments.PV1.52.9.2 != "" and firstSegments.PV1.52.9.2 != null and firstSegments.PV1.52.9.3 != "" and firstSegments.PV1.52.9.3 != null -%} + {% evaluate Organization_ID_PV1_52_9 using 'ID/Organization' HDORG: firstSegments.PV1.52.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.52.9, ID: Organization_ID_PV1_52_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_52 using 'ID/Practitioner' XCN: firstSegments.PV1.52 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.52, ID: practitionerId_PV1_52 -%} + {% endif -%} + + {% if firstSegments.PV2.13 -%} + {% if firstSegments.PV2.13.9.1 != "" and firstSegments.PV2.13.9.1 != null and firstSegments.PV2.13.9.2 != "" and firstSegments.PV2.13.9.2 != null and firstSegments.PV2.13.9.3 != "" and firstSegments.PV2.13.9.3 != null -%} + {% evaluate Organization_ID_PV2_13_9 using 'ID/Organization' HDORG: firstSegments.PV2.13.9 -%} + {% include 'Resource/Organization', PV2: firstSegments.PV2.13.9, ID: Organization_ID_PV2_13_9 -%} + {% endif -%} + {% evaluate practitionerId_PV2_13 using 'ID/Practitioner' XCN: firstSegments.PV2.13 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV2.13, ID: practitionerId_PV2_13 -%} + {% endif -%} + + {% if firstSegments.PV1.3 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.3-%} + {% endif -%} + + {% if firstSegments.PV1.6 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.6 -%} + {% endif -%} + + {% if firstSegments.PV1.37 -%} + {% evaluate location_ID_PV1_37 using 'ID/Location' DLD: firstSegments.PV1.37 -%} + {% include 'Resource/Location' PV1: firstSegments.PV1.37, ID: location_ID_PV1_37-%} + {% endif -%} + + {% if firstSegments.PV1.42 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.42-%} + {% endif -%} + + {% if firstSegments.PV1.43 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.43-%} + {% endif -%} + + {% if firstSegments.PV2.1 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV2.1-%} + {% endif -%} + + {% if firstSegments.PV1.54 -%} + {% if firstSegments.PV1.54.4.1 != "" and firstSegments.PV1.54.4.1 != null and firstSegments.PV1.54.4.2 != "" and firstSegments.PV1.54.4.2 != null and firstSegments.PV1.54.4.3 != "" and firstSegments.PV1.54.4.3 != null -%} + {% evaluate Organization_ID_PV1_54_4 using 'ID/Organization' HDORG: firstSegments.PV1.54.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.54.4, ID: Organization_ID_PV1_54_4 -%} + {% endif -%} + {% evaluate EpisodeOfCare_ID using 'ID/EpisodeOfCare' PV1: firstSegments.PV1.54 -%} + {% include 'Resource/EpisodeOfCare' PV1: firstSegments.PV1, ID: EpisodeOfCare_ID, patientRefrenceID: fullPatientId -%} + {% endif -%} + + {% evaluate encounterId using 'ID/Encounter' PV1: firstSegments.PV1, baseId: patientId -%} + {% include 'Resource/Encounter' Root_Template: 'ADT_A31', PV1: firstSegments.PV1, PV2: firstSegments.PV2, ID: encounterId -%} + {% include 'Reference/Encounter/Subject' ID: encounterId, REF: fullPatientId -%} + {% include 'Extensions/Encounter/EncounterExtension' ID: encounterId, PV1: firstSegments.PV1, PV2: firstSegments.PV2, -%} + {% endif -%} + + {% if firstSegments.EVN -%} + {% evaluate provenanceId using 'ID/Provenance' EVN: firstSegments.EVN, baseId: patientId -%} + {% include 'Resource/Provenance' EVN: firstSegments.EVN, EVNTEXT: firstSegments.MSH.9, REF_BUNDLE: bundleID, ID: provenanceId -%} + {% if firstSegments.EVN.5 -%} + {% if firstSegments.EVN.5.9.1 != "" and firstSegments.EVN.5.9.1 != null and firstSegments.EVN.5.9.2 != "" and firstSegments.EVN.5.9.2 != null and firstSegments.EVN.5.9.3 != "" and firstSegments.EVN.5.9.3 != null -%} + {% evaluate Organization_ID_EVN_5_9 using 'ID/Organization' HDORG: firstSegments.EVN.5.9 -%} + {% include 'Resource/Organization', EVN: firstSegments.EVN.5.9, ID: Organization_ID_EVN_5_9 -%} + {% endif -%} + {% evaluate practitionerId_EVN_5 using 'ID/Practitioner' XCN: firstSegments.EVN.5 -%} + {% include 'Resource/Practitioner' EVN: firstSegments.EVN.5, ID: practitionerId_EVN_5 -%} + {% if firstSegments.EVN.7 -%} + {% evaluate locationId_EVN_7 using 'ID/Location' HD: firstSegments.EVN.7 -%} + {% include 'Resource/Location' EVN: firstSegments.EVN.7, ID: locationId_EVN_7 -%} + {% endif -%} + {% endif -%} + {% endif -%} + + {% for pr1Segment in pr1SegmentLists.PR1 -%} + {% if pr1Segment.8 -%} + {% if pr1Segment.8.9.1 != "" and pr1Segment.8.9.1 != null and pr1Segment.8.9.2 != "" and pr1Segment.8.9.2 != null and pr1Segment.8.9.3 != "" and pr1Segment.8.9.3 != null -%} + {% evaluate Organization_ID_PR1_8 using 'ID/Organization' HDORG: pr1Segment.8.9 -%} + {% include 'Resource/Organization', PR1: pr1Segment.8.9, ID: Organization_ID_PR1_8 -%} + {% endif -%} + {% evaluate practitionerId_PR1_8 using 'ID/Practitioner' XCN: pr1Segment.8 -%} + {% include 'Resource/Practitioner' PR1: pr1Segment.8, ID: practitionerId_PR1_8 -%} + {% endif -%} + + {% if pr1Segment.11 -%} + {% if pr1Segment.11.9.1 != "" and pr1Segment.11.9.1 != null and pr1Segment.11.9.2 != "" and pr1Segment.11.9.2 != null and pr1Segment.11.9.3 != "" and pr1Segment.11.9.3 != null -%} + {% evaluate Organization_ID_PR1_11 using 'ID/Organization' HDORG: pr1Segment.11.9 -%} + {% include 'Resource/Organization', PR1: pr1Segment.11.9, ID: Organization_ID_PR1_11 -%} + {% endif -%} + {% evaluate practitionerId_PR1_11 using 'ID/Practitioner' XCN: pr1Segment.11 -%} + {% include 'Resource/Practitioner' PR1: pr1Segment.11, ID: practitionerId_PR1_11 -%} + {% endif -%} + + {% if pr1Segment.12 -%} + {% if pr1Segment.12.9.1 != "" and pr1Segment.12.9.1 != null and pr1Segment.12.9.2 != "" and pr1Segment.12.9.2 != null and pr1Segment.12.9.3 != "" and pr1Segment.12.9.3 != null -%} + {% evaluate Organization_ID_PR1_12 using 'ID/Organization' HDORG: pr1Segment.12.9 -%} + {% include 'Resource/Organization', PR1: pr1Segment.12.9, ID: Organization_ID_PR1_12 -%} + {% endif -%} + {% evaluate practitionerId_PR1_12 using 'ID/Practitioner' XCN: pr1Segment.12 -%} + {% include 'Resource/Practitioner' PR1: pr1Segment.12, ID: practitionerId_PR1_12 -%} + {% endif -%} + + {% if pr1Segment.23.1 -%} + {% evaluate Location_ID_PR1_23_1 using 'ID/Location' PL: pr1Segment.23.1 -%} + {% include 'Resource/PLLocation' PL_1: pr1Segment.23.1, ID: Location_ID_PR1_23_1-%} + {% else %} + {% if pr1Segment.23.2 %} + {% evaluate Location_ID_PR1_23_2 using 'ID/Location' PL: pr1Segment.23.2 -%} + {% include 'Resource/PLLocation' PL_2: pr1Segment.23.2, ID: Location_ID_PR1_23_2-%} + {% endif %} + {% endif %} + + {% if pr1Segment.25 -%} + {% evaluate Procedure_ID_PR1_25 using 'ID/Procedure' PR1: pr1Segment.25, baseId: fullPatientId -%} + {% include 'Resource/Procedure' PR1_25: pr1Segment.25, PV1: firstSegments.PV1, Procedure_Subject_ID: fullPatientId, ID: Procedure_ID_PR1_25 -%} + {% endif -%} + + {% evaluate procedureId using 'ID/Procedure' PR1: pr1Segment, baseId: patientId -%} + {% include 'Resource/Procedure' PR1: pr1Segment, PV1: firstSegments.PV1, Procedure_Subject_ID: fullPatientId, ID: procedureId -%} + {% endfor -%} + + {% for nk1Segment in nk1SegmentLists.NK1 -%} + {% evaluate relatedPersonId using 'ID/RelatedPerson' NK1: nk1Segment, baseId: patientId -%} + {% if nk1Segment.13 -%} + {% evaluate organizationId_NK1_13 using 'ID/Organization' XON: nk1Segment.13 -%} + {% include 'Resource/Organization' NK1: nk1Segment, ID: organizationId_NK1_13 -%} + {% assign Organization_NK1_13 = organizationId_NK1_13 | prepend: 'Organization/' -%} + {% include 'Reference/Patient/Contact_Organization' REF:Organization_NK1_13 , ID: patientId -%} + {% endif -%} + {% unless nk1Segment.3.1.Value == "EMR" or nk1Segment.3.1.Value == "CGV" or nk1Segment.7.1.Value == "E" or nk1Segment.7.1.Value =="F" or nk1Segment.7.1.Value == "I" or nk1Segment.7.1.Value =="S" -%} + {% include 'Resource/Patient' NK1: nk1Segment, ID: patientId -%} + {% include 'Resource/RelatedPerson' NK1: nk1Segment, RelatedPerson_Patient_ID: fullPatientId, ID: relatedPersonId, PID: firstSegments.PID -%} + {% include 'Extensions/RelatedPerson/RelatedPerson' ID: relatedPersonId, NK1: nk1Segment -%} + {% if nk1Segment.12.4.1 != "" and nk1Segment.12.4.1 != null and nk1Segment.12.4.2 != "" and nk1Segment.12.4.2 != null and nk1Segment.12.4.3 != "" and nk1Segment.12.4.3 != null -%} + {% evaluate Organization_ID_nk_CX_12 using 'ID/Organization' HDORG: nk1Segment.12.4 -%} + {% include 'Resource/Organization', NK1_12: nk1Segment.12, ID: Organization_ID_nk_CX_12 -%} + {% endif -%} + {% endunless -%} + {% if firstSegments.PID.21 -%} + {% include 'Resource/RelatedPerson' ID: relatedPersonId, PID: firstSegments.PID, RelatedPerson_Patient_ID: fullPatientId -%} + {% if firstSegments.PID.21.4.1 != "" and firstSegments.PID.21.4.1 != null and firstSegments.PID.21.4.2 != "" and firstSegments.PID.21.4.2 != null and firstSegments.PID.21.4.3 != "" and firstSegments.PID.21.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_21 using 'ID/Organization' HDORG: firstSegments.PID.21.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.21, ID: Organization_ID_pid_CX_21 -%} + {% endif -%} + {% endif -%} + + {% for nk33 in nk1Segment.33.Repeats -%} + {% if nk33.4.1 != "" and nk33.4.1 != null and nk33.4.2 != "" and nk33.4.2 != null and nk33.4.3 != "" and nk33.4.3 != null -%} + {% evaluate Organization_ID_nk_CX_33 using 'ID/Organization' HDORG: nk33.4 -%} + {% include 'Resource/Organization', NK1_33: nk33, ID: Organization_ID_nk_CX_33 -%} + {% endif -%} + {% endfor -%} + {% endfor -%} + + {% for db1Segment in db1SegmentLists.DB1 -%} + {% if db1Segment.2.1.Value == "PT" %} + {% for db in db1Segment.3.Repeats -%} + {% if db.4.1 != "" and db.4.1 != null and db.4.2 != "" and db.4.2 != null and db.4.3 != "" and db.4.3 != null -%} + {% evaluate Organization_ID_DB1_3 using 'ID/Organization' HDORG: db.4 -%} + {% include 'Resource/Organization', DB1: db.4, ID: Organization_ID_DB1_3 -%} + {% endif -%} + {% endfor %} + {% include 'Extensions/Patient/PatientExtension' ID: PatientId, DB1: db1Segment -%} + {% endif -%} + {% include 'Resource/Patient' DB1: db1Segment, ID: patientId -%} + {% endfor %} + + {% for obxSegment in obxSegmentLists.OBX -%} + {% for obx_16 in obxSegment.16.Repeats -%} + {% if obx_16.9.1 != "" and obx_16.9.1 != null and obx_16.9.2 != "" and obx_16.9.2 != null and obx_16.9.3 != "" and obx_16.9.3 != null -%} + {% evaluate Organization_ID_OBX_16 using 'ID/Organization' HDORG: obx_16.9 -%} + {% include 'Resource/Organization' OBX: obx_16.9, ID: Organization_ID_OBX_16 -%} + {% endif -%} + {% evaluate practitionerId_OBX_16 using 'ID/Practitioner' XCN: obx_16 -%} + {% include 'Resource/Practitioner' OBX: obxSegment, OBXXCN1: obx_16, ID: practitionerId_OBX_16 -%} + {% evaluate practitionerRoleId_OBX_16 using 'ID/PractitionerRole' XCN: obx_16 -%} + {% assign full_practitionerId_OBX_16 = practitionerId_OBX_16 | prepend: 'Practitioner/' %} + {% include 'Resource/PractitionerRole' OBXXCN1: obx_16, ID: practitionerRoleId_OBX_16 -%} + {% include 'Reference/PractitionerRole/Practitioner' REF: full_practitionerId_OBX_16, ID: practitionerRoleId_OBX_16 -%} + {% endfor %} + {% if obxSegment.18 -%} + {% evaluate deviceId_OBX_18 using 'ID/Device' EI: obxSegment.18.Repeats[0] -%} + {% include 'Resource/Device' EI_OBX18: obxSegment.18, ID: deviceId_OBX_18 -%} + {% endif -%} + {% if obxSegment.23 or obxSegment.25 %} + {% evaluate practitionerRoleId_OBX_25 using 'ID/PractitionerRole' XCN: obxSegment.25 -%} + {% endif %} + {% if obxSegment.25 -%} + {% evaluate practitionerId_OBX_25 using 'ID/Practitioner' XCN: obxSegment.25 -%} + {% include 'Resource/Practitioner' OBX: obxSegment, OBXXCN2: obxSegment.25, ID: practitionerId_OBX_25 -%} + {% assign full_practitionerId_OBX_25 = practitionerId_OBX_25 | prepend: 'Practitioner/' %} + {% include 'Resource/PractitionerRole' OBXXCN2: obxSegment.25, ID: practitionerRoleId_OBX_25 -%} + {% include 'Reference/PractitionerRole/Practitioner' REF: full_practitionerId_OBX_25, ID: practitionerRoleId_OBX_25 -%} + {% endif -%} + {% if obxSegment.23 -%} + {% evaluate organizationId_OBX_23 using 'ID/Organization' XON: obxSegment.23 -%} + {% include 'Resource/Organization' OBX_23: obxSegment.23, OBX_24: obxSegment.24, ID: organizationId_OBX_23 -%} + {% if obxSegment.25 -%} + {% assign full_organizationId_OBX_23 = organizationId_OBX_23 | prepend: 'Organization/' %} + {% include 'Reference/PractitionerRole/Organization' REF: full_organizationId_OBX_23, ID: practitionerRoleId_OBX_25 -%} + {% endif -%} + {% endif -%} + {% evaluate observationId using 'ID/Observation' OBX: obxSegment, baseId: patientId -%} + {% include 'Resource/Observation' OBX: obxSegment, Observation_Subject_ID: fullPatientId, ID: observationId -%} + {% include 'Extensions/Observation/ObservationExtension' OBX: obxSegment, ID: observationId %} + {% endfor -%} + + {% for al1Segment in al1SegmentLists.AL1 -%} + {% evaluate allergyIntoleranceId using 'ID/AllergyIntolerance' AL1: al1Segment, baseId: patientId -%} + {% include 'Resource/AllergyIntolerance' AL1: al1Segment, ID: allergyIntoleranceId, AllergyIntolerance_Patient_ID: fullPatientId -%} + {% endfor -%} + + {% for dg1Segment in dg1SegmentLists.DG1 -%} + {% if dg1Segment.16.Repeats[0] %} + {% if dg1Segment.16.Repeats[0].9.1 != "" and dg1Segment.16.Repeats[0].9.1 != null and dg1Segment.16.Repeats[0].9.2 != "" and dg1Segment.16.Repeats[0].9.2 != null and dg1Segment.16.Repeats[0].9.3 != "" and dg1Segment.16.Repeats[0].9.3 != null -%} + {% evaluate Organization_ID_DG1_16 using 'ID/Organization' HDORG: dg1Segment.16.Repeats[0].9 -%} + {% include 'Resource/Organization', DG1: dg1Segment.16.Repeats[0].9, ID: Organization_ID_DG1_16 -%} + {% endif -%} + {% evaluate practitionerId_DG1_16 using 'ID/Practitioner' XCN: dg1Segment.16.Repeats[0] -%} + {% include 'Resource/Practitioner' DG1: dg1Segment, ID: practitionerId_DG1_16 -%} + {% endif -%} + + {% evaluate conditionId using 'ID/Condition' DG1: dg1Segment, baseId: patientId -%} + {% include 'Resource/Condition' DG1: dg1Segment, Condition_Subject_ID: fullPatientId, baseId: patientId, ID: conditionId -%} + + {% if encounterId -%} + {% include 'Resource/Encounter' DG1: dg1Segment, conditionId: conditionId, ID: encounterId -%} + {% endif -%} + {% if EpisodeOfCare_ID %} + {% include 'Resource/EpisodeOfCare' DG1: dg1Segment, conditionId: conditionId, ID: EpisodeOfCare_ID -%} + {% endif %} + {% if dg1Segment.22 -%} + {% evaluate conditionId_DG1_22 using 'ID/Condition' DG1: dg1Segment.22, baseId: patientId -%} + {% include 'Resource/Condition' DG1_22: dg1Segment.22, Condition_Subject_ID_DG1_22: fullPatientId, ID: conditionId_DG1_22 -%} + {% endif -%} + {% include 'Extensions/Condition/ConditionExtension' DG1: dg1Segment, ID_DG1_22:conditionId_DG1_22, ID: conditionId %} + + {% endfor -%} + + {% for rf1Segment in rf1SegmentLists.RF1 -%} + {% if rf1Segment.19 -%} + {% evaluate Organization_ID_RF1_19 using 'ID/Organization' XON: rf1Segment.19 -%} + {% include 'Resource/Organization' RF1: rf1Segment.19, ID: Organization_ID_RF1_19 -%} + {% endif -%} + + {% if rf1Segment.20 -%} + {% if rf1Segment.20.9.1 != "" and rf1Segment.20.9.1 != null and rf1Segment.20.9.2 != "" and rf1Segment.20.9.2 != null and rf1Segment.20.9.3 != "" and rf1Segment.20.9.3 != null -%} + {% evaluate Organization_ID_RF1_20_9 using 'ID/Organization' HDORG: rf1Segment.20.9 -%} + {% include 'Resource/Organization', RF1_20: rf1Segment.20.9, ID: Organization_ID_RF1_20_9 -%} + {% endif -%} + {% evaluate Practitioner_ID_RF1_20 using 'ID/Practitioner' XCN: rf1Segment.20 -%} + {% include 'Resource/Practitioner' RF1: rf1Segment.20, ID: Practitioner_ID_RF1_20 -%} + {% endif -%} + + {% evaluate serviceRequestId using 'ID/ServiceRequest' RF1: rf1Segment, baseId: patientId -%} + {% include 'Resource/ServiceRequest' RF1: rf1Segment, ID: serviceRequestId, ServiceRequest_Subject_ID: fullPatientId -%} + {% endfor -%} + + {% for in1Segment in in1SegmentLists.IN1 -%} + + {% evaluate coverageId using 'ID/Coverage' CX: in1Segment -%} + {% include 'Resource/Coverage' IN1: in1Segment, ID: coverageId -%} + {% include 'Reference/Coverage/Beneficiary' ID: coverageId, REF: fullPatientId -%} + + {% for in1_49 in in1Segment.49.Repeats -%} + {% if in1_49.4.1 != "" and in1_49.4.1 != null and in1_49.4.2 != "" and in1_49.4.2 != null and in1_49.4.3 != "" and in1_49.4.3 != null -%} + {% evaluate Organization_ID_in1_CX_49 using 'ID/Organization' HDORG: in1_49.4 -%} + {% include 'Resource/Organization', IN1_49: in1_49, ID: Organization_ID_in1_CX_49 -%} + {% endif -%} + {% endfor -%} + + {% for in1_3 in in1Segment.3.Repeats -%} + {% if in1_3.4.1 != "" and in1_3.4.1 != null and in1_3.4.2 != "" and in1_3.4.2 != null and in1_3.4.3 != "" and in1_3.4.3 != null -%} + {% evaluate Organization_ID_in1_CX_3 using 'ID/Organization' HDORG: in1_3.4 -%} + {% include 'Resource/Organization', IN1_3: in1_3, ID: Organization_ID_in1_CX_3 -%} + {% endif -%} + {% endfor -%} + + {% for in1_10 in in1Segment.10.Repeats -%} + {% if in1_10.4.1 != "" and in1_10.4.1 != null and in1_10.4.2 != "" and in1_10.4.2 != null and in1_10.4.3 != "" and in1_10.4.3 != null -%} + {% evaluate Organization_ID_in1_CX_10 using 'ID/Organization' HDORG: in1_10.4 -%} + {% include 'Resource/Organization', IN1_10: in1_10, ID: Organization_ID_in1_CX_10 -%} + {% endif -%} + {% endfor -%} + + {% if in1Segment.4 -%} + {% evaluate Organization_ID_in1_4 using 'ID/Organization' XON: in1Segment.4 -%} + {% else -%} + {% evaluate Organization_ID_in1_4 using 'ID/Organization' CX: in1Segment -%} + {% endif -%} + {% if Organization_ID_in1_4 -%} + {% include 'Resource/Organization', IN1: in1Segment, ID: Organization_ID_in1_4 -%} + {% assign org_in1_4 = Organization_ID_in1_4 | prepend: 'Organization/' -%} + {% include 'Reference/Coverage/Payor' ID: coverageId, REF: org_in1_4 -%} + {% endif -%} + + {% if in1Segment.11 -%} + {% evaluate Organization_ID_in1_11 using 'ID/Organization' XON: in1Segment.11 -%} + {% else -%} + {% evaluate Organization_ID_in1_11 using 'ID/Organization' CX_IN1: in1Segment -%} + {% endif -%} + {% if Organization_ID_in1_11 -%} + {% include 'Resource/Organization', IN1_11: in1Segment, ID: Organization_ID_in1_11 -%} + {% assign org_in1_11 = Organization_ID_in1_11 | prepend: 'Organization/' -%} + {% include 'Reference/Coverage/PolicyHolder' ID: coverageId, REF: org_in1_11 -%} + {% endif -%} + + {% if in1Segment.17.1.Value == "SEL" -%} + {% include 'Resource/Patient' PID_IN1: firstSegments.PID, IN1: in1Segment, ID: patientId -%} + {% include 'Reference/Coverage/Subscriber' ID: coverageId, REF: fullPatientId -%} + {% endif -%} + {% unless in1Segment.17.1.Value == "SEL" or in1Segment.17.Value == "" -%} + {% evaluate in1relatedPersonId using 'ID/RelatedPerson' IN1: in1Segment, baseId: patientId -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: in1relatedPersonId, IN1: in1Segment -%} + {% assign rel_in1_17 = in1relatedPersonId | prepend: 'RelatedPerson/' -%} + {% include 'Reference/Coverage/Subscriber' ID: coverageId, REF: rel_in1_17 -%} + {% endunless -%} + + {% for in2Segment in in2SegmentLists.IN2 -%} + {% if in1Segment.17.1.Value == "SEL" -%} + {% include 'Resource/Patient' IN2: in2Segment, ID: patientId -%} + {% endif -%} + {% unless in1Segment.17.1.Value == "SEL" or in1Segment.17.Value == "" -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: in1relatedPersonId, IN2: in2Segment -%} + {% endunless -%} + + {% unless in1Segment.10 and in1Segment.11 -%} + {% if in2Segment.3 -%} + {% evaluate in2relatedPersonId using 'ID/RelatedPerson' IN2: in2Segment, baseId: patientId -%} + {% if in2Segment.3.9.1 != "" and in2Segment.3.9.1 != null and in2Segment.3.9.2 != "" and in2Segment.3.9.2 != null and in2Segment.3.9.3 != "" and in2Segment.3.9.3 != null -%} + {% evaluate Organization_ID_IN2_3_9 using 'ID/Organization' HDORG: in2Segment.3.9 -%} + {% include 'Resource/Organization', IN2_3: in2Segment.3.9, ID: Organization_ID_IN2_3_9 -%} + {% endif -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: in2relatedPersonId, IN2_3: in2Segment -%} + {% assign relatedperson_3 = in2relatedPersonId | prepend: 'RelatedPerson/' -%} + {% include 'Reference/Coverage/PolicyHolder' ID: coverageId, REF: relatedperson_3 -%} + {% endif -%} + {% endunless -%} + + {% if in1Segment.10 == null and in1Segment.11 == null and in2Segment.3 == null -%} + {% if in2Segment.70 -%} + {% evaluate organization_Id_IN2_70 using 'ID/Organization' XON: in2Segment.70 -%} + {% include 'Resource/Organization' IN2_70: in2Segment, ID: organization_Id_IN2_70 -%} + {% assign org_in2_70 = organization_Id_IN2_70 | prepend: 'Organization/' -%} + {% include 'Reference/Coverage/PolicyHolder' ID: coverageId, REF: org_in2_70 -%} + {% endif -%} + {% endif -%} + + {% if Organization_ID_in1_11 -%} + {% include 'Resource/Organization', IN2_49: in2Segment, ID: Organization_ID_in1_11 -%} + {% endif -%} + {% include 'Resource/Coverage' IN2: in2Segment, ID: coverageId -%} + {% include 'Resource/Patient' IN2_6: in2Segment, ID: patientId -%} + + {% for in2_1 in in2Segment.1.Repeats -%} + {% if in2_1.4.1 != "" and in2_1.4.1 != null and in2_1.4.2 != "" and in2_1.4.2 != null and in2_1.4.3 != "" and in2_1.4.3 != null -%} + {% evaluate Organization_ID_in2_CX_1 using 'ID/Organization' HDORG: in2_1.4 -%} + {% include 'Resource/Organization', IN2_1: in2_1, ID: Organization_ID_in2_CX_1 -%} + {% endif -%} + {% endfor -%} + {% if in2Segment.61 -%} + {% if in2Segment.61.4.1 != "" and in2Segment.61.4.1 != null and in2Segment.61.4.2 != "" and in2Segment.61.4.2 != null and in2Segment.61.4.3 != "" and in2Segment.61.4.3 != null -%} + {% evaluate Organization_ID_in2_CX_61 using 'ID/Organization' HDORG: in2Segment.61.4 -%} + {% include 'Resource/Organization', IN2_61: in2Segment.61, ID: Organization_ID_in2_CX_61 -%} + {% endif -%} + {% endif -%} + {% endfor -%} + + {% endfor -%} + + ] +} \ No newline at end of file diff --git a/data/Templates/Hl7v2/ADT_A47.liquid b/data/Templates/Hl7v2/ADT_A47.liquid new file mode 100644 index 000000000..7ed5333f6 --- /dev/null +++ b/data/Templates/Hl7v2/ADT_A47.liquid @@ -0,0 +1,144 @@ +{% assign firstSegments = hl7v2Data | get_first_segments: 'PID|UAC|EVN|PD1|MSH|MRG' -%} +{% assign arvSegmentLists = hl7v2Data | get_segment_lists: 'ARV' -%} +{% assign sftSegmentLists = hl7v2Data | get_segment_lists: 'SFT' -%} +{% evaluate bundleID using 'ID/Bundle' Data: firstSegments.MSH.10 -%} +{ + "resourceType": "Bundle", + "type": "batch", + {% if firstSegments.MSH.7 -%} + "timestamp":"{{ firstSegments.MSH.7.Value | format_as_date_time }}", + {% endif -%} + "identifier": + { + "value":"{{ firstSegments.MSH.10.Value }}", + }, + "id":"{{ bundleID }}", + "entry": [ + {% evaluate patientId using 'ID/Patient' PID: firstSegments.PID, type: 'First' -%} + {% assign fullPatientId = patientId | prepend: 'Patient/' -%} + {% evaluate messageHeaderId using 'ID/MessageHeader' MSH: firstSegments.MSH -%} + + {% if firstSegments.MSH -%} + {% include 'Resource/MessageHeader' MSH: firstSegments.MSH, ID: messageHeaderId -%} + {% evaluate provenanceId using 'ID/Provenance' MSH: firstSegments.MSH, baseId: patientId -%} + {% include 'Resource/Provenance' Root_Template: 'ADT_A47', MSH: firstSegments.MSH, REF_BUNDLE: bundleID, ID: provenanceId -%} + + {%- comment -%} + {% assign transformation_val = 'provenance_transformation' %} + {% evaluate provenanceOrganizationId using 'ID/Organization', prov_id: firstSegments.MSH -%} + {% evaluate provenanceTransformationId using 'ID/Provenance_transformation' prov_id: transformation_val -%} + {% include 'Resource/Organization' org_name: 'Microsoft Corporation', ID: provenanceOrganizationId -%} + {% include 'Resource/Provenance_transformation' Root_Template: 'ADT_A47', Provenance_Organization_ID: provenanceOrganizationId, REF_MSH: messageHeaderId, provenanceOrganizationId, ID: provenanceTransformationId -%} + {%- endcomment -%} + {% if firstSegments.MSH.4 -%} + {% if firstSegments.MSH.4.1 != "" and firstSegments.MSH.4.1 != null or firstSegments.MSH.4.2 != "" and firstSegments.MSH.4.2 != null or firstSegments.MSH.4.3 != "" and firstSegments.MSH.4.3 != null -%} + {% evaluate organization_ID_MSH_4 using 'ID/Organization' HD: firstSegments.MSH.4 -%} + {% include 'Resource/Organization' MSHHD1: firstSegments.MSH.4, MSH: firstSegments.MSH, ID: organization_ID_MSH_4 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.6 %} + {% if firstSegments.MSH.6.1 != "" and firstSegments.MSH.6.1 != null or firstSegments.MSH.6.2 != "" and firstSegments.MSH.6.2 != null or firstSegments.MSH.6.3 != "" and firstSegments.MSH.6.3 != null -%} + {% evaluate organization_Id_MSH_6 using 'ID/Organization' HD: firstSegments.MSH.6 -%} + {% include 'Resource/Organization' MSHHD2: firstSegments.MSH.6, MSH: firstSegments.MSH, ID: organization_Id_MSH_6 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.22 %} + {% if firstSegments.MSH.22.1 != "" and firstSegments.MSH.22.1 != null -%} + {% evaluate organization_Id_MSH_22 using 'ID/Organization' XON: firstSegments.MSH.22 -%} + {% include 'Resource/Organization' MSHXON1: firstSegments.MSH.22, ID: organization_Id_MSH_22 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.23 %} + {% if firstSegments.MSH.23.1 != "" and firstSegments.MSH.23.1 != null -%} + {% evaluate organization_Id_MSH_23 using 'ID/Organization' XON: firstSegments.MSH.23 -%} + {% include 'Resource/Organization' MSHXON2: firstSegments.MSH.23, ID: organization_Id_MSH_23 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.3 and firstSegments.MSH.24 %} + {% evaluate device_Id_MSH_3 using 'ID/Device' HD: firstSegments.MSH.3 -%} + {% include 'Resource/Device' MSH: firstSegments.MSH, ID: device_Id_MSH_3 -%} + {% endif -%} + {% endif -%} + + {% for sftSegment in sftSegmentLists.SFT -%} + {% evaluate deviceId_SFT using 'ID/Device' SFT: sftSegment -%} + {% include 'Resource/Device' SFT:sftSegment, ID: deviceId_SFT -%} + {% include 'Resource/MessageHeader' MSH: firstSegments.MSH, SFT:sftSegment, ID: messageHeaderID -%} + {% endfor -%} + + {% include 'Resource/Patient' PID: firstSegments.PID, PD1: firstSegments.PD1, ID: patientId -%} + {% include 'Extensions/Patient/PatientExtension' ID: PatientId, PID: firstSegments.PID, PD1: firstSegments.PD1 -%} + + {% if firstSegments.PID.18 -%} + {% evaluate accountId using 'ID/Account' CX: firstSegments.PID.3 -%} + {% include 'Resource/Account' PID: firstSegments.PID, ID: accountId -%} + {% include 'Reference/Account/Subject' ID: accountId, REF: fullPatientId -%} + {% if firstSegments.PID.18.4.1 != "" and firstSegments.PID.18.4.1 != null and firstSegments.PID.18.4.2 != "" and firstSegments.PID.18.4.2 != null and firstSegments.PID.18.4.3 != "" and firstSegments.PID.18.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_18 using 'ID/Organization' HDORG: firstSegments.PID.18.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.18, ID: Organization_ID_pid_CX_18 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PID.2 -%} + {% if firstSegments.PID.2.4.1 != "" and firstSegments.PID.2.4.1 != null and firstSegments.PID.2.4.2 != "" and firstSegments.PID.2.4.2 != null and firstSegments.PID.2.4.3 != "" and firstSegments.PID.2.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_2 using 'ID/Organization' HDORG: firstSegments.PID.2.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.2, ID: Organization_ID_pid_CX_2 -%} + {% endif -%} + {% endif -%} + {% for pid3 in firstSegments.PID.3.Repeats -%} + {% if pid3.4.1 != "" and pid3.4.1 != null and pid3.4.2 != "" and pid3.4.2 != null and pid3.4.3 != "" and pid3.4.3 != null -%} + {% evaluate Organization_ID_pid_CX using 'ID/Organization' HDORG: pid3.4 -%} + {% include 'Resource/Organization', PID: pid3, ID: Organization_ID_pid_CX -%} + {% endif -%} + {% endfor -%} + {% if firstSegments.PID.4 -%} + {% if firstSegments.PID.4.4.1 != "" and firstSegments.PID.4.4.1 != null and firstSegments.PID.4.4.2 != "" and firstSegments.PID.4.4.2 != null and firstSegments.PID.4.4.3 != "" and firstSegments.PID.4.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_4 using 'ID/Organization' HDORG: firstSegments.PID.4.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.4, ID: Organization_ID_pid_CX_4 -%} + {% endif -%} + {% endif -%} + + {% unless nk1SegmentLists.NK1 -%} + {% if firstSegments.PID.21 -%} + {% if firstSegments.PID.21.4.1 != "" and firstSegments.PID.21.4.1 != null and firstSegments.PID.21.4.2 != "" and firstSegments.PID.21.4.2 != null and firstSegments.PID.21.4.3 != "" and firstSegments.PID.21.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_21 using 'ID/Organization' HDORG: firstSegments.PID.21.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.21, ID: Organization_ID_pid_CX_21 -%} + {% endif -%} + {% evaluate pidrelatedPersonId using 'ID/RelatedPerson' PID: firstSegments.PID, baseId: patientId -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: pidrelatedPersonId, PID: firstSegments.PID -%} + {% endif -%} + {% endunless -%} + + {% if firstSegments.PD1.3 -%} + {% evaluate Organization_ID_PD1_3 using 'ID/Organization' XON: firstSegments.PD1.3 -%} + {% include 'Resource/Organization' PD1: firstSegments.PD1, ID: Organization_ID_PD1_3 -%} + {% endif -%} + + {% if firstSegments.PD1.4 -%} + {% if firstSegments.PD1.4.9.1 != "" and firstSegments.PD1.4.9.1 != null and firstSegments.PD1.4.9.2 != "" and firstSegments.PD1.4.9.2 != null and firstSegments.PD1.4.9.3 != "" and firstSegments.PD1.4.9.3 != null -%} + {% evaluate Organization_ID_PD1_4_9 using 'ID/Organization' HDORG: firstSegments.PD1.4.9 -%} + {% include 'Resource/Organization', PD1_4: firstSegments.PD1.4.9, ID: Organization_ID_PD1_4_9 -%} + {% endif -%} + {% evaluate Practitioner_ID_PD1_4 using 'ID/Practitioner' XCN: firstSegments.PD1.4 -%} + {% include 'Resource/Practitioner' PD1: firstSegments.PD1.4, ID: Practitioner_ID_PD1_4 -%} + {% endif -%} + + {% if firstSegments.EVN -%} + {% evaluate provenanceId using 'ID/Provenance' EVN: firstSegments.EVN, baseId: patientId -%} + {% include 'Resource/Provenance' EVN: firstSegments.EVN, EVNTEXT: firstSegments.MSH.9, REF_BUNDLE: bundleID, ID: provenanceId -%} + {% if firstSegments.EVN.5 -%} + {% if firstSegments.EVN.5.9.1 != "" and firstSegments.EVN.5.9.1 != null and firstSegments.EVN.5.9.2 != "" and firstSegments.EVN.5.9.2 != null and firstSegments.EVN.5.9.3 != "" and firstSegments.EVN.5.9.3 != null -%} + {% evaluate Organization_ID_EVN_5_9 using 'ID/Organization' HDORG: firstSegments.EVN.5.9 -%} + {% include 'Resource/Organization', EVN: firstSegments.EVN.5.9, ID: Organization_ID_EVN_5_9 -%} + {% endif -%} + {% evaluate practitionerId_EVN_5 using 'ID/Practitioner' XCN: firstSegments.EVN.5 -%} + {% include 'Resource/Practitioner' EVN: firstSegments.EVN.5, ID: practitionerId_EVN_5 -%} + {% if firstSegments.EVN.7 -%} + {% evaluate locationId_EVN_7 using 'ID/Location' HD: firstSegments.EVN.7 -%} + {% include 'Resource/Location' EVN: firstSegments.EVN.7, ID: locationId_EVN_7 -%} + {% endif -%} + {% endif -%} + {% endif -%} + + ] +} \ No newline at end of file diff --git a/data/Templates/Hl7v2/ADT_A60.liquid b/data/Templates/Hl7v2/ADT_A60.liquid new file mode 100644 index 000000000..0943f03d4 --- /dev/null +++ b/data/Templates/Hl7v2/ADT_A60.liquid @@ -0,0 +1,291 @@ +{% assign firstSegments = hl7v2Data | get_first_segments: 'PID|PV1|PV2|MSH|EVN|IAM' -%} +{% assign sftSegmentLists = hl7v2Data | get_segment_lists: 'SFT' -%} +{% assign uacSegmentLists = hl7v2Data | get_segment_lists: 'UAC' -%} +{% assign arvSegmentLists = hl7v2Data | get_segment_lists: 'ARV' -%} +{% assign nteSegmentLists = hl7v2Data | get_segment_lists: 'NTE' -%} +{% assign iarSegmentLists = hl7v2Data | get_segment_lists: 'IAR' -%} +{% evaluate bundleID using 'ID/Bundle' Data: firstSegments.MSH.10 -%} +{ + "resourceType": "Bundle", + "type": "batch", + {% if firstSegments.MSH.7 -%} + "timestamp":"{{ firstSegments.MSH.7.Value | format_as_date_time }}", + {% endif -%} + "identifier": + { + "value":"{{ firstSegments.MSH.10.Value }}", + }, + "id":"{{ bundleID }}", + "entry": [ + {% evaluate patientId using 'ID/Patient' PID: firstSegments.PID, type: 'First' -%} + {% assign fullPatientId = patientId | prepend: 'Patient/' -%} + {% evaluate messageHeaderId using 'ID/MessageHeader' MSH: firstSegments.MSH -%} + + {% if firstSegments.MSH -%} + {% include 'Resource/MessageHeader' MSH: firstSegments.MSH, ID: messageHeaderId -%} + {% evaluate provenanceId using 'ID/Provenance' MSH: firstSegments.MSH, baseId: patientId -%} + {% include 'Resource/Provenance' Root_Template: 'ADT_A60', MSH: firstSegments.MSH, REF_BUNDLE: bundleID, ID: provenanceId -%} + + {%- comment -%} + {% assign transformation_val = 'provenance_transformation' %} + {% evaluate provenanceOrganizationId using 'ID/Organization', prov_id: firstSegments.MSH -%} + {% evaluate provenanceTransformationId using 'ID/Provenance_transformation' prov_id: transformation_val -%} + {% include 'Resource/Organization' org_name: 'Microsoft Corporation', ID: provenanceOrganizationId -%} + {% include 'Resource/Provenance_transformation' Root_Template: 'ADT_A60', Provenance_Organization_ID: provenanceOrganizationId, REF_MSH: messageHeaderId, provenanceOrganizationId, ID: provenanceTransformationId -%} + {%- endcomment -%} + + {% if firstSegments.MSH.4 -%} + {% if firstSegments.MSH.4.1 != "" and firstSegments.MSH.4.1 != null or firstSegments.MSH.4.2 != "" and firstSegments.MSH.4.2 != null or firstSegments.MSH.4.3 != "" and firstSegments.MSH.4.3 != null -%} + {% evaluate organization_ID_MSH_4 using 'ID/Organization' HD: firstSegments.MSH.4 -%} + {% include 'Resource/Organization' MSHHD1: firstSegments.MSH.4, MSH: firstSegments.MSH, ID: organization_ID_MSH_4 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.6 %} + {% if firstSegments.MSH.6.1 != "" and firstSegments.MSH.6.1 != null or firstSegments.MSH.6.2 != "" and firstSegments.MSH.6.2 != null or firstSegments.MSH.6.3 != "" and firstSegments.MSH.6.3 != null -%} + {% evaluate organization_Id_MSH_6 using 'ID/Organization' HD: firstSegments.MSH.6 -%} + {% include 'Resource/Organization' MSHHD2: firstSegments.MSH.6, MSH: firstSegments.MSH, ID: organization_Id_MSH_6 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.22 %} + {% if firstSegments.MSH.22.1 != "" and firstSegments.MSH.22.1 != null -%} + {% evaluate organization_Id_MSH_22 using 'ID/Organization' XON: firstSegments.MSH.22 -%} + {% include 'Resource/Organization' MSHXON1: firstSegments.MSH.22, ID: organization_Id_MSH_22 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.23 %} + {% if firstSegments.MSH.23.1 != "" and firstSegments.MSH.23.1 != null -%} + {% evaluate organization_Id_MSH_23 using 'ID/Organization' XON: firstSegments.MSH.23 -%} + {% include 'Resource/Organization' MSHXON2: firstSegments.MSH.23, ID: organization_Id_MSH_23 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.MSH.3 and firstSegments.MSH.24 %} + {% evaluate device_Id_MSH_3 using 'ID/Device' HD: firstSegments.MSH.3 -%} + {% include 'Resource/Device' MSH: firstSegments.MSH, ID: device_Id_MSH_3 -%} + {% endif -%} + {% endif -%} + + {% for sftSegment in sftSegmentLists.SFT -%} + {% evaluate deviceId_SFT using 'ID/Device' SFT: sftSegment -%} + {% include 'Resource/Device' SFT:sftSegment, ID: deviceId_SFT -%} + {% include 'Resource/MessageHeader' MSH: firstSegments.MSH, SFT:sftSegment, ID: messageHeaderID -%} + {% endfor -%} + + {% include 'Resource/Patient' PID: firstSegments.PID, ID: patientId -%} + {% include 'Extensions/Patient/PatientExtension' ID: PatientId, PID: firstSegments.PID, PV1: firstSegments.PV1 -%} + + {% if firstSegments.PID.18 -%} + {% evaluate accountId using 'ID/Account' CX: firstSegments.PID.3 -%} + {% include 'Resource/Account' PID: firstSegments.PID, ID: accountId -%} + {% include 'Reference/Account/Subject' ID: accountId, REF: fullPatientId -%} + {% if firstSegments.PID.18.4.1 != "" and firstSegments.PID.18.4.1 != null and firstSegments.PID.18.4.2 != "" and firstSegments.PID.18.4.2 != null and firstSegments.PID.18.4.3 != "" and firstSegments.PID.18.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_18 using 'ID/Organization' HDORG: firstSegments.PID.18.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.18, ID: Organization_ID_pid_CX_18 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PID.2 -%} + {% if firstSegments.PID.2.4.1 != "" and firstSegments.PID.2.4.1 != null and firstSegments.PID.2.4.2 != "" and firstSegments.PID.2.4.2 != null and firstSegments.PID.2.4.3 != "" and firstSegments.PID.2.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_2 using 'ID/Organization' HDORG: firstSegments.PID.2.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.2, ID: Organization_ID_pid_CX_2 -%} + {% endif -%} + {% endif -%} + {% for pid3 in firstSegments.PID.3.Repeats -%} + {% if pid3.4.1 != "" and pid3.4.1 != null and pid3.4.2 != "" and pid3.4.2 != null and pid3.4.3 != "" and pid3.4.3 != null -%} + {% evaluate Organization_ID_pid_CX using 'ID/Organization' HDORG: pid3.4 -%} + {% include 'Resource/Organization', PID: pid3, ID: Organization_ID_pid_CX -%} + {% endif -%} + {% endfor -%} + {% if firstSegments.PID.4 -%} + {% if firstSegments.PID.4.4.1 != "" and firstSegments.PID.4.4.1 != null and firstSegments.PID.4.4.2 != "" and firstSegments.PID.4.4.2 != null and firstSegments.PID.4.4.3 != "" and firstSegments.PID.4.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_4 using 'ID/Organization' HDORG: firstSegments.PID.4.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.4, ID: Organization_ID_pid_CX_4 -%} + {% endif -%} + {% endif -%} + + {% unless nk1SegmentLists.NK1 -%} + {% if firstSegments.PID.21 -%} + {% if firstSegments.PID.21.4.1 != "" and firstSegments.PID.21.4.1 != null and firstSegments.PID.21.4.2 != "" and firstSegments.PID.21.4.2 != null and firstSegments.PID.21.4.3 != "" and firstSegments.PID.21.4.3 != null -%} + {% evaluate Organization_ID_pid_CX_21 using 'ID/Organization' HDORG: firstSegments.PID.21.4 -%} + {% include 'Resource/Organization', PID: firstSegments.PID.21, ID: Organization_ID_pid_CX_21 -%} + {% endif -%} + {% evaluate pidrelatedPersonId using 'ID/RelatedPerson' PID: firstSegments.PID, baseId: patientId -%} + {% include 'Resource/RelatedPerson' RelatedPerson_Patient_ID: fullPatientId, ID: pidrelatedPersonId, PID: firstSegments.PID -%} + {% endif -%} + {% endunless -%} + + {% if firstSegments.PV1 -%} + {% if firstSegments.PV1.5 -%} + {% if firstSegments.PV1.5.4.1 != "" and firstSegments.PV1.5.4.1 != null and firstSegments.PV1.5.4.2 != "" and firstSegments.PV1.5.4.2 != null and firstSegments.PV1.5.4.3 != "" and firstSegments.PV1.5.4.3 != null -%} + {% evaluate Organization_ID_PV1_5_4 using 'ID/Organization' HDORG: firstSegments.PV1.5.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.5.4, ID: Organization_ID_PV1_5_4 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PV1.19 -%} + {% if firstSegments.PV1.19.4.1 != "" and firstSegments.PV1.19.4.1 != null and firstSegments.PV1.19.4.2 != "" and firstSegments.PV1.19.4.2 != null and firstSegments.PV1.19.4.3 != "" and firstSegments.PV1.19.4.3 != null -%} + {% evaluate Organization_ID_PV1_19_4 using 'ID/Organization' HDORG: firstSegments.PV1.19.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.19.4, ID: Organization_ID_PV1_19_4 -%} + {% endif -%} + {% endif -%} + {% if firstSegments.PV1.7 -%} + {% if firstSegments.PV1.7.9.1 != "" and firstSegments.PV1.7.9.1 != null and firstSegments.PV1.7.9.2 != "" and firstSegments.PV1.7.9.2 != null and firstSegments.PV1.7.9.3 != "" and firstSegments.PV1.7.9.3 != null -%} + {% evaluate Organization_ID_PV1_7_9 using 'ID/Organization' HDORG: firstSegments.PV1.7.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.7.9, ID: Organization_ID_PV1_7_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_7 using 'ID/Practitioner' XCN: firstSegments.PV1.7 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.7, ID: practitionerId_PV1_7 -%} + {% endif -%} + + {% if firstSegments.PV1.8 -%} + {% if firstSegments.PV1.8.9.1 != "" and firstSegments.PV1.8.9.1 != null and firstSegments.PV1.8.9.2 != "" and firstSegments.PV1.8.9.2 != null and firstSegments.PV1.8.9.3 != "" and firstSegments.PV1.8.9.3 != null -%} + {% evaluate Organization_ID_PV1_8_9 using 'ID/Organization' HDORG: firstSegments.PV1.8.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.8.9, ID: Organization_ID_PV1_8_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_8 using 'ID/Practitioner' XCN: firstSegments.PV1.8 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.8, ID: practitionerId_PV1_8 -%} + {% endif -%} + + {% if firstSegments.PV1.9 -%} + {% if firstSegments.PV1.9.9.1 != "" and firstSegments.PV1.9.9.1 != null and firstSegments.PV1.9.9.2 != "" and firstSegments.PV1.9.9.2 != null and firstSegments.PV1.9.9.3 != "" and firstSegments.PV1.9.9.3 != null -%} + {% evaluate Organization_ID_PV1_9_9 using 'ID/Organization' HDORG: firstSegments.PV1.9.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.9.9, ID: Organization_ID_PV1_9_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_9 using 'ID/Practitioner' XCN: firstSegments.PV1.9 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.9, ID: practitionerId_PV1_9 -%} + {% endif -%} + + {% if firstSegments.PV1.17 -%} + {% if firstSegments.PV1.17.9.1 != "" and firstSegments.PV1.17.9.1 != null and firstSegments.PV1.17.9.2 != "" and firstSegments.PV1.17.9.2 != null and firstSegments.PV1.17.9.3 != "" and firstSegments.PV1.17.9.3 != null -%} + {% evaluate Organization_ID_PV1_17_9 using 'ID/Organization' HDORG: firstSegments.PV1.17.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.17.9, ID: Organization_ID_PV1_17_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_17 using 'ID/Practitioner' XCN: firstSegments.PV1.17 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.17, ID: practitionerId_PV1_17 -%} + {% endif -%} + + {% if firstSegments.PV1.50 -%} + {% for p in firstSegments.PV1.50.Repeats -%} + {% if p.4.1 != "" and p.4.1 != null and p.4.2 != "" and p.4.2 != null and p.4.3 != "" and p.4.3 != null -%} + {% evaluate Organization_ID_PV1_50_4 using 'ID/Organization' HDORG: p.4 -%} + {% include 'Resource/Organization', PV1: p.4, ID: Organization_ID_PV1_50_4 -%} + {% endif -%} + {% endfor -%} + {% endif -%} + + {% if firstSegments.PV1.52 -%} + {% if firstSegments.PV1.52.9.1 != "" and firstSegments.PV1.52.9.1 != null and firstSegments.PV1.52.9.2 != "" and firstSegments.PV1.52.9.2 != null and firstSegments.PV1.52.9.3 != "" and firstSegments.PV1.52.9.3 != null -%} + {% evaluate Organization_ID_PV1_52_9 using 'ID/Organization' HDORG: firstSegments.PV1.52.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.52.9, ID: Organization_ID_PV1_52_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_52 using 'ID/Practitioner' XCN: firstSegments.PV1.52 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.52, ID: practitionerId_PV1_52 -%} + {% endif -%} + + {% if firstSegments.PV2.13 -%} + {% if firstSegments.PV2.13.9.1 != "" and firstSegments.PV2.13.9.1 != null and firstSegments.PV2.13.9.2 != "" and firstSegments.PV2.13.9.2 != null and firstSegments.PV2.13.9.3 != "" and firstSegments.PV2.13.9.3 != null -%} + {% evaluate Organization_ID_PV2_13_9 using 'ID/Organization' HDORG: firstSegments.PV2.13.9 -%} + {% include 'Resource/Organization', PV2: firstSegments.PV2.13.9, ID: Organization_ID_PV2_13_9 -%} + {% endif -%} + {% evaluate practitionerId_PV2_13 using 'ID/Practitioner' XCN: firstSegments.PV2.13 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV2.13, ID: practitionerId_PV2_13 -%} + {% endif -%} + + {% if firstSegments.PV1.3 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.3-%} + {% endif -%} + + {% if firstSegments.PV1.6 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.6 -%} + {% endif -%} + + {% if firstSegments.PV1.37 -%} + {% evaluate location_ID_PV1_37 using 'ID/Location' DLD: firstSegments.PV1.37 -%} + {% include 'Resource/Location' PV1: firstSegments.PV1.37, ID: location_ID_PV1_37-%} + {% endif -%} + + {% if firstSegments.PV1.42 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.42-%} + {% endif -%} + + {% if firstSegments.PV1.43 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.43-%} + {% endif -%} + + {% if firstSegments.PV2.1 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV2.1-%} + {% endif -%} + + {% if firstSegments.PV1.54 -%} + {% if firstSegments.PV1.54.4.1 != "" and firstSegments.PV1.54.4.1 != null and firstSegments.PV1.54.4.2 != "" and firstSegments.PV1.54.4.2 != null and firstSegments.PV1.54.4.3 != "" and firstSegments.PV1.54.4.3 != null -%} + {% evaluate Organization_ID_PV1_54_4 using 'ID/Organization' HDORG: firstSegments.PV1.54.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.54.4, ID: Organization_ID_PV1_54_4 -%} + {% endif -%} + {% evaluate EpisodeOfCare_ID using 'ID/EpisodeOfCare' PV1: firstSegments.PV1.54 -%} + {% include 'Resource/EpisodeOfCare' PV1: firstSegments.PV1, ID: EpisodeOfCare_ID, patientRefrenceID: fullPatientId -%} + {% endif -%} + + {% evaluate encounterId using 'ID/Encounter' PV1: firstSegments.PV1, baseId: patientId -%} + {% include 'Resource/Encounter' Root_Template: 'ADT_A60', PV1: firstSegments.PV1, PV2: firstSegments.PV2, ID: encounterId -%} + {% include 'Reference/Encounter/Subject' ID: encounterId, REF: fullPatientId -%} + {% include 'Extensions/Encounter/EncounterExtension' ID: encounterId, PV1: firstSegments.PV1, PV2: firstSegments.PV2, -%} + {% endif -%} + + {% if firstSegments.EVN -%} + {% evaluate provenanceId using 'ID/Provenance' EVN: firstSegments.EVN, baseId: patientId -%} + {% include 'Resource/Provenance' EVN: firstSegments.EVN, EVNTEXT: firstSegments.MSH.9, REF_BUNDLE: bundleID, ID: provenanceId -%} + {% if firstSegments.EVN.5 -%} + {% if firstSegments.EVN.5.9.1 != "" and firstSegments.EVN.5.9.1 != null and firstSegments.EVN.5.9.2 != "" and firstSegments.EVN.5.9.2 != null and firstSegments.EVN.5.9.3 != "" and firstSegments.EVN.5.9.3 != null -%} + {% evaluate Organization_ID_EVN_5_9 using 'ID/Organization' HDORG: firstSegments.EVN.5.9 -%} + {% include 'Resource/Organization', EVN: firstSegments.EVN.5.9, ID: Organization_ID_EVN_5_9 -%} + {% endif -%} + {% evaluate practitionerId_EVN_5 using 'ID/Practitioner' XCN: firstSegments.EVN.5 -%} + {% include 'Resource/Practitioner' EVN: firstSegments.EVN.5, ID: practitionerId_EVN_5 -%} + {% if firstSegments.EVN.7 -%} + {% evaluate locationId_EVN_7 using 'ID/Location' HD: firstSegments.EVN.7 -%} + {% include 'Resource/Location' EVN: firstSegments.EVN.7, ID: locationId_EVN_7 -%} + {% endif -%} + {% endif -%} + {% endif -%} + + {% evaluate allergyIntoleranceId using 'ID/AllergyIntolerance' IAM: firstSegments.IAM, baseId: patientId -%} + {% include 'Resource/AllergyIntolerance' IAR: iarSegmentLists.IAR[0] , IAM: firstSegments.IAM, ID: allergyIntoleranceId, AllergyIntolerance_Patient_ID: fullPatientId, PatientBase: patientId -%} + {% if firstSegments.IAM.23 -%} + {% if firstSegments.IAM.23.9.1 != "" and firstSegments.IAM.23.9.1 != null and firstSegments.IAM.23.9.2 != "" and firstSegments.IAM.23.9.2 != null and firstSegments.IAM.23.9.3 != "" and firstSegments.IAM.23.9.3 != null -%} + {% evaluate Organization_ID_IAM_23_9 using 'ID/Organization' HDORG: firstSegments.IAM.23.9 -%} + {% include 'Resource/Organization', IAM: firstSegments.IAM.23.9, ID: Organization_ID_IAM_23_9 -%} + {% endif -%} + {% evaluate practitionerId_IAM_23 using 'ID/Practitioner' XCN: firstSegments.IAM.23 -%} + {% include 'Resource/Practitioner' IAM: firstSegments.IAM.23, ID: practitionerId_IAM_23 -%} + {% endif -%} + + {% if firstSegments.IAM.15.1.Value == "CGV" -%} + {% evaluate practitionerId_IAM_14 using 'ID/Practitioner' XPN: firstSegments.IAM.14 -%} + {% include 'Resource/Practitioner' IAM_NAME: firstSegments.IAM.14, ID: practitionerId_IAM_14 -%} + {% endif -%} + + {% if firstSegments.IAM.15 == null or firstSegments.IAM.15.1.Value != "CGV" and firstSegments.IAM.15.1.Value != "SEL" -%} + {% evaluate RelatedPerson_ID_IAM_14 using 'ID/RelatedPerson' IAM: firstSegments.IAM.14, baseId: patientId -%} + {% include 'Resource/RelatedPerson' IAM: firstSegments.IAM, RelatedPerson_Patient_ID: fullPatientId, ID: RelatedPerson_ID_IAM_14 -%} + {% endif -%} + {% include 'Extensions/AllergyIntolerance/AllergyIntoleranceExtension' ID: allergyIntoleranceId, IAM: firstSegments.IAM -%} + + {% for iarSegment in iarSegmentLists.IAR -%} + {% include 'Resource/AllergyIntolerance' IAR: iarSegment, ID: allergyIntoleranceId, AllergyIntolerance_Patient_ID: fullPatientId -%} + {% endfor -%} + + {% for nteSegment in nteSegmentLists.NTE -%} + {% if nteSegment -%} + {% if nteSegment.5 -%} + {% if nteSegment.5.9.1 != "" and nteSegment.5.9.1 != null and nteSegment.5.9.2 != "" and nteSegment.5.9.2 != null and nteSegment.5.9.3 != "" and nteSegment.5.9.3 != null -%} + {% evaluate Organization_ID_EVN_5_9 using 'ID/Organization' HDORG: nteSegment.5.9 -%} + {% include 'Resource/Organization', PV2: nteSegment.5.9, ID: Organization_ID_EVN_5_9 -%} + {% endif -%} + {% evaluate Practitioner_ID_NTE_5 using 'ID/Practitioner' XCN: nteSegment.5 -%} + {% include 'Resource/Practitioner' NTE: nteSegment.5, ID: Practitioner_ID_NTE_5 -%} + {% endif -%} + + {% include 'Resource/AllergyIntolerance' NTE: nteSegment, ID: allergyIntoleranceId -%} + {% endif -%} + {%endfor -%} + ] +} \ No newline at end of file diff --git a/data/Templates/Hl7v2/CodeSystem/CodeSystem.json b/data/Templates/Hl7v2/CodeSystem/CodeSystem.json index 9d2adcdaf..1a060f3e2 100644 --- a/data/Templates/Hl7v2/CodeSystem/CodeSystem.json +++ b/data/Templates/Hl7v2/CodeSystem/CodeSystem.json @@ -151,7 +151,333 @@ "system": "http://terminology.hl7.org/CodeSystem/v2-0430" } }, - "CodeSystem/Religion": {}, + "CodeSystem/Religion": { + "ABC": { + "code" : "1009", + "display" : "Baptist", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "SEV": { + "code" : "1001", + "display" : "Adventist", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "AME": { + "code" : "1002", + "display" : "African Religions", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "AGN": { + "code" : "1004", + "display" : "Agnosticism", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "ANG": { + "code" : "1005", + "display" : "Anglican", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "ATH": { + "code" : "1007", + "display" : "Atheism", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "BAH": { + "code" : "1008", + "display" : "Babi & Baha'I faiths", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "BAP": { + "code" : "1009", + "display" : "Baptist", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "FWB": { + "code" : "1009", + "display" : "Baptist", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "SOU": { + "code" : "1009", + "display" : "Baptist", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "CHR": { + "code" : "1013", + "display" : "Christian (non-Catholic, non-specific)", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "CNF": { + "code" : "1014", + "display" : "Confucianism", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "HIN": { + "code" : "1020", + "display" : "Hinduism", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "HOT": { + "code" : "1020", + "display" : "Hinduism", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "HSH": { + "code" : "1020", + "display" : "Hinduism", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "HVA": { + "code" : "1020", + "display" : "Hinduism", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "MOS": { + "code" : "1023", + "display" : "Islam", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "MOT": { + "code" : "1023", + "display" : "Islam", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "MSH": { + "code" : "1023", + "display" : "Islam", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "MSU": { + "code" : "1023", + "display" : "Islam", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "JAI": { + "code" : "1024", + "display" : "Jainism", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "JWN": { + "code" : "1025", + "display" : "Jehovah's Witnesses", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "JCO": { + "code" : "1026", + "display" : "Judaism", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "JRF": { + "code" : "1026", + "display" : "Judaism", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "JEW": { + "code" : "1026", + "display" : "Judaism", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "JOR": { + "code" : "1026", + "display" : "Judaism", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "JOT": { + "code" : "1026", + "display" : "Judaism", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "JRC": { + "code" : "1026", + "display" : "Judaism", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "JRN": { + "code" : "1026", + "display" : "Judaism", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "MOM": { + "code" : "1027", + "display" : "Latter Day Saints", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "LMS": { + "code" : "1028", + "display" : "Lutheran", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "LUT": { + "code" : "1028", + "display" : "Lutheran", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "BMA": { + "code" : "1029", + "display" : "Mahayana", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "ORT": { + "code" : "1036", + "display" : "Orthodox", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "PEN": { + "code" : "1038", + "display" : "Pentecostal", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "COP": { + "code" : "1038", + "display" : "Pentecostal", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "REC": { + "code" : "1040", + "display" : "Reformed/Presbyterian", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "CRR": { + "code" : "1040", + "display" : "Reformed/Presbyterian", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "CAT": { + "code" : "1041", + "display" : "Roman Catholic Church", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "SHN": { + "code" : "1046", + "display" : "Shinto", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "SIK": { + "code" : "1047", + "display" : "Sikism", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "SPI": { + "code" : "1048", + "display" : "Spiritualism", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "BTH": { + "code" : "1051", + "display" : "Theravada", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "BOT": { + "code" : "1059", + "display" : "Zen Buddhism", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "BUD": { + "code" : "1059", + "display" : "Zen Buddhism", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "AOG": { + "code" : "1061", + "display" : "Assembly of God", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "CHS": { + "code" : "1063", + "display" : "Christian Scientist", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "COL": { + "code" : "1066", + "display" : "Congregational", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "EOT": { + "code" : "1068", + "display" : "Eastern Orthodox", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "EPI": { + "code" : "1069", + "display" : "Episcopalian", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "EVC": { + "code" : "1070", + "display" : "Evangelical Covenant", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "FRQ": { + "code" : "1071", + "display" : "Friends", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "FUL": { + "code" : "1072", + "display" : "Full Gospel", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "UMD":{ + "code" : "1073", + "display" : "Methodist", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "WMC": { + "code" : "1073", + "display" : "Methodist", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "MET": { + "code" : "1073", + "display" : "Methodist", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "NAM": { + "code" : "1074", + "display" : "Native American", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "NAZ": { + "code" : "1075", + "display" : "Nazarene", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "PRE": { + "code" : "1076", + "display" : "Presbyterian", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "PRC": { + "code" : "1077", + "display" : "Protestant", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "PRO": { + "code" : "1077", + "display" : "Protestant", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "SAA": { + "code" : "1080", + "display" : "Salvation Army", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "UNI": { + "code" : "1081", + "display" : "Unitarian Universalist", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "UNU": { + "code" : "1081", + "display" : "Unitarian Universalist", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + }, + "UCC": { + "code" : "1082", + "display" : "United Church of Christ", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + } + }, "CodeSystem/AccessRestrictionValue": { "JurisCUI": { "code": "", @@ -622,12 +948,32 @@ "H": { "code": "home", "display": "Home", - "system": "" + "system": "http://hl7.org/fhir/address-use" }, "BI": { "code": "billing", "display": "Billing", - "system": "" + "system": "http://hl7.org/fhir/address-use" + }, + "BA": { + "code": "old", + "display": "Old / Incorrect", + "system": "http://hl7.org/fhir/address-use" + }, + "C": { + "code": "temp", + "display": "Temporary", + "system": "http://hl7.org/fhir/address-use" + }, + "B": { + "code": "work", + "display": "Work", + "system": "http://hl7.org/fhir/address-use" + }, + "O": { + "code": "work", + "display": "Work", + "system": "http://hl7.org/fhir/address-use" }, "__default__": { "code": "", @@ -1081,18 +1427,139 @@ } }, "CodeSystem/CodeSystemUrl": { - "I9": { + "I9C": { "system": "http://hl7.org/fhir/sid/icd-9-cm" }, "LN": { "system": "http://loinc.org" }, "SNM": { - "system": "http://snomed.info/sct" + "system": "http://terminology.hl7.org/CodeSystem/snm" }, "I10": { "system": "http://hl7.org/fhir/sid/icd-10" + }, + "ALPHAID2006": { + "system": "urn:oid:1.2.276.0.76.5.309" + }, + "ALPHAID2007": { + "system": "urn:oid:1.2.276.0.76.5.316" + }, + "ALPHAID2008": { + "system": "urn:oid:1.2.276.0.76.5.329" + }, + "ALPHAID2009": { + "system": "urn:oid:1.2.276.0.76.5.355" + }, + "ALPHAID20010": { + "system": "urn:oid:1.2.276.0.76.5.383" + }, + "ALPHAID20011": { + "system": "urn:oid:1.2.276.0.76.5.387" + }, + "C4": { + "system": "http://www.ama-assn.org/go/cpt" + }, + "I9": { + "system": "http://hl7.org/fhir/sid/icd-9" + }, + "ICD10CA": { + "system": "http://hl7.org/fhir/sid/icd-10-ca" + }, + "ICD10GM2007": { + "system": "http://terminology.hl7.org/CodeSystem/dmdICD10" + }, + "ICD10GM2008": { + "system": "http://terminology.hl7.org/CodeSystem/dmdICD10" + }, + "ICD10GM2009": { + "system": "http://terminology.hl7.org/CodeSystem/dmdICD10" + }, + "ICD10GM2010": { + "system": "http://terminology.hl7.org/CodeSystem/dmdICD10" + }, + "ICD10GM2011": { + "system": "http://terminology.hl7.org/CodeSystem/dmdICD10" + }, + "ICDO": { + "system": "http://terminology.hl7.org/CodeSystem/icd-o" + }, + "ICDO3": { + "system": "http://terminology.hl7.org/CodeSystem/icd-o-3" + }, + "ICCS": { + "system": "http://terminology.hl7.org/CodeSystem/ics" + }, + "ISO": { + "system": "urn:iso:std:iso:3986" + }, + "ISO3166_1": { + "system": "urn:iso:std:iso:3166" + }, + "ISO3166_2": { + "system": "urn:iso:std:iso:3166:-2" + }, + "ISO4217": { + "system": "http://terminology.hl7.org/CodeSystem/iso4217" + }, + "MDC": { + "system": "urn:iso:std:iso:11073:10101" + }, + "NAICS": { + "system": "http://terminology.hl7.org/CodeSystem/naics" + }, + "NDA": { + "system": "http://hl7.org/fhir/sid/ndc" + }, + "NDFRT": { + "system": "http://hl7.org/fhir/ndfrt" + }, + "NPI": { + "system": "http://hl7.org/fhir/sid/us-npi" + }, + "NUBC": { + "system": "http://www.nubc.org/patient-discharge" + }, + "NULLFL": { + "system": "http://terminology.hl7.org/CodeSystem/v3-NullFlavor" + }, + "RXNORM": { + "system": "http://www.nlm.nih.gov/research/umls/rxnorm" + }, + "SCT": { + "system": "http://snomed.info/sct" + }, + "SCT2": { + "system": "http://snomed.info/sct" + }, + "SDM": { + "system": "http://terminology.hl7.org/NamingSystem/SDM" + }, + "SNM3": { + "system": "http://snomed.info/sct" + }, + "SNT": { + "system": "http://terminology.hl7.org/CodeSystem/SNT" + }, + "UB04FL14": { + "system": "https://www.nubc.org/CodeSystem/PriorityTypeOfAdmitOrVisit" + }, + "UB04FL15": { + "system": "https://www.nubc.org/CodeSystem/PointOfOrigin" + }, + "UB04FL17": { + "system": "https://www.nubc.org/CodeSystem/PatDischargeStatus" + }, + "UCUM": { + "system": "http://unitsofmeasure.org" + }, + "UMD": { + "system": "http://terminology.hl7.org/CodeSystem/UMD" + }, + "UML": { + "system": "http://terminology.hl7.org/CodeSystem/UML" } + }, "CodeSystem/SpecimenAvailability": { "Y": { @@ -1124,7 +1591,133 @@ "system": "" } }, - "CodeSystem/Language": {}, + "CodeSystem/Language": { + "ara": { + "code" : "ar", + "display" : "Arabic", + "system" : "urn:ietf:bcp:47" + }, + "ben":{ + "code" : "bn", + "display" : "Bengali", + "system" : "urn:ietf:bcp:47" + }, + "cze": { + "code" : "cs", + "display" : "Czech", + "system" : "urn:ietf:bcp:47" + }, + "dan": { + "code" : "da", + "display" : "Danish", + "system" : "urn:ietf:bcp:47" + }, + "ger": { + "code" : "de", + "display" : "German", + "system" : "urn:ietf:bcp:47" + }, + "gre": { + "code" : "el", + "display" : "Greek", + "system" : "urn:ietf:bcp:47" + }, + "eng":{ + "code" : "en", + "display" : "English", + "system" : "urn:ietf:bcp:47" + }, + "spa":{ + "code" : "es", + "display" : "Spanish", + "system" : "urn:ietf:bcp:47" + }, + "fin":{ + "code" : "fi", + "display" : "Finnish", + "system" : "urn:ietf:bcp:47" + }, + "fre":{ + "code" : "fr", + "display" : "French", + "system" : "urn:ietf:bcp:47" + }, + "hin":{ + "code" : "hi", + "display" : "Hindi", + "system" : "urn:ietf:bcp:47" + }, + "hrv":{ + "code" : "hr", + "display" : "Croatian", + "system" : "urn:ietf:bcp:47" + }, + "ita":{ + "code" : "it", + "display" : "Italian", + "system" : "urn:ietf:bcp:47" + }, + "jpn":{ + "code" : "ja", + "display" : "Japanese", + "system" : "urn:ietf:bcp:47" + }, + "kor":{ + "code" : "ko", + "display" : "Korean", + "system" : "urn:ietf:bcp:47" + }, + "dut":{ + "code" : "nl", + "display" : "Dutch", + "system" : "urn:ietf:bcp:47" + }, + "nor":{ + "code" : "no", + "display" : "Norwegian", + "system" : "urn:ietf:bcp:47" + }, + "pan":{ + "code" : "pa", + "display" : "Punjabi", + "system" : "urn:ietf:bcp:47" + }, + "pol":{ + "code" : "pl", + "display" : "Polish", + "system" : "urn:ietf:bcp:47" + }, + "por":{ + "code" : "pt", + "display" : "Portuguese", + "system" : "urn:ietf:bcp:47" + }, + "rus":{ + "code" : "ru", + "display" : "Russian", + "system" : "urn:ietf:bcp:47" + }, + "srp":{ + "code" : "sr", + "display" : "Serbian", + "system" : "urn:ietf:bcp:47" + }, + "swe":{ + "code" : "sv", + "display" : "Swedish", + "system" : "urn:ietf:bcp:47" + }, + "tel":{ + "code" : "te", + "display" : "Telegu", + "system" : "urn:ietf:bcp:47" + }, + "chi":{ + "code" : "zh", + "display" : "Chinese", + "system" : "urn:ietf:bcp:47" + } + }, "CodeSystem/OrderStatus": { "RP": { "code": "revoked", @@ -1699,6 +2292,45 @@ "display": "Allergy", "system": "http://hl7.org/fhir/allergy-intolerance-type" } + }, + "CodeSystem/AllergyActionCode": { + "A": { + "code" : "A", + "display" : "Add/Insert", + "system" : "http://terminology.hl7.org/CodeSystem/v2-0206" + }, + "D": { + "code" : "D", + "display" : "Delete", + "system" : "http://terminology.hl7.org/CodeSystem/v2-0206" + }, + "U": { + "code" : "U", + "display" : "Update", + "system" : "http://terminology.hl7.org/CodeSystem/v2-0206" + }, + "X": { + "code" : "X", + "display" : "No Change", + "system" : "http://terminology.hl7.org/CodeSystem/v2-0206" + } + }, + "CodeSystem/AllergyIntoleranceTypeCode": { + "AD": { + "code" : "adverse-reaction", + "display" : "Adverse Reaction (Not otherwise classified)", + "system" : "http://example.com/v2-to-fhir-converter/CodeSystem/v2-0436" + }, + "CT": { + "code" : "contraindication", + "display" : "Contraindication", + "system" : "http://example.com/v2-to-fhir-converter/CodeSystem/v2-0436" + }, + "SE": { + "code" : "side-effect", + "display" : "Side Effect", + "system" : "http://example.com/v2-to-fhir-converter/CodeSystem/v2-0436" + } }, "CodeSystem/Role": { "DP": { @@ -2203,104 +2835,159 @@ }, "CodeSystem/ObservationStatus": { "A": { - "code": "ammended", - "display": "Ammended", - "system": "http://hl7.org/fhir/observation-status" - }, - "C": { - "code": "corrected", - "display": "Corrected", - "system": "http://hl7.org/fhir/observation-status" + "code": "amended" }, "B": { - "code": "", - "display": "", - "system": "" - }, + "code": "unknown" + }, + "C": { + "code": "corrected" + }, "D": { - "code": "entered-in-error", - "display": "Entered in Error", - "system": "http://hl7.org/fhir/observation-status" + "code": "entered-in-error" }, "F": { - "code": "final", - "display": "Final", - "system": "http://hl7.org/fhir/observation-status" + "code": "final" }, "I": { - "code": "", - "display": "Registered", - "system": "http://hl7.org/fhir/observation-status" - }, - "O": { - "code": "", - "display": "", - "system": "" + "code": "unknown" }, "N": { - "code": "", - "display": "", - "system": "" + "code": "unknown" }, - "P": { - "code": "preliminary", - "display": "Preliminary", - "system": "http://hl7.org/fhir/observation-status" + "O": { + "code": "unknown" }, - "S": { - "code": "preliminary", - "display": "Preliminary", - "system": "http://hl7.org/fhir/observation-status" + "P": { + "code": "preliminary" }, "R": { - "code": "", - "display": "", - "system": "" + "code": "unknown" }, + "S": { + "code": "unknown" + }, "U": { - "code": "", - "display": "", - "system": "" - }, - "W": { - "code": "entered-in-error", - "display": "Entered in Error", - "system": "http://hl7.org/fhir/observation-status" + "code": "unknown" }, "V": { - "code": "", - "display": "", - "system": "" + "code": "unknown" }, + "W": { + "code": "entered-in-error" + }, "X": { - "code": "", - "display": "", - "system": "" + "code": "cancelled" + }, + "__default__": { + "code": "unknown" } }, - "CodeSystem/AccessRestrictionReasonCode": {}, - "CodeSystem/AllergyCategory": { - "AA": { - "code": "environment", - "display": "Environment", - "system": "http://hl7.org/fhir/allergy-intolerance-category" + "CodeSystem/ObservationStatus-ext": { + "A": { + "code": "A", + "display": "Ammended", + "system": "http://terminology.hl7.org/CodeSystem/v2-0085" }, - "MA": { - "code": "", - "display": "", - "system": "" + "B": { + "code": "B", + "display": "Appended", + "system": "http://terminology.hl7.org/CodeSystem/v2-0085" + }, + "C": { + "code": "C", + "display": "Correction", + "system": "http://terminology.hl7.org/CodeSystem/v2-0085" + }, + "D": { + "code": "D", + "display": "Deleted", + "system": "http://terminology.hl7.org/CodeSystem/v2-0085" }, - "MC": { - "code": "", - "display": "", - "system": "" + "F": { + "code": "F", + "display": "Final", + "system": "http://terminology.hl7.org/CodeSystem/v2-0085" }, - "LA": { - "code": "environment", - "display": "Environment", - "system": "http://hl7.org/fhir/allergy-intolerance-category" + "I": { + "code": "I", + "display": "In Process", + "system": "http://terminology.hl7.org/CodeSystem/v2-0085" }, - "EA": { + "N": { + "code": "N", + "display": "Not Asked", + "system": "http://terminology.hl7.org/CodeSystem/v2-0085" + }, + "O": { + "code": "O", + "display": "Order Detail", + "system": "http://terminology.hl7.org/CodeSystem/v2-0085" + }, + "P": { + "code": "P", + "display": "Preliminary", + "system": "http://terminology.hl7.org/CodeSystem/v2-0085" + }, + "R": { + "code": "R", + "display": "Entered - Not Verified", + "system": "http://terminology.hl7.org/CodeSystem/v2-0085" + }, + "S": { + "code": "S", + "display": "Partial", + "system": "http://terminology.hl7.org/CodeSystem/v2-0085" + }, + "U": { + "code": "U", + "display": "Status Change to Final Without Retransmission", + "system": "http://terminology.hl7.org/CodeSystem/v2-0085" + }, + "V": { + "code": "V", + "display": "Verified", + "system": "http://terminology.hl7.org/CodeSystem/v2-0085" + }, + "W": { + "code": "W", + "display": "Original Posted as Wrong", + "system": "http://terminology.hl7.org/CodeSystem/v2-0085" + }, + "X": { + "code": "X", + "display": "Cannot be Obtained", + "system": "http://terminology.hl7.org/CodeSystem/v2-0085" + }, + "__default__": { + "code": "", + "display": "Unknown", + "system": "" + } + }, + "CodeSystem/AccessRestrictionReasonCode": {}, + "CodeSystem/AllergyCategory": { + "AA": { + "code": "environment", + "display": "Environment", + "system": "http://hl7.org/fhir/allergy-intolerance-category" + }, + "MA": { + "code": "", + "display": "", + "system": "" + }, + "MC": { + "code": "", + "display": "", + "system": "" + }, + "LA": { + "code": "environment", + "display": "Environment", + "system": "http://hl7.org/fhir/allergy-intolerance-category" + }, + "EA": { "code": "environment", "display": "Environment", "system": "http://hl7.org/fhir/allergy-intolerance-category" @@ -2450,14 +3137,14 @@ "CodeSystem/ConfidentialityClassification": {}, "CodeSystem/EncounterClass": { "C": { - "code": "", - "display": "", - "system": "" + "code" : "PBILLACCT", + "display" : "patient billing account", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" }, "B": { - "code": "", - "display": "", - "system": "" + "code" : "OBS", + "display" : "obstetrics", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" }, "E": { "code": "EMER", @@ -2475,9 +3162,9 @@ "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" }, "N": { - "code": "", - "display": "", - "system": "" + "code" : "NAP", + "display" : "not applicable", + "system" : "http://examplecodes.org/CodeSystem/additional-EncounterClassCodes" }, "P": { "code": "PRENC", @@ -2485,14 +3172,14 @@ "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" }, "R": { - "code": "", - "display": "", - "system": "" + "code" : "REPAT", + "display" : "recurring patient", + "system" : "http://examplecodes.org/CodeSystem/additional-EncounterClassCodes" }, "U": { - "code": "", - "display": "", - "system": "" + "code" : "UNK", + "display" : "unkown", + "system" : "http://examplecodes.org/CodeSystem/additional-EncounterClassCodes" } }, "CodeSystem/LivingWill": { @@ -3179,6 +3866,936 @@ "display": "", "system": "" } + }, + "CodeSystem/Race": { + "1002-5": { + "code": "1002-5", + "display": "American Indian or Alaska Native", + "system": "urn:oid:2.16.840.1.113883.6.238" + }, + "2028-9": { + "code": "2028-9", + "display": "Asian", + "system": "urn:oid:2.16.840.1.113883.6.238" + }, + "2054-5": { + "code": "2054-5", + "display": "Black or African American", + "system": "urn:oid:2.16.840.1.113883.6.238" + }, + "2076-8": { + "code": "2076-8", + "display": "Native Hawaiian or Other Pacific Islander", + "system": "urn:oid:2.16.840.1.113883.6.238" + }, + "2106-3": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + }, + "2131-1": { + "code": "2131-1", + "display": "Other Race", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + + "CodeSystem/Ethnicity": { + "H": { + "code": "2135-2", + "display": "Hispanic or Latino", + "system": "urn:oid:2.16.840.1.113883.6.238" + }, + "N": { + "code": "2186-5", + "display": "Non Hispanic or Latino", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + "CodeSystem/EventReason": { + "01": { + "code": "PATRQT", + "display": "patient requested", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason" + }, + "02": { + "code": "TREAT", + "display": "treatment", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason" + }, + "03": { + "code": "HOPERAT", + "display": "healthcare operations", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason" + }, + "O": { + "code": "O", + "display": "Other", + "system": "HL70062" + }, + "U": { + "code": "unknown", + "display": "", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason" + } + }, + "CodeSystem/TelecomEquipmentType": { + "PH": { + "code" : "phone", + "display" : "Phone", + "system" : "http://hl7.org/fhir/contact-point-system" + }, + "FX": { + "code" : "fax", + "display" : "Fax", + "system" : "http://hl7.org/fhir/contact-point-system" + }, + "MD": { + "code" : "other", + "display" : "Other", + "system" : "http://hl7.org/fhir/contact-point-system" + }, + "CP": { + "code" : "phone", + "display" : "Phone", + "system" : "http://hl7.org/fhir/contact-point-system" + }, + "SAT": { + "code" : "other", + "display" : "Other", + "system" : "http://hl7.org/fhir/contact-point-system" + }, + "BP": { + "code" : "pager", + "display" : "Pager", + "system" : "http://hl7.org/fhir/contact-point-system" + }, + "Internet": { + "code" : "email", + "display" : "email", + "system" : "http://hl7.org/fhir/contact-point-system" + }, + "X.400": { + "code" : "email", + "display" : "email", + "system" : "http://hl7.org/fhir/contact-point-system" + }, + "TDD": { + "code" : "other", + "display" : "Other", + "system" : "http://hl7.org/fhir/contact-point-system" + }, + "TYD" : { + "code" : "other", + "display" : "Other", + "system" : "http://hl7.org/fhir/contact-point-system" + } + }, + "CodeSystem/EncounterStatus": { + "E": { + "code": "in-progress", + "display": "In Progress", + "system": "http://hl7.org/fhir/encounter-status" + }, + "I": { + "code": "in-progress", + "display": "in-progress", + "system": "http://hl7.org/fhir/encounter-status" + }, + "O": { + "code": "in-progress", + "display": "In Progress", + "system": "http://hl7.org/fhir/encounter-status" + }, + "P": { + "code": "planned", + "display": "Planned", + "system": "http://hl7.org/fhir/encounter-status" + }, + "R": { + "code": "in-progress", + "display": "In Progress", + "system": "http://hl7.org/fhir/encounter-status" + }, + "B": { + "code": "in-progress", + "display": "In Progress", + "system": "http://hl7.org/fhir/encounter-status" + }, + "C": { + "code": "in-progress", + "display": "In Progress", + "system": "http://hl7.org/fhir/encounter-status" + }, + "N": { + "code": "cancelled", + "display": "Cancelled", + "system": "http://hl7.org/fhir/encounter-status" + }, + "U": { + "code": "unknown", + "display": "Unknown", + "system": "http://hl7.org/fhir/encounter-status" + } + }, + "CodeSystem/AllergyIntoleranceCriticality": { + "SV": { + "code" : "high", + "display" : "High Risk", + "system" : "http://hl7.org/fhir/allergy-intolerance-criticality" + }, + "MO": { + "code" : "", + "display" : "", + "system" : "" + }, + "MI": { + "code" : "low", + "display" : "Low Risk", + "system" : "http://hl7.org/fhir/allergy-intolerance-criticality" + }, + "U": { + "code" : "", + "display" : "", + "system" : "" + }, + "399166001" : { + "code" : "high", + "display" : "High Risk", + "system" : "http://hl7.org/fhir/allergy-intolerance-criticality" + }, + "442452003" : { + "code" : "high", + "display" : "High Risk", + "system" : "http://hl7.org/fhir/allergy-intolerance-criticality" + }, + "255604002" : { + "code" : "low", + "display" : "Low Risk", + "system" : "http://hl7.org/fhir/allergy-intolerance-criticality" + }, + "371923003": { + "code" : "low", + "display" : "Low Risk", + "system" : "http://hl7.org/fhir/allergy-intolerance-criticality" + }, + "371924009" : { + "code" : "high", + "display" : "High Risk", + "system" : "http://hl7.org/fhir/allergy-intolerance-criticality" + }, + "24484000" : { + "code" : "high", + "display" : "High Risk", + "system" : "http://hl7.org/fhir/allergy-intolerance-criticality" + } + }, + "CodeSystem/AllergyIntoleranceSeverity": { + "SV": { + "code" : "severe", + "display" : "Severe", + "system" : "http://hl7.org/fhir/reaction-event-severity" + }, + "MO": { + "code" : "moderate", + "display" : "Moderate", + "system" : "http://hl7.org/fhir/reaction-event-severity" + }, + "MI": { + "code" : "mild", + "display" : "Mild", + "system" : "http://hl7.org/fhir/reaction-event-severity" + }, + "U": { + "code" : "", + "display" : "", + "system" : "" + } + }, + "CodeSystem/AllergySensitivity": { + "AD": { + "code" : "", + "display" : "", + "system" : "" + }, + "AL": { + "code" : "allergy", + "display" : "Allergy", + "system" : "http://hl7.org/fhir/allergy-intolerance-type" + }, + "CT": { + "code" : "", + "display" : "", + "system" : "" + }, + "IN": { + "code" : "intolerance", + "display" : "Intolerance", + "system" : "http://hl7.org/fhir/allergy-intolerance-type" + }, + "SE": { + "code" : "", + "display" : "", + "system" : "" + } + }, + "CodeSystem/AllergyVerificationStatus": { + "C": { + "code" : "confirmed", + "display" : "Confirmed", + "system" : "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification" + }, + "D": { + "code" : "unconfirmed", + "display" : "Unconfirmed", + "system" : "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification" + }, + "E": { + "code" : "entered-in-error", + "display" : "Entered in Error", + "system" : "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification" + }, + "I": { + "code" : "confirmed", + "display" : "Confirmed", + "system" : "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification" + }, + "P": { + "code" : "unconfirmed", + "display" : "Unconfirmed", + "system" : "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification" + }, + "S": { + "code" : "unconfirmed", + "display" : "Unconfirmed", + "system" : "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification" + }, + "U": { + "code" : "unconfirmed", + "display" : "Unconfirmed", + "system" : "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification" + } + }, + "CodeSystem/AllergyClinicalStatus": { + "C": { + "code" : "active", + "display" : "Active", + "system" : "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical" + }, + "D": { + "code" : "active", + "display" : "Active", + "system" : "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical" + }, + "E": { + "code" : "", + "display" : "", + "system" : "" + }, + "I": { + "code" : "inactive", + "display" : "Inactive", + "system" : "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical" + }, + "P": { + "code" : "active", + "display" : "Active", + "system" : "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical" + }, + "S": { + "code" : "active", + "display" : "Active", + "system" : "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical" + }, + "U": { + "code" : "active", + "display" : "Active", + "system" : "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical" + } + }, + "CodeSystem/RequestStatus": { + "A": { + "code" : "active", + "display" : "Active", + "system" : "http://hl7.org/fhir/request-status" + }, + "E": { + "code" : "entered-in-error", + "display" : "Entered in Error", + "system" : "http://hl7.org/fhir/request-status" + }, + "P": { + "code" : "on-hold", + "display" : "On Hold", + "system" : "http://hl7.org/fhir/request-status" + }, + "R": { + "code" : "revoked", + "display" : "Revoked", + "system" : "http://hl7.org/fhir/request-status" + } + }, + "CodeSystem/RequestPriority": { + "A": { + "code" : "asap", + "display" : "ASAP", + "system" : "http://hl7.org/fhir/request-priority" + }, + "R": { + "code" : "routine", + "display" : "Routine", + "system" : "http://hl7.org/fhir/request-priority" + }, + "S": { + "code" : "stat", + "display" : "STAT", + "system" : "http://hl7.org/fhir/request-priority" + } + }, + "CodeSystem/AnimalSpecies": { + "125097000": { + "code": "125097000", + "display" : "goat", + "system" : "http://hl7.org/fhir/animal-species" + }, + "125099002": { + "code": "125099002", + "display" : "sheep", + "system" : "http://hl7.org/fhir/animal-species" + }, + "34618005":{ + "code" : "34618005", + "display" : "cow", + "system" : "http://hl7.org/fhir/animal-species" + }, + "425134008":{ + "code" : "425134008", + "display" : "turkey", + "system" : "http://hl7.org/fhir/animal-species" + }, + "47290002":{ + "code" : "47290002", + "display" : "chicken", + "system" : "http://hl7.org/fhir/animal-species" + }, + "15778005":{ + "code" : "15778005", + "display" : "goose", + "system" : "http://hl7.org/fhir/animal-species" + }, + "396620009":{ + "code" : "396620009", + "display" : "duck", + "system" : "http://hl7.org/fhir/animal-species" + }, + "388445009":{ + "code" : "396620009", + "display" : "horse", + "system" : "http://hl7.org/fhir/animal-species" + }, + "85626006":{ + "code" : "85626006", + "display" : "donkey", + "system" : "http://hl7.org/fhir/animal-species" + }, + "132950000":{ + "code" : "132950000", + "display" : "mule", + "system" : "http://hl7.org/fhir/animal-species" + } + }, + "CodeSystem/EncounterSecurity": { + "Y": { + "code" : "R", + "display" : "restricted", + "system" : "http://terminology.hl7.org/CodeSystem/v3-Confidentiality" + }, + "N": { + "code" : "N", + "display" : "normal", + "system" : "http://terminology.hl7.org/CodeSystem/v3-Confidentiality" + } + }, + "CodeSystem/DisabilityIndicator": { + "Y": { + "code" : "true", + "display" : "", + "system" : "" + }, + "N": { + "code" : "false", + "display" : "", + "system" : "" + }, + "__default__": { + "code": "false", + "display": "", + "system": "" + } + }, + "CodeSystem/ProcedureStatus": { + "planned": { + "code" : "preparation" + }, + "arrived": { + "code" : "on-hold" + }, + "triaged": { + "code" : "on-hold" + }, + "in-progress": { + "code" : "in-progress" + }, + "onleave": { + "code" : "stopped" + }, + "finished": { + "code" : "completed" + }, + "cancelled": { + "code" : "cancelled" + }, + "enetered-in error": { + "code" : "enetered-in error" + }, + "unknown": { + "code" : "unknown" + } + }, + "CodeSystem/DiagnosisType": { + "A": { + "code" : "AD", + "display" : "Admission Diagnosis", + "system" : "http://terminology.hl7.org/CodeSystem/diagnosis-role" + }, + "W": { + "code" : "CC", + "display" : "Chief Complaint", + "system" : "http://terminology.hl7.org/CodeSystem/diagnosis-role" + }, + "F": { + "code" : "DD", + "display" : "Discharge Diagnosis", + "system" : "http://terminology.hl7.org/CodeSystem/diagnosis-role" + } + }, + "CodeSystem/PlanType": { + "pay": { + "code" : "pay", + "display" : "Pay", + "system" : "http://terminology.hl7.org/CodeSystem/coverage-selfpay" + }, + "EHCPOL": { + "code" : "EHCPOL", + "display" : "extended healthcare", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "HSAPOL": { + "code" : "HSAPOL", + "display" : "health spending account", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "AUTOPOL": { + "code" : "AUTOPOL", + "display" : "automobile", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "COL": { + "code" : "COL", + "display" : "collision coverage policy", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "UNINSMOT" : { + "code" : "UNINSMOT", + "display" : "uninsured motorist policy", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "PUBLICPOL" : { + "code" : "PUBLICPOL", + "display" : "public healthcare", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "DENTPRG" : { + "code" : "DENTPRG", + "display" : "dental program", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "DISEASEPRG" : { + "code" : "DISEASEPRG", + "display" : "public health program", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "CANPRG" : { + "code" : "CANPRG", + "display" : "women's cancer detection program", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "ENDRENAL": { + "code" : "ENDRENAL", + "display" : "end renal program", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "HIVAIDS" : { + "code" : "HIVAIDS", + "display" : "HIV-AIDS program", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "MANDPOL" : { + "code" : "MANDPOL", + "display" : "mandatory health program", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "MENTPRG" : { + "code" : "MENTPRG", + "display" : "mental health program", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "SAFNET" : { + "code" : "SAFNET", + "display" : "safety net clinic program", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "SUBPRG" : { + "code" : "SUBPRG", + "display" : "substance use program", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "SUBSIDIZ" : { + "code" : "SUBSIDIZ", + "display" : "subsidized health program", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "SUBSIDMC" : { + "code" : "SUBSIDMC", + "display" : "subsidized managed care program", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "SUBSUPP" : { + "code" : "SUBSUPP", + "display" : "subsidized supplemental health program", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "WCBPOL" : { + "code" : "WCBPOL", + "display" : "worker's compensation", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "DENTAL" : { + "code" : "DENTAL", + "display" : "dental care policy", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "DISEASE" : { + "code" : "DISEASE", + "display" : "disease specific policy", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "DRUGPOL" : { + "code" : "DRUGPOL", + "display" : "drug policy", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "HIP" : { + "code" : "HIP", + "display" : "health insurance plan policy", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "LTC" : { + "code" : "LTC", + "display" : "long term care policy", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "MCPOL" : { + "code" : "MCPOL", + "display" : "managed care policy", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "POS" : { + "code" : "POS", + "display" : "point of service policy", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "HMO" : { + "code" : "HMO", + "display" : "health maintenance organization policy", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "PPO" : { + "code" : "PPO", + "display" : "preferred provider organization policy", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "MENTPOL" : { + "code" : "MENTPOL", + "display" : "mental health policy", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "SUBPOL" : { + "code" : "SUBPOL", + "display" : "substance use policy", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "VISPOL" : { + "code" : "VISPOL", + "display" : "vision care policy", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "DIS" : { + "code" : "DIS", + "display" : "disability insurance policy", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "EWB" : { + "code" : "EWB", + "display" : "employee welfare benefit plan policy", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "FLEXP" : { + "code" : "FLEXP", + "display" : "flexible benefit plan policy", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "LIFE" : { + "code" : "LIFE", + "display" : "life insurance policy", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "ANNU" : { + "code" : "ANNU", + "display" : "annuity policy", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "TLIFE" : { + "code" : "TLIFE", + "display" : "term life insurance policy", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "ULIFE" : { + "code" : "ULIFE", + "display" : "universal life insurance policy", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "PNC" : { + "code" : "PNC", + "display" : "property and casualty insurance policy", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "REI" : { + "code" : "REI", + "display" : "reinsurance policy", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "SURPL" : { + "code" : "SURPL", + "display" : "surplus line insurance policy", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "UMBRL" : { + "code" : "UMBRL", + "display" : "umbrella liability insurance policy", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "CHAR" : { + "code" : "CHAR", + "display" : "charity program", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "CRIME" : { + "code" : "CRIME", + "display" : "crime victim program", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "EAP" : { + "code" : "EAP", + "display" : "employee assistance program", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "GOVEMP" : { + "code" : "GOVEMP", + "display" : "government employee health program", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "HIRISK" : { + "code" : "HIRISK", + "display" : "high risk pool program", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "IND" : { + "code" : "IND", + "display" : "indigenous peoples health program", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "MILITARY" : { + "code" : "MILITARY", + "display" : "military health program", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "RETIRE" : { + "code" : "RETIRE", + "display" : "retiree health program", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "SOCIAL" : { + "code" : "SOCIAL", + "display" : "social service program", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "VET" : { + "code" : "VET", + "display" : "veteran health program", + "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode" + } + }, + "CodeSystem/PriceType": { + "AP" : { + "code" : "AP", + "display" : "administrative price or handling fee", + "system" : "http://terminology.hl7.org/CodeSystem/v2-0205" + }, + "DC" : { + "code" : "DC", + "display" : "direct unit cost", + "system" : "http://terminology.hl7.org/CodeSystem/v2-0205" + }, + "IC" : { + "code" : "IC", + "display" : "indirect unit cost", + "system" : "http://terminology.hl7.org/CodeSystem/v2-0205" + }, + "PF" : { + "code" : "PF", + "display" : "professional fee for performing provider", + "system" : "http://terminology.hl7.org/CodeSystem/v2-0205" + }, + "TF" : { + "code" : "TF", + "display" : "technology fee for use of equipment", + "system" : "http://terminology.hl7.org/CodeSystem/v2-0205" + }, + "TP" : { + "code" : "TP", + "display" : "total price", + "system" : "http://terminology.hl7.org/CodeSystem/v2-0205" + }, + "UP" : { + "code" : "UP", + "display" : "unit price, may be based on length of procedure or service", + "system" : "http://terminology.hl7.org/CodeSystem/v2-0205" + } + }, + "CodeSystem/CoverageType": { + "B" : { + "code" : "B", + "display" : "Both hospital and physician", + "system" : "http://terminology.hl7.org/CodeSystem/v2-0309" + }, + "H" : { + "code" : "H", + "display" : "Hospital/institutional", + "system" : "http://terminology.hl7.org/CodeSystem/v2-0309" + }, + "P" : { + "code" : "P", + "display" : "Physician/professional", + "system" : "http://terminology.hl7.org/CodeSystem/v2-0309" + } + }, + "CodeSystem/PatientRelationship": { + "01" : { + "code" : "self", + "display" : "Self", + "system" : "http://terminology.hl7.org/CodeSystem/subscriber-relationship" + }, + "02" : { + "code" : "spouse", + "display" : "Spouse", + "system" : "http://terminology.hl7.org/CodeSystem/subscriber-relationship" + }, + "03" : { + "code" : "child", + "display" : "Child", + "system" : "http://terminology.hl7.org/CodeSystem/subscriber-relationship" + }, + "04" : { + "code" : "child", + "display" : "Child", + "system" : "http://terminology.hl7.org/CodeSystem/subscriber-relationship" + }, + "05": { + "code" : "05", + "display" : "Step child", + "system" : "http://terminology.hl7.org/CodeSystem/v2-0344" + }, + "06" : { + "code" : "06", + "display" : "Foster child", + "system" : "http://terminology.hl7.org/CodeSystem/v2-0344" + }, + "07" : { + "code" : "07", + "display" : "Ward of the court", + "system" : "http://terminology.hl7.org/CodeSystem/v2-0344" + }, + "08" : { + "code" : "08", + "display" : "Employee", + "system" : "http://terminology.hl7.org/CodeSystem/v2-0344" + }, + "09" : { + "code" : "09", + "display" : "Unknown", + "system" : "http://terminology.hl7.org/CodeSystem/v2-0344" + }, + "10" : { + "code" : "10", + "display" : "Handicapped dependent", + "system" : "http://terminology.hl7.org/CodeSystem/v2-0344" + }, + "11" : { + "code" : "11", + "display" : "Organ donor", + "system" : "http://terminology.hl7.org/CodeSystem/v2-0344" + }, + "12" : { + "code" : "12", + "display" : "Cadaver donor", + "system" : "http://terminology.hl7.org/CodeSystem/v2-0344" + }, + "13" : { + "code" : "13", + "display" : "Grandchild", + "system" : "http://terminology.hl7.org/CodeSystem/v2-0344" + }, + "14" : { + "code" : "14", + "display" : "Niece/nephew", + "system" : "http://terminology.hl7.org/CodeSystem/v2-0344" + }, + "15" : { + "code" : "injured", + "display" : "Injured Party", + "system" : "http://terminology.hl7.org/CodeSystem/subscriber-relationship" + }, + "16" : { + "code" : "16", + "display" : "Sponsored dependent", + "system" : "http://terminology.hl7.org/CodeSystem/v2-0344" + }, + "17" : { + "code" : "17", + "display" : "Minor dependent of a minor dependent", + "system" : "http://terminology.hl7.org/CodeSystem/v2-0344" + }, + "18" : { + "code" : "parent", + "display" : "Parent", + "system" : "http://terminology.hl7.org/CodeSystem/subscriber-relationship" + }, + "19" : { + "code" : "19", + "display" : "Grandparent", + "system" : "http://terminology.hl7.org/CodeSystem/v2-0344" + } } } } \ No newline at end of file diff --git a/data/Templates/Hl7v2/DataType/_CECodeableConcept.liquid b/data/Templates/Hl7v2/DataType/_CECodeableConcept.liquid new file mode 100644 index 000000000..82616a385 --- /dev/null +++ b/data/Templates/Hl7v2/DataType/_CECodeableConcept.liquid @@ -0,0 +1,26 @@ +{% if CE -%} + "coding": + [ + { + {% if mapping -%} + "code":"{{ CE.1.Value | get_property: mapping, 'code' }}", + "display":"{{ CE.1.Value | get_property: mapping, 'display' }}", + "system":"{{ CE.1.Value | get_property: mapping, 'system' }}", + "version":"{{ CE.1.Value | get_property: mapping, 'version' }}", + "version":"{{ CE.7.Value }}", + {% else -%} + "code":"{{ CE.1.Value }}", + "display":"{{ CE.2.Value }}", + + {% if CE.3 %} + "system":"http://example.com/v2-to-fhir-converter/CodeSystem/{{CE.3.Value}}", + {% endif %} + {% capture temp %}{{ CE.3.Value | get_property: 'CodeSystem/CodeSystemUrl', 'system' }}{% endcapture %} + {% if temp%} + "system":"{{temp}}", + {% endif %} + "version":"{{ CE.7.Value }}", + {% endif -%} + }, + ], +{% endif -%} \ No newline at end of file diff --git a/data/Templates/Hl7v2/DataType/_CFCodeableConcept.liquid b/data/Templates/Hl7v2/DataType/_CFCodeableConcept.liquid new file mode 100644 index 000000000..484e5e700 --- /dev/null +++ b/data/Templates/Hl7v2/DataType/_CFCodeableConcept.liquid @@ -0,0 +1,66 @@ +{% if CF -%} + "coding": + [ + { + {% if mapping -%} + "code":"{{CF.1.Value | get_property: mapping, 'code' }}", + "display":"{{CF.1.Value | get_property: mapping, 'display' }}", + "system":"{{CF.1.Value | get_property: mapping, 'system' }}", + "version":"{{CF.1.Value | get_property: mapping, 'version' }}", + "version":"{{CF.7.Value }}", + {% else -%} + "code":"{{CF.1.Value }}", + "display":"{{CF.2.Value }}", + {% if CF.3 %} + "system":"http://example.com/v2-to-fhir-converter/CodeSystem/{{CF.3.Value}}", + {% endif %} + {% capture SYSTEM_PROPERTY_VALUE %}{{ CF.3.Value | get_property: 'CodeSystem/CodeSystemUrl', 'system' }}{% endcapture %} + {% if SYSTEM_PROPERTY_VALUE -%} + "system":"{{SYSTEM_PROPERTY_VALUE}}", + {% endif %} + "version":"{{CF.7.Value }}", + {% endif -%} + }, + { + {% if mapping -%} + "code":"{{CF.4.Value | get_property: mapping, 'code' }}", + "display":"{{CF.4.Value | get_property: mapping, 'display' }}", + "system":"{{CF.4.Value | get_property: mapping, 'system' }}", + "version":"{{CF.4.Value | get_property: mapping, 'version' }}", + "version":"{{CF.8.Value }}", + {% else -%} + "code":"{{CF.4.Value }}", + "display":"{{CF.5.Value }}", + {% if CF.6 %} + "system":"http://example.com/v2-to-fhir-converter/CodeSystem/{{CF.6.Value}}", + {% endif %} + {% capture SYSTEM_PROPERTY_VALUE %}{{ CF.6.Value | get_property: 'CodeSystem/CodeSystemUrl', 'system' }}{% endcapture %} + {% if SYSTEM_PROPERTY_VALUE -%} + "system":"{{SYSTEM_PROPERTY_VALUE}}", + {% endif %} + "version":"{{CF.8.Value }}", + {% endif -%} + }, + { + {% if mapping -%} + "code":"{{CF.10.Value | get_property: mapping, 'code' }}", + "display":"{{CF.10.Value | get_property: mapping, 'display' }}", + "system":"{{CF.10.Value | get_property: mapping, 'system' }}", + "version":"{{CF.10.Value | get_property: mapping, 'version' }}", + "version":"{{CF.13.Value }}", + {% else -%} + "code":"{{CF.10.Value }}", + "display":"{{CF.11.Value }}", + {% if CF.12 %} + "system":"http://example.com/v2-to-fhir-converter/CodeSystem/{{CF.12.Value}}", + {% endif %} + {% capture SYSTEM_PROPERTY_VALUE %}{{ CF.12.Value | get_property: 'CodeSystem/CodeSystemUrl', 'system' }}{% endcapture %} + {% if SYSTEM_PROPERTY_VALUE -%} + "system":"{{SYSTEM_PROPERTY_VALUE}}", + {% endif %} + "version":"{{CF.13.Value }}", + {% endif -%} + }, + ], + "text":"{{CF.9.Value }}", +{% endif -%} \ No newline at end of file diff --git a/data/Templates/Hl7v2/DataType/_CNECodeableConcept.liquid b/data/Templates/Hl7v2/DataType/_CNECodeableConcept.liquid new file mode 100644 index 000000000..d0c4f3715 --- /dev/null +++ b/data/Templates/Hl7v2/DataType/_CNECodeableConcept.liquid @@ -0,0 +1,42 @@ +{% if CNE -%} + "coding": + [ + { + "code":"{{ CNE.1.Value }}", + "display":"{{ CNE.2.Value }}", + {% if CNE.3 %} + "system":"http://example.com/v2-to-fhir-converter/CodeSystem/{{CNE.3.Value}}", + {% endif %} + {% capture temp %}{{ CNE.3.Value | get_property: 'CodeSystem/CodeSystemUrl', 'system' }}{% endcapture %} + {% if temp%} + "system":"{{temp}}", + {% endif %} + "version":"{{ CNE.7.Value }}", + }, + { + "code":"{{ CNE.4.Value }}", + "display":"{{ CNE.5.Value }}", + {% if CNE.6 %} + "system":"http://example.com/v2-to-fhir-converter/CodeSystem/{{CNE.6.Value}}", + {% endif %} + {% capture temp %}{{ CNE.6.Value | get_property: 'CodeSystem/CodeSystemUrl', 'system' }}{% endcapture %} + {% if temp%} + "system":"{{temp}}", + {% endif %} + "version":"{{ CNE.8.Value }}", + }, + { + "code":"{{ CNE.10.Value }}", + "display":"{{ CNE.11.Value }}", + {% if CNE.12 %} + "system":"http://example.com/v2-to-fhir-converter/CodeSystem/{{CNE.12.Value}}", + {% endif %} + {% capture temp %}{{ CNE.12.Value | get_property: 'CodeSystem/CodeSystemUrl', 'system' }}{% endcapture %} + {% if temp%} + "system":"{{temp}}", + {% endif %} + "version":"{{ CNE.13.Value }}", + }, + ], + "text":"{{ CNE.9.Value }}", +{% endif -%} \ No newline at end of file diff --git a/data/Templates/Hl7v2/DataType/_CWECode.liquid b/data/Templates/Hl7v2/DataType/_CWECode.liquid index a31d90ba1..9294567da 100644 --- a/data/Templates/Hl7v2/DataType/_CWECode.liquid +++ b/data/Templates/Hl7v2/DataType/_CWECode.liquid @@ -1,3 +1,14 @@ +{% comment -%} + CWECode datatype template is use to display code value. + Before calling CWECode template please ensure that value is present in associated CWE feild. +{% endcomment -%} {% if CWE -%} - "code":"{{ CWE.1.Value }}", + {% if mapping -%} + {% if CWE.1.Value -%} + "{{ CWE.1.Value | get_property: mapping, 'code' }}" + {% endif -%} + {% unless CWE.1.Value -%} + "{{ CWE.4.Value | get_property: mapping, 'code' }}" + {% endunless %} + {% endif -%} {% endif -%} \ No newline at end of file diff --git a/data/Templates/Hl7v2/DataType/_CWECodeableConcept.liquid b/data/Templates/Hl7v2/DataType/_CWECodeableConcept.liquid index edc8b35d7..b560ea75b 100644 --- a/data/Templates/Hl7v2/DataType/_CWECodeableConcept.liquid +++ b/data/Templates/Hl7v2/DataType/_CWECodeableConcept.liquid @@ -7,10 +7,18 @@ "display":"{{ CWE.1.Value | get_property: mapping, 'display' }}", "system":"{{ CWE.1.Value | get_property: mapping, 'system' }}", "version":"{{ CWE.1.Value | get_property: mapping, 'version' }}", + "version":"{{ CWE.7.Value }}", {% else -%} "code":"{{ CWE.1.Value }}", "display":"{{ CWE.2.Value }}", - "system":"{{ CWE.3.Value }}", + + {% if CWE.3 %} + "system":"http://example.com/v2-to-fhir-converter/CodeSystem/{{CWE.3.Value}}", + {% endif %} + {% capture temp %}{{ CWE.3.Value | get_property: 'CodeSystem/CodeSystemUrl', 'system' }}{% endcapture %} + {% if temp%} + "system":"{{temp}}", + {% endif %} "version":"{{ CWE.7.Value }}", {% endif -%} }, @@ -20,10 +28,17 @@ "display":"{{ CWE.4.Value | get_property: mapping, 'display' }}", "system":"{{ CWE.4.Value | get_property: mapping, 'system' }}", "version":"{{ CWE.4.Value | get_property: mapping, 'version' }}", + "version":"{{ CWE.8.Value }}", {% else -%} "code":"{{ CWE.4.Value }}", "display":"{{ CWE.5.Value }}", - "system":"{{ CWE.6.Value }}", + {% if CWE.6 %} + "system":"http://example.com/v2-to-fhir-converter/CodeSystem/{{CWE.6.Value}}", + {% endif %} + {% capture temp %}{{ CWE.6.Value | get_property: 'CodeSystem/CodeSystemUrl', 'system' }}{% endcapture %} + {% if temp%} + "system":"{{temp}}", + {% endif %} "version":"{{ CWE.8.Value }}", {% endif -%} }, @@ -33,10 +48,17 @@ "display":"{{ CWE.10.Value | get_property: mapping, 'display' }}", "system":"{{ CWE.10.Value | get_property: mapping, 'system' }}", "version":"{{ CWE.10.Value | get_property: mapping, 'version' }}", + "version":"{{ CWE.13.Value }}", {% else -%} "code":"{{ CWE.10.Value }}", "display":"{{ CWE.11.Value }}", - "system":"{{ CWE.12.Value }}", + {% if CWE.12 %} + "system":"http://example.com/v2-to-fhir-converter/CodeSystem/{{CWE.12.Value}}", + {% endif %} + {% capture temp %}{{ CWE.12.Value | get_property: 'CodeSystem/CodeSystemUrl', 'system' }}{% endcapture %} + {% if temp%} + "system":"{{temp}}", + {% endif %} "version":"{{ CWE.13.Value }}", {% endif -%} }, diff --git a/data/Templates/Hl7v2/DataType/_CWECodeableConceptRepeatable.liquid b/data/Templates/Hl7v2/DataType/_CWECodeableConceptRepeatable.liquid new file mode 100644 index 000000000..7feedf921 --- /dev/null +++ b/data/Templates/Hl7v2/DataType/_CWECodeableConceptRepeatable.liquid @@ -0,0 +1,66 @@ +{% if CWE -%} + { + {% if mapping -%} + "code":"{{ CWE.1.Value | get_property: mapping, 'code' }}", + "display":"{{ CWE.1.Value | get_property: mapping, 'display' }}", + "system":"{{ CWE.1.Value | get_property: mapping, 'system' }}", + "version":"{{ CWE.1.Value | get_property: mapping, 'version' }}", + "version":"{{ CWE.7.Value }}", + {% else -%} + "code":"{{ CWE.1.Value }}", + "display":"{{ CWE.2.Value }}", + + {% if CWE.3 %} + "system":"http://example.com/v2-to-fhir-converter/CodeSystem/{{CWE.3.Value}}", + {% endif %} + {% capture SYSTEM_PROPERTY_VALUE %}{{ CWE.3.Value | get_property: 'CodeSystem/CodeSystemUrl', 'system' }}{% endcapture %} + {% if SYSTEM_PROPERTY_VALUE -%} + "system":"{{SYSTEM_PROPERTY_VALUE}}", + {% endif %} + {%- comment -%} + "system": "{{ CWE.3.Value | get_property: 'CodeSystem/CodeSystemURL', 'system' }}", + {%- endcomment -%} + "version":"{{ CWE.7.Value }}", + {% endif -%} + }, + { + {% if mapping -%} + "code":"{{ CWE.4.Value | get_property: mapping, 'code' }}", + "display":"{{ CWE.4.Value | get_property: mapping, 'display' }}", + "system":"{{ CWE.4.Value | get_property: mapping, 'system' }}", + "version":"{{ CWE.4.Value | get_property: mapping, 'version' }}", + "version":"{{ CWE.8.Value }}", + {% else -%} + "code":"{{ CWE.4.Value }}", + "display":"{{ CWE.5.Value }}", + {% if CWE.6 %} + "system":"http://example.com/v2-to-fhir-converter/CodeSystem/{{CWE.6.Value}}", + {% endif %} + {% capture SYSTEM_PROPERTY_VALUE %}{{ CWE.6.Value | get_property: 'CodeSystem/CodeSystemUrl', 'system' }}{% endcapture %} + {% if SYSTEM_PROPERTY_VALUE -%} + "system":"{{SYSTEM_PROPERTY_VALUE}}", + {% endif %} + "version":"{{ CWE.8.Value }}", + {% endif -%} + }, + { + {% if mapping -%} + "code":"{{ CWE.10.Value | get_property: mapping, 'code' }}", + "display":"{{ CWE.10.Value | get_property: mapping, 'display' }}", + "system":"{{ CWE.10.Value | get_property: mapping, 'system' }}", + "version":"{{ CWE.10.Value | get_property: mapping, 'version' }}", + "version":"{{ CWE.13.Value }}", + {% else -%} + "code":"{{ CWE.10.Value }}", + "display":"{{ CWE.11.Value }}", + {% if CWE.12 %} + "system":"http://example.com/v2-to-fhir-converter/CodeSystem/{{CWE.12.Value}}", + {% endif %} + {% capture SYSTEM_PROPERTY_VALUE %}{{ CWE.12.Value | get_property: 'CodeSystem/CodeSystemUrl', 'system' }}{% endcapture %} + {% if SYSTEM_PROPERTY_VALUE -%} + "system":"{{SYSTEM_PROPERTY_VALUE}}", + {% endif %} + "version":"{{ CWE.13.Value }}", + {% endif -%} + }, +{% endif -%} \ No newline at end of file diff --git a/data/Templates/Hl7v2/DataType/_CWECoding.liquid b/data/Templates/Hl7v2/DataType/_CWECoding.liquid index afea62ae2..f9b1af4db 100644 --- a/data/Templates/Hl7v2/DataType/_CWECoding.liquid +++ b/data/Templates/Hl7v2/DataType/_CWECoding.liquid @@ -4,10 +4,21 @@ "display":"{{ CWE.1.Value | get_property: mapping, 'display' }}", "system":"{{ CWE.1.Value | get_property: mapping, 'system' }}", "version":"{{ CWE.1.Value | get_property: mapping, 'version' }}", + "version":"{{ CWE.7.Value }}", {% else -%} "code":"{{ CWE.1.Value }}", "display":"{{ CWE.2.Value }}", - "system":"{{ CWE.3.Value }}", + + {% if CWE.3 %} + "system":"http://example.com/v2-to-fhir-converter/CodeSystem/{{CWE.3.Value}}", + {% endif %} + {% capture SYSTEM_PROPERTY_VALUE %}{{ CWE.3.Value | get_property: 'CodeSystem/CodeSystemUrl', 'system' }}{% endcapture %} + {% if SYSTEM_PROPERTY_VALUE -%} + "system":"{{SYSTEM_PROPERTY_VALUE}}", + {% endif %} + {%- comment -%} + "system": "{{ CWE.3.Value | get_property: 'CodeSystem/CodeSystemURL', 'system' }}", + {%- endcomment -%} "version":"{{ CWE.7.Value }}", - {% endif -%} + {% endif -%} {% endif -%} \ No newline at end of file diff --git a/data/Templates/Hl7v2/DataType/_CWEIdentifier.liquid b/data/Templates/Hl7v2/DataType/_CWEIdentifier.liquid new file mode 100644 index 000000000..0eba8f0ce --- /dev/null +++ b/data/Templates/Hl7v2/DataType/_CWEIdentifier.liquid @@ -0,0 +1,20 @@ +"identifier" : [ + { + "value": "{{CWE.1}}", + {% if CWE.3 %} + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/{{CWE.3}}", + {% endif %} + }, + { + "value": "{{CWE.4}}", + {% if CWE.6 %} + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/{{CWE.6}}", + {% endif %} + }, + { + "value": "{{CWE.10}}", + {% if CWE.12 %} + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/{{CWE.12}}", + {% endif %} + }, +], \ No newline at end of file diff --git a/data/Templates/Hl7v2/DataType/_CWEQuantity.liquid b/data/Templates/Hl7v2/DataType/_CWEQuantity.liquid index 11a85e4b9..f6281afb0 100644 --- a/data/Templates/Hl7v2/DataType/_CWEQuantity.liquid +++ b/data/Templates/Hl7v2/DataType/_CWEQuantity.liquid @@ -7,6 +7,10 @@ {% endif -%} "unit":"{{ CWE.2.Value }}", {% if CWE.1 and CWE.3 -%} - "system":"{{ CWE.3.Value }}", - {% endif -%} + "system":"http://example.com/v2-to-fhir-converter/CodeSystem/{{CWE.3.Value}}", + {% endif %} + {% capture temp %}{{ CWE.3.Value | get_property: 'CodeSystem/CodeSystemUrl', 'system' }}{% endcapture %} + {% if temp %} + "system":"{{temp}}", + {% endif %} {% endif -%} diff --git a/data/Templates/Hl7v2/DataType/_CX.liquid b/data/Templates/Hl7v2/DataType/_CX.liquid index 8b2b7a7dd..5047142fe 100644 --- a/data/Templates/Hl7v2/DataType/_CX.liquid +++ b/data/Templates/Hl7v2/DataType/_CX.liquid @@ -7,9 +7,19 @@ { "code":"{{ CX.5.Value | get_property: 'CodeSystem/IDType', 'code' }}", "system":"{{ CX.5.Value | get_property: 'CodeSystem/IDType', 'system' }}", + "display":"{{ CX.5.Value | get_property: 'CodeSystem/IDType', 'display' }}", }, ], }, + {% if CX.4 -%} + {% include 'DataType/HDUri' HD: CX.4 -%} + {% endif -%} + {% if CX.4.1 != "" and CX.4.1 != null and CX.4.2 != "" and CX.4.2 != null and CX.4.3 != "" and CX.4.3 != null -%} + {% evaluate Organization_ID_CX using 'ID/Organization' HDORG: CX.4 -%} + "assigner": { + "reference": "Organization/{{ Organization_ID_CX }}", + }, + {% endif -%} "period": { "start":"{{ CX.7.Value | format_as_date_time }}", diff --git a/data/Templates/Hl7v2/DataType/_DLDLocation.liquid b/data/Templates/Hl7v2/DataType/_DLDLocation.liquid new file mode 100644 index 000000000..3c24ca5cd --- /dev/null +++ b/data/Templates/Hl7v2/DataType/_DLDLocation.liquid @@ -0,0 +1,34 @@ +{% assign textstring = "" -%} +{% if DLD -%} + {% if DLD.1 -%} + {% assign textstring = "" -%} + + {% if DLD.1.2 %} + {% capture textstring %}{{ textstring | append: DLD.1.2 }}{% endcapture -%} + {% endif %} + {% if DLD.1.2 != null and DLD.1.2 != "" and DLD.1.5 != null and DLD.1.5 != "" %} + {% capture textstring %}{{ textstring | append: "--" | append: DLD.1.5 }}{% endcapture -%} + {% else %} + {% capture textstring %}{{ textstring | append: DLD.1.5 }}{% endcapture -%} + {% endif %} + {% if DLD.1.11 != null and DLD.1.11 != "" and DLD.1.2 != null and DLD.1.2 != "" or DLD.1.5 != null and DLD.1.5 != ""%} + {% capture textstring %}{{ textstring | append: "--" | append: DLD.1.11 }}{% endcapture -%} + {% else %} + {% capture textstring %}{{ textstring | append: DLD.1.11 }}{% endcapture -%} + {% endif %} + + "name": "{{ textstring }}", + + {% include 'DataType/CWEIdentifier' CWE: DLD.1 -%} + "physicalType": + { + "coding": + [ + { + "code": "si", + "system":"http://terminology.hl7.org/CodeSystem/location-physical-type", + }, + ], + }, + {% endif %} +{% endif -%} \ No newline at end of file diff --git a/data/Templates/Hl7v2/DataType/_DLN.liquid b/data/Templates/Hl7v2/DataType/_DLN.liquid index c604f1924..dd5771d66 100644 --- a/data/Templates/Hl7v2/DataType/_DLN.liquid +++ b/data/Templates/Hl7v2/DataType/_DLN.liquid @@ -11,7 +11,7 @@ }, ], }, - "system":"{{ DLN.2.Value }}", + "system":"http://example.com/v2-to-fhir-converter/CodeSystem/{{ DLN.2.Value }}", "period": { "end":"{{ DLN.3.Value | format_as_date_time }}", diff --git a/data/Templates/Hl7v2/DataType/_DRPeriod.liquid b/data/Templates/Hl7v2/DataType/_DRPeriod.liquid new file mode 100644 index 000000000..8c1b3b1a7 --- /dev/null +++ b/data/Templates/Hl7v2/DataType/_DRPeriod.liquid @@ -0,0 +1,4 @@ +{% if DR -%} + "start":"{{ DR.1.Value | format_as_date_time }}", + "end":"{{ DR.2.Value | format_as_date_time }}", +{% endif -%} diff --git a/data/Templates/Hl7v2/DataType/_EDAttachment.liquid b/data/Templates/Hl7v2/DataType/_EDAttachment1.liquid similarity index 100% rename from data/Templates/Hl7v2/DataType/_EDAttachment.liquid rename to data/Templates/Hl7v2/DataType/_EDAttachment1.liquid diff --git a/data/Templates/Hl7v2/DataType/_EDAttachment2.liquid b/data/Templates/Hl7v2/DataType/_EDAttachment2.liquid new file mode 100644 index 000000000..4ab6f8e6e --- /dev/null +++ b/data/Templates/Hl7v2/DataType/_EDAttachment2.liquid @@ -0,0 +1,4 @@ +{% if ED -%} + "contentType":"{{ ED.2.Value }}", + "url": "http://example.com/v2-to-fhir-converter/CodeSystem/{{ ED.5.Value }}", +{% endif -%} diff --git a/data/Templates/Hl7v2/DataType/_EIIdentifier.liquid b/data/Templates/Hl7v2/DataType/_EIIdentifier.liquid index 27db8a8e5..8c13dcd7c 100644 --- a/data/Templates/Hl7v2/DataType/_EIIdentifier.liquid +++ b/data/Templates/Hl7v2/DataType/_EIIdentifier.liquid @@ -1,3 +1,33 @@ +{% comment -%} {% if EI -%} "value":"{{ EI.1.Value }}", {% endif -%} +{% endcomment -%} +{% if EI -%} + "value":"{{ EI.1.Value }}", + {% unless EI.3.Value and EI.4.Value -%} + {% if EI.2 %} + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-{{EI.2.Value}}", + {% endif %} + {% endunless -%} + {% if EI.4.Value -%} + {% if EI.4.Value == "URI" -%} + "system": "{{ EI.3.Value }}", + {% elsif EI.4.Value == "ISO" or EI.4.Value == "CLIA" or EI.4.Value == "CLIP" -%} + "system": "urn:oid:{{ EI.3.Value }}", + {% elsif EI.4.Value == "UUID" or EI.4.Value == "GUID" -%} + "system": "urn:uuid:{{ EI.3.Value }}", + {% else -%} + "system": "http://example.com/v2-to-fhir-converter/universal-entity-identifier-{{EI.4.Value}}", + {% endif -%} + "type":{ + "coding": [ + { + "code": "{{ EI.4.Value | get_property: 'CodeSystem/UniversalIDType', 'code' }}", + "display": "{{ EI.4.Value | get_property: 'CodeSystem/UniversalIDType', 'display' }}", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301", + } + ] + }, + {% endif -%} +{% endif -%} \ No newline at end of file diff --git a/data/Templates/Hl7v2/DataType/_FNHumanName.liquid b/data/Templates/Hl7v2/DataType/_FNHumanName.liquid new file mode 100644 index 000000000..28a511f65 --- /dev/null +++ b/data/Templates/Hl7v2/DataType/_FNHumanName.liquid @@ -0,0 +1,3 @@ +{% if FN -%} + "family":"{{ FN.Value }}", +{% endif -%} \ No newline at end of file diff --git a/data/Templates/Hl7v2/DataType/_HDDevice.liquid b/data/Templates/Hl7v2/DataType/_HDDevice.liquid new file mode 100644 index 000000000..0de194256 --- /dev/null +++ b/data/Templates/Hl7v2/DataType/_HDDevice.liquid @@ -0,0 +1,38 @@ +{% if HD -%} + "identifier": + [ + { + "value":"{{ HD.1.Value }}", + "type":{ + "coding": [ + { + {%if HD.3 %} + {% comment -%} {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/UniversalIDType', CWE: HD.3 -%} {% endcomment -%} + "code": "{{ HD.3.Value | get_property: 'CodeSystem/UniversalIDType', 'code' }}", + "display": "{{ HD.3.Value | get_property: 'CodeSystem/UniversalIDType', 'display' }}", + "system": "{{ HD.3.Value | get_property: 'CodeSystem/UniversalIDType', 'system' }}", + {% endif -%} + } + ] + }, + }, + { + {%if HD.2 %} + "value":"urn:ietf:rfc:3986", + {% endif -%} + {% comment -%} Placeholder provided for customization by users. If left empty, it will be removed in post-processing. {% endcomment -%} + "type":{ + "coding": [ + { + {%if HD.3 %} + {% comment -%} {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/UniversalIDType', CWE: HD.3 -%} {% endcomment -%} + "code": "{{ HD.3.Value | get_property: 'CodeSystem/UniversalIDType', 'code' }}", + "display": "{{ HD.3.Value | get_property: 'CodeSystem/UniversalIDType', 'display' }}", + "system": "{{ HD.3.Value | get_property: 'CodeSystem/UniversalIDType', 'system' }}", + {% endif -%} + } + ] + }, + }, + ], +{% endif -%} \ No newline at end of file diff --git a/data/Templates/Hl7v2/DataType/_HDDevice_InternalValue.liquid b/data/Templates/Hl7v2/DataType/_HDDevice_InternalValue.liquid new file mode 100644 index 000000000..212533a5f --- /dev/null +++ b/data/Templates/Hl7v2/DataType/_HDDevice_InternalValue.liquid @@ -0,0 +1,38 @@ +{% if HD -%} + "identifier": + [ + { + "value":"{{ HD.1}}", + "type":{ + "coding": [ + { + {%if HD.3 %} + {% comment -%} {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/UniversalIDType', CWE: HD.3 -%} {% endcomment -%} + "code": "{{ HD.3 | get_property: 'CodeSystem/UniversalIDType', 'code' }}", + "display": "{{ HD.3 | get_property: 'CodeSystem/UniversalIDType', 'display' }}", + "system": "{{ HD.3 | get_property: 'CodeSystem/UniversalIDType', 'system' }}", + {% endif -%} + } + ] + }, + }, + { + {%if HD.2 %} + "value":"urn:ietf:rfc:3986", + {% endif -%} + {% comment -%} Placeholder provided for customization by users. If left empty, it will be removed in post-processing. {% endcomment -%} + "type":{ + "coding": [ + { + {%if HD.3 %} + {% comment -%} {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/UniversalIDType', CWE: HD.3 -%} {% endcomment -%} + "code": "{{ HD.3 | get_property: 'CodeSystem/UniversalIDType', 'code' }}", + "display": "{{ HD.3 | get_property: 'CodeSystem/UniversalIDType', 'display' }}", + "system": "{{ HD.3 | get_property: 'CodeSystem/UniversalIDType', 'system' }}", + {% endif -%} + } + ] + }, + }, + ], +{% endif -%} \ No newline at end of file diff --git a/data/Templates/Hl7v2/DataType/_HDLocation.liquid b/data/Templates/Hl7v2/DataType/_HDLocation.liquid new file mode 100644 index 000000000..a5a48e1bd --- /dev/null +++ b/data/Templates/Hl7v2/DataType/_HDLocation.liquid @@ -0,0 +1,34 @@ +{% if HD -%} + "name":"{{ HD.1.Value }}", + {% if HD.2.Value and HD.3.Value -%} + "identifier": + [ + { + {% if HD.3.Value == "ISO" or HD.3.Value == "CLIA" or HD.3.Value == "CLIP" -%} + "value":"urn:oid:{{ HD.2.Value }}", + {% elsif HD.3.Value == "UUID" or HD.3.Value == "GUID"-%} + "value":"urn:uuid:{{ HD.2.Value }}", + {% else %} + "value":"{{ HD.2.Value }}", + {% endif -%} + + {% if HD.3.Value == "ISO" or HD.3.Value == "CLIA" or HD.3.Value == "CLIP" or HD.3.Value == "UUID" or HD.3.Value == "GUID"-%} + "system": "urn:ietf:rfc:3986", + {% else %} + "system": "http://example.com/v2-to-fhir-converter/location-universal-system-{{HD.3.Value}}", + {% endif -%} + }, + ], + {% endif -%} + "physicalType": + { + "coding": + [ + { + "code":"si", + "display":"site", + "system":"http://terminology.hl7.org/CodeSystem/location-physical-type", + }, + ], + }, +{% endif -%} diff --git a/data/Templates/Hl7v2/DataType/_HDMSH_24.liquid b/data/Templates/Hl7v2/DataType/_HDMSH_24.liquid deleted file mode 100644 index d5e50d55c..000000000 --- a/data/Templates/Hl7v2/DataType/_HDMSH_24.liquid +++ /dev/null @@ -1,8 +0,0 @@ -{% if HD -%} - "source": - { - {% if HD.3.Value == "URI" -%} - "endpoint":"{{ HD.2.Value }}", - {% endif -%} - }, -{% endif -%} diff --git a/data/Templates/Hl7v2/DataType/_HDMSH_3.liquid b/data/Templates/Hl7v2/DataType/_HDMSH_3.liquid deleted file mode 100644 index c0794df38..000000000 --- a/data/Templates/Hl7v2/DataType/_HDMSH_3.liquid +++ /dev/null @@ -1,3 +0,0 @@ -{% if HD -%} - "name":"{{ HD.1.Value }}", -{% endif -%} \ No newline at end of file diff --git a/data/Templates/Hl7v2/DataType/_HDMSH_4.liquid b/data/Templates/Hl7v2/DataType/_HDMSH_4.liquid deleted file mode 100644 index e69de29bb..000000000 diff --git a/data/Templates/Hl7v2/DataType/_HDMSH_5.liquid b/data/Templates/Hl7v2/DataType/_HDMSH_5.liquid deleted file mode 100644 index c0794df38..000000000 --- a/data/Templates/Hl7v2/DataType/_HDMSH_5.liquid +++ /dev/null @@ -1,3 +0,0 @@ -{% if HD -%} - "name":"{{ HD.1.Value }}", -{% endif -%} \ No newline at end of file diff --git a/data/Templates/Hl7v2/DataType/_HDMSH_6.liquid b/data/Templates/Hl7v2/DataType/_HDMSH_6.liquid deleted file mode 100644 index 6dbdb1da3..000000000 --- a/data/Templates/Hl7v2/DataType/_HDMSH_6.liquid +++ /dev/null @@ -1,3 +0,0 @@ -{% if HD -%} - "endpoint":"{{ HD.1.Value }}", -{% endif -%} \ No newline at end of file diff --git a/data/Templates/Hl7v2/DataType/_HDMessageHeader_destination.liquid b/data/Templates/Hl7v2/DataType/_HDMessageHeader_destination.liquid new file mode 100644 index 000000000..9bdef9447 --- /dev/null +++ b/data/Templates/Hl7v2/DataType/_HDMessageHeader_destination.liquid @@ -0,0 +1,17 @@ +{% if HD -%} + "name":"{{ HD.1.Value }}", + {% if HD.3 %} + {% if HD.3.Value == "ISO" -%} + "endpoint":"urn:oid:{{HD.2.Value}}", + {% elsif HD.3.Value == "UUID" -%} + "endpoint":"urn:uuid:{{HD.2.Value}}", + {% else %} + "endpoint":"unknown", + {% endif -%} + {% else %} + "_endpoint": + { + {% include 'Extensions/DataAbsentReason' -%}, + }, + {% endif -%} +{% endif -%} \ No newline at end of file diff --git a/data/Templates/Hl7v2/DataType/_HDMessageHeader_source.liquid b/data/Templates/Hl7v2/DataType/_HDMessageHeader_source.liquid new file mode 100644 index 000000000..5ded53bd3 --- /dev/null +++ b/data/Templates/Hl7v2/DataType/_HDMessageHeader_source.liquid @@ -0,0 +1,17 @@ +{% if HD -%} + "name":"{{ HD.1.Value }}", + {% if HD.3 %} + {% if HD.3.Value == "ISO" -%} + "endpoint":"urn:oid:{{HD.2.Value}}", + {% elsif HD.3.Value == "UUID" -%} + "endpoint":"urn:uuid:{{HD.2.Value}}", + {% elsif HD.3.Value != "ISO" and HD.3.Value != "UUID" %} + "endpoint":"unknown", + {% endif -%} + {% else %} + "_endpoint": + { + {% include 'Extensions/DataAbsentReason' -%}, + }, + {% endif -%} +{% endif -%} \ No newline at end of file diff --git a/data/Templates/Hl7v2/DataType/_HDOrganization.liquid b/data/Templates/Hl7v2/DataType/_HDOrganization.liquid index 25767f6cb..011e725b2 100644 --- a/data/Templates/Hl7v2/DataType/_HDOrganization.liquid +++ b/data/Templates/Hl7v2/DataType/_HDOrganization.liquid @@ -1,18 +1,36 @@ {% if HD -%} "identifier": [ - { + { "value":"{{ HD.1.Value }}", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-{{HD.1.Value | replace: ' ', '-' }}", }, + {% if HD.2.Value and HD.3.Value -%} { - "value":"{{ HD.2.Value }}", - {% comment -%} Placeholder provided for customization by users. If left empty, it will be removed in post-processing. {% endcomment -%} - "type": - { - }, - {% if HD.3 -%} - "system":"{{ "urn:ietf:rfc:3986" | get_property: 'CodeSystem/UniversalIDType', 'system' }}", + {% if HD.3.Value == "ISO" or HD.3.Value == "CLIA" or HD.3.Value == "CLIP" -%} + "value":"urn:oid:{{ HD.2.Value }}", + {% elsif HD.3.Value == "UUID" or HD.3.Value == "GUID"-%} + "value":"urn:uuid:{{ HD.2.Value }}", + {% else %} + "value":"{{ HD.2.Value }}", {% endif -%} + + {% if HD.3.Value == "ISO" or HD.3.Value == "UUID" or HD.3.Value == "CLIA" or HD.3.Value == "CLIP" or HD.3.Value == "GUID" or HD.3.Value == "URI" -%} + "system": "urn:ietf:rfc:3986", + {% else -%} + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-{{HD.3.Value | replace: ' ', '-' }}", + {% endif -%} + + "type":{ + "coding": [ + { + "code": "{{ HD.3.Value | get_property: 'CodeSystem/UniversalIDType', 'code' }}", + "display": "{{ HD.3.Value | get_property: 'CodeSystem/UniversalIDType', 'display' }}", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301", + } + ] + }, }, + {% endif -%} ], -{% endif -%} +{% endif -%} diff --git a/data/Templates/Hl7v2/DataType/_HDOrganization_InternalValue.liquid b/data/Templates/Hl7v2/DataType/_HDOrganization_InternalValue.liquid new file mode 100644 index 000000000..0643d9eb8 --- /dev/null +++ b/data/Templates/Hl7v2/DataType/_HDOrganization_InternalValue.liquid @@ -0,0 +1,36 @@ +{% if HD -%} + "identifier": + [ + { + "value":"{{ HD.1 }}", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-{{HD.1 | replace: ' ', '-' }}" + }, + {% if HD.2 and HD.3 -%} + { + {% if HD.3 == "ISO" or HD.3 == "CLIA" or HD.3 == "CLIP" -%} + "value":"urn:oid:{{ HD.2 }}", + {% elsif HD.3 == "UUID" or HD.3 == "GUID"-%} + "value":"urn:uuid:{{ HD.2 }}", + {% else %} + "value":"{{ HD.2 }}", + {% endif -%} + + {% if HD.3 == "ISO" or HD.3 == "UUID" or HD.3 == "CLIA" or HD.3 == "CLIP" or HD.3 == "GUID" or HD.3 == "URI" -%} + "system": "urn:ietf:rfc:3986", + {% else -%} + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-{{HD.3 | replace: ' ', '-' }}", + {% endif -%} + + "type":{ + "coding": [ + { + "code": "{{ HD.3 | get_property: 'CodeSystem/UniversalIDType', 'code' }}", + "display": "{{ HD.3 | get_property: 'CodeSystem/UniversalIDType', 'display' }}", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301", + } + ] + }, + }, + {% endif -%} + ], +{% endif -%} diff --git a/data/Templates/Hl7v2/DataType/_HDUri.liquid b/data/Templates/Hl7v2/DataType/_HDUri.liquid new file mode 100644 index 000000000..6dd6c70ea --- /dev/null +++ b/data/Templates/Hl7v2/DataType/_HDUri.liquid @@ -0,0 +1,16 @@ +{% if HD -%} + + {% if HD.1 and HD.2 == null or HD.2 == "" and HD.3 == null or HD.3 == "" -%} + "system":"http://example.com/v2-to-fhir-converter/assigning-authority-local-system-{{HD.1 | replace: ' ', '-' }}", + + {% elsif HD.3 == "ISO" or HD.3 == "CLIA" or HD.3 == "CLIP" -%} + "system":"urn:oid:{{HD.2}}", + + {% elsif HD.3 == "UUID" or HD.3 == "GUID" -%} + "system":"urn:uuid:{{HD.2}}", + + {% else -%} + "system":"http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-{{HD.3 | replace: ' ', '-' }}", + {% endif -%} + +{% endif -%} diff --git a/data/Templates/Hl7v2/DataType/_IDCodeableConcept.liquid b/data/Templates/Hl7v2/DataType/_IDCodeableConcept.liquid new file mode 100644 index 000000000..b7f299d30 --- /dev/null +++ b/data/Templates/Hl7v2/DataType/_IDCodeableConcept.liquid @@ -0,0 +1,24 @@ +{% if ID -%} + {% if mapping -%} + "code":"{{ ID.1.Value | get_property: mapping, 'code' }}", + "display":"{{ ID.1.Value | get_property: mapping, 'display' }}", + "system":"{{ ID.1.Value | get_property: mapping, 'system' }}", + "version":"{{ ID.1.Value | get_property: mapping, 'version' }}", + "version":"{{ ID.7.Value }}", + {% else -%} + "code":"{{ ID.1.Value }}", + "display":"{{ ID.2.Value }}", + + {% if ID.3 %} + "system":"http://example.com/v2-to-fhir-converter/CodeSystem/{{ID.3.Value}}", + {% endif %} + {% capture SYSTEM_PROPERTY_VALUE %}{{ ID.3.Value | get_property: 'CodeSystem/CodeSystemUrl', 'system' }}{% endcapture %} + {% if SYSTEM_PROPERTY_VALUE -%} + "system":"{{SYSTEM_PROPERTY_VALUE}}", + {% endif %} + {%- comment -%} + "system": "{{ ID.3.Value | get_property: 'CodeSystem/CodeSystemURL', 'system' }}", + {%- endcomment -%} + "version":"{{ ID.7.Value }}", + {% endif -%} +{% endif -%} \ No newline at end of file diff --git a/data/Templates/Hl7v2/DataType/_IDCoding.liquid b/data/Templates/Hl7v2/DataType/_IDCoding.liquid new file mode 100644 index 000000000..540b92bab --- /dev/null +++ b/data/Templates/Hl7v2/DataType/_IDCoding.liquid @@ -0,0 +1,14 @@ +{% if ID -%} + {% if mapping -%} + "code":"{{ ID.1.Value | get_property: mapping, 'code' }}", + "display":"{{ ID.1.Value | get_property: mapping, 'display' }}", + "system":"{{ ID.1.Value | get_property: mapping, 'system' }}", + {% endif -%} +{% endif -%} +{% if CD -%} + {% if mapping -%} + "code":"{{ CD.Value | get_property: mapping, 'code' }}", + "display":"{{ CD.Value | get_property: mapping, 'display' }}", + "system":"{{ CD.Value | get_property: mapping, 'system' }}", + {% endif -%} +{% endif -%} \ No newline at end of file diff --git a/data/Templates/Hl7v2/DataType/_ISCodeableConcept.liquid b/data/Templates/Hl7v2/DataType/_ISCodeableConcept.liquid new file mode 100644 index 000000000..9482eec16 --- /dev/null +++ b/data/Templates/Hl7v2/DataType/_ISCodeableConcept.liquid @@ -0,0 +1,8 @@ +{% if IS -%} + "coding": + [ + { + "code": "{{IS.1.Value}}" , + }, + ], +{% endif %} \ No newline at end of file diff --git a/data/Templates/Hl7v2/DataType/_MSG.liquid b/data/Templates/Hl7v2/DataType/_MSG.liquid index 5f3f01c71..b59a04774 100644 --- a/data/Templates/Hl7v2/DataType/_MSG.liquid +++ b/data/Templates/Hl7v2/DataType/_MSG.liquid @@ -3,4 +3,21 @@ {% if MSG.2 -%} "system":"http://terminology.hl7.org/CodeSystem/v2-0003", {% endif -%} + + {% if MSG.1 and MSG.2 and MSG.3 -%} + {% assign var_1 = {{MSG.1.Value}} %} + {% assign var_2 = {{MSG.2.Value}} %} + {% assign var_3 = {{MSG.3.Value}} %} + {% capture event_coding1 %}{{ var_1 }}^{{ var_2 }}^{{ var_3 }}{% endcapture %} + "display":"{{event_coding1}}", + + {% elsif MSG.1 and MSG.2 -%} + {% assign var_1 = {{MSG.1.Value}} %} + {% assign var_2 = {{MSG.2.Value}} %} + {% capture event_coding2 %}{{ var_1 }}^{{ var_2 }}{% endcapture %} + "display":"{{event_coding2}}", + {% endif -%} {% endif -%} + + + \ No newline at end of file diff --git a/data/Templates/Hl7v2/DataType/_NRRange.liquid b/data/Templates/Hl7v2/DataType/_NRRange.liquid new file mode 100644 index 000000000..09b41b02e --- /dev/null +++ b/data/Templates/Hl7v2/DataType/_NRRange.liquid @@ -0,0 +1,14 @@ +{% if NR -%} + {% if NR.1 %} + "low": + { + "value":{{ NR.1.Value }}, + }, + {% endif %} + {% if NR.2 %} + "high": + { + "value":{{ NR.2.Value }}, + }, + {% endif %} +{% endif -%} \ No newline at end of file diff --git a/data/Templates/Hl7v2/DataType/_PL_HDLocation.liquid b/data/Templates/Hl7v2/DataType/_PL_HDLocation.liquid new file mode 100644 index 000000000..39b85a92c --- /dev/null +++ b/data/Templates/Hl7v2/DataType/_PL_HDLocation.liquid @@ -0,0 +1,34 @@ +{% if HD -%} + "name":"{{ HD.1 }}", + {% if HD.2 and HD.3 -%} + "identifier": + [ + { + {% if HD.3 == "ISO" or HD.3 == "CLIA" or HD.3 == "CLIP" -%} + "value":"urn:oid:{{ HD.2 }}", + {% elsif HD.3 == "UUID" or HD.3 == "GUID"-%} + "value":"urn:uuid:{{ HD.2 }}", + {% else %} + "value":"{{ HD.2 }}", + {% endif -%} + + {% if HD.3 == "ISO" or HD.3 == "CLIA" or HD.3 == "CLIP" or HD.3 == "UUID" or HD.3 == "GUID"-%} + "system": "urn:ietf:rfc:3986", + {% else %} + "system": "http://example.com/v2-to-fhir-converter/location-universal-system-{{HD.3}}", + {% endif -%} + }, + ], + {% endif -%} + "physicalType": + { + "coding": + [ + { + "code":"si", + "display":"site", + "system":"http://terminology.hl7.org/CodeSystem/location-physical-type", + }, + ], + }, +{% endif -%} diff --git a/data/Templates/Hl7v2/DataType/_RPAttachment.liquid b/data/Templates/Hl7v2/DataType/_RPAttachment.liquid new file mode 100644 index 000000000..0d636a813 --- /dev/null +++ b/data/Templates/Hl7v2/DataType/_RPAttachment.liquid @@ -0,0 +1,4 @@ +{% if RP -%} + "url":"http://example.com/v2-to-fhir-converter/CodeSystem/{{ RP.1.Value }}", + "contentType":"{{ RP.3.Value }}", +{% endif -%} \ No newline at end of file diff --git a/data/Templates/Hl7v2/DataType/_SNQuantity.liquid b/data/Templates/Hl7v2/DataType/_SNQuantity.liquid index 53c9aa1d3..b55b11fd9 100644 --- a/data/Templates/Hl7v2/DataType/_SNQuantity.liquid +++ b/data/Templates/Hl7v2/DataType/_SNQuantity.liquid @@ -1,3 +1,6 @@ {% if SN -%} "comparator":"{{ SN.1.Value }}", + {% if SN.2 %} + "value":{{ SN.2.Value }}, + {% endif %} {% endif -%} diff --git a/data/Templates/Hl7v2/DataType/_SNRange.liquid b/data/Templates/Hl7v2/DataType/_SNRange.liquid index 1219d554a..508ad8c44 100644 --- a/data/Templates/Hl7v2/DataType/_SNRange.liquid +++ b/data/Templates/Hl7v2/DataType/_SNRange.liquid @@ -1,10 +1,14 @@ {% if SN -%} +{% if SN.2 %} "low": { - "value":"{{ SN.2.Value }}", + "value":{{ SN.2.Value }}, }, +{% endif %} +{% if SN.4 %} "high": { - "value":"{{ SN.4.Value }}", + "value":{{ SN.4.Value }}, }, +{% endif %} {% endif -%} diff --git a/data/Templates/Hl7v2/DataType/_SNRatio.liquid b/data/Templates/Hl7v2/DataType/_SNRatio.liquid index b819b004f..8282cb708 100644 --- a/data/Templates/Hl7v2/DataType/_SNRatio.liquid +++ b/data/Templates/Hl7v2/DataType/_SNRatio.liquid @@ -1,10 +1,14 @@ {% if SN -%} +{% if SN.2 -%} "numerator": - { - "value":"{{ SN.2.Value }}", + { + "value": {{ SN.2.Value }}, }, +{% endif %} +{% if SN.4 %} "denominator": { - "value":"{{ SN.4.Value }}", + "value": {{ SN.4.Value }}, }, {% endif -%} +{% endif -%} diff --git a/data/Templates/Hl7v2/DataType/_STCoding.liquid b/data/Templates/Hl7v2/DataType/_STCoding.liquid new file mode 100644 index 000000000..7ccbebb2f --- /dev/null +++ b/data/Templates/Hl7v2/DataType/_STCoding.liquid @@ -0,0 +1,6 @@ +{% if ST -%} + { + "display":"{{ ST.1.Value }}", + "system": "http://example.com/v2-to-fhirconverter/security-label", + } +{% endif -%} \ No newline at end of file diff --git a/data/Templates/Hl7v2/DataType/_XADAddress.liquid b/data/Templates/Hl7v2/DataType/_XADAddress.liquid new file mode 100644 index 000000000..c1c230a48 --- /dev/null +++ b/data/Templates/Hl7v2/DataType/_XADAddress.liquid @@ -0,0 +1,31 @@ +{% if XAD -%} + "line": + [ + "{{ XAD.1.1 }}", + "{{ XAD.1.2 }}", + "{{ XAD.1.3 }}", + "{{ XAD.2.Value }}", + "{{ XAD.19.Value }}", + ], + "city":"{{ XAD.3.Value }}", + "state":"{{ XAD.4.Value }}", + "postalCode":"{{ XAD.5.Value }}", + "country":"{{ XAD.6.Value }}", + {% if XAD.7.Value == "M" or XAD.7.Value == "SH" -%} + "type":"{{ XAD.7.Value | get_property: 'CodeSystem/AddressType', 'code' }}", + {% endif -%} + {% if XAD.7.Value == "BA" or XAD.7.Value == "BI" or XAD.7.Value == "C" or XAD.7.Value == "B" or XAD.7.Value == "H" or XAD.7.Value == "O" -%} + "use":"{{ XAD.7.Value | get_property: 'CodeSystem/AddressUse', 'code' }}", + {% endif -%} + {% if XAD.9.9 == null -%} + "district":"{{ XAD.9.2 }}", + {% endif -%} + "district":"{{ XAD.9.9 }}", + "period": + { + "start":"{{ XAD.12.1 | format_as_date_time }}", + "start":"{{ XAD.13.Value | format_as_date_time }}", + "end":"{{ XAD.12.2 | format_as_date_time }}", + "end":"{{ XAD.14.Value | format_as_date_time }}", + }, +{% endif -%} diff --git a/data/Templates/Hl7v2/DataType/_XCNPractitioner.liquid b/data/Templates/Hl7v2/DataType/_XCNPractitioner.liquid index c759b9a07..dc38d999e 100644 --- a/data/Templates/Hl7v2/DataType/_XCNPractitioner.liquid +++ b/data/Templates/Hl7v2/DataType/_XCNPractitioner.liquid @@ -1,14 +1,23 @@ +{% evaluate Organization_ID_XCN_9 using 'ID/Organization' HDORG: XCN.9 -%} {% if XCN -%} "identifier": [ { "value":"{{ XCN.1.Value }}", + {% include 'DataType/HDUri' HD: XCN.9 -%} + {% if XCN.9.1 != "" and XCN.9.1 != null and XCN.9.2 != "" and XCN.9.2 != null and XCN.9.3 != "" and XCN.9.3 != null -%} + "assigner":{ + "reference":"Organization/{{ Organization_ID_XCN_9 }}", + }, + {% endif -%} "type": { "coding": [ { "code":"{{ XCN.13.Value | get_property: 'CodeSystem/IDType', 'code' }}", + "display":"{{ XCN.13.Value | get_property: 'CodeSystem/IDType', 'display' }}", + "system":"{{ XCN.13.Value | get_property: 'CodeSystem/IDType', 'system' }}", }, ], }, @@ -36,9 +45,12 @@ "use":"{{ XCN.10.Value | get_property: 'CodeSystem/NameType', 'code' }}", "period": { + {% if XCN.19 == null and XCN.20 == null -%} "start":"{{ XCN.17.1 | format_as_date_time }}", - "start":"{{ XCN.19.Value | format_as_date_time }}", "end":"{{ XCN.17.2 | format_as_date_time }}", + {% endif -%} + + "start":"{{ XCN.19.Value | format_as_date_time }}", "end":"{{ XCN.20.Value | format_as_date_time }}", }, }, diff --git a/data/Templates/Hl7v2/DataType/_XCNPractitionerRole.liquid b/data/Templates/Hl7v2/DataType/_XCNPractitionerRole.liquid index e69de29bb..339b61463 100644 --- a/data/Templates/Hl7v2/DataType/_XCNPractitionerRole.liquid +++ b/data/Templates/Hl7v2/DataType/_XCNPractitionerRole.liquid @@ -0,0 +1,3 @@ +{% if XCN -%} + {% include 'DataType/XCNPractitioner' XCN:XCN -%} +{% endif -%} diff --git a/data/Templates/Hl7v2/DataType/_XCNRelatedPerson.liquid b/data/Templates/Hl7v2/DataType/_XCNRelatedPerson.liquid index 63714c098..12d3fb91b 100644 --- a/data/Templates/Hl7v2/DataType/_XCNRelatedPerson.liquid +++ b/data/Templates/Hl7v2/DataType/_XCNRelatedPerson.liquid @@ -1,14 +1,23 @@ +{% evaluate Organization_ID_XCN_9 using 'ID/Organization' HDORG: XCN.9 -%} {% if XCN -%} "identifier": [ { "value":"{{ XCN.1.Value }}", + {% include 'DataType/HDUri' HD: XCN.9 -%} + {% if XCN.9.1 != "" and XCN.9.1 != null and XCN.9.2 != "" and XCN.9.2 != null and XCN.9.3 != "" and XCN.9.3 != null -%} + "assigner":{ + "reference":"Organization/{{ Organization_ID_XCN_9 }}", + }, + {% endif -%} "type": { "coding": [ { "code":"{{ XCN.13.Value | get_property: 'CodeSystem/IDType', 'code' }}", + "display":"{{ XCN.13.Value | get_property: 'CodeSystem/IDType', 'display' }}", + "system":"{{ XCN.13.Value | get_property: 'CodeSystem/IDType', 'system' }}", }, ], }, @@ -20,6 +29,7 @@ "family":"{{ XCN.2.1 }}", "given": [ + "{{ XCN.3.Value }}", "{{ XCN.4.Value }}", ], "suffix": @@ -35,10 +45,12 @@ "use":"{{ XCN.10.Value | get_property: 'CodeSystem/NameType', 'code' }}", "period": { - "start":"{{ XCN.17.1 | format_as_date_time }}", "start":"{{ XCN.19.Value | format_as_date_time }}", - "end":"{{ XCN.17.2 | format_as_date_time }}", "end":"{{ XCN.20.Value | format_as_date_time }}", + {% unless XCN.19 and XCN.20 -%} + "start":"{{ XCN.17.1 | format_as_date_time }}", + "end":"{{ XCN.17.2 | format_as_date_time }}", + {% endunless -%} }, }, ], diff --git a/data/Templates/Hl7v2/DataType/_XONOrganization.liquid b/data/Templates/Hl7v2/DataType/_XONOrganization.liquid index 4dd20b9dd..4b382e9e8 100644 --- a/data/Templates/Hl7v2/DataType/_XONOrganization.liquid +++ b/data/Templates/Hl7v2/DataType/_XONOrganization.liquid @@ -3,15 +3,18 @@ "identifier": [ { - "value":"{{ XON.3.Value }}", + {% if XON.10 -%} "value":"{{ XON.10.Value }}", + {% else -%} + "value":"{{ XON.3.Value }}", + {% endif -%} "type": { "coding": [ { - "code":"{{ XON.7.Value }}", {% if XON.7 -%} + "code":"{{ XON.7.Value }}", "system":"http://terminology.hl7.org/CodeSystem/v2-0203", {% endif -%} }, diff --git a/data/Templates/Hl7v2/DataType/_XONString.liquid b/data/Templates/Hl7v2/DataType/_XONString.liquid index a58b05c5b..b3d55af1b 100644 --- a/data/Templates/Hl7v2/DataType/_XONString.liquid +++ b/data/Templates/Hl7v2/DataType/_XONString.liquid @@ -1,6 +1,7 @@ {% if XON -%} - "string":"{{ XON.1.Value }}", - {% if XON.1 == null -%} - "string":"{{ XON.10.Value }}", + {% if XON.1 -%} + "{{ XON.1.Value }}", + {% else -%} + "{{ XON.10.Value }}", {% endif -%} {% endif -%} diff --git a/data/Templates/Hl7v2/DataType/_XPN.liquid b/data/Templates/Hl7v2/DataType/_XPN.liquid index bccd56c77..59ee7243b 100644 --- a/data/Templates/Hl7v2/DataType/_XPN.liquid +++ b/data/Templates/Hl7v2/DataType/_XPN.liquid @@ -1,9 +1,13 @@ {% if XPN -%} + {% assign use = XPN.7.Value | get_property: 'CodeSystem/NameType', 'code' -%} "family":"{{ XPN.1.1 }}", "given": [ "{{ XPN.2.Value }}", "{{ XPN.3.Value }}", + {% if use == 'usual'-%} + "{{ XPN.15.Value }}", + {% endif -%} ], "suffix": [ diff --git a/data/Templates/Hl7v2/DataType/_XTN.liquid b/data/Templates/Hl7v2/DataType/_XTN.liquid index d94b94796..947fa8288 100644 --- a/data/Templates/Hl7v2/DataType/_XTN.liquid +++ b/data/Templates/Hl7v2/DataType/_XTN.liquid @@ -1,12 +1,27 @@ {% if XTN -%} - "value":"{{ XTN.1.Value }}", - {% if XTN.1 -%} + {% if XTN.7 == null and XTN.12 == null -%} + {% unless XTN.3 == "Internet" or XTN.3 == "X.400" -%} + "value":"{{ XTN.1.Value }}", + {% endunless -%} + {% endif -%} + {% if XTN.3.Value == "X.400" or XTN.3.Value == "Internet" -%} + "value":"{{ XTN.4.Value }}", + {% endif -%} + {% if XTN.3.Value != "X.400" and XTN.3.Value != "Internet" -%} + "value":"{{ XTN.12.Value }}", + {% endif -%} + {% if XTN.2 -%} "use":"{{ XTN.2.Value | get_property: 'CodeSystem/TelecomUseCode', 'code' }}", {% endif -%} + {% if XTN.3 -%} + "system" : "{{ XTN.3.Value | get_property: 'CodeSystem/TelecomEquipmentType', 'code' }}", + {% endif -%} "period": { "start":"{{ XTN.13.Value | format_as_date_time }}", "end":"{{ XTN.14.Value | format_as_date_time }}" }, - "rank":"{{ XTN.18.Value }}", + {% if XTN.18 -%} + "rank":{{ XTN.18.Value }}, + {% endif -%} {% endif -%} \ No newline at end of file diff --git a/data/Templates/Hl7v2/Extensions/AllergyIntolerance/_AllergyIntoleranceExtension.liquid b/data/Templates/Hl7v2/Extensions/AllergyIntolerance/_AllergyIntoleranceExtension.liquid new file mode 100644 index 000000000..edd39fc74 --- /dev/null +++ b/data/Templates/Hl7v2/Extensions/AllergyIntolerance/_AllergyIntoleranceExtension.liquid @@ -0,0 +1,25 @@ +{ + "resource":{ + "resourceType": "AllergyIntolerance", + "id":"{{ ID }}", + {% comment -%} + "modifierExtension": + [ + {% if IAM.6 -%} + {% include 'Extensions/AllergyIntoleranceActionCode' IAM: IAM -%}, + {% endif -%} + ], + {% endcomment -%} + {% if IAM.9 -%} + {% if IAM.9.1 and IAM.9.1.Value != "AL" and IAM.9.1.Value != "IN" -%} + "type": "allergy", + "_type": { + "extension": + [ + {% include 'Extensions/AllergyIntoleranceTypeCode' IAM: IAM -%}, + ], + }, + {% endif -%} + {% endif -%} + }, +}, \ No newline at end of file diff --git a/data/Templates/Hl7v2/Extensions/Condition/_ConditionExtension.liquid b/data/Templates/Hl7v2/Extensions/Condition/_ConditionExtension.liquid new file mode 100644 index 000000000..555e914db --- /dev/null +++ b/data/Templates/Hl7v2/Extensions/Condition/_ConditionExtension.liquid @@ -0,0 +1,16 @@ +{ + "resource": + { + "resourceType": "Condition", + "id":"{{ ID }}", + "extension": + [ + {% if DG1.19 -%} + {% include 'Extensions/Condition-assertedDate' DG1: DG1 -%}, + {% endif %} + {% if DG1.22 and ID_DG1_22 %} + {% include 'Extensions/Condition-dueTo' DG1: DG1, ID: ID_DG1_22 -%}, + {% endif %} + ], + }, +}, \ No newline at end of file diff --git a/data/Templates/Hl7v2/Extensions/Encounter/_EncounterExtension.liquid b/data/Templates/Hl7v2/Extensions/Encounter/_EncounterExtension.liquid new file mode 100644 index 000000000..614eec8ef --- /dev/null +++ b/data/Templates/Hl7v2/Extensions/Encounter/_EncounterExtension.liquid @@ -0,0 +1,12 @@ +{ + "resource":{ + "resourceType": "Encounter", + "id":"{{ ID }}", + "extension": + [ + {% if PV2.38 -%} + {% include 'Extensions/EncounterModeOfArrival' PV2: PV2.38 -%}, + {% endif -%} + ], + }, +}, \ No newline at end of file diff --git a/data/Templates/Hl7v2/Extensions/Observation/_ObservationExtension.liquid b/data/Templates/Hl7v2/Extensions/Observation/_ObservationExtension.liquid new file mode 100644 index 000000000..2e4e385f6 --- /dev/null +++ b/data/Templates/Hl7v2/Extensions/Observation/_ObservationExtension.liquid @@ -0,0 +1,19 @@ +{ + "resource": + { + "resourceType": "Observation", + "id":"{{ ID }}", + "extension": + [ + {%- comment -%} + This extension is currently not being used in R4 and mapped to DiagnosticReport.presentedForm resource, might be needed in future as valueAttachment is there in R5 + {% if OBX.5 -%} + {% include 'Extensions/ObservationValueAttachment' ED: OBX.5 -%}, + {% endif %} + {%- endcomment -%} + {% if OBX.11 %} + {% include 'Extensions/ObservationStatus' ID: OBX.11 -%}, + {% endif %} + ], + }, +}, \ No newline at end of file diff --git a/data/Templates/Hl7v2/Extensions/Patient/_PatientExtension.liquid b/data/Templates/Hl7v2/Extensions/Patient/_PatientExtension.liquid new file mode 100644 index 000000000..6f5a92223 --- /dev/null +++ b/data/Templates/Hl7v2/Extensions/Patient/_PatientExtension.liquid @@ -0,0 +1,56 @@ +{ + "resource":{ + "resourceType": "Patient", + "id":"{{ ID }}", + "extension": + [ + {% if PID.10 -%} + {% include 'Extensions/Race' RACE: PID.10 -%}, + {% endif -%} + {% if PID.6-%} + {% include 'Extensions/MotherMaidenName' PID: PID -%}, + {% endif -%} + {% if PID.23 -%} + {% include 'Extensions/BirthPlace' PID: PID -%}, + {% endif -%} + {% comment -%} + {% if PID.7.Value.size > 8 -%} + {% include 'Extensions/BirthTime' PID: PID -%}, + {% endif -%} + {% endcomment -%} + {% if PID.17 -%} + {% include 'Extensions/PatientReligion' PID: PID -%}, + {% endif -%} + {% if PID.22 -%} + {% include 'Extensions/EthnicGroup' PID: PID-%}, + {% endif -%} + {% if PID.27 -%} + {% include 'Extensions/VeteranMilitaryStatus' CWE: PID.27-%}, + {% endif -%} + {% if PID.35 or PID.36 -%} + {% include 'Extensions/Animal' PID: PID-%}, + {% endif -%} + {% if PID.26 -%} + {% include 'Extensions/PatientCitizenship' CITIZENSHIP: PID.26 -%}, + {% endif -%} + {% if PID.39 -%} + {% include 'Extensions/PatientCitizenship' CITIZENSHIP: PID.39 -%}, + {% endif -%} + {% if PID.28 -%} + {% include 'Extensions/PatientNationality' NATIONALITY: PID.28 -%}, + {% endif -%} + {% if PD1.14 -%} + {% include 'Extensions/PatientCongregation' PD1: PD1.14 -%}, + {% endif -%} + {% if PV1..16 -%} + {% include 'Extensions/PatientImportance' PV1: PV1.16 -%}, + {% endif -%} + {% if DB1.4 -%} + {% include 'Extensions/DisabilityIndicator' DB1: DB1.4 -%}, + {% endif -%} + {% if DB1.5 or DB1.6 -%} + {% include 'Extensions/DisabilityPeriod' DB1: DB1 -%}, + {% endif -%} + ], + }, +}, \ No newline at end of file diff --git a/data/Templates/Hl7v2/Extensions/RelatedPerson/_RelatedPerson.liquid b/data/Templates/Hl7v2/Extensions/RelatedPerson/_RelatedPerson.liquid new file mode 100644 index 000000000..8fa8c091d --- /dev/null +++ b/data/Templates/Hl7v2/Extensions/RelatedPerson/_RelatedPerson.liquid @@ -0,0 +1,12 @@ +{ + "resource":{ + "resourceType": "RelatedPerson", + "id":"{{ ID }}", + "extension": + [ + {% if NK1.35 -%} + {% include 'Extensions/Race' RACE: NK1.35 -%}, + {% endif -%} + ], + }, +}, \ No newline at end of file diff --git a/data/Templates/Hl7v2/Extensions/_AllergyIntoleranceActionCode.liquid b/data/Templates/Hl7v2/Extensions/_AllergyIntoleranceActionCode.liquid new file mode 100644 index 000000000..b473e68b5 --- /dev/null +++ b/data/Templates/Hl7v2/Extensions/_AllergyIntoleranceActionCode.liquid @@ -0,0 +1,7 @@ +{ + "url" : "http://example.com/v2-to-fhir-converter/StructureDefinition/allergyintolerance-action-code", + "valueCodeableConcept": + { + {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/AllergyActionCode', CWE: IAM.6 -%} + } +} \ No newline at end of file diff --git a/data/Templates/Hl7v2/Extensions/_AllergyIntoleranceTypeCode.liquid b/data/Templates/Hl7v2/Extensions/_AllergyIntoleranceTypeCode.liquid new file mode 100644 index 000000000..0eb47a37e --- /dev/null +++ b/data/Templates/Hl7v2/Extensions/_AllergyIntoleranceTypeCode.liquid @@ -0,0 +1,4 @@ +{ + "url" : "http://example.com/v2-to-fhir-converter/StructureDefinition/allergyintolerance-type", + "valueCode": "{{ IAM.9.1.Value | get_property: 'CodeSystem/AllergyIntoleranceTypeCode', 'code' -%}}" +} diff --git a/data/Templates/Hl7v2/Extensions/_Animal.liquid b/data/Templates/Hl7v2/Extensions/_Animal.liquid new file mode 100644 index 000000000..53b7adc5a --- /dev/null +++ b/data/Templates/Hl7v2/Extensions/_Animal.liquid @@ -0,0 +1,41 @@ +{ + "url": "http://hl7.org/fhir/StructureDefinition/patient-animal", + "extension": [ + {% if PID.35.Value -%} + { + "url": "species", + "valueCodeableConcept": { + "coding": + [ + { + {% include 'DataType/CWECoding', CWE: PID.35 -%} + {% comment %} + "system":"http://hl7.org/fhir/animal-species", + {% endcomment %} + }, + ], + "text":"{{ PID.35.2.Value }}", + }, + }, + {% endif -%} + + {% if PID.36.Value -%} + { + "url": "breed", + "valueCodeableConcept": { + "coding": + [ + { + {% include 'DataType/CWECoding', CWE: PID.36 -%} + {% comment %} + "system":"http://hl7.org/fhir/ValueSet/animal-breeds", + {% endcomment %} + }, + ], + "text":"{{ PID.36.2.Value }}", + }, + }, + {% endif -%} + + ] +} \ No newline at end of file diff --git a/data/Templates/Hl7v2/Extensions/_BirthPlace.liquid b/data/Templates/Hl7v2/Extensions/_BirthPlace.liquid new file mode 100644 index 000000000..32e054466 --- /dev/null +++ b/data/Templates/Hl7v2/Extensions/_BirthPlace.liquid @@ -0,0 +1,6 @@ +{ + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", + "valueAddress": { + "text": "{{ PID.23.Value }}" + } +} \ No newline at end of file diff --git a/data/Templates/Hl7v2/Extensions/_BirthTime.liquid b/data/Templates/Hl7v2/Extensions/_BirthTime.liquid new file mode 100644 index 000000000..bcae66587 --- /dev/null +++ b/data/Templates/Hl7v2/Extensions/_BirthTime.liquid @@ -0,0 +1,10 @@ +{% comment -%} +{% assign datebirthsize = PID.7.Value.size -%} +{% assign datebirth = PID.7.Value | slice: 0, 8 | add_hyphens_date -%} +{% assign timezone = PID.7.Value | slice: 8, {{datebirthsize}} -%} +{% assign datetimevalue = datebirth | append: timezone -%} +{% endcomment -%} +{ + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime": "{{ PID.7.Value | format_as_date_time }}" +} \ No newline at end of file diff --git a/data/Templates/Hl7v2/Extensions/_Condition-assertedDate.liquid b/data/Templates/Hl7v2/Extensions/_Condition-assertedDate.liquid new file mode 100644 index 000000000..8a6091f23 --- /dev/null +++ b/data/Templates/Hl7v2/Extensions/_Condition-assertedDate.liquid @@ -0,0 +1,6 @@ +{% if DG1 %} + { + "url": "http://hl7.org/fhir/StructureDefinition/condition-assertedDate", + "valueDateTime" : "{{ DG1.19.Value | format_as_date_time }}", + } +{% endif %} diff --git a/data/Templates/Hl7v2/Extensions/_Condition-dueTo.liquid b/data/Templates/Hl7v2/Extensions/_Condition-dueTo.liquid new file mode 100644 index 000000000..1acf6a0f8 --- /dev/null +++ b/data/Templates/Hl7v2/Extensions/_Condition-dueTo.liquid @@ -0,0 +1,7 @@ +{ + "url" : "http://hl7.org/fhir/StructureDefinition/condition-dueTo", + "valueReference": { + "reference": "Condition/{{ ID_DG1_22 }}", + }, +} + diff --git a/data/Templates/Hl7v2/Extensions/_DataAbsentReason.liquid b/data/Templates/Hl7v2/Extensions/_DataAbsentReason.liquid new file mode 100644 index 000000000..272e29c2e --- /dev/null +++ b/data/Templates/Hl7v2/Extensions/_DataAbsentReason.liquid @@ -0,0 +1,7 @@ +"extension" : +[ + { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode" : "unknown" + } +], \ No newline at end of file diff --git a/data/Templates/Hl7v2/Extensions/_DisabilityIndicator.liquid b/data/Templates/Hl7v2/Extensions/_DisabilityIndicator.liquid new file mode 100644 index 000000000..91d50494e --- /dev/null +++ b/data/Templates/Hl7v2/Extensions/_DisabilityIndicator.liquid @@ -0,0 +1,4 @@ +{ + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/patient-disabilityIndicator", + "valueBoolean": {{ DB1.Value | get_property: 'CodeSystem/DisabilityIndicator', 'code' }}, +} \ No newline at end of file diff --git a/data/Templates/Hl7v2/Extensions/_DisabilityPeriod.liquid b/data/Templates/Hl7v2/Extensions/_DisabilityPeriod.liquid new file mode 100644 index 000000000..392dd5316 --- /dev/null +++ b/data/Templates/Hl7v2/Extensions/_DisabilityPeriod.liquid @@ -0,0 +1,8 @@ +{ + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/DisabilityPeriod", + "valuePeriod": { + "start":"{{ DB1.5.Value | format_as_date_time }}", + "end":"{{ DB1.6.Value | format_as_date_time }}", + } +} + diff --git a/data/Templates/Hl7v2/Extensions/_EncounterModeOfArrival.liquid b/data/Templates/Hl7v2/Extensions/_EncounterModeOfArrival.liquid new file mode 100644 index 000000000..7b321df19 --- /dev/null +++ b/data/Templates/Hl7v2/Extensions/_EncounterModeOfArrival.liquid @@ -0,0 +1,7 @@ +{ + "url": "http://hl7.org/fhir/StructureDefinition/encounter-modeOfArrival", + "valueCoding": + { + {% include 'DataType/CWECoding' mapping: 'CodeSystem/ModeofArrival', CWE: PV2-%} + } +} \ No newline at end of file diff --git a/data/Templates/Hl7v2/Extensions/_EthnicGroup.liquid b/data/Templates/Hl7v2/Extensions/_EthnicGroup.liquid new file mode 100644 index 000000000..31636afca --- /dev/null +++ b/data/Templates/Hl7v2/Extensions/_EthnicGroup.liquid @@ -0,0 +1,36 @@ +{% assign ombCategorylimit = '' -%} +{% assign textstring = "" -%} +{ + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + {% for p in PID.22.Repeats -%} + { + {% if p.1.Value -%} + {% if ombCategorylimit.size < 1 -%} + "url": "ombCategory", + "valueCoding": { + {% include 'DataType/CWECoding' mapping: 'CodeSystem/Ethnicity', CWE: p -%} + {%comment -%} + "code":"{{ p.1.Value | get_property: 'CodeSystem/Ethnicity', 'code' }}", + "display":"{{ p.1.Value | get_property: 'CodeSystem/Ethnicity', 'display' }}", + "system":"{{ p.1.Value | get_property: 'CodeSystem/Ethnicity', 'system' }}", + "version":"{{ p.7.Value }}" + {%endcomment -%} + } + {% assign ombCategorylimit = ombCategorylimit | append: 'x' -%} + {% endif -%} + {% endif -%} + {% if p.1 %} + {% assign displayvalue = p.1.Value | get_property: 'CodeSystem/Ethnicity', 'display' -%} + {% capture textstring %}{{ textstring | append: displayvalue | append: ":" }}{% endcapture -%} + {% else -%} + {% capture textstring %}{{ textstring | append: p.2.Value | append: ":" }}{% endcapture -%} + {% endif -%} + }, + {% endfor -%} + { + "url": "text", + "valueString": "{{ textstring | split: ":" | join: "+"}}" + } + ] +} \ No newline at end of file diff --git a/data/Templates/Hl7v2/Extensions/_MotherMaidenName.liquid b/data/Templates/Hl7v2/Extensions/_MotherMaidenName.liquid new file mode 100644 index 000000000..8afa5330b --- /dev/null +++ b/data/Templates/Hl7v2/Extensions/_MotherMaidenName.liquid @@ -0,0 +1,7 @@ +{ + "url" : "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + {% capture textstring %}{{ PID.6.Value | split: "^" | join: "--" }}{% endcapture -%} + {% capture specomp %}{{ textstring | split: "~" | join: "+" }}{% endcapture -%} + {% capture valuestring %}{{ specomp | split: "&" | join: "--" }}{% endcapture -%} + "valueString" : "{{ valuestring }}" +} \ No newline at end of file diff --git a/data/Templates/Hl7v2/Extensions/_ObservationStatus.liquid b/data/Templates/Hl7v2/Extensions/_ObservationStatus.liquid new file mode 100644 index 000000000..23c1636d3 --- /dev/null +++ b/data/Templates/Hl7v2/Extensions/_ObservationStatus.liquid @@ -0,0 +1,13 @@ +{ + "url": "http://example.com/v2-to-fhir-converter/Observation_Status", + "valueCodeableConcept": { + "coding": + [ + { + {% include 'DataType/IDCodeableConcept' mapping: 'CodeSystem/ObservationStatus-ext', ID: ID -%} + }, + ], + "text": "{{ ID.1.Value | get_property: 'CodeSystem/ObservationStatus-ext', 'display' }}", +}, + +} \ No newline at end of file diff --git a/data/Templates/Hl7v2/Extensions/_ObservationValueAttachment.liquid b/data/Templates/Hl7v2/Extensions/_ObservationValueAttachment.liquid new file mode 100644 index 000000000..066a0df33 --- /dev/null +++ b/data/Templates/Hl7v2/Extensions/_ObservationValueAttachment.liquid @@ -0,0 +1,20 @@ +{ + {% if ED %} + {% if OBX.2.Value == "ED" and OBX.5.4.Value == "Base64" or OBX.5.4.Value == "HEX" -%} + "url": "http://example.com/v2-to-fhir-converter/ObservationValueAttachment", + "valueAttachment": { + {% include 'DataType/EDAttachment1' ED: ED -%} + }, +{% elsif OBX.2.Value == "ED" and OBX.5.4.Value == "A" and OBX.5.2.Value != "text" -%} + "url": "http://example.com/v2-to-fhir-converter/ObservationValueAttachment", + "valueAttachment": { + {% include 'DataType/EDAttachment2' ED: ED -%} + }, +{% elsif OBX.2.Value == "RP" -%} + "url": "http://example.com/v2-to-fhir-converter/ObservationValueAttachment", + "valueAttachment": { + {% include 'DataType/RPAttachment' RP: ED -%} + }, +{% endif -%} + {% endif %} +} \ No newline at end of file diff --git a/data/Templates/Hl7v2/Extensions/_PatientCitizenship.liquid b/data/Templates/Hl7v2/Extensions/_PatientCitizenship.liquid new file mode 100644 index 000000000..0b245daff --- /dev/null +++ b/data/Templates/Hl7v2/Extensions/_PatientCitizenship.liquid @@ -0,0 +1,38 @@ +{ + {% if CITIZENSHIP -%} + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": + [ + { + "url": "code", + "valueCodeableConcept": + { + "coding": + [ + {% for citizen in CITIZENSHIP.Repeats -%} + {% if citizen -%} + {% assign CWE_2 = citizen.2.Value %} + {% assign CWE_5 = citizen.5.Value %} + {% assign CWE_11 = citizen.11.Value %} + {% assign CWE_2_doubleDash = citizen.2.Value |append: '--' %} + {% assign CWE_5_doubleDash = citizen.5.Value |append: '--' %} + {% include 'DataType/CWECodeableConceptRepeatable' CWE:citizen %} + {% endif -%} + {% endfor -%} + ], + {% if CWE_2_doubleDash and CWE_5_doubleDash == null and CWE_11 == null %} + "text":"{{ CWE_2 }}", + {% elsif CWE_2_doubleDash and CWE_5 and CWE_11 == null %} + "text":"{{ CWE_2_doubleDash }}{{ CWE_5 }}", + {% elsif CWE_2_doubleDash and CWE_11 and CWE_5_doubleDash == null %} + "text":"{{ CWE_2_doubleDash }}{{ CWE_11 }}", + {% elsif CWE_5_doubleDash and CWE_11 and CWE_2_doubleDash == null %} + "text":"{{ CWE_5_doubleDash }}{{ CWE_11 }}", + {% elsif CWE_2_doubleDash and CWE_5_doubleDash and CWE_11%} + "text":"{{ CWE_2_doubleDash }}{{ CWE_5_doubleDash }}{{ CWE_11 }}", + {% endif %} + } + } + ], + {% endif -%} +} \ No newline at end of file diff --git a/data/Templates/Hl7v2/Extensions/_PatientCongregation.liquid b/data/Templates/Hl7v2/Extensions/_PatientCongregation.liquid new file mode 100644 index 000000000..514a7b200 --- /dev/null +++ b/data/Templates/Hl7v2/Extensions/_PatientCongregation.liquid @@ -0,0 +1,4 @@ +{ + "url" : "http://hl7.org/fhir/StructureDefinition/patient-congregation", + "valueString" : "{{PD1.Value}}", +} \ No newline at end of file diff --git a/data/Templates/Hl7v2/Extensions/_PatientImportance.liquid b/data/Templates/Hl7v2/Extensions/_PatientImportance.liquid new file mode 100644 index 000000000..42dee1b5a --- /dev/null +++ b/data/Templates/Hl7v2/Extensions/_PatientImportance.liquid @@ -0,0 +1,7 @@ +{ + "url" : "http://hl7.org/fhir/StructureDefinition/patient-importance", + "valueCodeableConcept": + { + {% include 'DataType/CWECodeableConcept', CWE: PV1 -%} + } +} \ No newline at end of file diff --git a/data/Templates/Hl7v2/Extensions/_PatientNationality.liquid b/data/Templates/Hl7v2/Extensions/_PatientNationality.liquid new file mode 100644 index 000000000..2d32422e2 --- /dev/null +++ b/data/Templates/Hl7v2/Extensions/_PatientNationality.liquid @@ -0,0 +1,35 @@ +{ + + {% if NATIONALITY -%} + "url": "http://hl7.org/fhir/StructureDefinition/patient-nationality", + "extension": + [ + {"url": "code", + "valueCodeableConcept": + { + "coding": + [ + {% assign CWE_2 = NATIONALITY.2.Value %} + {% assign CWE_5 = NATIONALITY.5.Value %} + {% assign CWE_11 = NATIONALITY.11.Value %} + {% assign CWE_2_doubleDash = NATIONALITY.2.Value |append: '--' %} + {% assign CWE_5_doubleDash = NATIONALITY.5.Value |append: '--' %} + {% include 'DataType/CWECodeableConceptRepeatable' CWE:NATIONALITY %} + ], + {% if CWE_2_doubleDash and CWE_5_doubleDash == null and CWE_11 == null %} + "text":"{{ CWE_2 }}", + {% elsif CWE_2_doubleDash and CWE_5 and CWE_11 == null %} + "text":"{{ CWE_2_doubleDash }}{{ CWE_5 }}", + {% elsif CWE_2_doubleDash and CWE_11 and CWE_5_doubleDash == null %} + "text":"{{ CWE_2_doubleDash }}{{ CWE_11 }}", + {% elsif CWE_5_doubleDash and CWE_11 and CWE_2_doubleDash == null %} + "text":"{{ CWE_5_doubleDash }}{{ CWE_11 }}", + {% elsif CWE_2_doubleDash and CWE_5_doubleDash and CWE_11%} + "text":"{{ CWE_2_doubleDash }}{{ CWE_5_doubleDash }}{{ CWE_11 }}", + {% endif %} + } + }, + ], + + {% endif -%} +} \ No newline at end of file diff --git a/data/Templates/Hl7v2/Extensions/_PatientReligion.liquid b/data/Templates/Hl7v2/Extensions/_PatientReligion.liquid new file mode 100644 index 000000000..2ee79c45a --- /dev/null +++ b/data/Templates/Hl7v2/Extensions/_PatientReligion.liquid @@ -0,0 +1,7 @@ +{ + "url" : "http://hl7.org/fhir/StructureDefinition/patient-religion", + "valueCodeableConcept": + { + {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/Religion', CWE: PID.17 -%} + } +} \ No newline at end of file diff --git a/data/Templates/Hl7v2/Extensions/_Race.liquid b/data/Templates/Hl7v2/Extensions/_Race.liquid new file mode 100644 index 000000000..d78936ea5 --- /dev/null +++ b/data/Templates/Hl7v2/Extensions/_Race.liquid @@ -0,0 +1,50 @@ +{% assign ombCategorylimit = '' -%} +{% assign textstring = "" -%} +{ + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + {% for p in RACE.Repeats -%} + { + {% if {{p.1.Value}} == "2131-1" -%} + "url": "detailed", + "valueCoding": { + {% include 'DataType/CWECoding' mapping: 'CodeSystem/Race', CWE: p -%} + {%comment -%} + "code":"{{ p.1.Value | get_property: 'CodeSystem/Race', 'code' }}", + "display":"{{ p.1.Value | get_property: 'CodeSystem/Race', 'display' }}", + "system":"{{ p.1.Value | get_property: 'CodeSystem/Race', 'system' }}", + "version":"{{ p.7.Value }}" + {%endcomment -%} + } + {% else -%} + {% if p.1.Value -%} + {% if ombCategorylimit.size < 5 -%} + "url": "ombCategory", + "valueCoding": { + {% include 'DataType/CWECoding' mapping: 'CodeSystem/Race', CWE: p -%} + {%comment -%} + "code":"{{ p.1.Value | get_property: 'CodeSystem/Race', 'code' }}", + "display":"{{ p.1.Value | get_property: 'CodeSystem/Race', 'display' }}", + "system":"{{ p.1.Value | get_property: 'CodeSystem/Race', 'system' }}", + "version":"{{ p.7.Value }}" + {%endcomment -%} + } + {% assign ombCategorylimit = ombCategorylimit | append: 'x' -%} + {% endif -%} + {% endif -%} + {% endif -%} + {% if p.1 %} + {% assign displayvalue = p.1.Value | get_property: 'CodeSystem/Race', 'display' -%} + {% capture textstring %}{{ textstring | append: displayvalue | append: ":" }}{% endcapture -%} + {% else -%} + {% capture textstring %}{{ textstring | append: p.2.Value | append: ":" }}{% endcapture -%} + {% endif -%} + + }, + {% endfor -%} + { + "url": "text", + "valueString": "{{ textstring | split: ":" | join: "+"}}" + } + ] +} \ No newline at end of file diff --git a/data/Templates/Hl7v2/Extensions/_TemporaryLocation.liquid b/data/Templates/Hl7v2/Extensions/_TemporaryLocation.liquid new file mode 100644 index 000000000..40f0e6408 --- /dev/null +++ b/data/Templates/Hl7v2/Extensions/_TemporaryLocation.liquid @@ -0,0 +1,6 @@ +"extension": [ +{ + "url":"http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": {{ status }}, +}, +], \ No newline at end of file diff --git a/data/Templates/Hl7v2/Extensions/_VeteranMilitaryStatus.liquid b/data/Templates/Hl7v2/Extensions/_VeteranMilitaryStatus.liquid new file mode 100644 index 000000000..9ff28bbee --- /dev/null +++ b/data/Templates/Hl7v2/Extensions/_VeteranMilitaryStatus.liquid @@ -0,0 +1,12 @@ +{ + "url" : "http://example.com/v2-to-fhir-converter/StructureDefinition/VeteranMilitaryStatus", + "valueCodeableConcept": { + "coding": + [ + { + {% include 'DataType/CWECoding', CWE: CWE -%} + }, + ], + "text":"{{ CWE.2.Value }}", + }, +} \ No newline at end of file diff --git a/data/Templates/Hl7v2/ID/_AllergyIntolerance.liquid b/data/Templates/Hl7v2/ID/_AllergyIntolerance.liquid index deaab45a9..3996ed3e4 100644 --- a/data/Templates/Hl7v2/ID/_AllergyIntolerance.liquid +++ b/data/Templates/Hl7v2/ID/_AllergyIntolerance.liquid @@ -1,4 +1,14 @@ {% capture identifiers -%} - {{AL1.2.Value}},{{AL1.3.Value}},{{AL1.4.Value}},{{AL1.5.Value}} + {% if AL1.2 and AL1.3 and AL1.4 and AL1.5 -%} + {{AL1.2.Value}},{{AL1.3.Value}},{{AL1.4.Value}},{{AL1.5.Value}} + {% elsif AL1 -%} + {{AL1.Value}} + {% elsif NTE -%} + {{NTE.Value}} + {% elsif IAM.1 and IAM.3 and IAM.6 -%} + {{IAM.1.Value}},{{IAM.3.Value}},{{IAM.6.Value}} + {% elsif IAM -%} + {{IAM.Value}} + {% endif -%} {% endcapture -%} {{ identifiers | generate_id_input: 'AllergyIntolerance', true, baseId | generate_uuid }} diff --git a/data/Templates/Hl7v2/ID/_Appointment.liquid b/data/Templates/Hl7v2/ID/_Appointment.liquid new file mode 100644 index 000000000..80c5174cf --- /dev/null +++ b/data/Templates/Hl7v2/ID/_Appointment.liquid @@ -0,0 +1,6 @@ +{% capture identifiers -%} + {% if NTE -%} + {{NTE.3.Value}} + {% endif -%} +{% endcapture -%} +{{ identifiers | generate_id_input: 'Appointment', true, baseId | generate_uuid }} diff --git a/data/Templates/Hl7v2/ID/_Condition.liquid b/data/Templates/Hl7v2/ID/_Condition.liquid index 785dcbbd8..42b1b1b68 100644 --- a/data/Templates/Hl7v2/ID/_Condition.liquid +++ b/data/Templates/Hl7v2/ID/_Condition.liquid @@ -5,6 +5,8 @@ {{DG1.3.Value}},{{DG1.19.Value}} {% elsif DG1 -%} {{DG1.Value}} + {% elsif EI -%} + {{EI.Value}} {% endif -%} {% endcapture -%} {{ identifiers | generate_id_input: 'Condition', true, baseId | generate_uuid }} diff --git a/data/Templates/Hl7v2/ID/_Coverage.liquid b/data/Templates/Hl7v2/ID/_Coverage.liquid new file mode 100644 index 000000000..8e73d7fad --- /dev/null +++ b/data/Templates/Hl7v2/ID/_Coverage.liquid @@ -0,0 +1,8 @@ +{% capture identifiers -%} + {% if CX.49.1 and CX.49.4 -%} + {{CX.49.1.Value}},{{CX.49.4.Value}} + {% elsif CX -%} + {{CX.Value}} + {% endif -%} +{% endcapture -%} +{{ identifiers | generate_id_input: 'Coverage', false | generate_uuid }} diff --git a/data/Templates/Hl7v2/ID/_Device.liquid b/data/Templates/Hl7v2/ID/_Device.liquid index bfb9998fb..3ca8779fc 100644 --- a/data/Templates/Hl7v2/ID/_Device.liquid +++ b/data/Templates/Hl7v2/ID/_Device.liquid @@ -3,6 +3,12 @@ {{HD.1.Value}},{{HD.2.Value}} {% elsif HD -%} {{HD.Value}} + {% elsif SFT.2 -%} + {{SFT.2.Value}} + {% elsif SFT.Value -%} + {{SFT.Value}} + {% elsif EI -%} + {{EI.Value}} {% endif -%} {% endcapture -%} {{ identifiers | generate_id_input: 'Device', false | generate_uuid }} diff --git a/data/Templates/Hl7v2/ID/_EpisodeOfCare.liquid b/data/Templates/Hl7v2/ID/_EpisodeOfCare.liquid new file mode 100644 index 000000000..d0ffea983 --- /dev/null +++ b/data/Templates/Hl7v2/ID/_EpisodeOfCare.liquid @@ -0,0 +1,10 @@ +{% capture identifiers -%} + {% if PV1.1 and PV1.4 -%} + {{PV1.1.Value}},{{PV1.4.Value}} + {% elsif PV1 -%} + {{PV1.Value}} + {% elsif DG1 -%} + {{ DG1.Value }} + {% endif -%} +{% endcapture -%} +{{ identifiers | generate_id_input: 'EpisodeOfCare', false, | generate_uuid }} \ No newline at end of file diff --git a/data/Templates/Hl7v2/ID/_Location.liquid b/data/Templates/Hl7v2/ID/_Location.liquid index f6900309b..eee71d455 100644 --- a/data/Templates/Hl7v2/ID/_Location.liquid +++ b/data/Templates/Hl7v2/ID/_Location.liquid @@ -13,6 +13,9 @@ {{HD.1.Value}},{{HD.2.Value}} {% elsif HD -%} {{HD.Value}} + {% elsif DLD -%} + {{DLD.Value}} {% endif -%} + {% endcapture -%} {{ identifiers | generate_id_input: 'Location', false | generate_uuid }} diff --git a/data/Templates/Hl7v2/ID/_Observation.liquid b/data/Templates/Hl7v2/ID/_Observation.liquid index d77022893..5b895f74d 100644 --- a/data/Templates/Hl7v2/ID/_Observation.liquid +++ b/data/Templates/Hl7v2/ID/_Observation.liquid @@ -1,7 +1,5 @@ {% capture identifiers -%} - {% if NTE -%} - {{NTE.Value}} - {% elsif OBX.21.1 and OBX.21.2 -%} + {% if OBX.21.1 and OBX.21.2 -%} {{OBX.21.1.Value}},{{OBX.21.2.Value}} {% elsif OBX.21.3 and OBX.21.4 -%} {{OBX.21.3.Value}},{{OBX.21.4.Value}} @@ -11,6 +9,8 @@ {{PID.22.Value}} {% elsif PID.10 -%} {{PID.10.Value}} + {% elsif NTE -%} + {{NTE.Value}} {% endif -%} {% endcapture -%} {{ identifiers | generate_id_input: 'Observation', false, baseId | generate_uuid }} diff --git a/data/Templates/Hl7v2/ID/_Organization.liquid b/data/Templates/Hl7v2/ID/_Organization.liquid index 5ca82a79b..24f975538 100644 --- a/data/Templates/Hl7v2/ID/_Organization.liquid +++ b/data/Templates/Hl7v2/ID/_Organization.liquid @@ -13,6 +13,20 @@ {{HD.1.Value}},{{HD.2.Value}} {% elsif HD -%} {{HD.Value}} + {% elsif HDORG.1 and HDORG.2 -%} + {{HDORG.1}},{{HDORG.2}} + {% elsif HDORG -%} + {{HDORG}} + {% elsif CX.3 -%} + {{CX.3.Repeats[0].1.Value}},{{CX.3.Repeats[0].4.Value}} + {% elsif CX -%} + {{CX.Value}} + {% elsif CX_IN1.10 -%} + {{CX_IN1.10.Repeats[0].1.Value}},{{CX_IN1.10.Repeats[0].4.Value}} + {% elsif CX -%} + {{CX_IN1.Value}} + {% elsif prov_id -%} + {{prov_id.Value}} {% endif -%} {% endcapture -%} {{ identifiers | generate_id_input: 'Organization', false | generate_uuid }} diff --git a/data/Templates/Hl7v2/ID/_Practitioner.liquid b/data/Templates/Hl7v2/ID/_Practitioner.liquid index fd1ae4b58..69fd9bf23 100644 --- a/data/Templates/Hl7v2/ID/_Practitioner.liquid +++ b/data/Templates/Hl7v2/ID/_Practitioner.liquid @@ -9,6 +9,8 @@ {{XCN.1.Value}},{{XCN.9.Value}} {% elsif XCN -%} {{XCN.Value}} + {% elsif XPN -%} + {{XPN.Value}} {% endif -%} {% endcapture -%} {{ identifiers | generate_id_input: 'Practitioner', false | generate_uuid }} diff --git a/data/Templates/Hl7v2/ID/_PractitionerRole.liquid b/data/Templates/Hl7v2/ID/_PractitionerRole.liquid index 645c6f066..651e57889 100644 --- a/data/Templates/Hl7v2/ID/_PractitionerRole.liquid +++ b/data/Templates/Hl7v2/ID/_PractitionerRole.liquid @@ -5,6 +5,8 @@ {{XCN.1.Value}},{{XCN.9.Value}} {% elsif XCN -%} {{XCN.Value}} + {% elsif CWE -%} + {{CWE.Value}} {% endif -%} {% endcapture -%} {{ identifiers | generate_id_input: 'PractitionerRole', false | generate_uuid }} diff --git a/data/Templates/Hl7v2/ID/_Procedure.liquid b/data/Templates/Hl7v2/ID/_Procedure.liquid index e9a192280..24c52547a 100644 --- a/data/Templates/Hl7v2/ID/_Procedure.liquid +++ b/data/Templates/Hl7v2/ID/_Procedure.liquid @@ -1 +1,8 @@ -{{ PR1.Value | generate_id_input: 'Procedure', true, baseId | generate_uuid }} +{% capture identifiers -%} + {% if PR1.19 -%} + {{ PR1.19.Value }} + {% elsif PR1 %} + {{PR1.Value}} + {% endif -%} +{% endcapture -%} +{{ identifiers | generate_id_input: 'Procedure', true, baseId | generate_uuid }} diff --git a/data/Templates/Hl7v2/ID/_Provenance.liquid b/data/Templates/Hl7v2/ID/_Provenance.liquid index 10315b7bc..e31110fcd 100644 --- a/data/Templates/Hl7v2/ID/_Provenance.liquid +++ b/data/Templates/Hl7v2/ID/_Provenance.liquid @@ -1 +1,18 @@ -{{ MSH.Value | generate_id_input: 'Provenance', true, baseId | generate_uuid }} +{% capture identifiers -%} + {% if MSH.3 -%} + {{MSH.4.Value}} + {% elsif MSH.3 and MSH.24-%} + {{MSH.3.Value}},{{MSH.24.Value}} + {% elsif MSH.5 and MSH.25-%} + {{MSH.5.Value}},{{MSH.25.Value}} + {% elsif MSH.22 -%} + {{MSH.22.Value}} + {% elsif MSH -%} + {{MSH.Value}} + {% elsif EVN -%} + {{EVN.Value}} + {% elsif HD -%} + {{HD.Value}} + {% endif -%} +{% endcapture -%} +{{ identifiers | generate_id_input: 'Provenance', true, baseId | generate_uuid }} diff --git a/data/Templates/Hl7v2/ID/_Provenance_transformation.liquid b/data/Templates/Hl7v2/ID/_Provenance_transformation.liquid new file mode 100644 index 000000000..749e974f3 --- /dev/null +++ b/data/Templates/Hl7v2/ID/_Provenance_transformation.liquid @@ -0,0 +1,6 @@ +{% capture identifiers -%} + {% if prov_id -%} + {{prov_id}} + {% endif -%} +{% endcapture -%} +{{ identifiers | generate_id_input: 'Provenance_transformation', false | generate_uuid }} \ No newline at end of file diff --git a/data/Templates/Hl7v2/ID/_RelatedPerson.liquid b/data/Templates/Hl7v2/ID/_RelatedPerson.liquid index 30eb0c5ef..a49c996cc 100644 --- a/data/Templates/Hl7v2/ID/_RelatedPerson.liquid +++ b/data/Templates/Hl7v2/ID/_RelatedPerson.liquid @@ -1,10 +1,12 @@ {% capture identifiers -%} - {% if NK1.12.1 and NK1.12.4 -%} + {% if NK1.33.1 and NK1.33.4 -%} + {{NK1.33.1.Value}},{{NK1.33.4.Value}} + {% elsif NK1.12.1 and NK1.12.4 -%} {{NK1.12.1.Value}},{{NK1.12.4.Value}} {% elsif NK1 -%} {{NK1.Value}} - {% elsif PID.21.1 and PID.21.4 -%} - {{PID.21.1.Value}},{{PID.21.4.Value}} + {% elsif PID.21.1 and PID.21.5 -%} + {{PID.21.1.Value}},{{PID.21.5.Value}} {% elsif PID.6 -%} {{PID.6.Value}} {% elsif PRT.5.1 and PRT.5.9 -%} @@ -15,6 +17,20 @@ {{ROL.4.1.Value}},{{ROL.4.9.Value}} {% elsif ROL -%} {{ROL.Value}} + {% elsif IAM -%} + {{IAM.Value}} + {% elsif GT1.2 -%} + {{GT1.2.Repeats[0].1.Value}},{{GT1.2.Repeats[0].4.Value}} + {% elsif GT1 -%} + {{GT1.Value}} + {% elsif IN1.49 -%} + {{IN1.49.Repeats[0].1.Value}},{{IN1.49.Repeats[0].4.Value}} + {% elsif IN1 -%} + {{IN1.Value}} + {% elsif IN2.3 -%} + {{IN2.3.1.Value}},{{IN2.3.9.Value}} + {% elsif IN2 -%} + {{IN2.Value}} {% endif -%} {% endcapture -%} {{ identifiers | generate_id_input: 'RelatedPerson', true, baseId | generate_uuid }} diff --git a/data/Templates/Hl7v2/ID/_ServiceRequest.liquid b/data/Templates/Hl7v2/ID/_ServiceRequest.liquid index 0b135f585..1bdf8e98a 100644 --- a/data/Templates/Hl7v2/ID/_ServiceRequest.liquid +++ b/data/Templates/Hl7v2/ID/_ServiceRequest.liquid @@ -13,6 +13,10 @@ {{OBR.2.3.Value}},{{OBR.2.4.Value}} {% elsif OBR -%} {{OBR.Value}} + {% elsif NTE -%} + {{NTE.Value}} + {% elsif RF1 -%} + {{RF1.Value}} {% endif -%} {% endcapture -%} {{ identifiers | generate_id_input: 'ServiceRequest', true, baseId | generate_uuid }} diff --git a/data/Templates/Hl7v2/OML_O21.liquid b/data/Templates/Hl7v2/OML_O21.liquid index 13c8b8249..54beccb0b 100644 --- a/data/Templates/Hl7v2/OML_O21.liquid +++ b/data/Templates/Hl7v2/OML_O21.liquid @@ -21,33 +21,139 @@ {% evaluate patientId using 'ID/Patient' PID: firstSegments.PID, type: 'First' -%} {% assign fullPatientId = patientId | prepend: 'Patient/' -%} {% include 'Resource/Patient' PID: firstSegments.PID, PD1: firstSegments.PD1, ID: patientId -%} + {% include 'Extensions/Patient/PatientExtension' ID: PatientId, PID: firstSegments.PID, PV1: firstSegments.PV1 -%} {% evaluate practitionerId10_ORC_10 using 'ID/Practitioner' XCN: firstSegments.ORC.10 -%} {% evaluate practitionerId10_ORC_11 using 'ID/Practitioner' XCN: firstSegments.ORC.11 -%} {% evaluate practitionerId10_ORC_12 using 'ID/Practitioner' XCN: firstSegments.ORC.12 -%} - {% evaluate practitionerId7_PV1_7 using 'ID/Practitioner' XCN: firstSegments.PV1.7 -%} - {% evaluate practitionerId7_PV1_8 using 'ID/Practitioner' XCN: firstSegments.PV1.8 -%} - {% evaluate practitionerId7_PV1_9 using 'ID/Practitioner' XCN: firstSegments.PV1.9 -%} - {% evaluate practitionerId7_PV1_17 using 'ID/Practitioner' XCN: firstSegments.PV1.17 -%} - {% evaluate practitionerId7_PV1_52 using 'ID/Practitioner' XCN: firstSegments.PV1.52 -%} - + {% include 'Resource/Practitioner' ORC: firstSegments.ORC, ID: practitionerId10_ORC_10 -%} {% include 'Resource/Practitioner' ORC: firstSegments.ORC, ID: practitionerId10_ORC_11 -%} {% include 'Resource/Practitioner' ORC: firstSegments.ORC, ID: practitionerId10_ORC_12 -%} - {% include 'Resource/Practitioner' PV1: firstSegments.PV1, ID: practitionerId7_PV1_7 -%} - {% include 'Resource/Practitioner' PV1: firstSegments.PV1, ID: practitionerId7_PV1_8 -%} - {% include 'Resource/Practitioner' PV1: firstSegments.PV1, ID: practitionerId7_PV1_9 -%} - {% include 'Resource/Practitioner' PV1: firstSegments.PV1, ID: practitionerId7_PV1_17 -%} - {% include 'Resource/Practitioner' PV1: firstSegments.PV1, ID: practitionerId7_PV1_52 -%} + + {% if firstSegments.PV1.5 -%} + {% if firstSegments.PV1.5.4.1 != "" and firstSegments.PV1.5.4.1 != null and firstSegments.PV1.5.4.2 != "" and firstSegments.PV1.5.4.2 != null and firstSegments.PV1.5.4.3 != "" and firstSegments.PV1.5.4.3 != null -%} + {% evaluate Organization_ID_PV1_5_4 using 'ID/Organization' HDORG: firstSegments.PV1.5.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.5.4, ID: Organization_ID_PV1_5_4 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PV1.19 -%} + {% if firstSegments.PV1.19.4.1 != "" and firstSegments.PV1.19.4.1 != null and firstSegments.PV1.19.4.2 != "" and firstSegments.PV1.19.4.2 != null and firstSegments.PV1.19.4.3 != "" and firstSegments.PV1.19.4.3 != null -%} + {% evaluate Organization_ID_PV1_19_4 using 'ID/Organization' HDORG: firstSegments.PV1.19.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.19.4, ID: Organization_ID_PV1_19_4 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PV1.7 -%} + {% if firstSegments.PV1.7.9.1 != "" and firstSegments.PV1.7.9.1 != null and firstSegments.PV1.7.9.2 != "" and firstSegments.PV1.7.9.2 != null and firstSegments.PV1.7.9.3 != "" and firstSegments.PV1.7.9.3 != null -%} + {% evaluate Organization_ID_PV1_7_9 using 'ID/Organization' HDORG: firstSegments.PV1.7.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.7.9, ID: Organization_ID_PV1_7_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_7 using 'ID/Practitioner' XCN: firstSegments.PV1.7 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.7, ID: practitionerId_PV1_7 -%} + {% endif -%} + + {% if firstSegments.PV1.8 -%} + {% if firstSegments.PV1.8.9.1 != "" and firstSegments.PV1.8.9.1 != null and firstSegments.PV1.8.9.2 != "" and firstSegments.PV1.8.9.2 != null and firstSegments.PV1.8.9.3 != "" and firstSegments.PV1.8.9.3 != null -%} + {% evaluate Organization_ID_PV1_8_9 using 'ID/Organization' HDORG: firstSegments.PV1.8.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.8.9, ID: Organization_ID_PV1_8_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_8 using 'ID/Practitioner' XCN: firstSegments.PV1.8 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.8, ID: practitionerId_PV1_8 -%} + {% endif -%} + + {% if firstSegments.PV1.9 -%} + {% if firstSegments.PV1.9.9.1 != "" and firstSegments.PV1.9.9.1 != null and firstSegments.PV1.9.9.2 != "" and firstSegments.PV1.9.9.2 != null and firstSegments.PV1.9.9.3 != "" and firstSegments.PV1.9.9.3 != null -%} + {% evaluate Organization_ID_PV1_9_9 using 'ID/Organization' HDORG: firstSegments.PV1.9.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.9.9, ID: Organization_ID_PV1_9_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_9 using 'ID/Practitioner' XCN: firstSegments.PV1.9 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.9, ID: practitionerId_PV1_9 -%} + {% endif -%} + + {% if firstSegments.PV1.17 -%} + {% if firstSegments.PV1.17.9.1 != "" and firstSegments.PV1.17.9.1 != null and firstSegments.PV1.17.9.2 != "" and firstSegments.PV1.17.9.2 != null and firstSegments.PV1.17.9.3 != "" and firstSegments.PV1.17.9.3 != null -%} + {% evaluate Organization_ID_PV1_17_9 using 'ID/Organization' HDORG: firstSegments.PV1.17.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.17.9, ID: Organization_ID_PV1_17_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_17 using 'ID/Practitioner' XCN: firstSegments.PV1.17 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.17, ID: practitionerId_PV1_17 -%} + {% endif -%} + + {% if firstSegments.PV1.50 -%} + {% for p in firstSegments.PV1.50.Repeats -%} + {% if p.4.1 != "" and p.4.1 != null and p.4.2 != "" and p.4.2 != null and p.4.3 != "" and p.4.3 != null -%} + {% evaluate Organization_ID_PV1_50_4 using 'ID/Organization' HDORG: p.4 -%} + {% include 'Resource/Organization', PV1: p.4, ID: Organization_ID_PV1_50_4 -%} + {% endif -%} + {% endfor -%} + {% endif -%} + + {% if firstSegments.PV1.52 -%} + {% if firstSegments.PV1.52.9.1 != "" and firstSegments.PV1.52.9.1 != null and firstSegments.PV1.52.9.2 != "" and firstSegments.PV1.52.9.2 != null and firstSegments.PV1.52.9.3 != "" and firstSegments.PV1.52.9.3 != null -%} + {% evaluate Organization_ID_PV1_52_9 using 'ID/Organization' HDORG: firstSegments.PV1.52.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.52.9, ID: Organization_ID_PV1_52_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_52 using 'ID/Practitioner' XCN: firstSegments.PV1.52 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.52, ID: practitionerId_PV1_52 -%} + {% endif -%} + + {% if firstSegments.PV2.13 -%} + {% if firstSegments.PV2.13.9.1 != "" and firstSegments.PV2.13.9.1 != null and firstSegments.PV2.13.9.2 != "" and firstSegments.PV2.13.9.2 != null and firstSegments.PV2.13.9.3 != "" and firstSegments.PV2.13.9.3 != null -%} + {% evaluate Organization_ID_PV2_13_9 using 'ID/Organization' HDORG: firstSegments.PV2.13.9 -%} + {% include 'Resource/Organization', PV2: firstSegments.PV2.13.9, ID: Organization_ID_PV2_13_9 -%} + {% endif -%} + {% evaluate practitionerId_PV2_13 using 'ID/Practitioner' XCN: firstSegments.PV2.13 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV2.13, ID: practitionerId_PV2_13 -%} + {% endif -%} + + {% if firstSegments.EVN.5 -%} + {% if firstSegments.EVN.5.9.1 != "" and firstSegments.EVN.5.9.1 != null and firstSegments.EVN.5.9.2 != "" and firstSegments.EVN.5.9.2 != null and firstSegments.EVN.5.9.3 != "" and firstSegments.EVN.5.9.3 != null -%} + {% evaluate Organization_ID_EVN_5_9 using 'ID/Organization' HDORG: firstSegments.EVN.5.9 -%} + {% include 'Resource/Organization', EVN: firstSegments.EVN.5.9, ID: Organization_ID_EVN_5_9 -%} + {% endif -%} + {% evaluate practitionerId_EVN_5 using 'ID/Practitioner' XCN: firstSegments.EVN.5 -%} + {% include 'Resource/Practitioner' EVN: firstSegments.EVN.5, ID: practitionerId_EVN_5 -%} + {% endif -%} + + {% if firstSegments.PD1.4 -%} + {% if firstSegments.PD1.4.9.1 != "" and firstSegments.PD1.4.9.1 != null and firstSegments.PD1.4.9.2 != "" and firstSegments.PD1.4.9.2 != null and firstSegments.PD1.4.9.3 != "" and firstSegments.PD1.4.9.3 != null -%} + {% evaluate Organization_ID_PD1_4_9 using 'ID/Organization' HDORG: firstSegments.PD1.4.9 -%} + {% include 'Resource/Organization', PD1_4: firstSegments.PD1.4.9, ID: Organization_ID_PD1_4_9 -%} + {% endif -%} + {% evaluate Practitioner_ID_PD1_4 using 'ID/Practitioner' XCN: firstSegments.PD1.4 -%} + {% include 'Resource/Practitioner' PD1: firstSegments.PD1.4, ID: Practitioner_ID_PD1_4 -%} + {% endif -%} {% evaluate locationId_ORC_21 using 'ID/Location' XON: firstSegments.ORC.21 -%} - {% evaluate locationId3_PV1_3 using 'ID/Location' PL: firstSegments.PV1.3 -%} - {% evaluate locationId3_PV1_6 using 'ID/Location' PL: firstSegments.PV1.6 -%} - {% include 'Resource/Location' ORC: firstSegments.ORC, ID: locationId_ORC_21 -%} - {% include 'Resource/Location' PL: firstSegments.PV1.3, ID: locationId3_PV1_3 -%} - {% include 'Resource/Location' PL: firstSegments.PV1.6, ID: locationId3_PV1_6 -%} - + + {% if firstSegments.PV1.3 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.3-%} + {% endif -%} + + {% if firstSegments.PV1.6 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.6 -%} + {% endif -%} + + {% if firstSegments.PV1.37 -%} + {% evaluate location_ID_PV1_37 using 'ID/Location' DLD: firstSegments.PV1.37 -%} + {% include 'Resource/Location' PV1: firstSegments.PV1.37, ID: location_ID_PV1_37-%} + {% endif -%} + + {% if firstSegments.PV1.42 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.42-%} + {% endif -%} + + {% if firstSegments.PV1.43 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.43-%} + {% endif -%} + + {% if firstSegments.PV2.1 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV2.1-%} + {% endif -%} + {% evaluate provenanceId using 'ID/Provenance' MSH: firstSegments.MSH, baseId: patientId -%} {% include 'Resource/Provenance' Root_Template: 'OML_O21', MSH: firstSegments.MSH, ORC: firstSegments.ORC, ID: provenanceId -%} @@ -55,10 +161,20 @@ {% include 'Resource/Account' PID: firstSegments.PID, ID: accountId -%} {% include 'Reference/Account/Subject' ID: accountId, REF: fullPatientId -%} + {% if firstSegments.PV1.54 -%} + {% if firstSegments.PV1.54.4.1 != "" and firstSegments.PV1.54.4.1 != null and firstSegments.PV1.54.4.2 != "" and firstSegments.PV1.54.4.2 != null and firstSegments.PV1.54.4.3 != "" and firstSegments.PV1.54.4.3 != null -%} + {% evaluate Organization_ID_PV1_54_4 using 'ID/Organization' HDORG: firstSegments.PV1.54.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.54.4, ID: Organization_ID_PV1_54_4 -%} + {% endif -%} + {% evaluate EpisodeOfCare_ID using 'ID/EpisodeOfCare' PV1: firstSegments.PV1.54 -%} + {% include 'Resource/EpisodeOfCare' PV1: firstSegments.PV1, ID: EpisodeOfCare_ID, patientRefrenceID: fullPatientId -%} + {% endif -%} + {% evaluate encounterId using 'ID/Encounter' PV1: firstSegments.PV1, baseId: patientId -%} - {% include 'Resource/Encounter' PV1: firstSegments.PV1, PV2: firstSegments.PV2, ID: encounterId -%} + {% include 'Resource/Encounter' Root_Template: 'OML_021', PV1: firstSegments.PV1, PV2: firstSegments.PV2, ID: encounterId -%} {% include 'Reference/Encounter/Subject' ID: encounterId, REF: fullPatientId -%} - + {% include 'Extensions/Encounter/EncounterExtension' ID: encounterId, PV1: firstSegments.PV1, PV2: firstSegments.PV2, -%} + {% for al1Segment in al1SegmentLists.AL1 -%} {% evaluate allergyIntoleranceId using 'ID/AllergyIntolerance' AL1: al1Segment, baseId: patientId -%} {% include 'Resource/AllergyIntolerance' AL1: al1Segment, ID: allergyIntoleranceId, AllergyIntolerance_Patient_ID: fullPatientId -%} diff --git a/data/Templates/Hl7v2/ORU_R01.liquid b/data/Templates/Hl7v2/ORU_R01.liquid index bc327e1c4..9ce2dbed1 100644 --- a/data/Templates/Hl7v2/ORU_R01.liquid +++ b/data/Templates/Hl7v2/ORU_R01.liquid @@ -19,33 +19,139 @@ {% evaluate patientId using 'ID/Patient' PID: firstSegments.PID, type: 'First' -%} {% assign fullPatientId = patientId | prepend: 'Patient/' -%} {% include 'Resource/Patient' PID: firstSegments.PID, PD1: firstSegments.PD1, ID: patientId -%} + {% include 'Extensions/Patient/PatientExtension' ID: PatientId, PID: firstSegments.PID, PV1: firstSegments.PV1 -%} {% evaluate practitionerId10_ORC_10 using 'ID/Practitioner' XCN: firstSegments.ORC.10 -%} {% evaluate practitionerId10_ORC_11 using 'ID/Practitioner' XCN: firstSegments.ORC.11 -%} {% evaluate practitionerId10_ORC_12 using 'ID/Practitioner' XCN: firstSegments.ORC.12 -%} - {% evaluate practitionerId_7 using 'ID/Practitioner' XCN: firstSegments.PV1.7 -%} - {% evaluate practitionerId_PV1_8 using 'ID/Practitioner' XCN: firstSegments.PV1.8 -%} - {% evaluate practitionerId_PV1_9 using 'ID/Practitioner' XCN: firstSegments.PV1.9 -%} - {% evaluate practitionerId_PV1_17 using 'ID/Practitioner' XCN: firstSegments.PV1.17 -%} - {% evaluate practitionerId_PV1_52 using 'ID/Practitioner' XCN: firstSegments.PV1.52 -%} {% include 'Resource/Practitioner' ORC: firstSegments.ORC, ID: practitionerId10_ORC_10 -%} {% include 'Resource/Practitioner' ORC: firstSegments.ORC, ID: practitionerId10_ORC_11 -%} {% include 'Resource/Practitioner' ORC: firstSegments.ORC, ID: practitionerId10_ORC_12 -%} - {% include 'Resource/Practitioner' PV1: firstSegments.PV1, ID: practitionerId_PV1_7 -%} - {% include 'Resource/Practitioner' PV1: firstSegments.PV1, ID: practitionerId_PV1_8 -%} - {% include 'Resource/Practitioner' PV1: firstSegments.PV1, ID: practitionerId_PV1_9 -%} - {% include 'Resource/Practitioner' PV1: firstSegments.PV1, ID: practitionerId_PV1_17 -%} - {% include 'Resource/Practitioner' PV1: firstSegments.PV1, ID: practitionerId_PV1_52 -%} - - {% evaluate locationId_PV1_3 using 'ID/Location' PL: firstSegments.PV1.3 -%} - {% evaluate locationId_PV1_6 using 'ID/Location' PL: firstSegments.PV1.6 -%} - {% evaluate locationId_ORC_21 using 'ID/Location' XON: firstSegments.ORC.21 -%} - {% include 'Resource/Location' PL: firstSegments.PV1.3, ID: locationId_PV1_3 -%} - {% include 'Resource/Location' PL: firstSegments.PV1.6, ID: locationId_PV1_6 -%} + {% if firstSegments.PV1.5 -%} + {% if firstSegments.PV1.5.4.1 != "" and firstSegments.PV1.5.4.1 != null and firstSegments.PV1.5.4.2 != "" and firstSegments.PV1.5.4.2 != null and firstSegments.PV1.5.4.3 != "" and firstSegments.PV1.5.4.3 != null -%} + {% evaluate Organization_ID_PV1_5_4 using 'ID/Organization' HDORG: firstSegments.PV1.5.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.5.4, ID: Organization_ID_PV1_5_4 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PV1.19 -%} + {% if firstSegments.PV1.19.4.1 != "" and firstSegments.PV1.19.4.1 != null and firstSegments.PV1.19.4.2 != "" and firstSegments.PV1.19.4.2 != null and firstSegments.PV1.19.4.3 != "" and firstSegments.PV1.19.4.3 != null -%} + {% evaluate Organization_ID_PV1_19_4 using 'ID/Organization' HDORG: firstSegments.PV1.19.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.19.4, ID: Organization_ID_PV1_19_4 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PV1.7 -%} + {% if firstSegments.PV1.7.9.1 != "" and firstSegments.PV1.7.9.1 != null and firstSegments.PV1.7.9.2 != "" and firstSegments.PV1.7.9.2 != null and firstSegments.PV1.7.9.3 != "" and firstSegments.PV1.7.9.3 != null -%} + {% evaluate Organization_ID_PV1_7_9 using 'ID/Organization' HDORG: firstSegments.PV1.7.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.7.9, ID: Organization_ID_PV1_7_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_7 using 'ID/Practitioner' XCN: firstSegments.PV1.7 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.7, ID: practitionerId_PV1_7 -%} + {% endif -%} + + {% if firstSegments.PV1.8 -%} + {% if firstSegments.PV1.8.9.1 != "" and firstSegments.PV1.8.9.1 != null and firstSegments.PV1.8.9.2 != "" and firstSegments.PV1.8.9.2 != null and firstSegments.PV1.8.9.3 != "" and firstSegments.PV1.8.9.3 != null -%} + {% evaluate Organization_ID_PV1_8_9 using 'ID/Organization' HDORG: firstSegments.PV1.8.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.8.9, ID: Organization_ID_PV1_8_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_8 using 'ID/Practitioner' XCN: firstSegments.PV1.8 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.8, ID: practitionerId_PV1_8 -%} + {% endif -%} + + {% if firstSegments.PV1.9 -%} + {% if firstSegments.PV1.9.9.1 != "" and firstSegments.PV1.9.9.1 != null and firstSegments.PV1.9.9.2 != "" and firstSegments.PV1.9.9.2 != null and firstSegments.PV1.9.9.3 != "" and firstSegments.PV1.9.9.3 != null -%} + {% evaluate Organization_ID_PV1_9_9 using 'ID/Organization' HDORG: firstSegments.PV1.9.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.9.9, ID: Organization_ID_PV1_9_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_9 using 'ID/Practitioner' XCN: firstSegments.PV1.9 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.9, ID: practitionerId_PV1_9 -%} + {% endif -%} + + {% if firstSegments.PV1.17 -%} + {% if firstSegments.PV1.17.9.1 != "" and firstSegments.PV1.17.9.1 != null and firstSegments.PV1.17.9.2 != "" and firstSegments.PV1.17.9.2 != null and firstSegments.PV1.17.9.3 != "" and firstSegments.PV1.17.9.3 != null -%} + {% evaluate Organization_ID_PV1_17_9 using 'ID/Organization' HDORG: firstSegments.PV1.17.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.17.9, ID: Organization_ID_PV1_17_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_17 using 'ID/Practitioner' XCN: firstSegments.PV1.17 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.17, ID: practitionerId_PV1_17 -%} + {% endif -%} + + {% if firstSegments.PV1.50 -%} + {% for p in firstSegments.PV1.50.Repeats -%} + {% if p.4.1 != "" and p.4.1 != null and p.4.2 != "" and p.4.2 != null and p.4.3 != "" and p.4.3 != null -%} + {% evaluate Organization_ID_PV1_50_4 using 'ID/Organization' HDORG: p.4 -%} + {% include 'Resource/Organization', PV1: p.4, ID: Organization_ID_PV1_50_4 -%} + {% endif -%} + {% endfor -%} + {% endif -%} + + {% if firstSegments.PV1.52 -%} + {% if firstSegments.PV1.52.9.1 != "" and firstSegments.PV1.52.9.1 != null and firstSegments.PV1.52.9.2 != "" and firstSegments.PV1.52.9.2 != null and firstSegments.PV1.52.9.3 != "" and firstSegments.PV1.52.9.3 != null -%} + {% evaluate Organization_ID_PV1_52_9 using 'ID/Organization' HDORG: firstSegments.PV1.52.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.52.9, ID: Organization_ID_PV1_52_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_52 using 'ID/Practitioner' XCN: firstSegments.PV1.52 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.52, ID: practitionerId_PV1_52 -%} + {% endif -%} + + {% if firstSegments.PV2.13 -%} + {% if firstSegments.PV2.13.9.1 != "" and firstSegments.PV2.13.9.1 != null and firstSegments.PV2.13.9.2 != "" and firstSegments.PV2.13.9.2 != null and firstSegments.PV2.13.9.3 != "" and firstSegments.PV2.13.9.3 != null -%} + {% evaluate Organization_ID_PV2_13_9 using 'ID/Organization' HDORG: firstSegments.PV2.13.9 -%} + {% include 'Resource/Organization', PV2: firstSegments.PV2.13.9, ID: Organization_ID_PV2_13_9 -%} + {% endif -%} + {% evaluate practitionerId_PV2_13 using 'ID/Practitioner' XCN: firstSegments.PV2.13 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV2.13, ID: practitionerId_PV2_13 -%} + {% endif -%} + + {% if firstSegments.EVN.5 -%} + {% if firstSegments.EVN.5.9.1 != "" and firstSegments.EVN.5.9.1 != null and firstSegments.EVN.5.9.2 != "" and firstSegments.EVN.5.9.2 != null and firstSegments.EVN.5.9.3 != "" and firstSegments.EVN.5.9.3 != null -%} + {% evaluate Organization_ID_EVN_5_9 using 'ID/Organization' HDORG: firstSegments.EVN.5.9 -%} + {% include 'Resource/Organization', EVN: firstSegments.EVN.5.9, ID: Organization_ID_EVN_5_9 -%} + {% endif -%} + {% evaluate practitionerId_EVN_5 using 'ID/Practitioner' XCN: firstSegments.EVN.5 -%} + {% include 'Resource/Practitioner' EVN: firstSegments.EVN.5, ID: practitionerId_EVN_5 -%} + {% endif -%} + + {% if firstSegments.PD1.4 -%} + {% if firstSegments.PD1.4.9.1 != "" and firstSegments.PD1.4.9.1 != null and firstSegments.PD1.4.9.2 != "" and firstSegments.PD1.4.9.2 != null and firstSegments.PD1.4.9.3 != "" and firstSegments.PD1.4.9.3 != null -%} + {% evaluate Organization_ID_PD1_4_9 using 'ID/Organization' HDORG: firstSegments.PD1.4.9 -%} + {% include 'Resource/Organization', PD1_4: firstSegments.PD1.4.9, ID: Organization_ID_PD1_4_9 -%} + {% endif -%} + {% evaluate Practitioner_ID_PD1_4 using 'ID/Practitioner' XCN: firstSegments.PD1.4 -%} + {% include 'Resource/Practitioner' PD1: firstSegments.PD1.4, ID: Practitioner_ID_PD1_4 -%} + {% endif -%} + + {% evaluate locationId_ORC_21 using 'ID/Location' XON: firstSegments.ORC.21 -%} {% include 'Resource/Location' ORC: firstSegments.ORC, ID: locationId_ORC_21 -%} + {% if firstSegments.PV1.3 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.3-%} + {% endif -%} + + {% if firstSegments.PV1.6 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.6 -%} + {% endif -%} + + {% if firstSegments.PV1.37 -%} + {% evaluate location_ID_PV1_37 using 'ID/Location' DLD: firstSegments.PV1.37 -%} + {% include 'Resource/Location' PV1: firstSegments.PV1.37, ID: location_ID_PV1_37-%} + {% endif -%} + + {% if firstSegments.PV1.42 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.42-%} + {% endif -%} + + {% if firstSegments.PV1.43 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.43-%} + {% endif -%} + + {% if firstSegments.PV2.1 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV2.1-%} + {% endif -%} + {% evaluate provenanceId using 'ID/Provenance' MSH: firstSegments.MSH, baseId: patientId -%} {% include 'Resource/Provenance' Root_Template: 'ORU_R01', MSH: firstSegments.MSH, ORC: firstSegments.ORC, ID: provenanceId -%} @@ -53,11 +159,21 @@ {% include 'Resource/Account' PID: firstSegments.PID, ID: accountId -%} {% include 'Reference/Account/Subject' ID: accountId, REF: fullPatientId -%} + {% if firstSegments.PV1.54 -%} + {% if firstSegments.PV1.54.4.1 != "" and firstSegments.PV1.54.4.1 != null and firstSegments.PV1.54.4.2 != "" and firstSegments.PV1.54.4.2 != null and firstSegments.PV1.54.4.3 != "" and firstSegments.PV1.54.4.3 != null -%} + {% evaluate Organization_ID_PV1_54_4 using 'ID/Organization' HDORG: firstSegments.PV1.54.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.54.4, ID: Organization_ID_PV1_54_4 -%} + {% endif -%} + {% evaluate EpisodeOfCare_ID using 'ID/EpisodeOfCare' PV1: firstSegments.PV1.54 -%} + {% include 'Resource/EpisodeOfCare' PV1: firstSegments.PV1, ID: EpisodeOfCare_ID, patientRefrenceID: fullPatientId -%} + {% endif -%} + {% evaluate encounterId using 'ID/Encounter' PV1: firstSegments.PV1, baseId: patientId -%} {% assign fullEncounterId = encounterId | prepend: 'Encounter/' -%} - {% include 'Resource/Encounter' PV1: firstSegments.PV1, PV2: firstSegments.PV2, ID: encounterId -%} + {% include 'Resource/Encounter' Root_Template: 'ORU_R01', PV1: firstSegments.PV1, PV2: firstSegments.PV2, ID: encounterId -%} {% include 'Reference/Encounter/Subject' ID: encounterId, REF: fullPatientId -%} - + {% include 'Extensions/Encounter/EncounterExtension' ID: encounterId, PV1: firstSegments.PV1, PV2: firstSegments.PV2, -%} + {% for nk1Segment in nk1SegmentLists.NK1 -%} {% evaluate organizationId_NK1_13 using 'ID/Organization' XON: nk1Segment.13 -%} {% include 'Resource/Organization' NK1: nk1Segment, ID: organizationId_NK1_13 -%} @@ -71,19 +187,20 @@ {% for obrSegment in obrSegmentLists.OBR -%} {% assign obxSegmentLists = hl7v2Data | get_related_segment_list: obrSegment, 'OBX' -%} {% assign spmSegmentLists = hl7v2Data | get_related_segment_list: obrSegment, 'SPM' -%} - + {% evaluate practitionerId_OBR_10 using 'ID/Practitioner' XCN: obrSegment.10 -%} {% include 'Resource/Practitioner' OBR: obrSegment, ID: practitionerId_OBR_10 -%} - + + {% evaluate diagnosticId using 'ID/DiagnosticReport' OBR: obrSegment, baseId: patientId -%} - {% include 'Resource/DiagnosticReport' OBR: obrSegment, DiagnosticReport_Encounter_ID: fullEncounterId, ID: diagnosticId -%} - + {% include 'Resource/DiagnosticReport' OBR: obrSegment, DiagnosticReport_Encounter_ID: fullEncounterId, ID: diagnosticId -%} + {% for obxSegment in obxSegmentLists.OBX -%} + {% comment -%}{% endcomment -%} {% evaluate organizationId_OBX_23 using 'ID/Organization' XON: obxSegment.23 -%} {% if obxSegment.24 or obxSegment.25 -%} - {% include 'Resource/Organization' OBX: obxSegment, ID: organizationId_OBX_23 -%} + {% include 'Resource/Organization' OBX_ORU: obxSegment, ID: organizationId_OBX_23 -%} {% endif -%} - {% evaluate practitionerId_OBX_16 using 'ID/Practitioner' XCN: obxSegment.16 -%} {% if obxSegment.16 -%} {% include 'Resource/Practitioner' OBX: obxSegment, ID: practitionerId_OBX_16 -%} diff --git a/data/Templates/Hl7v2/Resource/_Account.liquid b/data/Templates/Hl7v2/Resource/_Account.liquid index 0925fa6ba..00a66350c 100644 --- a/data/Templates/Hl7v2/Resource/_Account.liquid +++ b/data/Templates/Hl7v2/Resource/_Account.liquid @@ -9,12 +9,64 @@ {% include 'DataType/CX' CX: PID.18 -%} }, ], + "status": "active", "subject": [ {% comment -%} Placeholder provided for customization by users. If left empty, it will be removed in post-processing. {% endcomment -%} {% if PID.18 -%} {% endif -%} ], + {% if GT1 -%} + "guarantor" : + [ + + { + {% if GT1.11 -%} + {% if GT1.11.1.Value == "SEL" -%} + "party" : { + "reference": "{{ REF_PATIENT }}", + }, + {% if GT1.22 -%} + "onHold" : {{ GT1.22.Value | get_property: 'CodeSystem/Yes_No', 'code' }}, + {% endif -%} + "period" : + { + "start":"{{ GT1.13.Value | format_as_date_time }}", + "end":"{{ GT1.14.Value | format_as_date_time }}" + }, + {% else -%} + "party" : { + "reference" : "RelatedPerson/{{ REF_RELATED_PERSON }}", + }, + {% if GT1.22 -%} + "onHold" : {{ GT1.22.Value | get_property: 'CodeSystem/Yes_No', 'code' }}, + {% endif -%} + "period" : + { + "start":"{{ GT1.13.Value | format_as_date_time }}", + "end":"{{ GT1.14.Value | format_as_date_time }}" + }, + {% endif -%} + {% endif -%} + }, + { + {% if GT1.21 -%} + "party" : { + "reference": "Organization/{{ REF_ORG }}", + }, + {% if GT1.22 -%} + "onHold" : {{ GT1.22.Value | get_property: 'CodeSystem/Yes_No', 'code' }}, + {% endif -%} + "period" : + { + "start":"{{ GT1.13.Value | format_as_date_time }}", + "end":"{{ GT1.14.Value | format_as_date_time }}" + }, + {% endif -%} + } + + ], + {% endif -%} }, "request":{ "method":"PUT", diff --git a/data/Templates/Hl7v2/Resource/_AllergyIntolerance.liquid b/data/Templates/Hl7v2/Resource/_AllergyIntolerance.liquid index b810ff578..0e4f9d74e 100644 --- a/data/Templates/Hl7v2/Resource/_AllergyIntolerance.liquid +++ b/data/Templates/Hl7v2/Resource/_AllergyIntolerance.liquid @@ -7,36 +7,193 @@ AllergyIntolerance_Recorder_ID: A resource Id, used to fill "recorder.reference" AllergyIntolerance_Asserter_ID: A resource Id, used to fill "asserter.reference" property. {% endcomment -%} +{% evaluate Practitioner_ID_NTE_5 using 'ID/Practitioner' XCN: NTE.5 -%} + { "fullUrl":"urn:uuid:{{ ID }}", "resource":{ "resourceType": "AllergyIntolerance", "id":"{{ ID }}", + "identifier": + [ + { + {% include 'DataType/EIIdentifier' EI: IAM.7 -%} + }, + ], {% comment -%} Placeholder provided for customization by users. If left empty, it will be removed in post-processing. {% endcomment -%} + "category": [ + {% if AL1.2 -%} + {% include 'DataType/CWECode' mapping: 'CodeSystem/AllergyCategory', CWE: AL1.2 -%}, + {% endif -%} + {% if IAM.2 -%} + {% include 'DataType/CWECode' mapping: 'CodeSystem/AllergyCategory', CWE: IAM.2 -%}, + {% endif -%} ], - "type":"{{ AL1.2.Value | get_property: 'CodeSystem/AllergyType', 'code' }}", + + {% if AL1.2 -%} + "type": {% include 'DataType/CWECode' mapping: 'CodeSystem/AllergyType', CWE: AL1.2 -%}, + {% endif -%} + + {% unless IAM.9 -%} + {% if IAM.2 -%} + "type": {% include 'DataType/CWECode' mapping: 'CodeSystem/AllergyType', CWE: IAM.2 -%}, + {% endif -%} + {% endunless -%} + + {% if IAM.9.1.Value == "AL" or IAM.9.1.Value == "IN" -%} + "type": {% include 'DataType/CWECode' mapping: 'CodeSystem/AllergySensitivity', CWE: IAM.9 -%}, + {% endif -%} + "code": { - {% include 'DataType/CWECodeableConcept' CWE: AL1.3 -%} + {% if AL1 -%} + {% include 'DataType/CWECodeableConcept' CWE: AL1.3 -%}, + {% endif -%} + {% if IAM -%} + "coding": [ + {% include 'DataType/CWECodeableConceptRepeatable' CWE: IAM.3 -%}, + {% include 'DataType/CWECodeableConceptRepeatable' CWE: IAM.27 -%}, + ], + {% endif -%} }, + + "note": [ + { + {% if NTE -%} + "text": "{{NTE.3.Value}}", + "time": "{{ NTE.6.Value | format_as_date_time }}", + {% if NTE.5 and Practitioner_ID_NTE_5 %} + "authorReference": + { + "reference":"Practitioner/{{ Practitioner_ID_NTE_5 }}", + } + {% endif %} + {% endif -%} + } + ], + "reaction": [ { + {% comment -%} {% if AL1.4.1.Value != "U" -%} "severity":"{{ AL1.4.1.Value | get_property: 'CodeSystem/AllergyIntoleranceSeverity', 'code' }}", {% endif -%} + {% endcomment -%} + {% if IAR.2 -%} + "severity": {% include 'DataType/CWECode' mapping: 'CodeSystem/AllergyIntoleranceSeverity', CWE: IAR.2 -%}, + {% endif -%} + {% unless IAR.2 -%} + {% if IAM.4 -%} + "severity": {% include 'DataType/CWECode' mapping: 'CodeSystem/AllergyIntoleranceSeverity', CWE: IAM.4 -%}, + {% endif -%} + {% endunless -%} + {% if IAR.3.2 -%} + {% if IAR.4 %} + {% capture description %}{{IAR.3.2.Value | append: "+" | append: IAR.4.Value}}{% endcapture -%} + "description" : "{{description}}", + {% else %} + {% capture description %}{{IAR.3.2.Value}}{% endcapture -%} + "description" : "{{description}}", + {% endif -%} + {% else -%} + {% if IAR.4 %} + {% capture description %}{{IAR.3.1.Value | append: "+" | append: IAR.4.Value}}{% endcapture -%} + "description" : "{{description}}", + {% else %} + {% capture description %}{{IAR.3.1.Value}}{% endcapture -%} + "description" : "{{description}}", + {% endif -%} + {% endif -%} + {% if IAR.3 == null -%} + {% capture description %}{{ IAR.4.Value }}{% endcapture -%} + "description" : "{{description}}", + {% endif -%} "manifestation": [ + {% if IAR.1.1 -%} { - "text":"{{ AL1.5.Value }}", + {% include 'DataType/CWECodeableConcept' CWE: IAR.1 -%} }, + {% endif -%} + {% unless IAR.1.1 -%} + { + "text":"{{ IAR.1.2.Value }}", + }, + {% endunless -%} + {% if AL1.5 -%} + { + "text":"{{ AL1.5.Value }}", + }, + {% endif -%} + {% unless IAR.1 -%} + {% if IAM.5 -%} + { + "text":"{{ IAM.5.Value }}", + }, + {% endif -%} + {% endunless -%} ], + "onset" : "{{ AL1.6.Value | format_as_date_time }}", }, ], - "criticality":"{{ AL1.4.1.Value | get_property: 'CodeSystem/AllergyIntoleranceCriticality', 'code' }}", - "onsetDateTime":"{{ AL1.6.Value | format_as_date_time }}", + + {% if AL1.4 -%} + "criticality": {% include 'DataType/CWECode' mapping: 'CodeSystem/AllergyIntoleranceCriticality', CWE: AL1.4 -%}, + {% endif -%} + {% comment -%} "onsetDateTime":"{{ AL1.6.Value | format_as_date_time }}", {% endcomment -%} + + "onsetDateTime":"{{ IAM.11.Value | format_as_date_time }}", + {% unless IAM.11 -%} + "onsetString":"{{ IAM.12.Value }}", + {% endunless -%} + + {% if IAM.24 -%} + "recordedDate": "{{ IAM.24.Value | format_as_date_time }}", + {% else -%} + "recordedDate": "{{ IAM.13.Value | format_as_date_time }}", + {% endif -%} + + "verificationStatus" : { + {% if IAM.6.1.Value == "D" -%} + "coding": [ + { + "code": "entered-in-error", + "display": "Entered in Error", + "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification" + } + ], + {% else -%} + {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/AllergyVerificationStatus', CWE: IAM.17 -%}, + {% endif -%} + }, + + {% if IAM.17.1.Value != "E" and IAM.6.1.Value != "D" -%} + "clinicalStatus" : { + {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/AllergyClinicalStatus', CWE: IAM.17 -%}, + }, + {% endif-%} + + {% if AL1 -%} + "clinicalStatus" : + { + "coding": + [ + { + "code": "active", + "display": "Active", + "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical", + }, + ], + }, + {% endif -%} + + "meta": { + "lastUpdated" : "{{ IAM.26.value | format_as_date_time }}", + }, + "patient": { "reference":"{{ AllergyIntolerance_Patient_ID }}", @@ -47,11 +204,26 @@ AllergyIntolerance_Asserter_ID: A resource Id, used to fill "asserter.reference" }, "recorder": { - "reference":"{{ AllergyIntolerance_Recorder_ID }}", + {% if IAM.23 -%} + {% evaluate Practitioner_ID_IAM_23 using 'ID/Practitioner' XCN: IAM.23 -%} + "reference":"Practitioner/{{ Practitioner_ID_IAM_23 }}", + {% endif -%} }, "asserter": { - "reference":"{{ AllergyIntolerance_Asserter_ID }}", + {% if IAM -%} + {% if IAM.15.1.Value == "SEL" -%} + "reference":"{{ AllergyIntolerance_Patient_ID }}", + {% endif -%} + {% if IAM.15.1.Value == "CGV" -%} + {% evaluate Practitioner_ID_IAM_14 using 'ID/Practitioner' XPN: IAM.14 -%} + "reference":"Practitioner/{{ Practitioner_ID_IAM_14 }}", + {% endif -%} + {% if IAM.15 == null or IAM.15.1.Value != "CGV" and IAM.15.1.Value != "SEL" -%} + {% evaluate RelatedPerson_ID_IAM_14 using 'ID/RelatedPerson' IAM: IAM.14, baseId: PatientBase -%} + "reference":"RelatedPerson/{{ RelatedPerson_ID_IAM_14 }}", + {% endif -%} + {% endif -%} }, }, "request":{ diff --git a/data/Templates/Hl7v2/Resource/_Appointment.liquid b/data/Templates/Hl7v2/Resource/_Appointment.liquid new file mode 100644 index 000000000..c4789b613 --- /dev/null +++ b/data/Templates/Hl7v2/Resource/_Appointment.liquid @@ -0,0 +1,12 @@ +{ + "fullUrl":"urn:uuid:{{ ID }}", + "resource":{ + "resourceType" : "Appointment", + "id": "{{ ID }}", + "comment": "{{NTE.3.Value}}", + }, + "request":{ + "method":"PUT", + "url":"Appointment/{{ ID }}", + }, +} \ No newline at end of file diff --git a/data/Templates/Hl7v2/Resource/_Bundle.liquid b/data/Templates/Hl7v2/Resource/_Bundle.liquid index f73dde620..f34bb030b 100644 --- a/data/Templates/Hl7v2/Resource/_Bundle.liquid +++ b/data/Templates/Hl7v2/Resource/_Bundle.liquid @@ -9,6 +9,7 @@ {% comment -%} Placeholder provided for customization by users. If left empty, it will be removed in post-processing. {% endcomment -%} "identifier": { + "value":"{{ MSH.10.Value }}", }, {% if MSH.10 -%} "type":"message", diff --git a/data/Templates/Hl7v2/Resource/_Condition.liquid b/data/Templates/Hl7v2/Resource/_Condition.liquid index 7cb92aee0..81619751b 100644 --- a/data/Templates/Hl7v2/Resource/_Condition.liquid +++ b/data/Templates/Hl7v2/Resource/_Condition.liquid @@ -17,25 +17,29 @@ Condition_Recorder_ID: A resource Id, used to fill "recorder.reference" property "code": { {% include 'DataType/CWECodeableConcept' CWE: DG1.3 -%} - "text":"{{ DG1.4.Value }}", + "text": "{{ DG1.4.Value }}", }, + "onsetDateTime":"{{ DG1.5.Value | format_as_date_time }}", - "recordedDate":"{{ DG1.19.Value | format_as_date_time }}", + "identifier": [ { {% include 'DataType/EIIdentifier' EI: DG1.20 -%} }, + {% if DG1_22 %} + { + {% include 'DataType/EIIdentifier' EI: DG1_22 -%} + }, + {% endif %} ], "verificationStatus": { "coding": [ { - {% if DG1.21 -%} + {% if DG1.21.Value == 'D' -%} "code":"entered-in-error", - {% endif -%} - {% if DG1.21 -%} "system":"http://terminology.hl7.org/CodeSystem/condition-ver-status", {% endif -%} }, @@ -43,10 +47,17 @@ Condition_Recorder_ID: A resource Id, used to fill "recorder.reference" property }, "asserter": { - {% if DG1.16 and Practitioner_ID_DG1_16 -%} + {% if DG1.16 -%} "reference":"Practitioner/{{ Practitioner_ID_DG1_16 }}", {% endif -%} }, + + {% if Condition_Subject_ID_DG1_22 %} + "subject": + { + "reference":"{{ Condition_Subject_ID_DG1_22 }}", + }, + {% endif %} "subject": { "reference":"{{ Condition_Subject_ID }}", diff --git a/data/Templates/Hl7v2/Resource/_Coverage.liquid b/data/Templates/Hl7v2/Resource/_Coverage.liquid new file mode 100644 index 000000000..e209b704c --- /dev/null +++ b/data/Templates/Hl7v2/Resource/_Coverage.liquid @@ -0,0 +1,189 @@ +{% assign namestring = "" -%} +{ + "fullUrl":"urn:uuid:{{ ID }}", + "resource":{ + "resourceType": "Coverage", + "id":"{{ ID }}", + + "class": + [ + {% if IN1.2.1 -%} + { + "value" : "{{IN1.2.1.Value}}", + "name" : "{{IN1.2.2.Value}}", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/coverage-class", + "code": "plan", + "display": "Plan" + } + ] + }, + }, + {% endif -%} + {% if IN1.8 -%} + { + "value" : "{{IN1.8.Value}}", + {% for in1_9 in IN1.9.Repeats -%} + {% if in1_9 -%} + {% assign namevalue = in1_9.1.Value -%} + {% unless in1_9.1 -%} + {% assign namevalue = in1_9.10.Value -%} + {% endunless -%} + {% endif -%} + {% capture namestring %}{{ namestring | append: namevalue | append: ":" }}{% endcapture -%} + {% endfor %} + "name" : "{{ namestring | split: ":" | join: "+"}}", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/coverage-class", + "code": "group", + "display": "Group" + } + ] + }, + }, + {% endif -%} + ], + "network" : "{{IN1.2.2.Value}}", + {% comment -%} + {% if REF_ORG -%} + "payor" : [ + { + "reference": "Organization/{{REF_ORG}}" + } + ], + {% endif -%} + {% if REF_ORG_11 -%} + "policyHolder": { + + "reference": "{{REF_ORG_11}}" + }, + {% endif -%} + {% endcomment -%} + "period": + { + "start":"{{ IN1.12.Value | format_as_date_time }}", + "end":"{{ IN1.13.Value | format_as_date_time }}" + }, + "type":{ + + {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/PlanType', CWE: IN1.15 -%} + }, + {% unless IN1.15 -%} + "type":{ + + {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/CoverageType', CWE: IN1.47 -%} + }, + {% endunless -%} + {% comment -%} + "subscriber" : { + {% if IN1.17.1.Value == "SEL" -%} + "reference": "{{REF_PATIENT}}" + {% else -%} + "reference": "RelatedPerson/{{REF_REL_PER}}" + {% endif -%} + }, + + "beneficiary": { + "reference": "{{REF_PATIENT}}" + }, + {% endcomment -%} + + "identifier": [ + {% if IN1.36 -%} + { + "value":"{{ IN1.36.Value }}", + "type": + { + "coding": + [ + { + "code":"PLN", + "display": "Policy Number", + "system":"http://example.com/CodeSystem/additional-identifier", + }, + ], + }, + "system":"http://www.examplehealthplan.com/fhir/policyidentifier", + }, + {% endif -%} + {% if IN2.6 -%} + { + "value":"{{ IN2.6.Value }}", + "type": + { + "coding": + [ + { + "code":"MC", + "display": "Patient's Medicare number", + "system":"http://terminology.hl7.org/CodeSystem/v2-0203", + }, + ], + }, + "system":"http://hl7.org/fhir/sid/us-medicare", + }, + {% endif -%} + {% if IN2.8 -%} + { + "value":"{{ IN2.8.Value }}", + "type": + { + "coding": + [ + { + "code":"MA", + "display": "Patient Medicaid number", + "system":"http://terminology.hl7.org/CodeSystem/v2-0203", + }, + ], + }, + "system":"http://example.com/v2-to-fhir-converter/identifier-medicaid", + }, + {% endif -%} + {% for in2_61 in IN2.61.Repeats -%} + { + {% include 'DataType/CX' CX: in2_61 -%} + }, + {% endfor -%} + {% for in1_49 in IN1.49.Repeats -%} + { + {% include 'DataType/CX' CX: in1_49 -%} + }, + {% endfor -%} + ], + "costToBeneficiary" : [ + { + "type" : { + "coding": + [ + { + {% include 'DataType/IDCoding' mapping: 'CodeSystem/PriceType', CD: IN1.37.2 -%} + }, + ], + }, + "valueMoney" : { + {% if IN1.37.1.1 -%} + "value" : {{IN1.37.1.1}}, + {% endif -%} + "currency" : "{{IN1.37.1.2}}" + }, + } + ], + "subscriberId" : "{{ IN1.49.1.Value }}", + "status" : "active", + {% if IN1.55.Value == "D" -%} + "status" : "entered-in-error", + {% endif -%} + "relationship" : { + {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/PatientRelationship', CWE: IN2.72 -%} + }, + }, + "request":{ + "method":"PUT", + "url":"Coverage/{{ ID }}", + }, +}, diff --git a/data/Templates/Hl7v2/Resource/_Device.liquid b/data/Templates/Hl7v2/Resource/_Device.liquid index 05d47847a..610c17857 100644 --- a/data/Templates/Hl7v2/Resource/_Device.liquid +++ b/data/Templates/Hl7v2/Resource/_Device.liquid @@ -13,11 +13,19 @@ Device_Parent_ID: A resource Id used to fill "parent.reference" property. "resource":{ "resourceType": "Device", "id":"{{ ID }}", + + {% if MSH.3 -%} + {% include 'DataType/HDDevice' HD: MSH.3 -%} + {% endif -%} + "identifier": [ + {% for ei_obx18 in EI_OBX18.Repeats -%} { - {% include 'DataType/EIIdentifier' EI: OBX.18.Repeats[0] -%} + {% include 'DataType/EIIdentifier' EI: ei_obx18 -%} }, + {% endfor -%} + { {% include 'DataType/EIIdentifier' EI: PRT.10 -%} }, @@ -30,15 +38,44 @@ Device_Parent_ID: A resource Id used to fill "parent.reference" property. {% comment -%} Placeholder provided for customization by users. If left empty, it will be removed in post-processing. {% endcomment -%} { }, + ], + + {% unless SFT.1.10 -%} + {% if SFT.1.1 -%} + "manufacturer": "{{SFT.1.1.Value}}", + {% endif -%} + {% endunless -%} + "deviceName": + [ + {% if SFT -%} + { + "name":"{{SFT.3.Value}}", + "type": "manufacturer-name", + } + {% endif -%} + ], + "version": + [ + { + "value":"{{SFT.2.Value}}", + } + ], + "modelNumber": "{{SFT.4.Value}}", + "note": [ + { + "text": "{{SFT.5.Value}}", + } ], "manufactureDate":"{{ PRT.17.Value | format_as_date_time }}", "expirationDate":"{{ PRT.18.Value | format_as_date_time }}", "lotNumber":"{{ PRT.19.Value }}", "serialNumber":"{{ PRT.20.Value }}", - {% comment -%} Placeholder provided for customization by users. If left empty, it will be removed in post-processing. {% endcomment -%} + + {% comment -%} Placeholder provided for customization by users. If left empty, it will be removed in post-processing. {% endcomment -%} "type": - { - }, + { + }, + "definition": { "reference":"{{ Device_Definition_ID }}", diff --git a/data/Templates/Hl7v2/Resource/_Encounter.liquid b/data/Templates/Hl7v2/Resource/_Encounter.liquid index 15048b639..9b837d92d 100644 --- a/data/Templates/Hl7v2/Resource/_Encounter.liquid +++ b/data/Templates/Hl7v2/Resource/_Encounter.liquid @@ -12,13 +12,51 @@ Practitioner_ID_PV1_17: A resource Id, used to fill "participant.individual.refe Practitioner_ID_PV1_52: A resource Id, used to fill "participant.individual.reference" property. The resource is of "Practitioner" type and generated based on "PV1.52" HL7 V2 identifier. {% endcomment -%} -{% evaluate Location_ID_PV1_3 using 'ID/Location' PL: PV1.3 -%} -{% evaluate Location_ID_PV1_6 using 'ID/Location' PL: PV1.6 -%} +{% evaluate Location_ID_PV1_3_1 using 'ID/Location' PL: PV1.3.1 -%} +{% evaluate Location_ID_PV1_3_2 using 'ID/Location' PL: PV1.3.2 -%} +{% evaluate Location_ID_PV1_3_3 using 'ID/Location' PL: PV1.3.3 -%} +{% evaluate Location_ID_PV1_3_4 using 'ID/Location' PL: PV1.3.4 -%} +{% evaluate Location_ID_PV1_3_7 using 'ID/Location' PL: PV1.3.7 -%} +{% evaluate Location_ID_PV1_3_8 using 'ID/Location' PL: PV1.3.8 -%} + +{% evaluate Location_ID_PV1_6_1 using 'ID/Location' PL: PV1.6.1 -%} +{% evaluate Location_ID_PV1_6_2 using 'ID/Location' PL: PV1.6.2 -%} +{% evaluate Location_ID_PV1_6_3 using 'ID/Location' PL: PV1.6.3 -%} +{% evaluate Location_ID_PV1_6_4 using 'ID/Location' PL: PV1.6.4 -%} +{% evaluate Location_ID_PV1_6_7 using 'ID/Location' PL: PV1.6.7 -%} +{% evaluate Location_ID_PV1_6_8 using 'ID/Location' PL: PV1.6.8 -%} + +{% evaluate Location_ID_PV1_42_1 using 'ID/Location' PL: PV1.42.1 -%} +{% evaluate Location_ID_PV1_42_2 using 'ID/Location' PL: PV1.42.2 -%} +{% evaluate Location_ID_PV1_42_3 using 'ID/Location' PL: PV1.42.3 -%} +{% evaluate Location_ID_PV1_42_4 using 'ID/Location' PL: PV1.42.4 -%} +{% evaluate Location_ID_PV1_42_7 using 'ID/Location' PL: PV1.42.7 -%} +{% evaluate Location_ID_PV1_42_8 using 'ID/Location' PL: PV1.42.8 -%} + +{% evaluate Location_ID_PV1_43_1 using 'ID/Location' PL: PV1.43.1 -%} +{% evaluate Location_ID_PV1_43_2 using 'ID/Location' PL: PV1.43.2 -%} +{% evaluate Location_ID_PV1_43_3 using 'ID/Location' PL: PV1.43.3 -%} +{% evaluate Location_ID_PV1_43_4 using 'ID/Location' PL: PV1.43.4 -%} +{% evaluate Location_ID_PV1_43_7 using 'ID/Location' PL: PV1.43.7 -%} +{% evaluate Location_ID_PV1_43_8 using 'ID/Location' PL: PV1.43.8 -%} + +{% evaluate Location_ID_PV2_1_1 using 'ID/Location' PL: PV2.1.1 -%} +{% evaluate Location_ID_PV2_1_2 using 'ID/Location' PL: PV2.1.2 -%} +{% evaluate Location_ID_PV2_1_3 using 'ID/Location' PL: PV2.1.3 -%} +{% evaluate Location_ID_PV2_1_4 using 'ID/Location' PL: PV2.1.4 -%} +{% evaluate Location_ID_PV2_1_7 using 'ID/Location' PL: PV2.1.7 -%} +{% evaluate Location_ID_PV2_1_8 using 'ID/Location' PL: PV2.1.8 -%} + +{% evaluate Location_ID_PV1_37 using 'ID/Location' DLD: PV1.37 -%} + {% evaluate Practitioner_ID_PV1_7 using 'ID/Practitioner' XCN: PV1.7 -%} {% evaluate Practitioner_ID_PV1_8 using 'ID/Practitioner' XCN: PV1.8 -%} {% evaluate Practitioner_ID_PV1_9 using 'ID/Practitioner' XCN: PV1.9 -%} {% evaluate Practitioner_ID_PV1_17 using 'ID/Practitioner' XCN: PV1.17 -%} {% evaluate Practitioner_ID_PV1_52 using 'ID/Practitioner' XCN: PV1.52 -%} +{% evaluate Practitioner_ID_PV2_13 using 'ID/Practitioner' XCN: PV2.13 -%} + +{% evaluate EpisodeOfCare_ID_PV1_54 using 'ID/EpisodeOfCare' PV1: PV1.54 -%} { "fullUrl":"urn:uuid:{{ ID }}", @@ -30,7 +68,7 @@ Practitioner_ID_PV1_52: A resource Id, used to fill "participant.individual.refe {% include 'DataType/CWECoding' mapping: 'CodeSystem/EncounterClass', CWE: PV1.2 -%} }, {% if PV1.45 == null -%} - "status":"unknown", + "status": "{{ PV1.2.Value | get_property: 'CodeSystem/EncounterStatus', 'code' }}", {% endif -%} {% if PV1.45 -%} "status":"finished", @@ -38,30 +76,334 @@ Practitioner_ID_PV1_52: A resource Id, used to fill "participant.individual.refe "location": [ { - {% if PV1.2.1.Value != "P" and Location_ID_PV1_3 -%} + {% if PV1.2.1.Value != "P" and Location_ID_PV1_3_1 -%} "status":"active", {% endif -%} - {% if PV1.2.1.Value == "P" and Location_ID_PV1_3 -%} + {% if PV1.2.1.Value == "P" and Location_ID_PV1_3_1 -%} "status":"planned", {% endif -%} "location": { - {% if PV1.3 and Location_ID_PV1_3 -%} - "reference":"Location/{{ Location_ID_PV1_3 }}", + {% if PV1.3.1 and Location_ID_PV1_3_1 -%} + "reference":"Location/{{ Location_ID_PV1_3_1 }}", {% endif -%} }, }, { - {% if PV1.6 and Location_ID_PV1_6 -%} - "status":"completed", + {% if PV1.2.1.Value != "P" and Location_ID_PV1_3_2 -%} + "status":"active", + {% endif -%} + {% if PV1.2.1.Value == "P" and Location_ID_PV1_3_2 -%} + "status":"planned", {% endif -%} "location": { - {% if PV1.6 and Location_ID_PV1_6 -%} - "reference":"Location/{{ Location_ID_PV1_6 }}", + {% if PV1.3.3 and Location_ID_PV1_3_2 -%} + "reference":"Location/{{ Location_ID_PV1_3_2 }}", {% endif -%} }, }, + { + {% if PV1.2.1.Value != "P" and Location_ID_PV1_3_3 -%} + "status":"active", + {% endif -%} + {% if PV1.2.1.Value == "P" and Location_ID_PV1_3_3 -%} + "status":"planned", + {% endif -%} + "location": + { + {% if PV1.3.3 and Location_ID_PV1_3_3 -%} + "reference":"Location/{{ Location_ID_PV1_3_3 }}", + {% endif -%} + }, + }, + { + {% if PV1.2.1.Value != "P" and Location_ID_PV1_3_4 -%} + "status":"active", + {% endif -%} + {% if PV1.2.1.Value == "P" and Location_ID_PV1_3_4 -%} + "status":"planned", + {% endif -%} + "location": + { + {% if PV1.3.3 and Location_ID_PV1_3_4 -%} + "reference":"Location/{{ Location_ID_PV1_3_4 }}", + {% endif -%} + }, + }, + { + {% if PV1.2.1.Value != "P" and Location_ID_PV1_3_7 -%} + "status":"active", + {% endif -%} + {% if PV1.2.1.Value == "P" and Location_ID_PV1_3_7 -%} + "status":"planned", + {% endif -%} + "location": + { + {% if PV1.3.3 and Location_ID_PV1_3_7 -%} + "reference":"Location/{{ Location_ID_PV1_3_7 }}", + {% endif -%} + }, + }, + { + {% if PV1.2.1.Value != "P" and Location_ID_PV1_3_8 -%} + "status":"active", + {% endif -%} + {% if PV1.2.1.Value == "P" and Location_ID_PV1_3_8 -%} + "status":"planned", + {% endif -%} + "location": + { + {% if PV1.3.3 and Location_ID_PV1_3_8 -%} + "reference":"Location/{{ Location_ID_PV1_3_8 }}", + {% endif -%} + }, + }, + + { + {% if PV1.6.1 and Location_ID_PV1_6_1 -%} + "status":"completed", + "location": + { + + "reference":"Location/{{ Location_ID_PV1_6_1 }}", + }, + {% include 'Extensions/TemporaryLocation' , status: 'false' -%} + {% endif -%} + }, + { + {% if PV1.6.2 and Location_ID_PV1_6_2 -%} + "status":"completed", + "location": + { + "reference":"Location/{{ Location_ID_PV1_6_2 }}", + }, + {% include 'Extensions/TemporaryLocation' , status: 'false' -%} + {% endif -%} + }, + { + {% if PV1.6.3 and Location_ID_PV1_6_3 -%} + "status":"completed", + "location": + { + "reference":"Location/{{ Location_ID_PV1_6_3 }}", + }, + {% include 'Extensions/TemporaryLocation' , status: 'false' -%} + {% endif -%} + }, + { + {% if PV1.6.4 and Location_ID_PV1_6_4 -%} + "status":"completed", + "location": + { + "reference":"Location/{{ Location_ID_PV1_6_4 }}", + }, + {% include 'Extensions/TemporaryLocation' , status: 'false' -%} + {% endif -%} + }, + { + {% if PV1.6.7 and Location_ID_PV1_6_7 -%} + "status":"completed", + "location": + { + "reference":"Location/{{ Location_ID_PV1_6_7 }}", + }, + {% include 'Extensions/TemporaryLocation' , status: 'false' -%} + {% endif -%} + }, + { + {% if PV1.6.8 and Location_ID_PV1_6_8 -%} + "status":"completed", + "location": + { + "reference":"Location/{{ Location_ID_PV1_6_8 }}", + }, + {% include 'Extensions/TemporaryLocation' , status: 'false' -%} + {% endif -%} + }, + + { + {% if PV1.42.1 and Location_ID_PV1_42_1 -%} + "status":"planned", + "location": + { + "reference":"Location/{{ Location_ID_PV1_42_1 }}", + }, + {% include 'Extensions/TemporaryLocation' , status: 'false' -%} + {% endif -%} + }, + { + {% if PV1.42.2 and Location_ID_PV1_42_2 -%} + "status":"planned", + "location": + { + "reference":"Location/{{ Location_ID_PV1_42_2 }}", + }, + {% include 'Extensions/TemporaryLocation' , status: 'false' -%} + {% endif -%} + }, + { + {% if PV1.42.3 and Location_ID_PV1_42_3 -%} + "status":"planned", + "location": + { + "reference":"Location/{{ Location_ID_PV1_42_3 }}", + }, + {% include 'Extensions/TemporaryLocation' , status: 'false' -%} + {% endif -%} + }, + { + {% if PV1.42.4 and Location_ID_PV1_42_4 -%} + "status":"planned", + "location": + { + "reference":"Location/{{ Location_ID_PV1_42_4 }}", + }, + {% include 'Extensions/TemporaryLocation' , status: 'false' -%} + {% endif -%} + }, + { + {% if PV1.42.7 and Location_ID_PV1_42_7 -%} + "status":"planned", + "location": + { + "reference":"Location/{{ Location_ID_PV1_42_7 }}", + }, + {% include 'Extensions/TemporaryLocation' , status: 'false' -%} + {% endif -%} + }, + { + {% if PV1.42.8 and Location_ID_PV1_42_8 -%} + "status":"planned", + "location": + { + "reference":"Location/{{ Location_ID_PV1_42_8 }}", + }, + {% include 'Extensions/TemporaryLocation' , status: 'false' -%} + {% endif -%} + }, + + { + {% if PV1.43.1 and Location_ID_PV1_43_1 -%} + "status":"completed", + "location": + { + "reference":"Location/{{ Location_ID_PV1_43_1 }}", + }, + {% include 'Extensions/TemporaryLocation' , status: 'true' -%} + {% endif -%} + }, + { + {% if PV1.43.2 and Location_ID_PV1_43_2 -%} + "status":"completed", + "location": + { + "reference":"Location/{{ Location_ID_PV1_43_2 }}", + }, + {% include 'Extensions/TemporaryLocation' , status: 'true' -%} + {% endif -%} + }, + { + {% if PV1.43.3 and Location_ID_PV1_43_3 -%} + "status":"completed", + "location": + { + "reference":"Location/{{ Location_ID_PV1_43_3 }}", + }, + {% include 'Extensions/TemporaryLocation' , status: 'true' -%} + {% endif -%} + }, + { + {% if PV1.43.4 and Location_ID_PV1_43_4 -%} + "status":"completed", + "location": + { + "reference":"Location/{{ Location_ID_PV1_43_4 }}", + }, + {% include 'Extensions/TemporaryLocation' , status: 'true' -%} + {% endif -%} + }, + { + {% if PV1.43.7 and Location_ID_PV1_43_7 -%} + "status":"completed", + "location": + { + "reference":"Location/{{ Location_ID_PV1_43_7 }}", + }, + {% include 'Extensions/TemporaryLocation' , status: 'true' -%} + {% endif -%} + }, + { + {% if PV1.43.8 and Location_ID_PV1_43_8 -%} + "status":"completed", + "location": + { + "reference":"Location/{{ Location_ID_PV1_43_8 }}", + }, + {% include 'Extensions/TemporaryLocation' , status: 'true' -%} + {% endif -%} + }, + + { + {% if PV2.1.1 and Location_ID_PV2_1_1 -%} + "status":"planned", + "location": + { + "reference":"Location/{{ Location_ID_PV2_1_1 }}", + }, + {% include 'Extensions/TemporaryLocation' , status: 'false' -%} + {% endif -%} + }, + { + {% if PV2.1.2 and Location_ID_PV2_1_2 -%} + "status":"planned", + "location": + { + "reference":"Location/{{ Location_ID_PV2_1_2 }}", + }, + {% include 'Extensions/TemporaryLocation' , status: 'false' -%} + {% endif -%} + }, + { + {% if PV2.1.3 and Location_ID_PV2_1_3 -%} + "status":"planned", + "location": + { + "reference":"Location/{{ Location_ID_PV2_1_3 }}", + }, + {% include 'Extensions/TemporaryLocation' , status: 'false' -%} + {% endif -%} + }, + { + {% if PV2.1.4 and Location_ID_PV2_1_4 -%} + "status":"planned", + "location": + { + "reference":"Location/{{ Location_ID_PV2_1_4 }}", + }, + {% include 'Extensions/TemporaryLocation' , status: 'false' -%} + {% endif -%} + }, + { + {% if PV2.1.7 and Location_ID_PV2_1_7 -%} + "status":"planned", + "location": + { + "reference":"Location/{{ Location_ID_PV2_1_7 }}", + }, + {% include 'Extensions/TemporaryLocation' , status: 'false' -%} + {% endif -%} + }, + { + {% if PV2.1.8 and Location_ID_PV2_1_8 -%} + "status":"planned", + "location": + { + "reference":"Location/{{ Location_ID_PV2_1_8 }}", + }, + {% include 'Extensions/TemporaryLocation' , status: 'false' -%} + {% endif -%} + } ], "type": [ @@ -104,6 +446,15 @@ Practitioner_ID_PV1_52: A resource Id, used to fill "participant.individual.refe "reference":"{{ Encounter_Hospitalization_Origin_ID }}", }, }, + + "episodeOfCare" : [ + { + {% if PV1.54 and EpisodeOfCare_ID_PV1_54 -%} + "reference":"EpisodeOfCare/{{EpisodeOfCare_ID_PV1_54}}", + {% endif -%} + }, + ], + "participant": [ { @@ -115,24 +466,11 @@ Practitioner_ID_PV1_52: A resource Id, used to fill "participant.individual.refe { {% if PV1.7 -%} "code":"ATND", - {% endif -%} - {% if PV2.13 -%} - "code":"REF", - {% endif -%} - {% if PV1.7 -%} "system":"http://terminology.hl7.org/CodeSystem/v3-ParticipationType", - {% endif -%} - {% if PV2.13 -%} - "system":"http://terminology.hl7.org/CodeSystem/v3-ParticipationType", - {% endif -%} - {% if PV1.7 -%} "display":"attender", {% endif -%} }, ], - {% if PV2.13 -%} - "text":"referrer", - {% endif -%} }, ], "individual": @@ -151,8 +489,6 @@ Practitioner_ID_PV1_52: A resource Id, used to fill "participant.individual.refe { {% if PV1.8 -%} "code":"REF", - {% endif -%} - {% if PV1.8 -%} "system":"http://terminology.hl7.org/CodeSystem/v3-ParticipationType", {% endif -%} }, @@ -178,8 +514,6 @@ Practitioner_ID_PV1_52: A resource Id, used to fill "participant.individual.refe { {% if PV1.9 -%} "code":"CON", - {% endif -%} - {% if PV1.9 -%} "system":"http://terminology.hl7.org/CodeSystem/v3-ParticipationType", {% endif -%} }, @@ -205,8 +539,6 @@ Practitioner_ID_PV1_52: A resource Id, used to fill "participant.individual.refe { {% if PV1.17 -%} "code":"ADM", - {% endif -%} - {% if PV1.17 -%} "system":"http://terminology.hl7.org/CodeSystem/v3-ParticipationType", {% endif -%} }, @@ -232,8 +564,6 @@ Practitioner_ID_PV1_52: A resource Id, used to fill "participant.individual.refe { {% if PV1.52 -%} "code":"PART", - {% endif -%} - {% if PV1.52 -%} "system":"http://terminology.hl7.org/CodeSystem/v3-ParticipationType", {% endif -%} }, @@ -250,6 +580,28 @@ Practitioner_ID_PV1_52: A resource Id, used to fill "participant.individual.refe {% endif -%} }, }, + { + "type": + [ + { {% if PV2.13 -%} + "coding": + [ + { + "code":"REF", + "system":"http://terminology.hl7.org/CodeSystem/v3-ParticipationType", + }, + ], + "text":"referrer", + {% endif -%} + }, + ], + "individual": + { + {% if PV2.13 and Practitioner_ID_PV2_13 -%} + "reference":"Practitioner/{{ Practitioner_ID_PV2_13 }}", + {% endif -%} + }, + }, ], "serviceType": { @@ -258,25 +610,29 @@ Practitioner_ID_PV1_52: A resource Id, used to fill "participant.individual.refe "identifier": [ { - {% include 'DataType/CX' CX: PV1.19 -%} + {% if PV1.19 -%} + {% include 'DataType/CX' CX: PV1.19 -%} "type": { "coding": [ { - {% if PV1.19 -%} + "code":"VN", "system":"http://terminology.hl7.org/CodeSystem/v2-0203", - {% endif -%} }, ], - {% if PV1.19 -%} "text":"visit number", - {% endif -%} }, + {% endif -%} }, - { - {% include 'DataType/CX' CX: PV1.50 -%} - }, + {% if PV1.50 -%} + {% for p in PV1.50.Repeats -%} + { + {% include 'DataType/CX' CX: p -%} + }, + {% endfor -%} + {% endif -%} + ], "period": { @@ -286,37 +642,62 @@ Practitioner_ID_PV1_52: A resource Id, used to fill "participant.individual.refe "reasonCode": [ { - {% include 'DataType/CWECodeableConcept' CWE: PV2.3 -%} + {% if PV2.3 -%} + {% include 'DataType/CWECodeableConcept' CWE: PV2.3 -%} + {% endif -%} }, ], "length": { - "value":"{{ PV2.11.Value }}", - {% if PV2.11 -%} - "unit":"d", - {% endif -%} {% if PV2.11 -%} - "system":"http://unitsofmeasure.org/", + "value":{{ PV2.11.Value }}, + "unit":"d", + "system":"http://unitsofmeasure.org/", {% endif -%} }, - "text": - { - "div":"{{ PV2.12.Value }}", + "meta":{ + "security":[{ + {% include 'DataType/IDCoding' mapping: 'CodeSystem/EncounterSecurity', ID: PV2.22 -%} + }, + ], + }, + {% if Root_Template -%} + {% assign generationInstant = "{{ "" | now }}" -%} + {% assign templateVersion = "TEMPLATE_VERSION_PLACEHOLDER" -%} + "text": { + "status":"generated", + "div": "

Visit Description: {{ PV2.12.Value }}

" }, + {% endif -%} "priority": { - {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/EncounterPriority', CWE: PV2.25 -%} + {% if PV2.25 -%} + {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/EncounterPriority', CWE: PV2.25 -%} + {% endif -%} }, "diagnosis": [ + {% if conditionId %} { - "use": - { - {% comment -%} Placeholder provided for customization by users. If left empty, it will be removed in post-processing. {% endcomment -%} - {% if DG1.6.Value == "admitting" -%} + "condition" : { + "reference":"Condition/{{ conditionId }}", + }, + "use" : { + {% if DG1.6 -%} + {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/DiagnosisType', CWE: DG1.6 -%} {% endif -%} }, + + {% assign temp = DG1.15.Value | sign %} + {% if DG1.15 and temp != -1 %} + {% assign splitResult = DG1.15.Value | split: '.' %} + {% assign splitResultSize = splitResult | size %} + {% if splitResultSize == 1 %} + "rank": {{ DG1.15.Value }}, + {% endif %} + {% endif %} }, + {% endif %} ], }, "request":{ diff --git a/data/Templates/Hl7v2/Resource/_EpisodeOfCare.liquid b/data/Templates/Hl7v2/Resource/_EpisodeOfCare.liquid index eab494b43..585a4cd38 100644 --- a/data/Templates/Hl7v2/Resource/_EpisodeOfCare.liquid +++ b/data/Templates/Hl7v2/Resource/_EpisodeOfCare.liquid @@ -3,12 +3,46 @@ "resource":{ "resourceType": "EpisodeOfCare", "id":"{{ ID }}", + {% if PV1.45 == null -%} + "status": "{{ PV1.2.Value | get_property: 'CodeSystem/EncounterStatus', 'code' }}", + {% endif -%} + {% if PV1.45 -%} + "status":"finished", + {% endif -%} "identifier": [ { - "value":"{{ PV1.54.Value }}", + {% include 'DataType/CX' CX: PV1.54 -%} }, ], + "diagnosis": + [ + {% if conditionId %} + { + "condition" : { + "reference":"Condition/{{ conditionId }}", + }, + "role" : { + {% if DG1.6 -%} + {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/DiagnosisType', CWE: DG1.6 -%} + {% endif -%} + }, + + {% assign temp = DG1.15.Value | sign %} + {% if DG1.15 and temp != -1 %} + {% assign splitResult = DG1.15.Value | split: '.' %} + {% assign splitResultSize = splitResult | size %} + {% if splitResultSize == 1 %} + "rank": {{ DG1.15.Value }}, + {% endif %} + {% endif %} + }, + {% endif %} + ], + "patient" : { + "reference":"{{ patientRefrenceID }}", + }, + }, "request":{ "method":"PUT", diff --git a/data/Templates/Hl7v2/Resource/_Location.liquid b/data/Templates/Hl7v2/Resource/_Location.liquid index b90649b65..bb0a00b56 100644 --- a/data/Templates/Hl7v2/Resource/_Location.liquid +++ b/data/Templates/Hl7v2/Resource/_Location.liquid @@ -4,11 +4,11 @@ "resourceType": "Location", "id":"{{ ID }}", {% include 'DataType/PL' PL: ROL.13 -%} - {% include 'DataType/PL' PL: PV1.3 -%} - {% include 'DataType/PL' PL: PV1.6 -%} {% include 'DataType/PL' PL: PL -%} + {% include 'DataType/HDLocation' HD: EVN -%} {% include 'DataType/PL' PL: PR1.23.Repeats[0] -%} {% include 'DataType/PL' PL: PRT.9.Repeats[0] -%} + {% include 'DataType/DLDLocation' DLD: PV1 -%} {% include 'DataType/XONLocation' XON: ORC.21.Repeats[0] -%} "address": { diff --git a/data/Templates/Hl7v2/Resource/_MessageHeader.liquid b/data/Templates/Hl7v2/Resource/_MessageHeader.liquid index f9bb7e4e4..8f31e6c8a 100644 --- a/data/Templates/Hl7v2/Resource/_MessageHeader.liquid +++ b/data/Templates/Hl7v2/Resource/_MessageHeader.liquid @@ -10,23 +10,45 @@ MessageHeader_Author_ID: A resource Id, used to fill "author.reference" property MessageHeader_Response_Details_ID: A resource Id, used to fill "response.details.reference" property. {% endcomment -%} +{% evaluate Organization_ID_MSH_4 using 'ID/Organization' HD: MSH.4 -%} +{% evaluate Organization_ID_MSH_6 using 'ID/Organization' HD: MSH.6 -%} +{% evaluate Organization_ID_MSH_22 using 'ID/Organization' XON: MSH.22 -%} +{% evaluate Organization_ID_MSH_23 using 'ID/Organization' XON: MSH.23 -%} + { "fullUrl":"urn:uuid:{{ ID }}", - "resource":{ + "resource": { "resourceType": "MessageHeader", "id":"{{ ID }}", "source": { - "name":"{{ MSH.3.1.Value }}", - "endpoint":"{{ MSH.24.Value }}", + {% unless MSH.24 -%} + {% if MSH.3 -%} + {% include 'DataType/HDMessageHeader_source' HD: MSH.3 -%} + {% endif -%} + {% endunless -%} + {% if MSH.24 -%} + {% include 'DataType/HDMessageHeader_source' HD: MSH.24 -%} + {% endif -%} "version":"{{ SFT.2.Value }}", "software":"{{ SFT.3.Value }}", }, "destination": [ - { - {% include 'DataType/HDMSH_5' HD: MSH.5 -%} - "endpoint":"{{ MSH.25.Value }}", + { + {% if MSH.25 -%} + {% include 'DataType/HDMessageHeader_destination' HD: MSH.25 -%} + {% endif -%} + {% unless MSH.25 -%} + {% if MSH.5 -%} + {% include 'DataType/HDMessageHeader_destination' HD: MSH.5 -%} + {% elsif MSH.6 %} + "_endpoint": + { + {% include 'Extensions/DataAbsentReason' -%}, + }, + {% endif -%} + {% endunless -%} "receiver": { {% if MSH.6 and Organization_ID_MSH_6 -%} @@ -34,26 +56,29 @@ MessageHeader_Response_Details_ID: A resource Id, used to fill "response.details {% endif -%} {% if MSH.23 and Organization_ID_MSH_23 -%} "reference":"Organization/{{ Organization_ID_MSH_23 }}", - {% endif -%} + {% endif -%} }, - }, + }, ], "meta": { {% comment -%} Placeholder provided for customization by users. If left empty, it will be removed in post-processing. {% endcomment -%} "security": [ + {% include 'DataType/STCoding' ST: MSH.8 -%}, ], "tag": [ {% include 'DataType/PT' PT: MSH.11 -%}, - ], + ], }, "eventCoding": { {% include 'DataType/MSG' MSG: MSH.9 -%} }, - "language":"{{ MSH.19.Value | get_property: 'CodeSystem/Language', 'code' }}", + {% if MSH.19.Value -%} + "language": {% include 'DataType/CWECode' mapping: 'CodeSystem/Language', CWE: MSH.19 -%}, + {% endif -%} "sender": { {% if MSH.4 and Organization_ID_MSH_4 -%} diff --git a/data/Templates/Hl7v2/Resource/_Observation.liquid b/data/Templates/Hl7v2/Resource/_Observation.liquid index 2c9568b4b..08dca6a2c 100644 --- a/data/Templates/Hl7v2/Resource/_Observation.liquid +++ b/data/Templates/Hl7v2/Resource/_Observation.liquid @@ -1,6 +1,7 @@ {% comment -%} The following reference IDs are accepted by this template. +Practitioner_ID_NTE_5: A resource Id, used to fill "note.reference" property. The resource is of "Practitioner" type and generated based on "NTE.5" HL7 V2 identifier. Practitioner_ID_OBX_16: A resource Id, used to fill "performer.reference" property. The resource is of "Practitioner" type and generated based on "OBX.16" HL7 V2 identifier. Organization_ID_OBX_23: A resource Id, used to fill "performer.reference" property. The resource is of "Organization" type and generated based on "OBX.23" HL7 V2 identifier. PractitionerRole_ID_OBX_25: A resource Id, used to fill "performer.reference" property. The resource is of "PractitionerRole" type and generated based on "OBX.25" HL7 V2 identifier. @@ -9,98 +10,19 @@ Observation_Encounter_ID: A resource Id, used to fill "encounter.reference" prop Observation_Specimen_ID: A resource Id, used to fill "specimen.reference" property. {% endcomment -%} -{% evaluate Practitioner_ID_OBX_16 using 'ID/Practitioner' XCN: OBX.16 -%} +{% evaluate Practitioner_ID_NTE_5 using 'ID/Practitioner' XCN: NTE.5 -%} +{% evaluate Device_ID_OBX_18 using 'ID/Device' EI: OBX.18.Repeats[0] -%} {% evaluate Organization_ID_OBX_23 using 'ID/Organization' XON: OBX.23 -%} {% evaluate PractitionerRole_ID_OBX_25 using 'ID/PractitionerRole' XCN: OBX.25 -%} +{% assign VALUE_STRING_SN = {{OBX.5.1.Value}} | append: " " | append: {{OBX.5.2.Value}} | append: " " | append: {{OBX.5.3.Value}} | append: " " | append: {{OBX.5.4.Value}} -%} +{% assign VALUE_STRING_VR = {{OBX.5.1.Value}} | append: "-" | append: {{OBX.5.2.Value}} -%} + { "fullUrl":"urn:uuid:{{ ID }}", "resource":{ "resourceType": "Observation", "id":"{{ ID }}", - "code": - { - {% include 'DataType/CWECodeableConcept' CWE: OBX.3 -%} - }, - "valueQuantity": - { - {% if OBX.2.Value == "NM" -%} - "value":"{{ OBX.5.Value }}", - {% endif -%} - {% comment -%} Placeholder provided for customization by users. If left empty, it will be removed in post-processing. {% endcomment -%} - {% if OBX.2.Value == "SN" -%} - {% endif -%} - {% if OBX.2.Value == "SN" -%} - {% include 'DataType/CWEQuantity' CWE: OBX.6 -%} - {% endif -%} - {% if OBX.2.Value == "NA" or OBX.2.Value == "NM" -%} - {% include 'DataType/CWEQuantity' CWE: OBX.6 -%} - {% endif -%} - }, - {% if OBX.2.Value == "ST" or OBX.2.Value == "FT" or OBX.2.Value == "TX" -%} - "valueString":"{{ OBX.5.Value }}", - {% endif -%} - {% if OBX.2.Value == "VR" -%} - "valueString":"{{ OBX.5.1 }}-{{ OBX.5.2 }}", - {% endif -%} - {% if OBX.2.Value == "SN" -%} - "valueString":"{{ OBX.5.1 }} {{ OBX.5.2 }} {{ OBX.5.3 }}", - {% endif -%} - "valueCodeableConcept": - { - {% if OBX.2.Value == "CF" or OBX.2.Value == "CNE" or OBX.2.Value == "CWE" or OBX.2.Value == "CE" -%} - {% include 'DataType/CWECodeableConcept' CWE: OBX.5 -%} - {% endif -%} - {% comment -%} Placeholder provided for customization by users. If left empty, it will be removed in post-processing. {% endcomment -%} - {% if OBX.2.Value == "IS" -%} - {% endif -%} - }, - "valuePeriod": - { - {% if OBX.2.Value == "DR" -%} - {% include 'DataType/DR' DR: OBX.5 -%} - {% endif -%} - }, - {% if OBX.2.Value == "DTM" or OBX.2.Value == "DT" -%} - "valueDateTime":"{{ OBX.5.Value | format_as_date_time }}", - {% endif -%} - {% if OBX.2.Value == "TM" -%} - "valueTime":"{{ OBX.5.Value }}", - {% endif -%} - "valueRatio": - { - {% if OBX.2.Value == "SN" -%}{% if OBX.5.3.Value == ":" or OBX.5.3.Value == "/" -%} - {% include 'DataType/SNRatio' SN: OBX.5 -%} - {% endif -%}{% endif -%} - "numerator": - { - {% if OBX.2.Value == "SN" -%}{% if OBX.5.3.Value == ":" or OBX.5.3.Value == "/" -%} - {% include 'DataType/CWEQuantity' CWE: OBX.6 -%} - {% endif -%}{% endif -%} - }, - "denominator": - { - {% if OBX.2.Value == "SN" -%}{% if OBX.5.3.Value == ":" or OBX.5.3.Value == "/" -%} - {% include 'DataType/CWEQuantity' CWE: OBX.6 -%} - {% endif -%}{% endif -%} - }, - }, - "interpretation": - [ - { - {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/InterpretationCode', CWE: OBX.8 -%} - }, - ], - "status":"{{ OBX.11.Value | get_property: 'CodeSystem/ObservationStatus', 'code' }}", - "effectiveDateTime":"{{ OBX.14.Value | format_as_date_time }}", - {% comment -%} Placeholder provided for customization by users. If left empty, it will be removed in post-processing. {% endcomment -%} - "method": - { - }, - "bodySite": - { - {% include 'DataType/CWECodeableConcept' CWE: OBX.20 -%} - }, "identifier": [ { @@ -120,108 +42,333 @@ Observation_Specimen_ID: A resource Id, used to fill "specimen.reference" proper }, }, ], - "performer": - [ - { - {% if OBX.16 and Practitioner_ID_OBX_16 -%} - "reference":"Practitioner/{{ Practitioner_ID_OBX_16 }}", - {% endif -%} + + "status": "{{ OBX.11.1.Value | get_property: 'CodeSystem/ObservationStatus', 'code' }}", + "code": + { + {% include 'DataType/CWECodeableConcept' CWE: OBX.3 -%} + }, + + {% if OBX.11.1.Value == 'X' or OBX.11.1.Value == 'N' %} + "dataAbsentReason" : { + "coding" : [ + {% if OBX.11.1.Value == 'X' %} + { + "code" : "not-performed", + "system": "http://terminology.hl7.org/CodeSystem/data-absent-reason", + }, + {% endif %} + {% if OBX.11.1.Value == 'N' %} + { + "code" : "not-asked", + "system": "http://terminology.hl7.org/CodeSystem/data-absent-reason", + } + {% endif %} + ], }, + {% else -%} + + {% assign obx5_rep = OBX.5.Repeats | size %} + {% if obx5_rep == 1 %} + "valueQuantity": { - {% if OBX.23 and Organization_ID_OBX_23 -%} - "reference":"Organization/{{ Organization_ID_OBX_23 }}", + {% if OBX.2.Value == "NM" -%} + "value":{{ OBX.5.Value }}, {% endif -%} - }, - { - {% if OBX.25 and PractitionerRole_ID_OBX_25 -%} - "reference":"PractitionerRole/{{ PractitionerRole_ID_OBX_25 }}", + {% if OBX.2.Value == "SN" -%} + {% if OBX.5.3.Value != ':' and OBX.5.3.Value != '/' and OBX.5.3.Value != '+' and OBX.5.3.Value != '-' -%} + {% include 'DataType/SNQuantity' SN: OBX.5 -%} + {% include 'DataType/CWEQuantity' CWE: OBX.6 -%} + {% endif -%} + {% endif -%} + {% if OBX.2.Value == "NA" or OBX.2.Value == "NM" -%} + {% include 'DataType/CWEQuantity' CWE: OBX.6 -%} {% endif -%} }, - ], - "component": - [ + {% if OBX.2.Value == "ED" and OBX.5.2.Value == "text" and OBX.5.4.Value == "A" -%} + "valueString": "{{ OBX.5.1.Value}} {{ OBX.5.2.Value}} {{ OBX.5.3.Value}} {{ OBX.5.4.Value}}", + {% endif %} + {% if OBX.2.Value == "ST" or OBX.2.Value == "FT" or OBX.2.Value == "TX" -%} + "valueString":"{{ OBX.5.Value }}", + {% endif -%} + {% if OBX.2.Value == "VR" -%} + "valueString": "{{VALUE_STRING_VR}}", + {% endif -%} + {% if OBX.2.Value == "SN" and OBX.5.3.Value == "+" -%} + "valueString":"{{VALUE_STRING_SN}}", + {% endif -%} + "valueCodeableConcept": { - "code": - { - {% include 'DataType/CWECodeableConcept' CWE: OBX.3 -%} - }, - "valueQuantity": - { - {% if OBX.2.Value == "NM" -%} - "value":"{{ OBX.5.Value }}", - {% endif -%} - {% comment -%} Placeholder provided for customization by users. If left empty, it will be removed in post-processing. {% endcomment -%} - {% if OBX.2.Value == "SN" -%} - {% endif -%} - {% if OBX.2.Value == "SN" -%} - {% include 'DataType/CWEQuantity' CWE: OBX.6 -%} - {% endif -%} - {% if OBX.2.Value == "NA" or OBX.2.Value == "NM" -%} - {% include 'DataType/CWEQuantity' CWE: OBX.6 -%} - {% endif -%} - }, - {% if OBX.2.Value == "ST" or OBX.2.Value == "FT" or OBX.2.Value == "TX" -%} - "valueString":"{{ OBX.5.Value }}", + {% if OBX.2.Value == "CWE" -%} + {% include 'DataType/CWECodeableConcept' CWE: OBX.5 -%} + {% endif -%} + {% if OBX.2.Value == "IS" -%} + {% include 'DataType/ISCodeableConcept' IS: OBX.5 -%} {% endif -%} - {% if OBX.2.Value == "VR" -%} - "valueString":"{{ OBX.5.1 }}-{{ OBX.5.2}}", + {% if OBX.2.Value == "CE" -%} + {% include 'DataType/CECodeableConcept' CE: OBX.5 -%} {% endif -%} - {% if OBX.2.Value == "SN" -%} - "valueString":"{{ OBX.5.1 }} {{ OBX.5.2 }} {{ OBX.5.3 }}", + {% if OBX.2.Value == "CNE" -%} + {% include 'DataType/CNECodeableConcept' CNE: OBX.5 -%} {% endif -%} - "valueCodeableConcept": - { - {% comment -%} Placeholder provided for customization by users. If left empty, it will be removed in post-processing. {% endcomment -%} - {% if OBX.2.Value == "CF" or OBX.2.Value == "CNE" or OBX.2.Value == "CWE" or OBX.2.Value == "CE" -%} - {% endif -%} - {% comment -%} Placeholder provided for customization by users. If left empty, it will be removed in post-processing. {% endcomment -%} - {% if OBX.2.Value == "IS" -%} - {% endif -%} - }, - "valuePeriod": - { - {% if OBX.2.Value == "DR" -%} - {% include 'DataType/DR' DR: OBX.5 -%} - {% endif -%} - }, - {% if OBX.2.Value == "DTM" or OBX.2.Value == "DT" -%} - "valueDateTime":"{{ OBX.5.Value | format_as_date_time }}", + {% if OBX.2.Value == "CF" -%} + {% include 'DataType/CFCodeableConcept' CF: OBX.5 -%} {% endif -%} - {% if OBX.2.Value == "TM" -%} - "valueTime":"{{ OBX.5.Value }}", + {% if PID.10 -%} + {% include 'DataType/CWECodeableConcept' CWE: PID.10 -%} {% endif -%} - "valueRatio": - { - {% if OBX.2.Value == "SN" -%}{% if OBX.5.3.Value == ":" or OBX.5.3.Value == "/" -%} - {% include 'DataType/SNRatio' SN: OBX.5 -%} - {% endif -%}{% endif -%} + {% if PID.22 -%} + {% include 'DataType/CWECodeableConcept' CWE: PID.22 -%} + {% endif -%} + }, + "valueRange": + { + {% if OBX.2.Value == "NR" -%} + {% include 'DataType/NRRange' NR: OBX.5 -%} + {% endif -%} + {% if OBX.2.Value == "SN" and OBX.5.3.Value == "-" -%} + "low": + { + {% if OBX.5.2 -%} + "value": {{ OBX.5.2.Value }}, + {% endif -%} + {% include 'DataType/CWEQuantity' CWE: OBX.6 -%} + }, + "high": + { + {% if OBX.5.4 -%} + "value": {{ OBX.5.4.Value }}, + {% endif -%} + {% include 'DataType/CWEQuantity' CWE: OBX.6 -%} + }, + {% endif -%} + }, + {% if OBX.2.Value == "DTM" or OBX.2.Value == "DT" -%} + "valueDateTime":"{{ OBX.5.Value | format_as_date_time }}", + {% endif -%} + {% if OBX.2.Value == "TM" -%} + "valueTime":"{{ OBX.5.Value }}", + {% endif -%} + "valuePeriod": + { + {% if OBX.2.Value == "DR" -%} + {% include 'DataType/DRPeriod' DR: OBX.5 -%} + {% endif -%} + }, + "valueRatio": + { + {% if OBX.2.Value == "SN" and OBX.5.3.Value == ":" or OBX.5.3.Value == "/" -%} "numerator": { - {% if OBX.2.Value == "SN" -%}{% if OBX.5.3.Value == ":" or OBX.5.3.Value == "/" -%} - {% include 'DataType/CWEQuantity' CWE: OBX.6 -%} - {% endif -%}{% endif -%} + {% if OBX.5.2 -%} + "value": {{ OBX.5.2.Value }}, + {% endif -%} + {% include 'DataType/CWEQuantity' CWE: OBX.6 -%} }, "denominator": { - {% if OBX.2.Value == "SN" -%}{% if OBX.5.3.Value == ":" or OBX.5.3.Value == "/" -%} - {% include 'DataType/CWEQuantity' CWE: OBX.6 -%} - {% endif -%}{% endif -%} + {% if OBX.5.4 -%} + "value": {{ OBX.5.4.Value }}, + {% endif -%} + {% include 'DataType/CWEQuantity' CWE: OBX.6 -%} }, + {% endif -%} + }, + "referenceRange": + [ + { + "text":"{{ OBX.7.Value }}", }, - "referenceRange": + ], + + {% elsif obx5_rep > 1 -%} + + "component": [ + {% for obx5Segment in OBX.5.Repeats -%} { - "text":"{{ OBX.7.Value }}", - }, - ], - "interpretation": - [ - { - {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/InterpretationCode', CWE: OBX.8 -%} + "code": + { + {% include 'DataType/CWECodeableConcept' CWE: OBX.3 -%} + }, + "valueQuantity": + { + {% if OBX.2.Value == "NM" -%} + "value": {{ obx5Segment.Value }}, + {% endif -%} + {% if OBX.2.Value == "SN" -%} + {% if obx5Segment.3.Value != ':' and obx5Segment.3.Value != '/' and obx5Segment.3.Value != '+' and obx5Segment.3.Value != '-' -%} + {% include 'DataType/SNQuantity' SN: obx5Segment -%} + {% include 'DataType/CWEQuantity' CWE: OBX.6 -%} + {% endif -%} + {% endif -%} + {% if OBX.2.Value == "NA" or OBX.2.Value == "NM" -%} + {% include 'DataType/CWEQuantity' CWE: OBX.6 -%} + {% endif -%} + }, + {% if OBX.2.Value == "ED" and obx5Segment.2.Value == "text" and obx5Segment.4.Value == "A" -%} + "valueString": "{{obx5Segment.1.Value}} {{obx5Segment.2.Value}} {{obx5Segment.3.Value}} {{obx5Segment.4.Value}}", + {% endif %} + {% if OBX.2.Value == "ST" or OBX.2.Value == "FT" or OBX.2.Value == "TX" -%} + "valueString":"{{obx5Segment.Value }}", + {% endif -%} + {% if OBX.2.Value == "VR" -%} + "valueString": "{{obx5Segment.1.Value}}-{{obx5Segment.2.Value}}", + {% endif -%} + {% if OBX.2.Value == "SN" and obx5Segment.3.Value == "+" -%} + "valueString": "{{obx5Segment.1.Value}} {{obx5Segment.2.Value}} {{obx5Segment.3.Value}} {{obx5Segment.4.Value}}", + {% endif -%} + "valueCodeableConcept": + { + {% if OBX.2.Value == "CWE" -%} + {% include 'DataType/CWECodeableConcept' CWE: obx5Segment -%} + {% endif -%} + {% if OBX.2.Value == "IS" -%} + {% include 'DataType/ISCodeableConcept' IS: obx5Segment -%} + {% endif -%} + {% if OBX.2.Value == "CE" -%} + {% include 'DataType/CECodeableConcept' CE: obx5Segment -%} + {% endif -%} + {% if OBX.2.Value == "CNE" -%} + {% include 'DataType/CNECodeableConcept' CNE: obx5Segment -%} + {% endif -%} + {% if OBX.2.Value == "CF" -%} + {% include 'DataType/CFCodeableConcept' CF: obx5Segment -%} + {% endif -%} + {% if PID.10 -%} + {% include 'DataType/CWECodeableConcept' CWE: PID.10 -%} + {% endif -%} + {% if PID.22 -%} + {% include 'DataType/CWECodeableConcept' CWE: PID.22 -%} + {% endif -%} + }, + "valueRange": + { + {% if OBX.2.Value == "NR" -%} + {% include 'DataType/NRRange' NR: obx5Segment -%} + {% endif -%} + {% if OBX.2.Value == "SN" and obx5Segment.3.Value == "-" -%} + "low": + { + {% if obx5Segment.2 -%} + "value": {{ obx5Segment.2.Value }}, + {% endif -%} + {% include 'DataType/CWEQuantity' CWE: OBX.6 -%} + }, + "high": + { + {% if obx5Segment.4 -%} + "value": {{ obx5Segment.4.Value }}, + {% endif -%} + {% include 'DataType/CWEQuantity' CWE: OBX.6 -%} + }, + {% endif -%} + }, + {% if OBX.2.Value == "DTM" or OBX.2.Value == "DT" -%} + "valueDateTime":"{{ obx5Segment.Value | format_as_date_time }}", + {% endif -%} + {% if OBX.2.Value == "TM" -%} + "valueTime":"{{ obx5Segment.Value }}", + {% endif -%} + "valuePeriod": + { + {% if OBX.2.Value == "DR" -%} + {% include 'DataType/DRPeriod' DR: obx5Segment -%} + {% endif -%} + }, + "valueRatio": + { + {% if OBX.2.Value == "NR" -%} + {% include 'DataType/NRRange' NR: obx5Segment -%} + {% endif -%} + {% if OBX.2.Value == "SN" and obx5Segment.3.Value == ":" or obx5Segment.3.Value == "/" -%} + "numerator": + { + {% if obx5Segment.2 -%} + "value": {{ obx5Segment.2.Value }}, + {% endif -%} + {% include 'DataType/CWEQuantity' CWE: OBX.6 -%} + }, + "denominator": + { + {% if obx5Segment.4 -%} + "value": {{ obx5Segment.4.Value }}, + {% endif -%} + {% include 'DataType/CWEQuantity' CWE: OBX.6 -%} + }, + {% endif -%} + }, + "referenceRange": + [ + { + "text":"{{ OBX.7.Value }}", + }, + ], }, - ], + {% endfor -%} + ], + {% endif %} + {% endif %} + + "effectiveDateTime":"{{ OBX.14.Value | format_as_date_time }}", + "method": + { + {% include 'DataType/CWECodeableConcept' CWE: OBX.17 -%} + }, + "device": + { + {% if OBX.18 and Device_ID_OBX_18 -%} + "reference":"Device/{{ Device_ID_OBX_18 }}", + {% endif -%} + }, + "note": [ + { + "text": "{{NTE.3.Value}}", + "time": "{{ NTE.6.Value | format_as_date_time }}", + "authorReference": + { + {% if NTE.5 and Practitioner_ID_NTE_5 -%} + "reference":"Practitioner/{{ Practitioner_ID_NTE_5 }}", + {% endif -%} + } + } + ], + "bodySite": + { + {% include 'DataType/CWECodeableConcept' CWE: OBX.20 -%} + }, + + "performer": + [ + {% for obx_Segment_16 in OBX.16.Repeats %} + { + {% evaluate PractitionerRole_ID_OBX_16 using 'ID/PractitionerRole' XCN: obx_Segment_16 -%} + {% if obx_Segment_16 and PractitionerRole_ID_OBX_16 -%} + "reference":"PractitionerRole/{{ PractitionerRole_ID_OBX_16 }}", + {% endif -%} + }, + {% endfor %} + { + {% if OBX.25 == null and OBX.23 and Organization_ID_OBX_23 -%} + "reference":"Organization/{{ Organization_ID_OBX_23 }}", + {% endif -%} + {% if OBX.23 and OBX.25 and PractitionerRole_ID_OBX_25 -%} + "reference":"PractitionerRole/{{ PractitionerRole_ID_OBX_25 }}", + {% endif -%} }, ], + "interpretation": + [ + {% for obx_8 in OBX.8.Repeats %} + { + {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/InterpretationCode', CWE: obx_8 -%} + }, + {% endfor %} + ], + + + + {%- comment -%} "subject": { "reference":"{{ Observation_Subject_ID }}", @@ -229,11 +376,12 @@ Observation_Specimen_ID: A resource Id, used to fill "specimen.reference" proper "encounter": { "reference":"{{ Observation_Encounter_ID }}", - }, + }, "specimen": { "reference":"{{ Observation_Specimen_ID }}", }, + {%- endcomment -%} }, "request":{ "method":"PUT", diff --git a/data/Templates/Hl7v2/Resource/_Organization.liquid b/data/Templates/Hl7v2/Resource/_Organization.liquid index 6028883ff..a888197bc 100644 --- a/data/Templates/Hl7v2/Resource/_Organization.liquid +++ b/data/Templates/Hl7v2/Resource/_Organization.liquid @@ -1,32 +1,184 @@ +{% assign namestring = "" -%} +{% evaluate organization_ID_MSH_22 using 'ID/Organization' XON: MSH.22 -%} +{% evaluate organization_ID_MSH_23 using 'ID/Organization' XON: MSH.23 -%} { "fullUrl":"urn:uuid:{{ ID }}", "resource":{ "resourceType": "Organization", "id":"{{ ID }}", - {% include 'DataType/HDOrganization' HD: MSH.4 -%} - {% include 'DataType/HDMSH_6' HD: MSH.6 -%} + + {% if MSHHD1 -%} + {% include 'DataType/HDOrganization' HD: MSHHD1 -%} + {% endif -%} + + {% if MSHHD2 -%} + {% include 'DataType/HDOrganization' HD: MSHHD2 -%} + {% endif -%} + + {% if MSHXON1 -%} + {% include 'DataType/XONOrganization' XON: MSHXON1 -%} + {% endif -%} + + {% if MSHXON2 -%} + {% include 'DataType/XONOrganization' XON: MSHXON2 -%} + {% endif -%} + + {% if OBX_23 -%} + {% include 'DataType/XONOrganization' XON: OBX_23 -%} + {% endif -%} + + {% if PID -%} + {% include 'DataType/HDOrganization_InternalValue' HD: PID.4 -%} + {% endif -%} + + {% if IN1_49 -%} + {% include 'DataType/HDOrganization_InternalValue' HD: IN1_49.4 -%} + {% endif -%} + + {% if IN1_3 -%} + {% include 'DataType/HDOrganization_InternalValue' HD: IN1_3.4 -%} + {% endif -%} + + {% if IN1_10 -%} + {% include 'DataType/HDOrganization_InternalValue' HD: IN1_10.4 -%} + {% endif -%} + + {% if IN2_1 -%} + {% include 'DataType/HDOrganization_InternalValue' HD: IN2_1.4 -%} + {% endif -%} + + {% if IN2_61 -%} + {% include 'DataType/HDOrganization_InternalValue' HD: IN2_61.4 -%} + {% endif -%} + + {% if PV1 -%} + {% include 'DataType/HDOrganization_InternalValue' HD: PV1 -%} + {% endif -%} + + {% if PV2 -%} + {% include 'DataType/HDOrganization_InternalValue' HD: PV2 -%} + {% endif -%} + + {% if EVN -%} + {% include 'DataType/HDOrganization_InternalValue' HD: EVN -%} + {% endif -%} + + {% if IAM -%} + {% include 'DataType/HDOrganization_InternalValue' HD: IAM -%} + {% endif -%} + + {% if PD1_4 -%} + {% include 'DataType/HDOrganization_InternalValue' HD: PD1_4 -%} + {% endif -%} + + {% if NK1_12 -%} + {% include 'DataType/HDOrganization_InternalValue' HD: NK1_12.4 -%} + {% endif -%} + + {% if NK1_33 -%} + {% include 'DataType/HDOrganization_InternalValue' HD: NK1_33.4 -%} + {% endif -%} + + {% include 'DataType/XONOrganization' XON: ROL.14 -%} + {% if PD1.3 -%} + {% include 'DataType/XONOrganization' XON: PD1.3.Repeats[0] -%} + {% endif -%} + {% if NK1.13 -%} + {% include 'DataType/XONOrganization' XON: NK1.13.Repeats[0] -%} + {% endif -%} + {% include 'DataType/XONOrganization' XON: PRT.8.Repeats[0] -%} + + {% if RF1 -%} + {% include 'DataType/XONOrganization' XON: RF1 -%} + {% endif -%} + + {% if RF1_20 -%} + {% include 'DataType/HDOrganization_InternalValue' HD: RF1_20 -%} + {% endif -%} + + {% if DB1 -%} + {% include 'DataType/HDOrganization_InternalValue' HD: DB1 -%} + {% endif -%} + + {% if GT1.21 -%} + {% include 'DataType/XONOrganization' XON: GT1.21.Repeats[0] -%} + {% endif -%} + + {% if PR1 -%} + {% include 'DataType/HDOrganization_InternalValue' HD: PR1 -%} + {% endif -%} + + {% if DG1 -%} + {% include 'DataType/HDOrganization_InternalValue' HD: DG1 -%} + {% endif -%} + + {% if OBX %} + {% include 'DataType/HDOrganization_InternalValue' HD: OBX -%} + {% endif %} + + {% include 'DataType/CWEOrganization' CWE: RXA.17.Repeats[0] -%} + + {% if IN2_3 -%} + {% include 'DataType/HDOrganization_InternalValue' HD: IN2_3 -%} + {% endif -%} + + {% if IN2_70.70 -%} + {% include 'DataType/XONOrganization' XON: IN2_70.70.Repeats[0] -%} + {% endif -%} + + {% if MSHHD1 %} + {% if MSH.22 and organization_ID_MSH_22 -%} + "partOf": + { + "reference":"Organization/{{ organization_ID_MSH_22 }}", + }, + {% endif -%} + {% endif %} + {% if MSHHD2 %} + {% if MSH.23 and organization_ID_MSH_23 -%} + "partOf": + { + "reference":"Organization/{{ organization_ID_MSH_23 }}", + }, + {% endif -%} + {% endif %} "address": [ { "country":"{{ MSH.17.Value | get_property: 'CodeSystem/Countries', 'code' }}", + }, + { + {% if OBX_24 -%} + {% include 'DataType/XADAddress' XAD: OBX_24 -%} + {% endif -%} }, { - {% include 'DataType/XAD' XAD: OBX.24 -%} + {% include 'DataType/XAD' XAD: OBX_ORU.24 -%} }, - {% if OBX.25 -%} + {% if OBX_ORU.25 -%} { - {% include 'DataType/XAD' XAD: OBX.24 -%} + {% include 'DataType/XAD' XAD: OBX_ORU.24 -%} }, {% endif -%} { - {% include 'DataType/XAD' XAD: ORC.22.Repeats[0] -%} + {% include 'DataType/XAD' XAD: ORC.22.Repeats[0] -%} + }, + {% for gt1_5 in GT1.5.Repeats -%} + { + {% include 'DataType/XAD' XAD: gt1_5 -%} + }, + {% endfor -%} + {% for in1_5 in IN1.5.Repeats -%} + { + {% include 'DataType/XAD' XAD: in1_5 -%} }, + {% endfor -%} + {% for in1_44 in IN1_11.44.Repeats -%} + { + {% include 'DataType/XAD' XAD: in1_44 -%} + }, + {% endfor -%} ], - {% if MSH.21 == null -%} - {% include 'DataType/HDOrganization' HD: MSH.4 -%} - {% endif -%} - {% include 'DataType/HDOrganization' HD: MSH.22 -%} - {% include 'DataType/XONOrganization' XON: ROL.14 -%} "contact": [ { @@ -36,14 +188,62 @@ }, "telecom": [ - { - {% include 'DataType/XTN' XTN: NK1.31 -%} - }, + {% for nk131 in NK1.31.Repeats -%} + { + {% include 'DataType/XTN' XTN: nk131 -%} + }, + {% endfor -%} + {% for gt1_46 in GT1.46.Repeats -%} + { + {% include 'DataType/XTN' XTN: gt1_46 -%} + }, + {% endfor -%} ], "address": { {% include 'DataType/XAD' XAD: NK1.32 -%} }, + "purpose": + { + {% include 'DataType/CWECodeableConcept' CWE: GT1.47 -%} + }, + }, + { + "name": + { + {% include 'DataType/XPN' XPN: IN1.6 -%} + }, + }, + {% for gt1_3 in GT1.3.Repeats -%} + { + "name": + { + + {% include 'DataType/XPN' XPN: gt1_3 -%} + }, + }, + {% endfor -%} + {% for gt1_45 in GT1.45.Repeats -%} + { + "name": + { + {% include 'DataType/XPN' XPN: gt1_45 -%} + }, + }, + {% endfor -%} + { + "name": + { + {% include 'DataType/XPN' XPN: IN2_49.49.Repeats[0] -%} + }, + "telecom": + [ + {% for in2_49 in IN2_49.50.Repeats -%} + { + {% include 'DataType/XTN' XTN: in2_49 -%} + }, + {% endfor -%} + ], }, ], "type": @@ -52,14 +252,91 @@ {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/OrganizationUnitType', CWE: PRT.7 -%} }, ], - {% include 'DataType/XONOrganization' XON: PRT.8.Repeats[0] -%} "telecom": [ { {% include 'DataType/XTN' XTN: ORC.23.Repeats[0] -%} }, + {% for gt1_6 in GT1.6.Repeats -%} + { + {% include 'DataType/XTN' XTN: gt1_6 -%} + }, + {% endfor -%} + {% for gt1_7 in GT1.7.Repeats -%} + { + {% include 'DataType/XTN' XTN: gt1_7 -%} + }, + {% endfor -%} + {% for gt1_18 in GT1_51.18.Repeats -%} + { + {% include 'DataType/XTN' XTN: gt1_18 -%} + }, + {% endfor -%} + {% for in1_7 in IN1.7.Repeats -%} + { + {% include 'DataType/XTN' XTN: in1_7 -%} + }, + {% endfor -%} + {% for in2_64 in IN2_49.64.Repeats -%} + { + {% include 'DataType/XTN' XTN: in2_64 -%} + }, + {% endfor -%} ], - {% include 'DataType/CWEOrganization' CWE: RXA.17.Repeats[0] -%} + "identifier": + [ + {% for gt1_2 in GT1.2.Repeats -%} + { + {% include 'DataType/CX' CX: gt1_2 -%} + }, + {% endfor -%} + {% for gt1_29 in GT1_51.29.Repeats -%} + { + {% include 'DataType/CX' CX: gt1_29 -%} + }, + {% endfor -%} + {% for in1_3 in IN1.3.Repeats -%} + { + {% include 'DataType/CX' CX: in1_3 -%} + }, + {% endfor -%} + {% for in1_10 in IN1_11.10.Repeats -%} + { + {% include 'DataType/CX' CX: in1_10 -%} + }, + {% endfor -%} + ], + {% if org_name %} + "name": "{{org_name}}", + {% endif %} + {% if IN1.4 -%} + "name": {% include 'DataType/XONString' XON: IN1.4 -%} + {% endif -%} + + {% if IN1_11.11 -%} + {% for in1_11 in IN1_11.11.Repeats -%} + {% if in1_11 -%} + {% assign namevalue = in1_11.1.Value -%} + {% unless in1_11.1 -%} + {% assign namevalue = in1_11.10.Value -%} + {% endunless -%} + {% endif -%} + {% capture namestring %}{{ namestring | append: namevalue | append: ":" }}{% endcapture -%} + {% endfor %} + "name" : "{{ namestring | split: ":" | join: "+"}}", + {% endif -%} + {% if GT1_51.51 -%} + {% for gt1_51 in GT1_51.51.Repeats -%} + {% if gt1_51 -%} + {% assign namevalue = gt1_51.1.Value -%} + {% unless gt1_51.1 -%} + {% assign namevalue = gt1_51.10.Value -%} + {% endunless -%} + {% endif -%} + {% capture namestring %}{{ namestring | append: namevalue | append: ":" }}{% endcapture -%} + {% endfor %} + "name" : "{{ namestring | split: ":" | join: "+"}}", + {% endif -%} }, "request":{ "method":"PUT", diff --git a/data/Templates/Hl7v2/Resource/_PLLocation.liquid b/data/Templates/Hl7v2/Resource/_PLLocation.liquid new file mode 100644 index 000000000..8d2178341 --- /dev/null +++ b/data/Templates/Hl7v2/Resource/_PLLocation.liquid @@ -0,0 +1,217 @@ +{% evaluate locationId_PL_1 using 'ID/Location' PL: PL.1 -%} +{% evaluate locationId_PL_2 using 'ID/Location' PL: PL.2 -%} +{% evaluate locationId_PL_3 using 'ID/Location' PL: PL.3 -%} +{% evaluate locationId_PL_4 using 'ID/Location' PL: PL.4 -%} +{% evaluate locationId_PL_7 using 'ID/Location' PL: PL.7 -%} +{% evaluate locationId_PL_8 using 'ID/Location' PL: PL.8 -%} +{% if PL.1 -%} +{ + "fullUrl":"urn:uuid:{{ locationId_PL_1 }}", + "resource":{ + "resourceType": "Location", + "id":"{{ locationId_PL_1 }}", + {% if locationId_PL_8 -%} + "partOf":{ + "reference":"Location/{{locationId_PL_8}}" + }, + {% endif %} + {% include 'DataType/PL_HDLocation' HD: PL.1 -%}, + "mode":"instance", + "physicalType":{ + "coding":[ + { + "system":"http://terminology.hl7.org/CodeSystem/location-physical-type", + "code":"lvl" + } + ] + }, + }, + "request":{ + "method":"PUT", + "url":"Location/{{ locationId_PL_1 }}", + }, +}, +{% endif -%} +{% if PL.2 -%} +{ + "fullUrl":"urn:uuid:{{ locationId_PL_2 }}", + "resource":{ + "resourceType": "Location", + "id":"{{ locationId_PL_2 }}", + {% if locationId_PL_1 -%} + "partOf":{ + "reference":"Location/{{locationId_PL_1}}" + }, + {% endif %} + {% include 'DataType/PL_HDLocation' HD: PL.2 -%}, + "mode":"instance", + "physicalType":{ + "coding":[ + { + "system":"http://terminology.hl7.org/CodeSystem/location-physical-type", + "code":"ro", + } + ] + }, + }, + "request":{ + "method":"PUT", + "url":"Location/{{ locationId_PL_2 }}", + }, +}, +{% endif -%} +{% if PL.3 -%} +{ + "fullUrl":"urn:uuid:{{ locationId_PL_3 }}", + "resource":{ + "resourceType": "Location", + "id":"{{ locationId_PL_3 }}", + {% if locationId_PL_2 -%} + "partOf":{ + "reference":"Location/{{locationId_PL_2}}" + }, + {% endif %} + {% include 'DataType/PL_HDLocation' HD: PL.3 -%}, + "mode":"instance", + "physicalType":{ + "coding":[ + { + "system":"http://terminology.hl7.org/CodeSystem/location-physical-type", + "code":"bd", + } + ] + }, + }, + "request":{ + "method":"PUT", + "url":"Location/{{ locationId_PL_3 }}", + }, +}, +{% endif -%} +{% if PL.4 -%} +{ + "fullUrl":"urn:uuid:{{ locationId_PL_4 }}", + "resource":{ + "resourceType": "Location", + "id":"{{ locationId_PL_4 }}", + {% include 'DataType/PL_HDLocation' HD: PL.4 -%}, + "mode":"instance", + "physicalType":{ + "coding":[ + { + "system":"http://terminology.hl7.org/CodeSystem/location-physical-type", + "code":"si", + } + ] + }, + }, + "request":{ + "method":"PUT", + "url":"Location/{{ locationId_PL_4 }}", + }, +}, +{% endif -%} +{% if PL.7 -%} +{ + "fullUrl":"urn:uuid:{{ locationId_PL_7 }}", + "resource":{ + "resourceType": "Location", + "id":"{{ locationId_PL_7 }}", + {% if locationId_PL_4 -%} + "partOf":{ + "reference":"Location/{{locationId_PL_4}}" + }, + {% endif %} + {% include 'DataType/PL_HDLocation' HD: PL.7 -%}, + "mode":"instance", + "physicalType":{ + "coding":[ + { + "system":"http://terminology.hl7.org/CodeSystem/location-physical-type", + "code":"bu", + } + ] + }, + }, + "request":{ + "method":"PUT", + "url":"Location/{{ locationId_PL_7 }}", + }, +}, +{% endif -%} +{% if PL.8 -%} +{ + "fullUrl":"urn:uuid:{{ locationId_PL_8 }}", + "resource":{ + "resourceType": "Location", + "id":"{{ locationId_PL_8 }}", + {% if locationId_PL_7 -%} + "partOf":{ + "reference":"Location/{{locationId_PL_7}}" + }, + {% endif %} + {% include 'DataType/PL_HDLocation' HD: PL.8 -%}, + "mode":"instance", + "physicalType":{ + "coding":[ + { + "system":"http://terminology.hl7.org/CodeSystem/location-physical-type", + "code":"lvl", + } + ] + }, + }, + "request":{ + "method":"PUT", + "url":"Location/{{ locationId_PL_8 }}", + }, +}, +{% endif -%} + +{% if PL_1 -%} +{ + "fullUrl":"urn:uuid:{{ ID }}", + "resource":{ + "resourceType": "Location", + "id":"{{ ID }}", + {% include 'DataType/PL_HDLocation' HD: PL_1 -%}, + "mode":"instance", + "physicalType":{ + "coding":[ + { + "system":"http://terminology.hl7.org/CodeSystem/location-physical-type", + "code":"lvl" + } + ] + }, + }, + "request":{ + "method":"PUT", + "url":"Location/{{ ID }}", + }, +}, +{% endif -%} + +{% if PL_2 -%} + { + "fullUrl":"urn:uuid:{{ ID }}", + "resource":{ + "resourceType": "Location", + "id":"{{ ID }}", + {% include 'DataType/PL_HDLocation' HD: PL_2 -%}, + "mode":"instance", + "physicalType":{ + "coding":[ + { + "system":"http://terminology.hl7.org/CodeSystem/location-physical-type", + "code":"ro", + } + ] + }, + }, + "request":{ + "method":"PUT", + "url":"Location/{{ ID }}", + }, + }, +{% endif -%} \ No newline at end of file diff --git a/data/Templates/Hl7v2/Resource/_Patient.liquid b/data/Templates/Hl7v2/Resource/_Patient.liquid index 6f01e2505..48eb50c36 100644 --- a/data/Templates/Hl7v2/Resource/_Patient.liquid +++ b/data/Templates/Hl7v2/Resource/_Patient.liquid @@ -7,7 +7,9 @@ Organization_ID_NK1_13: A resource Id, used to fill "contact.organization.refere Patient_ManagingOrganization_ID: A resource Id, used to fill "managingOrganization.reference" property. {% endcomment -%} -{% evaluate Organization_ID_NK1_13 using 'ID/Organization' XON: NK1.13 -%} +{% comment -%} {% evaluate Organization_ID_NK1_13 using 'ID/Organization' XON: NK1.13 -%} {% endcomment -%} +{% evaluate Organization_ID_PD1_3 using 'ID/Organization' XON: PD1.3 -%} +{% evaluate Practitioner_ID_PD1_4 using 'ID/Practitioner' XCN: PD1.4 -%} { "fullUrl":"urn:uuid:{{ ID }}", @@ -35,7 +37,7 @@ Patient_ManagingOrganization_ID: A resource Id, used to fill "managingOrganizati [ { {% if PID.19 -%} - "code":"SS", + "code":"SB", {% endif -%} {% if PID.19 -%} "system":"http://terminology.hl7.org/CodeSystem/v2-0203", @@ -47,9 +49,137 @@ Patient_ManagingOrganization_ID: A resource Id, used to fill "managingOrganizati "system":"http://hl7.org/fhir/sid/us-ssn", {% endif -%} }, + {% unless PID.19 -%} + { + "value":"{{ GT1.12.Value }}", + "type": + { + "coding": + [ + { + {% if GT1.12 -%} + "code":"SB", + {% endif -%} + {% if GT1.12 -%} + "system":"http://terminology.hl7.org/CodeSystem/v2-0203", + {% endif -%} + }, + ], + }, + {% if GT1.12 -%} + "system":"http://hl7.org/fhir/sid/us-ssn", + {% endif -%} + }, + {% endunless -%} { {% include 'DataType/DLN' DLN: PID.20 -%} }, + {% if DB1.2.1.Value == "PT" %} + {% for db in DB1.3.Repeats -%} + { + {% include 'DataType/CX' CX: db -%} + }, + {% endfor %} + {% endif -%} + {% for gt1 in GT1.2.Repeats -%} + { + {% include 'DataType/CX' CX: gt1 -%} + }, + {% endfor -%} + {% for in1_49 in IN1.49.Repeats -%} + { + {% include 'DataType/CX' CX: in1_49 -%} + }, + {% endfor -%} + {% for gt1_19 in GT1.19.Repeats -%} + { + {% include 'DataType/CX' CX: gt1_19 -%} + }, + {% endfor -%} + {% for in2_1 in IN2.1.Repeats -%} + { + {% include 'DataType/CX' CX: in2_1 -%} + }, + {% endfor -%} + {% if IN2.2 -%} + { + "value":"{{ IN2.2.Value }}", + "type": + { + "coding": + [ + { + "code":"SS", + "display": "Social Security number", + "system":"http://terminology.hl7.org/CodeSystem/v2-0203", + }, + ], + }, + {% if IN2.2 -%} + "system":"http://hl7.org/fhir/sid/us-ssn", + {% endif -%} + }, + {% endif -%} + {% if IN2_6.6 -%} + { + "value":"{{ IN2_6.6.Value }}", + "type": + { + "coding": + [ + { + "code":"MC", + "display": "Patient's Medicare number", + "system":"http://terminology.hl7.org/CodeSystem/v2-0203", + }, + ], + }, + {% if IN2_6.6 -%} + "system":"http://hl7.org/fhir/sid/us-medicare", + {% endif -%} + }, + {% endif -%} + {% if IN2_6.8 -%} + { + "value":"{{ IN2_6.8.Value }}", + "type": + { + "coding": + [ + { + "code":"MA", + "display": "Patient Medicaid number", + "system":"http://terminology.hl7.org/CodeSystem/v2-0203", + }, + ], + }, + {% if IN2_6.8 -%} + "system":"http://example.com/v2-to-fhir-converter/identifier-medicaid", + {% endif -%} + }, + {% endif -%} + {% if IN2_6.10 -%} + { + "value":"{{ IN2_6.10.Value }}", + "type": + { + "coding": + [ + { + "code":"MI", + "display": "Military ID number", + "system":"http://terminology.hl7.org/CodeSystem/v2-0203", + }, + ], + }, + {% if IN2_6.10 -%} + "system":"http://example.com/v2-to-fhir-converter/identifier-military", + {% endif -%} + }, + {% endif -%} + { + {% include 'DataType/CX' CX: IN2_6.61 -%} + }, ], "name": [ @@ -61,9 +191,54 @@ Patient_ManagingOrganization_ID: A resource Id, used to fill "managingOrganizati { {% include 'DataType/XPN' XPN: PID.9 -%} }, + {% for gt1_3 in GT1.3.Repeats -%} + { + {% include 'DataType/XPN' XPN: gt1_3 -%} + }, + {% endfor -%} + {% for in1_16 in IN1.16.Repeats -%} + { + {% include 'DataType/XPN' XPN: in1_16 -%} + }, + {% endfor -%} + {% for in2_6 in IN2_6.7.Repeats -%} + { + {% include 'DataType/XPN' XPN: in2_6 -%} + }, + {% endfor -%} ], - "birthDate":"{{ PID.7.Value | add_hyphens_date }}", - "gender":"{{ PID.8.Value | get_property: 'CodeSystem/Gender', 'code' }}", + {% if PID.7 -%} + "birthDate":"{{ PID.7.Value | add_hyphens_date }}", + {% endif -%} + {% if PID.7.Value.size > 8 -%} + "_birthDate" : { + "extension" : [ + { + "url" : "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime" : "{{ PID.7.Value | format_as_date_time }}" + } + ] + }, + {% endif -%} + {% unless PID.7 -%} + "birthDate":"{{ GT1.8.Value | add_hyphens_date }}", + {% endunless -%} + {% unless PID_IN1.7 -%} + "birthDate":"{{ IN1.18.Value | add_hyphens_date }}", + {% endunless -%} + {% if PID.8 -%} + "gender":{% include 'DataType/CWECode' mapping: 'CodeSystem/Gender', CWE: PID.8 -%}, + {% endif -%} + {% unless PID.8 -%} + {% if GT1.9 -%} + "gender":{% include 'DataType/CWECode' mapping: 'CodeSystem/Gender', CWE: GT1.9 -%}, + {% endif -%} + {% endunless -%} + {% unless PID_IN1.8 -%} + {% if IN1.43 -%} + "gender":{% include 'DataType/CWECode' mapping: 'CodeSystem/Gender', CWE: IN1.43 -%}, + {% endif -%} + {% endunless -%} "address": [ {% for p in PID.11.Repeats -%} @@ -71,16 +246,29 @@ Patient_ManagingOrganization_ID: A resource Id, used to fill "managingOrganizati {% include 'DataType/XAD' XAD: p -%} }, {% endfor -%} + {% assign PID11size = PID.11.Repeats.size -%} + {% if PID11size == '1' and PID.11.9 == null -%} { "district":"{{ PID.12.Value }}", }, + {% endif -%} + {% for gt1_5 in GT1.5.Repeats -%} + { + {% include 'DataType/XAD' XAD: gt1_5 -%} + }, + {% endfor -%} + {% for in1_19 in IN1.19.Repeats -%} + { + {% include 'DataType/XAD' XAD: in1_19 -%} + }, + {% endfor -%} ], "telecom": [ {% for p in PID.13.Repeats -%} { {% include 'DataType/XTN' XTN: p -%} - {% if PID.13 -%} + {% if PID.13.2 == null -%} "use":"home", {% endif -%} }, @@ -88,7 +276,7 @@ Patient_ManagingOrganization_ID: A resource Id, used to fill "managingOrganizati {% for p in PID.14.Repeats -%} { {% include 'DataType/XTN' XTN: p -%} - {% if PID.14 -%} + {% if PID.14.2 == null -%} "use":"work", {% endif -%} }, @@ -98,6 +286,23 @@ Patient_ManagingOrganization_ID: A resource Id, used to fill "managingOrganizati {% include 'DataType/XTN' XTN: p -%} }, {% endfor -%} + {% for gt1_6 in GT1.6.Repeats -%} + { + {% include 'DataType/XTN' XTN: gt1_6 -%} + "use":"home", + }, + {% endfor -%} + {% for gt1_7 in GT1.7.Repeats -%} + { + {% include 'DataType/XTN' XTN: gt1_7 -%} + "use":"work", + }, + {% endfor -%} + {% for in2_63 in IN2.63.Repeats -%} + { + {% include 'DataType/XTN' XTN: in2_63 -%} + }, + {% endfor -%} ], "communication": [ @@ -110,33 +315,79 @@ Patient_ManagingOrganization_ID: A resource Id, used to fill "managingOrganizati "preferred":true, {% endif -%} }, + {% unless PID.15 -%} + { + "language": + { + {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/Language', CWE: GT1.36 -%} + }, + {% if GT1.36 -%} + "preferred":true, + {% endif -%} + }, + {% endunless -%} + { + "language": + { + {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/Language', CWE: IN2.34 -%} + }, + {% if IN2.34 -%} + "preferred":true, + {% endif -%} + }, ], "maritalStatus": { {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/MaritalStatus', CWE: PID.16 -%} }, + {% unless PID.16 -%} + "maritalStatus": + { + {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/MaritalStatus', CWE: GT1.30 -%} + }, + {% endunless -%} {% if PID.25 == null -%} - "multipleBirthBoolean":"{{ PID.24.Value | get_property: 'CodeSystem/Yes_No', 'code' }}", + {% if PID.24 -%} + "multipleBirthBoolean":{{ PID.24.Value | get_property: 'CodeSystem/Yes_No', 'code' }}, + {% endif -%} + {% endif -%} + {% if PID.25 -%} + "multipleBirthInteger":{{ PID.25.Value }}, {% endif -%} - "multipleBirthInteger":"{{ PID.25.Value }}", - "deceasedDateTime":"{{ PID.29.Value | format_as_date_time }}", + "deceasedDateTime":"{{ PID.29.Value | format_as_date_time }}", + {% unless PID.29 -%} + "deceasedDateTime":"{{ GT1.24.Value | format_as_date_time }}", + {% endunless -%} {% if PID.29 == null -%} - "deceasedBoolean":"{{ PID.30.Value | get_property: 'CodeSystem/Yes_No', 'code' }}", + {% if PID.30 -%} + "deceasedBoolean":{{ PID.30.Value | get_property: 'CodeSystem/Yes_No', 'code' }}, + {% endif -%} {% endif -%} + {% unless PID.30 -%} + {% if GT1.24 == null -%} + {% if GT1.25 -%} + "deceasedBoolean":{{ GT1.25.Value | get_property: 'CodeSystem/Yes_No', 'code' }}, + {% endif -%} + {% endif -%} + {% endunless -%} "meta": { "lastUpdated":"{{ PID.33.Value | format_as_date_time }}", }, - "active":"{{ PD1.16.Value | get_property: 'CodeSystem/RegistryStatus', 'code' }}", + "active":"{{ PD1.16.1.Value | get_property: 'CodeSystem/RegistryStatus', 'code' }}", "generalPractitioner": [ { {% if PD1.3 and Organization_ID_PD1_3 -%} "reference":"Organization/{{ Organization_ID_PD1_3 }}", {% endif -%} - {% if PD1.4 and PractitionerRole_ID_PD1_4 -%} - "reference":"PractitionerRole/{{ PractitionerRole_ID_PD1_4 }}", + }, + { + {% if PD1.4 and Practitioner_ID_PD1_4 -%} + "reference":"Practitioner/{{ Practitioner_ID_PD1_4 }}", {% endif -%} + }, + { {% if ROL.4 and PractitionerRole_ID_ROL_4 -%} "reference":"PractitionerRole/{{ PractitionerRole_ID_ROL_4 }}", {% endif -%} @@ -148,21 +399,35 @@ Patient_ManagingOrganization_ID: A resource Id, used to fill "managingOrganizati "name": { {% include 'DataType/XPN' XPN: NK1.2.Repeats[0] -%} + {% if NK1_PER.7.1.Value == "E" -%} + {% include 'DataType/XPN' XPN: GT1.16.Repeats[0] -%} + {% endif -%} }, "address": { {% include 'DataType/XAD' XAD: NK1.4.Repeats[0] -%} + {% if NK1_PER.7.1.Value == "E" -%} + {% include 'DataType/XAD' XAD: GT1.17.Repeats[0] -%} + {% endif -%} }, "telecom": [ {% for n in NK1.5.Repeats -%} { {% include 'DataType/XTN' XTN: n -%} + {% if n.2 == null -%} + "use":"home", + {% endif -%} + }, + {% endfor -%} + {% for nk6 in NK1.6.Repeats -%} + { + {% include 'DataType/XTN' XTN: nk6 -%} + {% if nk6.2 == null -%} + "use":"work", + {% endif -%} }, {% endfor -%} - { - {% include 'DataType/XTN' XTN: NK1.6 -%} - }, { {% include 'DataType/XTN' XTN: NK1.40 -%} }, @@ -180,8 +445,16 @@ Patient_ManagingOrganization_ID: A resource Id, used to fill "managingOrganizati { "start":"{{ NK1.8.Value | format_as_date_time }}", "end":"{{ NK1.9.Value | format_as_date_time }}", + {% unless NK1_PER.8 and NK1_PER.9 -%} + "start":"{{ GT1.31.Value | format_as_date_time }}", + "end":"{{ GT1.32.Value | format_as_date_time }}", + {% endunless -%} }, - "gender":"{{ NK1.15.Value | get_property: 'CodeSystem/Gender', 'code' }}", + {% if NK1.15.1 -%} + "gender":"{{ NK1.15.1.Value | get_property: 'CodeSystem/Gender', 'code' }}", + {% else -%} + "gender":"{{ NK1.15.4.Value | get_property: 'CodeSystem/Gender', 'code' }}", + {% endif -%} "organization": [ { @@ -196,6 +469,40 @@ Patient_ManagingOrganization_ID: A resource Id, used to fill "managingOrganizati { "reference":"{{ Patient_ManagingOrganization_ID }}", }, + "extension": + [ + {% unless PID.6 -%} + {% if GT1.42-%} + { + "url" : "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + {% capture textstring %}{{ GT1.42.Value | split: "^" | join: "--" }}{% endcapture -%} + {% capture specomp %}{{ textstring | split: "~" | join: "+" }}{% endcapture -%} + {% capture valuestring %}{{ specomp | split: "&" | join: "--" }}{% endcapture -%} + "valueString" : "{{ valuestring }}" + }, + {% endif -%} + {% endunless -%} + {% unless PID.23 -%} + {% if GT1.56-%} + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", + "valueAddress": { + "text": "{{ GT1.56.Value }}" + } + }, + {% endif -%} + {% endunless -%} + {% unless PID_IN1.23 -%} + {% if IN1.52-%} + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", + "valueAddress": { + "text": "{{ IN1.52.Value }}" + } + }, + {% endif -%} + {% endunless -%} + ], }, "request":{ "method":"PUT", diff --git a/data/Templates/Hl7v2/Resource/_Practitioner.liquid b/data/Templates/Hl7v2/Resource/_Practitioner.liquid index d76007da7..07437619b 100644 --- a/data/Templates/Hl7v2/Resource/_Practitioner.liquid +++ b/data/Templates/Hl7v2/Resource/_Practitioner.liquid @@ -3,6 +3,24 @@ "resource":{ "resourceType": "Practitioner", "id":"{{ ID }}", + + {% if OBXXCN2 -%} + "identifier": + [ + { + "type": + { + "coding": + [ + { + "code":"{{ OBXXCN2.1.Value }}", + }, + ], + }, + }, + ], + {% endif %} + "address": [ { @@ -15,16 +33,32 @@ {% include 'DataType/XAD' XAD: ORC.24.Repeats[0] -%} }, ], - {% include 'DataType/XCNPractitionerRole' XCN: OBX.16 -%} + + {% if OBXXCN1 %} + {% include 'DataType/XCNPractitioner' XCN: OBXXCN1 -%} + {% endif %} {% include 'DataType/XCNPractitioner' XCN: DG1.16.Repeats[0] -%} - {% include 'DataType/XCNPractitioner' XCN: PR1.8 -%} - {% include 'DataType/XCNPractitioner' XCN: PR1.11 -%} - {% include 'DataType/XCNPractitioner' XCN: PR1.12 -%} + {% include 'DataType/XCNPractitioner' XCN: PR1 -%} {% include 'DataType/XCNPractitioner' XCN: ORC.10 -%} {% include 'DataType/XCNPractitioner' XCN: ORC.11 -%} {% include 'DataType/XCNPractitioner' XCN: ORC.12.Repeats[0] -%} {% include 'DataType/XCNPractitioner' XCN: NTE.5 -%} {% include 'DataType/XCNPractitioner' XCN: RXA.10 -%} + {% include 'DataType/XCNPractitioner' XCN: PV1 -%} + {% include 'DataType/XCNPractitioner' XCN: EVN -%} + {% include 'DataType/XCNPractitioner' XCN: PD1 -%} + {% include 'DataType/XCNPractitioner' XCN: NTE -%} + {% include 'DataType/XCNPractitioner' XCN: RF1 -%} + {% include 'DataType/XCNPractitioner' XCN: IAM -%} + + + {% if IAM_NAME -%} + "name": [ + { + {% include 'DataType/XPN' XPN: IAM_NAME -%} + }, + ], + {% endif -%} }, "request":{ "method":"PUT", diff --git a/data/Templates/Hl7v2/Resource/_PractitionerRole.liquid b/data/Templates/Hl7v2/Resource/_PractitionerRole.liquid index 7b5172cb9..37086e05f 100644 --- a/data/Templates/Hl7v2/Resource/_PractitionerRole.liquid +++ b/data/Templates/Hl7v2/Resource/_PractitionerRole.liquid @@ -8,15 +8,13 @@ Organization_ID_PRT_8: A resource Id, used to fill "organization.reference" prop Organization_ID_ORC_21: A resource Id, used to fill "organization.reference" property. The resource is of "Organization" type and generated based on "ORC.21" HL7 V2 identifier. {% endcomment -%} -{% evaluate Practitioner_ID_OBX_16 using 'ID/Practitioner' XCN: OBX.16 -%} -{% evaluate Organization_ID_OBX_23 using 'ID/Organization' XON: OBX.23 -%} - { "fullUrl":"urn:uuid:{{ ID }}", "resource":{ "resourceType": "PractitionerRole", "id":"{{ ID }}", {% include 'DataType/XCNPractitionerRole' XCN: PD1.4 -%} + "identifier": [ { @@ -26,18 +24,31 @@ Organization_ID_ORC_21: A resource Id, used to fill "organization.reference" pro {% include 'DataType/PLN' PLN: PRT.24 -%} }, ], - "code": - [ - { - {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/Role', CWE: ROL.3 -%} - }, - { - {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/Participation', CWE: ROL.4 -%} - }, - { - {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/Participation', CWE: PRT.4 -%} + "code": [ + { + "coding" : [ + {% if OBXXCN1 %} + { + "code" : "ResponsibleObserver", + "system" : "http://example.com/v2-to-fhir-converter/PractitionerRole", + }, + {% endif %} + {% if OBXXCN2 %} + { + "code" : "LabMedicalDirector", + "system" : "http://example.com/v2-to-fhir-converter/PractitionerRole", + } + {% endif %} + ], }, + + { + {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/Role', CWE: ROL.3 -%} + {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/Participation', CWE: ROL.4 -%} + {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/Participation', CWE: PRT.4 -%} + } ], + {% include 'DataType/XCNPractitionerRole' XCN: ROL.4 -%} "period": { @@ -64,18 +75,9 @@ Organization_ID_ORC_21: A resource Id, used to fill "organization.reference" pro }, ], {% include 'DataType/XCNPractitionerRole' XCN: ROL.4 -%} - {% include 'DataType/XCNPractitionerRole' XCN: OBX.25 -%} - "practitioner": - { - {% if OBX.16 and Practitioner_ID_OBX_16 -%} - "reference":"Practitioner/{{ Practitioner_ID_OBX_16 }}", - {% endif -%} - }, + "organization": - { - {% if OBX.23 and Organization_ID_OBX_23 -%} - "reference":"Organization/{{ Organization_ID_OBX_23 }}", - {% endif -%} + { {% if PRT.8 and Organization_ID_PRT_8 -%} "reference":"Organization/{{ Organization_ID_PRT_8 }}", {% endif -%} diff --git a/data/Templates/Hl7v2/Resource/_Procedure.liquid b/data/Templates/Hl7v2/Resource/_Procedure.liquid index c7eefef70..617289fbb 100644 --- a/data/Templates/Hl7v2/Resource/_Procedure.liquid +++ b/data/Templates/Hl7v2/Resource/_Procedure.liquid @@ -8,6 +8,12 @@ Procedure_Encounter_ID: A resource Id, used to fill "encounter.reference" proper Procedure_Recorder_ID: A resource Id, used to fill "recorder.reference" property. Procedure_Asserter_ID: A resource Id, used to fill "asserter.reference" property. {% endcomment -%} +{% evaluate Practitioner_ID_PR1_8 using 'ID/Practitioner' XCN: PR1.8 -%} +{% evaluate Practitioner_ID_PR1_11 using 'ID/Practitioner' XCN: PR1.11 -%} +{% evaluate Practitioner_ID_PR1_12 using 'ID/Practitioner' XCN: PR1.12 -%} +{% evaluate Procedure_ID_PR1_25 using 'ID/Procedure' PR1: PR1.25, baseId: Procedure_Subject_ID -%} +{% evaluate Location_ID_PR1_23_1 using 'ID/Location' PL: PR1.23.1 -%} +{% evaluate Location_ID_PR1_23_2 using 'ID/Location' PL: PR1.23.2 -%} { "fullUrl":"urn:uuid:{{ ID }}", @@ -16,29 +22,92 @@ Procedure_Asserter_ID: A resource Id, used to fill "asserter.reference" property "id":"{{ ID }}", "code": { + {% if PR1.3 -%} + {% include 'DataType/CNECodeableConcept' CNE: PR1.3 -%} + {% endif -%} {% if PR1.3.9 == null -%} "text":"{{ PR1.4.Value }}", {% endif -%} }, - {% if PR1.7 == null -%} - "performedDateTime":"{{ PR1.5.Value | format_as_date_time }}", + + {% if PR1 -%} + "status": "completed", + {% endif %} + + {% if PR1_25 -%} + "status": "unknown", {% endif -%} - {% if PR1.7 and PR1.5.5 == null -%} + + "performedDateTime":"{{ PR1.5.Value | format_as_date_time }}", + + {% comment %} + {% assign procedureDateTime = PR1.5.Value | format_as_date_time %} + {% assign performedMinute = procedureDateTime | date: "%m" %} + + {% if PR1.7 and performedMinute == null -%} "performedDateTime":"{{ PR1.5.Value | format_as_date_time }}", {% endif -%} + "performedPeriod": { - {% if PR1.7 and PR1.5.5 -%} + {% if PR1.7 and performedMinute -%} "start":"{{ PR1.5.Value | format_as_date_time }}", - {% endif -%} - {% if PR1.5.5.Value -%} - "end":Procedure.performedPeriod.start+PR1-7, + {% endif -%} + {% if performedMinute -%} + "end": "{{ procedureDateTime | date_add: 5, "day"}}", {% endif -%} }, + {% endcomment %} "category": { {% include 'DataType/CWECodeableConcept' CWE: PR1.6 -%} }, + "performer" : [ + {% if PR1.8-%} + { + "actor" : { + "reference":"Practitioner/{{ Practitioner_ID_PR1_8 }}", + }, + "function" : { + "coding":[ + { + "code": "88189002", + "system": "http://snomed.info/sct", + "display": "Anesthesiologist", + }, + ], + "text": "Anesthesiologist", + }, + }, + {% endif -%} + {% if PR1.11-%} + { + "actor" : { + "reference":"Practitioner/{{ Practitioner_ID_PR1_11 }}", + }, + "function" : { + "coding":[ + { + "code":"304292004", + "system":"http://snomed.info/sct", + "display": "Surgeon", + }, + ], + "text": "Surgeon", + }, + }, + {% endif -%} + {% if PR1.12-%} + { + "actor" : { + "reference":"Practitioner/{{ Practitioner_ID_PR1_12 }}", + }, + "function":{ + "text": "Procedure Practitioner", + } + }, + {% endif -%} + ], "reasonCode": [ { @@ -50,12 +119,19 @@ Procedure_Asserter_ID: A resource Id, used to fill "asserter.reference" property { {% include 'DataType/EIIdentifier' EI: PR1.19 -%} }, + { + {% include 'DataType/EIIdentifier' EI: PR1_25 -%} + }, ], "location": { - {% if PR1.23 and Location_ID_PR1_23 -%} - "reference":"Location/{{ Location_ID_PR1_23 }}", - {% endif -%} + {% if PR1.23.1 -%} + "reference":"Location/{{ Location_ID_PR1_23_1 }}", + {% else %} + {% if PR1.23.2 %} + "reference":"Location/{{ Location_ID_PR1_23_2 }}", + {% endif %} + {% endif %} }, "partOf": [ diff --git a/data/Templates/Hl7v2/Resource/_Provenance.liquid b/data/Templates/Hl7v2/Resource/_Provenance.liquid index 3a32c3752..d600f22c1 100644 --- a/data/Templates/Hl7v2/Resource/_Provenance.liquid +++ b/data/Templates/Hl7v2/Resource/_Provenance.liquid @@ -3,24 +3,28 @@ The following reference IDs are accepted by this template. Organization_ID_MSH_4: A resource Id, used to fill "agent.who.reference" property. The resource is of "Organization" type and generated based on "MSH.4" HL7 V2 identifier. Organization_ID_MSH_22: A resource Id, used to fill "agent.who.reference" property. The resource is of "Organization" type and generated based on "MSH.22" HL7 V2 identifier. -Practitioner_ID_ORC_10: A resource Id, used to fill "agent.who.reference" property. The resource is of "Practitioner" type and generated based on "ORC.10" HL7 V2 identifier. -Practitioner_ID_ORC_11: A resource Id, used to fill "agent.who.onBehalfOf" property. The resource is of "Practitioner" type and generated based on "ORC.11" HL7 V2 identifier. -Practitioner_ID_ORC_12: A resource Id, used to fill "agent.who.onBehalfOf" property. The resource is of "Practitioner" type and generated based on "ORC.12" HL7 V2 identifier. -Organization_ID_ORC_17: A resource Id, used to fill "agent.who.onBehalfOf" property. The resource is of "Organization" type and generated based on "ORC.17" HL7 V2 identifier. -Location_ID_ORC_21: A resource Id, used to fill "location.onBehalfOf" property. The resource is of "Location" type and generated based on "ORC.21" HL7 V2 identifier. -{% endcomment -%} +Device_ID_MSH_3: A resource Id, used to fill "entity.what.reference" property. The resource is of "Device" type and generated based on "MSH.3" HL7 V2 identifier. +{% endcomment -%} {% evaluate Practitioner_ID_ORC_10 using 'ID/Practitioner' XCN: ORC.10 -%} {% evaluate Practitioner_ID_ORC_11 using 'ID/Practitioner' XCN: ORC.11 -%} {% evaluate Practitioner_ID_ORC_12 using 'ID/Practitioner' XCN: ORC.12 -%} {% evaluate Organization_ID_ORC_17 using 'ID/Organization' CWE: ORC.17 -%} +{% evaluate Practitioner_ID_ORC_19 using 'ID/Practitioner' XCN: ORC.19 -%} {% evaluate Location_ID_ORC_21 using 'ID/Location' XON: ORC.21 -%} +{% evaluate Practitioner_ID_EVN_5 using 'ID/Practitioner' XCN: EVN.5 -%} +{% evaluate Location_ID_EVN_7 using 'ID/Location' HD: EVN.7 -%} +{% evaluate Organization_ID_MSH_4 using 'ID/Organization' HD: MSH.4 -%} +{% evaluate Organization_ID_MSH_22 using 'ID/Organization' XON: MSH.22 -%} +{% evaluate Device_ID_MSH_3 using 'ID/Device' HD: MSH.3 -%} + { "fullUrl":"urn:uuid:{{ ID }}", "resource":{ "resourceType": "Provenance", "id":"{{ ID }}", + {% if Root_Template -%} {% assign generationInstant = "{{ "" | now }}" -%} {% assign templateVersion = "TEMPLATE_VERSION_PLACEHOLDER" -%} @@ -29,46 +33,104 @@ Location_ID_ORC_21: A resource Id, used to fill "location.onBehalfOf" property. "div": "

Resource bundle generated on {{ generationInstant }} using Microsoft FHIR Converter.Template Version: {{ templateVersion }}.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/v{{ templateVersion }}/Hl7v2DefaultTemplates.tar.gz.Root template: {{ Root_Template }}.

" }, {% endif -%} + + {% if MSH %} + "occurredDateTime" : "{{ MSH.7.Value | format_as_date_time }}", + "recorded":"{{ MSH.7.Value | format_as_date_time }}", + {% elsif EVN %} + "occurredDateTime" : "{{ EVN.6.Value | format_as_date_time }}", + "recorded": "{{ EVN.2.Value | format_as_date_time }}", + "reason": + [ + { + {% if EVN.4 -%} + {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/EventReason', CWE: EVN.4 -%} + {% endif %} + }, + ], + {% elsif ORC -%} + "recorded": "{{ ORC.9.Value | format_as_date_time }}", + "occurredDateTime" : "{{ ORC.9.Value | format_as_date_time }}", + {% endif %} + + {% if EVN.5 %} "agent": [ + { + "who": + { + {% if EVN.5 and Practitioner_ID_EVN_5 -%} + "reference":"Practitioner/{{ Practitioner_ID_EVN_5 }}", + {% endif -%} + }, + }, + ], + {% elsif MSH -%} + "agent": + [ + {% unless MSH.22 -%} { "type": { "coding": [ { - {% if MSH.21 == null -%} - "code":"author", - {% endif -%} - {% if MSH.22 -%} + "code":"author", + "system":"http://terminology.hl7.org/CodeSystem/provenance-participant-type", + } + ], + }, + "who": + { + {% if MSH.4 and Organization_ID_MSH_4 -%} + "reference":"Organization/{{ Organization_ID_MSH_4 }}", + {% endif -%} + }, + }, + {% endunless -%} + { + "type": + { + "coding": + [ + { + {% if MSH.22 %} "code":"author", - {% endif -%} - {% if ORC.10 -%} - "code":"enterer", - {% endif -%} - {% if MSH.21 == null -%} - "system":"http://terminology.hl7.org/CodeSystem/provenance-participant-type", - {% endif -%} - {% if MSH.22 -%} "system":"http://terminology.hl7.org/CodeSystem/provenance-participant-type", - {% endif -%} - {% if ORC.10 -%} - "system":"http://terminology.hl7.org/CodeSystem/provenance-participant-type", - {% endif -%} - }, + {% endif %} + } ], }, "who": { - {% if MSH.4 and Organization_ID_MSH_4 -%} - "reference":"Organization/{{ Organization_ID_MSH_4 }}", - {% endif -%} {% if MSH.22 and Organization_ID_MSH_22 -%} "reference":"Organization/{{ Organization_ID_MSH_22 }}", - {% endif -%} - {% if ORC.10 and Practitioner_ID_ORC_10 -%} - "reference":"Practitioner/{{ Practitioner_ID_ORC_10 }}", - {% endif -%} + {% endif -%} + }, + }, + ], + {% elsif ORC %} + + "agent": + [ + { + "type": + { + "coding": + [ + {% if ORC.10 -%} + { + "code":"enterer", + "system":"http://terminology.hl7.org/CodeSystem/provenance-participant-type", + }, + {% endif -%} + ], + }, + "who": + { + {% if ORC.10 and Practitioner_ID_ORC_11 -%} + "reference":"Practitioner/{{ Practitioner_ID_ORC_11 }}", + {% endif -%} }, "onBehalfOf": { @@ -82,21 +144,19 @@ Location_ID_ORC_21: A resource Id, used to fill "location.onBehalfOf" property. { "coding": [ - { - {% if ORC.11 -%} - "code":"verifier", - {% endif -%} - {% if ORC.11 -%} - "system":"http://terminology.hl7.org/CodeSystem/provenance-participant-type", - {% endif -%} - }, + {% if ORC.11 -%} + { + "code":"verifier", + "system":"http://terminology.hl7.org/CodeSystem/provenance-participant-type", + }, + {% endif -%} ], }, "who": { - {% if ORC.11 and Practitioner_ID_ORC_11 -%} - "reference":"Practitioner/{{ Practitioner_ID_ORC_11 }}", - {% endif -%} + {% if ORC.11 and Practitioner_ID_ORC_11 -%} + "reference":"Practitioner/{{ Practitioner_ID_ORC_11 }}", + {% endif -%} }, }, { @@ -104,60 +164,108 @@ Location_ID_ORC_21: A resource Id, used to fill "location.onBehalfOf" property. { "coding": [ - { - {% if ORC.12 -%} - "code":"author", - {% endif -%} - {% if ORC.12 -%} - "system":"http://terminology.hl7.org/CodeSystem/provenance-participant-type", - {% endif -%} - }, + {% if ORC.12 -%} + { + "code":"author", + "system":"http://terminology.hl7.org/CodeSystem/provenance-participant-type", + }, + {% endif -%} ], }, "who": { - {% if ORC.12 and Practitioner_ID_ORC_12 -%} - "reference":"Practitioner/{{ Practitioner_ID_ORC_12 }}", + {% if ORC.12 and Practitioner_ID_ORC_12 -%} + "reference":"Practitioner/{{ Practitioner_ID_ORC_12 }}", + {% endif -%} + }, + }, + { + "type": + { + "coding": + [ + {% if ORC.19 -%} + { + "code":"performer", + "system":"http://terminology.hl7.org/CodeSystem/provenance-participant-type", + }, {% endif -%} + ], + }, + "who": + { + {% if ORC.19 and Practitioner_ID_ORC_19 -%} + "reference":"Practitioner/{{ Practitioner_ID_ORC_19 }}", + {% endif -%} }, }, ], - "recorded":"{{ MSH.7.Value | format_as_date_time }}", - "recorded":"{{ ORC.9.Value | format_as_date_time }}", + {% endif -%} + "activity": { + {% if MSH %} "coding": [ - { - {% if ORC.1.Value == "NW" -%} - "code":"CREATE", - {% endif -%} - {% if ORC.1.Value == "SC" -%} - "code":"UPDATE", - {% endif -%} - {% if ORC.1.Value == "OC" or ORC.1.Value == "CA" -%} - "code":"DELETE", - {% endif -%} - {% if ORC.1.Value == "NW" -%} - "system":"http://terminology.hl7.org/CodeSystem/v3-DataOperation", - {% endif -%} - {% if ORC.1.Value == "SC" -%} - "system":"http://terminology.hl7.org/CodeSystem/v3-DataOperation", - {% endif -%} - {% if ORC.1.Value == "OC" or ORC.1.Value == "CA" -%} - "system":"http://terminology.hl7.org/CodeSystem/v3-DataOperation", + { + {% if MSH.9 -%} + "display": "{{ MSH.9.1.Value }}^{{ MSH.9.2.Value }}^{{ MSH.9.3.Value }}", {% endif -%} }, ], + {% endif %} + {% if ORC %} + "coding": + [ + { + {% if ORC.1 == 'NW' -%} + "code": "CREATE", + "system": "http://terminology.hl7.org/CodeSystem/v3-DataOperation", + {% elsif ORC.1 == 'SC' -%} + "code": "UPDATE", + "system": "http://terminology.hl7.org/CodeSystem/v3-DataOperation", + {% elsif ORC.1 == 'OC' or ORC.1 == 'CA' -%} + "code": "CANCEL", + "system": "http://terminology.hl7.org/CodeSystem/v3-DataOperation", + {% endif -%} + }, + ], + {% endif %} + {% if EVNTEXT -%} + "text": "{{EVNTEXT.Value}}", + {% endif -%} + }, + {% if MSH %} + "entity" : + [ + { + {% if MSH.3 and MSH.24 -%} + "role" : "source", + "what": + { + {% if Device_ID_MSH_3 %} + "reference":"Device/{{ Device_ID_MSH_3 }}", + {% endif %} + }, + {% endif -%} }, - "occurredDateTime":"{{ ORC.9.Value | format_as_date_time }}", + ], + {% endif %} "location": { - {% if ORC.21 and Location_ID_ORC_21 -%} - "reference":"Location/{{ Location_ID_ORC_21 }}", + {% if EVN.7 and Location_ID_EVN_7 -%} + "reference":"Location/{{ Location_ID_EVN_7 }}", {% endif -%} - }, - }, + {% if ORC %} + {% if ORC.21 and Location_ID_ORC_21 -%} + "reference":"Location/{{ Location_ID_ORC_21 }}", + {% endif -%} + {% endif %} + }, + "target": [{ + "reference":"Bundle/{{ REF_BUNDLE }}", + }], + }, "request":{ "method":"PUT", "url":"Provenance/{{ ID }}", diff --git a/data/Templates/Hl7v2/Resource/_Provenance_transformation.liquid b/data/Templates/Hl7v2/Resource/_Provenance_transformation.liquid new file mode 100644 index 000000000..f3ea61af1 --- /dev/null +++ b/data/Templates/Hl7v2/Resource/_Provenance_transformation.liquid @@ -0,0 +1,42 @@ +{ + "fullUrl":"urn:uuid:{{ ID }}", + "resource":{ + "resourceType": "Provenance", + "id":"{{ ID }}", + + {% assign templateVersion = "4.1" -%} + + {% if Root_Template -%} + {% assign generationInstant = "{{ "" | now }}" -%} + "text": { + "status": "generated", + "div": "

Resource bundle generated on {{ generationInstant }} using Microsoft FHIR Converter.Template Version: {{ templateVersion }}Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/v{{ templateVersion }}/Hl7v2DefaultTemplates.tar.gz.Root template: {{ Root_Template }}.

" + }, + {% endif -%} + + "occurredDateTime" : "{{ generationInstant }}", + "recorded":"{{ generationInstant }}", + + "agent": + [ + { + "who": + { + {% if Provenance_Organization_ID %} + "reference": "Organization/{{Provenance_Organization_ID}}", + {% endif %} + }, + }, + ], + + {% if REF_MSH -%} + "target": [{ + "reference":"MessageHeader/{{ REF_MSH }}", + }], + {% endif -%} + }, + "request":{ + "method":"PUT", + "url":"Provenance/{{ ID }}", + }, +}, diff --git a/data/Templates/Hl7v2/Resource/_RelatedPerson.liquid b/data/Templates/Hl7v2/Resource/_RelatedPerson.liquid index 1e66fcdde..c8a52a6b8 100644 --- a/data/Templates/Hl7v2/Resource/_RelatedPerson.liquid +++ b/data/Templates/Hl7v2/Resource/_RelatedPerson.liquid @@ -11,21 +11,105 @@ RelatedPerson_Patient_ID: A resource Id, used to fill "patient.reference" proper "id":"{{ ID }}", "identifier": [ + {% for pid in PID.21.Repeats -%} { - {% include 'DataType/CX' CX: PID.21 -%} + {% include 'DataType/CX' CX: pid -%} }, + {% endfor -%} + { + {% include 'DataType/CX' CX: NK1.12 -%} + }, + {% for nk33 in NK1.33.Repeats -%} + { + {% include 'DataType/CX' CX: nk33 -%} + }, + {% endfor -%} + {% if NK1.37 -%} + { + "value": "{{ NK1.37.Value }}", + "system": "http://hl7.org/fhir/sid/us-ssn", + }, + {% endif -%} { {% include 'DataType/EIIdentifier' EI: ROL.1 -%} }, { {% include 'DataType/PLN' PLN: PRT.24 -%} }, + {% for gt1_2 in GT1.2.Repeats -%} + { + {% include 'DataType/CX' CX: gt1_2 -%} + }, + {% endfor -%} + {% for gt1_19 in GT1.19.Repeats -%} + { + {% include 'DataType/CX' CX: gt1_19 -%} + }, + {% endfor -%} + {% for in1_49 in IN1.49.Repeats -%} + { + {% include 'DataType/CX' CX: in1_49 -%} + }, + {% endfor -%} + { + "value":"{{ GT1.12.Value }}", + "type": + { + "coding": + [ + { + {% if GT1.12 -%} + "code":"SB", + {% endif -%} + {% if GT1.12 -%} + "system":"http://terminology.hl7.org/CodeSystem/v2-0203", + {% endif -%} + }, + ], + }, + {% if GT1.12 -%} + "system":"http://hl7.org/fhir/sid/us-ssn", + {% endif -%} + }, + {% for in2_1 in IN2.1.Repeats -%} + { + {% include 'DataType/CX' CX: in2_1 -%} + }, + {% endfor -%} + {% if IN2.2 -%} + { + "value":"{{ IN2.2.Value }}", + "type": + { + "coding": + [ + { + "code":"SS", + "display": "Social Security number", + "system":"http://terminology.hl7.org/CodeSystem/v2-0203", + }, + ], + }, + "system":"http://hl7.org/fhir/sid/us-ssn", + }, + {% endif -%} ], "relationship": [ { {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/Relationship', CWE: NK1.3 -%} }, + { + {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/Relationship', CWE: GT1.11 -%} + }, + { + {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/Relationship', CWE: IN1.17 -%} + }, + {% if IAM.15.1.Value != "CGV" and IAM.15.1.Value != "SEL" -%} + { + {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/Relationship', CWE: IAM.15 -%} + }, + {% endif -%} { {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/Role', CWE: ROL.3 -%} }, @@ -35,6 +119,27 @@ RelatedPerson_Patient_ID: A resource Id, used to fill "patient.reference" proper { {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/Participation', CWE: PRT.4 -%} }, + {% if PID.21 -%} + { + "coding": [ + { + "code": "MTH", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + }, + {% endif -%} + {% if IN2_3.3 -%} + { + "coding": [ + { + "code": "E", + "display": "Employer", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131" + } + ] + }, + {% endif -%} ], {% include 'DataType/XCNRelatedPerson' XCN: ROL.4 -%} "period": @@ -51,15 +156,29 @@ RelatedPerson_Patient_ID: A resource Id, used to fill "patient.reference" proper { {% include 'DataType/XAD' XAD: ROL.11 -%} }, - { - {% include 'DataType/XAD' XAD: NK1.4.Repeats[0] -%} - }, - { - {% include 'DataType/XAD' XAD: NK1.32 -%} - }, + {% for nk14 in NK1.4.Repeats -%} + { + {% include 'DataType/XAD' XAD: nk14 -%} + }, + {% endfor -%} + {% for nk132 in NK1.32.Repeats -%} + { + {% include 'DataType/XAD' XAD: nk132 -%} + }, + {% endfor -%} { {% include 'DataType/XAD' XAD: PRT.14.Repeats[0] -%} }, + {% for gt1_5 in GT1.5.Repeats -%} + { + {% include 'DataType/XAD' XAD: gt1_5 -%} + }, + {% endfor -%} + {% for in1_19 in IN1.19.Repeats -%} + { + {% include 'DataType/XAD' XAD: in1_19 -%} + }, + {% endfor -%} ], "telecom": [ @@ -71,15 +190,19 @@ RelatedPerson_Patient_ID: A resource Id, used to fill "patient.reference" proper {% include 'DataType/XTN' XTN: n -%} }, {% endfor -%} - { - {% include 'DataType/XTN' XTN: NK1.6 -%} - {% if NK1.6 -%} - "use":"work", - {% endif -%} - }, - { - {% include 'DataType/XTN' XTN: NK1.31 -%} - }, + {% for nk16 in NK1.6.Repeats -%} + { + {% include 'DataType/XTN' XTN: nk16 -%} + {% if nk16.2 == null -%} + "use":"work", + {% endif -%} + }, + {% endfor -%} + {% for nk131 in NK1.31.Repeats -%} + { + {% include 'DataType/XTN' XTN: nk131 -%} + }, + {% endfor -%} { {% include 'DataType/XTN' XTN: NK1.40 -%} }, @@ -89,18 +212,84 @@ RelatedPerson_Patient_ID: A resource Id, used to fill "patient.reference" proper { {% include 'DataType/XTN' XTN: PRT.15.Repeats[0] -%} }, + {% for gt1_6 in GT1.6.Repeats -%} + { + {% include 'DataType/XTN' XTN: gt1_6 -%} + "use":"home", + }, + {% endfor -%} + {% for gt1_7 in GT1.7.Repeats -%} + { + {% include 'DataType/XTN' XTN: gt1_7 -%} + "use":"work", + }, + {% endfor -%} + {% for in2_63 in IN2.63.Repeats -%} + { + {% include 'DataType/XTN' XTN: in2_63 -%} + }, + {% endfor -%} + {% for in2_64 in IN2_3.64.Repeats -%} + { + {% include 'DataType/XTN' XTN: in2_64 -%} + }, + {% endfor -%} ], "name": [ - { - {% include 'DataType/XPN' XPN: NK1.2.Repeats[0] -%} - }, - { - {% include 'DataType/XPN' XPN: NK1.30 -%} - }, + {% for nk1 in NK1.2.Repeats -%} + { + {% include 'DataType/XPN' XPN: nk1 -%} + }, + {% endfor -%} + {% for nk1_30 in NK1.30.Repeats -%} + { + {% include 'DataType/XPN' XPN: nk1_30 -%} + }, + {% endfor -%} + {% if IAM.14 -%} + { + {% include 'DataType/XPN' XPN: IAM.14 -%} + }, + {% endif -%} + {% for gt1 in GT1.3.Repeats -%} + { + {% include 'DataType/XPN' XPN: gt1 -%} + }, + {% endfor -%} + {% if GT1.11.1.Value == "SPO" -%} + {% for gt1_4 in GT1.4.Repeats -%} + { + {% include 'DataType/XPN' XPN: gt1_4 -%} + }, + {% endfor -%} + {% endif -%} + {% for in1_16 in IN1.16.Repeats -%} + { + {% include 'DataType/XPN' XPN: in1_16 -%} + }, + {% endfor -%} ], - "gender":"{{ NK1.15.Value | get_property: 'CodeSystem/Gender', 'code' }}", + {% if NK1.15 -%} + "gender":{% include 'DataType/CWECode' mapping: 'CodeSystem/Gender', CWE: NK1.15 -%}, + {% endif -%} + {% unless NK1.15 -%} + {% if GT1.9 -%} + "gender":{% include 'DataType/CWECode' mapping: 'CodeSystem/Gender', CWE: GT1.9 -%}, + {% endif -%} + {% endunless -%} + {% unless NK1_IN1.8 -%} + {% if IN1.43 -%} + "gender":{% include 'DataType/CWECode' mapping: 'CodeSystem/Gender', CWE: IN1.43 -%}, + {% endif -%} + {% endunless -%} "birthDate":"{{ NK1.16.Value | add_hyphens_date }}", + {% unless NK1.16 -%} + "birthDate":"{{ GT1.8.Value | add_hyphens_date }}", + {% endunless -%} + {% unless NK1_IN1.16 -%} + "birthDate":"{{ IN1.18.Value | add_hyphens_date }}", + {% endunless -%} "communication": [ { @@ -109,12 +298,33 @@ RelatedPerson_Patient_ID: A resource Id, used to fill "patient.reference" proper {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/Language', CWE: NK1.20 -%} }, }, + {% unless NK1.20 -%} + { + "language": + { + {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/Language', CWE: GT1.36 -%} + }, + {% if GT1.36 -%} + "preferred":true, + {% endif -%} + }, + {% endunless -%} + { + "language": + { + {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/Language', CWE: IN2.34 -%} + }, + {% if IN2.34 -%} + "preferred":true, + {% endif -%} + }, ], {% include 'DataType/XCNRelatedPerson' XCN: PRT.5.Repeats[0] -%} "patient": { "reference":"{{ RelatedPerson_Patient_ID }}", }, + {% include 'DataType/XCNRelatedPerson' XCN: IN2_3.3.Repeats[0] -%} }, "request":{ "method":"PUT", diff --git a/data/Templates/Hl7v2/Resource/_ServiceRequest.liquid b/data/Templates/Hl7v2/Resource/_ServiceRequest.liquid index eff7cbc67..30d769150 100644 --- a/data/Templates/Hl7v2/Resource/_ServiceRequest.liquid +++ b/data/Templates/Hl7v2/Resource/_ServiceRequest.liquid @@ -1,6 +1,7 @@ {% comment -%} The following reference IDs are accepted by this template. +Practitioner_ID_NTE_5: A resource Id, used to fill "note.reference" property. The resource is of "Practitioner" type and generated based on "NTE.5" HL7 V2 identifier. PractitionerRole_ID_ORC_12: A resource Id, used to fill "requester.reference" property. The resource is of "PractitionerRole" type and generated based on "ORC.12" HL7 V2 identifier. Organization_ID_ORC_21: A resource Id, used to fill "requester.reference" property. The resource is of "Organization" type and generated based on "ORC.21" HL7 V2 identifier. Practitioner_ID_OBR_10: A resource Id, used to fill "specimen.reference" property. The resource is of "Practitioner" type and generated based on "OBR.10" HL7 V2 identifier. @@ -9,26 +10,48 @@ ServiceRequest_Subject_ID: A resource Id, used to fill "subject.reference" prope ServiceRequest_Encounter_ID: A resource Id, used to fill "encounter.reference" property. {% endcomment -%} + +{% evaluate Practitioner_ID_NTE_5 using 'ID/Practitioner' XCN: NTE.5 -%} {% evaluate Organization_ID_ORC_21 using 'ID/Organization' CWE: ORC.21 -%} {% evaluate Practitioner_ID_OBR_10 using 'ID/Practitioner' XCN: OBR.10 -%} +{% evaluate Organization_ID_RF1_19 using 'ID/Organization' XON: RF1.19 -%} +{% evaluate Practitioner_ID_RF1_20 using 'ID/Practitioner' XCN: RF1.20 -%} { "fullUrl":"urn:uuid:{{ ID }}", "resource":{ "resourceType": "ServiceRequest", "id":"{{ ID }}", + "status":"{{ ORC.5.Value | get_property: 'CodeSystem/OrderStatus', 'code' }}", - {% if ORC.1 -%} - "intent":"order", + + {% if RF1.1 -%} + "status": {% include 'DataType/CWECode' mapping: 'CodeSystem/RequestStatus', CWE: RF1.1 -%}, {% endif -%} - {% if OBR.11.Value == "G" -%} - "intent":"reflex-order", + + {% if RF1.25.Value == "D" -%} + "status": "entered-in-error", {% endif -%} - {% if OBR.11.Value != "G" -%} + + {% if RF1 -%} + "intent": "order", + {% endif%} + + {% if ORC.1 -%} "intent":"order", {% endif -%} + + {% if OBR.11.Value%} + {% if OBR.11.Value == "G" -%} + "intent":"reflex-order", + {% else -%} + "intent":"order", + {% endif -%} + {% endif -%} + "identifier": - [ + [ + {% if OBR %} { {% if OBR.2 == null -%} {% include 'DataType/EIIdentifier' EI: ORC.2 -%} @@ -66,6 +89,7 @@ ServiceRequest_Encounter_ID: A resource Id, used to fill "encounter.reference" p ], }, }, + {% endif %} { {% include 'DataType/EIIdentifier' EI: ORC.3 -%} "type": @@ -111,10 +135,40 @@ ServiceRequest_Encounter_ID: A resource Id, used to fill "encounter.reference" p { {% include 'DataType/EIIdentifier' EI: OBR.53 -%} }, + { + {% include 'DataType/EIIdentifier' EI: RF1.6 -%} + }, + {% for r in RF1.11.Repeats -%} + {% if r.Value != RF1.6.Value -%} + { + {% include 'DataType/EIIdentifier' EI: r -%} + }, + {% endif -%} + {% endfor -%} + ], {% if ORC.1.Value -%} "authoredOn":"{{ ORC.9.Value | format_as_date_time }}", {% endif -%} + "authoredOn":"{{ RF1.7.Value | format_as_date_time }}", + {% unless RF1.7.Value -%} + "authoredOn":"{{ RF1.9.Value | format_as_date_time }}", + {% endunless -%} + "performer": [ + {% if RF1.19 and Organization_ID_RF1_19 -%} + { + "reference": "Organization/{{Organization_ID_RF1_19}}", + }, + {% endif -%} + {% if RF1.20 and Practitioner_ID_RF1_20-%} + { + "reference": "Practitioner/{{Practitioner_ID_RF1_20}}", + }, + {% endif -%} + ], + "performerType" : { + {% include 'DataType/CWECodeableConcept', CWE: RF1.3 -%} + }, "occurrenceDateTime":"{{ ORC.15.Value | format_as_date_time }}", "occurrenceDateTime":"{{ OBR.6.Value | format_as_date_time }}", "locationCode": @@ -123,6 +177,19 @@ ServiceRequest_Encounter_ID: A resource Id, used to fill "encounter.reference" p {% include 'DataType/CWECodeableConcept' mapping: 'CodeSystem/OrderType', CWE: ORC.29 -%} }, ], + "note": [ + { + "text": "{{NTE.3.Value}}", + "text": "{{ RF1.24.Value }}", + "time": "{{ NTE.6.Value | format_as_date_time }}", + {% if Practitioner_ID_NTE_5%} + "authorReference": + { + "reference":"Practitioner/{{ Practitioner_ID_NTE_5 }}", + } + {% endif %} + } + ], "requester": { {% if ORC.12 and PractitionerRole_ID_ORC_12 -%} @@ -154,7 +221,11 @@ ServiceRequest_Encounter_ID: A resource Id, used to fill "encounter.reference" p }, }, "priority":"{{ TQ1.9.Value }}", + {% if RF1.2 -%} + "priority": {% include 'DataType/CWECode' mapping: 'CodeSystem/RequestPriority', CWE: RF1.2 -%}, + {% endif -%} "priority":"{{ OBR.5.Value | get_property: 'CodeSystem/Priority', 'code' }}", + "code": { {% include 'DataType/CWECodeableConcept' CWE: OBR.4 -%} @@ -164,6 +235,14 @@ ServiceRequest_Encounter_ID: A resource Id, used to fill "encounter.reference" p { {% include 'DataType/CWECodeableConcept' CWE: OBR.31 -%} }, + {% for r in RF1.10.Repeats -%} + { + {% include 'DataType/CWECodeableConcept', CWE: r -%} + {% if r.9.Value == null or r.9.Value == '' -%} + "text":"{{ RF1.14.Value }}", + {% endif -%} + }, + {% endfor -%} ], "specimen": [ diff --git a/data/Templates/Hl7v2/VXU_V04.liquid b/data/Templates/Hl7v2/VXU_V04.liquid index 26c282190..4778e6706 100644 --- a/data/Templates/Hl7v2/VXU_V04.liquid +++ b/data/Templates/Hl7v2/VXU_V04.liquid @@ -19,33 +19,139 @@ {% evaluate patientId using 'ID/Patient' PID: firstSegments.PID, type: 'First' -%} {% assign fullPatientId = patientId | prepend: 'Patient/' -%} {% include 'Resource/Patient' PID: firstSegments.PID, PD1: firstSegments.PD1, ID: patientId -%} + {% include 'Extensions/Patient/PatientExtension' ID: PatientId, PID: firstSegments.PID, PV1: firstSegments.PV1 -%} {% evaluate practitionerId10_ORC_10 using 'ID/Practitioner' XCN: firstSegments.ORC.10 -%} {% evaluate practitionerId10_ORC_11 using 'ID/Practitioner' XCN: firstSegments.ORC.11 -%} {% evaluate practitionerId10_ORC_12 using 'ID/Practitioner' XCN: firstSegments.ORC.12 -%} - {% evaluate practitionerId7_PV1_7 using 'ID/Practitioner' XCN: firstSegments.PV1.7 -%} - {% evaluate practitionerId7_PV1_8 using 'ID/Practitioner' XCN: firstSegments.PV1.8 -%} - {% evaluate practitionerId7_PV1_9 using 'ID/Practitioner' XCN: firstSegments.PV1.9 -%} - {% evaluate practitionerId7_PV1_17 using 'ID/Practitioner' XCN: firstSegments.PV1.17 -%} - {% evaluate practitionerId7_PV1_52 using 'ID/Practitioner' XCN: firstSegments.PV1.52 -%} {% include 'Resource/Practitioner' ORC: firstSegments.ORC, ID: practitionerId10_ORC_10 -%} {% include 'Resource/Practitioner' ORC: firstSegments.ORC, ID: practitionerId10_ORC_11 -%} {% include 'Resource/Practitioner' ORC: firstSegments.ORC, ID: practitionerId10_ORC_12 -%} - {% include 'Resource/Practitioner' PV1: firstSegments.PV1, ID: practitionerId7_PV1_7 -%} - {% include 'Resource/Practitioner' PV1: firstSegments.PV1, ID: practitionerId7_PV1_8 -%} - {% include 'Resource/Practitioner' PV1: firstSegments.PV1, ID: practitionerId7_PV1_9 -%} - {% include 'Resource/Practitioner' PV1: firstSegments.PV1, ID: practitionerId7_PV1_17 -%} - {% include 'Resource/Practitioner' PV1: firstSegments.PV1, ID: practitionerId7_PV1_52 -%} - {% evaluate locationId_ORC_21 using 'ID/Location' XON: firstSegments.ORC.21 -%} - {% evaluate locationId3_PV1_3 using 'ID/Location' PL: firstSegments.PV1.3 -%} - {% evaluate locationId3_PV1_6 using 'ID/Location' PL: firstSegments.PV1.6 -%} + {% if firstSegments.PV1.5 -%} + {% if firstSegments.PV1.5.4.1 != "" and firstSegments.PV1.5.4.1 != null and firstSegments.PV1.5.4.2 != "" and firstSegments.PV1.5.4.2 != null and firstSegments.PV1.5.4.3 != "" and firstSegments.PV1.5.4.3 != null -%} + {% evaluate Organization_ID_PV1_5_4 using 'ID/Organization' HDORG: firstSegments.PV1.5.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.5.4, ID: Organization_ID_PV1_5_4 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PV1.19 -%} + {% if firstSegments.PV1.19.4.1 != "" and firstSegments.PV1.19.4.1 != null and firstSegments.PV1.19.4.2 != "" and firstSegments.PV1.19.4.2 != null and firstSegments.PV1.19.4.3 != "" and firstSegments.PV1.19.4.3 != null -%} + {% evaluate Organization_ID_PV1_19_4 using 'ID/Organization' HDORG: firstSegments.PV1.19.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.19.4, ID: Organization_ID_PV1_19_4 -%} + {% endif -%} + {% endif -%} + + {% if firstSegments.PV1.7 -%} + {% if firstSegments.PV1.7.9.1 != "" and firstSegments.PV1.7.9.1 != null and firstSegments.PV1.7.9.2 != "" and firstSegments.PV1.7.9.2 != null and firstSegments.PV1.7.9.3 != "" and firstSegments.PV1.7.9.3 != null -%} + {% evaluate Organization_ID_PV1_7_9 using 'ID/Organization' HDORG: firstSegments.PV1.7.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.7.9, ID: Organization_ID_PV1_7_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_7 using 'ID/Practitioner' XCN: firstSegments.PV1.7 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.7, ID: practitionerId_PV1_7 -%} + {% endif -%} + + {% if firstSegments.PV1.8 -%} + {% if firstSegments.PV1.8.9.1 != "" and firstSegments.PV1.8.9.1 != null and firstSegments.PV1.8.9.2 != "" and firstSegments.PV1.8.9.2 != null and firstSegments.PV1.8.9.3 != "" and firstSegments.PV1.8.9.3 != null -%} + {% evaluate Organization_ID_PV1_8_9 using 'ID/Organization' HDORG: firstSegments.PV1.8.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.8.9, ID: Organization_ID_PV1_8_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_8 using 'ID/Practitioner' XCN: firstSegments.PV1.8 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.8, ID: practitionerId_PV1_8 -%} + {% endif -%} + + {% if firstSegments.PV1.9 -%} + {% if firstSegments.PV1.9.9.1 != "" and firstSegments.PV1.9.9.1 != null and firstSegments.PV1.9.9.2 != "" and firstSegments.PV1.9.9.2 != null and firstSegments.PV1.9.9.3 != "" and firstSegments.PV1.9.9.3 != null -%} + {% evaluate Organization_ID_PV1_9_9 using 'ID/Organization' HDORG: firstSegments.PV1.9.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.9.9, ID: Organization_ID_PV1_9_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_9 using 'ID/Practitioner' XCN: firstSegments.PV1.9 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.9, ID: practitionerId_PV1_9 -%} + {% endif -%} + + {% if firstSegments.PV1.17 -%} + {% if firstSegments.PV1.17.9.1 != "" and firstSegments.PV1.17.9.1 != null and firstSegments.PV1.17.9.2 != "" and firstSegments.PV1.17.9.2 != null and firstSegments.PV1.17.9.3 != "" and firstSegments.PV1.17.9.3 != null -%} + {% evaluate Organization_ID_PV1_17_9 using 'ID/Organization' HDORG: firstSegments.PV1.17.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.17.9, ID: Organization_ID_PV1_17_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_17 using 'ID/Practitioner' XCN: firstSegments.PV1.17 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.17, ID: practitionerId_PV1_17 -%} + {% endif -%} + + {% if firstSegments.PV1.50 -%} + {% for p in firstSegments.PV1.50.Repeats -%} + {% if p.4.1 != "" and p.4.1 != null and p.4.2 != "" and p.4.2 != null and p.4.3 != "" and p.4.3 != null -%} + {% evaluate Organization_ID_PV1_50_4 using 'ID/Organization' HDORG: p.4 -%} + {% include 'Resource/Organization', PV1: p.4, ID: Organization_ID_PV1_50_4 -%} + {% endif -%} + {% endfor -%} + {% endif -%} + + {% if firstSegments.PV1.52 -%} + {% if firstSegments.PV1.52.9.1 != "" and firstSegments.PV1.52.9.1 != null and firstSegments.PV1.52.9.2 != "" and firstSegments.PV1.52.9.2 != null and firstSegments.PV1.52.9.3 != "" and firstSegments.PV1.52.9.3 != null -%} + {% evaluate Organization_ID_PV1_52_9 using 'ID/Organization' HDORG: firstSegments.PV1.52.9 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.52.9, ID: Organization_ID_PV1_52_9 -%} + {% endif -%} + {% evaluate practitionerId_PV1_52 using 'ID/Practitioner' XCN: firstSegments.PV1.52 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV1.52, ID: practitionerId_PV1_52 -%} + {% endif -%} + + {% if firstSegments.PV2.13 -%} + {% if firstSegments.PV2.13.9.1 != "" and firstSegments.PV2.13.9.1 != null and firstSegments.PV2.13.9.2 != "" and firstSegments.PV2.13.9.2 != null and firstSegments.PV2.13.9.3 != "" and firstSegments.PV2.13.9.3 != null -%} + {% evaluate Organization_ID_PV2_13_9 using 'ID/Organization' HDORG: firstSegments.PV2.13.9 -%} + {% include 'Resource/Organization', PV2: firstSegments.PV2.13.9, ID: Organization_ID_PV2_13_9 -%} + {% endif -%} + {% evaluate practitionerId_PV2_13 using 'ID/Practitioner' XCN: firstSegments.PV2.13 -%} + {% include 'Resource/Practitioner' PV1: firstSegments.PV2.13, ID: practitionerId_PV2_13 -%} + {% endif -%} + + {% if firstSegments.EVN.5 -%} + {% if firstSegments.EVN.5.9.1 != "" and firstSegments.EVN.5.9.1 != null and firstSegments.EVN.5.9.2 != "" and firstSegments.EVN.5.9.2 != null and firstSegments.EVN.5.9.3 != "" and firstSegments.EVN.5.9.3 != null -%} + {% evaluate Organization_ID_EVN_5_9 using 'ID/Organization' HDORG: firstSegments.EVN.5.9 -%} + {% include 'Resource/Organization', EVN: firstSegments.EVN.5.9, ID: Organization_ID_EVN_5_9 -%} + {% endif -%} + {% evaluate practitionerId_EVN_5 using 'ID/Practitioner' XCN: firstSegments.EVN.5 -%} + {% include 'Resource/Practitioner' EVN: firstSegments.EVN.5, ID: practitionerId_EVN_5 -%} + {% endif -%} + + {% if firstSegments.PD1.4 -%} + {% if firstSegments.PD1.4.9.1 != "" and firstSegments.PD1.4.9.1 != null and firstSegments.PD1.4.9.2 != "" and firstSegments.PD1.4.9.2 != null and firstSegments.PD1.4.9.3 != "" and firstSegments.PD1.4.9.3 != null -%} + {% evaluate Organization_ID_PD1_4_9 using 'ID/Organization' HDORG: firstSegments.PD1.4.9 -%} + {% include 'Resource/Organization', PD1_4: firstSegments.PD1.4.9, ID: Organization_ID_PD1_4_9 -%} + {% endif -%} + {% evaluate Practitioner_ID_PD1_4 using 'ID/Practitioner' XCN: firstSegments.PD1.4 -%} + {% include 'Resource/Practitioner' PD1: firstSegments.PD1.4, ID: Practitioner_ID_PD1_4 -%} + {% endif -%} + {% evaluate locationId_ORC_21 using 'ID/Location' XON: firstSegments.ORC.21 -%} {% include 'Resource/Location' ORC: firstSegments.ORC, ID: locationId_ORC_21 -%} - {% include 'Resource/Location' PL: firstSegments.PV1.3, ID: locationId3_PV1_3 -%} - {% include 'Resource/Location' PL: firstSegments.PV1.6, ID: locationId3_PV1_6 -%} + {% if firstSegments.PV1.3 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.3-%} + {% endif -%} + + {% if firstSegments.PV1.6 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.6 -%} + {% endif -%} + + {% if firstSegments.PV1.37 -%} + {% evaluate location_ID_PV1_37 using 'ID/Location' DLD: firstSegments.PV1.37 -%} + {% include 'Resource/Location' PV1: firstSegments.PV1.37, ID: location_ID_PV1_37-%} + {% endif -%} + + {% if firstSegments.PV1.42 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.42-%} + {% endif -%} + + {% if firstSegments.PV1.43 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV1.43-%} + {% endif -%} + + {% if firstSegments.PV2.1 -%} + {% include 'Resource/PLLocation' PL: firstSegments.PV2.1-%} + {% endif -%} + {% evaluate provenanceId using 'ID/Provenance' MSH: firstSegments.MSH, baseId: patientId -%} {% include 'Resource/Provenance' Root_Template: 'VXU_V04', MSH: firstSegments.MSH, ORC: firstSegments.ORC, ID: provenanceId -%} @@ -53,10 +159,20 @@ {% include 'Resource/Account' PID: firstSegments.PID, ID: accountId -%} {% include 'Reference/Account/Subject' ID: accountId, REF: fullPatientId -%} + {% if firstSegments.PV1.54 -%} + {% if firstSegments.PV1.54.4.1 != "" and firstSegments.PV1.54.4.1 != null and firstSegments.PV1.54.4.2 != "" and firstSegments.PV1.54.4.2 != null and firstSegments.PV1.54.4.3 != "" and firstSegments.PV1.54.4.3 != null -%} + {% evaluate Organization_ID_PV1_54_4 using 'ID/Organization' HDORG: firstSegments.PV1.54.4 -%} + {% include 'Resource/Organization', PV1: firstSegments.PV1.54.4, ID: Organization_ID_PV1_54_4 -%} + {% endif -%} + {% evaluate EpisodeOfCare_ID using 'ID/EpisodeOfCare' PV1: firstSegments.PV1.54 -%} + {% include 'Resource/EpisodeOfCare' PV1: firstSegments.PV1, ID: EpisodeOfCare_ID, patientRefrenceID: fullPatientId -%} + {% endif -%} + {% evaluate encounterId using 'ID/Encounter' PV1: firstSegments.PV1, baseId: patientId -%} - {% include 'Resource/Encounter' PV1: firstSegments.PV1, PV2: firstSegments.PV2, ID: encounterId -%} + {% include 'Resource/Encounter' Root_Template: 'VXU_V04', PV1: firstSegments.PV1, PV2: firstSegments.PV2, ID: encounterId -%} {% include 'Reference/Encounter/Subject' ID: encounterId, REF: fullPatientId -%} - + {% include 'Extensions/Encounter/EncounterExtension' ID: encounterId, PV1: firstSegments.PV1, PV2: firstSegments.PV2, -%} + {% for nk1Segment in nk1SegmentLists.NK1 -%} {% evaluate organizationId_NK1_13 using 'ID/Organization' XON: nk1Segment.13 -%} {% include 'Resource/Organization' NK1: nk1Segment, ID: organizationId_NK1_13 -%} diff --git a/release.yml b/release.yml index 012a689bd..0230ae953 100644 --- a/release.yml +++ b/release.yml @@ -8,6 +8,7 @@ trigger: pr: - dotliquid - main +- xoriant/* variables: solution: '**/*.sln' diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/FunctionalTests.cs b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/FunctionalTests.cs index 5c194459e..5f8434b38 100644 --- a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/FunctionalTests.cs +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/FunctionalTests.cs @@ -24,11 +24,38 @@ public static IEnumerable GetDataForHl7v2() { var data = new List { + new[] { @"ADT_A01", @"ADT_A01.hl7", @"ADT-A01-expected.json" }, + new[] { @"ADT_A01", @"ADT_A01-2.hl7", @"ADT-A01-expected-2.json" }, + new[] { @"ADT_A02", @"ADT_A02.hl7", @"ADT-A02-expected.json" }, + new[] { @"ADT_A02", @"ADT_A02-2.hl7", @"ADT-A02-expected-2.json" }, + new[] { @"ADT_A03", @"ADT_A03.hl7", @"ADT-A03-expected.json" }, + new[] { @"ADT_A03", @"ADT_A03-2.hl7", @"ADT-A03-expected-2.json" }, + new[] { @"ADT_A04", @"ADT_A04.hl7", @"ADT-A04-expected.json" }, + new[] { @"ADT_A04", @"ADT_A04-2.hl7", @"ADT-A04-expected-2.json" }, + new[] { @"ADT_A05", @"ADT_A05.hl7", @"ADT-A05-expected.json" }, + new[] { @"ADT_A05", @"ADT_A05-2.hl7", @"ADT-A05-expected-2.json" }, + new[] { @"ADT_A08", @"ADT_A08.hl7", @"ADT-A08-expected.json" }, + new[] { @"ADT_A08", @"ADT_A08-2.hl7", @"ADT-A08-expected-2.json" }, + new[] { @"ADT_A14", @"ADT_A14.hl7", @"ADT-A14-expected.json" }, + new[] { @"ADT_A14", @"ADT_A14-2.hl7", @"ADT-A14-expected-2.json" }, + new[] { @"ADT_A15", @"ADT_A15.hl7", @"ADT-A15-expected.json" }, + new[] { @"ADT_A15", @"ADT_A15-2.hl7", @"ADT-A15-expected-2.json" }, + new[] { @"ADT_A16", @"ADT_A16.hl7", @"ADT-A16-expected.json" }, + new[] { @"ADT_A16", @"ADT_A16-2.hl7", @"ADT-A16-expected-2.json" }, + new[] { @"ADT_A28", @"ADT_A28.hl7", @"ADT-A28-expected.json" }, + new[] { @"ADT_A28", @"ADT_A28-2.hl7", @"ADT-A28-expected-2.json" }, + new[] { @"ADT_A31", @"ADT_A31.hl7", @"ADT-A31-expected.json" }, + new[] { @"ADT_A31", @"ADT_A31-2.hl7", @"ADT-A31-expected-2.json" }, + new[] { @"ADT_A47", @"ADT_A47.hl7", @"ADT-A47-expected.json" }, + new[] { @"ADT_A47", @"ADT_A47-2.hl7", @"ADT-A47-expected-2.json" }, + new[] { @"ADT_A60", @"ADT_A60.hl7", @"ADT-A60-expected.json" }, + new[] { @"ADT_A60", @"ADT_A60-2.hl7", @"ADT-A60-expected-2.json" }, + new[] { @"ADT_A01", @"ADT01-23.hl7", @"ADT01-23-expected.json" }, new[] { @"ADT_A01", @"ADT01-28.hl7", @"ADT01-28-expected.json" }, - new[] { @"ADT_A01", @"ADT04-23.hl7", @"ADT04-23-expected.json" }, - new[] { @"ADT_A01", @"ADT04-251.hl7", @"ADT04-251-expected.json" }, - new[] { @"ADT_A01", @"ADT04-28.hl7", @"ADT04-28-expected.json" }, + new[] { @"ADT_A04", @"ADT04-23.hl7", @"ADT04-23-expected.json" }, + new[] { @"ADT_A04", @"ADT04-251.hl7", @"ADT04-251-expected.json" }, + new[] { @"ADT_A04", @"ADT04-28.hl7", @"ADT04-28-expected.json" }, new[] { @"OML_O21", @"MDHHS-OML-O21-1.hl7", @"MDHHS-OML-O21-1-expected.json" }, new[] { @"OML_O21", @"MDHHS-OML-O21-2.hl7", @"MDHHS-OML-O21-2-expected.json" }, new[] { @"ORU_R01", @"LAB-ORU-1.hl7", @"LAB-ORU-1-expected.json" }, diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/RuleBasedTests.cs b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/RuleBasedTests.cs index 0868701ec..5249537a9 100644 --- a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/RuleBasedTests.cs +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/RuleBasedTests.cs @@ -47,6 +47,33 @@ public static IEnumerable GetHL7V2Cases() { var cases = new List { + new object[] { "ADT_A01", "ADT_A01.hl7" }, + new object[] { "ADT_A01", "ADT_A01-2.hl7" }, + new object[] { "ADT_A02", "ADT_A02.hl7" }, + new object[] { "ADT_A02", "ADT_A02-2.hl7" }, + new object[] { "ADT_A03", "ADT_A03.hl7" }, + new object[] { "ADT_A03", "ADT_A03-2.hl7" }, + new object[] { "ADT_A04", "ADT_A04.hl7" }, + new object[] { "ADT_A04", "ADT_A04-2.hl7" }, + new object[] { "ADT_A05", "ADT_A05.hl7" }, + new object[] { "ADT_A05", "ADT_A05-2.hl7" }, + new object[] { "ADT_A08", "ADT_A08.hl7" }, + new object[] { "ADT_A08", "ADT_A08-2.hl7" }, + new object[] { "ADT_A14", "ADT_A14.hl7" }, + new object[] { "ADT_A14", "ADT_A14-2.hl7" }, + new object[] { "ADT_A15", "ADT_A15.hl7" }, + new object[] { "ADT_A15", "ADT_A15-2.hl7" }, + new object[] { "ADT_A16", "ADT_A16.hl7" }, + new object[] { "ADT_A16", "ADT_A16-2.hl7" }, + new object[] { "ADT_A28", "ADT_A28.hl7" }, + new object[] { "ADT_A28", "ADT_A28-2.hl7" }, + new object[] { "ADT_A31", "ADT_A31.hl7" }, + new object[] { "ADT_A31", "ADT_A31-2.hl7" }, + new object[] { "ADT_A47", "ADT_A47.hl7" }, + new object[] { "ADT_A47", "ADT_A47-2.hl7" }, + new object[] { "ADT_A60", "ADT_A60.hl7" }, + new object[] { "ADT_A60", "ADT_A60-2.hl7" }, + new object[] { "ADT_A01", "ADT01-23.hl7" }, new object[] { "ADT_A01", "ADT01-28.hl7" }, new object[] { "VXU_V04", "VXU.hl7" }, @@ -386,12 +413,15 @@ internal static class ResourceFilter private static readonly HashSet _explicitProps = new HashSet { "resourceType", "type", "fullUrl", "id", "method", "url", "reference", "system", - "code", "display", "gender", "use", "preferred", "status", "mode", "div", + "code", "display", "gender", "use", "preferred", "status", "mode", "div", "valueString", "valueCode", + "text", "endpoint", "value", "category", "type", "criticality", "priority", "severity", "description", }; private static readonly HashSet _explicitValues = new HashSet { "order", + "unknown", + "source", }; public static readonly List> NonCompareProperties = new List> diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A01/ADT-A01-expected-2.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A01/ADT-A01-expected-2.json new file mode 100644 index 000000000..6461ef5d6 --- /dev/null +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A01/ADT-A01-expected-2.json @@ -0,0 +1,2130 @@ +{ + "resourceType": "Bundle", + "type": "batch", + "timestamp": "1989-08-18T14:41:00+05:30", + "identifier": { + "value": "MSG00001" + }, + "id": "513a3d06-5e87-6fbc-ad1b-170ab430499f", + "entry": [ + { + "fullUrl": "urn:uuid:b4ca189b-51ae-33df-cbe2-559b4423a321", + "resource": { + "resourceType": "MessageHeader", + "id": "b4ca189b-51ae-33df-cbe2-559b4423a321", + "source": { + "name": "24GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.20" + }, + "destination": [ + { + "name": "25GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.23", + "receiver": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + } + ], + "meta": { + "security": [ + { + "display": "SECURITY", + "system": "http://example.com/v2-to-fhirconverter/security-label" + } + ], + "tag": [ + { + "code": "P", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "A01", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ADT^A01^ADT_A01" + }, + "language": "en-US", + "sender": { + "reference": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + }, + "responsible": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + "request": { + "method": "PUT", + "url": "MessageHeader/b4ca189b-51ae-33df-cbe2-559b4423a321" + } + }, + { + "fullUrl": "urn:uuid:f65d2168-02c8-1897-210d-361176172856", + "resource": { + "resourceType": "Provenance", + "id": "f65d2168-02c8-1897-210d-361176172856", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T12:34:25.014Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ADT_A01.

" + }, + "occurredDateTime": "1989-08-18T14:41:00+05:30", + "recorded": "1989-08-18T14:41:00+05:30", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + } + ], + "activity": { + "coding": [ + { + "display": "ADT^A01^ADT_A01" + } + ] + }, + "entity": [ + { + "role": "source", + "what": { + "reference": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + } + ], + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/f65d2168-02c8-1897-210d-361176172856" + } + }, + { + "fullUrl": "urn:uuid:4356fb81-6ecd-2d70-57b1-47812638e785", + "resource": { + "resourceType": "Organization", + "id": "4356fb81-6ecd-2d70-57b1-47812638e785", + "identifier": [ + { + "value": "GHHSFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHSFacility" + }, + { + "value": "urn:oid:2.16.840.1.122848.1.30", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + } + }, + { + "fullUrl": "urn:uuid:62781ad6-3896-cb63-0178-ead0c4a432b5", + "resource": { + "resourceType": "Organization", + "id": "62781ad6-3896-cb63-0178-ead0c4a432b5", + "identifier": [ + { + "value": "GHHRFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHRFacility" + }, + { + "value": "urn:oid:2.16.840.1.1122848.1.32", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/62781ad6-3896-cb63-0178-ead0c4a432b5" + } + }, + { + "fullUrl": "urn:uuid:33532a82-d220-4c0d-1abe-53e48951c201", + "resource": { + "resourceType": "Organization", + "id": "33532a82-d220-4c0d-1abe-53e48951c201", + "name": "22 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + { + "fullUrl": "urn:uuid:527280c1-34d1-c639-e9ba-61986d28e266", + "resource": { + "resourceType": "Organization", + "id": "527280c1-34d1-c639-e9ba-61986d28e266", + "name": "23 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + }, + { + "fullUrl": "urn:uuid:503eb873-22fb-8199-ae28-3604ad59fe13", + "resource": { + "resourceType": "Device", + "id": "503eb873-22fb-8199-ae28-3604ad59fe13", + "identifier": [ + { + "value": "ADTApp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + }, + { + "fullUrl": "urn:uuid:9e909e52-61a1-be50-1878-a12ef8c36346", + "resource": { + "resourceType": "Patient", + "id": "9e909e52-61a1-be50-1878-a12ef8c36346", + "identifier": [ + { + "value": "1234567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "PATID1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "value": "123456789", + "type": { + "coding": [ + { + "code": "SS", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Social Security number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-USSSA" + }, + { + "value": "PATID567", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test2" + }, + { + "value": "PSSN123121234", + "type": { + "coding": [ + { + "code": "SB", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + }, + { + "value": "DLN-123", + "type": { + "coding": [ + { + "code": "DL" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/US", + "period": { + "end": "2001-01-23" + } + } + ], + "name": [ + { + "family": "EVERYMAN", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official", + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + }, + { + "family": "elbert", + "given": [ + "Son" + ] + } + ], + "birthDate": "1988-08-18", + "_birthDate": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime": "1988-08-18T14:41:00+05:30" + } + ] + }, + "gender": "male", + "address": [ + { + "line": [ + "1000", + "Hospital Lane", + "Ste. 123", + "Near Highway" + ], + "city": "Ann Arbor ", + "state": "MI", + "postalCode": "99999", + "country": "USA", + "type": "postal", + "district": "W", + "period": { + "start": "2000-01-10", + "end": "2000-01-20" + } + } + ], + "telecom": [ + { + "value": "2222", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18, + "use": "home" + }, + { + "value": "12121212", + "system": "phone", + "use": "home" + }, + { + "value": "7777", + "system": "phone", + "use": "work" + }, + { + "value": "1111", + "system": "other", + "use": "work" + }, + { + "value": "89898989", + "use": "work", + "system": "email" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47", + "version": "v2" + }, + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47", + "version": "v2.1" + } + ], + "text": "TextInEnglish" + }, + "preferred": true + } + ], + "maritalStatus": { + "coding": [ + { + "code": "M", + "display": "Married", + "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" + } + ] + }, + "multipleBirthInteger": 2, + "deceasedDateTime": "2008-08-25T15:31:30+05:30", + "meta": { + "lastUpdated": "2005-01-10T04:05:14+05:30" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "ombCategory", + "valueCoding": { + "code": "2028-9", + "display": "Asian", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White+Asian" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + "valueString": "SMITH--Angela--L" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", + "valueAddress": { + "text": "St. Francis Community Hospital of Lower South Side" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-religion", + "valueCodeableConcept": { + "coding": [ + { + "code": "1002", + "display": "African Religions", + "system": "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2186-5", + "display": "Non Hispanic or Latino", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "Non Hispanic or Latino" + } + ] + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/VeteranMilitaryStatus", + "valueCodeableConcept": { + "coding": [ + { + "code": "Vet123", + "display": "retired", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ART" + } + ], + "text": "retired" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-animal", + "extension": [ + { + "url": "species", + "valueCodeableConcept": { + "coding": [ + { + "code": "125097000", + "display": "Goat", + "system": "http://snomed.info/sct" + } + ], + "text": "Goat" + } + }, + { + "url": "breed", + "valueCodeableConcept": { + "coding": [ + { + "code": "4880003", + "display": "Beagle", + "system": "http://snomed.info/sct" + } + ], + "text": "Beagle" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "US", + "display": "United States of America", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "United States of America" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "CA", + "display": "Canada", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Canada" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-nationality", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "BT", + "display": "Bhutan", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Bhutan" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-importance", + "valueCodeableConcept": { + "coding": [ + { + "code": "VIP", + "display": "Very Important Person", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/L", + "version": "v1.1" + }, + { + "code": "IMP", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/DCM", + "version": "v1.2" + } + ], + "text": "Inportant Person" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + { + "fullUrl": "urn:uuid:78295402-9b84-4829-b945-502ab3402de5", + "resource": { + "resourceType": "Account", + "id": "78295402-9b84-4829-b945-502ab3402de5", + "identifier": [ + { + "value": "4000776", + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Visit number" + } + ] + }, + "system": "urn:oid:2.4", + "assigner": { + "reference": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/78295402-9b84-4829-b945-502ab3402de5" + } + }, + { + "fullUrl": "urn:uuid:9d4c8327-8a28-8152-1898-8251baa707b7", + "resource": { + "resourceType": "Organization", + "id": "9d4c8327-8a28-8152-1898-8251baa707b7", + "identifier": [ + { + "value": "AccMgr", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr" + }, + { + "value": "urn:oid:2.4", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + } + }, + { + "fullUrl": "urn:uuid:b3ad3a9f-d4f6-4638-0a09-2da771733488", + "resource": { + "resourceType": "Organization", + "id": "b3ad3a9f-d4f6-4638-0a09-2da771733488", + "identifier": [ + { + "value": "test1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test1" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "fullUrl": "urn:uuid:f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "resource": { + "resourceType": "Organization", + "id": "f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "identifier": [ + { + "value": "NTH", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NTH" + }, + { + "value": "rt23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + } + }, + { + "fullUrl": "urn:uuid:62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "resource": { + "resourceType": "RelatedPerson", + "id": "62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "identifier": [ + { + "value": "1212121", + "type": { + "coding": [ + { + "code": "AND", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Account number debitor" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "relationship": [ + { + "coding": [ + { + "code": "MTH", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/62b2e1ee-a272-4ffe-692e-a1fbfd49af6a" + } + }, + { + "fullUrl": "urn:uuid:11967e28-8dd4-a112-0fdc-377866bf12a0", + "resource": { + "resourceType": "Organization", + "id": "11967e28-8dd4-a112-0fdc-377866bf12a0", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "2.16.840.1.113883.19", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + } + }, + { + "fullUrl": "urn:uuid:7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "resource": { + "resourceType": "Organization", + "id": "7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "identifier": [ + { + "value": "AccMng", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMng" + }, + { + "value": "1.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + } + }, + { + "fullUrl": "urn:uuid:0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "resource": { + "resourceType": "Organization", + "id": "0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "identifier": [ + { + "value": "PERSONNELt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSONNELt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + } + }, + { + "fullUrl": "urn:uuid:f6775f99-5279-be04-bf81-0906c81f7443", + "resource": { + "resourceType": "Practitioner", + "id": "f6775f99-5279-be04-bf81-0906c81f7443", + "identifier": [ + { + "value": "1122334", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Alaz", + "given": [ + "Mohammed", + "Mahi" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "fullUrl": "urn:uuid:c613d7b2-525f-8c08-a7ac-b2b91486e257", + "resource": { + "resourceType": "Organization", + "id": "c613d7b2-525f-8c08-a7ac-b2b91486e257", + "identifier": [ + { + "value": "TEST", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TEST" + }, + { + "value": "23.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + } + }, + { + "fullUrl": "urn:uuid:04f8cfc8-62ca-12df-63ce-6304ef577d44", + "resource": { + "resourceType": "Practitioner", + "id": "04f8cfc8-62ca-12df-63ce-6304ef577d44", + "identifier": [ + { + "value": "C006", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + }, + "type": { + "coding": [ + { + "code": "BA", + "display": "Bank Account Number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen" + ], + "prefix": [ + "Dr" + ], + "use": "anonymous" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "fullUrl": "urn:uuid:99edcabd-fbeb-7e25-f823-11da8d8ed342", + "resource": { + "resourceType": "Practitioner", + "id": "99edcabd-fbeb-7e25-f823-11da8d8ed342", + "identifier": [ + { + "value": "C008", + "system": "urn:oid:2.8", + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Condoc", + "given": [ + "leen" + ], + "prefix": [ + "Dr" + ], + "use": "temp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "fullUrl": "urn:uuid:b065b233-8738-f1ec-1314-d61e4aac2c9e", + "resource": { + "resourceType": "Practitioner", + "id": "b065b233-8738-f1ec-1314-d61e4aac2c9e", + "identifier": [ + { + "value": "37", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr", + "type": { + "coding": [ + { + "code": "ANC", + "display": "Account number Creditor", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "DISNEY", + "given": [ + "WALT" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "fullUrl": "urn:uuid:9f974d4f-47e8-21a6-e549-4de4599c3764", + "resource": { + "resourceType": "Organization", + "id": "9f974d4f-47e8-21a6-e549-4de4599c3764", + "identifier": [ + { + "value": "T123", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-T123" + }, + { + "value": "urn:oid:r2.3", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + }, + { + "fullUrl": "urn:uuid:84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "resource": { + "resourceType": "Practitioner", + "id": "84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "identifier": [ + { + "value": "Othhel", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "fullUrl": "urn:uuid:9172e4a0-1ca5-646d-2183-b179f4daa737", + "resource": { + "resourceType": "Location", + "id": "9172e4a0-1ca5-646d-2183-b179f4daa737", + "partOf": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + }, + "name": "HUH AE OMU", + "identifier": [ + { + "value": "urn:oid:9.8", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "fullUrl": "urn:uuid:3913ec4d-6576-5e1a-ac31-e8280583371c", + "resource": { + "resourceType": "Location", + "id": "3913ec4d-6576-5e1a-ac31-e8280583371c", + "partOf": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + }, + "name": "OMU B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "fullUrl": "urn:uuid:804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "resource": { + "resourceType": "Location", + "id": "804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "partOf": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + }, + "name": "Bed 03", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "fullUrl": "urn:uuid:c043880b-0fab-1cb8-14f7-0475282c4d0e", + "resource": { + "resourceType": "Location", + "id": "c043880b-0fab-1cb8-14f7-0475282c4d0e", + "name": "HOMERTON UNIVER", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "fullUrl": "urn:uuid:f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "resource": { + "resourceType": "Location", + "id": "f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "partOf": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + }, + "name": "Homerton UH", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "fullUrl": "urn:uuid:7e38808c-44a8-cb0c-4709-9d6092abc32c", + "resource": { + "resourceType": "Location", + "id": "7e38808c-44a8-cb0c-4709-9d6092abc32c", + "partOf": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + }, + "name": "Floor5", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "fullUrl": "urn:uuid:59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "resource": { + "resourceType": "Location", + "id": "59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "name": "4 East, room 136, bed B 4E", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + } + }, + { + "fullUrl": "urn:uuid:d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "resource": { + "resourceType": "Location", + "id": "d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "partOf": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "name": "136", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + } + }, + { + "fullUrl": "urn:uuid:5783dafa-c6c0-e673-cca4-42087ee1831b", + "resource": { + "resourceType": "Location", + "id": "5783dafa-c6c0-e673-cca4-42087ee1831b", + "partOf": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "name": "B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + } + }, + { + "fullUrl": "urn:uuid:8b39e6e5-78cd-63ab-2441-f43ca5554096", + "resource": { + "resourceType": "Location", + "id": "8b39e6e5-78cd-63ab-2441-f43ca5554096", + "name": "CommunityHospital", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + } + }, + { + "fullUrl": "urn:uuid:42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "resource": { + "resourceType": "Location", + "id": "42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "name": "Homes", + "identifier": [ + { + "value": "22", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/FDK" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + { + "fullUrl": "urn:uuid:84634858-74aa-5cdb-4547-60ec27339ac6", + "resource": { + "resourceType": "Location", + "id": "84634858-74aa-5cdb-4547-60ec27339ac6", + "name": "POC", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + } + }, + { + "fullUrl": "urn:uuid:9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "resource": { + "resourceType": "Location", + "id": "9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "partOf": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "name": "Room-2", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + } + }, + { + "fullUrl": "urn:uuid:35353f20-6254-e794-98ed-8007490447e3", + "resource": { + "resourceType": "Location", + "id": "35353f20-6254-e794-98ed-8007490447e3", + "partOf": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "name": "Bed-103", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/35353f20-6254-e794-98ed-8007490447e3" + } + }, + { + "fullUrl": "urn:uuid:055e10f1-222e-df73-2325-0e4396db1a55", + "resource": { + "resourceType": "Location", + "id": "055e10f1-222e-df73-2325-0e4396db1a55", + "name": "Greenland", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + } + }, + { + "fullUrl": "urn:uuid:1154e6b2-b022-b3be-7dce-2b940ab5376d", + "resource": { + "resourceType": "Location", + "id": "1154e6b2-b022-b3be-7dce-2b940ab5376d", + "name": "Nursing home", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + } + }, + { + "fullUrl": "urn:uuid:08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "resource": { + "resourceType": "Location", + "id": "08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "name": "Rosewood", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + } + }, + { + "fullUrl": "urn:uuid:08314073-410a-3dc7-512c-0f2d206fb59d", + "resource": { + "resourceType": "Organization", + "id": "08314073-410a-3dc7-512c-0f2d206fb59d", + "identifier": [ + { + "value": "Etest", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-Etest" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + }, + { + "fullUrl": "urn:uuid:919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "resource": { + "resourceType": "EpisodeOfCare", + "id": "919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "status": "planned", + "identifier": [ + { + "value": "EOC124", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + }, + { + "fullUrl": "urn:uuid:4b192760-03d2-aec4-b0a6-fde323912e1e", + "resource": { + "resourceType": "Encounter", + "id": "4b192760-03d2-aec4-b0a6-fde323912e1e", + "class": { + "code": "PRENC", + "display": "pre-admission", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "status": "planned", + "location": [ + { + "status": "planned", + "location": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "status": "completed", + "location": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/35353f20-6254-e794-98ed-8007490447e3" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + } + ], + "type": [ + { + "coding": [ + { + "code": "E", + "display": "Emergency", + "system": "http://terminology.hl7.org/CodeSystem/v2-0007" + } + ] + } + ], + "hospitalization": { + "preAdmissionIdentifier": { + "value": "1234567", + "type": { + "coding": [ + { + "code": "ANON", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Anonymous identifier" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + "reAdmission": { + "coding": [ + { + "code": "R", + "display": "Re-admission", + "system": "http://terminology.hl7.org/CodeSystem/v2-0092" + } + ] + }, + "admitSource": { + "coding": [ + { + "code": "NHS Provider-General (inc.A&E-this Hosp)" + } + ] + }, + "dischargeDisposition": { + "coding": [ + { + "code": "Admitted as Inpatient", + "display": "Sample", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ACR" + } + ] + }, + "dietPreference": [ + { + "coding": [ + { + "code": "Vegan", + "display": "Vegetarian" + } + ] + } + ], + "destination": { + "reference": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + "episodeOfCare": [ + { + "reference": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + ], + "participant": [ + { + "type": [ + { + "coding": [ + { + "code": "ATND", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", + "display": "attender" + } + ] + } + ], + "individual": { + "reference": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "CON", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "consultant" + } + ], + "individual": { + "reference": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "ADM", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "admitter" + } + ], + "individual": { + "reference": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "PART", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "Participation" + } + ], + "individual": { + "reference": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + } + ], + "serviceType": { + "coding": [ + { + "code": "SUR" + } + ] + }, + "identifier": [ + { + "value": "40007716", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + }, + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ], + "text": "visit number" + } + }, + { + "value": "50", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:r2.3", + "assigner": { + "reference": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + } + ], + "period": { + "start": "2015-02-08T15:54:19+05:30" + }, + "text": { + "status": "generated", + "div": "

Visit Description:

" + }, + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Encounter/4b192760-03d2-aec4-b0a6-fde323912e1e" + } + }, + { + "fullUrl": "urn:uuid:9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "resource": { + "resourceType": "Provenance", + "id": "9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "occurredDateTime": "2021-08-17T18:49:43.004+05:30", + "recorded": "2029-08-01T11:21:24+05:30", + "reason": [ + { + "coding": [ + { + "code": "PATRQT", + "display": "patient requested", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason" + } + ] + } + ], + "agent": [ + { + "who": { + "reference": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + } + ], + "activity": { + "text": "ADT^A01^ADT_A01" + }, + "location": { + "reference": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + }, + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c" + } + }, + { + "fullUrl": "urn:uuid:ef39f581-5e8f-3917-35a9-3443303d9eee", + "resource": { + "resourceType": "Organization", + "id": "ef39f581-5e8f-3917-35a9-3443303d9eee", + "identifier": [ + { + "value": "DRNBR", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-DRNBR" + }, + { + "value": "urn:oid:W1.2", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + } + }, + { + "fullUrl": "urn:uuid:95aea53b-8d49-d57f-d16f-4d14b914f992", + "resource": { + "resourceType": "Practitioner", + "id": "95aea53b-8d49-d57f-d16f-4d14b914f992", + "identifier": [ + { + "value": "C08", + "system": "urn:oid:W1.2", + "assigner": { + "reference": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + }, + "type": { + "coding": [ + { + "code": "ANON", + "display": "Anonymous identifier", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen", + "2ndname" + ], + "suffix": [ + "Jr", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + }, + { + "fullUrl": "urn:uuid:59d5e519-0108-5dd8-adfa-1eef5658009e", + "resource": { + "resourceType": "Location", + "id": "59d5e519-0108-5dd8-adfa-1eef5658009e", + "name": "Cona_Health", + "identifier": [ + { + "value": "urn:oid:1.3.6.1.4.1.44750.1.4", + "system": "urn:ietf:rfc:3986" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "display": "site", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + } + } + ] +} \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A01/ADT-A01-expected.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A01/ADT-A01-expected.json new file mode 100644 index 000000000..4045aa673 --- /dev/null +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A01/ADT-A01-expected.json @@ -0,0 +1,4748 @@ +{ + "resourceType": "Bundle", + "type": "batch", + "timestamp": "1989-08-18T14:41:00+05:30", + "identifier": { + "value": "MSG00001" + }, + "id": "513a3d06-5e87-6fbc-ad1b-170ab430499f", + "entry": [ + { + "fullUrl": "urn:uuid:b4ca189b-51ae-33df-cbe2-559b4423a321", + "resource": { + "resourceType": "MessageHeader", + "id": "b4ca189b-51ae-33df-cbe2-559b4423a321", + "source": { + "name": "24GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.20", + "version": "2.4.3.52854", + "software": "Rhapsody" + }, + "destination": [ + { + "name": "25GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.23", + "receiver": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + } + ], + "meta": { + "security": [ + { + "display": "SECURITY", + "system": "http://example.com/v2-to-fhirconverter/security-label" + } + ], + "tag": [ + { + "code": "P", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "A01", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ADT^A01^ADT_A01" + }, + "language": "en-US", + "sender": { + "reference": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + }, + "responsible": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + "request": { + "method": "PUT", + "url": "MessageHeader/b4ca189b-51ae-33df-cbe2-559b4423a321" + } + }, + { + "fullUrl": "urn:uuid:f65d2168-02c8-1897-210d-361176172856", + "resource": { + "resourceType": "Provenance", + "id": "f65d2168-02c8-1897-210d-361176172856", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T12:37:12.345Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ADT_A01.

" + }, + "occurredDateTime": "1989-08-18T14:41:00+05:30", + "recorded": "1989-08-18T14:41:00+05:30", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + } + ], + "activity": { + "coding": [ + { + "display": "ADT^A01^ADT_A01" + } + ] + }, + "entity": [ + { + "role": "source", + "what": { + "reference": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + } + ], + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/f65d2168-02c8-1897-210d-361176172856" + } + }, + { + "fullUrl": "urn:uuid:4356fb81-6ecd-2d70-57b1-47812638e785", + "resource": { + "resourceType": "Organization", + "id": "4356fb81-6ecd-2d70-57b1-47812638e785", + "identifier": [ + { + "value": "GHHSFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHSFacility" + }, + { + "value": "urn:oid:2.16.840.1.122848.1.30", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + } + }, + { + "fullUrl": "urn:uuid:62781ad6-3896-cb63-0178-ead0c4a432b5", + "resource": { + "resourceType": "Organization", + "id": "62781ad6-3896-cb63-0178-ead0c4a432b5", + "identifier": [ + { + "value": "GHHRFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHRFacility" + }, + { + "value": "urn:oid:2.16.840.1.1122848.1.32", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/62781ad6-3896-cb63-0178-ead0c4a432b5" + } + }, + { + "fullUrl": "urn:uuid:33532a82-d220-4c0d-1abe-53e48951c201", + "resource": { + "resourceType": "Organization", + "id": "33532a82-d220-4c0d-1abe-53e48951c201", + "name": "22 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + { + "fullUrl": "urn:uuid:527280c1-34d1-c639-e9ba-61986d28e266", + "resource": { + "resourceType": "Organization", + "id": "527280c1-34d1-c639-e9ba-61986d28e266", + "name": "23 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + }, + { + "fullUrl": "urn:uuid:503eb873-22fb-8199-ae28-3604ad59fe13", + "resource": { + "resourceType": "Device", + "id": "503eb873-22fb-8199-ae28-3604ad59fe13", + "identifier": [ + { + "value": "ADTApp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + }, + { + "fullUrl": "urn:uuid:4b549918-a84d-cdaf-e150-c773a5d306e5", + "resource": { + "resourceType": "Device", + "id": "4b549918-a84d-cdaf-e150-c773a5d306e5", + "manufacturer": "Orion", + "deviceName": [ + { + "name": "Rhapsody", + "type": "manufacturer-name" + } + ], + "version": [ + { + "value": "2.4.3.52854" + } + ], + "modelNumber": "2.4.3", + "note": [ + { + "text": "Testactivity" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/4b549918-a84d-cdaf-e150-c773a5d306e5" + } + }, + { + "fullUrl": "urn:uuid:9e909e52-61a1-be50-1878-a12ef8c36346", + "resource": { + "resourceType": "Patient", + "id": "9e909e52-61a1-be50-1878-a12ef8c36346", + "identifier": [ + { + "value": "1234567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "PATID1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "value": "123456789", + "type": { + "coding": [ + { + "code": "SS", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Social Security number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-USSSA" + }, + { + "value": "PATID567", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test2" + }, + { + "value": "PSSN123121234", + "type": { + "coding": [ + { + "code": "SB", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + }, + { + "value": "DLN-123", + "type": { + "coding": [ + { + "code": "DL" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/US", + "period": { + "end": "2001-01-23" + } + }, + { + "value": "1516", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "55121", + "type": { + "coding": [ + { + "code": "FI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Facility ID" + } + ] + } + }, + { + "value": "DB123", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:1.12", + "assigner": { + "reference": "Organization/4e68b44e-c053-02b1-6d6d-fe816f9fdfec" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "Medicare-12345", + "type": { + "coding": [ + { + "code": "MC", + "display": "Patient's Medicare number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-medicare" + }, + { + "value": "MCN-008", + "type": { + "coding": [ + { + "code": "MA", + "display": "Patient Medicaid number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/identifier-medicaid" + }, + { + "value": "MI-12345", + "type": { + "coding": [ + { + "code": "MI", + "display": "Military ID number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/identifier-military" + }, + { + "value": "PNM1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/1fca4c8f-7562-b755-9a05-5f0f49096e5b" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "name": [ + { + "family": "EVERYMAN", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official", + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + }, + { + "family": "elbert", + "given": [ + "Son" + ] + }, + { + "family": "RADIANT", + "given": [ + "LUCY" + ] + }, + { + "family": "Jack", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + } + ], + "birthDate": "1988-08-18", + "_birthDate": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime": "1988-08-18T14:41:00+05:30" + } + ] + }, + "gender": "male", + "address": [ + { + "line": [ + "1000", + "Hospital Lane", + "Ste. 123", + "Near Highway" + ], + "city": "Ann Arbor ", + "state": "MI", + "postalCode": "99999", + "country": "USA", + "type": "postal", + "district": "W", + "period": { + "start": "2000-01-10", + "end": "2000-01-20" + } + }, + { + "line": [ + "1619 SOUTH UNIVERSITY" + ], + "city": "MADISON", + "state": "WI", + "postalCode": "53703", + "country": "US" + } + ], + "telecom": [ + { + "value": "2222", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18, + "use": "home" + }, + { + "value": "12121212", + "system": "phone", + "use": "home" + }, + { + "value": "7777", + "system": "phone", + "use": "work" + }, + { + "value": "1111", + "system": "other", + "use": "work" + }, + { + "value": "89898989", + "use": "work", + "system": "email" + }, + { + "value": "8484", + "system": "email", + "use": "home" + }, + { + "value": "717171", + "system": "phone", + "use": "home" + }, + { + "value": "021212", + "system": "other", + "use": "work" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47", + "version": "v2" + }, + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47", + "version": "v2.1" + } + ], + "text": "TextInEnglish" + }, + "preferred": true + } + ], + "maritalStatus": { + "coding": [ + { + "code": "M", + "display": "Married", + "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" + } + ] + }, + "multipleBirthInteger": 2, + "deceasedDateTime": "2008-08-25T15:31:30+05:30", + "meta": { + "lastUpdated": "2005-01-10T04:05:14+05:30" + }, + "generalPractitioner": [ + { + "reference": "Organization/4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11" + }, + { + "reference": "Practitioner/76aaad38-1077-6a5c-0c5c-102ec160a60d" + } + ], + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "ombCategory", + "valueCoding": { + "code": "2028-9", + "display": "Asian", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White+Asian" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + "valueString": "SMITH--Angela--L" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", + "valueAddress": { + "text": "St. Francis Community Hospital of Lower South Side" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-religion", + "valueCodeableConcept": { + "coding": [ + { + "code": "1002", + "display": "African Religions", + "system": "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2186-5", + "display": "Non Hispanic or Latino", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "Non Hispanic or Latino" + } + ] + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/VeteranMilitaryStatus", + "valueCodeableConcept": { + "coding": [ + { + "code": "Vet123", + "display": "retired", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ART" + } + ], + "text": "retired" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-animal", + "extension": [ + { + "url": "species", + "valueCodeableConcept": { + "coding": [ + { + "code": "125097000", + "display": "Goat", + "system": "http://snomed.info/sct" + } + ], + "text": "Goat" + } + }, + { + "url": "breed", + "valueCodeableConcept": { + "coding": [ + { + "code": "4880003", + "display": "Beagle", + "system": "http://snomed.info/sct" + } + ], + "text": "Beagle" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "US", + "display": "United States of America", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "United States of America" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "CA", + "display": "Canada", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Canada" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-nationality", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "BT", + "display": "Bhutan", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Bhutan" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-congregation", + "valueString": "Methodist Church" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-importance", + "valueCodeableConcept": { + "coding": [ + { + "code": "VIP", + "display": "Very Important Person", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/L", + "version": "v1.1" + }, + { + "code": "IMP", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/DCM", + "version": "v1.2" + } + ], + "text": "Inportant Person" + } + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/patient-disabilityIndicator", + "valueBoolean": true + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/DisabilityPeriod", + "valuePeriod": { + "start": "2021-08-30", + "end": "2021-09-30" + } + } + ], + "contact": [ + { + "organization": { + "reference": "Organization/3bb64820-2a2b-956c-9f45-125ec102f353" + } + }, + { + "name": { + "family": "Evan", + "given": [ + "ADAM", + "A" + ], + "suffix": [ + "III", + "MD" + ], + "prefix": [ + "Dr." + ], + "use": "usual" + }, + "address": { + "line": [ + "2222", + "HOME", + "STREET", + "Highway" + ], + "city": "GREENSBORO", + "state": "NC", + "postalCode": "27401-1020", + "country": "US", + "use": "billing", + "district": "test", + "period": { + "start": "2000-01-10", + "end": "2005-01-11" + } + }, + "telecom": [ + { + "value": "5555", + "use": "work", + "system": "email", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "121111", + "use": "home", + "system": "phone" + }, + { + "value": "878777", + "use": "home", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "6666666", + "system": "pager", + "use": "work" + }, + { + "value": "777", + "use": "work", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 1 + }, + { + "value": "444444", + "system": "phone" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "O", + "display": "Other", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131" + } + ] + } + ], + "period": { + "start": "2021-08-18", + "end": "2021-12-18" + }, + "gender": "female" + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + { + "fullUrl": "urn:uuid:78295402-9b84-4829-b945-502ab3402de5", + "resource": { + "resourceType": "Account", + "id": "78295402-9b84-4829-b945-502ab3402de5", + "identifier": [ + { + "value": "4000776", + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Visit number" + } + ] + }, + "system": "urn:oid:2.4", + "assigner": { + "reference": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + ], + "guarantor": [ + { + "party": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "onHold": false, + "period": { + "start": "2001-04-10", + "end": "2001-04-15" + } + }, + { + "party": { + "reference": "Organization/98678cfe-0455-73c8-d2a1-2ede2d55943f" + }, + "onHold": false, + "period": { + "start": "2001-04-10", + "end": "2001-04-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/78295402-9b84-4829-b945-502ab3402de5" + } + }, + { + "fullUrl": "urn:uuid:9d4c8327-8a28-8152-1898-8251baa707b7", + "resource": { + "resourceType": "Organization", + "id": "9d4c8327-8a28-8152-1898-8251baa707b7", + "identifier": [ + { + "value": "AccMgr", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr" + }, + { + "value": "urn:oid:2.4", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + } + }, + { + "fullUrl": "urn:uuid:98678cfe-0455-73c8-d2a1-2ede2d55943f", + "resource": { + "resourceType": "Organization", + "id": "98678cfe-0455-73c8-d2a1-2ede2d55943f", + "name": "Jupiter Hospital", + "address": [ + { + "line": [ + "1619 SOUTH UNIVERSITY" + ], + "city": "MADISON", + "state": "WI", + "postalCode": "53703", + "country": "US" + } + ], + "contact": [ + { + "telecom": [ + { + "value": "000352", + "system": "phone" + }, + { + "value": "00121", + "system": "fax" + } + ], + "purpose": { + "coding": [ + { + "code": "Urgent requirement" + } + ] + } + }, + { + "name": { + "family": "RADIANT", + "given": [ + "LUCY" + ] + } + }, + { + "name": { + "family": "Ben", + "given": [ + "Charles" + ] + } + }, + { + "name": { + "family": "Ben2" + } + } + ], + "telecom": [ + { + "value": "8484", + "system": "email" + }, + { + "value": "717171", + "system": "phone" + }, + { + "value": "021212", + "system": "other" + } + ], + "identifier": [ + { + "value": "1516", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/98678cfe-0455-73c8-d2a1-2ede2d55943f" + } + }, + { + "fullUrl": "urn:uuid:b3ad3a9f-d4f6-4638-0a09-2da771733488", + "resource": { + "resourceType": "Organization", + "id": "b3ad3a9f-d4f6-4638-0a09-2da771733488", + "identifier": [ + { + "value": "test1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test1" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "fullUrl": "urn:uuid:4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11", + "resource": { + "resourceType": "Organization", + "id": "4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11", + "name": "LINDAS TEST ORGANIZATION", + "identifier": [ + { + "value": "SIISCLIENT818" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11" + } + }, + { + "fullUrl": "urn:uuid:76aaad38-1077-6a5c-0c5c-102ec160a60d", + "resource": { + "resourceType": "Practitioner", + "id": "76aaad38-1077-6a5c-0c5c-102ec160a60d", + "identifier": [ + { + "value": "88", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TE", + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Hippo", + "given": [ + "rold", + "H" + ], + "suffix": [ + "V", + "MD" + ], + "prefix": [ + "Dr" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/76aaad38-1077-6a5c-0c5c-102ec160a60d" + } + }, + { + "fullUrl": "urn:uuid:11967e28-8dd4-a112-0fdc-377866bf12a0", + "resource": { + "resourceType": "Organization", + "id": "11967e28-8dd4-a112-0fdc-377866bf12a0", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "2.16.840.1.113883.19", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + } + }, + { + "fullUrl": "urn:uuid:7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "resource": { + "resourceType": "Organization", + "id": "7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "identifier": [ + { + "value": "AccMng", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMng" + }, + { + "value": "1.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + } + }, + { + "fullUrl": "urn:uuid:0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "resource": { + "resourceType": "Organization", + "id": "0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "identifier": [ + { + "value": "PERSONNELt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSONNELt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + } + }, + { + "fullUrl": "urn:uuid:f6775f99-5279-be04-bf81-0906c81f7443", + "resource": { + "resourceType": "Practitioner", + "id": "f6775f99-5279-be04-bf81-0906c81f7443", + "identifier": [ + { + "value": "1122334", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Alaz", + "given": [ + "Mohammed", + "Mahi" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "fullUrl": "urn:uuid:c613d7b2-525f-8c08-a7ac-b2b91486e257", + "resource": { + "resourceType": "Organization", + "id": "c613d7b2-525f-8c08-a7ac-b2b91486e257", + "identifier": [ + { + "value": "TEST", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TEST" + }, + { + "value": "23.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + } + }, + { + "fullUrl": "urn:uuid:04f8cfc8-62ca-12df-63ce-6304ef577d44", + "resource": { + "resourceType": "Practitioner", + "id": "04f8cfc8-62ca-12df-63ce-6304ef577d44", + "identifier": [ + { + "value": "C006", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + }, + "type": { + "coding": [ + { + "code": "BA", + "display": "Bank Account Number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen" + ], + "prefix": [ + "Dr" + ], + "use": "anonymous" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "fullUrl": "urn:uuid:99edcabd-fbeb-7e25-f823-11da8d8ed342", + "resource": { + "resourceType": "Practitioner", + "id": "99edcabd-fbeb-7e25-f823-11da8d8ed342", + "identifier": [ + { + "value": "C008", + "system": "urn:oid:2.8", + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Condoc", + "given": [ + "leen" + ], + "prefix": [ + "Dr" + ], + "use": "temp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "fullUrl": "urn:uuid:b065b233-8738-f1ec-1314-d61e4aac2c9e", + "resource": { + "resourceType": "Practitioner", + "id": "b065b233-8738-f1ec-1314-d61e4aac2c9e", + "identifier": [ + { + "value": "37", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr", + "type": { + "coding": [ + { + "code": "ANC", + "display": "Account number Creditor", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "DISNEY", + "given": [ + "WALT" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "fullUrl": "urn:uuid:9f974d4f-47e8-21a6-e549-4de4599c3764", + "resource": { + "resourceType": "Organization", + "id": "9f974d4f-47e8-21a6-e549-4de4599c3764", + "identifier": [ + { + "value": "T123", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-T123" + }, + { + "value": "urn:oid:r2.3", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + }, + { + "fullUrl": "urn:uuid:84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "resource": { + "resourceType": "Practitioner", + "id": "84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "identifier": [ + { + "value": "Othhel", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "fullUrl": "urn:uuid:24d4bddf-a1c3-4dc8-049b-1dda7e5112b6", + "resource": { + "resourceType": "Organization", + "id": "24d4bddf-a1c3-4dc8-049b-1dda7e5112b6", + "identifier": [ + { + "value": "TE", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TE" + }, + { + "value": "Provider Master.Community Health and Hospitals", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-DNS", + "type": { + "coding": [ + { + "code": "DNS", + "display": "An Internet host name, in accordance with RFC 1035; or an IP address. Either in ASCII or as integers, with periods between components (“dotted” notation).", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/24d4bddf-a1c3-4dc8-049b-1dda7e5112b6" + } + }, + { + "fullUrl": "urn:uuid:36e3aaa4-569a-7d9d-037f-27235ed05701", + "resource": { + "resourceType": "Practitioner", + "id": "36e3aaa4-569a-7d9d-037f-27235ed05701", + "identifier": [ + { + "value": "12188", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-DNS", + "assigner": { + "reference": "Organization/24d4bddf-a1c3-4dc8-049b-1dda7e5112b6" + }, + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Hippocrates", + "given": [ + "Harold", + "H" + ], + "suffix": [ + "IV", + "MD" + ], + "prefix": [ + "Dr" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/36e3aaa4-569a-7d9d-037f-27235ed05701" + } + }, + { + "fullUrl": "urn:uuid:9172e4a0-1ca5-646d-2183-b179f4daa737", + "resource": { + "resourceType": "Location", + "id": "9172e4a0-1ca5-646d-2183-b179f4daa737", + "partOf": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + }, + "name": "HUH AE OMU", + "identifier": [ + { + "value": "urn:oid:9.8", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "fullUrl": "urn:uuid:3913ec4d-6576-5e1a-ac31-e8280583371c", + "resource": { + "resourceType": "Location", + "id": "3913ec4d-6576-5e1a-ac31-e8280583371c", + "partOf": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + }, + "name": "OMU B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "fullUrl": "urn:uuid:804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "resource": { + "resourceType": "Location", + "id": "804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "partOf": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + }, + "name": "Bed 03", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "fullUrl": "urn:uuid:c043880b-0fab-1cb8-14f7-0475282c4d0e", + "resource": { + "resourceType": "Location", + "id": "c043880b-0fab-1cb8-14f7-0475282c4d0e", + "name": "HOMERTON UNIVER", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "fullUrl": "urn:uuid:f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "resource": { + "resourceType": "Location", + "id": "f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "partOf": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + }, + "name": "Homerton UH", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "fullUrl": "urn:uuid:7e38808c-44a8-cb0c-4709-9d6092abc32c", + "resource": { + "resourceType": "Location", + "id": "7e38808c-44a8-cb0c-4709-9d6092abc32c", + "partOf": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + }, + "name": "Floor5", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "fullUrl": "urn:uuid:59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "resource": { + "resourceType": "Location", + "id": "59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "name": "4 East, room 136, bed B 4E", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + } + }, + { + "fullUrl": "urn:uuid:d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "resource": { + "resourceType": "Location", + "id": "d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "partOf": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "name": "136", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + } + }, + { + "fullUrl": "urn:uuid:5783dafa-c6c0-e673-cca4-42087ee1831b", + "resource": { + "resourceType": "Location", + "id": "5783dafa-c6c0-e673-cca4-42087ee1831b", + "partOf": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "name": "B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + } + }, + { + "fullUrl": "urn:uuid:8b39e6e5-78cd-63ab-2441-f43ca5554096", + "resource": { + "resourceType": "Location", + "id": "8b39e6e5-78cd-63ab-2441-f43ca5554096", + "name": "CommunityHospital", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + } + }, + { + "fullUrl": "urn:uuid:42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "resource": { + "resourceType": "Location", + "id": "42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "name": "Homes", + "identifier": [ + { + "value": "22", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/FDK" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + { + "fullUrl": "urn:uuid:84634858-74aa-5cdb-4547-60ec27339ac6", + "resource": { + "resourceType": "Location", + "id": "84634858-74aa-5cdb-4547-60ec27339ac6", + "name": "POC", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + } + }, + { + "fullUrl": "urn:uuid:9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "resource": { + "resourceType": "Location", + "id": "9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "partOf": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "name": "Room-2", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + } + }, + { + "fullUrl": "urn:uuid:35353f20-6254-e794-98ed-8007490447e3", + "resource": { + "resourceType": "Location", + "id": "35353f20-6254-e794-98ed-8007490447e3", + "partOf": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "name": "Bed-103", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/35353f20-6254-e794-98ed-8007490447e3" + } + }, + { + "fullUrl": "urn:uuid:055e10f1-222e-df73-2325-0e4396db1a55", + "resource": { + "resourceType": "Location", + "id": "055e10f1-222e-df73-2325-0e4396db1a55", + "name": "Greenland", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + } + }, + { + "fullUrl": "urn:uuid:1154e6b2-b022-b3be-7dce-2b940ab5376d", + "resource": { + "resourceType": "Location", + "id": "1154e6b2-b022-b3be-7dce-2b940ab5376d", + "name": "Nursing home", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + } + }, + { + "fullUrl": "urn:uuid:08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "resource": { + "resourceType": "Location", + "id": "08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "name": "Rosewood", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + } + }, + { + "fullUrl": "urn:uuid:c7f1b9ec-ffd8-321e-ad87-abafc1c1a333", + "resource": { + "resourceType": "Location", + "id": "c7f1b9ec-ffd8-321e-ad87-abafc1c1a333", + "name": "ROOM1", + "identifier": [ + { + "value": "urn:oid:2.16.840.1.113883.4.642.1.1108", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + } + }, + { + "fullUrl": "urn:uuid:6f159848-5f01-01b3-9594-80fbbe9ab510", + "resource": { + "resourceType": "Location", + "id": "6f159848-5f01-01b3-9594-80fbbe9ab510", + "partOf": { + "reference": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + }, + "name": "BED1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/6f159848-5f01-01b3-9594-80fbbe9ab510" + } + }, + { + "fullUrl": "urn:uuid:4bca6ba2-be65-ef37-3911-03b70a00a3a6", + "resource": { + "resourceType": "Location", + "id": "4bca6ba2-be65-ef37-3911-03b70a00a3a6", + "name": "FACILITY1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + } + }, + { + "fullUrl": "urn:uuid:3b0911cb-4361-cd8d-b188-463af033c699", + "resource": { + "resourceType": "Location", + "id": "3b0911cb-4361-cd8d-b188-463af033c699", + "partOf": { + "reference": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + }, + "name": "BUILDING1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + } + }, + { + "fullUrl": "urn:uuid:0d9c3424-329f-4c95-ee30-ac2da4a35bff", + "resource": { + "resourceType": "Location", + "id": "0d9c3424-329f-4c95-ee30-ac2da4a35bff", + "partOf": { + "reference": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + }, + "name": "FLOOR1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/0d9c3424-329f-4c95-ee30-ac2da4a35bff" + } + }, + { + "fullUrl": "urn:uuid:08314073-410a-3dc7-512c-0f2d206fb59d", + "resource": { + "resourceType": "Organization", + "id": "08314073-410a-3dc7-512c-0f2d206fb59d", + "identifier": [ + { + "value": "Etest", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-Etest" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + }, + { + "fullUrl": "urn:uuid:919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "resource": { + "resourceType": "EpisodeOfCare", + "id": "919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "status": "planned", + "identifier": [ + { + "value": "EOC124", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "diagnosis": [ + { + "condition": { + "reference": "Condition/481123a1-ca9c-c3c8-0284-e6926c3a50d8" + }, + "role": { + "coding": [ + { + "code": "AD", + "display": "Admission Diagnosis", + "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role" + } + ] + }, + "rank": 1 + } + ] + }, + "request": { + "method": "PUT", + "url": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + }, + { + "fullUrl": "urn:uuid:4b192760-03d2-aec4-b0a6-fde323912e1e", + "resource": { + "resourceType": "Encounter", + "id": "4b192760-03d2-aec4-b0a6-fde323912e1e", + "class": { + "code": "PRENC", + "display": "pre-admission", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "status": "planned", + "location": [ + { + "status": "planned", + "location": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "status": "completed", + "location": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/35353f20-6254-e794-98ed-8007490447e3" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/6f159848-5f01-01b3-9594-80fbbe9ab510" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/0d9c3424-329f-4c95-ee30-ac2da4a35bff" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + } + ], + "type": [ + { + "coding": [ + { + "code": "E", + "display": "Emergency", + "system": "http://terminology.hl7.org/CodeSystem/v2-0007" + } + ] + } + ], + "hospitalization": { + "preAdmissionIdentifier": { + "value": "1234567", + "type": { + "coding": [ + { + "code": "ANON", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Anonymous identifier" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + "reAdmission": { + "coding": [ + { + "code": "R", + "display": "Re-admission", + "system": "http://terminology.hl7.org/CodeSystem/v2-0092" + } + ] + }, + "admitSource": { + "coding": [ + { + "code": "NHS Provider-General (inc.A&E-this Hosp)" + } + ] + }, + "dischargeDisposition": { + "coding": [ + { + "code": "Admitted as Inpatient", + "display": "Sample", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ACR" + } + ] + }, + "dietPreference": [ + { + "coding": [ + { + "code": "Vegan", + "display": "Vegetarian" + } + ] + } + ], + "destination": { + "reference": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + "episodeOfCare": [ + { + "reference": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + ], + "participant": [ + { + "type": [ + { + "coding": [ + { + "code": "ATND", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", + "display": "attender" + } + ] + } + ], + "individual": { + "reference": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "CON", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "consultant" + } + ], + "individual": { + "reference": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "ADM", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "admitter" + } + ], + "individual": { + "reference": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "PART", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "Participation" + } + ], + "individual": { + "reference": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/36e3aaa4-569a-7d9d-037f-27235ed05701" + } + } + ], + "serviceType": { + "coding": [ + { + "code": "SUR" + } + ] + }, + "identifier": [ + { + "value": "40007716", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + }, + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ], + "text": "visit number" + } + }, + { + "value": "50", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:r2.3", + "assigner": { + "reference": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + } + ], + "period": { + "start": "2015-02-08T15:54:19+05:30" + }, + "reasonCode": [ + { + "coding": [ + { + "code": "140004", + "display": "Chronic pharyngitis", + "system": "http://snomed.info/sct" + } + ] + } + ], + "length": { + "value": 2, + "unit": "d", + "system": "http://unitsofmeasure.org/" + }, + "meta": { + "security": [ + { + "code": "N", + "display": "normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality" + } + ] + }, + "text": { + "status": "generated", + "div": "

Visit Description: Health Checkup

" + }, + "priority": { + "coding": [ + { + "code": "UR", + "display": "urgent", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActPriority", + "version": "V1.2" + }, + { + "code": "EL", + "display": "elective", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActPriority", + "version": "V1.3" + } + ] + }, + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/encounter-modeOfArrival", + "valueCoding": { + "code": "C", + "display": "Car", + "system": "http://terminology.hl7.org/CodeSystem/v2-0430" + } + } + ], + "diagnosis": [ + { + "condition": { + "reference": "Condition/481123a1-ca9c-c3c8-0284-e6926c3a50d8" + }, + "use": { + "coding": [ + { + "code": "AD", + "display": "Admission Diagnosis", + "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role" + } + ] + }, + "rank": 1 + } + ] + }, + "request": { + "method": "PUT", + "url": "Encounter/4b192760-03d2-aec4-b0a6-fde323912e1e" + } + }, + { + "fullUrl": "urn:uuid:9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "resource": { + "resourceType": "Provenance", + "id": "9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "occurredDateTime": "2021-08-17T18:49:43.004+05:30", + "recorded": "2029-08-01T11:21:24+05:30", + "reason": [ + { + "coding": [ + { + "code": "PATRQT", + "display": "patient requested", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason" + } + ] + } + ], + "agent": [ + { + "who": { + "reference": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + } + ], + "activity": { + "text": "ADT^A01^ADT_A01" + }, + "location": { + "reference": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + }, + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c" + } + }, + { + "fullUrl": "urn:uuid:ef39f581-5e8f-3917-35a9-3443303d9eee", + "resource": { + "resourceType": "Organization", + "id": "ef39f581-5e8f-3917-35a9-3443303d9eee", + "identifier": [ + { + "value": "DRNBR", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-DRNBR" + }, + { + "value": "urn:oid:W1.2", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + } + }, + { + "fullUrl": "urn:uuid:95aea53b-8d49-d57f-d16f-4d14b914f992", + "resource": { + "resourceType": "Practitioner", + "id": "95aea53b-8d49-d57f-d16f-4d14b914f992", + "identifier": [ + { + "value": "C08", + "system": "urn:oid:W1.2", + "assigner": { + "reference": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + }, + "type": { + "coding": [ + { + "code": "ANON", + "display": "Anonymous identifier", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen", + "2ndname" + ], + "suffix": [ + "Jr", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + }, + { + "fullUrl": "urn:uuid:59d5e519-0108-5dd8-adfa-1eef5658009e", + "resource": { + "resourceType": "Location", + "id": "59d5e519-0108-5dd8-adfa-1eef5658009e", + "name": "Cona_Health", + "identifier": [ + { + "value": "urn:oid:1.3.6.1.4.1.44750.1.4", + "system": "urn:ietf:rfc:3986" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "display": "site", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + } + }, + { + "fullUrl": "urn:uuid:396e6ab6-624f-44a8-841c-6e1c4cebd765", + "resource": { + "resourceType": "Practitioner", + "id": "396e6ab6-624f-44a8-841c-6e1c4cebd765", + "identifier": [ + { + "value": "1210" + } + ], + "name": [ + { + "family": "ANES", + "given": [ + "MARK", + "B" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/396e6ab6-624f-44a8-841c-6e1c4cebd765" + } + }, + { + "fullUrl": "urn:uuid:6a01e35c-52c3-892a-2ea0-0a283eb6757b", + "resource": { + "resourceType": "Practitioner", + "id": "6a01e35c-52c3-892a-2ea0-0a283eb6757b", + "identifier": [ + { + "value": "121188", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-L", + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Patrick", + "given": [ + "Harold", + "H" + ], + "suffix": [ + "IV", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/6a01e35c-52c3-892a-2ea0-0a283eb6757b" + } + }, + { + "fullUrl": "urn:uuid:a8fc538f-624b-0cee-df30-6377fabae47c", + "resource": { + "resourceType": "Practitioner", + "id": "a8fc538f-624b-0cee-df30-6377fabae47c", + "identifier": [ + { + "value": "12345689", + "type": { + "coding": [ + { + "code": "MR", + "display": "Medical record number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Everyman2", + "given": [ + "Adam2", + "A" + ], + "suffix": [ + "III", + "PHD" + ], + "prefix": [ + "DR" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/a8fc538f-624b-0cee-df30-6377fabae47c" + } + }, + { + "fullUrl": "urn:uuid:a9c75502-d60a-d89b-5912-f046100cd47e", + "resource": { + "resourceType": "Location", + "id": "a9c75502-d60a-d89b-5912-f046100cd47e", + "name": "OT", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/a9c75502-d60a-d89b-5912-f046100cd47e" + } + }, + { + "fullUrl": "urn:uuid:2e2e33a1-60f8-7e38-c827-fe070237c3fb", + "resource": { + "resourceType": "Procedure", + "id": "2e2e33a1-60f8-7e38-c827-fe070237c3fb", + "status": "unknown", + "identifier": [ + { + "value": "PR1001" + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Procedure/2e2e33a1-60f8-7e38-c827-fe070237c3fb" + } + }, + { + "fullUrl": "urn:uuid:c06db9c2-d07b-bac2-53c2-48ed83dd32b6", + "resource": { + "resourceType": "Procedure", + "id": "c06db9c2-d07b-bac2-53c2-48ed83dd32b6", + "code": { + "coding": [ + { + "code": "76164006", + "display": "Biopsy of colon (procedure)", + "system": "http://snomed.info/sct" + } + ], + "text": "Biopsy of colon, which was part of colonoscopy" + }, + "status": "completed", + "performedDateTime": "2005-01-25T16:10:00+05:30", + "category": { + "coding": [ + { + "code": "D", + "display": "Diagnostic Procedure", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/HL70230" + } + ] + }, + "performer": [ + { + "actor": { + "reference": "Practitioner/396e6ab6-624f-44a8-841c-6e1c4cebd765" + }, + "function": { + "coding": [ + { + "code": "88189002", + "system": "http://snomed.info/sct", + "display": "Anesthesiologist" + } + ], + "text": "Anesthesiologist" + } + }, + { + "actor": { + "reference": "Practitioner/6a01e35c-52c3-892a-2ea0-0a283eb6757b" + }, + "function": { + "coding": [ + { + "code": "304292004", + "system": "http://snomed.info/sct", + "display": "Surgeon" + } + ], + "text": "Surgeon" + } + }, + { + "actor": { + "reference": "Practitioner/a8fc538f-624b-0cee-df30-6377fabae47c" + }, + "function": { + "text": "Procedure Practitioner" + } + } + ], + "reasonCode": [ + { + "coding": [ + { + "code": "799008", + "display": "Sigmoid colon ulcer", + "system": "http://snomed.info/sct" + } + ] + } + ], + "identifier": [ + { + "value": "PR1006" + } + ], + "location": { + "reference": "Location/a9c75502-d60a-d89b-5912-f046100cd47e" + }, + "partOf": [ + { + "reference": "Procedure/2e2e33a1-60f8-7e38-c827-fe070237c3fb" + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Procedure/c06db9c2-d07b-bac2-53c2-48ed83dd32b6" + } + }, + { + "fullUrl": "urn:uuid:3bb64820-2a2b-956c-9f45-125ec102f353", + "resource": { + "resourceType": "Organization", + "id": "3bb64820-2a2b-956c-9f45-125ec102f353", + "name": "TestOrg", + "identifier": [ + { + "value": "Org12", + "type": { + "coding": [ + { + "code": "EI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "contact": [ + { + "name": { + "family": "Green", + "given": [ + "John", + "A" + ], + "suffix": [ + "II", + "MD" + ], + "prefix": [ + "DR" + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + "telecom": [ + { + "value": "898989898", + "system": "fax" + }, + { + "value": "88888888", + "system": "phone" + } + ], + "address": { + "line": [ + "Street1", + "Palkstreet" + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/3bb64820-2a2b-956c-9f45-125ec102f353" + } + }, + { + "fullUrl": "urn:uuid:abdee378-0d3b-337f-a31e-83e002ce92a0", + "resource": { + "resourceType": "RelatedPerson", + "id": "abdee378-0d3b-337f-a31e-83e002ce92a0", + "identifier": [ + { + "value": "1212121", + "type": { + "coding": [ + { + "code": "AND", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Account number debitor" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "12345567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/e76154d7-9084-80e4-6274-c929d7c39880" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "I-123", + "type": { + "coding": [ + { + "code": "BA", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Bank Account Number" + } + ] + } + }, + { + "value": "I-222", + "type": { + "coding": [ + { + "code": "DI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Diner’s Club card" + } + ] + } + }, + { + "value": "Security no-23", + "system": "http://hl7.org/fhir/sid/us-ssn" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "C", + "display": "Emergency Contact", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131", + "version": "9.0" + }, + { + "code": "CHILD", + "display": "child", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode", + "version": "10.0" + } + ] + }, + { + "coding": [ + { + "code": "O", + "display": "Other", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131" + } + ] + }, + { + "coding": [ + { + "code": "MTH", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "period": { + "start": "2021-08-18", + "end": "2021-12-18" + }, + "address": [ + { + "line": [ + "2222", + "HOME", + "STREET", + "Highway" + ], + "city": "GREENSBORO", + "state": "NC", + "postalCode": "27401-1020", + "country": "US", + "use": "billing", + "district": "test", + "period": { + "start": "2000-01-10", + "end": "2005-01-11" + } + }, + { + "line": [ + "111", + "Duck ST" + ], + "city": "Fowl" + }, + { + "line": [ + "Street1", + "Palkstreet" + ] + }, + { + "line": [ + "ST-2" + ] + } + ], + "telecom": [ + { + "value": "5555", + "use": "work", + "system": "email", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "121111", + "use": "home", + "system": "phone" + }, + { + "value": "878777", + "use": "home", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "6666666", + "system": "pager", + "use": "work" + }, + { + "value": "898989898", + "system": "fax" + }, + { + "value": "88888888", + "system": "phone" + }, + { + "value": "777", + "use": "work", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 1 + }, + { + "value": "444444", + "system": "phone" + } + ], + "name": [ + { + "family": "Evan", + "given": [ + "ADAM", + "A" + ], + "suffix": [ + "III", + "MD" + ], + "prefix": [ + "Dr." + ], + "use": "usual" + }, + { + "family": "Green", + "given": [ + "John", + "A" + ], + "suffix": [ + "II", + "MD" + ], + "prefix": [ + "DR" + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official" + } + ], + "gender": "female", + "birthDate": "1962-01-10", + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47" + } + ] + } + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White" + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/abdee378-0d3b-337f-a31e-83e002ce92a0" + } + }, + { + "fullUrl": "urn:uuid:e76154d7-9084-80e4-6274-c929d7c39880", + "resource": { + "resourceType": "Organization", + "id": "e76154d7-9084-80e4-6274-c929d7c39880", + "identifier": [ + { + "value": "T1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-T1" + }, + { + "value": "2.16.840.1.113883.19", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/e76154d7-9084-80e4-6274-c929d7c39880" + } + }, + { + "fullUrl": "urn:uuid:f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "resource": { + "resourceType": "Organization", + "id": "f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "identifier": [ + { + "value": "NTH", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NTH" + }, + { + "value": "rt23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + } + }, + { + "fullUrl": "urn:uuid:4e68b44e-c053-02b1-6d6d-fe816f9fdfec", + "resource": { + "resourceType": "Organization", + "id": "4e68b44e-c053-02b1-6d6d-fe816f9fdfec", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "urn:oid:1.12", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4e68b44e-c053-02b1-6d6d-fe816f9fdfec" + } + }, + { + "fullUrl": "urn:uuid:e82402a9-b2d1-2a28-3250-c099d5a77bf7", + "resource": { + "resourceType": "Organization", + "id": "e82402a9-b2d1-2a28-3250-c099d5a77bf7", + "identifier": [ + { + "value": "PERSt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/e82402a9-b2d1-2a28-3250-c099d5a77bf7" + } + }, + { + "fullUrl": "urn:uuid:ce70e6c3-c190-121d-c251-e4bae5cde6a1", + "resource": { + "resourceType": "Practitioner", + "id": "ce70e6c3-c190-121d-c251-e4bae5cde6a1", + "identifier": [ + { + "value": "1134", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/e82402a9-b2d1-2a28-3250-c099d5a77bf7" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Aly", + "given": [ + "Zafar", + "Mahendra" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/ce70e6c3-c190-121d-c251-e4bae5cde6a1" + } + }, + { + "fullUrl": "urn:uuid:88a53755-c972-6904-b4ce-8884b84ddc2e", + "resource": { + "resourceType": "PractitionerRole", + "id": "88a53755-c972-6904-b4ce-8884b84ddc2e", + "code": [ + { + "coding": [ + { + "code": "ResponsibleObserver", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/ce70e6c3-c190-121d-c251-e4bae5cde6a1" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/88a53755-c972-6904-b4ce-8884b84ddc2e" + } + }, + { + "fullUrl": "urn:uuid:3e0952c6-eea0-8938-96f8-07c224bf1577", + "resource": { + "resourceType": "Practitioner", + "id": "3e0952c6-eea0-8938-96f8-07c224bf1577", + "identifier": [ + { + "value": "2234" + } + ], + "name": [ + { + "family": "Pauly", + "given": [ + "Berrie", + "Raud" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/3e0952c6-eea0-8938-96f8-07c224bf1577" + } + }, + { + "fullUrl": "urn:uuid:bc78e290-ec67-c238-1e05-aefb6b252b0c", + "resource": { + "resourceType": "PractitionerRole", + "id": "bc78e290-ec67-c238-1e05-aefb6b252b0c", + "code": [ + { + "coding": [ + { + "code": "ResponsibleObserver", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/3e0952c6-eea0-8938-96f8-07c224bf1577" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/bc78e290-ec67-c238-1e05-aefb6b252b0c" + } + }, + { + "fullUrl": "urn:uuid:fe0adb86-ebe9-6479-0055-9db8dc1ff99a", + "resource": { + "resourceType": "Device", + "id": "fe0adb86-ebe9-6479-0055-9db8dc1ff99a", + "identifier": [ + { + "value": "EI12.3", + "system": "urn:uuid:UI2", + "type": { + "coding": [ + { + "code": "GUID", + "display": "Same as UUID.", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + }, + { + "system": "urn:oid:UI1", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/fe0adb86-ebe9-6479-0055-9db8dc1ff99a" + } + }, + { + "fullUrl": "urn:uuid:45f65e47-46c4-1a54-f9fb-1321258e79b2", + "resource": { + "resourceType": "Practitioner", + "id": "45f65e47-46c4-1a54-f9fb-1321258e79b2", + "identifier": [ + { + "type": { + "coding": [ + { + "code": "MD-25" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/45f65e47-46c4-1a54-f9fb-1321258e79b2" + } + }, + { + "fullUrl": "urn:uuid:090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3", + "resource": { + "resourceType": "PractitionerRole", + "id": "090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3", + "code": [ + { + "coding": [ + { + "code": "LabMedicalDirector", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/45f65e47-46c4-1a54-f9fb-1321258e79b2" + }, + "organization": { + "reference": "Organization/056aa7c7-6b75-3c67-63c5-cf9604f16d25" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3" + } + }, + { + "fullUrl": "urn:uuid:056aa7c7-6b75-3c67-63c5-cf9604f16d25", + "resource": { + "resourceType": "Organization", + "id": "056aa7c7-6b75-3c67-63c5-cf9604f16d25", + "name": "FairOaks Hspital", + "address": [ + { + "line": [ + "Research Park", + "Fairfax" + ], + "city": "VA", + "state": "22031", + "postalCode": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/056aa7c7-6b75-3c67-63c5-cf9604f16d25" + } + }, + { + "fullUrl": "urn:uuid:07fd2dd3-dbd6-5bb1-cfda-02226795d9a0", + "resource": { + "resourceType": "Observation", + "id": "07fd2dd3-dbd6-5bb1-cfda-02226795d9a0", + "identifier": [ + { + "value": "EI21", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-OII" + }, + { + "type": { + "coding": [ + { + "code": "FILL" + } + ] + } + } + ], + "status": "unknown", + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "component": [ + { + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 60, + "code": "beats/min", + "unit": "beats/min", + "system": "urn:iso:std:iso:3986" + }, + "referenceRange": [ + { + "text": "70-80" + } + ] + }, + { + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 120, + "code": "beats/min", + "unit": "beats/min", + "system": "urn:iso:std:iso:3986" + }, + "referenceRange": [ + { + "text": "70-80" + } + ] + } + ], + "effectiveDateTime": "1999-07-02", + "method": { + "coding": [ + { + "code": "OBS", + "display": "This is test method", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/AS4" + } + ] + }, + "device": { + "reference": "Device/fe0adb86-ebe9-6479-0055-9db8dc1ff99a" + }, + "bodySite": { + "coding": [ + { + "code": "BU", + "display": "Observation site", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/E5" + } + ] + }, + "performer": [ + { + "reference": "PractitionerRole/88a53755-c972-6904-b4ce-8884b84ddc2e" + }, + { + "reference": "PractitionerRole/bc78e290-ec67-c238-1e05-aefb6b252b0c" + }, + { + "reference": "PractitionerRole/090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "A", + "display": "Abnormal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + }, + { + "coding": [ + { + "code": "B", + "display": "Better", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } + ], + "extension": [ + { + "url": "http://example.com/v2-to-fhir-converter/Observation_Status", + "valueCodeableConcept": { + "coding": [ + { + "code": "S", + "display": "Partial", + "system": "http://terminology.hl7.org/CodeSystem/v2-0085" + } + ], + "text": "Partial" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Observation/07fd2dd3-dbd6-5bb1-cfda-02226795d9a0" + } + }, + { + "fullUrl": "urn:uuid:a0adcda8-0b28-d089-1955-c04308d5fe28", + "resource": { + "resourceType": "AllergyIntolerance", + "id": "a0adcda8-0b28-d089-1955-c04308d5fe28", + "category": [ + "environment" + ], + "type": "allergy", + "code": { + "coding": [ + { + "code": "P", + "display": "PENICILLIN", + "system": "http://terminology.hl7.org/CodeSystem/icd-o" + } + ] + }, + "reaction": [ + { + "manifestation": [ + { + "text": "CODE16" + } + ], + "onset": "2021-08-24" + } + ], + "criticality": "low", + "clinicalStatus": { + "coding": [ + { + "code": "active", + "display": "Active", + "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical" + } + ] + }, + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "AllergyIntolerance/a0adcda8-0b28-d089-1955-c04308d5fe28" + } + }, + { + "fullUrl": "urn:uuid:14493a95-7780-ead5-89cc-ad6c3bc31d51", + "resource": { + "resourceType": "Practitioner", + "id": "14493a95-7780-ead5-89cc-ad6c3bc31d51", + "identifier": [ + { + "value": "005454" + } + ], + "name": [ + { + "family": "DIAG", + "given": [ + "ROBIN", + "B" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/14493a95-7780-ead5-89cc-ad6c3bc31d51" + } + }, + { + "fullUrl": "urn:uuid:481123a1-ca9c-c3c8-0284-e6926c3a50d8", + "resource": { + "resourceType": "Condition", + "id": "481123a1-ca9c-c3c8-0284-e6926c3a50d8", + "code": { + "coding": [ + { + "code": "422504002", + "display": "Ischemic stroke(disorder)", + "system": "http://snomed.info/sct" + } + ], + "text": "Stroke" + }, + "onsetDateTime": "2004-01-25T12:50:25+05:30", + "identifier": [ + { + "value": "DI20", + "system": "urn:oid:DTUI", + "type": { + "coding": [ + { + "code": "CLIP", + "display": "Clinical laboratory Improvement Program. Allows for the ability to designate organization identifier as a “CLIP” assigned number (for labs). Used by US Department of Defense.", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "asserter": { + "reference": "Practitioner/14493a95-7780-ead5-89cc-ad6c3bc31d51" + }, + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/condition-assertedDate", + "valueDateTime": "2020-05-01T16:45:15+05:30" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/condition-dueTo", + "valueReference": { + "reference": "Condition/98e2ecfc-6e04-bc30-6624-4f3686214b22" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Condition/481123a1-ca9c-c3c8-0284-e6926c3a50d8" + } + }, + { + "fullUrl": "urn:uuid:98e2ecfc-6e04-bc30-6624-4f3686214b22", + "resource": { + "resourceType": "Condition", + "id": "98e2ecfc-6e04-bc30-6624-4f3686214b22", + "identifier": [ + { + "system": "urn:oid:UI", + "type": { + "coding": [ + { + "code": "CLIP", + "display": "Clinical laboratory Improvement Program. Allows for the ability to designate organization identifier as a “CLIP” assigned number (for labs). Used by US Department of Defense.", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Condition/98e2ecfc-6e04-bc30-6624-4f3686214b22" + } + }, + { + "fullUrl": "urn:uuid:c073f2c1-a818-924b-8881-1481ac88d691", + "resource": { + "resourceType": "Organization", + "id": "c073f2c1-a818-924b-8881-1481ac88d691", + "name": "AuthProvider", + "identifier": [ + { + "value": "A", + "type": { + "coding": [ + { + "code": "LR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/c073f2c1-a818-924b-8881-1481ac88d691" + } + }, + { + "fullUrl": "urn:uuid:e0ba3d6b-452f-7c22-a79d-1035e4b33ceb", + "resource": { + "resourceType": "Practitioner", + "id": "e0ba3d6b-452f-7c22-a79d-1035e4b33ceb", + "identifier": [ + { + "value": "114", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-2.3", + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Beverly", + "given": [ + "Crusher", + "An" + ], + "suffix": [ + "Mr", + "AHP", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/e0ba3d6b-452f-7c22-a79d-1035e4b33ceb" + } + }, + { + "fullUrl": "urn:uuid:739ae409-c591-1a59-32ad-d2ef1b937b0f", + "resource": { + "resourceType": "ServiceRequest", + "id": "739ae409-c591-1a59-32ad-d2ef1b937b0f", + "status": "on-hold", + "intent": "order", + "identifier": [ + { + "value": "123-1", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-name" + }, + { + "value": "123-2", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-Testname" + } + ], + "authoredOn": "1990-05-01T12:16:00+05:30", + "performer": [ + { + "reference": "Organization/c073f2c1-a818-924b-8881-1481ac88d691" + }, + { + "reference": "Practitioner/e0ba3d6b-452f-7c22-a79d-1035e4b33ceb" + } + ], + "performerType": { + "coding": [ + { + "code": "EXTERNAL" + } + ] + }, + "note": [ + { + "text": "Check for metastatic disease" + } + ], + "priority": "asap", + "reasonCode": [ + { + "coding": [ + { + "code": "R-1", + "display": "Reason", + "system": "http://www.ama-assn.org/go/cpt" + } + ], + "text": "Patient has a spinal fracture" + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "ServiceRequest/739ae409-c591-1a59-32ad-d2ef1b937b0f" + } + }, + { + "fullUrl": "urn:uuid:dfab6985-a691-c4f5-d2b2-6481fdfd59e4", + "resource": { + "resourceType": "Coverage", + "id": "dfab6985-a691-c4f5-d2b2-6481fdfd59e4", + "class": [ + { + "value": "BAV", + "name": "Blue Advantage HMO", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/coverage-class", + "code": "plan", + "display": "Plan" + } + ] + } + }, + { + "value": "PUBSUMB", + "name": "SelfPay", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/coverage-class", + "code": "group", + "display": "Group" + } + ] + } + } + ], + "network": "Blue Advantage HMO", + "period": { + "start": "1989-10-01", + "end": "2050-10-01" + }, + "type": { + "coding": [ + { + "code": "HMO", + "display": "health maintenance organization policy", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + } + ] + }, + "identifier": [ + { + "value": "PN-145", + "type": { + "coding": [ + { + "code": "PLN", + "display": "Policy Number", + "system": "http://example.com/CodeSystem/additional-identifier" + } + ] + }, + "system": "http://www.examplehealthplan.com/fhir/policyidentifier" + }, + { + "value": "HMO-12345", + "type": { + "coding": [ + { + "code": "NI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "National unique individual identifier" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.3" + }, + { + "value": "Medicare-12345", + "type": { + "coding": [ + { + "code": "MC", + "display": "Patient's Medicare number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-medicare" + }, + { + "value": "MCN-008", + "type": { + "coding": [ + { + "code": "MA", + "display": "Patient Medicaid number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/identifier-medicaid" + }, + { + "value": "PNM1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/1fca4c8f-7562-b755-9a05-5f0f49096e5b" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "costToBeneficiary": [ + { + "type": { + "coding": [ + { + "code": "DC", + "display": "direct unit cost", + "system": "http://terminology.hl7.org/CodeSystem/v2-0205" + } + ] + }, + "valueMoney": { + "value": 150, + "currency": "USD" + } + } + ], + "subscriberId": "HMO-12345", + "status": "active", + "beneficiary": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "payor": [ + { + "reference": "Organization/04a2a5f2-c971-1e42-e788-250ea487a889" + } + ], + "policyHolder": { + "reference": "Organization/4829e288-ac03-22cc-c65e-922004275fd0" + }, + "subscriber": { + "reference": "RelatedPerson/fd1eed45-4ccb-bb7c-d157-58eb0366d777" + }, + "relationship": { + "coding": [ + { + "code": "spouse", + "display": "Spouse", + "system": "http://terminology.hl7.org/CodeSystem/subscriber-relationship" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Coverage/dfab6985-a691-c4f5-d2b2-6481fdfd59e4" + } + }, + { + "fullUrl": "urn:uuid:04a2a5f2-c971-1e42-e788-250ea487a889", + "resource": { + "resourceType": "Organization", + "id": "04a2a5f2-c971-1e42-e788-250ea487a889", + "address": [ + { + "line": [ + "1979 MILKY WAY" + ], + "city": "VERONA", + "state": "WI", + "postalCode": "53593", + "country": "US" + } + ], + "contact": [ + { + "name": { + "family": "Henry", + "given": [ + "Rony", + "A" + ], + "suffix": [ + "III", + "MD" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1925-10-12" + } + } + } + ], + "telecom": [ + { + "value": "(555)555-5555", + "system": "phone" + } + ], + "identifier": [ + { + "value": "IC-1.31", + "type": { + "coding": [ + { + "code": "NIIP", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "National Insurance Payor Identifier (Payor)" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.1", + "period": { + "start": "1929-10-11", + "end": "1929-10-12" + } + } + ], + "name": "Blue Cross Blue Shield of Texas" + }, + "request": { + "method": "PUT", + "url": "Organization/04a2a5f2-c971-1e42-e788-250ea487a889" + } + }, + { + "fullUrl": "urn:uuid:4829e288-ac03-22cc-c65e-922004275fd0", + "resource": { + "resourceType": "Organization", + "id": "4829e288-ac03-22cc-c65e-922004275fd0", + "address": [ + { + "line": [ + "2000 MILKY WAY" + ], + "city": "VERONA", + "state": "WI", + "postalCode": "53593", + "country": "US" + } + ], + "name": "Sam P. Hil", + "contact": [ + { + "name": { + "family": "Richard", + "given": [ + "Paul" + ] + }, + "telecom": [ + { + "value": "254622222", + "system": "phone" + } + ] + } + ], + "telecom": [ + { + "value": "555777888", + "system": "fax" + }, + { + "system": "phone" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4829e288-ac03-22cc-c65e-922004275fd0" + } + }, + { + "fullUrl": "urn:uuid:fd1eed45-4ccb-bb7c-d157-58eb0366d777", + "resource": { + "resourceType": "RelatedPerson", + "id": "fd1eed45-4ccb-bb7c-d157-58eb0366d777", + "identifier": [ + { + "value": "HMO-12345", + "type": { + "coding": [ + { + "code": "NI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "National unique individual identifier" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.3" + }, + { + "value": "1117", + "type": { + "coding": [ + { + "code": "EI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Employee number" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.4" + }, + { + "value": "1118", + "type": { + "coding": [ + { + "code": "BC", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Bank Card Number" + } + ] + } + }, + { + "value": "425-57-9745", + "type": { + "coding": [ + { + "code": "SS", + "display": "Social Security number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "SPS", + "display": "spouse", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "address": [ + { + "line": [ + "3857 Velvet Treasure Terrace" + ], + "city": "Midnight", + "state": "NC", + "postalCode": "27878", + "country": "US" + } + ], + "name": [ + { + "family": "Doe", + "given": [ + "Rosallie", + "John" + ], + "suffix": [ + "III", + "Bachelors" + ], + "prefix": [ + "Mrs." + ], + "use": "official" + } + ], + "gender": "female", + "birthDate": "1975-02-28", + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "telecom": [ + { + "value": "0005245", + "use": "work", + "system": "email" + }, + { + "system": "phone" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47" + } + ] + }, + "preferred": true + } + ] + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/fd1eed45-4ccb-bb7c-d157-58eb0366d777" + } + }, + { + "fullUrl": "urn:uuid:1fca4c8f-7562-b755-9a05-5f0f49096e5b", + "resource": { + "resourceType": "Organization", + "id": "1fca4c8f-7562-b755-9a05-5f0f49096e5b", + "identifier": [ + { + "value": "PM", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PM" + }, + { + "value": "2.6.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/1fca4c8f-7562-b755-9a05-5f0f49096e5b" + } + } + ] +} \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A01/ADT01-23-expected.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A01/ADT01-23-expected.json index ae7cb20a9..d7045b8b2 100644 --- a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A01/ADT01-23-expected.json +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A01/ADT01-23-expected.json @@ -1,472 +1,1229 @@ { - "resourceType": "Bundle", - "type": "batch", - "timestamp": "2005-01-10T04:55:04", - "identifier": { - "value": "599102" - }, - "entry": [ - { - "fullUrl": "urn:uuid:d3171c25-5db7-e705-140c-19d0972f1ba2", - "resource": { - "resourceType": "MessageHeader", - "id": "d3171c25-5db7-e705-140c-19d0972f1ba2", - "source": { - "name": "AccMgr" + "resourceType": "Bundle", + "type": "batch", + "timestamp": "2005-01-10T04:55:04", + "identifier": { + "value": "599102" + }, + "id": "e03ac438-666e-8052-70a3-e61b15358b4b", + "entry": [ + { + "fullUrl": "urn:uuid:d3171c25-5db7-e705-140c-19d0972f1ba2", + "resource": { + "resourceType": "MessageHeader", + "id": "d3171c25-5db7-e705-140c-19d0972f1ba2", + "source": { + "name": "AccMgr", + "_endpoint": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } + ] + } + }, + "meta": { + "tag": [ + { + "code": "P", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "A01", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ADT^A01" + }, + "sender": { + "reference": "Organization/3fa041fd-9a00-f9ae-30ba-4e3ad5585603" + } + }, + "request": { + "method": "PUT", + "url": "MessageHeader/d3171c25-5db7-e705-140c-19d0972f1ba2" + } }, - "meta": { - "tag": [ - { - "code": "P", - "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + { + "fullUrl": "urn:uuid:fbc2f60d-f7f1-af9a-17ea-ff70b3f4d7ea", + "resource": { + "resourceType": "Provenance", + "id": "fbc2f60d-f7f1-af9a-17ea-ff70b3f4d7ea", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T12:39:33.152Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ADT_A01.

" + }, + "occurredDateTime": "2005-01-10T04:55:04", + "recorded": "2005-01-10T04:55:04", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/3fa041fd-9a00-f9ae-30ba-4e3ad5585603" + } + } + ], + "activity": { + "coding": [ + { + "display": "ADT^A01^" + } + ] + }, + "target": [ + { + "reference": "Bundle/e03ac438-666e-8052-70a3-e61b15358b4b" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/fbc2f60d-f7f1-af9a-17ea-ff70b3f4d7ea" } - ] }, - "eventCoding": { - "code": "A01", - "system": "http://terminology.hl7.org/CodeSystem/v2-0003" - } - }, - "request": { - "method": "PUT", - "url": "MessageHeader/d3171c25-5db7-e705-140c-19d0972f1ba2" - } - }, - { - "fullUrl": "urn:uuid:bab5ca58-f272-4c06-4b3f-f9661e45a22b", - "resource": { - "resourceType": "Patient", - "id": "bab5ca58-f272-4c06-4b3f-f9661e45a22b", - "identifier": [ - { - "value": "10006579", - "type": { - "coding": [ - { - "code": "MR", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + { + "fullUrl": "urn:uuid:3fa041fd-9a00-f9ae-30ba-4e3ad5585603", + "resource": { + "resourceType": "Organization", + "id": "3fa041fd-9a00-f9ae-30ba-4e3ad5585603", + "identifier": [ + { + "value": "1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-1" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/3fa041fd-9a00-f9ae-30ba-4e3ad5585603" + } + }, + { + "fullUrl": "urn:uuid:bab5ca58-f272-4c06-4b3f-f9661e45a22b", + "resource": { + "resourceType": "Patient", + "id": "bab5ca58-f272-4c06-4b3f-f9661e45a22b", + "identifier": [ + { + "value": "10006579", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-1" + }, + { + "value": "123121234", + "type": { + "coding": [ + { + "code": "SB", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + } + ], + "name": [ + { + "family": "DUCK", + "given": [ + "DONALD", + "D" + ] + }, + { + "family": "123121234A" + } + ], + "birthDate": "1924-10-10", + "gender": "male", + "address": [ + { + "line": [ + "111 DUCK ST" + ], + "city": "FOWL", + "state": "CA", + "postalCode": "999990000", + "type": "postal" + }, + { + "district": "1" + } + ], + "telecom": [ + { + "value": "8885551212", + "use": "home" + }, + { + "value": "8885551212", + "use": "work" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "1", + "display": "1" + } + ] + }, + "preferred": true + } + ], + "maritalStatus": { + "coding": [ + { + "code": "2", + "display": "2" + } + ] + }, + "deceasedBoolean": false, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "1", + "display": "1" + } + }, + { + "url": "text", + "valueString": "1" + } + ] + } + ], + "contact": [ + { + "name": { + "family": "DUCK", + "given": [ + "HUEY" + ] + }, + "address": { + "line": [ + "3583 DUCK RD" + ], + "city": "FOWL", + "state": "CA", + "postalCode": "999990000" + }, + "telecom": [ + { + "value": "8885552222", + "use": "home" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "Y", + "display": "Y" + } + ] + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" + } + }, + { + "fullUrl": "urn:uuid:f70a39cb-cf13-6f75-885d-cf691752c711", + "resource": { + "resourceType": "Account", + "id": "f70a39cb-cf13-6f75-885d-cf691752c711", + "identifier": [ + { + "value": "40007716", + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Visit number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr" + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" + } + ], + "guarantor": [ + { + "party": { + "reference": "RelatedPerson/c1c24d3d-6174-9cec-9997-28c5e239711f" + } + }, + { + "party": { + "reference": "Organization/" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/f70a39cb-cf13-6f75-885d-cf691752c711" + } + }, + { + "fullUrl": "urn:uuid:c1c24d3d-6174-9cec-9997-28c5e239711f", + "resource": { + "resourceType": "RelatedPerson", + "id": "c1c24d3d-6174-9cec-9997-28c5e239711f", + "identifier": [ + { + "value": "8291" + }, + { + "value": "123121234", + "type": { + "coding": [ + { + "code": "SB", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "1", + "display": "1" + } + ] + } + ], + "address": [ + { + "line": [ + "111", + "DUCK ST" + ], + "state": "FOWL", + "postalCode": "CA", + "country": "999990000" + } + ], + "telecom": [ + { + "value": "8885551212", + "use": "home" + } + ], + "name": [ + { + "family": "DUCK", + "given": [ + "DONALD", + "D" + ] + } + ], + "gender": "male", + "birthDate": "1924-10-10", + "patient": { + "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" } - ] + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/c1c24d3d-6174-9cec-9997-28c5e239711f" + } + }, + { + "fullUrl": "urn:uuid:", + "resource": { + "resourceType": "Organization", + "name": " ", + "address": [ + { + "line": [ + "111", + "DUCK ST" + ], + "state": "FOWL", + "postalCode": "CA", + "country": "999990000" + } + ], + "contact": [ + { + "name": { + "family": "DUCK", + "given": [ + "DONALD", + "D" + ] + } + } + ], + "telecom": [ + { + "value": "8885551212" + } + ], + "identifier": [ + { + "value": "8291" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/" + } + }, + { + "fullUrl": "urn:uuid:b065b233-8738-f1ec-1314-d61e4aac2c9e", + "resource": { + "resourceType": "Practitioner", + "id": "b065b233-8738-f1ec-1314-d61e4aac2c9e", + "identifier": [ + { + "value": "37", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr", + "type": { + "coding": [ + { + "code": "CI", + "display": "CI" + } + ] + } + } + ], + "name": [ + { + "family": "DISNEY", + "given": [ + "WALT" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" } - }, - { - "value": "123121234", - "type": { - "coding": [ - { - "code": "SS", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + }, + { + "fullUrl": "urn:uuid:eafc9bd8-6600-8232-f911-25b4ea83f641", + "resource": { + "resourceType": "Location", + "id": "eafc9bd8-6600-8232-f911-25b4ea83f641", + "name": "PREOP", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] } - ] }, - "system": "http://hl7.org/fhir/sid/us-ssn" - } - ], - "name": [ - { - "family": "DUCK", - "given": [ - "DONALD", - "D" - ] - } - ], - "birthDate": "1924-10-10", - "gender": "male", - "address": [ - { - "line": [ - "111 DUCK ST" - ], - "city": "FOWL", - "state": "CA", - "postalCode": "999990000", - "type": "postal" - }, - { - "district": "1" - } - ], - "telecom": [ - { - "value": "8885551212", - "use": "home" - }, - { - "value": "8885551212", - "use": "work" - } - ], - "communication": [ - { - "language": { - "coding": [ - { - "code": "1", - "display": "1" + "request": { + "method": "PUT", + "url": "Location/eafc9bd8-6600-8232-f911-25b4ea83f641" + } + }, + { + "fullUrl": "urn:uuid:3ab35502-6cac-adb6-225e-1d28c3082bf5", + "resource": { + "resourceType": "Location", + "id": "3ab35502-6cac-adb6-225e-1d28c3082bf5", + "partOf": { + "reference": "Location/eafc9bd8-6600-8232-f911-25b4ea83f641" + }, + "name": "101", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] } - ] }, - "preferred": true - } - ], - "maritalStatus": { - "coding": [ - { - "code": "2", - "display": "2" + "request": { + "method": "PUT", + "url": "Location/3ab35502-6cac-adb6-225e-1d28c3082bf5" } - ] }, - "deceasedBoolean": "false", - "contact": [ - { - "name": { - "family": "DUCK", - "given": [ - "HUEY" - ] + { + "fullUrl": "urn:uuid:b2d5327c-354a-b91d-541d-c6b0fe91a841", + "resource": { + "resourceType": "Location", + "id": "b2d5327c-354a-b91d-541d-c6b0fe91a841", + "partOf": { + "reference": "Location/3ab35502-6cac-adb6-225e-1d28c3082bf5" + }, + "name": "1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + }, + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } }, - "address": { - "line": [ - "3583 DUCK RD" - ], - "city": "FOWL", - "state": "CA", - "postalCode": "999990000" + "request": { + "method": "PUT", + "url": "Location/b2d5327c-354a-b91d-541d-c6b0fe91a841" + } + }, + { + "fullUrl": "urn:uuid:cb0cbfcd-bdcd-775d-ed89-65b953b8e1de", + "resource": { + "resourceType": "Location", + "id": "cb0cbfcd-bdcd-775d-ed89-65b953b8e1de", + "partOf": { + "reference": "Location/b2d5327c-354a-b91d-541d-c6b0fe91a841" + }, + "name": "S", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } }, - "telecom": [ - { - "value": "8885552222" - } - ], - "relationship": [ - { - "coding": [ - { - "code": "Y", - "display": "Y" - } + "request": { + "method": "PUT", + "url": "Location/cb0cbfcd-bdcd-775d-ed89-65b953b8e1de" + } + }, + { + "fullUrl": "urn:uuid:984ec8bc-49c4-56fe-100c-942e6c5a6e3c", + "resource": { + "resourceType": "Encounter", + "id": "984ec8bc-49c4-56fe-100c-942e6c5a6e3c", + "class": { + "code": "IMP", + "display": "inpatient encounter", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "status": "in-progress", + "location": [ + { + "status": "active", + "location": { + "reference": "Location/eafc9bd8-6600-8232-f911-25b4ea83f641" + } + }, + { + "status": "active", + "location": { + "reference": "Location/3ab35502-6cac-adb6-225e-1d28c3082bf5" + } + }, + { + "status": "active", + "location": { + "reference": "Location/b2d5327c-354a-b91d-541d-c6b0fe91a841" + } + }, + { + "status": "active", + "location": { + "reference": "Location/b2d5327c-354a-b91d-541d-c6b0fe91a841" + } + }, + { + "status": "active", + "location": { + "reference": "Location/cb0cbfcd-bdcd-775d-ed89-65b953b8e1de" + } + } + ], + "type": [ + { + "coding": [ + { + "code": "3", + "display": "3" + } + ] + } + ], + "hospitalization": { + "admitSource": { + "coding": [ + { + "code": "1" + } + ] + } + }, + "participant": [ + { + "type": [ + { + "coding": [ + { + "code": "ATND", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", + "display": "attender" + } + ] + } + ], + "individual": { + "reference": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "ADM", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "admitter" + } + ], + "individual": { + "reference": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + } + ], + "serviceType": { + "coding": [ + { + "code": "01" + } + ] + }, + "identifier": [ + { + "value": "40007716", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr", + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ], + "text": "visit number" + } + }, + { + "value": " " + } + ], + "period": { + "start": "2005-01-10T04:52:53" + }, + "text": { + "status": "generated", + "div": "

Visit Description:

" + }, + "subject": { + "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" + }, + "diagnosis": [ + { + "condition": { + "reference": "Condition/fd373c0d-5aa8-e1f7-177c-77127280b897" + }, + "use": { + "coding": [ + { + "code": "AD", + "display": "Admission Diagnosis", + "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role" + } + ] + } + } ] - } - ] - } - ] - }, - "request": { - "method": "PUT", - "url": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Practitioner" - }, - "request": { - "method": "PUT", - "url": "Practitioner/" - } - }, - { - "fullUrl": "urn:uuid:b065b233-8738-f1ec-1314-d61e4aac2c9e", - "resource": { - "resourceType": "Practitioner", - "id": "b065b233-8738-f1ec-1314-d61e4aac2c9e" - }, - "request": { - "method": "PUT", - "url": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" - } - }, - { - "fullUrl": "urn:uuid:f70a39cb-cf13-6f75-885d-cf691752c711", - "resource": { - "resourceType": "Account", - "id": "f70a39cb-cf13-6f75-885d-cf691752c711", - "identifier": [ - { - "value": "40007716", - "type": { - "coding": [ - { - "code": "VN", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + }, + "request": { + "method": "PUT", + "url": "Encounter/984ec8bc-49c4-56fe-100c-942e6c5a6e3c" + } + }, + { + "fullUrl": "urn:uuid:397b71e6-32b5-33bc-db1a-b1bf6d3d5783", + "resource": { + "resourceType": "Provenance", + "id": "397b71e6-32b5-33bc-db1a-b1bf6d3d5783", + "recorded": "2005-01-10T04:55:02", + "activity": { + "text": "ADT^A01" + }, + "target": [ + { + "reference": "Bundle/e03ac438-666e-8052-70a3-e61b15358b4b" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/397b71e6-32b5-33bc-db1a-b1bf6d3d5783" + } + }, + { + "fullUrl": "urn:uuid:b8e7e176-84c6-7e2d-d422-a69df56229d8", + "resource": { + "resourceType": "RelatedPerson", + "id": "b8e7e176-84c6-7e2d-d422-a69df56229d8", + "relationship": [ + { + "coding": [ + { + "code": "SO", + "display": "SO" + } + ] + }, + { + "coding": [ + { + "code": "Y", + "display": "Y" + } + ] + } + ], + "address": [ + { + "line": [ + "3583 DUCK RD" + ], + "city": "FOWL", + "state": "CA", + "postalCode": "999990000" + } + ], + "telecom": [ + { + "value": "8885552222" + } + ], + "name": [ + { + "family": "DUCK", + "given": [ + "HUEY" + ] + } + ], + "patient": { + "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" } - ] + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/b8e7e176-84c6-7e2d-d422-a69df56229d8" } - } - ], - "subject": [ - { - "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" - } - ] - }, - "request": { - "method": "PUT", - "url": "Account/f70a39cb-cf13-6f75-885d-cf691752c711" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Location" - }, - "request": { - "method": "PUT", - "url": "Location/" - } - }, - { - "fullUrl": "urn:uuid:9b2956e2-230b-9dd5-ad8d-0e697a8664c1", - "resource": { - "resourceType": "Location", - "id": "9b2956e2-230b-9dd5-ad8d-0e697a8664c1", - "mode": "instance", - "physicalType": { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + }, + { + "fullUrl": "urn:uuid:fd373c0d-5aa8-e1f7-177c-77127280b897", + "resource": { + "resourceType": "Condition", + "id": "fd373c0d-5aa8-e1f7-177c-77127280b897", + "code": { + "coding": [ + { + "code": "71596", + "display": "OSTEOARTHROS NOS-L/LEG ", + "system": "http://hl7.org/fhir/sid/icd-9" + } + ], + "text": "OSTEOARTHROS NOS-L/LEG " + }, + "subject": { + "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" + } + }, + "request": { + "method": "PUT", + "url": "Condition/fd373c0d-5aa8-e1f7-177c-77127280b897" } - ] - } - }, - "request": { - "method": "PUT", - "url": "Location/9b2956e2-230b-9dd5-ad8d-0e697a8664c1" - } - }, - { - "fullUrl": "urn:uuid:b5aae309-4caf-c2cd-b087-0fd6db6dd058", - "resource": { - "resourceType": "Provenance", - "id": "b5aae309-4caf-c2cd-b087-0fd6db6dd058", - "text": { - "status": "generated", - "div": "

Resource bundle generated on GENERATED_INSTANT_PLACEHOLDER using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: TEMPLATE_URL_PLACEHOLDER.Root template: ADT_A01.

" }, - "agent": [ - { - "type": { - "coding": [ - { - "code": "author", - "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + { + "fullUrl": "urn:uuid:7b35da63-ce1c-52f4-960b-ae08c5a3410d", + "resource": { + "resourceType": "Coverage", + "id": "7b35da63-ce1c-52f4-960b-ae08c5a3410d", + "class": [ + { + "value": "MEDICARE", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/coverage-class", + "code": "plan", + "display": "Plan" + } + ] + } + } + ], + "period": { + "start": "1989-10-01" + }, + "type": { + "coding": [ + { + "code": "4", + "display": "4" + } + ] + }, + "identifier": [ + { + "value": "123121234A", + "type": { + "coding": [ + { + "code": "PLN", + "display": "Policy Number", + "system": "http://example.com/CodeSystem/additional-identifier" + } + ] + }, + "system": "http://www.examplehealthplan.com/fhir/policyidentifier" + }, + { + "value": "8291 " + } + ], + "subscriberId": "8291 ", + "status": "active", + "beneficiary": { + "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" + }, + "payor": [ + { + "reference": "Organization/d5d6f8c9-6369-c812-5d52-5945e088bba6" + } + ], + "policyHolder": { + "reference": "RelatedPerson/24bec897-ef02-acae-94f7-f60b3ea3ce64" + }, + "subscriber": { + "reference": "RelatedPerson/94a4c036-1d19-4b6e-b86c-648b14984a25" } - ] + }, + "request": { + "method": "PUT", + "url": "Coverage/7b35da63-ce1c-52f4-960b-ae08c5a3410d" } - } - ], - "recorded": "2005-01-10T04:55:04" - }, - "request": { - "method": "PUT", - "url": "Provenance/b5aae309-4caf-c2cd-b087-0fd6db6dd058" - } - }, - { - "fullUrl": "urn:uuid:984ec8bc-49c4-56fe-100c-942e6c5a6e3c", - "resource": { - "resourceType": "Encounter", - "id": "984ec8bc-49c4-56fe-100c-942e6c5a6e3c", - "class": { - "code": "IMP", - "display": "inpatient encounter", - "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" }, - "status": "unknown", - "location": [ - { - "status": "active", - "location": { - "reference": "Location/9b2956e2-230b-9dd5-ad8d-0e697a8664c1" + { + "fullUrl": "urn:uuid:d5d6f8c9-6369-c812-5d52-5945e088bba6", + "resource": { + "resourceType": "Organization", + "id": "d5d6f8c9-6369-c812-5d52-5945e088bba6", + "identifier": [ + { + "value": "3" + } + ], + "name": "MEDICARE" + }, + "request": { + "method": "PUT", + "url": "Organization/d5d6f8c9-6369-c812-5d52-5945e088bba6" } - } - ], - "type": [ - { - "coding": [ - { - "code": "3", - "display": "3" - } - ] - } - ], - "hospitalization": { - "admitSource": { - "coding": [ - { - "code": "1" - } - ] - } }, - "participant": [ - { - "type": [ - { - "coding": [ - { - "code": "ATND", - "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", - "display": "attender" - } + { + "fullUrl": "urn:uuid:a893c6bc-d94a-a53e-d272-638fc5b75e83", + "resource": { + "resourceType": "Organization", + "id": "a893c6bc-d94a-a53e-d272-638fc5b75e83", + "address": [ + { + "line": [ + "111 DUCK ST" + ], + "city": "FOWL", + "state": "CA", + "postalCode": "999990000" + }, + { + "line": [ + "111", + "DUCK ST" + ], + "state": "FOWL", + "postalCode": "CA", + "country": "999990000" + } + ], + "name": "Cartoon Ducks Inc", + "telecom": [ + { + "value": "8885551212 " + } ] - } - ], - "individual": { - "reference": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + }, + "request": { + "method": "PUT", + "url": "Organization/a893c6bc-d94a-a53e-d272-638fc5b75e83" } - }, - { - "type": [ - { - "coding": [ - { - "code": "ADM", - "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" - } - ], - "text": "admitter" - } - ], - "individual": { - "reference": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + }, + { + "fullUrl": "urn:uuid:94a4c036-1d19-4b6e-b86c-648b14984a25", + "resource": { + "resourceType": "RelatedPerson", + "id": "94a4c036-1d19-4b6e-b86c-648b14984a25", + "identifier": [ + { + "value": "8291 " + }, + { + "value": "1" + }, + { + "value": "2" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "1", + "display": "1" + } + ] + } + ], + "address": [ + { + "line": [ + "111", + "DUCK ST" + ], + "state": "FOWL", + "postalCode": "CA", + "country": "999990000" + }, + { + "line": [ + "111 DUCK ST" + ], + "city": "FOWL", + "state": "CA", + "postalCode": "999990000" + } + ], + "name": [ + { + "family": "DUCK", + "given": [ + "DONALD", + "D" + ] + } + ], + "gender": "male", + "birthDate": "1924-10-10", + "patient": { + "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" + } + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/94a4c036-1d19-4b6e-b86c-648b14984a25" } - } - ], - "serviceType": { - "coding": [ - { - "code": "01" + }, + { + "fullUrl": "urn:uuid:24bec897-ef02-acae-94f7-f60b3ea3ce64", + "resource": { + "resourceType": "RelatedPerson", + "id": "24bec897-ef02-acae-94f7-f60b3ea3ce64", + "relationship": [ + { + "coding": [ + { + "code": "E", + "display": "Employer", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131" + } + ] + } + ], + "telecom": [ + { + "value": "8885551212 " + } + ], + "patient": { + "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" + }, + "identifier": [ + { + "value": "123121234" + } + ] + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/24bec897-ef02-acae-94f7-f60b3ea3ce64" } - ] }, - "identifier": [ - { - "value": "40007716", - "type": { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + { + "fullUrl": "urn:uuid:832bb930-49c3-4505-d1ce-bcade656dba5", + "resource": { + "resourceType": "Coverage", + "id": "832bb930-49c3-4505-d1ce-bcade656dba5", + "class": [ + { + "value": "NON-PRIMARY", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/coverage-class", + "code": "plan", + "display": "Plan" + } + ] + } + }, + { + "value": "PUBSUMB", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/coverage-class", + "code": "group", + "display": "Group" + } + ] + } + } + ], + "type": { + "coding": [ + { + "code": "7", + "display": "7" + } + ] + }, + "identifier": [ + { + "value": "056269770", + "type": { + "coding": [ + { + "code": "PLN", + "display": "Policy Number", + "system": "http://example.com/CodeSystem/additional-identifier" + } + ] + }, + "system": "http://www.examplehealthplan.com/fhir/policyidentifier" + }, + { + "value": "8291 " + } + ], + "subscriberId": "8291 ", + "status": "active", + "beneficiary": { + "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" + }, + "payor": [ + { + "reference": "Organization/86a9a2de-3550-dc90-3bca-b3d704a59783" + } + ], + "policyHolder": { + "reference": "RelatedPerson/24bec897-ef02-acae-94f7-f60b3ea3ce64" + }, + "subscriber": { + "reference": "RelatedPerson/94a4c036-1d19-4b6e-b86c-648b14984a25" } - ], - "text": "visit number" + }, + "request": { + "method": "PUT", + "url": "Coverage/832bb930-49c3-4505-d1ce-bcade656dba5" } - }, - { - "value": " " - } - ], - "period": { - "start": "2005-01-10T04:52:53" }, - "subject": { - "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" + { + "fullUrl": "urn:uuid:86a9a2de-3550-dc90-3bca-b3d704a59783", + "resource": { + "resourceType": "Organization", + "id": "86a9a2de-3550-dc90-3bca-b3d704a59783", + "address": [ + { + "line": [ + "PO BOX 94776" + ], + "city": "HOLLYWOOD", + "state": "CA", + "postalCode": "441414776" + } + ], + "telecom": [ + { + "value": "8003621279" + } + ], + "identifier": [ + { + "value": "9" + } + ], + "name": "MEDICAL MUTUAL CALIF." + }, + "request": { + "method": "PUT", + "url": "Organization/86a9a2de-3550-dc90-3bca-b3d704a59783" + } }, - "diagnosis": [ - { - "condition": { - "reference": "Condition/fd373c0d-5aa8-e1f7-177c-77127280b897" + { + "fullUrl": "urn:uuid:513f3296-d7f1-67cf-3804-626f676bdfe6", + "resource": { + "resourceType": "Coverage", + "id": "513f3296-d7f1-67cf-3804-626f676bdfe6", + "class": [ + { + "value": "SELF PAY", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/coverage-class", + "code": "plan", + "display": "Plan" + } + ] + } + } + ], + "type": { + "coding": [ + { + "code": "5", + "display": "5" + } + ] + }, + "status": "active", + "beneficiary": { + "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" + }, + "payor": [ + { + "reference": "Organization/8ac53b31-2bcc-9125-2dd7-15711c804a45" + } + ], + "subscriber": { + "reference": "RelatedPerson/f297484c-5f2a-4493-2d74-d7bcecdf5017" + }, + "policyHolder": { + "reference": "RelatedPerson/24bec897-ef02-acae-94f7-f60b3ea3ce64" + } + }, + "request": { + "method": "PUT", + "url": "Coverage/513f3296-d7f1-67cf-3804-626f676bdfe6" } - } - ] - }, - "request": { - "method": "PUT", - "url": "Encounter/984ec8bc-49c4-56fe-100c-942e6c5a6e3c" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Organization" - }, - "request": { - "method": "PUT", - "url": "Organization/" - } - }, - { - "fullUrl": "urn:uuid:b8e7e176-84c6-7e2d-d422-a69df56229d8", - "resource": { - "resourceType": "RelatedPerson", - "id": "b8e7e176-84c6-7e2d-d422-a69df56229d8", - "relationship": [ - { - "coding": [ - { - "code": "SO", - "display": "SO" - } - ] - }, - { - "coding": [ - { - "code": "Y", - "display": "Y" - } - ] - } - ], - "address": [ - { - "line": [ - "3583 DUCK RD" - ], - "city": "FOWL", - "state": "CA", - "postalCode": "999990000" - } - ], - "telecom": [ - { - "value": "8885552222" - } - ], - "name": [ - { - "family": "DUCK", - "given": [ - "HUEY" - ] - } - ], - "patient": { - "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" - } - }, - "request": { - "method": "PUT", - "url": "RelatedPerson/b8e7e176-84c6-7e2d-d422-a69df56229d8" - } - }, - { - "fullUrl": "urn:uuid:fd373c0d-5aa8-e1f7-177c-77127280b897", - "resource": { - "resourceType": "Condition", - "id": "fd373c0d-5aa8-e1f7-177c-77127280b897", - "code": { - "coding": [ - { - "code": "71596", - "display": "OSTEOARTHROS NOS-L/LEG ", - "system": "I9" + }, + { + "fullUrl": "urn:uuid:8ac53b31-2bcc-9125-2dd7-15711c804a45", + "resource": { + "resourceType": "Organization", + "id": "8ac53b31-2bcc-9125-2dd7-15711c804a45", + "identifier": [ + { + "value": "1" + } + ], + "name": "SELF PAY" + }, + "request": { + "method": "PUT", + "url": "Organization/8ac53b31-2bcc-9125-2dd7-15711c804a45" } - ], - "text": "OSTEOARTHROS NOS-L/LEG " }, - "subject": { - "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" + { + "fullUrl": "urn:uuid:f297484c-5f2a-4493-2d74-d7bcecdf5017", + "resource": { + "resourceType": "RelatedPerson", + "id": "f297484c-5f2a-4493-2d74-d7bcecdf5017", + "relationship": [ + { + "coding": [ + { + "code": "1", + "display": "1" + } + ] + } + ], + "patient": { + "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" + }, + "identifier": [ + { + "value": "1" + }, + { + "value": "2" + } + ] + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/f297484c-5f2a-4493-2d74-d7bcecdf5017" + } } - }, - "request": { - "method": "PUT", - "url": "Condition/fd373c0d-5aa8-e1f7-177c-77127280b897" - } - } - ] + ] } \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A01/ADT01-28-expected.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A01/ADT01-28-expected.json index 2bea671f6..d7294055c 100644 --- a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A01/ADT01-28-expected.json +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A01/ADT01-28-expected.json @@ -1,387 +1,545 @@ { - "resourceType": "Bundle", - "type": "batch", - "timestamp": "1988-08-18T11:26:00", - "identifier": { - "value": "MSG00001" - }, - "entry": [ - { - "fullUrl": "urn:uuid:64c2d51b-34a4-e841-fb1c-03f1f7762d1a", - "resource": { - "resourceType": "MessageHeader", - "id": "64c2d51b-34a4-e841-fb1c-03f1f7762d1a", - "source": { - "name": "ADT1" - }, - "destination": [ - { - "name": "GHH LAB, INC." - } - ], - "meta": { - "tag": [ - { - "code": "P", - "system": "http://terminology.hl7.org/CodeSystem/v2-0103" - } - ] - }, - "eventCoding": { - "code": "A01", - "system": "http://terminology.hl7.org/CodeSystem/v2-0003" - } - }, - "request": { - "method": "PUT", - "url": "MessageHeader/64c2d51b-34a4-e841-fb1c-03f1f7762d1a" - } + "resourceType": "Bundle", + "type": "batch", + "timestamp": "1988-08-18T11:26:00", + "identifier": { + "value": "MSG00001" }, - { - "fullUrl": "urn:uuid:d5fe6802-a680-e762-8f43-9659340b00ac", - "resource": { - "resourceType": "Patient", - "id": "d5fe6802-a680-e762-8f43-9659340b00ac", - "identifier": [ - { - "value": "PATID1234", - "type": { - "coding": [ - { - "code": "MR", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + "id": "513a3d06-5e87-6fbc-ad1b-170ab430499f", + "entry": [ + { + "fullUrl": "urn:uuid:64c2d51b-34a4-e841-fb1c-03f1f7762d1a", + "resource": { + "resourceType": "MessageHeader", + "id": "64c2d51b-34a4-e841-fb1c-03f1f7762d1a", + "source": { + "name": "ADT1", + "_endpoint": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } + ] + } + }, + "destination": [ + { + "name": "GHH LAB, INC.", + "_endpoint": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } + ] + }, + "receiver": { + "reference": "Organization/2d7d77cd-0ca7-13a5-c9ed-6e70b739adb4" + } + } + ], + "meta": { + "security": [ + { + "display": "SECURITY", + "system": "http://example.com/v2-to-fhirconverter/security-label" + } + ], + "tag": [ + { + "code": "P", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "A01", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ADT^A01^ADT_A01" + }, + "sender": { + "reference": "Organization/2d7d77cd-0ca7-13a5-c9ed-6e70b739adb4" } - ] + }, + "request": { + "method": "PUT", + "url": "MessageHeader/64c2d51b-34a4-e841-fb1c-03f1f7762d1a" } - }, - { - "value": "123456789", - "type": { - "coding": [ - { - "code": "SS", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" - } - ] + }, + { + "fullUrl": "urn:uuid:ae8c8e53-d120-6815-afb1-783160fb3e48", + "resource": { + "resourceType": "Provenance", + "id": "ae8c8e53-d120-6815-afb1-783160fb3e48", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T12:40:34.086Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ADT_A01.

" + }, + "occurredDateTime": "1988-08-18T11:26:00", + "recorded": "1988-08-18T11:26:00", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/2d7d77cd-0ca7-13a5-c9ed-6e70b739adb4" + } + } + ], + "activity": { + "coding": [ + { + "display": "ADT^A01^ADT_A01" + } + ] + }, + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/ae8c8e53-d120-6815-afb1-783160fb3e48" } - }, - { - "value": "444333333", - "type": { - "coding": [ - { - "code": "SS", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" - } - ] + }, + { + "fullUrl": "urn:uuid:2d7d77cd-0ca7-13a5-c9ed-6e70b739adb4", + "resource": { + "resourceType": "Organization", + "id": "2d7d77cd-0ca7-13a5-c9ed-6e70b739adb4", + "identifier": [ + { + "value": "GOOD HEALTH HOSPITAL", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GOOD-HEALTH-HOSPITAL" + } + ] }, - "system": "http://hl7.org/fhir/sid/us-ssn" - }, - { - "value": "987654", - "type": { - "coding": [ - { - "code": "DL" - } - ] + "request": { + "method": "PUT", + "url": "Organization/2d7d77cd-0ca7-13a5-c9ed-6e70b739adb4" + } + }, + { + "fullUrl": "urn:uuid:d5fe6802-a680-e762-8f43-9659340b00ac", + "resource": { + "resourceType": "Patient", + "id": "d5fe6802-a680-e762-8f43-9659340b00ac", + "identifier": [ + { + "value": "PATID1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-ADT1" + }, + { + "value": "123456789", + "type": { + "coding": [ + { + "code": "SS", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Social Security number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-USSSA" + }, + { + "value": "444333333", + "type": { + "coding": [ + { + "code": "SB", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + }, + { + "value": "987654", + "type": { + "coding": [ + { + "code": "DL" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/NC" + } + ], + "name": [ + { + "family": "EVERYMAN", + "given": [ + "ADAM", + "A" + ], + "suffix": [ + "III" + ] + } + ], + "birthDate": "1961-06-15", + "gender": "male", + "address": [ + { + "line": [ + "2222 HOME STREET" + ], + "city": "GREENSBORO", + "state": "NC", + "postalCode": "27401-1020" + }, + { + "district": "GL" + } + ], + "telecom": [ + { + "value": "(555) 555-2004", + "use": "home" + }, + { + "value": "(555)555-2004", + "use": "work" + } + ], + "maritalStatus": { + "coding": [ + { + "code": "S", + "display": "Never Married", + "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" + } + ] + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "C", + "display": "C" + } + }, + { + "url": "text", + "valueString": "C" + } + ] + } + ], + "contact": [ + { + "name": { + "family": "NUCLEAR", + "given": [ + "NELDA", + "W" + ] + }, + "relationship": [ + { + "coding": [ + { + "code": "NK", + "display": "NK" + } + ] + } + ] + } + ] }, - "system": "NC" - } - ], - "name": [ - { - "family": "EVERYMAN", - "given": [ - "ADAM", - "A" - ], - "suffix": [ - "III" - ] - } - ], - "birthDate": "1961-06-15", - "gender": "male", - "address": [ - { - "line": [ - "2222 HOME STREET" - ], - "city": "GREENSBORO", - "state": "NC", - "postalCode": "27401-1020" - }, - { - "district": "GL" - } - ], - "telecom": [ - { - "value": "(555) 555-2004", - "use": "home" - }, - { - "value": "(555)555-2004", - "use": "work" - } - ], - "maritalStatus": { - "coding": [ - { - "code": "S", - "display": "Never Married", - "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" + "request": { + "method": "PUT", + "url": "Patient/d5fe6802-a680-e762-8f43-9659340b00ac" } - ] }, - "contact": [ - { - "name": { - "family": "NUCLEAR", - "given": [ - "NELDA", - "W" - ] + { + "fullUrl": "urn:uuid:3e9d1ae2-2dbe-bdd9-8da6-6a9fdfc18068", + "resource": { + "resourceType": "Account", + "id": "3e9d1ae2-2dbe-bdd9-8da6-6a9fdfc18068", + "identifier": [ + { + "value": "PATID12345001", + "type": { + "coding": [ + { + "code": "AN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Account number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-ADT1" + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/d5fe6802-a680-e762-8f43-9659340b00ac" + } + ] }, - "relationship": [ - { - "coding": [ - { - "code": "NK", - "display": "NK" - } + "request": { + "method": "PUT", + "url": "Account/3e9d1ae2-2dbe-bdd9-8da6-6a9fdfc18068" + } + }, + { + "fullUrl": "urn:uuid:15d1e2fd-66ed-373c-919f-8204c9c27ec6", + "resource": { + "resourceType": "Practitioner", + "id": "15d1e2fd-66ed-373c-919f-8204c9c27ec6", + "identifier": [ + { + "value": "004777" + } + ], + "name": [ + { + "family": "ATTEND", + "given": [ + "AARON", + "A" + ] + } ] - } - ] - } - ] - }, - "request": { - "method": "PUT", - "url": "Patient/d5fe6802-a680-e762-8f43-9659340b00ac" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Practitioner" - }, - "request": { - "method": "PUT", - "url": "Practitioner/" - } - }, - { - "fullUrl": "urn:uuid:15d1e2fd-66ed-373c-919f-8204c9c27ec6", - "resource": { - "resourceType": "Practitioner", - "id": "15d1e2fd-66ed-373c-919f-8204c9c27ec6" - }, - "request": { - "method": "PUT", - "url": "Practitioner/15d1e2fd-66ed-373c-919f-8204c9c27ec6" - } - }, - { - "fullUrl": "urn:uuid:3e9d1ae2-2dbe-bdd9-8da6-6a9fdfc18068", - "resource": { - "resourceType": "Account", - "id": "3e9d1ae2-2dbe-bdd9-8da6-6a9fdfc18068", - "identifier": [ - { - "value": "PATID12345001", - "type": { - "coding": [ - { - "code": "AN", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + }, + "request": { + "method": "PUT", + "url": "Practitioner/15d1e2fd-66ed-373c-919f-8204c9c27ec6" + } + }, + { + "fullUrl": "urn:uuid:55fb6bcf-59d7-2cc4-2ddc-d38ba31ff1d2", + "resource": { + "resourceType": "Location", + "id": "55fb6bcf-59d7-2cc4-2ddc-d38ba31ff1d2", + "name": "2000", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] } - ] + }, + "request": { + "method": "PUT", + "url": "Location/55fb6bcf-59d7-2cc4-2ddc-d38ba31ff1d2" } - } - ], - "subject": [ - { - "reference": "Patient/d5fe6802-a680-e762-8f43-9659340b00ac" - } - ] - }, - "request": { - "method": "PUT", - "url": "Account/3e9d1ae2-2dbe-bdd9-8da6-6a9fdfc18068" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Location" - }, - "request": { - "method": "PUT", - "url": "Location/" - } - }, - { - "fullUrl": "urn:uuid:29eb5214-21d0-ed82-39f9-da4e50277c80", - "resource": { - "resourceType": "Location", - "id": "29eb5214-21d0-ed82-39f9-da4e50277c80", - "mode": "instance", - "physicalType": { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + }, + { + "fullUrl": "urn:uuid:95fb96ed-bf64-1327-6204-e8e66a472eb6", + "resource": { + "resourceType": "Location", + "id": "95fb96ed-bf64-1327-6204-e8e66a472eb6", + "partOf": { + "reference": "Location/55fb6bcf-59d7-2cc4-2ddc-d38ba31ff1d2" + }, + "name": "2012", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/95fb96ed-bf64-1327-6204-e8e66a472eb6" } - ] - } - }, - "request": { - "method": "PUT", - "url": "Location/29eb5214-21d0-ed82-39f9-da4e50277c80" - } - }, - { - "fullUrl": "urn:uuid:a6091df2-6411-bec2-7f42-36d851d96cbe", - "resource": { - "resourceType": "Provenance", - "id": "a6091df2-6411-bec2-7f42-36d851d96cbe", - "text": { - "status": "generated", - "div": "

Resource bundle generated on GENERATED_INSTANT_PLACEHOLDER using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: TEMPLATE_URL_PLACEHOLDER.Root template: ADT_A01.

" }, - "agent": [ - { - "type": { - "coding": [ - { - "code": "author", - "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + { + "fullUrl": "urn:uuid:408220ee-3137-d895-e8a9-8937117bf0c1", + "resource": { + "resourceType": "Location", + "id": "408220ee-3137-d895-e8a9-8937117bf0c1", + "partOf": { + "reference": "Location/95fb96ed-bf64-1327-6204-e8e66a472eb6" + }, + "name": "01", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] } - ] + }, + "request": { + "method": "PUT", + "url": "Location/408220ee-3137-d895-e8a9-8937117bf0c1" } - } - ], - "recorded": "1988-08-18T11:26:00" - }, - "request": { - "method": "PUT", - "url": "Provenance/a6091df2-6411-bec2-7f42-36d851d96cbe" - } - }, - { - "fullUrl": "urn:uuid:8add615d-1d8a-1bf3-bffc-9bd789bee0a3", - "resource": { - "resourceType": "Encounter", - "id": "8add615d-1d8a-1bf3-bffc-9bd789bee0a3", - "class": { - "code": "IMP", - "display": "inpatient encounter", - "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" }, - "status": "unknown", - "location": [ - { - "status": "active", - "location": { - "reference": "Location/29eb5214-21d0-ed82-39f9-da4e50277c80" + { + "fullUrl": "urn:uuid:8add615d-1d8a-1bf3-bffc-9bd789bee0a3", + "resource": { + "resourceType": "Encounter", + "id": "8add615d-1d8a-1bf3-bffc-9bd789bee0a3", + "class": { + "code": "IMP", + "display": "inpatient encounter", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "status": "in-progress", + "location": [ + { + "status": "active", + "location": { + "reference": "Location/55fb6bcf-59d7-2cc4-2ddc-d38ba31ff1d2" + } + }, + { + "status": "active", + "location": { + "reference": "Location/95fb96ed-bf64-1327-6204-e8e66a472eb6" + } + }, + { + "status": "active", + "location": { + "reference": "Location/408220ee-3137-d895-e8a9-8937117bf0c1" + } + } + ], + "hospitalization": { + "admitSource": { + "coding": [ + { + "code": "ADM" + } + ] + } + }, + "participant": [ + { + "type": [ + { + "coding": [ + { + "code": "ATND", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", + "display": "attender" + } + ] + } + ], + "individual": { + "reference": "Practitioner/15d1e2fd-66ed-373c-919f-8204c9c27ec6" + } + } + ], + "serviceType": { + "coding": [ + { + "code": "SUR" + } + ] + }, + "text": { + "status": "generated", + "div": "

Visit Description:

" + }, + "subject": { + "reference": "Patient/d5fe6802-a680-e762-8f43-9659340b00ac" + } + }, + "request": { + "method": "PUT", + "url": "Encounter/8add615d-1d8a-1bf3-bffc-9bd789bee0a3" } - } - ], - "hospitalization": { - "admitSource": { - "coding": [ - { - "code": "ADM" - } - ] - } }, - "participant": [ - { - "type": [ - { - "coding": [ - { - "code": "ATND", - "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", - "display": "attender" - } + { + "fullUrl": "urn:uuid:c6a03972-34d3-7649-0b8f-004e4d442eca", + "resource": { + "resourceType": "Provenance", + "id": "c6a03972-34d3-7649-0b8f-004e4d442eca", + "recorded": "2007-08-18T11:23:00", + "activity": { + "text": "ADT^A01^ADT_A01" + }, + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } ] - } - ], - "individual": { - "reference": "Practitioner/15d1e2fd-66ed-373c-919f-8204c9c27ec6" - } - } - ], - "serviceType": { - "coding": [ - { - "code": "SUR" + }, + "request": { + "method": "PUT", + "url": "Provenance/c6a03972-34d3-7649-0b8f-004e4d442eca" } - ] }, - "subject": { - "reference": "Patient/d5fe6802-a680-e762-8f43-9659340b00ac" - } - }, - "request": { - "method": "PUT", - "url": "Encounter/8add615d-1d8a-1bf3-bffc-9bd789bee0a3" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Organization" - }, - "request": { - "method": "PUT", - "url": "Organization/" - } - }, - { - "fullUrl": "urn:uuid:b3a71bad-ca58-a43e-78c3-228806a2f316", - "resource": { - "resourceType": "RelatedPerson", - "id": "b3a71bad-ca58-a43e-78c3-228806a2f316", - "relationship": [ - { - "coding": [ - { - "code": "SPS", - "display": "spouse", - "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" - } - ] - }, - { - "coding": [ - { - "code": "NK", - "display": "NK" - } - ] - } - ], - "name": [ - { - "family": "NUCLEAR", - "given": [ - "NELDA", - "W" - ] - } - ], - "patient": { - "reference": "Patient/d5fe6802-a680-e762-8f43-9659340b00ac" + { + "fullUrl": "urn:uuid:b3a71bad-ca58-a43e-78c3-228806a2f316", + "resource": { + "resourceType": "RelatedPerson", + "id": "b3a71bad-ca58-a43e-78c3-228806a2f316", + "relationship": [ + { + "coding": [ + { + "code": "SPS", + "display": "spouse", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + }, + { + "coding": [ + { + "code": "NK", + "display": "NK" + } + ] + } + ], + "name": [ + { + "family": "NUCLEAR", + "given": [ + "NELDA", + "W" + ] + } + ], + "patient": { + "reference": "Patient/d5fe6802-a680-e762-8f43-9659340b00ac" + } + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/b3a71bad-ca58-a43e-78c3-228806a2f316" + } } - }, - "request": { - "method": "PUT", - "url": "RelatedPerson/b3a71bad-ca58-a43e-78c3-228806a2f316" - } - } - ] + ] } \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A01/ADT04-23-expected.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A01/ADT04-23-expected.json deleted file mode 100644 index 96c5c974a..000000000 --- a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A01/ADT04-23-expected.json +++ /dev/null @@ -1,538 +0,0 @@ -{ - "resourceType": "Bundle", - "type": "batch", - "timestamp": "2001-01-01T00:00:00", - "identifier": { - "value": "Q123456789T123456789X123456" - }, - "entry": [ - { - "fullUrl": "urn:uuid:18548d54-14a8-815a-c1bb-396f35b37164", - "resource": { - "resourceType": "MessageHeader", - "id": "18548d54-14a8-815a-c1bb-396f35b37164", - "source": { - "name": "NES" - }, - "destination": [ - { - "name": "TESTSYSTEM" - } - ], - "meta": { - "tag": [ - { - "code": "P", - "system": "http://terminology.hl7.org/CodeSystem/v2-0103" - } - ] - }, - "eventCoding": { - "code": "A04", - "system": "http://terminology.hl7.org/CodeSystem/v2-0003" - } - }, - "request": { - "method": "PUT", - "url": "MessageHeader/18548d54-14a8-815a-c1bb-396f35b37164" - } - }, - { - "fullUrl": "urn:uuid:5002eb07-c460-7112-6574-50303ae3b4a6", - "resource": { - "resourceType": "Patient", - "id": "5002eb07-c460-7112-6574-50303ae3b4a6", - "identifier": [ - { - "value": "123456789", - "type": { - "coding": [ - { - "code": "MR", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" - } - ] - } - } - ], - "name": [ - { - "family": "BROS", - "given": [ - "MARIO" - ] - } - ], - "birthDate": "1985-01-01", - "gender": "male", - "address": [ - { - "line": [ - "123 FAKE STREET", - "MARIO LUIGI BROS PLACE" - ], - "city": "TOADSTOOL KINGDOM", - "state": "NES", - "postalCode": "A1B2C3", - "country": "JP" - }, - { - "district": "1234" - } - ], - "telecom": [ - { - "value": "(555)555-0123", - "use": "home" - }, - { - "value": "(555)555-0124", - "use": "home" - } - ], - "maritalStatus": { - "coding": [ - { - "code": "S", - "display": "Never Married", - "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" - } - ] - }, - "multipleBirthInteger": "0", - "deceasedBoolean": "false", - "contact": [ - { - "name": { - "family": "PEACH", - "given": [ - "PRINCESS" - ] - }, - "address": { - "line": [ - "ANOTHER CASTLE" - ], - "city": "TOADSTOOL KINGDOM", - "state": "NES", - "country": "JP" - }, - "telecom": [ - { - "value": "(123)555-1234" - }, - { - "value": "(123)555-2345" - } - ], - "relationship": [ - { - "coding": [ - { - "code": "NOK", - "display": "NOK" - } - ] - } - ] - }, - { - "name": { - "family": "TOADSTOOL", - "given": [ - "PRINCESS" - ] - }, - "address": { - "line": [ - "YET ANOTHER CASTLE" - ], - "city": "TOADSTOOL KINGDOM", - "state": "NES", - "country": "JP" - }, - "telecom": [ - { - "value": "(123)555-3456" - }, - { - "value": "(123)555-4567" - } - ], - "relationship": [ - { - "coding": [ - { - "code": "EMC", - "display": "EMC" - } - ] - } - ] - } - ] - }, - "request": { - "method": "PUT", - "url": "Patient/5002eb07-c460-7112-6574-50303ae3b4a6" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Practitioner" - }, - "request": { - "method": "PUT", - "url": "Practitioner/" - } - }, - { - "fullUrl": "urn:uuid:06328e17-a467-ce3f-48ba-28a3e3c21152", - "resource": { - "resourceType": "Practitioner", - "id": "06328e17-a467-ce3f-48ba-28a3e3c21152" - }, - "request": { - "method": "PUT", - "url": "Practitioner/06328e17-a467-ce3f-48ba-28a3e3c21152" - } - }, - { - "fullUrl": "urn:uuid:a5bcb90d-8151-7e13-dd82-9e837d506efa", - "resource": { - "resourceType": "Practitioner", - "id": "a5bcb90d-8151-7e13-dd82-9e837d506efa" - }, - "request": { - "method": "PUT", - "url": "Practitioner/a5bcb90d-8151-7e13-dd82-9e837d506efa" - } - }, - { - "fullUrl": "urn:uuid:0b931b2e-4814-b7ed-7159-4cf2805ef38f", - "resource": { - "resourceType": "Account", - "id": "0b931b2e-4814-b7ed-7159-4cf2805ef38f", - "identifier": [ - { - "value": "12345678" - } - ], - "subject": [ - { - "reference": "Patient/5002eb07-c460-7112-6574-50303ae3b4a6" - } - ] - }, - "request": { - "method": "PUT", - "url": "Account/0b931b2e-4814-b7ed-7159-4cf2805ef38f" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Location" - }, - "request": { - "method": "PUT", - "url": "Location/" - } - }, - { - "fullUrl": "urn:uuid:1061dd71-d0a8-e8d0-7468-5be2eb4db1f8", - "resource": { - "resourceType": "Location", - "id": "1061dd71-d0a8-e8d0-7468-5be2eb4db1f8", - "mode": "instance", - "physicalType": { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" - } - ] - } - }, - "request": { - "method": "PUT", - "url": "Location/1061dd71-d0a8-e8d0-7468-5be2eb4db1f8" - } - }, - { - "fullUrl": "urn:uuid:affd96b8-87bc-956b-0215-7db7a8c6a9b3", - "resource": { - "resourceType": "Location", - "id": "affd96b8-87bc-956b-0215-7db7a8c6a9b3" - }, - "request": { - "method": "PUT", - "url": "Location/affd96b8-87bc-956b-0215-7db7a8c6a9b3" - } - }, - { - "fullUrl": "urn:uuid:ab3d28cb-c909-4ba2-b02e-0a868895ef0b", - "resource": { - "resourceType": "Provenance", - "id": "ab3d28cb-c909-4ba2-b02e-0a868895ef0b", - "text": { - "status": "generated", - "div": "

Resource bundle generated on GENERATED_INSTANT_PLACEHOLDER using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: TEMPLATE_URL_PLACEHOLDER.Root template: ADT_A01.

" - }, - "agent": [ - { - "type": { - "coding": [ - { - "code": "author", - "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" - } - ] - } - } - ], - "recorded": "2001-01-01T00:00:00" - }, - "request": { - "method": "PUT", - "url": "Provenance/ab3d28cb-c909-4ba2-b02e-0a868895ef0b" - } - }, - { - "fullUrl": "urn:uuid:1ffe7bbb-44ca-d195-1456-40d94950090b", - "resource": { - "resourceType": "Encounter", - "id": "1ffe7bbb-44ca-d195-1456-40d94950090b", - "class": { - "code": "AMB", - "display": "ambulatory", - "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" - }, - "status": "unknown", - "location": [ - { - "status": "active", - "location": { - "reference": "Location/1061dd71-d0a8-e8d0-7468-5be2eb4db1f8" - } - }, - { - "status": "completed", - "location": { - "reference": "Location/affd96b8-87bc-956b-0215-7db7a8c6a9b3" - } - } - ], - "participant": [ - { - "type": [ - { - "coding": [ - { - "code": "ATND", - "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", - "display": "attender" - } - ] - } - ], - "individual": { - "reference": "Practitioner/06328e17-a467-ce3f-48ba-28a3e3c21152" - } - }, - { - "type": [ - { - "coding": [ - { - "code": "REF", - "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" - } - ], - "text": "referrer" - } - ], - "individual": { - "reference": "Practitioner/a5bcb90d-8151-7e13-dd82-9e837d506efa" - } - }, - { - "type": [ - { - "coding": [ - { - "code": "ADM", - "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" - } - ], - "text": "admitter" - } - ], - "individual": { - "reference": "Practitioner/06328e17-a467-ce3f-48ba-28a3e3c21152" - } - } - ], - "serviceType": { - "coding": [ - { - "code": "CRD" - } - ] - }, - "identifier": [ - { - "value": "0123456789", - "type": { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" - } - ], - "text": "visit number" - } - } - ], - "period": { - "start": "2001-01-01T00:00:00" - }, - "subject": { - "reference": "Patient/5002eb07-c460-7112-6574-50303ae3b4a6" - } - }, - "request": { - "method": "PUT", - "url": "Encounter/1ffe7bbb-44ca-d195-1456-40d94950090b" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Organization" - }, - "request": { - "method": "PUT", - "url": "Organization/" - } - }, - { - "fullUrl": "urn:uuid:4e083e5f-53b4-194d-b6bd-6d51b5dab850", - "resource": { - "resourceType": "RelatedPerson", - "id": "4e083e5f-53b4-194d-b6bd-6d51b5dab850", - "relationship": [ - { - "coding": [ - { - "code": "SO", - "display": "SO" - } - ] - }, - { - "coding": [ - { - "code": "NOK", - "display": "NOK" - } - ] - } - ], - "address": [ - { - "line": [ - "ANOTHER CASTLE" - ], - "city": "TOADSTOOL KINGDOM", - "state": "NES", - "country": "JP" - } - ], - "telecom": [ - { - "value": "(123)555-1234" - }, - { - "value": "(123)555-2345", - "use": "work" - } - ], - "name": [ - { - "family": "PEACH", - "given": [ - "PRINCESS" - ] - } - ], - "patient": { - "reference": "Patient/5002eb07-c460-7112-6574-50303ae3b4a6" - } - }, - "request": { - "method": "PUT", - "url": "RelatedPerson/4e083e5f-53b4-194d-b6bd-6d51b5dab850" - } - }, - { - "fullUrl": "urn:uuid:a7a01053-59be-eb80-1f54-591a69d5bc8e", - "resource": { - "resourceType": "RelatedPerson", - "id": "a7a01053-59be-eb80-1f54-591a69d5bc8e", - "relationship": [ - { - "coding": [ - { - "code": "SO", - "display": "SO" - } - ] - }, - { - "coding": [ - { - "code": "C", - "display": "Emergency Contact", - "system": "http://terminology.hl7.org/CodeSystem/v2-0131" - } - ] - } - ], - "address": [ - { - "line": [ - "YET ANOTHER CASTLE" - ], - "city": "TOADSTOOL KINGDOM", - "state": "NES", - "country": "JP" - } - ], - "telecom": [ - { - "value": "(123)555-3456" - }, - { - "value": "(123)555-4567", - "use": "work" - } - ], - "name": [ - { - "family": "TOADSTOOL", - "given": [ - "PRINCESS" - ] - } - ], - "patient": { - "reference": "Patient/5002eb07-c460-7112-6574-50303ae3b4a6" - } - }, - "request": { - "method": "PUT", - "url": "RelatedPerson/a7a01053-59be-eb80-1f54-591a69d5bc8e" - } - } - ] -} \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A01/ADT04-251-expected.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A01/ADT04-251-expected.json deleted file mode 100644 index 2e70c68eb..000000000 --- a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A01/ADT04-251-expected.json +++ /dev/null @@ -1,278 +0,0 @@ -{ - "resourceType": "Bundle", - "type": "batch", - "timestamp": "2019-05-03T03:16:59.069+08:00", - "identifier": { - "value": "401" - }, - "entry": [ - { - "fullUrl": "urn:uuid:55e2d2b6-8c08-6f34-9f2c-ccf2ba785dba", - "resource": { - "resourceType": "MessageHeader", - "id": "55e2d2b6-8c08-6f34-9f2c-ccf2ba785dba", - "meta": { - "tag": [ - { - "code": "T", - "system": "http://terminology.hl7.org/CodeSystem/v2-0103" - } - ] - }, - "eventCoding": { - "code": "A04", - "system": "http://terminology.hl7.org/CodeSystem/v2-0003" - } - }, - "request": { - "method": "PUT", - "url": "MessageHeader/55e2d2b6-8c08-6f34-9f2c-ccf2ba785dba" - } - }, - { - "fullUrl": "urn:uuid:106decd4-a7b0-34eb-afe9-94e54bdff26f", - "resource": { - "resourceType": "Patient", - "id": "106decd4-a7b0-34eb-afe9-94e54bdff26f", - "identifier": [ - { - "value": "MRN12345", - "type": { - "coding": [ - { - "code": "MR", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" - } - ] - } - } - ], - "name": [ - { - "family": "Doe", - "given": [ - "Jane" - ] - } - ], - "birthDate": "1978-01-01", - "gender": "female", - "contact": [ - { - "name": { - "family": "JOHNSON", - "given": [ - "CONWAY" - ], - "use": "official" - }, - "telecom": [ - { - "value": "(130) 724-0433", - "use": "home" - }, - { - "value": "(330) 274-8214" - } - ], - "relationship": [ - { - "coding": [ - { - "code": "EMERGENCY", - "display": "EMERGENCY" - } - ] - } - ] - } - ] - }, - "request": { - "method": "PUT", - "url": "Patient/106decd4-a7b0-34eb-afe9-94e54bdff26f" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Practitioner" - }, - "request": { - "method": "PUT", - "url": "Practitioner/" - } - }, - { - "fullUrl": "urn:uuid:10ffd4e9-25bf-8239-3d9b-64bef81e192a", - "resource": { - "resourceType": "Practitioner", - "id": "10ffd4e9-25bf-8239-3d9b-64bef81e192a" - }, - "request": { - "method": "PUT", - "url": "Practitioner/10ffd4e9-25bf-8239-3d9b-64bef81e192a" - } - }, - { - "fullUrl": "urn:uuid:1791139d-4b3d-30a1-a790-ecff6e63a1fd", - "resource": { - "resourceType": "Account", - "id": "1791139d-4b3d-30a1-a790-ecff6e63a1fd", - "identifier": [ - { - "value": "123456789" - } - ], - "subject": [ - { - "reference": "Patient/106decd4-a7b0-34eb-afe9-94e54bdff26f" - } - ] - }, - "request": { - "method": "PUT", - "url": "Account/1791139d-4b3d-30a1-a790-ecff6e63a1fd" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Location" - }, - "request": { - "method": "PUT", - "url": "Location/" - } - }, - { - "fullUrl": "urn:uuid:269e4fbc-35ab-2c46-9c28-f4ab11c3b1f3", - "resource": { - "resourceType": "Provenance", - "id": "269e4fbc-35ab-2c46-9c28-f4ab11c3b1f3", - "text": { - "status": "generated", - "div": "

Resource bundle generated on GENERATED_INSTANT_PLACEHOLDER using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: TEMPLATE_URL_PLACEHOLDER.Root template: ADT_A01.

" - }, - "agent": [ - { - "type": { - "coding": [ - { - "code": "author", - "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" - } - ] - } - } - ], - "recorded": "2019-05-03T03:16:59.069+08:00" - }, - "request": { - "method": "PUT", - "url": "Provenance/269e4fbc-35ab-2c46-9c28-f4ab11c3b1f3" - } - }, - { - "fullUrl": "urn:uuid:bd2f287c-f7df-4b1b-7fbf-987cdf51ee4e", - "resource": { - "resourceType": "Encounter", - "id": "bd2f287c-f7df-4b1b-7fbf-987cdf51ee4e", - "class": { - "code": "EMER", - "display": "emergency", - "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" - }, - "status": "unknown", - "participant": [ - { - "type": [ - { - "coding": [ - { - "code": "ATND", - "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", - "display": "attender" - } - ] - } - ], - "individual": { - "reference": "Practitioner/10ffd4e9-25bf-8239-3d9b-64bef81e192a" - } - } - ], - "period": { - "start": "2019-05-02T07:00:00" - }, - "subject": { - "reference": "Patient/106decd4-a7b0-34eb-afe9-94e54bdff26f" - } - }, - "request": { - "method": "PUT", - "url": "Encounter/bd2f287c-f7df-4b1b-7fbf-987cdf51ee4e" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Organization" - }, - "request": { - "method": "PUT", - "url": "Organization/" - } - }, - { - "fullUrl": "urn:uuid:4e852062-3313-586b-4979-1f4c539eb4d5", - "resource": { - "resourceType": "RelatedPerson", - "id": "4e852062-3313-586b-4979-1f4c539eb4d5", - "relationship": [ - { - "coding": [ - { - "code": "SPOUS", - "display": "SPOUS" - } - ] - }, - { - "coding": [ - { - "code": "EMERGENCY", - "display": "EMERGENCY" - } - ] - } - ], - "telecom": [ - { - "value": "(130) 724-0433", - "use": "home" - }, - { - "value": "(330) 274-8214" - } - ], - "name": [ - { - "family": "JOHNSON", - "given": [ - "CONWAY" - ], - "use": "official" - } - ], - "patient": { - "reference": "Patient/106decd4-a7b0-34eb-afe9-94e54bdff26f" - } - }, - "request": { - "method": "PUT", - "url": "RelatedPerson/4e852062-3313-586b-4979-1f4c539eb4d5" - } - } - ] -} \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A01/ADT04-28-expected.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A01/ADT04-28-expected.json deleted file mode 100644 index 91c802d47..000000000 --- a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A01/ADT04-28-expected.json +++ /dev/null @@ -1,397 +0,0 @@ -{ - "resourceType": "Bundle", - "type": "batch", - "timestamp": "2019-05-04T18:12:05", - "identifier": { - "value": "1270326314" - }, - "entry": [ - { - "fullUrl": "urn:uuid:aa9b0327-0d9f-945a-888c-07658da974df", - "resource": { - "resourceType": "MessageHeader", - "id": "aa9b0327-0d9f-945a-888c-07658da974df", - "source": { - "name": "REDOX" - }, - "meta": { - "tag": [ - { - "code": "T", - "system": "http://terminology.hl7.org/CodeSystem/v2-0103" - } - ] - }, - "eventCoding": { - "code": "A04", - "system": "http://terminology.hl7.org/CodeSystem/v2-0003" - } - }, - "request": { - "method": "PUT", - "url": "MessageHeader/aa9b0327-0d9f-945a-888c-07658da974df" - } - }, - { - "fullUrl": "urn:uuid:f7a9494a-3fac-e0e1-78d8-d7c20410ca33", - "resource": { - "resourceType": "Patient", - "id": "f7a9494a-3fac-e0e1-78d8-d7c20410ca33", - "identifier": [ - { - "value": "0000000001" - }, - { - "value": "e167267c-16c9-4fe3-96ae-9cff5703e90a" - }, - { - "value": "a1d4ee8aba494ca" - }, - { - "value": "101-01-0001", - "type": { - "coding": [ - { - "code": "SS", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" - } - ] - }, - "system": "http://hl7.org/fhir/sid/us-ssn" - } - ], - "name": [ - { - "family": "Bixby", - "given": [ - "Timothy", - "Paul" - ] - } - ], - "birthDate": "2008-01-06", - "gender": "male", - "address": [ - { - "line": [ - "4762 Hickory Street" - ], - "city": "Monroe", - "state": "WI", - "postalCode": "53566", - "country": "US" - }, - { - "district": "Green" - } - ], - "telecom": [ - { - "value": "8088675301", - "use": "home" - } - ], - "maritalStatus": { - "coding": [ - { - "code": "Married", - "display": "Married" - } - ] - }, - "contact": [ - { - "name": { - "family": "Bixby", - "given": [ - "Barbara" - ] - }, - "address": { - "line": [ - "4762 Hickory Street" - ], - "city": "Monroe", - "state": "WI", - "postalCode": "53566", - "country": "US" - }, - "telecom": [ - { - "value": "+19189368865" - } - ], - "relationship": [ - { - "coding": [ - { - "code": "Emergency Contact", - "display": "Emergency Contact" - } - ] - } - ] - } - ] - }, - "request": { - "method": "PUT", - "url": "Patient/f7a9494a-3fac-e0e1-78d8-d7c20410ca33" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Practitioner" - }, - "request": { - "method": "PUT", - "url": "Practitioner/" - } - }, - { - "fullUrl": "urn:uuid:78421d2f-a405-2d71-ff9f-132539dbcdb5", - "resource": { - "resourceType": "Practitioner", - "id": "78421d2f-a405-2d71-ff9f-132539dbcdb5" - }, - "request": { - "method": "PUT", - "url": "Practitioner/78421d2f-a405-2d71-ff9f-132539dbcdb5" - } - }, - { - "fullUrl": "urn:uuid:fb207bbb-3ad0-180c-bd53-8ca8fd3581ec", - "resource": { - "resourceType": "Practitioner", - "id": "fb207bbb-3ad0-180c-bd53-8ca8fd3581ec" - }, - "request": { - "method": "PUT", - "url": "Practitioner/fb207bbb-3ad0-180c-bd53-8ca8fd3581ec" - } - }, - { - "fullUrl": "urn:uuid:256cf56f-8ec4-5af5-cf3f-4f9a833482be", - "resource": { - "resourceType": "Account", - "id": "256cf56f-8ec4-5af5-cf3f-4f9a833482be", - "identifier": [ - { - "value": "1234" - } - ], - "subject": [ - { - "reference": "Patient/f7a9494a-3fac-e0e1-78d8-d7c20410ca33" - } - ] - }, - "request": { - "method": "PUT", - "url": "Account/256cf56f-8ec4-5af5-cf3f-4f9a833482be" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Location" - }, - "request": { - "method": "PUT", - "url": "Location/" - } - }, - { - "fullUrl": "urn:uuid:a821376a-5d7b-7274-8d95-a3f7c7efaf1b", - "resource": { - "resourceType": "Location", - "id": "a821376a-5d7b-7274-8d95-a3f7c7efaf1b", - "mode": "instance", - "physicalType": { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" - } - ] - } - }, - "request": { - "method": "PUT", - "url": "Location/a821376a-5d7b-7274-8d95-a3f7c7efaf1b" - } - }, - { - "fullUrl": "urn:uuid:a81dc37f-d7f3-c46a-00b1-4ff08fa99061", - "resource": { - "resourceType": "Provenance", - "id": "a81dc37f-d7f3-c46a-00b1-4ff08fa99061", - "text": { - "status": "generated", - "div": "

Resource bundle generated on GENERATED_INSTANT_PLACEHOLDER using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: TEMPLATE_URL_PLACEHOLDER.Root template: ADT_A01.

" - }, - "agent": [ - { - "type": { - "coding": [ - { - "code": "author", - "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" - } - ] - } - } - ], - "recorded": "2019-05-04T18:12:05" - }, - "request": { - "method": "PUT", - "url": "Provenance/a81dc37f-d7f3-c46a-00b1-4ff08fa99061" - } - }, - { - "fullUrl": "urn:uuid:99425718-6c7d-d427-2df3-db51299fdb0b", - "resource": { - "resourceType": "Encounter", - "id": "99425718-6c7d-d427-2df3-db51299fdb0b", - "class": { - "code": "IMP", - "display": "inpatient encounter", - "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" - }, - "status": "unknown", - "location": [ - { - "status": "active", - "location": { - "reference": "Location/a821376a-5d7b-7274-8d95-a3f7c7efaf1b" - } - } - ], - "participant": [ - { - "type": [ - { - "coding": [ - { - "code": "ATND", - "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", - "display": "attender" - } - ] - } - ], - "individual": { - "reference": "Practitioner/78421d2f-a405-2d71-ff9f-132539dbcdb5" - } - }, - { - "type": [ - { - "coding": [ - { - "code": "REF", - "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" - } - ], - "text": "referrer" - } - ], - "individual": { - "reference": "Practitioner/fb207bbb-3ad0-180c-bd53-8ca8fd3581ec" - } - } - ], - "identifier": [ - { - "value": "1234", - "type": { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" - } - ], - "text": "visit number" - } - } - ], - "period": { - "start": "2018-10-17T22:28:05" - }, - "subject": { - "reference": "Patient/f7a9494a-3fac-e0e1-78d8-d7c20410ca33" - } - }, - "request": { - "method": "PUT", - "url": "Encounter/99425718-6c7d-d427-2df3-db51299fdb0b" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Organization" - }, - "request": { - "method": "PUT", - "url": "Organization/" - } - }, - { - "fullUrl": "urn:uuid:ece287da-a00b-b349-5de5-c25906e7ac53", - "resource": { - "resourceType": "RelatedPerson", - "id": "ece287da-a00b-b349-5de5-c25906e7ac53", - "relationship": [ - { - "coding": [ - { - "code": "Mother", - "display": "Mother" - } - ] - }, - { - "coding": [ - { - "code": "Emergency Contact", - "display": "Emergency Contact" - } - ] - } - ], - "address": [ - { - "line": [ - "4762 Hickory Street" - ], - "city": "Monroe", - "state": "WI", - "postalCode": "53566", - "country": "US" - } - ], - "telecom": [ - { - "value": "+19189368865" - } - ], - "name": [ - { - "family": "Bixby", - "given": [ - "Barbara" - ] - } - ], - "patient": { - "reference": "Patient/f7a9494a-3fac-e0e1-78d8-d7c20410ca33" - } - }, - "request": { - "method": "PUT", - "url": "RelatedPerson/ece287da-a00b-b349-5de5-c25906e7ac53" - } - } - ] -} \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A02/ADT-A02-expected-2.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A02/ADT-A02-expected-2.json new file mode 100644 index 000000000..c6561eb8e --- /dev/null +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A02/ADT-A02-expected-2.json @@ -0,0 +1,2130 @@ +{ + "resourceType": "Bundle", + "type": "batch", + "timestamp": "1989-08-18T14:41:00+05:30", + "identifier": { + "value": "MSG00001" + }, + "id": "513a3d06-5e87-6fbc-ad1b-170ab430499f", + "entry": [ + { + "fullUrl": "urn:uuid:b4ca189b-51ae-33df-cbe2-559b4423a321", + "resource": { + "resourceType": "MessageHeader", + "id": "b4ca189b-51ae-33df-cbe2-559b4423a321", + "source": { + "name": "24GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.20" + }, + "destination": [ + { + "name": "25GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.23", + "receiver": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + } + ], + "meta": { + "security": [ + { + "display": "SECURITY", + "system": "http://example.com/v2-to-fhirconverter/security-label" + } + ], + "tag": [ + { + "code": "P", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "A02", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ADT^A02^ADT_A02" + }, + "language": "en-US", + "sender": { + "reference": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + }, + "responsible": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + "request": { + "method": "PUT", + "url": "MessageHeader/b4ca189b-51ae-33df-cbe2-559b4423a321" + } + }, + { + "fullUrl": "urn:uuid:f65d2168-02c8-1897-210d-361176172856", + "resource": { + "resourceType": "Provenance", + "id": "f65d2168-02c8-1897-210d-361176172856", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T12:42:35.872Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ADT_A02.

" + }, + "occurredDateTime": "1989-08-18T14:41:00+05:30", + "recorded": "1989-08-18T14:41:00+05:30", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + } + ], + "activity": { + "coding": [ + { + "display": "ADT^A02^ADT_A02" + } + ] + }, + "entity": [ + { + "role": "source", + "what": { + "reference": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + } + ], + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/f65d2168-02c8-1897-210d-361176172856" + } + }, + { + "fullUrl": "urn:uuid:4356fb81-6ecd-2d70-57b1-47812638e785", + "resource": { + "resourceType": "Organization", + "id": "4356fb81-6ecd-2d70-57b1-47812638e785", + "identifier": [ + { + "value": "GHHSFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHSFacility" + }, + { + "value": "urn:oid:2.16.840.1.122848.1.30", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + } + }, + { + "fullUrl": "urn:uuid:62781ad6-3896-cb63-0178-ead0c4a432b5", + "resource": { + "resourceType": "Organization", + "id": "62781ad6-3896-cb63-0178-ead0c4a432b5", + "identifier": [ + { + "value": "GHHRFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHRFacility" + }, + { + "value": "urn:oid:2.16.840.1.1122848.1.32", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/62781ad6-3896-cb63-0178-ead0c4a432b5" + } + }, + { + "fullUrl": "urn:uuid:33532a82-d220-4c0d-1abe-53e48951c201", + "resource": { + "resourceType": "Organization", + "id": "33532a82-d220-4c0d-1abe-53e48951c201", + "name": "22 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + { + "fullUrl": "urn:uuid:527280c1-34d1-c639-e9ba-61986d28e266", + "resource": { + "resourceType": "Organization", + "id": "527280c1-34d1-c639-e9ba-61986d28e266", + "name": "23 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + }, + { + "fullUrl": "urn:uuid:503eb873-22fb-8199-ae28-3604ad59fe13", + "resource": { + "resourceType": "Device", + "id": "503eb873-22fb-8199-ae28-3604ad59fe13", + "identifier": [ + { + "value": "ADTApp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + }, + { + "fullUrl": "urn:uuid:9e909e52-61a1-be50-1878-a12ef8c36346", + "resource": { + "resourceType": "Patient", + "id": "9e909e52-61a1-be50-1878-a12ef8c36346", + "identifier": [ + { + "value": "1234567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "PATID1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "value": "123456789", + "type": { + "coding": [ + { + "code": "SS", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Social Security number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-USSSA" + }, + { + "value": "PATID567", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test2" + }, + { + "value": "PSSN123121234", + "type": { + "coding": [ + { + "code": "SB", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + }, + { + "value": "DLN-123", + "type": { + "coding": [ + { + "code": "DL" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/US", + "period": { + "end": "2001-01-23" + } + } + ], + "name": [ + { + "family": "EVERYMAN", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official", + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + }, + { + "family": "elbert", + "given": [ + "Son" + ] + } + ], + "birthDate": "1988-08-18", + "_birthDate": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime": "1988-08-18T14:41:00+05:30" + } + ] + }, + "gender": "male", + "address": [ + { + "line": [ + "1000", + "Hospital Lane", + "Ste. 123", + "Near Highway" + ], + "city": "Ann Arbor ", + "state": "MI", + "postalCode": "99999", + "country": "USA", + "type": "postal", + "district": "W", + "period": { + "start": "2000-01-10", + "end": "2000-01-20" + } + } + ], + "telecom": [ + { + "value": "2222", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18, + "use": "home" + }, + { + "value": "12121212", + "system": "phone", + "use": "home" + }, + { + "value": "7777", + "system": "phone", + "use": "work" + }, + { + "value": "1111", + "system": "other", + "use": "work" + }, + { + "value": "89898989", + "use": "work", + "system": "email" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47", + "version": "v2" + }, + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47", + "version": "v2.1" + } + ], + "text": "TextInEnglish" + }, + "preferred": true + } + ], + "maritalStatus": { + "coding": [ + { + "code": "M", + "display": "Married", + "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" + } + ] + }, + "multipleBirthInteger": 2, + "deceasedDateTime": "2008-08-25T15:31:30+05:30", + "meta": { + "lastUpdated": "2005-01-10T04:05:14+05:30" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "ombCategory", + "valueCoding": { + "code": "2028-9", + "display": "Asian", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White+Asian" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + "valueString": "SMITH--Angela--L" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", + "valueAddress": { + "text": "St. Francis Community Hospital of Lower South Side" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-religion", + "valueCodeableConcept": { + "coding": [ + { + "code": "1002", + "display": "African Religions", + "system": "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2186-5", + "display": "Non Hispanic or Latino", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "Non Hispanic or Latino" + } + ] + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/VeteranMilitaryStatus", + "valueCodeableConcept": { + "coding": [ + { + "code": "Vet123", + "display": "retired", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ART" + } + ], + "text": "retired" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-animal", + "extension": [ + { + "url": "species", + "valueCodeableConcept": { + "coding": [ + { + "code": "125097000", + "display": "Goat", + "system": "http://snomed.info/sct" + } + ], + "text": "Goat" + } + }, + { + "url": "breed", + "valueCodeableConcept": { + "coding": [ + { + "code": "4880003", + "display": "Beagle", + "system": "http://snomed.info/sct" + } + ], + "text": "Beagle" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "US", + "display": "United States of America", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "United States of America" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "CA", + "display": "Canada", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Canada" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-nationality", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "BT", + "display": "Bhutan", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Bhutan" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-importance", + "valueCodeableConcept": { + "coding": [ + { + "code": "VIP", + "display": "Very Important Person", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/L", + "version": "v1.1" + }, + { + "code": "IMP", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/DCM", + "version": "v1.2" + } + ], + "text": "Inportant Person" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + { + "fullUrl": "urn:uuid:78295402-9b84-4829-b945-502ab3402de5", + "resource": { + "resourceType": "Account", + "id": "78295402-9b84-4829-b945-502ab3402de5", + "identifier": [ + { + "value": "4000776", + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Visit number" + } + ] + }, + "system": "urn:oid:2.4", + "assigner": { + "reference": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/78295402-9b84-4829-b945-502ab3402de5" + } + }, + { + "fullUrl": "urn:uuid:9d4c8327-8a28-8152-1898-8251baa707b7", + "resource": { + "resourceType": "Organization", + "id": "9d4c8327-8a28-8152-1898-8251baa707b7", + "identifier": [ + { + "value": "AccMgr", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr" + }, + { + "value": "urn:oid:2.4", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + } + }, + { + "fullUrl": "urn:uuid:b3ad3a9f-d4f6-4638-0a09-2da771733488", + "resource": { + "resourceType": "Organization", + "id": "b3ad3a9f-d4f6-4638-0a09-2da771733488", + "identifier": [ + { + "value": "test1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test1" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "fullUrl": "urn:uuid:f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "resource": { + "resourceType": "Organization", + "id": "f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "identifier": [ + { + "value": "NTH", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NTH" + }, + { + "value": "rt23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + } + }, + { + "fullUrl": "urn:uuid:62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "resource": { + "resourceType": "RelatedPerson", + "id": "62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "identifier": [ + { + "value": "1212121", + "type": { + "coding": [ + { + "code": "AND", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Account number debitor" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "relationship": [ + { + "coding": [ + { + "code": "MTH", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/62b2e1ee-a272-4ffe-692e-a1fbfd49af6a" + } + }, + { + "fullUrl": "urn:uuid:11967e28-8dd4-a112-0fdc-377866bf12a0", + "resource": { + "resourceType": "Organization", + "id": "11967e28-8dd4-a112-0fdc-377866bf12a0", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "2.16.840.1.113883.19", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + } + }, + { + "fullUrl": "urn:uuid:7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "resource": { + "resourceType": "Organization", + "id": "7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "identifier": [ + { + "value": "AccMng", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMng" + }, + { + "value": "1.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + } + }, + { + "fullUrl": "urn:uuid:0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "resource": { + "resourceType": "Organization", + "id": "0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "identifier": [ + { + "value": "PERSONNELt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSONNELt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + } + }, + { + "fullUrl": "urn:uuid:f6775f99-5279-be04-bf81-0906c81f7443", + "resource": { + "resourceType": "Practitioner", + "id": "f6775f99-5279-be04-bf81-0906c81f7443", + "identifier": [ + { + "value": "1122334", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Alaz", + "given": [ + "Mohammed", + "Mahi" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "fullUrl": "urn:uuid:c613d7b2-525f-8c08-a7ac-b2b91486e257", + "resource": { + "resourceType": "Organization", + "id": "c613d7b2-525f-8c08-a7ac-b2b91486e257", + "identifier": [ + { + "value": "TEST", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TEST" + }, + { + "value": "23.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + } + }, + { + "fullUrl": "urn:uuid:04f8cfc8-62ca-12df-63ce-6304ef577d44", + "resource": { + "resourceType": "Practitioner", + "id": "04f8cfc8-62ca-12df-63ce-6304ef577d44", + "identifier": [ + { + "value": "C006", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + }, + "type": { + "coding": [ + { + "code": "BA", + "display": "Bank Account Number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen" + ], + "prefix": [ + "Dr" + ], + "use": "anonymous" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "fullUrl": "urn:uuid:99edcabd-fbeb-7e25-f823-11da8d8ed342", + "resource": { + "resourceType": "Practitioner", + "id": "99edcabd-fbeb-7e25-f823-11da8d8ed342", + "identifier": [ + { + "value": "C008", + "system": "urn:oid:2.8", + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Condoc", + "given": [ + "leen" + ], + "prefix": [ + "Dr" + ], + "use": "temp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "fullUrl": "urn:uuid:b065b233-8738-f1ec-1314-d61e4aac2c9e", + "resource": { + "resourceType": "Practitioner", + "id": "b065b233-8738-f1ec-1314-d61e4aac2c9e", + "identifier": [ + { + "value": "37", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr", + "type": { + "coding": [ + { + "code": "ANC", + "display": "Account number Creditor", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "DISNEY", + "given": [ + "WALT" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "fullUrl": "urn:uuid:9f974d4f-47e8-21a6-e549-4de4599c3764", + "resource": { + "resourceType": "Organization", + "id": "9f974d4f-47e8-21a6-e549-4de4599c3764", + "identifier": [ + { + "value": "T123", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-T123" + }, + { + "value": "urn:oid:r2.3", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + }, + { + "fullUrl": "urn:uuid:84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "resource": { + "resourceType": "Practitioner", + "id": "84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "identifier": [ + { + "value": "Othhel", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "fullUrl": "urn:uuid:9172e4a0-1ca5-646d-2183-b179f4daa737", + "resource": { + "resourceType": "Location", + "id": "9172e4a0-1ca5-646d-2183-b179f4daa737", + "partOf": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + }, + "name": "HUH AE OMU", + "identifier": [ + { + "value": "urn:oid:9.8", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "fullUrl": "urn:uuid:3913ec4d-6576-5e1a-ac31-e8280583371c", + "resource": { + "resourceType": "Location", + "id": "3913ec4d-6576-5e1a-ac31-e8280583371c", + "partOf": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + }, + "name": "OMU B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "fullUrl": "urn:uuid:804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "resource": { + "resourceType": "Location", + "id": "804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "partOf": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + }, + "name": "Bed 03", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "fullUrl": "urn:uuid:c043880b-0fab-1cb8-14f7-0475282c4d0e", + "resource": { + "resourceType": "Location", + "id": "c043880b-0fab-1cb8-14f7-0475282c4d0e", + "name": "HOMERTON UNIVER", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "fullUrl": "urn:uuid:f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "resource": { + "resourceType": "Location", + "id": "f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "partOf": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + }, + "name": "Homerton UH", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "fullUrl": "urn:uuid:7e38808c-44a8-cb0c-4709-9d6092abc32c", + "resource": { + "resourceType": "Location", + "id": "7e38808c-44a8-cb0c-4709-9d6092abc32c", + "partOf": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + }, + "name": "Floor5", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "fullUrl": "urn:uuid:59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "resource": { + "resourceType": "Location", + "id": "59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "name": "4 East, room 136, bed B 4E", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + } + }, + { + "fullUrl": "urn:uuid:d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "resource": { + "resourceType": "Location", + "id": "d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "partOf": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "name": "136", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + } + }, + { + "fullUrl": "urn:uuid:5783dafa-c6c0-e673-cca4-42087ee1831b", + "resource": { + "resourceType": "Location", + "id": "5783dafa-c6c0-e673-cca4-42087ee1831b", + "partOf": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "name": "B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + } + }, + { + "fullUrl": "urn:uuid:8b39e6e5-78cd-63ab-2441-f43ca5554096", + "resource": { + "resourceType": "Location", + "id": "8b39e6e5-78cd-63ab-2441-f43ca5554096", + "name": "CommunityHospital", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + } + }, + { + "fullUrl": "urn:uuid:42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "resource": { + "resourceType": "Location", + "id": "42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "name": "Homes", + "identifier": [ + { + "value": "22", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/FDK" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + { + "fullUrl": "urn:uuid:84634858-74aa-5cdb-4547-60ec27339ac6", + "resource": { + "resourceType": "Location", + "id": "84634858-74aa-5cdb-4547-60ec27339ac6", + "name": "POC", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + } + }, + { + "fullUrl": "urn:uuid:9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "resource": { + "resourceType": "Location", + "id": "9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "partOf": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "name": "Room-2", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + } + }, + { + "fullUrl": "urn:uuid:35353f20-6254-e794-98ed-8007490447e3", + "resource": { + "resourceType": "Location", + "id": "35353f20-6254-e794-98ed-8007490447e3", + "partOf": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "name": "Bed-103", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/35353f20-6254-e794-98ed-8007490447e3" + } + }, + { + "fullUrl": "urn:uuid:055e10f1-222e-df73-2325-0e4396db1a55", + "resource": { + "resourceType": "Location", + "id": "055e10f1-222e-df73-2325-0e4396db1a55", + "name": "Greenland", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + } + }, + { + "fullUrl": "urn:uuid:1154e6b2-b022-b3be-7dce-2b940ab5376d", + "resource": { + "resourceType": "Location", + "id": "1154e6b2-b022-b3be-7dce-2b940ab5376d", + "name": "Nursing home", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + } + }, + { + "fullUrl": "urn:uuid:08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "resource": { + "resourceType": "Location", + "id": "08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "name": "Rosewood", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + } + }, + { + "fullUrl": "urn:uuid:08314073-410a-3dc7-512c-0f2d206fb59d", + "resource": { + "resourceType": "Organization", + "id": "08314073-410a-3dc7-512c-0f2d206fb59d", + "identifier": [ + { + "value": "Etest", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-Etest" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + }, + { + "fullUrl": "urn:uuid:919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "resource": { + "resourceType": "EpisodeOfCare", + "id": "919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "status": "planned", + "identifier": [ + { + "value": "EOC124", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + }, + { + "fullUrl": "urn:uuid:4b192760-03d2-aec4-b0a6-fde323912e1e", + "resource": { + "resourceType": "Encounter", + "id": "4b192760-03d2-aec4-b0a6-fde323912e1e", + "class": { + "code": "PRENC", + "display": "pre-admission", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "status": "planned", + "location": [ + { + "status": "planned", + "location": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "status": "completed", + "location": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/35353f20-6254-e794-98ed-8007490447e3" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + } + ], + "type": [ + { + "coding": [ + { + "code": "E", + "display": "Emergency", + "system": "http://terminology.hl7.org/CodeSystem/v2-0007" + } + ] + } + ], + "hospitalization": { + "preAdmissionIdentifier": { + "value": "1234567", + "type": { + "coding": [ + { + "code": "ANON", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Anonymous identifier" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + "reAdmission": { + "coding": [ + { + "code": "R", + "display": "Re-admission", + "system": "http://terminology.hl7.org/CodeSystem/v2-0092" + } + ] + }, + "admitSource": { + "coding": [ + { + "code": "NHS Provider-General (inc.A&E-this Hosp)" + } + ] + }, + "dischargeDisposition": { + "coding": [ + { + "code": "Admitted as Inpatient", + "display": "Sample", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ACR" + } + ] + }, + "dietPreference": [ + { + "coding": [ + { + "code": "Vegan", + "display": "Vegetarian" + } + ] + } + ], + "destination": { + "reference": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + "episodeOfCare": [ + { + "reference": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + ], + "participant": [ + { + "type": [ + { + "coding": [ + { + "code": "ATND", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", + "display": "attender" + } + ] + } + ], + "individual": { + "reference": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "CON", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "consultant" + } + ], + "individual": { + "reference": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "ADM", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "admitter" + } + ], + "individual": { + "reference": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "PART", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "Participation" + } + ], + "individual": { + "reference": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + } + ], + "serviceType": { + "coding": [ + { + "code": "SUR" + } + ] + }, + "identifier": [ + { + "value": "40007716", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + }, + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ], + "text": "visit number" + } + }, + { + "value": "50", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:r2.3", + "assigner": { + "reference": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + } + ], + "period": { + "start": "2015-02-08T15:54:19+05:30" + }, + "text": { + "status": "generated", + "div": "

Visit Description:

" + }, + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Encounter/4b192760-03d2-aec4-b0a6-fde323912e1e" + } + }, + { + "fullUrl": "urn:uuid:9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "resource": { + "resourceType": "Provenance", + "id": "9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "occurredDateTime": "2021-08-17T18:49:43.004+05:30", + "recorded": "2029-08-01T11:21:24+05:30", + "reason": [ + { + "coding": [ + { + "code": "PATRQT", + "display": "patient requested", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason" + } + ] + } + ], + "agent": [ + { + "who": { + "reference": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + } + ], + "activity": { + "text": "ADT^A02^ADT_A02" + }, + "location": { + "reference": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + }, + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c" + } + }, + { + "fullUrl": "urn:uuid:ef39f581-5e8f-3917-35a9-3443303d9eee", + "resource": { + "resourceType": "Organization", + "id": "ef39f581-5e8f-3917-35a9-3443303d9eee", + "identifier": [ + { + "value": "DRNBR", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-DRNBR" + }, + { + "value": "urn:oid:W1.2", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + } + }, + { + "fullUrl": "urn:uuid:95aea53b-8d49-d57f-d16f-4d14b914f992", + "resource": { + "resourceType": "Practitioner", + "id": "95aea53b-8d49-d57f-d16f-4d14b914f992", + "identifier": [ + { + "value": "C08", + "system": "urn:oid:W1.2", + "assigner": { + "reference": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + }, + "type": { + "coding": [ + { + "code": "ANON", + "display": "Anonymous identifier", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen", + "2ndname" + ], + "suffix": [ + "Jr", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + }, + { + "fullUrl": "urn:uuid:59d5e519-0108-5dd8-adfa-1eef5658009e", + "resource": { + "resourceType": "Location", + "id": "59d5e519-0108-5dd8-adfa-1eef5658009e", + "name": "Cona_Health", + "identifier": [ + { + "value": "urn:oid:1.3.6.1.4.1.44750.1.4", + "system": "urn:ietf:rfc:3986" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "display": "site", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + } + } + ] +} \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A02/ADT-A02-expected.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A02/ADT-A02-expected.json new file mode 100644 index 000000000..1c8a51d08 --- /dev/null +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A02/ADT-A02-expected.json @@ -0,0 +1,3028 @@ +{ + "resourceType": "Bundle", + "type": "batch", + "timestamp": "1989-08-18T14:41:00+05:30", + "identifier": { + "value": "MSG00001" + }, + "id": "513a3d06-5e87-6fbc-ad1b-170ab430499f", + "entry": [ + { + "fullUrl": "urn:uuid:b4ca189b-51ae-33df-cbe2-559b4423a321", + "resource": { + "resourceType": "MessageHeader", + "id": "b4ca189b-51ae-33df-cbe2-559b4423a321", + "source": { + "name": "24GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.20", + "version": "2.4.3.52854", + "software": "Rhapsody" + }, + "destination": [ + { + "name": "25GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.23", + "receiver": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + } + ], + "meta": { + "security": [ + { + "display": "SECURITY", + "system": "http://example.com/v2-to-fhirconverter/security-label" + } + ], + "tag": [ + { + "code": "P", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "A02", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ADT^A02^ADT_A02" + }, + "language": "en-US", + "sender": { + "reference": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + }, + "responsible": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + "request": { + "method": "PUT", + "url": "MessageHeader/b4ca189b-51ae-33df-cbe2-559b4423a321" + } + }, + { + "fullUrl": "urn:uuid:f65d2168-02c8-1897-210d-361176172856", + "resource": { + "resourceType": "Provenance", + "id": "f65d2168-02c8-1897-210d-361176172856", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T12:44:55.028Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ADT_A02.

" + }, + "occurredDateTime": "1989-08-18T14:41:00+05:30", + "recorded": "1989-08-18T14:41:00+05:30", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + } + ], + "activity": { + "coding": [ + { + "display": "ADT^A02^ADT_A02" + } + ] + }, + "entity": [ + { + "role": "source", + "what": { + "reference": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + } + ], + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/f65d2168-02c8-1897-210d-361176172856" + } + }, + { + "fullUrl": "urn:uuid:4356fb81-6ecd-2d70-57b1-47812638e785", + "resource": { + "resourceType": "Organization", + "id": "4356fb81-6ecd-2d70-57b1-47812638e785", + "identifier": [ + { + "value": "GHHSFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHSFacility" + }, + { + "value": "urn:oid:2.16.840.1.122848.1.30", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + } + }, + { + "fullUrl": "urn:uuid:62781ad6-3896-cb63-0178-ead0c4a432b5", + "resource": { + "resourceType": "Organization", + "id": "62781ad6-3896-cb63-0178-ead0c4a432b5", + "identifier": [ + { + "value": "GHHRFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHRFacility" + }, + { + "value": "urn:oid:2.16.840.1.1122848.1.32", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/62781ad6-3896-cb63-0178-ead0c4a432b5" + } + }, + { + "fullUrl": "urn:uuid:33532a82-d220-4c0d-1abe-53e48951c201", + "resource": { + "resourceType": "Organization", + "id": "33532a82-d220-4c0d-1abe-53e48951c201", + "name": "22 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + { + "fullUrl": "urn:uuid:527280c1-34d1-c639-e9ba-61986d28e266", + "resource": { + "resourceType": "Organization", + "id": "527280c1-34d1-c639-e9ba-61986d28e266", + "name": "23 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + }, + { + "fullUrl": "urn:uuid:503eb873-22fb-8199-ae28-3604ad59fe13", + "resource": { + "resourceType": "Device", + "id": "503eb873-22fb-8199-ae28-3604ad59fe13", + "identifier": [ + { + "value": "ADTApp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + }, + { + "fullUrl": "urn:uuid:4b549918-a84d-cdaf-e150-c773a5d306e5", + "resource": { + "resourceType": "Device", + "id": "4b549918-a84d-cdaf-e150-c773a5d306e5", + "manufacturer": "Orion", + "deviceName": [ + { + "name": "Rhapsody", + "type": "manufacturer-name" + } + ], + "version": [ + { + "value": "2.4.3.52854" + } + ], + "modelNumber": "2.4.3", + "note": [ + { + "text": "Testactivity" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/4b549918-a84d-cdaf-e150-c773a5d306e5" + } + }, + { + "fullUrl": "urn:uuid:9e909e52-61a1-be50-1878-a12ef8c36346", + "resource": { + "resourceType": "Patient", + "id": "9e909e52-61a1-be50-1878-a12ef8c36346", + "identifier": [ + { + "value": "1234567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "PATID1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "value": "123456789", + "type": { + "coding": [ + { + "code": "SS", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Social Security number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-USSSA" + }, + { + "value": "PATID567", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test2" + }, + { + "value": "PSSN123121234", + "type": { + "coding": [ + { + "code": "SB", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + }, + { + "value": "DLN-123", + "type": { + "coding": [ + { + "code": "DL" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/US", + "period": { + "end": "2001-01-23" + } + }, + { + "value": "DB123", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:1.12", + "assigner": { + "reference": "Organization/4e68b44e-c053-02b1-6d6d-fe816f9fdfec" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "name": [ + { + "family": "EVERYMAN", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official", + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + }, + { + "family": "elbert", + "given": [ + "Son" + ] + } + ], + "birthDate": "1988-08-18", + "_birthDate": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime": "1988-08-18T14:41:00+05:30" + } + ] + }, + "gender": "male", + "address": [ + { + "line": [ + "1000", + "Hospital Lane", + "Ste. 123", + "Near Highway" + ], + "city": "Ann Arbor ", + "state": "MI", + "postalCode": "99999", + "country": "USA", + "type": "postal", + "district": "W", + "period": { + "start": "2000-01-10", + "end": "2000-01-20" + } + } + ], + "telecom": [ + { + "value": "2222", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18, + "use": "home" + }, + { + "value": "12121212", + "system": "phone", + "use": "home" + }, + { + "value": "7777", + "system": "phone", + "use": "work" + }, + { + "value": "1111", + "system": "other", + "use": "work" + }, + { + "value": "89898989", + "use": "work", + "system": "email" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47", + "version": "v2" + }, + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47", + "version": "v2.1" + } + ], + "text": "TextInEnglish" + }, + "preferred": true + } + ], + "maritalStatus": { + "coding": [ + { + "code": "M", + "display": "Married", + "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" + } + ] + }, + "multipleBirthInteger": 2, + "deceasedDateTime": "2008-08-25T15:31:30+05:30", + "meta": { + "lastUpdated": "2005-01-10T04:05:14+05:30" + }, + "generalPractitioner": [ + { + "reference": "Organization/4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11" + }, + { + "reference": "Practitioner/76aaad38-1077-6a5c-0c5c-102ec160a60d" + } + ], + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "ombCategory", + "valueCoding": { + "code": "2028-9", + "display": "Asian", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White+Asian" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + "valueString": "SMITH--Angela--L" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", + "valueAddress": { + "text": "St. Francis Community Hospital of Lower South Side" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-religion", + "valueCodeableConcept": { + "coding": [ + { + "code": "1002", + "display": "African Religions", + "system": "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2186-5", + "display": "Non Hispanic or Latino", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "Non Hispanic or Latino" + } + ] + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/VeteranMilitaryStatus", + "valueCodeableConcept": { + "coding": [ + { + "code": "Vet123", + "display": "retired", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ART" + } + ], + "text": "retired" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-animal", + "extension": [ + { + "url": "species", + "valueCodeableConcept": { + "coding": [ + { + "code": "125097000", + "display": "Goat", + "system": "http://snomed.info/sct" + } + ], + "text": "Goat" + } + }, + { + "url": "breed", + "valueCodeableConcept": { + "coding": [ + { + "code": "4880003", + "display": "Beagle", + "system": "http://snomed.info/sct" + } + ], + "text": "Beagle" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "US", + "display": "United States of America", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "United States of America" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "CA", + "display": "Canada", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Canada" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-nationality", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "BT", + "display": "Bhutan", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Bhutan" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-congregation", + "valueString": "Methodist Church" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-importance", + "valueCodeableConcept": { + "coding": [ + { + "code": "VIP", + "display": "Very Important Person", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/L", + "version": "v1.1" + }, + { + "code": "IMP", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/DCM", + "version": "v1.2" + } + ], + "text": "Inportant Person" + } + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/patient-disabilityIndicator", + "valueBoolean": true + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/DisabilityPeriod", + "valuePeriod": { + "start": "2021-08-30", + "end": "2021-09-30" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + { + "fullUrl": "urn:uuid:78295402-9b84-4829-b945-502ab3402de5", + "resource": { + "resourceType": "Account", + "id": "78295402-9b84-4829-b945-502ab3402de5", + "identifier": [ + { + "value": "4000776", + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Visit number" + } + ] + }, + "system": "urn:oid:2.4", + "assigner": { + "reference": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/78295402-9b84-4829-b945-502ab3402de5" + } + }, + { + "fullUrl": "urn:uuid:9d4c8327-8a28-8152-1898-8251baa707b7", + "resource": { + "resourceType": "Organization", + "id": "9d4c8327-8a28-8152-1898-8251baa707b7", + "identifier": [ + { + "value": "AccMgr", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr" + }, + { + "value": "urn:oid:2.4", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + } + }, + { + "fullUrl": "urn:uuid:b3ad3a9f-d4f6-4638-0a09-2da771733488", + "resource": { + "resourceType": "Organization", + "id": "b3ad3a9f-d4f6-4638-0a09-2da771733488", + "identifier": [ + { + "value": "test1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test1" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "fullUrl": "urn:uuid:f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "resource": { + "resourceType": "Organization", + "id": "f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "identifier": [ + { + "value": "NTH", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NTH" + }, + { + "value": "rt23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + } + }, + { + "fullUrl": "urn:uuid:62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "resource": { + "resourceType": "RelatedPerson", + "id": "62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "identifier": [ + { + "value": "1212121", + "type": { + "coding": [ + { + "code": "AND", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Account number debitor" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "relationship": [ + { + "coding": [ + { + "code": "MTH", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/62b2e1ee-a272-4ffe-692e-a1fbfd49af6a" + } + }, + { + "fullUrl": "urn:uuid:4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11", + "resource": { + "resourceType": "Organization", + "id": "4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11", + "name": "LINDAS TEST ORGANIZATION", + "identifier": [ + { + "value": "SIISCLIENT818" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11" + } + }, + { + "fullUrl": "urn:uuid:76aaad38-1077-6a5c-0c5c-102ec160a60d", + "resource": { + "resourceType": "Practitioner", + "id": "76aaad38-1077-6a5c-0c5c-102ec160a60d", + "identifier": [ + { + "value": "88", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TE", + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Hippo", + "given": [ + "rold", + "H" + ], + "suffix": [ + "V", + "MD" + ], + "prefix": [ + "Dr" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/76aaad38-1077-6a5c-0c5c-102ec160a60d" + } + }, + { + "fullUrl": "urn:uuid:11967e28-8dd4-a112-0fdc-377866bf12a0", + "resource": { + "resourceType": "Organization", + "id": "11967e28-8dd4-a112-0fdc-377866bf12a0", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "2.16.840.1.113883.19", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + } + }, + { + "fullUrl": "urn:uuid:7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "resource": { + "resourceType": "Organization", + "id": "7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "identifier": [ + { + "value": "AccMng", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMng" + }, + { + "value": "1.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + } + }, + { + "fullUrl": "urn:uuid:0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "resource": { + "resourceType": "Organization", + "id": "0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "identifier": [ + { + "value": "PERSONNELt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSONNELt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + } + }, + { + "fullUrl": "urn:uuid:f6775f99-5279-be04-bf81-0906c81f7443", + "resource": { + "resourceType": "Practitioner", + "id": "f6775f99-5279-be04-bf81-0906c81f7443", + "identifier": [ + { + "value": "1122334", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Alaz", + "given": [ + "Mohammed", + "Mahi" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "fullUrl": "urn:uuid:c613d7b2-525f-8c08-a7ac-b2b91486e257", + "resource": { + "resourceType": "Organization", + "id": "c613d7b2-525f-8c08-a7ac-b2b91486e257", + "identifier": [ + { + "value": "TEST", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TEST" + }, + { + "value": "23.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + } + }, + { + "fullUrl": "urn:uuid:04f8cfc8-62ca-12df-63ce-6304ef577d44", + "resource": { + "resourceType": "Practitioner", + "id": "04f8cfc8-62ca-12df-63ce-6304ef577d44", + "identifier": [ + { + "value": "C006", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + }, + "type": { + "coding": [ + { + "code": "BA", + "display": "Bank Account Number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen" + ], + "prefix": [ + "Dr" + ], + "use": "anonymous" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "fullUrl": "urn:uuid:99edcabd-fbeb-7e25-f823-11da8d8ed342", + "resource": { + "resourceType": "Practitioner", + "id": "99edcabd-fbeb-7e25-f823-11da8d8ed342", + "identifier": [ + { + "value": "C008", + "system": "urn:oid:2.8", + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Condoc", + "given": [ + "leen" + ], + "prefix": [ + "Dr" + ], + "use": "temp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "fullUrl": "urn:uuid:b065b233-8738-f1ec-1314-d61e4aac2c9e", + "resource": { + "resourceType": "Practitioner", + "id": "b065b233-8738-f1ec-1314-d61e4aac2c9e", + "identifier": [ + { + "value": "37", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr", + "type": { + "coding": [ + { + "code": "ANC", + "display": "Account number Creditor", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "DISNEY", + "given": [ + "WALT" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "fullUrl": "urn:uuid:9f974d4f-47e8-21a6-e549-4de4599c3764", + "resource": { + "resourceType": "Organization", + "id": "9f974d4f-47e8-21a6-e549-4de4599c3764", + "identifier": [ + { + "value": "T123", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-T123" + }, + { + "value": "urn:oid:r2.3", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + }, + { + "fullUrl": "urn:uuid:84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "resource": { + "resourceType": "Practitioner", + "id": "84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "identifier": [ + { + "value": "Othhel", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "fullUrl": "urn:uuid:24d4bddf-a1c3-4dc8-049b-1dda7e5112b6", + "resource": { + "resourceType": "Organization", + "id": "24d4bddf-a1c3-4dc8-049b-1dda7e5112b6", + "identifier": [ + { + "value": "TE", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TE" + }, + { + "value": "Provider Master.Community Health and Hospitals", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-DNS", + "type": { + "coding": [ + { + "code": "DNS", + "display": "An Internet host name, in accordance with RFC 1035; or an IP address. Either in ASCII or as integers, with periods between components (“dotted” notation).", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/24d4bddf-a1c3-4dc8-049b-1dda7e5112b6" + } + }, + { + "fullUrl": "urn:uuid:36e3aaa4-569a-7d9d-037f-27235ed05701", + "resource": { + "resourceType": "Practitioner", + "id": "36e3aaa4-569a-7d9d-037f-27235ed05701", + "identifier": [ + { + "value": "12188", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-DNS", + "assigner": { + "reference": "Organization/24d4bddf-a1c3-4dc8-049b-1dda7e5112b6" + }, + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Hippocrates", + "given": [ + "Harold", + "H" + ], + "suffix": [ + "IV", + "MD" + ], + "prefix": [ + "Dr" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/36e3aaa4-569a-7d9d-037f-27235ed05701" + } + }, + { + "fullUrl": "urn:uuid:9172e4a0-1ca5-646d-2183-b179f4daa737", + "resource": { + "resourceType": "Location", + "id": "9172e4a0-1ca5-646d-2183-b179f4daa737", + "partOf": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + }, + "name": "HUH AE OMU", + "identifier": [ + { + "value": "urn:oid:9.8", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "fullUrl": "urn:uuid:3913ec4d-6576-5e1a-ac31-e8280583371c", + "resource": { + "resourceType": "Location", + "id": "3913ec4d-6576-5e1a-ac31-e8280583371c", + "partOf": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + }, + "name": "OMU B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "fullUrl": "urn:uuid:804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "resource": { + "resourceType": "Location", + "id": "804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "partOf": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + }, + "name": "Bed 03", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "fullUrl": "urn:uuid:c043880b-0fab-1cb8-14f7-0475282c4d0e", + "resource": { + "resourceType": "Location", + "id": "c043880b-0fab-1cb8-14f7-0475282c4d0e", + "name": "HOMERTON UNIVER", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "fullUrl": "urn:uuid:f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "resource": { + "resourceType": "Location", + "id": "f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "partOf": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + }, + "name": "Homerton UH", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "fullUrl": "urn:uuid:7e38808c-44a8-cb0c-4709-9d6092abc32c", + "resource": { + "resourceType": "Location", + "id": "7e38808c-44a8-cb0c-4709-9d6092abc32c", + "partOf": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + }, + "name": "Floor5", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "fullUrl": "urn:uuid:59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "resource": { + "resourceType": "Location", + "id": "59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "name": "4 East, room 136, bed B 4E", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + } + }, + { + "fullUrl": "urn:uuid:d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "resource": { + "resourceType": "Location", + "id": "d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "partOf": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "name": "136", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + } + }, + { + "fullUrl": "urn:uuid:5783dafa-c6c0-e673-cca4-42087ee1831b", + "resource": { + "resourceType": "Location", + "id": "5783dafa-c6c0-e673-cca4-42087ee1831b", + "partOf": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "name": "B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + } + }, + { + "fullUrl": "urn:uuid:8b39e6e5-78cd-63ab-2441-f43ca5554096", + "resource": { + "resourceType": "Location", + "id": "8b39e6e5-78cd-63ab-2441-f43ca5554096", + "name": "CommunityHospital", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + } + }, + { + "fullUrl": "urn:uuid:42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "resource": { + "resourceType": "Location", + "id": "42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "name": "Homes", + "identifier": [ + { + "value": "22", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/FDK" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + { + "fullUrl": "urn:uuid:84634858-74aa-5cdb-4547-60ec27339ac6", + "resource": { + "resourceType": "Location", + "id": "84634858-74aa-5cdb-4547-60ec27339ac6", + "name": "POC", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + } + }, + { + "fullUrl": "urn:uuid:9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "resource": { + "resourceType": "Location", + "id": "9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "partOf": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "name": "Room-2", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + } + }, + { + "fullUrl": "urn:uuid:35353f20-6254-e794-98ed-8007490447e3", + "resource": { + "resourceType": "Location", + "id": "35353f20-6254-e794-98ed-8007490447e3", + "partOf": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "name": "Bed-103", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/35353f20-6254-e794-98ed-8007490447e3" + } + }, + { + "fullUrl": "urn:uuid:055e10f1-222e-df73-2325-0e4396db1a55", + "resource": { + "resourceType": "Location", + "id": "055e10f1-222e-df73-2325-0e4396db1a55", + "name": "Greenland", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + } + }, + { + "fullUrl": "urn:uuid:1154e6b2-b022-b3be-7dce-2b940ab5376d", + "resource": { + "resourceType": "Location", + "id": "1154e6b2-b022-b3be-7dce-2b940ab5376d", + "name": "Nursing home", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + } + }, + { + "fullUrl": "urn:uuid:08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "resource": { + "resourceType": "Location", + "id": "08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "name": "Rosewood", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + } + }, + { + "fullUrl": "urn:uuid:c7f1b9ec-ffd8-321e-ad87-abafc1c1a333", + "resource": { + "resourceType": "Location", + "id": "c7f1b9ec-ffd8-321e-ad87-abafc1c1a333", + "name": "ROOM1", + "identifier": [ + { + "value": "urn:oid:2.16.840.1.113883.4.642.1.1108", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + } + }, + { + "fullUrl": "urn:uuid:6f159848-5f01-01b3-9594-80fbbe9ab510", + "resource": { + "resourceType": "Location", + "id": "6f159848-5f01-01b3-9594-80fbbe9ab510", + "partOf": { + "reference": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + }, + "name": "BED1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/6f159848-5f01-01b3-9594-80fbbe9ab510" + } + }, + { + "fullUrl": "urn:uuid:4bca6ba2-be65-ef37-3911-03b70a00a3a6", + "resource": { + "resourceType": "Location", + "id": "4bca6ba2-be65-ef37-3911-03b70a00a3a6", + "name": "FACILITY1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + } + }, + { + "fullUrl": "urn:uuid:3b0911cb-4361-cd8d-b188-463af033c699", + "resource": { + "resourceType": "Location", + "id": "3b0911cb-4361-cd8d-b188-463af033c699", + "partOf": { + "reference": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + }, + "name": "BUILDING1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + } + }, + { + "fullUrl": "urn:uuid:0d9c3424-329f-4c95-ee30-ac2da4a35bff", + "resource": { + "resourceType": "Location", + "id": "0d9c3424-329f-4c95-ee30-ac2da4a35bff", + "partOf": { + "reference": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + }, + "name": "FLOOR1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/0d9c3424-329f-4c95-ee30-ac2da4a35bff" + } + }, + { + "fullUrl": "urn:uuid:08314073-410a-3dc7-512c-0f2d206fb59d", + "resource": { + "resourceType": "Organization", + "id": "08314073-410a-3dc7-512c-0f2d206fb59d", + "identifier": [ + { + "value": "Etest", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-Etest" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + }, + { + "fullUrl": "urn:uuid:919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "resource": { + "resourceType": "EpisodeOfCare", + "id": "919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "status": "planned", + "identifier": [ + { + "value": "EOC124", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + }, + { + "fullUrl": "urn:uuid:4b192760-03d2-aec4-b0a6-fde323912e1e", + "resource": { + "resourceType": "Encounter", + "id": "4b192760-03d2-aec4-b0a6-fde323912e1e", + "class": { + "code": "PRENC", + "display": "pre-admission", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "status": "planned", + "location": [ + { + "status": "planned", + "location": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "status": "completed", + "location": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/35353f20-6254-e794-98ed-8007490447e3" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/6f159848-5f01-01b3-9594-80fbbe9ab510" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/0d9c3424-329f-4c95-ee30-ac2da4a35bff" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + } + ], + "type": [ + { + "coding": [ + { + "code": "E", + "display": "Emergency", + "system": "http://terminology.hl7.org/CodeSystem/v2-0007" + } + ] + } + ], + "hospitalization": { + "preAdmissionIdentifier": { + "value": "1234567", + "type": { + "coding": [ + { + "code": "ANON", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Anonymous identifier" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + "reAdmission": { + "coding": [ + { + "code": "R", + "display": "Re-admission", + "system": "http://terminology.hl7.org/CodeSystem/v2-0092" + } + ] + }, + "admitSource": { + "coding": [ + { + "code": "NHS Provider-General (inc.A&E-this Hosp)" + } + ] + }, + "dischargeDisposition": { + "coding": [ + { + "code": "Admitted as Inpatient", + "display": "Sample", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ACR" + } + ] + }, + "dietPreference": [ + { + "coding": [ + { + "code": "Vegan", + "display": "Vegetarian" + } + ] + } + ], + "destination": { + "reference": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + "episodeOfCare": [ + { + "reference": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + ], + "participant": [ + { + "type": [ + { + "coding": [ + { + "code": "ATND", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", + "display": "attender" + } + ] + } + ], + "individual": { + "reference": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "CON", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "consultant" + } + ], + "individual": { + "reference": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "ADM", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "admitter" + } + ], + "individual": { + "reference": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "PART", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "Participation" + } + ], + "individual": { + "reference": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/36e3aaa4-569a-7d9d-037f-27235ed05701" + } + } + ], + "serviceType": { + "coding": [ + { + "code": "SUR" + } + ] + }, + "identifier": [ + { + "value": "40007716", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + }, + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ], + "text": "visit number" + } + }, + { + "value": "50", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:r2.3", + "assigner": { + "reference": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + } + ], + "period": { + "start": "2015-02-08T15:54:19+05:30" + }, + "reasonCode": [ + { + "coding": [ + { + "code": "140004", + "display": "Chronic pharyngitis", + "system": "http://snomed.info/sct" + } + ] + } + ], + "length": { + "value": 2, + "unit": "d", + "system": "http://unitsofmeasure.org/" + }, + "meta": { + "security": [ + { + "code": "N", + "display": "normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality" + } + ] + }, + "text": { + "status": "generated", + "div": "

Visit Description: Health Checkup

" + }, + "priority": { + "coding": [ + { + "code": "UR", + "display": "urgent", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActPriority", + "version": "V1.2" + }, + { + "code": "EL", + "display": "elective", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActPriority", + "version": "V1.3" + } + ] + }, + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/encounter-modeOfArrival", + "valueCoding": { + "code": "C", + "display": "Car", + "system": "http://terminology.hl7.org/CodeSystem/v2-0430" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Encounter/4b192760-03d2-aec4-b0a6-fde323912e1e" + } + }, + { + "fullUrl": "urn:uuid:9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "resource": { + "resourceType": "Provenance", + "id": "9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "occurredDateTime": "2021-08-17T18:49:43.004+05:30", + "recorded": "2029-08-01T11:21:24+05:30", + "reason": [ + { + "coding": [ + { + "code": "PATRQT", + "display": "patient requested", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason" + } + ] + } + ], + "agent": [ + { + "who": { + "reference": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + } + ], + "activity": { + "text": "ADT^A02^ADT_A02" + }, + "location": { + "reference": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + }, + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c" + } + }, + { + "fullUrl": "urn:uuid:ef39f581-5e8f-3917-35a9-3443303d9eee", + "resource": { + "resourceType": "Organization", + "id": "ef39f581-5e8f-3917-35a9-3443303d9eee", + "identifier": [ + { + "value": "DRNBR", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-DRNBR" + }, + { + "value": "urn:oid:W1.2", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + } + }, + { + "fullUrl": "urn:uuid:95aea53b-8d49-d57f-d16f-4d14b914f992", + "resource": { + "resourceType": "Practitioner", + "id": "95aea53b-8d49-d57f-d16f-4d14b914f992", + "identifier": [ + { + "value": "C08", + "system": "urn:oid:W1.2", + "assigner": { + "reference": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + }, + "type": { + "coding": [ + { + "code": "ANON", + "display": "Anonymous identifier", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen", + "2ndname" + ], + "suffix": [ + "Jr", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + }, + { + "fullUrl": "urn:uuid:59d5e519-0108-5dd8-adfa-1eef5658009e", + "resource": { + "resourceType": "Location", + "id": "59d5e519-0108-5dd8-adfa-1eef5658009e", + "name": "Cona_Health", + "identifier": [ + { + "value": "urn:oid:1.3.6.1.4.1.44750.1.4", + "system": "urn:ietf:rfc:3986" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "display": "site", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + } + }, + { + "fullUrl": "urn:uuid:4e68b44e-c053-02b1-6d6d-fe816f9fdfec", + "resource": { + "resourceType": "Organization", + "id": "4e68b44e-c053-02b1-6d6d-fe816f9fdfec", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "urn:oid:1.12", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4e68b44e-c053-02b1-6d6d-fe816f9fdfec" + } + }, + { + "fullUrl": "urn:uuid:e82402a9-b2d1-2a28-3250-c099d5a77bf7", + "resource": { + "resourceType": "Organization", + "id": "e82402a9-b2d1-2a28-3250-c099d5a77bf7", + "identifier": [ + { + "value": "PERSt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/e82402a9-b2d1-2a28-3250-c099d5a77bf7" + } + }, + { + "fullUrl": "urn:uuid:ce70e6c3-c190-121d-c251-e4bae5cde6a1", + "resource": { + "resourceType": "Practitioner", + "id": "ce70e6c3-c190-121d-c251-e4bae5cde6a1", + "identifier": [ + { + "value": "1134", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/e82402a9-b2d1-2a28-3250-c099d5a77bf7" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Aly", + "given": [ + "Zafar", + "Mahendra" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/ce70e6c3-c190-121d-c251-e4bae5cde6a1" + } + }, + { + "fullUrl": "urn:uuid:88a53755-c972-6904-b4ce-8884b84ddc2e", + "resource": { + "resourceType": "PractitionerRole", + "id": "88a53755-c972-6904-b4ce-8884b84ddc2e", + "code": [ + { + "coding": [ + { + "code": "ResponsibleObserver", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/ce70e6c3-c190-121d-c251-e4bae5cde6a1" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/88a53755-c972-6904-b4ce-8884b84ddc2e" + } + }, + { + "fullUrl": "urn:uuid:3e0952c6-eea0-8938-96f8-07c224bf1577", + "resource": { + "resourceType": "Practitioner", + "id": "3e0952c6-eea0-8938-96f8-07c224bf1577", + "identifier": [ + { + "value": "2234" + } + ], + "name": [ + { + "family": "Pauly", + "given": [ + "Berrie", + "Raud" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/3e0952c6-eea0-8938-96f8-07c224bf1577" + } + }, + { + "fullUrl": "urn:uuid:bc78e290-ec67-c238-1e05-aefb6b252b0c", + "resource": { + "resourceType": "PractitionerRole", + "id": "bc78e290-ec67-c238-1e05-aefb6b252b0c", + "code": [ + { + "coding": [ + { + "code": "ResponsibleObserver", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/3e0952c6-eea0-8938-96f8-07c224bf1577" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/bc78e290-ec67-c238-1e05-aefb6b252b0c" + } + }, + { + "fullUrl": "urn:uuid:fe0adb86-ebe9-6479-0055-9db8dc1ff99a", + "resource": { + "resourceType": "Device", + "id": "fe0adb86-ebe9-6479-0055-9db8dc1ff99a", + "identifier": [ + { + "value": "EI12.3", + "system": "urn:uuid:UI2", + "type": { + "coding": [ + { + "code": "GUID", + "display": "Same as UUID.", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + }, + { + "system": "urn:oid:UI1", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/fe0adb86-ebe9-6479-0055-9db8dc1ff99a" + } + }, + { + "fullUrl": "urn:uuid:45f65e47-46c4-1a54-f9fb-1321258e79b2", + "resource": { + "resourceType": "Practitioner", + "id": "45f65e47-46c4-1a54-f9fb-1321258e79b2", + "identifier": [ + { + "type": { + "coding": [ + { + "code": "MD-25" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/45f65e47-46c4-1a54-f9fb-1321258e79b2" + } + }, + { + "fullUrl": "urn:uuid:090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3", + "resource": { + "resourceType": "PractitionerRole", + "id": "090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3", + "code": [ + { + "coding": [ + { + "code": "LabMedicalDirector", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/45f65e47-46c4-1a54-f9fb-1321258e79b2" + }, + "organization": { + "reference": "Organization/056aa7c7-6b75-3c67-63c5-cf9604f16d25" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3" + } + }, + { + "fullUrl": "urn:uuid:056aa7c7-6b75-3c67-63c5-cf9604f16d25", + "resource": { + "resourceType": "Organization", + "id": "056aa7c7-6b75-3c67-63c5-cf9604f16d25", + "name": "FairOaks Hspital", + "address": [ + { + "line": [ + "Research Park", + "Fairfax" + ], + "city": "VA", + "state": "22031", + "postalCode": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/056aa7c7-6b75-3c67-63c5-cf9604f16d25" + } + }, + { + "fullUrl": "urn:uuid:07fd2dd3-dbd6-5bb1-cfda-02226795d9a0", + "resource": { + "resourceType": "Observation", + "id": "07fd2dd3-dbd6-5bb1-cfda-02226795d9a0", + "identifier": [ + { + "value": "EI21", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-OII" + }, + { + "type": { + "coding": [ + { + "code": "FILL" + } + ] + } + } + ], + "status": "unknown", + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "component": [ + { + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 60, + "code": "beats/min", + "unit": "beats/min", + "system": "urn:iso:std:iso:3986" + }, + "referenceRange": [ + { + "text": "70-80" + } + ] + }, + { + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 120, + "code": "beats/min", + "unit": "beats/min", + "system": "urn:iso:std:iso:3986" + }, + "referenceRange": [ + { + "text": "70-80" + } + ] + } + ], + "effectiveDateTime": "1999-07-02", + "method": { + "coding": [ + { + "code": "OBS", + "display": "This is test method", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/AS4" + } + ] + }, + "device": { + "reference": "Device/fe0adb86-ebe9-6479-0055-9db8dc1ff99a" + }, + "bodySite": { + "coding": [ + { + "code": "BU", + "display": "Observation site", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/E5" + } + ] + }, + "performer": [ + { + "reference": "PractitionerRole/88a53755-c972-6904-b4ce-8884b84ddc2e" + }, + { + "reference": "PractitionerRole/bc78e290-ec67-c238-1e05-aefb6b252b0c" + }, + { + "reference": "PractitionerRole/090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "A", + "display": "Abnormal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + }, + { + "coding": [ + { + "code": "B", + "display": "Better", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } + ], + "extension": [ + { + "url": "http://example.com/v2-to-fhir-converter/Observation_Status", + "valueCodeableConcept": { + "coding": [ + { + "code": "S", + "display": "Partial", + "system": "http://terminology.hl7.org/CodeSystem/v2-0085" + } + ], + "text": "Partial" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Observation/07fd2dd3-dbd6-5bb1-cfda-02226795d9a0" + } + } + ] +} \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A03/ADT-A03-expected-2.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A03/ADT-A03-expected-2.json new file mode 100644 index 000000000..c71493f8e --- /dev/null +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A03/ADT-A03-expected-2.json @@ -0,0 +1,2130 @@ +{ + "resourceType": "Bundle", + "type": "batch", + "timestamp": "1989-08-18T14:41:00+05:30", + "identifier": { + "value": "MSG00001" + }, + "id": "513a3d06-5e87-6fbc-ad1b-170ab430499f", + "entry": [ + { + "fullUrl": "urn:uuid:b4ca189b-51ae-33df-cbe2-559b4423a321", + "resource": { + "resourceType": "MessageHeader", + "id": "b4ca189b-51ae-33df-cbe2-559b4423a321", + "source": { + "name": "24GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.20" + }, + "destination": [ + { + "name": "25GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.23", + "receiver": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + } + ], + "meta": { + "security": [ + { + "display": "SECURITY", + "system": "http://example.com/v2-to-fhirconverter/security-label" + } + ], + "tag": [ + { + "code": "P", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "A03", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ADT^A03^ADT_A03" + }, + "language": "en-US", + "sender": { + "reference": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + }, + "responsible": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + "request": { + "method": "PUT", + "url": "MessageHeader/b4ca189b-51ae-33df-cbe2-559b4423a321" + } + }, + { + "fullUrl": "urn:uuid:f65d2168-02c8-1897-210d-361176172856", + "resource": { + "resourceType": "Provenance", + "id": "f65d2168-02c8-1897-210d-361176172856", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T12:46:08.88Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ADT_A03.

" + }, + "occurredDateTime": "1989-08-18T14:41:00+05:30", + "recorded": "1989-08-18T14:41:00+05:30", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + } + ], + "activity": { + "coding": [ + { + "display": "ADT^A03^ADT_A03" + } + ] + }, + "entity": [ + { + "role": "source", + "what": { + "reference": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + } + ], + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/f65d2168-02c8-1897-210d-361176172856" + } + }, + { + "fullUrl": "urn:uuid:4356fb81-6ecd-2d70-57b1-47812638e785", + "resource": { + "resourceType": "Organization", + "id": "4356fb81-6ecd-2d70-57b1-47812638e785", + "identifier": [ + { + "value": "GHHSFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHSFacility" + }, + { + "value": "urn:oid:2.16.840.1.122848.1.30", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + } + }, + { + "fullUrl": "urn:uuid:62781ad6-3896-cb63-0178-ead0c4a432b5", + "resource": { + "resourceType": "Organization", + "id": "62781ad6-3896-cb63-0178-ead0c4a432b5", + "identifier": [ + { + "value": "GHHRFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHRFacility" + }, + { + "value": "urn:oid:2.16.840.1.1122848.1.32", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/62781ad6-3896-cb63-0178-ead0c4a432b5" + } + }, + { + "fullUrl": "urn:uuid:33532a82-d220-4c0d-1abe-53e48951c201", + "resource": { + "resourceType": "Organization", + "id": "33532a82-d220-4c0d-1abe-53e48951c201", + "name": "22 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + { + "fullUrl": "urn:uuid:527280c1-34d1-c639-e9ba-61986d28e266", + "resource": { + "resourceType": "Organization", + "id": "527280c1-34d1-c639-e9ba-61986d28e266", + "name": "23 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + }, + { + "fullUrl": "urn:uuid:503eb873-22fb-8199-ae28-3604ad59fe13", + "resource": { + "resourceType": "Device", + "id": "503eb873-22fb-8199-ae28-3604ad59fe13", + "identifier": [ + { + "value": "ADTApp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + }, + { + "fullUrl": "urn:uuid:9e909e52-61a1-be50-1878-a12ef8c36346", + "resource": { + "resourceType": "Patient", + "id": "9e909e52-61a1-be50-1878-a12ef8c36346", + "identifier": [ + { + "value": "1234567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "PATID1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "value": "123456789", + "type": { + "coding": [ + { + "code": "SS", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Social Security number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-USSSA" + }, + { + "value": "PATID567", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test2" + }, + { + "value": "PSSN123121234", + "type": { + "coding": [ + { + "code": "SB", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + }, + { + "value": "DLN-123", + "type": { + "coding": [ + { + "code": "DL" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/US", + "period": { + "end": "2001-01-23" + } + } + ], + "name": [ + { + "family": "EVERYMAN", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official", + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + }, + { + "family": "elbert", + "given": [ + "Son" + ] + } + ], + "birthDate": "1988-08-18", + "_birthDate": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime": "1988-08-18T14:41:00+05:30" + } + ] + }, + "gender": "male", + "address": [ + { + "line": [ + "1000", + "Hospital Lane", + "Ste. 123", + "Near Highway" + ], + "city": "Ann Arbor ", + "state": "MI", + "postalCode": "99999", + "country": "USA", + "type": "postal", + "district": "W", + "period": { + "start": "2000-01-10", + "end": "2000-01-20" + } + } + ], + "telecom": [ + { + "value": "2222", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18, + "use": "home" + }, + { + "value": "12121212", + "system": "phone", + "use": "home" + }, + { + "value": "7777", + "system": "phone", + "use": "work" + }, + { + "value": "1111", + "system": "other", + "use": "work" + }, + { + "value": "89898989", + "use": "work", + "system": "email" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47", + "version": "v2" + }, + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47", + "version": "v2.1" + } + ], + "text": "TextInEnglish" + }, + "preferred": true + } + ], + "maritalStatus": { + "coding": [ + { + "code": "M", + "display": "Married", + "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" + } + ] + }, + "multipleBirthInteger": 2, + "deceasedDateTime": "2008-08-25T15:31:30+05:30", + "meta": { + "lastUpdated": "2005-01-10T04:05:14+05:30" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "ombCategory", + "valueCoding": { + "code": "2028-9", + "display": "Asian", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White+Asian" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + "valueString": "SMITH--Angela--L" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", + "valueAddress": { + "text": "St. Francis Community Hospital of Lower South Side" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-religion", + "valueCodeableConcept": { + "coding": [ + { + "code": "1002", + "display": "African Religions", + "system": "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2186-5", + "display": "Non Hispanic or Latino", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "Non Hispanic or Latino" + } + ] + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/VeteranMilitaryStatus", + "valueCodeableConcept": { + "coding": [ + { + "code": "Vet123", + "display": "retired", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ART" + } + ], + "text": "retired" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-animal", + "extension": [ + { + "url": "species", + "valueCodeableConcept": { + "coding": [ + { + "code": "125097000", + "display": "Goat", + "system": "http://snomed.info/sct" + } + ], + "text": "Goat" + } + }, + { + "url": "breed", + "valueCodeableConcept": { + "coding": [ + { + "code": "4880003", + "display": "Beagle", + "system": "http://snomed.info/sct" + } + ], + "text": "Beagle" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "US", + "display": "United States of America", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "United States of America" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "CA", + "display": "Canada", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Canada" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-nationality", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "BT", + "display": "Bhutan", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Bhutan" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-importance", + "valueCodeableConcept": { + "coding": [ + { + "code": "VIP", + "display": "Very Important Person", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/L", + "version": "v1.1" + }, + { + "code": "IMP", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/DCM", + "version": "v1.2" + } + ], + "text": "Inportant Person" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + { + "fullUrl": "urn:uuid:78295402-9b84-4829-b945-502ab3402de5", + "resource": { + "resourceType": "Account", + "id": "78295402-9b84-4829-b945-502ab3402de5", + "identifier": [ + { + "value": "4000776", + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Visit number" + } + ] + }, + "system": "urn:oid:2.4", + "assigner": { + "reference": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/78295402-9b84-4829-b945-502ab3402de5" + } + }, + { + "fullUrl": "urn:uuid:9d4c8327-8a28-8152-1898-8251baa707b7", + "resource": { + "resourceType": "Organization", + "id": "9d4c8327-8a28-8152-1898-8251baa707b7", + "identifier": [ + { + "value": "AccMgr", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr" + }, + { + "value": "urn:oid:2.4", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + } + }, + { + "fullUrl": "urn:uuid:b3ad3a9f-d4f6-4638-0a09-2da771733488", + "resource": { + "resourceType": "Organization", + "id": "b3ad3a9f-d4f6-4638-0a09-2da771733488", + "identifier": [ + { + "value": "test1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test1" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "fullUrl": "urn:uuid:f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "resource": { + "resourceType": "Organization", + "id": "f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "identifier": [ + { + "value": "NTH", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NTH" + }, + { + "value": "rt23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + } + }, + { + "fullUrl": "urn:uuid:62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "resource": { + "resourceType": "RelatedPerson", + "id": "62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "identifier": [ + { + "value": "1212121", + "type": { + "coding": [ + { + "code": "AND", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Account number debitor" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "relationship": [ + { + "coding": [ + { + "code": "MTH", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/62b2e1ee-a272-4ffe-692e-a1fbfd49af6a" + } + }, + { + "fullUrl": "urn:uuid:11967e28-8dd4-a112-0fdc-377866bf12a0", + "resource": { + "resourceType": "Organization", + "id": "11967e28-8dd4-a112-0fdc-377866bf12a0", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "2.16.840.1.113883.19", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + } + }, + { + "fullUrl": "urn:uuid:7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "resource": { + "resourceType": "Organization", + "id": "7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "identifier": [ + { + "value": "AccMng", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMng" + }, + { + "value": "1.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + } + }, + { + "fullUrl": "urn:uuid:0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "resource": { + "resourceType": "Organization", + "id": "0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "identifier": [ + { + "value": "PERSONNELt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSONNELt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + } + }, + { + "fullUrl": "urn:uuid:f6775f99-5279-be04-bf81-0906c81f7443", + "resource": { + "resourceType": "Practitioner", + "id": "f6775f99-5279-be04-bf81-0906c81f7443", + "identifier": [ + { + "value": "1122334", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Alaz", + "given": [ + "Mohammed", + "Mahi" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "fullUrl": "urn:uuid:c613d7b2-525f-8c08-a7ac-b2b91486e257", + "resource": { + "resourceType": "Organization", + "id": "c613d7b2-525f-8c08-a7ac-b2b91486e257", + "identifier": [ + { + "value": "TEST", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TEST" + }, + { + "value": "23.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + } + }, + { + "fullUrl": "urn:uuid:04f8cfc8-62ca-12df-63ce-6304ef577d44", + "resource": { + "resourceType": "Practitioner", + "id": "04f8cfc8-62ca-12df-63ce-6304ef577d44", + "identifier": [ + { + "value": "C006", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + }, + "type": { + "coding": [ + { + "code": "BA", + "display": "Bank Account Number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen" + ], + "prefix": [ + "Dr" + ], + "use": "anonymous" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "fullUrl": "urn:uuid:99edcabd-fbeb-7e25-f823-11da8d8ed342", + "resource": { + "resourceType": "Practitioner", + "id": "99edcabd-fbeb-7e25-f823-11da8d8ed342", + "identifier": [ + { + "value": "C008", + "system": "urn:oid:2.8", + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Condoc", + "given": [ + "leen" + ], + "prefix": [ + "Dr" + ], + "use": "temp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "fullUrl": "urn:uuid:b065b233-8738-f1ec-1314-d61e4aac2c9e", + "resource": { + "resourceType": "Practitioner", + "id": "b065b233-8738-f1ec-1314-d61e4aac2c9e", + "identifier": [ + { + "value": "37", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr", + "type": { + "coding": [ + { + "code": "ANC", + "display": "Account number Creditor", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "DISNEY", + "given": [ + "WALT" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "fullUrl": "urn:uuid:9f974d4f-47e8-21a6-e549-4de4599c3764", + "resource": { + "resourceType": "Organization", + "id": "9f974d4f-47e8-21a6-e549-4de4599c3764", + "identifier": [ + { + "value": "T123", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-T123" + }, + { + "value": "urn:oid:r2.3", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + }, + { + "fullUrl": "urn:uuid:84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "resource": { + "resourceType": "Practitioner", + "id": "84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "identifier": [ + { + "value": "Othhel", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "fullUrl": "urn:uuid:9172e4a0-1ca5-646d-2183-b179f4daa737", + "resource": { + "resourceType": "Location", + "id": "9172e4a0-1ca5-646d-2183-b179f4daa737", + "partOf": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + }, + "name": "HUH AE OMU", + "identifier": [ + { + "value": "urn:oid:9.8", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "fullUrl": "urn:uuid:3913ec4d-6576-5e1a-ac31-e8280583371c", + "resource": { + "resourceType": "Location", + "id": "3913ec4d-6576-5e1a-ac31-e8280583371c", + "partOf": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + }, + "name": "OMU B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "fullUrl": "urn:uuid:804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "resource": { + "resourceType": "Location", + "id": "804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "partOf": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + }, + "name": "Bed 03", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "fullUrl": "urn:uuid:c043880b-0fab-1cb8-14f7-0475282c4d0e", + "resource": { + "resourceType": "Location", + "id": "c043880b-0fab-1cb8-14f7-0475282c4d0e", + "name": "HOMERTON UNIVER", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "fullUrl": "urn:uuid:f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "resource": { + "resourceType": "Location", + "id": "f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "partOf": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + }, + "name": "Homerton UH", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "fullUrl": "urn:uuid:7e38808c-44a8-cb0c-4709-9d6092abc32c", + "resource": { + "resourceType": "Location", + "id": "7e38808c-44a8-cb0c-4709-9d6092abc32c", + "partOf": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + }, + "name": "Floor5", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "fullUrl": "urn:uuid:59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "resource": { + "resourceType": "Location", + "id": "59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "name": "4 East, room 136, bed B 4E", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + } + }, + { + "fullUrl": "urn:uuid:d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "resource": { + "resourceType": "Location", + "id": "d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "partOf": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "name": "136", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + } + }, + { + "fullUrl": "urn:uuid:5783dafa-c6c0-e673-cca4-42087ee1831b", + "resource": { + "resourceType": "Location", + "id": "5783dafa-c6c0-e673-cca4-42087ee1831b", + "partOf": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "name": "B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + } + }, + { + "fullUrl": "urn:uuid:8b39e6e5-78cd-63ab-2441-f43ca5554096", + "resource": { + "resourceType": "Location", + "id": "8b39e6e5-78cd-63ab-2441-f43ca5554096", + "name": "CommunityHospital", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + } + }, + { + "fullUrl": "urn:uuid:42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "resource": { + "resourceType": "Location", + "id": "42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "name": "Homes", + "identifier": [ + { + "value": "22", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/FDK" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + { + "fullUrl": "urn:uuid:84634858-74aa-5cdb-4547-60ec27339ac6", + "resource": { + "resourceType": "Location", + "id": "84634858-74aa-5cdb-4547-60ec27339ac6", + "name": "POC", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + } + }, + { + "fullUrl": "urn:uuid:9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "resource": { + "resourceType": "Location", + "id": "9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "partOf": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "name": "Room-2", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + } + }, + { + "fullUrl": "urn:uuid:35353f20-6254-e794-98ed-8007490447e3", + "resource": { + "resourceType": "Location", + "id": "35353f20-6254-e794-98ed-8007490447e3", + "partOf": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "name": "Bed-103", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/35353f20-6254-e794-98ed-8007490447e3" + } + }, + { + "fullUrl": "urn:uuid:055e10f1-222e-df73-2325-0e4396db1a55", + "resource": { + "resourceType": "Location", + "id": "055e10f1-222e-df73-2325-0e4396db1a55", + "name": "Greenland", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + } + }, + { + "fullUrl": "urn:uuid:1154e6b2-b022-b3be-7dce-2b940ab5376d", + "resource": { + "resourceType": "Location", + "id": "1154e6b2-b022-b3be-7dce-2b940ab5376d", + "name": "Nursing home", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + } + }, + { + "fullUrl": "urn:uuid:08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "resource": { + "resourceType": "Location", + "id": "08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "name": "Rosewood", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + } + }, + { + "fullUrl": "urn:uuid:08314073-410a-3dc7-512c-0f2d206fb59d", + "resource": { + "resourceType": "Organization", + "id": "08314073-410a-3dc7-512c-0f2d206fb59d", + "identifier": [ + { + "value": "Etest", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-Etest" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + }, + { + "fullUrl": "urn:uuid:919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "resource": { + "resourceType": "EpisodeOfCare", + "id": "919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "status": "planned", + "identifier": [ + { + "value": "EOC124", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + }, + { + "fullUrl": "urn:uuid:4b192760-03d2-aec4-b0a6-fde323912e1e", + "resource": { + "resourceType": "Encounter", + "id": "4b192760-03d2-aec4-b0a6-fde323912e1e", + "class": { + "code": "PRENC", + "display": "pre-admission", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "status": "planned", + "location": [ + { + "status": "planned", + "location": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "status": "completed", + "location": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/35353f20-6254-e794-98ed-8007490447e3" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + } + ], + "type": [ + { + "coding": [ + { + "code": "E", + "display": "Emergency", + "system": "http://terminology.hl7.org/CodeSystem/v2-0007" + } + ] + } + ], + "hospitalization": { + "preAdmissionIdentifier": { + "value": "1234567", + "type": { + "coding": [ + { + "code": "ANON", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Anonymous identifier" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + "reAdmission": { + "coding": [ + { + "code": "R", + "display": "Re-admission", + "system": "http://terminology.hl7.org/CodeSystem/v2-0092" + } + ] + }, + "admitSource": { + "coding": [ + { + "code": "NHS Provider-General (inc.A&E-this Hosp)" + } + ] + }, + "dischargeDisposition": { + "coding": [ + { + "code": "Admitted as Inpatient", + "display": "Sample", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ACR" + } + ] + }, + "dietPreference": [ + { + "coding": [ + { + "code": "Vegan", + "display": "Vegetarian" + } + ] + } + ], + "destination": { + "reference": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + "episodeOfCare": [ + { + "reference": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + ], + "participant": [ + { + "type": [ + { + "coding": [ + { + "code": "ATND", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", + "display": "attender" + } + ] + } + ], + "individual": { + "reference": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "CON", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "consultant" + } + ], + "individual": { + "reference": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "ADM", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "admitter" + } + ], + "individual": { + "reference": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "PART", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "Participation" + } + ], + "individual": { + "reference": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + } + ], + "serviceType": { + "coding": [ + { + "code": "SUR" + } + ] + }, + "identifier": [ + { + "value": "40007716", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + }, + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ], + "text": "visit number" + } + }, + { + "value": "50", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:r2.3", + "assigner": { + "reference": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + } + ], + "period": { + "start": "2015-02-08T15:54:19+05:30" + }, + "text": { + "status": "generated", + "div": "

Visit Description:

" + }, + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Encounter/4b192760-03d2-aec4-b0a6-fde323912e1e" + } + }, + { + "fullUrl": "urn:uuid:9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "resource": { + "resourceType": "Provenance", + "id": "9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "occurredDateTime": "2021-08-17T18:49:43.004+05:30", + "recorded": "2029-08-01T11:21:24+05:30", + "reason": [ + { + "coding": [ + { + "code": "PATRQT", + "display": "patient requested", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason" + } + ] + } + ], + "agent": [ + { + "who": { + "reference": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + } + ], + "activity": { + "text": "ADT^A03^ADT_A03" + }, + "location": { + "reference": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + }, + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c" + } + }, + { + "fullUrl": "urn:uuid:ef39f581-5e8f-3917-35a9-3443303d9eee", + "resource": { + "resourceType": "Organization", + "id": "ef39f581-5e8f-3917-35a9-3443303d9eee", + "identifier": [ + { + "value": "DRNBR", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-DRNBR" + }, + { + "value": "urn:oid:W1.2", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + } + }, + { + "fullUrl": "urn:uuid:95aea53b-8d49-d57f-d16f-4d14b914f992", + "resource": { + "resourceType": "Practitioner", + "id": "95aea53b-8d49-d57f-d16f-4d14b914f992", + "identifier": [ + { + "value": "C08", + "system": "urn:oid:W1.2", + "assigner": { + "reference": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + }, + "type": { + "coding": [ + { + "code": "ANON", + "display": "Anonymous identifier", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen", + "2ndname" + ], + "suffix": [ + "Jr", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + }, + { + "fullUrl": "urn:uuid:59d5e519-0108-5dd8-adfa-1eef5658009e", + "resource": { + "resourceType": "Location", + "id": "59d5e519-0108-5dd8-adfa-1eef5658009e", + "name": "Cona_Health", + "identifier": [ + { + "value": "urn:oid:1.3.6.1.4.1.44750.1.4", + "system": "urn:ietf:rfc:3986" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "display": "site", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + } + } + ] +} \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A03/ADT-A03-expected.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A03/ADT-A03-expected.json new file mode 100644 index 000000000..182a244ca --- /dev/null +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A03/ADT-A03-expected.json @@ -0,0 +1,4748 @@ +{ + "resourceType": "Bundle", + "type": "batch", + "timestamp": "1989-08-18T14:41:00+05:30", + "identifier": { + "value": "MSG00001" + }, + "id": "513a3d06-5e87-6fbc-ad1b-170ab430499f", + "entry": [ + { + "fullUrl": "urn:uuid:b4ca189b-51ae-33df-cbe2-559b4423a321", + "resource": { + "resourceType": "MessageHeader", + "id": "b4ca189b-51ae-33df-cbe2-559b4423a321", + "source": { + "name": "24GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.20", + "version": "2.4.3.52854", + "software": "Rhapsody" + }, + "destination": [ + { + "name": "25GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.23", + "receiver": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + } + ], + "meta": { + "security": [ + { + "display": "SECURITY", + "system": "http://example.com/v2-to-fhirconverter/security-label" + } + ], + "tag": [ + { + "code": "P", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "A03", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ADT^A03^ADT_A03" + }, + "language": "en-US", + "sender": { + "reference": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + }, + "responsible": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + "request": { + "method": "PUT", + "url": "MessageHeader/b4ca189b-51ae-33df-cbe2-559b4423a321" + } + }, + { + "fullUrl": "urn:uuid:f65d2168-02c8-1897-210d-361176172856", + "resource": { + "resourceType": "Provenance", + "id": "f65d2168-02c8-1897-210d-361176172856", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T12:47:57.113Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ADT_A03.

" + }, + "occurredDateTime": "1989-08-18T14:41:00+05:30", + "recorded": "1989-08-18T14:41:00+05:30", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + } + ], + "activity": { + "coding": [ + { + "display": "ADT^A03^ADT_A03" + } + ] + }, + "entity": [ + { + "role": "source", + "what": { + "reference": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + } + ], + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/f65d2168-02c8-1897-210d-361176172856" + } + }, + { + "fullUrl": "urn:uuid:4356fb81-6ecd-2d70-57b1-47812638e785", + "resource": { + "resourceType": "Organization", + "id": "4356fb81-6ecd-2d70-57b1-47812638e785", + "identifier": [ + { + "value": "GHHSFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHSFacility" + }, + { + "value": "urn:oid:2.16.840.1.122848.1.30", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + } + }, + { + "fullUrl": "urn:uuid:62781ad6-3896-cb63-0178-ead0c4a432b5", + "resource": { + "resourceType": "Organization", + "id": "62781ad6-3896-cb63-0178-ead0c4a432b5", + "identifier": [ + { + "value": "GHHRFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHRFacility" + }, + { + "value": "urn:oid:2.16.840.1.1122848.1.32", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/62781ad6-3896-cb63-0178-ead0c4a432b5" + } + }, + { + "fullUrl": "urn:uuid:33532a82-d220-4c0d-1abe-53e48951c201", + "resource": { + "resourceType": "Organization", + "id": "33532a82-d220-4c0d-1abe-53e48951c201", + "name": "22 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + { + "fullUrl": "urn:uuid:527280c1-34d1-c639-e9ba-61986d28e266", + "resource": { + "resourceType": "Organization", + "id": "527280c1-34d1-c639-e9ba-61986d28e266", + "name": "23 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + }, + { + "fullUrl": "urn:uuid:503eb873-22fb-8199-ae28-3604ad59fe13", + "resource": { + "resourceType": "Device", + "id": "503eb873-22fb-8199-ae28-3604ad59fe13", + "identifier": [ + { + "value": "ADTApp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + }, + { + "fullUrl": "urn:uuid:4b549918-a84d-cdaf-e150-c773a5d306e5", + "resource": { + "resourceType": "Device", + "id": "4b549918-a84d-cdaf-e150-c773a5d306e5", + "manufacturer": "Orion", + "deviceName": [ + { + "name": "Rhapsody", + "type": "manufacturer-name" + } + ], + "version": [ + { + "value": "2.4.3.52854" + } + ], + "modelNumber": "2.4.3", + "note": [ + { + "text": "Testactivity" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/4b549918-a84d-cdaf-e150-c773a5d306e5" + } + }, + { + "fullUrl": "urn:uuid:9e909e52-61a1-be50-1878-a12ef8c36346", + "resource": { + "resourceType": "Patient", + "id": "9e909e52-61a1-be50-1878-a12ef8c36346", + "identifier": [ + { + "value": "1234567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "PATID1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "value": "123456789", + "type": { + "coding": [ + { + "code": "SS", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Social Security number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-USSSA" + }, + { + "value": "PATID567", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test2" + }, + { + "value": "PSSN123121234", + "type": { + "coding": [ + { + "code": "SB", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + }, + { + "value": "DLN-123", + "type": { + "coding": [ + { + "code": "DL" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/US", + "period": { + "end": "2001-01-23" + } + }, + { + "value": "1516", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "55121", + "type": { + "coding": [ + { + "code": "FI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Facility ID" + } + ] + } + }, + { + "value": "DB123", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:1.12", + "assigner": { + "reference": "Organization/4e68b44e-c053-02b1-6d6d-fe816f9fdfec" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "Medicare-12345", + "type": { + "coding": [ + { + "code": "MC", + "display": "Patient's Medicare number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-medicare" + }, + { + "value": "MCN-008", + "type": { + "coding": [ + { + "code": "MA", + "display": "Patient Medicaid number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/identifier-medicaid" + }, + { + "value": "MI-12345", + "type": { + "coding": [ + { + "code": "MI", + "display": "Military ID number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/identifier-military" + }, + { + "value": "PNM1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/1fca4c8f-7562-b755-9a05-5f0f49096e5b" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "name": [ + { + "family": "EVERYMAN", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official", + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + }, + { + "family": "elbert", + "given": [ + "Son" + ] + }, + { + "family": "RADIANT", + "given": [ + "LUCY" + ] + }, + { + "family": "Jack", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + } + ], + "birthDate": "1988-08-18", + "_birthDate": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime": "1988-08-18T14:41:00+05:30" + } + ] + }, + "gender": "male", + "address": [ + { + "line": [ + "1000", + "Hospital Lane", + "Ste. 123", + "Near Highway" + ], + "city": "Ann Arbor ", + "state": "MI", + "postalCode": "99999", + "country": "USA", + "type": "postal", + "district": "W", + "period": { + "start": "2000-01-10", + "end": "2000-01-20" + } + }, + { + "line": [ + "1619 SOUTH UNIVERSITY" + ], + "city": "MADISON", + "state": "WI", + "postalCode": "53703", + "country": "US" + } + ], + "telecom": [ + { + "value": "2222", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18, + "use": "home" + }, + { + "value": "12121212", + "system": "phone", + "use": "home" + }, + { + "value": "7777", + "system": "phone", + "use": "work" + }, + { + "value": "1111", + "system": "other", + "use": "work" + }, + { + "value": "89898989", + "use": "work", + "system": "email" + }, + { + "value": "8484", + "system": "email", + "use": "home" + }, + { + "value": "717171", + "system": "phone", + "use": "home" + }, + { + "value": "021212", + "system": "other", + "use": "work" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47", + "version": "v2" + }, + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47", + "version": "v2.1" + } + ], + "text": "TextInEnglish" + }, + "preferred": true + } + ], + "maritalStatus": { + "coding": [ + { + "code": "M", + "display": "Married", + "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" + } + ] + }, + "multipleBirthInteger": 2, + "deceasedDateTime": "2008-08-25T15:31:30+05:30", + "meta": { + "lastUpdated": "2005-01-10T04:05:14+05:30" + }, + "generalPractitioner": [ + { + "reference": "Organization/4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11" + }, + { + "reference": "Practitioner/76aaad38-1077-6a5c-0c5c-102ec160a60d" + } + ], + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "ombCategory", + "valueCoding": { + "code": "2028-9", + "display": "Asian", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White+Asian" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + "valueString": "SMITH--Angela--L" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", + "valueAddress": { + "text": "St. Francis Community Hospital of Lower South Side" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-religion", + "valueCodeableConcept": { + "coding": [ + { + "code": "1002", + "display": "African Religions", + "system": "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2186-5", + "display": "Non Hispanic or Latino", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "Non Hispanic or Latino" + } + ] + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/VeteranMilitaryStatus", + "valueCodeableConcept": { + "coding": [ + { + "code": "Vet123", + "display": "retired", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ART" + } + ], + "text": "retired" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-animal", + "extension": [ + { + "url": "species", + "valueCodeableConcept": { + "coding": [ + { + "code": "125097000", + "display": "Goat", + "system": "http://snomed.info/sct" + } + ], + "text": "Goat" + } + }, + { + "url": "breed", + "valueCodeableConcept": { + "coding": [ + { + "code": "4880003", + "display": "Beagle", + "system": "http://snomed.info/sct" + } + ], + "text": "Beagle" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "US", + "display": "United States of America", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "United States of America" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "CA", + "display": "Canada", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Canada" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-nationality", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "BT", + "display": "Bhutan", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Bhutan" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-congregation", + "valueString": "Methodist Church" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-importance", + "valueCodeableConcept": { + "coding": [ + { + "code": "VIP", + "display": "Very Important Person", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/L", + "version": "v1.1" + }, + { + "code": "IMP", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/DCM", + "version": "v1.2" + } + ], + "text": "Inportant Person" + } + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/patient-disabilityIndicator", + "valueBoolean": true + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/DisabilityPeriod", + "valuePeriod": { + "start": "2021-08-30", + "end": "2021-09-30" + } + } + ], + "contact": [ + { + "organization": { + "reference": "Organization/3bb64820-2a2b-956c-9f45-125ec102f353" + } + }, + { + "name": { + "family": "Evan", + "given": [ + "ADAM", + "A" + ], + "suffix": [ + "III", + "MD" + ], + "prefix": [ + "Dr." + ], + "use": "usual" + }, + "address": { + "line": [ + "2222", + "HOME", + "STREET", + "Highway" + ], + "city": "GREENSBORO", + "state": "NC", + "postalCode": "27401-1020", + "country": "US", + "use": "billing", + "district": "test", + "period": { + "start": "2000-01-10", + "end": "2005-01-11" + } + }, + "telecom": [ + { + "value": "5555", + "use": "work", + "system": "email", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "121111", + "use": "home", + "system": "phone" + }, + { + "value": "878777", + "use": "home", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "6666666", + "system": "pager", + "use": "work" + }, + { + "value": "777", + "use": "work", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 1 + }, + { + "value": "444444", + "system": "phone" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "O", + "display": "Other", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131" + } + ] + } + ], + "period": { + "start": "2021-08-18", + "end": "2021-12-18" + }, + "gender": "female" + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + { + "fullUrl": "urn:uuid:78295402-9b84-4829-b945-502ab3402de5", + "resource": { + "resourceType": "Account", + "id": "78295402-9b84-4829-b945-502ab3402de5", + "identifier": [ + { + "value": "4000776", + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Visit number" + } + ] + }, + "system": "urn:oid:2.4", + "assigner": { + "reference": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + ], + "guarantor": [ + { + "party": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "onHold": false, + "period": { + "start": "2001-04-10", + "end": "2001-04-15" + } + }, + { + "party": { + "reference": "Organization/98678cfe-0455-73c8-d2a1-2ede2d55943f" + }, + "onHold": false, + "period": { + "start": "2001-04-10", + "end": "2001-04-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/78295402-9b84-4829-b945-502ab3402de5" + } + }, + { + "fullUrl": "urn:uuid:9d4c8327-8a28-8152-1898-8251baa707b7", + "resource": { + "resourceType": "Organization", + "id": "9d4c8327-8a28-8152-1898-8251baa707b7", + "identifier": [ + { + "value": "AccMgr", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr" + }, + { + "value": "urn:oid:2.4", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + } + }, + { + "fullUrl": "urn:uuid:98678cfe-0455-73c8-d2a1-2ede2d55943f", + "resource": { + "resourceType": "Organization", + "id": "98678cfe-0455-73c8-d2a1-2ede2d55943f", + "name": "Jupiter Hospital", + "address": [ + { + "line": [ + "1619 SOUTH UNIVERSITY" + ], + "city": "MADISON", + "state": "WI", + "postalCode": "53703", + "country": "US" + } + ], + "contact": [ + { + "telecom": [ + { + "value": "000352", + "system": "phone" + }, + { + "value": "00121", + "system": "fax" + } + ], + "purpose": { + "coding": [ + { + "code": "Urgent requirement" + } + ] + } + }, + { + "name": { + "family": "RADIANT", + "given": [ + "LUCY" + ] + } + }, + { + "name": { + "family": "Ben", + "given": [ + "Charles" + ] + } + }, + { + "name": { + "family": "Ben2" + } + } + ], + "telecom": [ + { + "value": "8484", + "system": "email" + }, + { + "value": "717171", + "system": "phone" + }, + { + "value": "021212", + "system": "other" + } + ], + "identifier": [ + { + "value": "1516", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/98678cfe-0455-73c8-d2a1-2ede2d55943f" + } + }, + { + "fullUrl": "urn:uuid:b3ad3a9f-d4f6-4638-0a09-2da771733488", + "resource": { + "resourceType": "Organization", + "id": "b3ad3a9f-d4f6-4638-0a09-2da771733488", + "identifier": [ + { + "value": "test1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test1" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "fullUrl": "urn:uuid:4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11", + "resource": { + "resourceType": "Organization", + "id": "4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11", + "name": "LINDAS TEST ORGANIZATION", + "identifier": [ + { + "value": "SIISCLIENT818" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11" + } + }, + { + "fullUrl": "urn:uuid:76aaad38-1077-6a5c-0c5c-102ec160a60d", + "resource": { + "resourceType": "Practitioner", + "id": "76aaad38-1077-6a5c-0c5c-102ec160a60d", + "identifier": [ + { + "value": "88", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TE", + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Hippo", + "given": [ + "rold", + "H" + ], + "suffix": [ + "V", + "MD" + ], + "prefix": [ + "Dr" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/76aaad38-1077-6a5c-0c5c-102ec160a60d" + } + }, + { + "fullUrl": "urn:uuid:11967e28-8dd4-a112-0fdc-377866bf12a0", + "resource": { + "resourceType": "Organization", + "id": "11967e28-8dd4-a112-0fdc-377866bf12a0", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "2.16.840.1.113883.19", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + } + }, + { + "fullUrl": "urn:uuid:7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "resource": { + "resourceType": "Organization", + "id": "7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "identifier": [ + { + "value": "AccMng", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMng" + }, + { + "value": "1.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + } + }, + { + "fullUrl": "urn:uuid:0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "resource": { + "resourceType": "Organization", + "id": "0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "identifier": [ + { + "value": "PERSONNELt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSONNELt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + } + }, + { + "fullUrl": "urn:uuid:f6775f99-5279-be04-bf81-0906c81f7443", + "resource": { + "resourceType": "Practitioner", + "id": "f6775f99-5279-be04-bf81-0906c81f7443", + "identifier": [ + { + "value": "1122334", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Alaz", + "given": [ + "Mohammed", + "Mahi" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "fullUrl": "urn:uuid:c613d7b2-525f-8c08-a7ac-b2b91486e257", + "resource": { + "resourceType": "Organization", + "id": "c613d7b2-525f-8c08-a7ac-b2b91486e257", + "identifier": [ + { + "value": "TEST", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TEST" + }, + { + "value": "23.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + } + }, + { + "fullUrl": "urn:uuid:04f8cfc8-62ca-12df-63ce-6304ef577d44", + "resource": { + "resourceType": "Practitioner", + "id": "04f8cfc8-62ca-12df-63ce-6304ef577d44", + "identifier": [ + { + "value": "C006", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + }, + "type": { + "coding": [ + { + "code": "BA", + "display": "Bank Account Number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen" + ], + "prefix": [ + "Dr" + ], + "use": "anonymous" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "fullUrl": "urn:uuid:99edcabd-fbeb-7e25-f823-11da8d8ed342", + "resource": { + "resourceType": "Practitioner", + "id": "99edcabd-fbeb-7e25-f823-11da8d8ed342", + "identifier": [ + { + "value": "C008", + "system": "urn:oid:2.8", + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Condoc", + "given": [ + "leen" + ], + "prefix": [ + "Dr" + ], + "use": "temp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "fullUrl": "urn:uuid:b065b233-8738-f1ec-1314-d61e4aac2c9e", + "resource": { + "resourceType": "Practitioner", + "id": "b065b233-8738-f1ec-1314-d61e4aac2c9e", + "identifier": [ + { + "value": "37", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr", + "type": { + "coding": [ + { + "code": "ANC", + "display": "Account number Creditor", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "DISNEY", + "given": [ + "WALT" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "fullUrl": "urn:uuid:9f974d4f-47e8-21a6-e549-4de4599c3764", + "resource": { + "resourceType": "Organization", + "id": "9f974d4f-47e8-21a6-e549-4de4599c3764", + "identifier": [ + { + "value": "T123", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-T123" + }, + { + "value": "urn:oid:r2.3", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + }, + { + "fullUrl": "urn:uuid:84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "resource": { + "resourceType": "Practitioner", + "id": "84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "identifier": [ + { + "value": "Othhel", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "fullUrl": "urn:uuid:24d4bddf-a1c3-4dc8-049b-1dda7e5112b6", + "resource": { + "resourceType": "Organization", + "id": "24d4bddf-a1c3-4dc8-049b-1dda7e5112b6", + "identifier": [ + { + "value": "TE", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TE" + }, + { + "value": "Provider Master.Community Health and Hospitals", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-DNS", + "type": { + "coding": [ + { + "code": "DNS", + "display": "An Internet host name, in accordance with RFC 1035; or an IP address. Either in ASCII or as integers, with periods between components (“dotted” notation).", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/24d4bddf-a1c3-4dc8-049b-1dda7e5112b6" + } + }, + { + "fullUrl": "urn:uuid:36e3aaa4-569a-7d9d-037f-27235ed05701", + "resource": { + "resourceType": "Practitioner", + "id": "36e3aaa4-569a-7d9d-037f-27235ed05701", + "identifier": [ + { + "value": "12188", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-DNS", + "assigner": { + "reference": "Organization/24d4bddf-a1c3-4dc8-049b-1dda7e5112b6" + }, + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Hippocrates", + "given": [ + "Harold", + "H" + ], + "suffix": [ + "IV", + "MD" + ], + "prefix": [ + "Dr" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/36e3aaa4-569a-7d9d-037f-27235ed05701" + } + }, + { + "fullUrl": "urn:uuid:9172e4a0-1ca5-646d-2183-b179f4daa737", + "resource": { + "resourceType": "Location", + "id": "9172e4a0-1ca5-646d-2183-b179f4daa737", + "partOf": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + }, + "name": "HUH AE OMU", + "identifier": [ + { + "value": "urn:oid:9.8", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "fullUrl": "urn:uuid:3913ec4d-6576-5e1a-ac31-e8280583371c", + "resource": { + "resourceType": "Location", + "id": "3913ec4d-6576-5e1a-ac31-e8280583371c", + "partOf": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + }, + "name": "OMU B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "fullUrl": "urn:uuid:804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "resource": { + "resourceType": "Location", + "id": "804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "partOf": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + }, + "name": "Bed 03", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "fullUrl": "urn:uuid:c043880b-0fab-1cb8-14f7-0475282c4d0e", + "resource": { + "resourceType": "Location", + "id": "c043880b-0fab-1cb8-14f7-0475282c4d0e", + "name": "HOMERTON UNIVER", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "fullUrl": "urn:uuid:f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "resource": { + "resourceType": "Location", + "id": "f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "partOf": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + }, + "name": "Homerton UH", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "fullUrl": "urn:uuid:7e38808c-44a8-cb0c-4709-9d6092abc32c", + "resource": { + "resourceType": "Location", + "id": "7e38808c-44a8-cb0c-4709-9d6092abc32c", + "partOf": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + }, + "name": "Floor5", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "fullUrl": "urn:uuid:59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "resource": { + "resourceType": "Location", + "id": "59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "name": "4 East, room 136, bed B 4E", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + } + }, + { + "fullUrl": "urn:uuid:d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "resource": { + "resourceType": "Location", + "id": "d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "partOf": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "name": "136", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + } + }, + { + "fullUrl": "urn:uuid:5783dafa-c6c0-e673-cca4-42087ee1831b", + "resource": { + "resourceType": "Location", + "id": "5783dafa-c6c0-e673-cca4-42087ee1831b", + "partOf": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "name": "B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + } + }, + { + "fullUrl": "urn:uuid:8b39e6e5-78cd-63ab-2441-f43ca5554096", + "resource": { + "resourceType": "Location", + "id": "8b39e6e5-78cd-63ab-2441-f43ca5554096", + "name": "CommunityHospital", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + } + }, + { + "fullUrl": "urn:uuid:42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "resource": { + "resourceType": "Location", + "id": "42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "name": "Homes", + "identifier": [ + { + "value": "22", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/FDK" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + { + "fullUrl": "urn:uuid:84634858-74aa-5cdb-4547-60ec27339ac6", + "resource": { + "resourceType": "Location", + "id": "84634858-74aa-5cdb-4547-60ec27339ac6", + "name": "POC", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + } + }, + { + "fullUrl": "urn:uuid:9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "resource": { + "resourceType": "Location", + "id": "9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "partOf": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "name": "Room-2", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + } + }, + { + "fullUrl": "urn:uuid:35353f20-6254-e794-98ed-8007490447e3", + "resource": { + "resourceType": "Location", + "id": "35353f20-6254-e794-98ed-8007490447e3", + "partOf": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "name": "Bed-103", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/35353f20-6254-e794-98ed-8007490447e3" + } + }, + { + "fullUrl": "urn:uuid:055e10f1-222e-df73-2325-0e4396db1a55", + "resource": { + "resourceType": "Location", + "id": "055e10f1-222e-df73-2325-0e4396db1a55", + "name": "Greenland", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + } + }, + { + "fullUrl": "urn:uuid:1154e6b2-b022-b3be-7dce-2b940ab5376d", + "resource": { + "resourceType": "Location", + "id": "1154e6b2-b022-b3be-7dce-2b940ab5376d", + "name": "Nursing home", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + } + }, + { + "fullUrl": "urn:uuid:08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "resource": { + "resourceType": "Location", + "id": "08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "name": "Rosewood", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + } + }, + { + "fullUrl": "urn:uuid:c7f1b9ec-ffd8-321e-ad87-abafc1c1a333", + "resource": { + "resourceType": "Location", + "id": "c7f1b9ec-ffd8-321e-ad87-abafc1c1a333", + "name": "ROOM1", + "identifier": [ + { + "value": "urn:oid:2.16.840.1.113883.4.642.1.1108", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + } + }, + { + "fullUrl": "urn:uuid:6f159848-5f01-01b3-9594-80fbbe9ab510", + "resource": { + "resourceType": "Location", + "id": "6f159848-5f01-01b3-9594-80fbbe9ab510", + "partOf": { + "reference": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + }, + "name": "BED1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/6f159848-5f01-01b3-9594-80fbbe9ab510" + } + }, + { + "fullUrl": "urn:uuid:4bca6ba2-be65-ef37-3911-03b70a00a3a6", + "resource": { + "resourceType": "Location", + "id": "4bca6ba2-be65-ef37-3911-03b70a00a3a6", + "name": "FACILITY1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + } + }, + { + "fullUrl": "urn:uuid:3b0911cb-4361-cd8d-b188-463af033c699", + "resource": { + "resourceType": "Location", + "id": "3b0911cb-4361-cd8d-b188-463af033c699", + "partOf": { + "reference": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + }, + "name": "BUILDING1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + } + }, + { + "fullUrl": "urn:uuid:0d9c3424-329f-4c95-ee30-ac2da4a35bff", + "resource": { + "resourceType": "Location", + "id": "0d9c3424-329f-4c95-ee30-ac2da4a35bff", + "partOf": { + "reference": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + }, + "name": "FLOOR1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/0d9c3424-329f-4c95-ee30-ac2da4a35bff" + } + }, + { + "fullUrl": "urn:uuid:08314073-410a-3dc7-512c-0f2d206fb59d", + "resource": { + "resourceType": "Organization", + "id": "08314073-410a-3dc7-512c-0f2d206fb59d", + "identifier": [ + { + "value": "Etest", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-Etest" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + }, + { + "fullUrl": "urn:uuid:919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "resource": { + "resourceType": "EpisodeOfCare", + "id": "919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "status": "planned", + "identifier": [ + { + "value": "EOC124", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "diagnosis": [ + { + "condition": { + "reference": "Condition/481123a1-ca9c-c3c8-0284-e6926c3a50d8" + }, + "role": { + "coding": [ + { + "code": "AD", + "display": "Admission Diagnosis", + "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role" + } + ] + }, + "rank": 1 + } + ] + }, + "request": { + "method": "PUT", + "url": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + }, + { + "fullUrl": "urn:uuid:4b192760-03d2-aec4-b0a6-fde323912e1e", + "resource": { + "resourceType": "Encounter", + "id": "4b192760-03d2-aec4-b0a6-fde323912e1e", + "class": { + "code": "PRENC", + "display": "pre-admission", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "status": "planned", + "location": [ + { + "status": "planned", + "location": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "status": "completed", + "location": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/35353f20-6254-e794-98ed-8007490447e3" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/6f159848-5f01-01b3-9594-80fbbe9ab510" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/0d9c3424-329f-4c95-ee30-ac2da4a35bff" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + } + ], + "type": [ + { + "coding": [ + { + "code": "E", + "display": "Emergency", + "system": "http://terminology.hl7.org/CodeSystem/v2-0007" + } + ] + } + ], + "hospitalization": { + "preAdmissionIdentifier": { + "value": "1234567", + "type": { + "coding": [ + { + "code": "ANON", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Anonymous identifier" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + "reAdmission": { + "coding": [ + { + "code": "R", + "display": "Re-admission", + "system": "http://terminology.hl7.org/CodeSystem/v2-0092" + } + ] + }, + "admitSource": { + "coding": [ + { + "code": "NHS Provider-General (inc.A&E-this Hosp)" + } + ] + }, + "dischargeDisposition": { + "coding": [ + { + "code": "Admitted as Inpatient", + "display": "Sample", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ACR" + } + ] + }, + "dietPreference": [ + { + "coding": [ + { + "code": "Vegan", + "display": "Vegetarian" + } + ] + } + ], + "destination": { + "reference": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + "episodeOfCare": [ + { + "reference": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + ], + "participant": [ + { + "type": [ + { + "coding": [ + { + "code": "ATND", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", + "display": "attender" + } + ] + } + ], + "individual": { + "reference": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "CON", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "consultant" + } + ], + "individual": { + "reference": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "ADM", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "admitter" + } + ], + "individual": { + "reference": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "PART", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "Participation" + } + ], + "individual": { + "reference": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/36e3aaa4-569a-7d9d-037f-27235ed05701" + } + } + ], + "serviceType": { + "coding": [ + { + "code": "SUR" + } + ] + }, + "identifier": [ + { + "value": "40007716", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + }, + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ], + "text": "visit number" + } + }, + { + "value": "50", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:r2.3", + "assigner": { + "reference": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + } + ], + "period": { + "start": "2015-02-08T15:54:19+05:30" + }, + "reasonCode": [ + { + "coding": [ + { + "code": "140004", + "display": "Chronic pharyngitis", + "system": "http://snomed.info/sct" + } + ] + } + ], + "length": { + "value": 2, + "unit": "d", + "system": "http://unitsofmeasure.org/" + }, + "meta": { + "security": [ + { + "code": "N", + "display": "normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality" + } + ] + }, + "text": { + "status": "generated", + "div": "

Visit Description: Health Checkup

" + }, + "priority": { + "coding": [ + { + "code": "UR", + "display": "urgent", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActPriority", + "version": "V1.2" + }, + { + "code": "EL", + "display": "elective", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActPriority", + "version": "V1.3" + } + ] + }, + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/encounter-modeOfArrival", + "valueCoding": { + "code": "C", + "display": "Car", + "system": "http://terminology.hl7.org/CodeSystem/v2-0430" + } + } + ], + "diagnosis": [ + { + "condition": { + "reference": "Condition/481123a1-ca9c-c3c8-0284-e6926c3a50d8" + }, + "use": { + "coding": [ + { + "code": "AD", + "display": "Admission Diagnosis", + "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role" + } + ] + }, + "rank": 1 + } + ] + }, + "request": { + "method": "PUT", + "url": "Encounter/4b192760-03d2-aec4-b0a6-fde323912e1e" + } + }, + { + "fullUrl": "urn:uuid:9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "resource": { + "resourceType": "Provenance", + "id": "9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "occurredDateTime": "2021-08-17T18:49:43.004+05:30", + "recorded": "2029-08-01T11:21:24+05:30", + "reason": [ + { + "coding": [ + { + "code": "PATRQT", + "display": "patient requested", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason" + } + ] + } + ], + "agent": [ + { + "who": { + "reference": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + } + ], + "activity": { + "text": "ADT^A03^ADT_A03" + }, + "location": { + "reference": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + }, + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c" + } + }, + { + "fullUrl": "urn:uuid:ef39f581-5e8f-3917-35a9-3443303d9eee", + "resource": { + "resourceType": "Organization", + "id": "ef39f581-5e8f-3917-35a9-3443303d9eee", + "identifier": [ + { + "value": "DRNBR", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-DRNBR" + }, + { + "value": "urn:oid:W1.2", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + } + }, + { + "fullUrl": "urn:uuid:95aea53b-8d49-d57f-d16f-4d14b914f992", + "resource": { + "resourceType": "Practitioner", + "id": "95aea53b-8d49-d57f-d16f-4d14b914f992", + "identifier": [ + { + "value": "C08", + "system": "urn:oid:W1.2", + "assigner": { + "reference": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + }, + "type": { + "coding": [ + { + "code": "ANON", + "display": "Anonymous identifier", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen", + "2ndname" + ], + "suffix": [ + "Jr", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + }, + { + "fullUrl": "urn:uuid:59d5e519-0108-5dd8-adfa-1eef5658009e", + "resource": { + "resourceType": "Location", + "id": "59d5e519-0108-5dd8-adfa-1eef5658009e", + "name": "Cona_Health", + "identifier": [ + { + "value": "urn:oid:1.3.6.1.4.1.44750.1.4", + "system": "urn:ietf:rfc:3986" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "display": "site", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + } + }, + { + "fullUrl": "urn:uuid:396e6ab6-624f-44a8-841c-6e1c4cebd765", + "resource": { + "resourceType": "Practitioner", + "id": "396e6ab6-624f-44a8-841c-6e1c4cebd765", + "identifier": [ + { + "value": "1210" + } + ], + "name": [ + { + "family": "ANES", + "given": [ + "MARK", + "B" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/396e6ab6-624f-44a8-841c-6e1c4cebd765" + } + }, + { + "fullUrl": "urn:uuid:6a01e35c-52c3-892a-2ea0-0a283eb6757b", + "resource": { + "resourceType": "Practitioner", + "id": "6a01e35c-52c3-892a-2ea0-0a283eb6757b", + "identifier": [ + { + "value": "121188", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-L", + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Patrick", + "given": [ + "Harold", + "H" + ], + "suffix": [ + "IV", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/6a01e35c-52c3-892a-2ea0-0a283eb6757b" + } + }, + { + "fullUrl": "urn:uuid:a8fc538f-624b-0cee-df30-6377fabae47c", + "resource": { + "resourceType": "Practitioner", + "id": "a8fc538f-624b-0cee-df30-6377fabae47c", + "identifier": [ + { + "value": "12345689", + "type": { + "coding": [ + { + "code": "MR", + "display": "Medical record number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Everyman2", + "given": [ + "Adam2", + "A" + ], + "suffix": [ + "III", + "PHD" + ], + "prefix": [ + "DR" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/a8fc538f-624b-0cee-df30-6377fabae47c" + } + }, + { + "fullUrl": "urn:uuid:a9c75502-d60a-d89b-5912-f046100cd47e", + "resource": { + "resourceType": "Location", + "id": "a9c75502-d60a-d89b-5912-f046100cd47e", + "name": "OT", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/a9c75502-d60a-d89b-5912-f046100cd47e" + } + }, + { + "fullUrl": "urn:uuid:2e2e33a1-60f8-7e38-c827-fe070237c3fb", + "resource": { + "resourceType": "Procedure", + "id": "2e2e33a1-60f8-7e38-c827-fe070237c3fb", + "status": "unknown", + "identifier": [ + { + "value": "PR1001" + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Procedure/2e2e33a1-60f8-7e38-c827-fe070237c3fb" + } + }, + { + "fullUrl": "urn:uuid:c06db9c2-d07b-bac2-53c2-48ed83dd32b6", + "resource": { + "resourceType": "Procedure", + "id": "c06db9c2-d07b-bac2-53c2-48ed83dd32b6", + "code": { + "coding": [ + { + "code": "76164006", + "display": "Biopsy of colon (procedure)", + "system": "http://snomed.info/sct" + } + ], + "text": "Biopsy of colon, which was part of colonoscopy" + }, + "status": "completed", + "performedDateTime": "2005-01-25T16:10:00+05:30", + "category": { + "coding": [ + { + "code": "D", + "display": "Diagnostic Procedure", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/HL70230" + } + ] + }, + "performer": [ + { + "actor": { + "reference": "Practitioner/396e6ab6-624f-44a8-841c-6e1c4cebd765" + }, + "function": { + "coding": [ + { + "code": "88189002", + "system": "http://snomed.info/sct", + "display": "Anesthesiologist" + } + ], + "text": "Anesthesiologist" + } + }, + { + "actor": { + "reference": "Practitioner/6a01e35c-52c3-892a-2ea0-0a283eb6757b" + }, + "function": { + "coding": [ + { + "code": "304292004", + "system": "http://snomed.info/sct", + "display": "Surgeon" + } + ], + "text": "Surgeon" + } + }, + { + "actor": { + "reference": "Practitioner/a8fc538f-624b-0cee-df30-6377fabae47c" + }, + "function": { + "text": "Procedure Practitioner" + } + } + ], + "reasonCode": [ + { + "coding": [ + { + "code": "799008", + "display": "Sigmoid colon ulcer", + "system": "http://snomed.info/sct" + } + ] + } + ], + "identifier": [ + { + "value": "PR1006" + } + ], + "location": { + "reference": "Location/a9c75502-d60a-d89b-5912-f046100cd47e" + }, + "partOf": [ + { + "reference": "Procedure/2e2e33a1-60f8-7e38-c827-fe070237c3fb" + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Procedure/c06db9c2-d07b-bac2-53c2-48ed83dd32b6" + } + }, + { + "fullUrl": "urn:uuid:3bb64820-2a2b-956c-9f45-125ec102f353", + "resource": { + "resourceType": "Organization", + "id": "3bb64820-2a2b-956c-9f45-125ec102f353", + "name": "TestOrg", + "identifier": [ + { + "value": "Org12", + "type": { + "coding": [ + { + "code": "EI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "contact": [ + { + "name": { + "family": "Green", + "given": [ + "John", + "A" + ], + "suffix": [ + "II", + "MD" + ], + "prefix": [ + "DR" + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + "telecom": [ + { + "value": "898989898", + "system": "fax" + }, + { + "value": "88888888", + "system": "phone" + } + ], + "address": { + "line": [ + "Street1", + "Palkstreet" + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/3bb64820-2a2b-956c-9f45-125ec102f353" + } + }, + { + "fullUrl": "urn:uuid:abdee378-0d3b-337f-a31e-83e002ce92a0", + "resource": { + "resourceType": "RelatedPerson", + "id": "abdee378-0d3b-337f-a31e-83e002ce92a0", + "identifier": [ + { + "value": "1212121", + "type": { + "coding": [ + { + "code": "AND", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Account number debitor" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "12345567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/e76154d7-9084-80e4-6274-c929d7c39880" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "I-123", + "type": { + "coding": [ + { + "code": "BA", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Bank Account Number" + } + ] + } + }, + { + "value": "I-222", + "type": { + "coding": [ + { + "code": "DI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Diner’s Club card" + } + ] + } + }, + { + "value": "Security no-23", + "system": "http://hl7.org/fhir/sid/us-ssn" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "C", + "display": "Emergency Contact", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131", + "version": "9.0" + }, + { + "code": "CHILD", + "display": "child", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode", + "version": "10.0" + } + ] + }, + { + "coding": [ + { + "code": "O", + "display": "Other", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131" + } + ] + }, + { + "coding": [ + { + "code": "MTH", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "period": { + "start": "2021-08-18", + "end": "2021-12-18" + }, + "address": [ + { + "line": [ + "2222", + "HOME", + "STREET", + "Highway" + ], + "city": "GREENSBORO", + "state": "NC", + "postalCode": "27401-1020", + "country": "US", + "use": "billing", + "district": "test", + "period": { + "start": "2000-01-10", + "end": "2005-01-11" + } + }, + { + "line": [ + "111", + "Duck ST" + ], + "city": "Fowl" + }, + { + "line": [ + "Street1", + "Palkstreet" + ] + }, + { + "line": [ + "ST-2" + ] + } + ], + "telecom": [ + { + "value": "5555", + "use": "work", + "system": "email", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "121111", + "use": "home", + "system": "phone" + }, + { + "value": "878777", + "use": "home", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "6666666", + "system": "pager", + "use": "work" + }, + { + "value": "898989898", + "system": "fax" + }, + { + "value": "88888888", + "system": "phone" + }, + { + "value": "777", + "use": "work", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 1 + }, + { + "value": "444444", + "system": "phone" + } + ], + "name": [ + { + "family": "Evan", + "given": [ + "ADAM", + "A" + ], + "suffix": [ + "III", + "MD" + ], + "prefix": [ + "Dr." + ], + "use": "usual" + }, + { + "family": "Green", + "given": [ + "John", + "A" + ], + "suffix": [ + "II", + "MD" + ], + "prefix": [ + "DR" + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official" + } + ], + "gender": "female", + "birthDate": "1962-01-10", + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47" + } + ] + } + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White" + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/abdee378-0d3b-337f-a31e-83e002ce92a0" + } + }, + { + "fullUrl": "urn:uuid:e76154d7-9084-80e4-6274-c929d7c39880", + "resource": { + "resourceType": "Organization", + "id": "e76154d7-9084-80e4-6274-c929d7c39880", + "identifier": [ + { + "value": "T1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-T1" + }, + { + "value": "2.16.840.1.113883.19", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/e76154d7-9084-80e4-6274-c929d7c39880" + } + }, + { + "fullUrl": "urn:uuid:f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "resource": { + "resourceType": "Organization", + "id": "f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "identifier": [ + { + "value": "NTH", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NTH" + }, + { + "value": "rt23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + } + }, + { + "fullUrl": "urn:uuid:4e68b44e-c053-02b1-6d6d-fe816f9fdfec", + "resource": { + "resourceType": "Organization", + "id": "4e68b44e-c053-02b1-6d6d-fe816f9fdfec", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "urn:oid:1.12", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4e68b44e-c053-02b1-6d6d-fe816f9fdfec" + } + }, + { + "fullUrl": "urn:uuid:e82402a9-b2d1-2a28-3250-c099d5a77bf7", + "resource": { + "resourceType": "Organization", + "id": "e82402a9-b2d1-2a28-3250-c099d5a77bf7", + "identifier": [ + { + "value": "PERSt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/e82402a9-b2d1-2a28-3250-c099d5a77bf7" + } + }, + { + "fullUrl": "urn:uuid:ce70e6c3-c190-121d-c251-e4bae5cde6a1", + "resource": { + "resourceType": "Practitioner", + "id": "ce70e6c3-c190-121d-c251-e4bae5cde6a1", + "identifier": [ + { + "value": "1134", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/e82402a9-b2d1-2a28-3250-c099d5a77bf7" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Aly", + "given": [ + "Zafar", + "Mahendra" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/ce70e6c3-c190-121d-c251-e4bae5cde6a1" + } + }, + { + "fullUrl": "urn:uuid:88a53755-c972-6904-b4ce-8884b84ddc2e", + "resource": { + "resourceType": "PractitionerRole", + "id": "88a53755-c972-6904-b4ce-8884b84ddc2e", + "code": [ + { + "coding": [ + { + "code": "ResponsibleObserver", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/ce70e6c3-c190-121d-c251-e4bae5cde6a1" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/88a53755-c972-6904-b4ce-8884b84ddc2e" + } + }, + { + "fullUrl": "urn:uuid:3e0952c6-eea0-8938-96f8-07c224bf1577", + "resource": { + "resourceType": "Practitioner", + "id": "3e0952c6-eea0-8938-96f8-07c224bf1577", + "identifier": [ + { + "value": "2234" + } + ], + "name": [ + { + "family": "Pauly", + "given": [ + "Berrie", + "Raud" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/3e0952c6-eea0-8938-96f8-07c224bf1577" + } + }, + { + "fullUrl": "urn:uuid:bc78e290-ec67-c238-1e05-aefb6b252b0c", + "resource": { + "resourceType": "PractitionerRole", + "id": "bc78e290-ec67-c238-1e05-aefb6b252b0c", + "code": [ + { + "coding": [ + { + "code": "ResponsibleObserver", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/3e0952c6-eea0-8938-96f8-07c224bf1577" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/bc78e290-ec67-c238-1e05-aefb6b252b0c" + } + }, + { + "fullUrl": "urn:uuid:fe0adb86-ebe9-6479-0055-9db8dc1ff99a", + "resource": { + "resourceType": "Device", + "id": "fe0adb86-ebe9-6479-0055-9db8dc1ff99a", + "identifier": [ + { + "value": "EI12.3", + "system": "urn:uuid:UI2", + "type": { + "coding": [ + { + "code": "GUID", + "display": "Same as UUID.", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + }, + { + "system": "urn:oid:UI1", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/fe0adb86-ebe9-6479-0055-9db8dc1ff99a" + } + }, + { + "fullUrl": "urn:uuid:45f65e47-46c4-1a54-f9fb-1321258e79b2", + "resource": { + "resourceType": "Practitioner", + "id": "45f65e47-46c4-1a54-f9fb-1321258e79b2", + "identifier": [ + { + "type": { + "coding": [ + { + "code": "MD-25" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/45f65e47-46c4-1a54-f9fb-1321258e79b2" + } + }, + { + "fullUrl": "urn:uuid:090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3", + "resource": { + "resourceType": "PractitionerRole", + "id": "090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3", + "code": [ + { + "coding": [ + { + "code": "LabMedicalDirector", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/45f65e47-46c4-1a54-f9fb-1321258e79b2" + }, + "organization": { + "reference": "Organization/056aa7c7-6b75-3c67-63c5-cf9604f16d25" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3" + } + }, + { + "fullUrl": "urn:uuid:056aa7c7-6b75-3c67-63c5-cf9604f16d25", + "resource": { + "resourceType": "Organization", + "id": "056aa7c7-6b75-3c67-63c5-cf9604f16d25", + "name": "FairOaks Hspital", + "address": [ + { + "line": [ + "Research Park", + "Fairfax" + ], + "city": "VA", + "state": "22031", + "postalCode": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/056aa7c7-6b75-3c67-63c5-cf9604f16d25" + } + }, + { + "fullUrl": "urn:uuid:07fd2dd3-dbd6-5bb1-cfda-02226795d9a0", + "resource": { + "resourceType": "Observation", + "id": "07fd2dd3-dbd6-5bb1-cfda-02226795d9a0", + "identifier": [ + { + "value": "EI21", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-OII" + }, + { + "type": { + "coding": [ + { + "code": "FILL" + } + ] + } + } + ], + "status": "unknown", + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "component": [ + { + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 60, + "code": "beats/min", + "unit": "beats/min", + "system": "urn:iso:std:iso:3986" + }, + "referenceRange": [ + { + "text": "70-80" + } + ] + }, + { + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 120, + "code": "beats/min", + "unit": "beats/min", + "system": "urn:iso:std:iso:3986" + }, + "referenceRange": [ + { + "text": "70-80" + } + ] + } + ], + "effectiveDateTime": "1999-07-02", + "method": { + "coding": [ + { + "code": "OBS", + "display": "This is test method", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/AS4" + } + ] + }, + "device": { + "reference": "Device/fe0adb86-ebe9-6479-0055-9db8dc1ff99a" + }, + "bodySite": { + "coding": [ + { + "code": "BU", + "display": "Observation site", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/E5" + } + ] + }, + "performer": [ + { + "reference": "PractitionerRole/88a53755-c972-6904-b4ce-8884b84ddc2e" + }, + { + "reference": "PractitionerRole/bc78e290-ec67-c238-1e05-aefb6b252b0c" + }, + { + "reference": "PractitionerRole/090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "A", + "display": "Abnormal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + }, + { + "coding": [ + { + "code": "B", + "display": "Better", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } + ], + "extension": [ + { + "url": "http://example.com/v2-to-fhir-converter/Observation_Status", + "valueCodeableConcept": { + "coding": [ + { + "code": "S", + "display": "Partial", + "system": "http://terminology.hl7.org/CodeSystem/v2-0085" + } + ], + "text": "Partial" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Observation/07fd2dd3-dbd6-5bb1-cfda-02226795d9a0" + } + }, + { + "fullUrl": "urn:uuid:a0adcda8-0b28-d089-1955-c04308d5fe28", + "resource": { + "resourceType": "AllergyIntolerance", + "id": "a0adcda8-0b28-d089-1955-c04308d5fe28", + "category": [ + "environment" + ], + "type": "allergy", + "code": { + "coding": [ + { + "code": "P", + "display": "PENICILLIN", + "system": "http://terminology.hl7.org/CodeSystem/icd-o" + } + ] + }, + "reaction": [ + { + "manifestation": [ + { + "text": "CODE16" + } + ], + "onset": "2021-08-24" + } + ], + "criticality": "low", + "clinicalStatus": { + "coding": [ + { + "code": "active", + "display": "Active", + "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical" + } + ] + }, + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "AllergyIntolerance/a0adcda8-0b28-d089-1955-c04308d5fe28" + } + }, + { + "fullUrl": "urn:uuid:14493a95-7780-ead5-89cc-ad6c3bc31d51", + "resource": { + "resourceType": "Practitioner", + "id": "14493a95-7780-ead5-89cc-ad6c3bc31d51", + "identifier": [ + { + "value": "005454" + } + ], + "name": [ + { + "family": "DIAG", + "given": [ + "ROBIN", + "B" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/14493a95-7780-ead5-89cc-ad6c3bc31d51" + } + }, + { + "fullUrl": "urn:uuid:481123a1-ca9c-c3c8-0284-e6926c3a50d8", + "resource": { + "resourceType": "Condition", + "id": "481123a1-ca9c-c3c8-0284-e6926c3a50d8", + "code": { + "coding": [ + { + "code": "422504002", + "display": "Ischemic stroke(disorder)", + "system": "http://snomed.info/sct" + } + ], + "text": "Stroke" + }, + "onsetDateTime": "2004-01-25T12:50:25+05:30", + "identifier": [ + { + "value": "DI20", + "system": "urn:oid:DTUI", + "type": { + "coding": [ + { + "code": "CLIP", + "display": "Clinical laboratory Improvement Program. Allows for the ability to designate organization identifier as a “CLIP” assigned number (for labs). Used by US Department of Defense.", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "asserter": { + "reference": "Practitioner/14493a95-7780-ead5-89cc-ad6c3bc31d51" + }, + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/condition-assertedDate", + "valueDateTime": "2020-05-01T16:45:15+05:30" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/condition-dueTo", + "valueReference": { + "reference": "Condition/98e2ecfc-6e04-bc30-6624-4f3686214b22" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Condition/481123a1-ca9c-c3c8-0284-e6926c3a50d8" + } + }, + { + "fullUrl": "urn:uuid:98e2ecfc-6e04-bc30-6624-4f3686214b22", + "resource": { + "resourceType": "Condition", + "id": "98e2ecfc-6e04-bc30-6624-4f3686214b22", + "identifier": [ + { + "system": "urn:oid:UI", + "type": { + "coding": [ + { + "code": "CLIP", + "display": "Clinical laboratory Improvement Program. Allows for the ability to designate organization identifier as a “CLIP” assigned number (for labs). Used by US Department of Defense.", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Condition/98e2ecfc-6e04-bc30-6624-4f3686214b22" + } + }, + { + "fullUrl": "urn:uuid:c073f2c1-a818-924b-8881-1481ac88d691", + "resource": { + "resourceType": "Organization", + "id": "c073f2c1-a818-924b-8881-1481ac88d691", + "name": "AuthProvider", + "identifier": [ + { + "value": "A", + "type": { + "coding": [ + { + "code": "LR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/c073f2c1-a818-924b-8881-1481ac88d691" + } + }, + { + "fullUrl": "urn:uuid:e0ba3d6b-452f-7c22-a79d-1035e4b33ceb", + "resource": { + "resourceType": "Practitioner", + "id": "e0ba3d6b-452f-7c22-a79d-1035e4b33ceb", + "identifier": [ + { + "value": "114", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-2.3", + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Beverly", + "given": [ + "Crusher", + "An" + ], + "suffix": [ + "Mr", + "AHP", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/e0ba3d6b-452f-7c22-a79d-1035e4b33ceb" + } + }, + { + "fullUrl": "urn:uuid:739ae409-c591-1a59-32ad-d2ef1b937b0f", + "resource": { + "resourceType": "ServiceRequest", + "id": "739ae409-c591-1a59-32ad-d2ef1b937b0f", + "status": "on-hold", + "intent": "order", + "identifier": [ + { + "value": "123-1", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-name" + }, + { + "value": "123-2", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-Testname" + } + ], + "authoredOn": "1990-05-01T12:16:00+05:30", + "performer": [ + { + "reference": "Organization/c073f2c1-a818-924b-8881-1481ac88d691" + }, + { + "reference": "Practitioner/e0ba3d6b-452f-7c22-a79d-1035e4b33ceb" + } + ], + "performerType": { + "coding": [ + { + "code": "EXTERNAL" + } + ] + }, + "note": [ + { + "text": "Check for metastatic disease" + } + ], + "priority": "asap", + "reasonCode": [ + { + "coding": [ + { + "code": "R-1", + "display": "Reason", + "system": "http://www.ama-assn.org/go/cpt" + } + ], + "text": "Patient has a spinal fracture" + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "ServiceRequest/739ae409-c591-1a59-32ad-d2ef1b937b0f" + } + }, + { + "fullUrl": "urn:uuid:dfab6985-a691-c4f5-d2b2-6481fdfd59e4", + "resource": { + "resourceType": "Coverage", + "id": "dfab6985-a691-c4f5-d2b2-6481fdfd59e4", + "class": [ + { + "value": "BAV", + "name": "Blue Advantage HMO", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/coverage-class", + "code": "plan", + "display": "Plan" + } + ] + } + }, + { + "value": "PUBSUMB", + "name": "SelfPay", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/coverage-class", + "code": "group", + "display": "Group" + } + ] + } + } + ], + "network": "Blue Advantage HMO", + "period": { + "start": "1989-10-01", + "end": "2050-10-01" + }, + "type": { + "coding": [ + { + "code": "HMO", + "display": "health maintenance organization policy", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + } + ] + }, + "identifier": [ + { + "value": "PN-145", + "type": { + "coding": [ + { + "code": "PLN", + "display": "Policy Number", + "system": "http://example.com/CodeSystem/additional-identifier" + } + ] + }, + "system": "http://www.examplehealthplan.com/fhir/policyidentifier" + }, + { + "value": "HMO-12345", + "type": { + "coding": [ + { + "code": "NI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "National unique individual identifier" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.3" + }, + { + "value": "Medicare-12345", + "type": { + "coding": [ + { + "code": "MC", + "display": "Patient's Medicare number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-medicare" + }, + { + "value": "MCN-008", + "type": { + "coding": [ + { + "code": "MA", + "display": "Patient Medicaid number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/identifier-medicaid" + }, + { + "value": "PNM1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/1fca4c8f-7562-b755-9a05-5f0f49096e5b" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "costToBeneficiary": [ + { + "type": { + "coding": [ + { + "code": "DC", + "display": "direct unit cost", + "system": "http://terminology.hl7.org/CodeSystem/v2-0205" + } + ] + }, + "valueMoney": { + "value": 150, + "currency": "USD" + } + } + ], + "subscriberId": "HMO-12345", + "status": "active", + "beneficiary": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "payor": [ + { + "reference": "Organization/04a2a5f2-c971-1e42-e788-250ea487a889" + } + ], + "policyHolder": { + "reference": "Organization/4829e288-ac03-22cc-c65e-922004275fd0" + }, + "subscriber": { + "reference": "RelatedPerson/fd1eed45-4ccb-bb7c-d157-58eb0366d777" + }, + "relationship": { + "coding": [ + { + "code": "spouse", + "display": "Spouse", + "system": "http://terminology.hl7.org/CodeSystem/subscriber-relationship" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Coverage/dfab6985-a691-c4f5-d2b2-6481fdfd59e4" + } + }, + { + "fullUrl": "urn:uuid:04a2a5f2-c971-1e42-e788-250ea487a889", + "resource": { + "resourceType": "Organization", + "id": "04a2a5f2-c971-1e42-e788-250ea487a889", + "address": [ + { + "line": [ + "1979 MILKY WAY" + ], + "city": "VERONA", + "state": "WI", + "postalCode": "53593", + "country": "US" + } + ], + "contact": [ + { + "name": { + "family": "Henry", + "given": [ + "Rony", + "A" + ], + "suffix": [ + "III", + "MD" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1925-10-12" + } + } + } + ], + "telecom": [ + { + "value": "(555)555-5555", + "system": "phone" + } + ], + "identifier": [ + { + "value": "IC-1.31", + "type": { + "coding": [ + { + "code": "NIIP", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "National Insurance Payor Identifier (Payor)" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.1", + "period": { + "start": "1929-10-11", + "end": "1929-10-12" + } + } + ], + "name": "Blue Cross Blue Shield of Texas" + }, + "request": { + "method": "PUT", + "url": "Organization/04a2a5f2-c971-1e42-e788-250ea487a889" + } + }, + { + "fullUrl": "urn:uuid:4829e288-ac03-22cc-c65e-922004275fd0", + "resource": { + "resourceType": "Organization", + "id": "4829e288-ac03-22cc-c65e-922004275fd0", + "address": [ + { + "line": [ + "2000 MILKY WAY" + ], + "city": "VERONA", + "state": "WI", + "postalCode": "53593", + "country": "US" + } + ], + "name": "Sam P. Hil", + "contact": [ + { + "name": { + "family": "Richard", + "given": [ + "Paul" + ] + }, + "telecom": [ + { + "value": "254622222", + "system": "phone" + } + ] + } + ], + "telecom": [ + { + "value": "555777888", + "system": "fax" + }, + { + "system": "phone" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4829e288-ac03-22cc-c65e-922004275fd0" + } + }, + { + "fullUrl": "urn:uuid:fd1eed45-4ccb-bb7c-d157-58eb0366d777", + "resource": { + "resourceType": "RelatedPerson", + "id": "fd1eed45-4ccb-bb7c-d157-58eb0366d777", + "identifier": [ + { + "value": "HMO-12345", + "type": { + "coding": [ + { + "code": "NI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "National unique individual identifier" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.3" + }, + { + "value": "1117", + "type": { + "coding": [ + { + "code": "EI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Employee number" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.4" + }, + { + "value": "1118", + "type": { + "coding": [ + { + "code": "BC", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Bank Card Number" + } + ] + } + }, + { + "value": "425-57-9745", + "type": { + "coding": [ + { + "code": "SS", + "display": "Social Security number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "SPS", + "display": "spouse", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "address": [ + { + "line": [ + "3857 Velvet Treasure Terrace" + ], + "city": "Midnight", + "state": "NC", + "postalCode": "27878", + "country": "US" + } + ], + "name": [ + { + "family": "Doe", + "given": [ + "Rosallie", + "John" + ], + "suffix": [ + "III", + "Bachelors" + ], + "prefix": [ + "Mrs." + ], + "use": "official" + } + ], + "gender": "female", + "birthDate": "1975-02-28", + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "telecom": [ + { + "value": "0005245", + "use": "work", + "system": "email" + }, + { + "system": "phone" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47" + } + ] + }, + "preferred": true + } + ] + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/fd1eed45-4ccb-bb7c-d157-58eb0366d777" + } + }, + { + "fullUrl": "urn:uuid:1fca4c8f-7562-b755-9a05-5f0f49096e5b", + "resource": { + "resourceType": "Organization", + "id": "1fca4c8f-7562-b755-9a05-5f0f49096e5b", + "identifier": [ + { + "value": "PM", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PM" + }, + { + "value": "2.6.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/1fca4c8f-7562-b755-9a05-5f0f49096e5b" + } + } + ] +} \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A04/ADT-A04-expected-2.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A04/ADT-A04-expected-2.json new file mode 100644 index 000000000..3f2b73bf2 --- /dev/null +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A04/ADT-A04-expected-2.json @@ -0,0 +1,2130 @@ +{ + "resourceType": "Bundle", + "type": "batch", + "timestamp": "1989-08-18T14:41:00+05:30", + "identifier": { + "value": "MSG00001" + }, + "id": "513a3d06-5e87-6fbc-ad1b-170ab430499f", + "entry": [ + { + "fullUrl": "urn:uuid:b4ca189b-51ae-33df-cbe2-559b4423a321", + "resource": { + "resourceType": "MessageHeader", + "id": "b4ca189b-51ae-33df-cbe2-559b4423a321", + "source": { + "name": "24GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.20" + }, + "destination": [ + { + "name": "25GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.23", + "receiver": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + } + ], + "meta": { + "security": [ + { + "display": "SECURITY", + "system": "http://example.com/v2-to-fhirconverter/security-label" + } + ], + "tag": [ + { + "code": "P", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "A04", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ADT^A04^ADT_A04" + }, + "language": "en-US", + "sender": { + "reference": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + }, + "responsible": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + "request": { + "method": "PUT", + "url": "MessageHeader/b4ca189b-51ae-33df-cbe2-559b4423a321" + } + }, + { + "fullUrl": "urn:uuid:f65d2168-02c8-1897-210d-361176172856", + "resource": { + "resourceType": "Provenance", + "id": "f65d2168-02c8-1897-210d-361176172856", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T12:48:40.101Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ADT_A04.

" + }, + "occurredDateTime": "1989-08-18T14:41:00+05:30", + "recorded": "1989-08-18T14:41:00+05:30", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + } + ], + "activity": { + "coding": [ + { + "display": "ADT^A04^ADT_A04" + } + ] + }, + "entity": [ + { + "role": "source", + "what": { + "reference": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + } + ], + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/f65d2168-02c8-1897-210d-361176172856" + } + }, + { + "fullUrl": "urn:uuid:4356fb81-6ecd-2d70-57b1-47812638e785", + "resource": { + "resourceType": "Organization", + "id": "4356fb81-6ecd-2d70-57b1-47812638e785", + "identifier": [ + { + "value": "GHHSFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHSFacility" + }, + { + "value": "urn:oid:2.16.840.1.122848.1.30", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + } + }, + { + "fullUrl": "urn:uuid:62781ad6-3896-cb63-0178-ead0c4a432b5", + "resource": { + "resourceType": "Organization", + "id": "62781ad6-3896-cb63-0178-ead0c4a432b5", + "identifier": [ + { + "value": "GHHRFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHRFacility" + }, + { + "value": "urn:oid:2.16.840.1.1122848.1.32", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/62781ad6-3896-cb63-0178-ead0c4a432b5" + } + }, + { + "fullUrl": "urn:uuid:33532a82-d220-4c0d-1abe-53e48951c201", + "resource": { + "resourceType": "Organization", + "id": "33532a82-d220-4c0d-1abe-53e48951c201", + "name": "22 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + { + "fullUrl": "urn:uuid:527280c1-34d1-c639-e9ba-61986d28e266", + "resource": { + "resourceType": "Organization", + "id": "527280c1-34d1-c639-e9ba-61986d28e266", + "name": "23 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + }, + { + "fullUrl": "urn:uuid:503eb873-22fb-8199-ae28-3604ad59fe13", + "resource": { + "resourceType": "Device", + "id": "503eb873-22fb-8199-ae28-3604ad59fe13", + "identifier": [ + { + "value": "ADTApp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + }, + { + "fullUrl": "urn:uuid:9e909e52-61a1-be50-1878-a12ef8c36346", + "resource": { + "resourceType": "Patient", + "id": "9e909e52-61a1-be50-1878-a12ef8c36346", + "identifier": [ + { + "value": "1234567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "PATID1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "value": "123456789", + "type": { + "coding": [ + { + "code": "SS", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Social Security number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-USSSA" + }, + { + "value": "PATID567", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test2" + }, + { + "value": "PSSN123121234", + "type": { + "coding": [ + { + "code": "SB", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + }, + { + "value": "DLN-123", + "type": { + "coding": [ + { + "code": "DL" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/US", + "period": { + "end": "2001-01-23" + } + } + ], + "name": [ + { + "family": "EVERYMAN", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official", + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + }, + { + "family": "elbert", + "given": [ + "Son" + ] + } + ], + "birthDate": "1988-08-18", + "_birthDate": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime": "1988-08-18T14:41:00+05:30" + } + ] + }, + "gender": "male", + "address": [ + { + "line": [ + "1000", + "Hospital Lane", + "Ste. 123", + "Near Highway" + ], + "city": "Ann Arbor ", + "state": "MI", + "postalCode": "99999", + "country": "USA", + "type": "postal", + "district": "W", + "period": { + "start": "2000-01-10", + "end": "2000-01-20" + } + } + ], + "telecom": [ + { + "value": "2222", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18, + "use": "home" + }, + { + "value": "12121212", + "system": "phone", + "use": "home" + }, + { + "value": "7777", + "system": "phone", + "use": "work" + }, + { + "value": "1111", + "system": "other", + "use": "work" + }, + { + "value": "89898989", + "use": "work", + "system": "email" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47", + "version": "v2" + }, + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47", + "version": "v2.1" + } + ], + "text": "TextInEnglish" + }, + "preferred": true + } + ], + "maritalStatus": { + "coding": [ + { + "code": "M", + "display": "Married", + "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" + } + ] + }, + "multipleBirthInteger": 2, + "deceasedDateTime": "2008-08-25T15:31:30+05:30", + "meta": { + "lastUpdated": "2005-01-10T04:05:14+05:30" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "ombCategory", + "valueCoding": { + "code": "2028-9", + "display": "Asian", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White+Asian" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + "valueString": "SMITH--Angela--L" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", + "valueAddress": { + "text": "St. Francis Community Hospital of Lower South Side" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-religion", + "valueCodeableConcept": { + "coding": [ + { + "code": "1002", + "display": "African Religions", + "system": "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2186-5", + "display": "Non Hispanic or Latino", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "Non Hispanic or Latino" + } + ] + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/VeteranMilitaryStatus", + "valueCodeableConcept": { + "coding": [ + { + "code": "Vet123", + "display": "retired", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ART" + } + ], + "text": "retired" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-animal", + "extension": [ + { + "url": "species", + "valueCodeableConcept": { + "coding": [ + { + "code": "125097000", + "display": "Goat", + "system": "http://snomed.info/sct" + } + ], + "text": "Goat" + } + }, + { + "url": "breed", + "valueCodeableConcept": { + "coding": [ + { + "code": "4880003", + "display": "Beagle", + "system": "http://snomed.info/sct" + } + ], + "text": "Beagle" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "US", + "display": "United States of America", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "United States of America" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "CA", + "display": "Canada", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Canada" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-nationality", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "BT", + "display": "Bhutan", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Bhutan" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-importance", + "valueCodeableConcept": { + "coding": [ + { + "code": "VIP", + "display": "Very Important Person", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/L", + "version": "v1.1" + }, + { + "code": "IMP", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/DCM", + "version": "v1.2" + } + ], + "text": "Inportant Person" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + { + "fullUrl": "urn:uuid:78295402-9b84-4829-b945-502ab3402de5", + "resource": { + "resourceType": "Account", + "id": "78295402-9b84-4829-b945-502ab3402de5", + "identifier": [ + { + "value": "4000776", + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Visit number" + } + ] + }, + "system": "urn:oid:2.4", + "assigner": { + "reference": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/78295402-9b84-4829-b945-502ab3402de5" + } + }, + { + "fullUrl": "urn:uuid:9d4c8327-8a28-8152-1898-8251baa707b7", + "resource": { + "resourceType": "Organization", + "id": "9d4c8327-8a28-8152-1898-8251baa707b7", + "identifier": [ + { + "value": "AccMgr", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr" + }, + { + "value": "urn:oid:2.4", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + } + }, + { + "fullUrl": "urn:uuid:b3ad3a9f-d4f6-4638-0a09-2da771733488", + "resource": { + "resourceType": "Organization", + "id": "b3ad3a9f-d4f6-4638-0a09-2da771733488", + "identifier": [ + { + "value": "test1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test1" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "fullUrl": "urn:uuid:f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "resource": { + "resourceType": "Organization", + "id": "f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "identifier": [ + { + "value": "NTH", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NTH" + }, + { + "value": "rt23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + } + }, + { + "fullUrl": "urn:uuid:62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "resource": { + "resourceType": "RelatedPerson", + "id": "62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "identifier": [ + { + "value": "1212121", + "type": { + "coding": [ + { + "code": "AND", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Account number debitor" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "relationship": [ + { + "coding": [ + { + "code": "MTH", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/62b2e1ee-a272-4ffe-692e-a1fbfd49af6a" + } + }, + { + "fullUrl": "urn:uuid:11967e28-8dd4-a112-0fdc-377866bf12a0", + "resource": { + "resourceType": "Organization", + "id": "11967e28-8dd4-a112-0fdc-377866bf12a0", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "2.16.840.1.113883.19", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + } + }, + { + "fullUrl": "urn:uuid:7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "resource": { + "resourceType": "Organization", + "id": "7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "identifier": [ + { + "value": "AccMng", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMng" + }, + { + "value": "1.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + } + }, + { + "fullUrl": "urn:uuid:0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "resource": { + "resourceType": "Organization", + "id": "0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "identifier": [ + { + "value": "PERSONNELt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSONNELt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + } + }, + { + "fullUrl": "urn:uuid:f6775f99-5279-be04-bf81-0906c81f7443", + "resource": { + "resourceType": "Practitioner", + "id": "f6775f99-5279-be04-bf81-0906c81f7443", + "identifier": [ + { + "value": "1122334", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Alaz", + "given": [ + "Mohammed", + "Mahi" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "fullUrl": "urn:uuid:c613d7b2-525f-8c08-a7ac-b2b91486e257", + "resource": { + "resourceType": "Organization", + "id": "c613d7b2-525f-8c08-a7ac-b2b91486e257", + "identifier": [ + { + "value": "TEST", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TEST" + }, + { + "value": "23.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + } + }, + { + "fullUrl": "urn:uuid:04f8cfc8-62ca-12df-63ce-6304ef577d44", + "resource": { + "resourceType": "Practitioner", + "id": "04f8cfc8-62ca-12df-63ce-6304ef577d44", + "identifier": [ + { + "value": "C006", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + }, + "type": { + "coding": [ + { + "code": "BA", + "display": "Bank Account Number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen" + ], + "prefix": [ + "Dr" + ], + "use": "anonymous" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "fullUrl": "urn:uuid:99edcabd-fbeb-7e25-f823-11da8d8ed342", + "resource": { + "resourceType": "Practitioner", + "id": "99edcabd-fbeb-7e25-f823-11da8d8ed342", + "identifier": [ + { + "value": "C008", + "system": "urn:oid:2.8", + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Condoc", + "given": [ + "leen" + ], + "prefix": [ + "Dr" + ], + "use": "temp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "fullUrl": "urn:uuid:b065b233-8738-f1ec-1314-d61e4aac2c9e", + "resource": { + "resourceType": "Practitioner", + "id": "b065b233-8738-f1ec-1314-d61e4aac2c9e", + "identifier": [ + { + "value": "37", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr", + "type": { + "coding": [ + { + "code": "ANC", + "display": "Account number Creditor", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "DISNEY", + "given": [ + "WALT" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "fullUrl": "urn:uuid:9f974d4f-47e8-21a6-e549-4de4599c3764", + "resource": { + "resourceType": "Organization", + "id": "9f974d4f-47e8-21a6-e549-4de4599c3764", + "identifier": [ + { + "value": "T123", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-T123" + }, + { + "value": "urn:oid:r2.3", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + }, + { + "fullUrl": "urn:uuid:84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "resource": { + "resourceType": "Practitioner", + "id": "84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "identifier": [ + { + "value": "Othhel", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "fullUrl": "urn:uuid:9172e4a0-1ca5-646d-2183-b179f4daa737", + "resource": { + "resourceType": "Location", + "id": "9172e4a0-1ca5-646d-2183-b179f4daa737", + "partOf": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + }, + "name": "HUH AE OMU", + "identifier": [ + { + "value": "urn:oid:9.8", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "fullUrl": "urn:uuid:3913ec4d-6576-5e1a-ac31-e8280583371c", + "resource": { + "resourceType": "Location", + "id": "3913ec4d-6576-5e1a-ac31-e8280583371c", + "partOf": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + }, + "name": "OMU B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "fullUrl": "urn:uuid:804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "resource": { + "resourceType": "Location", + "id": "804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "partOf": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + }, + "name": "Bed 03", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "fullUrl": "urn:uuid:c043880b-0fab-1cb8-14f7-0475282c4d0e", + "resource": { + "resourceType": "Location", + "id": "c043880b-0fab-1cb8-14f7-0475282c4d0e", + "name": "HOMERTON UNIVER", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "fullUrl": "urn:uuid:f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "resource": { + "resourceType": "Location", + "id": "f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "partOf": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + }, + "name": "Homerton UH", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "fullUrl": "urn:uuid:7e38808c-44a8-cb0c-4709-9d6092abc32c", + "resource": { + "resourceType": "Location", + "id": "7e38808c-44a8-cb0c-4709-9d6092abc32c", + "partOf": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + }, + "name": "Floor5", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "fullUrl": "urn:uuid:59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "resource": { + "resourceType": "Location", + "id": "59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "name": "4 East, room 136, bed B 4E", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + } + }, + { + "fullUrl": "urn:uuid:d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "resource": { + "resourceType": "Location", + "id": "d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "partOf": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "name": "136", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + } + }, + { + "fullUrl": "urn:uuid:5783dafa-c6c0-e673-cca4-42087ee1831b", + "resource": { + "resourceType": "Location", + "id": "5783dafa-c6c0-e673-cca4-42087ee1831b", + "partOf": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "name": "B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + } + }, + { + "fullUrl": "urn:uuid:8b39e6e5-78cd-63ab-2441-f43ca5554096", + "resource": { + "resourceType": "Location", + "id": "8b39e6e5-78cd-63ab-2441-f43ca5554096", + "name": "CommunityHospital", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + } + }, + { + "fullUrl": "urn:uuid:42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "resource": { + "resourceType": "Location", + "id": "42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "name": "Homes", + "identifier": [ + { + "value": "22", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/FDK" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + { + "fullUrl": "urn:uuid:84634858-74aa-5cdb-4547-60ec27339ac6", + "resource": { + "resourceType": "Location", + "id": "84634858-74aa-5cdb-4547-60ec27339ac6", + "name": "POC", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + } + }, + { + "fullUrl": "urn:uuid:9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "resource": { + "resourceType": "Location", + "id": "9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "partOf": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "name": "Room-2", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + } + }, + { + "fullUrl": "urn:uuid:35353f20-6254-e794-98ed-8007490447e3", + "resource": { + "resourceType": "Location", + "id": "35353f20-6254-e794-98ed-8007490447e3", + "partOf": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "name": "Bed-103", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/35353f20-6254-e794-98ed-8007490447e3" + } + }, + { + "fullUrl": "urn:uuid:055e10f1-222e-df73-2325-0e4396db1a55", + "resource": { + "resourceType": "Location", + "id": "055e10f1-222e-df73-2325-0e4396db1a55", + "name": "Greenland", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + } + }, + { + "fullUrl": "urn:uuid:1154e6b2-b022-b3be-7dce-2b940ab5376d", + "resource": { + "resourceType": "Location", + "id": "1154e6b2-b022-b3be-7dce-2b940ab5376d", + "name": "Nursing home", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + } + }, + { + "fullUrl": "urn:uuid:08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "resource": { + "resourceType": "Location", + "id": "08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "name": "Rosewood", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + } + }, + { + "fullUrl": "urn:uuid:08314073-410a-3dc7-512c-0f2d206fb59d", + "resource": { + "resourceType": "Organization", + "id": "08314073-410a-3dc7-512c-0f2d206fb59d", + "identifier": [ + { + "value": "Etest", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-Etest" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + }, + { + "fullUrl": "urn:uuid:919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "resource": { + "resourceType": "EpisodeOfCare", + "id": "919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "status": "planned", + "identifier": [ + { + "value": "EOC124", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + }, + { + "fullUrl": "urn:uuid:4b192760-03d2-aec4-b0a6-fde323912e1e", + "resource": { + "resourceType": "Encounter", + "id": "4b192760-03d2-aec4-b0a6-fde323912e1e", + "class": { + "code": "PRENC", + "display": "pre-admission", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "status": "planned", + "location": [ + { + "status": "planned", + "location": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "status": "completed", + "location": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/35353f20-6254-e794-98ed-8007490447e3" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + } + ], + "type": [ + { + "coding": [ + { + "code": "E", + "display": "Emergency", + "system": "http://terminology.hl7.org/CodeSystem/v2-0007" + } + ] + } + ], + "hospitalization": { + "preAdmissionIdentifier": { + "value": "1234567", + "type": { + "coding": [ + { + "code": "ANON", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Anonymous identifier" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + "reAdmission": { + "coding": [ + { + "code": "R", + "display": "Re-admission", + "system": "http://terminology.hl7.org/CodeSystem/v2-0092" + } + ] + }, + "admitSource": { + "coding": [ + { + "code": "NHS Provider-General (inc.A&E-this Hosp)" + } + ] + }, + "dischargeDisposition": { + "coding": [ + { + "code": "Admitted as Inpatient", + "display": "Sample", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ACR" + } + ] + }, + "dietPreference": [ + { + "coding": [ + { + "code": "Vegan", + "display": "Vegetarian" + } + ] + } + ], + "destination": { + "reference": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + "episodeOfCare": [ + { + "reference": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + ], + "participant": [ + { + "type": [ + { + "coding": [ + { + "code": "ATND", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", + "display": "attender" + } + ] + } + ], + "individual": { + "reference": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "CON", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "consultant" + } + ], + "individual": { + "reference": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "ADM", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "admitter" + } + ], + "individual": { + "reference": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "PART", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "Participation" + } + ], + "individual": { + "reference": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + } + ], + "serviceType": { + "coding": [ + { + "code": "SUR" + } + ] + }, + "identifier": [ + { + "value": "40007716", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + }, + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ], + "text": "visit number" + } + }, + { + "value": "50", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:r2.3", + "assigner": { + "reference": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + } + ], + "period": { + "start": "2015-02-08T15:54:19+05:30" + }, + "text": { + "status": "generated", + "div": "

Visit Description:

" + }, + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Encounter/4b192760-03d2-aec4-b0a6-fde323912e1e" + } + }, + { + "fullUrl": "urn:uuid:9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "resource": { + "resourceType": "Provenance", + "id": "9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "occurredDateTime": "2021-08-17T18:49:43.004+05:30", + "recorded": "2029-08-01T11:21:24+05:30", + "reason": [ + { + "coding": [ + { + "code": "PATRQT", + "display": "patient requested", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason" + } + ] + } + ], + "agent": [ + { + "who": { + "reference": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + } + ], + "activity": { + "text": "ADT^A04^ADT_A04" + }, + "location": { + "reference": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + }, + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c" + } + }, + { + "fullUrl": "urn:uuid:ef39f581-5e8f-3917-35a9-3443303d9eee", + "resource": { + "resourceType": "Organization", + "id": "ef39f581-5e8f-3917-35a9-3443303d9eee", + "identifier": [ + { + "value": "DRNBR", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-DRNBR" + }, + { + "value": "urn:oid:W1.2", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + } + }, + { + "fullUrl": "urn:uuid:95aea53b-8d49-d57f-d16f-4d14b914f992", + "resource": { + "resourceType": "Practitioner", + "id": "95aea53b-8d49-d57f-d16f-4d14b914f992", + "identifier": [ + { + "value": "C08", + "system": "urn:oid:W1.2", + "assigner": { + "reference": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + }, + "type": { + "coding": [ + { + "code": "ANON", + "display": "Anonymous identifier", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen", + "2ndname" + ], + "suffix": [ + "Jr", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + }, + { + "fullUrl": "urn:uuid:59d5e519-0108-5dd8-adfa-1eef5658009e", + "resource": { + "resourceType": "Location", + "id": "59d5e519-0108-5dd8-adfa-1eef5658009e", + "name": "Cona_Health", + "identifier": [ + { + "value": "urn:oid:1.3.6.1.4.1.44750.1.4", + "system": "urn:ietf:rfc:3986" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "display": "site", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + } + } + ] +} \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A04/ADT-A04-expected.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A04/ADT-A04-expected.json new file mode 100644 index 000000000..ea8a4e526 --- /dev/null +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A04/ADT-A04-expected.json @@ -0,0 +1,4748 @@ +{ + "resourceType": "Bundle", + "type": "batch", + "timestamp": "1989-08-18T14:41:00+05:30", + "identifier": { + "value": "MSG00001" + }, + "id": "513a3d06-5e87-6fbc-ad1b-170ab430499f", + "entry": [ + { + "fullUrl": "urn:uuid:b4ca189b-51ae-33df-cbe2-559b4423a321", + "resource": { + "resourceType": "MessageHeader", + "id": "b4ca189b-51ae-33df-cbe2-559b4423a321", + "source": { + "name": "24GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.20", + "version": "2.4.3.52854", + "software": "Rhapsody" + }, + "destination": [ + { + "name": "25GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.23", + "receiver": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + } + ], + "meta": { + "security": [ + { + "display": "SECURITY", + "system": "http://example.com/v2-to-fhirconverter/security-label" + } + ], + "tag": [ + { + "code": "P", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "A04", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ADT^A04^ADT_A04" + }, + "language": "en-US", + "sender": { + "reference": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + }, + "responsible": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + "request": { + "method": "PUT", + "url": "MessageHeader/b4ca189b-51ae-33df-cbe2-559b4423a321" + } + }, + { + "fullUrl": "urn:uuid:f65d2168-02c8-1897-210d-361176172856", + "resource": { + "resourceType": "Provenance", + "id": "f65d2168-02c8-1897-210d-361176172856", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T12:50:12.142Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ADT_A04.

" + }, + "occurredDateTime": "1989-08-18T14:41:00+05:30", + "recorded": "1989-08-18T14:41:00+05:30", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + } + ], + "activity": { + "coding": [ + { + "display": "ADT^A04^ADT_A04" + } + ] + }, + "entity": [ + { + "role": "source", + "what": { + "reference": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + } + ], + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/f65d2168-02c8-1897-210d-361176172856" + } + }, + { + "fullUrl": "urn:uuid:4356fb81-6ecd-2d70-57b1-47812638e785", + "resource": { + "resourceType": "Organization", + "id": "4356fb81-6ecd-2d70-57b1-47812638e785", + "identifier": [ + { + "value": "GHHSFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHSFacility" + }, + { + "value": "urn:oid:2.16.840.1.122848.1.30", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + } + }, + { + "fullUrl": "urn:uuid:62781ad6-3896-cb63-0178-ead0c4a432b5", + "resource": { + "resourceType": "Organization", + "id": "62781ad6-3896-cb63-0178-ead0c4a432b5", + "identifier": [ + { + "value": "GHHRFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHRFacility" + }, + { + "value": "urn:oid:2.16.840.1.1122848.1.32", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/62781ad6-3896-cb63-0178-ead0c4a432b5" + } + }, + { + "fullUrl": "urn:uuid:33532a82-d220-4c0d-1abe-53e48951c201", + "resource": { + "resourceType": "Organization", + "id": "33532a82-d220-4c0d-1abe-53e48951c201", + "name": "22 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + { + "fullUrl": "urn:uuid:527280c1-34d1-c639-e9ba-61986d28e266", + "resource": { + "resourceType": "Organization", + "id": "527280c1-34d1-c639-e9ba-61986d28e266", + "name": "23 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + }, + { + "fullUrl": "urn:uuid:503eb873-22fb-8199-ae28-3604ad59fe13", + "resource": { + "resourceType": "Device", + "id": "503eb873-22fb-8199-ae28-3604ad59fe13", + "identifier": [ + { + "value": "ADTApp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + }, + { + "fullUrl": "urn:uuid:4b549918-a84d-cdaf-e150-c773a5d306e5", + "resource": { + "resourceType": "Device", + "id": "4b549918-a84d-cdaf-e150-c773a5d306e5", + "manufacturer": "Orion", + "deviceName": [ + { + "name": "Rhapsody", + "type": "manufacturer-name" + } + ], + "version": [ + { + "value": "2.4.3.52854" + } + ], + "modelNumber": "2.4.3", + "note": [ + { + "text": "Testactivity" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/4b549918-a84d-cdaf-e150-c773a5d306e5" + } + }, + { + "fullUrl": "urn:uuid:9e909e52-61a1-be50-1878-a12ef8c36346", + "resource": { + "resourceType": "Patient", + "id": "9e909e52-61a1-be50-1878-a12ef8c36346", + "identifier": [ + { + "value": "1234567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "PATID1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "value": "123456789", + "type": { + "coding": [ + { + "code": "SS", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Social Security number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-USSSA" + }, + { + "value": "PATID567", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test2" + }, + { + "value": "PSSN123121234", + "type": { + "coding": [ + { + "code": "SB", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + }, + { + "value": "DLN-123", + "type": { + "coding": [ + { + "code": "DL" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/US", + "period": { + "end": "2001-01-23" + } + }, + { + "value": "1516", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "55121", + "type": { + "coding": [ + { + "code": "FI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Facility ID" + } + ] + } + }, + { + "value": "DB123", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:1.12", + "assigner": { + "reference": "Organization/4e68b44e-c053-02b1-6d6d-fe816f9fdfec" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "Medicare-12345", + "type": { + "coding": [ + { + "code": "MC", + "display": "Patient's Medicare number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-medicare" + }, + { + "value": "MCN-008", + "type": { + "coding": [ + { + "code": "MA", + "display": "Patient Medicaid number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/identifier-medicaid" + }, + { + "value": "MI-12345", + "type": { + "coding": [ + { + "code": "MI", + "display": "Military ID number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/identifier-military" + }, + { + "value": "PNM1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/1fca4c8f-7562-b755-9a05-5f0f49096e5b" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "name": [ + { + "family": "EVERYMAN", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official", + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + }, + { + "family": "elbert", + "given": [ + "Son" + ] + }, + { + "family": "RADIANT", + "given": [ + "LUCY" + ] + }, + { + "family": "Jack", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + } + ], + "birthDate": "1988-08-18", + "_birthDate": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime": "1988-08-18T14:41:00+05:30" + } + ] + }, + "gender": "male", + "address": [ + { + "line": [ + "1000", + "Hospital Lane", + "Ste. 123", + "Near Highway" + ], + "city": "Ann Arbor ", + "state": "MI", + "postalCode": "99999", + "country": "USA", + "type": "postal", + "district": "W", + "period": { + "start": "2000-01-10", + "end": "2000-01-20" + } + }, + { + "line": [ + "1619 SOUTH UNIVERSITY" + ], + "city": "MADISON", + "state": "WI", + "postalCode": "53703", + "country": "US" + } + ], + "telecom": [ + { + "value": "2222", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18, + "use": "home" + }, + { + "value": "12121212", + "system": "phone", + "use": "home" + }, + { + "value": "7777", + "system": "phone", + "use": "work" + }, + { + "value": "1111", + "system": "other", + "use": "work" + }, + { + "value": "89898989", + "use": "work", + "system": "email" + }, + { + "value": "8484", + "system": "email", + "use": "home" + }, + { + "value": "717171", + "system": "phone", + "use": "home" + }, + { + "value": "021212", + "system": "other", + "use": "work" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47", + "version": "v2" + }, + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47", + "version": "v2.1" + } + ], + "text": "TextInEnglish" + }, + "preferred": true + } + ], + "maritalStatus": { + "coding": [ + { + "code": "M", + "display": "Married", + "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" + } + ] + }, + "multipleBirthInteger": 2, + "deceasedDateTime": "2008-08-25T15:31:30+05:30", + "meta": { + "lastUpdated": "2005-01-10T04:05:14+05:30" + }, + "generalPractitioner": [ + { + "reference": "Organization/4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11" + }, + { + "reference": "Practitioner/76aaad38-1077-6a5c-0c5c-102ec160a60d" + } + ], + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "ombCategory", + "valueCoding": { + "code": "2028-9", + "display": "Asian", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White+Asian" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + "valueString": "SMITH--Angela--L" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", + "valueAddress": { + "text": "St. Francis Community Hospital of Lower South Side" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-religion", + "valueCodeableConcept": { + "coding": [ + { + "code": "1002", + "display": "African Religions", + "system": "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2186-5", + "display": "Non Hispanic or Latino", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "Non Hispanic or Latino" + } + ] + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/VeteranMilitaryStatus", + "valueCodeableConcept": { + "coding": [ + { + "code": "Vet123", + "display": "retired", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ART" + } + ], + "text": "retired" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-animal", + "extension": [ + { + "url": "species", + "valueCodeableConcept": { + "coding": [ + { + "code": "125097000", + "display": "Goat", + "system": "http://snomed.info/sct" + } + ], + "text": "Goat" + } + }, + { + "url": "breed", + "valueCodeableConcept": { + "coding": [ + { + "code": "4880003", + "display": "Beagle", + "system": "http://snomed.info/sct" + } + ], + "text": "Beagle" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "US", + "display": "United States of America", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "United States of America" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "CA", + "display": "Canada", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Canada" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-nationality", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "BT", + "display": "Bhutan", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Bhutan" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-congregation", + "valueString": "Methodist Church" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-importance", + "valueCodeableConcept": { + "coding": [ + { + "code": "VIP", + "display": "Very Important Person", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/L", + "version": "v1.1" + }, + { + "code": "IMP", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/DCM", + "version": "v1.2" + } + ], + "text": "Inportant Person" + } + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/patient-disabilityIndicator", + "valueBoolean": true + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/DisabilityPeriod", + "valuePeriod": { + "start": "2021-08-30", + "end": "2021-09-30" + } + } + ], + "contact": [ + { + "organization": { + "reference": "Organization/3bb64820-2a2b-956c-9f45-125ec102f353" + } + }, + { + "name": { + "family": "Evan", + "given": [ + "ADAM", + "A" + ], + "suffix": [ + "III", + "MD" + ], + "prefix": [ + "Dr." + ], + "use": "usual" + }, + "address": { + "line": [ + "2222", + "HOME", + "STREET", + "Highway" + ], + "city": "GREENSBORO", + "state": "NC", + "postalCode": "27401-1020", + "country": "US", + "use": "billing", + "district": "test", + "period": { + "start": "2000-01-10", + "end": "2005-01-11" + } + }, + "telecom": [ + { + "value": "5555", + "use": "work", + "system": "email", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "121111", + "use": "home", + "system": "phone" + }, + { + "value": "878777", + "use": "home", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "6666666", + "system": "pager", + "use": "work" + }, + { + "value": "777", + "use": "work", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 1 + }, + { + "value": "444444", + "system": "phone" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "O", + "display": "Other", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131" + } + ] + } + ], + "period": { + "start": "2021-08-18", + "end": "2021-12-18" + }, + "gender": "female" + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + { + "fullUrl": "urn:uuid:78295402-9b84-4829-b945-502ab3402de5", + "resource": { + "resourceType": "Account", + "id": "78295402-9b84-4829-b945-502ab3402de5", + "identifier": [ + { + "value": "4000776", + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Visit number" + } + ] + }, + "system": "urn:oid:2.4", + "assigner": { + "reference": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + ], + "guarantor": [ + { + "party": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "onHold": false, + "period": { + "start": "2001-04-10", + "end": "2001-04-15" + } + }, + { + "party": { + "reference": "Organization/98678cfe-0455-73c8-d2a1-2ede2d55943f" + }, + "onHold": false, + "period": { + "start": "2001-04-10", + "end": "2001-04-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/78295402-9b84-4829-b945-502ab3402de5" + } + }, + { + "fullUrl": "urn:uuid:9d4c8327-8a28-8152-1898-8251baa707b7", + "resource": { + "resourceType": "Organization", + "id": "9d4c8327-8a28-8152-1898-8251baa707b7", + "identifier": [ + { + "value": "AccMgr", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr" + }, + { + "value": "urn:oid:2.4", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + } + }, + { + "fullUrl": "urn:uuid:98678cfe-0455-73c8-d2a1-2ede2d55943f", + "resource": { + "resourceType": "Organization", + "id": "98678cfe-0455-73c8-d2a1-2ede2d55943f", + "name": "Jupiter Hospital", + "address": [ + { + "line": [ + "1619 SOUTH UNIVERSITY" + ], + "city": "MADISON", + "state": "WI", + "postalCode": "53703", + "country": "US" + } + ], + "contact": [ + { + "telecom": [ + { + "value": "000352", + "system": "phone" + }, + { + "value": "00121", + "system": "fax" + } + ], + "purpose": { + "coding": [ + { + "code": "Urgent requirement" + } + ] + } + }, + { + "name": { + "family": "RADIANT", + "given": [ + "LUCY" + ] + } + }, + { + "name": { + "family": "Ben", + "given": [ + "Charles" + ] + } + }, + { + "name": { + "family": "Ben2" + } + } + ], + "telecom": [ + { + "value": "8484", + "system": "email" + }, + { + "value": "717171", + "system": "phone" + }, + { + "value": "021212", + "system": "other" + } + ], + "identifier": [ + { + "value": "1516", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/98678cfe-0455-73c8-d2a1-2ede2d55943f" + } + }, + { + "fullUrl": "urn:uuid:b3ad3a9f-d4f6-4638-0a09-2da771733488", + "resource": { + "resourceType": "Organization", + "id": "b3ad3a9f-d4f6-4638-0a09-2da771733488", + "identifier": [ + { + "value": "test1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test1" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "fullUrl": "urn:uuid:4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11", + "resource": { + "resourceType": "Organization", + "id": "4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11", + "name": "LINDAS TEST ORGANIZATION", + "identifier": [ + { + "value": "SIISCLIENT818" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11" + } + }, + { + "fullUrl": "urn:uuid:76aaad38-1077-6a5c-0c5c-102ec160a60d", + "resource": { + "resourceType": "Practitioner", + "id": "76aaad38-1077-6a5c-0c5c-102ec160a60d", + "identifier": [ + { + "value": "88", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TE", + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Hippo", + "given": [ + "rold", + "H" + ], + "suffix": [ + "V", + "MD" + ], + "prefix": [ + "Dr" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/76aaad38-1077-6a5c-0c5c-102ec160a60d" + } + }, + { + "fullUrl": "urn:uuid:11967e28-8dd4-a112-0fdc-377866bf12a0", + "resource": { + "resourceType": "Organization", + "id": "11967e28-8dd4-a112-0fdc-377866bf12a0", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "2.16.840.1.113883.19", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + } + }, + { + "fullUrl": "urn:uuid:7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "resource": { + "resourceType": "Organization", + "id": "7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "identifier": [ + { + "value": "AccMng", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMng" + }, + { + "value": "1.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + } + }, + { + "fullUrl": "urn:uuid:0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "resource": { + "resourceType": "Organization", + "id": "0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "identifier": [ + { + "value": "PERSONNELt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSONNELt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + } + }, + { + "fullUrl": "urn:uuid:f6775f99-5279-be04-bf81-0906c81f7443", + "resource": { + "resourceType": "Practitioner", + "id": "f6775f99-5279-be04-bf81-0906c81f7443", + "identifier": [ + { + "value": "1122334", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Alaz", + "given": [ + "Mohammed", + "Mahi" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "fullUrl": "urn:uuid:c613d7b2-525f-8c08-a7ac-b2b91486e257", + "resource": { + "resourceType": "Organization", + "id": "c613d7b2-525f-8c08-a7ac-b2b91486e257", + "identifier": [ + { + "value": "TEST", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TEST" + }, + { + "value": "23.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + } + }, + { + "fullUrl": "urn:uuid:04f8cfc8-62ca-12df-63ce-6304ef577d44", + "resource": { + "resourceType": "Practitioner", + "id": "04f8cfc8-62ca-12df-63ce-6304ef577d44", + "identifier": [ + { + "value": "C006", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + }, + "type": { + "coding": [ + { + "code": "BA", + "display": "Bank Account Number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen" + ], + "prefix": [ + "Dr" + ], + "use": "anonymous" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "fullUrl": "urn:uuid:99edcabd-fbeb-7e25-f823-11da8d8ed342", + "resource": { + "resourceType": "Practitioner", + "id": "99edcabd-fbeb-7e25-f823-11da8d8ed342", + "identifier": [ + { + "value": "C008", + "system": "urn:oid:2.8", + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Condoc", + "given": [ + "leen" + ], + "prefix": [ + "Dr" + ], + "use": "temp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "fullUrl": "urn:uuid:b065b233-8738-f1ec-1314-d61e4aac2c9e", + "resource": { + "resourceType": "Practitioner", + "id": "b065b233-8738-f1ec-1314-d61e4aac2c9e", + "identifier": [ + { + "value": "37", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr", + "type": { + "coding": [ + { + "code": "ANC", + "display": "Account number Creditor", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "DISNEY", + "given": [ + "WALT" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "fullUrl": "urn:uuid:9f974d4f-47e8-21a6-e549-4de4599c3764", + "resource": { + "resourceType": "Organization", + "id": "9f974d4f-47e8-21a6-e549-4de4599c3764", + "identifier": [ + { + "value": "T123", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-T123" + }, + { + "value": "urn:oid:r2.3", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + }, + { + "fullUrl": "urn:uuid:84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "resource": { + "resourceType": "Practitioner", + "id": "84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "identifier": [ + { + "value": "Othhel", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "fullUrl": "urn:uuid:24d4bddf-a1c3-4dc8-049b-1dda7e5112b6", + "resource": { + "resourceType": "Organization", + "id": "24d4bddf-a1c3-4dc8-049b-1dda7e5112b6", + "identifier": [ + { + "value": "TE", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TE" + }, + { + "value": "Provider Master.Community Health and Hospitals", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-DNS", + "type": { + "coding": [ + { + "code": "DNS", + "display": "An Internet host name, in accordance with RFC 1035; or an IP address. Either in ASCII or as integers, with periods between components (“dotted” notation).", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/24d4bddf-a1c3-4dc8-049b-1dda7e5112b6" + } + }, + { + "fullUrl": "urn:uuid:36e3aaa4-569a-7d9d-037f-27235ed05701", + "resource": { + "resourceType": "Practitioner", + "id": "36e3aaa4-569a-7d9d-037f-27235ed05701", + "identifier": [ + { + "value": "12188", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-DNS", + "assigner": { + "reference": "Organization/24d4bddf-a1c3-4dc8-049b-1dda7e5112b6" + }, + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Hippocrates", + "given": [ + "Harold", + "H" + ], + "suffix": [ + "IV", + "MD" + ], + "prefix": [ + "Dr" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/36e3aaa4-569a-7d9d-037f-27235ed05701" + } + }, + { + "fullUrl": "urn:uuid:9172e4a0-1ca5-646d-2183-b179f4daa737", + "resource": { + "resourceType": "Location", + "id": "9172e4a0-1ca5-646d-2183-b179f4daa737", + "partOf": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + }, + "name": "HUH AE OMU", + "identifier": [ + { + "value": "urn:oid:9.8", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "fullUrl": "urn:uuid:3913ec4d-6576-5e1a-ac31-e8280583371c", + "resource": { + "resourceType": "Location", + "id": "3913ec4d-6576-5e1a-ac31-e8280583371c", + "partOf": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + }, + "name": "OMU B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "fullUrl": "urn:uuid:804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "resource": { + "resourceType": "Location", + "id": "804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "partOf": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + }, + "name": "Bed 03", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "fullUrl": "urn:uuid:c043880b-0fab-1cb8-14f7-0475282c4d0e", + "resource": { + "resourceType": "Location", + "id": "c043880b-0fab-1cb8-14f7-0475282c4d0e", + "name": "HOMERTON UNIVER", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "fullUrl": "urn:uuid:f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "resource": { + "resourceType": "Location", + "id": "f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "partOf": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + }, + "name": "Homerton UH", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "fullUrl": "urn:uuid:7e38808c-44a8-cb0c-4709-9d6092abc32c", + "resource": { + "resourceType": "Location", + "id": "7e38808c-44a8-cb0c-4709-9d6092abc32c", + "partOf": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + }, + "name": "Floor5", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "fullUrl": "urn:uuid:59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "resource": { + "resourceType": "Location", + "id": "59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "name": "4 East, room 136, bed B 4E", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + } + }, + { + "fullUrl": "urn:uuid:d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "resource": { + "resourceType": "Location", + "id": "d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "partOf": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "name": "136", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + } + }, + { + "fullUrl": "urn:uuid:5783dafa-c6c0-e673-cca4-42087ee1831b", + "resource": { + "resourceType": "Location", + "id": "5783dafa-c6c0-e673-cca4-42087ee1831b", + "partOf": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "name": "B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + } + }, + { + "fullUrl": "urn:uuid:8b39e6e5-78cd-63ab-2441-f43ca5554096", + "resource": { + "resourceType": "Location", + "id": "8b39e6e5-78cd-63ab-2441-f43ca5554096", + "name": "CommunityHospital", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + } + }, + { + "fullUrl": "urn:uuid:42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "resource": { + "resourceType": "Location", + "id": "42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "name": "Homes", + "identifier": [ + { + "value": "22", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/FDK" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + { + "fullUrl": "urn:uuid:84634858-74aa-5cdb-4547-60ec27339ac6", + "resource": { + "resourceType": "Location", + "id": "84634858-74aa-5cdb-4547-60ec27339ac6", + "name": "POC", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + } + }, + { + "fullUrl": "urn:uuid:9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "resource": { + "resourceType": "Location", + "id": "9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "partOf": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "name": "Room-2", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + } + }, + { + "fullUrl": "urn:uuid:35353f20-6254-e794-98ed-8007490447e3", + "resource": { + "resourceType": "Location", + "id": "35353f20-6254-e794-98ed-8007490447e3", + "partOf": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "name": "Bed-103", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/35353f20-6254-e794-98ed-8007490447e3" + } + }, + { + "fullUrl": "urn:uuid:055e10f1-222e-df73-2325-0e4396db1a55", + "resource": { + "resourceType": "Location", + "id": "055e10f1-222e-df73-2325-0e4396db1a55", + "name": "Greenland", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + } + }, + { + "fullUrl": "urn:uuid:1154e6b2-b022-b3be-7dce-2b940ab5376d", + "resource": { + "resourceType": "Location", + "id": "1154e6b2-b022-b3be-7dce-2b940ab5376d", + "name": "Nursing home", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + } + }, + { + "fullUrl": "urn:uuid:08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "resource": { + "resourceType": "Location", + "id": "08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "name": "Rosewood", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + } + }, + { + "fullUrl": "urn:uuid:c7f1b9ec-ffd8-321e-ad87-abafc1c1a333", + "resource": { + "resourceType": "Location", + "id": "c7f1b9ec-ffd8-321e-ad87-abafc1c1a333", + "name": "ROOM1", + "identifier": [ + { + "value": "urn:oid:2.16.840.1.113883.4.642.1.1108", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + } + }, + { + "fullUrl": "urn:uuid:6f159848-5f01-01b3-9594-80fbbe9ab510", + "resource": { + "resourceType": "Location", + "id": "6f159848-5f01-01b3-9594-80fbbe9ab510", + "partOf": { + "reference": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + }, + "name": "BED1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/6f159848-5f01-01b3-9594-80fbbe9ab510" + } + }, + { + "fullUrl": "urn:uuid:4bca6ba2-be65-ef37-3911-03b70a00a3a6", + "resource": { + "resourceType": "Location", + "id": "4bca6ba2-be65-ef37-3911-03b70a00a3a6", + "name": "FACILITY1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + } + }, + { + "fullUrl": "urn:uuid:3b0911cb-4361-cd8d-b188-463af033c699", + "resource": { + "resourceType": "Location", + "id": "3b0911cb-4361-cd8d-b188-463af033c699", + "partOf": { + "reference": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + }, + "name": "BUILDING1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + } + }, + { + "fullUrl": "urn:uuid:0d9c3424-329f-4c95-ee30-ac2da4a35bff", + "resource": { + "resourceType": "Location", + "id": "0d9c3424-329f-4c95-ee30-ac2da4a35bff", + "partOf": { + "reference": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + }, + "name": "FLOOR1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/0d9c3424-329f-4c95-ee30-ac2da4a35bff" + } + }, + { + "fullUrl": "urn:uuid:08314073-410a-3dc7-512c-0f2d206fb59d", + "resource": { + "resourceType": "Organization", + "id": "08314073-410a-3dc7-512c-0f2d206fb59d", + "identifier": [ + { + "value": "Etest", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-Etest" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + }, + { + "fullUrl": "urn:uuid:919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "resource": { + "resourceType": "EpisodeOfCare", + "id": "919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "status": "planned", + "identifier": [ + { + "value": "EOC124", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "diagnosis": [ + { + "condition": { + "reference": "Condition/481123a1-ca9c-c3c8-0284-e6926c3a50d8" + }, + "role": { + "coding": [ + { + "code": "AD", + "display": "Admission Diagnosis", + "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role" + } + ] + }, + "rank": 1 + } + ] + }, + "request": { + "method": "PUT", + "url": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + }, + { + "fullUrl": "urn:uuid:4b192760-03d2-aec4-b0a6-fde323912e1e", + "resource": { + "resourceType": "Encounter", + "id": "4b192760-03d2-aec4-b0a6-fde323912e1e", + "class": { + "code": "PRENC", + "display": "pre-admission", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "status": "planned", + "location": [ + { + "status": "planned", + "location": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "status": "completed", + "location": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/35353f20-6254-e794-98ed-8007490447e3" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/6f159848-5f01-01b3-9594-80fbbe9ab510" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/0d9c3424-329f-4c95-ee30-ac2da4a35bff" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + } + ], + "type": [ + { + "coding": [ + { + "code": "E", + "display": "Emergency", + "system": "http://terminology.hl7.org/CodeSystem/v2-0007" + } + ] + } + ], + "hospitalization": { + "preAdmissionIdentifier": { + "value": "1234567", + "type": { + "coding": [ + { + "code": "ANON", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Anonymous identifier" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + "reAdmission": { + "coding": [ + { + "code": "R", + "display": "Re-admission", + "system": "http://terminology.hl7.org/CodeSystem/v2-0092" + } + ] + }, + "admitSource": { + "coding": [ + { + "code": "NHS Provider-General (inc.A&E-this Hosp)" + } + ] + }, + "dischargeDisposition": { + "coding": [ + { + "code": "Admitted as Inpatient", + "display": "Sample", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ACR" + } + ] + }, + "dietPreference": [ + { + "coding": [ + { + "code": "Vegan", + "display": "Vegetarian" + } + ] + } + ], + "destination": { + "reference": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + "episodeOfCare": [ + { + "reference": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + ], + "participant": [ + { + "type": [ + { + "coding": [ + { + "code": "ATND", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", + "display": "attender" + } + ] + } + ], + "individual": { + "reference": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "CON", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "consultant" + } + ], + "individual": { + "reference": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "ADM", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "admitter" + } + ], + "individual": { + "reference": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "PART", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "Participation" + } + ], + "individual": { + "reference": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/36e3aaa4-569a-7d9d-037f-27235ed05701" + } + } + ], + "serviceType": { + "coding": [ + { + "code": "SUR" + } + ] + }, + "identifier": [ + { + "value": "40007716", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + }, + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ], + "text": "visit number" + } + }, + { + "value": "50", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:r2.3", + "assigner": { + "reference": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + } + ], + "period": { + "start": "2015-02-08T15:54:19+05:30" + }, + "reasonCode": [ + { + "coding": [ + { + "code": "140004", + "display": "Chronic pharyngitis", + "system": "http://snomed.info/sct" + } + ] + } + ], + "length": { + "value": 2, + "unit": "d", + "system": "http://unitsofmeasure.org/" + }, + "meta": { + "security": [ + { + "code": "N", + "display": "normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality" + } + ] + }, + "text": { + "status": "generated", + "div": "

Visit Description: Health Checkup

" + }, + "priority": { + "coding": [ + { + "code": "UR", + "display": "urgent", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActPriority", + "version": "V1.2" + }, + { + "code": "EL", + "display": "elective", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActPriority", + "version": "V1.3" + } + ] + }, + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/encounter-modeOfArrival", + "valueCoding": { + "code": "C", + "display": "Car", + "system": "http://terminology.hl7.org/CodeSystem/v2-0430" + } + } + ], + "diagnosis": [ + { + "condition": { + "reference": "Condition/481123a1-ca9c-c3c8-0284-e6926c3a50d8" + }, + "use": { + "coding": [ + { + "code": "AD", + "display": "Admission Diagnosis", + "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role" + } + ] + }, + "rank": 1 + } + ] + }, + "request": { + "method": "PUT", + "url": "Encounter/4b192760-03d2-aec4-b0a6-fde323912e1e" + } + }, + { + "fullUrl": "urn:uuid:9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "resource": { + "resourceType": "Provenance", + "id": "9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "occurredDateTime": "2021-08-17T18:49:43.004+05:30", + "recorded": "2029-08-01T11:21:24+05:30", + "reason": [ + { + "coding": [ + { + "code": "PATRQT", + "display": "patient requested", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason" + } + ] + } + ], + "agent": [ + { + "who": { + "reference": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + } + ], + "activity": { + "text": "ADT^A04^ADT_A04" + }, + "location": { + "reference": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + }, + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c" + } + }, + { + "fullUrl": "urn:uuid:ef39f581-5e8f-3917-35a9-3443303d9eee", + "resource": { + "resourceType": "Organization", + "id": "ef39f581-5e8f-3917-35a9-3443303d9eee", + "identifier": [ + { + "value": "DRNBR", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-DRNBR" + }, + { + "value": "urn:oid:W1.2", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + } + }, + { + "fullUrl": "urn:uuid:95aea53b-8d49-d57f-d16f-4d14b914f992", + "resource": { + "resourceType": "Practitioner", + "id": "95aea53b-8d49-d57f-d16f-4d14b914f992", + "identifier": [ + { + "value": "C08", + "system": "urn:oid:W1.2", + "assigner": { + "reference": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + }, + "type": { + "coding": [ + { + "code": "ANON", + "display": "Anonymous identifier", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen", + "2ndname" + ], + "suffix": [ + "Jr", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + }, + { + "fullUrl": "urn:uuid:59d5e519-0108-5dd8-adfa-1eef5658009e", + "resource": { + "resourceType": "Location", + "id": "59d5e519-0108-5dd8-adfa-1eef5658009e", + "name": "Cona_Health", + "identifier": [ + { + "value": "urn:oid:1.3.6.1.4.1.44750.1.4", + "system": "urn:ietf:rfc:3986" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "display": "site", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + } + }, + { + "fullUrl": "urn:uuid:396e6ab6-624f-44a8-841c-6e1c4cebd765", + "resource": { + "resourceType": "Practitioner", + "id": "396e6ab6-624f-44a8-841c-6e1c4cebd765", + "identifier": [ + { + "value": "1210" + } + ], + "name": [ + { + "family": "ANES", + "given": [ + "MARK", + "B" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/396e6ab6-624f-44a8-841c-6e1c4cebd765" + } + }, + { + "fullUrl": "urn:uuid:6a01e35c-52c3-892a-2ea0-0a283eb6757b", + "resource": { + "resourceType": "Practitioner", + "id": "6a01e35c-52c3-892a-2ea0-0a283eb6757b", + "identifier": [ + { + "value": "121188", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-L", + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Patrick", + "given": [ + "Harold", + "H" + ], + "suffix": [ + "IV", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/6a01e35c-52c3-892a-2ea0-0a283eb6757b" + } + }, + { + "fullUrl": "urn:uuid:a8fc538f-624b-0cee-df30-6377fabae47c", + "resource": { + "resourceType": "Practitioner", + "id": "a8fc538f-624b-0cee-df30-6377fabae47c", + "identifier": [ + { + "value": "12345689", + "type": { + "coding": [ + { + "code": "MR", + "display": "Medical record number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Everyman2", + "given": [ + "Adam2", + "A" + ], + "suffix": [ + "III", + "PHD" + ], + "prefix": [ + "DR" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/a8fc538f-624b-0cee-df30-6377fabae47c" + } + }, + { + "fullUrl": "urn:uuid:a9c75502-d60a-d89b-5912-f046100cd47e", + "resource": { + "resourceType": "Location", + "id": "a9c75502-d60a-d89b-5912-f046100cd47e", + "name": "OT", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/a9c75502-d60a-d89b-5912-f046100cd47e" + } + }, + { + "fullUrl": "urn:uuid:2e2e33a1-60f8-7e38-c827-fe070237c3fb", + "resource": { + "resourceType": "Procedure", + "id": "2e2e33a1-60f8-7e38-c827-fe070237c3fb", + "status": "unknown", + "identifier": [ + { + "value": "PR1001" + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Procedure/2e2e33a1-60f8-7e38-c827-fe070237c3fb" + } + }, + { + "fullUrl": "urn:uuid:c06db9c2-d07b-bac2-53c2-48ed83dd32b6", + "resource": { + "resourceType": "Procedure", + "id": "c06db9c2-d07b-bac2-53c2-48ed83dd32b6", + "code": { + "coding": [ + { + "code": "76164006", + "display": "Biopsy of colon (procedure)", + "system": "http://snomed.info/sct" + } + ], + "text": "Biopsy of colon, which was part of colonoscopy" + }, + "status": "completed", + "performedDateTime": "2005-01-25T16:10:00+05:30", + "category": { + "coding": [ + { + "code": "D", + "display": "Diagnostic Procedure", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/HL70230" + } + ] + }, + "performer": [ + { + "actor": { + "reference": "Practitioner/396e6ab6-624f-44a8-841c-6e1c4cebd765" + }, + "function": { + "coding": [ + { + "code": "88189002", + "system": "http://snomed.info/sct", + "display": "Anesthesiologist" + } + ], + "text": "Anesthesiologist" + } + }, + { + "actor": { + "reference": "Practitioner/6a01e35c-52c3-892a-2ea0-0a283eb6757b" + }, + "function": { + "coding": [ + { + "code": "304292004", + "system": "http://snomed.info/sct", + "display": "Surgeon" + } + ], + "text": "Surgeon" + } + }, + { + "actor": { + "reference": "Practitioner/a8fc538f-624b-0cee-df30-6377fabae47c" + }, + "function": { + "text": "Procedure Practitioner" + } + } + ], + "reasonCode": [ + { + "coding": [ + { + "code": "799008", + "display": "Sigmoid colon ulcer", + "system": "http://snomed.info/sct" + } + ] + } + ], + "identifier": [ + { + "value": "PR1006" + } + ], + "location": { + "reference": "Location/a9c75502-d60a-d89b-5912-f046100cd47e" + }, + "partOf": [ + { + "reference": "Procedure/2e2e33a1-60f8-7e38-c827-fe070237c3fb" + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Procedure/c06db9c2-d07b-bac2-53c2-48ed83dd32b6" + } + }, + { + "fullUrl": "urn:uuid:3bb64820-2a2b-956c-9f45-125ec102f353", + "resource": { + "resourceType": "Organization", + "id": "3bb64820-2a2b-956c-9f45-125ec102f353", + "name": "TestOrg", + "identifier": [ + { + "value": "Org12", + "type": { + "coding": [ + { + "code": "EI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "contact": [ + { + "name": { + "family": "Green", + "given": [ + "John", + "A" + ], + "suffix": [ + "II", + "MD" + ], + "prefix": [ + "DR" + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + "telecom": [ + { + "value": "898989898", + "system": "fax" + }, + { + "value": "88888888", + "system": "phone" + } + ], + "address": { + "line": [ + "Street1", + "Palkstreet" + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/3bb64820-2a2b-956c-9f45-125ec102f353" + } + }, + { + "fullUrl": "urn:uuid:abdee378-0d3b-337f-a31e-83e002ce92a0", + "resource": { + "resourceType": "RelatedPerson", + "id": "abdee378-0d3b-337f-a31e-83e002ce92a0", + "identifier": [ + { + "value": "1212121", + "type": { + "coding": [ + { + "code": "AND", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Account number debitor" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "12345567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/e76154d7-9084-80e4-6274-c929d7c39880" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "I-123", + "type": { + "coding": [ + { + "code": "BA", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Bank Account Number" + } + ] + } + }, + { + "value": "I-222", + "type": { + "coding": [ + { + "code": "DI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Diner’s Club card" + } + ] + } + }, + { + "value": "Security no-23", + "system": "http://hl7.org/fhir/sid/us-ssn" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "C", + "display": "Emergency Contact", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131", + "version": "9.0" + }, + { + "code": "CHILD", + "display": "child", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode", + "version": "10.0" + } + ] + }, + { + "coding": [ + { + "code": "O", + "display": "Other", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131" + } + ] + }, + { + "coding": [ + { + "code": "MTH", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "period": { + "start": "2021-08-18", + "end": "2021-12-18" + }, + "address": [ + { + "line": [ + "2222", + "HOME", + "STREET", + "Highway" + ], + "city": "GREENSBORO", + "state": "NC", + "postalCode": "27401-1020", + "country": "US", + "use": "billing", + "district": "test", + "period": { + "start": "2000-01-10", + "end": "2005-01-11" + } + }, + { + "line": [ + "111", + "Duck ST" + ], + "city": "Fowl" + }, + { + "line": [ + "Street1", + "Palkstreet" + ] + }, + { + "line": [ + "ST-2" + ] + } + ], + "telecom": [ + { + "value": "5555", + "use": "work", + "system": "email", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "121111", + "use": "home", + "system": "phone" + }, + { + "value": "878777", + "use": "home", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "6666666", + "system": "pager", + "use": "work" + }, + { + "value": "898989898", + "system": "fax" + }, + { + "value": "88888888", + "system": "phone" + }, + { + "value": "777", + "use": "work", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 1 + }, + { + "value": "444444", + "system": "phone" + } + ], + "name": [ + { + "family": "Evan", + "given": [ + "ADAM", + "A" + ], + "suffix": [ + "III", + "MD" + ], + "prefix": [ + "Dr." + ], + "use": "usual" + }, + { + "family": "Green", + "given": [ + "John", + "A" + ], + "suffix": [ + "II", + "MD" + ], + "prefix": [ + "DR" + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official" + } + ], + "gender": "female", + "birthDate": "1962-01-10", + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47" + } + ] + } + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White" + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/abdee378-0d3b-337f-a31e-83e002ce92a0" + } + }, + { + "fullUrl": "urn:uuid:e76154d7-9084-80e4-6274-c929d7c39880", + "resource": { + "resourceType": "Organization", + "id": "e76154d7-9084-80e4-6274-c929d7c39880", + "identifier": [ + { + "value": "T1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-T1" + }, + { + "value": "2.16.840.1.113883.19", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/e76154d7-9084-80e4-6274-c929d7c39880" + } + }, + { + "fullUrl": "urn:uuid:f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "resource": { + "resourceType": "Organization", + "id": "f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "identifier": [ + { + "value": "NTH", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NTH" + }, + { + "value": "rt23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + } + }, + { + "fullUrl": "urn:uuid:4e68b44e-c053-02b1-6d6d-fe816f9fdfec", + "resource": { + "resourceType": "Organization", + "id": "4e68b44e-c053-02b1-6d6d-fe816f9fdfec", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "urn:oid:1.12", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4e68b44e-c053-02b1-6d6d-fe816f9fdfec" + } + }, + { + "fullUrl": "urn:uuid:e82402a9-b2d1-2a28-3250-c099d5a77bf7", + "resource": { + "resourceType": "Organization", + "id": "e82402a9-b2d1-2a28-3250-c099d5a77bf7", + "identifier": [ + { + "value": "PERSt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/e82402a9-b2d1-2a28-3250-c099d5a77bf7" + } + }, + { + "fullUrl": "urn:uuid:ce70e6c3-c190-121d-c251-e4bae5cde6a1", + "resource": { + "resourceType": "Practitioner", + "id": "ce70e6c3-c190-121d-c251-e4bae5cde6a1", + "identifier": [ + { + "value": "1134", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/e82402a9-b2d1-2a28-3250-c099d5a77bf7" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Aly", + "given": [ + "Zafar", + "Mahendra" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/ce70e6c3-c190-121d-c251-e4bae5cde6a1" + } + }, + { + "fullUrl": "urn:uuid:88a53755-c972-6904-b4ce-8884b84ddc2e", + "resource": { + "resourceType": "PractitionerRole", + "id": "88a53755-c972-6904-b4ce-8884b84ddc2e", + "code": [ + { + "coding": [ + { + "code": "ResponsibleObserver", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/ce70e6c3-c190-121d-c251-e4bae5cde6a1" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/88a53755-c972-6904-b4ce-8884b84ddc2e" + } + }, + { + "fullUrl": "urn:uuid:3e0952c6-eea0-8938-96f8-07c224bf1577", + "resource": { + "resourceType": "Practitioner", + "id": "3e0952c6-eea0-8938-96f8-07c224bf1577", + "identifier": [ + { + "value": "2234" + } + ], + "name": [ + { + "family": "Pauly", + "given": [ + "Berrie", + "Raud" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/3e0952c6-eea0-8938-96f8-07c224bf1577" + } + }, + { + "fullUrl": "urn:uuid:bc78e290-ec67-c238-1e05-aefb6b252b0c", + "resource": { + "resourceType": "PractitionerRole", + "id": "bc78e290-ec67-c238-1e05-aefb6b252b0c", + "code": [ + { + "coding": [ + { + "code": "ResponsibleObserver", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/3e0952c6-eea0-8938-96f8-07c224bf1577" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/bc78e290-ec67-c238-1e05-aefb6b252b0c" + } + }, + { + "fullUrl": "urn:uuid:fe0adb86-ebe9-6479-0055-9db8dc1ff99a", + "resource": { + "resourceType": "Device", + "id": "fe0adb86-ebe9-6479-0055-9db8dc1ff99a", + "identifier": [ + { + "value": "EI12.3", + "system": "urn:uuid:UI2", + "type": { + "coding": [ + { + "code": "GUID", + "display": "Same as UUID.", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + }, + { + "system": "urn:oid:UI1", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/fe0adb86-ebe9-6479-0055-9db8dc1ff99a" + } + }, + { + "fullUrl": "urn:uuid:45f65e47-46c4-1a54-f9fb-1321258e79b2", + "resource": { + "resourceType": "Practitioner", + "id": "45f65e47-46c4-1a54-f9fb-1321258e79b2", + "identifier": [ + { + "type": { + "coding": [ + { + "code": "MD-25" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/45f65e47-46c4-1a54-f9fb-1321258e79b2" + } + }, + { + "fullUrl": "urn:uuid:090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3", + "resource": { + "resourceType": "PractitionerRole", + "id": "090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3", + "code": [ + { + "coding": [ + { + "code": "LabMedicalDirector", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/45f65e47-46c4-1a54-f9fb-1321258e79b2" + }, + "organization": { + "reference": "Organization/056aa7c7-6b75-3c67-63c5-cf9604f16d25" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3" + } + }, + { + "fullUrl": "urn:uuid:056aa7c7-6b75-3c67-63c5-cf9604f16d25", + "resource": { + "resourceType": "Organization", + "id": "056aa7c7-6b75-3c67-63c5-cf9604f16d25", + "name": "FairOaks Hspital", + "address": [ + { + "line": [ + "Research Park", + "Fairfax" + ], + "city": "VA", + "state": "22031", + "postalCode": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/056aa7c7-6b75-3c67-63c5-cf9604f16d25" + } + }, + { + "fullUrl": "urn:uuid:07fd2dd3-dbd6-5bb1-cfda-02226795d9a0", + "resource": { + "resourceType": "Observation", + "id": "07fd2dd3-dbd6-5bb1-cfda-02226795d9a0", + "identifier": [ + { + "value": "EI21", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-OII" + }, + { + "type": { + "coding": [ + { + "code": "FILL" + } + ] + } + } + ], + "status": "unknown", + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "component": [ + { + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 60, + "code": "beats/min", + "unit": "beats/min", + "system": "urn:iso:std:iso:3986" + }, + "referenceRange": [ + { + "text": "70-80" + } + ] + }, + { + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 120, + "code": "beats/min", + "unit": "beats/min", + "system": "urn:iso:std:iso:3986" + }, + "referenceRange": [ + { + "text": "70-80" + } + ] + } + ], + "effectiveDateTime": "1999-07-02", + "method": { + "coding": [ + { + "code": "OBS", + "display": "This is test method", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/AS4" + } + ] + }, + "device": { + "reference": "Device/fe0adb86-ebe9-6479-0055-9db8dc1ff99a" + }, + "bodySite": { + "coding": [ + { + "code": "BU", + "display": "Observation site", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/E5" + } + ] + }, + "performer": [ + { + "reference": "PractitionerRole/88a53755-c972-6904-b4ce-8884b84ddc2e" + }, + { + "reference": "PractitionerRole/bc78e290-ec67-c238-1e05-aefb6b252b0c" + }, + { + "reference": "PractitionerRole/090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "A", + "display": "Abnormal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + }, + { + "coding": [ + { + "code": "B", + "display": "Better", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } + ], + "extension": [ + { + "url": "http://example.com/v2-to-fhir-converter/Observation_Status", + "valueCodeableConcept": { + "coding": [ + { + "code": "S", + "display": "Partial", + "system": "http://terminology.hl7.org/CodeSystem/v2-0085" + } + ], + "text": "Partial" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Observation/07fd2dd3-dbd6-5bb1-cfda-02226795d9a0" + } + }, + { + "fullUrl": "urn:uuid:a0adcda8-0b28-d089-1955-c04308d5fe28", + "resource": { + "resourceType": "AllergyIntolerance", + "id": "a0adcda8-0b28-d089-1955-c04308d5fe28", + "category": [ + "environment" + ], + "type": "allergy", + "code": { + "coding": [ + { + "code": "P", + "display": "PENICILLIN", + "system": "http://terminology.hl7.org/CodeSystem/icd-o" + } + ] + }, + "reaction": [ + { + "manifestation": [ + { + "text": "CODE16" + } + ], + "onset": "2021-08-24" + } + ], + "criticality": "low", + "clinicalStatus": { + "coding": [ + { + "code": "active", + "display": "Active", + "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical" + } + ] + }, + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "AllergyIntolerance/a0adcda8-0b28-d089-1955-c04308d5fe28" + } + }, + { + "fullUrl": "urn:uuid:14493a95-7780-ead5-89cc-ad6c3bc31d51", + "resource": { + "resourceType": "Practitioner", + "id": "14493a95-7780-ead5-89cc-ad6c3bc31d51", + "identifier": [ + { + "value": "005454" + } + ], + "name": [ + { + "family": "DIAG", + "given": [ + "ROBIN", + "B" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/14493a95-7780-ead5-89cc-ad6c3bc31d51" + } + }, + { + "fullUrl": "urn:uuid:481123a1-ca9c-c3c8-0284-e6926c3a50d8", + "resource": { + "resourceType": "Condition", + "id": "481123a1-ca9c-c3c8-0284-e6926c3a50d8", + "code": { + "coding": [ + { + "code": "422504002", + "display": "Ischemic stroke(disorder)", + "system": "http://snomed.info/sct" + } + ], + "text": "Stroke" + }, + "onsetDateTime": "2004-01-25T12:50:25+05:30", + "identifier": [ + { + "value": "DI20", + "system": "urn:oid:DTUI", + "type": { + "coding": [ + { + "code": "CLIP", + "display": "Clinical laboratory Improvement Program. Allows for the ability to designate organization identifier as a “CLIP” assigned number (for labs). Used by US Department of Defense.", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "asserter": { + "reference": "Practitioner/14493a95-7780-ead5-89cc-ad6c3bc31d51" + }, + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/condition-assertedDate", + "valueDateTime": "2020-05-01T16:45:15+05:30" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/condition-dueTo", + "valueReference": { + "reference": "Condition/98e2ecfc-6e04-bc30-6624-4f3686214b22" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Condition/481123a1-ca9c-c3c8-0284-e6926c3a50d8" + } + }, + { + "fullUrl": "urn:uuid:98e2ecfc-6e04-bc30-6624-4f3686214b22", + "resource": { + "resourceType": "Condition", + "id": "98e2ecfc-6e04-bc30-6624-4f3686214b22", + "identifier": [ + { + "system": "urn:oid:UI", + "type": { + "coding": [ + { + "code": "CLIP", + "display": "Clinical laboratory Improvement Program. Allows for the ability to designate organization identifier as a “CLIP” assigned number (for labs). Used by US Department of Defense.", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Condition/98e2ecfc-6e04-bc30-6624-4f3686214b22" + } + }, + { + "fullUrl": "urn:uuid:c073f2c1-a818-924b-8881-1481ac88d691", + "resource": { + "resourceType": "Organization", + "id": "c073f2c1-a818-924b-8881-1481ac88d691", + "name": "AuthProvider", + "identifier": [ + { + "value": "A", + "type": { + "coding": [ + { + "code": "LR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/c073f2c1-a818-924b-8881-1481ac88d691" + } + }, + { + "fullUrl": "urn:uuid:e0ba3d6b-452f-7c22-a79d-1035e4b33ceb", + "resource": { + "resourceType": "Practitioner", + "id": "e0ba3d6b-452f-7c22-a79d-1035e4b33ceb", + "identifier": [ + { + "value": "114", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-2.3", + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Beverly", + "given": [ + "Crusher", + "An" + ], + "suffix": [ + "Mr", + "AHP", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/e0ba3d6b-452f-7c22-a79d-1035e4b33ceb" + } + }, + { + "fullUrl": "urn:uuid:739ae409-c591-1a59-32ad-d2ef1b937b0f", + "resource": { + "resourceType": "ServiceRequest", + "id": "739ae409-c591-1a59-32ad-d2ef1b937b0f", + "status": "on-hold", + "intent": "order", + "identifier": [ + { + "value": "123-1", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-name" + }, + { + "value": "123-2", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-Testname" + } + ], + "authoredOn": "1990-05-01T12:16:00+05:30", + "performer": [ + { + "reference": "Organization/c073f2c1-a818-924b-8881-1481ac88d691" + }, + { + "reference": "Practitioner/e0ba3d6b-452f-7c22-a79d-1035e4b33ceb" + } + ], + "performerType": { + "coding": [ + { + "code": "EXTERNAL" + } + ] + }, + "note": [ + { + "text": "Check for metastatic disease" + } + ], + "priority": "asap", + "reasonCode": [ + { + "coding": [ + { + "code": "R-1", + "display": "Reason", + "system": "http://www.ama-assn.org/go/cpt" + } + ], + "text": "Patient has a spinal fracture" + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "ServiceRequest/739ae409-c591-1a59-32ad-d2ef1b937b0f" + } + }, + { + "fullUrl": "urn:uuid:dfab6985-a691-c4f5-d2b2-6481fdfd59e4", + "resource": { + "resourceType": "Coverage", + "id": "dfab6985-a691-c4f5-d2b2-6481fdfd59e4", + "class": [ + { + "value": "BAV", + "name": "Blue Advantage HMO", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/coverage-class", + "code": "plan", + "display": "Plan" + } + ] + } + }, + { + "value": "PUBSUMB", + "name": "SelfPay", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/coverage-class", + "code": "group", + "display": "Group" + } + ] + } + } + ], + "network": "Blue Advantage HMO", + "period": { + "start": "1989-10-01", + "end": "2050-10-01" + }, + "type": { + "coding": [ + { + "code": "HMO", + "display": "health maintenance organization policy", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + } + ] + }, + "identifier": [ + { + "value": "PN-145", + "type": { + "coding": [ + { + "code": "PLN", + "display": "Policy Number", + "system": "http://example.com/CodeSystem/additional-identifier" + } + ] + }, + "system": "http://www.examplehealthplan.com/fhir/policyidentifier" + }, + { + "value": "HMO-12345", + "type": { + "coding": [ + { + "code": "NI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "National unique individual identifier" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.3" + }, + { + "value": "Medicare-12345", + "type": { + "coding": [ + { + "code": "MC", + "display": "Patient's Medicare number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-medicare" + }, + { + "value": "MCN-008", + "type": { + "coding": [ + { + "code": "MA", + "display": "Patient Medicaid number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/identifier-medicaid" + }, + { + "value": "PNM1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/1fca4c8f-7562-b755-9a05-5f0f49096e5b" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "costToBeneficiary": [ + { + "type": { + "coding": [ + { + "code": "DC", + "display": "direct unit cost", + "system": "http://terminology.hl7.org/CodeSystem/v2-0205" + } + ] + }, + "valueMoney": { + "value": 150, + "currency": "USD" + } + } + ], + "subscriberId": "HMO-12345", + "status": "active", + "beneficiary": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "payor": [ + { + "reference": "Organization/04a2a5f2-c971-1e42-e788-250ea487a889" + } + ], + "policyHolder": { + "reference": "Organization/4829e288-ac03-22cc-c65e-922004275fd0" + }, + "subscriber": { + "reference": "RelatedPerson/fd1eed45-4ccb-bb7c-d157-58eb0366d777" + }, + "relationship": { + "coding": [ + { + "code": "spouse", + "display": "Spouse", + "system": "http://terminology.hl7.org/CodeSystem/subscriber-relationship" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Coverage/dfab6985-a691-c4f5-d2b2-6481fdfd59e4" + } + }, + { + "fullUrl": "urn:uuid:04a2a5f2-c971-1e42-e788-250ea487a889", + "resource": { + "resourceType": "Organization", + "id": "04a2a5f2-c971-1e42-e788-250ea487a889", + "address": [ + { + "line": [ + "1979 MILKY WAY" + ], + "city": "VERONA", + "state": "WI", + "postalCode": "53593", + "country": "US" + } + ], + "contact": [ + { + "name": { + "family": "Henry", + "given": [ + "Rony", + "A" + ], + "suffix": [ + "III", + "MD" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1925-10-12" + } + } + } + ], + "telecom": [ + { + "value": "(555)555-5555", + "system": "phone" + } + ], + "identifier": [ + { + "value": "IC-1.31", + "type": { + "coding": [ + { + "code": "NIIP", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "National Insurance Payor Identifier (Payor)" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.1", + "period": { + "start": "1929-10-11", + "end": "1929-10-12" + } + } + ], + "name": "Blue Cross Blue Shield of Texas" + }, + "request": { + "method": "PUT", + "url": "Organization/04a2a5f2-c971-1e42-e788-250ea487a889" + } + }, + { + "fullUrl": "urn:uuid:4829e288-ac03-22cc-c65e-922004275fd0", + "resource": { + "resourceType": "Organization", + "id": "4829e288-ac03-22cc-c65e-922004275fd0", + "address": [ + { + "line": [ + "2000 MILKY WAY" + ], + "city": "VERONA", + "state": "WI", + "postalCode": "53593", + "country": "US" + } + ], + "name": "Sam P. Hil", + "contact": [ + { + "name": { + "family": "Richard", + "given": [ + "Paul" + ] + }, + "telecom": [ + { + "value": "254622222", + "system": "phone" + } + ] + } + ], + "telecom": [ + { + "value": "555777888", + "system": "fax" + }, + { + "system": "phone" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4829e288-ac03-22cc-c65e-922004275fd0" + } + }, + { + "fullUrl": "urn:uuid:fd1eed45-4ccb-bb7c-d157-58eb0366d777", + "resource": { + "resourceType": "RelatedPerson", + "id": "fd1eed45-4ccb-bb7c-d157-58eb0366d777", + "identifier": [ + { + "value": "HMO-12345", + "type": { + "coding": [ + { + "code": "NI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "National unique individual identifier" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.3" + }, + { + "value": "1117", + "type": { + "coding": [ + { + "code": "EI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Employee number" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.4" + }, + { + "value": "1118", + "type": { + "coding": [ + { + "code": "BC", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Bank Card Number" + } + ] + } + }, + { + "value": "425-57-9745", + "type": { + "coding": [ + { + "code": "SS", + "display": "Social Security number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "SPS", + "display": "spouse", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "address": [ + { + "line": [ + "3857 Velvet Treasure Terrace" + ], + "city": "Midnight", + "state": "NC", + "postalCode": "27878", + "country": "US" + } + ], + "name": [ + { + "family": "Doe", + "given": [ + "Rosallie", + "John" + ], + "suffix": [ + "III", + "Bachelors" + ], + "prefix": [ + "Mrs." + ], + "use": "official" + } + ], + "gender": "female", + "birthDate": "1975-02-28", + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "telecom": [ + { + "value": "0005245", + "use": "work", + "system": "email" + }, + { + "system": "phone" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47" + } + ] + }, + "preferred": true + } + ] + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/fd1eed45-4ccb-bb7c-d157-58eb0366d777" + } + }, + { + "fullUrl": "urn:uuid:1fca4c8f-7562-b755-9a05-5f0f49096e5b", + "resource": { + "resourceType": "Organization", + "id": "1fca4c8f-7562-b755-9a05-5f0f49096e5b", + "identifier": [ + { + "value": "PM", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PM" + }, + { + "value": "2.6.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/1fca4c8f-7562-b755-9a05-5f0f49096e5b" + } + } + ] +} \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A04/ADT04-23-expected.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A04/ADT04-23-expected.json new file mode 100644 index 000000000..f8747cfea --- /dev/null +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A04/ADT04-23-expected.json @@ -0,0 +1,845 @@ +{ + "resourceType": "Bundle", + "type": "batch", + "timestamp": "2001-01-01T00:00:00", + "identifier": { + "value": "Q123456789T123456789X123456" + }, + "id": "c9b7c305-0ed7-eb69-1e29-b4cc6251c12d", + "entry": [ + { + "fullUrl": "urn:uuid:18548d54-14a8-815a-c1bb-396f35b37164", + "resource": { + "resourceType": "MessageHeader", + "id": "18548d54-14a8-815a-c1bb-396f35b37164", + "source": { + "name": "NES", + "_endpoint": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } + ] + } + }, + "destination": [ + { + "name": "TESTSYSTEM", + "_endpoint": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } + ] + }, + "receiver": { + "reference": "Organization/ff939fb2-65de-0b68-4a81-ce9cd8e6f5a5" + } + } + ], + "meta": { + "tag": [ + { + "code": "P", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "A04", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ADT^A04" + }, + "sender": { + "reference": "Organization/37113002-8500-6f18-8ff4-95b962eeadfe" + } + }, + "request": { + "method": "PUT", + "url": "MessageHeader/18548d54-14a8-815a-c1bb-396f35b37164" + } + }, + { + "fullUrl": "urn:uuid:2f736e70-b192-155c-b224-66a1c8102fac", + "resource": { + "resourceType": "Provenance", + "id": "2f736e70-b192-155c-b224-66a1c8102fac", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T12:50:51.504Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ADT_A04.

" + }, + "occurredDateTime": "2001-01-01T00:00:00", + "recorded": "2001-01-01T00:00:00", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/37113002-8500-6f18-8ff4-95b962eeadfe" + } + } + ], + "activity": { + "coding": [ + { + "display": "ADT^A04^" + } + ] + }, + "target": [ + { + "reference": "Bundle/c9b7c305-0ed7-eb69-1e29-b4cc6251c12d" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/2f736e70-b192-155c-b224-66a1c8102fac" + } + }, + { + "fullUrl": "urn:uuid:37113002-8500-6f18-8ff4-95b962eeadfe", + "resource": { + "resourceType": "Organization", + "id": "37113002-8500-6f18-8ff4-95b962eeadfe", + "identifier": [ + { + "value": "NINTENDO", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NINTENDO" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/37113002-8500-6f18-8ff4-95b962eeadfe" + } + }, + { + "fullUrl": "urn:uuid:ff939fb2-65de-0b68-4a81-ce9cd8e6f5a5", + "resource": { + "resourceType": "Organization", + "id": "ff939fb2-65de-0b68-4a81-ce9cd8e6f5a5", + "identifier": [ + { + "value": "TESTFACILITY", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TESTFACILITY" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/ff939fb2-65de-0b68-4a81-ce9cd8e6f5a5" + } + }, + { + "fullUrl": "urn:uuid:5002eb07-c460-7112-6574-50303ae3b4a6", + "resource": { + "resourceType": "Patient", + "id": "5002eb07-c460-7112-6574-50303ae3b4a6", + "identifier": [ + { + "value": "123456789", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + } + } + ], + "name": [ + { + "family": "BROS", + "given": [ + "MARIO" + ] + } + ], + "birthDate": "1985-01-01", + "_birthDate": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime": "1985-01-01T00:00:00" + } + ] + }, + "gender": "male", + "address": [ + { + "line": [ + "123 FAKE STREET", + "MARIO LUIGI BROS PLACE" + ], + "city": "TOADSTOOL KINGDOM", + "state": "NES", + "postalCode": "A1B2C3", + "country": "JP" + } + ], + "telecom": [ + { + "use": "HOME", + "system": "JP:1234567" + }, + { + "use": "HOME", + "system": "JP:1234568" + } + ], + "maritalStatus": { + "coding": [ + { + "code": "S", + "display": "Never Married", + "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" + } + ] + }, + "multipleBirthInteger": 0, + "deceasedBoolean": false, + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-religion", + "valueCodeableConcept": { + "coding": [ + { + "code": "1023", + "display": "Islam", + "system": "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + } + ] + } + } + ], + "contact": [ + { + "name": { + "family": "PEACH", + "given": [ + "PRINCESS" + ] + }, + "address": { + "line": [ + "ANOTHER CASTLE" + ], + "city": "TOADSTOOL KINGDOM", + "state": "NES", + "country": "JP" + }, + "telecom": [ + { + "value": "(123)555-1234", + "use": "home" + }, + { + "value": "(123)555-2345", + "use": "work" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "NOK", + "display": "NOK" + } + ] + } + ] + }, + { + "name": { + "family": "TOADSTOOL", + "given": [ + "PRINCESS" + ] + }, + "address": { + "line": [ + "YET ANOTHER CASTLE" + ], + "city": "TOADSTOOL KINGDOM", + "state": "NES", + "country": "JP" + }, + "telecom": [ + { + "value": "(123)555-3456", + "use": "home" + }, + { + "value": "(123)555-4567", + "use": "work" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "EMC", + "display": "EMC" + } + ] + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/5002eb07-c460-7112-6574-50303ae3b4a6" + } + }, + { + "fullUrl": "urn:uuid:0b931b2e-4814-b7ed-7159-4cf2805ef38f", + "resource": { + "resourceType": "Account", + "id": "0b931b2e-4814-b7ed-7159-4cf2805ef38f", + "identifier": [ + { + "value": "12345678" + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/5002eb07-c460-7112-6574-50303ae3b4a6" + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/0b931b2e-4814-b7ed-7159-4cf2805ef38f" + } + }, + { + "fullUrl": "urn:uuid:06328e17-a467-ce3f-48ba-28a3e3c21152", + "resource": { + "resourceType": "Practitioner", + "id": "06328e17-a467-ce3f-48ba-28a3e3c21152", + "identifier": [ + { + "value": "123456", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-MSRM", + "type": { + "coding": [ + { + "code": "NEIGHBOURHOOD DR NBR", + "display": "NEIGHBOURHOOD DR NBR" + } + ] + } + } + ], + "name": [ + { + "family": "DINO", + "given": [ + "YOSHI" + ], + "use": "CURRENT" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/06328e17-a467-ce3f-48ba-28a3e3c21152" + } + }, + { + "fullUrl": "urn:uuid:a5bcb90d-8151-7e13-dd82-9e837d506efa", + "resource": { + "resourceType": "Practitioner", + "id": "a5bcb90d-8151-7e13-dd82-9e837d506efa", + "name": [ + { + "family": "DOG", + "given": [ + "DUCKHUNT" + ], + "use": "CURRENT" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/a5bcb90d-8151-7e13-dd82-9e837d506efa" + } + }, + { + "fullUrl": "urn:uuid:a0f6171b-0f81-c7fd-61da-2c2db32aafc9", + "resource": { + "resourceType": "Location", + "id": "a0f6171b-0f81-c7fd-61da-2c2db32aafc9", + "name": "ABCD", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/a0f6171b-0f81-c7fd-61da-2c2db32aafc9" + } + }, + { + "fullUrl": "urn:uuid:e37fe030-54c7-96d3-51ff-70a87db46be6", + "resource": { + "resourceType": "Location", + "id": "e37fe030-54c7-96d3-51ff-70a87db46be6", + "partOf": { + "reference": "Location/a0f6171b-0f81-c7fd-61da-2c2db32aafc9" + }, + "name": "EFGH", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/e37fe030-54c7-96d3-51ff-70a87db46be6" + } + }, + { + "fullUrl": "urn:uuid:1ffe7bbb-44ca-d195-1456-40d94950090b", + "resource": { + "resourceType": "Encounter", + "id": "1ffe7bbb-44ca-d195-1456-40d94950090b", + "class": { + "code": "AMB", + "display": "ambulatory", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "status": "in-progress", + "location": [ + { + "status": "active", + "location": { + "reference": "Location/a0f6171b-0f81-c7fd-61da-2c2db32aafc9" + } + }, + { + "status": "active" + } + ], + "participant": [ + { + "type": [ + { + "coding": [ + { + "code": "ATND", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", + "display": "attender" + } + ] + } + ], + "individual": { + "reference": "Practitioner/06328e17-a467-ce3f-48ba-28a3e3c21152" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/a5bcb90d-8151-7e13-dd82-9e837d506efa" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "ADM", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "admitter" + } + ], + "individual": { + "reference": "Practitioner/06328e17-a467-ce3f-48ba-28a3e3c21152" + } + } + ], + "serviceType": { + "coding": [ + { + "code": "CRD" + } + ] + }, + "identifier": [ + { + "value": "0123456789", + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ], + "text": "visit number" + } + } + ], + "period": { + "start": "2001-01-01T00:00:00" + }, + "text": { + "status": "generated", + "div": "

Visit Description:

" + }, + "subject": { + "reference": "Patient/5002eb07-c460-7112-6574-50303ae3b4a6" + } + }, + "request": { + "method": "PUT", + "url": "Encounter/1ffe7bbb-44ca-d195-1456-40d94950090b" + } + }, + { + "fullUrl": "urn:uuid:8d07e317-166f-8efc-0671-cb07cf7aeb96", + "resource": { + "resourceType": "Provenance", + "id": "8d07e317-166f-8efc-0671-cb07cf7aeb96", + "recorded": "2001-01-01T00:00:00", + "agent": [ + { + "who": { + "reference": "Practitioner/03fde832-1955-892f-f280-c6f950ccc798" + } + } + ], + "activity": { + "text": "ADT^A04" + }, + "target": [ + { + "reference": "Bundle/c9b7c305-0ed7-eb69-1e29-b4cc6251c12d" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/8d07e317-166f-8efc-0671-cb07cf7aeb96" + } + }, + { + "fullUrl": "urn:uuid:03fde832-1955-892f-f280-c6f950ccc798", + "resource": { + "resourceType": "Practitioner", + "id": "03fde832-1955-892f-f280-c6f950ccc798", + "name": [ + { + "family": "KOOPA", + "given": [ + "BOWSER" + ], + "use": "CURRENT" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/03fde832-1955-892f-f280-c6f950ccc798" + } + }, + { + "fullUrl": "urn:uuid:4e083e5f-53b4-194d-b6bd-6d51b5dab850", + "resource": { + "resourceType": "RelatedPerson", + "id": "4e083e5f-53b4-194d-b6bd-6d51b5dab850", + "relationship": [ + { + "coding": [ + { + "code": "SO", + "display": "SO" + } + ] + }, + { + "coding": [ + { + "code": "NOK", + "display": "NOK" + } + ] + } + ], + "address": [ + { + "line": [ + "ANOTHER CASTLE" + ], + "city": "TOADSTOOL KINGDOM", + "state": "NES", + "country": "JP" + } + ], + "telecom": [ + { + "value": "(123)555-1234" + }, + { + "value": "(123)555-2345", + "use": "work" + } + ], + "name": [ + { + "family": "PEACH", + "given": [ + "PRINCESS" + ] + } + ], + "patient": { + "reference": "Patient/5002eb07-c460-7112-6574-50303ae3b4a6" + } + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/4e083e5f-53b4-194d-b6bd-6d51b5dab850" + } + }, + { + "fullUrl": "urn:uuid:a7a01053-59be-eb80-1f54-591a69d5bc8e", + "resource": { + "resourceType": "RelatedPerson", + "id": "a7a01053-59be-eb80-1f54-591a69d5bc8e", + "relationship": [ + { + "coding": [ + { + "code": "SO", + "display": "SO" + } + ] + }, + { + "coding": [ + { + "code": "C", + "display": "Emergency Contact", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131" + } + ] + } + ], + "address": [ + { + "line": [ + "YET ANOTHER CASTLE" + ], + "city": "TOADSTOOL KINGDOM", + "state": "NES", + "country": "JP" + } + ], + "telecom": [ + { + "value": "(123)555-3456" + }, + { + "value": "(123)555-4567", + "use": "work" + } + ], + "name": [ + { + "family": "TOADSTOOL", + "given": [ + "PRINCESS" + ] + } + ], + "patient": { + "reference": "Patient/5002eb07-c460-7112-6574-50303ae3b4a6" + } + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/a7a01053-59be-eb80-1f54-591a69d5bc8e" + } + }, + { + "fullUrl": "urn:uuid:bcc1f6b5-29eb-234c-e0f0-fe9afcf1a7bf", + "resource": { + "resourceType": "Coverage", + "id": "bcc1f6b5-29eb-234c-e0f0-fe9afcf1a7bf", + "class": [ + { + "value": "PAR", + "name": "PARENT", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/coverage-class", + "code": "plan", + "display": "Plan" + } + ] + } + } + ], + "network": "PARENT", + "status": "active", + "beneficiary": { + "reference": "Patient/5002eb07-c460-7112-6574-50303ae3b4a6" + }, + "payor": [ + { + "reference": "Organization/3c0535f0-d28e-a849-79f6-c898c016c028" + } + ], + "subscriber": { + "reference": "RelatedPerson/5a5cec43-9c63-d6dd-aeed-4e04b3b921d3" + } + }, + "request": { + "method": "PUT", + "url": "Coverage/bcc1f6b5-29eb-234c-e0f0-fe9afcf1a7bf" + } + }, + { + "fullUrl": "urn:uuid:3c0535f0-d28e-a849-79f6-c898c016c028", + "resource": { + "resourceType": "Organization", + "id": "3c0535f0-d28e-a849-79f6-c898c016c028", + "contact": [ + { + "name": { + "family": "LUIGI" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/3c0535f0-d28e-a849-79f6-c898c016c028" + } + }, + { + "fullUrl": "urn:uuid:5a5cec43-9c63-d6dd-aeed-4e04b3b921d3", + "resource": { + "resourceType": "RelatedPerson", + "id": "5a5cec43-9c63-d6dd-aeed-4e04b3b921d3", + "patient": { + "reference": "Patient/5002eb07-c460-7112-6574-50303ae3b4a6" + } + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/5a5cec43-9c63-d6dd-aeed-4e04b3b921d3" + } + }, + { + "fullUrl": "urn:uuid:c850f5a3-5de9-908d-e20a-8d2964a02f2a", + "resource": { + "resourceType": "Coverage", + "id": "c850f5a3-5de9-908d-e20a-8d2964a02f2a", + "class": [ + { + "value": "FRI", + "name": "FRIEND", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/coverage-class", + "code": "plan", + "display": "Plan" + } + ] + } + } + ], + "network": "FRIEND", + "status": "active", + "beneficiary": { + "reference": "Patient/5002eb07-c460-7112-6574-50303ae3b4a6" + }, + "payor": [ + { + "reference": "Organization/75215f59-16f2-a4ac-4fc2-0719bb90ba28" + } + ], + "subscriber": { + "reference": "RelatedPerson/dae6a309-01ef-2aae-bb5d-7a99f74f54db" + } + }, + "request": { + "method": "PUT", + "url": "Coverage/c850f5a3-5de9-908d-e20a-8d2964a02f2a" + } + }, + { + "fullUrl": "urn:uuid:75215f59-16f2-a4ac-4fc2-0719bb90ba28", + "resource": { + "resourceType": "Organization", + "id": "75215f59-16f2-a4ac-4fc2-0719bb90ba28", + "contact": [ + { + "name": { + "family": "PRINCESS" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/75215f59-16f2-a4ac-4fc2-0719bb90ba28" + } + }, + { + "fullUrl": "urn:uuid:dae6a309-01ef-2aae-bb5d-7a99f74f54db", + "resource": { + "resourceType": "RelatedPerson", + "id": "dae6a309-01ef-2aae-bb5d-7a99f74f54db", + "patient": { + "reference": "Patient/5002eb07-c460-7112-6574-50303ae3b4a6" + } + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/dae6a309-01ef-2aae-bb5d-7a99f74f54db" + } + } + ] +} \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A04/ADT04-251-expected.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A04/ADT04-251-expected.json new file mode 100644 index 000000000..12d5c751f --- /dev/null +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A04/ADT04-251-expected.json @@ -0,0 +1,335 @@ +{ + "resourceType": "Bundle", + "type": "batch", + "timestamp": "2019-05-04T18:12:05", + "identifier": { + "value": "1270326314" + }, + "id": "a04e38af-61c9-8af1-875d-ea2b4c1ffac6", + "entry": [ + { + "fullUrl": "urn:uuid:aa9b0327-0d9f-945a-888c-07658da974df", + "resource": { + "resourceType": "MessageHeader", + "id": "aa9b0327-0d9f-945a-888c-07658da974df", + "source": { + "name": "REDOX", + "_endpoint": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } + ] + } + }, + "meta": { + "tag": [ + { + "code": "T", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "A04", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ADT^A04" + }, + "sender": { + "reference": "Organization/6fbc0a9a-11e5-aa44-b0d7-79439e65ae84" + } + }, + "request": { + "method": "PUT", + "url": "MessageHeader/aa9b0327-0d9f-945a-888c-07658da974df" + } + }, + { + "fullUrl": "urn:uuid:2f44b60d-43f6-3deb-3f3d-3a1041aa219c", + "resource": { + "resourceType": "Provenance", + "id": "2f44b60d-43f6-3deb-3f3d-3a1041aa219c", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T12:52:28.121Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ADT_A04.

" + }, + "occurredDateTime": "2019-05-04T18:12:05", + "recorded": "2019-05-04T18:12:05", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/6fbc0a9a-11e5-aa44-b0d7-79439e65ae84" + } + } + ], + "activity": { + "coding": [ + { + "display": "ADT^A04^" + } + ] + }, + "target": [ + { + "reference": "Bundle/a04e38af-61c9-8af1-875d-ea2b4c1ffac6" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/2f44b60d-43f6-3deb-3f3d-3a1041aa219c" + } + }, + { + "fullUrl": "urn:uuid:6fbc0a9a-11e5-aa44-b0d7-79439e65ae84", + "resource": { + "resourceType": "Organization", + "id": "6fbc0a9a-11e5-aa44-b0d7-79439e65ae84", + "identifier": [ + { + "value": "RDX", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-RDX" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/6fbc0a9a-11e5-aa44-b0d7-79439e65ae84" + } + }, + { + "fullUrl": "urn:uuid:106decd4-a7b0-34eb-afe9-94e54bdff26f", + "resource": { + "resourceType": "Patient", + "id": "106decd4-a7b0-34eb-afe9-94e54bdff26f", + "identifier": [ + { + "value": "MRN12345", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + } + } + ], + "name": [ + { + "family": "Doe", + "given": [ + "Jane" + ] + } + ], + "birthDate": "1978-01-01", + "gender": "female", + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White" + } + ] + } + ], + "contact": [ + { + "name": { + "family": "JOHNSON", + "given": [ + "CONWAY" + ], + "use": "official" + }, + "telecom": [ + { + "use": "home", + "system": "phone" + }, + { + "system": "phone" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "EMERGENCY", + "display": "EMERGENCY" + } + ] + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/106decd4-a7b0-34eb-afe9-94e54bdff26f" + } + }, + { + "fullUrl": "urn:uuid:1791139d-4b3d-30a1-a790-ecff6e63a1fd", + "resource": { + "resourceType": "Account", + "id": "1791139d-4b3d-30a1-a790-ecff6e63a1fd", + "identifier": [ + { + "value": "123456789" + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/106decd4-a7b0-34eb-afe9-94e54bdff26f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/1791139d-4b3d-30a1-a790-ecff6e63a1fd" + } + }, + { + "fullUrl": "urn:uuid:10ffd4e9-25bf-8239-3d9b-64bef81e192a", + "resource": { + "resourceType": "Practitioner", + "id": "10ffd4e9-25bf-8239-3d9b-64bef81e192a", + "identifier": [ + { + "value": "12345" + } + ], + "name": [ + { + "family": "Johnson", + "given": [ + "Peter" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/10ffd4e9-25bf-8239-3d9b-64bef81e192a" + } + }, + { + "fullUrl": "urn:uuid:bd2f287c-f7df-4b1b-7fbf-987cdf51ee4e", + "resource": { + "resourceType": "Encounter", + "id": "bd2f287c-f7df-4b1b-7fbf-987cdf51ee4e", + "class": { + "code": "EMER", + "display": "emergency", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "status": "in-progress", + "participant": [ + { + "type": [ + { + "coding": [ + { + "code": "ATND", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", + "display": "attender" + } + ] + } + ], + "individual": { + "reference": "Practitioner/10ffd4e9-25bf-8239-3d9b-64bef81e192a" + } + } + ], + "period": { + "start": "2019-05-02T07:00:00" + }, + "text": { + "status": "generated", + "div": "

Visit Description:

" + }, + "subject": { + "reference": "Patient/106decd4-a7b0-34eb-afe9-94e54bdff26f" + } + }, + "request": { + "method": "PUT", + "url": "Encounter/bd2f287c-f7df-4b1b-7fbf-987cdf51ee4e" + } + }, + { + "fullUrl": "urn:uuid:4e852062-3313-586b-4979-1f4c539eb4d5", + "resource": { + "resourceType": "RelatedPerson", + "id": "4e852062-3313-586b-4979-1f4c539eb4d5", + "relationship": [ + { + "coding": [ + { + "code": "SPOUS", + "display": "SPOUS" + } + ] + }, + { + "coding": [ + { + "code": "EMERGENCY", + "display": "EMERGENCY" + } + ] + } + ], + "telecom": [ + { + "use": "home", + "system": "phone" + }, + { + "system": "phone" + } + ], + "name": [ + { + "family": "JOHNSON", + "given": [ + "CONWAY" + ], + "use": "official" + } + ], + "patient": { + "reference": "Patient/106decd4-a7b0-34eb-afe9-94e54bdff26f" + } + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/4e852062-3313-586b-4979-1f4c539eb4d5" + } + } + ] +} \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A04/ADT04-28-expected.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A04/ADT04-28-expected.json new file mode 100644 index 000000000..778f6a010 --- /dev/null +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A04/ADT04-28-expected.json @@ -0,0 +1,728 @@ +{ + "resourceType": "Bundle", + "type": "batch", + "timestamp": "2019-05-04T18:12:05", + "identifier": { + "value": "1270326314" + }, + "id": "a04e38af-61c9-8af1-875d-ea2b4c1ffac6", + "entry": [ + { + "fullUrl": "urn:uuid:aa9b0327-0d9f-945a-888c-07658da974df", + "resource": { + "resourceType": "MessageHeader", + "id": "aa9b0327-0d9f-945a-888c-07658da974df", + "source": { + "name": "REDOX", + "_endpoint": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } + ] + } + }, + "meta": { + "tag": [ + { + "code": "T", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "A04", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ADT^A04" + }, + "sender": { + "reference": "Organization/6fbc0a9a-11e5-aa44-b0d7-79439e65ae84" + } + }, + "request": { + "method": "PUT", + "url": "MessageHeader/aa9b0327-0d9f-945a-888c-07658da974df" + } + }, + { + "fullUrl": "urn:uuid:2c3f6df7-9434-e16e-8340-f505268b140b", + "resource": { + "resourceType": "Provenance", + "id": "2c3f6df7-9434-e16e-8340-f505268b140b", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T12:51:46.188Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ADT_A04.

" + }, + "occurredDateTime": "2019-05-04T18:12:05", + "recorded": "2019-05-04T18:12:05", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/6fbc0a9a-11e5-aa44-b0d7-79439e65ae84" + } + } + ], + "activity": { + "coding": [ + { + "display": "ADT^A04^" + } + ] + }, + "target": [ + { + "reference": "Bundle/a04e38af-61c9-8af1-875d-ea2b4c1ffac6" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/2c3f6df7-9434-e16e-8340-f505268b140b" + } + }, + { + "fullUrl": "urn:uuid:6fbc0a9a-11e5-aa44-b0d7-79439e65ae84", + "resource": { + "resourceType": "Organization", + "id": "6fbc0a9a-11e5-aa44-b0d7-79439e65ae84", + "identifier": [ + { + "value": "RDX", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-RDX" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/6fbc0a9a-11e5-aa44-b0d7-79439e65ae84" + } + }, + { + "fullUrl": "urn:uuid:f7a9494a-3fac-e0e1-78d8-d7c20410ca33", + "resource": { + "resourceType": "Patient", + "id": "f7a9494a-3fac-e0e1-78d8-d7c20410ca33", + "identifier": [ + { + "value": "0000000001", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-MR" + }, + { + "value": "e167267c-16c9-4fe3-96ae-9cff5703e90a", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-EHRID" + }, + { + "value": "a1d4ee8aba494ca", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NIST" + }, + { + "value": "101-01-0001", + "type": { + "coding": [ + { + "code": "SB", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + } + ], + "name": [ + { + "family": "Bixby", + "given": [ + "Timothy", + "Paul" + ] + } + ], + "birthDate": "2008-01-06", + "gender": "male", + "address": [ + { + "line": [ + "4762 Hickory Street" + ], + "city": "Monroe", + "state": "WI", + "postalCode": "53566", + "country": "US" + }, + { + "district": "Green" + } + ], + "telecom": [ + { + "value": "8088675301", + "use": "home" + } + ], + "maritalStatus": { + "coding": [ + { + "code": "Married", + "display": "Married" + } + ] + }, + "generalPractitioner": [ + { + "reference": "Practitioner/78421d2f-a405-2d71-ff9f-132539dbcdb5" + } + ], + "contact": [ + { + "name": { + "family": "Bixby", + "given": [ + "Barbara" + ] + }, + "address": { + "line": [ + "4762 Hickory Street" + ], + "city": "Monroe", + "state": "WI", + "postalCode": "53566", + "country": "US" + }, + "telecom": [ + { + "value": "+19189368865", + "use": "home" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "Emergency Contact", + "display": "Emergency Contact" + } + ] + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/f7a9494a-3fac-e0e1-78d8-d7c20410ca33" + } + }, + { + "fullUrl": "urn:uuid:256cf56f-8ec4-5af5-cf3f-4f9a833482be", + "resource": { + "resourceType": "Account", + "id": "256cf56f-8ec4-5af5-cf3f-4f9a833482be", + "identifier": [ + { + "value": "1234" + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/f7a9494a-3fac-e0e1-78d8-d7c20410ca33" + } + ], + "guarantor": [ + { + "party": { + "reference": "RelatedPerson/79ceda41-8fc5-5e07-6f9f-0d5e4e716430" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/256cf56f-8ec4-5af5-cf3f-4f9a833482be" + } + }, + { + "fullUrl": "urn:uuid:79ceda41-8fc5-5e07-6f9f-0d5e4e716430", + "resource": { + "resourceType": "RelatedPerson", + "id": "79ceda41-8fc5-5e07-6f9f-0d5e4e716430", + "relationship": [ + { + "coding": [ + { + "code": "Father", + "display": "Father" + } + ] + } + ], + "address": [ + { + "line": [ + "4762 Hickory Street" + ], + "city": "Monroe", + "state": "WI", + "postalCode": "53566", + "country": "USA" + } + ], + "name": [ + { + "family": "Bixby", + "given": [ + "Kent" + ] + } + ], + "patient": { + "reference": "Patient/f7a9494a-3fac-e0e1-78d8-d7c20410ca33" + } + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/79ceda41-8fc5-5e07-6f9f-0d5e4e716430" + } + }, + { + "fullUrl": "urn:uuid:78421d2f-a405-2d71-ff9f-132539dbcdb5", + "resource": { + "resourceType": "Practitioner", + "id": "78421d2f-a405-2d71-ff9f-132539dbcdb5", + "identifier": [ + { + "value": "4356789876", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NPI" + } + ], + "name": [ + { + "family": "Granite", + "given": [ + "Pat" + ], + "suffix": [ + "MD" + ] + }, + { + "family": "Granite", + "given": [ + "Pat" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/78421d2f-a405-2d71-ff9f-132539dbcdb5" + } + }, + { + "fullUrl": "urn:uuid:fb207bbb-3ad0-180c-bd53-8ca8fd3581ec", + "resource": { + "resourceType": "Practitioner", + "id": "fb207bbb-3ad0-180c-bd53-8ca8fd3581ec" + }, + "request": { + "method": "PUT", + "url": "Practitioner/fb207bbb-3ad0-180c-bd53-8ca8fd3581ec" + } + }, + { + "fullUrl": "urn:uuid:1d17bd3e-c217-b488-dd0a-b87c0652a3f1", + "resource": { + "resourceType": "Location", + "id": "1d17bd3e-c217-b488-dd0a-b87c0652a3f1", + "name": "3N", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/1d17bd3e-c217-b488-dd0a-b87c0652a3f1" + } + }, + { + "fullUrl": "urn:uuid:d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "resource": { + "resourceType": "Location", + "id": "d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "partOf": { + "reference": "Location/1d17bd3e-c217-b488-dd0a-b87c0652a3f1" + }, + "name": "136", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + } + }, + { + "fullUrl": "urn:uuid:5783dafa-c6c0-e673-cca4-42087ee1831b", + "resource": { + "resourceType": "Location", + "id": "5783dafa-c6c0-e673-cca4-42087ee1831b", + "partOf": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "name": "B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + } + }, + { + "fullUrl": "urn:uuid:9e9deb57-14b7-3c6a-e9da-3874ac02bb5f", + "resource": { + "resourceType": "Location", + "id": "9e9deb57-14b7-3c6a-e9da-3874ac02bb5f", + "name": "RES General Hospital", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9e9deb57-14b7-3c6a-e9da-3874ac02bb5f" + } + }, + { + "fullUrl": "urn:uuid:99425718-6c7d-d427-2df3-db51299fdb0b", + "resource": { + "resourceType": "Encounter", + "id": "99425718-6c7d-d427-2df3-db51299fdb0b", + "class": { + "code": "IMP", + "display": "inpatient encounter", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "status": "in-progress", + "location": [ + { + "status": "active", + "location": { + "reference": "Location/1d17bd3e-c217-b488-dd0a-b87c0652a3f1" + } + }, + { + "status": "active", + "location": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + } + }, + { + "status": "active", + "location": { + "reference": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + } + }, + { + "status": "active", + "location": { + "reference": "Location/9e9deb57-14b7-3c6a-e9da-3874ac02bb5f" + } + } + ], + "participant": [ + { + "type": [ + { + "coding": [ + { + "code": "ATND", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", + "display": "attender" + } + ] + } + ], + "individual": { + "reference": "Practitioner/78421d2f-a405-2d71-ff9f-132539dbcdb5" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/fb207bbb-3ad0-180c-bd53-8ca8fd3581ec" + } + } + ], + "identifier": [ + { + "value": "1234", + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ], + "text": "visit number" + } + } + ], + "period": { + "start": "2018-10-17T22:28:05" + }, + "text": { + "status": "generated", + "div": "

Visit Description:

" + }, + "subject": { + "reference": "Patient/f7a9494a-3fac-e0e1-78d8-d7c20410ca33" + } + }, + "request": { + "method": "PUT", + "url": "Encounter/99425718-6c7d-d427-2df3-db51299fdb0b" + } + }, + { + "fullUrl": "urn:uuid:ef22db25-97a7-24b4-938f-da30c377b020", + "resource": { + "resourceType": "Provenance", + "id": "ef22db25-97a7-24b4-938f-da30c377b020", + "recorded": "2018-10-17T02:55:43", + "activity": { + "text": "ADT^A04" + }, + "target": [ + { + "reference": "Bundle/a04e38af-61c9-8af1-875d-ea2b4c1ffac6" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/ef22db25-97a7-24b4-938f-da30c377b020" + } + }, + { + "fullUrl": "urn:uuid:ece287da-a00b-b349-5de5-c25906e7ac53", + "resource": { + "resourceType": "RelatedPerson", + "id": "ece287da-a00b-b349-5de5-c25906e7ac53", + "relationship": [ + { + "coding": [ + { + "code": "Mother", + "display": "Mother" + } + ] + }, + { + "coding": [ + { + "code": "Emergency Contact", + "display": "Emergency Contact" + } + ] + } + ], + "address": [ + { + "line": [ + "4762 Hickory Street" + ], + "city": "Monroe", + "state": "WI", + "postalCode": "53566", + "country": "US" + } + ], + "telecom": [ + { + "value": "+19189368865" + } + ], + "name": [ + { + "family": "Bixby", + "given": [ + "Barbara" + ] + } + ], + "patient": { + "reference": "Patient/f7a9494a-3fac-e0e1-78d8-d7c20410ca33" + } + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/ece287da-a00b-b349-5de5-c25906e7ac53" + } + }, + { + "fullUrl": "urn:uuid:118533a8-4806-05da-77f9-55e1e8b3cb48", + "resource": { + "resourceType": "Coverage", + "id": "118533a8-4806-05da-77f9-55e1e8b3cb48", + "class": [ + { + "value": "31572", + "name": "HMO Deductable Plan", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/coverage-class", + "code": "plan", + "display": "Plan" + } + ] + } + }, + { + "value": "847025-024-0009", + "name": "Accelerator Labs", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/coverage-class", + "code": "group", + "display": "Group" + } + ] + } + } + ], + "network": "HMO Deductable Plan", + "period": { + "start": "2015-01-01", + "end": "2020-12-31" + }, + "identifier": [ + { + "value": "9140860055", + "type": { + "coding": [ + { + "code": "PLN", + "display": "Policy Number", + "system": "http://example.com/CodeSystem/additional-identifier" + } + ] + }, + "system": "http://www.examplehealthplan.com/fhir/policyidentifier" + } + ], + "status": "active", + "beneficiary": { + "reference": "Patient/f7a9494a-3fac-e0e1-78d8-d7c20410ca33" + }, + "payor": [ + { + "reference": "Organization/363e0c71-6c70-07b3-3003-4517de956021" + } + ], + "subscriber": { + "reference": "RelatedPerson/4bd18974-940d-b574-1aba-484e745ce063" + } + }, + "request": { + "method": "PUT", + "url": "Coverage/118533a8-4806-05da-77f9-55e1e8b3cb48" + } + }, + { + "fullUrl": "urn:uuid:363e0c71-6c70-07b3-3003-4517de956021", + "resource": { + "resourceType": "Organization", + "id": "363e0c71-6c70-07b3-3003-4517de956021", + "address": [ + { + "line": [ + "PO Box 14080" + ], + "city": "Lexington", + "state": "KY", + "postalCode": "40512-4079", + "country": "US" + } + ], + "telecom": [ + { + "value": "8089541123" + } + ], + "identifier": [ + { + "value": "60054" + } + ], + "name": "aetna (60054 0131)" + }, + "request": { + "method": "PUT", + "url": "Organization/363e0c71-6c70-07b3-3003-4517de956021" + } + }, + { + "fullUrl": "urn:uuid:4bd18974-940d-b574-1aba-484e745ce063", + "resource": { + "resourceType": "RelatedPerson", + "id": "4bd18974-940d-b574-1aba-484e745ce063", + "patient": { + "reference": "Patient/f7a9494a-3fac-e0e1-78d8-d7c20410ca33" + } + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/4bd18974-940d-b574-1aba-484e745ce063" + } + } + ] +} \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A05/ADT-A05-expected-2.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A05/ADT-A05-expected-2.json new file mode 100644 index 000000000..a5c546212 --- /dev/null +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A05/ADT-A05-expected-2.json @@ -0,0 +1,2130 @@ +{ + "resourceType": "Bundle", + "type": "batch", + "timestamp": "1989-08-18T14:41:00+05:30", + "identifier": { + "value": "MSG00001" + }, + "id": "513a3d06-5e87-6fbc-ad1b-170ab430499f", + "entry": [ + { + "fullUrl": "urn:uuid:b4ca189b-51ae-33df-cbe2-559b4423a321", + "resource": { + "resourceType": "MessageHeader", + "id": "b4ca189b-51ae-33df-cbe2-559b4423a321", + "source": { + "name": "24GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.20" + }, + "destination": [ + { + "name": "25GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.23", + "receiver": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + } + ], + "meta": { + "security": [ + { + "display": "SECURITY", + "system": "http://example.com/v2-to-fhirconverter/security-label" + } + ], + "tag": [ + { + "code": "P", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "A05", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ADT^A05^ADT_A05" + }, + "language": "en-US", + "sender": { + "reference": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + }, + "responsible": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + "request": { + "method": "PUT", + "url": "MessageHeader/b4ca189b-51ae-33df-cbe2-559b4423a321" + } + }, + { + "fullUrl": "urn:uuid:f65d2168-02c8-1897-210d-361176172856", + "resource": { + "resourceType": "Provenance", + "id": "f65d2168-02c8-1897-210d-361176172856", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T12:59:26.319Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ADT_A05.

" + }, + "occurredDateTime": "1989-08-18T14:41:00+05:30", + "recorded": "1989-08-18T14:41:00+05:30", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + } + ], + "activity": { + "coding": [ + { + "display": "ADT^A05^ADT_A05" + } + ] + }, + "entity": [ + { + "role": "source", + "what": { + "reference": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + } + ], + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/f65d2168-02c8-1897-210d-361176172856" + } + }, + { + "fullUrl": "urn:uuid:4356fb81-6ecd-2d70-57b1-47812638e785", + "resource": { + "resourceType": "Organization", + "id": "4356fb81-6ecd-2d70-57b1-47812638e785", + "identifier": [ + { + "value": "GHHSFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHSFacility" + }, + { + "value": "urn:oid:2.16.840.1.122848.1.30", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + } + }, + { + "fullUrl": "urn:uuid:62781ad6-3896-cb63-0178-ead0c4a432b5", + "resource": { + "resourceType": "Organization", + "id": "62781ad6-3896-cb63-0178-ead0c4a432b5", + "identifier": [ + { + "value": "GHHRFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHRFacility" + }, + { + "value": "urn:oid:2.16.840.1.1122848.1.32", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/62781ad6-3896-cb63-0178-ead0c4a432b5" + } + }, + { + "fullUrl": "urn:uuid:33532a82-d220-4c0d-1abe-53e48951c201", + "resource": { + "resourceType": "Organization", + "id": "33532a82-d220-4c0d-1abe-53e48951c201", + "name": "22 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + { + "fullUrl": "urn:uuid:527280c1-34d1-c639-e9ba-61986d28e266", + "resource": { + "resourceType": "Organization", + "id": "527280c1-34d1-c639-e9ba-61986d28e266", + "name": "23 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + }, + { + "fullUrl": "urn:uuid:503eb873-22fb-8199-ae28-3604ad59fe13", + "resource": { + "resourceType": "Device", + "id": "503eb873-22fb-8199-ae28-3604ad59fe13", + "identifier": [ + { + "value": "ADTApp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + }, + { + "fullUrl": "urn:uuid:9e909e52-61a1-be50-1878-a12ef8c36346", + "resource": { + "resourceType": "Patient", + "id": "9e909e52-61a1-be50-1878-a12ef8c36346", + "identifier": [ + { + "value": "1234567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "PATID1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "value": "123456789", + "type": { + "coding": [ + { + "code": "SS", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Social Security number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-USSSA" + }, + { + "value": "PATID567", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test2" + }, + { + "value": "PSSN123121234", + "type": { + "coding": [ + { + "code": "SB", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + }, + { + "value": "DLN-123", + "type": { + "coding": [ + { + "code": "DL" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/US", + "period": { + "end": "2001-01-23" + } + } + ], + "name": [ + { + "family": "EVERYMAN", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official", + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + }, + { + "family": "elbert", + "given": [ + "Son" + ] + } + ], + "birthDate": "1988-08-18", + "_birthDate": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime": "1988-08-18T14:41:00+05:30" + } + ] + }, + "gender": "male", + "address": [ + { + "line": [ + "1000", + "Hospital Lane", + "Ste. 123", + "Near Highway" + ], + "city": "Ann Arbor ", + "state": "MI", + "postalCode": "99999", + "country": "USA", + "type": "postal", + "district": "W", + "period": { + "start": "2000-01-10", + "end": "2000-01-20" + } + } + ], + "telecom": [ + { + "value": "2222", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18, + "use": "home" + }, + { + "value": "12121212", + "system": "phone", + "use": "home" + }, + { + "value": "7777", + "system": "phone", + "use": "work" + }, + { + "value": "1111", + "system": "other", + "use": "work" + }, + { + "value": "89898989", + "use": "work", + "system": "email" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47", + "version": "v2" + }, + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47", + "version": "v2.1" + } + ], + "text": "TextInEnglish" + }, + "preferred": true + } + ], + "maritalStatus": { + "coding": [ + { + "code": "M", + "display": "Married", + "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" + } + ] + }, + "multipleBirthInteger": 2, + "deceasedDateTime": "2008-08-25T15:31:30+05:30", + "meta": { + "lastUpdated": "2005-01-10T04:05:14+05:30" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "ombCategory", + "valueCoding": { + "code": "2028-9", + "display": "Asian", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White+Asian" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + "valueString": "SMITH--Angela--L" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", + "valueAddress": { + "text": "St. Francis Community Hospital of Lower South Side" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-religion", + "valueCodeableConcept": { + "coding": [ + { + "code": "1002", + "display": "African Religions", + "system": "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2186-5", + "display": "Non Hispanic or Latino", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "Non Hispanic or Latino" + } + ] + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/VeteranMilitaryStatus", + "valueCodeableConcept": { + "coding": [ + { + "code": "Vet123", + "display": "retired", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ART" + } + ], + "text": "retired" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-animal", + "extension": [ + { + "url": "species", + "valueCodeableConcept": { + "coding": [ + { + "code": "125097000", + "display": "Goat", + "system": "http://snomed.info/sct" + } + ], + "text": "Goat" + } + }, + { + "url": "breed", + "valueCodeableConcept": { + "coding": [ + { + "code": "4880003", + "display": "Beagle", + "system": "http://snomed.info/sct" + } + ], + "text": "Beagle" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "US", + "display": "United States of America", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "United States of America" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "CA", + "display": "Canada", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Canada" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-nationality", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "BT", + "display": "Bhutan", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Bhutan" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-importance", + "valueCodeableConcept": { + "coding": [ + { + "code": "VIP", + "display": "Very Important Person", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/L", + "version": "v1.1" + }, + { + "code": "IMP", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/DCM", + "version": "v1.2" + } + ], + "text": "Inportant Person" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + { + "fullUrl": "urn:uuid:78295402-9b84-4829-b945-502ab3402de5", + "resource": { + "resourceType": "Account", + "id": "78295402-9b84-4829-b945-502ab3402de5", + "identifier": [ + { + "value": "4000776", + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Visit number" + } + ] + }, + "system": "urn:oid:2.4", + "assigner": { + "reference": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/78295402-9b84-4829-b945-502ab3402de5" + } + }, + { + "fullUrl": "urn:uuid:9d4c8327-8a28-8152-1898-8251baa707b7", + "resource": { + "resourceType": "Organization", + "id": "9d4c8327-8a28-8152-1898-8251baa707b7", + "identifier": [ + { + "value": "AccMgr", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr" + }, + { + "value": "urn:oid:2.4", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + } + }, + { + "fullUrl": "urn:uuid:b3ad3a9f-d4f6-4638-0a09-2da771733488", + "resource": { + "resourceType": "Organization", + "id": "b3ad3a9f-d4f6-4638-0a09-2da771733488", + "identifier": [ + { + "value": "test1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test1" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "fullUrl": "urn:uuid:f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "resource": { + "resourceType": "Organization", + "id": "f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "identifier": [ + { + "value": "NTH", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NTH" + }, + { + "value": "rt23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + } + }, + { + "fullUrl": "urn:uuid:62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "resource": { + "resourceType": "RelatedPerson", + "id": "62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "identifier": [ + { + "value": "1212121", + "type": { + "coding": [ + { + "code": "AND", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Account number debitor" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "relationship": [ + { + "coding": [ + { + "code": "MTH", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/62b2e1ee-a272-4ffe-692e-a1fbfd49af6a" + } + }, + { + "fullUrl": "urn:uuid:11967e28-8dd4-a112-0fdc-377866bf12a0", + "resource": { + "resourceType": "Organization", + "id": "11967e28-8dd4-a112-0fdc-377866bf12a0", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "2.16.840.1.113883.19", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + } + }, + { + "fullUrl": "urn:uuid:7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "resource": { + "resourceType": "Organization", + "id": "7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "identifier": [ + { + "value": "AccMng", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMng" + }, + { + "value": "1.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + } + }, + { + "fullUrl": "urn:uuid:0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "resource": { + "resourceType": "Organization", + "id": "0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "identifier": [ + { + "value": "PERSONNELt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSONNELt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + } + }, + { + "fullUrl": "urn:uuid:f6775f99-5279-be04-bf81-0906c81f7443", + "resource": { + "resourceType": "Practitioner", + "id": "f6775f99-5279-be04-bf81-0906c81f7443", + "identifier": [ + { + "value": "1122334", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Alaz", + "given": [ + "Mohammed", + "Mahi" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "fullUrl": "urn:uuid:c613d7b2-525f-8c08-a7ac-b2b91486e257", + "resource": { + "resourceType": "Organization", + "id": "c613d7b2-525f-8c08-a7ac-b2b91486e257", + "identifier": [ + { + "value": "TEST", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TEST" + }, + { + "value": "23.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + } + }, + { + "fullUrl": "urn:uuid:04f8cfc8-62ca-12df-63ce-6304ef577d44", + "resource": { + "resourceType": "Practitioner", + "id": "04f8cfc8-62ca-12df-63ce-6304ef577d44", + "identifier": [ + { + "value": "C006", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + }, + "type": { + "coding": [ + { + "code": "BA", + "display": "Bank Account Number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen" + ], + "prefix": [ + "Dr" + ], + "use": "anonymous" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "fullUrl": "urn:uuid:99edcabd-fbeb-7e25-f823-11da8d8ed342", + "resource": { + "resourceType": "Practitioner", + "id": "99edcabd-fbeb-7e25-f823-11da8d8ed342", + "identifier": [ + { + "value": "C008", + "system": "urn:oid:2.8", + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Condoc", + "given": [ + "leen" + ], + "prefix": [ + "Dr" + ], + "use": "temp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "fullUrl": "urn:uuid:b065b233-8738-f1ec-1314-d61e4aac2c9e", + "resource": { + "resourceType": "Practitioner", + "id": "b065b233-8738-f1ec-1314-d61e4aac2c9e", + "identifier": [ + { + "value": "37", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr", + "type": { + "coding": [ + { + "code": "ANC", + "display": "Account number Creditor", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "DISNEY", + "given": [ + "WALT" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "fullUrl": "urn:uuid:9f974d4f-47e8-21a6-e549-4de4599c3764", + "resource": { + "resourceType": "Organization", + "id": "9f974d4f-47e8-21a6-e549-4de4599c3764", + "identifier": [ + { + "value": "T123", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-T123" + }, + { + "value": "urn:oid:r2.3", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + }, + { + "fullUrl": "urn:uuid:84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "resource": { + "resourceType": "Practitioner", + "id": "84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "identifier": [ + { + "value": "Othhel", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "fullUrl": "urn:uuid:9172e4a0-1ca5-646d-2183-b179f4daa737", + "resource": { + "resourceType": "Location", + "id": "9172e4a0-1ca5-646d-2183-b179f4daa737", + "partOf": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + }, + "name": "HUH AE OMU", + "identifier": [ + { + "value": "urn:oid:9.8", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "fullUrl": "urn:uuid:3913ec4d-6576-5e1a-ac31-e8280583371c", + "resource": { + "resourceType": "Location", + "id": "3913ec4d-6576-5e1a-ac31-e8280583371c", + "partOf": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + }, + "name": "OMU B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "fullUrl": "urn:uuid:804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "resource": { + "resourceType": "Location", + "id": "804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "partOf": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + }, + "name": "Bed 03", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "fullUrl": "urn:uuid:c043880b-0fab-1cb8-14f7-0475282c4d0e", + "resource": { + "resourceType": "Location", + "id": "c043880b-0fab-1cb8-14f7-0475282c4d0e", + "name": "HOMERTON UNIVER", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "fullUrl": "urn:uuid:f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "resource": { + "resourceType": "Location", + "id": "f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "partOf": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + }, + "name": "Homerton UH", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "fullUrl": "urn:uuid:7e38808c-44a8-cb0c-4709-9d6092abc32c", + "resource": { + "resourceType": "Location", + "id": "7e38808c-44a8-cb0c-4709-9d6092abc32c", + "partOf": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + }, + "name": "Floor5", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "fullUrl": "urn:uuid:59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "resource": { + "resourceType": "Location", + "id": "59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "name": "4 East, room 136, bed B 4E", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + } + }, + { + "fullUrl": "urn:uuid:d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "resource": { + "resourceType": "Location", + "id": "d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "partOf": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "name": "136", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + } + }, + { + "fullUrl": "urn:uuid:5783dafa-c6c0-e673-cca4-42087ee1831b", + "resource": { + "resourceType": "Location", + "id": "5783dafa-c6c0-e673-cca4-42087ee1831b", + "partOf": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "name": "B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + } + }, + { + "fullUrl": "urn:uuid:8b39e6e5-78cd-63ab-2441-f43ca5554096", + "resource": { + "resourceType": "Location", + "id": "8b39e6e5-78cd-63ab-2441-f43ca5554096", + "name": "CommunityHospital", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + } + }, + { + "fullUrl": "urn:uuid:42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "resource": { + "resourceType": "Location", + "id": "42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "name": "Homes", + "identifier": [ + { + "value": "22", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/FDK" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + { + "fullUrl": "urn:uuid:84634858-74aa-5cdb-4547-60ec27339ac6", + "resource": { + "resourceType": "Location", + "id": "84634858-74aa-5cdb-4547-60ec27339ac6", + "name": "POC", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + } + }, + { + "fullUrl": "urn:uuid:9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "resource": { + "resourceType": "Location", + "id": "9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "partOf": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "name": "Room-2", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + } + }, + { + "fullUrl": "urn:uuid:35353f20-6254-e794-98ed-8007490447e3", + "resource": { + "resourceType": "Location", + "id": "35353f20-6254-e794-98ed-8007490447e3", + "partOf": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "name": "Bed-103", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/35353f20-6254-e794-98ed-8007490447e3" + } + }, + { + "fullUrl": "urn:uuid:055e10f1-222e-df73-2325-0e4396db1a55", + "resource": { + "resourceType": "Location", + "id": "055e10f1-222e-df73-2325-0e4396db1a55", + "name": "Greenland", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + } + }, + { + "fullUrl": "urn:uuid:1154e6b2-b022-b3be-7dce-2b940ab5376d", + "resource": { + "resourceType": "Location", + "id": "1154e6b2-b022-b3be-7dce-2b940ab5376d", + "name": "Nursing home", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + } + }, + { + "fullUrl": "urn:uuid:08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "resource": { + "resourceType": "Location", + "id": "08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "name": "Rosewood", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + } + }, + { + "fullUrl": "urn:uuid:08314073-410a-3dc7-512c-0f2d206fb59d", + "resource": { + "resourceType": "Organization", + "id": "08314073-410a-3dc7-512c-0f2d206fb59d", + "identifier": [ + { + "value": "Etest", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-Etest" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + }, + { + "fullUrl": "urn:uuid:919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "resource": { + "resourceType": "EpisodeOfCare", + "id": "919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "status": "planned", + "identifier": [ + { + "value": "EOC124", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + }, + { + "fullUrl": "urn:uuid:4b192760-03d2-aec4-b0a6-fde323912e1e", + "resource": { + "resourceType": "Encounter", + "id": "4b192760-03d2-aec4-b0a6-fde323912e1e", + "class": { + "code": "PRENC", + "display": "pre-admission", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "status": "planned", + "location": [ + { + "status": "planned", + "location": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "status": "completed", + "location": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/35353f20-6254-e794-98ed-8007490447e3" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + } + ], + "type": [ + { + "coding": [ + { + "code": "E", + "display": "Emergency", + "system": "http://terminology.hl7.org/CodeSystem/v2-0007" + } + ] + } + ], + "hospitalization": { + "preAdmissionIdentifier": { + "value": "1234567", + "type": { + "coding": [ + { + "code": "ANON", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Anonymous identifier" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + "reAdmission": { + "coding": [ + { + "code": "R", + "display": "Re-admission", + "system": "http://terminology.hl7.org/CodeSystem/v2-0092" + } + ] + }, + "admitSource": { + "coding": [ + { + "code": "NHS Provider-General (inc.A&E-this Hosp)" + } + ] + }, + "dischargeDisposition": { + "coding": [ + { + "code": "Admitted as Inpatient", + "display": "Sample", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ACR" + } + ] + }, + "dietPreference": [ + { + "coding": [ + { + "code": "Vegan", + "display": "Vegetarian" + } + ] + } + ], + "destination": { + "reference": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + "episodeOfCare": [ + { + "reference": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + ], + "participant": [ + { + "type": [ + { + "coding": [ + { + "code": "ATND", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", + "display": "attender" + } + ] + } + ], + "individual": { + "reference": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "CON", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "consultant" + } + ], + "individual": { + "reference": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "ADM", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "admitter" + } + ], + "individual": { + "reference": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "PART", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "Participation" + } + ], + "individual": { + "reference": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + } + ], + "serviceType": { + "coding": [ + { + "code": "SUR" + } + ] + }, + "identifier": [ + { + "value": "40007716", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + }, + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ], + "text": "visit number" + } + }, + { + "value": "50", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:r2.3", + "assigner": { + "reference": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + } + ], + "period": { + "start": "2015-02-08T15:54:19+05:30" + }, + "text": { + "status": "generated", + "div": "

Visit Description:

" + }, + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Encounter/4b192760-03d2-aec4-b0a6-fde323912e1e" + } + }, + { + "fullUrl": "urn:uuid:9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "resource": { + "resourceType": "Provenance", + "id": "9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "occurredDateTime": "2021-08-17T18:49:43.004+05:30", + "recorded": "2029-08-01T11:21:24+05:30", + "reason": [ + { + "coding": [ + { + "code": "PATRQT", + "display": "patient requested", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason" + } + ] + } + ], + "agent": [ + { + "who": { + "reference": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + } + ], + "activity": { + "text": "ADT^A05^ADT_A05" + }, + "location": { + "reference": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + }, + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c" + } + }, + { + "fullUrl": "urn:uuid:ef39f581-5e8f-3917-35a9-3443303d9eee", + "resource": { + "resourceType": "Organization", + "id": "ef39f581-5e8f-3917-35a9-3443303d9eee", + "identifier": [ + { + "value": "DRNBR", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-DRNBR" + }, + { + "value": "urn:oid:W1.2", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + } + }, + { + "fullUrl": "urn:uuid:95aea53b-8d49-d57f-d16f-4d14b914f992", + "resource": { + "resourceType": "Practitioner", + "id": "95aea53b-8d49-d57f-d16f-4d14b914f992", + "identifier": [ + { + "value": "C08", + "system": "urn:oid:W1.2", + "assigner": { + "reference": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + }, + "type": { + "coding": [ + { + "code": "ANON", + "display": "Anonymous identifier", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen", + "2ndname" + ], + "suffix": [ + "Jr", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + }, + { + "fullUrl": "urn:uuid:59d5e519-0108-5dd8-adfa-1eef5658009e", + "resource": { + "resourceType": "Location", + "id": "59d5e519-0108-5dd8-adfa-1eef5658009e", + "name": "Cona_Health", + "identifier": [ + { + "value": "urn:oid:1.3.6.1.4.1.44750.1.4", + "system": "urn:ietf:rfc:3986" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "display": "site", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + } + } + ] +} \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A05/ADT-A05-expected.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A05/ADT-A05-expected.json new file mode 100644 index 000000000..f1da6eb9b --- /dev/null +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A05/ADT-A05-expected.json @@ -0,0 +1,4748 @@ +{ + "resourceType": "Bundle", + "type": "batch", + "timestamp": "1989-08-18T14:41:00+05:30", + "identifier": { + "value": "MSG00001" + }, + "id": "513a3d06-5e87-6fbc-ad1b-170ab430499f", + "entry": [ + { + "fullUrl": "urn:uuid:b4ca189b-51ae-33df-cbe2-559b4423a321", + "resource": { + "resourceType": "MessageHeader", + "id": "b4ca189b-51ae-33df-cbe2-559b4423a321", + "source": { + "name": "24GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.20", + "version": "2.4.3.52854", + "software": "Rhapsody" + }, + "destination": [ + { + "name": "25GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.23", + "receiver": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + } + ], + "meta": { + "security": [ + { + "display": "SECURITY", + "system": "http://example.com/v2-to-fhirconverter/security-label" + } + ], + "tag": [ + { + "code": "P", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "A05", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ADT^A05^ADT_A05" + }, + "language": "en-US", + "sender": { + "reference": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + }, + "responsible": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + "request": { + "method": "PUT", + "url": "MessageHeader/b4ca189b-51ae-33df-cbe2-559b4423a321" + } + }, + { + "fullUrl": "urn:uuid:f65d2168-02c8-1897-210d-361176172856", + "resource": { + "resourceType": "Provenance", + "id": "f65d2168-02c8-1897-210d-361176172856", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T13:00:57.179Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ADT_A05.

" + }, + "occurredDateTime": "1989-08-18T14:41:00+05:30", + "recorded": "1989-08-18T14:41:00+05:30", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + } + ], + "activity": { + "coding": [ + { + "display": "ADT^A05^ADT_A05" + } + ] + }, + "entity": [ + { + "role": "source", + "what": { + "reference": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + } + ], + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/f65d2168-02c8-1897-210d-361176172856" + } + }, + { + "fullUrl": "urn:uuid:4356fb81-6ecd-2d70-57b1-47812638e785", + "resource": { + "resourceType": "Organization", + "id": "4356fb81-6ecd-2d70-57b1-47812638e785", + "identifier": [ + { + "value": "GHHSFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHSFacility" + }, + { + "value": "urn:oid:2.16.840.1.122848.1.30", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + } + }, + { + "fullUrl": "urn:uuid:62781ad6-3896-cb63-0178-ead0c4a432b5", + "resource": { + "resourceType": "Organization", + "id": "62781ad6-3896-cb63-0178-ead0c4a432b5", + "identifier": [ + { + "value": "GHHRFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHRFacility" + }, + { + "value": "urn:oid:2.16.840.1.1122848.1.32", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/62781ad6-3896-cb63-0178-ead0c4a432b5" + } + }, + { + "fullUrl": "urn:uuid:33532a82-d220-4c0d-1abe-53e48951c201", + "resource": { + "resourceType": "Organization", + "id": "33532a82-d220-4c0d-1abe-53e48951c201", + "name": "22 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + { + "fullUrl": "urn:uuid:527280c1-34d1-c639-e9ba-61986d28e266", + "resource": { + "resourceType": "Organization", + "id": "527280c1-34d1-c639-e9ba-61986d28e266", + "name": "23 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + }, + { + "fullUrl": "urn:uuid:503eb873-22fb-8199-ae28-3604ad59fe13", + "resource": { + "resourceType": "Device", + "id": "503eb873-22fb-8199-ae28-3604ad59fe13", + "identifier": [ + { + "value": "ADTApp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + }, + { + "fullUrl": "urn:uuid:4b549918-a84d-cdaf-e150-c773a5d306e5", + "resource": { + "resourceType": "Device", + "id": "4b549918-a84d-cdaf-e150-c773a5d306e5", + "manufacturer": "Orion", + "deviceName": [ + { + "name": "Rhapsody", + "type": "manufacturer-name" + } + ], + "version": [ + { + "value": "2.4.3.52854" + } + ], + "modelNumber": "2.4.3", + "note": [ + { + "text": "Testactivity" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/4b549918-a84d-cdaf-e150-c773a5d306e5" + } + }, + { + "fullUrl": "urn:uuid:9e909e52-61a1-be50-1878-a12ef8c36346", + "resource": { + "resourceType": "Patient", + "id": "9e909e52-61a1-be50-1878-a12ef8c36346", + "identifier": [ + { + "value": "1234567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "PATID1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "value": "123456789", + "type": { + "coding": [ + { + "code": "SS", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Social Security number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-USSSA" + }, + { + "value": "PATID567", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test2" + }, + { + "value": "PSSN123121234", + "type": { + "coding": [ + { + "code": "SB", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + }, + { + "value": "DLN-123", + "type": { + "coding": [ + { + "code": "DL" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/US", + "period": { + "end": "2001-01-23" + } + }, + { + "value": "1516", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "55121", + "type": { + "coding": [ + { + "code": "FI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Facility ID" + } + ] + } + }, + { + "value": "DB123", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:1.12", + "assigner": { + "reference": "Organization/4e68b44e-c053-02b1-6d6d-fe816f9fdfec" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "Medicare-12345", + "type": { + "coding": [ + { + "code": "MC", + "display": "Patient's Medicare number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-medicare" + }, + { + "value": "MCN-008", + "type": { + "coding": [ + { + "code": "MA", + "display": "Patient Medicaid number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/identifier-medicaid" + }, + { + "value": "MI-12345", + "type": { + "coding": [ + { + "code": "MI", + "display": "Military ID number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/identifier-military" + }, + { + "value": "PNM1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/1fca4c8f-7562-b755-9a05-5f0f49096e5b" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "name": [ + { + "family": "EVERYMAN", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official", + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + }, + { + "family": "elbert", + "given": [ + "Son" + ] + }, + { + "family": "RADIANT", + "given": [ + "LUCY" + ] + }, + { + "family": "Jack", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + } + ], + "birthDate": "1988-08-18", + "_birthDate": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime": "1988-08-18T14:41:00+05:30" + } + ] + }, + "gender": "male", + "address": [ + { + "line": [ + "1000", + "Hospital Lane", + "Ste. 123", + "Near Highway" + ], + "city": "Ann Arbor ", + "state": "MI", + "postalCode": "99999", + "country": "USA", + "type": "postal", + "district": "W", + "period": { + "start": "2000-01-10", + "end": "2000-01-20" + } + }, + { + "line": [ + "1619 SOUTH UNIVERSITY" + ], + "city": "MADISON", + "state": "WI", + "postalCode": "53703", + "country": "US" + } + ], + "telecom": [ + { + "value": "2222", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18, + "use": "home" + }, + { + "value": "12121212", + "system": "phone", + "use": "home" + }, + { + "value": "7777", + "system": "phone", + "use": "work" + }, + { + "value": "1111", + "system": "other", + "use": "work" + }, + { + "value": "89898989", + "use": "work", + "system": "email" + }, + { + "value": "8484", + "system": "email", + "use": "home" + }, + { + "value": "717171", + "system": "phone", + "use": "home" + }, + { + "value": "021212", + "system": "other", + "use": "work" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47", + "version": "v2" + }, + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47", + "version": "v2.1" + } + ], + "text": "TextInEnglish" + }, + "preferred": true + } + ], + "maritalStatus": { + "coding": [ + { + "code": "M", + "display": "Married", + "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" + } + ] + }, + "multipleBirthInteger": 2, + "deceasedDateTime": "2008-08-25T15:31:30+05:30", + "meta": { + "lastUpdated": "2005-01-10T04:05:14+05:30" + }, + "generalPractitioner": [ + { + "reference": "Organization/4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11" + }, + { + "reference": "Practitioner/76aaad38-1077-6a5c-0c5c-102ec160a60d" + } + ], + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "ombCategory", + "valueCoding": { + "code": "2028-9", + "display": "Asian", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White+Asian" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + "valueString": "SMITH--Angela--L" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", + "valueAddress": { + "text": "St. Francis Community Hospital of Lower South Side" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-religion", + "valueCodeableConcept": { + "coding": [ + { + "code": "1002", + "display": "African Religions", + "system": "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2186-5", + "display": "Non Hispanic or Latino", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "Non Hispanic or Latino" + } + ] + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/VeteranMilitaryStatus", + "valueCodeableConcept": { + "coding": [ + { + "code": "Vet123", + "display": "retired", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ART" + } + ], + "text": "retired" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-animal", + "extension": [ + { + "url": "species", + "valueCodeableConcept": { + "coding": [ + { + "code": "125097000", + "display": "Goat", + "system": "http://snomed.info/sct" + } + ], + "text": "Goat" + } + }, + { + "url": "breed", + "valueCodeableConcept": { + "coding": [ + { + "code": "4880003", + "display": "Beagle", + "system": "http://snomed.info/sct" + } + ], + "text": "Beagle" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "US", + "display": "United States of America", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "United States of America" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "CA", + "display": "Canada", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Canada" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-nationality", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "BT", + "display": "Bhutan", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Bhutan" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-congregation", + "valueString": "Methodist Church" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-importance", + "valueCodeableConcept": { + "coding": [ + { + "code": "VIP", + "display": "Very Important Person", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/L", + "version": "v1.1" + }, + { + "code": "IMP", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/DCM", + "version": "v1.2" + } + ], + "text": "Inportant Person" + } + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/patient-disabilityIndicator", + "valueBoolean": true + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/DisabilityPeriod", + "valuePeriod": { + "start": "2021-08-30", + "end": "2021-09-30" + } + } + ], + "contact": [ + { + "organization": { + "reference": "Organization/3bb64820-2a2b-956c-9f45-125ec102f353" + } + }, + { + "name": { + "family": "Evan", + "given": [ + "ADAM", + "A" + ], + "suffix": [ + "III", + "MD" + ], + "prefix": [ + "Dr." + ], + "use": "usual" + }, + "address": { + "line": [ + "2222", + "HOME", + "STREET", + "Highway" + ], + "city": "GREENSBORO", + "state": "NC", + "postalCode": "27401-1020", + "country": "US", + "use": "billing", + "district": "test", + "period": { + "start": "2000-01-10", + "end": "2005-01-11" + } + }, + "telecom": [ + { + "value": "5555", + "use": "work", + "system": "email", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "121111", + "use": "home", + "system": "phone" + }, + { + "value": "878777", + "use": "home", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "6666666", + "system": "pager", + "use": "work" + }, + { + "value": "777", + "use": "work", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 1 + }, + { + "value": "444444", + "system": "phone" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "O", + "display": "Other", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131" + } + ] + } + ], + "period": { + "start": "2021-08-18", + "end": "2021-12-18" + }, + "gender": "female" + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + { + "fullUrl": "urn:uuid:78295402-9b84-4829-b945-502ab3402de5", + "resource": { + "resourceType": "Account", + "id": "78295402-9b84-4829-b945-502ab3402de5", + "identifier": [ + { + "value": "4000776", + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Visit number" + } + ] + }, + "system": "urn:oid:2.4", + "assigner": { + "reference": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + ], + "guarantor": [ + { + "party": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "onHold": false, + "period": { + "start": "2001-04-10", + "end": "2001-04-15" + } + }, + { + "party": { + "reference": "Organization/98678cfe-0455-73c8-d2a1-2ede2d55943f" + }, + "onHold": false, + "period": { + "start": "2001-04-10", + "end": "2001-04-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/78295402-9b84-4829-b945-502ab3402de5" + } + }, + { + "fullUrl": "urn:uuid:9d4c8327-8a28-8152-1898-8251baa707b7", + "resource": { + "resourceType": "Organization", + "id": "9d4c8327-8a28-8152-1898-8251baa707b7", + "identifier": [ + { + "value": "AccMgr", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr" + }, + { + "value": "urn:oid:2.4", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + } + }, + { + "fullUrl": "urn:uuid:98678cfe-0455-73c8-d2a1-2ede2d55943f", + "resource": { + "resourceType": "Organization", + "id": "98678cfe-0455-73c8-d2a1-2ede2d55943f", + "name": "Jupiter Hospital", + "address": [ + { + "line": [ + "1619 SOUTH UNIVERSITY" + ], + "city": "MADISON", + "state": "WI", + "postalCode": "53703", + "country": "US" + } + ], + "contact": [ + { + "telecom": [ + { + "value": "000352", + "system": "phone" + }, + { + "value": "00121", + "system": "fax" + } + ], + "purpose": { + "coding": [ + { + "code": "Urgent requirement" + } + ] + } + }, + { + "name": { + "family": "RADIANT", + "given": [ + "LUCY" + ] + } + }, + { + "name": { + "family": "Ben", + "given": [ + "Charles" + ] + } + }, + { + "name": { + "family": "Ben2" + } + } + ], + "telecom": [ + { + "value": "8484", + "system": "email" + }, + { + "value": "717171", + "system": "phone" + }, + { + "value": "021212", + "system": "other" + } + ], + "identifier": [ + { + "value": "1516", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/98678cfe-0455-73c8-d2a1-2ede2d55943f" + } + }, + { + "fullUrl": "urn:uuid:b3ad3a9f-d4f6-4638-0a09-2da771733488", + "resource": { + "resourceType": "Organization", + "id": "b3ad3a9f-d4f6-4638-0a09-2da771733488", + "identifier": [ + { + "value": "test1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test1" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "fullUrl": "urn:uuid:4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11", + "resource": { + "resourceType": "Organization", + "id": "4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11", + "name": "LINDAS TEST ORGANIZATION", + "identifier": [ + { + "value": "SIISCLIENT818" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11" + } + }, + { + "fullUrl": "urn:uuid:76aaad38-1077-6a5c-0c5c-102ec160a60d", + "resource": { + "resourceType": "Practitioner", + "id": "76aaad38-1077-6a5c-0c5c-102ec160a60d", + "identifier": [ + { + "value": "88", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TE", + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Hippo", + "given": [ + "rold", + "H" + ], + "suffix": [ + "V", + "MD" + ], + "prefix": [ + "Dr" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/76aaad38-1077-6a5c-0c5c-102ec160a60d" + } + }, + { + "fullUrl": "urn:uuid:11967e28-8dd4-a112-0fdc-377866bf12a0", + "resource": { + "resourceType": "Organization", + "id": "11967e28-8dd4-a112-0fdc-377866bf12a0", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "2.16.840.1.113883.19", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + } + }, + { + "fullUrl": "urn:uuid:7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "resource": { + "resourceType": "Organization", + "id": "7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "identifier": [ + { + "value": "AccMng", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMng" + }, + { + "value": "1.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + } + }, + { + "fullUrl": "urn:uuid:0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "resource": { + "resourceType": "Organization", + "id": "0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "identifier": [ + { + "value": "PERSONNELt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSONNELt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + } + }, + { + "fullUrl": "urn:uuid:f6775f99-5279-be04-bf81-0906c81f7443", + "resource": { + "resourceType": "Practitioner", + "id": "f6775f99-5279-be04-bf81-0906c81f7443", + "identifier": [ + { + "value": "1122334", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Alaz", + "given": [ + "Mohammed", + "Mahi" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "fullUrl": "urn:uuid:c613d7b2-525f-8c08-a7ac-b2b91486e257", + "resource": { + "resourceType": "Organization", + "id": "c613d7b2-525f-8c08-a7ac-b2b91486e257", + "identifier": [ + { + "value": "TEST", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TEST" + }, + { + "value": "23.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + } + }, + { + "fullUrl": "urn:uuid:04f8cfc8-62ca-12df-63ce-6304ef577d44", + "resource": { + "resourceType": "Practitioner", + "id": "04f8cfc8-62ca-12df-63ce-6304ef577d44", + "identifier": [ + { + "value": "C006", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + }, + "type": { + "coding": [ + { + "code": "BA", + "display": "Bank Account Number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen" + ], + "prefix": [ + "Dr" + ], + "use": "anonymous" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "fullUrl": "urn:uuid:99edcabd-fbeb-7e25-f823-11da8d8ed342", + "resource": { + "resourceType": "Practitioner", + "id": "99edcabd-fbeb-7e25-f823-11da8d8ed342", + "identifier": [ + { + "value": "C008", + "system": "urn:oid:2.8", + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Condoc", + "given": [ + "leen" + ], + "prefix": [ + "Dr" + ], + "use": "temp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "fullUrl": "urn:uuid:b065b233-8738-f1ec-1314-d61e4aac2c9e", + "resource": { + "resourceType": "Practitioner", + "id": "b065b233-8738-f1ec-1314-d61e4aac2c9e", + "identifier": [ + { + "value": "37", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr", + "type": { + "coding": [ + { + "code": "ANC", + "display": "Account number Creditor", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "DISNEY", + "given": [ + "WALT" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "fullUrl": "urn:uuid:9f974d4f-47e8-21a6-e549-4de4599c3764", + "resource": { + "resourceType": "Organization", + "id": "9f974d4f-47e8-21a6-e549-4de4599c3764", + "identifier": [ + { + "value": "T123", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-T123" + }, + { + "value": "urn:oid:r2.3", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + }, + { + "fullUrl": "urn:uuid:84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "resource": { + "resourceType": "Practitioner", + "id": "84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "identifier": [ + { + "value": "Othhel", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "fullUrl": "urn:uuid:24d4bddf-a1c3-4dc8-049b-1dda7e5112b6", + "resource": { + "resourceType": "Organization", + "id": "24d4bddf-a1c3-4dc8-049b-1dda7e5112b6", + "identifier": [ + { + "value": "TE", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TE" + }, + { + "value": "Provider Master.Community Health and Hospitals", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-DNS", + "type": { + "coding": [ + { + "code": "DNS", + "display": "An Internet host name, in accordance with RFC 1035; or an IP address. Either in ASCII or as integers, with periods between components (“dotted” notation).", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/24d4bddf-a1c3-4dc8-049b-1dda7e5112b6" + } + }, + { + "fullUrl": "urn:uuid:36e3aaa4-569a-7d9d-037f-27235ed05701", + "resource": { + "resourceType": "Practitioner", + "id": "36e3aaa4-569a-7d9d-037f-27235ed05701", + "identifier": [ + { + "value": "12188", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-DNS", + "assigner": { + "reference": "Organization/24d4bddf-a1c3-4dc8-049b-1dda7e5112b6" + }, + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Hippocrates", + "given": [ + "Harold", + "H" + ], + "suffix": [ + "IV", + "MD" + ], + "prefix": [ + "Dr" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/36e3aaa4-569a-7d9d-037f-27235ed05701" + } + }, + { + "fullUrl": "urn:uuid:9172e4a0-1ca5-646d-2183-b179f4daa737", + "resource": { + "resourceType": "Location", + "id": "9172e4a0-1ca5-646d-2183-b179f4daa737", + "partOf": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + }, + "name": "HUH AE OMU", + "identifier": [ + { + "value": "urn:oid:9.8", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "fullUrl": "urn:uuid:3913ec4d-6576-5e1a-ac31-e8280583371c", + "resource": { + "resourceType": "Location", + "id": "3913ec4d-6576-5e1a-ac31-e8280583371c", + "partOf": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + }, + "name": "OMU B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "fullUrl": "urn:uuid:804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "resource": { + "resourceType": "Location", + "id": "804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "partOf": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + }, + "name": "Bed 03", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "fullUrl": "urn:uuid:c043880b-0fab-1cb8-14f7-0475282c4d0e", + "resource": { + "resourceType": "Location", + "id": "c043880b-0fab-1cb8-14f7-0475282c4d0e", + "name": "HOMERTON UNIVER", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "fullUrl": "urn:uuid:f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "resource": { + "resourceType": "Location", + "id": "f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "partOf": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + }, + "name": "Homerton UH", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "fullUrl": "urn:uuid:7e38808c-44a8-cb0c-4709-9d6092abc32c", + "resource": { + "resourceType": "Location", + "id": "7e38808c-44a8-cb0c-4709-9d6092abc32c", + "partOf": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + }, + "name": "Floor5", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "fullUrl": "urn:uuid:59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "resource": { + "resourceType": "Location", + "id": "59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "name": "4 East, room 136, bed B 4E", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + } + }, + { + "fullUrl": "urn:uuid:d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "resource": { + "resourceType": "Location", + "id": "d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "partOf": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "name": "136", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + } + }, + { + "fullUrl": "urn:uuid:5783dafa-c6c0-e673-cca4-42087ee1831b", + "resource": { + "resourceType": "Location", + "id": "5783dafa-c6c0-e673-cca4-42087ee1831b", + "partOf": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "name": "B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + } + }, + { + "fullUrl": "urn:uuid:8b39e6e5-78cd-63ab-2441-f43ca5554096", + "resource": { + "resourceType": "Location", + "id": "8b39e6e5-78cd-63ab-2441-f43ca5554096", + "name": "CommunityHospital", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + } + }, + { + "fullUrl": "urn:uuid:42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "resource": { + "resourceType": "Location", + "id": "42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "name": "Homes", + "identifier": [ + { + "value": "22", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/FDK" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + { + "fullUrl": "urn:uuid:84634858-74aa-5cdb-4547-60ec27339ac6", + "resource": { + "resourceType": "Location", + "id": "84634858-74aa-5cdb-4547-60ec27339ac6", + "name": "POC", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + } + }, + { + "fullUrl": "urn:uuid:9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "resource": { + "resourceType": "Location", + "id": "9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "partOf": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "name": "Room-2", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + } + }, + { + "fullUrl": "urn:uuid:35353f20-6254-e794-98ed-8007490447e3", + "resource": { + "resourceType": "Location", + "id": "35353f20-6254-e794-98ed-8007490447e3", + "partOf": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "name": "Bed-103", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/35353f20-6254-e794-98ed-8007490447e3" + } + }, + { + "fullUrl": "urn:uuid:055e10f1-222e-df73-2325-0e4396db1a55", + "resource": { + "resourceType": "Location", + "id": "055e10f1-222e-df73-2325-0e4396db1a55", + "name": "Greenland", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + } + }, + { + "fullUrl": "urn:uuid:1154e6b2-b022-b3be-7dce-2b940ab5376d", + "resource": { + "resourceType": "Location", + "id": "1154e6b2-b022-b3be-7dce-2b940ab5376d", + "name": "Nursing home", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + } + }, + { + "fullUrl": "urn:uuid:08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "resource": { + "resourceType": "Location", + "id": "08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "name": "Rosewood", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + } + }, + { + "fullUrl": "urn:uuid:c7f1b9ec-ffd8-321e-ad87-abafc1c1a333", + "resource": { + "resourceType": "Location", + "id": "c7f1b9ec-ffd8-321e-ad87-abafc1c1a333", + "name": "ROOM1", + "identifier": [ + { + "value": "urn:oid:2.16.840.1.113883.4.642.1.1108", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + } + }, + { + "fullUrl": "urn:uuid:6f159848-5f01-01b3-9594-80fbbe9ab510", + "resource": { + "resourceType": "Location", + "id": "6f159848-5f01-01b3-9594-80fbbe9ab510", + "partOf": { + "reference": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + }, + "name": "BED1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/6f159848-5f01-01b3-9594-80fbbe9ab510" + } + }, + { + "fullUrl": "urn:uuid:4bca6ba2-be65-ef37-3911-03b70a00a3a6", + "resource": { + "resourceType": "Location", + "id": "4bca6ba2-be65-ef37-3911-03b70a00a3a6", + "name": "FACILITY1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + } + }, + { + "fullUrl": "urn:uuid:3b0911cb-4361-cd8d-b188-463af033c699", + "resource": { + "resourceType": "Location", + "id": "3b0911cb-4361-cd8d-b188-463af033c699", + "partOf": { + "reference": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + }, + "name": "BUILDING1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + } + }, + { + "fullUrl": "urn:uuid:0d9c3424-329f-4c95-ee30-ac2da4a35bff", + "resource": { + "resourceType": "Location", + "id": "0d9c3424-329f-4c95-ee30-ac2da4a35bff", + "partOf": { + "reference": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + }, + "name": "FLOOR1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/0d9c3424-329f-4c95-ee30-ac2da4a35bff" + } + }, + { + "fullUrl": "urn:uuid:08314073-410a-3dc7-512c-0f2d206fb59d", + "resource": { + "resourceType": "Organization", + "id": "08314073-410a-3dc7-512c-0f2d206fb59d", + "identifier": [ + { + "value": "Etest", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-Etest" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + }, + { + "fullUrl": "urn:uuid:919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "resource": { + "resourceType": "EpisodeOfCare", + "id": "919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "status": "planned", + "identifier": [ + { + "value": "EOC124", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "diagnosis": [ + { + "condition": { + "reference": "Condition/481123a1-ca9c-c3c8-0284-e6926c3a50d8" + }, + "role": { + "coding": [ + { + "code": "AD", + "display": "Admission Diagnosis", + "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role" + } + ] + }, + "rank": 1 + } + ] + }, + "request": { + "method": "PUT", + "url": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + }, + { + "fullUrl": "urn:uuid:4b192760-03d2-aec4-b0a6-fde323912e1e", + "resource": { + "resourceType": "Encounter", + "id": "4b192760-03d2-aec4-b0a6-fde323912e1e", + "class": { + "code": "PRENC", + "display": "pre-admission", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "status": "planned", + "location": [ + { + "status": "planned", + "location": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "status": "completed", + "location": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/35353f20-6254-e794-98ed-8007490447e3" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/6f159848-5f01-01b3-9594-80fbbe9ab510" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/0d9c3424-329f-4c95-ee30-ac2da4a35bff" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + } + ], + "type": [ + { + "coding": [ + { + "code": "E", + "display": "Emergency", + "system": "http://terminology.hl7.org/CodeSystem/v2-0007" + } + ] + } + ], + "hospitalization": { + "preAdmissionIdentifier": { + "value": "1234567", + "type": { + "coding": [ + { + "code": "ANON", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Anonymous identifier" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + "reAdmission": { + "coding": [ + { + "code": "R", + "display": "Re-admission", + "system": "http://terminology.hl7.org/CodeSystem/v2-0092" + } + ] + }, + "admitSource": { + "coding": [ + { + "code": "NHS Provider-General (inc.A&E-this Hosp)" + } + ] + }, + "dischargeDisposition": { + "coding": [ + { + "code": "Admitted as Inpatient", + "display": "Sample", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ACR" + } + ] + }, + "dietPreference": [ + { + "coding": [ + { + "code": "Vegan", + "display": "Vegetarian" + } + ] + } + ], + "destination": { + "reference": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + "episodeOfCare": [ + { + "reference": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + ], + "participant": [ + { + "type": [ + { + "coding": [ + { + "code": "ATND", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", + "display": "attender" + } + ] + } + ], + "individual": { + "reference": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "CON", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "consultant" + } + ], + "individual": { + "reference": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "ADM", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "admitter" + } + ], + "individual": { + "reference": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "PART", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "Participation" + } + ], + "individual": { + "reference": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/36e3aaa4-569a-7d9d-037f-27235ed05701" + } + } + ], + "serviceType": { + "coding": [ + { + "code": "SUR" + } + ] + }, + "identifier": [ + { + "value": "40007716", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + }, + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ], + "text": "visit number" + } + }, + { + "value": "50", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:r2.3", + "assigner": { + "reference": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + } + ], + "period": { + "start": "2015-02-08T15:54:19+05:30" + }, + "reasonCode": [ + { + "coding": [ + { + "code": "140004", + "display": "Chronic pharyngitis", + "system": "http://snomed.info/sct" + } + ] + } + ], + "length": { + "value": 2, + "unit": "d", + "system": "http://unitsofmeasure.org/" + }, + "meta": { + "security": [ + { + "code": "N", + "display": "normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality" + } + ] + }, + "text": { + "status": "generated", + "div": "

Visit Description: Health Checkup

" + }, + "priority": { + "coding": [ + { + "code": "UR", + "display": "urgent", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActPriority", + "version": "V1.2" + }, + { + "code": "EL", + "display": "elective", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActPriority", + "version": "V1.3" + } + ] + }, + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/encounter-modeOfArrival", + "valueCoding": { + "code": "C", + "display": "Car", + "system": "http://terminology.hl7.org/CodeSystem/v2-0430" + } + } + ], + "diagnosis": [ + { + "condition": { + "reference": "Condition/481123a1-ca9c-c3c8-0284-e6926c3a50d8" + }, + "use": { + "coding": [ + { + "code": "AD", + "display": "Admission Diagnosis", + "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role" + } + ] + }, + "rank": 1 + } + ] + }, + "request": { + "method": "PUT", + "url": "Encounter/4b192760-03d2-aec4-b0a6-fde323912e1e" + } + }, + { + "fullUrl": "urn:uuid:9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "resource": { + "resourceType": "Provenance", + "id": "9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "occurredDateTime": "2021-08-17T18:49:43.004+05:30", + "recorded": "2029-08-01T11:21:24+05:30", + "reason": [ + { + "coding": [ + { + "code": "PATRQT", + "display": "patient requested", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason" + } + ] + } + ], + "agent": [ + { + "who": { + "reference": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + } + ], + "activity": { + "text": "ADT^A05^ADT_A05" + }, + "location": { + "reference": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + }, + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c" + } + }, + { + "fullUrl": "urn:uuid:ef39f581-5e8f-3917-35a9-3443303d9eee", + "resource": { + "resourceType": "Organization", + "id": "ef39f581-5e8f-3917-35a9-3443303d9eee", + "identifier": [ + { + "value": "DRNBR", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-DRNBR" + }, + { + "value": "urn:oid:W1.2", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + } + }, + { + "fullUrl": "urn:uuid:95aea53b-8d49-d57f-d16f-4d14b914f992", + "resource": { + "resourceType": "Practitioner", + "id": "95aea53b-8d49-d57f-d16f-4d14b914f992", + "identifier": [ + { + "value": "C08", + "system": "urn:oid:W1.2", + "assigner": { + "reference": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + }, + "type": { + "coding": [ + { + "code": "ANON", + "display": "Anonymous identifier", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen", + "2ndname" + ], + "suffix": [ + "Jr", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + }, + { + "fullUrl": "urn:uuid:59d5e519-0108-5dd8-adfa-1eef5658009e", + "resource": { + "resourceType": "Location", + "id": "59d5e519-0108-5dd8-adfa-1eef5658009e", + "name": "Cona_Health", + "identifier": [ + { + "value": "urn:oid:1.3.6.1.4.1.44750.1.4", + "system": "urn:ietf:rfc:3986" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "display": "site", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + } + }, + { + "fullUrl": "urn:uuid:396e6ab6-624f-44a8-841c-6e1c4cebd765", + "resource": { + "resourceType": "Practitioner", + "id": "396e6ab6-624f-44a8-841c-6e1c4cebd765", + "identifier": [ + { + "value": "1210" + } + ], + "name": [ + { + "family": "ANES", + "given": [ + "MARK", + "B" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/396e6ab6-624f-44a8-841c-6e1c4cebd765" + } + }, + { + "fullUrl": "urn:uuid:6a01e35c-52c3-892a-2ea0-0a283eb6757b", + "resource": { + "resourceType": "Practitioner", + "id": "6a01e35c-52c3-892a-2ea0-0a283eb6757b", + "identifier": [ + { + "value": "121188", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-L", + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Patrick", + "given": [ + "Harold", + "H" + ], + "suffix": [ + "IV", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/6a01e35c-52c3-892a-2ea0-0a283eb6757b" + } + }, + { + "fullUrl": "urn:uuid:a8fc538f-624b-0cee-df30-6377fabae47c", + "resource": { + "resourceType": "Practitioner", + "id": "a8fc538f-624b-0cee-df30-6377fabae47c", + "identifier": [ + { + "value": "12345689", + "type": { + "coding": [ + { + "code": "MR", + "display": "Medical record number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Everyman2", + "given": [ + "Adam2", + "A" + ], + "suffix": [ + "III", + "PHD" + ], + "prefix": [ + "DR" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/a8fc538f-624b-0cee-df30-6377fabae47c" + } + }, + { + "fullUrl": "urn:uuid:a9c75502-d60a-d89b-5912-f046100cd47e", + "resource": { + "resourceType": "Location", + "id": "a9c75502-d60a-d89b-5912-f046100cd47e", + "name": "OT", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/a9c75502-d60a-d89b-5912-f046100cd47e" + } + }, + { + "fullUrl": "urn:uuid:2e2e33a1-60f8-7e38-c827-fe070237c3fb", + "resource": { + "resourceType": "Procedure", + "id": "2e2e33a1-60f8-7e38-c827-fe070237c3fb", + "status": "unknown", + "identifier": [ + { + "value": "PR1001" + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Procedure/2e2e33a1-60f8-7e38-c827-fe070237c3fb" + } + }, + { + "fullUrl": "urn:uuid:c06db9c2-d07b-bac2-53c2-48ed83dd32b6", + "resource": { + "resourceType": "Procedure", + "id": "c06db9c2-d07b-bac2-53c2-48ed83dd32b6", + "code": { + "coding": [ + { + "code": "76164006", + "display": "Biopsy of colon (procedure)", + "system": "http://snomed.info/sct" + } + ], + "text": "Biopsy of colon, which was part of colonoscopy" + }, + "status": "completed", + "performedDateTime": "2005-01-25T16:10:00+05:30", + "category": { + "coding": [ + { + "code": "D", + "display": "Diagnostic Procedure", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/HL70230" + } + ] + }, + "performer": [ + { + "actor": { + "reference": "Practitioner/396e6ab6-624f-44a8-841c-6e1c4cebd765" + }, + "function": { + "coding": [ + { + "code": "88189002", + "system": "http://snomed.info/sct", + "display": "Anesthesiologist" + } + ], + "text": "Anesthesiologist" + } + }, + { + "actor": { + "reference": "Practitioner/6a01e35c-52c3-892a-2ea0-0a283eb6757b" + }, + "function": { + "coding": [ + { + "code": "304292004", + "system": "http://snomed.info/sct", + "display": "Surgeon" + } + ], + "text": "Surgeon" + } + }, + { + "actor": { + "reference": "Practitioner/a8fc538f-624b-0cee-df30-6377fabae47c" + }, + "function": { + "text": "Procedure Practitioner" + } + } + ], + "reasonCode": [ + { + "coding": [ + { + "code": "799008", + "display": "Sigmoid colon ulcer", + "system": "http://snomed.info/sct" + } + ] + } + ], + "identifier": [ + { + "value": "PR1006" + } + ], + "location": { + "reference": "Location/a9c75502-d60a-d89b-5912-f046100cd47e" + }, + "partOf": [ + { + "reference": "Procedure/2e2e33a1-60f8-7e38-c827-fe070237c3fb" + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Procedure/c06db9c2-d07b-bac2-53c2-48ed83dd32b6" + } + }, + { + "fullUrl": "urn:uuid:3bb64820-2a2b-956c-9f45-125ec102f353", + "resource": { + "resourceType": "Organization", + "id": "3bb64820-2a2b-956c-9f45-125ec102f353", + "name": "TestOrg", + "identifier": [ + { + "value": "Org12", + "type": { + "coding": [ + { + "code": "EI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "contact": [ + { + "name": { + "family": "Green", + "given": [ + "John", + "A" + ], + "suffix": [ + "II", + "MD" + ], + "prefix": [ + "DR" + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + "telecom": [ + { + "value": "898989898", + "system": "fax" + }, + { + "value": "88888888", + "system": "phone" + } + ], + "address": { + "line": [ + "Street1", + "Palkstreet" + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/3bb64820-2a2b-956c-9f45-125ec102f353" + } + }, + { + "fullUrl": "urn:uuid:abdee378-0d3b-337f-a31e-83e002ce92a0", + "resource": { + "resourceType": "RelatedPerson", + "id": "abdee378-0d3b-337f-a31e-83e002ce92a0", + "identifier": [ + { + "value": "1212121", + "type": { + "coding": [ + { + "code": "AND", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Account number debitor" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "12345567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/e76154d7-9084-80e4-6274-c929d7c39880" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "I-123", + "type": { + "coding": [ + { + "code": "BA", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Bank Account Number" + } + ] + } + }, + { + "value": "I-222", + "type": { + "coding": [ + { + "code": "DI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Diner’s Club card" + } + ] + } + }, + { + "value": "Security no-23", + "system": "http://hl7.org/fhir/sid/us-ssn" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "C", + "display": "Emergency Contact", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131", + "version": "9.0" + }, + { + "code": "CHILD", + "display": "child", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode", + "version": "10.0" + } + ] + }, + { + "coding": [ + { + "code": "O", + "display": "Other", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131" + } + ] + }, + { + "coding": [ + { + "code": "MTH", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "period": { + "start": "2021-08-18", + "end": "2021-12-18" + }, + "address": [ + { + "line": [ + "2222", + "HOME", + "STREET", + "Highway" + ], + "city": "GREENSBORO", + "state": "NC", + "postalCode": "27401-1020", + "country": "US", + "use": "billing", + "district": "test", + "period": { + "start": "2000-01-10", + "end": "2005-01-11" + } + }, + { + "line": [ + "111", + "Duck ST" + ], + "city": "Fowl" + }, + { + "line": [ + "Street1", + "Palkstreet" + ] + }, + { + "line": [ + "ST-2" + ] + } + ], + "telecom": [ + { + "value": "5555", + "use": "work", + "system": "email", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "121111", + "use": "home", + "system": "phone" + }, + { + "value": "878777", + "use": "home", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "6666666", + "system": "pager", + "use": "work" + }, + { + "value": "898989898", + "system": "fax" + }, + { + "value": "88888888", + "system": "phone" + }, + { + "value": "777", + "use": "work", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 1 + }, + { + "value": "444444", + "system": "phone" + } + ], + "name": [ + { + "family": "Evan", + "given": [ + "ADAM", + "A" + ], + "suffix": [ + "III", + "MD" + ], + "prefix": [ + "Dr." + ], + "use": "usual" + }, + { + "family": "Green", + "given": [ + "John", + "A" + ], + "suffix": [ + "II", + "MD" + ], + "prefix": [ + "DR" + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official" + } + ], + "gender": "female", + "birthDate": "1962-01-10", + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47" + } + ] + } + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White" + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/abdee378-0d3b-337f-a31e-83e002ce92a0" + } + }, + { + "fullUrl": "urn:uuid:e76154d7-9084-80e4-6274-c929d7c39880", + "resource": { + "resourceType": "Organization", + "id": "e76154d7-9084-80e4-6274-c929d7c39880", + "identifier": [ + { + "value": "T1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-T1" + }, + { + "value": "2.16.840.1.113883.19", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/e76154d7-9084-80e4-6274-c929d7c39880" + } + }, + { + "fullUrl": "urn:uuid:f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "resource": { + "resourceType": "Organization", + "id": "f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "identifier": [ + { + "value": "NTH", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NTH" + }, + { + "value": "rt23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + } + }, + { + "fullUrl": "urn:uuid:4e68b44e-c053-02b1-6d6d-fe816f9fdfec", + "resource": { + "resourceType": "Organization", + "id": "4e68b44e-c053-02b1-6d6d-fe816f9fdfec", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "urn:oid:1.12", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4e68b44e-c053-02b1-6d6d-fe816f9fdfec" + } + }, + { + "fullUrl": "urn:uuid:e82402a9-b2d1-2a28-3250-c099d5a77bf7", + "resource": { + "resourceType": "Organization", + "id": "e82402a9-b2d1-2a28-3250-c099d5a77bf7", + "identifier": [ + { + "value": "PERSt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/e82402a9-b2d1-2a28-3250-c099d5a77bf7" + } + }, + { + "fullUrl": "urn:uuid:ce70e6c3-c190-121d-c251-e4bae5cde6a1", + "resource": { + "resourceType": "Practitioner", + "id": "ce70e6c3-c190-121d-c251-e4bae5cde6a1", + "identifier": [ + { + "value": "1134", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/e82402a9-b2d1-2a28-3250-c099d5a77bf7" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Aly", + "given": [ + "Zafar", + "Mahendra" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/ce70e6c3-c190-121d-c251-e4bae5cde6a1" + } + }, + { + "fullUrl": "urn:uuid:88a53755-c972-6904-b4ce-8884b84ddc2e", + "resource": { + "resourceType": "PractitionerRole", + "id": "88a53755-c972-6904-b4ce-8884b84ddc2e", + "code": [ + { + "coding": [ + { + "code": "ResponsibleObserver", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/ce70e6c3-c190-121d-c251-e4bae5cde6a1" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/88a53755-c972-6904-b4ce-8884b84ddc2e" + } + }, + { + "fullUrl": "urn:uuid:3e0952c6-eea0-8938-96f8-07c224bf1577", + "resource": { + "resourceType": "Practitioner", + "id": "3e0952c6-eea0-8938-96f8-07c224bf1577", + "identifier": [ + { + "value": "2234" + } + ], + "name": [ + { + "family": "Pauly", + "given": [ + "Berrie", + "Raud" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/3e0952c6-eea0-8938-96f8-07c224bf1577" + } + }, + { + "fullUrl": "urn:uuid:bc78e290-ec67-c238-1e05-aefb6b252b0c", + "resource": { + "resourceType": "PractitionerRole", + "id": "bc78e290-ec67-c238-1e05-aefb6b252b0c", + "code": [ + { + "coding": [ + { + "code": "ResponsibleObserver", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/3e0952c6-eea0-8938-96f8-07c224bf1577" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/bc78e290-ec67-c238-1e05-aefb6b252b0c" + } + }, + { + "fullUrl": "urn:uuid:fe0adb86-ebe9-6479-0055-9db8dc1ff99a", + "resource": { + "resourceType": "Device", + "id": "fe0adb86-ebe9-6479-0055-9db8dc1ff99a", + "identifier": [ + { + "value": "EI12.3", + "system": "urn:uuid:UI2", + "type": { + "coding": [ + { + "code": "GUID", + "display": "Same as UUID.", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + }, + { + "system": "urn:oid:UI1", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/fe0adb86-ebe9-6479-0055-9db8dc1ff99a" + } + }, + { + "fullUrl": "urn:uuid:45f65e47-46c4-1a54-f9fb-1321258e79b2", + "resource": { + "resourceType": "Practitioner", + "id": "45f65e47-46c4-1a54-f9fb-1321258e79b2", + "identifier": [ + { + "type": { + "coding": [ + { + "code": "MD-25" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/45f65e47-46c4-1a54-f9fb-1321258e79b2" + } + }, + { + "fullUrl": "urn:uuid:090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3", + "resource": { + "resourceType": "PractitionerRole", + "id": "090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3", + "code": [ + { + "coding": [ + { + "code": "LabMedicalDirector", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/45f65e47-46c4-1a54-f9fb-1321258e79b2" + }, + "organization": { + "reference": "Organization/056aa7c7-6b75-3c67-63c5-cf9604f16d25" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3" + } + }, + { + "fullUrl": "urn:uuid:056aa7c7-6b75-3c67-63c5-cf9604f16d25", + "resource": { + "resourceType": "Organization", + "id": "056aa7c7-6b75-3c67-63c5-cf9604f16d25", + "name": "FairOaks Hspital", + "address": [ + { + "line": [ + "Research Park", + "Fairfax" + ], + "city": "VA", + "state": "22031", + "postalCode": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/056aa7c7-6b75-3c67-63c5-cf9604f16d25" + } + }, + { + "fullUrl": "urn:uuid:07fd2dd3-dbd6-5bb1-cfda-02226795d9a0", + "resource": { + "resourceType": "Observation", + "id": "07fd2dd3-dbd6-5bb1-cfda-02226795d9a0", + "identifier": [ + { + "value": "EI21", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-OII" + }, + { + "type": { + "coding": [ + { + "code": "FILL" + } + ] + } + } + ], + "status": "unknown", + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "component": [ + { + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 60, + "code": "beats/min", + "unit": "beats/min", + "system": "urn:iso:std:iso:3986" + }, + "referenceRange": [ + { + "text": "70-80" + } + ] + }, + { + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 120, + "code": "beats/min", + "unit": "beats/min", + "system": "urn:iso:std:iso:3986" + }, + "referenceRange": [ + { + "text": "70-80" + } + ] + } + ], + "effectiveDateTime": "1999-07-02", + "method": { + "coding": [ + { + "code": "OBS", + "display": "This is test method", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/AS4" + } + ] + }, + "device": { + "reference": "Device/fe0adb86-ebe9-6479-0055-9db8dc1ff99a" + }, + "bodySite": { + "coding": [ + { + "code": "BU", + "display": "Observation site", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/E5" + } + ] + }, + "performer": [ + { + "reference": "PractitionerRole/88a53755-c972-6904-b4ce-8884b84ddc2e" + }, + { + "reference": "PractitionerRole/bc78e290-ec67-c238-1e05-aefb6b252b0c" + }, + { + "reference": "PractitionerRole/090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "A", + "display": "Abnormal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + }, + { + "coding": [ + { + "code": "B", + "display": "Better", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } + ], + "extension": [ + { + "url": "http://example.com/v2-to-fhir-converter/Observation_Status", + "valueCodeableConcept": { + "coding": [ + { + "code": "S", + "display": "Partial", + "system": "http://terminology.hl7.org/CodeSystem/v2-0085" + } + ], + "text": "Partial" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Observation/07fd2dd3-dbd6-5bb1-cfda-02226795d9a0" + } + }, + { + "fullUrl": "urn:uuid:a0adcda8-0b28-d089-1955-c04308d5fe28", + "resource": { + "resourceType": "AllergyIntolerance", + "id": "a0adcda8-0b28-d089-1955-c04308d5fe28", + "category": [ + "environment" + ], + "type": "allergy", + "code": { + "coding": [ + { + "code": "P", + "display": "PENICILLIN", + "system": "http://terminology.hl7.org/CodeSystem/icd-o" + } + ] + }, + "reaction": [ + { + "manifestation": [ + { + "text": "CODE16" + } + ], + "onset": "2021-08-24" + } + ], + "criticality": "low", + "clinicalStatus": { + "coding": [ + { + "code": "active", + "display": "Active", + "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical" + } + ] + }, + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "AllergyIntolerance/a0adcda8-0b28-d089-1955-c04308d5fe28" + } + }, + { + "fullUrl": "urn:uuid:14493a95-7780-ead5-89cc-ad6c3bc31d51", + "resource": { + "resourceType": "Practitioner", + "id": "14493a95-7780-ead5-89cc-ad6c3bc31d51", + "identifier": [ + { + "value": "005454" + } + ], + "name": [ + { + "family": "DIAG", + "given": [ + "ROBIN", + "B" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/14493a95-7780-ead5-89cc-ad6c3bc31d51" + } + }, + { + "fullUrl": "urn:uuid:481123a1-ca9c-c3c8-0284-e6926c3a50d8", + "resource": { + "resourceType": "Condition", + "id": "481123a1-ca9c-c3c8-0284-e6926c3a50d8", + "code": { + "coding": [ + { + "code": "422504002", + "display": "Ischemic stroke(disorder)", + "system": "http://snomed.info/sct" + } + ], + "text": "Stroke" + }, + "onsetDateTime": "2004-01-25T12:50:25+05:30", + "identifier": [ + { + "value": "DI20", + "system": "urn:oid:DTUI", + "type": { + "coding": [ + { + "code": "CLIP", + "display": "Clinical laboratory Improvement Program. Allows for the ability to designate organization identifier as a “CLIP” assigned number (for labs). Used by US Department of Defense.", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "asserter": { + "reference": "Practitioner/14493a95-7780-ead5-89cc-ad6c3bc31d51" + }, + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/condition-assertedDate", + "valueDateTime": "2020-05-01T16:45:15+05:30" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/condition-dueTo", + "valueReference": { + "reference": "Condition/98e2ecfc-6e04-bc30-6624-4f3686214b22" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Condition/481123a1-ca9c-c3c8-0284-e6926c3a50d8" + } + }, + { + "fullUrl": "urn:uuid:98e2ecfc-6e04-bc30-6624-4f3686214b22", + "resource": { + "resourceType": "Condition", + "id": "98e2ecfc-6e04-bc30-6624-4f3686214b22", + "identifier": [ + { + "system": "urn:oid:UI", + "type": { + "coding": [ + { + "code": "CLIP", + "display": "Clinical laboratory Improvement Program. Allows for the ability to designate organization identifier as a “CLIP” assigned number (for labs). Used by US Department of Defense.", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Condition/98e2ecfc-6e04-bc30-6624-4f3686214b22" + } + }, + { + "fullUrl": "urn:uuid:c073f2c1-a818-924b-8881-1481ac88d691", + "resource": { + "resourceType": "Organization", + "id": "c073f2c1-a818-924b-8881-1481ac88d691", + "name": "AuthProvider", + "identifier": [ + { + "value": "A", + "type": { + "coding": [ + { + "code": "LR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/c073f2c1-a818-924b-8881-1481ac88d691" + } + }, + { + "fullUrl": "urn:uuid:e0ba3d6b-452f-7c22-a79d-1035e4b33ceb", + "resource": { + "resourceType": "Practitioner", + "id": "e0ba3d6b-452f-7c22-a79d-1035e4b33ceb", + "identifier": [ + { + "value": "114", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-2.3", + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Beverly", + "given": [ + "Crusher", + "An" + ], + "suffix": [ + "Mr", + "AHP", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/e0ba3d6b-452f-7c22-a79d-1035e4b33ceb" + } + }, + { + "fullUrl": "urn:uuid:739ae409-c591-1a59-32ad-d2ef1b937b0f", + "resource": { + "resourceType": "ServiceRequest", + "id": "739ae409-c591-1a59-32ad-d2ef1b937b0f", + "status": "on-hold", + "intent": "order", + "identifier": [ + { + "value": "123-1", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-name" + }, + { + "value": "123-2", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-Testname" + } + ], + "authoredOn": "1990-05-01T12:16:00+05:30", + "performer": [ + { + "reference": "Organization/c073f2c1-a818-924b-8881-1481ac88d691" + }, + { + "reference": "Practitioner/e0ba3d6b-452f-7c22-a79d-1035e4b33ceb" + } + ], + "performerType": { + "coding": [ + { + "code": "EXTERNAL" + } + ] + }, + "note": [ + { + "text": "Check for metastatic disease" + } + ], + "priority": "asap", + "reasonCode": [ + { + "coding": [ + { + "code": "R-1", + "display": "Reason", + "system": "http://www.ama-assn.org/go/cpt" + } + ], + "text": "Patient has a spinal fracture" + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "ServiceRequest/739ae409-c591-1a59-32ad-d2ef1b937b0f" + } + }, + { + "fullUrl": "urn:uuid:dfab6985-a691-c4f5-d2b2-6481fdfd59e4", + "resource": { + "resourceType": "Coverage", + "id": "dfab6985-a691-c4f5-d2b2-6481fdfd59e4", + "class": [ + { + "value": "BAV", + "name": "Blue Advantage HMO", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/coverage-class", + "code": "plan", + "display": "Plan" + } + ] + } + }, + { + "value": "PUBSUMB", + "name": "SelfPay", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/coverage-class", + "code": "group", + "display": "Group" + } + ] + } + } + ], + "network": "Blue Advantage HMO", + "period": { + "start": "1989-10-01", + "end": "2050-10-01" + }, + "type": { + "coding": [ + { + "code": "HMO", + "display": "health maintenance organization policy", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + } + ] + }, + "identifier": [ + { + "value": "PN-145", + "type": { + "coding": [ + { + "code": "PLN", + "display": "Policy Number", + "system": "http://example.com/CodeSystem/additional-identifier" + } + ] + }, + "system": "http://www.examplehealthplan.com/fhir/policyidentifier" + }, + { + "value": "HMO-12345", + "type": { + "coding": [ + { + "code": "NI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "National unique individual identifier" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.3" + }, + { + "value": "Medicare-12345", + "type": { + "coding": [ + { + "code": "MC", + "display": "Patient's Medicare number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-medicare" + }, + { + "value": "MCN-008", + "type": { + "coding": [ + { + "code": "MA", + "display": "Patient Medicaid number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/identifier-medicaid" + }, + { + "value": "PNM1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/1fca4c8f-7562-b755-9a05-5f0f49096e5b" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "costToBeneficiary": [ + { + "type": { + "coding": [ + { + "code": "DC", + "display": "direct unit cost", + "system": "http://terminology.hl7.org/CodeSystem/v2-0205" + } + ] + }, + "valueMoney": { + "value": 150, + "currency": "USD" + } + } + ], + "subscriberId": "HMO-12345", + "status": "active", + "beneficiary": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "payor": [ + { + "reference": "Organization/04a2a5f2-c971-1e42-e788-250ea487a889" + } + ], + "policyHolder": { + "reference": "Organization/4829e288-ac03-22cc-c65e-922004275fd0" + }, + "subscriber": { + "reference": "RelatedPerson/fd1eed45-4ccb-bb7c-d157-58eb0366d777" + }, + "relationship": { + "coding": [ + { + "code": "spouse", + "display": "Spouse", + "system": "http://terminology.hl7.org/CodeSystem/subscriber-relationship" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Coverage/dfab6985-a691-c4f5-d2b2-6481fdfd59e4" + } + }, + { + "fullUrl": "urn:uuid:04a2a5f2-c971-1e42-e788-250ea487a889", + "resource": { + "resourceType": "Organization", + "id": "04a2a5f2-c971-1e42-e788-250ea487a889", + "address": [ + { + "line": [ + "1979 MILKY WAY" + ], + "city": "VERONA", + "state": "WI", + "postalCode": "53593", + "country": "US" + } + ], + "contact": [ + { + "name": { + "family": "Henry", + "given": [ + "Rony", + "A" + ], + "suffix": [ + "III", + "MD" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1925-10-12" + } + } + } + ], + "telecom": [ + { + "value": "(555)555-5555", + "system": "phone" + } + ], + "identifier": [ + { + "value": "IC-1.31", + "type": { + "coding": [ + { + "code": "NIIP", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "National Insurance Payor Identifier (Payor)" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.1", + "period": { + "start": "1929-10-11", + "end": "1929-10-12" + } + } + ], + "name": "Blue Cross Blue Shield of Texas" + }, + "request": { + "method": "PUT", + "url": "Organization/04a2a5f2-c971-1e42-e788-250ea487a889" + } + }, + { + "fullUrl": "urn:uuid:4829e288-ac03-22cc-c65e-922004275fd0", + "resource": { + "resourceType": "Organization", + "id": "4829e288-ac03-22cc-c65e-922004275fd0", + "address": [ + { + "line": [ + "2000 MILKY WAY" + ], + "city": "VERONA", + "state": "WI", + "postalCode": "53593", + "country": "US" + } + ], + "name": "Sam P. Hil", + "contact": [ + { + "name": { + "family": "Richard", + "given": [ + "Paul" + ] + }, + "telecom": [ + { + "value": "254622222", + "system": "phone" + } + ] + } + ], + "telecom": [ + { + "value": "555777888", + "system": "fax" + }, + { + "system": "phone" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4829e288-ac03-22cc-c65e-922004275fd0" + } + }, + { + "fullUrl": "urn:uuid:fd1eed45-4ccb-bb7c-d157-58eb0366d777", + "resource": { + "resourceType": "RelatedPerson", + "id": "fd1eed45-4ccb-bb7c-d157-58eb0366d777", + "identifier": [ + { + "value": "HMO-12345", + "type": { + "coding": [ + { + "code": "NI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "National unique individual identifier" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.3" + }, + { + "value": "1117", + "type": { + "coding": [ + { + "code": "EI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Employee number" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.4" + }, + { + "value": "1118", + "type": { + "coding": [ + { + "code": "BC", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Bank Card Number" + } + ] + } + }, + { + "value": "425-57-9745", + "type": { + "coding": [ + { + "code": "SS", + "display": "Social Security number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "SPS", + "display": "spouse", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "address": [ + { + "line": [ + "3857 Velvet Treasure Terrace" + ], + "city": "Midnight", + "state": "NC", + "postalCode": "27878", + "country": "US" + } + ], + "name": [ + { + "family": "Doe", + "given": [ + "Rosallie", + "John" + ], + "suffix": [ + "III", + "Bachelors" + ], + "prefix": [ + "Mrs." + ], + "use": "official" + } + ], + "gender": "female", + "birthDate": "1975-02-28", + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "telecom": [ + { + "value": "0005245", + "use": "work", + "system": "email" + }, + { + "system": "phone" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47" + } + ] + }, + "preferred": true + } + ] + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/fd1eed45-4ccb-bb7c-d157-58eb0366d777" + } + }, + { + "fullUrl": "urn:uuid:1fca4c8f-7562-b755-9a05-5f0f49096e5b", + "resource": { + "resourceType": "Organization", + "id": "1fca4c8f-7562-b755-9a05-5f0f49096e5b", + "identifier": [ + { + "value": "PM", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PM" + }, + { + "value": "2.6.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/1fca4c8f-7562-b755-9a05-5f0f49096e5b" + } + } + ] +} \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A08/ADT-A08-expected-2.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A08/ADT-A08-expected-2.json new file mode 100644 index 000000000..77526fb11 --- /dev/null +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A08/ADT-A08-expected-2.json @@ -0,0 +1,2130 @@ +{ + "resourceType": "Bundle", + "type": "batch", + "timestamp": "1989-08-18T14:41:00+05:30", + "identifier": { + "value": "MSG00001" + }, + "id": "513a3d06-5e87-6fbc-ad1b-170ab430499f", + "entry": [ + { + "fullUrl": "urn:uuid:b4ca189b-51ae-33df-cbe2-559b4423a321", + "resource": { + "resourceType": "MessageHeader", + "id": "b4ca189b-51ae-33df-cbe2-559b4423a321", + "source": { + "name": "24GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.20" + }, + "destination": [ + { + "name": "25GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.23", + "receiver": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + } + ], + "meta": { + "security": [ + { + "display": "SECURITY", + "system": "http://example.com/v2-to-fhirconverter/security-label" + } + ], + "tag": [ + { + "code": "P", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "A08", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ADT^A08^ADT_A08" + }, + "language": "en-US", + "sender": { + "reference": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + }, + "responsible": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + "request": { + "method": "PUT", + "url": "MessageHeader/b4ca189b-51ae-33df-cbe2-559b4423a321" + } + }, + { + "fullUrl": "urn:uuid:f65d2168-02c8-1897-210d-361176172856", + "resource": { + "resourceType": "Provenance", + "id": "f65d2168-02c8-1897-210d-361176172856", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T13:01:37.828Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ADT_A08.

" + }, + "occurredDateTime": "1989-08-18T14:41:00+05:30", + "recorded": "1989-08-18T14:41:00+05:30", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + } + ], + "activity": { + "coding": [ + { + "display": "ADT^A08^ADT_A08" + } + ] + }, + "entity": [ + { + "role": "source", + "what": { + "reference": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + } + ], + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/f65d2168-02c8-1897-210d-361176172856" + } + }, + { + "fullUrl": "urn:uuid:4356fb81-6ecd-2d70-57b1-47812638e785", + "resource": { + "resourceType": "Organization", + "id": "4356fb81-6ecd-2d70-57b1-47812638e785", + "identifier": [ + { + "value": "GHHSFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHSFacility" + }, + { + "value": "urn:oid:2.16.840.1.122848.1.30", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + } + }, + { + "fullUrl": "urn:uuid:62781ad6-3896-cb63-0178-ead0c4a432b5", + "resource": { + "resourceType": "Organization", + "id": "62781ad6-3896-cb63-0178-ead0c4a432b5", + "identifier": [ + { + "value": "GHHRFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHRFacility" + }, + { + "value": "urn:oid:2.16.840.1.1122848.1.32", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/62781ad6-3896-cb63-0178-ead0c4a432b5" + } + }, + { + "fullUrl": "urn:uuid:33532a82-d220-4c0d-1abe-53e48951c201", + "resource": { + "resourceType": "Organization", + "id": "33532a82-d220-4c0d-1abe-53e48951c201", + "name": "22 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + { + "fullUrl": "urn:uuid:527280c1-34d1-c639-e9ba-61986d28e266", + "resource": { + "resourceType": "Organization", + "id": "527280c1-34d1-c639-e9ba-61986d28e266", + "name": "23 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + }, + { + "fullUrl": "urn:uuid:503eb873-22fb-8199-ae28-3604ad59fe13", + "resource": { + "resourceType": "Device", + "id": "503eb873-22fb-8199-ae28-3604ad59fe13", + "identifier": [ + { + "value": "ADTApp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + }, + { + "fullUrl": "urn:uuid:9e909e52-61a1-be50-1878-a12ef8c36346", + "resource": { + "resourceType": "Patient", + "id": "9e909e52-61a1-be50-1878-a12ef8c36346", + "identifier": [ + { + "value": "1234567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "PATID1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "value": "123456789", + "type": { + "coding": [ + { + "code": "SS", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Social Security number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-USSSA" + }, + { + "value": "PATID567", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test2" + }, + { + "value": "PSSN123121234", + "type": { + "coding": [ + { + "code": "SB", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + }, + { + "value": "DLN-123", + "type": { + "coding": [ + { + "code": "DL" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/US", + "period": { + "end": "2001-01-23" + } + } + ], + "name": [ + { + "family": "EVERYMAN", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official", + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + }, + { + "family": "elbert", + "given": [ + "Son" + ] + } + ], + "birthDate": "1988-08-18", + "_birthDate": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime": "1988-08-18T14:41:00+05:30" + } + ] + }, + "gender": "male", + "address": [ + { + "line": [ + "1000", + "Hospital Lane", + "Ste. 123", + "Near Highway" + ], + "city": "Ann Arbor ", + "state": "MI", + "postalCode": "99999", + "country": "USA", + "type": "postal", + "district": "W", + "period": { + "start": "2000-01-10", + "end": "2000-01-20" + } + } + ], + "telecom": [ + { + "value": "2222", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18, + "use": "home" + }, + { + "value": "12121212", + "system": "phone", + "use": "home" + }, + { + "value": "7777", + "system": "phone", + "use": "work" + }, + { + "value": "1111", + "system": "other", + "use": "work" + }, + { + "value": "89898989", + "use": "work", + "system": "email" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47", + "version": "v2" + }, + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47", + "version": "v2.1" + } + ], + "text": "TextInEnglish" + }, + "preferred": true + } + ], + "maritalStatus": { + "coding": [ + { + "code": "M", + "display": "Married", + "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" + } + ] + }, + "multipleBirthInteger": 2, + "deceasedDateTime": "2008-08-25T15:31:30+05:30", + "meta": { + "lastUpdated": "2005-01-10T04:05:14+05:30" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "ombCategory", + "valueCoding": { + "code": "2028-9", + "display": "Asian", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White+Asian" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + "valueString": "SMITH--Angela--L" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", + "valueAddress": { + "text": "St. Francis Community Hospital of Lower South Side" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-religion", + "valueCodeableConcept": { + "coding": [ + { + "code": "1002", + "display": "African Religions", + "system": "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2186-5", + "display": "Non Hispanic or Latino", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "Non Hispanic or Latino" + } + ] + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/VeteranMilitaryStatus", + "valueCodeableConcept": { + "coding": [ + { + "code": "Vet123", + "display": "retired", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ART" + } + ], + "text": "retired" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-animal", + "extension": [ + { + "url": "species", + "valueCodeableConcept": { + "coding": [ + { + "code": "125097000", + "display": "Goat", + "system": "http://snomed.info/sct" + } + ], + "text": "Goat" + } + }, + { + "url": "breed", + "valueCodeableConcept": { + "coding": [ + { + "code": "4880003", + "display": "Beagle", + "system": "http://snomed.info/sct" + } + ], + "text": "Beagle" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "US", + "display": "United States of America", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "United States of America" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "CA", + "display": "Canada", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Canada" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-nationality", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "BT", + "display": "Bhutan", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Bhutan" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-importance", + "valueCodeableConcept": { + "coding": [ + { + "code": "VIP", + "display": "Very Important Person", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/L", + "version": "v1.1" + }, + { + "code": "IMP", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/DCM", + "version": "v1.2" + } + ], + "text": "Inportant Person" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + { + "fullUrl": "urn:uuid:78295402-9b84-4829-b945-502ab3402de5", + "resource": { + "resourceType": "Account", + "id": "78295402-9b84-4829-b945-502ab3402de5", + "identifier": [ + { + "value": "4000776", + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Visit number" + } + ] + }, + "system": "urn:oid:2.4", + "assigner": { + "reference": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/78295402-9b84-4829-b945-502ab3402de5" + } + }, + { + "fullUrl": "urn:uuid:9d4c8327-8a28-8152-1898-8251baa707b7", + "resource": { + "resourceType": "Organization", + "id": "9d4c8327-8a28-8152-1898-8251baa707b7", + "identifier": [ + { + "value": "AccMgr", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr" + }, + { + "value": "urn:oid:2.4", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + } + }, + { + "fullUrl": "urn:uuid:b3ad3a9f-d4f6-4638-0a09-2da771733488", + "resource": { + "resourceType": "Organization", + "id": "b3ad3a9f-d4f6-4638-0a09-2da771733488", + "identifier": [ + { + "value": "test1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test1" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "fullUrl": "urn:uuid:f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "resource": { + "resourceType": "Organization", + "id": "f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "identifier": [ + { + "value": "NTH", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NTH" + }, + { + "value": "rt23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + } + }, + { + "fullUrl": "urn:uuid:62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "resource": { + "resourceType": "RelatedPerson", + "id": "62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "identifier": [ + { + "value": "1212121", + "type": { + "coding": [ + { + "code": "AND", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Account number debitor" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "relationship": [ + { + "coding": [ + { + "code": "MTH", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/62b2e1ee-a272-4ffe-692e-a1fbfd49af6a" + } + }, + { + "fullUrl": "urn:uuid:11967e28-8dd4-a112-0fdc-377866bf12a0", + "resource": { + "resourceType": "Organization", + "id": "11967e28-8dd4-a112-0fdc-377866bf12a0", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "2.16.840.1.113883.19", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + } + }, + { + "fullUrl": "urn:uuid:7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "resource": { + "resourceType": "Organization", + "id": "7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "identifier": [ + { + "value": "AccMng", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMng" + }, + { + "value": "1.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + } + }, + { + "fullUrl": "urn:uuid:0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "resource": { + "resourceType": "Organization", + "id": "0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "identifier": [ + { + "value": "PERSONNELt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSONNELt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + } + }, + { + "fullUrl": "urn:uuid:f6775f99-5279-be04-bf81-0906c81f7443", + "resource": { + "resourceType": "Practitioner", + "id": "f6775f99-5279-be04-bf81-0906c81f7443", + "identifier": [ + { + "value": "1122334", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Alaz", + "given": [ + "Mohammed", + "Mahi" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "fullUrl": "urn:uuid:c613d7b2-525f-8c08-a7ac-b2b91486e257", + "resource": { + "resourceType": "Organization", + "id": "c613d7b2-525f-8c08-a7ac-b2b91486e257", + "identifier": [ + { + "value": "TEST", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TEST" + }, + { + "value": "23.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + } + }, + { + "fullUrl": "urn:uuid:04f8cfc8-62ca-12df-63ce-6304ef577d44", + "resource": { + "resourceType": "Practitioner", + "id": "04f8cfc8-62ca-12df-63ce-6304ef577d44", + "identifier": [ + { + "value": "C006", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + }, + "type": { + "coding": [ + { + "code": "BA", + "display": "Bank Account Number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen" + ], + "prefix": [ + "Dr" + ], + "use": "anonymous" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "fullUrl": "urn:uuid:99edcabd-fbeb-7e25-f823-11da8d8ed342", + "resource": { + "resourceType": "Practitioner", + "id": "99edcabd-fbeb-7e25-f823-11da8d8ed342", + "identifier": [ + { + "value": "C008", + "system": "urn:oid:2.8", + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Condoc", + "given": [ + "leen" + ], + "prefix": [ + "Dr" + ], + "use": "temp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "fullUrl": "urn:uuid:b065b233-8738-f1ec-1314-d61e4aac2c9e", + "resource": { + "resourceType": "Practitioner", + "id": "b065b233-8738-f1ec-1314-d61e4aac2c9e", + "identifier": [ + { + "value": "37", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr", + "type": { + "coding": [ + { + "code": "ANC", + "display": "Account number Creditor", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "DISNEY", + "given": [ + "WALT" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "fullUrl": "urn:uuid:9f974d4f-47e8-21a6-e549-4de4599c3764", + "resource": { + "resourceType": "Organization", + "id": "9f974d4f-47e8-21a6-e549-4de4599c3764", + "identifier": [ + { + "value": "T123", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-T123" + }, + { + "value": "urn:oid:r2.3", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + }, + { + "fullUrl": "urn:uuid:84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "resource": { + "resourceType": "Practitioner", + "id": "84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "identifier": [ + { + "value": "Othhel", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "fullUrl": "urn:uuid:9172e4a0-1ca5-646d-2183-b179f4daa737", + "resource": { + "resourceType": "Location", + "id": "9172e4a0-1ca5-646d-2183-b179f4daa737", + "partOf": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + }, + "name": "HUH AE OMU", + "identifier": [ + { + "value": "urn:oid:9.8", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "fullUrl": "urn:uuid:3913ec4d-6576-5e1a-ac31-e8280583371c", + "resource": { + "resourceType": "Location", + "id": "3913ec4d-6576-5e1a-ac31-e8280583371c", + "partOf": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + }, + "name": "OMU B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "fullUrl": "urn:uuid:804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "resource": { + "resourceType": "Location", + "id": "804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "partOf": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + }, + "name": "Bed 03", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "fullUrl": "urn:uuid:c043880b-0fab-1cb8-14f7-0475282c4d0e", + "resource": { + "resourceType": "Location", + "id": "c043880b-0fab-1cb8-14f7-0475282c4d0e", + "name": "HOMERTON UNIVER", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "fullUrl": "urn:uuid:f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "resource": { + "resourceType": "Location", + "id": "f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "partOf": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + }, + "name": "Homerton UH", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "fullUrl": "urn:uuid:7e38808c-44a8-cb0c-4709-9d6092abc32c", + "resource": { + "resourceType": "Location", + "id": "7e38808c-44a8-cb0c-4709-9d6092abc32c", + "partOf": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + }, + "name": "Floor5", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "fullUrl": "urn:uuid:59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "resource": { + "resourceType": "Location", + "id": "59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "name": "4 East, room 136, bed B 4E", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + } + }, + { + "fullUrl": "urn:uuid:d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "resource": { + "resourceType": "Location", + "id": "d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "partOf": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "name": "136", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + } + }, + { + "fullUrl": "urn:uuid:5783dafa-c6c0-e673-cca4-42087ee1831b", + "resource": { + "resourceType": "Location", + "id": "5783dafa-c6c0-e673-cca4-42087ee1831b", + "partOf": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "name": "B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + } + }, + { + "fullUrl": "urn:uuid:8b39e6e5-78cd-63ab-2441-f43ca5554096", + "resource": { + "resourceType": "Location", + "id": "8b39e6e5-78cd-63ab-2441-f43ca5554096", + "name": "CommunityHospital", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + } + }, + { + "fullUrl": "urn:uuid:42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "resource": { + "resourceType": "Location", + "id": "42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "name": "Homes", + "identifier": [ + { + "value": "22", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/FDK" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + { + "fullUrl": "urn:uuid:84634858-74aa-5cdb-4547-60ec27339ac6", + "resource": { + "resourceType": "Location", + "id": "84634858-74aa-5cdb-4547-60ec27339ac6", + "name": "POC", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + } + }, + { + "fullUrl": "urn:uuid:9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "resource": { + "resourceType": "Location", + "id": "9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "partOf": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "name": "Room-2", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + } + }, + { + "fullUrl": "urn:uuid:35353f20-6254-e794-98ed-8007490447e3", + "resource": { + "resourceType": "Location", + "id": "35353f20-6254-e794-98ed-8007490447e3", + "partOf": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "name": "Bed-103", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/35353f20-6254-e794-98ed-8007490447e3" + } + }, + { + "fullUrl": "urn:uuid:055e10f1-222e-df73-2325-0e4396db1a55", + "resource": { + "resourceType": "Location", + "id": "055e10f1-222e-df73-2325-0e4396db1a55", + "name": "Greenland", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + } + }, + { + "fullUrl": "urn:uuid:1154e6b2-b022-b3be-7dce-2b940ab5376d", + "resource": { + "resourceType": "Location", + "id": "1154e6b2-b022-b3be-7dce-2b940ab5376d", + "name": "Nursing home", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + } + }, + { + "fullUrl": "urn:uuid:08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "resource": { + "resourceType": "Location", + "id": "08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "name": "Rosewood", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + } + }, + { + "fullUrl": "urn:uuid:08314073-410a-3dc7-512c-0f2d206fb59d", + "resource": { + "resourceType": "Organization", + "id": "08314073-410a-3dc7-512c-0f2d206fb59d", + "identifier": [ + { + "value": "Etest", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-Etest" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + }, + { + "fullUrl": "urn:uuid:919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "resource": { + "resourceType": "EpisodeOfCare", + "id": "919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "status": "planned", + "identifier": [ + { + "value": "EOC124", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + }, + { + "fullUrl": "urn:uuid:4b192760-03d2-aec4-b0a6-fde323912e1e", + "resource": { + "resourceType": "Encounter", + "id": "4b192760-03d2-aec4-b0a6-fde323912e1e", + "class": { + "code": "PRENC", + "display": "pre-admission", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "status": "planned", + "location": [ + { + "status": "planned", + "location": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "status": "completed", + "location": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/35353f20-6254-e794-98ed-8007490447e3" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + } + ], + "type": [ + { + "coding": [ + { + "code": "E", + "display": "Emergency", + "system": "http://terminology.hl7.org/CodeSystem/v2-0007" + } + ] + } + ], + "hospitalization": { + "preAdmissionIdentifier": { + "value": "1234567", + "type": { + "coding": [ + { + "code": "ANON", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Anonymous identifier" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + "reAdmission": { + "coding": [ + { + "code": "R", + "display": "Re-admission", + "system": "http://terminology.hl7.org/CodeSystem/v2-0092" + } + ] + }, + "admitSource": { + "coding": [ + { + "code": "NHS Provider-General (inc.A&E-this Hosp)" + } + ] + }, + "dischargeDisposition": { + "coding": [ + { + "code": "Admitted as Inpatient", + "display": "Sample", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ACR" + } + ] + }, + "dietPreference": [ + { + "coding": [ + { + "code": "Vegan", + "display": "Vegetarian" + } + ] + } + ], + "destination": { + "reference": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + "episodeOfCare": [ + { + "reference": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + ], + "participant": [ + { + "type": [ + { + "coding": [ + { + "code": "ATND", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", + "display": "attender" + } + ] + } + ], + "individual": { + "reference": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "CON", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "consultant" + } + ], + "individual": { + "reference": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "ADM", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "admitter" + } + ], + "individual": { + "reference": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "PART", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "Participation" + } + ], + "individual": { + "reference": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + } + ], + "serviceType": { + "coding": [ + { + "code": "SUR" + } + ] + }, + "identifier": [ + { + "value": "40007716", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + }, + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ], + "text": "visit number" + } + }, + { + "value": "50", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:r2.3", + "assigner": { + "reference": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + } + ], + "period": { + "start": "2015-02-08T15:54:19+05:30" + }, + "text": { + "status": "generated", + "div": "

Visit Description:

" + }, + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Encounter/4b192760-03d2-aec4-b0a6-fde323912e1e" + } + }, + { + "fullUrl": "urn:uuid:9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "resource": { + "resourceType": "Provenance", + "id": "9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "occurredDateTime": "2021-08-17T18:49:43.004+05:30", + "recorded": "2029-08-01T11:21:24+05:30", + "reason": [ + { + "coding": [ + { + "code": "PATRQT", + "display": "patient requested", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason" + } + ] + } + ], + "agent": [ + { + "who": { + "reference": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + } + ], + "activity": { + "text": "ADT^A08^ADT_A08" + }, + "location": { + "reference": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + }, + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c" + } + }, + { + "fullUrl": "urn:uuid:ef39f581-5e8f-3917-35a9-3443303d9eee", + "resource": { + "resourceType": "Organization", + "id": "ef39f581-5e8f-3917-35a9-3443303d9eee", + "identifier": [ + { + "value": "DRNBR", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-DRNBR" + }, + { + "value": "urn:oid:W1.2", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + } + }, + { + "fullUrl": "urn:uuid:95aea53b-8d49-d57f-d16f-4d14b914f992", + "resource": { + "resourceType": "Practitioner", + "id": "95aea53b-8d49-d57f-d16f-4d14b914f992", + "identifier": [ + { + "value": "C08", + "system": "urn:oid:W1.2", + "assigner": { + "reference": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + }, + "type": { + "coding": [ + { + "code": "ANON", + "display": "Anonymous identifier", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen", + "2ndname" + ], + "suffix": [ + "Jr", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + }, + { + "fullUrl": "urn:uuid:59d5e519-0108-5dd8-adfa-1eef5658009e", + "resource": { + "resourceType": "Location", + "id": "59d5e519-0108-5dd8-adfa-1eef5658009e", + "name": "Cona_Health", + "identifier": [ + { + "value": "urn:oid:1.3.6.1.4.1.44750.1.4", + "system": "urn:ietf:rfc:3986" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "display": "site", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + } + } + ] +} \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A08/ADT-A08-expected.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A08/ADT-A08-expected.json new file mode 100644 index 000000000..0e5ab8b05 --- /dev/null +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A08/ADT-A08-expected.json @@ -0,0 +1,4748 @@ +{ + "resourceType": "Bundle", + "type": "batch", + "timestamp": "1989-08-18T14:41:00+05:30", + "identifier": { + "value": "MSG00001" + }, + "id": "513a3d06-5e87-6fbc-ad1b-170ab430499f", + "entry": [ + { + "fullUrl": "urn:uuid:b4ca189b-51ae-33df-cbe2-559b4423a321", + "resource": { + "resourceType": "MessageHeader", + "id": "b4ca189b-51ae-33df-cbe2-559b4423a321", + "source": { + "name": "24GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.20", + "version": "2.4.3.52854", + "software": "Rhapsody" + }, + "destination": [ + { + "name": "25GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.23", + "receiver": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + } + ], + "meta": { + "security": [ + { + "display": "SECURITY", + "system": "http://example.com/v2-to-fhirconverter/security-label" + } + ], + "tag": [ + { + "code": "P", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "A08", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ADT^A08^ADT_A08" + }, + "language": "en-US", + "sender": { + "reference": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + }, + "responsible": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + "request": { + "method": "PUT", + "url": "MessageHeader/b4ca189b-51ae-33df-cbe2-559b4423a321" + } + }, + { + "fullUrl": "urn:uuid:f65d2168-02c8-1897-210d-361176172856", + "resource": { + "resourceType": "Provenance", + "id": "f65d2168-02c8-1897-210d-361176172856", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T13:17:21.058Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ADT_A08.

" + }, + "occurredDateTime": "1989-08-18T14:41:00+05:30", + "recorded": "1989-08-18T14:41:00+05:30", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + } + ], + "activity": { + "coding": [ + { + "display": "ADT^A08^ADT_A08" + } + ] + }, + "entity": [ + { + "role": "source", + "what": { + "reference": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + } + ], + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/f65d2168-02c8-1897-210d-361176172856" + } + }, + { + "fullUrl": "urn:uuid:4356fb81-6ecd-2d70-57b1-47812638e785", + "resource": { + "resourceType": "Organization", + "id": "4356fb81-6ecd-2d70-57b1-47812638e785", + "identifier": [ + { + "value": "GHHSFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHSFacility" + }, + { + "value": "urn:oid:2.16.840.1.122848.1.30", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + } + }, + { + "fullUrl": "urn:uuid:62781ad6-3896-cb63-0178-ead0c4a432b5", + "resource": { + "resourceType": "Organization", + "id": "62781ad6-3896-cb63-0178-ead0c4a432b5", + "identifier": [ + { + "value": "GHHRFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHRFacility" + }, + { + "value": "urn:oid:2.16.840.1.1122848.1.32", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/62781ad6-3896-cb63-0178-ead0c4a432b5" + } + }, + { + "fullUrl": "urn:uuid:33532a82-d220-4c0d-1abe-53e48951c201", + "resource": { + "resourceType": "Organization", + "id": "33532a82-d220-4c0d-1abe-53e48951c201", + "name": "22 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + { + "fullUrl": "urn:uuid:527280c1-34d1-c639-e9ba-61986d28e266", + "resource": { + "resourceType": "Organization", + "id": "527280c1-34d1-c639-e9ba-61986d28e266", + "name": "23 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + }, + { + "fullUrl": "urn:uuid:503eb873-22fb-8199-ae28-3604ad59fe13", + "resource": { + "resourceType": "Device", + "id": "503eb873-22fb-8199-ae28-3604ad59fe13", + "identifier": [ + { + "value": "ADTApp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + }, + { + "fullUrl": "urn:uuid:4b549918-a84d-cdaf-e150-c773a5d306e5", + "resource": { + "resourceType": "Device", + "id": "4b549918-a84d-cdaf-e150-c773a5d306e5", + "manufacturer": "Orion", + "deviceName": [ + { + "name": "Rhapsody", + "type": "manufacturer-name" + } + ], + "version": [ + { + "value": "2.4.3.52854" + } + ], + "modelNumber": "2.4.3", + "note": [ + { + "text": "Testactivity" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/4b549918-a84d-cdaf-e150-c773a5d306e5" + } + }, + { + "fullUrl": "urn:uuid:9e909e52-61a1-be50-1878-a12ef8c36346", + "resource": { + "resourceType": "Patient", + "id": "9e909e52-61a1-be50-1878-a12ef8c36346", + "identifier": [ + { + "value": "1234567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "PATID1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "value": "123456789", + "type": { + "coding": [ + { + "code": "SS", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Social Security number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-USSSA" + }, + { + "value": "PATID567", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test2" + }, + { + "value": "PSSN123121234", + "type": { + "coding": [ + { + "code": "SB", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + }, + { + "value": "DLN-123", + "type": { + "coding": [ + { + "code": "DL" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/US", + "period": { + "end": "2001-01-23" + } + }, + { + "value": "1516", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "55121", + "type": { + "coding": [ + { + "code": "FI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Facility ID" + } + ] + } + }, + { + "value": "DB123", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:1.12", + "assigner": { + "reference": "Organization/4e68b44e-c053-02b1-6d6d-fe816f9fdfec" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "Medicare-12345", + "type": { + "coding": [ + { + "code": "MC", + "display": "Patient's Medicare number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-medicare" + }, + { + "value": "MCN-008", + "type": { + "coding": [ + { + "code": "MA", + "display": "Patient Medicaid number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/identifier-medicaid" + }, + { + "value": "MI-12345", + "type": { + "coding": [ + { + "code": "MI", + "display": "Military ID number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/identifier-military" + }, + { + "value": "PNM1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/1fca4c8f-7562-b755-9a05-5f0f49096e5b" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "name": [ + { + "family": "EVERYMAN", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official", + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + }, + { + "family": "elbert", + "given": [ + "Son" + ] + }, + { + "family": "RADIANT", + "given": [ + "LUCY" + ] + }, + { + "family": "Jack", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + } + ], + "birthDate": "1988-08-18", + "_birthDate": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime": "1988-08-18T14:41:00+05:30" + } + ] + }, + "gender": "male", + "address": [ + { + "line": [ + "1000", + "Hospital Lane", + "Ste. 123", + "Near Highway" + ], + "city": "Ann Arbor ", + "state": "MI", + "postalCode": "99999", + "country": "USA", + "type": "postal", + "district": "W", + "period": { + "start": "2000-01-10", + "end": "2000-01-20" + } + }, + { + "line": [ + "1619 SOUTH UNIVERSITY" + ], + "city": "MADISON", + "state": "WI", + "postalCode": "53703", + "country": "US" + } + ], + "telecom": [ + { + "value": "2222", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18, + "use": "home" + }, + { + "value": "12121212", + "system": "phone", + "use": "home" + }, + { + "value": "7777", + "system": "phone", + "use": "work" + }, + { + "value": "1111", + "system": "other", + "use": "work" + }, + { + "value": "89898989", + "use": "work", + "system": "email" + }, + { + "value": "8484", + "system": "email", + "use": "home" + }, + { + "value": "717171", + "system": "phone", + "use": "home" + }, + { + "value": "021212", + "system": "other", + "use": "work" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47", + "version": "v2" + }, + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47", + "version": "v2.1" + } + ], + "text": "TextInEnglish" + }, + "preferred": true + } + ], + "maritalStatus": { + "coding": [ + { + "code": "M", + "display": "Married", + "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" + } + ] + }, + "multipleBirthInteger": 2, + "deceasedDateTime": "2008-08-25T15:31:30+05:30", + "meta": { + "lastUpdated": "2005-01-10T04:05:14+05:30" + }, + "generalPractitioner": [ + { + "reference": "Organization/4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11" + }, + { + "reference": "Practitioner/76aaad38-1077-6a5c-0c5c-102ec160a60d" + } + ], + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "ombCategory", + "valueCoding": { + "code": "2028-9", + "display": "Asian", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White+Asian" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + "valueString": "SMITH--Angela--L" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", + "valueAddress": { + "text": "St. Francis Community Hospital of Lower South Side" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-religion", + "valueCodeableConcept": { + "coding": [ + { + "code": "1002", + "display": "African Religions", + "system": "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2186-5", + "display": "Non Hispanic or Latino", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "Non Hispanic or Latino" + } + ] + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/VeteranMilitaryStatus", + "valueCodeableConcept": { + "coding": [ + { + "code": "Vet123", + "display": "retired", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ART" + } + ], + "text": "retired" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-animal", + "extension": [ + { + "url": "species", + "valueCodeableConcept": { + "coding": [ + { + "code": "125097000", + "display": "Goat", + "system": "http://snomed.info/sct" + } + ], + "text": "Goat" + } + }, + { + "url": "breed", + "valueCodeableConcept": { + "coding": [ + { + "code": "4880003", + "display": "Beagle", + "system": "http://snomed.info/sct" + } + ], + "text": "Beagle" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "US", + "display": "United States of America", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "United States of America" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "CA", + "display": "Canada", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Canada" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-nationality", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "BT", + "display": "Bhutan", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Bhutan" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-congregation", + "valueString": "Methodist Church" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-importance", + "valueCodeableConcept": { + "coding": [ + { + "code": "VIP", + "display": "Very Important Person", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/L", + "version": "v1.1" + }, + { + "code": "IMP", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/DCM", + "version": "v1.2" + } + ], + "text": "Inportant Person" + } + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/patient-disabilityIndicator", + "valueBoolean": true + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/DisabilityPeriod", + "valuePeriod": { + "start": "2021-08-30", + "end": "2021-09-30" + } + } + ], + "contact": [ + { + "organization": { + "reference": "Organization/3bb64820-2a2b-956c-9f45-125ec102f353" + } + }, + { + "name": { + "family": "Evan", + "given": [ + "ADAM", + "A" + ], + "suffix": [ + "III", + "MD" + ], + "prefix": [ + "Dr." + ], + "use": "usual" + }, + "address": { + "line": [ + "2222", + "HOME", + "STREET", + "Highway" + ], + "city": "GREENSBORO", + "state": "NC", + "postalCode": "27401-1020", + "country": "US", + "use": "billing", + "district": "test", + "period": { + "start": "2000-01-10", + "end": "2005-01-11" + } + }, + "telecom": [ + { + "value": "5555", + "use": "work", + "system": "email", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "121111", + "use": "home", + "system": "phone" + }, + { + "value": "878777", + "use": "home", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "6666666", + "system": "pager", + "use": "work" + }, + { + "value": "777", + "use": "work", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 1 + }, + { + "value": "444444", + "system": "phone" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "O", + "display": "Other", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131" + } + ] + } + ], + "period": { + "start": "2021-08-18", + "end": "2021-12-18" + }, + "gender": "female" + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + { + "fullUrl": "urn:uuid:78295402-9b84-4829-b945-502ab3402de5", + "resource": { + "resourceType": "Account", + "id": "78295402-9b84-4829-b945-502ab3402de5", + "identifier": [ + { + "value": "4000776", + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Visit number" + } + ] + }, + "system": "urn:oid:2.4", + "assigner": { + "reference": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + ], + "guarantor": [ + { + "party": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "onHold": false, + "period": { + "start": "2001-04-10", + "end": "2001-04-15" + } + }, + { + "party": { + "reference": "Organization/98678cfe-0455-73c8-d2a1-2ede2d55943f" + }, + "onHold": false, + "period": { + "start": "2001-04-10", + "end": "2001-04-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/78295402-9b84-4829-b945-502ab3402de5" + } + }, + { + "fullUrl": "urn:uuid:9d4c8327-8a28-8152-1898-8251baa707b7", + "resource": { + "resourceType": "Organization", + "id": "9d4c8327-8a28-8152-1898-8251baa707b7", + "identifier": [ + { + "value": "AccMgr", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr" + }, + { + "value": "urn:oid:2.4", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + } + }, + { + "fullUrl": "urn:uuid:98678cfe-0455-73c8-d2a1-2ede2d55943f", + "resource": { + "resourceType": "Organization", + "id": "98678cfe-0455-73c8-d2a1-2ede2d55943f", + "name": "Jupiter Hospital", + "address": [ + { + "line": [ + "1619 SOUTH UNIVERSITY" + ], + "city": "MADISON", + "state": "WI", + "postalCode": "53703", + "country": "US" + } + ], + "contact": [ + { + "telecom": [ + { + "value": "000352", + "system": "phone" + }, + { + "value": "00121", + "system": "fax" + } + ], + "purpose": { + "coding": [ + { + "code": "Urgent requirement" + } + ] + } + }, + { + "name": { + "family": "RADIANT", + "given": [ + "LUCY" + ] + } + }, + { + "name": { + "family": "Ben", + "given": [ + "Charles" + ] + } + }, + { + "name": { + "family": "Ben2" + } + } + ], + "telecom": [ + { + "value": "8484", + "system": "email" + }, + { + "value": "717171", + "system": "phone" + }, + { + "value": "021212", + "system": "other" + } + ], + "identifier": [ + { + "value": "1516", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/98678cfe-0455-73c8-d2a1-2ede2d55943f" + } + }, + { + "fullUrl": "urn:uuid:b3ad3a9f-d4f6-4638-0a09-2da771733488", + "resource": { + "resourceType": "Organization", + "id": "b3ad3a9f-d4f6-4638-0a09-2da771733488", + "identifier": [ + { + "value": "test1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test1" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "fullUrl": "urn:uuid:4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11", + "resource": { + "resourceType": "Organization", + "id": "4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11", + "name": "LINDAS TEST ORGANIZATION", + "identifier": [ + { + "value": "SIISCLIENT818" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11" + } + }, + { + "fullUrl": "urn:uuid:76aaad38-1077-6a5c-0c5c-102ec160a60d", + "resource": { + "resourceType": "Practitioner", + "id": "76aaad38-1077-6a5c-0c5c-102ec160a60d", + "identifier": [ + { + "value": "88", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TE", + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Hippo", + "given": [ + "rold", + "H" + ], + "suffix": [ + "V", + "MD" + ], + "prefix": [ + "Dr" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/76aaad38-1077-6a5c-0c5c-102ec160a60d" + } + }, + { + "fullUrl": "urn:uuid:11967e28-8dd4-a112-0fdc-377866bf12a0", + "resource": { + "resourceType": "Organization", + "id": "11967e28-8dd4-a112-0fdc-377866bf12a0", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "2.16.840.1.113883.19", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + } + }, + { + "fullUrl": "urn:uuid:7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "resource": { + "resourceType": "Organization", + "id": "7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "identifier": [ + { + "value": "AccMng", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMng" + }, + { + "value": "1.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + } + }, + { + "fullUrl": "urn:uuid:0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "resource": { + "resourceType": "Organization", + "id": "0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "identifier": [ + { + "value": "PERSONNELt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSONNELt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + } + }, + { + "fullUrl": "urn:uuid:f6775f99-5279-be04-bf81-0906c81f7443", + "resource": { + "resourceType": "Practitioner", + "id": "f6775f99-5279-be04-bf81-0906c81f7443", + "identifier": [ + { + "value": "1122334", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Alaz", + "given": [ + "Mohammed", + "Mahi" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "fullUrl": "urn:uuid:c613d7b2-525f-8c08-a7ac-b2b91486e257", + "resource": { + "resourceType": "Organization", + "id": "c613d7b2-525f-8c08-a7ac-b2b91486e257", + "identifier": [ + { + "value": "TEST", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TEST" + }, + { + "value": "23.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + } + }, + { + "fullUrl": "urn:uuid:04f8cfc8-62ca-12df-63ce-6304ef577d44", + "resource": { + "resourceType": "Practitioner", + "id": "04f8cfc8-62ca-12df-63ce-6304ef577d44", + "identifier": [ + { + "value": "C006", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + }, + "type": { + "coding": [ + { + "code": "BA", + "display": "Bank Account Number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen" + ], + "prefix": [ + "Dr" + ], + "use": "anonymous" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "fullUrl": "urn:uuid:99edcabd-fbeb-7e25-f823-11da8d8ed342", + "resource": { + "resourceType": "Practitioner", + "id": "99edcabd-fbeb-7e25-f823-11da8d8ed342", + "identifier": [ + { + "value": "C008", + "system": "urn:oid:2.8", + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Condoc", + "given": [ + "leen" + ], + "prefix": [ + "Dr" + ], + "use": "temp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "fullUrl": "urn:uuid:b065b233-8738-f1ec-1314-d61e4aac2c9e", + "resource": { + "resourceType": "Practitioner", + "id": "b065b233-8738-f1ec-1314-d61e4aac2c9e", + "identifier": [ + { + "value": "37", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr", + "type": { + "coding": [ + { + "code": "ANC", + "display": "Account number Creditor", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "DISNEY", + "given": [ + "WALT" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "fullUrl": "urn:uuid:9f974d4f-47e8-21a6-e549-4de4599c3764", + "resource": { + "resourceType": "Organization", + "id": "9f974d4f-47e8-21a6-e549-4de4599c3764", + "identifier": [ + { + "value": "T123", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-T123" + }, + { + "value": "urn:oid:r2.3", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + }, + { + "fullUrl": "urn:uuid:84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "resource": { + "resourceType": "Practitioner", + "id": "84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "identifier": [ + { + "value": "Othhel", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "fullUrl": "urn:uuid:24d4bddf-a1c3-4dc8-049b-1dda7e5112b6", + "resource": { + "resourceType": "Organization", + "id": "24d4bddf-a1c3-4dc8-049b-1dda7e5112b6", + "identifier": [ + { + "value": "TE", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TE" + }, + { + "value": "Provider Master.Community Health and Hospitals", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-DNS", + "type": { + "coding": [ + { + "code": "DNS", + "display": "An Internet host name, in accordance with RFC 1035; or an IP address. Either in ASCII or as integers, with periods between components (“dotted” notation).", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/24d4bddf-a1c3-4dc8-049b-1dda7e5112b6" + } + }, + { + "fullUrl": "urn:uuid:36e3aaa4-569a-7d9d-037f-27235ed05701", + "resource": { + "resourceType": "Practitioner", + "id": "36e3aaa4-569a-7d9d-037f-27235ed05701", + "identifier": [ + { + "value": "12188", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-DNS", + "assigner": { + "reference": "Organization/24d4bddf-a1c3-4dc8-049b-1dda7e5112b6" + }, + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Hippocrates", + "given": [ + "Harold", + "H" + ], + "suffix": [ + "IV", + "MD" + ], + "prefix": [ + "Dr" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/36e3aaa4-569a-7d9d-037f-27235ed05701" + } + }, + { + "fullUrl": "urn:uuid:9172e4a0-1ca5-646d-2183-b179f4daa737", + "resource": { + "resourceType": "Location", + "id": "9172e4a0-1ca5-646d-2183-b179f4daa737", + "partOf": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + }, + "name": "HUH AE OMU", + "identifier": [ + { + "value": "urn:oid:9.8", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "fullUrl": "urn:uuid:3913ec4d-6576-5e1a-ac31-e8280583371c", + "resource": { + "resourceType": "Location", + "id": "3913ec4d-6576-5e1a-ac31-e8280583371c", + "partOf": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + }, + "name": "OMU B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "fullUrl": "urn:uuid:804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "resource": { + "resourceType": "Location", + "id": "804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "partOf": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + }, + "name": "Bed 03", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "fullUrl": "urn:uuid:c043880b-0fab-1cb8-14f7-0475282c4d0e", + "resource": { + "resourceType": "Location", + "id": "c043880b-0fab-1cb8-14f7-0475282c4d0e", + "name": "HOMERTON UNIVER", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "fullUrl": "urn:uuid:f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "resource": { + "resourceType": "Location", + "id": "f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "partOf": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + }, + "name": "Homerton UH", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "fullUrl": "urn:uuid:7e38808c-44a8-cb0c-4709-9d6092abc32c", + "resource": { + "resourceType": "Location", + "id": "7e38808c-44a8-cb0c-4709-9d6092abc32c", + "partOf": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + }, + "name": "Floor5", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "fullUrl": "urn:uuid:59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "resource": { + "resourceType": "Location", + "id": "59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "name": "4 East, room 136, bed B 4E", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + } + }, + { + "fullUrl": "urn:uuid:d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "resource": { + "resourceType": "Location", + "id": "d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "partOf": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "name": "136", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + } + }, + { + "fullUrl": "urn:uuid:5783dafa-c6c0-e673-cca4-42087ee1831b", + "resource": { + "resourceType": "Location", + "id": "5783dafa-c6c0-e673-cca4-42087ee1831b", + "partOf": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "name": "B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + } + }, + { + "fullUrl": "urn:uuid:8b39e6e5-78cd-63ab-2441-f43ca5554096", + "resource": { + "resourceType": "Location", + "id": "8b39e6e5-78cd-63ab-2441-f43ca5554096", + "name": "CommunityHospital", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + } + }, + { + "fullUrl": "urn:uuid:42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "resource": { + "resourceType": "Location", + "id": "42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "name": "Homes", + "identifier": [ + { + "value": "22", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/FDK" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + { + "fullUrl": "urn:uuid:84634858-74aa-5cdb-4547-60ec27339ac6", + "resource": { + "resourceType": "Location", + "id": "84634858-74aa-5cdb-4547-60ec27339ac6", + "name": "POC", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + } + }, + { + "fullUrl": "urn:uuid:9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "resource": { + "resourceType": "Location", + "id": "9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "partOf": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "name": "Room-2", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + } + }, + { + "fullUrl": "urn:uuid:35353f20-6254-e794-98ed-8007490447e3", + "resource": { + "resourceType": "Location", + "id": "35353f20-6254-e794-98ed-8007490447e3", + "partOf": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "name": "Bed-103", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/35353f20-6254-e794-98ed-8007490447e3" + } + }, + { + "fullUrl": "urn:uuid:055e10f1-222e-df73-2325-0e4396db1a55", + "resource": { + "resourceType": "Location", + "id": "055e10f1-222e-df73-2325-0e4396db1a55", + "name": "Greenland", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + } + }, + { + "fullUrl": "urn:uuid:1154e6b2-b022-b3be-7dce-2b940ab5376d", + "resource": { + "resourceType": "Location", + "id": "1154e6b2-b022-b3be-7dce-2b940ab5376d", + "name": "Nursing home", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + } + }, + { + "fullUrl": "urn:uuid:08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "resource": { + "resourceType": "Location", + "id": "08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "name": "Rosewood", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + } + }, + { + "fullUrl": "urn:uuid:c7f1b9ec-ffd8-321e-ad87-abafc1c1a333", + "resource": { + "resourceType": "Location", + "id": "c7f1b9ec-ffd8-321e-ad87-abafc1c1a333", + "name": "ROOM1", + "identifier": [ + { + "value": "urn:oid:2.16.840.1.113883.4.642.1.1108", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + } + }, + { + "fullUrl": "urn:uuid:6f159848-5f01-01b3-9594-80fbbe9ab510", + "resource": { + "resourceType": "Location", + "id": "6f159848-5f01-01b3-9594-80fbbe9ab510", + "partOf": { + "reference": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + }, + "name": "BED1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/6f159848-5f01-01b3-9594-80fbbe9ab510" + } + }, + { + "fullUrl": "urn:uuid:4bca6ba2-be65-ef37-3911-03b70a00a3a6", + "resource": { + "resourceType": "Location", + "id": "4bca6ba2-be65-ef37-3911-03b70a00a3a6", + "name": "FACILITY1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + } + }, + { + "fullUrl": "urn:uuid:3b0911cb-4361-cd8d-b188-463af033c699", + "resource": { + "resourceType": "Location", + "id": "3b0911cb-4361-cd8d-b188-463af033c699", + "partOf": { + "reference": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + }, + "name": "BUILDING1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + } + }, + { + "fullUrl": "urn:uuid:0d9c3424-329f-4c95-ee30-ac2da4a35bff", + "resource": { + "resourceType": "Location", + "id": "0d9c3424-329f-4c95-ee30-ac2da4a35bff", + "partOf": { + "reference": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + }, + "name": "FLOOR1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/0d9c3424-329f-4c95-ee30-ac2da4a35bff" + } + }, + { + "fullUrl": "urn:uuid:08314073-410a-3dc7-512c-0f2d206fb59d", + "resource": { + "resourceType": "Organization", + "id": "08314073-410a-3dc7-512c-0f2d206fb59d", + "identifier": [ + { + "value": "Etest", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-Etest" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + }, + { + "fullUrl": "urn:uuid:919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "resource": { + "resourceType": "EpisodeOfCare", + "id": "919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "status": "planned", + "identifier": [ + { + "value": "EOC124", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "diagnosis": [ + { + "condition": { + "reference": "Condition/481123a1-ca9c-c3c8-0284-e6926c3a50d8" + }, + "role": { + "coding": [ + { + "code": "AD", + "display": "Admission Diagnosis", + "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role" + } + ] + }, + "rank": 1 + } + ] + }, + "request": { + "method": "PUT", + "url": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + }, + { + "fullUrl": "urn:uuid:4b192760-03d2-aec4-b0a6-fde323912e1e", + "resource": { + "resourceType": "Encounter", + "id": "4b192760-03d2-aec4-b0a6-fde323912e1e", + "class": { + "code": "PRENC", + "display": "pre-admission", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "status": "planned", + "location": [ + { + "status": "planned", + "location": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "status": "completed", + "location": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/35353f20-6254-e794-98ed-8007490447e3" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/6f159848-5f01-01b3-9594-80fbbe9ab510" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/0d9c3424-329f-4c95-ee30-ac2da4a35bff" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + } + ], + "type": [ + { + "coding": [ + { + "code": "E", + "display": "Emergency", + "system": "http://terminology.hl7.org/CodeSystem/v2-0007" + } + ] + } + ], + "hospitalization": { + "preAdmissionIdentifier": { + "value": "1234567", + "type": { + "coding": [ + { + "code": "ANON", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Anonymous identifier" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + "reAdmission": { + "coding": [ + { + "code": "R", + "display": "Re-admission", + "system": "http://terminology.hl7.org/CodeSystem/v2-0092" + } + ] + }, + "admitSource": { + "coding": [ + { + "code": "NHS Provider-General (inc.A&E-this Hosp)" + } + ] + }, + "dischargeDisposition": { + "coding": [ + { + "code": "Admitted as Inpatient", + "display": "Sample", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ACR" + } + ] + }, + "dietPreference": [ + { + "coding": [ + { + "code": "Vegan", + "display": "Vegetarian" + } + ] + } + ], + "destination": { + "reference": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + "episodeOfCare": [ + { + "reference": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + ], + "participant": [ + { + "type": [ + { + "coding": [ + { + "code": "ATND", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", + "display": "attender" + } + ] + } + ], + "individual": { + "reference": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "CON", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "consultant" + } + ], + "individual": { + "reference": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "ADM", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "admitter" + } + ], + "individual": { + "reference": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "PART", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "Participation" + } + ], + "individual": { + "reference": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/36e3aaa4-569a-7d9d-037f-27235ed05701" + } + } + ], + "serviceType": { + "coding": [ + { + "code": "SUR" + } + ] + }, + "identifier": [ + { + "value": "40007716", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + }, + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ], + "text": "visit number" + } + }, + { + "value": "50", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:r2.3", + "assigner": { + "reference": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + } + ], + "period": { + "start": "2015-02-08T15:54:19+05:30" + }, + "reasonCode": [ + { + "coding": [ + { + "code": "140004", + "display": "Chronic pharyngitis", + "system": "http://snomed.info/sct" + } + ] + } + ], + "length": { + "value": 2, + "unit": "d", + "system": "http://unitsofmeasure.org/" + }, + "meta": { + "security": [ + { + "code": "N", + "display": "normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality" + } + ] + }, + "text": { + "status": "generated", + "div": "

Visit Description: Health Checkup

" + }, + "priority": { + "coding": [ + { + "code": "UR", + "display": "urgent", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActPriority", + "version": "V1.2" + }, + { + "code": "EL", + "display": "elective", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActPriority", + "version": "V1.3" + } + ] + }, + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/encounter-modeOfArrival", + "valueCoding": { + "code": "C", + "display": "Car", + "system": "http://terminology.hl7.org/CodeSystem/v2-0430" + } + } + ], + "diagnosis": [ + { + "condition": { + "reference": "Condition/481123a1-ca9c-c3c8-0284-e6926c3a50d8" + }, + "use": { + "coding": [ + { + "code": "AD", + "display": "Admission Diagnosis", + "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role" + } + ] + }, + "rank": 1 + } + ] + }, + "request": { + "method": "PUT", + "url": "Encounter/4b192760-03d2-aec4-b0a6-fde323912e1e" + } + }, + { + "fullUrl": "urn:uuid:9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "resource": { + "resourceType": "Provenance", + "id": "9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "occurredDateTime": "2021-08-17T18:49:43.004+05:30", + "recorded": "2029-08-01T11:21:24+05:30", + "reason": [ + { + "coding": [ + { + "code": "PATRQT", + "display": "patient requested", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason" + } + ] + } + ], + "agent": [ + { + "who": { + "reference": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + } + ], + "activity": { + "text": "ADT^A08^ADT_A08" + }, + "location": { + "reference": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + }, + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c" + } + }, + { + "fullUrl": "urn:uuid:ef39f581-5e8f-3917-35a9-3443303d9eee", + "resource": { + "resourceType": "Organization", + "id": "ef39f581-5e8f-3917-35a9-3443303d9eee", + "identifier": [ + { + "value": "DRNBR", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-DRNBR" + }, + { + "value": "urn:oid:W1.2", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + } + }, + { + "fullUrl": "urn:uuid:95aea53b-8d49-d57f-d16f-4d14b914f992", + "resource": { + "resourceType": "Practitioner", + "id": "95aea53b-8d49-d57f-d16f-4d14b914f992", + "identifier": [ + { + "value": "C08", + "system": "urn:oid:W1.2", + "assigner": { + "reference": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + }, + "type": { + "coding": [ + { + "code": "ANON", + "display": "Anonymous identifier", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen", + "2ndname" + ], + "suffix": [ + "Jr", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + }, + { + "fullUrl": "urn:uuid:59d5e519-0108-5dd8-adfa-1eef5658009e", + "resource": { + "resourceType": "Location", + "id": "59d5e519-0108-5dd8-adfa-1eef5658009e", + "name": "Cona_Health", + "identifier": [ + { + "value": "urn:oid:1.3.6.1.4.1.44750.1.4", + "system": "urn:ietf:rfc:3986" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "display": "site", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + } + }, + { + "fullUrl": "urn:uuid:396e6ab6-624f-44a8-841c-6e1c4cebd765", + "resource": { + "resourceType": "Practitioner", + "id": "396e6ab6-624f-44a8-841c-6e1c4cebd765", + "identifier": [ + { + "value": "1210" + } + ], + "name": [ + { + "family": "ANES", + "given": [ + "MARK", + "B" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/396e6ab6-624f-44a8-841c-6e1c4cebd765" + } + }, + { + "fullUrl": "urn:uuid:6a01e35c-52c3-892a-2ea0-0a283eb6757b", + "resource": { + "resourceType": "Practitioner", + "id": "6a01e35c-52c3-892a-2ea0-0a283eb6757b", + "identifier": [ + { + "value": "121188", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-L", + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Patrick", + "given": [ + "Harold", + "H" + ], + "suffix": [ + "IV", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/6a01e35c-52c3-892a-2ea0-0a283eb6757b" + } + }, + { + "fullUrl": "urn:uuid:a8fc538f-624b-0cee-df30-6377fabae47c", + "resource": { + "resourceType": "Practitioner", + "id": "a8fc538f-624b-0cee-df30-6377fabae47c", + "identifier": [ + { + "value": "12345689", + "type": { + "coding": [ + { + "code": "MR", + "display": "Medical record number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Everyman2", + "given": [ + "Adam2", + "A" + ], + "suffix": [ + "III", + "PHD" + ], + "prefix": [ + "DR" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/a8fc538f-624b-0cee-df30-6377fabae47c" + } + }, + { + "fullUrl": "urn:uuid:a9c75502-d60a-d89b-5912-f046100cd47e", + "resource": { + "resourceType": "Location", + "id": "a9c75502-d60a-d89b-5912-f046100cd47e", + "name": "OT", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/a9c75502-d60a-d89b-5912-f046100cd47e" + } + }, + { + "fullUrl": "urn:uuid:2e2e33a1-60f8-7e38-c827-fe070237c3fb", + "resource": { + "resourceType": "Procedure", + "id": "2e2e33a1-60f8-7e38-c827-fe070237c3fb", + "status": "unknown", + "identifier": [ + { + "value": "PR1001" + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Procedure/2e2e33a1-60f8-7e38-c827-fe070237c3fb" + } + }, + { + "fullUrl": "urn:uuid:c06db9c2-d07b-bac2-53c2-48ed83dd32b6", + "resource": { + "resourceType": "Procedure", + "id": "c06db9c2-d07b-bac2-53c2-48ed83dd32b6", + "code": { + "coding": [ + { + "code": "76164006", + "display": "Biopsy of colon (procedure)", + "system": "http://snomed.info/sct" + } + ], + "text": "Biopsy of colon, which was part of colonoscopy" + }, + "status": "completed", + "performedDateTime": "2005-01-25T16:10:00+05:30", + "category": { + "coding": [ + { + "code": "D", + "display": "Diagnostic Procedure", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/HL70230" + } + ] + }, + "performer": [ + { + "actor": { + "reference": "Practitioner/396e6ab6-624f-44a8-841c-6e1c4cebd765" + }, + "function": { + "coding": [ + { + "code": "88189002", + "system": "http://snomed.info/sct", + "display": "Anesthesiologist" + } + ], + "text": "Anesthesiologist" + } + }, + { + "actor": { + "reference": "Practitioner/6a01e35c-52c3-892a-2ea0-0a283eb6757b" + }, + "function": { + "coding": [ + { + "code": "304292004", + "system": "http://snomed.info/sct", + "display": "Surgeon" + } + ], + "text": "Surgeon" + } + }, + { + "actor": { + "reference": "Practitioner/a8fc538f-624b-0cee-df30-6377fabae47c" + }, + "function": { + "text": "Procedure Practitioner" + } + } + ], + "reasonCode": [ + { + "coding": [ + { + "code": "799008", + "display": "Sigmoid colon ulcer", + "system": "http://snomed.info/sct" + } + ] + } + ], + "identifier": [ + { + "value": "PR1006" + } + ], + "location": { + "reference": "Location/a9c75502-d60a-d89b-5912-f046100cd47e" + }, + "partOf": [ + { + "reference": "Procedure/2e2e33a1-60f8-7e38-c827-fe070237c3fb" + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Procedure/c06db9c2-d07b-bac2-53c2-48ed83dd32b6" + } + }, + { + "fullUrl": "urn:uuid:3bb64820-2a2b-956c-9f45-125ec102f353", + "resource": { + "resourceType": "Organization", + "id": "3bb64820-2a2b-956c-9f45-125ec102f353", + "name": "TestOrg", + "identifier": [ + { + "value": "Org12", + "type": { + "coding": [ + { + "code": "EI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "contact": [ + { + "name": { + "family": "Green", + "given": [ + "John", + "A" + ], + "suffix": [ + "II", + "MD" + ], + "prefix": [ + "DR" + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + "telecom": [ + { + "value": "898989898", + "system": "fax" + }, + { + "value": "88888888", + "system": "phone" + } + ], + "address": { + "line": [ + "Street1", + "Palkstreet" + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/3bb64820-2a2b-956c-9f45-125ec102f353" + } + }, + { + "fullUrl": "urn:uuid:abdee378-0d3b-337f-a31e-83e002ce92a0", + "resource": { + "resourceType": "RelatedPerson", + "id": "abdee378-0d3b-337f-a31e-83e002ce92a0", + "identifier": [ + { + "value": "1212121", + "type": { + "coding": [ + { + "code": "AND", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Account number debitor" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "12345567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/e76154d7-9084-80e4-6274-c929d7c39880" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "I-123", + "type": { + "coding": [ + { + "code": "BA", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Bank Account Number" + } + ] + } + }, + { + "value": "I-222", + "type": { + "coding": [ + { + "code": "DI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Diner’s Club card" + } + ] + } + }, + { + "value": "Security no-23", + "system": "http://hl7.org/fhir/sid/us-ssn" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "C", + "display": "Emergency Contact", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131", + "version": "9.0" + }, + { + "code": "CHILD", + "display": "child", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode", + "version": "10.0" + } + ] + }, + { + "coding": [ + { + "code": "O", + "display": "Other", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131" + } + ] + }, + { + "coding": [ + { + "code": "MTH", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "period": { + "start": "2021-08-18", + "end": "2021-12-18" + }, + "address": [ + { + "line": [ + "2222", + "HOME", + "STREET", + "Highway" + ], + "city": "GREENSBORO", + "state": "NC", + "postalCode": "27401-1020", + "country": "US", + "use": "billing", + "district": "test", + "period": { + "start": "2000-01-10", + "end": "2005-01-11" + } + }, + { + "line": [ + "111", + "Duck ST" + ], + "city": "Fowl" + }, + { + "line": [ + "Street1", + "Palkstreet" + ] + }, + { + "line": [ + "ST-2" + ] + } + ], + "telecom": [ + { + "value": "5555", + "use": "work", + "system": "email", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "121111", + "use": "home", + "system": "phone" + }, + { + "value": "878777", + "use": "home", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "6666666", + "system": "pager", + "use": "work" + }, + { + "value": "898989898", + "system": "fax" + }, + { + "value": "88888888", + "system": "phone" + }, + { + "value": "777", + "use": "work", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 1 + }, + { + "value": "444444", + "system": "phone" + } + ], + "name": [ + { + "family": "Evan", + "given": [ + "ADAM", + "A" + ], + "suffix": [ + "III", + "MD" + ], + "prefix": [ + "Dr." + ], + "use": "usual" + }, + { + "family": "Green", + "given": [ + "John", + "A" + ], + "suffix": [ + "II", + "MD" + ], + "prefix": [ + "DR" + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official" + } + ], + "gender": "female", + "birthDate": "1962-01-10", + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47" + } + ] + } + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White" + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/abdee378-0d3b-337f-a31e-83e002ce92a0" + } + }, + { + "fullUrl": "urn:uuid:e76154d7-9084-80e4-6274-c929d7c39880", + "resource": { + "resourceType": "Organization", + "id": "e76154d7-9084-80e4-6274-c929d7c39880", + "identifier": [ + { + "value": "T1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-T1" + }, + { + "value": "2.16.840.1.113883.19", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/e76154d7-9084-80e4-6274-c929d7c39880" + } + }, + { + "fullUrl": "urn:uuid:f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "resource": { + "resourceType": "Organization", + "id": "f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "identifier": [ + { + "value": "NTH", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NTH" + }, + { + "value": "rt23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + } + }, + { + "fullUrl": "urn:uuid:4e68b44e-c053-02b1-6d6d-fe816f9fdfec", + "resource": { + "resourceType": "Organization", + "id": "4e68b44e-c053-02b1-6d6d-fe816f9fdfec", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "urn:oid:1.12", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4e68b44e-c053-02b1-6d6d-fe816f9fdfec" + } + }, + { + "fullUrl": "urn:uuid:e82402a9-b2d1-2a28-3250-c099d5a77bf7", + "resource": { + "resourceType": "Organization", + "id": "e82402a9-b2d1-2a28-3250-c099d5a77bf7", + "identifier": [ + { + "value": "PERSt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/e82402a9-b2d1-2a28-3250-c099d5a77bf7" + } + }, + { + "fullUrl": "urn:uuid:ce70e6c3-c190-121d-c251-e4bae5cde6a1", + "resource": { + "resourceType": "Practitioner", + "id": "ce70e6c3-c190-121d-c251-e4bae5cde6a1", + "identifier": [ + { + "value": "1134", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/e82402a9-b2d1-2a28-3250-c099d5a77bf7" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Aly", + "given": [ + "Zafar", + "Mahendra" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/ce70e6c3-c190-121d-c251-e4bae5cde6a1" + } + }, + { + "fullUrl": "urn:uuid:88a53755-c972-6904-b4ce-8884b84ddc2e", + "resource": { + "resourceType": "PractitionerRole", + "id": "88a53755-c972-6904-b4ce-8884b84ddc2e", + "code": [ + { + "coding": [ + { + "code": "ResponsibleObserver", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/ce70e6c3-c190-121d-c251-e4bae5cde6a1" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/88a53755-c972-6904-b4ce-8884b84ddc2e" + } + }, + { + "fullUrl": "urn:uuid:3e0952c6-eea0-8938-96f8-07c224bf1577", + "resource": { + "resourceType": "Practitioner", + "id": "3e0952c6-eea0-8938-96f8-07c224bf1577", + "identifier": [ + { + "value": "2234" + } + ], + "name": [ + { + "family": "Pauly", + "given": [ + "Berrie", + "Raud" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/3e0952c6-eea0-8938-96f8-07c224bf1577" + } + }, + { + "fullUrl": "urn:uuid:bc78e290-ec67-c238-1e05-aefb6b252b0c", + "resource": { + "resourceType": "PractitionerRole", + "id": "bc78e290-ec67-c238-1e05-aefb6b252b0c", + "code": [ + { + "coding": [ + { + "code": "ResponsibleObserver", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/3e0952c6-eea0-8938-96f8-07c224bf1577" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/bc78e290-ec67-c238-1e05-aefb6b252b0c" + } + }, + { + "fullUrl": "urn:uuid:fe0adb86-ebe9-6479-0055-9db8dc1ff99a", + "resource": { + "resourceType": "Device", + "id": "fe0adb86-ebe9-6479-0055-9db8dc1ff99a", + "identifier": [ + { + "value": "EI12.3", + "system": "urn:uuid:UI2", + "type": { + "coding": [ + { + "code": "GUID", + "display": "Same as UUID.", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + }, + { + "system": "urn:oid:UI1", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/fe0adb86-ebe9-6479-0055-9db8dc1ff99a" + } + }, + { + "fullUrl": "urn:uuid:45f65e47-46c4-1a54-f9fb-1321258e79b2", + "resource": { + "resourceType": "Practitioner", + "id": "45f65e47-46c4-1a54-f9fb-1321258e79b2", + "identifier": [ + { + "type": { + "coding": [ + { + "code": "MD-25" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/45f65e47-46c4-1a54-f9fb-1321258e79b2" + } + }, + { + "fullUrl": "urn:uuid:090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3", + "resource": { + "resourceType": "PractitionerRole", + "id": "090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3", + "code": [ + { + "coding": [ + { + "code": "LabMedicalDirector", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/45f65e47-46c4-1a54-f9fb-1321258e79b2" + }, + "organization": { + "reference": "Organization/056aa7c7-6b75-3c67-63c5-cf9604f16d25" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3" + } + }, + { + "fullUrl": "urn:uuid:056aa7c7-6b75-3c67-63c5-cf9604f16d25", + "resource": { + "resourceType": "Organization", + "id": "056aa7c7-6b75-3c67-63c5-cf9604f16d25", + "name": "FairOaks Hspital", + "address": [ + { + "line": [ + "Research Park", + "Fairfax" + ], + "city": "VA", + "state": "22031", + "postalCode": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/056aa7c7-6b75-3c67-63c5-cf9604f16d25" + } + }, + { + "fullUrl": "urn:uuid:07fd2dd3-dbd6-5bb1-cfda-02226795d9a0", + "resource": { + "resourceType": "Observation", + "id": "07fd2dd3-dbd6-5bb1-cfda-02226795d9a0", + "identifier": [ + { + "value": "EI21", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-OII" + }, + { + "type": { + "coding": [ + { + "code": "FILL" + } + ] + } + } + ], + "status": "unknown", + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "component": [ + { + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 60, + "code": "beats/min", + "unit": "beats/min", + "system": "urn:iso:std:iso:3986" + }, + "referenceRange": [ + { + "text": "70-80" + } + ] + }, + { + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 120, + "code": "beats/min", + "unit": "beats/min", + "system": "urn:iso:std:iso:3986" + }, + "referenceRange": [ + { + "text": "70-80" + } + ] + } + ], + "effectiveDateTime": "1999-07-02", + "method": { + "coding": [ + { + "code": "OBS", + "display": "This is test method", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/AS4" + } + ] + }, + "device": { + "reference": "Device/fe0adb86-ebe9-6479-0055-9db8dc1ff99a" + }, + "bodySite": { + "coding": [ + { + "code": "BU", + "display": "Observation site", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/E5" + } + ] + }, + "performer": [ + { + "reference": "PractitionerRole/88a53755-c972-6904-b4ce-8884b84ddc2e" + }, + { + "reference": "PractitionerRole/bc78e290-ec67-c238-1e05-aefb6b252b0c" + }, + { + "reference": "PractitionerRole/090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "A", + "display": "Abnormal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + }, + { + "coding": [ + { + "code": "B", + "display": "Better", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } + ], + "extension": [ + { + "url": "http://example.com/v2-to-fhir-converter/Observation_Status", + "valueCodeableConcept": { + "coding": [ + { + "code": "S", + "display": "Partial", + "system": "http://terminology.hl7.org/CodeSystem/v2-0085" + } + ], + "text": "Partial" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Observation/07fd2dd3-dbd6-5bb1-cfda-02226795d9a0" + } + }, + { + "fullUrl": "urn:uuid:a0adcda8-0b28-d089-1955-c04308d5fe28", + "resource": { + "resourceType": "AllergyIntolerance", + "id": "a0adcda8-0b28-d089-1955-c04308d5fe28", + "category": [ + "environment" + ], + "type": "allergy", + "code": { + "coding": [ + { + "code": "P", + "display": "PENICILLIN", + "system": "http://terminology.hl7.org/CodeSystem/icd-o" + } + ] + }, + "reaction": [ + { + "manifestation": [ + { + "text": "CODE16" + } + ], + "onset": "2021-08-24" + } + ], + "criticality": "low", + "clinicalStatus": { + "coding": [ + { + "code": "active", + "display": "Active", + "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical" + } + ] + }, + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "AllergyIntolerance/a0adcda8-0b28-d089-1955-c04308d5fe28" + } + }, + { + "fullUrl": "urn:uuid:14493a95-7780-ead5-89cc-ad6c3bc31d51", + "resource": { + "resourceType": "Practitioner", + "id": "14493a95-7780-ead5-89cc-ad6c3bc31d51", + "identifier": [ + { + "value": "005454" + } + ], + "name": [ + { + "family": "DIAG", + "given": [ + "ROBIN", + "B" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/14493a95-7780-ead5-89cc-ad6c3bc31d51" + } + }, + { + "fullUrl": "urn:uuid:481123a1-ca9c-c3c8-0284-e6926c3a50d8", + "resource": { + "resourceType": "Condition", + "id": "481123a1-ca9c-c3c8-0284-e6926c3a50d8", + "code": { + "coding": [ + { + "code": "422504002", + "display": "Ischemic stroke(disorder)", + "system": "http://snomed.info/sct" + } + ], + "text": "Stroke" + }, + "onsetDateTime": "2004-01-25T12:50:25+05:30", + "identifier": [ + { + "value": "DI20", + "system": "urn:oid:DTUI", + "type": { + "coding": [ + { + "code": "CLIP", + "display": "Clinical laboratory Improvement Program. Allows for the ability to designate organization identifier as a “CLIP” assigned number (for labs). Used by US Department of Defense.", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "asserter": { + "reference": "Practitioner/14493a95-7780-ead5-89cc-ad6c3bc31d51" + }, + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/condition-assertedDate", + "valueDateTime": "2020-05-01T16:45:15+05:30" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/condition-dueTo", + "valueReference": { + "reference": "Condition/98e2ecfc-6e04-bc30-6624-4f3686214b22" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Condition/481123a1-ca9c-c3c8-0284-e6926c3a50d8" + } + }, + { + "fullUrl": "urn:uuid:98e2ecfc-6e04-bc30-6624-4f3686214b22", + "resource": { + "resourceType": "Condition", + "id": "98e2ecfc-6e04-bc30-6624-4f3686214b22", + "identifier": [ + { + "system": "urn:oid:UI", + "type": { + "coding": [ + { + "code": "CLIP", + "display": "Clinical laboratory Improvement Program. Allows for the ability to designate organization identifier as a “CLIP” assigned number (for labs). Used by US Department of Defense.", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Condition/98e2ecfc-6e04-bc30-6624-4f3686214b22" + } + }, + { + "fullUrl": "urn:uuid:c073f2c1-a818-924b-8881-1481ac88d691", + "resource": { + "resourceType": "Organization", + "id": "c073f2c1-a818-924b-8881-1481ac88d691", + "name": "AuthProvider", + "identifier": [ + { + "value": "A", + "type": { + "coding": [ + { + "code": "LR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/c073f2c1-a818-924b-8881-1481ac88d691" + } + }, + { + "fullUrl": "urn:uuid:e0ba3d6b-452f-7c22-a79d-1035e4b33ceb", + "resource": { + "resourceType": "Practitioner", + "id": "e0ba3d6b-452f-7c22-a79d-1035e4b33ceb", + "identifier": [ + { + "value": "114", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-2.3", + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Beverly", + "given": [ + "Crusher", + "An" + ], + "suffix": [ + "Mr", + "AHP", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/e0ba3d6b-452f-7c22-a79d-1035e4b33ceb" + } + }, + { + "fullUrl": "urn:uuid:739ae409-c591-1a59-32ad-d2ef1b937b0f", + "resource": { + "resourceType": "ServiceRequest", + "id": "739ae409-c591-1a59-32ad-d2ef1b937b0f", + "status": "on-hold", + "intent": "order", + "identifier": [ + { + "value": "123-1", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-name" + }, + { + "value": "123-2", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-Testname" + } + ], + "authoredOn": "1990-05-01T12:16:00+05:30", + "performer": [ + { + "reference": "Organization/c073f2c1-a818-924b-8881-1481ac88d691" + }, + { + "reference": "Practitioner/e0ba3d6b-452f-7c22-a79d-1035e4b33ceb" + } + ], + "performerType": { + "coding": [ + { + "code": "EXTERNAL" + } + ] + }, + "note": [ + { + "text": "Check for metastatic disease" + } + ], + "priority": "asap", + "reasonCode": [ + { + "coding": [ + { + "code": "R-1", + "display": "Reason", + "system": "http://www.ama-assn.org/go/cpt" + } + ], + "text": "Patient has a spinal fracture" + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "ServiceRequest/739ae409-c591-1a59-32ad-d2ef1b937b0f" + } + }, + { + "fullUrl": "urn:uuid:dfab6985-a691-c4f5-d2b2-6481fdfd59e4", + "resource": { + "resourceType": "Coverage", + "id": "dfab6985-a691-c4f5-d2b2-6481fdfd59e4", + "class": [ + { + "value": "BAV", + "name": "Blue Advantage HMO", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/coverage-class", + "code": "plan", + "display": "Plan" + } + ] + } + }, + { + "value": "PUBSUMB", + "name": "SelfPay", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/coverage-class", + "code": "group", + "display": "Group" + } + ] + } + } + ], + "network": "Blue Advantage HMO", + "period": { + "start": "1989-10-01", + "end": "2050-10-01" + }, + "type": { + "coding": [ + { + "code": "HMO", + "display": "health maintenance organization policy", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + } + ] + }, + "identifier": [ + { + "value": "PN-145", + "type": { + "coding": [ + { + "code": "PLN", + "display": "Policy Number", + "system": "http://example.com/CodeSystem/additional-identifier" + } + ] + }, + "system": "http://www.examplehealthplan.com/fhir/policyidentifier" + }, + { + "value": "HMO-12345", + "type": { + "coding": [ + { + "code": "NI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "National unique individual identifier" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.3" + }, + { + "value": "Medicare-12345", + "type": { + "coding": [ + { + "code": "MC", + "display": "Patient's Medicare number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-medicare" + }, + { + "value": "MCN-008", + "type": { + "coding": [ + { + "code": "MA", + "display": "Patient Medicaid number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/identifier-medicaid" + }, + { + "value": "PNM1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/1fca4c8f-7562-b755-9a05-5f0f49096e5b" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "costToBeneficiary": [ + { + "type": { + "coding": [ + { + "code": "DC", + "display": "direct unit cost", + "system": "http://terminology.hl7.org/CodeSystem/v2-0205" + } + ] + }, + "valueMoney": { + "value": 150, + "currency": "USD" + } + } + ], + "subscriberId": "HMO-12345", + "status": "active", + "beneficiary": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "payor": [ + { + "reference": "Organization/04a2a5f2-c971-1e42-e788-250ea487a889" + } + ], + "policyHolder": { + "reference": "Organization/4829e288-ac03-22cc-c65e-922004275fd0" + }, + "subscriber": { + "reference": "RelatedPerson/fd1eed45-4ccb-bb7c-d157-58eb0366d777" + }, + "relationship": { + "coding": [ + { + "code": "spouse", + "display": "Spouse", + "system": "http://terminology.hl7.org/CodeSystem/subscriber-relationship" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Coverage/dfab6985-a691-c4f5-d2b2-6481fdfd59e4" + } + }, + { + "fullUrl": "urn:uuid:04a2a5f2-c971-1e42-e788-250ea487a889", + "resource": { + "resourceType": "Organization", + "id": "04a2a5f2-c971-1e42-e788-250ea487a889", + "address": [ + { + "line": [ + "1979 MILKY WAY" + ], + "city": "VERONA", + "state": "WI", + "postalCode": "53593", + "country": "US" + } + ], + "contact": [ + { + "name": { + "family": "Henry", + "given": [ + "Rony", + "A" + ], + "suffix": [ + "III", + "MD" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1925-10-12" + } + } + } + ], + "telecom": [ + { + "value": "(555)555-5555", + "system": "phone" + } + ], + "identifier": [ + { + "value": "IC-1.31", + "type": { + "coding": [ + { + "code": "NIIP", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "National Insurance Payor Identifier (Payor)" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.1", + "period": { + "start": "1929-10-11", + "end": "1929-10-12" + } + } + ], + "name": "Blue Cross Blue Shield of Texas" + }, + "request": { + "method": "PUT", + "url": "Organization/04a2a5f2-c971-1e42-e788-250ea487a889" + } + }, + { + "fullUrl": "urn:uuid:4829e288-ac03-22cc-c65e-922004275fd0", + "resource": { + "resourceType": "Organization", + "id": "4829e288-ac03-22cc-c65e-922004275fd0", + "address": [ + { + "line": [ + "2000 MILKY WAY" + ], + "city": "VERONA", + "state": "WI", + "postalCode": "53593", + "country": "US" + } + ], + "name": "Sam P. Hil", + "contact": [ + { + "name": { + "family": "Richard", + "given": [ + "Paul" + ] + }, + "telecom": [ + { + "value": "254622222", + "system": "phone" + } + ] + } + ], + "telecom": [ + { + "value": "555777888", + "system": "fax" + }, + { + "system": "phone" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4829e288-ac03-22cc-c65e-922004275fd0" + } + }, + { + "fullUrl": "urn:uuid:fd1eed45-4ccb-bb7c-d157-58eb0366d777", + "resource": { + "resourceType": "RelatedPerson", + "id": "fd1eed45-4ccb-bb7c-d157-58eb0366d777", + "identifier": [ + { + "value": "HMO-12345", + "type": { + "coding": [ + { + "code": "NI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "National unique individual identifier" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.3" + }, + { + "value": "1117", + "type": { + "coding": [ + { + "code": "EI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Employee number" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.4" + }, + { + "value": "1118", + "type": { + "coding": [ + { + "code": "BC", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Bank Card Number" + } + ] + } + }, + { + "value": "425-57-9745", + "type": { + "coding": [ + { + "code": "SS", + "display": "Social Security number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "SPS", + "display": "spouse", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "address": [ + { + "line": [ + "3857 Velvet Treasure Terrace" + ], + "city": "Midnight", + "state": "NC", + "postalCode": "27878", + "country": "US" + } + ], + "name": [ + { + "family": "Doe", + "given": [ + "Rosallie", + "John" + ], + "suffix": [ + "III", + "Bachelors" + ], + "prefix": [ + "Mrs." + ], + "use": "official" + } + ], + "gender": "female", + "birthDate": "1975-02-28", + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "telecom": [ + { + "value": "0005245", + "use": "work", + "system": "email" + }, + { + "system": "phone" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47" + } + ] + }, + "preferred": true + } + ] + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/fd1eed45-4ccb-bb7c-d157-58eb0366d777" + } + }, + { + "fullUrl": "urn:uuid:1fca4c8f-7562-b755-9a05-5f0f49096e5b", + "resource": { + "resourceType": "Organization", + "id": "1fca4c8f-7562-b755-9a05-5f0f49096e5b", + "identifier": [ + { + "value": "PM", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PM" + }, + { + "value": "2.6.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/1fca4c8f-7562-b755-9a05-5f0f49096e5b" + } + } + ] +} \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A14/ADT-A14-expected-2.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A14/ADT-A14-expected-2.json new file mode 100644 index 000000000..1a9090266 --- /dev/null +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A14/ADT-A14-expected-2.json @@ -0,0 +1,2130 @@ +{ + "resourceType": "Bundle", + "type": "batch", + "timestamp": "1989-08-18T14:41:00+05:30", + "identifier": { + "value": "MSG00001" + }, + "id": "513a3d06-5e87-6fbc-ad1b-170ab430499f", + "entry": [ + { + "fullUrl": "urn:uuid:b4ca189b-51ae-33df-cbe2-559b4423a321", + "resource": { + "resourceType": "MessageHeader", + "id": "b4ca189b-51ae-33df-cbe2-559b4423a321", + "source": { + "name": "24GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.20" + }, + "destination": [ + { + "name": "25GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.23", + "receiver": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + } + ], + "meta": { + "security": [ + { + "display": "SECURITY", + "system": "http://example.com/v2-to-fhirconverter/security-label" + } + ], + "tag": [ + { + "code": "P", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "A14", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ADT^A14^ADT_A14" + }, + "language": "en-US", + "sender": { + "reference": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + }, + "responsible": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + "request": { + "method": "PUT", + "url": "MessageHeader/b4ca189b-51ae-33df-cbe2-559b4423a321" + } + }, + { + "fullUrl": "urn:uuid:f65d2168-02c8-1897-210d-361176172856", + "resource": { + "resourceType": "Provenance", + "id": "f65d2168-02c8-1897-210d-361176172856", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T13:23:27.131Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ADT_A14.

" + }, + "occurredDateTime": "1989-08-18T14:41:00+05:30", + "recorded": "1989-08-18T14:41:00+05:30", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + } + ], + "activity": { + "coding": [ + { + "display": "ADT^A14^ADT_A14" + } + ] + }, + "entity": [ + { + "role": "source", + "what": { + "reference": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + } + ], + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/f65d2168-02c8-1897-210d-361176172856" + } + }, + { + "fullUrl": "urn:uuid:4356fb81-6ecd-2d70-57b1-47812638e785", + "resource": { + "resourceType": "Organization", + "id": "4356fb81-6ecd-2d70-57b1-47812638e785", + "identifier": [ + { + "value": "GHHSFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHSFacility" + }, + { + "value": "urn:oid:2.16.840.1.122848.1.30", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + } + }, + { + "fullUrl": "urn:uuid:62781ad6-3896-cb63-0178-ead0c4a432b5", + "resource": { + "resourceType": "Organization", + "id": "62781ad6-3896-cb63-0178-ead0c4a432b5", + "identifier": [ + { + "value": "GHHRFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHRFacility" + }, + { + "value": "urn:oid:2.16.840.1.1122848.1.32", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/62781ad6-3896-cb63-0178-ead0c4a432b5" + } + }, + { + "fullUrl": "urn:uuid:33532a82-d220-4c0d-1abe-53e48951c201", + "resource": { + "resourceType": "Organization", + "id": "33532a82-d220-4c0d-1abe-53e48951c201", + "name": "22 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + { + "fullUrl": "urn:uuid:527280c1-34d1-c639-e9ba-61986d28e266", + "resource": { + "resourceType": "Organization", + "id": "527280c1-34d1-c639-e9ba-61986d28e266", + "name": "23 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + }, + { + "fullUrl": "urn:uuid:503eb873-22fb-8199-ae28-3604ad59fe13", + "resource": { + "resourceType": "Device", + "id": "503eb873-22fb-8199-ae28-3604ad59fe13", + "identifier": [ + { + "value": "ADTApp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + }, + { + "fullUrl": "urn:uuid:9e909e52-61a1-be50-1878-a12ef8c36346", + "resource": { + "resourceType": "Patient", + "id": "9e909e52-61a1-be50-1878-a12ef8c36346", + "identifier": [ + { + "value": "1234567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "PATID1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "value": "123456789", + "type": { + "coding": [ + { + "code": "SS", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Social Security number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-USSSA" + }, + { + "value": "PATID567", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test2" + }, + { + "value": "PSSN123121234", + "type": { + "coding": [ + { + "code": "SB", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + }, + { + "value": "DLN-123", + "type": { + "coding": [ + { + "code": "DL" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/US", + "period": { + "end": "2001-01-23" + } + } + ], + "name": [ + { + "family": "EVERYMAN", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official", + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + }, + { + "family": "elbert", + "given": [ + "Son" + ] + } + ], + "birthDate": "1988-08-18", + "_birthDate": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime": "1988-08-18T14:41:00+05:30" + } + ] + }, + "gender": "male", + "address": [ + { + "line": [ + "1000", + "Hospital Lane", + "Ste. 123", + "Near Highway" + ], + "city": "Ann Arbor ", + "state": "MI", + "postalCode": "99999", + "country": "USA", + "type": "postal", + "district": "W", + "period": { + "start": "2000-01-10", + "end": "2000-01-20" + } + } + ], + "telecom": [ + { + "value": "2222", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18, + "use": "home" + }, + { + "value": "12121212", + "system": "phone", + "use": "home" + }, + { + "value": "7777", + "system": "phone", + "use": "work" + }, + { + "value": "1111", + "system": "other", + "use": "work" + }, + { + "value": "89898989", + "use": "work", + "system": "email" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47", + "version": "v2" + }, + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47", + "version": "v2.1" + } + ], + "text": "TextInEnglish" + }, + "preferred": true + } + ], + "maritalStatus": { + "coding": [ + { + "code": "M", + "display": "Married", + "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" + } + ] + }, + "multipleBirthInteger": 2, + "deceasedDateTime": "2008-08-25T15:31:30+05:30", + "meta": { + "lastUpdated": "2005-01-10T04:05:14+05:30" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "ombCategory", + "valueCoding": { + "code": "2028-9", + "display": "Asian", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White+Asian" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + "valueString": "SMITH--Angela--L" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", + "valueAddress": { + "text": "St. Francis Community Hospital of Lower South Side" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-religion", + "valueCodeableConcept": { + "coding": [ + { + "code": "1002", + "display": "African Religions", + "system": "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2186-5", + "display": "Non Hispanic or Latino", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "Non Hispanic or Latino" + } + ] + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/VeteranMilitaryStatus", + "valueCodeableConcept": { + "coding": [ + { + "code": "Vet123", + "display": "retired", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ART" + } + ], + "text": "retired" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-animal", + "extension": [ + { + "url": "species", + "valueCodeableConcept": { + "coding": [ + { + "code": "125097000", + "display": "Goat", + "system": "http://snomed.info/sct" + } + ], + "text": "Goat" + } + }, + { + "url": "breed", + "valueCodeableConcept": { + "coding": [ + { + "code": "4880003", + "display": "Beagle", + "system": "http://snomed.info/sct" + } + ], + "text": "Beagle" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "US", + "display": "United States of America", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "United States of America" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "CA", + "display": "Canada", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Canada" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-nationality", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "BT", + "display": "Bhutan", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Bhutan" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-importance", + "valueCodeableConcept": { + "coding": [ + { + "code": "VIP", + "display": "Very Important Person", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/L", + "version": "v1.1" + }, + { + "code": "IMP", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/DCM", + "version": "v1.2" + } + ], + "text": "Inportant Person" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + { + "fullUrl": "urn:uuid:78295402-9b84-4829-b945-502ab3402de5", + "resource": { + "resourceType": "Account", + "id": "78295402-9b84-4829-b945-502ab3402de5", + "identifier": [ + { + "value": "4000776", + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Visit number" + } + ] + }, + "system": "urn:oid:2.4", + "assigner": { + "reference": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/78295402-9b84-4829-b945-502ab3402de5" + } + }, + { + "fullUrl": "urn:uuid:9d4c8327-8a28-8152-1898-8251baa707b7", + "resource": { + "resourceType": "Organization", + "id": "9d4c8327-8a28-8152-1898-8251baa707b7", + "identifier": [ + { + "value": "AccMgr", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr" + }, + { + "value": "urn:oid:2.4", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + } + }, + { + "fullUrl": "urn:uuid:b3ad3a9f-d4f6-4638-0a09-2da771733488", + "resource": { + "resourceType": "Organization", + "id": "b3ad3a9f-d4f6-4638-0a09-2da771733488", + "identifier": [ + { + "value": "test1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test1" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "fullUrl": "urn:uuid:f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "resource": { + "resourceType": "Organization", + "id": "f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "identifier": [ + { + "value": "NTH", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NTH" + }, + { + "value": "rt23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + } + }, + { + "fullUrl": "urn:uuid:62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "resource": { + "resourceType": "RelatedPerson", + "id": "62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "identifier": [ + { + "value": "1212121", + "type": { + "coding": [ + { + "code": "AND", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Account number debitor" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "relationship": [ + { + "coding": [ + { + "code": "MTH", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/62b2e1ee-a272-4ffe-692e-a1fbfd49af6a" + } + }, + { + "fullUrl": "urn:uuid:11967e28-8dd4-a112-0fdc-377866bf12a0", + "resource": { + "resourceType": "Organization", + "id": "11967e28-8dd4-a112-0fdc-377866bf12a0", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "2.16.840.1.113883.19", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + } + }, + { + "fullUrl": "urn:uuid:7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "resource": { + "resourceType": "Organization", + "id": "7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "identifier": [ + { + "value": "AccMng", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMng" + }, + { + "value": "1.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + } + }, + { + "fullUrl": "urn:uuid:0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "resource": { + "resourceType": "Organization", + "id": "0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "identifier": [ + { + "value": "PERSONNELt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSONNELt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + } + }, + { + "fullUrl": "urn:uuid:f6775f99-5279-be04-bf81-0906c81f7443", + "resource": { + "resourceType": "Practitioner", + "id": "f6775f99-5279-be04-bf81-0906c81f7443", + "identifier": [ + { + "value": "1122334", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Alaz", + "given": [ + "Mohammed", + "Mahi" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "fullUrl": "urn:uuid:c613d7b2-525f-8c08-a7ac-b2b91486e257", + "resource": { + "resourceType": "Organization", + "id": "c613d7b2-525f-8c08-a7ac-b2b91486e257", + "identifier": [ + { + "value": "TEST", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TEST" + }, + { + "value": "23.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + } + }, + { + "fullUrl": "urn:uuid:04f8cfc8-62ca-12df-63ce-6304ef577d44", + "resource": { + "resourceType": "Practitioner", + "id": "04f8cfc8-62ca-12df-63ce-6304ef577d44", + "identifier": [ + { + "value": "C006", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + }, + "type": { + "coding": [ + { + "code": "BA", + "display": "Bank Account Number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen" + ], + "prefix": [ + "Dr" + ], + "use": "anonymous" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "fullUrl": "urn:uuid:99edcabd-fbeb-7e25-f823-11da8d8ed342", + "resource": { + "resourceType": "Practitioner", + "id": "99edcabd-fbeb-7e25-f823-11da8d8ed342", + "identifier": [ + { + "value": "C008", + "system": "urn:oid:2.8", + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Condoc", + "given": [ + "leen" + ], + "prefix": [ + "Dr" + ], + "use": "temp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "fullUrl": "urn:uuid:b065b233-8738-f1ec-1314-d61e4aac2c9e", + "resource": { + "resourceType": "Practitioner", + "id": "b065b233-8738-f1ec-1314-d61e4aac2c9e", + "identifier": [ + { + "value": "37", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr", + "type": { + "coding": [ + { + "code": "ANC", + "display": "Account number Creditor", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "DISNEY", + "given": [ + "WALT" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "fullUrl": "urn:uuid:9f974d4f-47e8-21a6-e549-4de4599c3764", + "resource": { + "resourceType": "Organization", + "id": "9f974d4f-47e8-21a6-e549-4de4599c3764", + "identifier": [ + { + "value": "T123", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-T123" + }, + { + "value": "urn:oid:r2.3", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + }, + { + "fullUrl": "urn:uuid:84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "resource": { + "resourceType": "Practitioner", + "id": "84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "identifier": [ + { + "value": "Othhel", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "fullUrl": "urn:uuid:9172e4a0-1ca5-646d-2183-b179f4daa737", + "resource": { + "resourceType": "Location", + "id": "9172e4a0-1ca5-646d-2183-b179f4daa737", + "partOf": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + }, + "name": "HUH AE OMU", + "identifier": [ + { + "value": "urn:oid:9.8", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "fullUrl": "urn:uuid:3913ec4d-6576-5e1a-ac31-e8280583371c", + "resource": { + "resourceType": "Location", + "id": "3913ec4d-6576-5e1a-ac31-e8280583371c", + "partOf": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + }, + "name": "OMU B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "fullUrl": "urn:uuid:804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "resource": { + "resourceType": "Location", + "id": "804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "partOf": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + }, + "name": "Bed 03", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "fullUrl": "urn:uuid:c043880b-0fab-1cb8-14f7-0475282c4d0e", + "resource": { + "resourceType": "Location", + "id": "c043880b-0fab-1cb8-14f7-0475282c4d0e", + "name": "HOMERTON UNIVER", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "fullUrl": "urn:uuid:f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "resource": { + "resourceType": "Location", + "id": "f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "partOf": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + }, + "name": "Homerton UH", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "fullUrl": "urn:uuid:7e38808c-44a8-cb0c-4709-9d6092abc32c", + "resource": { + "resourceType": "Location", + "id": "7e38808c-44a8-cb0c-4709-9d6092abc32c", + "partOf": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + }, + "name": "Floor5", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "fullUrl": "urn:uuid:59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "resource": { + "resourceType": "Location", + "id": "59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "name": "4 East, room 136, bed B 4E", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + } + }, + { + "fullUrl": "urn:uuid:d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "resource": { + "resourceType": "Location", + "id": "d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "partOf": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "name": "136", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + } + }, + { + "fullUrl": "urn:uuid:5783dafa-c6c0-e673-cca4-42087ee1831b", + "resource": { + "resourceType": "Location", + "id": "5783dafa-c6c0-e673-cca4-42087ee1831b", + "partOf": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "name": "B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + } + }, + { + "fullUrl": "urn:uuid:8b39e6e5-78cd-63ab-2441-f43ca5554096", + "resource": { + "resourceType": "Location", + "id": "8b39e6e5-78cd-63ab-2441-f43ca5554096", + "name": "CommunityHospital", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + } + }, + { + "fullUrl": "urn:uuid:42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "resource": { + "resourceType": "Location", + "id": "42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "name": "Homes", + "identifier": [ + { + "value": "22", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/FDK" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + { + "fullUrl": "urn:uuid:84634858-74aa-5cdb-4547-60ec27339ac6", + "resource": { + "resourceType": "Location", + "id": "84634858-74aa-5cdb-4547-60ec27339ac6", + "name": "POC", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + } + }, + { + "fullUrl": "urn:uuid:9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "resource": { + "resourceType": "Location", + "id": "9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "partOf": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "name": "Room-2", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + } + }, + { + "fullUrl": "urn:uuid:35353f20-6254-e794-98ed-8007490447e3", + "resource": { + "resourceType": "Location", + "id": "35353f20-6254-e794-98ed-8007490447e3", + "partOf": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "name": "Bed-103", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/35353f20-6254-e794-98ed-8007490447e3" + } + }, + { + "fullUrl": "urn:uuid:055e10f1-222e-df73-2325-0e4396db1a55", + "resource": { + "resourceType": "Location", + "id": "055e10f1-222e-df73-2325-0e4396db1a55", + "name": "Greenland", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + } + }, + { + "fullUrl": "urn:uuid:1154e6b2-b022-b3be-7dce-2b940ab5376d", + "resource": { + "resourceType": "Location", + "id": "1154e6b2-b022-b3be-7dce-2b940ab5376d", + "name": "Nursing home", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + } + }, + { + "fullUrl": "urn:uuid:08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "resource": { + "resourceType": "Location", + "id": "08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "name": "Rosewood", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + } + }, + { + "fullUrl": "urn:uuid:08314073-410a-3dc7-512c-0f2d206fb59d", + "resource": { + "resourceType": "Organization", + "id": "08314073-410a-3dc7-512c-0f2d206fb59d", + "identifier": [ + { + "value": "Etest", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-Etest" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + }, + { + "fullUrl": "urn:uuid:919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "resource": { + "resourceType": "EpisodeOfCare", + "id": "919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "status": "planned", + "identifier": [ + { + "value": "EOC124", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + }, + { + "fullUrl": "urn:uuid:4b192760-03d2-aec4-b0a6-fde323912e1e", + "resource": { + "resourceType": "Encounter", + "id": "4b192760-03d2-aec4-b0a6-fde323912e1e", + "class": { + "code": "PRENC", + "display": "pre-admission", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "status": "planned", + "location": [ + { + "status": "planned", + "location": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "status": "completed", + "location": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/35353f20-6254-e794-98ed-8007490447e3" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + } + ], + "type": [ + { + "coding": [ + { + "code": "E", + "display": "Emergency", + "system": "http://terminology.hl7.org/CodeSystem/v2-0007" + } + ] + } + ], + "hospitalization": { + "preAdmissionIdentifier": { + "value": "1234567", + "type": { + "coding": [ + { + "code": "ANON", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Anonymous identifier" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + "reAdmission": { + "coding": [ + { + "code": "R", + "display": "Re-admission", + "system": "http://terminology.hl7.org/CodeSystem/v2-0092" + } + ] + }, + "admitSource": { + "coding": [ + { + "code": "NHS Provider-General (inc.A&E-this Hosp)" + } + ] + }, + "dischargeDisposition": { + "coding": [ + { + "code": "Admitted as Inpatient", + "display": "Sample", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ACR" + } + ] + }, + "dietPreference": [ + { + "coding": [ + { + "code": "Vegan", + "display": "Vegetarian" + } + ] + } + ], + "destination": { + "reference": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + "episodeOfCare": [ + { + "reference": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + ], + "participant": [ + { + "type": [ + { + "coding": [ + { + "code": "ATND", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", + "display": "attender" + } + ] + } + ], + "individual": { + "reference": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "CON", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "consultant" + } + ], + "individual": { + "reference": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "ADM", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "admitter" + } + ], + "individual": { + "reference": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "PART", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "Participation" + } + ], + "individual": { + "reference": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + } + ], + "serviceType": { + "coding": [ + { + "code": "SUR" + } + ] + }, + "identifier": [ + { + "value": "40007716", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + }, + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ], + "text": "visit number" + } + }, + { + "value": "50", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:r2.3", + "assigner": { + "reference": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + } + ], + "period": { + "start": "2015-02-08T15:54:19+05:30" + }, + "text": { + "status": "generated", + "div": "

Visit Description:

" + }, + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Encounter/4b192760-03d2-aec4-b0a6-fde323912e1e" + } + }, + { + "fullUrl": "urn:uuid:9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "resource": { + "resourceType": "Provenance", + "id": "9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "occurredDateTime": "2021-08-17T18:49:43.004+05:30", + "recorded": "2029-08-01T11:21:24+05:30", + "reason": [ + { + "coding": [ + { + "code": "PATRQT", + "display": "patient requested", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason" + } + ] + } + ], + "agent": [ + { + "who": { + "reference": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + } + ], + "activity": { + "text": "ADT^A14^ADT_A14" + }, + "location": { + "reference": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + }, + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c" + } + }, + { + "fullUrl": "urn:uuid:ef39f581-5e8f-3917-35a9-3443303d9eee", + "resource": { + "resourceType": "Organization", + "id": "ef39f581-5e8f-3917-35a9-3443303d9eee", + "identifier": [ + { + "value": "DRNBR", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-DRNBR" + }, + { + "value": "urn:oid:W1.2", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + } + }, + { + "fullUrl": "urn:uuid:95aea53b-8d49-d57f-d16f-4d14b914f992", + "resource": { + "resourceType": "Practitioner", + "id": "95aea53b-8d49-d57f-d16f-4d14b914f992", + "identifier": [ + { + "value": "C08", + "system": "urn:oid:W1.2", + "assigner": { + "reference": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + }, + "type": { + "coding": [ + { + "code": "ANON", + "display": "Anonymous identifier", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen", + "2ndname" + ], + "suffix": [ + "Jr", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + }, + { + "fullUrl": "urn:uuid:59d5e519-0108-5dd8-adfa-1eef5658009e", + "resource": { + "resourceType": "Location", + "id": "59d5e519-0108-5dd8-adfa-1eef5658009e", + "name": "Cona_Health", + "identifier": [ + { + "value": "urn:oid:1.3.6.1.4.1.44750.1.4", + "system": "urn:ietf:rfc:3986" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "display": "site", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + } + } + ] +} \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A14/ADT-A14-expected.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A14/ADT-A14-expected.json new file mode 100644 index 000000000..68860068c --- /dev/null +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A14/ADT-A14-expected.json @@ -0,0 +1,4748 @@ +{ + "resourceType": "Bundle", + "type": "batch", + "timestamp": "1989-08-18T14:41:00+05:30", + "identifier": { + "value": "MSG00001" + }, + "id": "513a3d06-5e87-6fbc-ad1b-170ab430499f", + "entry": [ + { + "fullUrl": "urn:uuid:b4ca189b-51ae-33df-cbe2-559b4423a321", + "resource": { + "resourceType": "MessageHeader", + "id": "b4ca189b-51ae-33df-cbe2-559b4423a321", + "source": { + "name": "24GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.20", + "version": "2.4.3.52854", + "software": "Rhapsody" + }, + "destination": [ + { + "name": "25GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.23", + "receiver": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + } + ], + "meta": { + "security": [ + { + "display": "SECURITY", + "system": "http://example.com/v2-to-fhirconverter/security-label" + } + ], + "tag": [ + { + "code": "P", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "A14", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ADT^A14^ADT_A14" + }, + "language": "en-US", + "sender": { + "reference": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + }, + "responsible": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + "request": { + "method": "PUT", + "url": "MessageHeader/b4ca189b-51ae-33df-cbe2-559b4423a321" + } + }, + { + "fullUrl": "urn:uuid:f65d2168-02c8-1897-210d-361176172856", + "resource": { + "resourceType": "Provenance", + "id": "f65d2168-02c8-1897-210d-361176172856", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T13:22:27.454Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ADT_A14.

" + }, + "occurredDateTime": "1989-08-18T14:41:00+05:30", + "recorded": "1989-08-18T14:41:00+05:30", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + } + ], + "activity": { + "coding": [ + { + "display": "ADT^A14^ADT_A14" + } + ] + }, + "entity": [ + { + "role": "source", + "what": { + "reference": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + } + ], + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/f65d2168-02c8-1897-210d-361176172856" + } + }, + { + "fullUrl": "urn:uuid:4356fb81-6ecd-2d70-57b1-47812638e785", + "resource": { + "resourceType": "Organization", + "id": "4356fb81-6ecd-2d70-57b1-47812638e785", + "identifier": [ + { + "value": "GHHSFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHSFacility" + }, + { + "value": "urn:oid:2.16.840.1.122848.1.30", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + } + }, + { + "fullUrl": "urn:uuid:62781ad6-3896-cb63-0178-ead0c4a432b5", + "resource": { + "resourceType": "Organization", + "id": "62781ad6-3896-cb63-0178-ead0c4a432b5", + "identifier": [ + { + "value": "GHHRFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHRFacility" + }, + { + "value": "urn:oid:2.16.840.1.1122848.1.32", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/62781ad6-3896-cb63-0178-ead0c4a432b5" + } + }, + { + "fullUrl": "urn:uuid:33532a82-d220-4c0d-1abe-53e48951c201", + "resource": { + "resourceType": "Organization", + "id": "33532a82-d220-4c0d-1abe-53e48951c201", + "name": "22 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + { + "fullUrl": "urn:uuid:527280c1-34d1-c639-e9ba-61986d28e266", + "resource": { + "resourceType": "Organization", + "id": "527280c1-34d1-c639-e9ba-61986d28e266", + "name": "23 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + }, + { + "fullUrl": "urn:uuid:503eb873-22fb-8199-ae28-3604ad59fe13", + "resource": { + "resourceType": "Device", + "id": "503eb873-22fb-8199-ae28-3604ad59fe13", + "identifier": [ + { + "value": "ADTApp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + }, + { + "fullUrl": "urn:uuid:4b549918-a84d-cdaf-e150-c773a5d306e5", + "resource": { + "resourceType": "Device", + "id": "4b549918-a84d-cdaf-e150-c773a5d306e5", + "manufacturer": "Orion", + "deviceName": [ + { + "name": "Rhapsody", + "type": "manufacturer-name" + } + ], + "version": [ + { + "value": "2.4.3.52854" + } + ], + "modelNumber": "2.4.3", + "note": [ + { + "text": "Testactivity" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/4b549918-a84d-cdaf-e150-c773a5d306e5" + } + }, + { + "fullUrl": "urn:uuid:9e909e52-61a1-be50-1878-a12ef8c36346", + "resource": { + "resourceType": "Patient", + "id": "9e909e52-61a1-be50-1878-a12ef8c36346", + "identifier": [ + { + "value": "1234567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "PATID1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "value": "123456789", + "type": { + "coding": [ + { + "code": "SS", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Social Security number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-USSSA" + }, + { + "value": "PATID567", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test2" + }, + { + "value": "PSSN123121234", + "type": { + "coding": [ + { + "code": "SB", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + }, + { + "value": "DLN-123", + "type": { + "coding": [ + { + "code": "DL" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/US", + "period": { + "end": "2001-01-23" + } + }, + { + "value": "1516", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "55121", + "type": { + "coding": [ + { + "code": "FI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Facility ID" + } + ] + } + }, + { + "value": "DB123", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:1.12", + "assigner": { + "reference": "Organization/4e68b44e-c053-02b1-6d6d-fe816f9fdfec" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "Medicare-12345", + "type": { + "coding": [ + { + "code": "MC", + "display": "Patient's Medicare number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-medicare" + }, + { + "value": "MCN-008", + "type": { + "coding": [ + { + "code": "MA", + "display": "Patient Medicaid number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/identifier-medicaid" + }, + { + "value": "MI-12345", + "type": { + "coding": [ + { + "code": "MI", + "display": "Military ID number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/identifier-military" + }, + { + "value": "PNM1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/1fca4c8f-7562-b755-9a05-5f0f49096e5b" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "name": [ + { + "family": "EVERYMAN", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official", + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + }, + { + "family": "elbert", + "given": [ + "Son" + ] + }, + { + "family": "RADIANT", + "given": [ + "LUCY" + ] + }, + { + "family": "Jack", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + } + ], + "birthDate": "1988-08-18", + "_birthDate": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime": "1988-08-18T14:41:00+05:30" + } + ] + }, + "gender": "male", + "address": [ + { + "line": [ + "1000", + "Hospital Lane", + "Ste. 123", + "Near Highway" + ], + "city": "Ann Arbor ", + "state": "MI", + "postalCode": "99999", + "country": "USA", + "type": "postal", + "district": "W", + "period": { + "start": "2000-01-10", + "end": "2000-01-20" + } + }, + { + "line": [ + "1619 SOUTH UNIVERSITY" + ], + "city": "MADISON", + "state": "WI", + "postalCode": "53703", + "country": "US" + } + ], + "telecom": [ + { + "value": "2222", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18, + "use": "home" + }, + { + "value": "12121212", + "system": "phone", + "use": "home" + }, + { + "value": "7777", + "system": "phone", + "use": "work" + }, + { + "value": "1111", + "system": "other", + "use": "work" + }, + { + "value": "89898989", + "use": "work", + "system": "email" + }, + { + "value": "8484", + "system": "email", + "use": "home" + }, + { + "value": "717171", + "system": "phone", + "use": "home" + }, + { + "value": "021212", + "system": "other", + "use": "work" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47", + "version": "v2" + }, + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47", + "version": "v2.1" + } + ], + "text": "TextInEnglish" + }, + "preferred": true + } + ], + "maritalStatus": { + "coding": [ + { + "code": "M", + "display": "Married", + "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" + } + ] + }, + "multipleBirthInteger": 2, + "deceasedDateTime": "2008-08-25T15:31:30+05:30", + "meta": { + "lastUpdated": "2005-01-10T04:05:14+05:30" + }, + "generalPractitioner": [ + { + "reference": "Organization/4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11" + }, + { + "reference": "Practitioner/76aaad38-1077-6a5c-0c5c-102ec160a60d" + } + ], + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "ombCategory", + "valueCoding": { + "code": "2028-9", + "display": "Asian", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White+Asian" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + "valueString": "SMITH--Angela--L" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", + "valueAddress": { + "text": "St. Francis Community Hospital of Lower South Side" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-religion", + "valueCodeableConcept": { + "coding": [ + { + "code": "1002", + "display": "African Religions", + "system": "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2186-5", + "display": "Non Hispanic or Latino", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "Non Hispanic or Latino" + } + ] + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/VeteranMilitaryStatus", + "valueCodeableConcept": { + "coding": [ + { + "code": "Vet123", + "display": "retired", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ART" + } + ], + "text": "retired" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-animal", + "extension": [ + { + "url": "species", + "valueCodeableConcept": { + "coding": [ + { + "code": "125097000", + "display": "Goat", + "system": "http://snomed.info/sct" + } + ], + "text": "Goat" + } + }, + { + "url": "breed", + "valueCodeableConcept": { + "coding": [ + { + "code": "4880003", + "display": "Beagle", + "system": "http://snomed.info/sct" + } + ], + "text": "Beagle" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "US", + "display": "United States of America", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "United States of America" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "CA", + "display": "Canada", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Canada" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-nationality", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "BT", + "display": "Bhutan", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Bhutan" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-congregation", + "valueString": "Methodist Church" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-importance", + "valueCodeableConcept": { + "coding": [ + { + "code": "VIP", + "display": "Very Important Person", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/L", + "version": "v1.1" + }, + { + "code": "IMP", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/DCM", + "version": "v1.2" + } + ], + "text": "Inportant Person" + } + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/patient-disabilityIndicator", + "valueBoolean": true + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/DisabilityPeriod", + "valuePeriod": { + "start": "2021-08-30", + "end": "2021-09-30" + } + } + ], + "contact": [ + { + "organization": { + "reference": "Organization/3bb64820-2a2b-956c-9f45-125ec102f353" + } + }, + { + "name": { + "family": "Evan", + "given": [ + "ADAM", + "A" + ], + "suffix": [ + "III", + "MD" + ], + "prefix": [ + "Dr." + ], + "use": "usual" + }, + "address": { + "line": [ + "2222", + "HOME", + "STREET", + "Highway" + ], + "city": "GREENSBORO", + "state": "NC", + "postalCode": "27401-1020", + "country": "US", + "use": "billing", + "district": "test", + "period": { + "start": "2000-01-10", + "end": "2005-01-11" + } + }, + "telecom": [ + { + "value": "5555", + "use": "work", + "system": "email", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "121111", + "use": "home", + "system": "phone" + }, + { + "value": "878777", + "use": "home", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "6666666", + "system": "pager", + "use": "work" + }, + { + "value": "777", + "use": "work", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 1 + }, + { + "value": "444444", + "system": "phone" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "O", + "display": "Other", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131" + } + ] + } + ], + "period": { + "start": "2021-08-18", + "end": "2021-12-18" + }, + "gender": "female" + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + { + "fullUrl": "urn:uuid:78295402-9b84-4829-b945-502ab3402de5", + "resource": { + "resourceType": "Account", + "id": "78295402-9b84-4829-b945-502ab3402de5", + "identifier": [ + { + "value": "4000776", + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Visit number" + } + ] + }, + "system": "urn:oid:2.4", + "assigner": { + "reference": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + ], + "guarantor": [ + { + "party": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "onHold": false, + "period": { + "start": "2001-04-10", + "end": "2001-04-15" + } + }, + { + "party": { + "reference": "Organization/98678cfe-0455-73c8-d2a1-2ede2d55943f" + }, + "onHold": false, + "period": { + "start": "2001-04-10", + "end": "2001-04-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/78295402-9b84-4829-b945-502ab3402de5" + } + }, + { + "fullUrl": "urn:uuid:9d4c8327-8a28-8152-1898-8251baa707b7", + "resource": { + "resourceType": "Organization", + "id": "9d4c8327-8a28-8152-1898-8251baa707b7", + "identifier": [ + { + "value": "AccMgr", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr" + }, + { + "value": "urn:oid:2.4", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + } + }, + { + "fullUrl": "urn:uuid:98678cfe-0455-73c8-d2a1-2ede2d55943f", + "resource": { + "resourceType": "Organization", + "id": "98678cfe-0455-73c8-d2a1-2ede2d55943f", + "name": "Jupiter Hospital", + "address": [ + { + "line": [ + "1619 SOUTH UNIVERSITY" + ], + "city": "MADISON", + "state": "WI", + "postalCode": "53703", + "country": "US" + } + ], + "contact": [ + { + "telecom": [ + { + "value": "000352", + "system": "phone" + }, + { + "value": "00121", + "system": "fax" + } + ], + "purpose": { + "coding": [ + { + "code": "Urgent requirement" + } + ] + } + }, + { + "name": { + "family": "RADIANT", + "given": [ + "LUCY" + ] + } + }, + { + "name": { + "family": "Ben", + "given": [ + "Charles" + ] + } + }, + { + "name": { + "family": "Ben2" + } + } + ], + "telecom": [ + { + "value": "8484", + "system": "email" + }, + { + "value": "717171", + "system": "phone" + }, + { + "value": "021212", + "system": "other" + } + ], + "identifier": [ + { + "value": "1516", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/98678cfe-0455-73c8-d2a1-2ede2d55943f" + } + }, + { + "fullUrl": "urn:uuid:b3ad3a9f-d4f6-4638-0a09-2da771733488", + "resource": { + "resourceType": "Organization", + "id": "b3ad3a9f-d4f6-4638-0a09-2da771733488", + "identifier": [ + { + "value": "test1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test1" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "fullUrl": "urn:uuid:4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11", + "resource": { + "resourceType": "Organization", + "id": "4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11", + "name": "LINDAS TEST ORGANIZATION", + "identifier": [ + { + "value": "SIISCLIENT818" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11" + } + }, + { + "fullUrl": "urn:uuid:76aaad38-1077-6a5c-0c5c-102ec160a60d", + "resource": { + "resourceType": "Practitioner", + "id": "76aaad38-1077-6a5c-0c5c-102ec160a60d", + "identifier": [ + { + "value": "88", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TE", + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Hippo", + "given": [ + "rold", + "H" + ], + "suffix": [ + "V", + "MD" + ], + "prefix": [ + "Dr" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/76aaad38-1077-6a5c-0c5c-102ec160a60d" + } + }, + { + "fullUrl": "urn:uuid:11967e28-8dd4-a112-0fdc-377866bf12a0", + "resource": { + "resourceType": "Organization", + "id": "11967e28-8dd4-a112-0fdc-377866bf12a0", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "2.16.840.1.113883.19", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + } + }, + { + "fullUrl": "urn:uuid:7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "resource": { + "resourceType": "Organization", + "id": "7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "identifier": [ + { + "value": "AccMng", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMng" + }, + { + "value": "1.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + } + }, + { + "fullUrl": "urn:uuid:0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "resource": { + "resourceType": "Organization", + "id": "0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "identifier": [ + { + "value": "PERSONNELt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSONNELt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + } + }, + { + "fullUrl": "urn:uuid:f6775f99-5279-be04-bf81-0906c81f7443", + "resource": { + "resourceType": "Practitioner", + "id": "f6775f99-5279-be04-bf81-0906c81f7443", + "identifier": [ + { + "value": "1122334", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Alaz", + "given": [ + "Mohammed", + "Mahi" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "fullUrl": "urn:uuid:c613d7b2-525f-8c08-a7ac-b2b91486e257", + "resource": { + "resourceType": "Organization", + "id": "c613d7b2-525f-8c08-a7ac-b2b91486e257", + "identifier": [ + { + "value": "TEST", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TEST" + }, + { + "value": "23.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + } + }, + { + "fullUrl": "urn:uuid:04f8cfc8-62ca-12df-63ce-6304ef577d44", + "resource": { + "resourceType": "Practitioner", + "id": "04f8cfc8-62ca-12df-63ce-6304ef577d44", + "identifier": [ + { + "value": "C006", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + }, + "type": { + "coding": [ + { + "code": "BA", + "display": "Bank Account Number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen" + ], + "prefix": [ + "Dr" + ], + "use": "anonymous" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "fullUrl": "urn:uuid:99edcabd-fbeb-7e25-f823-11da8d8ed342", + "resource": { + "resourceType": "Practitioner", + "id": "99edcabd-fbeb-7e25-f823-11da8d8ed342", + "identifier": [ + { + "value": "C008", + "system": "urn:oid:2.8", + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Condoc", + "given": [ + "leen" + ], + "prefix": [ + "Dr" + ], + "use": "temp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "fullUrl": "urn:uuid:b065b233-8738-f1ec-1314-d61e4aac2c9e", + "resource": { + "resourceType": "Practitioner", + "id": "b065b233-8738-f1ec-1314-d61e4aac2c9e", + "identifier": [ + { + "value": "37", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr", + "type": { + "coding": [ + { + "code": "ANC", + "display": "Account number Creditor", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "DISNEY", + "given": [ + "WALT" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "fullUrl": "urn:uuid:9f974d4f-47e8-21a6-e549-4de4599c3764", + "resource": { + "resourceType": "Organization", + "id": "9f974d4f-47e8-21a6-e549-4de4599c3764", + "identifier": [ + { + "value": "T123", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-T123" + }, + { + "value": "urn:oid:r2.3", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + }, + { + "fullUrl": "urn:uuid:84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "resource": { + "resourceType": "Practitioner", + "id": "84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "identifier": [ + { + "value": "Othhel", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "fullUrl": "urn:uuid:24d4bddf-a1c3-4dc8-049b-1dda7e5112b6", + "resource": { + "resourceType": "Organization", + "id": "24d4bddf-a1c3-4dc8-049b-1dda7e5112b6", + "identifier": [ + { + "value": "TE", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TE" + }, + { + "value": "Provider Master.Community Health and Hospitals", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-DNS", + "type": { + "coding": [ + { + "code": "DNS", + "display": "An Internet host name, in accordance with RFC 1035; or an IP address. Either in ASCII or as integers, with periods between components (“dotted” notation).", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/24d4bddf-a1c3-4dc8-049b-1dda7e5112b6" + } + }, + { + "fullUrl": "urn:uuid:36e3aaa4-569a-7d9d-037f-27235ed05701", + "resource": { + "resourceType": "Practitioner", + "id": "36e3aaa4-569a-7d9d-037f-27235ed05701", + "identifier": [ + { + "value": "12188", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-DNS", + "assigner": { + "reference": "Organization/24d4bddf-a1c3-4dc8-049b-1dda7e5112b6" + }, + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Hippocrates", + "given": [ + "Harold", + "H" + ], + "suffix": [ + "IV", + "MD" + ], + "prefix": [ + "Dr" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/36e3aaa4-569a-7d9d-037f-27235ed05701" + } + }, + { + "fullUrl": "urn:uuid:9172e4a0-1ca5-646d-2183-b179f4daa737", + "resource": { + "resourceType": "Location", + "id": "9172e4a0-1ca5-646d-2183-b179f4daa737", + "partOf": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + }, + "name": "HUH AE OMU", + "identifier": [ + { + "value": "urn:oid:9.8", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "fullUrl": "urn:uuid:3913ec4d-6576-5e1a-ac31-e8280583371c", + "resource": { + "resourceType": "Location", + "id": "3913ec4d-6576-5e1a-ac31-e8280583371c", + "partOf": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + }, + "name": "OMU B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "fullUrl": "urn:uuid:804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "resource": { + "resourceType": "Location", + "id": "804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "partOf": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + }, + "name": "Bed 03", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "fullUrl": "urn:uuid:c043880b-0fab-1cb8-14f7-0475282c4d0e", + "resource": { + "resourceType": "Location", + "id": "c043880b-0fab-1cb8-14f7-0475282c4d0e", + "name": "HOMERTON UNIVER", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "fullUrl": "urn:uuid:f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "resource": { + "resourceType": "Location", + "id": "f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "partOf": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + }, + "name": "Homerton UH", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "fullUrl": "urn:uuid:7e38808c-44a8-cb0c-4709-9d6092abc32c", + "resource": { + "resourceType": "Location", + "id": "7e38808c-44a8-cb0c-4709-9d6092abc32c", + "partOf": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + }, + "name": "Floor5", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "fullUrl": "urn:uuid:59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "resource": { + "resourceType": "Location", + "id": "59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "name": "4 East, room 136, bed B 4E", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + } + }, + { + "fullUrl": "urn:uuid:d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "resource": { + "resourceType": "Location", + "id": "d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "partOf": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "name": "136", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + } + }, + { + "fullUrl": "urn:uuid:5783dafa-c6c0-e673-cca4-42087ee1831b", + "resource": { + "resourceType": "Location", + "id": "5783dafa-c6c0-e673-cca4-42087ee1831b", + "partOf": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "name": "B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + } + }, + { + "fullUrl": "urn:uuid:8b39e6e5-78cd-63ab-2441-f43ca5554096", + "resource": { + "resourceType": "Location", + "id": "8b39e6e5-78cd-63ab-2441-f43ca5554096", + "name": "CommunityHospital", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + } + }, + { + "fullUrl": "urn:uuid:42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "resource": { + "resourceType": "Location", + "id": "42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "name": "Homes", + "identifier": [ + { + "value": "22", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/FDK" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + { + "fullUrl": "urn:uuid:84634858-74aa-5cdb-4547-60ec27339ac6", + "resource": { + "resourceType": "Location", + "id": "84634858-74aa-5cdb-4547-60ec27339ac6", + "name": "POC", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + } + }, + { + "fullUrl": "urn:uuid:9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "resource": { + "resourceType": "Location", + "id": "9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "partOf": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "name": "Room-2", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + } + }, + { + "fullUrl": "urn:uuid:35353f20-6254-e794-98ed-8007490447e3", + "resource": { + "resourceType": "Location", + "id": "35353f20-6254-e794-98ed-8007490447e3", + "partOf": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "name": "Bed-103", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/35353f20-6254-e794-98ed-8007490447e3" + } + }, + { + "fullUrl": "urn:uuid:055e10f1-222e-df73-2325-0e4396db1a55", + "resource": { + "resourceType": "Location", + "id": "055e10f1-222e-df73-2325-0e4396db1a55", + "name": "Greenland", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + } + }, + { + "fullUrl": "urn:uuid:1154e6b2-b022-b3be-7dce-2b940ab5376d", + "resource": { + "resourceType": "Location", + "id": "1154e6b2-b022-b3be-7dce-2b940ab5376d", + "name": "Nursing home", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + } + }, + { + "fullUrl": "urn:uuid:08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "resource": { + "resourceType": "Location", + "id": "08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "name": "Rosewood", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + } + }, + { + "fullUrl": "urn:uuid:c7f1b9ec-ffd8-321e-ad87-abafc1c1a333", + "resource": { + "resourceType": "Location", + "id": "c7f1b9ec-ffd8-321e-ad87-abafc1c1a333", + "name": "ROOM1", + "identifier": [ + { + "value": "urn:oid:2.16.840.1.113883.4.642.1.1108", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + } + }, + { + "fullUrl": "urn:uuid:6f159848-5f01-01b3-9594-80fbbe9ab510", + "resource": { + "resourceType": "Location", + "id": "6f159848-5f01-01b3-9594-80fbbe9ab510", + "partOf": { + "reference": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + }, + "name": "BED1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/6f159848-5f01-01b3-9594-80fbbe9ab510" + } + }, + { + "fullUrl": "urn:uuid:4bca6ba2-be65-ef37-3911-03b70a00a3a6", + "resource": { + "resourceType": "Location", + "id": "4bca6ba2-be65-ef37-3911-03b70a00a3a6", + "name": "FACILITY1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + } + }, + { + "fullUrl": "urn:uuid:3b0911cb-4361-cd8d-b188-463af033c699", + "resource": { + "resourceType": "Location", + "id": "3b0911cb-4361-cd8d-b188-463af033c699", + "partOf": { + "reference": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + }, + "name": "BUILDING1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + } + }, + { + "fullUrl": "urn:uuid:0d9c3424-329f-4c95-ee30-ac2da4a35bff", + "resource": { + "resourceType": "Location", + "id": "0d9c3424-329f-4c95-ee30-ac2da4a35bff", + "partOf": { + "reference": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + }, + "name": "FLOOR1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/0d9c3424-329f-4c95-ee30-ac2da4a35bff" + } + }, + { + "fullUrl": "urn:uuid:08314073-410a-3dc7-512c-0f2d206fb59d", + "resource": { + "resourceType": "Organization", + "id": "08314073-410a-3dc7-512c-0f2d206fb59d", + "identifier": [ + { + "value": "Etest", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-Etest" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + }, + { + "fullUrl": "urn:uuid:919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "resource": { + "resourceType": "EpisodeOfCare", + "id": "919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "status": "planned", + "identifier": [ + { + "value": "EOC124", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "diagnosis": [ + { + "condition": { + "reference": "Condition/481123a1-ca9c-c3c8-0284-e6926c3a50d8" + }, + "role": { + "coding": [ + { + "code": "AD", + "display": "Admission Diagnosis", + "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role" + } + ] + }, + "rank": 1 + } + ] + }, + "request": { + "method": "PUT", + "url": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + }, + { + "fullUrl": "urn:uuid:4b192760-03d2-aec4-b0a6-fde323912e1e", + "resource": { + "resourceType": "Encounter", + "id": "4b192760-03d2-aec4-b0a6-fde323912e1e", + "class": { + "code": "PRENC", + "display": "pre-admission", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "status": "planned", + "location": [ + { + "status": "planned", + "location": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "status": "completed", + "location": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/35353f20-6254-e794-98ed-8007490447e3" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/6f159848-5f01-01b3-9594-80fbbe9ab510" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/0d9c3424-329f-4c95-ee30-ac2da4a35bff" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + } + ], + "type": [ + { + "coding": [ + { + "code": "E", + "display": "Emergency", + "system": "http://terminology.hl7.org/CodeSystem/v2-0007" + } + ] + } + ], + "hospitalization": { + "preAdmissionIdentifier": { + "value": "1234567", + "type": { + "coding": [ + { + "code": "ANON", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Anonymous identifier" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + "reAdmission": { + "coding": [ + { + "code": "R", + "display": "Re-admission", + "system": "http://terminology.hl7.org/CodeSystem/v2-0092" + } + ] + }, + "admitSource": { + "coding": [ + { + "code": "NHS Provider-General (inc.A&E-this Hosp)" + } + ] + }, + "dischargeDisposition": { + "coding": [ + { + "code": "Admitted as Inpatient", + "display": "Sample", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ACR" + } + ] + }, + "dietPreference": [ + { + "coding": [ + { + "code": "Vegan", + "display": "Vegetarian" + } + ] + } + ], + "destination": { + "reference": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + "episodeOfCare": [ + { + "reference": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + ], + "participant": [ + { + "type": [ + { + "coding": [ + { + "code": "ATND", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", + "display": "attender" + } + ] + } + ], + "individual": { + "reference": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "CON", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "consultant" + } + ], + "individual": { + "reference": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "ADM", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "admitter" + } + ], + "individual": { + "reference": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "PART", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "Participation" + } + ], + "individual": { + "reference": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/36e3aaa4-569a-7d9d-037f-27235ed05701" + } + } + ], + "serviceType": { + "coding": [ + { + "code": "SUR" + } + ] + }, + "identifier": [ + { + "value": "40007716", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + }, + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ], + "text": "visit number" + } + }, + { + "value": "50", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:r2.3", + "assigner": { + "reference": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + } + ], + "period": { + "start": "2015-02-08T15:54:19+05:30" + }, + "reasonCode": [ + { + "coding": [ + { + "code": "140004", + "display": "Chronic pharyngitis", + "system": "http://snomed.info/sct" + } + ] + } + ], + "length": { + "value": 2, + "unit": "d", + "system": "http://unitsofmeasure.org/" + }, + "meta": { + "security": [ + { + "code": "N", + "display": "normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality" + } + ] + }, + "text": { + "status": "generated", + "div": "

Visit Description: Health Checkup

" + }, + "priority": { + "coding": [ + { + "code": "UR", + "display": "urgent", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActPriority", + "version": "V1.2" + }, + { + "code": "EL", + "display": "elective", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActPriority", + "version": "V1.3" + } + ] + }, + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/encounter-modeOfArrival", + "valueCoding": { + "code": "C", + "display": "Car", + "system": "http://terminology.hl7.org/CodeSystem/v2-0430" + } + } + ], + "diagnosis": [ + { + "condition": { + "reference": "Condition/481123a1-ca9c-c3c8-0284-e6926c3a50d8" + }, + "use": { + "coding": [ + { + "code": "AD", + "display": "Admission Diagnosis", + "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role" + } + ] + }, + "rank": 1 + } + ] + }, + "request": { + "method": "PUT", + "url": "Encounter/4b192760-03d2-aec4-b0a6-fde323912e1e" + } + }, + { + "fullUrl": "urn:uuid:9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "resource": { + "resourceType": "Provenance", + "id": "9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "occurredDateTime": "2021-08-17T18:49:43.004+05:30", + "recorded": "2029-08-01T11:21:24+05:30", + "reason": [ + { + "coding": [ + { + "code": "PATRQT", + "display": "patient requested", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason" + } + ] + } + ], + "agent": [ + { + "who": { + "reference": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + } + ], + "activity": { + "text": "ADT^A14^ADT_A14" + }, + "location": { + "reference": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + }, + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c" + } + }, + { + "fullUrl": "urn:uuid:ef39f581-5e8f-3917-35a9-3443303d9eee", + "resource": { + "resourceType": "Organization", + "id": "ef39f581-5e8f-3917-35a9-3443303d9eee", + "identifier": [ + { + "value": "DRNBR", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-DRNBR" + }, + { + "value": "urn:oid:W1.2", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + } + }, + { + "fullUrl": "urn:uuid:95aea53b-8d49-d57f-d16f-4d14b914f992", + "resource": { + "resourceType": "Practitioner", + "id": "95aea53b-8d49-d57f-d16f-4d14b914f992", + "identifier": [ + { + "value": "C08", + "system": "urn:oid:W1.2", + "assigner": { + "reference": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + }, + "type": { + "coding": [ + { + "code": "ANON", + "display": "Anonymous identifier", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen", + "2ndname" + ], + "suffix": [ + "Jr", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + }, + { + "fullUrl": "urn:uuid:59d5e519-0108-5dd8-adfa-1eef5658009e", + "resource": { + "resourceType": "Location", + "id": "59d5e519-0108-5dd8-adfa-1eef5658009e", + "name": "Cona_Health", + "identifier": [ + { + "value": "urn:oid:1.3.6.1.4.1.44750.1.4", + "system": "urn:ietf:rfc:3986" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "display": "site", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + } + }, + { + "fullUrl": "urn:uuid:396e6ab6-624f-44a8-841c-6e1c4cebd765", + "resource": { + "resourceType": "Practitioner", + "id": "396e6ab6-624f-44a8-841c-6e1c4cebd765", + "identifier": [ + { + "value": "1210" + } + ], + "name": [ + { + "family": "ANES", + "given": [ + "MARK", + "B" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/396e6ab6-624f-44a8-841c-6e1c4cebd765" + } + }, + { + "fullUrl": "urn:uuid:6a01e35c-52c3-892a-2ea0-0a283eb6757b", + "resource": { + "resourceType": "Practitioner", + "id": "6a01e35c-52c3-892a-2ea0-0a283eb6757b", + "identifier": [ + { + "value": "121188", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-L", + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Patrick", + "given": [ + "Harold", + "H" + ], + "suffix": [ + "IV", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/6a01e35c-52c3-892a-2ea0-0a283eb6757b" + } + }, + { + "fullUrl": "urn:uuid:a8fc538f-624b-0cee-df30-6377fabae47c", + "resource": { + "resourceType": "Practitioner", + "id": "a8fc538f-624b-0cee-df30-6377fabae47c", + "identifier": [ + { + "value": "12345689", + "type": { + "coding": [ + { + "code": "MR", + "display": "Medical record number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Everyman2", + "given": [ + "Adam2", + "A" + ], + "suffix": [ + "III", + "PHD" + ], + "prefix": [ + "DR" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/a8fc538f-624b-0cee-df30-6377fabae47c" + } + }, + { + "fullUrl": "urn:uuid:a9c75502-d60a-d89b-5912-f046100cd47e", + "resource": { + "resourceType": "Location", + "id": "a9c75502-d60a-d89b-5912-f046100cd47e", + "name": "OT", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/a9c75502-d60a-d89b-5912-f046100cd47e" + } + }, + { + "fullUrl": "urn:uuid:2e2e33a1-60f8-7e38-c827-fe070237c3fb", + "resource": { + "resourceType": "Procedure", + "id": "2e2e33a1-60f8-7e38-c827-fe070237c3fb", + "status": "unknown", + "identifier": [ + { + "value": "PR1001" + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Procedure/2e2e33a1-60f8-7e38-c827-fe070237c3fb" + } + }, + { + "fullUrl": "urn:uuid:c06db9c2-d07b-bac2-53c2-48ed83dd32b6", + "resource": { + "resourceType": "Procedure", + "id": "c06db9c2-d07b-bac2-53c2-48ed83dd32b6", + "code": { + "coding": [ + { + "code": "76164006", + "display": "Biopsy of colon (procedure)", + "system": "http://snomed.info/sct" + } + ], + "text": "Biopsy of colon, which was part of colonoscopy" + }, + "status": "completed", + "performedDateTime": "2005-01-25T16:10:00+05:30", + "category": { + "coding": [ + { + "code": "D", + "display": "Diagnostic Procedure", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/HL70230" + } + ] + }, + "performer": [ + { + "actor": { + "reference": "Practitioner/396e6ab6-624f-44a8-841c-6e1c4cebd765" + }, + "function": { + "coding": [ + { + "code": "88189002", + "system": "http://snomed.info/sct", + "display": "Anesthesiologist" + } + ], + "text": "Anesthesiologist" + } + }, + { + "actor": { + "reference": "Practitioner/6a01e35c-52c3-892a-2ea0-0a283eb6757b" + }, + "function": { + "coding": [ + { + "code": "304292004", + "system": "http://snomed.info/sct", + "display": "Surgeon" + } + ], + "text": "Surgeon" + } + }, + { + "actor": { + "reference": "Practitioner/a8fc538f-624b-0cee-df30-6377fabae47c" + }, + "function": { + "text": "Procedure Practitioner" + } + } + ], + "reasonCode": [ + { + "coding": [ + { + "code": "799008", + "display": "Sigmoid colon ulcer", + "system": "http://snomed.info/sct" + } + ] + } + ], + "identifier": [ + { + "value": "PR1006" + } + ], + "location": { + "reference": "Location/a9c75502-d60a-d89b-5912-f046100cd47e" + }, + "partOf": [ + { + "reference": "Procedure/2e2e33a1-60f8-7e38-c827-fe070237c3fb" + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Procedure/c06db9c2-d07b-bac2-53c2-48ed83dd32b6" + } + }, + { + "fullUrl": "urn:uuid:3bb64820-2a2b-956c-9f45-125ec102f353", + "resource": { + "resourceType": "Organization", + "id": "3bb64820-2a2b-956c-9f45-125ec102f353", + "name": "TestOrg", + "identifier": [ + { + "value": "Org12", + "type": { + "coding": [ + { + "code": "EI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "contact": [ + { + "name": { + "family": "Green", + "given": [ + "John", + "A" + ], + "suffix": [ + "II", + "MD" + ], + "prefix": [ + "DR" + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + "telecom": [ + { + "value": "898989898", + "system": "fax" + }, + { + "value": "88888888", + "system": "phone" + } + ], + "address": { + "line": [ + "Street1", + "Palkstreet" + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/3bb64820-2a2b-956c-9f45-125ec102f353" + } + }, + { + "fullUrl": "urn:uuid:abdee378-0d3b-337f-a31e-83e002ce92a0", + "resource": { + "resourceType": "RelatedPerson", + "id": "abdee378-0d3b-337f-a31e-83e002ce92a0", + "identifier": [ + { + "value": "1212121", + "type": { + "coding": [ + { + "code": "AND", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Account number debitor" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "12345567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/e76154d7-9084-80e4-6274-c929d7c39880" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "I-123", + "type": { + "coding": [ + { + "code": "BA", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Bank Account Number" + } + ] + } + }, + { + "value": "I-222", + "type": { + "coding": [ + { + "code": "DI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Diner’s Club card" + } + ] + } + }, + { + "value": "Security no-23", + "system": "http://hl7.org/fhir/sid/us-ssn" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "C", + "display": "Emergency Contact", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131", + "version": "9.0" + }, + { + "code": "CHILD", + "display": "child", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode", + "version": "10.0" + } + ] + }, + { + "coding": [ + { + "code": "O", + "display": "Other", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131" + } + ] + }, + { + "coding": [ + { + "code": "MTH", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "period": { + "start": "2021-08-18", + "end": "2021-12-18" + }, + "address": [ + { + "line": [ + "2222", + "HOME", + "STREET", + "Highway" + ], + "city": "GREENSBORO", + "state": "NC", + "postalCode": "27401-1020", + "country": "US", + "use": "billing", + "district": "test", + "period": { + "start": "2000-01-10", + "end": "2005-01-11" + } + }, + { + "line": [ + "111", + "Duck ST" + ], + "city": "Fowl" + }, + { + "line": [ + "Street1", + "Palkstreet" + ] + }, + { + "line": [ + "ST-2" + ] + } + ], + "telecom": [ + { + "value": "5555", + "use": "work", + "system": "email", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "121111", + "use": "home", + "system": "phone" + }, + { + "value": "878777", + "use": "home", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "6666666", + "system": "pager", + "use": "work" + }, + { + "value": "898989898", + "system": "fax" + }, + { + "value": "88888888", + "system": "phone" + }, + { + "value": "777", + "use": "work", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 1 + }, + { + "value": "444444", + "system": "phone" + } + ], + "name": [ + { + "family": "Evan", + "given": [ + "ADAM", + "A" + ], + "suffix": [ + "III", + "MD" + ], + "prefix": [ + "Dr." + ], + "use": "usual" + }, + { + "family": "Green", + "given": [ + "John", + "A" + ], + "suffix": [ + "II", + "MD" + ], + "prefix": [ + "DR" + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official" + } + ], + "gender": "female", + "birthDate": "1962-01-10", + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47" + } + ] + } + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White" + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/abdee378-0d3b-337f-a31e-83e002ce92a0" + } + }, + { + "fullUrl": "urn:uuid:e76154d7-9084-80e4-6274-c929d7c39880", + "resource": { + "resourceType": "Organization", + "id": "e76154d7-9084-80e4-6274-c929d7c39880", + "identifier": [ + { + "value": "T1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-T1" + }, + { + "value": "2.16.840.1.113883.19", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/e76154d7-9084-80e4-6274-c929d7c39880" + } + }, + { + "fullUrl": "urn:uuid:f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "resource": { + "resourceType": "Organization", + "id": "f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "identifier": [ + { + "value": "NTH", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NTH" + }, + { + "value": "rt23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + } + }, + { + "fullUrl": "urn:uuid:4e68b44e-c053-02b1-6d6d-fe816f9fdfec", + "resource": { + "resourceType": "Organization", + "id": "4e68b44e-c053-02b1-6d6d-fe816f9fdfec", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "urn:oid:1.12", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4e68b44e-c053-02b1-6d6d-fe816f9fdfec" + } + }, + { + "fullUrl": "urn:uuid:e82402a9-b2d1-2a28-3250-c099d5a77bf7", + "resource": { + "resourceType": "Organization", + "id": "e82402a9-b2d1-2a28-3250-c099d5a77bf7", + "identifier": [ + { + "value": "PERSt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/e82402a9-b2d1-2a28-3250-c099d5a77bf7" + } + }, + { + "fullUrl": "urn:uuid:ce70e6c3-c190-121d-c251-e4bae5cde6a1", + "resource": { + "resourceType": "Practitioner", + "id": "ce70e6c3-c190-121d-c251-e4bae5cde6a1", + "identifier": [ + { + "value": "1134", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/e82402a9-b2d1-2a28-3250-c099d5a77bf7" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Aly", + "given": [ + "Zafar", + "Mahendra" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/ce70e6c3-c190-121d-c251-e4bae5cde6a1" + } + }, + { + "fullUrl": "urn:uuid:88a53755-c972-6904-b4ce-8884b84ddc2e", + "resource": { + "resourceType": "PractitionerRole", + "id": "88a53755-c972-6904-b4ce-8884b84ddc2e", + "code": [ + { + "coding": [ + { + "code": "ResponsibleObserver", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/ce70e6c3-c190-121d-c251-e4bae5cde6a1" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/88a53755-c972-6904-b4ce-8884b84ddc2e" + } + }, + { + "fullUrl": "urn:uuid:3e0952c6-eea0-8938-96f8-07c224bf1577", + "resource": { + "resourceType": "Practitioner", + "id": "3e0952c6-eea0-8938-96f8-07c224bf1577", + "identifier": [ + { + "value": "2234" + } + ], + "name": [ + { + "family": "Pauly", + "given": [ + "Berrie", + "Raud" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/3e0952c6-eea0-8938-96f8-07c224bf1577" + } + }, + { + "fullUrl": "urn:uuid:bc78e290-ec67-c238-1e05-aefb6b252b0c", + "resource": { + "resourceType": "PractitionerRole", + "id": "bc78e290-ec67-c238-1e05-aefb6b252b0c", + "code": [ + { + "coding": [ + { + "code": "ResponsibleObserver", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/3e0952c6-eea0-8938-96f8-07c224bf1577" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/bc78e290-ec67-c238-1e05-aefb6b252b0c" + } + }, + { + "fullUrl": "urn:uuid:fe0adb86-ebe9-6479-0055-9db8dc1ff99a", + "resource": { + "resourceType": "Device", + "id": "fe0adb86-ebe9-6479-0055-9db8dc1ff99a", + "identifier": [ + { + "value": "EI12.3", + "system": "urn:uuid:UI2", + "type": { + "coding": [ + { + "code": "GUID", + "display": "Same as UUID.", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + }, + { + "system": "urn:oid:UI1", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/fe0adb86-ebe9-6479-0055-9db8dc1ff99a" + } + }, + { + "fullUrl": "urn:uuid:45f65e47-46c4-1a54-f9fb-1321258e79b2", + "resource": { + "resourceType": "Practitioner", + "id": "45f65e47-46c4-1a54-f9fb-1321258e79b2", + "identifier": [ + { + "type": { + "coding": [ + { + "code": "MD-25" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/45f65e47-46c4-1a54-f9fb-1321258e79b2" + } + }, + { + "fullUrl": "urn:uuid:090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3", + "resource": { + "resourceType": "PractitionerRole", + "id": "090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3", + "code": [ + { + "coding": [ + { + "code": "LabMedicalDirector", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/45f65e47-46c4-1a54-f9fb-1321258e79b2" + }, + "organization": { + "reference": "Organization/056aa7c7-6b75-3c67-63c5-cf9604f16d25" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3" + } + }, + { + "fullUrl": "urn:uuid:056aa7c7-6b75-3c67-63c5-cf9604f16d25", + "resource": { + "resourceType": "Organization", + "id": "056aa7c7-6b75-3c67-63c5-cf9604f16d25", + "name": "FairOaks Hspital", + "address": [ + { + "line": [ + "Research Park", + "Fairfax" + ], + "city": "VA", + "state": "22031", + "postalCode": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/056aa7c7-6b75-3c67-63c5-cf9604f16d25" + } + }, + { + "fullUrl": "urn:uuid:07fd2dd3-dbd6-5bb1-cfda-02226795d9a0", + "resource": { + "resourceType": "Observation", + "id": "07fd2dd3-dbd6-5bb1-cfda-02226795d9a0", + "identifier": [ + { + "value": "EI21", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-OII" + }, + { + "type": { + "coding": [ + { + "code": "FILL" + } + ] + } + } + ], + "status": "unknown", + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "component": [ + { + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 60, + "code": "beats/min", + "unit": "beats/min", + "system": "urn:iso:std:iso:3986" + }, + "referenceRange": [ + { + "text": "70-80" + } + ] + }, + { + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 120, + "code": "beats/min", + "unit": "beats/min", + "system": "urn:iso:std:iso:3986" + }, + "referenceRange": [ + { + "text": "70-80" + } + ] + } + ], + "effectiveDateTime": "1999-07-02", + "method": { + "coding": [ + { + "code": "OBS", + "display": "This is test method", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/AS4" + } + ] + }, + "device": { + "reference": "Device/fe0adb86-ebe9-6479-0055-9db8dc1ff99a" + }, + "bodySite": { + "coding": [ + { + "code": "BU", + "display": "Observation site", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/E5" + } + ] + }, + "performer": [ + { + "reference": "PractitionerRole/88a53755-c972-6904-b4ce-8884b84ddc2e" + }, + { + "reference": "PractitionerRole/bc78e290-ec67-c238-1e05-aefb6b252b0c" + }, + { + "reference": "PractitionerRole/090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "A", + "display": "Abnormal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + }, + { + "coding": [ + { + "code": "B", + "display": "Better", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } + ], + "extension": [ + { + "url": "http://example.com/v2-to-fhir-converter/Observation_Status", + "valueCodeableConcept": { + "coding": [ + { + "code": "S", + "display": "Partial", + "system": "http://terminology.hl7.org/CodeSystem/v2-0085" + } + ], + "text": "Partial" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Observation/07fd2dd3-dbd6-5bb1-cfda-02226795d9a0" + } + }, + { + "fullUrl": "urn:uuid:a0adcda8-0b28-d089-1955-c04308d5fe28", + "resource": { + "resourceType": "AllergyIntolerance", + "id": "a0adcda8-0b28-d089-1955-c04308d5fe28", + "category": [ + "environment" + ], + "type": "allergy", + "code": { + "coding": [ + { + "code": "P", + "display": "PENICILLIN", + "system": "http://terminology.hl7.org/CodeSystem/icd-o" + } + ] + }, + "reaction": [ + { + "manifestation": [ + { + "text": "CODE16" + } + ], + "onset": "2021-08-24" + } + ], + "criticality": "low", + "clinicalStatus": { + "coding": [ + { + "code": "active", + "display": "Active", + "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical" + } + ] + }, + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "AllergyIntolerance/a0adcda8-0b28-d089-1955-c04308d5fe28" + } + }, + { + "fullUrl": "urn:uuid:14493a95-7780-ead5-89cc-ad6c3bc31d51", + "resource": { + "resourceType": "Practitioner", + "id": "14493a95-7780-ead5-89cc-ad6c3bc31d51", + "identifier": [ + { + "value": "005454" + } + ], + "name": [ + { + "family": "DIAG", + "given": [ + "ROBIN", + "B" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/14493a95-7780-ead5-89cc-ad6c3bc31d51" + } + }, + { + "fullUrl": "urn:uuid:481123a1-ca9c-c3c8-0284-e6926c3a50d8", + "resource": { + "resourceType": "Condition", + "id": "481123a1-ca9c-c3c8-0284-e6926c3a50d8", + "code": { + "coding": [ + { + "code": "422504002", + "display": "Ischemic stroke(disorder)", + "system": "http://snomed.info/sct" + } + ], + "text": "Stroke" + }, + "onsetDateTime": "2004-01-25T12:50:25+05:30", + "identifier": [ + { + "value": "DI20", + "system": "urn:oid:DTUI", + "type": { + "coding": [ + { + "code": "CLIP", + "display": "Clinical laboratory Improvement Program. Allows for the ability to designate organization identifier as a “CLIP” assigned number (for labs). Used by US Department of Defense.", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "asserter": { + "reference": "Practitioner/14493a95-7780-ead5-89cc-ad6c3bc31d51" + }, + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/condition-assertedDate", + "valueDateTime": "2020-05-01T16:45:15+05:30" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/condition-dueTo", + "valueReference": { + "reference": "Condition/98e2ecfc-6e04-bc30-6624-4f3686214b22" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Condition/481123a1-ca9c-c3c8-0284-e6926c3a50d8" + } + }, + { + "fullUrl": "urn:uuid:98e2ecfc-6e04-bc30-6624-4f3686214b22", + "resource": { + "resourceType": "Condition", + "id": "98e2ecfc-6e04-bc30-6624-4f3686214b22", + "identifier": [ + { + "system": "urn:oid:UI", + "type": { + "coding": [ + { + "code": "CLIP", + "display": "Clinical laboratory Improvement Program. Allows for the ability to designate organization identifier as a “CLIP” assigned number (for labs). Used by US Department of Defense.", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Condition/98e2ecfc-6e04-bc30-6624-4f3686214b22" + } + }, + { + "fullUrl": "urn:uuid:c073f2c1-a818-924b-8881-1481ac88d691", + "resource": { + "resourceType": "Organization", + "id": "c073f2c1-a818-924b-8881-1481ac88d691", + "name": "AuthProvider", + "identifier": [ + { + "value": "A", + "type": { + "coding": [ + { + "code": "LR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/c073f2c1-a818-924b-8881-1481ac88d691" + } + }, + { + "fullUrl": "urn:uuid:e0ba3d6b-452f-7c22-a79d-1035e4b33ceb", + "resource": { + "resourceType": "Practitioner", + "id": "e0ba3d6b-452f-7c22-a79d-1035e4b33ceb", + "identifier": [ + { + "value": "114", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-2.3", + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Beverly", + "given": [ + "Crusher", + "An" + ], + "suffix": [ + "Mr", + "AHP", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/e0ba3d6b-452f-7c22-a79d-1035e4b33ceb" + } + }, + { + "fullUrl": "urn:uuid:739ae409-c591-1a59-32ad-d2ef1b937b0f", + "resource": { + "resourceType": "ServiceRequest", + "id": "739ae409-c591-1a59-32ad-d2ef1b937b0f", + "status": "on-hold", + "intent": "order", + "identifier": [ + { + "value": "123-1", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-name" + }, + { + "value": "123-2", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-Testname" + } + ], + "authoredOn": "1990-05-01T12:16:00+05:30", + "performer": [ + { + "reference": "Organization/c073f2c1-a818-924b-8881-1481ac88d691" + }, + { + "reference": "Practitioner/e0ba3d6b-452f-7c22-a79d-1035e4b33ceb" + } + ], + "performerType": { + "coding": [ + { + "code": "EXTERNAL" + } + ] + }, + "note": [ + { + "text": "Check for metastatic disease" + } + ], + "priority": "asap", + "reasonCode": [ + { + "coding": [ + { + "code": "R-1", + "display": "Reason", + "system": "http://www.ama-assn.org/go/cpt" + } + ], + "text": "Patient has a spinal fracture" + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "ServiceRequest/739ae409-c591-1a59-32ad-d2ef1b937b0f" + } + }, + { + "fullUrl": "urn:uuid:dfab6985-a691-c4f5-d2b2-6481fdfd59e4", + "resource": { + "resourceType": "Coverage", + "id": "dfab6985-a691-c4f5-d2b2-6481fdfd59e4", + "class": [ + { + "value": "BAV", + "name": "Blue Advantage HMO", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/coverage-class", + "code": "plan", + "display": "Plan" + } + ] + } + }, + { + "value": "PUBSUMB", + "name": "SelfPay", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/coverage-class", + "code": "group", + "display": "Group" + } + ] + } + } + ], + "network": "Blue Advantage HMO", + "period": { + "start": "1989-10-01", + "end": "2050-10-01" + }, + "type": { + "coding": [ + { + "code": "HMO", + "display": "health maintenance organization policy", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + } + ] + }, + "identifier": [ + { + "value": "PN-145", + "type": { + "coding": [ + { + "code": "PLN", + "display": "Policy Number", + "system": "http://example.com/CodeSystem/additional-identifier" + } + ] + }, + "system": "http://www.examplehealthplan.com/fhir/policyidentifier" + }, + { + "value": "HMO-12345", + "type": { + "coding": [ + { + "code": "NI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "National unique individual identifier" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.3" + }, + { + "value": "Medicare-12345", + "type": { + "coding": [ + { + "code": "MC", + "display": "Patient's Medicare number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-medicare" + }, + { + "value": "MCN-008", + "type": { + "coding": [ + { + "code": "MA", + "display": "Patient Medicaid number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/identifier-medicaid" + }, + { + "value": "PNM1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/1fca4c8f-7562-b755-9a05-5f0f49096e5b" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "costToBeneficiary": [ + { + "type": { + "coding": [ + { + "code": "DC", + "display": "direct unit cost", + "system": "http://terminology.hl7.org/CodeSystem/v2-0205" + } + ] + }, + "valueMoney": { + "value": 150, + "currency": "USD" + } + } + ], + "subscriberId": "HMO-12345", + "status": "active", + "beneficiary": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "payor": [ + { + "reference": "Organization/04a2a5f2-c971-1e42-e788-250ea487a889" + } + ], + "policyHolder": { + "reference": "Organization/4829e288-ac03-22cc-c65e-922004275fd0" + }, + "subscriber": { + "reference": "RelatedPerson/fd1eed45-4ccb-bb7c-d157-58eb0366d777" + }, + "relationship": { + "coding": [ + { + "code": "spouse", + "display": "Spouse", + "system": "http://terminology.hl7.org/CodeSystem/subscriber-relationship" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Coverage/dfab6985-a691-c4f5-d2b2-6481fdfd59e4" + } + }, + { + "fullUrl": "urn:uuid:04a2a5f2-c971-1e42-e788-250ea487a889", + "resource": { + "resourceType": "Organization", + "id": "04a2a5f2-c971-1e42-e788-250ea487a889", + "address": [ + { + "line": [ + "1979 MILKY WAY" + ], + "city": "VERONA", + "state": "WI", + "postalCode": "53593", + "country": "US" + } + ], + "contact": [ + { + "name": { + "family": "Henry", + "given": [ + "Rony", + "A" + ], + "suffix": [ + "III", + "MD" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1925-10-12" + } + } + } + ], + "telecom": [ + { + "value": "(555)555-5555", + "system": "phone" + } + ], + "identifier": [ + { + "value": "IC-1.31", + "type": { + "coding": [ + { + "code": "NIIP", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "National Insurance Payor Identifier (Payor)" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.1", + "period": { + "start": "1929-10-11", + "end": "1929-10-12" + } + } + ], + "name": "Blue Cross Blue Shield of Texas" + }, + "request": { + "method": "PUT", + "url": "Organization/04a2a5f2-c971-1e42-e788-250ea487a889" + } + }, + { + "fullUrl": "urn:uuid:4829e288-ac03-22cc-c65e-922004275fd0", + "resource": { + "resourceType": "Organization", + "id": "4829e288-ac03-22cc-c65e-922004275fd0", + "address": [ + { + "line": [ + "2000 MILKY WAY" + ], + "city": "VERONA", + "state": "WI", + "postalCode": "53593", + "country": "US" + } + ], + "name": "Sam P. Hil", + "contact": [ + { + "name": { + "family": "Richard", + "given": [ + "Paul" + ] + }, + "telecom": [ + { + "value": "254622222", + "system": "phone" + } + ] + } + ], + "telecom": [ + { + "value": "555777888", + "system": "fax" + }, + { + "system": "phone" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4829e288-ac03-22cc-c65e-922004275fd0" + } + }, + { + "fullUrl": "urn:uuid:fd1eed45-4ccb-bb7c-d157-58eb0366d777", + "resource": { + "resourceType": "RelatedPerson", + "id": "fd1eed45-4ccb-bb7c-d157-58eb0366d777", + "identifier": [ + { + "value": "HMO-12345", + "type": { + "coding": [ + { + "code": "NI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "National unique individual identifier" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.3" + }, + { + "value": "1117", + "type": { + "coding": [ + { + "code": "EI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Employee number" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.4" + }, + { + "value": "1118", + "type": { + "coding": [ + { + "code": "BC", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Bank Card Number" + } + ] + } + }, + { + "value": "425-57-9745", + "type": { + "coding": [ + { + "code": "SS", + "display": "Social Security number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "SPS", + "display": "spouse", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "address": [ + { + "line": [ + "3857 Velvet Treasure Terrace" + ], + "city": "Midnight", + "state": "NC", + "postalCode": "27878", + "country": "US" + } + ], + "name": [ + { + "family": "Doe", + "given": [ + "Rosallie", + "John" + ], + "suffix": [ + "III", + "Bachelors" + ], + "prefix": [ + "Mrs." + ], + "use": "official" + } + ], + "gender": "female", + "birthDate": "1975-02-28", + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "telecom": [ + { + "value": "0005245", + "use": "work", + "system": "email" + }, + { + "system": "phone" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47" + } + ] + }, + "preferred": true + } + ] + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/fd1eed45-4ccb-bb7c-d157-58eb0366d777" + } + }, + { + "fullUrl": "urn:uuid:1fca4c8f-7562-b755-9a05-5f0f49096e5b", + "resource": { + "resourceType": "Organization", + "id": "1fca4c8f-7562-b755-9a05-5f0f49096e5b", + "identifier": [ + { + "value": "PM", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PM" + }, + { + "value": "2.6.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/1fca4c8f-7562-b755-9a05-5f0f49096e5b" + } + } + ] +} \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A15/ADT-A15-expected-2.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A15/ADT-A15-expected-2.json new file mode 100644 index 000000000..79e6d4be3 --- /dev/null +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A15/ADT-A15-expected-2.json @@ -0,0 +1,2130 @@ +{ + "resourceType": "Bundle", + "type": "batch", + "timestamp": "1989-08-18T14:41:00+05:30", + "identifier": { + "value": "MSG00001" + }, + "id": "513a3d06-5e87-6fbc-ad1b-170ab430499f", + "entry": [ + { + "fullUrl": "urn:uuid:b4ca189b-51ae-33df-cbe2-559b4423a321", + "resource": { + "resourceType": "MessageHeader", + "id": "b4ca189b-51ae-33df-cbe2-559b4423a321", + "source": { + "name": "24GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.20" + }, + "destination": [ + { + "name": "25GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.23", + "receiver": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + } + ], + "meta": { + "security": [ + { + "display": "SECURITY", + "system": "http://example.com/v2-to-fhirconverter/security-label" + } + ], + "tag": [ + { + "code": "P", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "A15", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ADT^A15^ADT_A15" + }, + "language": "en-US", + "sender": { + "reference": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + }, + "responsible": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + "request": { + "method": "PUT", + "url": "MessageHeader/b4ca189b-51ae-33df-cbe2-559b4423a321" + } + }, + { + "fullUrl": "urn:uuid:f65d2168-02c8-1897-210d-361176172856", + "resource": { + "resourceType": "Provenance", + "id": "f65d2168-02c8-1897-210d-361176172856", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T13:28:03.014Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ADT_A15.

" + }, + "occurredDateTime": "1989-08-18T14:41:00+05:30", + "recorded": "1989-08-18T14:41:00+05:30", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + } + ], + "activity": { + "coding": [ + { + "display": "ADT^A15^ADT_A15" + } + ] + }, + "entity": [ + { + "role": "source", + "what": { + "reference": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + } + ], + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/f65d2168-02c8-1897-210d-361176172856" + } + }, + { + "fullUrl": "urn:uuid:4356fb81-6ecd-2d70-57b1-47812638e785", + "resource": { + "resourceType": "Organization", + "id": "4356fb81-6ecd-2d70-57b1-47812638e785", + "identifier": [ + { + "value": "GHHSFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHSFacility" + }, + { + "value": "urn:oid:2.16.840.1.122848.1.30", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + } + }, + { + "fullUrl": "urn:uuid:62781ad6-3896-cb63-0178-ead0c4a432b5", + "resource": { + "resourceType": "Organization", + "id": "62781ad6-3896-cb63-0178-ead0c4a432b5", + "identifier": [ + { + "value": "GHHRFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHRFacility" + }, + { + "value": "urn:oid:2.16.840.1.1122848.1.32", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/62781ad6-3896-cb63-0178-ead0c4a432b5" + } + }, + { + "fullUrl": "urn:uuid:33532a82-d220-4c0d-1abe-53e48951c201", + "resource": { + "resourceType": "Organization", + "id": "33532a82-d220-4c0d-1abe-53e48951c201", + "name": "22 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + { + "fullUrl": "urn:uuid:527280c1-34d1-c639-e9ba-61986d28e266", + "resource": { + "resourceType": "Organization", + "id": "527280c1-34d1-c639-e9ba-61986d28e266", + "name": "23 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + }, + { + "fullUrl": "urn:uuid:503eb873-22fb-8199-ae28-3604ad59fe13", + "resource": { + "resourceType": "Device", + "id": "503eb873-22fb-8199-ae28-3604ad59fe13", + "identifier": [ + { + "value": "ADTApp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + }, + { + "fullUrl": "urn:uuid:9e909e52-61a1-be50-1878-a12ef8c36346", + "resource": { + "resourceType": "Patient", + "id": "9e909e52-61a1-be50-1878-a12ef8c36346", + "identifier": [ + { + "value": "1234567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "PATID1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "value": "123456789", + "type": { + "coding": [ + { + "code": "SS", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Social Security number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-USSSA" + }, + { + "value": "PATID567", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test2" + }, + { + "value": "PSSN123121234", + "type": { + "coding": [ + { + "code": "SB", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + }, + { + "value": "DLN-123", + "type": { + "coding": [ + { + "code": "DL" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/US", + "period": { + "end": "2001-01-23" + } + } + ], + "name": [ + { + "family": "EVERYMAN", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official", + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + }, + { + "family": "elbert", + "given": [ + "Son" + ] + } + ], + "birthDate": "1988-08-18", + "_birthDate": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime": "1988-08-18T14:41:00+05:30" + } + ] + }, + "gender": "male", + "address": [ + { + "line": [ + "1000", + "Hospital Lane", + "Ste. 123", + "Near Highway" + ], + "city": "Ann Arbor ", + "state": "MI", + "postalCode": "99999", + "country": "USA", + "type": "postal", + "district": "W", + "period": { + "start": "2000-01-10", + "end": "2000-01-20" + } + } + ], + "telecom": [ + { + "value": "2222", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18, + "use": "home" + }, + { + "value": "12121212", + "system": "phone", + "use": "home" + }, + { + "value": "7777", + "system": "phone", + "use": "work" + }, + { + "value": "1111", + "system": "other", + "use": "work" + }, + { + "value": "89898989", + "use": "work", + "system": "email" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47", + "version": "v2" + }, + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47", + "version": "v2.1" + } + ], + "text": "TextInEnglish" + }, + "preferred": true + } + ], + "maritalStatus": { + "coding": [ + { + "code": "M", + "display": "Married", + "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" + } + ] + }, + "multipleBirthInteger": 2, + "deceasedDateTime": "2008-08-25T15:31:30+05:30", + "meta": { + "lastUpdated": "2005-01-10T04:05:14+05:30" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "ombCategory", + "valueCoding": { + "code": "2028-9", + "display": "Asian", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White+Asian" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + "valueString": "SMITH--Angela--L" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", + "valueAddress": { + "text": "St. Francis Community Hospital of Lower South Side" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-religion", + "valueCodeableConcept": { + "coding": [ + { + "code": "1002", + "display": "African Religions", + "system": "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2186-5", + "display": "Non Hispanic or Latino", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "Non Hispanic or Latino" + } + ] + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/VeteranMilitaryStatus", + "valueCodeableConcept": { + "coding": [ + { + "code": "Vet123", + "display": "retired", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ART" + } + ], + "text": "retired" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-animal", + "extension": [ + { + "url": "species", + "valueCodeableConcept": { + "coding": [ + { + "code": "125097000", + "display": "Goat", + "system": "http://snomed.info/sct" + } + ], + "text": "Goat" + } + }, + { + "url": "breed", + "valueCodeableConcept": { + "coding": [ + { + "code": "4880003", + "display": "Beagle", + "system": "http://snomed.info/sct" + } + ], + "text": "Beagle" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "US", + "display": "United States of America", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "United States of America" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "CA", + "display": "Canada", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Canada" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-nationality", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "BT", + "display": "Bhutan", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Bhutan" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-importance", + "valueCodeableConcept": { + "coding": [ + { + "code": "VIP", + "display": "Very Important Person", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/L", + "version": "v1.1" + }, + { + "code": "IMP", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/DCM", + "version": "v1.2" + } + ], + "text": "Inportant Person" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + { + "fullUrl": "urn:uuid:78295402-9b84-4829-b945-502ab3402de5", + "resource": { + "resourceType": "Account", + "id": "78295402-9b84-4829-b945-502ab3402de5", + "identifier": [ + { + "value": "4000776", + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Visit number" + } + ] + }, + "system": "urn:oid:2.4", + "assigner": { + "reference": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/78295402-9b84-4829-b945-502ab3402de5" + } + }, + { + "fullUrl": "urn:uuid:9d4c8327-8a28-8152-1898-8251baa707b7", + "resource": { + "resourceType": "Organization", + "id": "9d4c8327-8a28-8152-1898-8251baa707b7", + "identifier": [ + { + "value": "AccMgr", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr" + }, + { + "value": "urn:oid:2.4", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + } + }, + { + "fullUrl": "urn:uuid:b3ad3a9f-d4f6-4638-0a09-2da771733488", + "resource": { + "resourceType": "Organization", + "id": "b3ad3a9f-d4f6-4638-0a09-2da771733488", + "identifier": [ + { + "value": "test1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test1" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "fullUrl": "urn:uuid:f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "resource": { + "resourceType": "Organization", + "id": "f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "identifier": [ + { + "value": "NTH", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NTH" + }, + { + "value": "rt23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + } + }, + { + "fullUrl": "urn:uuid:62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "resource": { + "resourceType": "RelatedPerson", + "id": "62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "identifier": [ + { + "value": "1212121", + "type": { + "coding": [ + { + "code": "AND", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Account number debitor" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "relationship": [ + { + "coding": [ + { + "code": "MTH", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/62b2e1ee-a272-4ffe-692e-a1fbfd49af6a" + } + }, + { + "fullUrl": "urn:uuid:11967e28-8dd4-a112-0fdc-377866bf12a0", + "resource": { + "resourceType": "Organization", + "id": "11967e28-8dd4-a112-0fdc-377866bf12a0", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "2.16.840.1.113883.19", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + } + }, + { + "fullUrl": "urn:uuid:7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "resource": { + "resourceType": "Organization", + "id": "7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "identifier": [ + { + "value": "AccMng", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMng" + }, + { + "value": "1.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + } + }, + { + "fullUrl": "urn:uuid:0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "resource": { + "resourceType": "Organization", + "id": "0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "identifier": [ + { + "value": "PERSONNELt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSONNELt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + } + }, + { + "fullUrl": "urn:uuid:f6775f99-5279-be04-bf81-0906c81f7443", + "resource": { + "resourceType": "Practitioner", + "id": "f6775f99-5279-be04-bf81-0906c81f7443", + "identifier": [ + { + "value": "1122334", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Alaz", + "given": [ + "Mohammed", + "Mahi" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "fullUrl": "urn:uuid:c613d7b2-525f-8c08-a7ac-b2b91486e257", + "resource": { + "resourceType": "Organization", + "id": "c613d7b2-525f-8c08-a7ac-b2b91486e257", + "identifier": [ + { + "value": "TEST", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TEST" + }, + { + "value": "23.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + } + }, + { + "fullUrl": "urn:uuid:04f8cfc8-62ca-12df-63ce-6304ef577d44", + "resource": { + "resourceType": "Practitioner", + "id": "04f8cfc8-62ca-12df-63ce-6304ef577d44", + "identifier": [ + { + "value": "C006", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + }, + "type": { + "coding": [ + { + "code": "BA", + "display": "Bank Account Number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen" + ], + "prefix": [ + "Dr" + ], + "use": "anonymous" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "fullUrl": "urn:uuid:99edcabd-fbeb-7e25-f823-11da8d8ed342", + "resource": { + "resourceType": "Practitioner", + "id": "99edcabd-fbeb-7e25-f823-11da8d8ed342", + "identifier": [ + { + "value": "C008", + "system": "urn:oid:2.8", + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Condoc", + "given": [ + "leen" + ], + "prefix": [ + "Dr" + ], + "use": "temp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "fullUrl": "urn:uuid:b065b233-8738-f1ec-1314-d61e4aac2c9e", + "resource": { + "resourceType": "Practitioner", + "id": "b065b233-8738-f1ec-1314-d61e4aac2c9e", + "identifier": [ + { + "value": "37", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr", + "type": { + "coding": [ + { + "code": "ANC", + "display": "Account number Creditor", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "DISNEY", + "given": [ + "WALT" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "fullUrl": "urn:uuid:9f974d4f-47e8-21a6-e549-4de4599c3764", + "resource": { + "resourceType": "Organization", + "id": "9f974d4f-47e8-21a6-e549-4de4599c3764", + "identifier": [ + { + "value": "T123", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-T123" + }, + { + "value": "urn:oid:r2.3", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + }, + { + "fullUrl": "urn:uuid:84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "resource": { + "resourceType": "Practitioner", + "id": "84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "identifier": [ + { + "value": "Othhel", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "fullUrl": "urn:uuid:9172e4a0-1ca5-646d-2183-b179f4daa737", + "resource": { + "resourceType": "Location", + "id": "9172e4a0-1ca5-646d-2183-b179f4daa737", + "partOf": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + }, + "name": "HUH AE OMU", + "identifier": [ + { + "value": "urn:oid:9.8", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "fullUrl": "urn:uuid:3913ec4d-6576-5e1a-ac31-e8280583371c", + "resource": { + "resourceType": "Location", + "id": "3913ec4d-6576-5e1a-ac31-e8280583371c", + "partOf": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + }, + "name": "OMU B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "fullUrl": "urn:uuid:804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "resource": { + "resourceType": "Location", + "id": "804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "partOf": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + }, + "name": "Bed 03", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "fullUrl": "urn:uuid:c043880b-0fab-1cb8-14f7-0475282c4d0e", + "resource": { + "resourceType": "Location", + "id": "c043880b-0fab-1cb8-14f7-0475282c4d0e", + "name": "HOMERTON UNIVER", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "fullUrl": "urn:uuid:f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "resource": { + "resourceType": "Location", + "id": "f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "partOf": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + }, + "name": "Homerton UH", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "fullUrl": "urn:uuid:7e38808c-44a8-cb0c-4709-9d6092abc32c", + "resource": { + "resourceType": "Location", + "id": "7e38808c-44a8-cb0c-4709-9d6092abc32c", + "partOf": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + }, + "name": "Floor5", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "fullUrl": "urn:uuid:59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "resource": { + "resourceType": "Location", + "id": "59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "name": "4 East, room 136, bed B 4E", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + } + }, + { + "fullUrl": "urn:uuid:d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "resource": { + "resourceType": "Location", + "id": "d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "partOf": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "name": "136", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + } + }, + { + "fullUrl": "urn:uuid:5783dafa-c6c0-e673-cca4-42087ee1831b", + "resource": { + "resourceType": "Location", + "id": "5783dafa-c6c0-e673-cca4-42087ee1831b", + "partOf": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "name": "B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + } + }, + { + "fullUrl": "urn:uuid:8b39e6e5-78cd-63ab-2441-f43ca5554096", + "resource": { + "resourceType": "Location", + "id": "8b39e6e5-78cd-63ab-2441-f43ca5554096", + "name": "CommunityHospital", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + } + }, + { + "fullUrl": "urn:uuid:42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "resource": { + "resourceType": "Location", + "id": "42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "name": "Homes", + "identifier": [ + { + "value": "22", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/FDK" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + { + "fullUrl": "urn:uuid:84634858-74aa-5cdb-4547-60ec27339ac6", + "resource": { + "resourceType": "Location", + "id": "84634858-74aa-5cdb-4547-60ec27339ac6", + "name": "POC", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + } + }, + { + "fullUrl": "urn:uuid:9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "resource": { + "resourceType": "Location", + "id": "9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "partOf": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "name": "Room-2", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + } + }, + { + "fullUrl": "urn:uuid:35353f20-6254-e794-98ed-8007490447e3", + "resource": { + "resourceType": "Location", + "id": "35353f20-6254-e794-98ed-8007490447e3", + "partOf": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "name": "Bed-103", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/35353f20-6254-e794-98ed-8007490447e3" + } + }, + { + "fullUrl": "urn:uuid:055e10f1-222e-df73-2325-0e4396db1a55", + "resource": { + "resourceType": "Location", + "id": "055e10f1-222e-df73-2325-0e4396db1a55", + "name": "Greenland", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + } + }, + { + "fullUrl": "urn:uuid:1154e6b2-b022-b3be-7dce-2b940ab5376d", + "resource": { + "resourceType": "Location", + "id": "1154e6b2-b022-b3be-7dce-2b940ab5376d", + "name": "Nursing home", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + } + }, + { + "fullUrl": "urn:uuid:08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "resource": { + "resourceType": "Location", + "id": "08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "name": "Rosewood", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + } + }, + { + "fullUrl": "urn:uuid:08314073-410a-3dc7-512c-0f2d206fb59d", + "resource": { + "resourceType": "Organization", + "id": "08314073-410a-3dc7-512c-0f2d206fb59d", + "identifier": [ + { + "value": "Etest", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-Etest" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + }, + { + "fullUrl": "urn:uuid:919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "resource": { + "resourceType": "EpisodeOfCare", + "id": "919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "status": "planned", + "identifier": [ + { + "value": "EOC124", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + }, + { + "fullUrl": "urn:uuid:4b192760-03d2-aec4-b0a6-fde323912e1e", + "resource": { + "resourceType": "Encounter", + "id": "4b192760-03d2-aec4-b0a6-fde323912e1e", + "class": { + "code": "PRENC", + "display": "pre-admission", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "status": "planned", + "location": [ + { + "status": "planned", + "location": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "status": "completed", + "location": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/35353f20-6254-e794-98ed-8007490447e3" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + } + ], + "type": [ + { + "coding": [ + { + "code": "E", + "display": "Emergency", + "system": "http://terminology.hl7.org/CodeSystem/v2-0007" + } + ] + } + ], + "hospitalization": { + "preAdmissionIdentifier": { + "value": "1234567", + "type": { + "coding": [ + { + "code": "ANON", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Anonymous identifier" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + "reAdmission": { + "coding": [ + { + "code": "R", + "display": "Re-admission", + "system": "http://terminology.hl7.org/CodeSystem/v2-0092" + } + ] + }, + "admitSource": { + "coding": [ + { + "code": "NHS Provider-General (inc.A&E-this Hosp)" + } + ] + }, + "dischargeDisposition": { + "coding": [ + { + "code": "Admitted as Inpatient", + "display": "Sample", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ACR" + } + ] + }, + "dietPreference": [ + { + "coding": [ + { + "code": "Vegan", + "display": "Vegetarian" + } + ] + } + ], + "destination": { + "reference": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + "episodeOfCare": [ + { + "reference": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + ], + "participant": [ + { + "type": [ + { + "coding": [ + { + "code": "ATND", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", + "display": "attender" + } + ] + } + ], + "individual": { + "reference": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "CON", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "consultant" + } + ], + "individual": { + "reference": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "ADM", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "admitter" + } + ], + "individual": { + "reference": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "PART", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "Participation" + } + ], + "individual": { + "reference": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + } + ], + "serviceType": { + "coding": [ + { + "code": "SUR" + } + ] + }, + "identifier": [ + { + "value": "40007716", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + }, + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ], + "text": "visit number" + } + }, + { + "value": "50", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:r2.3", + "assigner": { + "reference": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + } + ], + "period": { + "start": "2015-02-08T15:54:19+05:30" + }, + "text": { + "status": "generated", + "div": "

Visit Description:

" + }, + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Encounter/4b192760-03d2-aec4-b0a6-fde323912e1e" + } + }, + { + "fullUrl": "urn:uuid:9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "resource": { + "resourceType": "Provenance", + "id": "9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "occurredDateTime": "2021-08-17T18:49:43.004+05:30", + "recorded": "2029-08-01T11:21:24+05:30", + "reason": [ + { + "coding": [ + { + "code": "PATRQT", + "display": "patient requested", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason" + } + ] + } + ], + "agent": [ + { + "who": { + "reference": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + } + ], + "activity": { + "text": "ADT^A15^ADT_A15" + }, + "location": { + "reference": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + }, + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c" + } + }, + { + "fullUrl": "urn:uuid:ef39f581-5e8f-3917-35a9-3443303d9eee", + "resource": { + "resourceType": "Organization", + "id": "ef39f581-5e8f-3917-35a9-3443303d9eee", + "identifier": [ + { + "value": "DRNBR", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-DRNBR" + }, + { + "value": "urn:oid:W1.2", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + } + }, + { + "fullUrl": "urn:uuid:95aea53b-8d49-d57f-d16f-4d14b914f992", + "resource": { + "resourceType": "Practitioner", + "id": "95aea53b-8d49-d57f-d16f-4d14b914f992", + "identifier": [ + { + "value": "C08", + "system": "urn:oid:W1.2", + "assigner": { + "reference": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + }, + "type": { + "coding": [ + { + "code": "ANON", + "display": "Anonymous identifier", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen", + "2ndname" + ], + "suffix": [ + "Jr", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + }, + { + "fullUrl": "urn:uuid:59d5e519-0108-5dd8-adfa-1eef5658009e", + "resource": { + "resourceType": "Location", + "id": "59d5e519-0108-5dd8-adfa-1eef5658009e", + "name": "Cona_Health", + "identifier": [ + { + "value": "urn:oid:1.3.6.1.4.1.44750.1.4", + "system": "urn:ietf:rfc:3986" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "display": "site", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + } + } + ] +} \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A15/ADT-A15-expected.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A15/ADT-A15-expected.json new file mode 100644 index 000000000..d92012579 --- /dev/null +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A15/ADT-A15-expected.json @@ -0,0 +1,3028 @@ +{ + "resourceType": "Bundle", + "type": "batch", + "timestamp": "1989-08-18T14:41:00+05:30", + "identifier": { + "value": "MSG00001" + }, + "id": "513a3d06-5e87-6fbc-ad1b-170ab430499f", + "entry": [ + { + "fullUrl": "urn:uuid:b4ca189b-51ae-33df-cbe2-559b4423a321", + "resource": { + "resourceType": "MessageHeader", + "id": "b4ca189b-51ae-33df-cbe2-559b4423a321", + "source": { + "name": "24GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.20", + "version": "2.4.3.52854", + "software": "Rhapsody" + }, + "destination": [ + { + "name": "25GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.23", + "receiver": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + } + ], + "meta": { + "security": [ + { + "display": "SECURITY", + "system": "http://example.com/v2-to-fhirconverter/security-label" + } + ], + "tag": [ + { + "code": "P", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "A15", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ADT^A15^ADT_A15" + }, + "language": "en-US", + "sender": { + "reference": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + }, + "responsible": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + "request": { + "method": "PUT", + "url": "MessageHeader/b4ca189b-51ae-33df-cbe2-559b4423a321" + } + }, + { + "fullUrl": "urn:uuid:f65d2168-02c8-1897-210d-361176172856", + "resource": { + "resourceType": "Provenance", + "id": "f65d2168-02c8-1897-210d-361176172856", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T13:28:37.319Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ADT_A15.

" + }, + "occurredDateTime": "1989-08-18T14:41:00+05:30", + "recorded": "1989-08-18T14:41:00+05:30", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + } + ], + "activity": { + "coding": [ + { + "display": "ADT^A15^ADT_A15" + } + ] + }, + "entity": [ + { + "role": "source", + "what": { + "reference": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + } + ], + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/f65d2168-02c8-1897-210d-361176172856" + } + }, + { + "fullUrl": "urn:uuid:4356fb81-6ecd-2d70-57b1-47812638e785", + "resource": { + "resourceType": "Organization", + "id": "4356fb81-6ecd-2d70-57b1-47812638e785", + "identifier": [ + { + "value": "GHHSFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHSFacility" + }, + { + "value": "urn:oid:2.16.840.1.122848.1.30", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + } + }, + { + "fullUrl": "urn:uuid:62781ad6-3896-cb63-0178-ead0c4a432b5", + "resource": { + "resourceType": "Organization", + "id": "62781ad6-3896-cb63-0178-ead0c4a432b5", + "identifier": [ + { + "value": "GHHRFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHRFacility" + }, + { + "value": "urn:oid:2.16.840.1.1122848.1.32", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/62781ad6-3896-cb63-0178-ead0c4a432b5" + } + }, + { + "fullUrl": "urn:uuid:33532a82-d220-4c0d-1abe-53e48951c201", + "resource": { + "resourceType": "Organization", + "id": "33532a82-d220-4c0d-1abe-53e48951c201", + "name": "22 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + { + "fullUrl": "urn:uuid:527280c1-34d1-c639-e9ba-61986d28e266", + "resource": { + "resourceType": "Organization", + "id": "527280c1-34d1-c639-e9ba-61986d28e266", + "name": "23 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + }, + { + "fullUrl": "urn:uuid:503eb873-22fb-8199-ae28-3604ad59fe13", + "resource": { + "resourceType": "Device", + "id": "503eb873-22fb-8199-ae28-3604ad59fe13", + "identifier": [ + { + "value": "ADTApp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + }, + { + "fullUrl": "urn:uuid:4b549918-a84d-cdaf-e150-c773a5d306e5", + "resource": { + "resourceType": "Device", + "id": "4b549918-a84d-cdaf-e150-c773a5d306e5", + "manufacturer": "Orion", + "deviceName": [ + { + "name": "Rhapsody", + "type": "manufacturer-name" + } + ], + "version": [ + { + "value": "2.4.3.52854" + } + ], + "modelNumber": "2.4.3", + "note": [ + { + "text": "Testactivity" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/4b549918-a84d-cdaf-e150-c773a5d306e5" + } + }, + { + "fullUrl": "urn:uuid:9e909e52-61a1-be50-1878-a12ef8c36346", + "resource": { + "resourceType": "Patient", + "id": "9e909e52-61a1-be50-1878-a12ef8c36346", + "identifier": [ + { + "value": "1234567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "PATID1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "value": "123456789", + "type": { + "coding": [ + { + "code": "SS", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Social Security number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-USSSA" + }, + { + "value": "PATID567", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test2" + }, + { + "value": "PSSN123121234", + "type": { + "coding": [ + { + "code": "SB", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + }, + { + "value": "DLN-123", + "type": { + "coding": [ + { + "code": "DL" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/US", + "period": { + "end": "2001-01-23" + } + }, + { + "value": "DB123", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:1.12", + "assigner": { + "reference": "Organization/4e68b44e-c053-02b1-6d6d-fe816f9fdfec" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "name": [ + { + "family": "EVERYMAN", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official", + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + }, + { + "family": "elbert", + "given": [ + "Son" + ] + } + ], + "birthDate": "1988-08-18", + "_birthDate": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime": "1988-08-18T14:41:00+05:30" + } + ] + }, + "gender": "male", + "address": [ + { + "line": [ + "1000", + "Hospital Lane", + "Ste. 123", + "Near Highway" + ], + "city": "Ann Arbor ", + "state": "MI", + "postalCode": "99999", + "country": "USA", + "type": "postal", + "district": "W", + "period": { + "start": "2000-01-10", + "end": "2000-01-20" + } + } + ], + "telecom": [ + { + "value": "2222", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18, + "use": "home" + }, + { + "value": "12121212", + "system": "phone", + "use": "home" + }, + { + "value": "7777", + "system": "phone", + "use": "work" + }, + { + "value": "1111", + "system": "other", + "use": "work" + }, + { + "value": "89898989", + "use": "work", + "system": "email" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47", + "version": "v2" + }, + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47", + "version": "v2.1" + } + ], + "text": "TextInEnglish" + }, + "preferred": true + } + ], + "maritalStatus": { + "coding": [ + { + "code": "M", + "display": "Married", + "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" + } + ] + }, + "multipleBirthInteger": 2, + "deceasedDateTime": "2008-08-25T15:31:30+05:30", + "meta": { + "lastUpdated": "2005-01-10T04:05:14+05:30" + }, + "generalPractitioner": [ + { + "reference": "Organization/4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11" + }, + { + "reference": "Practitioner/76aaad38-1077-6a5c-0c5c-102ec160a60d" + } + ], + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "ombCategory", + "valueCoding": { + "code": "2028-9", + "display": "Asian", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White+Asian" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + "valueString": "SMITH--Angela--L" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", + "valueAddress": { + "text": "St. Francis Community Hospital of Lower South Side" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-religion", + "valueCodeableConcept": { + "coding": [ + { + "code": "1002", + "display": "African Religions", + "system": "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2186-5", + "display": "Non Hispanic or Latino", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "Non Hispanic or Latino" + } + ] + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/VeteranMilitaryStatus", + "valueCodeableConcept": { + "coding": [ + { + "code": "Vet123", + "display": "retired", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ART" + } + ], + "text": "retired" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-animal", + "extension": [ + { + "url": "species", + "valueCodeableConcept": { + "coding": [ + { + "code": "125097000", + "display": "Goat", + "system": "http://snomed.info/sct" + } + ], + "text": "Goat" + } + }, + { + "url": "breed", + "valueCodeableConcept": { + "coding": [ + { + "code": "4880003", + "display": "Beagle", + "system": "http://snomed.info/sct" + } + ], + "text": "Beagle" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "US", + "display": "United States of America", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "United States of America" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "CA", + "display": "Canada", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Canada" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-nationality", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "BT", + "display": "Bhutan", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Bhutan" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-congregation", + "valueString": "Methodist Church" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-importance", + "valueCodeableConcept": { + "coding": [ + { + "code": "VIP", + "display": "Very Important Person", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/L", + "version": "v1.1" + }, + { + "code": "IMP", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/DCM", + "version": "v1.2" + } + ], + "text": "Inportant Person" + } + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/patient-disabilityIndicator", + "valueBoolean": true + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/DisabilityPeriod", + "valuePeriod": { + "start": "2021-08-30", + "end": "2021-09-30" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + { + "fullUrl": "urn:uuid:78295402-9b84-4829-b945-502ab3402de5", + "resource": { + "resourceType": "Account", + "id": "78295402-9b84-4829-b945-502ab3402de5", + "identifier": [ + { + "value": "4000776", + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Visit number" + } + ] + }, + "system": "urn:oid:2.4", + "assigner": { + "reference": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/78295402-9b84-4829-b945-502ab3402de5" + } + }, + { + "fullUrl": "urn:uuid:9d4c8327-8a28-8152-1898-8251baa707b7", + "resource": { + "resourceType": "Organization", + "id": "9d4c8327-8a28-8152-1898-8251baa707b7", + "identifier": [ + { + "value": "AccMgr", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr" + }, + { + "value": "urn:oid:2.4", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + } + }, + { + "fullUrl": "urn:uuid:b3ad3a9f-d4f6-4638-0a09-2da771733488", + "resource": { + "resourceType": "Organization", + "id": "b3ad3a9f-d4f6-4638-0a09-2da771733488", + "identifier": [ + { + "value": "test1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test1" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "fullUrl": "urn:uuid:f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "resource": { + "resourceType": "Organization", + "id": "f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "identifier": [ + { + "value": "NTH", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NTH" + }, + { + "value": "rt23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + } + }, + { + "fullUrl": "urn:uuid:62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "resource": { + "resourceType": "RelatedPerson", + "id": "62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "identifier": [ + { + "value": "1212121", + "type": { + "coding": [ + { + "code": "AND", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Account number debitor" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "relationship": [ + { + "coding": [ + { + "code": "MTH", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/62b2e1ee-a272-4ffe-692e-a1fbfd49af6a" + } + }, + { + "fullUrl": "urn:uuid:4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11", + "resource": { + "resourceType": "Organization", + "id": "4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11", + "name": "LINDAS TEST ORGANIZATION", + "identifier": [ + { + "value": "SIISCLIENT818" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11" + } + }, + { + "fullUrl": "urn:uuid:76aaad38-1077-6a5c-0c5c-102ec160a60d", + "resource": { + "resourceType": "Practitioner", + "id": "76aaad38-1077-6a5c-0c5c-102ec160a60d", + "identifier": [ + { + "value": "88", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TE", + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Hippo", + "given": [ + "rold", + "H" + ], + "suffix": [ + "V", + "MD" + ], + "prefix": [ + "Dr" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/76aaad38-1077-6a5c-0c5c-102ec160a60d" + } + }, + { + "fullUrl": "urn:uuid:11967e28-8dd4-a112-0fdc-377866bf12a0", + "resource": { + "resourceType": "Organization", + "id": "11967e28-8dd4-a112-0fdc-377866bf12a0", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "2.16.840.1.113883.19", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + } + }, + { + "fullUrl": "urn:uuid:7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "resource": { + "resourceType": "Organization", + "id": "7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "identifier": [ + { + "value": "AccMng", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMng" + }, + { + "value": "1.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + } + }, + { + "fullUrl": "urn:uuid:0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "resource": { + "resourceType": "Organization", + "id": "0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "identifier": [ + { + "value": "PERSONNELt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSONNELt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + } + }, + { + "fullUrl": "urn:uuid:f6775f99-5279-be04-bf81-0906c81f7443", + "resource": { + "resourceType": "Practitioner", + "id": "f6775f99-5279-be04-bf81-0906c81f7443", + "identifier": [ + { + "value": "1122334", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Alaz", + "given": [ + "Mohammed", + "Mahi" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "fullUrl": "urn:uuid:c613d7b2-525f-8c08-a7ac-b2b91486e257", + "resource": { + "resourceType": "Organization", + "id": "c613d7b2-525f-8c08-a7ac-b2b91486e257", + "identifier": [ + { + "value": "TEST", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TEST" + }, + { + "value": "23.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + } + }, + { + "fullUrl": "urn:uuid:04f8cfc8-62ca-12df-63ce-6304ef577d44", + "resource": { + "resourceType": "Practitioner", + "id": "04f8cfc8-62ca-12df-63ce-6304ef577d44", + "identifier": [ + { + "value": "C006", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + }, + "type": { + "coding": [ + { + "code": "BA", + "display": "Bank Account Number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen" + ], + "prefix": [ + "Dr" + ], + "use": "anonymous" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "fullUrl": "urn:uuid:99edcabd-fbeb-7e25-f823-11da8d8ed342", + "resource": { + "resourceType": "Practitioner", + "id": "99edcabd-fbeb-7e25-f823-11da8d8ed342", + "identifier": [ + { + "value": "C008", + "system": "urn:oid:2.8", + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Condoc", + "given": [ + "leen" + ], + "prefix": [ + "Dr" + ], + "use": "temp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "fullUrl": "urn:uuid:b065b233-8738-f1ec-1314-d61e4aac2c9e", + "resource": { + "resourceType": "Practitioner", + "id": "b065b233-8738-f1ec-1314-d61e4aac2c9e", + "identifier": [ + { + "value": "37", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr", + "type": { + "coding": [ + { + "code": "ANC", + "display": "Account number Creditor", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "DISNEY", + "given": [ + "WALT" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "fullUrl": "urn:uuid:9f974d4f-47e8-21a6-e549-4de4599c3764", + "resource": { + "resourceType": "Organization", + "id": "9f974d4f-47e8-21a6-e549-4de4599c3764", + "identifier": [ + { + "value": "T123", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-T123" + }, + { + "value": "urn:oid:r2.3", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + }, + { + "fullUrl": "urn:uuid:84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "resource": { + "resourceType": "Practitioner", + "id": "84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "identifier": [ + { + "value": "Othhel", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "fullUrl": "urn:uuid:24d4bddf-a1c3-4dc8-049b-1dda7e5112b6", + "resource": { + "resourceType": "Organization", + "id": "24d4bddf-a1c3-4dc8-049b-1dda7e5112b6", + "identifier": [ + { + "value": "TE", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TE" + }, + { + "value": "Provider Master.Community Health and Hospitals", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-DNS", + "type": { + "coding": [ + { + "code": "DNS", + "display": "An Internet host name, in accordance with RFC 1035; or an IP address. Either in ASCII or as integers, with periods between components (“dotted” notation).", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/24d4bddf-a1c3-4dc8-049b-1dda7e5112b6" + } + }, + { + "fullUrl": "urn:uuid:36e3aaa4-569a-7d9d-037f-27235ed05701", + "resource": { + "resourceType": "Practitioner", + "id": "36e3aaa4-569a-7d9d-037f-27235ed05701", + "identifier": [ + { + "value": "12188", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-DNS", + "assigner": { + "reference": "Organization/24d4bddf-a1c3-4dc8-049b-1dda7e5112b6" + }, + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Hippocrates", + "given": [ + "Harold", + "H" + ], + "suffix": [ + "IV", + "MD" + ], + "prefix": [ + "Dr" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/36e3aaa4-569a-7d9d-037f-27235ed05701" + } + }, + { + "fullUrl": "urn:uuid:9172e4a0-1ca5-646d-2183-b179f4daa737", + "resource": { + "resourceType": "Location", + "id": "9172e4a0-1ca5-646d-2183-b179f4daa737", + "partOf": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + }, + "name": "HUH AE OMU", + "identifier": [ + { + "value": "urn:oid:9.8", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "fullUrl": "urn:uuid:3913ec4d-6576-5e1a-ac31-e8280583371c", + "resource": { + "resourceType": "Location", + "id": "3913ec4d-6576-5e1a-ac31-e8280583371c", + "partOf": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + }, + "name": "OMU B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "fullUrl": "urn:uuid:804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "resource": { + "resourceType": "Location", + "id": "804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "partOf": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + }, + "name": "Bed 03", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "fullUrl": "urn:uuid:c043880b-0fab-1cb8-14f7-0475282c4d0e", + "resource": { + "resourceType": "Location", + "id": "c043880b-0fab-1cb8-14f7-0475282c4d0e", + "name": "HOMERTON UNIVER", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "fullUrl": "urn:uuid:f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "resource": { + "resourceType": "Location", + "id": "f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "partOf": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + }, + "name": "Homerton UH", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "fullUrl": "urn:uuid:7e38808c-44a8-cb0c-4709-9d6092abc32c", + "resource": { + "resourceType": "Location", + "id": "7e38808c-44a8-cb0c-4709-9d6092abc32c", + "partOf": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + }, + "name": "Floor5", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "fullUrl": "urn:uuid:59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "resource": { + "resourceType": "Location", + "id": "59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "name": "4 East, room 136, bed B 4E", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + } + }, + { + "fullUrl": "urn:uuid:d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "resource": { + "resourceType": "Location", + "id": "d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "partOf": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "name": "136", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + } + }, + { + "fullUrl": "urn:uuid:5783dafa-c6c0-e673-cca4-42087ee1831b", + "resource": { + "resourceType": "Location", + "id": "5783dafa-c6c0-e673-cca4-42087ee1831b", + "partOf": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "name": "B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + } + }, + { + "fullUrl": "urn:uuid:8b39e6e5-78cd-63ab-2441-f43ca5554096", + "resource": { + "resourceType": "Location", + "id": "8b39e6e5-78cd-63ab-2441-f43ca5554096", + "name": "CommunityHospital", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + } + }, + { + "fullUrl": "urn:uuid:42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "resource": { + "resourceType": "Location", + "id": "42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "name": "Homes", + "identifier": [ + { + "value": "22", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/FDK" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + { + "fullUrl": "urn:uuid:84634858-74aa-5cdb-4547-60ec27339ac6", + "resource": { + "resourceType": "Location", + "id": "84634858-74aa-5cdb-4547-60ec27339ac6", + "name": "POC", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + } + }, + { + "fullUrl": "urn:uuid:9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "resource": { + "resourceType": "Location", + "id": "9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "partOf": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "name": "Room-2", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + } + }, + { + "fullUrl": "urn:uuid:35353f20-6254-e794-98ed-8007490447e3", + "resource": { + "resourceType": "Location", + "id": "35353f20-6254-e794-98ed-8007490447e3", + "partOf": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "name": "Bed-103", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/35353f20-6254-e794-98ed-8007490447e3" + } + }, + { + "fullUrl": "urn:uuid:055e10f1-222e-df73-2325-0e4396db1a55", + "resource": { + "resourceType": "Location", + "id": "055e10f1-222e-df73-2325-0e4396db1a55", + "name": "Greenland", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + } + }, + { + "fullUrl": "urn:uuid:1154e6b2-b022-b3be-7dce-2b940ab5376d", + "resource": { + "resourceType": "Location", + "id": "1154e6b2-b022-b3be-7dce-2b940ab5376d", + "name": "Nursing home", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + } + }, + { + "fullUrl": "urn:uuid:08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "resource": { + "resourceType": "Location", + "id": "08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "name": "Rosewood", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + } + }, + { + "fullUrl": "urn:uuid:c7f1b9ec-ffd8-321e-ad87-abafc1c1a333", + "resource": { + "resourceType": "Location", + "id": "c7f1b9ec-ffd8-321e-ad87-abafc1c1a333", + "name": "ROOM1", + "identifier": [ + { + "value": "urn:oid:2.16.840.1.113883.4.642.1.1108", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + } + }, + { + "fullUrl": "urn:uuid:6f159848-5f01-01b3-9594-80fbbe9ab510", + "resource": { + "resourceType": "Location", + "id": "6f159848-5f01-01b3-9594-80fbbe9ab510", + "partOf": { + "reference": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + }, + "name": "BED1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/6f159848-5f01-01b3-9594-80fbbe9ab510" + } + }, + { + "fullUrl": "urn:uuid:4bca6ba2-be65-ef37-3911-03b70a00a3a6", + "resource": { + "resourceType": "Location", + "id": "4bca6ba2-be65-ef37-3911-03b70a00a3a6", + "name": "FACILITY1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + } + }, + { + "fullUrl": "urn:uuid:3b0911cb-4361-cd8d-b188-463af033c699", + "resource": { + "resourceType": "Location", + "id": "3b0911cb-4361-cd8d-b188-463af033c699", + "partOf": { + "reference": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + }, + "name": "BUILDING1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + } + }, + { + "fullUrl": "urn:uuid:0d9c3424-329f-4c95-ee30-ac2da4a35bff", + "resource": { + "resourceType": "Location", + "id": "0d9c3424-329f-4c95-ee30-ac2da4a35bff", + "partOf": { + "reference": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + }, + "name": "FLOOR1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/0d9c3424-329f-4c95-ee30-ac2da4a35bff" + } + }, + { + "fullUrl": "urn:uuid:08314073-410a-3dc7-512c-0f2d206fb59d", + "resource": { + "resourceType": "Organization", + "id": "08314073-410a-3dc7-512c-0f2d206fb59d", + "identifier": [ + { + "value": "Etest", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-Etest" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + }, + { + "fullUrl": "urn:uuid:919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "resource": { + "resourceType": "EpisodeOfCare", + "id": "919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "status": "planned", + "identifier": [ + { + "value": "EOC124", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + }, + { + "fullUrl": "urn:uuid:4b192760-03d2-aec4-b0a6-fde323912e1e", + "resource": { + "resourceType": "Encounter", + "id": "4b192760-03d2-aec4-b0a6-fde323912e1e", + "class": { + "code": "PRENC", + "display": "pre-admission", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "status": "planned", + "location": [ + { + "status": "planned", + "location": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "status": "completed", + "location": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/35353f20-6254-e794-98ed-8007490447e3" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/6f159848-5f01-01b3-9594-80fbbe9ab510" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/0d9c3424-329f-4c95-ee30-ac2da4a35bff" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + } + ], + "type": [ + { + "coding": [ + { + "code": "E", + "display": "Emergency", + "system": "http://terminology.hl7.org/CodeSystem/v2-0007" + } + ] + } + ], + "hospitalization": { + "preAdmissionIdentifier": { + "value": "1234567", + "type": { + "coding": [ + { + "code": "ANON", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Anonymous identifier" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + "reAdmission": { + "coding": [ + { + "code": "R", + "display": "Re-admission", + "system": "http://terminology.hl7.org/CodeSystem/v2-0092" + } + ] + }, + "admitSource": { + "coding": [ + { + "code": "NHS Provider-General (inc.A&E-this Hosp)" + } + ] + }, + "dischargeDisposition": { + "coding": [ + { + "code": "Admitted as Inpatient", + "display": "Sample", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ACR" + } + ] + }, + "dietPreference": [ + { + "coding": [ + { + "code": "Vegan", + "display": "Vegetarian" + } + ] + } + ], + "destination": { + "reference": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + "episodeOfCare": [ + { + "reference": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + ], + "participant": [ + { + "type": [ + { + "coding": [ + { + "code": "ATND", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", + "display": "attender" + } + ] + } + ], + "individual": { + "reference": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "CON", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "consultant" + } + ], + "individual": { + "reference": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "ADM", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "admitter" + } + ], + "individual": { + "reference": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "PART", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "Participation" + } + ], + "individual": { + "reference": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/36e3aaa4-569a-7d9d-037f-27235ed05701" + } + } + ], + "serviceType": { + "coding": [ + { + "code": "SUR" + } + ] + }, + "identifier": [ + { + "value": "40007716", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + }, + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ], + "text": "visit number" + } + }, + { + "value": "50", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:r2.3", + "assigner": { + "reference": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + } + ], + "period": { + "start": "2015-02-08T15:54:19+05:30" + }, + "reasonCode": [ + { + "coding": [ + { + "code": "140004", + "display": "Chronic pharyngitis", + "system": "http://snomed.info/sct" + } + ] + } + ], + "length": { + "value": 2, + "unit": "d", + "system": "http://unitsofmeasure.org/" + }, + "meta": { + "security": [ + { + "code": "N", + "display": "normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality" + } + ] + }, + "text": { + "status": "generated", + "div": "

Visit Description: Health Checkup

" + }, + "priority": { + "coding": [ + { + "code": "UR", + "display": "urgent", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActPriority", + "version": "V1.2" + }, + { + "code": "EL", + "display": "elective", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActPriority", + "version": "V1.3" + } + ] + }, + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/encounter-modeOfArrival", + "valueCoding": { + "code": "C", + "display": "Car", + "system": "http://terminology.hl7.org/CodeSystem/v2-0430" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Encounter/4b192760-03d2-aec4-b0a6-fde323912e1e" + } + }, + { + "fullUrl": "urn:uuid:9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "resource": { + "resourceType": "Provenance", + "id": "9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "occurredDateTime": "2021-08-17T18:49:43.004+05:30", + "recorded": "2029-08-01T11:21:24+05:30", + "reason": [ + { + "coding": [ + { + "code": "PATRQT", + "display": "patient requested", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason" + } + ] + } + ], + "agent": [ + { + "who": { + "reference": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + } + ], + "activity": { + "text": "ADT^A15^ADT_A15" + }, + "location": { + "reference": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + }, + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c" + } + }, + { + "fullUrl": "urn:uuid:ef39f581-5e8f-3917-35a9-3443303d9eee", + "resource": { + "resourceType": "Organization", + "id": "ef39f581-5e8f-3917-35a9-3443303d9eee", + "identifier": [ + { + "value": "DRNBR", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-DRNBR" + }, + { + "value": "urn:oid:W1.2", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + } + }, + { + "fullUrl": "urn:uuid:95aea53b-8d49-d57f-d16f-4d14b914f992", + "resource": { + "resourceType": "Practitioner", + "id": "95aea53b-8d49-d57f-d16f-4d14b914f992", + "identifier": [ + { + "value": "C08", + "system": "urn:oid:W1.2", + "assigner": { + "reference": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + }, + "type": { + "coding": [ + { + "code": "ANON", + "display": "Anonymous identifier", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen", + "2ndname" + ], + "suffix": [ + "Jr", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + }, + { + "fullUrl": "urn:uuid:59d5e519-0108-5dd8-adfa-1eef5658009e", + "resource": { + "resourceType": "Location", + "id": "59d5e519-0108-5dd8-adfa-1eef5658009e", + "name": "Cona_Health", + "identifier": [ + { + "value": "urn:oid:1.3.6.1.4.1.44750.1.4", + "system": "urn:ietf:rfc:3986" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "display": "site", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + } + }, + { + "fullUrl": "urn:uuid:e82402a9-b2d1-2a28-3250-c099d5a77bf7", + "resource": { + "resourceType": "Organization", + "id": "e82402a9-b2d1-2a28-3250-c099d5a77bf7", + "identifier": [ + { + "value": "PERSt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/e82402a9-b2d1-2a28-3250-c099d5a77bf7" + } + }, + { + "fullUrl": "urn:uuid:ce70e6c3-c190-121d-c251-e4bae5cde6a1", + "resource": { + "resourceType": "Practitioner", + "id": "ce70e6c3-c190-121d-c251-e4bae5cde6a1", + "identifier": [ + { + "value": "1134", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/e82402a9-b2d1-2a28-3250-c099d5a77bf7" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Aly", + "given": [ + "Zafar", + "Mahendra" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/ce70e6c3-c190-121d-c251-e4bae5cde6a1" + } + }, + { + "fullUrl": "urn:uuid:88a53755-c972-6904-b4ce-8884b84ddc2e", + "resource": { + "resourceType": "PractitionerRole", + "id": "88a53755-c972-6904-b4ce-8884b84ddc2e", + "code": [ + { + "coding": [ + { + "code": "ResponsibleObserver", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/ce70e6c3-c190-121d-c251-e4bae5cde6a1" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/88a53755-c972-6904-b4ce-8884b84ddc2e" + } + }, + { + "fullUrl": "urn:uuid:3e0952c6-eea0-8938-96f8-07c224bf1577", + "resource": { + "resourceType": "Practitioner", + "id": "3e0952c6-eea0-8938-96f8-07c224bf1577", + "identifier": [ + { + "value": "2234" + } + ], + "name": [ + { + "family": "Pauly", + "given": [ + "Berrie", + "Raud" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/3e0952c6-eea0-8938-96f8-07c224bf1577" + } + }, + { + "fullUrl": "urn:uuid:bc78e290-ec67-c238-1e05-aefb6b252b0c", + "resource": { + "resourceType": "PractitionerRole", + "id": "bc78e290-ec67-c238-1e05-aefb6b252b0c", + "code": [ + { + "coding": [ + { + "code": "ResponsibleObserver", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/3e0952c6-eea0-8938-96f8-07c224bf1577" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/bc78e290-ec67-c238-1e05-aefb6b252b0c" + } + }, + { + "fullUrl": "urn:uuid:fe0adb86-ebe9-6479-0055-9db8dc1ff99a", + "resource": { + "resourceType": "Device", + "id": "fe0adb86-ebe9-6479-0055-9db8dc1ff99a", + "identifier": [ + { + "value": "EI12.3", + "system": "urn:uuid:UI2", + "type": { + "coding": [ + { + "code": "GUID", + "display": "Same as UUID.", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + }, + { + "system": "urn:oid:UI1", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/fe0adb86-ebe9-6479-0055-9db8dc1ff99a" + } + }, + { + "fullUrl": "urn:uuid:45f65e47-46c4-1a54-f9fb-1321258e79b2", + "resource": { + "resourceType": "Practitioner", + "id": "45f65e47-46c4-1a54-f9fb-1321258e79b2", + "identifier": [ + { + "type": { + "coding": [ + { + "code": "MD-25" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/45f65e47-46c4-1a54-f9fb-1321258e79b2" + } + }, + { + "fullUrl": "urn:uuid:090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3", + "resource": { + "resourceType": "PractitionerRole", + "id": "090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3", + "code": [ + { + "coding": [ + { + "code": "LabMedicalDirector", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/45f65e47-46c4-1a54-f9fb-1321258e79b2" + }, + "organization": { + "reference": "Organization/056aa7c7-6b75-3c67-63c5-cf9604f16d25" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3" + } + }, + { + "fullUrl": "urn:uuid:056aa7c7-6b75-3c67-63c5-cf9604f16d25", + "resource": { + "resourceType": "Organization", + "id": "056aa7c7-6b75-3c67-63c5-cf9604f16d25", + "name": "FairOaks Hspital", + "address": [ + { + "line": [ + "Research Park", + "Fairfax" + ], + "city": "VA", + "state": "22031", + "postalCode": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/056aa7c7-6b75-3c67-63c5-cf9604f16d25" + } + }, + { + "fullUrl": "urn:uuid:07fd2dd3-dbd6-5bb1-cfda-02226795d9a0", + "resource": { + "resourceType": "Observation", + "id": "07fd2dd3-dbd6-5bb1-cfda-02226795d9a0", + "identifier": [ + { + "value": "EI21", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-OII" + }, + { + "type": { + "coding": [ + { + "code": "FILL" + } + ] + } + } + ], + "status": "unknown", + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "component": [ + { + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 60, + "code": "beats/min", + "unit": "beats/min", + "system": "urn:iso:std:iso:3986" + }, + "referenceRange": [ + { + "text": "70-80" + } + ] + }, + { + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 120, + "code": "beats/min", + "unit": "beats/min", + "system": "urn:iso:std:iso:3986" + }, + "referenceRange": [ + { + "text": "70-80" + } + ] + } + ], + "effectiveDateTime": "1999-07-02", + "method": { + "coding": [ + { + "code": "OBS", + "display": "This is test method", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/AS4" + } + ] + }, + "device": { + "reference": "Device/fe0adb86-ebe9-6479-0055-9db8dc1ff99a" + }, + "bodySite": { + "coding": [ + { + "code": "BU", + "display": "Observation site", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/E5" + } + ] + }, + "performer": [ + { + "reference": "PractitionerRole/88a53755-c972-6904-b4ce-8884b84ddc2e" + }, + { + "reference": "PractitionerRole/bc78e290-ec67-c238-1e05-aefb6b252b0c" + }, + { + "reference": "PractitionerRole/090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "A", + "display": "Abnormal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + }, + { + "coding": [ + { + "code": "B", + "display": "Better", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } + ], + "extension": [ + { + "url": "http://example.com/v2-to-fhir-converter/Observation_Status", + "valueCodeableConcept": { + "coding": [ + { + "code": "S", + "display": "Partial", + "system": "http://terminology.hl7.org/CodeSystem/v2-0085" + } + ], + "text": "Partial" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Observation/07fd2dd3-dbd6-5bb1-cfda-02226795d9a0" + } + }, + { + "fullUrl": "urn:uuid:4e68b44e-c053-02b1-6d6d-fe816f9fdfec", + "resource": { + "resourceType": "Organization", + "id": "4e68b44e-c053-02b1-6d6d-fe816f9fdfec", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "urn:oid:1.12", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4e68b44e-c053-02b1-6d6d-fe816f9fdfec" + } + } + ] +} \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A16/ADT-A16-expected-2.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A16/ADT-A16-expected-2.json new file mode 100644 index 000000000..b1ef585e5 --- /dev/null +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A16/ADT-A16-expected-2.json @@ -0,0 +1,2130 @@ +{ + "resourceType": "Bundle", + "type": "batch", + "timestamp": "1989-08-18T14:41:00+05:30", + "identifier": { + "value": "MSG00001" + }, + "id": "513a3d06-5e87-6fbc-ad1b-170ab430499f", + "entry": [ + { + "fullUrl": "urn:uuid:b4ca189b-51ae-33df-cbe2-559b4423a321", + "resource": { + "resourceType": "MessageHeader", + "id": "b4ca189b-51ae-33df-cbe2-559b4423a321", + "source": { + "name": "24GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.20" + }, + "destination": [ + { + "name": "25GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.23", + "receiver": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + } + ], + "meta": { + "security": [ + { + "display": "SECURITY", + "system": "http://example.com/v2-to-fhirconverter/security-label" + } + ], + "tag": [ + { + "code": "P", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "A16", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ADT^A16^ADT_A16" + }, + "language": "en-US", + "sender": { + "reference": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + }, + "responsible": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + "request": { + "method": "PUT", + "url": "MessageHeader/b4ca189b-51ae-33df-cbe2-559b4423a321" + } + }, + { + "fullUrl": "urn:uuid:f65d2168-02c8-1897-210d-361176172856", + "resource": { + "resourceType": "Provenance", + "id": "f65d2168-02c8-1897-210d-361176172856", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T13:30:29.013Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ADT_A16.

" + }, + "occurredDateTime": "1989-08-18T14:41:00+05:30", + "recorded": "1989-08-18T14:41:00+05:30", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + } + ], + "activity": { + "coding": [ + { + "display": "ADT^A16^ADT_A16" + } + ] + }, + "entity": [ + { + "role": "source", + "what": { + "reference": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + } + ], + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/f65d2168-02c8-1897-210d-361176172856" + } + }, + { + "fullUrl": "urn:uuid:4356fb81-6ecd-2d70-57b1-47812638e785", + "resource": { + "resourceType": "Organization", + "id": "4356fb81-6ecd-2d70-57b1-47812638e785", + "identifier": [ + { + "value": "GHHSFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHSFacility" + }, + { + "value": "urn:oid:2.16.840.1.122848.1.30", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + } + }, + { + "fullUrl": "urn:uuid:62781ad6-3896-cb63-0178-ead0c4a432b5", + "resource": { + "resourceType": "Organization", + "id": "62781ad6-3896-cb63-0178-ead0c4a432b5", + "identifier": [ + { + "value": "GHHRFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHRFacility" + }, + { + "value": "urn:oid:2.16.840.1.1122848.1.32", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/62781ad6-3896-cb63-0178-ead0c4a432b5" + } + }, + { + "fullUrl": "urn:uuid:33532a82-d220-4c0d-1abe-53e48951c201", + "resource": { + "resourceType": "Organization", + "id": "33532a82-d220-4c0d-1abe-53e48951c201", + "name": "22 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + { + "fullUrl": "urn:uuid:527280c1-34d1-c639-e9ba-61986d28e266", + "resource": { + "resourceType": "Organization", + "id": "527280c1-34d1-c639-e9ba-61986d28e266", + "name": "23 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + }, + { + "fullUrl": "urn:uuid:503eb873-22fb-8199-ae28-3604ad59fe13", + "resource": { + "resourceType": "Device", + "id": "503eb873-22fb-8199-ae28-3604ad59fe13", + "identifier": [ + { + "value": "ADTApp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + }, + { + "fullUrl": "urn:uuid:9e909e52-61a1-be50-1878-a12ef8c36346", + "resource": { + "resourceType": "Patient", + "id": "9e909e52-61a1-be50-1878-a12ef8c36346", + "identifier": [ + { + "value": "1234567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "PATID1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "value": "123456789", + "type": { + "coding": [ + { + "code": "SS", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Social Security number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-USSSA" + }, + { + "value": "PATID567", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test2" + }, + { + "value": "PSSN123121234", + "type": { + "coding": [ + { + "code": "SB", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + }, + { + "value": "DLN-123", + "type": { + "coding": [ + { + "code": "DL" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/US", + "period": { + "end": "2001-01-23" + } + } + ], + "name": [ + { + "family": "EVERYMAN", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official", + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + }, + { + "family": "elbert", + "given": [ + "Son" + ] + } + ], + "birthDate": "1988-08-18", + "_birthDate": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime": "1988-08-18T14:41:00+05:30" + } + ] + }, + "gender": "male", + "address": [ + { + "line": [ + "1000", + "Hospital Lane", + "Ste. 123", + "Near Highway" + ], + "city": "Ann Arbor ", + "state": "MI", + "postalCode": "99999", + "country": "USA", + "type": "postal", + "district": "W", + "period": { + "start": "2000-01-10", + "end": "2000-01-20" + } + } + ], + "telecom": [ + { + "value": "2222", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18, + "use": "home" + }, + { + "value": "12121212", + "system": "phone", + "use": "home" + }, + { + "value": "7777", + "system": "phone", + "use": "work" + }, + { + "value": "1111", + "system": "other", + "use": "work" + }, + { + "value": "89898989", + "use": "work", + "system": "email" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47", + "version": "v2" + }, + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47", + "version": "v2.1" + } + ], + "text": "TextInEnglish" + }, + "preferred": true + } + ], + "maritalStatus": { + "coding": [ + { + "code": "M", + "display": "Married", + "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" + } + ] + }, + "multipleBirthInteger": 2, + "deceasedDateTime": "2008-08-25T15:31:30+05:30", + "meta": { + "lastUpdated": "2005-01-10T04:05:14+05:30" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "ombCategory", + "valueCoding": { + "code": "2028-9", + "display": "Asian", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White+Asian" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + "valueString": "SMITH--Angela--L" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", + "valueAddress": { + "text": "St. Francis Community Hospital of Lower South Side" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-religion", + "valueCodeableConcept": { + "coding": [ + { + "code": "1002", + "display": "African Religions", + "system": "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2186-5", + "display": "Non Hispanic or Latino", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "Non Hispanic or Latino" + } + ] + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/VeteranMilitaryStatus", + "valueCodeableConcept": { + "coding": [ + { + "code": "Vet123", + "display": "retired", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ART" + } + ], + "text": "retired" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-animal", + "extension": [ + { + "url": "species", + "valueCodeableConcept": { + "coding": [ + { + "code": "125097000", + "display": "Goat", + "system": "http://snomed.info/sct" + } + ], + "text": "Goat" + } + }, + { + "url": "breed", + "valueCodeableConcept": { + "coding": [ + { + "code": "4880003", + "display": "Beagle", + "system": "http://snomed.info/sct" + } + ], + "text": "Beagle" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "US", + "display": "United States of America", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "United States of America" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "CA", + "display": "Canada", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Canada" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-nationality", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "BT", + "display": "Bhutan", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Bhutan" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-importance", + "valueCodeableConcept": { + "coding": [ + { + "code": "VIP", + "display": "Very Important Person", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/L", + "version": "v1.1" + }, + { + "code": "IMP", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/DCM", + "version": "v1.2" + } + ], + "text": "Inportant Person" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + { + "fullUrl": "urn:uuid:78295402-9b84-4829-b945-502ab3402de5", + "resource": { + "resourceType": "Account", + "id": "78295402-9b84-4829-b945-502ab3402de5", + "identifier": [ + { + "value": "4000776", + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Visit number" + } + ] + }, + "system": "urn:oid:2.4", + "assigner": { + "reference": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/78295402-9b84-4829-b945-502ab3402de5" + } + }, + { + "fullUrl": "urn:uuid:9d4c8327-8a28-8152-1898-8251baa707b7", + "resource": { + "resourceType": "Organization", + "id": "9d4c8327-8a28-8152-1898-8251baa707b7", + "identifier": [ + { + "value": "AccMgr", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr" + }, + { + "value": "urn:oid:2.4", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + } + }, + { + "fullUrl": "urn:uuid:b3ad3a9f-d4f6-4638-0a09-2da771733488", + "resource": { + "resourceType": "Organization", + "id": "b3ad3a9f-d4f6-4638-0a09-2da771733488", + "identifier": [ + { + "value": "test1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test1" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "fullUrl": "urn:uuid:f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "resource": { + "resourceType": "Organization", + "id": "f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "identifier": [ + { + "value": "NTH", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NTH" + }, + { + "value": "rt23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + } + }, + { + "fullUrl": "urn:uuid:62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "resource": { + "resourceType": "RelatedPerson", + "id": "62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "identifier": [ + { + "value": "1212121", + "type": { + "coding": [ + { + "code": "AND", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Account number debitor" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "relationship": [ + { + "coding": [ + { + "code": "MTH", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/62b2e1ee-a272-4ffe-692e-a1fbfd49af6a" + } + }, + { + "fullUrl": "urn:uuid:11967e28-8dd4-a112-0fdc-377866bf12a0", + "resource": { + "resourceType": "Organization", + "id": "11967e28-8dd4-a112-0fdc-377866bf12a0", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "2.16.840.1.113883.19", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + } + }, + { + "fullUrl": "urn:uuid:7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "resource": { + "resourceType": "Organization", + "id": "7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "identifier": [ + { + "value": "AccMng", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMng" + }, + { + "value": "1.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + } + }, + { + "fullUrl": "urn:uuid:0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "resource": { + "resourceType": "Organization", + "id": "0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "identifier": [ + { + "value": "PERSONNELt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSONNELt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + } + }, + { + "fullUrl": "urn:uuid:f6775f99-5279-be04-bf81-0906c81f7443", + "resource": { + "resourceType": "Practitioner", + "id": "f6775f99-5279-be04-bf81-0906c81f7443", + "identifier": [ + { + "value": "1122334", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Alaz", + "given": [ + "Mohammed", + "Mahi" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "fullUrl": "urn:uuid:c613d7b2-525f-8c08-a7ac-b2b91486e257", + "resource": { + "resourceType": "Organization", + "id": "c613d7b2-525f-8c08-a7ac-b2b91486e257", + "identifier": [ + { + "value": "TEST", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TEST" + }, + { + "value": "23.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + } + }, + { + "fullUrl": "urn:uuid:04f8cfc8-62ca-12df-63ce-6304ef577d44", + "resource": { + "resourceType": "Practitioner", + "id": "04f8cfc8-62ca-12df-63ce-6304ef577d44", + "identifier": [ + { + "value": "C006", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + }, + "type": { + "coding": [ + { + "code": "BA", + "display": "Bank Account Number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen" + ], + "prefix": [ + "Dr" + ], + "use": "anonymous" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "fullUrl": "urn:uuid:99edcabd-fbeb-7e25-f823-11da8d8ed342", + "resource": { + "resourceType": "Practitioner", + "id": "99edcabd-fbeb-7e25-f823-11da8d8ed342", + "identifier": [ + { + "value": "C008", + "system": "urn:oid:2.8", + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Condoc", + "given": [ + "leen" + ], + "prefix": [ + "Dr" + ], + "use": "temp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "fullUrl": "urn:uuid:b065b233-8738-f1ec-1314-d61e4aac2c9e", + "resource": { + "resourceType": "Practitioner", + "id": "b065b233-8738-f1ec-1314-d61e4aac2c9e", + "identifier": [ + { + "value": "37", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr", + "type": { + "coding": [ + { + "code": "ANC", + "display": "Account number Creditor", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "DISNEY", + "given": [ + "WALT" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "fullUrl": "urn:uuid:9f974d4f-47e8-21a6-e549-4de4599c3764", + "resource": { + "resourceType": "Organization", + "id": "9f974d4f-47e8-21a6-e549-4de4599c3764", + "identifier": [ + { + "value": "T123", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-T123" + }, + { + "value": "urn:oid:r2.3", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + }, + { + "fullUrl": "urn:uuid:84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "resource": { + "resourceType": "Practitioner", + "id": "84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "identifier": [ + { + "value": "Othhel", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "fullUrl": "urn:uuid:9172e4a0-1ca5-646d-2183-b179f4daa737", + "resource": { + "resourceType": "Location", + "id": "9172e4a0-1ca5-646d-2183-b179f4daa737", + "partOf": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + }, + "name": "HUH AE OMU", + "identifier": [ + { + "value": "urn:oid:9.8", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "fullUrl": "urn:uuid:3913ec4d-6576-5e1a-ac31-e8280583371c", + "resource": { + "resourceType": "Location", + "id": "3913ec4d-6576-5e1a-ac31-e8280583371c", + "partOf": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + }, + "name": "OMU B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "fullUrl": "urn:uuid:804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "resource": { + "resourceType": "Location", + "id": "804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "partOf": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + }, + "name": "Bed 03", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "fullUrl": "urn:uuid:c043880b-0fab-1cb8-14f7-0475282c4d0e", + "resource": { + "resourceType": "Location", + "id": "c043880b-0fab-1cb8-14f7-0475282c4d0e", + "name": "HOMERTON UNIVER", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "fullUrl": "urn:uuid:f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "resource": { + "resourceType": "Location", + "id": "f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "partOf": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + }, + "name": "Homerton UH", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "fullUrl": "urn:uuid:7e38808c-44a8-cb0c-4709-9d6092abc32c", + "resource": { + "resourceType": "Location", + "id": "7e38808c-44a8-cb0c-4709-9d6092abc32c", + "partOf": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + }, + "name": "Floor5", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "fullUrl": "urn:uuid:59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "resource": { + "resourceType": "Location", + "id": "59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "name": "4 East, room 136, bed B 4E", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + } + }, + { + "fullUrl": "urn:uuid:d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "resource": { + "resourceType": "Location", + "id": "d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "partOf": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "name": "136", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + } + }, + { + "fullUrl": "urn:uuid:5783dafa-c6c0-e673-cca4-42087ee1831b", + "resource": { + "resourceType": "Location", + "id": "5783dafa-c6c0-e673-cca4-42087ee1831b", + "partOf": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "name": "B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + } + }, + { + "fullUrl": "urn:uuid:8b39e6e5-78cd-63ab-2441-f43ca5554096", + "resource": { + "resourceType": "Location", + "id": "8b39e6e5-78cd-63ab-2441-f43ca5554096", + "name": "CommunityHospital", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + } + }, + { + "fullUrl": "urn:uuid:42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "resource": { + "resourceType": "Location", + "id": "42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "name": "Homes", + "identifier": [ + { + "value": "22", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/FDK" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + { + "fullUrl": "urn:uuid:84634858-74aa-5cdb-4547-60ec27339ac6", + "resource": { + "resourceType": "Location", + "id": "84634858-74aa-5cdb-4547-60ec27339ac6", + "name": "POC", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + } + }, + { + "fullUrl": "urn:uuid:9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "resource": { + "resourceType": "Location", + "id": "9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "partOf": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "name": "Room-2", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + } + }, + { + "fullUrl": "urn:uuid:35353f20-6254-e794-98ed-8007490447e3", + "resource": { + "resourceType": "Location", + "id": "35353f20-6254-e794-98ed-8007490447e3", + "partOf": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "name": "Bed-103", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/35353f20-6254-e794-98ed-8007490447e3" + } + }, + { + "fullUrl": "urn:uuid:055e10f1-222e-df73-2325-0e4396db1a55", + "resource": { + "resourceType": "Location", + "id": "055e10f1-222e-df73-2325-0e4396db1a55", + "name": "Greenland", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + } + }, + { + "fullUrl": "urn:uuid:1154e6b2-b022-b3be-7dce-2b940ab5376d", + "resource": { + "resourceType": "Location", + "id": "1154e6b2-b022-b3be-7dce-2b940ab5376d", + "name": "Nursing home", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + } + }, + { + "fullUrl": "urn:uuid:08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "resource": { + "resourceType": "Location", + "id": "08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "name": "Rosewood", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + } + }, + { + "fullUrl": "urn:uuid:08314073-410a-3dc7-512c-0f2d206fb59d", + "resource": { + "resourceType": "Organization", + "id": "08314073-410a-3dc7-512c-0f2d206fb59d", + "identifier": [ + { + "value": "Etest", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-Etest" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + }, + { + "fullUrl": "urn:uuid:919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "resource": { + "resourceType": "EpisodeOfCare", + "id": "919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "status": "planned", + "identifier": [ + { + "value": "EOC124", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + }, + { + "fullUrl": "urn:uuid:4b192760-03d2-aec4-b0a6-fde323912e1e", + "resource": { + "resourceType": "Encounter", + "id": "4b192760-03d2-aec4-b0a6-fde323912e1e", + "class": { + "code": "PRENC", + "display": "pre-admission", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "status": "planned", + "location": [ + { + "status": "planned", + "location": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "status": "completed", + "location": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/35353f20-6254-e794-98ed-8007490447e3" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + } + ], + "type": [ + { + "coding": [ + { + "code": "E", + "display": "Emergency", + "system": "http://terminology.hl7.org/CodeSystem/v2-0007" + } + ] + } + ], + "hospitalization": { + "preAdmissionIdentifier": { + "value": "1234567", + "type": { + "coding": [ + { + "code": "ANON", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Anonymous identifier" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + "reAdmission": { + "coding": [ + { + "code": "R", + "display": "Re-admission", + "system": "http://terminology.hl7.org/CodeSystem/v2-0092" + } + ] + }, + "admitSource": { + "coding": [ + { + "code": "NHS Provider-General (inc.A&E-this Hosp)" + } + ] + }, + "dischargeDisposition": { + "coding": [ + { + "code": "Admitted as Inpatient", + "display": "Sample", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ACR" + } + ] + }, + "dietPreference": [ + { + "coding": [ + { + "code": "Vegan", + "display": "Vegetarian" + } + ] + } + ], + "destination": { + "reference": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + "episodeOfCare": [ + { + "reference": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + ], + "participant": [ + { + "type": [ + { + "coding": [ + { + "code": "ATND", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", + "display": "attender" + } + ] + } + ], + "individual": { + "reference": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "CON", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "consultant" + } + ], + "individual": { + "reference": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "ADM", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "admitter" + } + ], + "individual": { + "reference": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "PART", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "Participation" + } + ], + "individual": { + "reference": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + } + ], + "serviceType": { + "coding": [ + { + "code": "SUR" + } + ] + }, + "identifier": [ + { + "value": "40007716", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + }, + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ], + "text": "visit number" + } + }, + { + "value": "50", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:r2.3", + "assigner": { + "reference": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + } + ], + "period": { + "start": "2015-02-08T15:54:19+05:30" + }, + "text": { + "status": "generated", + "div": "

Visit Description:

" + }, + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Encounter/4b192760-03d2-aec4-b0a6-fde323912e1e" + } + }, + { + "fullUrl": "urn:uuid:9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "resource": { + "resourceType": "Provenance", + "id": "9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "occurredDateTime": "2021-08-17T18:49:43.004+05:30", + "recorded": "2029-08-01T11:21:24+05:30", + "reason": [ + { + "coding": [ + { + "code": "PATRQT", + "display": "patient requested", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason" + } + ] + } + ], + "agent": [ + { + "who": { + "reference": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + } + ], + "activity": { + "text": "ADT^A16^ADT_A16" + }, + "location": { + "reference": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + }, + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c" + } + }, + { + "fullUrl": "urn:uuid:ef39f581-5e8f-3917-35a9-3443303d9eee", + "resource": { + "resourceType": "Organization", + "id": "ef39f581-5e8f-3917-35a9-3443303d9eee", + "identifier": [ + { + "value": "DRNBR", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-DRNBR" + }, + { + "value": "urn:oid:W1.2", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + } + }, + { + "fullUrl": "urn:uuid:95aea53b-8d49-d57f-d16f-4d14b914f992", + "resource": { + "resourceType": "Practitioner", + "id": "95aea53b-8d49-d57f-d16f-4d14b914f992", + "identifier": [ + { + "value": "C08", + "system": "urn:oid:W1.2", + "assigner": { + "reference": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + }, + "type": { + "coding": [ + { + "code": "ANON", + "display": "Anonymous identifier", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen", + "2ndname" + ], + "suffix": [ + "Jr", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + }, + { + "fullUrl": "urn:uuid:59d5e519-0108-5dd8-adfa-1eef5658009e", + "resource": { + "resourceType": "Location", + "id": "59d5e519-0108-5dd8-adfa-1eef5658009e", + "name": "Cona_Health", + "identifier": [ + { + "value": "urn:oid:1.3.6.1.4.1.44750.1.4", + "system": "urn:ietf:rfc:3986" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "display": "site", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + } + } + ] +} \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A16/ADT-A16-expected.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A16/ADT-A16-expected.json new file mode 100644 index 000000000..c9e2ea7f2 --- /dev/null +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A16/ADT-A16-expected.json @@ -0,0 +1,4748 @@ +{ + "resourceType": "Bundle", + "type": "batch", + "timestamp": "1989-08-18T14:41:00+05:30", + "identifier": { + "value": "MSG00001" + }, + "id": "513a3d06-5e87-6fbc-ad1b-170ab430499f", + "entry": [ + { + "fullUrl": "urn:uuid:b4ca189b-51ae-33df-cbe2-559b4423a321", + "resource": { + "resourceType": "MessageHeader", + "id": "b4ca189b-51ae-33df-cbe2-559b4423a321", + "source": { + "name": "24GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.20", + "version": "2.4.3.52854", + "software": "Rhapsody" + }, + "destination": [ + { + "name": "25GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.23", + "receiver": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + } + ], + "meta": { + "security": [ + { + "display": "SECURITY", + "system": "http://example.com/v2-to-fhirconverter/security-label" + } + ], + "tag": [ + { + "code": "P", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "A16", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ADT^A16^ADT_A16" + }, + "language": "en-US", + "sender": { + "reference": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + }, + "responsible": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + "request": { + "method": "PUT", + "url": "MessageHeader/b4ca189b-51ae-33df-cbe2-559b4423a321" + } + }, + { + "fullUrl": "urn:uuid:f65d2168-02c8-1897-210d-361176172856", + "resource": { + "resourceType": "Provenance", + "id": "f65d2168-02c8-1897-210d-361176172856", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T13:31:29.335Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ADT_A16.

" + }, + "occurredDateTime": "1989-08-18T14:41:00+05:30", + "recorded": "1989-08-18T14:41:00+05:30", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + } + ], + "activity": { + "coding": [ + { + "display": "ADT^A16^ADT_A16" + } + ] + }, + "entity": [ + { + "role": "source", + "what": { + "reference": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + } + ], + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/f65d2168-02c8-1897-210d-361176172856" + } + }, + { + "fullUrl": "urn:uuid:4356fb81-6ecd-2d70-57b1-47812638e785", + "resource": { + "resourceType": "Organization", + "id": "4356fb81-6ecd-2d70-57b1-47812638e785", + "identifier": [ + { + "value": "GHHSFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHSFacility" + }, + { + "value": "urn:oid:2.16.840.1.122848.1.30", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + } + }, + { + "fullUrl": "urn:uuid:62781ad6-3896-cb63-0178-ead0c4a432b5", + "resource": { + "resourceType": "Organization", + "id": "62781ad6-3896-cb63-0178-ead0c4a432b5", + "identifier": [ + { + "value": "GHHRFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHRFacility" + }, + { + "value": "urn:oid:2.16.840.1.1122848.1.32", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/62781ad6-3896-cb63-0178-ead0c4a432b5" + } + }, + { + "fullUrl": "urn:uuid:33532a82-d220-4c0d-1abe-53e48951c201", + "resource": { + "resourceType": "Organization", + "id": "33532a82-d220-4c0d-1abe-53e48951c201", + "name": "22 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + { + "fullUrl": "urn:uuid:527280c1-34d1-c639-e9ba-61986d28e266", + "resource": { + "resourceType": "Organization", + "id": "527280c1-34d1-c639-e9ba-61986d28e266", + "name": "23 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + }, + { + "fullUrl": "urn:uuid:503eb873-22fb-8199-ae28-3604ad59fe13", + "resource": { + "resourceType": "Device", + "id": "503eb873-22fb-8199-ae28-3604ad59fe13", + "identifier": [ + { + "value": "ADTApp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + }, + { + "fullUrl": "urn:uuid:4b549918-a84d-cdaf-e150-c773a5d306e5", + "resource": { + "resourceType": "Device", + "id": "4b549918-a84d-cdaf-e150-c773a5d306e5", + "manufacturer": "Orion", + "deviceName": [ + { + "name": "Rhapsody", + "type": "manufacturer-name" + } + ], + "version": [ + { + "value": "2.4.3.52854" + } + ], + "modelNumber": "2.4.3", + "note": [ + { + "text": "Testactivity" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/4b549918-a84d-cdaf-e150-c773a5d306e5" + } + }, + { + "fullUrl": "urn:uuid:9e909e52-61a1-be50-1878-a12ef8c36346", + "resource": { + "resourceType": "Patient", + "id": "9e909e52-61a1-be50-1878-a12ef8c36346", + "identifier": [ + { + "value": "1234567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "PATID1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "value": "123456789", + "type": { + "coding": [ + { + "code": "SS", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Social Security number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-USSSA" + }, + { + "value": "PATID567", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test2" + }, + { + "value": "PSSN123121234", + "type": { + "coding": [ + { + "code": "SB", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + }, + { + "value": "DLN-123", + "type": { + "coding": [ + { + "code": "DL" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/US", + "period": { + "end": "2001-01-23" + } + }, + { + "value": "1516", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "55121", + "type": { + "coding": [ + { + "code": "FI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Facility ID" + } + ] + } + }, + { + "value": "DB123", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:1.12", + "assigner": { + "reference": "Organization/4e68b44e-c053-02b1-6d6d-fe816f9fdfec" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "Medicare-12345", + "type": { + "coding": [ + { + "code": "MC", + "display": "Patient's Medicare number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-medicare" + }, + { + "value": "MCN-008", + "type": { + "coding": [ + { + "code": "MA", + "display": "Patient Medicaid number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/identifier-medicaid" + }, + { + "value": "MI-12345", + "type": { + "coding": [ + { + "code": "MI", + "display": "Military ID number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/identifier-military" + }, + { + "value": "PNM1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/1fca4c8f-7562-b755-9a05-5f0f49096e5b" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "name": [ + { + "family": "EVERYMAN", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official", + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + }, + { + "family": "elbert", + "given": [ + "Son" + ] + }, + { + "family": "RADIANT", + "given": [ + "LUCY" + ] + }, + { + "family": "Jack", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + } + ], + "birthDate": "1988-08-18", + "_birthDate": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime": "1988-08-18T14:41:00+05:30" + } + ] + }, + "gender": "male", + "address": [ + { + "line": [ + "1000", + "Hospital Lane", + "Ste. 123", + "Near Highway" + ], + "city": "Ann Arbor ", + "state": "MI", + "postalCode": "99999", + "country": "USA", + "type": "postal", + "district": "W", + "period": { + "start": "2000-01-10", + "end": "2000-01-20" + } + }, + { + "line": [ + "1619 SOUTH UNIVERSITY" + ], + "city": "MADISON", + "state": "WI", + "postalCode": "53703", + "country": "US" + } + ], + "telecom": [ + { + "value": "2222", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18, + "use": "home" + }, + { + "value": "12121212", + "system": "phone", + "use": "home" + }, + { + "value": "7777", + "system": "phone", + "use": "work" + }, + { + "value": "1111", + "system": "other", + "use": "work" + }, + { + "value": "89898989", + "use": "work", + "system": "email" + }, + { + "value": "8484", + "system": "email", + "use": "home" + }, + { + "value": "717171", + "system": "phone", + "use": "home" + }, + { + "value": "021212", + "system": "other", + "use": "work" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47", + "version": "v2" + }, + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47", + "version": "v2.1" + } + ], + "text": "TextInEnglish" + }, + "preferred": true + } + ], + "maritalStatus": { + "coding": [ + { + "code": "M", + "display": "Married", + "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" + } + ] + }, + "multipleBirthInteger": 2, + "deceasedDateTime": "2008-08-25T15:31:30+05:30", + "meta": { + "lastUpdated": "2005-01-10T04:05:14+05:30" + }, + "generalPractitioner": [ + { + "reference": "Organization/4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11" + }, + { + "reference": "Practitioner/76aaad38-1077-6a5c-0c5c-102ec160a60d" + } + ], + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "ombCategory", + "valueCoding": { + "code": "2028-9", + "display": "Asian", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White+Asian" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + "valueString": "SMITH--Angela--L" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", + "valueAddress": { + "text": "St. Francis Community Hospital of Lower South Side" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-religion", + "valueCodeableConcept": { + "coding": [ + { + "code": "1002", + "display": "African Religions", + "system": "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2186-5", + "display": "Non Hispanic or Latino", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "Non Hispanic or Latino" + } + ] + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/VeteranMilitaryStatus", + "valueCodeableConcept": { + "coding": [ + { + "code": "Vet123", + "display": "retired", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ART" + } + ], + "text": "retired" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-animal", + "extension": [ + { + "url": "species", + "valueCodeableConcept": { + "coding": [ + { + "code": "125097000", + "display": "Goat", + "system": "http://snomed.info/sct" + } + ], + "text": "Goat" + } + }, + { + "url": "breed", + "valueCodeableConcept": { + "coding": [ + { + "code": "4880003", + "display": "Beagle", + "system": "http://snomed.info/sct" + } + ], + "text": "Beagle" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "US", + "display": "United States of America", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "United States of America" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "CA", + "display": "Canada", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Canada" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-nationality", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "BT", + "display": "Bhutan", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Bhutan" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-congregation", + "valueString": "Methodist Church" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-importance", + "valueCodeableConcept": { + "coding": [ + { + "code": "VIP", + "display": "Very Important Person", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/L", + "version": "v1.1" + }, + { + "code": "IMP", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/DCM", + "version": "v1.2" + } + ], + "text": "Inportant Person" + } + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/patient-disabilityIndicator", + "valueBoolean": true + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/DisabilityPeriod", + "valuePeriod": { + "start": "2021-08-30", + "end": "2021-09-30" + } + } + ], + "contact": [ + { + "organization": { + "reference": "Organization/3bb64820-2a2b-956c-9f45-125ec102f353" + } + }, + { + "name": { + "family": "Evan", + "given": [ + "ADAM", + "A" + ], + "suffix": [ + "III", + "MD" + ], + "prefix": [ + "Dr." + ], + "use": "usual" + }, + "address": { + "line": [ + "2222", + "HOME", + "STREET", + "Highway" + ], + "city": "GREENSBORO", + "state": "NC", + "postalCode": "27401-1020", + "country": "US", + "use": "billing", + "district": "test", + "period": { + "start": "2000-01-10", + "end": "2005-01-11" + } + }, + "telecom": [ + { + "value": "5555", + "use": "work", + "system": "email", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "121111", + "use": "home", + "system": "phone" + }, + { + "value": "878777", + "use": "home", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "6666666", + "system": "pager", + "use": "work" + }, + { + "value": "777", + "use": "work", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 1 + }, + { + "value": "444444", + "system": "phone" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "O", + "display": "Other", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131" + } + ] + } + ], + "period": { + "start": "2021-08-18", + "end": "2021-12-18" + }, + "gender": "female" + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + { + "fullUrl": "urn:uuid:78295402-9b84-4829-b945-502ab3402de5", + "resource": { + "resourceType": "Account", + "id": "78295402-9b84-4829-b945-502ab3402de5", + "identifier": [ + { + "value": "4000776", + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Visit number" + } + ] + }, + "system": "urn:oid:2.4", + "assigner": { + "reference": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + ], + "guarantor": [ + { + "party": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "onHold": false, + "period": { + "start": "2001-04-10", + "end": "2001-04-15" + } + }, + { + "party": { + "reference": "Organization/98678cfe-0455-73c8-d2a1-2ede2d55943f" + }, + "onHold": false, + "period": { + "start": "2001-04-10", + "end": "2001-04-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/78295402-9b84-4829-b945-502ab3402de5" + } + }, + { + "fullUrl": "urn:uuid:9d4c8327-8a28-8152-1898-8251baa707b7", + "resource": { + "resourceType": "Organization", + "id": "9d4c8327-8a28-8152-1898-8251baa707b7", + "identifier": [ + { + "value": "AccMgr", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr" + }, + { + "value": "urn:oid:2.4", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + } + }, + { + "fullUrl": "urn:uuid:98678cfe-0455-73c8-d2a1-2ede2d55943f", + "resource": { + "resourceType": "Organization", + "id": "98678cfe-0455-73c8-d2a1-2ede2d55943f", + "name": "Jupiter Hospital", + "address": [ + { + "line": [ + "1619 SOUTH UNIVERSITY" + ], + "city": "MADISON", + "state": "WI", + "postalCode": "53703", + "country": "US" + } + ], + "contact": [ + { + "telecom": [ + { + "value": "000352", + "system": "phone" + }, + { + "value": "00121", + "system": "fax" + } + ], + "purpose": { + "coding": [ + { + "code": "Urgent requirement" + } + ] + } + }, + { + "name": { + "family": "RADIANT", + "given": [ + "LUCY" + ] + } + }, + { + "name": { + "family": "Ben", + "given": [ + "Charles" + ] + } + }, + { + "name": { + "family": "Ben2" + } + } + ], + "telecom": [ + { + "value": "8484", + "system": "email" + }, + { + "value": "717171", + "system": "phone" + }, + { + "value": "021212", + "system": "other" + } + ], + "identifier": [ + { + "value": "1516", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/98678cfe-0455-73c8-d2a1-2ede2d55943f" + } + }, + { + "fullUrl": "urn:uuid:b3ad3a9f-d4f6-4638-0a09-2da771733488", + "resource": { + "resourceType": "Organization", + "id": "b3ad3a9f-d4f6-4638-0a09-2da771733488", + "identifier": [ + { + "value": "test1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test1" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "fullUrl": "urn:uuid:4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11", + "resource": { + "resourceType": "Organization", + "id": "4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11", + "name": "LINDAS TEST ORGANIZATION", + "identifier": [ + { + "value": "SIISCLIENT818" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11" + } + }, + { + "fullUrl": "urn:uuid:76aaad38-1077-6a5c-0c5c-102ec160a60d", + "resource": { + "resourceType": "Practitioner", + "id": "76aaad38-1077-6a5c-0c5c-102ec160a60d", + "identifier": [ + { + "value": "88", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TE", + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Hippo", + "given": [ + "rold", + "H" + ], + "suffix": [ + "V", + "MD" + ], + "prefix": [ + "Dr" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/76aaad38-1077-6a5c-0c5c-102ec160a60d" + } + }, + { + "fullUrl": "urn:uuid:11967e28-8dd4-a112-0fdc-377866bf12a0", + "resource": { + "resourceType": "Organization", + "id": "11967e28-8dd4-a112-0fdc-377866bf12a0", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "2.16.840.1.113883.19", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + } + }, + { + "fullUrl": "urn:uuid:7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "resource": { + "resourceType": "Organization", + "id": "7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "identifier": [ + { + "value": "AccMng", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMng" + }, + { + "value": "1.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + } + }, + { + "fullUrl": "urn:uuid:0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "resource": { + "resourceType": "Organization", + "id": "0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "identifier": [ + { + "value": "PERSONNELt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSONNELt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + } + }, + { + "fullUrl": "urn:uuid:f6775f99-5279-be04-bf81-0906c81f7443", + "resource": { + "resourceType": "Practitioner", + "id": "f6775f99-5279-be04-bf81-0906c81f7443", + "identifier": [ + { + "value": "1122334", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Alaz", + "given": [ + "Mohammed", + "Mahi" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "fullUrl": "urn:uuid:c613d7b2-525f-8c08-a7ac-b2b91486e257", + "resource": { + "resourceType": "Organization", + "id": "c613d7b2-525f-8c08-a7ac-b2b91486e257", + "identifier": [ + { + "value": "TEST", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TEST" + }, + { + "value": "23.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + } + }, + { + "fullUrl": "urn:uuid:04f8cfc8-62ca-12df-63ce-6304ef577d44", + "resource": { + "resourceType": "Practitioner", + "id": "04f8cfc8-62ca-12df-63ce-6304ef577d44", + "identifier": [ + { + "value": "C006", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + }, + "type": { + "coding": [ + { + "code": "BA", + "display": "Bank Account Number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen" + ], + "prefix": [ + "Dr" + ], + "use": "anonymous" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "fullUrl": "urn:uuid:99edcabd-fbeb-7e25-f823-11da8d8ed342", + "resource": { + "resourceType": "Practitioner", + "id": "99edcabd-fbeb-7e25-f823-11da8d8ed342", + "identifier": [ + { + "value": "C008", + "system": "urn:oid:2.8", + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Condoc", + "given": [ + "leen" + ], + "prefix": [ + "Dr" + ], + "use": "temp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "fullUrl": "urn:uuid:b065b233-8738-f1ec-1314-d61e4aac2c9e", + "resource": { + "resourceType": "Practitioner", + "id": "b065b233-8738-f1ec-1314-d61e4aac2c9e", + "identifier": [ + { + "value": "37", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr", + "type": { + "coding": [ + { + "code": "ANC", + "display": "Account number Creditor", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "DISNEY", + "given": [ + "WALT" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "fullUrl": "urn:uuid:9f974d4f-47e8-21a6-e549-4de4599c3764", + "resource": { + "resourceType": "Organization", + "id": "9f974d4f-47e8-21a6-e549-4de4599c3764", + "identifier": [ + { + "value": "T123", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-T123" + }, + { + "value": "urn:oid:r2.3", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + }, + { + "fullUrl": "urn:uuid:84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "resource": { + "resourceType": "Practitioner", + "id": "84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "identifier": [ + { + "value": "Othhel", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "fullUrl": "urn:uuid:24d4bddf-a1c3-4dc8-049b-1dda7e5112b6", + "resource": { + "resourceType": "Organization", + "id": "24d4bddf-a1c3-4dc8-049b-1dda7e5112b6", + "identifier": [ + { + "value": "TE", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TE" + }, + { + "value": "Provider Master.Community Health and Hospitals", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-DNS", + "type": { + "coding": [ + { + "code": "DNS", + "display": "An Internet host name, in accordance with RFC 1035; or an IP address. Either in ASCII or as integers, with periods between components (“dotted” notation).", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/24d4bddf-a1c3-4dc8-049b-1dda7e5112b6" + } + }, + { + "fullUrl": "urn:uuid:36e3aaa4-569a-7d9d-037f-27235ed05701", + "resource": { + "resourceType": "Practitioner", + "id": "36e3aaa4-569a-7d9d-037f-27235ed05701", + "identifier": [ + { + "value": "12188", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-DNS", + "assigner": { + "reference": "Organization/24d4bddf-a1c3-4dc8-049b-1dda7e5112b6" + }, + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Hippocrates", + "given": [ + "Harold", + "H" + ], + "suffix": [ + "IV", + "MD" + ], + "prefix": [ + "Dr" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/36e3aaa4-569a-7d9d-037f-27235ed05701" + } + }, + { + "fullUrl": "urn:uuid:9172e4a0-1ca5-646d-2183-b179f4daa737", + "resource": { + "resourceType": "Location", + "id": "9172e4a0-1ca5-646d-2183-b179f4daa737", + "partOf": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + }, + "name": "HUH AE OMU", + "identifier": [ + { + "value": "urn:oid:9.8", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "fullUrl": "urn:uuid:3913ec4d-6576-5e1a-ac31-e8280583371c", + "resource": { + "resourceType": "Location", + "id": "3913ec4d-6576-5e1a-ac31-e8280583371c", + "partOf": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + }, + "name": "OMU B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "fullUrl": "urn:uuid:804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "resource": { + "resourceType": "Location", + "id": "804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "partOf": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + }, + "name": "Bed 03", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "fullUrl": "urn:uuid:c043880b-0fab-1cb8-14f7-0475282c4d0e", + "resource": { + "resourceType": "Location", + "id": "c043880b-0fab-1cb8-14f7-0475282c4d0e", + "name": "HOMERTON UNIVER", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "fullUrl": "urn:uuid:f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "resource": { + "resourceType": "Location", + "id": "f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "partOf": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + }, + "name": "Homerton UH", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "fullUrl": "urn:uuid:7e38808c-44a8-cb0c-4709-9d6092abc32c", + "resource": { + "resourceType": "Location", + "id": "7e38808c-44a8-cb0c-4709-9d6092abc32c", + "partOf": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + }, + "name": "Floor5", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "fullUrl": "urn:uuid:59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "resource": { + "resourceType": "Location", + "id": "59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "name": "4 East, room 136, bed B 4E", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + } + }, + { + "fullUrl": "urn:uuid:d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "resource": { + "resourceType": "Location", + "id": "d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "partOf": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "name": "136", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + } + }, + { + "fullUrl": "urn:uuid:5783dafa-c6c0-e673-cca4-42087ee1831b", + "resource": { + "resourceType": "Location", + "id": "5783dafa-c6c0-e673-cca4-42087ee1831b", + "partOf": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "name": "B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + } + }, + { + "fullUrl": "urn:uuid:8b39e6e5-78cd-63ab-2441-f43ca5554096", + "resource": { + "resourceType": "Location", + "id": "8b39e6e5-78cd-63ab-2441-f43ca5554096", + "name": "CommunityHospital", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + } + }, + { + "fullUrl": "urn:uuid:42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "resource": { + "resourceType": "Location", + "id": "42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "name": "Homes", + "identifier": [ + { + "value": "22", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/FDK" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + { + "fullUrl": "urn:uuid:84634858-74aa-5cdb-4547-60ec27339ac6", + "resource": { + "resourceType": "Location", + "id": "84634858-74aa-5cdb-4547-60ec27339ac6", + "name": "POC", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + } + }, + { + "fullUrl": "urn:uuid:9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "resource": { + "resourceType": "Location", + "id": "9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "partOf": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "name": "Room-2", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + } + }, + { + "fullUrl": "urn:uuid:35353f20-6254-e794-98ed-8007490447e3", + "resource": { + "resourceType": "Location", + "id": "35353f20-6254-e794-98ed-8007490447e3", + "partOf": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "name": "Bed-103", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/35353f20-6254-e794-98ed-8007490447e3" + } + }, + { + "fullUrl": "urn:uuid:055e10f1-222e-df73-2325-0e4396db1a55", + "resource": { + "resourceType": "Location", + "id": "055e10f1-222e-df73-2325-0e4396db1a55", + "name": "Greenland", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + } + }, + { + "fullUrl": "urn:uuid:1154e6b2-b022-b3be-7dce-2b940ab5376d", + "resource": { + "resourceType": "Location", + "id": "1154e6b2-b022-b3be-7dce-2b940ab5376d", + "name": "Nursing home", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + } + }, + { + "fullUrl": "urn:uuid:08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "resource": { + "resourceType": "Location", + "id": "08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "name": "Rosewood", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + } + }, + { + "fullUrl": "urn:uuid:c7f1b9ec-ffd8-321e-ad87-abafc1c1a333", + "resource": { + "resourceType": "Location", + "id": "c7f1b9ec-ffd8-321e-ad87-abafc1c1a333", + "name": "ROOM1", + "identifier": [ + { + "value": "urn:oid:2.16.840.1.113883.4.642.1.1108", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + } + }, + { + "fullUrl": "urn:uuid:6f159848-5f01-01b3-9594-80fbbe9ab510", + "resource": { + "resourceType": "Location", + "id": "6f159848-5f01-01b3-9594-80fbbe9ab510", + "partOf": { + "reference": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + }, + "name": "BED1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/6f159848-5f01-01b3-9594-80fbbe9ab510" + } + }, + { + "fullUrl": "urn:uuid:4bca6ba2-be65-ef37-3911-03b70a00a3a6", + "resource": { + "resourceType": "Location", + "id": "4bca6ba2-be65-ef37-3911-03b70a00a3a6", + "name": "FACILITY1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + } + }, + { + "fullUrl": "urn:uuid:3b0911cb-4361-cd8d-b188-463af033c699", + "resource": { + "resourceType": "Location", + "id": "3b0911cb-4361-cd8d-b188-463af033c699", + "partOf": { + "reference": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + }, + "name": "BUILDING1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + } + }, + { + "fullUrl": "urn:uuid:0d9c3424-329f-4c95-ee30-ac2da4a35bff", + "resource": { + "resourceType": "Location", + "id": "0d9c3424-329f-4c95-ee30-ac2da4a35bff", + "partOf": { + "reference": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + }, + "name": "FLOOR1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/0d9c3424-329f-4c95-ee30-ac2da4a35bff" + } + }, + { + "fullUrl": "urn:uuid:08314073-410a-3dc7-512c-0f2d206fb59d", + "resource": { + "resourceType": "Organization", + "id": "08314073-410a-3dc7-512c-0f2d206fb59d", + "identifier": [ + { + "value": "Etest", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-Etest" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + }, + { + "fullUrl": "urn:uuid:919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "resource": { + "resourceType": "EpisodeOfCare", + "id": "919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "status": "planned", + "identifier": [ + { + "value": "EOC124", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "diagnosis": [ + { + "condition": { + "reference": "Condition/481123a1-ca9c-c3c8-0284-e6926c3a50d8" + }, + "role": { + "coding": [ + { + "code": "AD", + "display": "Admission Diagnosis", + "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role" + } + ] + }, + "rank": 1 + } + ] + }, + "request": { + "method": "PUT", + "url": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + }, + { + "fullUrl": "urn:uuid:4b192760-03d2-aec4-b0a6-fde323912e1e", + "resource": { + "resourceType": "Encounter", + "id": "4b192760-03d2-aec4-b0a6-fde323912e1e", + "class": { + "code": "PRENC", + "display": "pre-admission", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "status": "planned", + "location": [ + { + "status": "planned", + "location": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "status": "completed", + "location": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/35353f20-6254-e794-98ed-8007490447e3" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/6f159848-5f01-01b3-9594-80fbbe9ab510" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/0d9c3424-329f-4c95-ee30-ac2da4a35bff" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + } + ], + "type": [ + { + "coding": [ + { + "code": "E", + "display": "Emergency", + "system": "http://terminology.hl7.org/CodeSystem/v2-0007" + } + ] + } + ], + "hospitalization": { + "preAdmissionIdentifier": { + "value": "1234567", + "type": { + "coding": [ + { + "code": "ANON", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Anonymous identifier" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + "reAdmission": { + "coding": [ + { + "code": "R", + "display": "Re-admission", + "system": "http://terminology.hl7.org/CodeSystem/v2-0092" + } + ] + }, + "admitSource": { + "coding": [ + { + "code": "NHS Provider-General (inc.A&E-this Hosp)" + } + ] + }, + "dischargeDisposition": { + "coding": [ + { + "code": "Admitted as Inpatient", + "display": "Sample", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ACR" + } + ] + }, + "dietPreference": [ + { + "coding": [ + { + "code": "Vegan", + "display": "Vegetarian" + } + ] + } + ], + "destination": { + "reference": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + "episodeOfCare": [ + { + "reference": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + ], + "participant": [ + { + "type": [ + { + "coding": [ + { + "code": "ATND", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", + "display": "attender" + } + ] + } + ], + "individual": { + "reference": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "CON", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "consultant" + } + ], + "individual": { + "reference": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "ADM", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "admitter" + } + ], + "individual": { + "reference": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "PART", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "Participation" + } + ], + "individual": { + "reference": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/36e3aaa4-569a-7d9d-037f-27235ed05701" + } + } + ], + "serviceType": { + "coding": [ + { + "code": "SUR" + } + ] + }, + "identifier": [ + { + "value": "40007716", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + }, + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ], + "text": "visit number" + } + }, + { + "value": "50", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:r2.3", + "assigner": { + "reference": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + } + ], + "period": { + "start": "2015-02-08T15:54:19+05:30" + }, + "reasonCode": [ + { + "coding": [ + { + "code": "140004", + "display": "Chronic pharyngitis", + "system": "http://snomed.info/sct" + } + ] + } + ], + "length": { + "value": 2, + "unit": "d", + "system": "http://unitsofmeasure.org/" + }, + "meta": { + "security": [ + { + "code": "N", + "display": "normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality" + } + ] + }, + "text": { + "status": "generated", + "div": "

Visit Description: Health Checkup

" + }, + "priority": { + "coding": [ + { + "code": "UR", + "display": "urgent", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActPriority", + "version": "V1.2" + }, + { + "code": "EL", + "display": "elective", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActPriority", + "version": "V1.3" + } + ] + }, + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/encounter-modeOfArrival", + "valueCoding": { + "code": "C", + "display": "Car", + "system": "http://terminology.hl7.org/CodeSystem/v2-0430" + } + } + ], + "diagnosis": [ + { + "condition": { + "reference": "Condition/481123a1-ca9c-c3c8-0284-e6926c3a50d8" + }, + "use": { + "coding": [ + { + "code": "AD", + "display": "Admission Diagnosis", + "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role" + } + ] + }, + "rank": 1 + } + ] + }, + "request": { + "method": "PUT", + "url": "Encounter/4b192760-03d2-aec4-b0a6-fde323912e1e" + } + }, + { + "fullUrl": "urn:uuid:9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "resource": { + "resourceType": "Provenance", + "id": "9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "occurredDateTime": "2021-08-17T18:49:43.004+05:30", + "recorded": "2029-08-01T11:21:24+05:30", + "reason": [ + { + "coding": [ + { + "code": "PATRQT", + "display": "patient requested", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason" + } + ] + } + ], + "agent": [ + { + "who": { + "reference": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + } + ], + "activity": { + "text": "ADT^A16^ADT_A16" + }, + "location": { + "reference": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + }, + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c" + } + }, + { + "fullUrl": "urn:uuid:ef39f581-5e8f-3917-35a9-3443303d9eee", + "resource": { + "resourceType": "Organization", + "id": "ef39f581-5e8f-3917-35a9-3443303d9eee", + "identifier": [ + { + "value": "DRNBR", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-DRNBR" + }, + { + "value": "urn:oid:W1.2", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + } + }, + { + "fullUrl": "urn:uuid:95aea53b-8d49-d57f-d16f-4d14b914f992", + "resource": { + "resourceType": "Practitioner", + "id": "95aea53b-8d49-d57f-d16f-4d14b914f992", + "identifier": [ + { + "value": "C08", + "system": "urn:oid:W1.2", + "assigner": { + "reference": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + }, + "type": { + "coding": [ + { + "code": "ANON", + "display": "Anonymous identifier", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen", + "2ndname" + ], + "suffix": [ + "Jr", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + }, + { + "fullUrl": "urn:uuid:59d5e519-0108-5dd8-adfa-1eef5658009e", + "resource": { + "resourceType": "Location", + "id": "59d5e519-0108-5dd8-adfa-1eef5658009e", + "name": "Cona_Health", + "identifier": [ + { + "value": "urn:oid:1.3.6.1.4.1.44750.1.4", + "system": "urn:ietf:rfc:3986" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "display": "site", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + } + }, + { + "fullUrl": "urn:uuid:396e6ab6-624f-44a8-841c-6e1c4cebd765", + "resource": { + "resourceType": "Practitioner", + "id": "396e6ab6-624f-44a8-841c-6e1c4cebd765", + "identifier": [ + { + "value": "1210" + } + ], + "name": [ + { + "family": "ANES", + "given": [ + "MARK", + "B" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/396e6ab6-624f-44a8-841c-6e1c4cebd765" + } + }, + { + "fullUrl": "urn:uuid:6a01e35c-52c3-892a-2ea0-0a283eb6757b", + "resource": { + "resourceType": "Practitioner", + "id": "6a01e35c-52c3-892a-2ea0-0a283eb6757b", + "identifier": [ + { + "value": "121188", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-L", + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Patrick", + "given": [ + "Harold", + "H" + ], + "suffix": [ + "IV", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/6a01e35c-52c3-892a-2ea0-0a283eb6757b" + } + }, + { + "fullUrl": "urn:uuid:a8fc538f-624b-0cee-df30-6377fabae47c", + "resource": { + "resourceType": "Practitioner", + "id": "a8fc538f-624b-0cee-df30-6377fabae47c", + "identifier": [ + { + "value": "12345689", + "type": { + "coding": [ + { + "code": "MR", + "display": "Medical record number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Everyman2", + "given": [ + "Adam2", + "A" + ], + "suffix": [ + "III", + "PHD" + ], + "prefix": [ + "DR" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/a8fc538f-624b-0cee-df30-6377fabae47c" + } + }, + { + "fullUrl": "urn:uuid:a9c75502-d60a-d89b-5912-f046100cd47e", + "resource": { + "resourceType": "Location", + "id": "a9c75502-d60a-d89b-5912-f046100cd47e", + "name": "OT", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/a9c75502-d60a-d89b-5912-f046100cd47e" + } + }, + { + "fullUrl": "urn:uuid:2e2e33a1-60f8-7e38-c827-fe070237c3fb", + "resource": { + "resourceType": "Procedure", + "id": "2e2e33a1-60f8-7e38-c827-fe070237c3fb", + "status": "unknown", + "identifier": [ + { + "value": "PR1001" + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Procedure/2e2e33a1-60f8-7e38-c827-fe070237c3fb" + } + }, + { + "fullUrl": "urn:uuid:c06db9c2-d07b-bac2-53c2-48ed83dd32b6", + "resource": { + "resourceType": "Procedure", + "id": "c06db9c2-d07b-bac2-53c2-48ed83dd32b6", + "code": { + "coding": [ + { + "code": "76164006", + "display": "Biopsy of colon (procedure)", + "system": "http://snomed.info/sct" + } + ], + "text": "Biopsy of colon, which was part of colonoscopy" + }, + "status": "completed", + "performedDateTime": "2005-01-25T16:10:00+05:30", + "category": { + "coding": [ + { + "code": "D", + "display": "Diagnostic Procedure", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/HL70230" + } + ] + }, + "performer": [ + { + "actor": { + "reference": "Practitioner/396e6ab6-624f-44a8-841c-6e1c4cebd765" + }, + "function": { + "coding": [ + { + "code": "88189002", + "system": "http://snomed.info/sct", + "display": "Anesthesiologist" + } + ], + "text": "Anesthesiologist" + } + }, + { + "actor": { + "reference": "Practitioner/6a01e35c-52c3-892a-2ea0-0a283eb6757b" + }, + "function": { + "coding": [ + { + "code": "304292004", + "system": "http://snomed.info/sct", + "display": "Surgeon" + } + ], + "text": "Surgeon" + } + }, + { + "actor": { + "reference": "Practitioner/a8fc538f-624b-0cee-df30-6377fabae47c" + }, + "function": { + "text": "Procedure Practitioner" + } + } + ], + "reasonCode": [ + { + "coding": [ + { + "code": "799008", + "display": "Sigmoid colon ulcer", + "system": "http://snomed.info/sct" + } + ] + } + ], + "identifier": [ + { + "value": "PR1006" + } + ], + "location": { + "reference": "Location/a9c75502-d60a-d89b-5912-f046100cd47e" + }, + "partOf": [ + { + "reference": "Procedure/2e2e33a1-60f8-7e38-c827-fe070237c3fb" + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Procedure/c06db9c2-d07b-bac2-53c2-48ed83dd32b6" + } + }, + { + "fullUrl": "urn:uuid:3bb64820-2a2b-956c-9f45-125ec102f353", + "resource": { + "resourceType": "Organization", + "id": "3bb64820-2a2b-956c-9f45-125ec102f353", + "name": "TestOrg", + "identifier": [ + { + "value": "Org12", + "type": { + "coding": [ + { + "code": "EI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "contact": [ + { + "name": { + "family": "Green", + "given": [ + "John", + "A" + ], + "suffix": [ + "II", + "MD" + ], + "prefix": [ + "DR" + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + "telecom": [ + { + "value": "898989898", + "system": "fax" + }, + { + "value": "88888888", + "system": "phone" + } + ], + "address": { + "line": [ + "Street1", + "Palkstreet" + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/3bb64820-2a2b-956c-9f45-125ec102f353" + } + }, + { + "fullUrl": "urn:uuid:abdee378-0d3b-337f-a31e-83e002ce92a0", + "resource": { + "resourceType": "RelatedPerson", + "id": "abdee378-0d3b-337f-a31e-83e002ce92a0", + "identifier": [ + { + "value": "1212121", + "type": { + "coding": [ + { + "code": "AND", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Account number debitor" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "12345567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/e76154d7-9084-80e4-6274-c929d7c39880" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "I-123", + "type": { + "coding": [ + { + "code": "BA", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Bank Account Number" + } + ] + } + }, + { + "value": "I-222", + "type": { + "coding": [ + { + "code": "DI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Diner’s Club card" + } + ] + } + }, + { + "value": "Security no-23", + "system": "http://hl7.org/fhir/sid/us-ssn" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "C", + "display": "Emergency Contact", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131", + "version": "9.0" + }, + { + "code": "CHILD", + "display": "child", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode", + "version": "10.0" + } + ] + }, + { + "coding": [ + { + "code": "O", + "display": "Other", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131" + } + ] + }, + { + "coding": [ + { + "code": "MTH", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "period": { + "start": "2021-08-18", + "end": "2021-12-18" + }, + "address": [ + { + "line": [ + "2222", + "HOME", + "STREET", + "Highway" + ], + "city": "GREENSBORO", + "state": "NC", + "postalCode": "27401-1020", + "country": "US", + "use": "billing", + "district": "test", + "period": { + "start": "2000-01-10", + "end": "2005-01-11" + } + }, + { + "line": [ + "111", + "Duck ST" + ], + "city": "Fowl" + }, + { + "line": [ + "Street1", + "Palkstreet" + ] + }, + { + "line": [ + "ST-2" + ] + } + ], + "telecom": [ + { + "value": "5555", + "use": "work", + "system": "email", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "121111", + "use": "home", + "system": "phone" + }, + { + "value": "878777", + "use": "home", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "6666666", + "system": "pager", + "use": "work" + }, + { + "value": "898989898", + "system": "fax" + }, + { + "value": "88888888", + "system": "phone" + }, + { + "value": "777", + "use": "work", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 1 + }, + { + "value": "444444", + "system": "phone" + } + ], + "name": [ + { + "family": "Evan", + "given": [ + "ADAM", + "A" + ], + "suffix": [ + "III", + "MD" + ], + "prefix": [ + "Dr." + ], + "use": "usual" + }, + { + "family": "Green", + "given": [ + "John", + "A" + ], + "suffix": [ + "II", + "MD" + ], + "prefix": [ + "DR" + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official" + } + ], + "gender": "female", + "birthDate": "1962-01-10", + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47" + } + ] + } + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White" + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/abdee378-0d3b-337f-a31e-83e002ce92a0" + } + }, + { + "fullUrl": "urn:uuid:e76154d7-9084-80e4-6274-c929d7c39880", + "resource": { + "resourceType": "Organization", + "id": "e76154d7-9084-80e4-6274-c929d7c39880", + "identifier": [ + { + "value": "T1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-T1" + }, + { + "value": "2.16.840.1.113883.19", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/e76154d7-9084-80e4-6274-c929d7c39880" + } + }, + { + "fullUrl": "urn:uuid:f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "resource": { + "resourceType": "Organization", + "id": "f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "identifier": [ + { + "value": "NTH", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NTH" + }, + { + "value": "rt23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + } + }, + { + "fullUrl": "urn:uuid:4e68b44e-c053-02b1-6d6d-fe816f9fdfec", + "resource": { + "resourceType": "Organization", + "id": "4e68b44e-c053-02b1-6d6d-fe816f9fdfec", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "urn:oid:1.12", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4e68b44e-c053-02b1-6d6d-fe816f9fdfec" + } + }, + { + "fullUrl": "urn:uuid:e82402a9-b2d1-2a28-3250-c099d5a77bf7", + "resource": { + "resourceType": "Organization", + "id": "e82402a9-b2d1-2a28-3250-c099d5a77bf7", + "identifier": [ + { + "value": "PERSt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/e82402a9-b2d1-2a28-3250-c099d5a77bf7" + } + }, + { + "fullUrl": "urn:uuid:ce70e6c3-c190-121d-c251-e4bae5cde6a1", + "resource": { + "resourceType": "Practitioner", + "id": "ce70e6c3-c190-121d-c251-e4bae5cde6a1", + "identifier": [ + { + "value": "1134", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/e82402a9-b2d1-2a28-3250-c099d5a77bf7" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Aly", + "given": [ + "Zafar", + "Mahendra" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/ce70e6c3-c190-121d-c251-e4bae5cde6a1" + } + }, + { + "fullUrl": "urn:uuid:88a53755-c972-6904-b4ce-8884b84ddc2e", + "resource": { + "resourceType": "PractitionerRole", + "id": "88a53755-c972-6904-b4ce-8884b84ddc2e", + "code": [ + { + "coding": [ + { + "code": "ResponsibleObserver", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/ce70e6c3-c190-121d-c251-e4bae5cde6a1" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/88a53755-c972-6904-b4ce-8884b84ddc2e" + } + }, + { + "fullUrl": "urn:uuid:3e0952c6-eea0-8938-96f8-07c224bf1577", + "resource": { + "resourceType": "Practitioner", + "id": "3e0952c6-eea0-8938-96f8-07c224bf1577", + "identifier": [ + { + "value": "2234" + } + ], + "name": [ + { + "family": "Pauly", + "given": [ + "Berrie", + "Raud" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/3e0952c6-eea0-8938-96f8-07c224bf1577" + } + }, + { + "fullUrl": "urn:uuid:bc78e290-ec67-c238-1e05-aefb6b252b0c", + "resource": { + "resourceType": "PractitionerRole", + "id": "bc78e290-ec67-c238-1e05-aefb6b252b0c", + "code": [ + { + "coding": [ + { + "code": "ResponsibleObserver", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/3e0952c6-eea0-8938-96f8-07c224bf1577" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/bc78e290-ec67-c238-1e05-aefb6b252b0c" + } + }, + { + "fullUrl": "urn:uuid:fe0adb86-ebe9-6479-0055-9db8dc1ff99a", + "resource": { + "resourceType": "Device", + "id": "fe0adb86-ebe9-6479-0055-9db8dc1ff99a", + "identifier": [ + { + "value": "EI12.3", + "system": "urn:uuid:UI2", + "type": { + "coding": [ + { + "code": "GUID", + "display": "Same as UUID.", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + }, + { + "system": "urn:oid:UI1", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/fe0adb86-ebe9-6479-0055-9db8dc1ff99a" + } + }, + { + "fullUrl": "urn:uuid:45f65e47-46c4-1a54-f9fb-1321258e79b2", + "resource": { + "resourceType": "Practitioner", + "id": "45f65e47-46c4-1a54-f9fb-1321258e79b2", + "identifier": [ + { + "type": { + "coding": [ + { + "code": "MD-25" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/45f65e47-46c4-1a54-f9fb-1321258e79b2" + } + }, + { + "fullUrl": "urn:uuid:090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3", + "resource": { + "resourceType": "PractitionerRole", + "id": "090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3", + "code": [ + { + "coding": [ + { + "code": "LabMedicalDirector", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/45f65e47-46c4-1a54-f9fb-1321258e79b2" + }, + "organization": { + "reference": "Organization/056aa7c7-6b75-3c67-63c5-cf9604f16d25" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3" + } + }, + { + "fullUrl": "urn:uuid:056aa7c7-6b75-3c67-63c5-cf9604f16d25", + "resource": { + "resourceType": "Organization", + "id": "056aa7c7-6b75-3c67-63c5-cf9604f16d25", + "name": "FairOaks Hspital", + "address": [ + { + "line": [ + "Research Park", + "Fairfax" + ], + "city": "VA", + "state": "22031", + "postalCode": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/056aa7c7-6b75-3c67-63c5-cf9604f16d25" + } + }, + { + "fullUrl": "urn:uuid:07fd2dd3-dbd6-5bb1-cfda-02226795d9a0", + "resource": { + "resourceType": "Observation", + "id": "07fd2dd3-dbd6-5bb1-cfda-02226795d9a0", + "identifier": [ + { + "value": "EI21", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-OII" + }, + { + "type": { + "coding": [ + { + "code": "FILL" + } + ] + } + } + ], + "status": "unknown", + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "component": [ + { + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 60, + "code": "beats/min", + "unit": "beats/min", + "system": "urn:iso:std:iso:3986" + }, + "referenceRange": [ + { + "text": "70-80" + } + ] + }, + { + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 120, + "code": "beats/min", + "unit": "beats/min", + "system": "urn:iso:std:iso:3986" + }, + "referenceRange": [ + { + "text": "70-80" + } + ] + } + ], + "effectiveDateTime": "1999-07-02", + "method": { + "coding": [ + { + "code": "OBS", + "display": "This is test method", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/AS4" + } + ] + }, + "device": { + "reference": "Device/fe0adb86-ebe9-6479-0055-9db8dc1ff99a" + }, + "bodySite": { + "coding": [ + { + "code": "BU", + "display": "Observation site", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/E5" + } + ] + }, + "performer": [ + { + "reference": "PractitionerRole/88a53755-c972-6904-b4ce-8884b84ddc2e" + }, + { + "reference": "PractitionerRole/bc78e290-ec67-c238-1e05-aefb6b252b0c" + }, + { + "reference": "PractitionerRole/090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "A", + "display": "Abnormal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + }, + { + "coding": [ + { + "code": "B", + "display": "Better", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } + ], + "extension": [ + { + "url": "http://example.com/v2-to-fhir-converter/Observation_Status", + "valueCodeableConcept": { + "coding": [ + { + "code": "S", + "display": "Partial", + "system": "http://terminology.hl7.org/CodeSystem/v2-0085" + } + ], + "text": "Partial" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Observation/07fd2dd3-dbd6-5bb1-cfda-02226795d9a0" + } + }, + { + "fullUrl": "urn:uuid:a0adcda8-0b28-d089-1955-c04308d5fe28", + "resource": { + "resourceType": "AllergyIntolerance", + "id": "a0adcda8-0b28-d089-1955-c04308d5fe28", + "category": [ + "environment" + ], + "type": "allergy", + "code": { + "coding": [ + { + "code": "P", + "display": "PENICILLIN", + "system": "http://terminology.hl7.org/CodeSystem/icd-o" + } + ] + }, + "reaction": [ + { + "manifestation": [ + { + "text": "CODE16" + } + ], + "onset": "2021-08-24" + } + ], + "criticality": "low", + "clinicalStatus": { + "coding": [ + { + "code": "active", + "display": "Active", + "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical" + } + ] + }, + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "AllergyIntolerance/a0adcda8-0b28-d089-1955-c04308d5fe28" + } + }, + { + "fullUrl": "urn:uuid:14493a95-7780-ead5-89cc-ad6c3bc31d51", + "resource": { + "resourceType": "Practitioner", + "id": "14493a95-7780-ead5-89cc-ad6c3bc31d51", + "identifier": [ + { + "value": "005454" + } + ], + "name": [ + { + "family": "DIAG", + "given": [ + "ROBIN", + "B" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/14493a95-7780-ead5-89cc-ad6c3bc31d51" + } + }, + { + "fullUrl": "urn:uuid:481123a1-ca9c-c3c8-0284-e6926c3a50d8", + "resource": { + "resourceType": "Condition", + "id": "481123a1-ca9c-c3c8-0284-e6926c3a50d8", + "code": { + "coding": [ + { + "code": "422504002", + "display": "Ischemic stroke(disorder)", + "system": "http://snomed.info/sct" + } + ], + "text": "Stroke" + }, + "onsetDateTime": "2004-01-25T12:50:25+05:30", + "identifier": [ + { + "value": "DI20", + "system": "urn:oid:DTUI", + "type": { + "coding": [ + { + "code": "CLIP", + "display": "Clinical laboratory Improvement Program. Allows for the ability to designate organization identifier as a “CLIP” assigned number (for labs). Used by US Department of Defense.", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "asserter": { + "reference": "Practitioner/14493a95-7780-ead5-89cc-ad6c3bc31d51" + }, + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/condition-assertedDate", + "valueDateTime": "2020-05-01T16:45:15+05:30" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/condition-dueTo", + "valueReference": { + "reference": "Condition/98e2ecfc-6e04-bc30-6624-4f3686214b22" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Condition/481123a1-ca9c-c3c8-0284-e6926c3a50d8" + } + }, + { + "fullUrl": "urn:uuid:98e2ecfc-6e04-bc30-6624-4f3686214b22", + "resource": { + "resourceType": "Condition", + "id": "98e2ecfc-6e04-bc30-6624-4f3686214b22", + "identifier": [ + { + "system": "urn:oid:UI", + "type": { + "coding": [ + { + "code": "CLIP", + "display": "Clinical laboratory Improvement Program. Allows for the ability to designate organization identifier as a “CLIP” assigned number (for labs). Used by US Department of Defense.", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Condition/98e2ecfc-6e04-bc30-6624-4f3686214b22" + } + }, + { + "fullUrl": "urn:uuid:c073f2c1-a818-924b-8881-1481ac88d691", + "resource": { + "resourceType": "Organization", + "id": "c073f2c1-a818-924b-8881-1481ac88d691", + "name": "AuthProvider", + "identifier": [ + { + "value": "A", + "type": { + "coding": [ + { + "code": "LR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/c073f2c1-a818-924b-8881-1481ac88d691" + } + }, + { + "fullUrl": "urn:uuid:e0ba3d6b-452f-7c22-a79d-1035e4b33ceb", + "resource": { + "resourceType": "Practitioner", + "id": "e0ba3d6b-452f-7c22-a79d-1035e4b33ceb", + "identifier": [ + { + "value": "114", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-2.3", + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Beverly", + "given": [ + "Crusher", + "An" + ], + "suffix": [ + "Mr", + "AHP", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/e0ba3d6b-452f-7c22-a79d-1035e4b33ceb" + } + }, + { + "fullUrl": "urn:uuid:739ae409-c591-1a59-32ad-d2ef1b937b0f", + "resource": { + "resourceType": "ServiceRequest", + "id": "739ae409-c591-1a59-32ad-d2ef1b937b0f", + "status": "on-hold", + "intent": "order", + "identifier": [ + { + "value": "123-1", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-name" + }, + { + "value": "123-2", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-Testname" + } + ], + "authoredOn": "1990-05-01T12:16:00+05:30", + "performer": [ + { + "reference": "Organization/c073f2c1-a818-924b-8881-1481ac88d691" + }, + { + "reference": "Practitioner/e0ba3d6b-452f-7c22-a79d-1035e4b33ceb" + } + ], + "performerType": { + "coding": [ + { + "code": "EXTERNAL" + } + ] + }, + "note": [ + { + "text": "Check for metastatic disease" + } + ], + "priority": "asap", + "reasonCode": [ + { + "coding": [ + { + "code": "R-1", + "display": "Reason", + "system": "http://www.ama-assn.org/go/cpt" + } + ], + "text": "Patient has a spinal fracture" + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "ServiceRequest/739ae409-c591-1a59-32ad-d2ef1b937b0f" + } + }, + { + "fullUrl": "urn:uuid:dfab6985-a691-c4f5-d2b2-6481fdfd59e4", + "resource": { + "resourceType": "Coverage", + "id": "dfab6985-a691-c4f5-d2b2-6481fdfd59e4", + "class": [ + { + "value": "BAV", + "name": "Blue Advantage HMO", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/coverage-class", + "code": "plan", + "display": "Plan" + } + ] + } + }, + { + "value": "PUBSUMB", + "name": "SelfPay", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/coverage-class", + "code": "group", + "display": "Group" + } + ] + } + } + ], + "network": "Blue Advantage HMO", + "period": { + "start": "1989-10-01", + "end": "2050-10-01" + }, + "type": { + "coding": [ + { + "code": "HMO", + "display": "health maintenance organization policy", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + } + ] + }, + "identifier": [ + { + "value": "PN-145", + "type": { + "coding": [ + { + "code": "PLN", + "display": "Policy Number", + "system": "http://example.com/CodeSystem/additional-identifier" + } + ] + }, + "system": "http://www.examplehealthplan.com/fhir/policyidentifier" + }, + { + "value": "HMO-12345", + "type": { + "coding": [ + { + "code": "NI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "National unique individual identifier" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.3" + }, + { + "value": "Medicare-12345", + "type": { + "coding": [ + { + "code": "MC", + "display": "Patient's Medicare number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-medicare" + }, + { + "value": "MCN-008", + "type": { + "coding": [ + { + "code": "MA", + "display": "Patient Medicaid number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/identifier-medicaid" + }, + { + "value": "PNM1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/1fca4c8f-7562-b755-9a05-5f0f49096e5b" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "costToBeneficiary": [ + { + "type": { + "coding": [ + { + "code": "DC", + "display": "direct unit cost", + "system": "http://terminology.hl7.org/CodeSystem/v2-0205" + } + ] + }, + "valueMoney": { + "value": 150, + "currency": "USD" + } + } + ], + "subscriberId": "HMO-12345", + "status": "active", + "beneficiary": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "payor": [ + { + "reference": "Organization/04a2a5f2-c971-1e42-e788-250ea487a889" + } + ], + "policyHolder": { + "reference": "Organization/4829e288-ac03-22cc-c65e-922004275fd0" + }, + "subscriber": { + "reference": "RelatedPerson/fd1eed45-4ccb-bb7c-d157-58eb0366d777" + }, + "relationship": { + "coding": [ + { + "code": "spouse", + "display": "Spouse", + "system": "http://terminology.hl7.org/CodeSystem/subscriber-relationship" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Coverage/dfab6985-a691-c4f5-d2b2-6481fdfd59e4" + } + }, + { + "fullUrl": "urn:uuid:04a2a5f2-c971-1e42-e788-250ea487a889", + "resource": { + "resourceType": "Organization", + "id": "04a2a5f2-c971-1e42-e788-250ea487a889", + "address": [ + { + "line": [ + "1979 MILKY WAY" + ], + "city": "VERONA", + "state": "WI", + "postalCode": "53593", + "country": "US" + } + ], + "contact": [ + { + "name": { + "family": "Henry", + "given": [ + "Rony", + "A" + ], + "suffix": [ + "III", + "MD" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1925-10-12" + } + } + } + ], + "telecom": [ + { + "value": "(555)555-5555", + "system": "phone" + } + ], + "identifier": [ + { + "value": "IC-1.31", + "type": { + "coding": [ + { + "code": "NIIP", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "National Insurance Payor Identifier (Payor)" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.1", + "period": { + "start": "1929-10-11", + "end": "1929-10-12" + } + } + ], + "name": "Blue Cross Blue Shield of Texas" + }, + "request": { + "method": "PUT", + "url": "Organization/04a2a5f2-c971-1e42-e788-250ea487a889" + } + }, + { + "fullUrl": "urn:uuid:4829e288-ac03-22cc-c65e-922004275fd0", + "resource": { + "resourceType": "Organization", + "id": "4829e288-ac03-22cc-c65e-922004275fd0", + "address": [ + { + "line": [ + "2000 MILKY WAY" + ], + "city": "VERONA", + "state": "WI", + "postalCode": "53593", + "country": "US" + } + ], + "name": "Sam P. Hil", + "contact": [ + { + "name": { + "family": "Richard", + "given": [ + "Paul" + ] + }, + "telecom": [ + { + "value": "254622222", + "system": "phone" + } + ] + } + ], + "telecom": [ + { + "value": "555777888", + "system": "fax" + }, + { + "system": "phone" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4829e288-ac03-22cc-c65e-922004275fd0" + } + }, + { + "fullUrl": "urn:uuid:fd1eed45-4ccb-bb7c-d157-58eb0366d777", + "resource": { + "resourceType": "RelatedPerson", + "id": "fd1eed45-4ccb-bb7c-d157-58eb0366d777", + "identifier": [ + { + "value": "HMO-12345", + "type": { + "coding": [ + { + "code": "NI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "National unique individual identifier" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.3" + }, + { + "value": "1117", + "type": { + "coding": [ + { + "code": "EI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Employee number" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.4" + }, + { + "value": "1118", + "type": { + "coding": [ + { + "code": "BC", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Bank Card Number" + } + ] + } + }, + { + "value": "425-57-9745", + "type": { + "coding": [ + { + "code": "SS", + "display": "Social Security number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "SPS", + "display": "spouse", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "address": [ + { + "line": [ + "3857 Velvet Treasure Terrace" + ], + "city": "Midnight", + "state": "NC", + "postalCode": "27878", + "country": "US" + } + ], + "name": [ + { + "family": "Doe", + "given": [ + "Rosallie", + "John" + ], + "suffix": [ + "III", + "Bachelors" + ], + "prefix": [ + "Mrs." + ], + "use": "official" + } + ], + "gender": "female", + "birthDate": "1975-02-28", + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "telecom": [ + { + "value": "0005245", + "use": "work", + "system": "email" + }, + { + "system": "phone" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47" + } + ] + }, + "preferred": true + } + ] + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/fd1eed45-4ccb-bb7c-d157-58eb0366d777" + } + }, + { + "fullUrl": "urn:uuid:1fca4c8f-7562-b755-9a05-5f0f49096e5b", + "resource": { + "resourceType": "Organization", + "id": "1fca4c8f-7562-b755-9a05-5f0f49096e5b", + "identifier": [ + { + "value": "PM", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PM" + }, + { + "value": "2.6.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/1fca4c8f-7562-b755-9a05-5f0f49096e5b" + } + } + ] +} \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A28/ADT-A28-expected-2.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A28/ADT-A28-expected-2.json new file mode 100644 index 000000000..e671dfd68 --- /dev/null +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A28/ADT-A28-expected-2.json @@ -0,0 +1,2130 @@ +{ + "resourceType": "Bundle", + "type": "batch", + "timestamp": "1989-08-18T14:41:00+05:30", + "identifier": { + "value": "MSG00001" + }, + "id": "513a3d06-5e87-6fbc-ad1b-170ab430499f", + "entry": [ + { + "fullUrl": "urn:uuid:b4ca189b-51ae-33df-cbe2-559b4423a321", + "resource": { + "resourceType": "MessageHeader", + "id": "b4ca189b-51ae-33df-cbe2-559b4423a321", + "source": { + "name": "24GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.20" + }, + "destination": [ + { + "name": "25GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.23", + "receiver": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + } + ], + "meta": { + "security": [ + { + "display": "SECURITY", + "system": "http://example.com/v2-to-fhirconverter/security-label" + } + ], + "tag": [ + { + "code": "P", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "A28", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ADT^A28^ADT_A28" + }, + "language": "en-US", + "sender": { + "reference": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + }, + "responsible": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + "request": { + "method": "PUT", + "url": "MessageHeader/b4ca189b-51ae-33df-cbe2-559b4423a321" + } + }, + { + "fullUrl": "urn:uuid:f65d2168-02c8-1897-210d-361176172856", + "resource": { + "resourceType": "Provenance", + "id": "f65d2168-02c8-1897-210d-361176172856", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T13:32:14.385Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ADT_A28.

" + }, + "occurredDateTime": "1989-08-18T14:41:00+05:30", + "recorded": "1989-08-18T14:41:00+05:30", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + } + ], + "activity": { + "coding": [ + { + "display": "ADT^A28^ADT_A28" + } + ] + }, + "entity": [ + { + "role": "source", + "what": { + "reference": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + } + ], + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/f65d2168-02c8-1897-210d-361176172856" + } + }, + { + "fullUrl": "urn:uuid:4356fb81-6ecd-2d70-57b1-47812638e785", + "resource": { + "resourceType": "Organization", + "id": "4356fb81-6ecd-2d70-57b1-47812638e785", + "identifier": [ + { + "value": "GHHSFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHSFacility" + }, + { + "value": "urn:oid:2.16.840.1.122848.1.30", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + } + }, + { + "fullUrl": "urn:uuid:62781ad6-3896-cb63-0178-ead0c4a432b5", + "resource": { + "resourceType": "Organization", + "id": "62781ad6-3896-cb63-0178-ead0c4a432b5", + "identifier": [ + { + "value": "GHHRFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHRFacility" + }, + { + "value": "urn:oid:2.16.840.1.1122848.1.32", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/62781ad6-3896-cb63-0178-ead0c4a432b5" + } + }, + { + "fullUrl": "urn:uuid:33532a82-d220-4c0d-1abe-53e48951c201", + "resource": { + "resourceType": "Organization", + "id": "33532a82-d220-4c0d-1abe-53e48951c201", + "name": "22 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + { + "fullUrl": "urn:uuid:527280c1-34d1-c639-e9ba-61986d28e266", + "resource": { + "resourceType": "Organization", + "id": "527280c1-34d1-c639-e9ba-61986d28e266", + "name": "23 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + }, + { + "fullUrl": "urn:uuid:503eb873-22fb-8199-ae28-3604ad59fe13", + "resource": { + "resourceType": "Device", + "id": "503eb873-22fb-8199-ae28-3604ad59fe13", + "identifier": [ + { + "value": "ADTApp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + }, + { + "fullUrl": "urn:uuid:9e909e52-61a1-be50-1878-a12ef8c36346", + "resource": { + "resourceType": "Patient", + "id": "9e909e52-61a1-be50-1878-a12ef8c36346", + "identifier": [ + { + "value": "1234567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "PATID1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "value": "123456789", + "type": { + "coding": [ + { + "code": "SS", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Social Security number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-USSSA" + }, + { + "value": "PATID567", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test2" + }, + { + "value": "PSSN123121234", + "type": { + "coding": [ + { + "code": "SB", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + }, + { + "value": "DLN-123", + "type": { + "coding": [ + { + "code": "DL" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/US", + "period": { + "end": "2001-01-23" + } + } + ], + "name": [ + { + "family": "EVERYMAN", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official", + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + }, + { + "family": "elbert", + "given": [ + "Son" + ] + } + ], + "birthDate": "1988-08-18", + "_birthDate": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime": "1988-08-18T14:41:00+05:30" + } + ] + }, + "gender": "male", + "address": [ + { + "line": [ + "1000", + "Hospital Lane", + "Ste. 123", + "Near Highway" + ], + "city": "Ann Arbor ", + "state": "MI", + "postalCode": "99999", + "country": "USA", + "type": "postal", + "district": "W", + "period": { + "start": "2000-01-10", + "end": "2000-01-20" + } + } + ], + "telecom": [ + { + "value": "2222", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18, + "use": "home" + }, + { + "value": "12121212", + "system": "phone", + "use": "home" + }, + { + "value": "7777", + "system": "phone", + "use": "work" + }, + { + "value": "1111", + "system": "other", + "use": "work" + }, + { + "value": "89898989", + "use": "work", + "system": "email" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47", + "version": "v2" + }, + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47", + "version": "v2.1" + } + ], + "text": "TextInEnglish" + }, + "preferred": true + } + ], + "maritalStatus": { + "coding": [ + { + "code": "M", + "display": "Married", + "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" + } + ] + }, + "multipleBirthInteger": 2, + "deceasedDateTime": "2008-08-25T15:31:30+05:30", + "meta": { + "lastUpdated": "2005-01-10T04:05:14+05:30" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "ombCategory", + "valueCoding": { + "code": "2028-9", + "display": "Asian", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White+Asian" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + "valueString": "SMITH--Angela--L" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", + "valueAddress": { + "text": "St. Francis Community Hospital of Lower South Side" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-religion", + "valueCodeableConcept": { + "coding": [ + { + "code": "1002", + "display": "African Religions", + "system": "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2186-5", + "display": "Non Hispanic or Latino", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "Non Hispanic or Latino" + } + ] + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/VeteranMilitaryStatus", + "valueCodeableConcept": { + "coding": [ + { + "code": "Vet123", + "display": "retired", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ART" + } + ], + "text": "retired" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-animal", + "extension": [ + { + "url": "species", + "valueCodeableConcept": { + "coding": [ + { + "code": "125097000", + "display": "Goat", + "system": "http://snomed.info/sct" + } + ], + "text": "Goat" + } + }, + { + "url": "breed", + "valueCodeableConcept": { + "coding": [ + { + "code": "4880003", + "display": "Beagle", + "system": "http://snomed.info/sct" + } + ], + "text": "Beagle" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "US", + "display": "United States of America", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "United States of America" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "CA", + "display": "Canada", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Canada" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-nationality", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "BT", + "display": "Bhutan", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Bhutan" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-importance", + "valueCodeableConcept": { + "coding": [ + { + "code": "VIP", + "display": "Very Important Person", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/L", + "version": "v1.1" + }, + { + "code": "IMP", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/DCM", + "version": "v1.2" + } + ], + "text": "Inportant Person" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + { + "fullUrl": "urn:uuid:78295402-9b84-4829-b945-502ab3402de5", + "resource": { + "resourceType": "Account", + "id": "78295402-9b84-4829-b945-502ab3402de5", + "identifier": [ + { + "value": "4000776", + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Visit number" + } + ] + }, + "system": "urn:oid:2.4", + "assigner": { + "reference": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/78295402-9b84-4829-b945-502ab3402de5" + } + }, + { + "fullUrl": "urn:uuid:9d4c8327-8a28-8152-1898-8251baa707b7", + "resource": { + "resourceType": "Organization", + "id": "9d4c8327-8a28-8152-1898-8251baa707b7", + "identifier": [ + { + "value": "AccMgr", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr" + }, + { + "value": "urn:oid:2.4", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + } + }, + { + "fullUrl": "urn:uuid:b3ad3a9f-d4f6-4638-0a09-2da771733488", + "resource": { + "resourceType": "Organization", + "id": "b3ad3a9f-d4f6-4638-0a09-2da771733488", + "identifier": [ + { + "value": "test1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test1" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "fullUrl": "urn:uuid:f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "resource": { + "resourceType": "Organization", + "id": "f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "identifier": [ + { + "value": "NTH", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NTH" + }, + { + "value": "rt23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + } + }, + { + "fullUrl": "urn:uuid:62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "resource": { + "resourceType": "RelatedPerson", + "id": "62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "identifier": [ + { + "value": "1212121", + "type": { + "coding": [ + { + "code": "AND", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Account number debitor" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "relationship": [ + { + "coding": [ + { + "code": "MTH", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/62b2e1ee-a272-4ffe-692e-a1fbfd49af6a" + } + }, + { + "fullUrl": "urn:uuid:11967e28-8dd4-a112-0fdc-377866bf12a0", + "resource": { + "resourceType": "Organization", + "id": "11967e28-8dd4-a112-0fdc-377866bf12a0", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "2.16.840.1.113883.19", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + } + }, + { + "fullUrl": "urn:uuid:7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "resource": { + "resourceType": "Organization", + "id": "7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "identifier": [ + { + "value": "AccMng", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMng" + }, + { + "value": "1.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + } + }, + { + "fullUrl": "urn:uuid:0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "resource": { + "resourceType": "Organization", + "id": "0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "identifier": [ + { + "value": "PERSONNELt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSONNELt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + } + }, + { + "fullUrl": "urn:uuid:f6775f99-5279-be04-bf81-0906c81f7443", + "resource": { + "resourceType": "Practitioner", + "id": "f6775f99-5279-be04-bf81-0906c81f7443", + "identifier": [ + { + "value": "1122334", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Alaz", + "given": [ + "Mohammed", + "Mahi" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "fullUrl": "urn:uuid:c613d7b2-525f-8c08-a7ac-b2b91486e257", + "resource": { + "resourceType": "Organization", + "id": "c613d7b2-525f-8c08-a7ac-b2b91486e257", + "identifier": [ + { + "value": "TEST", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TEST" + }, + { + "value": "23.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + } + }, + { + "fullUrl": "urn:uuid:04f8cfc8-62ca-12df-63ce-6304ef577d44", + "resource": { + "resourceType": "Practitioner", + "id": "04f8cfc8-62ca-12df-63ce-6304ef577d44", + "identifier": [ + { + "value": "C006", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + }, + "type": { + "coding": [ + { + "code": "BA", + "display": "Bank Account Number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen" + ], + "prefix": [ + "Dr" + ], + "use": "anonymous" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "fullUrl": "urn:uuid:99edcabd-fbeb-7e25-f823-11da8d8ed342", + "resource": { + "resourceType": "Practitioner", + "id": "99edcabd-fbeb-7e25-f823-11da8d8ed342", + "identifier": [ + { + "value": "C008", + "system": "urn:oid:2.8", + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Condoc", + "given": [ + "leen" + ], + "prefix": [ + "Dr" + ], + "use": "temp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "fullUrl": "urn:uuid:b065b233-8738-f1ec-1314-d61e4aac2c9e", + "resource": { + "resourceType": "Practitioner", + "id": "b065b233-8738-f1ec-1314-d61e4aac2c9e", + "identifier": [ + { + "value": "37", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr", + "type": { + "coding": [ + { + "code": "ANC", + "display": "Account number Creditor", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "DISNEY", + "given": [ + "WALT" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "fullUrl": "urn:uuid:9f974d4f-47e8-21a6-e549-4de4599c3764", + "resource": { + "resourceType": "Organization", + "id": "9f974d4f-47e8-21a6-e549-4de4599c3764", + "identifier": [ + { + "value": "T123", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-T123" + }, + { + "value": "urn:oid:r2.3", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + }, + { + "fullUrl": "urn:uuid:84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "resource": { + "resourceType": "Practitioner", + "id": "84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "identifier": [ + { + "value": "Othhel", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "fullUrl": "urn:uuid:9172e4a0-1ca5-646d-2183-b179f4daa737", + "resource": { + "resourceType": "Location", + "id": "9172e4a0-1ca5-646d-2183-b179f4daa737", + "partOf": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + }, + "name": "HUH AE OMU", + "identifier": [ + { + "value": "urn:oid:9.8", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "fullUrl": "urn:uuid:3913ec4d-6576-5e1a-ac31-e8280583371c", + "resource": { + "resourceType": "Location", + "id": "3913ec4d-6576-5e1a-ac31-e8280583371c", + "partOf": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + }, + "name": "OMU B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "fullUrl": "urn:uuid:804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "resource": { + "resourceType": "Location", + "id": "804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "partOf": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + }, + "name": "Bed 03", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "fullUrl": "urn:uuid:c043880b-0fab-1cb8-14f7-0475282c4d0e", + "resource": { + "resourceType": "Location", + "id": "c043880b-0fab-1cb8-14f7-0475282c4d0e", + "name": "HOMERTON UNIVER", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "fullUrl": "urn:uuid:f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "resource": { + "resourceType": "Location", + "id": "f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "partOf": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + }, + "name": "Homerton UH", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "fullUrl": "urn:uuid:7e38808c-44a8-cb0c-4709-9d6092abc32c", + "resource": { + "resourceType": "Location", + "id": "7e38808c-44a8-cb0c-4709-9d6092abc32c", + "partOf": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + }, + "name": "Floor5", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "fullUrl": "urn:uuid:59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "resource": { + "resourceType": "Location", + "id": "59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "name": "4 East, room 136, bed B 4E", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + } + }, + { + "fullUrl": "urn:uuid:d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "resource": { + "resourceType": "Location", + "id": "d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "partOf": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "name": "136", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + } + }, + { + "fullUrl": "urn:uuid:5783dafa-c6c0-e673-cca4-42087ee1831b", + "resource": { + "resourceType": "Location", + "id": "5783dafa-c6c0-e673-cca4-42087ee1831b", + "partOf": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "name": "B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + } + }, + { + "fullUrl": "urn:uuid:8b39e6e5-78cd-63ab-2441-f43ca5554096", + "resource": { + "resourceType": "Location", + "id": "8b39e6e5-78cd-63ab-2441-f43ca5554096", + "name": "CommunityHospital", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + } + }, + { + "fullUrl": "urn:uuid:42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "resource": { + "resourceType": "Location", + "id": "42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "name": "Homes", + "identifier": [ + { + "value": "22", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/FDK" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + { + "fullUrl": "urn:uuid:84634858-74aa-5cdb-4547-60ec27339ac6", + "resource": { + "resourceType": "Location", + "id": "84634858-74aa-5cdb-4547-60ec27339ac6", + "name": "POC", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + } + }, + { + "fullUrl": "urn:uuid:9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "resource": { + "resourceType": "Location", + "id": "9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "partOf": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "name": "Room-2", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + } + }, + { + "fullUrl": "urn:uuid:35353f20-6254-e794-98ed-8007490447e3", + "resource": { + "resourceType": "Location", + "id": "35353f20-6254-e794-98ed-8007490447e3", + "partOf": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "name": "Bed-103", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/35353f20-6254-e794-98ed-8007490447e3" + } + }, + { + "fullUrl": "urn:uuid:055e10f1-222e-df73-2325-0e4396db1a55", + "resource": { + "resourceType": "Location", + "id": "055e10f1-222e-df73-2325-0e4396db1a55", + "name": "Greenland", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + } + }, + { + "fullUrl": "urn:uuid:1154e6b2-b022-b3be-7dce-2b940ab5376d", + "resource": { + "resourceType": "Location", + "id": "1154e6b2-b022-b3be-7dce-2b940ab5376d", + "name": "Nursing home", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + } + }, + { + "fullUrl": "urn:uuid:08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "resource": { + "resourceType": "Location", + "id": "08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "name": "Rosewood", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + } + }, + { + "fullUrl": "urn:uuid:08314073-410a-3dc7-512c-0f2d206fb59d", + "resource": { + "resourceType": "Organization", + "id": "08314073-410a-3dc7-512c-0f2d206fb59d", + "identifier": [ + { + "value": "Etest", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-Etest" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + }, + { + "fullUrl": "urn:uuid:919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "resource": { + "resourceType": "EpisodeOfCare", + "id": "919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "status": "planned", + "identifier": [ + { + "value": "EOC124", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + }, + { + "fullUrl": "urn:uuid:4b192760-03d2-aec4-b0a6-fde323912e1e", + "resource": { + "resourceType": "Encounter", + "id": "4b192760-03d2-aec4-b0a6-fde323912e1e", + "class": { + "code": "PRENC", + "display": "pre-admission", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "status": "planned", + "location": [ + { + "status": "planned", + "location": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "status": "completed", + "location": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/35353f20-6254-e794-98ed-8007490447e3" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + } + ], + "type": [ + { + "coding": [ + { + "code": "E", + "display": "Emergency", + "system": "http://terminology.hl7.org/CodeSystem/v2-0007" + } + ] + } + ], + "hospitalization": { + "preAdmissionIdentifier": { + "value": "1234567", + "type": { + "coding": [ + { + "code": "ANON", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Anonymous identifier" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + "reAdmission": { + "coding": [ + { + "code": "R", + "display": "Re-admission", + "system": "http://terminology.hl7.org/CodeSystem/v2-0092" + } + ] + }, + "admitSource": { + "coding": [ + { + "code": "NHS Provider-General (inc.A&E-this Hosp)" + } + ] + }, + "dischargeDisposition": { + "coding": [ + { + "code": "Admitted as Inpatient", + "display": "Sample", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ACR" + } + ] + }, + "dietPreference": [ + { + "coding": [ + { + "code": "Vegan", + "display": "Vegetarian" + } + ] + } + ], + "destination": { + "reference": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + "episodeOfCare": [ + { + "reference": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + ], + "participant": [ + { + "type": [ + { + "coding": [ + { + "code": "ATND", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", + "display": "attender" + } + ] + } + ], + "individual": { + "reference": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "CON", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "consultant" + } + ], + "individual": { + "reference": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "ADM", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "admitter" + } + ], + "individual": { + "reference": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "PART", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "Participation" + } + ], + "individual": { + "reference": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + } + ], + "serviceType": { + "coding": [ + { + "code": "SUR" + } + ] + }, + "identifier": [ + { + "value": "40007716", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + }, + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ], + "text": "visit number" + } + }, + { + "value": "50", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:r2.3", + "assigner": { + "reference": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + } + ], + "period": { + "start": "2015-02-08T15:54:19+05:30" + }, + "text": { + "status": "generated", + "div": "

Visit Description:

" + }, + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Encounter/4b192760-03d2-aec4-b0a6-fde323912e1e" + } + }, + { + "fullUrl": "urn:uuid:9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "resource": { + "resourceType": "Provenance", + "id": "9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "occurredDateTime": "2021-08-17T18:49:43.004+05:30", + "recorded": "2029-08-01T11:21:24+05:30", + "reason": [ + { + "coding": [ + { + "code": "PATRQT", + "display": "patient requested", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason" + } + ] + } + ], + "agent": [ + { + "who": { + "reference": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + } + ], + "activity": { + "text": "ADT^A28^ADT_A28" + }, + "location": { + "reference": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + }, + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c" + } + }, + { + "fullUrl": "urn:uuid:ef39f581-5e8f-3917-35a9-3443303d9eee", + "resource": { + "resourceType": "Organization", + "id": "ef39f581-5e8f-3917-35a9-3443303d9eee", + "identifier": [ + { + "value": "DRNBR", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-DRNBR" + }, + { + "value": "urn:oid:W1.2", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + } + }, + { + "fullUrl": "urn:uuid:95aea53b-8d49-d57f-d16f-4d14b914f992", + "resource": { + "resourceType": "Practitioner", + "id": "95aea53b-8d49-d57f-d16f-4d14b914f992", + "identifier": [ + { + "value": "C08", + "system": "urn:oid:W1.2", + "assigner": { + "reference": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + }, + "type": { + "coding": [ + { + "code": "ANON", + "display": "Anonymous identifier", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen", + "2ndname" + ], + "suffix": [ + "Jr", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + }, + { + "fullUrl": "urn:uuid:59d5e519-0108-5dd8-adfa-1eef5658009e", + "resource": { + "resourceType": "Location", + "id": "59d5e519-0108-5dd8-adfa-1eef5658009e", + "name": "Cona_Health", + "identifier": [ + { + "value": "urn:oid:1.3.6.1.4.1.44750.1.4", + "system": "urn:ietf:rfc:3986" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "display": "site", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + } + } + ] +} \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A28/ADT-A28-expected.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A28/ADT-A28-expected.json new file mode 100644 index 000000000..a6a18fd90 --- /dev/null +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A28/ADT-A28-expected.json @@ -0,0 +1,4748 @@ +{ + "resourceType": "Bundle", + "type": "batch", + "timestamp": "1989-08-18T14:41:00+05:30", + "identifier": { + "value": "MSG00001" + }, + "id": "513a3d06-5e87-6fbc-ad1b-170ab430499f", + "entry": [ + { + "fullUrl": "urn:uuid:b4ca189b-51ae-33df-cbe2-559b4423a321", + "resource": { + "resourceType": "MessageHeader", + "id": "b4ca189b-51ae-33df-cbe2-559b4423a321", + "source": { + "name": "24GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.20", + "version": "2.4.3.52854", + "software": "Rhapsody" + }, + "destination": [ + { + "name": "25GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.23", + "receiver": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + } + ], + "meta": { + "security": [ + { + "display": "SECURITY", + "system": "http://example.com/v2-to-fhirconverter/security-label" + } + ], + "tag": [ + { + "code": "P", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "A28", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ADT^A28^ADT_A28" + }, + "language": "en-US", + "sender": { + "reference": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + }, + "responsible": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + "request": { + "method": "PUT", + "url": "MessageHeader/b4ca189b-51ae-33df-cbe2-559b4423a321" + } + }, + { + "fullUrl": "urn:uuid:f65d2168-02c8-1897-210d-361176172856", + "resource": { + "resourceType": "Provenance", + "id": "f65d2168-02c8-1897-210d-361176172856", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T13:33:25.099Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ADT_A28.

" + }, + "occurredDateTime": "1989-08-18T14:41:00+05:30", + "recorded": "1989-08-18T14:41:00+05:30", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + } + ], + "activity": { + "coding": [ + { + "display": "ADT^A28^ADT_A28" + } + ] + }, + "entity": [ + { + "role": "source", + "what": { + "reference": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + } + ], + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/f65d2168-02c8-1897-210d-361176172856" + } + }, + { + "fullUrl": "urn:uuid:4356fb81-6ecd-2d70-57b1-47812638e785", + "resource": { + "resourceType": "Organization", + "id": "4356fb81-6ecd-2d70-57b1-47812638e785", + "identifier": [ + { + "value": "GHHSFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHSFacility" + }, + { + "value": "urn:oid:2.16.840.1.122848.1.30", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + } + }, + { + "fullUrl": "urn:uuid:62781ad6-3896-cb63-0178-ead0c4a432b5", + "resource": { + "resourceType": "Organization", + "id": "62781ad6-3896-cb63-0178-ead0c4a432b5", + "identifier": [ + { + "value": "GHHRFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHRFacility" + }, + { + "value": "urn:oid:2.16.840.1.1122848.1.32", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/62781ad6-3896-cb63-0178-ead0c4a432b5" + } + }, + { + "fullUrl": "urn:uuid:33532a82-d220-4c0d-1abe-53e48951c201", + "resource": { + "resourceType": "Organization", + "id": "33532a82-d220-4c0d-1abe-53e48951c201", + "name": "22 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + { + "fullUrl": "urn:uuid:527280c1-34d1-c639-e9ba-61986d28e266", + "resource": { + "resourceType": "Organization", + "id": "527280c1-34d1-c639-e9ba-61986d28e266", + "name": "23 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + }, + { + "fullUrl": "urn:uuid:503eb873-22fb-8199-ae28-3604ad59fe13", + "resource": { + "resourceType": "Device", + "id": "503eb873-22fb-8199-ae28-3604ad59fe13", + "identifier": [ + { + "value": "ADTApp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + }, + { + "fullUrl": "urn:uuid:4b549918-a84d-cdaf-e150-c773a5d306e5", + "resource": { + "resourceType": "Device", + "id": "4b549918-a84d-cdaf-e150-c773a5d306e5", + "manufacturer": "Orion", + "deviceName": [ + { + "name": "Rhapsody", + "type": "manufacturer-name" + } + ], + "version": [ + { + "value": "2.4.3.52854" + } + ], + "modelNumber": "2.4.3", + "note": [ + { + "text": "Testactivity" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/4b549918-a84d-cdaf-e150-c773a5d306e5" + } + }, + { + "fullUrl": "urn:uuid:9e909e52-61a1-be50-1878-a12ef8c36346", + "resource": { + "resourceType": "Patient", + "id": "9e909e52-61a1-be50-1878-a12ef8c36346", + "identifier": [ + { + "value": "1234567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "PATID1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "value": "123456789", + "type": { + "coding": [ + { + "code": "SS", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Social Security number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-USSSA" + }, + { + "value": "PATID567", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test2" + }, + { + "value": "PSSN123121234", + "type": { + "coding": [ + { + "code": "SB", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + }, + { + "value": "DLN-123", + "type": { + "coding": [ + { + "code": "DL" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/US", + "period": { + "end": "2001-01-23" + } + }, + { + "value": "1516", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "55121", + "type": { + "coding": [ + { + "code": "FI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Facility ID" + } + ] + } + }, + { + "value": "DB123", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:1.12", + "assigner": { + "reference": "Organization/4e68b44e-c053-02b1-6d6d-fe816f9fdfec" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "Medicare-12345", + "type": { + "coding": [ + { + "code": "MC", + "display": "Patient's Medicare number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-medicare" + }, + { + "value": "MCN-008", + "type": { + "coding": [ + { + "code": "MA", + "display": "Patient Medicaid number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/identifier-medicaid" + }, + { + "value": "MI-12345", + "type": { + "coding": [ + { + "code": "MI", + "display": "Military ID number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/identifier-military" + }, + { + "value": "PNM1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/1fca4c8f-7562-b755-9a05-5f0f49096e5b" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "name": [ + { + "family": "EVERYMAN", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official", + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + }, + { + "family": "elbert", + "given": [ + "Son" + ] + }, + { + "family": "RADIANT", + "given": [ + "LUCY" + ] + }, + { + "family": "Jack", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + } + ], + "birthDate": "1988-08-18", + "_birthDate": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime": "1988-08-18T14:41:00+05:30" + } + ] + }, + "gender": "male", + "address": [ + { + "line": [ + "1000", + "Hospital Lane", + "Ste. 123", + "Near Highway" + ], + "city": "Ann Arbor ", + "state": "MI", + "postalCode": "99999", + "country": "USA", + "type": "postal", + "district": "W", + "period": { + "start": "2000-01-10", + "end": "2000-01-20" + } + }, + { + "line": [ + "1619 SOUTH UNIVERSITY" + ], + "city": "MADISON", + "state": "WI", + "postalCode": "53703", + "country": "US" + } + ], + "telecom": [ + { + "value": "2222", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18, + "use": "home" + }, + { + "value": "12121212", + "system": "phone", + "use": "home" + }, + { + "value": "7777", + "system": "phone", + "use": "work" + }, + { + "value": "1111", + "system": "other", + "use": "work" + }, + { + "value": "89898989", + "use": "work", + "system": "email" + }, + { + "value": "8484", + "system": "email", + "use": "home" + }, + { + "value": "717171", + "system": "phone", + "use": "home" + }, + { + "value": "021212", + "system": "other", + "use": "work" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47", + "version": "v2" + }, + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47", + "version": "v2.1" + } + ], + "text": "TextInEnglish" + }, + "preferred": true + } + ], + "maritalStatus": { + "coding": [ + { + "code": "M", + "display": "Married", + "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" + } + ] + }, + "multipleBirthInteger": 2, + "deceasedDateTime": "2008-08-25T15:31:30+05:30", + "meta": { + "lastUpdated": "2005-01-10T04:05:14+05:30" + }, + "generalPractitioner": [ + { + "reference": "Organization/4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11" + }, + { + "reference": "Practitioner/76aaad38-1077-6a5c-0c5c-102ec160a60d" + } + ], + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "ombCategory", + "valueCoding": { + "code": "2028-9", + "display": "Asian", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White+Asian" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + "valueString": "SMITH--Angela--L" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", + "valueAddress": { + "text": "St. Francis Community Hospital of Lower South Side" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-religion", + "valueCodeableConcept": { + "coding": [ + { + "code": "1002", + "display": "African Religions", + "system": "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2186-5", + "display": "Non Hispanic or Latino", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "Non Hispanic or Latino" + } + ] + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/VeteranMilitaryStatus", + "valueCodeableConcept": { + "coding": [ + { + "code": "Vet123", + "display": "retired", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ART" + } + ], + "text": "retired" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-animal", + "extension": [ + { + "url": "species", + "valueCodeableConcept": { + "coding": [ + { + "code": "125097000", + "display": "Goat", + "system": "http://snomed.info/sct" + } + ], + "text": "Goat" + } + }, + { + "url": "breed", + "valueCodeableConcept": { + "coding": [ + { + "code": "4880003", + "display": "Beagle", + "system": "http://snomed.info/sct" + } + ], + "text": "Beagle" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "US", + "display": "United States of America", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "United States of America" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "CA", + "display": "Canada", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Canada" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-nationality", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "BT", + "display": "Bhutan", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Bhutan" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-congregation", + "valueString": "Methodist Church" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-importance", + "valueCodeableConcept": { + "coding": [ + { + "code": "VIP", + "display": "Very Important Person", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/L", + "version": "v1.1" + }, + { + "code": "IMP", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/DCM", + "version": "v1.2" + } + ], + "text": "Inportant Person" + } + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/patient-disabilityIndicator", + "valueBoolean": true + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/DisabilityPeriod", + "valuePeriod": { + "start": "2021-08-30", + "end": "2021-09-30" + } + } + ], + "contact": [ + { + "organization": { + "reference": "Organization/3bb64820-2a2b-956c-9f45-125ec102f353" + } + }, + { + "name": { + "family": "Evan", + "given": [ + "ADAM", + "A" + ], + "suffix": [ + "III", + "MD" + ], + "prefix": [ + "Dr." + ], + "use": "usual" + }, + "address": { + "line": [ + "2222", + "HOME", + "STREET", + "Highway" + ], + "city": "GREENSBORO", + "state": "NC", + "postalCode": "27401-1020", + "country": "US", + "use": "billing", + "district": "test", + "period": { + "start": "2000-01-10", + "end": "2005-01-11" + } + }, + "telecom": [ + { + "value": "5555", + "use": "work", + "system": "email", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "121111", + "use": "home", + "system": "phone" + }, + { + "value": "878777", + "use": "home", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "6666666", + "system": "pager", + "use": "work" + }, + { + "value": "777", + "use": "work", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 1 + }, + { + "value": "444444", + "system": "phone" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "O", + "display": "Other", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131" + } + ] + } + ], + "period": { + "start": "2021-08-18", + "end": "2021-12-18" + }, + "gender": "female" + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + { + "fullUrl": "urn:uuid:78295402-9b84-4829-b945-502ab3402de5", + "resource": { + "resourceType": "Account", + "id": "78295402-9b84-4829-b945-502ab3402de5", + "identifier": [ + { + "value": "4000776", + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Visit number" + } + ] + }, + "system": "urn:oid:2.4", + "assigner": { + "reference": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + ], + "guarantor": [ + { + "party": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "onHold": false, + "period": { + "start": "2001-04-10", + "end": "2001-04-15" + } + }, + { + "party": { + "reference": "Organization/98678cfe-0455-73c8-d2a1-2ede2d55943f" + }, + "onHold": false, + "period": { + "start": "2001-04-10", + "end": "2001-04-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/78295402-9b84-4829-b945-502ab3402de5" + } + }, + { + "fullUrl": "urn:uuid:9d4c8327-8a28-8152-1898-8251baa707b7", + "resource": { + "resourceType": "Organization", + "id": "9d4c8327-8a28-8152-1898-8251baa707b7", + "identifier": [ + { + "value": "AccMgr", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr" + }, + { + "value": "urn:oid:2.4", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + } + }, + { + "fullUrl": "urn:uuid:98678cfe-0455-73c8-d2a1-2ede2d55943f", + "resource": { + "resourceType": "Organization", + "id": "98678cfe-0455-73c8-d2a1-2ede2d55943f", + "name": "Jupiter Hospital", + "address": [ + { + "line": [ + "1619 SOUTH UNIVERSITY" + ], + "city": "MADISON", + "state": "WI", + "postalCode": "53703", + "country": "US" + } + ], + "contact": [ + { + "telecom": [ + { + "value": "000352", + "system": "phone" + }, + { + "value": "00121", + "system": "fax" + } + ], + "purpose": { + "coding": [ + { + "code": "Urgent requirement" + } + ] + } + }, + { + "name": { + "family": "RADIANT", + "given": [ + "LUCY" + ] + } + }, + { + "name": { + "family": "Ben", + "given": [ + "Charles" + ] + } + }, + { + "name": { + "family": "Ben2" + } + } + ], + "telecom": [ + { + "value": "8484", + "system": "email" + }, + { + "value": "717171", + "system": "phone" + }, + { + "value": "021212", + "system": "other" + } + ], + "identifier": [ + { + "value": "1516", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/98678cfe-0455-73c8-d2a1-2ede2d55943f" + } + }, + { + "fullUrl": "urn:uuid:b3ad3a9f-d4f6-4638-0a09-2da771733488", + "resource": { + "resourceType": "Organization", + "id": "b3ad3a9f-d4f6-4638-0a09-2da771733488", + "identifier": [ + { + "value": "test1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test1" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "fullUrl": "urn:uuid:4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11", + "resource": { + "resourceType": "Organization", + "id": "4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11", + "name": "LINDAS TEST ORGANIZATION", + "identifier": [ + { + "value": "SIISCLIENT818" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11" + } + }, + { + "fullUrl": "urn:uuid:76aaad38-1077-6a5c-0c5c-102ec160a60d", + "resource": { + "resourceType": "Practitioner", + "id": "76aaad38-1077-6a5c-0c5c-102ec160a60d", + "identifier": [ + { + "value": "88", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TE", + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Hippo", + "given": [ + "rold", + "H" + ], + "suffix": [ + "V", + "MD" + ], + "prefix": [ + "Dr" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/76aaad38-1077-6a5c-0c5c-102ec160a60d" + } + }, + { + "fullUrl": "urn:uuid:11967e28-8dd4-a112-0fdc-377866bf12a0", + "resource": { + "resourceType": "Organization", + "id": "11967e28-8dd4-a112-0fdc-377866bf12a0", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "2.16.840.1.113883.19", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + } + }, + { + "fullUrl": "urn:uuid:7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "resource": { + "resourceType": "Organization", + "id": "7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "identifier": [ + { + "value": "AccMng", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMng" + }, + { + "value": "1.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + } + }, + { + "fullUrl": "urn:uuid:0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "resource": { + "resourceType": "Organization", + "id": "0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "identifier": [ + { + "value": "PERSONNELt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSONNELt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + } + }, + { + "fullUrl": "urn:uuid:f6775f99-5279-be04-bf81-0906c81f7443", + "resource": { + "resourceType": "Practitioner", + "id": "f6775f99-5279-be04-bf81-0906c81f7443", + "identifier": [ + { + "value": "1122334", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Alaz", + "given": [ + "Mohammed", + "Mahi" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "fullUrl": "urn:uuid:c613d7b2-525f-8c08-a7ac-b2b91486e257", + "resource": { + "resourceType": "Organization", + "id": "c613d7b2-525f-8c08-a7ac-b2b91486e257", + "identifier": [ + { + "value": "TEST", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TEST" + }, + { + "value": "23.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + } + }, + { + "fullUrl": "urn:uuid:04f8cfc8-62ca-12df-63ce-6304ef577d44", + "resource": { + "resourceType": "Practitioner", + "id": "04f8cfc8-62ca-12df-63ce-6304ef577d44", + "identifier": [ + { + "value": "C006", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + }, + "type": { + "coding": [ + { + "code": "BA", + "display": "Bank Account Number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen" + ], + "prefix": [ + "Dr" + ], + "use": "anonymous" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "fullUrl": "urn:uuid:99edcabd-fbeb-7e25-f823-11da8d8ed342", + "resource": { + "resourceType": "Practitioner", + "id": "99edcabd-fbeb-7e25-f823-11da8d8ed342", + "identifier": [ + { + "value": "C008", + "system": "urn:oid:2.8", + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Condoc", + "given": [ + "leen" + ], + "prefix": [ + "Dr" + ], + "use": "temp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "fullUrl": "urn:uuid:b065b233-8738-f1ec-1314-d61e4aac2c9e", + "resource": { + "resourceType": "Practitioner", + "id": "b065b233-8738-f1ec-1314-d61e4aac2c9e", + "identifier": [ + { + "value": "37", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr", + "type": { + "coding": [ + { + "code": "ANC", + "display": "Account number Creditor", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "DISNEY", + "given": [ + "WALT" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "fullUrl": "urn:uuid:9f974d4f-47e8-21a6-e549-4de4599c3764", + "resource": { + "resourceType": "Organization", + "id": "9f974d4f-47e8-21a6-e549-4de4599c3764", + "identifier": [ + { + "value": "T123", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-T123" + }, + { + "value": "urn:oid:r2.3", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + }, + { + "fullUrl": "urn:uuid:84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "resource": { + "resourceType": "Practitioner", + "id": "84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "identifier": [ + { + "value": "Othhel", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "fullUrl": "urn:uuid:24d4bddf-a1c3-4dc8-049b-1dda7e5112b6", + "resource": { + "resourceType": "Organization", + "id": "24d4bddf-a1c3-4dc8-049b-1dda7e5112b6", + "identifier": [ + { + "value": "TE", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TE" + }, + { + "value": "Provider Master.Community Health and Hospitals", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-DNS", + "type": { + "coding": [ + { + "code": "DNS", + "display": "An Internet host name, in accordance with RFC 1035; or an IP address. Either in ASCII or as integers, with periods between components (“dotted” notation).", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/24d4bddf-a1c3-4dc8-049b-1dda7e5112b6" + } + }, + { + "fullUrl": "urn:uuid:36e3aaa4-569a-7d9d-037f-27235ed05701", + "resource": { + "resourceType": "Practitioner", + "id": "36e3aaa4-569a-7d9d-037f-27235ed05701", + "identifier": [ + { + "value": "12188", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-DNS", + "assigner": { + "reference": "Organization/24d4bddf-a1c3-4dc8-049b-1dda7e5112b6" + }, + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Hippocrates", + "given": [ + "Harold", + "H" + ], + "suffix": [ + "IV", + "MD" + ], + "prefix": [ + "Dr" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/36e3aaa4-569a-7d9d-037f-27235ed05701" + } + }, + { + "fullUrl": "urn:uuid:9172e4a0-1ca5-646d-2183-b179f4daa737", + "resource": { + "resourceType": "Location", + "id": "9172e4a0-1ca5-646d-2183-b179f4daa737", + "partOf": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + }, + "name": "HUH AE OMU", + "identifier": [ + { + "value": "urn:oid:9.8", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "fullUrl": "urn:uuid:3913ec4d-6576-5e1a-ac31-e8280583371c", + "resource": { + "resourceType": "Location", + "id": "3913ec4d-6576-5e1a-ac31-e8280583371c", + "partOf": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + }, + "name": "OMU B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "fullUrl": "urn:uuid:804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "resource": { + "resourceType": "Location", + "id": "804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "partOf": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + }, + "name": "Bed 03", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "fullUrl": "urn:uuid:c043880b-0fab-1cb8-14f7-0475282c4d0e", + "resource": { + "resourceType": "Location", + "id": "c043880b-0fab-1cb8-14f7-0475282c4d0e", + "name": "HOMERTON UNIVER", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "fullUrl": "urn:uuid:f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "resource": { + "resourceType": "Location", + "id": "f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "partOf": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + }, + "name": "Homerton UH", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "fullUrl": "urn:uuid:7e38808c-44a8-cb0c-4709-9d6092abc32c", + "resource": { + "resourceType": "Location", + "id": "7e38808c-44a8-cb0c-4709-9d6092abc32c", + "partOf": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + }, + "name": "Floor5", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "fullUrl": "urn:uuid:59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "resource": { + "resourceType": "Location", + "id": "59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "name": "4 East, room 136, bed B 4E", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + } + }, + { + "fullUrl": "urn:uuid:d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "resource": { + "resourceType": "Location", + "id": "d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "partOf": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "name": "136", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + } + }, + { + "fullUrl": "urn:uuid:5783dafa-c6c0-e673-cca4-42087ee1831b", + "resource": { + "resourceType": "Location", + "id": "5783dafa-c6c0-e673-cca4-42087ee1831b", + "partOf": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "name": "B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + } + }, + { + "fullUrl": "urn:uuid:8b39e6e5-78cd-63ab-2441-f43ca5554096", + "resource": { + "resourceType": "Location", + "id": "8b39e6e5-78cd-63ab-2441-f43ca5554096", + "name": "CommunityHospital", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + } + }, + { + "fullUrl": "urn:uuid:42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "resource": { + "resourceType": "Location", + "id": "42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "name": "Homes", + "identifier": [ + { + "value": "22", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/FDK" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + { + "fullUrl": "urn:uuid:84634858-74aa-5cdb-4547-60ec27339ac6", + "resource": { + "resourceType": "Location", + "id": "84634858-74aa-5cdb-4547-60ec27339ac6", + "name": "POC", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + } + }, + { + "fullUrl": "urn:uuid:9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "resource": { + "resourceType": "Location", + "id": "9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "partOf": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "name": "Room-2", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + } + }, + { + "fullUrl": "urn:uuid:35353f20-6254-e794-98ed-8007490447e3", + "resource": { + "resourceType": "Location", + "id": "35353f20-6254-e794-98ed-8007490447e3", + "partOf": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "name": "Bed-103", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/35353f20-6254-e794-98ed-8007490447e3" + } + }, + { + "fullUrl": "urn:uuid:055e10f1-222e-df73-2325-0e4396db1a55", + "resource": { + "resourceType": "Location", + "id": "055e10f1-222e-df73-2325-0e4396db1a55", + "name": "Greenland", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + } + }, + { + "fullUrl": "urn:uuid:1154e6b2-b022-b3be-7dce-2b940ab5376d", + "resource": { + "resourceType": "Location", + "id": "1154e6b2-b022-b3be-7dce-2b940ab5376d", + "name": "Nursing home", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + } + }, + { + "fullUrl": "urn:uuid:08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "resource": { + "resourceType": "Location", + "id": "08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "name": "Rosewood", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + } + }, + { + "fullUrl": "urn:uuid:c7f1b9ec-ffd8-321e-ad87-abafc1c1a333", + "resource": { + "resourceType": "Location", + "id": "c7f1b9ec-ffd8-321e-ad87-abafc1c1a333", + "name": "ROOM1", + "identifier": [ + { + "value": "urn:oid:2.16.840.1.113883.4.642.1.1108", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + } + }, + { + "fullUrl": "urn:uuid:6f159848-5f01-01b3-9594-80fbbe9ab510", + "resource": { + "resourceType": "Location", + "id": "6f159848-5f01-01b3-9594-80fbbe9ab510", + "partOf": { + "reference": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + }, + "name": "BED1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/6f159848-5f01-01b3-9594-80fbbe9ab510" + } + }, + { + "fullUrl": "urn:uuid:4bca6ba2-be65-ef37-3911-03b70a00a3a6", + "resource": { + "resourceType": "Location", + "id": "4bca6ba2-be65-ef37-3911-03b70a00a3a6", + "name": "FACILITY1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + } + }, + { + "fullUrl": "urn:uuid:3b0911cb-4361-cd8d-b188-463af033c699", + "resource": { + "resourceType": "Location", + "id": "3b0911cb-4361-cd8d-b188-463af033c699", + "partOf": { + "reference": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + }, + "name": "BUILDING1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + } + }, + { + "fullUrl": "urn:uuid:0d9c3424-329f-4c95-ee30-ac2da4a35bff", + "resource": { + "resourceType": "Location", + "id": "0d9c3424-329f-4c95-ee30-ac2da4a35bff", + "partOf": { + "reference": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + }, + "name": "FLOOR1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/0d9c3424-329f-4c95-ee30-ac2da4a35bff" + } + }, + { + "fullUrl": "urn:uuid:08314073-410a-3dc7-512c-0f2d206fb59d", + "resource": { + "resourceType": "Organization", + "id": "08314073-410a-3dc7-512c-0f2d206fb59d", + "identifier": [ + { + "value": "Etest", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-Etest" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + }, + { + "fullUrl": "urn:uuid:919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "resource": { + "resourceType": "EpisodeOfCare", + "id": "919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "status": "planned", + "identifier": [ + { + "value": "EOC124", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "diagnosis": [ + { + "condition": { + "reference": "Condition/481123a1-ca9c-c3c8-0284-e6926c3a50d8" + }, + "role": { + "coding": [ + { + "code": "AD", + "display": "Admission Diagnosis", + "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role" + } + ] + }, + "rank": 1 + } + ] + }, + "request": { + "method": "PUT", + "url": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + }, + { + "fullUrl": "urn:uuid:4b192760-03d2-aec4-b0a6-fde323912e1e", + "resource": { + "resourceType": "Encounter", + "id": "4b192760-03d2-aec4-b0a6-fde323912e1e", + "class": { + "code": "PRENC", + "display": "pre-admission", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "status": "planned", + "location": [ + { + "status": "planned", + "location": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "status": "completed", + "location": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/35353f20-6254-e794-98ed-8007490447e3" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/6f159848-5f01-01b3-9594-80fbbe9ab510" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/0d9c3424-329f-4c95-ee30-ac2da4a35bff" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + } + ], + "type": [ + { + "coding": [ + { + "code": "E", + "display": "Emergency", + "system": "http://terminology.hl7.org/CodeSystem/v2-0007" + } + ] + } + ], + "hospitalization": { + "preAdmissionIdentifier": { + "value": "1234567", + "type": { + "coding": [ + { + "code": "ANON", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Anonymous identifier" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + "reAdmission": { + "coding": [ + { + "code": "R", + "display": "Re-admission", + "system": "http://terminology.hl7.org/CodeSystem/v2-0092" + } + ] + }, + "admitSource": { + "coding": [ + { + "code": "NHS Provider-General (inc.A&E-this Hosp)" + } + ] + }, + "dischargeDisposition": { + "coding": [ + { + "code": "Admitted as Inpatient", + "display": "Sample", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ACR" + } + ] + }, + "dietPreference": [ + { + "coding": [ + { + "code": "Vegan", + "display": "Vegetarian" + } + ] + } + ], + "destination": { + "reference": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + "episodeOfCare": [ + { + "reference": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + ], + "participant": [ + { + "type": [ + { + "coding": [ + { + "code": "ATND", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", + "display": "attender" + } + ] + } + ], + "individual": { + "reference": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "CON", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "consultant" + } + ], + "individual": { + "reference": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "ADM", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "admitter" + } + ], + "individual": { + "reference": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "PART", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "Participation" + } + ], + "individual": { + "reference": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/36e3aaa4-569a-7d9d-037f-27235ed05701" + } + } + ], + "serviceType": { + "coding": [ + { + "code": "SUR" + } + ] + }, + "identifier": [ + { + "value": "40007716", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + }, + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ], + "text": "visit number" + } + }, + { + "value": "50", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:r2.3", + "assigner": { + "reference": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + } + ], + "period": { + "start": "2015-02-08T15:54:19+05:30" + }, + "reasonCode": [ + { + "coding": [ + { + "code": "140004", + "display": "Chronic pharyngitis", + "system": "http://snomed.info/sct" + } + ] + } + ], + "length": { + "value": 2, + "unit": "d", + "system": "http://unitsofmeasure.org/" + }, + "meta": { + "security": [ + { + "code": "N", + "display": "normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality" + } + ] + }, + "text": { + "status": "generated", + "div": "

Visit Description: Health Checkup

" + }, + "priority": { + "coding": [ + { + "code": "UR", + "display": "urgent", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActPriority", + "version": "V1.2" + }, + { + "code": "EL", + "display": "elective", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActPriority", + "version": "V1.3" + } + ] + }, + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/encounter-modeOfArrival", + "valueCoding": { + "code": "C", + "display": "Car", + "system": "http://terminology.hl7.org/CodeSystem/v2-0430" + } + } + ], + "diagnosis": [ + { + "condition": { + "reference": "Condition/481123a1-ca9c-c3c8-0284-e6926c3a50d8" + }, + "use": { + "coding": [ + { + "code": "AD", + "display": "Admission Diagnosis", + "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role" + } + ] + }, + "rank": 1 + } + ] + }, + "request": { + "method": "PUT", + "url": "Encounter/4b192760-03d2-aec4-b0a6-fde323912e1e" + } + }, + { + "fullUrl": "urn:uuid:9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "resource": { + "resourceType": "Provenance", + "id": "9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "occurredDateTime": "2021-08-17T18:49:43.004+05:30", + "recorded": "2029-08-01T11:21:24+05:30", + "reason": [ + { + "coding": [ + { + "code": "PATRQT", + "display": "patient requested", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason" + } + ] + } + ], + "agent": [ + { + "who": { + "reference": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + } + ], + "activity": { + "text": "ADT^A28^ADT_A28" + }, + "location": { + "reference": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + }, + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c" + } + }, + { + "fullUrl": "urn:uuid:ef39f581-5e8f-3917-35a9-3443303d9eee", + "resource": { + "resourceType": "Organization", + "id": "ef39f581-5e8f-3917-35a9-3443303d9eee", + "identifier": [ + { + "value": "DRNBR", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-DRNBR" + }, + { + "value": "urn:oid:W1.2", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + } + }, + { + "fullUrl": "urn:uuid:95aea53b-8d49-d57f-d16f-4d14b914f992", + "resource": { + "resourceType": "Practitioner", + "id": "95aea53b-8d49-d57f-d16f-4d14b914f992", + "identifier": [ + { + "value": "C08", + "system": "urn:oid:W1.2", + "assigner": { + "reference": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + }, + "type": { + "coding": [ + { + "code": "ANON", + "display": "Anonymous identifier", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen", + "2ndname" + ], + "suffix": [ + "Jr", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + }, + { + "fullUrl": "urn:uuid:59d5e519-0108-5dd8-adfa-1eef5658009e", + "resource": { + "resourceType": "Location", + "id": "59d5e519-0108-5dd8-adfa-1eef5658009e", + "name": "Cona_Health", + "identifier": [ + { + "value": "urn:oid:1.3.6.1.4.1.44750.1.4", + "system": "urn:ietf:rfc:3986" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "display": "site", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + } + }, + { + "fullUrl": "urn:uuid:396e6ab6-624f-44a8-841c-6e1c4cebd765", + "resource": { + "resourceType": "Practitioner", + "id": "396e6ab6-624f-44a8-841c-6e1c4cebd765", + "identifier": [ + { + "value": "1210" + } + ], + "name": [ + { + "family": "ANES", + "given": [ + "MARK", + "B" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/396e6ab6-624f-44a8-841c-6e1c4cebd765" + } + }, + { + "fullUrl": "urn:uuid:6a01e35c-52c3-892a-2ea0-0a283eb6757b", + "resource": { + "resourceType": "Practitioner", + "id": "6a01e35c-52c3-892a-2ea0-0a283eb6757b", + "identifier": [ + { + "value": "121188", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-L", + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Patrick", + "given": [ + "Harold", + "H" + ], + "suffix": [ + "IV", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/6a01e35c-52c3-892a-2ea0-0a283eb6757b" + } + }, + { + "fullUrl": "urn:uuid:a8fc538f-624b-0cee-df30-6377fabae47c", + "resource": { + "resourceType": "Practitioner", + "id": "a8fc538f-624b-0cee-df30-6377fabae47c", + "identifier": [ + { + "value": "12345689", + "type": { + "coding": [ + { + "code": "MR", + "display": "Medical record number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Everyman2", + "given": [ + "Adam2", + "A" + ], + "suffix": [ + "III", + "PHD" + ], + "prefix": [ + "DR" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/a8fc538f-624b-0cee-df30-6377fabae47c" + } + }, + { + "fullUrl": "urn:uuid:a9c75502-d60a-d89b-5912-f046100cd47e", + "resource": { + "resourceType": "Location", + "id": "a9c75502-d60a-d89b-5912-f046100cd47e", + "name": "OT", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/a9c75502-d60a-d89b-5912-f046100cd47e" + } + }, + { + "fullUrl": "urn:uuid:2e2e33a1-60f8-7e38-c827-fe070237c3fb", + "resource": { + "resourceType": "Procedure", + "id": "2e2e33a1-60f8-7e38-c827-fe070237c3fb", + "status": "unknown", + "identifier": [ + { + "value": "PR1001" + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Procedure/2e2e33a1-60f8-7e38-c827-fe070237c3fb" + } + }, + { + "fullUrl": "urn:uuid:c06db9c2-d07b-bac2-53c2-48ed83dd32b6", + "resource": { + "resourceType": "Procedure", + "id": "c06db9c2-d07b-bac2-53c2-48ed83dd32b6", + "code": { + "coding": [ + { + "code": "76164006", + "display": "Biopsy of colon (procedure)", + "system": "http://snomed.info/sct" + } + ], + "text": "Biopsy of colon, which was part of colonoscopy" + }, + "status": "completed", + "performedDateTime": "2005-01-25T16:10:00+05:30", + "category": { + "coding": [ + { + "code": "D", + "display": "Diagnostic Procedure", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/HL70230" + } + ] + }, + "performer": [ + { + "actor": { + "reference": "Practitioner/396e6ab6-624f-44a8-841c-6e1c4cebd765" + }, + "function": { + "coding": [ + { + "code": "88189002", + "system": "http://snomed.info/sct", + "display": "Anesthesiologist" + } + ], + "text": "Anesthesiologist" + } + }, + { + "actor": { + "reference": "Practitioner/6a01e35c-52c3-892a-2ea0-0a283eb6757b" + }, + "function": { + "coding": [ + { + "code": "304292004", + "system": "http://snomed.info/sct", + "display": "Surgeon" + } + ], + "text": "Surgeon" + } + }, + { + "actor": { + "reference": "Practitioner/a8fc538f-624b-0cee-df30-6377fabae47c" + }, + "function": { + "text": "Procedure Practitioner" + } + } + ], + "reasonCode": [ + { + "coding": [ + { + "code": "799008", + "display": "Sigmoid colon ulcer", + "system": "http://snomed.info/sct" + } + ] + } + ], + "identifier": [ + { + "value": "PR1006" + } + ], + "location": { + "reference": "Location/a9c75502-d60a-d89b-5912-f046100cd47e" + }, + "partOf": [ + { + "reference": "Procedure/2e2e33a1-60f8-7e38-c827-fe070237c3fb" + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Procedure/c06db9c2-d07b-bac2-53c2-48ed83dd32b6" + } + }, + { + "fullUrl": "urn:uuid:3bb64820-2a2b-956c-9f45-125ec102f353", + "resource": { + "resourceType": "Organization", + "id": "3bb64820-2a2b-956c-9f45-125ec102f353", + "name": "TestOrg", + "identifier": [ + { + "value": "Org12", + "type": { + "coding": [ + { + "code": "EI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "contact": [ + { + "name": { + "family": "Green", + "given": [ + "John", + "A" + ], + "suffix": [ + "II", + "MD" + ], + "prefix": [ + "DR" + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + "telecom": [ + { + "value": "898989898", + "system": "fax" + }, + { + "value": "88888888", + "system": "phone" + } + ], + "address": { + "line": [ + "Street1", + "Palkstreet" + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/3bb64820-2a2b-956c-9f45-125ec102f353" + } + }, + { + "fullUrl": "urn:uuid:abdee378-0d3b-337f-a31e-83e002ce92a0", + "resource": { + "resourceType": "RelatedPerson", + "id": "abdee378-0d3b-337f-a31e-83e002ce92a0", + "identifier": [ + { + "value": "1212121", + "type": { + "coding": [ + { + "code": "AND", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Account number debitor" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "12345567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/e76154d7-9084-80e4-6274-c929d7c39880" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "I-123", + "type": { + "coding": [ + { + "code": "BA", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Bank Account Number" + } + ] + } + }, + { + "value": "I-222", + "type": { + "coding": [ + { + "code": "DI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Diner’s Club card" + } + ] + } + }, + { + "value": "Security no-23", + "system": "http://hl7.org/fhir/sid/us-ssn" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "C", + "display": "Emergency Contact", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131", + "version": "9.0" + }, + { + "code": "CHILD", + "display": "child", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode", + "version": "10.0" + } + ] + }, + { + "coding": [ + { + "code": "O", + "display": "Other", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131" + } + ] + }, + { + "coding": [ + { + "code": "MTH", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "period": { + "start": "2021-08-18", + "end": "2021-12-18" + }, + "address": [ + { + "line": [ + "2222", + "HOME", + "STREET", + "Highway" + ], + "city": "GREENSBORO", + "state": "NC", + "postalCode": "27401-1020", + "country": "US", + "use": "billing", + "district": "test", + "period": { + "start": "2000-01-10", + "end": "2005-01-11" + } + }, + { + "line": [ + "111", + "Duck ST" + ], + "city": "Fowl" + }, + { + "line": [ + "Street1", + "Palkstreet" + ] + }, + { + "line": [ + "ST-2" + ] + } + ], + "telecom": [ + { + "value": "5555", + "use": "work", + "system": "email", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "121111", + "use": "home", + "system": "phone" + }, + { + "value": "878777", + "use": "home", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "6666666", + "system": "pager", + "use": "work" + }, + { + "value": "898989898", + "system": "fax" + }, + { + "value": "88888888", + "system": "phone" + }, + { + "value": "777", + "use": "work", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 1 + }, + { + "value": "444444", + "system": "phone" + } + ], + "name": [ + { + "family": "Evan", + "given": [ + "ADAM", + "A" + ], + "suffix": [ + "III", + "MD" + ], + "prefix": [ + "Dr." + ], + "use": "usual" + }, + { + "family": "Green", + "given": [ + "John", + "A" + ], + "suffix": [ + "II", + "MD" + ], + "prefix": [ + "DR" + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official" + } + ], + "gender": "female", + "birthDate": "1962-01-10", + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47" + } + ] + } + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White" + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/abdee378-0d3b-337f-a31e-83e002ce92a0" + } + }, + { + "fullUrl": "urn:uuid:e76154d7-9084-80e4-6274-c929d7c39880", + "resource": { + "resourceType": "Organization", + "id": "e76154d7-9084-80e4-6274-c929d7c39880", + "identifier": [ + { + "value": "T1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-T1" + }, + { + "value": "2.16.840.1.113883.19", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/e76154d7-9084-80e4-6274-c929d7c39880" + } + }, + { + "fullUrl": "urn:uuid:f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "resource": { + "resourceType": "Organization", + "id": "f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "identifier": [ + { + "value": "NTH", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NTH" + }, + { + "value": "rt23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + } + }, + { + "fullUrl": "urn:uuid:4e68b44e-c053-02b1-6d6d-fe816f9fdfec", + "resource": { + "resourceType": "Organization", + "id": "4e68b44e-c053-02b1-6d6d-fe816f9fdfec", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "urn:oid:1.12", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4e68b44e-c053-02b1-6d6d-fe816f9fdfec" + } + }, + { + "fullUrl": "urn:uuid:e82402a9-b2d1-2a28-3250-c099d5a77bf7", + "resource": { + "resourceType": "Organization", + "id": "e82402a9-b2d1-2a28-3250-c099d5a77bf7", + "identifier": [ + { + "value": "PERSt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/e82402a9-b2d1-2a28-3250-c099d5a77bf7" + } + }, + { + "fullUrl": "urn:uuid:ce70e6c3-c190-121d-c251-e4bae5cde6a1", + "resource": { + "resourceType": "Practitioner", + "id": "ce70e6c3-c190-121d-c251-e4bae5cde6a1", + "identifier": [ + { + "value": "1134", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/e82402a9-b2d1-2a28-3250-c099d5a77bf7" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Aly", + "given": [ + "Zafar", + "Mahendra" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/ce70e6c3-c190-121d-c251-e4bae5cde6a1" + } + }, + { + "fullUrl": "urn:uuid:88a53755-c972-6904-b4ce-8884b84ddc2e", + "resource": { + "resourceType": "PractitionerRole", + "id": "88a53755-c972-6904-b4ce-8884b84ddc2e", + "code": [ + { + "coding": [ + { + "code": "ResponsibleObserver", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/ce70e6c3-c190-121d-c251-e4bae5cde6a1" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/88a53755-c972-6904-b4ce-8884b84ddc2e" + } + }, + { + "fullUrl": "urn:uuid:3e0952c6-eea0-8938-96f8-07c224bf1577", + "resource": { + "resourceType": "Practitioner", + "id": "3e0952c6-eea0-8938-96f8-07c224bf1577", + "identifier": [ + { + "value": "2234" + } + ], + "name": [ + { + "family": "Pauly", + "given": [ + "Berrie", + "Raud" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/3e0952c6-eea0-8938-96f8-07c224bf1577" + } + }, + { + "fullUrl": "urn:uuid:bc78e290-ec67-c238-1e05-aefb6b252b0c", + "resource": { + "resourceType": "PractitionerRole", + "id": "bc78e290-ec67-c238-1e05-aefb6b252b0c", + "code": [ + { + "coding": [ + { + "code": "ResponsibleObserver", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/3e0952c6-eea0-8938-96f8-07c224bf1577" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/bc78e290-ec67-c238-1e05-aefb6b252b0c" + } + }, + { + "fullUrl": "urn:uuid:fe0adb86-ebe9-6479-0055-9db8dc1ff99a", + "resource": { + "resourceType": "Device", + "id": "fe0adb86-ebe9-6479-0055-9db8dc1ff99a", + "identifier": [ + { + "value": "EI12.3", + "system": "urn:uuid:UI2", + "type": { + "coding": [ + { + "code": "GUID", + "display": "Same as UUID.", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + }, + { + "system": "urn:oid:UI1", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/fe0adb86-ebe9-6479-0055-9db8dc1ff99a" + } + }, + { + "fullUrl": "urn:uuid:45f65e47-46c4-1a54-f9fb-1321258e79b2", + "resource": { + "resourceType": "Practitioner", + "id": "45f65e47-46c4-1a54-f9fb-1321258e79b2", + "identifier": [ + { + "type": { + "coding": [ + { + "code": "MD-25" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/45f65e47-46c4-1a54-f9fb-1321258e79b2" + } + }, + { + "fullUrl": "urn:uuid:090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3", + "resource": { + "resourceType": "PractitionerRole", + "id": "090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3", + "code": [ + { + "coding": [ + { + "code": "LabMedicalDirector", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/45f65e47-46c4-1a54-f9fb-1321258e79b2" + }, + "organization": { + "reference": "Organization/056aa7c7-6b75-3c67-63c5-cf9604f16d25" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3" + } + }, + { + "fullUrl": "urn:uuid:056aa7c7-6b75-3c67-63c5-cf9604f16d25", + "resource": { + "resourceType": "Organization", + "id": "056aa7c7-6b75-3c67-63c5-cf9604f16d25", + "name": "FairOaks Hspital", + "address": [ + { + "line": [ + "Research Park", + "Fairfax" + ], + "city": "VA", + "state": "22031", + "postalCode": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/056aa7c7-6b75-3c67-63c5-cf9604f16d25" + } + }, + { + "fullUrl": "urn:uuid:07fd2dd3-dbd6-5bb1-cfda-02226795d9a0", + "resource": { + "resourceType": "Observation", + "id": "07fd2dd3-dbd6-5bb1-cfda-02226795d9a0", + "identifier": [ + { + "value": "EI21", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-OII" + }, + { + "type": { + "coding": [ + { + "code": "FILL" + } + ] + } + } + ], + "status": "unknown", + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "component": [ + { + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 60, + "code": "beats/min", + "unit": "beats/min", + "system": "urn:iso:std:iso:3986" + }, + "referenceRange": [ + { + "text": "70-80" + } + ] + }, + { + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 120, + "code": "beats/min", + "unit": "beats/min", + "system": "urn:iso:std:iso:3986" + }, + "referenceRange": [ + { + "text": "70-80" + } + ] + } + ], + "effectiveDateTime": "1999-07-02", + "method": { + "coding": [ + { + "code": "OBS", + "display": "This is test method", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/AS4" + } + ] + }, + "device": { + "reference": "Device/fe0adb86-ebe9-6479-0055-9db8dc1ff99a" + }, + "bodySite": { + "coding": [ + { + "code": "BU", + "display": "Observation site", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/E5" + } + ] + }, + "performer": [ + { + "reference": "PractitionerRole/88a53755-c972-6904-b4ce-8884b84ddc2e" + }, + { + "reference": "PractitionerRole/bc78e290-ec67-c238-1e05-aefb6b252b0c" + }, + { + "reference": "PractitionerRole/090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "A", + "display": "Abnormal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + }, + { + "coding": [ + { + "code": "B", + "display": "Better", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } + ], + "extension": [ + { + "url": "http://example.com/v2-to-fhir-converter/Observation_Status", + "valueCodeableConcept": { + "coding": [ + { + "code": "S", + "display": "Partial", + "system": "http://terminology.hl7.org/CodeSystem/v2-0085" + } + ], + "text": "Partial" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Observation/07fd2dd3-dbd6-5bb1-cfda-02226795d9a0" + } + }, + { + "fullUrl": "urn:uuid:a0adcda8-0b28-d089-1955-c04308d5fe28", + "resource": { + "resourceType": "AllergyIntolerance", + "id": "a0adcda8-0b28-d089-1955-c04308d5fe28", + "category": [ + "environment" + ], + "type": "allergy", + "code": { + "coding": [ + { + "code": "P", + "display": "PENICILLIN", + "system": "http://terminology.hl7.org/CodeSystem/icd-o" + } + ] + }, + "reaction": [ + { + "manifestation": [ + { + "text": "CODE16" + } + ], + "onset": "2021-08-24" + } + ], + "criticality": "low", + "clinicalStatus": { + "coding": [ + { + "code": "active", + "display": "Active", + "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical" + } + ] + }, + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "AllergyIntolerance/a0adcda8-0b28-d089-1955-c04308d5fe28" + } + }, + { + "fullUrl": "urn:uuid:14493a95-7780-ead5-89cc-ad6c3bc31d51", + "resource": { + "resourceType": "Practitioner", + "id": "14493a95-7780-ead5-89cc-ad6c3bc31d51", + "identifier": [ + { + "value": "005454" + } + ], + "name": [ + { + "family": "DIAG", + "given": [ + "ROBIN", + "B" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/14493a95-7780-ead5-89cc-ad6c3bc31d51" + } + }, + { + "fullUrl": "urn:uuid:481123a1-ca9c-c3c8-0284-e6926c3a50d8", + "resource": { + "resourceType": "Condition", + "id": "481123a1-ca9c-c3c8-0284-e6926c3a50d8", + "code": { + "coding": [ + { + "code": "422504002", + "display": "Ischemic stroke(disorder)", + "system": "http://snomed.info/sct" + } + ], + "text": "Stroke" + }, + "onsetDateTime": "2004-01-25T12:50:25+05:30", + "identifier": [ + { + "value": "DI20", + "system": "urn:oid:DTUI", + "type": { + "coding": [ + { + "code": "CLIP", + "display": "Clinical laboratory Improvement Program. Allows for the ability to designate organization identifier as a “CLIP” assigned number (for labs). Used by US Department of Defense.", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "asserter": { + "reference": "Practitioner/14493a95-7780-ead5-89cc-ad6c3bc31d51" + }, + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/condition-assertedDate", + "valueDateTime": "2020-05-01T16:45:15+05:30" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/condition-dueTo", + "valueReference": { + "reference": "Condition/98e2ecfc-6e04-bc30-6624-4f3686214b22" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Condition/481123a1-ca9c-c3c8-0284-e6926c3a50d8" + } + }, + { + "fullUrl": "urn:uuid:98e2ecfc-6e04-bc30-6624-4f3686214b22", + "resource": { + "resourceType": "Condition", + "id": "98e2ecfc-6e04-bc30-6624-4f3686214b22", + "identifier": [ + { + "system": "urn:oid:UI", + "type": { + "coding": [ + { + "code": "CLIP", + "display": "Clinical laboratory Improvement Program. Allows for the ability to designate organization identifier as a “CLIP” assigned number (for labs). Used by US Department of Defense.", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Condition/98e2ecfc-6e04-bc30-6624-4f3686214b22" + } + }, + { + "fullUrl": "urn:uuid:c073f2c1-a818-924b-8881-1481ac88d691", + "resource": { + "resourceType": "Organization", + "id": "c073f2c1-a818-924b-8881-1481ac88d691", + "name": "AuthProvider", + "identifier": [ + { + "value": "A", + "type": { + "coding": [ + { + "code": "LR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/c073f2c1-a818-924b-8881-1481ac88d691" + } + }, + { + "fullUrl": "urn:uuid:e0ba3d6b-452f-7c22-a79d-1035e4b33ceb", + "resource": { + "resourceType": "Practitioner", + "id": "e0ba3d6b-452f-7c22-a79d-1035e4b33ceb", + "identifier": [ + { + "value": "114", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-2.3", + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Beverly", + "given": [ + "Crusher", + "An" + ], + "suffix": [ + "Mr", + "AHP", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/e0ba3d6b-452f-7c22-a79d-1035e4b33ceb" + } + }, + { + "fullUrl": "urn:uuid:739ae409-c591-1a59-32ad-d2ef1b937b0f", + "resource": { + "resourceType": "ServiceRequest", + "id": "739ae409-c591-1a59-32ad-d2ef1b937b0f", + "status": "on-hold", + "intent": "order", + "identifier": [ + { + "value": "123-1", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-name" + }, + { + "value": "123-2", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-Testname" + } + ], + "authoredOn": "1990-05-01T12:16:00+05:30", + "performer": [ + { + "reference": "Organization/c073f2c1-a818-924b-8881-1481ac88d691" + }, + { + "reference": "Practitioner/e0ba3d6b-452f-7c22-a79d-1035e4b33ceb" + } + ], + "performerType": { + "coding": [ + { + "code": "EXTERNAL" + } + ] + }, + "note": [ + { + "text": "Check for metastatic disease" + } + ], + "priority": "asap", + "reasonCode": [ + { + "coding": [ + { + "code": "R-1", + "display": "Reason", + "system": "http://www.ama-assn.org/go/cpt" + } + ], + "text": "Patient has a spinal fracture" + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "ServiceRequest/739ae409-c591-1a59-32ad-d2ef1b937b0f" + } + }, + { + "fullUrl": "urn:uuid:dfab6985-a691-c4f5-d2b2-6481fdfd59e4", + "resource": { + "resourceType": "Coverage", + "id": "dfab6985-a691-c4f5-d2b2-6481fdfd59e4", + "class": [ + { + "value": "BAV", + "name": "Blue Advantage HMO", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/coverage-class", + "code": "plan", + "display": "Plan" + } + ] + } + }, + { + "value": "PUBSUMB", + "name": "SelfPay", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/coverage-class", + "code": "group", + "display": "Group" + } + ] + } + } + ], + "network": "Blue Advantage HMO", + "period": { + "start": "1989-10-01", + "end": "2050-10-01" + }, + "type": { + "coding": [ + { + "code": "HMO", + "display": "health maintenance organization policy", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + } + ] + }, + "identifier": [ + { + "value": "PN-145", + "type": { + "coding": [ + { + "code": "PLN", + "display": "Policy Number", + "system": "http://example.com/CodeSystem/additional-identifier" + } + ] + }, + "system": "http://www.examplehealthplan.com/fhir/policyidentifier" + }, + { + "value": "HMO-12345", + "type": { + "coding": [ + { + "code": "NI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "National unique individual identifier" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.3" + }, + { + "value": "Medicare-12345", + "type": { + "coding": [ + { + "code": "MC", + "display": "Patient's Medicare number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-medicare" + }, + { + "value": "MCN-008", + "type": { + "coding": [ + { + "code": "MA", + "display": "Patient Medicaid number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/identifier-medicaid" + }, + { + "value": "PNM1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/1fca4c8f-7562-b755-9a05-5f0f49096e5b" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "costToBeneficiary": [ + { + "type": { + "coding": [ + { + "code": "DC", + "display": "direct unit cost", + "system": "http://terminology.hl7.org/CodeSystem/v2-0205" + } + ] + }, + "valueMoney": { + "value": 150, + "currency": "USD" + } + } + ], + "subscriberId": "HMO-12345", + "status": "active", + "beneficiary": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "payor": [ + { + "reference": "Organization/04a2a5f2-c971-1e42-e788-250ea487a889" + } + ], + "policyHolder": { + "reference": "Organization/4829e288-ac03-22cc-c65e-922004275fd0" + }, + "subscriber": { + "reference": "RelatedPerson/fd1eed45-4ccb-bb7c-d157-58eb0366d777" + }, + "relationship": { + "coding": [ + { + "code": "spouse", + "display": "Spouse", + "system": "http://terminology.hl7.org/CodeSystem/subscriber-relationship" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Coverage/dfab6985-a691-c4f5-d2b2-6481fdfd59e4" + } + }, + { + "fullUrl": "urn:uuid:04a2a5f2-c971-1e42-e788-250ea487a889", + "resource": { + "resourceType": "Organization", + "id": "04a2a5f2-c971-1e42-e788-250ea487a889", + "address": [ + { + "line": [ + "1979 MILKY WAY" + ], + "city": "VERONA", + "state": "WI", + "postalCode": "53593", + "country": "US" + } + ], + "contact": [ + { + "name": { + "family": "Henry", + "given": [ + "Rony", + "A" + ], + "suffix": [ + "III", + "MD" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1925-10-12" + } + } + } + ], + "telecom": [ + { + "value": "(555)555-5555", + "system": "phone" + } + ], + "identifier": [ + { + "value": "IC-1.31", + "type": { + "coding": [ + { + "code": "NIIP", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "National Insurance Payor Identifier (Payor)" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.1", + "period": { + "start": "1929-10-11", + "end": "1929-10-12" + } + } + ], + "name": "Blue Cross Blue Shield of Texas" + }, + "request": { + "method": "PUT", + "url": "Organization/04a2a5f2-c971-1e42-e788-250ea487a889" + } + }, + { + "fullUrl": "urn:uuid:4829e288-ac03-22cc-c65e-922004275fd0", + "resource": { + "resourceType": "Organization", + "id": "4829e288-ac03-22cc-c65e-922004275fd0", + "address": [ + { + "line": [ + "2000 MILKY WAY" + ], + "city": "VERONA", + "state": "WI", + "postalCode": "53593", + "country": "US" + } + ], + "name": "Sam P. Hil", + "contact": [ + { + "name": { + "family": "Richard", + "given": [ + "Paul" + ] + }, + "telecom": [ + { + "value": "254622222", + "system": "phone" + } + ] + } + ], + "telecom": [ + { + "value": "555777888", + "system": "fax" + }, + { + "system": "phone" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4829e288-ac03-22cc-c65e-922004275fd0" + } + }, + { + "fullUrl": "urn:uuid:fd1eed45-4ccb-bb7c-d157-58eb0366d777", + "resource": { + "resourceType": "RelatedPerson", + "id": "fd1eed45-4ccb-bb7c-d157-58eb0366d777", + "identifier": [ + { + "value": "HMO-12345", + "type": { + "coding": [ + { + "code": "NI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "National unique individual identifier" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.3" + }, + { + "value": "1117", + "type": { + "coding": [ + { + "code": "EI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Employee number" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.4" + }, + { + "value": "1118", + "type": { + "coding": [ + { + "code": "BC", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Bank Card Number" + } + ] + } + }, + { + "value": "425-57-9745", + "type": { + "coding": [ + { + "code": "SS", + "display": "Social Security number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "SPS", + "display": "spouse", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "address": [ + { + "line": [ + "3857 Velvet Treasure Terrace" + ], + "city": "Midnight", + "state": "NC", + "postalCode": "27878", + "country": "US" + } + ], + "name": [ + { + "family": "Doe", + "given": [ + "Rosallie", + "John" + ], + "suffix": [ + "III", + "Bachelors" + ], + "prefix": [ + "Mrs." + ], + "use": "official" + } + ], + "gender": "female", + "birthDate": "1975-02-28", + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "telecom": [ + { + "value": "0005245", + "use": "work", + "system": "email" + }, + { + "system": "phone" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47" + } + ] + }, + "preferred": true + } + ] + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/fd1eed45-4ccb-bb7c-d157-58eb0366d777" + } + }, + { + "fullUrl": "urn:uuid:1fca4c8f-7562-b755-9a05-5f0f49096e5b", + "resource": { + "resourceType": "Organization", + "id": "1fca4c8f-7562-b755-9a05-5f0f49096e5b", + "identifier": [ + { + "value": "PM", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PM" + }, + { + "value": "2.6.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/1fca4c8f-7562-b755-9a05-5f0f49096e5b" + } + } + ] +} \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A31/ADT-A31-expected-2.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A31/ADT-A31-expected-2.json new file mode 100644 index 000000000..7ee03f6c5 --- /dev/null +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A31/ADT-A31-expected-2.json @@ -0,0 +1,2130 @@ +{ + "resourceType": "Bundle", + "type": "batch", + "timestamp": "1989-08-18T14:41:00+05:30", + "identifier": { + "value": "MSG00001" + }, + "id": "513a3d06-5e87-6fbc-ad1b-170ab430499f", + "entry": [ + { + "fullUrl": "urn:uuid:b4ca189b-51ae-33df-cbe2-559b4423a321", + "resource": { + "resourceType": "MessageHeader", + "id": "b4ca189b-51ae-33df-cbe2-559b4423a321", + "source": { + "name": "24GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.20" + }, + "destination": [ + { + "name": "25GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.23", + "receiver": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + } + ], + "meta": { + "security": [ + { + "display": "SECURITY", + "system": "http://example.com/v2-to-fhirconverter/security-label" + } + ], + "tag": [ + { + "code": "P", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "A31", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ADT^A31^ADT_A31" + }, + "language": "en-US", + "sender": { + "reference": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + }, + "responsible": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + "request": { + "method": "PUT", + "url": "MessageHeader/b4ca189b-51ae-33df-cbe2-559b4423a321" + } + }, + { + "fullUrl": "urn:uuid:f65d2168-02c8-1897-210d-361176172856", + "resource": { + "resourceType": "Provenance", + "id": "f65d2168-02c8-1897-210d-361176172856", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T13:34:28.183Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ADT_A31.

" + }, + "occurredDateTime": "1989-08-18T14:41:00+05:30", + "recorded": "1989-08-18T14:41:00+05:30", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + } + ], + "activity": { + "coding": [ + { + "display": "ADT^A31^ADT_A31" + } + ] + }, + "entity": [ + { + "role": "source", + "what": { + "reference": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + } + ], + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/f65d2168-02c8-1897-210d-361176172856" + } + }, + { + "fullUrl": "urn:uuid:4356fb81-6ecd-2d70-57b1-47812638e785", + "resource": { + "resourceType": "Organization", + "id": "4356fb81-6ecd-2d70-57b1-47812638e785", + "identifier": [ + { + "value": "GHHSFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHSFacility" + }, + { + "value": "urn:oid:2.16.840.1.122848.1.30", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + } + }, + { + "fullUrl": "urn:uuid:62781ad6-3896-cb63-0178-ead0c4a432b5", + "resource": { + "resourceType": "Organization", + "id": "62781ad6-3896-cb63-0178-ead0c4a432b5", + "identifier": [ + { + "value": "GHHRFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHRFacility" + }, + { + "value": "urn:oid:2.16.840.1.1122848.1.32", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/62781ad6-3896-cb63-0178-ead0c4a432b5" + } + }, + { + "fullUrl": "urn:uuid:33532a82-d220-4c0d-1abe-53e48951c201", + "resource": { + "resourceType": "Organization", + "id": "33532a82-d220-4c0d-1abe-53e48951c201", + "name": "22 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + { + "fullUrl": "urn:uuid:527280c1-34d1-c639-e9ba-61986d28e266", + "resource": { + "resourceType": "Organization", + "id": "527280c1-34d1-c639-e9ba-61986d28e266", + "name": "23 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + }, + { + "fullUrl": "urn:uuid:503eb873-22fb-8199-ae28-3604ad59fe13", + "resource": { + "resourceType": "Device", + "id": "503eb873-22fb-8199-ae28-3604ad59fe13", + "identifier": [ + { + "value": "ADTApp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + }, + { + "fullUrl": "urn:uuid:9e909e52-61a1-be50-1878-a12ef8c36346", + "resource": { + "resourceType": "Patient", + "id": "9e909e52-61a1-be50-1878-a12ef8c36346", + "identifier": [ + { + "value": "1234567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "PATID1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "value": "123456789", + "type": { + "coding": [ + { + "code": "SS", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Social Security number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-USSSA" + }, + { + "value": "PATID567", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test2" + }, + { + "value": "PSSN123121234", + "type": { + "coding": [ + { + "code": "SB", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + }, + { + "value": "DLN-123", + "type": { + "coding": [ + { + "code": "DL" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/US", + "period": { + "end": "2001-01-23" + } + } + ], + "name": [ + { + "family": "EVERYMAN", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official", + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + }, + { + "family": "elbert", + "given": [ + "Son" + ] + } + ], + "birthDate": "1988-08-18", + "_birthDate": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime": "1988-08-18T14:41:00+05:30" + } + ] + }, + "gender": "male", + "address": [ + { + "line": [ + "1000", + "Hospital Lane", + "Ste. 123", + "Near Highway" + ], + "city": "Ann Arbor ", + "state": "MI", + "postalCode": "99999", + "country": "USA", + "type": "postal", + "district": "W", + "period": { + "start": "2000-01-10", + "end": "2000-01-20" + } + } + ], + "telecom": [ + { + "value": "2222", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18, + "use": "home" + }, + { + "value": "12121212", + "system": "phone", + "use": "home" + }, + { + "value": "7777", + "system": "phone", + "use": "work" + }, + { + "value": "1111", + "system": "other", + "use": "work" + }, + { + "value": "89898989", + "use": "work", + "system": "email" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47", + "version": "v2" + }, + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47", + "version": "v2.1" + } + ], + "text": "TextInEnglish" + }, + "preferred": true + } + ], + "maritalStatus": { + "coding": [ + { + "code": "M", + "display": "Married", + "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" + } + ] + }, + "multipleBirthInteger": 2, + "deceasedDateTime": "2008-08-25T15:31:30+05:30", + "meta": { + "lastUpdated": "2005-01-10T04:05:14+05:30" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "ombCategory", + "valueCoding": { + "code": "2028-9", + "display": "Asian", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White+Asian" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + "valueString": "SMITH--Angela--L" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", + "valueAddress": { + "text": "St. Francis Community Hospital of Lower South Side" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-religion", + "valueCodeableConcept": { + "coding": [ + { + "code": "1002", + "display": "African Religions", + "system": "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2186-5", + "display": "Non Hispanic or Latino", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "Non Hispanic or Latino" + } + ] + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/VeteranMilitaryStatus", + "valueCodeableConcept": { + "coding": [ + { + "code": "Vet123", + "display": "retired", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ART" + } + ], + "text": "retired" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-animal", + "extension": [ + { + "url": "species", + "valueCodeableConcept": { + "coding": [ + { + "code": "125097000", + "display": "Goat", + "system": "http://snomed.info/sct" + } + ], + "text": "Goat" + } + }, + { + "url": "breed", + "valueCodeableConcept": { + "coding": [ + { + "code": "4880003", + "display": "Beagle", + "system": "http://snomed.info/sct" + } + ], + "text": "Beagle" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "US", + "display": "United States of America", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "United States of America" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "CA", + "display": "Canada", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Canada" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-nationality", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "BT", + "display": "Bhutan", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Bhutan" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-importance", + "valueCodeableConcept": { + "coding": [ + { + "code": "VIP", + "display": "Very Important Person", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/L", + "version": "v1.1" + }, + { + "code": "IMP", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/DCM", + "version": "v1.2" + } + ], + "text": "Inportant Person" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + { + "fullUrl": "urn:uuid:78295402-9b84-4829-b945-502ab3402de5", + "resource": { + "resourceType": "Account", + "id": "78295402-9b84-4829-b945-502ab3402de5", + "identifier": [ + { + "value": "4000776", + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Visit number" + } + ] + }, + "system": "urn:oid:2.4", + "assigner": { + "reference": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/78295402-9b84-4829-b945-502ab3402de5" + } + }, + { + "fullUrl": "urn:uuid:9d4c8327-8a28-8152-1898-8251baa707b7", + "resource": { + "resourceType": "Organization", + "id": "9d4c8327-8a28-8152-1898-8251baa707b7", + "identifier": [ + { + "value": "AccMgr", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr" + }, + { + "value": "urn:oid:2.4", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + } + }, + { + "fullUrl": "urn:uuid:b3ad3a9f-d4f6-4638-0a09-2da771733488", + "resource": { + "resourceType": "Organization", + "id": "b3ad3a9f-d4f6-4638-0a09-2da771733488", + "identifier": [ + { + "value": "test1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test1" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "fullUrl": "urn:uuid:f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "resource": { + "resourceType": "Organization", + "id": "f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "identifier": [ + { + "value": "NTH", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NTH" + }, + { + "value": "rt23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + } + }, + { + "fullUrl": "urn:uuid:62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "resource": { + "resourceType": "RelatedPerson", + "id": "62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "identifier": [ + { + "value": "1212121", + "type": { + "coding": [ + { + "code": "AND", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Account number debitor" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "relationship": [ + { + "coding": [ + { + "code": "MTH", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/62b2e1ee-a272-4ffe-692e-a1fbfd49af6a" + } + }, + { + "fullUrl": "urn:uuid:11967e28-8dd4-a112-0fdc-377866bf12a0", + "resource": { + "resourceType": "Organization", + "id": "11967e28-8dd4-a112-0fdc-377866bf12a0", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "2.16.840.1.113883.19", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + } + }, + { + "fullUrl": "urn:uuid:7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "resource": { + "resourceType": "Organization", + "id": "7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "identifier": [ + { + "value": "AccMng", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMng" + }, + { + "value": "1.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + } + }, + { + "fullUrl": "urn:uuid:0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "resource": { + "resourceType": "Organization", + "id": "0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "identifier": [ + { + "value": "PERSONNELt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSONNELt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + } + }, + { + "fullUrl": "urn:uuid:f6775f99-5279-be04-bf81-0906c81f7443", + "resource": { + "resourceType": "Practitioner", + "id": "f6775f99-5279-be04-bf81-0906c81f7443", + "identifier": [ + { + "value": "1122334", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Alaz", + "given": [ + "Mohammed", + "Mahi" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "fullUrl": "urn:uuid:c613d7b2-525f-8c08-a7ac-b2b91486e257", + "resource": { + "resourceType": "Organization", + "id": "c613d7b2-525f-8c08-a7ac-b2b91486e257", + "identifier": [ + { + "value": "TEST", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TEST" + }, + { + "value": "23.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + } + }, + { + "fullUrl": "urn:uuid:04f8cfc8-62ca-12df-63ce-6304ef577d44", + "resource": { + "resourceType": "Practitioner", + "id": "04f8cfc8-62ca-12df-63ce-6304ef577d44", + "identifier": [ + { + "value": "C006", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + }, + "type": { + "coding": [ + { + "code": "BA", + "display": "Bank Account Number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen" + ], + "prefix": [ + "Dr" + ], + "use": "anonymous" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "fullUrl": "urn:uuid:99edcabd-fbeb-7e25-f823-11da8d8ed342", + "resource": { + "resourceType": "Practitioner", + "id": "99edcabd-fbeb-7e25-f823-11da8d8ed342", + "identifier": [ + { + "value": "C008", + "system": "urn:oid:2.8", + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Condoc", + "given": [ + "leen" + ], + "prefix": [ + "Dr" + ], + "use": "temp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "fullUrl": "urn:uuid:b065b233-8738-f1ec-1314-d61e4aac2c9e", + "resource": { + "resourceType": "Practitioner", + "id": "b065b233-8738-f1ec-1314-d61e4aac2c9e", + "identifier": [ + { + "value": "37", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr", + "type": { + "coding": [ + { + "code": "ANC", + "display": "Account number Creditor", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "DISNEY", + "given": [ + "WALT" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "fullUrl": "urn:uuid:9f974d4f-47e8-21a6-e549-4de4599c3764", + "resource": { + "resourceType": "Organization", + "id": "9f974d4f-47e8-21a6-e549-4de4599c3764", + "identifier": [ + { + "value": "T123", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-T123" + }, + { + "value": "urn:oid:r2.3", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + }, + { + "fullUrl": "urn:uuid:84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "resource": { + "resourceType": "Practitioner", + "id": "84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "identifier": [ + { + "value": "Othhel", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "fullUrl": "urn:uuid:9172e4a0-1ca5-646d-2183-b179f4daa737", + "resource": { + "resourceType": "Location", + "id": "9172e4a0-1ca5-646d-2183-b179f4daa737", + "partOf": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + }, + "name": "HUH AE OMU", + "identifier": [ + { + "value": "urn:oid:9.8", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "fullUrl": "urn:uuid:3913ec4d-6576-5e1a-ac31-e8280583371c", + "resource": { + "resourceType": "Location", + "id": "3913ec4d-6576-5e1a-ac31-e8280583371c", + "partOf": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + }, + "name": "OMU B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "fullUrl": "urn:uuid:804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "resource": { + "resourceType": "Location", + "id": "804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "partOf": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + }, + "name": "Bed 03", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "fullUrl": "urn:uuid:c043880b-0fab-1cb8-14f7-0475282c4d0e", + "resource": { + "resourceType": "Location", + "id": "c043880b-0fab-1cb8-14f7-0475282c4d0e", + "name": "HOMERTON UNIVER", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "fullUrl": "urn:uuid:f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "resource": { + "resourceType": "Location", + "id": "f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "partOf": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + }, + "name": "Homerton UH", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "fullUrl": "urn:uuid:7e38808c-44a8-cb0c-4709-9d6092abc32c", + "resource": { + "resourceType": "Location", + "id": "7e38808c-44a8-cb0c-4709-9d6092abc32c", + "partOf": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + }, + "name": "Floor5", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "fullUrl": "urn:uuid:59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "resource": { + "resourceType": "Location", + "id": "59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "name": "4 East, room 136, bed B 4E", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + } + }, + { + "fullUrl": "urn:uuid:d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "resource": { + "resourceType": "Location", + "id": "d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "partOf": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "name": "136", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + } + }, + { + "fullUrl": "urn:uuid:5783dafa-c6c0-e673-cca4-42087ee1831b", + "resource": { + "resourceType": "Location", + "id": "5783dafa-c6c0-e673-cca4-42087ee1831b", + "partOf": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "name": "B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + } + }, + { + "fullUrl": "urn:uuid:8b39e6e5-78cd-63ab-2441-f43ca5554096", + "resource": { + "resourceType": "Location", + "id": "8b39e6e5-78cd-63ab-2441-f43ca5554096", + "name": "CommunityHospital", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + } + }, + { + "fullUrl": "urn:uuid:42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "resource": { + "resourceType": "Location", + "id": "42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "name": "Homes", + "identifier": [ + { + "value": "22", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/FDK" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + { + "fullUrl": "urn:uuid:84634858-74aa-5cdb-4547-60ec27339ac6", + "resource": { + "resourceType": "Location", + "id": "84634858-74aa-5cdb-4547-60ec27339ac6", + "name": "POC", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + } + }, + { + "fullUrl": "urn:uuid:9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "resource": { + "resourceType": "Location", + "id": "9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "partOf": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "name": "Room-2", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + } + }, + { + "fullUrl": "urn:uuid:35353f20-6254-e794-98ed-8007490447e3", + "resource": { + "resourceType": "Location", + "id": "35353f20-6254-e794-98ed-8007490447e3", + "partOf": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "name": "Bed-103", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/35353f20-6254-e794-98ed-8007490447e3" + } + }, + { + "fullUrl": "urn:uuid:055e10f1-222e-df73-2325-0e4396db1a55", + "resource": { + "resourceType": "Location", + "id": "055e10f1-222e-df73-2325-0e4396db1a55", + "name": "Greenland", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + } + }, + { + "fullUrl": "urn:uuid:1154e6b2-b022-b3be-7dce-2b940ab5376d", + "resource": { + "resourceType": "Location", + "id": "1154e6b2-b022-b3be-7dce-2b940ab5376d", + "name": "Nursing home", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + } + }, + { + "fullUrl": "urn:uuid:08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "resource": { + "resourceType": "Location", + "id": "08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "name": "Rosewood", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + } + }, + { + "fullUrl": "urn:uuid:08314073-410a-3dc7-512c-0f2d206fb59d", + "resource": { + "resourceType": "Organization", + "id": "08314073-410a-3dc7-512c-0f2d206fb59d", + "identifier": [ + { + "value": "Etest", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-Etest" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + }, + { + "fullUrl": "urn:uuid:919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "resource": { + "resourceType": "EpisodeOfCare", + "id": "919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "status": "planned", + "identifier": [ + { + "value": "EOC124", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + }, + { + "fullUrl": "urn:uuid:4b192760-03d2-aec4-b0a6-fde323912e1e", + "resource": { + "resourceType": "Encounter", + "id": "4b192760-03d2-aec4-b0a6-fde323912e1e", + "class": { + "code": "PRENC", + "display": "pre-admission", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "status": "planned", + "location": [ + { + "status": "planned", + "location": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "status": "completed", + "location": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/35353f20-6254-e794-98ed-8007490447e3" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + } + ], + "type": [ + { + "coding": [ + { + "code": "E", + "display": "Emergency", + "system": "http://terminology.hl7.org/CodeSystem/v2-0007" + } + ] + } + ], + "hospitalization": { + "preAdmissionIdentifier": { + "value": "1234567", + "type": { + "coding": [ + { + "code": "ANON", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Anonymous identifier" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + "reAdmission": { + "coding": [ + { + "code": "R", + "display": "Re-admission", + "system": "http://terminology.hl7.org/CodeSystem/v2-0092" + } + ] + }, + "admitSource": { + "coding": [ + { + "code": "NHS Provider-General (inc.A&E-this Hosp)" + } + ] + }, + "dischargeDisposition": { + "coding": [ + { + "code": "Admitted as Inpatient", + "display": "Sample", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ACR" + } + ] + }, + "dietPreference": [ + { + "coding": [ + { + "code": "Vegan", + "display": "Vegetarian" + } + ] + } + ], + "destination": { + "reference": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + "episodeOfCare": [ + { + "reference": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + ], + "participant": [ + { + "type": [ + { + "coding": [ + { + "code": "ATND", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", + "display": "attender" + } + ] + } + ], + "individual": { + "reference": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "CON", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "consultant" + } + ], + "individual": { + "reference": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "ADM", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "admitter" + } + ], + "individual": { + "reference": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "PART", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "Participation" + } + ], + "individual": { + "reference": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + } + ], + "serviceType": { + "coding": [ + { + "code": "SUR" + } + ] + }, + "identifier": [ + { + "value": "40007716", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + }, + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ], + "text": "visit number" + } + }, + { + "value": "50", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:r2.3", + "assigner": { + "reference": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + } + ], + "period": { + "start": "2015-02-08T15:54:19+05:30" + }, + "text": { + "status": "generated", + "div": "

Visit Description:

" + }, + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Encounter/4b192760-03d2-aec4-b0a6-fde323912e1e" + } + }, + { + "fullUrl": "urn:uuid:9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "resource": { + "resourceType": "Provenance", + "id": "9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "occurredDateTime": "2021-08-17T18:49:43.004+05:30", + "recorded": "2029-08-01T11:21:24+05:30", + "reason": [ + { + "coding": [ + { + "code": "PATRQT", + "display": "patient requested", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason" + } + ] + } + ], + "agent": [ + { + "who": { + "reference": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + } + ], + "activity": { + "text": "ADT^A31^ADT_A31" + }, + "location": { + "reference": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + }, + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c" + } + }, + { + "fullUrl": "urn:uuid:ef39f581-5e8f-3917-35a9-3443303d9eee", + "resource": { + "resourceType": "Organization", + "id": "ef39f581-5e8f-3917-35a9-3443303d9eee", + "identifier": [ + { + "value": "DRNBR", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-DRNBR" + }, + { + "value": "urn:oid:W1.2", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + } + }, + { + "fullUrl": "urn:uuid:95aea53b-8d49-d57f-d16f-4d14b914f992", + "resource": { + "resourceType": "Practitioner", + "id": "95aea53b-8d49-d57f-d16f-4d14b914f992", + "identifier": [ + { + "value": "C08", + "system": "urn:oid:W1.2", + "assigner": { + "reference": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + }, + "type": { + "coding": [ + { + "code": "ANON", + "display": "Anonymous identifier", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen", + "2ndname" + ], + "suffix": [ + "Jr", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + }, + { + "fullUrl": "urn:uuid:59d5e519-0108-5dd8-adfa-1eef5658009e", + "resource": { + "resourceType": "Location", + "id": "59d5e519-0108-5dd8-adfa-1eef5658009e", + "name": "Cona_Health", + "identifier": [ + { + "value": "urn:oid:1.3.6.1.4.1.44750.1.4", + "system": "urn:ietf:rfc:3986" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "display": "site", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + } + } + ] +} \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A31/ADT-A31-expected.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A31/ADT-A31-expected.json new file mode 100644 index 000000000..7cc3b4ad4 --- /dev/null +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A31/ADT-A31-expected.json @@ -0,0 +1,4748 @@ +{ + "resourceType": "Bundle", + "type": "batch", + "timestamp": "1989-08-18T14:41:00+05:30", + "identifier": { + "value": "MSG00001" + }, + "id": "513a3d06-5e87-6fbc-ad1b-170ab430499f", + "entry": [ + { + "fullUrl": "urn:uuid:b4ca189b-51ae-33df-cbe2-559b4423a321", + "resource": { + "resourceType": "MessageHeader", + "id": "b4ca189b-51ae-33df-cbe2-559b4423a321", + "source": { + "name": "24GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.20", + "version": "2.4.3.52854", + "software": "Rhapsody" + }, + "destination": [ + { + "name": "25GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.23", + "receiver": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + } + ], + "meta": { + "security": [ + { + "display": "SECURITY", + "system": "http://example.com/v2-to-fhirconverter/security-label" + } + ], + "tag": [ + { + "code": "P", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "A31", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ADT^A31^ADT_A31" + }, + "language": "en-US", + "sender": { + "reference": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + }, + "responsible": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + "request": { + "method": "PUT", + "url": "MessageHeader/b4ca189b-51ae-33df-cbe2-559b4423a321" + } + }, + { + "fullUrl": "urn:uuid:f65d2168-02c8-1897-210d-361176172856", + "resource": { + "resourceType": "Provenance", + "id": "f65d2168-02c8-1897-210d-361176172856", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T13:35:27.489Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ADT_A31.

" + }, + "occurredDateTime": "1989-08-18T14:41:00+05:30", + "recorded": "1989-08-18T14:41:00+05:30", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + } + ], + "activity": { + "coding": [ + { + "display": "ADT^A31^ADT_A31" + } + ] + }, + "entity": [ + { + "role": "source", + "what": { + "reference": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + } + ], + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/f65d2168-02c8-1897-210d-361176172856" + } + }, + { + "fullUrl": "urn:uuid:4356fb81-6ecd-2d70-57b1-47812638e785", + "resource": { + "resourceType": "Organization", + "id": "4356fb81-6ecd-2d70-57b1-47812638e785", + "identifier": [ + { + "value": "GHHSFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHSFacility" + }, + { + "value": "urn:oid:2.16.840.1.122848.1.30", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + } + }, + { + "fullUrl": "urn:uuid:62781ad6-3896-cb63-0178-ead0c4a432b5", + "resource": { + "resourceType": "Organization", + "id": "62781ad6-3896-cb63-0178-ead0c4a432b5", + "identifier": [ + { + "value": "GHHRFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHRFacility" + }, + { + "value": "urn:oid:2.16.840.1.1122848.1.32", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/62781ad6-3896-cb63-0178-ead0c4a432b5" + } + }, + { + "fullUrl": "urn:uuid:33532a82-d220-4c0d-1abe-53e48951c201", + "resource": { + "resourceType": "Organization", + "id": "33532a82-d220-4c0d-1abe-53e48951c201", + "name": "22 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + { + "fullUrl": "urn:uuid:527280c1-34d1-c639-e9ba-61986d28e266", + "resource": { + "resourceType": "Organization", + "id": "527280c1-34d1-c639-e9ba-61986d28e266", + "name": "23 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + }, + { + "fullUrl": "urn:uuid:503eb873-22fb-8199-ae28-3604ad59fe13", + "resource": { + "resourceType": "Device", + "id": "503eb873-22fb-8199-ae28-3604ad59fe13", + "identifier": [ + { + "value": "ADTApp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + }, + { + "fullUrl": "urn:uuid:4b549918-a84d-cdaf-e150-c773a5d306e5", + "resource": { + "resourceType": "Device", + "id": "4b549918-a84d-cdaf-e150-c773a5d306e5", + "manufacturer": "Orion", + "deviceName": [ + { + "name": "Rhapsody", + "type": "manufacturer-name" + } + ], + "version": [ + { + "value": "2.4.3.52854" + } + ], + "modelNumber": "2.4.3", + "note": [ + { + "text": "Testactivity" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/4b549918-a84d-cdaf-e150-c773a5d306e5" + } + }, + { + "fullUrl": "urn:uuid:9e909e52-61a1-be50-1878-a12ef8c36346", + "resource": { + "resourceType": "Patient", + "id": "9e909e52-61a1-be50-1878-a12ef8c36346", + "identifier": [ + { + "value": "1234567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "PATID1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "value": "123456789", + "type": { + "coding": [ + { + "code": "SS", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Social Security number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-USSSA" + }, + { + "value": "PATID567", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test2" + }, + { + "value": "PSSN123121234", + "type": { + "coding": [ + { + "code": "SB", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + }, + { + "value": "DLN-123", + "type": { + "coding": [ + { + "code": "DL" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/US", + "period": { + "end": "2001-01-23" + } + }, + { + "value": "1516", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "55121", + "type": { + "coding": [ + { + "code": "FI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Facility ID" + } + ] + } + }, + { + "value": "DB123", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:1.12", + "assigner": { + "reference": "Organization/4e68b44e-c053-02b1-6d6d-fe816f9fdfec" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "Medicare-12345", + "type": { + "coding": [ + { + "code": "MC", + "display": "Patient's Medicare number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-medicare" + }, + { + "value": "MCN-008", + "type": { + "coding": [ + { + "code": "MA", + "display": "Patient Medicaid number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/identifier-medicaid" + }, + { + "value": "MI-12345", + "type": { + "coding": [ + { + "code": "MI", + "display": "Military ID number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/identifier-military" + }, + { + "value": "PNM1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/1fca4c8f-7562-b755-9a05-5f0f49096e5b" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "name": [ + { + "family": "EVERYMAN", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official", + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + }, + { + "family": "elbert", + "given": [ + "Son" + ] + }, + { + "family": "RADIANT", + "given": [ + "LUCY" + ] + }, + { + "family": "Jack", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + } + ], + "birthDate": "1988-08-18", + "_birthDate": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime": "1988-08-18T14:41:00+05:30" + } + ] + }, + "gender": "male", + "address": [ + { + "line": [ + "1000", + "Hospital Lane", + "Ste. 123", + "Near Highway" + ], + "city": "Ann Arbor ", + "state": "MI", + "postalCode": "99999", + "country": "USA", + "type": "postal", + "district": "W", + "period": { + "start": "2000-01-10", + "end": "2000-01-20" + } + }, + { + "line": [ + "1619 SOUTH UNIVERSITY" + ], + "city": "MADISON", + "state": "WI", + "postalCode": "53703", + "country": "US" + } + ], + "telecom": [ + { + "value": "2222", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18, + "use": "home" + }, + { + "value": "12121212", + "system": "phone", + "use": "home" + }, + { + "value": "7777", + "system": "phone", + "use": "work" + }, + { + "value": "1111", + "system": "other", + "use": "work" + }, + { + "value": "89898989", + "use": "work", + "system": "email" + }, + { + "value": "8484", + "system": "email", + "use": "home" + }, + { + "value": "717171", + "system": "phone", + "use": "home" + }, + { + "value": "021212", + "system": "other", + "use": "work" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47", + "version": "v2" + }, + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47", + "version": "v2.1" + } + ], + "text": "TextInEnglish" + }, + "preferred": true + } + ], + "maritalStatus": { + "coding": [ + { + "code": "M", + "display": "Married", + "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" + } + ] + }, + "multipleBirthInteger": 2, + "deceasedDateTime": "2008-08-25T15:31:30+05:30", + "meta": { + "lastUpdated": "2005-01-10T04:05:14+05:30" + }, + "generalPractitioner": [ + { + "reference": "Organization/4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11" + }, + { + "reference": "Practitioner/76aaad38-1077-6a5c-0c5c-102ec160a60d" + } + ], + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "ombCategory", + "valueCoding": { + "code": "2028-9", + "display": "Asian", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White+Asian" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + "valueString": "SMITH--Angela--L" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", + "valueAddress": { + "text": "St. Francis Community Hospital of Lower South Side" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-religion", + "valueCodeableConcept": { + "coding": [ + { + "code": "1002", + "display": "African Religions", + "system": "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2186-5", + "display": "Non Hispanic or Latino", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "Non Hispanic or Latino" + } + ] + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/VeteranMilitaryStatus", + "valueCodeableConcept": { + "coding": [ + { + "code": "Vet123", + "display": "retired", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ART" + } + ], + "text": "retired" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-animal", + "extension": [ + { + "url": "species", + "valueCodeableConcept": { + "coding": [ + { + "code": "125097000", + "display": "Goat", + "system": "http://snomed.info/sct" + } + ], + "text": "Goat" + } + }, + { + "url": "breed", + "valueCodeableConcept": { + "coding": [ + { + "code": "4880003", + "display": "Beagle", + "system": "http://snomed.info/sct" + } + ], + "text": "Beagle" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "US", + "display": "United States of America", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "United States of America" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "CA", + "display": "Canada", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Canada" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-nationality", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "BT", + "display": "Bhutan", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Bhutan" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-congregation", + "valueString": "Methodist Church" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-importance", + "valueCodeableConcept": { + "coding": [ + { + "code": "VIP", + "display": "Very Important Person", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/L", + "version": "v1.1" + }, + { + "code": "IMP", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/DCM", + "version": "v1.2" + } + ], + "text": "Inportant Person" + } + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/patient-disabilityIndicator", + "valueBoolean": true + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/DisabilityPeriod", + "valuePeriod": { + "start": "2021-08-30", + "end": "2021-09-30" + } + } + ], + "contact": [ + { + "organization": { + "reference": "Organization/3bb64820-2a2b-956c-9f45-125ec102f353" + } + }, + { + "name": { + "family": "Evan", + "given": [ + "ADAM", + "A" + ], + "suffix": [ + "III", + "MD" + ], + "prefix": [ + "Dr." + ], + "use": "usual" + }, + "address": { + "line": [ + "2222", + "HOME", + "STREET", + "Highway" + ], + "city": "GREENSBORO", + "state": "NC", + "postalCode": "27401-1020", + "country": "US", + "use": "billing", + "district": "test", + "period": { + "start": "2000-01-10", + "end": "2005-01-11" + } + }, + "telecom": [ + { + "value": "5555", + "use": "work", + "system": "email", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "121111", + "use": "home", + "system": "phone" + }, + { + "value": "878777", + "use": "home", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "6666666", + "system": "pager", + "use": "work" + }, + { + "value": "777", + "use": "work", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 1 + }, + { + "value": "444444", + "system": "phone" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "O", + "display": "Other", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131" + } + ] + } + ], + "period": { + "start": "2021-08-18", + "end": "2021-12-18" + }, + "gender": "female" + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + { + "fullUrl": "urn:uuid:78295402-9b84-4829-b945-502ab3402de5", + "resource": { + "resourceType": "Account", + "id": "78295402-9b84-4829-b945-502ab3402de5", + "identifier": [ + { + "value": "4000776", + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Visit number" + } + ] + }, + "system": "urn:oid:2.4", + "assigner": { + "reference": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + ], + "guarantor": [ + { + "party": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "onHold": false, + "period": { + "start": "2001-04-10", + "end": "2001-04-15" + } + }, + { + "party": { + "reference": "Organization/98678cfe-0455-73c8-d2a1-2ede2d55943f" + }, + "onHold": false, + "period": { + "start": "2001-04-10", + "end": "2001-04-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/78295402-9b84-4829-b945-502ab3402de5" + } + }, + { + "fullUrl": "urn:uuid:9d4c8327-8a28-8152-1898-8251baa707b7", + "resource": { + "resourceType": "Organization", + "id": "9d4c8327-8a28-8152-1898-8251baa707b7", + "identifier": [ + { + "value": "AccMgr", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr" + }, + { + "value": "urn:oid:2.4", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + } + }, + { + "fullUrl": "urn:uuid:98678cfe-0455-73c8-d2a1-2ede2d55943f", + "resource": { + "resourceType": "Organization", + "id": "98678cfe-0455-73c8-d2a1-2ede2d55943f", + "name": "Jupiter Hospital", + "address": [ + { + "line": [ + "1619 SOUTH UNIVERSITY" + ], + "city": "MADISON", + "state": "WI", + "postalCode": "53703", + "country": "US" + } + ], + "contact": [ + { + "telecom": [ + { + "value": "000352", + "system": "phone" + }, + { + "value": "00121", + "system": "fax" + } + ], + "purpose": { + "coding": [ + { + "code": "Urgent requirement" + } + ] + } + }, + { + "name": { + "family": "RADIANT", + "given": [ + "LUCY" + ] + } + }, + { + "name": { + "family": "Ben", + "given": [ + "Charles" + ] + } + }, + { + "name": { + "family": "Ben2" + } + } + ], + "telecom": [ + { + "value": "8484", + "system": "email" + }, + { + "value": "717171", + "system": "phone" + }, + { + "value": "021212", + "system": "other" + } + ], + "identifier": [ + { + "value": "1516", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/98678cfe-0455-73c8-d2a1-2ede2d55943f" + } + }, + { + "fullUrl": "urn:uuid:b3ad3a9f-d4f6-4638-0a09-2da771733488", + "resource": { + "resourceType": "Organization", + "id": "b3ad3a9f-d4f6-4638-0a09-2da771733488", + "identifier": [ + { + "value": "test1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test1" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "fullUrl": "urn:uuid:4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11", + "resource": { + "resourceType": "Organization", + "id": "4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11", + "name": "LINDAS TEST ORGANIZATION", + "identifier": [ + { + "value": "SIISCLIENT818" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11" + } + }, + { + "fullUrl": "urn:uuid:76aaad38-1077-6a5c-0c5c-102ec160a60d", + "resource": { + "resourceType": "Practitioner", + "id": "76aaad38-1077-6a5c-0c5c-102ec160a60d", + "identifier": [ + { + "value": "88", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TE", + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Hippo", + "given": [ + "rold", + "H" + ], + "suffix": [ + "V", + "MD" + ], + "prefix": [ + "Dr" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/76aaad38-1077-6a5c-0c5c-102ec160a60d" + } + }, + { + "fullUrl": "urn:uuid:11967e28-8dd4-a112-0fdc-377866bf12a0", + "resource": { + "resourceType": "Organization", + "id": "11967e28-8dd4-a112-0fdc-377866bf12a0", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "2.16.840.1.113883.19", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + } + }, + { + "fullUrl": "urn:uuid:7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "resource": { + "resourceType": "Organization", + "id": "7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "identifier": [ + { + "value": "AccMng", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMng" + }, + { + "value": "1.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + } + }, + { + "fullUrl": "urn:uuid:0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "resource": { + "resourceType": "Organization", + "id": "0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "identifier": [ + { + "value": "PERSONNELt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSONNELt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + } + }, + { + "fullUrl": "urn:uuid:f6775f99-5279-be04-bf81-0906c81f7443", + "resource": { + "resourceType": "Practitioner", + "id": "f6775f99-5279-be04-bf81-0906c81f7443", + "identifier": [ + { + "value": "1122334", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Alaz", + "given": [ + "Mohammed", + "Mahi" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "fullUrl": "urn:uuid:c613d7b2-525f-8c08-a7ac-b2b91486e257", + "resource": { + "resourceType": "Organization", + "id": "c613d7b2-525f-8c08-a7ac-b2b91486e257", + "identifier": [ + { + "value": "TEST", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TEST" + }, + { + "value": "23.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + } + }, + { + "fullUrl": "urn:uuid:04f8cfc8-62ca-12df-63ce-6304ef577d44", + "resource": { + "resourceType": "Practitioner", + "id": "04f8cfc8-62ca-12df-63ce-6304ef577d44", + "identifier": [ + { + "value": "C006", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + }, + "type": { + "coding": [ + { + "code": "BA", + "display": "Bank Account Number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen" + ], + "prefix": [ + "Dr" + ], + "use": "anonymous" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "fullUrl": "urn:uuid:99edcabd-fbeb-7e25-f823-11da8d8ed342", + "resource": { + "resourceType": "Practitioner", + "id": "99edcabd-fbeb-7e25-f823-11da8d8ed342", + "identifier": [ + { + "value": "C008", + "system": "urn:oid:2.8", + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Condoc", + "given": [ + "leen" + ], + "prefix": [ + "Dr" + ], + "use": "temp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "fullUrl": "urn:uuid:b065b233-8738-f1ec-1314-d61e4aac2c9e", + "resource": { + "resourceType": "Practitioner", + "id": "b065b233-8738-f1ec-1314-d61e4aac2c9e", + "identifier": [ + { + "value": "37", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr", + "type": { + "coding": [ + { + "code": "ANC", + "display": "Account number Creditor", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "DISNEY", + "given": [ + "WALT" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "fullUrl": "urn:uuid:9f974d4f-47e8-21a6-e549-4de4599c3764", + "resource": { + "resourceType": "Organization", + "id": "9f974d4f-47e8-21a6-e549-4de4599c3764", + "identifier": [ + { + "value": "T123", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-T123" + }, + { + "value": "urn:oid:r2.3", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + }, + { + "fullUrl": "urn:uuid:84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "resource": { + "resourceType": "Practitioner", + "id": "84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "identifier": [ + { + "value": "Othhel", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "fullUrl": "urn:uuid:24d4bddf-a1c3-4dc8-049b-1dda7e5112b6", + "resource": { + "resourceType": "Organization", + "id": "24d4bddf-a1c3-4dc8-049b-1dda7e5112b6", + "identifier": [ + { + "value": "TE", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TE" + }, + { + "value": "Provider Master.Community Health and Hospitals", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-DNS", + "type": { + "coding": [ + { + "code": "DNS", + "display": "An Internet host name, in accordance with RFC 1035; or an IP address. Either in ASCII or as integers, with periods between components (“dotted” notation).", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/24d4bddf-a1c3-4dc8-049b-1dda7e5112b6" + } + }, + { + "fullUrl": "urn:uuid:36e3aaa4-569a-7d9d-037f-27235ed05701", + "resource": { + "resourceType": "Practitioner", + "id": "36e3aaa4-569a-7d9d-037f-27235ed05701", + "identifier": [ + { + "value": "12188", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-DNS", + "assigner": { + "reference": "Organization/24d4bddf-a1c3-4dc8-049b-1dda7e5112b6" + }, + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Hippocrates", + "given": [ + "Harold", + "H" + ], + "suffix": [ + "IV", + "MD" + ], + "prefix": [ + "Dr" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/36e3aaa4-569a-7d9d-037f-27235ed05701" + } + }, + { + "fullUrl": "urn:uuid:9172e4a0-1ca5-646d-2183-b179f4daa737", + "resource": { + "resourceType": "Location", + "id": "9172e4a0-1ca5-646d-2183-b179f4daa737", + "partOf": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + }, + "name": "HUH AE OMU", + "identifier": [ + { + "value": "urn:oid:9.8", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "fullUrl": "urn:uuid:3913ec4d-6576-5e1a-ac31-e8280583371c", + "resource": { + "resourceType": "Location", + "id": "3913ec4d-6576-5e1a-ac31-e8280583371c", + "partOf": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + }, + "name": "OMU B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "fullUrl": "urn:uuid:804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "resource": { + "resourceType": "Location", + "id": "804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "partOf": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + }, + "name": "Bed 03", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "fullUrl": "urn:uuid:c043880b-0fab-1cb8-14f7-0475282c4d0e", + "resource": { + "resourceType": "Location", + "id": "c043880b-0fab-1cb8-14f7-0475282c4d0e", + "name": "HOMERTON UNIVER", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "fullUrl": "urn:uuid:f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "resource": { + "resourceType": "Location", + "id": "f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "partOf": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + }, + "name": "Homerton UH", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "fullUrl": "urn:uuid:7e38808c-44a8-cb0c-4709-9d6092abc32c", + "resource": { + "resourceType": "Location", + "id": "7e38808c-44a8-cb0c-4709-9d6092abc32c", + "partOf": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + }, + "name": "Floor5", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "fullUrl": "urn:uuid:59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "resource": { + "resourceType": "Location", + "id": "59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "name": "4 East, room 136, bed B 4E", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + } + }, + { + "fullUrl": "urn:uuid:d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "resource": { + "resourceType": "Location", + "id": "d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "partOf": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "name": "136", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + } + }, + { + "fullUrl": "urn:uuid:5783dafa-c6c0-e673-cca4-42087ee1831b", + "resource": { + "resourceType": "Location", + "id": "5783dafa-c6c0-e673-cca4-42087ee1831b", + "partOf": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "name": "B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + } + }, + { + "fullUrl": "urn:uuid:8b39e6e5-78cd-63ab-2441-f43ca5554096", + "resource": { + "resourceType": "Location", + "id": "8b39e6e5-78cd-63ab-2441-f43ca5554096", + "name": "CommunityHospital", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + } + }, + { + "fullUrl": "urn:uuid:42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "resource": { + "resourceType": "Location", + "id": "42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "name": "Homes", + "identifier": [ + { + "value": "22", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/FDK" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + { + "fullUrl": "urn:uuid:84634858-74aa-5cdb-4547-60ec27339ac6", + "resource": { + "resourceType": "Location", + "id": "84634858-74aa-5cdb-4547-60ec27339ac6", + "name": "POC", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + } + }, + { + "fullUrl": "urn:uuid:9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "resource": { + "resourceType": "Location", + "id": "9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "partOf": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "name": "Room-2", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + } + }, + { + "fullUrl": "urn:uuid:35353f20-6254-e794-98ed-8007490447e3", + "resource": { + "resourceType": "Location", + "id": "35353f20-6254-e794-98ed-8007490447e3", + "partOf": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "name": "Bed-103", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/35353f20-6254-e794-98ed-8007490447e3" + } + }, + { + "fullUrl": "urn:uuid:055e10f1-222e-df73-2325-0e4396db1a55", + "resource": { + "resourceType": "Location", + "id": "055e10f1-222e-df73-2325-0e4396db1a55", + "name": "Greenland", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + } + }, + { + "fullUrl": "urn:uuid:1154e6b2-b022-b3be-7dce-2b940ab5376d", + "resource": { + "resourceType": "Location", + "id": "1154e6b2-b022-b3be-7dce-2b940ab5376d", + "name": "Nursing home", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + } + }, + { + "fullUrl": "urn:uuid:08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "resource": { + "resourceType": "Location", + "id": "08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "name": "Rosewood", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + } + }, + { + "fullUrl": "urn:uuid:c7f1b9ec-ffd8-321e-ad87-abafc1c1a333", + "resource": { + "resourceType": "Location", + "id": "c7f1b9ec-ffd8-321e-ad87-abafc1c1a333", + "name": "ROOM1", + "identifier": [ + { + "value": "urn:oid:2.16.840.1.113883.4.642.1.1108", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + } + }, + { + "fullUrl": "urn:uuid:6f159848-5f01-01b3-9594-80fbbe9ab510", + "resource": { + "resourceType": "Location", + "id": "6f159848-5f01-01b3-9594-80fbbe9ab510", + "partOf": { + "reference": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + }, + "name": "BED1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/6f159848-5f01-01b3-9594-80fbbe9ab510" + } + }, + { + "fullUrl": "urn:uuid:4bca6ba2-be65-ef37-3911-03b70a00a3a6", + "resource": { + "resourceType": "Location", + "id": "4bca6ba2-be65-ef37-3911-03b70a00a3a6", + "name": "FACILITY1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + } + }, + { + "fullUrl": "urn:uuid:3b0911cb-4361-cd8d-b188-463af033c699", + "resource": { + "resourceType": "Location", + "id": "3b0911cb-4361-cd8d-b188-463af033c699", + "partOf": { + "reference": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + }, + "name": "BUILDING1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + } + }, + { + "fullUrl": "urn:uuid:0d9c3424-329f-4c95-ee30-ac2da4a35bff", + "resource": { + "resourceType": "Location", + "id": "0d9c3424-329f-4c95-ee30-ac2da4a35bff", + "partOf": { + "reference": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + }, + "name": "FLOOR1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/0d9c3424-329f-4c95-ee30-ac2da4a35bff" + } + }, + { + "fullUrl": "urn:uuid:08314073-410a-3dc7-512c-0f2d206fb59d", + "resource": { + "resourceType": "Organization", + "id": "08314073-410a-3dc7-512c-0f2d206fb59d", + "identifier": [ + { + "value": "Etest", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-Etest" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + }, + { + "fullUrl": "urn:uuid:919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "resource": { + "resourceType": "EpisodeOfCare", + "id": "919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "status": "planned", + "identifier": [ + { + "value": "EOC124", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "diagnosis": [ + { + "condition": { + "reference": "Condition/481123a1-ca9c-c3c8-0284-e6926c3a50d8" + }, + "role": { + "coding": [ + { + "code": "AD", + "display": "Admission Diagnosis", + "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role" + } + ] + }, + "rank": 1 + } + ] + }, + "request": { + "method": "PUT", + "url": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + }, + { + "fullUrl": "urn:uuid:4b192760-03d2-aec4-b0a6-fde323912e1e", + "resource": { + "resourceType": "Encounter", + "id": "4b192760-03d2-aec4-b0a6-fde323912e1e", + "class": { + "code": "PRENC", + "display": "pre-admission", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "status": "planned", + "location": [ + { + "status": "planned", + "location": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "status": "completed", + "location": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/35353f20-6254-e794-98ed-8007490447e3" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/6f159848-5f01-01b3-9594-80fbbe9ab510" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/0d9c3424-329f-4c95-ee30-ac2da4a35bff" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + } + ], + "type": [ + { + "coding": [ + { + "code": "E", + "display": "Emergency", + "system": "http://terminology.hl7.org/CodeSystem/v2-0007" + } + ] + } + ], + "hospitalization": { + "preAdmissionIdentifier": { + "value": "1234567", + "type": { + "coding": [ + { + "code": "ANON", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Anonymous identifier" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + "reAdmission": { + "coding": [ + { + "code": "R", + "display": "Re-admission", + "system": "http://terminology.hl7.org/CodeSystem/v2-0092" + } + ] + }, + "admitSource": { + "coding": [ + { + "code": "NHS Provider-General (inc.A&E-this Hosp)" + } + ] + }, + "dischargeDisposition": { + "coding": [ + { + "code": "Admitted as Inpatient", + "display": "Sample", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ACR" + } + ] + }, + "dietPreference": [ + { + "coding": [ + { + "code": "Vegan", + "display": "Vegetarian" + } + ] + } + ], + "destination": { + "reference": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + "episodeOfCare": [ + { + "reference": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + ], + "participant": [ + { + "type": [ + { + "coding": [ + { + "code": "ATND", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", + "display": "attender" + } + ] + } + ], + "individual": { + "reference": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "CON", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "consultant" + } + ], + "individual": { + "reference": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "ADM", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "admitter" + } + ], + "individual": { + "reference": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "PART", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "Participation" + } + ], + "individual": { + "reference": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/36e3aaa4-569a-7d9d-037f-27235ed05701" + } + } + ], + "serviceType": { + "coding": [ + { + "code": "SUR" + } + ] + }, + "identifier": [ + { + "value": "40007716", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + }, + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ], + "text": "visit number" + } + }, + { + "value": "50", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:r2.3", + "assigner": { + "reference": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + } + ], + "period": { + "start": "2015-02-08T15:54:19+05:30" + }, + "reasonCode": [ + { + "coding": [ + { + "code": "140004", + "display": "Chronic pharyngitis", + "system": "http://snomed.info/sct" + } + ] + } + ], + "length": { + "value": 2, + "unit": "d", + "system": "http://unitsofmeasure.org/" + }, + "meta": { + "security": [ + { + "code": "N", + "display": "normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality" + } + ] + }, + "text": { + "status": "generated", + "div": "

Visit Description: Health Checkup

" + }, + "priority": { + "coding": [ + { + "code": "UR", + "display": "urgent", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActPriority", + "version": "V1.2" + }, + { + "code": "EL", + "display": "elective", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActPriority", + "version": "V1.3" + } + ] + }, + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/encounter-modeOfArrival", + "valueCoding": { + "code": "C", + "display": "Car", + "system": "http://terminology.hl7.org/CodeSystem/v2-0430" + } + } + ], + "diagnosis": [ + { + "condition": { + "reference": "Condition/481123a1-ca9c-c3c8-0284-e6926c3a50d8" + }, + "use": { + "coding": [ + { + "code": "AD", + "display": "Admission Diagnosis", + "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role" + } + ] + }, + "rank": 1 + } + ] + }, + "request": { + "method": "PUT", + "url": "Encounter/4b192760-03d2-aec4-b0a6-fde323912e1e" + } + }, + { + "fullUrl": "urn:uuid:9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "resource": { + "resourceType": "Provenance", + "id": "9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "occurredDateTime": "2021-08-17T18:49:43.004+05:30", + "recorded": "2029-08-01T11:21:24+05:30", + "reason": [ + { + "coding": [ + { + "code": "PATRQT", + "display": "patient requested", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason" + } + ] + } + ], + "agent": [ + { + "who": { + "reference": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + } + ], + "activity": { + "text": "ADT^A31^ADT_A31" + }, + "location": { + "reference": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + }, + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c" + } + }, + { + "fullUrl": "urn:uuid:ef39f581-5e8f-3917-35a9-3443303d9eee", + "resource": { + "resourceType": "Organization", + "id": "ef39f581-5e8f-3917-35a9-3443303d9eee", + "identifier": [ + { + "value": "DRNBR", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-DRNBR" + }, + { + "value": "urn:oid:W1.2", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + } + }, + { + "fullUrl": "urn:uuid:95aea53b-8d49-d57f-d16f-4d14b914f992", + "resource": { + "resourceType": "Practitioner", + "id": "95aea53b-8d49-d57f-d16f-4d14b914f992", + "identifier": [ + { + "value": "C08", + "system": "urn:oid:W1.2", + "assigner": { + "reference": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + }, + "type": { + "coding": [ + { + "code": "ANON", + "display": "Anonymous identifier", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen", + "2ndname" + ], + "suffix": [ + "Jr", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + }, + { + "fullUrl": "urn:uuid:59d5e519-0108-5dd8-adfa-1eef5658009e", + "resource": { + "resourceType": "Location", + "id": "59d5e519-0108-5dd8-adfa-1eef5658009e", + "name": "Cona_Health", + "identifier": [ + { + "value": "urn:oid:1.3.6.1.4.1.44750.1.4", + "system": "urn:ietf:rfc:3986" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "display": "site", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + } + }, + { + "fullUrl": "urn:uuid:396e6ab6-624f-44a8-841c-6e1c4cebd765", + "resource": { + "resourceType": "Practitioner", + "id": "396e6ab6-624f-44a8-841c-6e1c4cebd765", + "identifier": [ + { + "value": "1210" + } + ], + "name": [ + { + "family": "ANES", + "given": [ + "MARK", + "B" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/396e6ab6-624f-44a8-841c-6e1c4cebd765" + } + }, + { + "fullUrl": "urn:uuid:6a01e35c-52c3-892a-2ea0-0a283eb6757b", + "resource": { + "resourceType": "Practitioner", + "id": "6a01e35c-52c3-892a-2ea0-0a283eb6757b", + "identifier": [ + { + "value": "121188", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-L", + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Patrick", + "given": [ + "Harold", + "H" + ], + "suffix": [ + "IV", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/6a01e35c-52c3-892a-2ea0-0a283eb6757b" + } + }, + { + "fullUrl": "urn:uuid:a8fc538f-624b-0cee-df30-6377fabae47c", + "resource": { + "resourceType": "Practitioner", + "id": "a8fc538f-624b-0cee-df30-6377fabae47c", + "identifier": [ + { + "value": "12345689", + "type": { + "coding": [ + { + "code": "MR", + "display": "Medical record number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Everyman2", + "given": [ + "Adam2", + "A" + ], + "suffix": [ + "III", + "PHD" + ], + "prefix": [ + "DR" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/a8fc538f-624b-0cee-df30-6377fabae47c" + } + }, + { + "fullUrl": "urn:uuid:a9c75502-d60a-d89b-5912-f046100cd47e", + "resource": { + "resourceType": "Location", + "id": "a9c75502-d60a-d89b-5912-f046100cd47e", + "name": "OT", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/a9c75502-d60a-d89b-5912-f046100cd47e" + } + }, + { + "fullUrl": "urn:uuid:2e2e33a1-60f8-7e38-c827-fe070237c3fb", + "resource": { + "resourceType": "Procedure", + "id": "2e2e33a1-60f8-7e38-c827-fe070237c3fb", + "status": "unknown", + "identifier": [ + { + "value": "PR1001" + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Procedure/2e2e33a1-60f8-7e38-c827-fe070237c3fb" + } + }, + { + "fullUrl": "urn:uuid:c06db9c2-d07b-bac2-53c2-48ed83dd32b6", + "resource": { + "resourceType": "Procedure", + "id": "c06db9c2-d07b-bac2-53c2-48ed83dd32b6", + "code": { + "coding": [ + { + "code": "76164006", + "display": "Biopsy of colon (procedure)", + "system": "http://snomed.info/sct" + } + ], + "text": "Biopsy of colon, which was part of colonoscopy" + }, + "status": "completed", + "performedDateTime": "2005-01-25T16:10:00+05:30", + "category": { + "coding": [ + { + "code": "D", + "display": "Diagnostic Procedure", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/HL70230" + } + ] + }, + "performer": [ + { + "actor": { + "reference": "Practitioner/396e6ab6-624f-44a8-841c-6e1c4cebd765" + }, + "function": { + "coding": [ + { + "code": "88189002", + "system": "http://snomed.info/sct", + "display": "Anesthesiologist" + } + ], + "text": "Anesthesiologist" + } + }, + { + "actor": { + "reference": "Practitioner/6a01e35c-52c3-892a-2ea0-0a283eb6757b" + }, + "function": { + "coding": [ + { + "code": "304292004", + "system": "http://snomed.info/sct", + "display": "Surgeon" + } + ], + "text": "Surgeon" + } + }, + { + "actor": { + "reference": "Practitioner/a8fc538f-624b-0cee-df30-6377fabae47c" + }, + "function": { + "text": "Procedure Practitioner" + } + } + ], + "reasonCode": [ + { + "coding": [ + { + "code": "799008", + "display": "Sigmoid colon ulcer", + "system": "http://snomed.info/sct" + } + ] + } + ], + "identifier": [ + { + "value": "PR1006" + } + ], + "location": { + "reference": "Location/a9c75502-d60a-d89b-5912-f046100cd47e" + }, + "partOf": [ + { + "reference": "Procedure/2e2e33a1-60f8-7e38-c827-fe070237c3fb" + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Procedure/c06db9c2-d07b-bac2-53c2-48ed83dd32b6" + } + }, + { + "fullUrl": "urn:uuid:3bb64820-2a2b-956c-9f45-125ec102f353", + "resource": { + "resourceType": "Organization", + "id": "3bb64820-2a2b-956c-9f45-125ec102f353", + "name": "TestOrg", + "identifier": [ + { + "value": "Org12", + "type": { + "coding": [ + { + "code": "EI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "contact": [ + { + "name": { + "family": "Green", + "given": [ + "John", + "A" + ], + "suffix": [ + "II", + "MD" + ], + "prefix": [ + "DR" + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + "telecom": [ + { + "value": "898989898", + "system": "fax" + }, + { + "value": "88888888", + "system": "phone" + } + ], + "address": { + "line": [ + "Street1", + "Palkstreet" + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/3bb64820-2a2b-956c-9f45-125ec102f353" + } + }, + { + "fullUrl": "urn:uuid:abdee378-0d3b-337f-a31e-83e002ce92a0", + "resource": { + "resourceType": "RelatedPerson", + "id": "abdee378-0d3b-337f-a31e-83e002ce92a0", + "identifier": [ + { + "value": "1212121", + "type": { + "coding": [ + { + "code": "AND", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Account number debitor" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "12345567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/e76154d7-9084-80e4-6274-c929d7c39880" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "I-123", + "type": { + "coding": [ + { + "code": "BA", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Bank Account Number" + } + ] + } + }, + { + "value": "I-222", + "type": { + "coding": [ + { + "code": "DI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Diner’s Club card" + } + ] + } + }, + { + "value": "Security no-23", + "system": "http://hl7.org/fhir/sid/us-ssn" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "C", + "display": "Emergency Contact", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131", + "version": "9.0" + }, + { + "code": "CHILD", + "display": "child", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode", + "version": "10.0" + } + ] + }, + { + "coding": [ + { + "code": "O", + "display": "Other", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131" + } + ] + }, + { + "coding": [ + { + "code": "MTH", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "period": { + "start": "2021-08-18", + "end": "2021-12-18" + }, + "address": [ + { + "line": [ + "2222", + "HOME", + "STREET", + "Highway" + ], + "city": "GREENSBORO", + "state": "NC", + "postalCode": "27401-1020", + "country": "US", + "use": "billing", + "district": "test", + "period": { + "start": "2000-01-10", + "end": "2005-01-11" + } + }, + { + "line": [ + "111", + "Duck ST" + ], + "city": "Fowl" + }, + { + "line": [ + "Street1", + "Palkstreet" + ] + }, + { + "line": [ + "ST-2" + ] + } + ], + "telecom": [ + { + "value": "5555", + "use": "work", + "system": "email", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "121111", + "use": "home", + "system": "phone" + }, + { + "value": "878777", + "use": "home", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18 + }, + { + "value": "6666666", + "system": "pager", + "use": "work" + }, + { + "value": "898989898", + "system": "fax" + }, + { + "value": "88888888", + "system": "phone" + }, + { + "value": "777", + "use": "work", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 1 + }, + { + "value": "444444", + "system": "phone" + } + ], + "name": [ + { + "family": "Evan", + "given": [ + "ADAM", + "A" + ], + "suffix": [ + "III", + "MD" + ], + "prefix": [ + "Dr." + ], + "use": "usual" + }, + { + "family": "Green", + "given": [ + "John", + "A" + ], + "suffix": [ + "II", + "MD" + ], + "prefix": [ + "DR" + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official" + } + ], + "gender": "female", + "birthDate": "1962-01-10", + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47" + } + ] + } + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White" + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/abdee378-0d3b-337f-a31e-83e002ce92a0" + } + }, + { + "fullUrl": "urn:uuid:e76154d7-9084-80e4-6274-c929d7c39880", + "resource": { + "resourceType": "Organization", + "id": "e76154d7-9084-80e4-6274-c929d7c39880", + "identifier": [ + { + "value": "T1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-T1" + }, + { + "value": "2.16.840.1.113883.19", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/e76154d7-9084-80e4-6274-c929d7c39880" + } + }, + { + "fullUrl": "urn:uuid:f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "resource": { + "resourceType": "Organization", + "id": "f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "identifier": [ + { + "value": "NTH", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NTH" + }, + { + "value": "rt23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + } + }, + { + "fullUrl": "urn:uuid:4e68b44e-c053-02b1-6d6d-fe816f9fdfec", + "resource": { + "resourceType": "Organization", + "id": "4e68b44e-c053-02b1-6d6d-fe816f9fdfec", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "urn:oid:1.12", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4e68b44e-c053-02b1-6d6d-fe816f9fdfec" + } + }, + { + "fullUrl": "urn:uuid:e82402a9-b2d1-2a28-3250-c099d5a77bf7", + "resource": { + "resourceType": "Organization", + "id": "e82402a9-b2d1-2a28-3250-c099d5a77bf7", + "identifier": [ + { + "value": "PERSt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/e82402a9-b2d1-2a28-3250-c099d5a77bf7" + } + }, + { + "fullUrl": "urn:uuid:ce70e6c3-c190-121d-c251-e4bae5cde6a1", + "resource": { + "resourceType": "Practitioner", + "id": "ce70e6c3-c190-121d-c251-e4bae5cde6a1", + "identifier": [ + { + "value": "1134", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/e82402a9-b2d1-2a28-3250-c099d5a77bf7" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Aly", + "given": [ + "Zafar", + "Mahendra" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/ce70e6c3-c190-121d-c251-e4bae5cde6a1" + } + }, + { + "fullUrl": "urn:uuid:88a53755-c972-6904-b4ce-8884b84ddc2e", + "resource": { + "resourceType": "PractitionerRole", + "id": "88a53755-c972-6904-b4ce-8884b84ddc2e", + "code": [ + { + "coding": [ + { + "code": "ResponsibleObserver", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/ce70e6c3-c190-121d-c251-e4bae5cde6a1" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/88a53755-c972-6904-b4ce-8884b84ddc2e" + } + }, + { + "fullUrl": "urn:uuid:3e0952c6-eea0-8938-96f8-07c224bf1577", + "resource": { + "resourceType": "Practitioner", + "id": "3e0952c6-eea0-8938-96f8-07c224bf1577", + "identifier": [ + { + "value": "2234" + } + ], + "name": [ + { + "family": "Pauly", + "given": [ + "Berrie", + "Raud" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/3e0952c6-eea0-8938-96f8-07c224bf1577" + } + }, + { + "fullUrl": "urn:uuid:bc78e290-ec67-c238-1e05-aefb6b252b0c", + "resource": { + "resourceType": "PractitionerRole", + "id": "bc78e290-ec67-c238-1e05-aefb6b252b0c", + "code": [ + { + "coding": [ + { + "code": "ResponsibleObserver", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/3e0952c6-eea0-8938-96f8-07c224bf1577" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/bc78e290-ec67-c238-1e05-aefb6b252b0c" + } + }, + { + "fullUrl": "urn:uuid:fe0adb86-ebe9-6479-0055-9db8dc1ff99a", + "resource": { + "resourceType": "Device", + "id": "fe0adb86-ebe9-6479-0055-9db8dc1ff99a", + "identifier": [ + { + "value": "EI12.3", + "system": "urn:uuid:UI2", + "type": { + "coding": [ + { + "code": "GUID", + "display": "Same as UUID.", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + }, + { + "system": "urn:oid:UI1", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/fe0adb86-ebe9-6479-0055-9db8dc1ff99a" + } + }, + { + "fullUrl": "urn:uuid:45f65e47-46c4-1a54-f9fb-1321258e79b2", + "resource": { + "resourceType": "Practitioner", + "id": "45f65e47-46c4-1a54-f9fb-1321258e79b2", + "identifier": [ + { + "type": { + "coding": [ + { + "code": "MD-25" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/45f65e47-46c4-1a54-f9fb-1321258e79b2" + } + }, + { + "fullUrl": "urn:uuid:090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3", + "resource": { + "resourceType": "PractitionerRole", + "id": "090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3", + "code": [ + { + "coding": [ + { + "code": "LabMedicalDirector", + "system": "http://example.com/v2-to-fhir-converter/PractitionerRole" + } + ] + } + ], + "practitioner": { + "reference": "Practitioner/45f65e47-46c4-1a54-f9fb-1321258e79b2" + }, + "organization": { + "reference": "Organization/056aa7c7-6b75-3c67-63c5-cf9604f16d25" + } + }, + "request": { + "method": "PUT", + "url": "PractitionerRole/090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3" + } + }, + { + "fullUrl": "urn:uuid:056aa7c7-6b75-3c67-63c5-cf9604f16d25", + "resource": { + "resourceType": "Organization", + "id": "056aa7c7-6b75-3c67-63c5-cf9604f16d25", + "name": "FairOaks Hspital", + "address": [ + { + "line": [ + "Research Park", + "Fairfax" + ], + "city": "VA", + "state": "22031", + "postalCode": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/056aa7c7-6b75-3c67-63c5-cf9604f16d25" + } + }, + { + "fullUrl": "urn:uuid:07fd2dd3-dbd6-5bb1-cfda-02226795d9a0", + "resource": { + "resourceType": "Observation", + "id": "07fd2dd3-dbd6-5bb1-cfda-02226795d9a0", + "identifier": [ + { + "value": "EI21", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-OII" + }, + { + "type": { + "coding": [ + { + "code": "FILL" + } + ] + } + } + ], + "status": "unknown", + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "component": [ + { + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 60, + "code": "beats/min", + "unit": "beats/min", + "system": "urn:iso:std:iso:3986" + }, + "referenceRange": [ + { + "text": "70-80" + } + ] + }, + { + "code": { + "coding": [ + { + "code": "8867-4", + "display": "heartrate", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 120, + "code": "beats/min", + "unit": "beats/min", + "system": "urn:iso:std:iso:3986" + }, + "referenceRange": [ + { + "text": "70-80" + } + ] + } + ], + "effectiveDateTime": "1999-07-02", + "method": { + "coding": [ + { + "code": "OBS", + "display": "This is test method", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/AS4" + } + ] + }, + "device": { + "reference": "Device/fe0adb86-ebe9-6479-0055-9db8dc1ff99a" + }, + "bodySite": { + "coding": [ + { + "code": "BU", + "display": "Observation site", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/E5" + } + ] + }, + "performer": [ + { + "reference": "PractitionerRole/88a53755-c972-6904-b4ce-8884b84ddc2e" + }, + { + "reference": "PractitionerRole/bc78e290-ec67-c238-1e05-aefb6b252b0c" + }, + { + "reference": "PractitionerRole/090ea2e4-0a3a-eb7f-8f9f-16dd7d13f7f3" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "A", + "display": "Abnormal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + }, + { + "coding": [ + { + "code": "B", + "display": "Better", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } + ], + "extension": [ + { + "url": "http://example.com/v2-to-fhir-converter/Observation_Status", + "valueCodeableConcept": { + "coding": [ + { + "code": "S", + "display": "Partial", + "system": "http://terminology.hl7.org/CodeSystem/v2-0085" + } + ], + "text": "Partial" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Observation/07fd2dd3-dbd6-5bb1-cfda-02226795d9a0" + } + }, + { + "fullUrl": "urn:uuid:a0adcda8-0b28-d089-1955-c04308d5fe28", + "resource": { + "resourceType": "AllergyIntolerance", + "id": "a0adcda8-0b28-d089-1955-c04308d5fe28", + "category": [ + "environment" + ], + "type": "allergy", + "code": { + "coding": [ + { + "code": "P", + "display": "PENICILLIN", + "system": "http://terminology.hl7.org/CodeSystem/icd-o" + } + ] + }, + "reaction": [ + { + "manifestation": [ + { + "text": "CODE16" + } + ], + "onset": "2021-08-24" + } + ], + "criticality": "low", + "clinicalStatus": { + "coding": [ + { + "code": "active", + "display": "Active", + "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical" + } + ] + }, + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "AllergyIntolerance/a0adcda8-0b28-d089-1955-c04308d5fe28" + } + }, + { + "fullUrl": "urn:uuid:14493a95-7780-ead5-89cc-ad6c3bc31d51", + "resource": { + "resourceType": "Practitioner", + "id": "14493a95-7780-ead5-89cc-ad6c3bc31d51", + "identifier": [ + { + "value": "005454" + } + ], + "name": [ + { + "family": "DIAG", + "given": [ + "ROBIN", + "B" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/14493a95-7780-ead5-89cc-ad6c3bc31d51" + } + }, + { + "fullUrl": "urn:uuid:481123a1-ca9c-c3c8-0284-e6926c3a50d8", + "resource": { + "resourceType": "Condition", + "id": "481123a1-ca9c-c3c8-0284-e6926c3a50d8", + "code": { + "coding": [ + { + "code": "422504002", + "display": "Ischemic stroke(disorder)", + "system": "http://snomed.info/sct" + } + ], + "text": "Stroke" + }, + "onsetDateTime": "2004-01-25T12:50:25+05:30", + "identifier": [ + { + "value": "DI20", + "system": "urn:oid:DTUI", + "type": { + "coding": [ + { + "code": "CLIP", + "display": "Clinical laboratory Improvement Program. Allows for the ability to designate organization identifier as a “CLIP” assigned number (for labs). Used by US Department of Defense.", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "asserter": { + "reference": "Practitioner/14493a95-7780-ead5-89cc-ad6c3bc31d51" + }, + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/condition-assertedDate", + "valueDateTime": "2020-05-01T16:45:15+05:30" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/condition-dueTo", + "valueReference": { + "reference": "Condition/98e2ecfc-6e04-bc30-6624-4f3686214b22" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Condition/481123a1-ca9c-c3c8-0284-e6926c3a50d8" + } + }, + { + "fullUrl": "urn:uuid:98e2ecfc-6e04-bc30-6624-4f3686214b22", + "resource": { + "resourceType": "Condition", + "id": "98e2ecfc-6e04-bc30-6624-4f3686214b22", + "identifier": [ + { + "system": "urn:oid:UI", + "type": { + "coding": [ + { + "code": "CLIP", + "display": "Clinical laboratory Improvement Program. Allows for the ability to designate organization identifier as a “CLIP” assigned number (for labs). Used by US Department of Defense.", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "Condition/98e2ecfc-6e04-bc30-6624-4f3686214b22" + } + }, + { + "fullUrl": "urn:uuid:c073f2c1-a818-924b-8881-1481ac88d691", + "resource": { + "resourceType": "Organization", + "id": "c073f2c1-a818-924b-8881-1481ac88d691", + "name": "AuthProvider", + "identifier": [ + { + "value": "A", + "type": { + "coding": [ + { + "code": "LR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/c073f2c1-a818-924b-8881-1481ac88d691" + } + }, + { + "fullUrl": "urn:uuid:e0ba3d6b-452f-7c22-a79d-1035e4b33ceb", + "resource": { + "resourceType": "Practitioner", + "id": "e0ba3d6b-452f-7c22-a79d-1035e4b33ceb", + "identifier": [ + { + "value": "114", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-2.3", + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Beverly", + "given": [ + "Crusher", + "An" + ], + "suffix": [ + "Mr", + "AHP", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/e0ba3d6b-452f-7c22-a79d-1035e4b33ceb" + } + }, + { + "fullUrl": "urn:uuid:739ae409-c591-1a59-32ad-d2ef1b937b0f", + "resource": { + "resourceType": "ServiceRequest", + "id": "739ae409-c591-1a59-32ad-d2ef1b937b0f", + "status": "on-hold", + "intent": "order", + "identifier": [ + { + "value": "123-1", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-name" + }, + { + "value": "123-2", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-Testname" + } + ], + "authoredOn": "1990-05-01T12:16:00+05:30", + "performer": [ + { + "reference": "Organization/c073f2c1-a818-924b-8881-1481ac88d691" + }, + { + "reference": "Practitioner/e0ba3d6b-452f-7c22-a79d-1035e4b33ceb" + } + ], + "performerType": { + "coding": [ + { + "code": "EXTERNAL" + } + ] + }, + "note": [ + { + "text": "Check for metastatic disease" + } + ], + "priority": "asap", + "reasonCode": [ + { + "coding": [ + { + "code": "R-1", + "display": "Reason", + "system": "http://www.ama-assn.org/go/cpt" + } + ], + "text": "Patient has a spinal fracture" + } + ], + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "ServiceRequest/739ae409-c591-1a59-32ad-d2ef1b937b0f" + } + }, + { + "fullUrl": "urn:uuid:dfab6985-a691-c4f5-d2b2-6481fdfd59e4", + "resource": { + "resourceType": "Coverage", + "id": "dfab6985-a691-c4f5-d2b2-6481fdfd59e4", + "class": [ + { + "value": "BAV", + "name": "Blue Advantage HMO", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/coverage-class", + "code": "plan", + "display": "Plan" + } + ] + } + }, + { + "value": "PUBSUMB", + "name": "SelfPay", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/coverage-class", + "code": "group", + "display": "Group" + } + ] + } + } + ], + "network": "Blue Advantage HMO", + "period": { + "start": "1989-10-01", + "end": "2050-10-01" + }, + "type": { + "coding": [ + { + "code": "HMO", + "display": "health maintenance organization policy", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + } + ] + }, + "identifier": [ + { + "value": "PN-145", + "type": { + "coding": [ + { + "code": "PLN", + "display": "Policy Number", + "system": "http://example.com/CodeSystem/additional-identifier" + } + ] + }, + "system": "http://www.examplehealthplan.com/fhir/policyidentifier" + }, + { + "value": "HMO-12345", + "type": { + "coding": [ + { + "code": "NI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "National unique individual identifier" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.3" + }, + { + "value": "Medicare-12345", + "type": { + "coding": [ + { + "code": "MC", + "display": "Patient's Medicare number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-medicare" + }, + { + "value": "MCN-008", + "type": { + "coding": [ + { + "code": "MA", + "display": "Patient Medicaid number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/identifier-medicaid" + }, + { + "value": "PNM1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/1fca4c8f-7562-b755-9a05-5f0f49096e5b" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "costToBeneficiary": [ + { + "type": { + "coding": [ + { + "code": "DC", + "display": "direct unit cost", + "system": "http://terminology.hl7.org/CodeSystem/v2-0205" + } + ] + }, + "valueMoney": { + "value": 150, + "currency": "USD" + } + } + ], + "subscriberId": "HMO-12345", + "status": "active", + "beneficiary": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "payor": [ + { + "reference": "Organization/04a2a5f2-c971-1e42-e788-250ea487a889" + } + ], + "policyHolder": { + "reference": "Organization/4829e288-ac03-22cc-c65e-922004275fd0" + }, + "subscriber": { + "reference": "RelatedPerson/fd1eed45-4ccb-bb7c-d157-58eb0366d777" + }, + "relationship": { + "coding": [ + { + "code": "spouse", + "display": "Spouse", + "system": "http://terminology.hl7.org/CodeSystem/subscriber-relationship" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Coverage/dfab6985-a691-c4f5-d2b2-6481fdfd59e4" + } + }, + { + "fullUrl": "urn:uuid:04a2a5f2-c971-1e42-e788-250ea487a889", + "resource": { + "resourceType": "Organization", + "id": "04a2a5f2-c971-1e42-e788-250ea487a889", + "address": [ + { + "line": [ + "1979 MILKY WAY" + ], + "city": "VERONA", + "state": "WI", + "postalCode": "53593", + "country": "US" + } + ], + "contact": [ + { + "name": { + "family": "Henry", + "given": [ + "Rony", + "A" + ], + "suffix": [ + "III", + "MD" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1925-10-12" + } + } + } + ], + "telecom": [ + { + "value": "(555)555-5555", + "system": "phone" + } + ], + "identifier": [ + { + "value": "IC-1.31", + "type": { + "coding": [ + { + "code": "NIIP", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "National Insurance Payor Identifier (Payor)" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.1", + "period": { + "start": "1929-10-11", + "end": "1929-10-12" + } + } + ], + "name": "Blue Cross Blue Shield of Texas" + }, + "request": { + "method": "PUT", + "url": "Organization/04a2a5f2-c971-1e42-e788-250ea487a889" + } + }, + { + "fullUrl": "urn:uuid:4829e288-ac03-22cc-c65e-922004275fd0", + "resource": { + "resourceType": "Organization", + "id": "4829e288-ac03-22cc-c65e-922004275fd0", + "address": [ + { + "line": [ + "2000 MILKY WAY" + ], + "city": "VERONA", + "state": "WI", + "postalCode": "53593", + "country": "US" + } + ], + "name": "Sam P. Hil", + "contact": [ + { + "name": { + "family": "Richard", + "given": [ + "Paul" + ] + }, + "telecom": [ + { + "value": "254622222", + "system": "phone" + } + ] + } + ], + "telecom": [ + { + "value": "555777888", + "system": "fax" + }, + { + "system": "phone" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4829e288-ac03-22cc-c65e-922004275fd0" + } + }, + { + "fullUrl": "urn:uuid:fd1eed45-4ccb-bb7c-d157-58eb0366d777", + "resource": { + "resourceType": "RelatedPerson", + "id": "fd1eed45-4ccb-bb7c-d157-58eb0366d777", + "identifier": [ + { + "value": "HMO-12345", + "type": { + "coding": [ + { + "code": "NI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "National unique individual identifier" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.3" + }, + { + "value": "1117", + "type": { + "coding": [ + { + "code": "EI", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Employee number" + } + ] + }, + "system": "urn:oid:2.16.840.1.113883.1.4" + }, + { + "value": "1118", + "type": { + "coding": [ + { + "code": "BC", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Bank Card Number" + } + ] + } + }, + { + "value": "425-57-9745", + "type": { + "coding": [ + { + "code": "SS", + "display": "Social Security number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "SPS", + "display": "spouse", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "address": [ + { + "line": [ + "3857 Velvet Treasure Terrace" + ], + "city": "Midnight", + "state": "NC", + "postalCode": "27878", + "country": "US" + } + ], + "name": [ + { + "family": "Doe", + "given": [ + "Rosallie", + "John" + ], + "suffix": [ + "III", + "Bachelors" + ], + "prefix": [ + "Mrs." + ], + "use": "official" + } + ], + "gender": "female", + "birthDate": "1975-02-28", + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "telecom": [ + { + "value": "0005245", + "use": "work", + "system": "email" + }, + { + "system": "phone" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47" + } + ] + }, + "preferred": true + } + ] + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/fd1eed45-4ccb-bb7c-d157-58eb0366d777" + } + }, + { + "fullUrl": "urn:uuid:1fca4c8f-7562-b755-9a05-5f0f49096e5b", + "resource": { + "resourceType": "Organization", + "id": "1fca4c8f-7562-b755-9a05-5f0f49096e5b", + "identifier": [ + { + "value": "PM", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PM" + }, + { + "value": "2.6.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/1fca4c8f-7562-b755-9a05-5f0f49096e5b" + } + } + ] +} \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A47/ADT-A47-expected-2.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A47/ADT-A47-expected-2.json new file mode 100644 index 000000000..51634859b --- /dev/null +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A47/ADT-A47-expected-2.json @@ -0,0 +1,939 @@ +{ + "resourceType": "Bundle", + "type": "batch", + "timestamp": "1989-08-18T14:41:00+05:30", + "identifier": { + "value": "MSG00001" + }, + "id": "513a3d06-5e87-6fbc-ad1b-170ab430499f", + "entry": [ + { + "fullUrl": "urn:uuid:b4ca189b-51ae-33df-cbe2-559b4423a321", + "resource": { + "resourceType": "MessageHeader", + "id": "b4ca189b-51ae-33df-cbe2-559b4423a321", + "source": { + "name": "24GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.20" + }, + "destination": [ + { + "name": "25GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.23", + "receiver": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + } + ], + "meta": { + "security": [ + { + "display": "SECURITY", + "system": "http://example.com/v2-to-fhirconverter/security-label" + } + ], + "tag": [ + { + "code": "P", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "A47", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ADT^A47^ADT_A47" + }, + "language": "en-US", + "sender": { + "reference": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + }, + "responsible": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + "request": { + "method": "PUT", + "url": "MessageHeader/b4ca189b-51ae-33df-cbe2-559b4423a321" + } + }, + { + "fullUrl": "urn:uuid:f65d2168-02c8-1897-210d-361176172856", + "resource": { + "resourceType": "Provenance", + "id": "f65d2168-02c8-1897-210d-361176172856", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T13:36:10.646Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ADT_A47.

" + }, + "occurredDateTime": "1989-08-18T14:41:00+05:30", + "recorded": "1989-08-18T14:41:00+05:30", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + } + ], + "activity": { + "coding": [ + { + "display": "ADT^A47^ADT_A47" + } + ] + }, + "entity": [ + { + "role": "source", + "what": { + "reference": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + } + ], + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/f65d2168-02c8-1897-210d-361176172856" + } + }, + { + "fullUrl": "urn:uuid:4356fb81-6ecd-2d70-57b1-47812638e785", + "resource": { + "resourceType": "Organization", + "id": "4356fb81-6ecd-2d70-57b1-47812638e785", + "identifier": [ + { + "value": "GHHSFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHSFacility" + }, + { + "value": "urn:oid:2.16.840.1.122848.1.30", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + } + }, + { + "fullUrl": "urn:uuid:62781ad6-3896-cb63-0178-ead0c4a432b5", + "resource": { + "resourceType": "Organization", + "id": "62781ad6-3896-cb63-0178-ead0c4a432b5", + "identifier": [ + { + "value": "GHHRFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHRFacility" + }, + { + "value": "urn:oid:2.16.840.1.1122848.1.32", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/62781ad6-3896-cb63-0178-ead0c4a432b5" + } + }, + { + "fullUrl": "urn:uuid:33532a82-d220-4c0d-1abe-53e48951c201", + "resource": { + "resourceType": "Organization", + "id": "33532a82-d220-4c0d-1abe-53e48951c201", + "name": "22 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + { + "fullUrl": "urn:uuid:527280c1-34d1-c639-e9ba-61986d28e266", + "resource": { + "resourceType": "Organization", + "id": "527280c1-34d1-c639-e9ba-61986d28e266", + "name": "23 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + }, + { + "fullUrl": "urn:uuid:503eb873-22fb-8199-ae28-3604ad59fe13", + "resource": { + "resourceType": "Device", + "id": "503eb873-22fb-8199-ae28-3604ad59fe13", + "identifier": [ + { + "value": "ADTApp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + }, + { + "fullUrl": "urn:uuid:9e909e52-61a1-be50-1878-a12ef8c36346", + "resource": { + "resourceType": "Patient", + "id": "9e909e52-61a1-be50-1878-a12ef8c36346", + "identifier": [ + { + "value": "1234567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "PATID1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "value": "123456789", + "type": { + "coding": [ + { + "code": "SS", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Social Security number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-USSSA" + }, + { + "value": "PATID567", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test2" + }, + { + "value": "PSSN123121234", + "type": { + "coding": [ + { + "code": "SB", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + }, + { + "value": "DLN-123", + "type": { + "coding": [ + { + "code": "DL" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/US", + "period": { + "end": "2001-01-23" + } + } + ], + "name": [ + { + "family": "EVERYMAN", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official", + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + }, + { + "family": "elbert", + "given": [ + "Son" + ] + } + ], + "birthDate": "1988-08-18", + "_birthDate": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime": "1988-08-18T14:41:00+05:30" + } + ] + }, + "gender": "male", + "address": [ + { + "line": [ + "1000", + "Hospital Lane", + "Ste. 123", + "Near Highway" + ], + "city": "Ann Arbor ", + "state": "MI", + "postalCode": "99999", + "country": "USA", + "type": "postal", + "district": "W", + "period": { + "start": "2000-01-10", + "end": "2000-01-20" + } + } + ], + "telecom": [ + { + "value": "2222", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18, + "use": "home" + }, + { + "value": "12121212", + "system": "phone", + "use": "home" + }, + { + "value": "7777", + "system": "phone", + "use": "work" + }, + { + "value": "1111", + "system": "other", + "use": "work" + }, + { + "value": "89898989", + "use": "work", + "system": "email" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47", + "version": "v2" + }, + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47", + "version": "v2.1" + } + ], + "text": "TextInEnglish" + }, + "preferred": true + } + ], + "maritalStatus": { + "coding": [ + { + "code": "M", + "display": "Married", + "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" + } + ] + }, + "multipleBirthInteger": 2, + "deceasedDateTime": "2008-08-25T15:31:30+05:30", + "meta": { + "lastUpdated": "2005-01-10T04:05:14+05:30" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "ombCategory", + "valueCoding": { + "code": "2028-9", + "display": "Asian", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White+Asian" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + "valueString": "SMITH--Angela--L" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", + "valueAddress": { + "text": "St. Francis Community Hospital of Lower South Side" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-religion", + "valueCodeableConcept": { + "coding": [ + { + "code": "1002", + "display": "African Religions", + "system": "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2186-5", + "display": "Non Hispanic or Latino", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "Non Hispanic or Latino" + } + ] + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/VeteranMilitaryStatus", + "valueCodeableConcept": { + "coding": [ + { + "code": "Vet123", + "display": "retired", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ART" + } + ], + "text": "retired" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-animal", + "extension": [ + { + "url": "species", + "valueCodeableConcept": { + "coding": [ + { + "code": "125097000", + "display": "Goat", + "system": "http://snomed.info/sct" + } + ], + "text": "Goat" + } + }, + { + "url": "breed", + "valueCodeableConcept": { + "coding": [ + { + "code": "4880003", + "display": "Beagle", + "system": "http://snomed.info/sct" + } + ], + "text": "Beagle" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "US", + "display": "United States of America", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "United States of America" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "CA", + "display": "Canada", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Canada" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-nationality", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "BT", + "display": "Bhutan", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Bhutan" + } + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + { + "fullUrl": "urn:uuid:78295402-9b84-4829-b945-502ab3402de5", + "resource": { + "resourceType": "Account", + "id": "78295402-9b84-4829-b945-502ab3402de5", + "identifier": [ + { + "value": "4000776", + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Visit number" + } + ] + }, + "system": "urn:oid:2.4", + "assigner": { + "reference": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/78295402-9b84-4829-b945-502ab3402de5" + } + }, + { + "fullUrl": "urn:uuid:9d4c8327-8a28-8152-1898-8251baa707b7", + "resource": { + "resourceType": "Organization", + "id": "9d4c8327-8a28-8152-1898-8251baa707b7", + "identifier": [ + { + "value": "AccMgr", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr" + }, + { + "value": "urn:oid:2.4", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + } + }, + { + "fullUrl": "urn:uuid:b3ad3a9f-d4f6-4638-0a09-2da771733488", + "resource": { + "resourceType": "Organization", + "id": "b3ad3a9f-d4f6-4638-0a09-2da771733488", + "identifier": [ + { + "value": "test1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test1" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "fullUrl": "urn:uuid:f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "resource": { + "resourceType": "Organization", + "id": "f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "identifier": [ + { + "value": "NTH", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NTH" + }, + { + "value": "rt23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + } + }, + { + "fullUrl": "urn:uuid:62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "resource": { + "resourceType": "RelatedPerson", + "id": "62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "identifier": [ + { + "value": "1212121", + "type": { + "coding": [ + { + "code": "AND", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Account number debitor" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "relationship": [ + { + "coding": [ + { + "code": "MTH", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/62b2e1ee-a272-4ffe-692e-a1fbfd49af6a" + } + }, + { + "fullUrl": "urn:uuid:9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "resource": { + "resourceType": "Provenance", + "id": "9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "occurredDateTime": "2021-08-17T18:49:43.004+05:30", + "recorded": "2029-08-01T11:21:24+05:30", + "reason": [ + { + "coding": [ + { + "code": "PATRQT", + "display": "patient requested", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason" + } + ] + } + ], + "agent": [ + { + "who": { + "reference": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + } + ], + "activity": { + "text": "ADT^A47^ADT_A47" + }, + "location": { + "reference": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + }, + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c" + } + }, + { + "fullUrl": "urn:uuid:ef39f581-5e8f-3917-35a9-3443303d9eee", + "resource": { + "resourceType": "Organization", + "id": "ef39f581-5e8f-3917-35a9-3443303d9eee", + "identifier": [ + { + "value": "DRNBR", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-DRNBR" + }, + { + "value": "urn:oid:W1.2", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + } + }, + { + "fullUrl": "urn:uuid:95aea53b-8d49-d57f-d16f-4d14b914f992", + "resource": { + "resourceType": "Practitioner", + "id": "95aea53b-8d49-d57f-d16f-4d14b914f992", + "identifier": [ + { + "value": "C08", + "system": "urn:oid:W1.2", + "assigner": { + "reference": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + }, + "type": { + "coding": [ + { + "code": "ANON", + "display": "Anonymous identifier", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen", + "2ndname" + ], + "suffix": [ + "Jr", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + }, + { + "fullUrl": "urn:uuid:59d5e519-0108-5dd8-adfa-1eef5658009e", + "resource": { + "resourceType": "Location", + "id": "59d5e519-0108-5dd8-adfa-1eef5658009e", + "name": "Cona_Health", + "identifier": [ + { + "value": "urn:oid:1.3.6.1.4.1.44750.1.4", + "system": "urn:ietf:rfc:3986" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "display": "site", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + } + } + ] +} \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A47/ADT-A47-expected.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A47/ADT-A47-expected.json new file mode 100644 index 000000000..94fc085b7 --- /dev/null +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A47/ADT-A47-expected.json @@ -0,0 +1,1041 @@ +{ + "resourceType": "Bundle", + "type": "batch", + "timestamp": "1989-08-18T14:41:00+05:30", + "identifier": { + "value": "MSG00001" + }, + "id": "513a3d06-5e87-6fbc-ad1b-170ab430499f", + "entry": [ + { + "fullUrl": "urn:uuid:b4ca189b-51ae-33df-cbe2-559b4423a321", + "resource": { + "resourceType": "MessageHeader", + "id": "b4ca189b-51ae-33df-cbe2-559b4423a321", + "source": { + "name": "24GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.20", + "version": "2.4.3.52854", + "software": "Rhapsody" + }, + "destination": [ + { + "name": "25GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.23", + "receiver": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + } + ], + "meta": { + "security": [ + { + "display": "SECURITY", + "system": "http://example.com/v2-to-fhirconverter/security-label" + } + ], + "tag": [ + { + "code": "P", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "A47", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ADT^A47^ADT_A47" + }, + "language": "en-US", + "sender": { + "reference": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + }, + "responsible": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + "request": { + "method": "PUT", + "url": "MessageHeader/b4ca189b-51ae-33df-cbe2-559b4423a321" + } + }, + { + "fullUrl": "urn:uuid:f65d2168-02c8-1897-210d-361176172856", + "resource": { + "resourceType": "Provenance", + "id": "f65d2168-02c8-1897-210d-361176172856", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T13:36:45.495Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ADT_A47.

" + }, + "occurredDateTime": "1989-08-18T14:41:00+05:30", + "recorded": "1989-08-18T14:41:00+05:30", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + } + ], + "activity": { + "coding": [ + { + "display": "ADT^A47^ADT_A47" + } + ] + }, + "entity": [ + { + "role": "source", + "what": { + "reference": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + } + ], + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/f65d2168-02c8-1897-210d-361176172856" + } + }, + { + "fullUrl": "urn:uuid:4356fb81-6ecd-2d70-57b1-47812638e785", + "resource": { + "resourceType": "Organization", + "id": "4356fb81-6ecd-2d70-57b1-47812638e785", + "identifier": [ + { + "value": "GHHSFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHSFacility" + }, + { + "value": "urn:oid:2.16.840.1.122848.1.30", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + } + }, + { + "fullUrl": "urn:uuid:62781ad6-3896-cb63-0178-ead0c4a432b5", + "resource": { + "resourceType": "Organization", + "id": "62781ad6-3896-cb63-0178-ead0c4a432b5", + "identifier": [ + { + "value": "GHHRFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHRFacility" + }, + { + "value": "urn:oid:2.16.840.1.1122848.1.32", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/62781ad6-3896-cb63-0178-ead0c4a432b5" + } + }, + { + "fullUrl": "urn:uuid:33532a82-d220-4c0d-1abe-53e48951c201", + "resource": { + "resourceType": "Organization", + "id": "33532a82-d220-4c0d-1abe-53e48951c201", + "name": "22 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + { + "fullUrl": "urn:uuid:527280c1-34d1-c639-e9ba-61986d28e266", + "resource": { + "resourceType": "Organization", + "id": "527280c1-34d1-c639-e9ba-61986d28e266", + "name": "23 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + }, + { + "fullUrl": "urn:uuid:503eb873-22fb-8199-ae28-3604ad59fe13", + "resource": { + "resourceType": "Device", + "id": "503eb873-22fb-8199-ae28-3604ad59fe13", + "identifier": [ + { + "value": "ADTApp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + }, + { + "fullUrl": "urn:uuid:4b549918-a84d-cdaf-e150-c773a5d306e5", + "resource": { + "resourceType": "Device", + "id": "4b549918-a84d-cdaf-e150-c773a5d306e5", + "manufacturer": "Orion", + "deviceName": [ + { + "name": "Rhapsody", + "type": "manufacturer-name" + } + ], + "version": [ + { + "value": "2.4.3.52854" + } + ], + "modelNumber": "2.4.3", + "note": [ + { + "text": "Testactivity" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/4b549918-a84d-cdaf-e150-c773a5d306e5" + } + }, + { + "fullUrl": "urn:uuid:9e909e52-61a1-be50-1878-a12ef8c36346", + "resource": { + "resourceType": "Patient", + "id": "9e909e52-61a1-be50-1878-a12ef8c36346", + "identifier": [ + { + "value": "1234567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "PATID1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "value": "123456789", + "type": { + "coding": [ + { + "code": "SS", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Social Security number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-USSSA" + }, + { + "value": "PATID567", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test2" + }, + { + "value": "PSSN123121234", + "type": { + "coding": [ + { + "code": "SB", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + }, + { + "value": "DLN-123", + "type": { + "coding": [ + { + "code": "DL" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/US", + "period": { + "end": "2001-01-23" + } + } + ], + "name": [ + { + "family": "EVERYMAN", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official", + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + }, + { + "family": "elbert", + "given": [ + "Son" + ] + } + ], + "birthDate": "1988-08-18", + "_birthDate": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime": "1988-08-18T14:41:00+05:30" + } + ] + }, + "gender": "male", + "address": [ + { + "line": [ + "1000", + "Hospital Lane", + "Ste. 123", + "Near Highway" + ], + "city": "Ann Arbor ", + "state": "MI", + "postalCode": "99999", + "country": "USA", + "type": "postal", + "district": "W", + "period": { + "start": "2000-01-10", + "end": "2000-01-20" + } + } + ], + "telecom": [ + { + "value": "2222", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18, + "use": "home" + }, + { + "value": "12121212", + "system": "phone", + "use": "home" + }, + { + "value": "7777", + "system": "phone", + "use": "work" + }, + { + "value": "1111", + "system": "other", + "use": "work" + }, + { + "value": "89898989", + "use": "work", + "system": "email" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47", + "version": "v2" + }, + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47", + "version": "v2.1" + } + ], + "text": "TextInEnglish" + }, + "preferred": true + } + ], + "maritalStatus": { + "coding": [ + { + "code": "M", + "display": "Married", + "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" + } + ] + }, + "multipleBirthInteger": 2, + "deceasedDateTime": "2008-08-25T15:31:30+05:30", + "meta": { + "lastUpdated": "2005-01-10T04:05:14+05:30" + }, + "generalPractitioner": [ + { + "reference": "Organization/4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11" + }, + { + "reference": "Practitioner/76aaad38-1077-6a5c-0c5c-102ec160a60d" + } + ], + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "ombCategory", + "valueCoding": { + "code": "2028-9", + "display": "Asian", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White+Asian" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + "valueString": "SMITH--Angela--L" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", + "valueAddress": { + "text": "St. Francis Community Hospital of Lower South Side" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-religion", + "valueCodeableConcept": { + "coding": [ + { + "code": "1002", + "display": "African Religions", + "system": "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2186-5", + "display": "Non Hispanic or Latino", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "Non Hispanic or Latino" + } + ] + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/VeteranMilitaryStatus", + "valueCodeableConcept": { + "coding": [ + { + "code": "Vet123", + "display": "retired", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ART" + } + ], + "text": "retired" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-animal", + "extension": [ + { + "url": "species", + "valueCodeableConcept": { + "coding": [ + { + "code": "125097000", + "display": "Goat", + "system": "http://snomed.info/sct" + } + ], + "text": "Goat" + } + }, + { + "url": "breed", + "valueCodeableConcept": { + "coding": [ + { + "code": "4880003", + "display": "Beagle", + "system": "http://snomed.info/sct" + } + ], + "text": "Beagle" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "US", + "display": "United States of America", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "United States of America" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "CA", + "display": "Canada", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Canada" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-nationality", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "BT", + "display": "Bhutan", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Bhutan" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-congregation", + "valueString": "Methodist Church" + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + { + "fullUrl": "urn:uuid:78295402-9b84-4829-b945-502ab3402de5", + "resource": { + "resourceType": "Account", + "id": "78295402-9b84-4829-b945-502ab3402de5", + "identifier": [ + { + "value": "4000776", + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Visit number" + } + ] + }, + "system": "urn:oid:2.4", + "assigner": { + "reference": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/78295402-9b84-4829-b945-502ab3402de5" + } + }, + { + "fullUrl": "urn:uuid:9d4c8327-8a28-8152-1898-8251baa707b7", + "resource": { + "resourceType": "Organization", + "id": "9d4c8327-8a28-8152-1898-8251baa707b7", + "identifier": [ + { + "value": "AccMgr", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr" + }, + { + "value": "urn:oid:2.4", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + } + }, + { + "fullUrl": "urn:uuid:b3ad3a9f-d4f6-4638-0a09-2da771733488", + "resource": { + "resourceType": "Organization", + "id": "b3ad3a9f-d4f6-4638-0a09-2da771733488", + "identifier": [ + { + "value": "test1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test1" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "fullUrl": "urn:uuid:f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "resource": { + "resourceType": "Organization", + "id": "f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "identifier": [ + { + "value": "NTH", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NTH" + }, + { + "value": "rt23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + } + }, + { + "fullUrl": "urn:uuid:62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "resource": { + "resourceType": "RelatedPerson", + "id": "62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "identifier": [ + { + "value": "1212121", + "type": { + "coding": [ + { + "code": "AND", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Account number debitor" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "relationship": [ + { + "coding": [ + { + "code": "MTH", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/62b2e1ee-a272-4ffe-692e-a1fbfd49af6a" + } + }, + { + "fullUrl": "urn:uuid:4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11", + "resource": { + "resourceType": "Organization", + "id": "4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11", + "name": "LINDAS TEST ORGANIZATION", + "identifier": [ + { + "value": "SIISCLIENT818" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4d8d5b11-b84d-f4a3-f55a-cedc2ab2bc11" + } + }, + { + "fullUrl": "urn:uuid:76aaad38-1077-6a5c-0c5c-102ec160a60d", + "resource": { + "resourceType": "Practitioner", + "id": "76aaad38-1077-6a5c-0c5c-102ec160a60d", + "identifier": [ + { + "value": "88", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TE", + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Hippo", + "given": [ + "rold", + "H" + ], + "suffix": [ + "V", + "MD" + ], + "prefix": [ + "Dr" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/76aaad38-1077-6a5c-0c5c-102ec160a60d" + } + }, + { + "fullUrl": "urn:uuid:9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "resource": { + "resourceType": "Provenance", + "id": "9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "occurredDateTime": "2021-08-17T18:49:43.004+05:30", + "recorded": "2029-08-01T11:21:24+05:30", + "reason": [ + { + "coding": [ + { + "code": "PATRQT", + "display": "patient requested", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason" + } + ] + } + ], + "agent": [ + { + "who": { + "reference": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + } + ], + "activity": { + "text": "ADT^A47^ADT_A47" + }, + "location": { + "reference": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + }, + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c" + } + }, + { + "fullUrl": "urn:uuid:ef39f581-5e8f-3917-35a9-3443303d9eee", + "resource": { + "resourceType": "Organization", + "id": "ef39f581-5e8f-3917-35a9-3443303d9eee", + "identifier": [ + { + "value": "DRNBR", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-DRNBR" + }, + { + "value": "urn:oid:W1.2", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + } + }, + { + "fullUrl": "urn:uuid:95aea53b-8d49-d57f-d16f-4d14b914f992", + "resource": { + "resourceType": "Practitioner", + "id": "95aea53b-8d49-d57f-d16f-4d14b914f992", + "identifier": [ + { + "value": "C08", + "system": "urn:oid:W1.2", + "assigner": { + "reference": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + }, + "type": { + "coding": [ + { + "code": "ANON", + "display": "Anonymous identifier", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen", + "2ndname" + ], + "suffix": [ + "Jr", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + }, + { + "fullUrl": "urn:uuid:59d5e519-0108-5dd8-adfa-1eef5658009e", + "resource": { + "resourceType": "Location", + "id": "59d5e519-0108-5dd8-adfa-1eef5658009e", + "name": "Cona_Health", + "identifier": [ + { + "value": "urn:oid:1.3.6.1.4.1.44750.1.4", + "system": "urn:ietf:rfc:3986" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "display": "site", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + } + } + ] +} \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A60/ADT-A60-expected-2.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A60/ADT-A60-expected-2.json new file mode 100644 index 000000000..5956c616a --- /dev/null +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A60/ADT-A60-expected-2.json @@ -0,0 +1,1146 @@ +{ + "resourceType": "Bundle", + "type": "batch", + "timestamp": "1989-08-18T14:41:00+05:30", + "identifier": { + "value": "MSG00001" + }, + "id": "513a3d06-5e87-6fbc-ad1b-170ab430499f", + "entry": [ + { + "fullUrl": "urn:uuid:b4ca189b-51ae-33df-cbe2-559b4423a321", + "resource": { + "resourceType": "MessageHeader", + "id": "b4ca189b-51ae-33df-cbe2-559b4423a321", + "source": { + "name": "24GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.20" + }, + "destination": [ + { + "name": "25GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.23", + "receiver": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + } + ], + "meta": { + "security": [ + { + "display": "SECURITY", + "system": "http://example.com/v2-to-fhirconverter/security-label" + } + ], + "tag": [ + { + "code": "P", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "A60", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ADT^A60^ADT_A60" + }, + "language": "en-US", + "sender": { + "reference": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + }, + "responsible": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + "request": { + "method": "PUT", + "url": "MessageHeader/b4ca189b-51ae-33df-cbe2-559b4423a321" + } + }, + { + "fullUrl": "urn:uuid:f65d2168-02c8-1897-210d-361176172856", + "resource": { + "resourceType": "Provenance", + "id": "f65d2168-02c8-1897-210d-361176172856", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T13:37:39.013Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ADT_A60.

" + }, + "occurredDateTime": "1989-08-18T14:41:00+05:30", + "recorded": "1989-08-18T14:41:00+05:30", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + } + ], + "activity": { + "coding": [ + { + "display": "ADT^A60^ADT_A60" + } + ] + }, + "entity": [ + { + "role": "source", + "what": { + "reference": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + } + ], + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/f65d2168-02c8-1897-210d-361176172856" + } + }, + { + "fullUrl": "urn:uuid:4356fb81-6ecd-2d70-57b1-47812638e785", + "resource": { + "resourceType": "Organization", + "id": "4356fb81-6ecd-2d70-57b1-47812638e785", + "identifier": [ + { + "value": "GHHSFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHSFacility" + }, + { + "value": "urn:oid:2.16.840.1.122848.1.30", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + } + }, + { + "fullUrl": "urn:uuid:62781ad6-3896-cb63-0178-ead0c4a432b5", + "resource": { + "resourceType": "Organization", + "id": "62781ad6-3896-cb63-0178-ead0c4a432b5", + "identifier": [ + { + "value": "GHHRFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHRFacility" + }, + { + "value": "urn:oid:2.16.840.1.1122848.1.32", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/62781ad6-3896-cb63-0178-ead0c4a432b5" + } + }, + { + "fullUrl": "urn:uuid:33532a82-d220-4c0d-1abe-53e48951c201", + "resource": { + "resourceType": "Organization", + "id": "33532a82-d220-4c0d-1abe-53e48951c201", + "name": "22 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + { + "fullUrl": "urn:uuid:527280c1-34d1-c639-e9ba-61986d28e266", + "resource": { + "resourceType": "Organization", + "id": "527280c1-34d1-c639-e9ba-61986d28e266", + "name": "23 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + }, + { + "fullUrl": "urn:uuid:503eb873-22fb-8199-ae28-3604ad59fe13", + "resource": { + "resourceType": "Device", + "id": "503eb873-22fb-8199-ae28-3604ad59fe13", + "identifier": [ + { + "value": "ADTApp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + }, + { + "fullUrl": "urn:uuid:9e909e52-61a1-be50-1878-a12ef8c36346", + "resource": { + "resourceType": "Patient", + "id": "9e909e52-61a1-be50-1878-a12ef8c36346", + "identifier": [ + { + "value": "1234567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "PATID1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "value": "123456789", + "type": { + "coding": [ + { + "code": "SS", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Social Security number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-USSSA" + }, + { + "value": "PATID567", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test2" + }, + { + "value": "PSSN123121234", + "type": { + "coding": [ + { + "code": "SB", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + }, + { + "value": "DLN-123", + "type": { + "coding": [ + { + "code": "DL" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/US", + "period": { + "end": "2001-01-23" + } + } + ], + "name": [ + { + "family": "EVERYMAN", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official", + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + }, + { + "family": "elbert", + "given": [ + "Son" + ] + } + ], + "birthDate": "1988-08-18", + "_birthDate": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime": "1988-08-18T14:41:00+05:30" + } + ] + }, + "gender": "male", + "address": [ + { + "line": [ + "1000", + "Hospital Lane", + "Ste. 123", + "Near Highway" + ], + "city": "Ann Arbor", + "state": "MI", + "postalCode": "99999", + "country": "USA", + "type": "postal", + "district": "W", + "period": { + "start": "2000-01-10", + "end": "2000-01-20" + } + } + ], + "telecom": [ + { + "value": "2222", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18, + "use": "home" + }, + { + "value": "12121212", + "system": "phone", + "use": "home" + }, + { + "value": "7777", + "system": "phone", + "use": "work" + }, + { + "value": "1111", + "system": "other", + "use": "work" + }, + { + "value": "89898989", + "use": "work", + "system": "email" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47", + "version": "v2" + }, + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47", + "version": "v2.1" + } + ], + "text": "TextInEnglish" + }, + "preferred": true + } + ], + "maritalStatus": { + "coding": [ + { + "code": "M", + "display": "Married", + "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" + } + ] + }, + "multipleBirthInteger": 2, + "deceasedDateTime": "2008-08-25T15:31:30+05:30", + "meta": { + "lastUpdated": "2005-01-10T04:05:14+05:30" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "ombCategory", + "valueCoding": { + "code": "2028-9", + "display": "Asian", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White+Asian" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + "valueString": "SMITH--Angela--L" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", + "valueAddress": { + "text": "St. Francis Community Hospital of Lower South Side" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-religion", + "valueCodeableConcept": { + "coding": [ + { + "code": "1002", + "display": "African Religions", + "system": "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2186-5", + "display": "Non Hispanic or Latino", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "Non Hispanic or Latino" + } + ] + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/VeteranMilitaryStatus", + "valueCodeableConcept": { + "coding": [ + { + "code": "Vet123", + "display": "retired", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ART" + } + ], + "text": "retired" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-animal", + "extension": [ + { + "url": "species", + "valueCodeableConcept": { + "coding": [ + { + "code": "125097000", + "display": "Goat", + "system": "http://snomed.info/sct" + } + ], + "text": "Goat" + } + }, + { + "url": "breed", + "valueCodeableConcept": { + "coding": [ + { + "code": "4880003", + "display": "Beagle", + "system": "http://snomed.info/sct" + } + ], + "text": "Beagle" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "US", + "display": "United States of America", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "United States of America" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "CA", + "display": "Canada", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Canada" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-nationality", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "BT", + "display": "Bhutan", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Bhutan" + } + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + { + "fullUrl": "urn:uuid:78295402-9b84-4829-b945-502ab3402de5", + "resource": { + "resourceType": "Account", + "id": "78295402-9b84-4829-b945-502ab3402de5", + "identifier": [ + { + "value": "4000776", + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Visit number" + } + ] + }, + "system": "urn:oid:2.4", + "assigner": { + "reference": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/78295402-9b84-4829-b945-502ab3402de5" + } + }, + { + "fullUrl": "urn:uuid:9d4c8327-8a28-8152-1898-8251baa707b7", + "resource": { + "resourceType": "Organization", + "id": "9d4c8327-8a28-8152-1898-8251baa707b7", + "identifier": [ + { + "value": "AccMgr", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr" + }, + { + "value": "urn:oid:2.4", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + } + }, + { + "fullUrl": "urn:uuid:b3ad3a9f-d4f6-4638-0a09-2da771733488", + "resource": { + "resourceType": "Organization", + "id": "b3ad3a9f-d4f6-4638-0a09-2da771733488", + "identifier": [ + { + "value": "test1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test1" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "fullUrl": "urn:uuid:f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "resource": { + "resourceType": "Organization", + "id": "f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "identifier": [ + { + "value": "NTH", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NTH" + }, + { + "value": "rt23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + } + }, + { + "fullUrl": "urn:uuid:62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "resource": { + "resourceType": "RelatedPerson", + "id": "62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "identifier": [ + { + "value": "1212121", + "type": { + "coding": [ + { + "code": "AND", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Account number debitor" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "relationship": [ + { + "coding": [ + { + "code": "MTH", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/62b2e1ee-a272-4ffe-692e-a1fbfd49af6a" + } + }, + { + "fullUrl": "urn:uuid:9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "resource": { + "resourceType": "Provenance", + "id": "9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "occurredDateTime": "2021-08-17T18:49:43.004+05:30", + "recorded": "2029-08-01T11:21:24+05:30", + "reason": [ + { + "coding": [ + { + "code": "PATRQT", + "display": "patient requested", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason" + } + ] + } + ], + "agent": [ + { + "who": { + "reference": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + } + ], + "activity": { + "text": "ADT^A60^ADT_A60" + }, + "location": { + "reference": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + }, + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c" + } + }, + { + "fullUrl": "urn:uuid:ef39f581-5e8f-3917-35a9-3443303d9eee", + "resource": { + "resourceType": "Organization", + "id": "ef39f581-5e8f-3917-35a9-3443303d9eee", + "identifier": [ + { + "value": "DRNBR", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-DRNBR" + }, + { + "value": "urn:oid:W1.2", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + } + }, + { + "fullUrl": "urn:uuid:95aea53b-8d49-d57f-d16f-4d14b914f992", + "resource": { + "resourceType": "Practitioner", + "id": "95aea53b-8d49-d57f-d16f-4d14b914f992", + "identifier": [ + { + "value": "C08", + "system": "urn:oid:W1.2", + "assigner": { + "reference": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + }, + "type": { + "coding": [ + { + "code": "ANON", + "display": "Anonymous identifier", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen", + "2ndname" + ], + "suffix": [ + "Jr", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + }, + { + "fullUrl": "urn:uuid:59d5e519-0108-5dd8-adfa-1eef5658009e", + "resource": { + "resourceType": "Location", + "id": "59d5e519-0108-5dd8-adfa-1eef5658009e", + "name": "Cona_Health", + "identifier": [ + { + "value": "urn:oid:1.3.6.1.4.1.44750.1.4", + "system": "urn:ietf:rfc:3986" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "display": "site", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + } + }, + { + "fullUrl": "urn:uuid:373c1fcc-c86b-470a-6469-b7642c16262d", + "resource": { + "resourceType": "AllergyIntolerance", + "id": "373c1fcc-c86b-470a-6469-b7642c16262d", + "identifier": [ + { + "value": "56789", + "system": "urn:oid:1.3.6.1.4.1.44750.1.4", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "category": [ + "food" + ], + "code": { + "coding": [ + { + "code": "12345", + "display": "Peanut Allergy", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/L" + }, + { + "code": "91935009", + "display": "Allergy to Peanuts", + "system": "http://snomed.info/sct" + } + ] + }, + "onsetDateTime": "2018-05", + "recordedDate": "2020-10-10T19:15:00+05:30", + "verificationStatus": { + "coding": [ + { + "code": "confirmed", + "display": "Confirmed", + "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification" + } + ] + }, + "clinicalStatus": { + "coding": [ + { + "code": "active", + "display": "Active", + "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical" + } + ] + }, + "meta": { + "lastUpdated": "2020-10-15T19:15:00+05:30" + }, + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "recorder": { + "reference": "Practitioner/6c9ea0f5-1b45-04f9-e07d-bae5096b7a4a" + }, + "asserter": { + "reference": "RelatedPerson/0a6b16c1-29cf-715d-336e-ab26980ed904" + }, + "type": "allergy", + "_type": { + "extension": [ + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/allergyintolerance-type", + "valueCode": "side-effect" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "AllergyIntolerance/373c1fcc-c86b-470a-6469-b7642c16262d" + } + }, + { + "fullUrl": "urn:uuid:df03b003-6818-1abd-209e-0889025aad16", + "resource": { + "resourceType": "Organization", + "id": "df03b003-6818-1abd-209e-0889025aad16", + "identifier": [ + { + "value": "NPIID", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NPIID" + }, + { + "value": "urn:oid:2.16.840.1.113883.4.6", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/df03b003-6818-1abd-209e-0889025aad16" + } + }, + { + "fullUrl": "urn:uuid:6c9ea0f5-1b45-04f9-e07d-bae5096b7a4a", + "resource": { + "resourceType": "Practitioner", + "id": "6c9ea0f5-1b45-04f9-e07d-bae5096b7a4a", + "identifier": [ + { + "value": "9941339108", + "system": "urn:oid:2.16.840.1.113883.4.6", + "assigner": { + "reference": "Organization/df03b003-6818-1abd-209e-0889025aad16" + }, + "type": { + "coding": [ + { + "code": "NPI", + "display": "National provider identifier", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Smith", + "given": [ + "Adam", + "Mellie" + ], + "suffix": [ + "Jr", + "MD", + "GP" + ], + "prefix": [ + "Dr" + ], + "use": "official", + "period": { + "start": "2010-01-15", + "end": "2020-01-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/6c9ea0f5-1b45-04f9-e07d-bae5096b7a4a" + } + }, + { + "fullUrl": "urn:uuid:0a6b16c1-29cf-715d-336e-ab26980ed904", + "resource": { + "resourceType": "RelatedPerson", + "id": "0a6b16c1-29cf-715d-336e-ab26980ed904", + "relationship": [ + { + "coding": [ + { + "code": "SPS", + "display": "spouse", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "name": [ + { + "family": "Doe", + "given": [ + "Rosallie", + "John" + ], + "suffix": [ + "III", + "Bachelors" + ], + "prefix": [ + "Mrs." + ], + "use": "official" + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/0a6b16c1-29cf-715d-336e-ab26980ed904" + } + } + ] +} \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A60/ADT-A60-expected.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A60/ADT-A60-expected.json new file mode 100644 index 000000000..41db51003 --- /dev/null +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ADT_A60/ADT-A60-expected.json @@ -0,0 +1,2716 @@ +{ + "resourceType": "Bundle", + "type": "batch", + "timestamp": "1989-08-18T14:41:00+05:30", + "identifier": { + "value": "MSG00001" + }, + "id": "513a3d06-5e87-6fbc-ad1b-170ab430499f", + "entry": [ + { + "fullUrl": "urn:uuid:b4ca189b-51ae-33df-cbe2-559b4423a321", + "resource": { + "resourceType": "MessageHeader", + "id": "b4ca189b-51ae-33df-cbe2-559b4423a321", + "source": { + "name": "24GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.20", + "version": "2.4.3.52854", + "software": "Rhapsody" + }, + "destination": [ + { + "name": "25GHH", + "endpoint": "urn:oid:2.16.840.1.114884.10.23", + "receiver": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + } + ], + "meta": { + "security": [ + { + "display": "SECURITY", + "system": "http://example.com/v2-to-fhirconverter/security-label" + } + ], + "tag": [ + { + "code": "P", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "A60", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ADT^A60^ADT_A60" + }, + "language": "en-US", + "sender": { + "reference": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + }, + "responsible": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + "request": { + "method": "PUT", + "url": "MessageHeader/b4ca189b-51ae-33df-cbe2-559b4423a321" + } + }, + { + "fullUrl": "urn:uuid:f65d2168-02c8-1897-210d-361176172856", + "resource": { + "resourceType": "Provenance", + "id": "f65d2168-02c8-1897-210d-361176172856", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T13:38:14.075Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ADT_A60.

" + }, + "occurredDateTime": "1989-08-18T14:41:00+05:30", + "recorded": "1989-08-18T14:41:00+05:30", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + } + ], + "activity": { + "coding": [ + { + "display": "ADT^A60^ADT_A60" + } + ] + }, + "entity": [ + { + "role": "source", + "what": { + "reference": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + } + ], + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/f65d2168-02c8-1897-210d-361176172856" + } + }, + { + "fullUrl": "urn:uuid:4356fb81-6ecd-2d70-57b1-47812638e785", + "resource": { + "resourceType": "Organization", + "id": "4356fb81-6ecd-2d70-57b1-47812638e785", + "identifier": [ + { + "value": "GHHSFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHSFacility" + }, + { + "value": "urn:oid:2.16.840.1.122848.1.30", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/4356fb81-6ecd-2d70-57b1-47812638e785" + } + }, + { + "fullUrl": "urn:uuid:62781ad6-3896-cb63-0178-ead0c4a432b5", + "resource": { + "resourceType": "Organization", + "id": "62781ad6-3896-cb63-0178-ead0c4a432b5", + "identifier": [ + { + "value": "GHHRFacility", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-GHHRFacility" + }, + { + "value": "urn:oid:2.16.840.1.1122848.1.32", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "partOf": { + "reference": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + }, + "address": [ + { + "country": "USA" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/62781ad6-3896-cb63-0178-ead0c4a432b5" + } + }, + { + "fullUrl": "urn:uuid:33532a82-d220-4c0d-1abe-53e48951c201", + "resource": { + "resourceType": "Organization", + "id": "33532a82-d220-4c0d-1abe-53e48951c201", + "name": "22 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/33532a82-d220-4c0d-1abe-53e48951c201" + } + }, + { + "fullUrl": "urn:uuid:527280c1-34d1-c639-e9ba-61986d28e266", + "resource": { + "resourceType": "Organization", + "id": "527280c1-34d1-c639-e9ba-61986d28e266", + "name": "23 GHH Inc." + }, + "request": { + "method": "PUT", + "url": "Organization/527280c1-34d1-c639-e9ba-61986d28e266" + } + }, + { + "fullUrl": "urn:uuid:503eb873-22fb-8199-ae28-3604ad59fe13", + "resource": { + "resourceType": "Device", + "id": "503eb873-22fb-8199-ae28-3604ad59fe13", + "identifier": [ + { + "value": "ADTApp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/503eb873-22fb-8199-ae28-3604ad59fe13" + } + }, + { + "fullUrl": "urn:uuid:4b549918-a84d-cdaf-e150-c773a5d306e5", + "resource": { + "resourceType": "Device", + "id": "4b549918-a84d-cdaf-e150-c773a5d306e5", + "manufacturer": "Orion", + "deviceName": [ + { + "name": "Rhapsody", + "type": "manufacturer-name" + } + ], + "version": [ + { + "value": "2.4.3.52854" + } + ], + "modelNumber": "2.4.3", + "note": [ + { + "text": "Testactivity" + } + ] + }, + "request": { + "method": "PUT", + "url": "Device/4b549918-a84d-cdaf-e150-c773a5d306e5" + } + }, + { + "fullUrl": "urn:uuid:9e909e52-61a1-be50-1878-a12ef8c36346", + "resource": { + "resourceType": "Patient", + "id": "9e909e52-61a1-be50-1878-a12ef8c36346", + "identifier": [ + { + "value": "1234567", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test", + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + { + "value": "PATID1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "value": "123456789", + "type": { + "coding": [ + { + "code": "SS", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Social Security number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-USSSA" + }, + { + "value": "PATID567", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test2" + }, + { + "value": "PSSN123121234", + "type": { + "coding": [ + { + "code": "SB", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + }, + { + "value": "DLN-123", + "type": { + "coding": [ + { + "code": "DL" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/US", + "period": { + "end": "2001-01-23" + } + } + ], + "name": [ + { + "family": "EVERYMAN", + "given": [ + "ADAM", + "A", + "Addsm" + ], + "suffix": [ + "III", + "MD", + "PF" + ], + "prefix": [ + "Dr." + ], + "use": "usual", + "period": { + "start": "1924-10-12" + } + }, + { + "family": "Josh", + "given": [ + "stanley" + ], + "use": "official", + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + }, + { + "family": "elbert", + "given": [ + "Son" + ] + } + ], + "birthDate": "1988-08-18", + "_birthDate": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime": "1988-08-18T14:41:00+05:30" + } + ] + }, + "gender": "male", + "address": [ + { + "line": [ + "1000", + "Hospital Lane", + "Ste. 123", + "Near Highway" + ], + "city": "Ann Arbor", + "state": "MI", + "postalCode": "99999", + "country": "USA", + "type": "postal", + "district": "W", + "period": { + "start": "2000-01-10", + "end": "2000-01-20" + } + } + ], + "telecom": [ + { + "value": "2222", + "system": "phone", + "period": { + "start": "2001-01-10", + "end": "2002-01-10" + }, + "rank": 18, + "use": "home" + }, + { + "value": "12121212", + "system": "phone", + "use": "home" + }, + { + "value": "7777", + "system": "phone", + "use": "work" + }, + { + "value": "1111", + "system": "other", + "use": "work" + }, + { + "value": "89898989", + "use": "work", + "system": "email" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "ar", + "display": "Arabic", + "system": "urn:ietf:bcp:47", + "version": "v2" + }, + { + "code": "en", + "display": "English", + "system": "urn:ietf:bcp:47", + "version": "v2.1" + } + ], + "text": "TextInEnglish" + }, + "preferred": true + } + ], + "maritalStatus": { + "coding": [ + { + "code": "M", + "display": "Married", + "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" + } + ] + }, + "multipleBirthInteger": 2, + "deceasedDateTime": "2008-08-25T15:31:30+05:30", + "meta": { + "lastUpdated": "2005-01-10T04:05:14+05:30" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "ombCategory", + "valueCoding": { + "code": "2028-9", + "display": "Asian", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White+Asian" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + "valueString": "SMITH--Angela--L" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", + "valueAddress": { + "text": "St. Francis Community Hospital of Lower South Side" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-religion", + "valueCodeableConcept": { + "coding": [ + { + "code": "1002", + "display": "African Religions", + "system": "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2186-5", + "display": "Non Hispanic or Latino", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "Non Hispanic or Latino" + } + ] + }, + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/VeteranMilitaryStatus", + "valueCodeableConcept": { + "coding": [ + { + "code": "Vet123", + "display": "retired", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ART" + } + ], + "text": "retired" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-animal", + "extension": [ + { + "url": "species", + "valueCodeableConcept": { + "coding": [ + { + "code": "125097000", + "display": "Goat", + "system": "http://snomed.info/sct" + } + ], + "text": "Goat" + } + }, + { + "url": "breed", + "valueCodeableConcept": { + "coding": [ + { + "code": "4880003", + "display": "Beagle", + "system": "http://snomed.info/sct" + } + ], + "text": "Beagle" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "US", + "display": "United States of America", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "United States of America" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-citizenship", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "CA", + "display": "Canada", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Canada" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-nationality", + "extension": [ + { + "url": "code", + "valueCodeableConcept": { + "coding": [ + { + "code": "BT", + "display": "Bhutan", + "system": "urn:iso:std:iso:3166" + } + ], + "text": "Bhutan" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-importance", + "valueCodeableConcept": { + "coding": [ + { + "code": "VIP", + "display": "Very Important Person", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/L", + "version": "v1.1" + }, + { + "code": "IMP", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/DCM", + "version": "v1.2" + } + ], + "text": "Inportant Person" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + { + "fullUrl": "urn:uuid:78295402-9b84-4829-b945-502ab3402de5", + "resource": { + "resourceType": "Account", + "id": "78295402-9b84-4829-b945-502ab3402de5", + "identifier": [ + { + "value": "4000776", + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Visit number" + } + ] + }, + "system": "urn:oid:2.4", + "assigner": { + "reference": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/78295402-9b84-4829-b945-502ab3402de5" + } + }, + { + "fullUrl": "urn:uuid:9d4c8327-8a28-8152-1898-8251baa707b7", + "resource": { + "resourceType": "Organization", + "id": "9d4c8327-8a28-8152-1898-8251baa707b7", + "identifier": [ + { + "value": "AccMgr", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr" + }, + { + "value": "urn:oid:2.4", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9d4c8327-8a28-8152-1898-8251baa707b7" + } + }, + { + "fullUrl": "urn:uuid:b3ad3a9f-d4f6-4638-0a09-2da771733488", + "resource": { + "resourceType": "Organization", + "id": "b3ad3a9f-d4f6-4638-0a09-2da771733488", + "identifier": [ + { + "value": "test1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-test1" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/b3ad3a9f-d4f6-4638-0a09-2da771733488" + } + }, + { + "fullUrl": "urn:uuid:f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "resource": { + "resourceType": "Organization", + "id": "f3954ae4-dec6-f114-1b9e-3a8a85d93f99", + "identifier": [ + { + "value": "NTH", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NTH" + }, + { + "value": "rt23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + } + }, + { + "fullUrl": "urn:uuid:62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "resource": { + "resourceType": "RelatedPerson", + "id": "62b2e1ee-a272-4ffe-692e-a1fbfd49af6a", + "identifier": [ + { + "value": "1212121", + "type": { + "coding": [ + { + "code": "AND", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Account number debitor" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/f3954ae4-dec6-f114-1b9e-3a8a85d93f99" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + } + ], + "relationship": [ + { + "coding": [ + { + "code": "MTH", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/62b2e1ee-a272-4ffe-692e-a1fbfd49af6a" + } + }, + { + "fullUrl": "urn:uuid:11967e28-8dd4-a112-0fdc-377866bf12a0", + "resource": { + "resourceType": "Organization", + "id": "11967e28-8dd4-a112-0fdc-377866bf12a0", + "identifier": [ + { + "value": "t", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-t" + }, + { + "value": "2.16.840.1.113883.19", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + } + }, + { + "fullUrl": "urn:uuid:7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "resource": { + "resourceType": "Organization", + "id": "7452d91f-ae92-d8ce-5b4a-148be5b6538e", + "identifier": [ + { + "value": "AccMng", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMng" + }, + { + "value": "1.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + } + }, + { + "fullUrl": "urn:uuid:0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "resource": { + "resourceType": "Organization", + "id": "0ccb76ca-b97e-1c86-4617-912a6d65c1f9", + "identifier": [ + { + "value": "PERSONNELt", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-PERSONNELt" + }, + { + "value": "1.23", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + } + }, + { + "fullUrl": "urn:uuid:f6775f99-5279-be04-bf81-0906c81f7443", + "resource": { + "resourceType": "Practitioner", + "id": "f6775f99-5279-be04-bf81-0906c81f7443", + "identifier": [ + { + "value": "1122334", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/0ccb76ca-b97e-1c86-4617-912a6d65c1f9" + }, + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Alaz", + "given": [ + "Mohammed", + "Mahi" + ], + "suffix": [ + "JR", + "MD", + "Al" + ], + "prefix": [ + "Dr." + ], + "period": { + "start": "1924-10-10", + "end": "1924-10-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "fullUrl": "urn:uuid:c613d7b2-525f-8c08-a7ac-b2b91486e257", + "resource": { + "resourceType": "Organization", + "id": "c613d7b2-525f-8c08-a7ac-b2b91486e257", + "identifier": [ + { + "value": "TEST", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TEST" + }, + { + "value": "23.2", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + } + }, + { + "fullUrl": "urn:uuid:04f8cfc8-62ca-12df-63ce-6304ef577d44", + "resource": { + "resourceType": "Practitioner", + "id": "04f8cfc8-62ca-12df-63ce-6304ef577d44", + "identifier": [ + { + "value": "C006", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/c613d7b2-525f-8c08-a7ac-b2b91486e257" + }, + "type": { + "coding": [ + { + "code": "BA", + "display": "Bank Account Number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen" + ], + "prefix": [ + "Dr" + ], + "use": "anonymous" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "fullUrl": "urn:uuid:99edcabd-fbeb-7e25-f823-11da8d8ed342", + "resource": { + "resourceType": "Practitioner", + "id": "99edcabd-fbeb-7e25-f823-11da8d8ed342", + "identifier": [ + { + "value": "C008", + "system": "urn:oid:2.8", + "type": { + "coding": [ + { + "code": "BR", + "display": "Birth registry number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Condoc", + "given": [ + "leen" + ], + "prefix": [ + "Dr" + ], + "use": "temp" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "fullUrl": "urn:uuid:b065b233-8738-f1ec-1314-d61e4aac2c9e", + "resource": { + "resourceType": "Practitioner", + "id": "b065b233-8738-f1ec-1314-d61e4aac2c9e", + "identifier": [ + { + "value": "37", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr", + "type": { + "coding": [ + { + "code": "ANC", + "display": "Account number Creditor", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "DISNEY", + "given": [ + "WALT" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "fullUrl": "urn:uuid:9f974d4f-47e8-21a6-e549-4de4599c3764", + "resource": { + "resourceType": "Organization", + "id": "9f974d4f-47e8-21a6-e549-4de4599c3764", + "identifier": [ + { + "value": "T123", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-T123" + }, + { + "value": "urn:oid:r2.3", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + }, + { + "fullUrl": "urn:uuid:84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "resource": { + "resourceType": "Practitioner", + "id": "84aa3f43-eefe-c16a-90e0-8ebf2306a77d", + "identifier": [ + { + "value": "Othhel", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "fullUrl": "urn:uuid:24d4bddf-a1c3-4dc8-049b-1dda7e5112b6", + "resource": { + "resourceType": "Organization", + "id": "24d4bddf-a1c3-4dc8-049b-1dda7e5112b6", + "identifier": [ + { + "value": "TE", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-TE" + }, + { + "value": "Provider Master.Community Health and Hospitals", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-DNS", + "type": { + "coding": [ + { + "code": "DNS", + "display": "An Internet host name, in accordance with RFC 1035; or an IP address. Either in ASCII or as integers, with periods between components (“dotted” notation).", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/24d4bddf-a1c3-4dc8-049b-1dda7e5112b6" + } + }, + { + "fullUrl": "urn:uuid:36e3aaa4-569a-7d9d-037f-27235ed05701", + "resource": { + "resourceType": "Practitioner", + "id": "36e3aaa4-569a-7d9d-037f-27235ed05701", + "identifier": [ + { + "value": "12188", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-DNS", + "assigner": { + "reference": "Organization/24d4bddf-a1c3-4dc8-049b-1dda7e5112b6" + }, + "type": { + "coding": [ + { + "code": "DN", + "display": "Doctor number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Hippocrates", + "given": [ + "Harold", + "H" + ], + "suffix": [ + "IV", + "MD" + ], + "prefix": [ + "Dr" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/36e3aaa4-569a-7d9d-037f-27235ed05701" + } + }, + { + "fullUrl": "urn:uuid:9172e4a0-1ca5-646d-2183-b179f4daa737", + "resource": { + "resourceType": "Location", + "id": "9172e4a0-1ca5-646d-2183-b179f4daa737", + "partOf": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + }, + "name": "HUH AE OMU", + "identifier": [ + { + "value": "urn:oid:9.8", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "fullUrl": "urn:uuid:3913ec4d-6576-5e1a-ac31-e8280583371c", + "resource": { + "resourceType": "Location", + "id": "3913ec4d-6576-5e1a-ac31-e8280583371c", + "partOf": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + }, + "name": "OMU B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "fullUrl": "urn:uuid:804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "resource": { + "resourceType": "Location", + "id": "804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b", + "partOf": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + }, + "name": "Bed 03", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "fullUrl": "urn:uuid:c043880b-0fab-1cb8-14f7-0475282c4d0e", + "resource": { + "resourceType": "Location", + "id": "c043880b-0fab-1cb8-14f7-0475282c4d0e", + "name": "HOMERTON UNIVER", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "fullUrl": "urn:uuid:f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "resource": { + "resourceType": "Location", + "id": "f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c", + "partOf": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + }, + "name": "Homerton UH", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "fullUrl": "urn:uuid:7e38808c-44a8-cb0c-4709-9d6092abc32c", + "resource": { + "resourceType": "Location", + "id": "7e38808c-44a8-cb0c-4709-9d6092abc32c", + "partOf": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + }, + "name": "Floor5", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "fullUrl": "urn:uuid:59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "resource": { + "resourceType": "Location", + "id": "59de4aa7-44c6-860a-88ad-53ae51ef49e8", + "name": "4 East, room 136, bed B 4E", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + } + }, + { + "fullUrl": "urn:uuid:d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "resource": { + "resourceType": "Location", + "id": "d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e", + "partOf": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "name": "136", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + } + }, + { + "fullUrl": "urn:uuid:5783dafa-c6c0-e673-cca4-42087ee1831b", + "resource": { + "resourceType": "Location", + "id": "5783dafa-c6c0-e673-cca4-42087ee1831b", + "partOf": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "name": "B", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + } + }, + { + "fullUrl": "urn:uuid:8b39e6e5-78cd-63ab-2441-f43ca5554096", + "resource": { + "resourceType": "Location", + "id": "8b39e6e5-78cd-63ab-2441-f43ca5554096", + "name": "CommunityHospital", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + } + }, + { + "fullUrl": "urn:uuid:42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "resource": { + "resourceType": "Location", + "id": "42b81572-ebb4-3f14-7a91-e1f9a9c70460", + "name": "Homes", + "identifier": [ + { + "value": "22", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/FDK" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + { + "fullUrl": "urn:uuid:84634858-74aa-5cdb-4547-60ec27339ac6", + "resource": { + "resourceType": "Location", + "id": "84634858-74aa-5cdb-4547-60ec27339ac6", + "name": "POC", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + } + }, + { + "fullUrl": "urn:uuid:9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "resource": { + "resourceType": "Location", + "id": "9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42", + "partOf": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "name": "Room-2", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + } + }, + { + "fullUrl": "urn:uuid:35353f20-6254-e794-98ed-8007490447e3", + "resource": { + "resourceType": "Location", + "id": "35353f20-6254-e794-98ed-8007490447e3", + "partOf": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "name": "Bed-103", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/35353f20-6254-e794-98ed-8007490447e3" + } + }, + { + "fullUrl": "urn:uuid:055e10f1-222e-df73-2325-0e4396db1a55", + "resource": { + "resourceType": "Location", + "id": "055e10f1-222e-df73-2325-0e4396db1a55", + "name": "Greenland", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + } + }, + { + "fullUrl": "urn:uuid:1154e6b2-b022-b3be-7dce-2b940ab5376d", + "resource": { + "resourceType": "Location", + "id": "1154e6b2-b022-b3be-7dce-2b940ab5376d", + "name": "Nursing home", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + } + }, + { + "fullUrl": "urn:uuid:08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "resource": { + "resourceType": "Location", + "id": "08b7f694-ec03-e35a-d0b0-2fae5940fe37", + "name": "Rosewood", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + } + }, + { + "fullUrl": "urn:uuid:c7f1b9ec-ffd8-321e-ad87-abafc1c1a333", + "resource": { + "resourceType": "Location", + "id": "c7f1b9ec-ffd8-321e-ad87-abafc1c1a333", + "name": "ROOM1", + "identifier": [ + { + "value": "urn:oid:2.16.840.1.113883.4.642.1.1108", + "system": "urn:ietf:rfc:3986" + } + ], + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "ro" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + } + }, + { + "fullUrl": "urn:uuid:6f159848-5f01-01b3-9594-80fbbe9ab510", + "resource": { + "resourceType": "Location", + "id": "6f159848-5f01-01b3-9594-80fbbe9ab510", + "partOf": { + "reference": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + }, + "name": "BED1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bd" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/6f159848-5f01-01b3-9594-80fbbe9ab510" + } + }, + { + "fullUrl": "urn:uuid:4bca6ba2-be65-ef37-3911-03b70a00a3a6", + "resource": { + "resourceType": "Location", + "id": "4bca6ba2-be65-ef37-3911-03b70a00a3a6", + "name": "FACILITY1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "si" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + } + }, + { + "fullUrl": "urn:uuid:3b0911cb-4361-cd8d-b188-463af033c699", + "resource": { + "resourceType": "Location", + "id": "3b0911cb-4361-cd8d-b188-463af033c699", + "partOf": { + "reference": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + }, + "name": "BUILDING1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "bu" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + } + }, + { + "fullUrl": "urn:uuid:0d9c3424-329f-4c95-ee30-ac2da4a35bff", + "resource": { + "resourceType": "Location", + "id": "0d9c3424-329f-4c95-ee30-ac2da4a35bff", + "partOf": { + "reference": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + }, + "name": "FLOOR1", + "mode": "instance", + "physicalType": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type", + "code": "lvl" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/0d9c3424-329f-4c95-ee30-ac2da4a35bff" + } + }, + { + "fullUrl": "urn:uuid:08314073-410a-3dc7-512c-0f2d206fb59d", + "resource": { + "resourceType": "Organization", + "id": "08314073-410a-3dc7-512c-0f2d206fb59d", + "identifier": [ + { + "value": "Etest", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-Etest" + }, + { + "value": "2.16.1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "type": { + "coding": [ + { + "code": "HCD", + "display": "The CEN Healthcare Coding Scheme Designator", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + }, + { + "fullUrl": "urn:uuid:919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "resource": { + "resourceType": "EpisodeOfCare", + "id": "919a86bd-c9a1-86a7-2c9d-e34ae2559ffb", + "status": "planned", + "identifier": [ + { + "value": "EOC124", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/08314073-410a-3dc7-512c-0f2d206fb59d" + } + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + }, + { + "fullUrl": "urn:uuid:4b192760-03d2-aec4-b0a6-fde323912e1e", + "resource": { + "resourceType": "Encounter", + "id": "4b192760-03d2-aec4-b0a6-fde323912e1e", + "class": { + "code": "PRENC", + "display": "pre-admission", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + }, + "status": "planned", + "location": [ + { + "status": "planned", + "location": { + "reference": "Location/9172e4a0-1ca5-646d-2183-b179f4daa737" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/3913ec4d-6576-5e1a-ac31-e8280583371c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/804a03f1-4eb5-d01d-82f9-0d4b52a9ea3b" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/c043880b-0fab-1cb8-14f7-0475282c4d0e" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/f7ef3d02-a5d5-a361-e9d9-b316ba1ff78c" + } + }, + { + "status": "planned", + "location": { + "reference": "Location/7e38808c-44a8-cb0c-4709-9d6092abc32c" + } + }, + { + "status": "completed", + "location": { + "reference": "Location/59de4aa7-44c6-860a-88ad-53ae51ef49e8" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/d5dd2e32-efbc-854a-cf3c-2bd6a7ff075e" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/5783dafa-c6c0-e673-cca4-42087ee1831b" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/8b39e6e5-78cd-63ab-2441-f43ca5554096" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/84634858-74aa-5cdb-4547-60ec27339ac6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/9bbd3aa6-8cb1-1abe-2b2a-9f320c263b42" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/35353f20-6254-e794-98ed-8007490447e3" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/055e10f1-222e-df73-2325-0e4396db1a55" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/1154e6b2-b022-b3be-7dce-2b940ab5376d" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "completed", + "location": { + "reference": "Location/08b7f694-ec03-e35a-d0b0-2fae5940fe37" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": true + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/c7f1b9ec-ffd8-321e-ad87-abafc1c1a333" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/6f159848-5f01-01b3-9594-80fbbe9ab510" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/4bca6ba2-be65-ef37-3911-03b70a00a3a6" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/3b0911cb-4361-cd8d-b188-463af033c699" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + }, + { + "status": "planned", + "location": { + "reference": "Location/0d9c3424-329f-4c95-ee30-ac2da4a35bff" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/temporary-location", + "valueBoolean": false + } + ] + } + ], + "type": [ + { + "coding": [ + { + "code": "E", + "display": "Emergency", + "system": "http://terminology.hl7.org/CodeSystem/v2-0007" + } + ] + } + ], + "hospitalization": { + "preAdmissionIdentifier": { + "value": "1234567", + "type": { + "coding": [ + { + "code": "ANON", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Anonymous identifier" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/11967e28-8dd4-a112-0fdc-377866bf12a0" + }, + "period": { + "start": "1924-10-11", + "end": "1924-10-12" + } + }, + "reAdmission": { + "coding": [ + { + "code": "R", + "display": "Re-admission", + "system": "http://terminology.hl7.org/CodeSystem/v2-0092" + } + ] + }, + "admitSource": { + "coding": [ + { + "code": "NHS Provider-General (inc.A&E-this Hosp)" + } + ] + }, + "dischargeDisposition": { + "coding": [ + { + "code": "Admitted as Inpatient", + "display": "Sample", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/ACR" + } + ] + }, + "dietPreference": [ + { + "coding": [ + { + "code": "Vegan", + "display": "Vegetarian" + } + ] + } + ], + "destination": { + "reference": "Location/42b81572-ebb4-3f14-7a91-e1f9a9c70460" + } + }, + "episodeOfCare": [ + { + "reference": "EpisodeOfCare/919a86bd-c9a1-86a7-2c9d-e34ae2559ffb" + } + ], + "participant": [ + { + "type": [ + { + "coding": [ + { + "code": "ATND", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType", + "display": "attender" + } + ] + } + ], + "individual": { + "reference": "Practitioner/f6775f99-5279-be04-bf81-0906c81f7443" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/04f8cfc8-62ca-12df-63ce-6304ef577d44" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "CON", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "consultant" + } + ], + "individual": { + "reference": "Practitioner/99edcabd-fbeb-7e25-f823-11da8d8ed342" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "ADM", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "admitter" + } + ], + "individual": { + "reference": "Practitioner/b065b233-8738-f1ec-1314-d61e4aac2c9e" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "PART", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "Participation" + } + ], + "individual": { + "reference": "Practitioner/84aa3f43-eefe-c16a-90e0-8ebf2306a77d" + } + }, + { + "type": [ + { + "coding": [ + { + "code": "REF", + "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" + } + ], + "text": "referrer" + } + ], + "individual": { + "reference": "Practitioner/36e3aaa4-569a-7d9d-037f-27235ed05701" + } + } + ], + "serviceType": { + "coding": [ + { + "code": "SUR" + } + ] + }, + "identifier": [ + { + "value": "40007716", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-universal-system-HCD", + "assigner": { + "reference": "Organization/7452d91f-ae92-d8ce-5b4a-148be5b6538e" + }, + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ], + "text": "visit number" + } + }, + { + "value": "50", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "urn:oid:r2.3", + "assigner": { + "reference": "Organization/9f974d4f-47e8-21a6-e549-4de4599c3764" + } + } + ], + "period": { + "start": "2015-02-08T15:54:19+05:30" + }, + "reasonCode": [ + { + "coding": [ + { + "code": "140004", + "display": "Chronic pharyngitis", + "system": "http://snomed.info/sct" + } + ] + } + ], + "length": { + "value": 2, + "unit": "d", + "system": "http://unitsofmeasure.org/" + }, + "meta": { + "security": [ + { + "code": "N", + "display": "normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality" + } + ] + }, + "text": { + "status": "generated", + "div": "

Visit Description: Health Checkup

" + }, + "priority": { + "coding": [ + { + "code": "UR", + "display": "urgent", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActPriority", + "version": "V1.2" + }, + { + "code": "EL", + "display": "elective", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActPriority", + "version": "V1.3" + } + ] + }, + "subject": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/encounter-modeOfArrival", + "valueCoding": { + "code": "C", + "display": "Car", + "system": "http://terminology.hl7.org/CodeSystem/v2-0430" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Encounter/4b192760-03d2-aec4-b0a6-fde323912e1e" + } + }, + { + "fullUrl": "urn:uuid:9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "resource": { + "resourceType": "Provenance", + "id": "9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c", + "occurredDateTime": "2021-08-17T18:49:43.004+05:30", + "recorded": "2029-08-01T11:21:24+05:30", + "reason": [ + { + "coding": [ + { + "code": "PATRQT", + "display": "patient requested", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason" + } + ] + } + ], + "agent": [ + { + "who": { + "reference": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + } + ], + "activity": { + "text": "ADT^A60^ADT_A60" + }, + "location": { + "reference": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + }, + "target": [ + { + "reference": "Bundle/513a3d06-5e87-6fbc-ad1b-170ab430499f" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/9f6be243-c2fa-f8c8-0a7a-d168e98bdd4c" + } + }, + { + "fullUrl": "urn:uuid:ef39f581-5e8f-3917-35a9-3443303d9eee", + "resource": { + "resourceType": "Organization", + "id": "ef39f581-5e8f-3917-35a9-3443303d9eee", + "identifier": [ + { + "value": "DRNBR", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-DRNBR" + }, + { + "value": "urn:oid:W1.2", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + } + }, + { + "fullUrl": "urn:uuid:95aea53b-8d49-d57f-d16f-4d14b914f992", + "resource": { + "resourceType": "Practitioner", + "id": "95aea53b-8d49-d57f-d16f-4d14b914f992", + "identifier": [ + { + "value": "C08", + "system": "urn:oid:W1.2", + "assigner": { + "reference": "Organization/ef39f581-5e8f-3917-35a9-3443303d9eee" + }, + "type": { + "coding": [ + { + "code": "ANON", + "display": "Anonymous identifier", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Woolfson", + "given": [ + "Kathleen", + "2ndname" + ], + "suffix": [ + "Jr", + "MD" + ], + "prefix": [ + "Dr" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/95aea53b-8d49-d57f-d16f-4d14b914f992" + } + }, + { + "fullUrl": "urn:uuid:59d5e519-0108-5dd8-adfa-1eef5658009e", + "resource": { + "resourceType": "Location", + "id": "59d5e519-0108-5dd8-adfa-1eef5658009e", + "name": "Cona_Health", + "identifier": [ + { + "value": "urn:oid:1.3.6.1.4.1.44750.1.4", + "system": "urn:ietf:rfc:3986" + } + ], + "physicalType": { + "coding": [ + { + "code": "si", + "display": "site", + "system": "http://terminology.hl7.org/CodeSystem/location-physical-type" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "Location/59d5e519-0108-5dd8-adfa-1eef5658009e" + } + }, + { + "fullUrl": "urn:uuid:373c1fcc-c86b-470a-6469-b7642c16262d", + "resource": { + "resourceType": "AllergyIntolerance", + "id": "373c1fcc-c86b-470a-6469-b7642c16262d", + "identifier": [ + { + "value": "56789", + "system": "urn:oid:1.3.6.1.4.1.44750.1.4", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "category": [ + "food" + ], + "code": { + "coding": [ + { + "code": "12345", + "display": "Peanut Allergy", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/L" + }, + { + "code": "91935009", + "display": "Allergy to Peanuts", + "system": "http://snomed.info/sct" + } + ] + }, + "reaction": [ + { + "severity": "mild", + "description": "Allergy+No Action taken", + "manifestation": [ + { + "coding": [ + { + "code": "34567", + "display": "Skin Rashness", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/L" + } + ] + } + ] + } + ], + "onsetDateTime": "2018-05", + "recordedDate": "2020-10-10T19:15:00+05:30", + "verificationStatus": { + "coding": [ + { + "code": "confirmed", + "display": "Confirmed", + "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification" + } + ] + }, + "clinicalStatus": { + "coding": [ + { + "code": "active", + "display": "Active", + "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical" + } + ] + }, + "meta": { + "lastUpdated": "2020-10-15T19:15:00+05:30" + }, + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + }, + "recorder": { + "reference": "Practitioner/6c9ea0f5-1b45-04f9-e07d-bae5096b7a4a" + }, + "asserter": { + "reference": "RelatedPerson/0a6b16c1-29cf-715d-336e-ab26980ed904" + }, + "type": "allergy", + "_type": { + "extension": [ + { + "url": "http://example.com/v2-to-fhir-converter/StructureDefinition/allergyintolerance-type", + "valueCode": "side-effect" + } + ] + }, + "note": [ + { + "text": "Allergy to peanuts observed.", + "time": "2020-10-10T19:15:00+05:30", + "authorReference": { + "reference": "Practitioner/6c9ea0f5-1b45-04f9-e07d-bae5096b7a4a" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "AllergyIntolerance/373c1fcc-c86b-470a-6469-b7642c16262d" + } + }, + { + "fullUrl": "urn:uuid:df03b003-6818-1abd-209e-0889025aad16", + "resource": { + "resourceType": "Organization", + "id": "df03b003-6818-1abd-209e-0889025aad16", + "identifier": [ + { + "value": "NPIID", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NPIID" + }, + { + "value": "urn:oid:2.16.840.1.113883.4.6", + "system": "urn:ietf:rfc:3986", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/df03b003-6818-1abd-209e-0889025aad16" + } + }, + { + "fullUrl": "urn:uuid:6c9ea0f5-1b45-04f9-e07d-bae5096b7a4a", + "resource": { + "resourceType": "Practitioner", + "id": "6c9ea0f5-1b45-04f9-e07d-bae5096b7a4a", + "identifier": [ + { + "value": "9941339108", + "system": "urn:oid:2.16.840.1.113883.4.6", + "assigner": { + "reference": "Organization/df03b003-6818-1abd-209e-0889025aad16" + }, + "type": { + "coding": [ + { + "code": "NPI", + "display": "National provider identifier", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Smith", + "given": [ + "Adam", + "Mellie" + ], + "suffix": [ + "Jr", + "MD", + "GP" + ], + "prefix": [ + "Dr" + ], + "use": "official", + "period": { + "start": "2010-01-15", + "end": "2020-01-15" + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/6c9ea0f5-1b45-04f9-e07d-bae5096b7a4a" + } + }, + { + "fullUrl": "urn:uuid:0a6b16c1-29cf-715d-336e-ab26980ed904", + "resource": { + "resourceType": "RelatedPerson", + "id": "0a6b16c1-29cf-715d-336e-ab26980ed904", + "relationship": [ + { + "coding": [ + { + "code": "SPS", + "display": "spouse", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "name": [ + { + "family": "Doe", + "given": [ + "Rosallie", + "John" + ], + "suffix": [ + "III", + "Bachelors" + ], + "prefix": [ + "Mrs." + ], + "use": "official" + } + ], + "patient": { + "reference": "Patient/9e909e52-61a1-be50-1878-a12ef8c36346" + } + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/0a6b16c1-29cf-715d-336e-ab26980ed904" + } + } + ] +} \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/OML_O21/MDHHS-OML-O21-1-expected.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/OML_O21/MDHHS-OML-O21-1-expected.json index 3df338b56..9cc659b9a 100644 --- a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/OML_O21/MDHHS-OML-O21-1-expected.json +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/OML_O21/MDHHS-OML-O21-1-expected.json @@ -1,251 +1,361 @@ { - "resourceType": "Bundle", - "type": "batch", - "timestamp": "2016-03-09T07:04:05+08:00", - "identifier": { - "value": "TC09SAPartAIG030101AA" - }, - "entry": [ - { - "fullUrl": "urn:uuid:6eda7d2f-32f8-a6c7-5125-d59f65a25c97", - "resource": { - "resourceType": "MessageHeader", - "id": "6eda7d2f-32f8-a6c7-5125-d59f65a25c97", - "source": { - "name": "MDHHSDataHub" + "resourceType": "Bundle", + "type": "batch", + "timestamp": "2016-03-09T04:34:05+05:30", + "identifier": { + "value": "TC09SAPartAIG030101AA" + }, + "entry": [ + { + "fullUrl": "urn:uuid:6eda7d2f-32f8-a6c7-5125-d59f65a25c97", + "resource": { + "resourceType": "MessageHeader", + "id": "6eda7d2f-32f8-a6c7-5125-d59f65a25c97", + "source": { + "name": "MDHHSDataHub", + "_endpoint": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } + ] + } + }, + "destination": [ + { + "name": "LAN", + "endpoint": "unknown", + "receiver": { + "reference": "Organization/d6043a57-a50e-abc1-6fcf-96fff9d1bfb0" + } + } + ], + "meta": { + "tag": [ + { + "code": "T", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "O21", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "OML^O21^OML_O21" + }, + "sender": { + "reference": "Organization/3ec1a91c-4720-6f8c-d861-4fa35aff66a7" + } + }, + "request": { + "method": "PUT", + "url": "MessageHeader/6eda7d2f-32f8-a6c7-5125-d59f65a25c97" + } }, - "destination": [ - { - "name": "LAN" - } - ], - "meta": { - "tag": [ - { - "code": "T", - "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + { + "fullUrl": "urn:uuid:97997f4d-5259-b974-5a44-1b7450c2f4ab", + "resource": { + "resourceType": "Patient", + "id": "97997f4d-5259-b974-5a44-1b7450c2f4ab", + "identifier": [ + { + "value": "MRNTC09SA-Part A" + } + ], + "name": [ + { + "family": "Shine", + "given": [ + "Baby Girl" + ], + "use": "official" + } + ], + "birthDate": "2016-03-08", + "_birthDate": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime": "2016-03-09T01:34:05+05:30" + } + ] + }, + "gender": "female", + "address": [ + { + "line": [ + "123 Main Street", + "Apartment 3-C" + ], + "city": "Oldtown", + "state": "MI", + "postalCode": "48917", + "country": "USA", + "use": "home" + } + ], + "telecom": [ + { + "use": "home", + "system": "phone" + }, + { + "use": "work", + "system": "phone" + } + ], + "deceasedBoolean": false, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + "valueString": "Honey" + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2186-5", + "display": "Non Hispanic or Latino", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "Non Hispanic or Latino" + } + ] + } + ], + "contact": [ + { + "name": { + "family": "Shine", + "given": [ + "Sarah" + ] + }, + "address": { + "line": [ + "123 Main Street", + "Apartment 3-C" + ], + "city": "Oldtown", + "state": "MI", + "postalCode": "48917", + "country": "USA" + }, + "telecom": [ + { + "use": "home", + "system": "phone" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "E", + "display": "Employer", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131" + } + ] + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/97997f4d-5259-b974-5a44-1b7450c2f4ab" } - ] }, - "eventCoding": { - "code": "O21", - "system": "http://terminology.hl7.org/CodeSystem/v2-0003" - } - }, - "request": { - "method": "PUT", - "url": "MessageHeader/6eda7d2f-32f8-a6c7-5125-d59f65a25c97" - } - }, - { - "fullUrl": "urn:uuid:97997f4d-5259-b974-5a44-1b7450c2f4ab", - "resource": { - "resourceType": "Patient", - "id": "97997f4d-5259-b974-5a44-1b7450c2f4ab", - "identifier": [ - { - "value": "MRNTC09SA-Part A" - } - ], - "name": [ - { - "family": "Shine", - "given": [ - "Baby Girl" - ], - "use": "official" - } - ], - "birthDate": "2016-03-08", - "gender": "female", - "address": [ - { - "line": [ - "123 Main Street", - "Apartment 3-C" - ], - "city": "Oldtown", - "state": "MI", - "postalCode": "48917", - "country": "USA", - "use": "home" - } - ], - "telecom": [ - { - "use": "home" - }, - { - "use": "work" - } - ], - "deceasedBoolean": "false", - "contact": [ - { - "name": { - "family": "Shine", - "given": [ - "Sarah" - ] + { + "fullUrl": "urn:uuid:", + "resource": { + "resourceType": "Practitioner" }, - "address": { - "line": [ - "123 Main Street", - "Apartment 3-C" - ], - "city": "Oldtown", - "state": "MI", - "postalCode": "48917", - "country": "USA" + "request": { + "method": "PUT", + "url": "Practitioner/" + } + }, + { + "fullUrl": "urn:uuid:", + "resource": { + "resourceType": "Location" }, - "relationship": [ - { - "coding": [ - { - "code": "E", - "display": "Employer", - "system": "http://terminology.hl7.org/CodeSystem/v2-0131" - } + "request": { + "method": "PUT", + "url": "Location/" + } + }, + { + "fullUrl": "urn:uuid:1bf1c1fb-5a57-2c41-d065-7740bdefa1b2", + "resource": { + "resourceType": "Provenance", + "id": "1bf1c1fb-5a57-2c41-d065-7740bdefa1b2", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T13:40:34.155Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: OML_O21.

" + }, + "occurredDateTime": "2016-03-09T04:34:05+05:30", + "recorded": "2016-03-09T04:34:05+05:30", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/3ec1a91c-4720-6f8c-d861-4fa35aff66a7" + } + } + ], + "activity": { + "coding": [ + { + "display": "OML^O21^OML_O21" + } + ] + }, + "target": [ + { + "reference": "Bundle/" + } ] - } - ] - } - ] - }, - "request": { - "method": "PUT", - "url": "Patient/97997f4d-5259-b974-5a44-1b7450c2f4ab" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Practitioner" - }, - "request": { - "method": "PUT", - "url": "Practitioner/" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Location" - }, - "request": { - "method": "PUT", - "url": "Location/" - } - }, - { - "fullUrl": "urn:uuid:7bed24f6-d6fa-1218-ced1-b5d66ac0f024", - "resource": { - "resourceType": "Provenance", - "id": "7bed24f6-d6fa-1218-ced1-b5d66ac0f024", - "text": { - "status": "generated", - "div": "

Resource bundle generated on GENERATED_INSTANT_PLACEHOLDER using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: TEMPLATE_URL_PLACEHOLDER.Root template: OML_O21.

" + }, + "request": { + "method": "PUT", + "url": "Provenance/1bf1c1fb-5a57-2c41-d065-7740bdefa1b2" + } }, - "recorded": "2016-03-09T07:04:05+08:00" - }, - "request": { - "method": "PUT", - "url": "Provenance/7bed24f6-d6fa-1218-ced1-b5d66ac0f024" - } - }, - { - "fullUrl": "urn:uuid:d26a5004-0934-26f5-0201-4e302d6163c4", - "resource": { - "resourceType": "Account", - "id": "d26a5004-0934-26f5-0201-4e302d6163c4", - "subject": [ - { - "reference": "Patient/97997f4d-5259-b974-5a44-1b7450c2f4ab" - } - ] - }, - "request": { - "method": "PUT", - "url": "Account/d26a5004-0934-26f5-0201-4e302d6163c4" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Encounter", - "status": "unknown", - "subject": { - "reference": "Patient/97997f4d-5259-b974-5a44-1b7450c2f4ab" - } - }, - "request": { - "method": "PUT", - "url": "Encounter/" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Organization" - }, - "request": { - "method": "PUT", - "url": "Organization/" - } - }, - { - "fullUrl": "urn:uuid:39780c38-eef5-37af-195d-4a60184c0354", - "resource": { - "resourceType": "RelatedPerson", - "id": "39780c38-eef5-37af-195d-4a60184c0354", - "relationship": [ - { - "coding": [ - { - "code": "MTH", - "display": "mother", - "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" - } - ] - }, - { - "coding": [ - { - "code": "E", - "display": "Employer", - "system": "http://terminology.hl7.org/CodeSystem/v2-0131" - } - ] - } - ], - "address": [ - { - "line": [ - "123 Main Street", - "Apartment 3-C" - ], - "city": "Oldtown", - "state": "MI", - "postalCode": "48917", - "country": "USA" - } - ], - "name": [ - { - "family": "Shine", - "given": [ - "Sarah" - ] - } - ], - "patient": { - "reference": "Patient/97997f4d-5259-b974-5a44-1b7450c2f4ab" + { + "fullUrl": "urn:uuid:d26a5004-0934-26f5-0201-4e302d6163c4", + "resource": { + "resourceType": "Account", + "id": "d26a5004-0934-26f5-0201-4e302d6163c4", + "status": "active", + "subject": [ + { + "reference": "Patient/97997f4d-5259-b974-5a44-1b7450c2f4ab" + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/d26a5004-0934-26f5-0201-4e302d6163c4" + } + }, + { + "fullUrl": "urn:uuid:", + "resource": { + "resourceType": "Encounter", + "text": { + "status": "generated", + "div": "

Visit Description:

" + }, + "subject": { + "reference": "Patient/97997f4d-5259-b974-5a44-1b7450c2f4ab" + } + }, + "request": { + "method": "PUT", + "url": "Encounter/" + } + }, + { + "fullUrl": "urn:uuid:", + "resource": { + "resourceType": "Organization" + }, + "request": { + "method": "PUT", + "url": "Organization/" + } + }, + { + "fullUrl": "urn:uuid:39780c38-eef5-37af-195d-4a60184c0354", + "resource": { + "resourceType": "RelatedPerson", + "id": "39780c38-eef5-37af-195d-4a60184c0354", + "relationship": [ + { + "coding": [ + { + "code": "MTH", + "display": "mother", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + }, + { + "coding": [ + { + "code": "E", + "display": "Employer", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131" + } + ] + } + ], + "address": [ + { + "line": [ + "123 Main Street", + "Apartment 3-C" + ], + "city": "Oldtown", + "state": "MI", + "postalCode": "48917", + "country": "USA" + } + ], + "telecom": [ + { + "use": "home", + "system": "phone" + } + ], + "name": [ + { + "family": "Shine", + "given": [ + "Sarah" + ] + } + ], + "patient": { + "reference": "Patient/97997f4d-5259-b974-5a44-1b7450c2f4ab" + } + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/39780c38-eef5-37af-195d-4a60184c0354" + } } - }, - "request": { - "method": "PUT", - "url": "RelatedPerson/39780c38-eef5-37af-195d-4a60184c0354" - } - } - ] + ] } \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/OML_O21/MDHHS-OML-O21-2-expected.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/OML_O21/MDHHS-OML-O21-2-expected.json index 4b7d029e0..f14a72369 100644 --- a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/OML_O21/MDHHS-OML-O21-2-expected.json +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/OML_O21/MDHHS-OML-O21-2-expected.json @@ -1,612 +1,688 @@ { - "resourceType": "Bundle", - "type": "batch", - "timestamp": "2016-03-09T23:32:05+08:00", - "identifier": { - "value": "TC14IG030107AA" - }, - "entry": [ - { - "fullUrl": "urn:uuid:f651f710-5269-afaa-f743-57b7a501b0c6", - "resource": { - "resourceType": "MessageHeader", - "id": "f651f710-5269-afaa-f743-57b7a501b0c6", - "source": { - "name": "MDHHS-DataHub" - }, - "destination": [ - { - "name": "LAN" - } - ], - "meta": { - "tag": [ - { - "code": "T", - "system": "http://terminology.hl7.org/CodeSystem/v2-0103" - } - ] - }, - "eventCoding": { - "code": "O21", - "system": "http://terminology.hl7.org/CodeSystem/v2-0003" - } - }, - "request": { - "method": "PUT", - "url": "MessageHeader/f651f710-5269-afaa-f743-57b7a501b0c6" - } + "resourceType": "Bundle", + "type": "batch", + "timestamp": "2016-03-09T21:02:05+05:30", + "identifier": { + "value": "TC14IG030107AA" }, - { - "fullUrl": "urn:uuid:daed9284-6d12-ca12-4260-9aad09e1f201", - "resource": { - "resourceType": "Patient", - "id": "daed9284-6d12-ca12-4260-9aad09e1f201", - "identifier": [ - { - "value": "MRNTC14" - } - ], - "name": [ - { - "family": "Old", - "given": [ - "Baby Girl" - ], - "use": "official" - } - ], - "birthDate": "2016-02-23", - "gender": "female", - "address": [ - { - "line": [ - "123 Main Street", - "Apartment 3-C" - ], - "city": "Oldtown", - "state": "MI", - "postalCode": "48917", - "country": "USA", - "use": "home" - } - ], - "telecom": [ - { - "use": "home" - }, - { - "use": "work" - } - ], - "deceasedBoolean": "false", - "contact": [ - { - "name": { - "family": "Shonal", - "given": [ - "Old" - ] - }, - "address": { - "line": [ - "123 Main Street", - "Apartment 3-C" - ], - "city": "Oldtown", - "state": "MI", - "postalCode": "48917", - "country": "USA" + "entry": [ + { + "fullUrl": "urn:uuid:f651f710-5269-afaa-f743-57b7a501b0c6", + "resource": { + "resourceType": "MessageHeader", + "id": "f651f710-5269-afaa-f743-57b7a501b0c6", + "source": { + "name": "MDHHS-DataHub", + "_endpoint": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } + ] + } + }, + "destination": [ + { + "name": "LAN", + "endpoint": "unknown", + "receiver": { + "reference": "Organization/d6043a57-a50e-abc1-6fcf-96fff9d1bfb0" + } + } + ], + "meta": { + "tag": [ + { + "code": "T", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "O21", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "OML^O21^OML_O21" + }, + "sender": { + "reference": "Organization/3ec1a91c-4720-6f8c-d861-4fa35aff66a7" + } }, - "relationship": [ - { - "coding": [ - { - "code": "E", - "display": "Employer", - "system": "http://terminology.hl7.org/CodeSystem/v2-0131" - } + "request": { + "method": "PUT", + "url": "MessageHeader/f651f710-5269-afaa-f743-57b7a501b0c6" + } + }, + { + "fullUrl": "urn:uuid:daed9284-6d12-ca12-4260-9aad09e1f201", + "resource": { + "resourceType": "Patient", + "id": "daed9284-6d12-ca12-4260-9aad09e1f201", + "identifier": [ + { + "value": "MRNTC14" + } + ], + "name": [ + { + "family": "Old", + "given": [ + "Baby Girl" + ], + "use": "official" + } + ], + "birthDate": "2016-02-23", + "_birthDate": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", + "valueDateTime": "2016-02-23T16:57:05+05:30" + } + ] + }, + "gender": "female", + "address": [ + { + "line": [ + "123 Main Street", + "Apartment 3-C" + ], + "city": "Oldtown", + "state": "MI", + "postalCode": "48917", + "country": "USA", + "use": "home" + } + ], + "telecom": [ + { + "use": "home", + "system": "phone" + }, + { + "use": "work", + "system": "phone" + } + ], + "deceasedBoolean": false, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + "valueString": "Shonal" + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2186-5", + "display": "Non Hispanic or Latino", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "Non Hispanic or Latino" + } + ] + } + ], + "contact": [ + { + "name": { + "family": "Shonal", + "given": [ + "Old" + ] + }, + "address": { + "line": [ + "123 Main Street", + "Apartment 3-C" + ], + "city": "Oldtown", + "state": "MI", + "postalCode": "48917", + "country": "USA" + }, + "telecom": [ + { + "use": "home", + "system": "phone" + } + ], + "relationship": [ + { + "coding": [ + { + "code": "E", + "display": "Employer", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131" + } + ] + } + ] + } ] - } - ] - } - ] - }, - "request": { - "method": "PUT", - "url": "Patient/daed9284-6d12-ca12-4260-9aad09e1f201" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Practitioner", - "identifier": [ - { - "value": "8075000001" - } - ], - "name": [ - { - "family": "Smiles", - "given": [ - "Minnie" - ], - "suffix": [ - "DR" - ] - } - ] - }, - "request": { - "method": "PUT", - "url": "Practitioner/" - } - }, - { - "fullUrl": "urn:uuid:0ac4aa7e-de74-bd40-3b64-97a1c0f3a414", - "resource": { - "resourceType": "Practitioner", - "id": "0ac4aa7e-de74-bd40-3b64-97a1c0f3a414", - "identifier": [ - { - "value": "8075000001" - } - ], - "name": [ - { - "family": "Smiles", - "given": [ - "Minnie" - ], - "suffix": [ - "DR" - ] - } - ] - }, - "request": { - "method": "PUT", - "url": "Practitioner/0ac4aa7e-de74-bd40-3b64-97a1c0f3a414" - } - }, - { - "fullUrl": "urn:uuid:8d21e8ca-50c4-05e7-edb8-9f74c624369e", - "resource": { - "resourceType": "Location", - "id": "8d21e8ca-50c4-05e7-edb8-9f74c624369e", - "name": "Detroit City Hospital", - "identifier": [ - { - "value": "8175000005" - } - ], - "address": { - "line": [ - "2405 Garden St" - ], - "city": "Detroit", - "state": "MI", - "postalCode": "48201", - "country": "USA" - } - }, - "request": { - "method": "PUT", - "url": "Location/8d21e8ca-50c4-05e7-edb8-9f74c624369e" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Location" - }, - "request": { - "method": "PUT", - "url": "Location/" - } - }, - { - "fullUrl": "urn:uuid:6c7ff591-59e1-e0f7-5b51-bc264d138a56", - "resource": { - "resourceType": "Provenance", - "id": "6c7ff591-59e1-e0f7-5b51-bc264d138a56", - "text": { - "status": "generated", - "div": "

Resource bundle generated on GENERATED_INSTANT_PLACEHOLDER using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: TEMPLATE_URL_PLACEHOLDER.Root template: OML_O21.

" + }, + "request": { + "method": "PUT", + "url": "Patient/daed9284-6d12-ca12-4260-9aad09e1f201" + } }, - "agent": [ - { - "type": { - "coding": [ - { - "code": "author", - "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" - } - ] + { + "fullUrl": "urn:uuid:", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "value": "8075000001", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NPI" + } + ], + "name": [ + { + "family": "Smiles", + "given": [ + "Minnie" + ], + "suffix": [ + "DR" + ] + } + ] }, - "who": { - "reference": "Practitioner/0ac4aa7e-de74-bd40-3b64-97a1c0f3a414" + "request": { + "method": "PUT", + "url": "Practitioner/" } - } - ], - "recorded": "2016-02-23T22:37:05+08:00", - "activity": { - "coding": [ - { - "code": "CREATE", - "system": "http://terminology.hl7.org/CodeSystem/v3-DataOperation" + }, + { + "fullUrl": "urn:uuid:0ac4aa7e-de74-bd40-3b64-97a1c0f3a414", + "resource": { + "resourceType": "Practitioner", + "id": "0ac4aa7e-de74-bd40-3b64-97a1c0f3a414", + "identifier": [ + { + "value": "8075000001", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NPI" + } + ], + "name": [ + { + "family": "Smiles", + "given": [ + "Minnie" + ], + "suffix": [ + "DR" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/0ac4aa7e-de74-bd40-3b64-97a1c0f3a414" } - ] }, - "occurredDateTime": "2016-02-23T22:37:05+08:00", - "location": { - "reference": "Location/8d21e8ca-50c4-05e7-edb8-9f74c624369e" - } - }, - "request": { - "method": "PUT", - "url": "Provenance/6c7ff591-59e1-e0f7-5b51-bc264d138a56" - } - }, - { - "fullUrl": "urn:uuid:6143ab70-4f28-7863-6edf-704abf375c8d", - "resource": { - "resourceType": "Account", - "id": "6143ab70-4f28-7863-6edf-704abf375c8d", - "subject": [ - { - "reference": "Patient/daed9284-6d12-ca12-4260-9aad09e1f201" - } - ] - }, - "request": { - "method": "PUT", - "url": "Account/6143ab70-4f28-7863-6edf-704abf375c8d" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Encounter", - "status": "unknown", - "subject": { - "reference": "Patient/daed9284-6d12-ca12-4260-9aad09e1f201" - } - }, - "request": { - "method": "PUT", - "url": "Encounter/" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Organization", - "address": [ - { - "line": [ - "2405 Garden St" - ], - "city": "Detroit", - "state": "MI", - "postalCode": "48201", - "country": "USA" - } - ] - }, - "request": { - "method": "PUT", - "url": "Organization/" - } - }, - { - "fullUrl": "urn:uuid:0f9b5688-7b42-3a39-344c-59b068f35f16", - "resource": { - "resourceType": "RelatedPerson", - "id": "0f9b5688-7b42-3a39-344c-59b068f35f16", - "relationship": [ - { - "coding": [ - { - "code": "MTH", - "display": "mother", - "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" - } - ] - }, - { - "coding": [ - { - "code": "E", - "display": "Employer", - "system": "http://terminology.hl7.org/CodeSystem/v2-0131" - } - ] - } - ], - "address": [ - { - "line": [ - "123 Main Street", - "Apartment 3-C" - ], - "city": "Oldtown", - "state": "MI", - "postalCode": "48917", - "country": "USA" - } - ], - "name": [ - { - "family": "Shonal", - "given": [ - "Old" - ] - } - ], - "patient": { - "reference": "Patient/daed9284-6d12-ca12-4260-9aad09e1f201" - } - }, - "request": { - "method": "PUT", - "url": "RelatedPerson/0f9b5688-7b42-3a39-344c-59b068f35f16" - } - }, - { - "fullUrl": "urn:uuid:a07e0fa5-e133-7049-7e66-15c22f36bfbf", - "resource": { - "resourceType": "Organization", - "id": "a07e0fa5-e133-7049-7e66-15c22f36bfbf", - "address": [ - { - "line": [ - "2405 Garden St" - ], - "city": "Detroit", - "state": "MI", - "postalCode": "48201", - "country": "USA" - } - ] - }, - "request": { - "method": "PUT", - "url": "Organization/a07e0fa5-e133-7049-7e66-15c22f36bfbf" - } - }, - { - "fullUrl": "urn:uuid:bafe469c-5cc7-f800-feae-81b33cf36940", - "resource": { - "resourceType": "ServiceRequest", - "id": "bafe469c-5cc7-f800-feae-81b33cf36940", - "intent": "order", - "identifier": [ - { - "value": "ORD723222", - "type": { - "coding": [ - { - "code": "PLAC", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" - } - ] + { + "fullUrl": "urn:uuid:8d21e8ca-50c4-05e7-edb8-9f74c624369e", + "resource": { + "resourceType": "Location", + "id": "8d21e8ca-50c4-05e7-edb8-9f74c624369e", + "name": "Detroit City Hospital", + "identifier": [ + { + "value": "8175000005" + } + ], + "address": { + "line": [ + "2405 Garden St" + ], + "city": "Detroit", + "state": "MI", + "postalCode": "48201", + "country": "USA" + }, + "telecom": [ + { + "use": "work", + "system": "phone" + } + ] + }, + "request": { + "method": "PUT", + "url": "Location/8d21e8ca-50c4-05e7-edb8-9f74c624369e" } - }, - { - "value": "R783274", - "type": { - "coding": [ - { - "code": "FILL", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" - } - ] + }, + { + "fullUrl": "urn:uuid:a0ade8a7-09f2-7ce2-46bf-2ab7facb9e9d", + "resource": { + "resourceType": "Provenance", + "id": "a0ade8a7-09f2-7ce2-46bf-2ab7facb9e9d", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T13:57:06.13Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: OML_O21.

" + }, + "occurredDateTime": "2016-03-09T21:02:05+05:30", + "recorded": "2016-03-09T21:02:05+05:30", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/3ec1a91c-4720-6f8c-d861-4fa35aff66a7" + } + } + ], + "activity": { + "coding": [ + { + "display": "OML^O21^OML_O21" + } + ] + }, + "location": { + "reference": "Location/8d21e8ca-50c4-05e7-edb8-9f74c624369e" + }, + "target": [ + { + "reference": "Bundle/" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/a0ade8a7-09f2-7ce2-46bf-2ab7facb9e9d" } - }, - { - "value": "GORD874211", - "type": { - "coding": [ - { - "code": "PGN", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" - } - ] + }, + { + "fullUrl": "urn:uuid:6143ab70-4f28-7863-6edf-704abf375c8d", + "resource": { + "resourceType": "Account", + "id": "6143ab70-4f28-7863-6edf-704abf375c8d", + "status": "active", + "subject": [ + { + "reference": "Patient/daed9284-6d12-ca12-4260-9aad09e1f201" + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/6143ab70-4f28-7863-6edf-704abf375c8d" } - }, - { - "type": { - "coding": [ - { - "code": "FILL", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + }, + { + "fullUrl": "urn:uuid:", + "resource": { + "resourceType": "Encounter", + "text": { + "status": "generated", + "div": "

Visit Description:

" + }, + "subject": { + "reference": "Patient/daed9284-6d12-ca12-4260-9aad09e1f201" } - ] + }, + "request": { + "method": "PUT", + "url": "Encounter/" } - }, - { - "value": "ORD723222" - }, - { - "value": "R-783274" - } - ], - "authoredOn": "2016-02-23T22:37:05+08:00", - "occurrenceDateTime": "2016-02-23T22:47:05+08:00", - "requester": { - "reference": "Organization/a07e0fa5-e133-7049-7e66-15c22f36bfbf" }, - "subject": { - "reference": "Patient/daed9284-6d12-ca12-4260-9aad09e1f201" - }, - "code": { - "coding": [ - { - "code": "1320", - "display": "HIV Ag/Ab - Serum", - "system": "L" + { + "fullUrl": "urn:uuid:", + "resource": { + "resourceType": "Organization", + "address": [ + { + "line": [ + "2405 Garden St" + ], + "city": "Detroit", + "state": "MI", + "postalCode": "48201", + "country": "USA" + } + ], + "telecom": [ + { + "use": "work", + "system": "phone" + } + ] }, - { - "code": "1680", - "display": "Syphilis (USR test)(1)", - "system": "L" + "request": { + "method": "PUT", + "url": "Organization/" } - ] }, - "reasonCode": [ - { - "coding": [ - { - "code": "RFS01", - "display": "Diagnosis", - "system": "BOL_0001" - } - ] - } - ], - "supportingInfo": [ - { - "reference": "Observation/c55789d4-78ae-5836-21d4-48191c4763a7" - } - ], - "specimen": [ - { - "reference": "Specimen/92af9b9a-bcfc-b6f6-ce19-bf5bc7b28707" - } - ] - }, - "request": { - "method": "PUT", - "url": "ServiceRequest/bafe469c-5cc7-f800-feae-81b33cf36940" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Provenance", - "agent": [ - { - "type": { - "coding": [ - { - "code": "author", - "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" - } - ] - } - }, - { - "type": { - "coding": [ - { - "code": "author", - "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + { + "fullUrl": "urn:uuid:0f9b5688-7b42-3a39-344c-59b068f35f16", + "resource": { + "resourceType": "RelatedPerson", + "id": "0f9b5688-7b42-3a39-344c-59b068f35f16", + "relationship": [ + { + "coding": [ + { + "code": "MTH", + "display": "mother", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + }, + { + "coding": [ + { + "code": "E", + "display": "Employer", + "system": "http://terminology.hl7.org/CodeSystem/v2-0131" + } + ] + } + ], + "address": [ + { + "line": [ + "123 Main Street", + "Apartment 3-C" + ], + "city": "Oldtown", + "state": "MI", + "postalCode": "48917", + "country": "USA" + } + ], + "telecom": [ + { + "use": "home", + "system": "phone" + } + ], + "name": [ + { + "family": "Shonal", + "given": [ + "Old" + ] + } + ], + "patient": { + "reference": "Patient/daed9284-6d12-ca12-4260-9aad09e1f201" } - ] }, - "who": { - "reference": "Practitioner/0ac4aa7e-de74-bd40-3b64-97a1c0f3a414" - } - } - ], - "recorded": "2016-02-23T22:37:05+08:00", - "activity": { - "coding": [ - { - "code": "CREATE", - "system": "http://terminology.hl7.org/CodeSystem/v3-DataOperation" + "request": { + "method": "PUT", + "url": "RelatedPerson/0f9b5688-7b42-3a39-344c-59b068f35f16" } - ] }, - "occurredDateTime": "2016-02-23T22:37:05+08:00", - "location": { - "reference": "Location/8d21e8ca-50c4-05e7-edb8-9f74c624369e" + { + "fullUrl": "urn:uuid:a07e0fa5-e133-7049-7e66-15c22f36bfbf", + "resource": { + "resourceType": "Organization", + "id": "a07e0fa5-e133-7049-7e66-15c22f36bfbf", + "address": [ + { + "line": [ + "2405 Garden St" + ], + "city": "Detroit", + "state": "MI", + "postalCode": "48201", + "country": "USA" + } + ], + "telecom": [ + { + "use": "work", + "system": "phone" + } + ] + }, + "request": { + "method": "PUT", + "url": "Organization/a07e0fa5-e133-7049-7e66-15c22f36bfbf" + } }, - "target": [ - { - "reference": "ServiceRequest/bafe469c-5cc7-f800-feae-81b33cf36940" - } - ] - }, - "request": { - "method": "PUT", - "url": "Provenance/" - } - }, - { - "fullUrl": "urn:uuid:c55789d4-78ae-5836-21d4-48191c4763a7", - "resource": { - "resourceType": "Observation", - "id": "c55789d4-78ae-5836-21d4-48191c4763a7", - "code": { - "coding": [ - { - "code": "AOE25", - "display": "Pregnancy", - "system": "BOL_0002" + { + "fullUrl": "urn:uuid:bafe469c-5cc7-f800-feae-81b33cf36940", + "resource": { + "resourceType": "ServiceRequest", + "id": "bafe469c-5cc7-f800-feae-81b33cf36940", + "intent": "order", + "identifier": [ + { + "value": "R783274", + "system": "urn:oid:2.16.840.1.113883.3.72.5.25", + "type": { + "coding": [ + { + "code": "FILL", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + }, + { + "value": "GORD874211", + "system": "urn:oid:2.16.840.1.113883.3.72.5.24", + "type": { + "coding": [ + { + "code": "PGN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + }, + { + "type": { + "coding": [ + { + "code": "FILL", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + }, + { + "value": "ORD723222", + "system": "urn:oid:2.16.840.1.113883.3.72.5.24", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + }, + { + "value": "R-783274", + "system": "urn:oid:2.16.840.1.113883.3.72.5.25", + "type": { + "coding": [ + { + "code": "ISO", + "display": "An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters", + "system": "http://terminology.hl7.org/CodeSystem/v2-0301" + } + ] + } + } + ], + "authoredOn": "2016-02-23T20:07:05+05:30", + "occurrenceDateTime": "2016-02-23T20:17:05+05:30", + "requester": { + "reference": "Organization/a07e0fa5-e133-7049-7e66-15c22f36bfbf" + }, + "subject": { + "reference": "Patient/daed9284-6d12-ca12-4260-9aad09e1f201" + }, + "code": { + "coding": [ + { + "code": "1320", + "display": "HIV Ag/Ab - Serum", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/L" + }, + { + "code": "1680", + "display": "Syphilis (USR test)(1)", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/L" + } + ] + }, + "reasonCode": [ + { + "coding": [ + { + "code": "RFS01", + "display": "Diagnosis", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/BOL_0001" + } + ] + } + ], + "supportingInfo": [ + { + "reference": "Observation/c55789d4-78ae-5836-21d4-48191c4763a7" + } + ], + "specimen": [ + { + "reference": "Specimen/92af9b9a-bcfc-b6f6-ce19-bf5bc7b28707" + } + ] + }, + "request": { + "method": "PUT", + "url": "ServiceRequest/bafe469c-5cc7-f800-feae-81b33cf36940" } - ] }, - "valueString": "NO", - "effectiveDateTime": "2016-03-08T23:32:05+08:00", - "component": [ - { - "code": { - "coding": [ - { - "code": "AOE25", - "display": "Pregnancy", - "system": "BOL_0002" - } - ] + { + "fullUrl": "urn:uuid:", + "resource": { + "resourceType": "Provenance", + "recorded": "2016-02-23T20:07:05+05:30", + "occurredDateTime": "2016-02-23T20:07:05+05:30", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Practitioner/0ac4aa7e-de74-bd40-3b64-97a1c0f3a414" + } + } + ], + "location": { + "reference": "Location/8d21e8ca-50c4-05e7-edb8-9f74c624369e" + }, + "target": [ + { + "reference": "Bundle/" + }, + { + "reference": "ServiceRequest/bafe469c-5cc7-f800-feae-81b33cf36940" + } + ] }, - "valueString": "NO" - } - ], - "subject": { - "reference": "Patient/daed9284-6d12-ca12-4260-9aad09e1f201" - } - }, - "request": { - "method": "PUT", - "url": "Observation/c55789d4-78ae-5836-21d4-48191c4763a7" - } - }, - { - "fullUrl": "urn:uuid:92af9b9a-bcfc-b6f6-ce19-bf5bc7b28707", - "resource": { - "resourceType": "Specimen", - "id": "92af9b9a-bcfc-b6f6-ce19-bf5bc7b28707", - "collection": { - "collectedDateTime": "2016-03-08T23:32:05+08:00" + "request": { + "method": "PUT", + "url": "Provenance/" + } }, - "type": { - "coding": [ - { - "code": "119339001", - "display": "Stool Specimen (Specimen)", - "system": "SCT" + { + "fullUrl": "urn:uuid:c55789d4-78ae-5836-21d4-48191c4763a7", + "resource": { + "resourceType": "Observation", + "id": "c55789d4-78ae-5836-21d4-48191c4763a7", + "status": "unknown", + "code": { + "coding": [ + { + "code": "AOE25", + "display": "Pregnancy", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/BOL_0002" + } + ] + }, + "valueString": "NO", + "effectiveDateTime": "2016-03-08T21:02:05+05:30" + }, + "request": { + "method": "PUT", + "url": "Observation/c55789d4-78ae-5836-21d4-48191c4763a7" } - ] }, - "container": [ - { - "additiveCodeableConcept": { - "coding": [ - { - "code": "NONE" - } - ] + { + "fullUrl": "urn:uuid:92af9b9a-bcfc-b6f6-ce19-bf5bc7b28707", + "resource": { + "resourceType": "Specimen", + "id": "92af9b9a-bcfc-b6f6-ce19-bf5bc7b28707", + "collection": { + "collectedDateTime": "2016-03-08T21:02:05+05:30" + }, + "type": { + "coding": [ + { + "code": "119339001", + "display": "Stool Specimen (Specimen)", + "system": "http://snomed.info/sct" + } + ] + }, + "container": [ + { + "additiveCodeableConcept": { + "coding": [ + { + "code": "NONE" + } + ] + } + } + ] + }, + "request": { + "method": "PUT", + "url": "Specimen/92af9b9a-bcfc-b6f6-ce19-bf5bc7b28707" } - } - ] - }, - "request": { - "method": "PUT", - "url": "Specimen/92af9b9a-bcfc-b6f6-ce19-bf5bc7b28707" - } - } - ] + } + ] } \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ORU_R01/LAB-ORU-1-expected.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ORU_R01/LAB-ORU-1-expected.json index cbf3c0adf..3f1641946 100644 --- a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ORU_R01/LAB-ORU-1-expected.json +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ORU_R01/LAB-ORU-1-expected.json @@ -1,1015 +1,792 @@ { - "resourceType": "Bundle", - "type": "batch", - "timestamp": "2014-10-06T06:45:00", - "identifier": { - "value": "182" - }, - "entry": [ - { - "fullUrl": "urn:uuid:f1f46d90-0473-6ea2-ae7f-b3165305d99f", - "resource": { - "resourceType": "MessageHeader", - "id": "f1f46d90-0473-6ea2-ae7f-b3165305d99f", - "source": { - "name": "SomeSystem" - }, - "destination": [ - { - "name": "TransformationAgent" - } - ], - "meta": { - "tag": [ - { - "code": "T", - "system": "http://terminology.hl7.org/CodeSystem/v2-0103" - } - ] - }, - "eventCoding": { - "code": "R01", - "system": "http://terminology.hl7.org/CodeSystem/v2-0003" - } - }, - "request": { - "method": "PUT", - "url": "MessageHeader/f1f46d90-0473-6ea2-ae7f-b3165305d99f" - } + "resourceType": "Bundle", + "type": "batch", + "timestamp": "2014-10-06T06:45:00", + "identifier": { + "value": "182" }, - { - "fullUrl": "urn:uuid:bab5ca58-f272-4c06-4b3f-f9661e45a22b", - "resource": { - "resourceType": "Patient", - "id": "bab5ca58-f272-4c06-4b3f-f9661e45a22b", - "identifier": [ - { - "value": "10006579", - "type": { - "coding": [ - { - "code": "MR", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" - } - ] - } - }, - { - "value": "123121234", - "type": { - "coding": [ - { - "code": "SS", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" - } - ] - }, - "system": "http://hl7.org/fhir/sid/us-ssn" - } - ], - "name": [ - { - "family": "DUCK", - "given": [ - "DONALD", - "D" - ] - } - ], - "birthDate": "1924-10-10", - "gender": "male", - "address": [ - { - "line": [ - "111 DUCK ST" - ], - "city": "FOWL", - "state": "CA", - "postalCode": "999990000", - "type": "postal" - }, - { - "district": "1" - } - ], - "telecom": [ - { - "value": "8885551212", - "use": "home" - }, - { - "value": "8885551212", - "use": "work" - } - ], - "communication": [ - { - "language": { - "coding": [ - { - "code": "1", - "display": "1" + "entry": [ + { + "fullUrl": "urn:uuid:f1f46d90-0473-6ea2-ae7f-b3165305d99f", + "resource": { + "resourceType": "MessageHeader", + "id": "f1f46d90-0473-6ea2-ae7f-b3165305d99f", + "source": { + "name": "SomeSystem", + "_endpoint": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } + ] + } + }, + "destination": [ + { + "name": "TransformationAgent", + "_endpoint": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } + ] + } + } + ], + "meta": { + "tag": [ + { + "code": "T", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "R01", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ORU^R01" } - ] }, - "preferred": true - } - ], - "maritalStatus": { - "coding": [ - { - "code": "2", - "display": "2" + "request": { + "method": "PUT", + "url": "MessageHeader/f1f46d90-0473-6ea2-ae7f-b3165305d99f" } - ] }, - "deceasedBoolean": "false" - }, - "request": { - "method": "PUT", - "url": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Practitioner" - }, - "request": { - "method": "PUT", - "url": "Practitioner/" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Location" - }, - "request": { - "method": "PUT", - "url": "Location/" - } - }, - { - "fullUrl": "urn:uuid:8834d46e-2efc-8cde-66d2-fd368b4c6e9c", - "resource": { - "resourceType": "Provenance", - "id": "8834d46e-2efc-8cde-66d2-fd368b4c6e9c", - "text": { - "status": "generated", - "div": "

Resource bundle generated on GENERATED_INSTANT_PLACEHOLDER using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: TEMPLATE_URL_PLACEHOLDER.Root template: ORU_R01.

" - }, - "agent": [ - { - "type": { - "coding": [ - { - "code": "author", - "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" - } - ] - } - } - ], - "recorded": "2014-10-06T06:45:00" - }, - "request": { - "method": "PUT", - "url": "Provenance/8834d46e-2efc-8cde-66d2-fd368b4c6e9c" - } - }, - { - "fullUrl": "urn:uuid:f70a39cb-cf13-6f75-885d-cf691752c711", - "resource": { - "resourceType": "Account", - "id": "f70a39cb-cf13-6f75-885d-cf691752c711", - "identifier": [ - { - "value": "40007716", - "type": { - "coding": [ - { - "code": "VN", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" - } - ] - } - } - ], - "subject": [ - { - "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" - } - ] - }, - "request": { - "method": "PUT", - "url": "Account/f70a39cb-cf13-6f75-885d-cf691752c711" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Encounter", - "status": "unknown", - "subject": { - "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" - } - }, - "request": { - "method": "PUT", - "url": "Encounter/" - } - }, - { - "fullUrl": "urn:uuid:da437276-fd7c-eb21-1885-4041aa59c483", - "resource": { - "resourceType": "Practitioner", - "id": "da437276-fd7c-eb21-1885-4041aa59c483" - }, - "request": { - "method": "PUT", - "url": "Practitioner/da437276-fd7c-eb21-1885-4041aa59c483" - } - }, - { - "fullUrl": "urn:uuid:abc9f629-6e71-5ca8-488e-283e73338943", - "resource": { - "resourceType": "DiagnosticReport", - "id": "abc9f629-6e71-5ca8-488e-283e73338943", - "identifier": [ - { - "type": { - "coding": [ - { - "code": "FILL", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" - } - ] - } - }, - { - "value": "88502218" - }, - { - "value": "82503246" - } - ], - "code": { - "coding": [ - { - "code": "24317-0", - "display": "Hemogram and platelet count, automated", - "system": "LN" + { + "fullUrl": "urn:uuid:bab5ca58-f272-4c06-4b3f-f9661e45a22b", + "resource": { + "resourceType": "Patient", + "id": "bab5ca58-f272-4c06-4b3f-f9661e45a22b", + "identifier": [ + { + "value": "10006579", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-1" + }, + { + "value": "123121234", + "type": { + "coding": [ + { + "code": "SB", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + } + ], + "name": [ + { + "family": "DUCK", + "given": [ + "DONALD", + "D" + ] + } + ], + "birthDate": "1924-10-10", + "gender": "male", + "address": [ + { + "line": [ + "111 DUCK ST" + ], + "city": "FOWL", + "state": "CA", + "postalCode": "999990000", + "type": "postal" + }, + { + "district": "1" + } + ], + "telecom": [ + { + "value": "8885551212", + "use": "home" + }, + { + "value": "8885551212", + "use": "work" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "1", + "display": "1" + } + ] + }, + "preferred": true + } + ], + "maritalStatus": { + "coding": [ + { + "code": "2", + "display": "2" + } + ] + }, + "deceasedBoolean": false, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "1", + "display": "1" + } + }, + { + "url": "text", + "valueString": "1" + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" } - ] }, - "status": "final", - "specimen": [ - { - "reference": "Practitioner/da437276-fd7c-eb21-1885-4041aa59c483" - }, - { - "reference": "Specimen/7c7cbbd6-4a47-b606-9d5b-dc2d6a03e663" - } - ], - "result": [ - { - "reference": "Observation/f736fbb2-aafc-4e52-abb9-20d77d01d302" - }, - { - "reference": "Observation/1ef60c39-1161-0129-a263-b693d23f90c3" - }, - { - "reference": "Observation/fa77427d-7606-99a5-ae91-f316de160668" - }, - { - "reference": "Observation/2f7b51cf-44f5-547d-2815-747fd4ec7a88" - }, - { - "reference": "Observation/73bdfe72-5f9f-31fc-ad22-90e1ccf2d7fe" - } - ] - }, - "request": { - "method": "PUT", - "url": "DiagnosticReport/abc9f629-6e71-5ca8-488e-283e73338943" - } - }, - { - "fullUrl": "urn:uuid:f736fbb2-aafc-4e52-abb9-20d77d01d302", - "resource": { - "resourceType": "Observation", - "id": "f736fbb2-aafc-4e52-abb9-20d77d01d302", - "code": { - "coding": [ - { - "code": "11156-7", - "display": "LEUKOCYTES", - "system": "LN" + { + "fullUrl": "urn:uuid:", + "resource": { + "resourceType": "Practitioner" + }, + "request": { + "method": "PUT", + "url": "Practitioner/" } - ] }, - "component": [ - { - "code": { - "coding": [ - { - "code": "11156-7", - "display": "LEUKOCYTES", - "system": "LN" - } - ] - } - } - ], - "subject": { - "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" - } - }, - "request": { - "method": "PUT", - "url": "Observation/f736fbb2-aafc-4e52-abb9-20d77d01d302" - } - }, - { - "fullUrl": "urn:uuid:1ef60c39-1161-0129-a263-b693d23f90c3", - "resource": { - "resourceType": "Observation", - "id": "1ef60c39-1161-0129-a263-b693d23f90c3", - "code": { - "coding": [ - { - "code": "11273-0", - "display": "ERYTHROCYTES", - "system": "LN" + { + "fullUrl": "urn:uuid:", + "resource": { + "resourceType": "Location" + }, + "request": { + "method": "PUT", + "url": "Location/" } - ] - }, - "valueQuantity": { - "value": "4.06", - "unit": "tera.l-1" }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "preliminary", - "effectiveDateTime": "2014-10-06T06:27:00", - "component": [ - { - "code": { - "coding": [ - { - "code": "11273-0", - "display": "ERYTHROCYTES", - "system": "LN" - } - ] - }, - "valueQuantity": { - "value": "4.06", - "unit": "tera.l-1" - }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + { + "fullUrl": "urn:uuid:", + "resource": { + "resourceType": "Provenance", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T13:58:01.423Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ORU_R01.

" + }, + "occurredDateTime": "2014-10-06T06:45:00", + "recorded": "2014-10-06T06:45:00", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + } + } + ], + "activity": { + "coding": [ + { + "display": "ORU^R01^" + } + ] + }, + "target": [ + { + "reference": "Bundle/" + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" - } - }, - "request": { - "method": "PUT", - "url": "Observation/1ef60c39-1161-0129-a263-b693d23f90c3" - } - }, - { - "fullUrl": "urn:uuid:fa77427d-7606-99a5-ae91-f316de160668", - "resource": { - "resourceType": "Observation", - "id": "fa77427d-7606-99a5-ae91-f316de160668", - "code": { - "coding": [ - { - "code": "20509-6", - "display": "HEMOGLOBIN", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Provenance/" } - ] }, - "component": [ - { - "code": { - "coding": [ - { - "code": "20509-6", - "display": "HEMOGLOBIN", - "system": "LN" - } - ] - } - } - ], - "subject": { - "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" - } - }, - "request": { - "method": "PUT", - "url": "Observation/fa77427d-7606-99a5-ae91-f316de160668" - } - }, - { - "fullUrl": "urn:uuid:2f7b51cf-44f5-547d-2815-747fd4ec7a88", - "resource": { - "resourceType": "Observation", - "id": "2f7b51cf-44f5-547d-2815-747fd4ec7a88", - "code": { - "coding": [ - { - "code": "20570-8", - "display": "HEMATOCRIT", - "system": "LN" + { + "fullUrl": "urn:uuid:f70a39cb-cf13-6f75-885d-cf691752c711", + "resource": { + "resourceType": "Account", + "id": "f70a39cb-cf13-6f75-885d-cf691752c711", + "identifier": [ + { + "value": "40007716", + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Visit number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr" + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/f70a39cb-cf13-6f75-885d-cf691752c711" } - ] }, - "valueQuantity": { - "value": "40.1", - "unit": "%" - }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "preliminary", - "effectiveDateTime": "2014-10-06T08:30:00", - "component": [ - { - "code": { - "coding": [ - { - "code": "20570-8", - "display": "HEMATOCRIT", - "system": "LN" + { + "fullUrl": "urn:uuid:", + "resource": { + "resourceType": "Encounter", + "text": { + "status": "generated", + "div": "

Visit Description:

" + }, + "subject": { + "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" } - ] - }, - "valueQuantity": { - "value": "40.1", - "unit": "%" }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ] - } - ], - "subject": { - "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" - } - }, - "request": { - "method": "PUT", - "url": "Observation/2f7b51cf-44f5-547d-2815-747fd4ec7a88" - } - }, - { - "fullUrl": "urn:uuid:73bdfe72-5f9f-31fc-ad22-90e1ccf2d7fe", - "resource": { - "resourceType": "Observation", - "id": "73bdfe72-5f9f-31fc-ad22-90e1ccf2d7fe", - "code": { - "coding": [ - { - "code": "11125-2", - "display": "PLATELETS", - "system": "LN" + "request": { + "method": "PUT", + "url": "Encounter/" } - ] - }, - "valueQuantity": { - "value": "221", - "unit": "giga.l-1" }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2014-10-06T08:30:00", - "component": [ - { - "code": { - "coding": [ - { - "code": "11125-2", - "display": "PLATELETS", - "system": "LN" - } - ] - }, - "valueQuantity": { - "value": "221", - "unit": "giga.l-1" + { + "fullUrl": "urn:uuid:da437276-fd7c-eb21-1885-4041aa59c483", + "resource": { + "resourceType": "Practitioner", + "id": "da437276-fd7c-eb21-1885-4041aa59c483" }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ] - } - ], - "subject": { - "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" - } - }, - "request": { - "method": "PUT", - "url": "Observation/73bdfe72-5f9f-31fc-ad22-90e1ccf2d7fe" - } - }, - { - "fullUrl": "urn:uuid:7c7cbbd6-4a47-b606-9d5b-dc2d6a03e663", - "resource": { - "resourceType": "Specimen", - "id": "7c7cbbd6-4a47-b606-9d5b-dc2d6a03e663", - "collection": { - "collectedDateTime": "2014-10-06T05:35:00" - }, - "receivedTime": "2014-10-06T08:21:00", - "identifier": [ - { - "value": "SpecimenID", - "type": { - "coding": [ - { - "code": "PLAC", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" - } - ] + "request": { + "method": "PUT", + "url": "Practitioner/da437276-fd7c-eb21-1885-4041aa59c483" } - } - ], - "type": { - "coding": [ - { - "code": "BLD" + }, + { + "fullUrl": "urn:uuid:abc9f629-6e71-5ca8-488e-283e73338943", + "resource": { + "resourceType": "DiagnosticReport", + "id": "abc9f629-6e71-5ca8-488e-283e73338943", + "identifier": [ + { + "type": { + "coding": [ + { + "code": "FILL", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + }, + { + "value": "88502218" + }, + { + "value": "82503246" + } + ], + "code": { + "coding": [ + { + "code": "24317-0", + "display": "Hemogram and platelet count, automated", + "system": "http://loinc.org" + } + ] + }, + "status": "final", + "specimen": [ + { + "reference": "Practitioner/da437276-fd7c-eb21-1885-4041aa59c483" + }, + { + "reference": "Specimen/7c7cbbd6-4a47-b606-9d5b-dc2d6a03e663" + } + ], + "result": [ + { + "reference": "Observation/f736fbb2-aafc-4e52-abb9-20d77d01d302" + }, + { + "reference": "Observation/1ef60c39-1161-0129-a263-b693d23f90c3" + }, + { + "reference": "Observation/fa77427d-7606-99a5-ae91-f316de160668" + }, + { + "reference": "Observation/2f7b51cf-44f5-547d-2815-747fd4ec7a88" + }, + { + "reference": "Observation/73bdfe72-5f9f-31fc-ad22-90e1ccf2d7fe" + } + ] + }, + "request": { + "method": "PUT", + "url": "DiagnosticReport/abc9f629-6e71-5ca8-488e-283e73338943" } - ] }, - "status": "available" - }, - "request": { - "method": "PUT", - "url": "Specimen/7c7cbbd6-4a47-b606-9d5b-dc2d6a03e663" - } - }, - { - "fullUrl": "urn:uuid:c3c41c66-630e-8d1b-2fad-cffb0957da29", - "resource": { - "resourceType": "DiagnosticReport", - "id": "c3c41c66-630e-8d1b-2fad-cffb0957da29", - "identifier": [ - { - "type": { - "coding": [ - { - "code": "FILL", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + { + "fullUrl": "urn:uuid:f736fbb2-aafc-4e52-abb9-20d77d01d302", + "resource": { + "resourceType": "Observation", + "id": "f736fbb2-aafc-4e52-abb9-20d77d01d302", + "status": "unknown", + "code": { + "coding": [ + { + "code": "11156-7", + "display": "LEUKOCYTES", + "system": "http://loinc.org" + } + ] } - ] - } - }, - { - "value": "855238581" - }, - { - "value": "890775544" - } - ], - "code": { - "coding": [ - { - "code": "26464-8", - "display": "Differential WBC Count, buffy coat", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Observation/f736fbb2-aafc-4e52-abb9-20d77d01d302" } - ] }, - "specimen": [ - { - "reference": "Practitioner/da437276-fd7c-eb21-1885-4041aa59c483" - }, - { - "reference": "Specimen/7c7cbbd6-4a47-b606-9d5b-dc2d6a03e663" - } - ], - "result": [ - { - "reference": "Observation/f3f13545-5a9c-5279-e1a3-6faff5d56778" - }, - { - "reference": "Observation/690c7dfd-8d22-ac69-0f11-bf58da18db99" - }, - { - "reference": "Observation/4bb79fc0-148e-6d5b-b111-6e09c39ec56e" - }, - { - "reference": "Observation/5597ddac-19fb-6893-705d-65097d31b66b" - }, - { - "reference": "Observation/e4412677-d1c2-f97d-b765-5bdfb16cdac5" - } - ] - }, - "request": { - "method": "PUT", - "url": "DiagnosticReport/c3c41c66-630e-8d1b-2fad-cffb0957da29" - } - }, - { - "fullUrl": "urn:uuid:f3f13545-5a9c-5279-e1a3-6faff5d56778", - "resource": { - "resourceType": "Observation", - "id": "f3f13545-5a9c-5279-e1a3-6faff5d56778", - "code": { - "coding": [ - { - "code": "23761-0", - "display": "NEUTROPHILS/100 LEUKOCYTES", - "system": "LN" + { + "fullUrl": "urn:uuid:1ef60c39-1161-0129-a263-b693d23f90c3", + "resource": { + "resourceType": "Observation", + "id": "1ef60c39-1161-0129-a263-b693d23f90c3", + "status": "preliminary", + "code": { + "coding": [ + { + "code": "11273-0", + "display": "ERYTHROCYTES", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 4.06, + "unit": "tera.l-1" + }, + "effectiveDateTime": "2014-10-06T06:27:00", + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Observation/1ef60c39-1161-0129-a263-b693d23f90c3" } - ] - }, - "valueQuantity": { - "value": "72", - "unit": "%" }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "preliminary", - "effectiveDateTime": "2014-10-06T06:27:00", - "component": [ - { - "code": { - "coding": [ - { - "code": "23761-0", - "display": "NEUTROPHILS/100 LEUKOCYTES", - "system": "LN" + { + "fullUrl": "urn:uuid:fa77427d-7606-99a5-ae91-f316de160668", + "resource": { + "resourceType": "Observation", + "id": "fa77427d-7606-99a5-ae91-f316de160668", + "status": "unknown", + "code": { + "coding": [ + { + "code": "20509-6", + "display": "HEMOGLOBIN", + "system": "http://loinc.org" + } + ] } - ] }, - "valueQuantity": { - "value": "72", - "unit": "%" - }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ] - } - ], - "subject": { - "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" - } - }, - "request": { - "method": "PUT", - "url": "Observation/f3f13545-5a9c-5279-e1a3-6faff5d56778" - } - }, - { - "fullUrl": "urn:uuid:690c7dfd-8d22-ac69-0f11-bf58da18db99", - "resource": { - "resourceType": "Observation", - "id": "690c7dfd-8d22-ac69-0f11-bf58da18db99", - "code": { - "coding": [ - { - "code": "26450-7", - "display": "EOSINOPHILS/100 LEUKOCYTES", - "system": "LN" + "request": { + "method": "PUT", + "url": "Observation/fa77427d-7606-99a5-ae91-f316de160668" } - ] }, - "valueQuantity": { - "value": "2", - "unit": "%" - }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "preliminary", - "effectiveDateTime": "2014-10-06T06:27:00", - "component": [ - { - "code": { - "coding": [ - { - "code": "26450-7", - "display": "EOSINOPHILS/100 LEUKOCYTES", - "system": "LN" - } - ] - }, - "valueQuantity": { - "value": "2", - "unit": "%" - }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + { + "fullUrl": "urn:uuid:2f7b51cf-44f5-547d-2815-747fd4ec7a88", + "resource": { + "resourceType": "Observation", + "id": "2f7b51cf-44f5-547d-2815-747fd4ec7a88", + "status": "preliminary", + "code": { + "coding": [ + { + "code": "20570-8", + "display": "HEMATOCRIT", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 40.1, + "unit": "%" + }, + "effectiveDateTime": "2014-10-06T08:30:00", + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" - } - }, - "request": { - "method": "PUT", - "url": "Observation/690c7dfd-8d22-ac69-0f11-bf58da18db99" - } - }, - { - "fullUrl": "urn:uuid:4bb79fc0-148e-6d5b-b111-6e09c39ec56e", - "resource": { - "resourceType": "Observation", - "id": "4bb79fc0-148e-6d5b-b111-6e09c39ec56e", - "code": { - "coding": [ - { - "code": "26478-8", - "display": "LYMPHOCYTES/100 LEUKOCYTES", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Observation/2f7b51cf-44f5-547d-2815-747fd4ec7a88" } - ] - }, - "valueQuantity": { - "value": "20", - "unit": "%" }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "preliminary", - "effectiveDateTime": "2014-10-06T06:27:00", - "component": [ - { - "code": { - "coding": [ - { - "code": "26478-8", - "display": "LYMPHOCYTES/100 LEUKOCYTES", - "system": "LN" - } - ] - }, - "valueQuantity": { - "value": "20", - "unit": "%" - }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + { + "fullUrl": "urn:uuid:73bdfe72-5f9f-31fc-ad22-90e1ccf2d7fe", + "resource": { + "resourceType": "Observation", + "id": "73bdfe72-5f9f-31fc-ad22-90e1ccf2d7fe", + "status": "final", + "code": { + "coding": [ + { + "code": "11125-2", + "display": "PLATELETS", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 221, + "unit": "giga.l-1" + }, + "effectiveDateTime": "2014-10-06T08:30:00", + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" - } - }, - "request": { - "method": "PUT", - "url": "Observation/4bb79fc0-148e-6d5b-b111-6e09c39ec56e" - } - }, - { - "fullUrl": "urn:uuid:5597ddac-19fb-6893-705d-65097d31b66b", - "resource": { - "resourceType": "Observation", - "id": "5597ddac-19fb-6893-705d-65097d31b66b", - "code": { - "coding": [ - { - "code": "26485-3", - "display": "MONOCYTES/100 LEUKOCYTES", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Observation/73bdfe72-5f9f-31fc-ad22-90e1ccf2d7fe" } - ] - }, - "valueQuantity": { - "value": "6", - "unit": "%" }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "preliminary", - "effectiveDateTime": "2014-10-06T06:27:00", - "component": [ - { - "code": { - "coding": [ - { - "code": "26485-3", - "display": "MONOCYTES/100 LEUKOCYTES", - "system": "LN" - } - ] + { + "fullUrl": "urn:uuid:7c7cbbd6-4a47-b606-9d5b-dc2d6a03e663", + "resource": { + "resourceType": "Specimen", + "id": "7c7cbbd6-4a47-b606-9d5b-dc2d6a03e663", + "collection": { + "collectedDateTime": "2014-10-06T05:35:00" + }, + "receivedTime": "2014-10-06T08:21:00", + "identifier": [ + { + "value": "SpecimenID", + "type": { + "coding": [ + { + "code": "PLAC", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "type": { + "coding": [ + { + "code": "BLD" + } + ] + }, + "status": "available" }, - "valueQuantity": { - "value": "6", - "unit": "%" + "request": { + "method": "PUT", + "url": "Specimen/7c7cbbd6-4a47-b606-9d5b-dc2d6a03e663" + } + }, + { + "fullUrl": "urn:uuid:c3c41c66-630e-8d1b-2fad-cffb0957da29", + "resource": { + "resourceType": "DiagnosticReport", + "id": "c3c41c66-630e-8d1b-2fad-cffb0957da29", + "identifier": [ + { + "type": { + "coding": [ + { + "code": "FILL", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + }, + { + "value": "855238581" + }, + { + "value": "890775544" + } + ], + "code": { + "coding": [ + { + "code": "26464-8", + "display": "Differential WBC Count, buffy coat", + "system": "http://loinc.org" + } + ] + }, + "specimen": [ + { + "reference": "Practitioner/da437276-fd7c-eb21-1885-4041aa59c483" + }, + { + "reference": "Specimen/7c7cbbd6-4a47-b606-9d5b-dc2d6a03e663" + } + ], + "result": [ + { + "reference": "Observation/f3f13545-5a9c-5279-e1a3-6faff5d56778" + }, + { + "reference": "Observation/690c7dfd-8d22-ac69-0f11-bf58da18db99" + }, + { + "reference": "Observation/4bb79fc0-148e-6d5b-b111-6e09c39ec56e" + }, + { + "reference": "Observation/5597ddac-19fb-6893-705d-65097d31b66b" + }, + { + "reference": "Observation/e4412677-d1c2-f97d-b765-5bdfb16cdac5" + } + ] }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + "request": { + "method": "PUT", + "url": "DiagnosticReport/c3c41c66-630e-8d1b-2fad-cffb0957da29" + } + }, + { + "fullUrl": "urn:uuid:f3f13545-5a9c-5279-e1a3-6faff5d56778", + "resource": { + "resourceType": "Observation", + "id": "f3f13545-5a9c-5279-e1a3-6faff5d56778", + "status": "preliminary", + "code": { + "coding": [ + { + "code": "23761-0", + "display": "NEUTROPHILS/100 LEUKOCYTES", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 72, + "unit": "%" + }, + "effectiveDateTime": "2014-10-06T06:27:00", + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" - } - }, - "request": { - "method": "PUT", - "url": "Observation/5597ddac-19fb-6893-705d-65097d31b66b" - } - }, - { - "fullUrl": "urn:uuid:e4412677-d1c2-f97d-b765-5bdfb16cdac5", - "resource": { - "resourceType": "Observation", - "id": "e4412677-d1c2-f97d-b765-5bdfb16cdac5", - "code": { - "coding": [ - { - "code": "30180-4", - "display": "BASOPHILS/100 LEUKOCYTES", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Observation/f3f13545-5a9c-5279-e1a3-6faff5d56778" } - ] }, - "valueQuantity": { - "value": "0", - "unit": "%" + { + "fullUrl": "urn:uuid:690c7dfd-8d22-ac69-0f11-bf58da18db99", + "resource": { + "resourceType": "Observation", + "id": "690c7dfd-8d22-ac69-0f11-bf58da18db99", + "status": "preliminary", + "code": { + "coding": [ + { + "code": "26450-7", + "display": "EOSINOPHILS/100 LEUKOCYTES", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 2, + "unit": "%" + }, + "effectiveDateTime": "2014-10-06T06:27:00", + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Observation/690c7dfd-8d22-ac69-0f11-bf58da18db99" + } }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "preliminary", - "effectiveDateTime": "2014-10-06T06:27:00", - "component": [ - { - "code": { - "coding": [ - { - "code": "30180-4", - "display": "BASOPHILS/100 LEUKOCYTES", - "system": "LN" - } - ] + { + "fullUrl": "urn:uuid:4bb79fc0-148e-6d5b-b111-6e09c39ec56e", + "resource": { + "resourceType": "Observation", + "id": "4bb79fc0-148e-6d5b-b111-6e09c39ec56e", + "status": "preliminary", + "code": { + "coding": [ + { + "code": "26478-8", + "display": "LYMPHOCYTES/100 LEUKOCYTES", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 20, + "unit": "%" + }, + "effectiveDateTime": "2014-10-06T06:27:00", + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } + ] }, - "valueQuantity": { - "value": "0", - "unit": "%" + "request": { + "method": "PUT", + "url": "Observation/4bb79fc0-148e-6d5b-b111-6e09c39ec56e" + } + }, + { + "fullUrl": "urn:uuid:5597ddac-19fb-6893-705d-65097d31b66b", + "resource": { + "resourceType": "Observation", + "id": "5597ddac-19fb-6893-705d-65097d31b66b", + "status": "preliminary", + "code": { + "coding": [ + { + "code": "26485-3", + "display": "MONOCYTES/100 LEUKOCYTES", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 6, + "unit": "%" + }, + "effectiveDateTime": "2014-10-06T06:27:00", + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } + ] }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + "request": { + "method": "PUT", + "url": "Observation/5597ddac-19fb-6893-705d-65097d31b66b" + } + }, + { + "fullUrl": "urn:uuid:e4412677-d1c2-f97d-b765-5bdfb16cdac5", + "resource": { + "resourceType": "Observation", + "id": "e4412677-d1c2-f97d-b765-5bdfb16cdac5", + "status": "preliminary", + "code": { + "coding": [ + { + "code": "30180-4", + "display": "BASOPHILS/100 LEUKOCYTES", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 0, + "unit": "%" + }, + "effectiveDateTime": "2014-10-06T06:27:00", + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" + }, + "request": { + "method": "PUT", + "url": "Observation/e4412677-d1c2-f97d-b765-5bdfb16cdac5" + } } - }, - "request": { - "method": "PUT", - "url": "Observation/e4412677-d1c2-f97d-b765-5bdfb16cdac5" - } - } - ] + ] } \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ORU_R01/LAB-ORU-2-expected.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ORU_R01/LAB-ORU-2-expected.json index d51015006..c82f2354d 100644 --- a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ORU_R01/LAB-ORU-2-expected.json +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ORU_R01/LAB-ORU-2-expected.json @@ -1,1079 +1,824 @@ { - "resourceType": "Bundle", - "type": "batch", - "timestamp": "2014-10-06T09:31:00", - "identifier": { - "value": "ControlID" - }, - "entry": [ - { - "fullUrl": "urn:uuid:35c86567-5347-8c97-4810-b39dedb9f855", - "resource": { - "resourceType": "MessageHeader", - "id": "35c86567-5347-8c97-4810-b39dedb9f855", - "source": { - "name": "SomeSystem" - }, - "destination": [ - { - "name": "TransformationAgent" - } - ], - "meta": { - "tag": [ - { - "code": "T", - "system": "http://terminology.hl7.org/CodeSystem/v2-0103" - } - ] - }, - "eventCoding": { - "code": "R01", - "system": "http://terminology.hl7.org/CodeSystem/v2-0003" - }, - "language": "EN" - }, - "request": { - "method": "PUT", - "url": "MessageHeader/35c86567-5347-8c97-4810-b39dedb9f855" - } + "resourceType": "Bundle", + "type": "batch", + "timestamp": "2014-10-06T09:31:00", + "identifier": { + "value": "ControlID" }, - { - "fullUrl": "urn:uuid:bab5ca58-f272-4c06-4b3f-f9661e45a22b", - "resource": { - "resourceType": "Patient", - "id": "bab5ca58-f272-4c06-4b3f-f9661e45a22b", - "identifier": [ - { - "value": "10006579", - "type": { - "coding": [ - { - "code": "MR", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" - } - ] - } - }, - { - "value": "123121234", - "type": { - "coding": [ - { - "code": "SS", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" - } - ] + "entry": [ + { + "fullUrl": "urn:uuid:35c86567-5347-8c97-4810-b39dedb9f855", + "resource": { + "resourceType": "MessageHeader", + "id": "35c86567-5347-8c97-4810-b39dedb9f855", + "source": { + "name": "SomeSystem", + "_endpoint": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } + ] + } + }, + "destination": [ + { + "name": "TransformationAgent", + "_endpoint": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } + ] + } + } + ], + "meta": { + "tag": [ + { + "code": "T", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "R01", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ORU^R01" + }, + "language": "EN" }, - "system": "http://hl7.org/fhir/sid/us-ssn" - } - ], - "name": [ - { - "family": "DUCK", - "given": [ - "DONALD", - "D" - ] - } - ], - "birthDate": "1924-10-10", - "gender": "male", - "address": [ - { - "line": [ - "111 DUCK ST" - ], - "city": "FOWL", - "state": "CA", - "postalCode": "999990000", - "type": "postal" - }, - { - "district": "1" - } - ], - "telecom": [ - { - "value": "8885551212", - "use": "home" - }, - { - "value": "8885551212", - "use": "work" - } - ], - "communication": [ - { - "language": { - "coding": [ - { - "code": "1", - "display": "1" - } - ] - }, - "preferred": true - } - ], - "maritalStatus": { - "coding": [ - { - "code": "2", - "display": "2" + "request": { + "method": "PUT", + "url": "MessageHeader/35c86567-5347-8c97-4810-b39dedb9f855" } - ] }, - "deceasedBoolean": "false" - }, - "request": { - "method": "PUT", - "url": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Practitioner" - }, - "request": { - "method": "PUT", - "url": "Practitioner/" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Location" - }, - "request": { - "method": "PUT", - "url": "Location/" - } - }, - { - "fullUrl": "urn:uuid:1e298a0f-e932-5a4a-e5e0-e910a77f7949", - "resource": { - "resourceType": "Provenance", - "id": "1e298a0f-e932-5a4a-e5e0-e910a77f7949", - "text": { - "status": "generated", - "div": "

Resource bundle generated on GENERATED_INSTANT_PLACEHOLDER using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: TEMPLATE_URL_PLACEHOLDER.Root template: ORU_R01.

" - }, - "agent": [ - { - "type": { - "coding": [ - { - "code": "author", - "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" - } - ] - } - } - ], - "recorded": "2014-10-06T09:31:00" - }, - "request": { - "method": "PUT", - "url": "Provenance/1e298a0f-e932-5a4a-e5e0-e910a77f7949" - } - }, - { - "fullUrl": "urn:uuid:f70a39cb-cf13-6f75-885d-cf691752c711", - "resource": { - "resourceType": "Account", - "id": "f70a39cb-cf13-6f75-885d-cf691752c711", - "identifier": [ - { - "value": "40007716", - "type": { - "coding": [ - { - "code": "VN", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" - } - ] - } - } - ], - "subject": [ - { - "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" - } - ] - }, - "request": { - "method": "PUT", - "url": "Account/f70a39cb-cf13-6f75-885d-cf691752c711" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Encounter", - "status": "unknown", - "subject": { - "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" - } - }, - "request": { - "method": "PUT", - "url": "Encounter/" - } - }, - { - "fullUrl": "urn:uuid:da437276-fd7c-eb21-1885-4041aa59c483", - "resource": { - "resourceType": "Practitioner", - "id": "da437276-fd7c-eb21-1885-4041aa59c483" - }, - "request": { - "method": "PUT", - "url": "Practitioner/da437276-fd7c-eb21-1885-4041aa59c483" - } - }, - { - "fullUrl": "urn:uuid:c3c41c66-630e-8d1b-2fad-cffb0957da29", - "resource": { - "resourceType": "DiagnosticReport", - "id": "c3c41c66-630e-8d1b-2fad-cffb0957da29", - "identifier": [ - { - "type": { - "coding": [ - { - "code": "FILL", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" - } - ] - } - }, - { - "value": "855238581" - }, - { - "value": "890775544" - } - ], - "code": { - "coding": [ - { - "code": "26464-8", - "display": "Differential WBC Count, buffy coat", - "system": "LN" + { + "fullUrl": "urn:uuid:bab5ca58-f272-4c06-4b3f-f9661e45a22b", + "resource": { + "resourceType": "Patient", + "id": "bab5ca58-f272-4c06-4b3f-f9661e45a22b", + "identifier": [ + { + "value": "10006579", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-1" + }, + { + "value": "123121234", + "type": { + "coding": [ + { + "code": "SB", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + }, + "system": "http://hl7.org/fhir/sid/us-ssn" + } + ], + "name": [ + { + "family": "DUCK", + "given": [ + "DONALD", + "D" + ] + } + ], + "birthDate": "1924-10-10", + "gender": "male", + "address": [ + { + "line": [ + "111 DUCK ST" + ], + "city": "FOWL", + "state": "CA", + "postalCode": "999990000", + "type": "postal" + }, + { + "district": "1" + } + ], + "telecom": [ + { + "value": "8885551212", + "use": "home" + }, + { + "value": "8885551212", + "use": "work" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "1", + "display": "1" + } + ] + }, + "preferred": true + } + ], + "maritalStatus": { + "coding": [ + { + "code": "2", + "display": "2" + } + ] + }, + "deceasedBoolean": false, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "1", + "display": "1" + } + }, + { + "url": "text", + "valueString": "1" + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" } - ] }, - "specimen": [ - { - "reference": "Practitioner/da437276-fd7c-eb21-1885-4041aa59c483" - }, - { - "reference": "Specimen/6006d57e-e0a3-d90e-7d9b-546ed575c527" - } - ], - "result": [ - { - "reference": "Observation/24b96f9a-359e-fc62-bf8a-45e4f1b4c6e9" - }, - { - "reference": "Observation/1b81a0d2-b102-41aa-421b-ac645e962ce4" - }, - { - "reference": "Observation/26534e50-b8b4-2ec3-7f8d-c33d4c7792f1" - }, - { - "reference": "Observation/7878e0ad-8700-5b8b-47d9-7acff0e1eb34" - }, - { - "reference": "Observation/437fa03d-5559-9f37-42ed-482f65dd47ce" - } - ] - }, - "request": { - "method": "PUT", - "url": "DiagnosticReport/c3c41c66-630e-8d1b-2fad-cffb0957da29" - } - }, - { - "fullUrl": "urn:uuid:24b96f9a-359e-fc62-bf8a-45e4f1b4c6e9", - "resource": { - "resourceType": "Observation", - "id": "24b96f9a-359e-fc62-bf8a-45e4f1b4c6e9", - "code": { - "coding": [ - { - "code": "30180-4", - "display": "BASOPHILS/100 LEUKOCYTES", - "system": "LN" + { + "fullUrl": "urn:uuid:", + "resource": { + "resourceType": "Practitioner" + }, + "request": { + "method": "PUT", + "url": "Practitioner/" } - ] - }, - "valueQuantity": { - "value": "0", - "unit": "%" }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2014-10-06T08:30:00", - "component": [ - { - "code": { - "coding": [ - { - "code": "30180-4", - "display": "BASOPHILS/100 LEUKOCYTES", - "system": "LN" - } - ] - }, - "valueQuantity": { - "value": "0", - "unit": "%" + { + "fullUrl": "urn:uuid:", + "resource": { + "resourceType": "Location" }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ] - } - ], - "subject": { - "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" - } - }, - "request": { - "method": "PUT", - "url": "Observation/24b96f9a-359e-fc62-bf8a-45e4f1b4c6e9" - } - }, - { - "fullUrl": "urn:uuid:1b81a0d2-b102-41aa-421b-ac645e962ce4", - "resource": { - "resourceType": "Observation", - "id": "1b81a0d2-b102-41aa-421b-ac645e962ce4", - "code": { - "coding": [ - { - "code": "23761-0", - "display": "NEUTROPHILS/100 LEUKOCYTES", - "system": "LN" + "request": { + "method": "PUT", + "url": "Location/" } - ] - }, - "valueQuantity": { - "value": "72", - "unit": "%" }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2014-10-06T08:30:00", - "component": [ - { - "code": { - "coding": [ - { - "code": "23761-0", - "display": "NEUTROPHILS/100 LEUKOCYTES", - "system": "LN" - } - ] - }, - "valueQuantity": { - "value": "72", - "unit": "%" - }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + { + "fullUrl": "urn:uuid:", + "resource": { + "resourceType": "Provenance", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T13:58:35.885Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ORU_R01.

" + }, + "occurredDateTime": "2014-10-06T09:31:00", + "recorded": "2014-10-06T09:31:00", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + } + } + ], + "activity": { + "coding": [ + { + "display": "ORU^R01^" + } + ] + }, + "target": [ + { + "reference": "Bundle/" + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" - } - }, - "request": { - "method": "PUT", - "url": "Observation/1b81a0d2-b102-41aa-421b-ac645e962ce4" - } - }, - { - "fullUrl": "urn:uuid:26534e50-b8b4-2ec3-7f8d-c33d4c7792f1", - "resource": { - "resourceType": "Observation", - "id": "26534e50-b8b4-2ec3-7f8d-c33d4c7792f1", - "code": { - "coding": [ - { - "code": "26450-7", - "display": "EOSINOPHILS/100 LEUKOCYTES", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Provenance/" } - ] }, - "valueQuantity": { - "value": "2", - "unit": "%" - }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2014-10-06T08:30:00", - "component": [ - { - "code": { - "coding": [ - { - "code": "26450-7", - "display": "EOSINOPHILS/100 LEUKOCYTES", - "system": "LN" - } - ] - }, - "valueQuantity": { - "value": "2", - "unit": "%" - }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + { + "fullUrl": "urn:uuid:f70a39cb-cf13-6f75-885d-cf691752c711", + "resource": { + "resourceType": "Account", + "id": "f70a39cb-cf13-6f75-885d-cf691752c711", + "identifier": [ + { + "value": "40007716", + "type": { + "coding": [ + { + "code": "VN", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Visit number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-AccMgr" + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" - } - }, - "request": { - "method": "PUT", - "url": "Observation/26534e50-b8b4-2ec3-7f8d-c33d4c7792f1" - } - }, - { - "fullUrl": "urn:uuid:7878e0ad-8700-5b8b-47d9-7acff0e1eb34", - "resource": { - "resourceType": "Observation", - "id": "7878e0ad-8700-5b8b-47d9-7acff0e1eb34", - "code": { - "coding": [ - { - "code": "26478-8", - "display": "LYMPHOCYTES/100 LEUKOCYTES", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Account/f70a39cb-cf13-6f75-885d-cf691752c711" } - ] }, - "valueQuantity": { - "value": "20", - "unit": "%" - }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2014-10-06T08:30:00", - "component": [ - { - "code": { - "coding": [ - { - "code": "26478-8", - "display": "LYMPHOCYTES/100 LEUKOCYTES", - "system": "LN" + { + "fullUrl": "urn:uuid:", + "resource": { + "resourceType": "Encounter", + "text": { + "status": "generated", + "div": "

Visit Description:

" + }, + "subject": { + "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" } - ] - }, - "valueQuantity": { - "value": "20", - "unit": "%" }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ] - } - ], - "subject": { - "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" - } - }, - "request": { - "method": "PUT", - "url": "Observation/7878e0ad-8700-5b8b-47d9-7acff0e1eb34" - } - }, - { - "fullUrl": "urn:uuid:437fa03d-5559-9f37-42ed-482f65dd47ce", - "resource": { - "resourceType": "Observation", - "id": "437fa03d-5559-9f37-42ed-482f65dd47ce", - "code": { - "coding": [ - { - "code": "26485-3", - "display": "MONOCYTES/100 LEUKOCYTES", - "system": "LN" + "request": { + "method": "PUT", + "url": "Encounter/" } - ] }, - "valueQuantity": { - "value": "6", - "unit": "%" - }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2014-10-06T08:30:00", - "component": [ - { - "code": { - "coding": [ - { - "code": "26485-3", - "display": "MONOCYTES/100 LEUKOCYTES", - "system": "LN" - } - ] + { + "fullUrl": "urn:uuid:da437276-fd7c-eb21-1885-4041aa59c483", + "resource": { + "resourceType": "Practitioner", + "id": "da437276-fd7c-eb21-1885-4041aa59c483" }, - "valueQuantity": { - "value": "6", - "unit": "%" - }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ] - } - ], - "subject": { - "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" - } - }, - "request": { - "method": "PUT", - "url": "Observation/437fa03d-5559-9f37-42ed-482f65dd47ce" - } - }, - { - "fullUrl": "urn:uuid:6006d57e-e0a3-d90e-7d9b-546ed575c527", - "resource": { - "resourceType": "Specimen", - "id": "6006d57e-e0a3-d90e-7d9b-546ed575c527", - "collection": { - "collectedDateTime": "2014-10-06T05:35:00" - }, - "receivedTime": "2014-10-06T06:21:00", - "identifier": [ - { - "value": "SpecimenID", - "type": { - "coding": [ - { - "code": "PLAC", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" - } - ] - } - } - ], - "type": { - "coding": [ - { - "code": "BLD" + "request": { + "method": "PUT", + "url": "Practitioner/da437276-fd7c-eb21-1885-4041aa59c483" } - ] }, - "status": "available" - }, - "request": { - "method": "PUT", - "url": "Specimen/6006d57e-e0a3-d90e-7d9b-546ed575c527" - } - }, - { - "fullUrl": "urn:uuid:5207c1fc-b68c-7398-6585-264869affbff", - "resource": { - "resourceType": "DiagnosticReport", - "id": "5207c1fc-b68c-7398-6585-264869affbff", - "identifier": [ - { - "type": { - "coding": [ - { - "code": "FILL", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" - } - ] - } - }, - { - "value": "88502218" - }, - { - "value": "82503246" - } - ], - "code": { - "coding": [ - { - "code": "24317-0", - "display": "Hemogram and platelet count, automated", - "system": "LN" + { + "fullUrl": "urn:uuid:c3c41c66-630e-8d1b-2fad-cffb0957da29", + "resource": { + "resourceType": "DiagnosticReport", + "id": "c3c41c66-630e-8d1b-2fad-cffb0957da29", + "identifier": [ + { + "type": { + "coding": [ + { + "code": "FILL", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + }, + { + "value": "855238581" + }, + { + "value": "890775544" + } + ], + "code": { + "coding": [ + { + "code": "26464-8", + "display": "Differential WBC Count, buffy coat", + "system": "http://loinc.org" + } + ] + }, + "specimen": [ + { + "reference": "Practitioner/da437276-fd7c-eb21-1885-4041aa59c483" + }, + { + "reference": "Specimen/6006d57e-e0a3-d90e-7d9b-546ed575c527" + } + ], + "result": [ + { + "reference": "Observation/24b96f9a-359e-fc62-bf8a-45e4f1b4c6e9" + }, + { + "reference": "Observation/1b81a0d2-b102-41aa-421b-ac645e962ce4" + }, + { + "reference": "Observation/26534e50-b8b4-2ec3-7f8d-c33d4c7792f1" + }, + { + "reference": "Observation/7878e0ad-8700-5b8b-47d9-7acff0e1eb34" + }, + { + "reference": "Observation/437fa03d-5559-9f37-42ed-482f65dd47ce" + } + ] + }, + "request": { + "method": "PUT", + "url": "DiagnosticReport/c3c41c66-630e-8d1b-2fad-cffb0957da29" } - ] }, - "specimen": [ - { - "reference": "Practitioner/da437276-fd7c-eb21-1885-4041aa59c483" - }, - { - "reference": "Specimen/6006d57e-e0a3-d90e-7d9b-546ed575c527" - } - ], - "result": [ - { - "reference": "Observation/8c207e70-3fd2-2bf4-df75-256240c60258" - }, - { - "reference": "Observation/874ee31e-885c-d582-b76d-e145e99a2945" - }, - { - "reference": "Observation/be4f90a2-a433-fb21-0f23-70e43de46be5" - }, - { - "reference": "Observation/146f1ba0-2940-de97-93af-6c0dc64e54b2" - }, - { - "reference": "Observation/30282793-eed9-7f34-ea78-c9465ef05757" - } - ] - }, - "request": { - "method": "PUT", - "url": "DiagnosticReport/5207c1fc-b68c-7398-6585-264869affbff" - } - }, - { - "fullUrl": "urn:uuid:8c207e70-3fd2-2bf4-df75-256240c60258", - "resource": { - "resourceType": "Observation", - "id": "8c207e70-3fd2-2bf4-df75-256240c60258", - "code": { - "coding": [ - { - "code": "20509-6", - "display": "HEMOGLOBIN", - "system": "LN" + { + "fullUrl": "urn:uuid:24b96f9a-359e-fc62-bf8a-45e4f1b4c6e9", + "resource": { + "resourceType": "Observation", + "id": "24b96f9a-359e-fc62-bf8a-45e4f1b4c6e9", + "status": "final", + "code": { + "coding": [ + { + "code": "30180-4", + "display": "BASOPHILS/100 LEUKOCYTES", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 0, + "unit": "%" + }, + "effectiveDateTime": "2014-10-06T08:30:00", + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Observation/24b96f9a-359e-fc62-bf8a-45e4f1b4c6e9" } - ] }, - "valueQuantity": { - "value": "13.4", - "unit": "g/l-1" - }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2014-10-06T08:30:00", - "component": [ - { - "code": { - "coding": [ - { - "code": "20509-6", - "display": "HEMOGLOBIN", - "system": "LN" - } - ] - }, - "valueQuantity": { - "value": "13.4", - "unit": "g/l-1" - }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + { + "fullUrl": "urn:uuid:1b81a0d2-b102-41aa-421b-ac645e962ce4", + "resource": { + "resourceType": "Observation", + "id": "1b81a0d2-b102-41aa-421b-ac645e962ce4", + "status": "final", + "code": { + "coding": [ + { + "code": "23761-0", + "display": "NEUTROPHILS/100 LEUKOCYTES", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 72, + "unit": "%" + }, + "effectiveDateTime": "2014-10-06T08:30:00", + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" - } - }, - "request": { - "method": "PUT", - "url": "Observation/8c207e70-3fd2-2bf4-df75-256240c60258" - } - }, - { - "fullUrl": "urn:uuid:874ee31e-885c-d582-b76d-e145e99a2945", - "resource": { - "resourceType": "Observation", - "id": "874ee31e-885c-d582-b76d-e145e99a2945", - "code": { - "coding": [ - { - "code": "11156-7", - "display": "LEUKOCYTES", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Observation/1b81a0d2-b102-41aa-421b-ac645e962ce4" } - ] }, - "valueQuantity": { - "value": "8.2", - "unit": "giga.l-1" - }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2014-10-06T08:30:00", - "component": [ - { - "code": { - "coding": [ - { - "code": "11156-7", - "display": "LEUKOCYTES", - "system": "LN" - } - ] - }, - "valueQuantity": { - "value": "8.2", - "unit": "giga.l-1" - }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + { + "fullUrl": "urn:uuid:26534e50-b8b4-2ec3-7f8d-c33d4c7792f1", + "resource": { + "resourceType": "Observation", + "id": "26534e50-b8b4-2ec3-7f8d-c33d4c7792f1", + "status": "final", + "code": { + "coding": [ + { + "code": "26450-7", + "display": "EOSINOPHILS/100 LEUKOCYTES", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 2, + "unit": "%" + }, + "effectiveDateTime": "2014-10-06T08:30:00", + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" - } - }, - "request": { - "method": "PUT", - "url": "Observation/874ee31e-885c-d582-b76d-e145e99a2945" - } - }, - { - "fullUrl": "urn:uuid:be4f90a2-a433-fb21-0f23-70e43de46be5", - "resource": { - "resourceType": "Observation", - "id": "be4f90a2-a433-fb21-0f23-70e43de46be5", - "code": { - "coding": [ - { - "code": "11273-0", - "display": "ERYTHROCYTES", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Observation/26534e50-b8b4-2ec3-7f8d-c33d4c7792f1" } - ] }, - "valueQuantity": { - "value": "4.08", - "unit": "tera.l-1" - }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2014-10-06T08:30:00", - "component": [ - { - "code": { - "coding": [ - { - "code": "11273-0", - "display": "ERYTHROCYTES", - "system": "LN" - } - ] - }, - "valueQuantity": { - "value": "4.08", - "unit": "tera.l-1" - }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + { + "fullUrl": "urn:uuid:7878e0ad-8700-5b8b-47d9-7acff0e1eb34", + "resource": { + "resourceType": "Observation", + "id": "7878e0ad-8700-5b8b-47d9-7acff0e1eb34", + "status": "final", + "code": { + "coding": [ + { + "code": "26478-8", + "display": "LYMPHOCYTES/100 LEUKOCYTES", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 20, + "unit": "%" + }, + "effectiveDateTime": "2014-10-06T08:30:00", + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" - } - }, - "request": { - "method": "PUT", - "url": "Observation/be4f90a2-a433-fb21-0f23-70e43de46be5" - } - }, - { - "fullUrl": "urn:uuid:146f1ba0-2940-de97-93af-6c0dc64e54b2", - "resource": { - "resourceType": "Observation", - "id": "146f1ba0-2940-de97-93af-6c0dc64e54b2", - "code": { - "coding": [ - { - "code": "20570-8", - "display": "HEMATOCRIT", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Observation/7878e0ad-8700-5b8b-47d9-7acff0e1eb34" } - ] }, - "valueQuantity": { - "value": "39.7", - "unit": "%" + { + "fullUrl": "urn:uuid:437fa03d-5559-9f37-42ed-482f65dd47ce", + "resource": { + "resourceType": "Observation", + "id": "437fa03d-5559-9f37-42ed-482f65dd47ce", + "status": "final", + "code": { + "coding": [ + { + "code": "26485-3", + "display": "MONOCYTES/100 LEUKOCYTES", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 6, + "unit": "%" + }, + "effectiveDateTime": "2014-10-06T08:30:00", + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Observation/437fa03d-5559-9f37-42ed-482f65dd47ce" + } }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2014-10-06T08:30:00", - "component": [ - { - "code": { - "coding": [ - { - "code": "20570-8", - "display": "HEMATOCRIT", - "system": "LN" - } - ] + { + "fullUrl": "urn:uuid:6006d57e-e0a3-d90e-7d9b-546ed575c527", + "resource": { + "resourceType": "Specimen", + "id": "6006d57e-e0a3-d90e-7d9b-546ed575c527", + "collection": { + "collectedDateTime": "2014-10-06T05:35:00" + }, + "receivedTime": "2014-10-06T06:21:00", + "identifier": [ + { + "value": "SpecimenID", + "type": { + "coding": [ + { + "code": "PLAC", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "type": { + "coding": [ + { + "code": "BLD" + } + ] + }, + "status": "available" }, - "valueQuantity": { - "value": "39.7", - "unit": "%" + "request": { + "method": "PUT", + "url": "Specimen/6006d57e-e0a3-d90e-7d9b-546ed575c527" + } + }, + { + "fullUrl": "urn:uuid:5207c1fc-b68c-7398-6585-264869affbff", + "resource": { + "resourceType": "DiagnosticReport", + "id": "5207c1fc-b68c-7398-6585-264869affbff", + "identifier": [ + { + "type": { + "coding": [ + { + "code": "FILL", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + }, + { + "value": "88502218" + }, + { + "value": "82503246" + } + ], + "code": { + "coding": [ + { + "code": "24317-0", + "display": "Hemogram and platelet count, automated", + "system": "http://loinc.org" + } + ] + }, + "specimen": [ + { + "reference": "Practitioner/da437276-fd7c-eb21-1885-4041aa59c483" + }, + { + "reference": "Specimen/6006d57e-e0a3-d90e-7d9b-546ed575c527" + } + ], + "result": [ + { + "reference": "Observation/8c207e70-3fd2-2bf4-df75-256240c60258" + }, + { + "reference": "Observation/874ee31e-885c-d582-b76d-e145e99a2945" + }, + { + "reference": "Observation/be4f90a2-a433-fb21-0f23-70e43de46be5" + }, + { + "reference": "Observation/146f1ba0-2940-de97-93af-6c0dc64e54b2" + }, + { + "reference": "Observation/30282793-eed9-7f34-ea78-c9465ef05757" + } + ] }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + "request": { + "method": "PUT", + "url": "DiagnosticReport/5207c1fc-b68c-7398-6585-264869affbff" + } + }, + { + "fullUrl": "urn:uuid:8c207e70-3fd2-2bf4-df75-256240c60258", + "resource": { + "resourceType": "Observation", + "id": "8c207e70-3fd2-2bf4-df75-256240c60258", + "status": "final", + "code": { + "coding": [ + { + "code": "20509-6", + "display": "HEMOGLOBIN", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 13.4, + "unit": "g/l-1" + }, + "effectiveDateTime": "2014-10-06T08:30:00", + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" - } - }, - "request": { - "method": "PUT", - "url": "Observation/146f1ba0-2940-de97-93af-6c0dc64e54b2" - } - }, - { - "fullUrl": "urn:uuid:30282793-eed9-7f34-ea78-c9465ef05757", - "resource": { - "resourceType": "Observation", - "id": "30282793-eed9-7f34-ea78-c9465ef05757", - "code": { - "coding": [ - { - "code": "11125-2", - "display": "PLATELETS", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Observation/8c207e70-3fd2-2bf4-df75-256240c60258" } - ] }, - "valueQuantity": { - "value": "220", - "unit": "giga.l-1" + { + "fullUrl": "urn:uuid:874ee31e-885c-d582-b76d-e145e99a2945", + "resource": { + "resourceType": "Observation", + "id": "874ee31e-885c-d582-b76d-e145e99a2945", + "status": "final", + "code": { + "coding": [ + { + "code": "11156-7", + "display": "LEUKOCYTES", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 8.2, + "unit": "giga.l-1" + }, + "effectiveDateTime": "2014-10-06T08:30:00", + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Observation/874ee31e-885c-d582-b76d-e145e99a2945" + } }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2014-10-06T08:30:00", - "component": [ - { - "code": { - "coding": [ - { - "code": "11125-2", - "display": "PLATELETS", - "system": "LN" - } - ] + { + "fullUrl": "urn:uuid:be4f90a2-a433-fb21-0f23-70e43de46be5", + "resource": { + "resourceType": "Observation", + "id": "be4f90a2-a433-fb21-0f23-70e43de46be5", + "status": "final", + "code": { + "coding": [ + { + "code": "11273-0", + "display": "ERYTHROCYTES", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 4.08, + "unit": "tera.l-1" + }, + "effectiveDateTime": "2014-10-06T08:30:00", + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } + ] }, - "valueQuantity": { - "value": "220", - "unit": "giga.l-1" + "request": { + "method": "PUT", + "url": "Observation/be4f90a2-a433-fb21-0f23-70e43de46be5" + } + }, + { + "fullUrl": "urn:uuid:146f1ba0-2940-de97-93af-6c0dc64e54b2", + "resource": { + "resourceType": "Observation", + "id": "146f1ba0-2940-de97-93af-6c0dc64e54b2", + "status": "final", + "code": { + "coding": [ + { + "code": "20570-8", + "display": "HEMATOCRIT", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 39.7, + "unit": "%" + }, + "effectiveDateTime": "2014-10-06T08:30:00", + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } + ] }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + "request": { + "method": "PUT", + "url": "Observation/146f1ba0-2940-de97-93af-6c0dc64e54b2" + } + }, + { + "fullUrl": "urn:uuid:30282793-eed9-7f34-ea78-c9465ef05757", + "resource": { + "resourceType": "Observation", + "id": "30282793-eed9-7f34-ea78-c9465ef05757", + "status": "final", + "code": { + "coding": [ + { + "code": "11125-2", + "display": "PLATELETS", + "system": "http://loinc.org" + } + ] + }, + "valueQuantity": { + "value": 220, + "unit": "giga.l-1" + }, + "effectiveDateTime": "2014-10-06T08:30:00", + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/bab5ca58-f272-4c06-4b3f-f9661e45a22b" + }, + "request": { + "method": "PUT", + "url": "Observation/30282793-eed9-7f34-ea78-c9465ef05757" + } } - }, - "request": { - "method": "PUT", - "url": "Observation/30282793-eed9-7f34-ea78-c9465ef05757" - } - } - ] + ] } \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ORU_R01/LRI_2.0-NG_CBC_Typ_Message-expected.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ORU_R01/LRI_2.0-NG_CBC_Typ_Message-expected.json index 2309626ac..82507ee8b 100644 --- a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ORU_R01/LRI_2.0-NG_CBC_Typ_Message-expected.json +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ORU_R01/LRI_2.0-NG_CBC_Typ_Message-expected.json @@ -1,2691 +1,1787 @@ { - "resourceType": "Bundle", - "type": "batch", - "timestamp": "2011-06-01T03:05:51+08:00", - "identifier": { - "value": "NIST-LRI-NG-002.00" - }, - "entry": [ - { - "fullUrl": "urn:uuid:15cde54f-eadb-4bee-fe4c-0e8dbe4f4959", - "resource": { - "resourceType": "MessageHeader", - "id": "15cde54f-eadb-4bee-fe4c-0e8dbe4f4959", - "source": { - "name": "NIST Test Lab APP" - }, - "meta": { - "tag": [ - { - "code": "T", - "system": "http://terminology.hl7.org/CodeSystem/v2-0103" - } - ] - }, - "eventCoding": { - "code": "R01", - "system": "http://terminology.hl7.org/CodeSystem/v2-0003" - } - }, - "request": { - "method": "PUT", - "url": "MessageHeader/15cde54f-eadb-4bee-fe4c-0e8dbe4f4959" - } + "resourceType": "Bundle", + "type": "batch", + "timestamp": "2011-06-01T00:35:51+05:30", + "identifier": { + "value": "NIST-LRI-NG-002.00" }, - { - "fullUrl": "urn:uuid:397de93b-65e0-b3b6-7a79-d7869d57a8aa", - "resource": { - "resourceType": "Patient", - "id": "397de93b-65e0-b3b6-7a79-d7869d57a8aa", - "identifier": [ - { - "value": "PATID1234", - "type": { - "coding": [ - { - "code": "MR", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + "entry": [ + { + "fullUrl": "urn:uuid:15cde54f-eadb-4bee-fe4c-0e8dbe4f4959", + "resource": { + "resourceType": "MessageHeader", + "id": "15cde54f-eadb-4bee-fe4c-0e8dbe4f4959", + "source": { + "name": "NIST Test Lab APP", + "_endpoint": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } + ] + } + }, + "destination": [ + { + "_endpoint": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } + ] + }, + "receiver": { + "reference": "Organization/c828b9d8-dc07-4b58-af67-705a38d1fa4d" + } + } + ], + "meta": { + "tag": [ + { + "code": "T", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "R01", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ORU^R01^ORU_R01" + }, + "sender": { + "reference": "Organization/aa0cf9ae-78b3-73ec-0ef7-234369f8a10c" } - ] + }, + "request": { + "method": "PUT", + "url": "MessageHeader/15cde54f-eadb-4bee-fe4c-0e8dbe4f4959" } - } - ], - "name": [ - { - "family": "Jones", - "given": [ - "William", - "A" - ] - } - ], - "birthDate": "1961-06-15", - "gender": "male" - }, - "request": { - "method": "PUT", - "url": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Practitioner" - }, - "request": { - "method": "PUT", - "url": "Practitioner/" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Location" - }, - "request": { - "method": "PUT", - "url": "Location/" - } - }, - { - "fullUrl": "urn:uuid:2cae9944-334d-aa12-db0e-b76bf6379ba9", - "resource": { - "resourceType": "Provenance", - "id": "2cae9944-334d-aa12-db0e-b76bf6379ba9", - "text": { - "status": "generated", - "div": "

Resource bundle generated on GENERATED_INSTANT_PLACEHOLDER using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: TEMPLATE_URL_PLACEHOLDER.Root template: ORU_R01.

" }, - "recorded": "2011-06-01T03:05:51+08:00" - }, - "request": { - "method": "PUT", - "url": "Provenance/2cae9944-334d-aa12-db0e-b76bf6379ba9" - } - }, - { - "fullUrl": "urn:uuid:d89caeaa-3e83-1bc6-de48-869aade1d077", - "resource": { - "resourceType": "Account", - "id": "d89caeaa-3e83-1bc6-de48-869aade1d077", - "subject": [ - { - "reference": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" - } - ] - }, - "request": { - "method": "PUT", - "url": "Account/d89caeaa-3e83-1bc6-de48-869aade1d077" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Encounter", - "status": "unknown", - "subject": { - "reference": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" - } - }, - "request": { - "method": "PUT", - "url": "Encounter/" - } - }, - { - "fullUrl": "urn:uuid:e5528a59-da05-4148-e016-5b99bdb33924", - "resource": { - "resourceType": "DiagnosticReport", - "id": "e5528a59-da05-4148-e016-5b99bdb33924", - "identifier": [ - { - "type": { - "coding": [ - { - "code": "FILL", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" - } - ] - } - }, - { - "value": "ORD666555" - }, - { - "value": "R-991133" - } - ], - "effectiveDateTime": "2011-01-04T06:34:28+08:00", - "code": { - "coding": [ - { - "code": "57021-8", - "display": "CBC W Auto Differential panel in Blood", - "system": "LN" + { + "fullUrl": "urn:uuid:397de93b-65e0-b3b6-7a79-d7869d57a8aa", + "resource": { + "resourceType": "Patient", + "id": "397de93b-65e0-b3b6-7a79-d7869d57a8aa", + "identifier": [ + { + "value": "PATID1234", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NIST-MPI" + } + ], + "name": [ + { + "family": "Jones", + "given": [ + "William", + "A" + ] + } + ], + "birthDate": "1961-06-15", + "gender": "male", + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2106-3", + "display": "White", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "White" + } + ] + } + ] }, - { - "code": "4456544", - "display": "CBC", - "system": "99USI" + "request": { + "method": "PUT", + "url": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" } - ], - "text": "CBC W Auto Differential panel in Blood" }, - "issued": "2011-01-05T09:00:28+08:00", - "status": "final", - "result": [ - { - "reference": "Observation/b9018883-1320-3dfb-e157-cb46bb7a6679" - }, - { - "reference": "Observation/becb609f-f513-876c-973a-98f4a3e25295" - }, - { - "reference": "Observation/418e1d5b-7cf8-4f97-2f20-064f064073bf" - }, - { - "reference": "Observation/63ebf56e-13b3-032c-04f0-0b0ae2596154" - }, - { - "reference": "Observation/2fecfbb4-8bfc-33df-cc06-46079a214417" - }, - { - "reference": "Observation/d88298c6-5018-0e69-8bff-bb2e57479ede" - }, - { - "reference": "Observation/4f08fab4-ea01-aeb4-20a3-50d7c4df2d1e" - }, - { - "reference": "Observation/b1082ae5-5936-88dc-f6ab-906231b9c7f1" - }, - { - "reference": "Observation/61c65289-d3f6-bd40-9fa1-33856ad2288f" - }, - { - "reference": "Observation/69a93e5e-128e-1cd9-b510-a781f1af141a" - }, - { - "reference": "Observation/95277a83-6195-ad8c-9492-f3489b45732b" - }, - { - "reference": "Observation/4cd993fb-7522-ee9f-69de-3d12d06960a7" - }, - { - "reference": "Observation/15122490-e5b2-954f-3960-d7c8f3f62632" - }, - { - "reference": "Observation/612d5b88-0687-46f9-3ada-0fc9ba9b5fe0" - }, - { - "reference": "Observation/0f40b9a3-8c63-ca5d-cc60-859cfa8a6660" - }, - { - "reference": "Observation/d9a5816e-5c0e-15fe-cd9d-417f8abd7abb" - }, - { - "reference": "Observation/db00b811-6280-5dad-bf61-07314b205438" - }, - { - "reference": "Observation/0b77694d-87ce-5da4-90c4-4d451437d2d9" - }, - { - "reference": "Observation/4c96bb15-0280-fea1-1715-e3f424cf55cc" - }, - { - "reference": "Observation/19124803-ebc8-8a88-2acc-f5b890f8c5c5" - }, - { - "reference": "Observation/6074e0a6-0ba6-b905-c957-13b2899a4dbe" - }, - { - "reference": "Observation/700cce12-7f39-bbb0-94f3-689107732835" - }, - { - "reference": "Observation/d198666f-2eae-1c28-ee17-d525a7a3ec85" - }, - { - "reference": "Observation/db250a50-54ff-eacd-ef4f-8f05b79aecad" - }, - { - "reference": "Observation/90c2203d-56d6-be20-2be4-9b879d3647a5" - }, - { - "reference": "Observation/3260b2c2-a8f9-1a32-d09f-556192b37dcd" - }, - { - "reference": "Observation/ff76c538-2861-d8cf-7fc6-418d7f0688ef" - }, - { - "reference": "Observation/7cb9f3da-bf77-1317-12a2-d70c8577ca71" - } - ], - "specimen": [ - { - "reference": "Specimen/a1b19bd0-91c3-dbfa-4f1e-fdeb0eeb6963" - } - ] - }, - "request": { - "method": "PUT", - "url": "DiagnosticReport/e5528a59-da05-4148-e016-5b99bdb33924" - } - }, - { - "fullUrl": "urn:uuid:c8cd57a5-13a6-54d1-7dcd-d0a6b637c660", - "resource": { - "resourceType": "Organization", - "id": "c8cd57a5-13a6-54d1-7dcd-d0a6b637c660", - "address": [ - { - "line": [ - "2070 Test Park" - ], - "city": "Los Angeles", - "state": "CA", - "postalCode": "90067" - }, - { - "line": [ - "2070 Test Park" - ], - "city": "Los Angeles", - "state": "CA", - "postalCode": "90067" - } - ] - }, - "request": { - "method": "PUT", - "url": "Organization/c8cd57a5-13a6-54d1-7dcd-d0a6b637c660" - } - }, - { - "fullUrl": "urn:uuid:fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8", - "resource": { - "resourceType": "PractitionerRole", - "id": "fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8", - "organization": { - "reference": "Organization/c8cd57a5-13a6-54d1-7dcd-d0a6b637c660" - } - }, - "request": { - "method": "PUT", - "url": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" - } - }, - { - "fullUrl": "urn:uuid:b9018883-1320-3dfb-e157-cb46bb7a6679", - "resource": { - "resourceType": "Observation", - "id": "b9018883-1320-3dfb-e157-cb46bb7a6679", - "code": { - "coding": [ - { - "code": "26453-1", - "display": "Erythrocytes [#/volume] in Blood", - "system": "LN" + { + "fullUrl": "urn:uuid:", + "resource": { + "resourceType": "Practitioner" + }, + "request": { + "method": "PUT", + "url": "Practitioner/" } - ], - "text": "Erythrocytes [#/volume] in Blood" - }, - "valueQuantity": { - "value": "4.41", - "code": "10*6/uL", - "unit": "million per microliter", - "system": "UCUM" }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2011-01-04T06:34:28+08:00", - "performer": [ - { - "reference": "Organization/c8cd57a5-13a6-54d1-7dcd-d0a6b637c660" - }, - { - "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" - } - ], - "component": [ - { - "code": { - "coding": [ - { - "code": "26453-1", - "display": "Erythrocytes [#/volume] in Blood", - "system": "LN" - } - ], - "text": "Erythrocytes [#/volume] in Blood" - }, - "valueQuantity": { - "value": "4.41", - "code": "10*6/uL", - "unit": "million per microliter", - "system": "UCUM" + { + "fullUrl": "urn:uuid:", + "resource": { + "resourceType": "Location" }, - "referenceRange": [ - { - "text": "4.3 to 6.2" - } - ], - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ] - } - ], - "subject": { - "reference": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" - } - }, - "request": { - "method": "PUT", - "url": "Observation/b9018883-1320-3dfb-e157-cb46bb7a6679" - } - }, - { - "fullUrl": "urn:uuid:becb609f-f513-876c-973a-98f4a3e25295", - "resource": { - "resourceType": "Observation", - "id": "becb609f-f513-876c-973a-98f4a3e25295", - "code": { - "coding": [ - { - "code": "718-7", - "display": "Hemoglobin [Mass/volume] in Blood", - "system": "LN" + "request": { + "method": "PUT", + "url": "Location/" } - ], - "text": "Hemoglobin [Mass/volume] in Blood" - }, - "valueQuantity": { - "value": "12.5", - "code": "g/mL", - "unit": "grams per milliliter", - "system": "UCUM" }, - "interpretation": [ - { - "coding": [ - { - "code": "L", - "display": "Low", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2011-01-04T06:34:28+08:00", - "performer": [ - { - "reference": "Organization/c8cd57a5-13a6-54d1-7dcd-d0a6b637c660" - }, - { - "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" - } - ], - "component": [ - { - "code": { - "coding": [ - { - "code": "718-7", - "display": "Hemoglobin [Mass/volume] in Blood", - "system": "LN" - } - ], - "text": "Hemoglobin [Mass/volume] in Blood" - }, - "valueQuantity": { - "value": "12.5", - "code": "g/mL", - "unit": "grams per milliliter", - "system": "UCUM" - }, - "referenceRange": [ - { - "text": "13 to 18" - } - ], - "interpretation": [ - { - "coding": [ - { - "code": "L", - "display": "Low", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + { + "fullUrl": "urn:uuid:1f2725f5-0c29-68dd-b124-7e4f4eba2a32", + "resource": { + "resourceType": "Provenance", + "id": "1f2725f5-0c29-68dd-b124-7e4f4eba2a32", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T13:59:20.123Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ORU_R01.

" + }, + "occurredDateTime": "2011-06-01T00:35:51+05:30", + "recorded": "2011-06-01T00:35:51+05:30", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/aa0cf9ae-78b3-73ec-0ef7-234369f8a10c" + } + } + ], + "activity": { + "coding": [ + { + "display": "ORU^R01^ORU_R01" + } + ] + }, + "target": [ + { + "reference": "Bundle/" + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" - } - }, - "request": { - "method": "PUT", - "url": "Observation/becb609f-f513-876c-973a-98f4a3e25295" - } - }, - { - "fullUrl": "urn:uuid:418e1d5b-7cf8-4f97-2f20-064f064073bf", - "resource": { - "resourceType": "Observation", - "id": "418e1d5b-7cf8-4f97-2f20-064f064073bf", - "code": { - "coding": [ - { - "code": "20570-8", - "display": "Hematocrit [Volume Fraction] of Blood", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Provenance/1f2725f5-0c29-68dd-b124-7e4f4eba2a32" } - ], - "text": "Hematocrit [Volume Fraction] of Blood" - }, - "valueQuantity": { - "value": "41", - "code": "%", - "unit": "percent", - "system": "UCUM" }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2011-01-04T06:34:28+08:00", - "performer": [ - { - "reference": "Organization/c8cd57a5-13a6-54d1-7dcd-d0a6b637c660" - }, - { - "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" - } - ], - "component": [ - { - "code": { - "coding": [ - { - "code": "20570-8", - "display": "Hematocrit [Volume Fraction] of Blood", - "system": "LN" - } - ], - "text": "Hematocrit [Volume Fraction] of Blood" - }, - "valueQuantity": { - "value": "41", - "code": "%", - "unit": "percent", - "system": "UCUM" - }, - "referenceRange": [ - { - "text": "40 to 52" - } - ], - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + { + "fullUrl": "urn:uuid:d89caeaa-3e83-1bc6-de48-869aade1d077", + "resource": { + "resourceType": "Account", + "id": "d89caeaa-3e83-1bc6-de48-869aade1d077", + "status": "active", + "subject": [ + { + "reference": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" - } - }, - "request": { - "method": "PUT", - "url": "Observation/418e1d5b-7cf8-4f97-2f20-064f064073bf" - } - }, - { - "fullUrl": "urn:uuid:63ebf56e-13b3-032c-04f0-0b0ae2596154", - "resource": { - "resourceType": "Observation", - "id": "63ebf56e-13b3-032c-04f0-0b0ae2596154", - "code": { - "coding": [ - { - "code": "26464-8", - "display": "Leukocytes [#/volume] in Blood", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Account/d89caeaa-3e83-1bc6-de48-869aade1d077" } - ], - "text": "Leukocytes [#/volume] in Blood" }, - "valueQuantity": { - "value": "105600", - "code": "{cells}/uL", - "unit": "cells per microliter", - "system": "UCUM" - }, - "interpretation": [ - { - "coding": [ - { - "code": "HH", - "display": "Critical high", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2011-01-04T06:34:28+08:00", - "performer": [ - { - "reference": "Organization/c8cd57a5-13a6-54d1-7dcd-d0a6b637c660" - }, - { - "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" - } - ], - "component": [ - { - "code": { - "coding": [ - { - "code": "26464-8", - "display": "Leukocytes [#/volume] in Blood", - "system": "LN" + { + "fullUrl": "urn:uuid:", + "resource": { + "resourceType": "Encounter", + "text": { + "status": "generated", + "div": "

Visit Description:

" + }, + "subject": { + "reference": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" } - ], - "text": "Leukocytes [#/volume] in Blood" - }, - "valueQuantity": { - "value": "105600", - "code": "{cells}/uL", - "unit": "cells per microliter", - "system": "UCUM" }, - "referenceRange": [ - { - "text": "4300 to 10800" - } - ], - "interpretation": [ - { - "coding": [ - { - "code": "HH", - "display": "Critical high", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ] - } - ], - "subject": { - "reference": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" - } - }, - "request": { - "method": "PUT", - "url": "Observation/63ebf56e-13b3-032c-04f0-0b0ae2596154" - } - }, - { - "fullUrl": "urn:uuid:2fecfbb4-8bfc-33df-cc06-46079a214417", - "resource": { - "resourceType": "Observation", - "id": "2fecfbb4-8bfc-33df-cc06-46079a214417", - "code": { - "coding": [ - { - "code": "26515-7", - "display": "Platelets [#/volume] in Blood", - "system": "LN" + "request": { + "method": "PUT", + "url": "Encounter/" } - ], - "text": "Platelets [#/volume] in Blood" - }, - "valueQuantity": { - "value": "210000", - "code": "{cells}/uL", - "unit": "cells per microliter", - "system": "UCUM" }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2011-01-04T06:34:28+08:00", - "performer": [ - { - "reference": "Organization/c8cd57a5-13a6-54d1-7dcd-d0a6b637c660" - }, - { - "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" - } - ], - "component": [ - { - "code": { - "coding": [ - { - "code": "26515-7", - "display": "Platelets [#/volume] in Blood", - "system": "LN" - } - ], - "text": "Platelets [#/volume] in Blood" - }, - "valueQuantity": { - "value": "210000", - "code": "{cells}/uL", - "unit": "cells per microliter", - "system": "UCUM" - }, - "referenceRange": [ - { - "text": "150000 to 350000" - } - ], - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + { + "fullUrl": "urn:uuid:e5528a59-da05-4148-e016-5b99bdb33924", + "resource": { + "resourceType": "DiagnosticReport", + "id": "e5528a59-da05-4148-e016-5b99bdb33924", + "identifier": [ + { + "type": { + "coding": [ + { + "code": "FILL", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + }, + { + "value": "ORD666555", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-NIST EHR" + }, + { + "value": "R-991133", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-NIST Lab Filler" + } + ], + "effectiveDateTime": "2011-01-04T04:04:28+05:30", + "code": { + "coding": [ + { + "code": "57021-8", + "display": "CBC W Auto Differential panel in Blood", + "system": "http://loinc.org" + }, + { + "code": "4456544", + "display": "CBC", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/99USI" + } + ], + "text": "CBC W Auto Differential panel in Blood" + }, + "issued": "2011-01-05T06:30:28+05:30", + "status": "final", + "result": [ + { + "reference": "Observation/b9018883-1320-3dfb-e157-cb46bb7a6679" + }, + { + "reference": "Observation/becb609f-f513-876c-973a-98f4a3e25295" + }, + { + "reference": "Observation/418e1d5b-7cf8-4f97-2f20-064f064073bf" + }, + { + "reference": "Observation/63ebf56e-13b3-032c-04f0-0b0ae2596154" + }, + { + "reference": "Observation/2fecfbb4-8bfc-33df-cc06-46079a214417" + }, + { + "reference": "Observation/d88298c6-5018-0e69-8bff-bb2e57479ede" + }, + { + "reference": "Observation/4f08fab4-ea01-aeb4-20a3-50d7c4df2d1e" + }, + { + "reference": "Observation/b1082ae5-5936-88dc-f6ab-906231b9c7f1" + }, + { + "reference": "Observation/61c65289-d3f6-bd40-9fa1-33856ad2288f" + }, + { + "reference": "Observation/69a93e5e-128e-1cd9-b510-a781f1af141a" + }, + { + "reference": "Observation/95277a83-6195-ad8c-9492-f3489b45732b" + }, + { + "reference": "Observation/4cd993fb-7522-ee9f-69de-3d12d06960a7" + }, + { + "reference": "Observation/15122490-e5b2-954f-3960-d7c8f3f62632" + }, + { + "reference": "Observation/612d5b88-0687-46f9-3ada-0fc9ba9b5fe0" + }, + { + "reference": "Observation/0f40b9a3-8c63-ca5d-cc60-859cfa8a6660" + }, + { + "reference": "Observation/d9a5816e-5c0e-15fe-cd9d-417f8abd7abb" + }, + { + "reference": "Observation/db00b811-6280-5dad-bf61-07314b205438" + }, + { + "reference": "Observation/0b77694d-87ce-5da4-90c4-4d451437d2d9" + }, + { + "reference": "Observation/4c96bb15-0280-fea1-1715-e3f424cf55cc" + }, + { + "reference": "Observation/19124803-ebc8-8a88-2acc-f5b890f8c5c5" + }, + { + "reference": "Observation/6074e0a6-0ba6-b905-c957-13b2899a4dbe" + }, + { + "reference": "Observation/700cce12-7f39-bbb0-94f3-689107732835" + }, + { + "reference": "Observation/d198666f-2eae-1c28-ee17-d525a7a3ec85" + }, + { + "reference": "Observation/db250a50-54ff-eacd-ef4f-8f05b79aecad" + }, + { + "reference": "Observation/90c2203d-56d6-be20-2be4-9b879d3647a5" + }, + { + "reference": "Observation/3260b2c2-a8f9-1a32-d09f-556192b37dcd" + }, + { + "reference": "Observation/ff76c538-2861-d8cf-7fc6-418d7f0688ef" + }, + { + "reference": "Observation/7cb9f3da-bf77-1317-12a2-d70c8577ca71" + } + ], + "specimen": [ + { + "reference": "Specimen/a1b19bd0-91c3-dbfa-4f1e-fdeb0eeb6963" + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" - } - }, - "request": { - "method": "PUT", - "url": "Observation/2fecfbb4-8bfc-33df-cc06-46079a214417" - } - }, - { - "fullUrl": "urn:uuid:d88298c6-5018-0e69-8bff-bb2e57479ede", - "resource": { - "resourceType": "Observation", - "id": "d88298c6-5018-0e69-8bff-bb2e57479ede", - "code": { - "coding": [ - { - "code": "30428-7", - "display": "Erythrocyte mean corpuscular volume [Entitic volume]", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "DiagnosticReport/e5528a59-da05-4148-e016-5b99bdb33924" } - ], - "text": "Erythrocyte mean corpuscular volume [Entitic volume]" - }, - "valueQuantity": { - "value": "91", - "code": "fL", - "unit": "femtoliter", - "system": "UCUM" }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2011-01-04T06:34:28+08:00", - "performer": [ - { - "reference": "Organization/c8cd57a5-13a6-54d1-7dcd-d0a6b637c660" - }, - { - "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" - } - ], - "component": [ - { - "code": { - "coding": [ - { - "code": "30428-7", - "display": "Erythrocyte mean corpuscular volume [Entitic volume]", - "system": "LN" - } - ], - "text": "Erythrocyte mean corpuscular volume [Entitic volume]" - }, - "valueQuantity": { - "value": "91", - "code": "fL", - "unit": "femtoliter", - "system": "UCUM" - }, - "referenceRange": [ - { - "text": "80 to 95" - } - ], - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + { + "fullUrl": "urn:uuid:c8cd57a5-13a6-54d1-7dcd-d0a6b637c660", + "resource": { + "resourceType": "Organization", + "id": "c8cd57a5-13a6-54d1-7dcd-d0a6b637c660", + "address": [ + { + "line": [ + "2070 Test Park" + ], + "city": "Los Angeles", + "state": "CA", + "postalCode": "90067", + "use": "work" + }, + { + "line": [ + "2070 Test Park" + ], + "city": "Los Angeles", + "state": "CA", + "postalCode": "90067", + "use": "work" + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" - } - }, - "request": { - "method": "PUT", - "url": "Observation/d88298c6-5018-0e69-8bff-bb2e57479ede" - } - }, - { - "fullUrl": "urn:uuid:4f08fab4-ea01-aeb4-20a3-50d7c4df2d1e", - "resource": { - "resourceType": "Observation", - "id": "4f08fab4-ea01-aeb4-20a3-50d7c4df2d1e", - "code": { - "coding": [ - { - "code": "28539-5", - "display": "Erythrocyte mean corpuscular hemoglobin [Entitic mass]", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Organization/c8cd57a5-13a6-54d1-7dcd-d0a6b637c660" } - ], - "text": "Erythrocyte mean corpuscular hemoglobin [Entitic mass]" - }, - "valueQuantity": { - "value": "29", - "code": "pg/{cell}", - "unit": "picograms per cell", - "system": "UCUM" }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2011-01-04T06:34:28+08:00", - "performer": [ - { - "reference": "Organization/c8cd57a5-13a6-54d1-7dcd-d0a6b637c660" - }, - { - "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" - } - ], - "component": [ - { - "code": { - "coding": [ - { - "code": "28539-5", - "display": "Erythrocyte mean corpuscular hemoglobin [Entitic mass]", - "system": "LN" - } - ], - "text": "Erythrocyte mean corpuscular hemoglobin [Entitic mass]" - }, - "valueQuantity": { - "value": "29", - "code": "pg/{cell}", - "unit": "picograms per cell", - "system": "UCUM" + { + "fullUrl": "urn:uuid:fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8", + "resource": { + "resourceType": "PractitionerRole", + "id": "fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" }, - "referenceRange": [ - { - "text": "27 to 31" - } - ], - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ] - } - ], - "subject": { - "reference": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" - } - }, - "request": { - "method": "PUT", - "url": "Observation/4f08fab4-ea01-aeb4-20a3-50d7c4df2d1e" - } - }, - { - "fullUrl": "urn:uuid:b1082ae5-5936-88dc-f6ab-906231b9c7f1", - "resource": { - "resourceType": "Observation", - "id": "b1082ae5-5936-88dc-f6ab-906231b9c7f1", - "code": { - "coding": [ - { - "code": "28540-3", - "display": "Erythrocyte mean corpuscular hemoglobin concentration [Mass/volume]", - "system": "LN" + "request": { + "method": "PUT", + "url": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" } - ], - "text": "Erythrocyte mean corpuscular hemoglobin concentration [Mass/volume]" - }, - "valueQuantity": { - "value": "32.4", - "code": "g/dL", - "unit": "grams per deciliter", - "system": "UCUM" }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2011-01-04T06:34:28+08:00", - "performer": [ - { - "reference": "Organization/c8cd57a5-13a6-54d1-7dcd-d0a6b637c660" - }, - { - "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" - } - ], - "component": [ - { - "code": { - "coding": [ - { - "code": "28540-3", - "display": "Erythrocyte mean corpuscular hemoglobin concentration [Mass/volume]", - "system": "LN" - } - ], - "text": "Erythrocyte mean corpuscular hemoglobin concentration [Mass/volume]" - }, - "valueQuantity": { - "value": "32.4", - "code": "g/dL", - "unit": "grams per deciliter", - "system": "UCUM" - }, - "referenceRange": [ - { - "text": "32 to 36" - } - ], - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + { + "fullUrl": "urn:uuid:b9018883-1320-3dfb-e157-cb46bb7a6679", + "resource": { + "resourceType": "Observation", + "id": "b9018883-1320-3dfb-e157-cb46bb7a6679", + "status": "final", + "code": { + "coding": [ + { + "code": "26453-1", + "display": "Erythrocytes [#/volume] in Blood", + "system": "http://loinc.org" + } + ], + "text": "Erythrocytes [#/volume] in Blood" + }, + "valueQuantity": { + "value": 4.41, + "code": "10*6/uL", + "unit": "million per microliter", + "system": "http://unitsofmeasure.org" + }, + "referenceRange": [ + { + "text": "4.3 to 6.2" + } + ], + "effectiveDateTime": "2011-01-04T04:04:28+05:30", + "performer": [ + { + "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" - } - }, - "request": { - "method": "PUT", - "url": "Observation/b1082ae5-5936-88dc-f6ab-906231b9c7f1" - } - }, - { - "fullUrl": "urn:uuid:61c65289-d3f6-bd40-9fa1-33856ad2288f", - "resource": { - "resourceType": "Observation", - "id": "61c65289-d3f6-bd40-9fa1-33856ad2288f", - "code": { - "coding": [ - { - "code": "30385-9", - "display": "Erythrocyte distribution width [Ratio]", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Observation/b9018883-1320-3dfb-e157-cb46bb7a6679" } - ], - "text": "Erythrocyte distribution width [Ratio]" - }, - "valueQuantity": { - "value": "10.5", - "code": "%", - "unit": "percent", - "system": "UCUM" }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2011-01-04T06:34:28+08:00", - "performer": [ - { - "reference": "Organization/c8cd57a5-13a6-54d1-7dcd-d0a6b637c660" - }, - { - "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" - } - ], - "component": [ - { - "code": { - "coding": [ - { - "code": "30385-9", - "display": "Erythrocyte distribution width [Ratio]", - "system": "LN" - } - ], - "text": "Erythrocyte distribution width [Ratio]" - }, - "valueQuantity": { - "value": "10.5", - "code": "%", - "unit": "percent", - "system": "UCUM" - }, - "referenceRange": [ - { - "text": "10.2 to 14.5" - } - ], - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + { + "fullUrl": "urn:uuid:becb609f-f513-876c-973a-98f4a3e25295", + "resource": { + "resourceType": "Observation", + "id": "becb609f-f513-876c-973a-98f4a3e25295", + "status": "final", + "code": { + "coding": [ + { + "code": "718-7", + "display": "Hemoglobin [Mass/volume] in Blood", + "system": "http://loinc.org" + } + ], + "text": "Hemoglobin [Mass/volume] in Blood" + }, + "valueQuantity": { + "value": 12.5, + "code": "g/mL", + "unit": "grams per milliliter", + "system": "http://unitsofmeasure.org" + }, + "referenceRange": [ + { + "text": "13 to 18" + } + ], + "effectiveDateTime": "2011-01-04T04:04:28+05:30", + "performer": [ + { + "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "L", + "display": "Low", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" - } - }, - "request": { - "method": "PUT", - "url": "Observation/61c65289-d3f6-bd40-9fa1-33856ad2288f" - } - }, - { - "fullUrl": "urn:uuid:69a93e5e-128e-1cd9-b510-a781f1af141a", - "resource": { - "resourceType": "Observation", - "id": "69a93e5e-128e-1cd9-b510-a781f1af141a", - "code": { - "coding": [ - { - "code": "26444-0", - "display": "Basophils [#/volume] in Blood", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Observation/becb609f-f513-876c-973a-98f4a3e25295" } - ], - "text": "Basophils [#/volume] in Blood" }, - "valueQuantity": { - "value": "0.1", - "code": "10*3/uL", - "unit": "thousand per microliter", - "system": "UCUM" - }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2011-01-04T06:34:28+08:00", - "performer": [ - { - "reference": "Organization/c8cd57a5-13a6-54d1-7dcd-d0a6b637c660" - }, - { - "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" - } - ], - "component": [ - { - "code": { - "coding": [ - { - "code": "26444-0", - "display": "Basophils [#/volume] in Blood", - "system": "LN" - } - ], - "text": "Basophils [#/volume] in Blood" - }, - "valueQuantity": { - "value": "0.1", - "code": "10*3/uL", - "unit": "thousand per microliter", - "system": "UCUM" - }, - "referenceRange": [ - { - "text": "0 to 0.3" - } - ], - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + { + "fullUrl": "urn:uuid:418e1d5b-7cf8-4f97-2f20-064f064073bf", + "resource": { + "resourceType": "Observation", + "id": "418e1d5b-7cf8-4f97-2f20-064f064073bf", + "status": "final", + "code": { + "coding": [ + { + "code": "20570-8", + "display": "Hematocrit [Volume Fraction] of Blood", + "system": "http://loinc.org" + } + ], + "text": "Hematocrit [Volume Fraction] of Blood" + }, + "valueQuantity": { + "value": 41, + "code": "%", + "unit": "percent", + "system": "http://unitsofmeasure.org" + }, + "referenceRange": [ + { + "text": "40 to 52" + } + ], + "effectiveDateTime": "2011-01-04T04:04:28+05:30", + "performer": [ + { + "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" - } - }, - "request": { - "method": "PUT", - "url": "Observation/69a93e5e-128e-1cd9-b510-a781f1af141a" - } - }, - { - "fullUrl": "urn:uuid:95277a83-6195-ad8c-9492-f3489b45732b", - "resource": { - "resourceType": "Observation", - "id": "95277a83-6195-ad8c-9492-f3489b45732b", - "code": { - "coding": [ - { - "code": "30180-4", - "display": "Basophils/100 leukocytes in Blood", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Observation/418e1d5b-7cf8-4f97-2f20-064f064073bf" } - ], - "text": "Basophils/100 leukocytes in Blood" }, - "valueQuantity": { - "value": "0.1", - "code": "%", - "unit": "percent", - "system": "UCUM" - }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2011-01-04T06:34:28+08:00", - "performer": [ - { - "reference": "Organization/c8cd57a5-13a6-54d1-7dcd-d0a6b637c660" - }, - { - "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" - } - ], - "component": [ - { - "code": { - "coding": [ - { - "code": "30180-4", - "display": "Basophils/100 leukocytes in Blood", - "system": "LN" - } - ], - "text": "Basophils/100 leukocytes in Blood" - }, - "valueQuantity": { - "value": "0.1", - "code": "%", - "unit": "percent", - "system": "UCUM" - }, - "referenceRange": [ - { - "text": "0 to 2" - } - ], - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + { + "fullUrl": "urn:uuid:63ebf56e-13b3-032c-04f0-0b0ae2596154", + "resource": { + "resourceType": "Observation", + "id": "63ebf56e-13b3-032c-04f0-0b0ae2596154", + "status": "final", + "code": { + "coding": [ + { + "code": "26464-8", + "display": "Leukocytes [#/volume] in Blood", + "system": "http://loinc.org" + } + ], + "text": "Leukocytes [#/volume] in Blood" + }, + "valueQuantity": { + "value": 105600, + "code": "{cells}/uL", + "unit": "cells per microliter", + "system": "http://unitsofmeasure.org" + }, + "referenceRange": [ + { + "text": "4300 to 10800" + } + ], + "effectiveDateTime": "2011-01-04T04:04:28+05:30", + "performer": [ + { + "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "HH", + "display": "Critical high", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" - } - }, - "request": { - "method": "PUT", - "url": "Observation/95277a83-6195-ad8c-9492-f3489b45732b" - } - }, - { - "fullUrl": "urn:uuid:4cd993fb-7522-ee9f-69de-3d12d06960a7", - "resource": { - "resourceType": "Observation", - "id": "4cd993fb-7522-ee9f-69de-3d12d06960a7", - "code": { - "coding": [ - { - "code": "26484-6", - "display": "Monocytes [#/volume] in Blood", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Observation/63ebf56e-13b3-032c-04f0-0b0ae2596154" } - ], - "text": "Monocytes [#/volume] in Blood" - }, - "valueQuantity": { - "value": "3", - "code": "10*3/uL", - "unit": "thousand per microliter", - "system": "UCUM" }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2011-01-04T06:34:28+08:00", - "performer": [ - { - "reference": "Organization/c8cd57a5-13a6-54d1-7dcd-d0a6b637c660" - }, - { - "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" - } - ], - "component": [ - { - "code": { - "coding": [ - { - "code": "26484-6", - "display": "Monocytes [#/volume] in Blood", - "system": "LN" - } - ], - "text": "Monocytes [#/volume] in Blood" - }, - "valueQuantity": { - "value": "3", - "code": "10*3/uL", - "unit": "thousand per microliter", - "system": "UCUM" - }, - "referenceRange": [ - { - "text": "0.0 to 13.0" - } - ], - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + { + "fullUrl": "urn:uuid:2fecfbb4-8bfc-33df-cc06-46079a214417", + "resource": { + "resourceType": "Observation", + "id": "2fecfbb4-8bfc-33df-cc06-46079a214417", + "status": "final", + "code": { + "coding": [ + { + "code": "26515-7", + "display": "Platelets [#/volume] in Blood", + "system": "http://loinc.org" + } + ], + "text": "Platelets [#/volume] in Blood" + }, + "valueQuantity": { + "value": 210000, + "code": "{cells}/uL", + "unit": "cells per microliter", + "system": "http://unitsofmeasure.org" + }, + "referenceRange": [ + { + "text": "150000 to 350000" + } + ], + "effectiveDateTime": "2011-01-04T04:04:28+05:30", + "performer": [ + { + "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" - } - }, - "request": { - "method": "PUT", - "url": "Observation/4cd993fb-7522-ee9f-69de-3d12d06960a7" - } - }, - { - "fullUrl": "urn:uuid:15122490-e5b2-954f-3960-d7c8f3f62632", - "resource": { - "resourceType": "Observation", - "id": "15122490-e5b2-954f-3960-d7c8f3f62632", - "code": { - "coding": [ - { - "code": "26485-3", - "display": "Monocytes/100 leukocytes in Blood", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Observation/2fecfbb4-8bfc-33df-cc06-46079a214417" } - ], - "text": "Monocytes/100 leukocytes in Blood" - }, - "valueQuantity": { - "value": "3", - "code": "%", - "unit": "percent", - "system": "UCUM" }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2011-01-04T06:34:28+08:00", - "performer": [ - { - "reference": "Organization/c8cd57a5-13a6-54d1-7dcd-d0a6b637c660" - }, - { - "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" - } - ], - "component": [ - { - "code": { - "coding": [ - { - "code": "26485-3", - "display": "Monocytes/100 leukocytes in Blood", - "system": "LN" - } - ], - "text": "Monocytes/100 leukocytes in Blood" - }, - "valueQuantity": { - "value": "3", - "code": "%", - "unit": "percent", - "system": "UCUM" - }, - "referenceRange": [ - { - "text": "0 to 10" - } - ], - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + { + "fullUrl": "urn:uuid:d88298c6-5018-0e69-8bff-bb2e57479ede", + "resource": { + "resourceType": "Observation", + "id": "d88298c6-5018-0e69-8bff-bb2e57479ede", + "status": "final", + "code": { + "coding": [ + { + "code": "30428-7", + "display": "Erythrocyte mean corpuscular volume [Entitic volume]", + "system": "http://loinc.org" + } + ], + "text": "Erythrocyte mean corpuscular volume [Entitic volume]" + }, + "valueQuantity": { + "value": 91, + "code": "fL", + "unit": "femtoliter", + "system": "http://unitsofmeasure.org" + }, + "referenceRange": [ + { + "text": "80 to 95" + } + ], + "effectiveDateTime": "2011-01-04T04:04:28+05:30", + "performer": [ + { + "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" - } - }, - "request": { - "method": "PUT", - "url": "Observation/15122490-e5b2-954f-3960-d7c8f3f62632" - } - }, - { - "fullUrl": "urn:uuid:612d5b88-0687-46f9-3ada-0fc9ba9b5fe0", - "resource": { - "resourceType": "Observation", - "id": "612d5b88-0687-46f9-3ada-0fc9ba9b5fe0", - "code": { - "coding": [ - { - "code": "26449-9", - "display": "Eosinophils [#/volume] in Blood", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Observation/d88298c6-5018-0e69-8bff-bb2e57479ede" } - ], - "text": "Eosinophils [#/volume] in Blood" }, - "valueQuantity": { - "value": "2.1", - "code": "10*3/uL", - "unit": "thousand per microliter", - "system": "UCUM" - }, - "interpretation": [ - { - "coding": [ - { - "code": "HH", - "display": "Critical high", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2011-01-04T06:34:28+08:00", - "performer": [ - { - "reference": "Organization/c8cd57a5-13a6-54d1-7dcd-d0a6b637c660" - }, - { - "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" - } - ], - "component": [ - { - "code": { - "coding": [ - { - "code": "26449-9", - "display": "Eosinophils [#/volume] in Blood", - "system": "LN" - } - ], - "text": "Eosinophils [#/volume] in Blood" - }, - "valueQuantity": { - "value": "2.1", - "code": "10*3/uL", - "unit": "thousand per microliter", - "system": "UCUM" - }, - "referenceRange": [ - { - "text": "0.0 to 0.45" - } - ], - "interpretation": [ - { - "coding": [ - { - "code": "HH", - "display": "Critical high", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + { + "fullUrl": "urn:uuid:4f08fab4-ea01-aeb4-20a3-50d7c4df2d1e", + "resource": { + "resourceType": "Observation", + "id": "4f08fab4-ea01-aeb4-20a3-50d7c4df2d1e", + "status": "final", + "code": { + "coding": [ + { + "code": "28539-5", + "display": "Erythrocyte mean corpuscular hemoglobin [Entitic mass]", + "system": "http://loinc.org" + } + ], + "text": "Erythrocyte mean corpuscular hemoglobin [Entitic mass]" + }, + "valueQuantity": { + "value": 29, + "code": "pg/{cell}", + "unit": "picograms per cell", + "system": "http://unitsofmeasure.org" + }, + "referenceRange": [ + { + "text": "27 to 31" + } + ], + "effectiveDateTime": "2011-01-04T04:04:28+05:30", + "performer": [ + { + "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" - } - }, - "request": { - "method": "PUT", - "url": "Observation/612d5b88-0687-46f9-3ada-0fc9ba9b5fe0" - } - }, - { - "fullUrl": "urn:uuid:0f40b9a3-8c63-ca5d-cc60-859cfa8a6660", - "resource": { - "resourceType": "Observation", - "id": "0f40b9a3-8c63-ca5d-cc60-859cfa8a6660", - "code": { - "coding": [ - { - "code": "26450-7", - "display": "Eosinophils/100 leukocytes in Blood", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Observation/4f08fab4-ea01-aeb4-20a3-50d7c4df2d1e" } - ], - "text": "Eosinophils/100 leukocytes in Blood" - }, - "valueQuantity": { - "value": "2", - "code": "%", - "unit": "percent", - "system": "UCUM" }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2011-01-04T06:34:28+08:00", - "performer": [ - { - "reference": "Organization/c8cd57a5-13a6-54d1-7dcd-d0a6b637c660" - }, - { - "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" - } - ], - "component": [ - { - "code": { - "coding": [ - { - "code": "26450-7", - "display": "Eosinophils/100 leukocytes in Blood", - "system": "LN" - } - ], - "text": "Eosinophils/100 leukocytes in Blood" - }, - "valueQuantity": { - "value": "2", - "code": "%", - "unit": "percent", - "system": "UCUM" - }, - "referenceRange": [ - { - "text": "0 to 6" - } - ], - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + { + "fullUrl": "urn:uuid:b1082ae5-5936-88dc-f6ab-906231b9c7f1", + "resource": { + "resourceType": "Observation", + "id": "b1082ae5-5936-88dc-f6ab-906231b9c7f1", + "status": "final", + "code": { + "coding": [ + { + "code": "28540-3", + "display": "Erythrocyte mean corpuscular hemoglobin concentration [Mass/volume]", + "system": "http://loinc.org" + } + ], + "text": "Erythrocyte mean corpuscular hemoglobin concentration [Mass/volume]" + }, + "valueQuantity": { + "value": 32.4, + "code": "g/dL", + "unit": "grams per deciliter", + "system": "http://unitsofmeasure.org" + }, + "referenceRange": [ + { + "text": "32 to 36" + } + ], + "effectiveDateTime": "2011-01-04T04:04:28+05:30", + "performer": [ + { + "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" - } - }, - "request": { - "method": "PUT", - "url": "Observation/0f40b9a3-8c63-ca5d-cc60-859cfa8a6660" - } - }, - { - "fullUrl": "urn:uuid:d9a5816e-5c0e-15fe-cd9d-417f8abd7abb", - "resource": { - "resourceType": "Observation", - "id": "d9a5816e-5c0e-15fe-cd9d-417f8abd7abb", - "code": { - "coding": [ - { - "code": "26474-7", - "display": "Lymphocytes [#/volume] in Blood", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Observation/b1082ae5-5936-88dc-f6ab-906231b9c7f1" } - ], - "text": "Lymphocytes [#/volume] in Blood" - }, - "valueQuantity": { - "value": "41.2", - "code": "10*3/uL", - "unit": "thousand per microliter", - "system": "UCUM" }, - "interpretation": [ - { - "coding": [ - { - "code": "HH", - "display": "Critical high", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2011-01-04T06:34:28+08:00", - "performer": [ - { - "reference": "Organization/c8cd57a5-13a6-54d1-7dcd-d0a6b637c660" - }, - { - "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" - } - ], - "component": [ - { - "code": { - "coding": [ - { - "code": "26474-7", - "display": "Lymphocytes [#/volume] in Blood", - "system": "LN" - } - ], - "text": "Lymphocytes [#/volume] in Blood" - }, - "valueQuantity": { - "value": "41.2", - "code": "10*3/uL", - "unit": "thousand per microliter", - "system": "UCUM" - }, - "referenceRange": [ - { - "text": "1.0 to 4.8" - } - ], - "interpretation": [ - { - "coding": [ - { - "code": "HH", - "display": "Critical high", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + { + "fullUrl": "urn:uuid:61c65289-d3f6-bd40-9fa1-33856ad2288f", + "resource": { + "resourceType": "Observation", + "id": "61c65289-d3f6-bd40-9fa1-33856ad2288f", + "status": "final", + "code": { + "coding": [ + { + "code": "30385-9", + "display": "Erythrocyte distribution width [Ratio]", + "system": "http://loinc.org" + } + ], + "text": "Erythrocyte distribution width [Ratio]" + }, + "valueQuantity": { + "value": 10.5, + "code": "%", + "unit": "percent", + "system": "http://unitsofmeasure.org" + }, + "referenceRange": [ + { + "text": "10.2 to 14.5" + } + ], + "effectiveDateTime": "2011-01-04T04:04:28+05:30", + "performer": [ + { + "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" - } - }, - "request": { - "method": "PUT", - "url": "Observation/d9a5816e-5c0e-15fe-cd9d-417f8abd7abb" - } - }, - { - "fullUrl": "urn:uuid:db00b811-6280-5dad-bf61-07314b205438", - "resource": { - "resourceType": "Observation", - "id": "db00b811-6280-5dad-bf61-07314b205438", - "code": { - "coding": [ - { - "code": "26478-8", - "display": "Lymphocytes/100 leukocytes in Blood", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Observation/61c65289-d3f6-bd40-9fa1-33856ad2288f" } - ], - "text": "Lymphocytes/100 leukocytes in Blood" }, - "valueQuantity": { - "value": "39", - "code": "%", - "unit": "percent", - "system": "UCUM" - }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2011-01-04T06:34:28+08:00", - "performer": [ - { - "reference": "Organization/c8cd57a5-13a6-54d1-7dcd-d0a6b637c660" - }, - { - "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" - } - ], - "component": [ - { - "code": { - "coding": [ - { - "code": "26478-8", - "display": "Lymphocytes/100 leukocytes in Blood", - "system": "LN" - } - ], - "text": "Lymphocytes/100 leukocytes in Blood" - }, - "valueQuantity": { - "value": "39", - "code": "%", - "unit": "percent", - "system": "UCUM" - }, - "referenceRange": [ - { - "text": "15.0 to 45.0" - } - ], - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + { + "fullUrl": "urn:uuid:69a93e5e-128e-1cd9-b510-a781f1af141a", + "resource": { + "resourceType": "Observation", + "id": "69a93e5e-128e-1cd9-b510-a781f1af141a", + "status": "final", + "code": { + "coding": [ + { + "code": "26444-0", + "display": "Basophils [#/volume] in Blood", + "system": "http://loinc.org" + } + ], + "text": "Basophils [#/volume] in Blood" + }, + "valueQuantity": { + "value": 0.1, + "code": "10*3/uL", + "unit": "thousand per microliter", + "system": "http://unitsofmeasure.org" + }, + "referenceRange": [ + { + "text": "0 to 0.3" + } + ], + "effectiveDateTime": "2011-01-04T04:04:28+05:30", + "performer": [ + { + "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" - } - }, - "request": { - "method": "PUT", - "url": "Observation/db00b811-6280-5dad-bf61-07314b205438" - } - }, - { - "fullUrl": "urn:uuid:0b77694d-87ce-5da4-90c4-4d451437d2d9", - "resource": { - "resourceType": "Observation", - "id": "0b77694d-87ce-5da4-90c4-4d451437d2d9", - "code": { - "coding": [ - { - "code": "26499-4", - "display": "Neutrophils [#/volume] in Blood", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Observation/69a93e5e-128e-1cd9-b510-a781f1af141a" } - ], - "text": "Neutrophils [#/volume] in Blood" }, - "valueQuantity": { - "value": "58", - "code": "10*3/uL", - "unit": "thousand per microliter", - "system": "UCUM" - }, - "interpretation": [ - { - "coding": [ - { - "code": "HH", - "display": "Critical high", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2011-01-04T06:34:28+08:00", - "performer": [ - { - "reference": "Organization/c8cd57a5-13a6-54d1-7dcd-d0a6b637c660" - }, - { - "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" - } - ], - "component": [ - { - "code": { - "coding": [ - { - "code": "26499-4", - "display": "Neutrophils [#/volume] in Blood", - "system": "LN" - } - ], - "text": "Neutrophils [#/volume] in Blood" - }, - "valueQuantity": { - "value": "58", - "code": "10*3/uL", - "unit": "thousand per microliter", - "system": "UCUM" - }, - "referenceRange": [ - { - "text": "1.5 to 7.0" - } - ], - "interpretation": [ - { - "coding": [ - { - "code": "HH", - "display": "Critical high", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + { + "fullUrl": "urn:uuid:95277a83-6195-ad8c-9492-f3489b45732b", + "resource": { + "resourceType": "Observation", + "id": "95277a83-6195-ad8c-9492-f3489b45732b", + "status": "final", + "code": { + "coding": [ + { + "code": "30180-4", + "display": "Basophils/100 leukocytes in Blood", + "system": "http://loinc.org" + } + ], + "text": "Basophils/100 leukocytes in Blood" + }, + "valueQuantity": { + "value": 0.1, + "code": "%", + "unit": "percent", + "system": "http://unitsofmeasure.org" + }, + "referenceRange": [ + { + "text": "0 to 2" + } + ], + "effectiveDateTime": "2011-01-04T04:04:28+05:30", + "performer": [ + { + "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" - } - }, - "request": { - "method": "PUT", - "url": "Observation/0b77694d-87ce-5da4-90c4-4d451437d2d9" - } - }, - { - "fullUrl": "urn:uuid:4c96bb15-0280-fea1-1715-e3f424cf55cc", - "resource": { - "resourceType": "Observation", - "id": "4c96bb15-0280-fea1-1715-e3f424cf55cc", - "code": { - "coding": [ - { - "code": "26511-6", - "display": "Neutrophils/100 leukocytes in Blood", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Observation/95277a83-6195-ad8c-9492-f3489b45732b" } - ], - "text": "Neutrophils/100 leukocytes in Blood" - }, - "valueQuantity": { - "value": "55", - "code": "%", - "unit": "percent", - "system": "UCUM" }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2011-01-04T06:34:28+08:00", - "performer": [ - { - "reference": "Organization/c8cd57a5-13a6-54d1-7dcd-d0a6b637c660" - }, - { - "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" - } - ], - "component": [ - { - "code": { - "coding": [ - { - "code": "26511-6", - "display": "Neutrophils/100 leukocytes in Blood", - "system": "LN" - } - ], - "text": "Neutrophils/100 leukocytes in Blood" - }, - "valueQuantity": { - "value": "55", - "code": "%", - "unit": "percent", - "system": "UCUM" - }, - "referenceRange": [ - { - "text": "50 to 73" - } - ], - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + { + "fullUrl": "urn:uuid:4cd993fb-7522-ee9f-69de-3d12d06960a7", + "resource": { + "resourceType": "Observation", + "id": "4cd993fb-7522-ee9f-69de-3d12d06960a7", + "status": "final", + "code": { + "coding": [ + { + "code": "26484-6", + "display": "Monocytes [#/volume] in Blood", + "system": "http://loinc.org" + } + ], + "text": "Monocytes [#/volume] in Blood" + }, + "valueQuantity": { + "value": 3, + "code": "10*3/uL", + "unit": "thousand per microliter", + "system": "http://unitsofmeasure.org" + }, + "referenceRange": [ + { + "text": "0.0 to 13.0" + } + ], + "effectiveDateTime": "2011-01-04T04:04:28+05:30", + "performer": [ + { + "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" - } - }, - "request": { - "method": "PUT", - "url": "Observation/4c96bb15-0280-fea1-1715-e3f424cf55cc" - } - }, - { - "fullUrl": "urn:uuid:19124803-ebc8-8a88-2acc-f5b890f8c5c5", - "resource": { - "resourceType": "Observation", - "id": "19124803-ebc8-8a88-2acc-f5b890f8c5c5", - "code": { - "coding": [ - { - "code": "38892-6", - "display": "Anisocytosis [Presence] in Blood", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Observation/4cd993fb-7522-ee9f-69de-3d12d06960a7" } - ], - "text": "Anisocytosis [Presence] in Blood" }, - "valueCodeableConcept": { - "coding": [ - { - "code": "260348001", - "display": "Present ++ out of ++++", - "system": "SCT" + { + "fullUrl": "urn:uuid:15122490-e5b2-954f-3960-d7c8f3f62632", + "resource": { + "resourceType": "Observation", + "id": "15122490-e5b2-954f-3960-d7c8f3f62632", + "status": "final", + "code": { + "coding": [ + { + "code": "26485-3", + "display": "Monocytes/100 leukocytes in Blood", + "system": "http://loinc.org" + } + ], + "text": "Monocytes/100 leukocytes in Blood" + }, + "valueQuantity": { + "value": 3, + "code": "%", + "unit": "percent", + "system": "http://unitsofmeasure.org" + }, + "referenceRange": [ + { + "text": "0 to 10" + } + ], + "effectiveDateTime": "2011-01-04T04:04:28+05:30", + "performer": [ + { + "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Observation/15122490-e5b2-954f-3960-d7c8f3f62632" } - ], - "text": "Moderate Anisocytosis" }, - "interpretation": [ - { - "coding": [ - { - "code": "A", - "display": "Abnormal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2011-01-04T06:34:28+08:00", - "performer": [ - { - "reference": "Organization/c8cd57a5-13a6-54d1-7dcd-d0a6b637c660" - }, - { - "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" - } - ], - "component": [ - { - "code": { - "coding": [ - { - "code": "38892-6", - "display": "Anisocytosis [Presence] in Blood", - "system": "LN" - } - ], - "text": "Anisocytosis [Presence] in Blood" - }, - "interpretation": [ - { - "coding": [ - { - "code": "A", - "display": "Abnormal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + { + "fullUrl": "urn:uuid:612d5b88-0687-46f9-3ada-0fc9ba9b5fe0", + "resource": { + "resourceType": "Observation", + "id": "612d5b88-0687-46f9-3ada-0fc9ba9b5fe0", + "status": "final", + "code": { + "coding": [ + { + "code": "26449-9", + "display": "Eosinophils [#/volume] in Blood", + "system": "http://loinc.org" + } + ], + "text": "Eosinophils [#/volume] in Blood" + }, + "valueQuantity": { + "value": 2.1, + "code": "10*3/uL", + "unit": "thousand per microliter", + "system": "http://unitsofmeasure.org" + }, + "referenceRange": [ + { + "text": "0.0 to 0.45" + } + ], + "effectiveDateTime": "2011-01-04T04:04:28+05:30", + "performer": [ + { + "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "HH", + "display": "Critical high", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" - } - }, - "request": { - "method": "PUT", - "url": "Observation/19124803-ebc8-8a88-2acc-f5b890f8c5c5" - } - }, - { - "fullUrl": "urn:uuid:6074e0a6-0ba6-b905-c957-13b2899a4dbe", - "resource": { - "resourceType": "Observation", - "id": "6074e0a6-0ba6-b905-c957-13b2899a4dbe", - "code": { - "coding": [ - { - "code": "30400-6", - "display": "Hypochromia [Presence] in Blood", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Observation/612d5b88-0687-46f9-3ada-0fc9ba9b5fe0" } - ], - "text": "Hypochromia [Presence] in Blood" }, - "valueCodeableConcept": { - "coding": [ - { - "code": "260415000", - "display": "not detected", - "system": "SCT" + { + "fullUrl": "urn:uuid:0f40b9a3-8c63-ca5d-cc60-859cfa8a6660", + "resource": { + "resourceType": "Observation", + "id": "0f40b9a3-8c63-ca5d-cc60-859cfa8a6660", + "status": "final", + "code": { + "coding": [ + { + "code": "26450-7", + "display": "Eosinophils/100 leukocytes in Blood", + "system": "http://loinc.org" + } + ], + "text": "Eosinophils/100 leukocytes in Blood" + }, + "valueQuantity": { + "value": 2, + "code": "%", + "unit": "percent", + "system": "http://unitsofmeasure.org" + }, + "referenceRange": [ + { + "text": "0 to 6" + } + ], + "effectiveDateTime": "2011-01-04T04:04:28+05:30", + "performer": [ + { + "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Observation/0f40b9a3-8c63-ca5d-cc60-859cfa8a6660" } - ], - "text": "None seen" }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2011-01-04T06:34:28+08:00", - "performer": [ - { - "reference": "Organization/c8cd57a5-13a6-54d1-7dcd-d0a6b637c660" - }, - { - "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" - } - ], - "component": [ - { - "code": { - "coding": [ - { - "code": "30400-6", - "display": "Hypochromia [Presence] in Blood", - "system": "LN" - } - ], - "text": "Hypochromia [Presence] in Blood" - }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + { + "fullUrl": "urn:uuid:d9a5816e-5c0e-15fe-cd9d-417f8abd7abb", + "resource": { + "resourceType": "Observation", + "id": "d9a5816e-5c0e-15fe-cd9d-417f8abd7abb", + "status": "final", + "code": { + "coding": [ + { + "code": "26474-7", + "display": "Lymphocytes [#/volume] in Blood", + "system": "http://loinc.org" + } + ], + "text": "Lymphocytes [#/volume] in Blood" + }, + "valueQuantity": { + "value": 41.2, + "code": "10*3/uL", + "unit": "thousand per microliter", + "system": "http://unitsofmeasure.org" + }, + "referenceRange": [ + { + "text": "1.0 to 4.8" + } + ], + "effectiveDateTime": "2011-01-04T04:04:28+05:30", + "performer": [ + { + "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "HH", + "display": "Critical high", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" - } - }, - "request": { - "method": "PUT", - "url": "Observation/6074e0a6-0ba6-b905-c957-13b2899a4dbe" - } - }, - { - "fullUrl": "urn:uuid:700cce12-7f39-bbb0-94f3-689107732835", - "resource": { - "resourceType": "Observation", - "id": "700cce12-7f39-bbb0-94f3-689107732835", - "code": { - "coding": [ - { - "code": "30424-6", - "display": "Macrocytes [Presence] in Blood", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Observation/d9a5816e-5c0e-15fe-cd9d-417f8abd7abb" } - ], - "text": "Macrocytes [Presence] in Blood" }, - "valueCodeableConcept": { - "coding": [ - { - "code": "260415000", - "display": "not detected", - "system": "SCT" + { + "fullUrl": "urn:uuid:db00b811-6280-5dad-bf61-07314b205438", + "resource": { + "resourceType": "Observation", + "id": "db00b811-6280-5dad-bf61-07314b205438", + "status": "final", + "code": { + "coding": [ + { + "code": "26478-8", + "display": "Lymphocytes/100 leukocytes in Blood", + "system": "http://loinc.org" + } + ], + "text": "Lymphocytes/100 leukocytes in Blood" + }, + "valueQuantity": { + "value": 39, + "code": "%", + "unit": "percent", + "system": "http://unitsofmeasure.org" + }, + "referenceRange": [ + { + "text": "15.0 to 45.0" + } + ], + "effectiveDateTime": "2011-01-04T04:04:28+05:30", + "performer": [ + { + "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Observation/db00b811-6280-5dad-bf61-07314b205438" } - ], - "text": "None seen" }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2011-01-04T06:34:28+08:00", - "performer": [ - { - "reference": "Organization/c8cd57a5-13a6-54d1-7dcd-d0a6b637c660" - }, - { - "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" - } - ], - "component": [ - { - "code": { - "coding": [ - { - "code": "30424-6", - "display": "Macrocytes [Presence] in Blood", - "system": "LN" - } - ], - "text": "Macrocytes [Presence] in Blood" - }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + { + "fullUrl": "urn:uuid:0b77694d-87ce-5da4-90c4-4d451437d2d9", + "resource": { + "resourceType": "Observation", + "id": "0b77694d-87ce-5da4-90c4-4d451437d2d9", + "status": "final", + "code": { + "coding": [ + { + "code": "26499-4", + "display": "Neutrophils [#/volume] in Blood", + "system": "http://loinc.org" + } + ], + "text": "Neutrophils [#/volume] in Blood" + }, + "valueQuantity": { + "value": 58, + "code": "10*3/uL", + "unit": "thousand per microliter", + "system": "http://unitsofmeasure.org" + }, + "referenceRange": [ + { + "text": "1.5 to 7.0" + } + ], + "effectiveDateTime": "2011-01-04T04:04:28+05:30", + "performer": [ + { + "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "HH", + "display": "Critical high", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" - } - }, - "request": { - "method": "PUT", - "url": "Observation/700cce12-7f39-bbb0-94f3-689107732835" - } - }, - { - "fullUrl": "urn:uuid:d198666f-2eae-1c28-ee17-d525a7a3ec85", - "resource": { - "resourceType": "Observation", - "id": "d198666f-2eae-1c28-ee17-d525a7a3ec85", - "code": { - "coding": [ - { - "code": "30434-5", - "display": "Microcytes [Presence] in Blood", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Observation/0b77694d-87ce-5da4-90c4-4d451437d2d9" } - ], - "text": "Microcytes [Presence] in Blood" }, - "valueCodeableConcept": { - "coding": [ - { - "code": "260415000", - "display": "not detected", - "system": "SCT" + { + "fullUrl": "urn:uuid:4c96bb15-0280-fea1-1715-e3f424cf55cc", + "resource": { + "resourceType": "Observation", + "id": "4c96bb15-0280-fea1-1715-e3f424cf55cc", + "status": "final", + "code": { + "coding": [ + { + "code": "26511-6", + "display": "Neutrophils/100 leukocytes in Blood", + "system": "http://loinc.org" + } + ], + "text": "Neutrophils/100 leukocytes in Blood" + }, + "valueQuantity": { + "value": 55, + "code": "%", + "unit": "percent", + "system": "http://unitsofmeasure.org" + }, + "referenceRange": [ + { + "text": "50 to 73" + } + ], + "effectiveDateTime": "2011-01-04T04:04:28+05:30", + "performer": [ + { + "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Observation/4c96bb15-0280-fea1-1715-e3f424cf55cc" } - ], - "text": "None seen" }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2011-01-04T06:34:28+08:00", - "performer": [ - { - "reference": "Organization/c8cd57a5-13a6-54d1-7dcd-d0a6b637c660" - }, - { - "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" - } - ], - "component": [ - { - "code": { - "coding": [ - { - "code": "30434-5", - "display": "Microcytes [Presence] in Blood", - "system": "LN" - } - ], - "text": "Microcytes [Presence] in Blood" - }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + { + "fullUrl": "urn:uuid:19124803-ebc8-8a88-2acc-f5b890f8c5c5", + "resource": { + "resourceType": "Observation", + "id": "19124803-ebc8-8a88-2acc-f5b890f8c5c5", + "status": "final", + "code": { + "coding": [ + { + "code": "38892-6", + "display": "Anisocytosis [Presence] in Blood", + "system": "http://loinc.org" + } + ], + "text": "Anisocytosis [Presence] in Blood" + }, + "valueCodeableConcept": { + "coding": [ + { + "code": "260348001", + "display": "Present ++ out of ++++", + "system": "http://snomed.info/sct" + } + ], + "text": "Moderate Anisocytosis" + }, + "effectiveDateTime": "2011-01-04T04:04:28+05:30", + "performer": [ + { + "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "A", + "display": "Abnormal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" - } - }, - "request": { - "method": "PUT", - "url": "Observation/d198666f-2eae-1c28-ee17-d525a7a3ec85" - } - }, - { - "fullUrl": "urn:uuid:db250a50-54ff-eacd-ef4f-8f05b79aecad", - "resource": { - "resourceType": "Observation", - "id": "db250a50-54ff-eacd-ef4f-8f05b79aecad", - "code": { - "coding": [ - { - "code": "779-9", - "display": "Poikilocytosis [Presence] in Blood by Light microscopy", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Observation/19124803-ebc8-8a88-2acc-f5b890f8c5c5" } - ], - "text": "Poikilocytosis [Presence] in Blood by Light microscopy" }, - "valueCodeableConcept": { - "coding": [ - { - "code": "260415000", - "display": "not detected", - "system": "SCT" + { + "fullUrl": "urn:uuid:6074e0a6-0ba6-b905-c957-13b2899a4dbe", + "resource": { + "resourceType": "Observation", + "id": "6074e0a6-0ba6-b905-c957-13b2899a4dbe", + "status": "final", + "code": { + "coding": [ + { + "code": "30400-6", + "display": "Hypochromia [Presence] in Blood", + "system": "http://loinc.org" + } + ], + "text": "Hypochromia [Presence] in Blood" + }, + "valueCodeableConcept": { + "coding": [ + { + "code": "260415000", + "display": "not detected", + "system": "http://snomed.info/sct" + } + ], + "text": "None seen" + }, + "effectiveDateTime": "2011-01-04T04:04:28+05:30", + "performer": [ + { + "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Observation/6074e0a6-0ba6-b905-c957-13b2899a4dbe" } - ], - "text": "None seen" }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2011-01-04T06:34:28+08:00", - "performer": [ - { - "reference": "Organization/c8cd57a5-13a6-54d1-7dcd-d0a6b637c660" - }, - { - "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" - } - ], - "component": [ - { - "code": { - "coding": [ - { - "code": "779-9", - "display": "Poikilocytosis [Presence] in Blood by Light microscopy", - "system": "LN" - } - ], - "text": "Poikilocytosis [Presence] in Blood by Light microscopy" - }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + { + "fullUrl": "urn:uuid:700cce12-7f39-bbb0-94f3-689107732835", + "resource": { + "resourceType": "Observation", + "id": "700cce12-7f39-bbb0-94f3-689107732835", + "status": "final", + "code": { + "coding": [ + { + "code": "30424-6", + "display": "Macrocytes [Presence] in Blood", + "system": "http://loinc.org" + } + ], + "text": "Macrocytes [Presence] in Blood" + }, + "valueCodeableConcept": { + "coding": [ + { + "code": "260415000", + "display": "not detected", + "system": "http://snomed.info/sct" + } + ], + "text": "None seen" + }, + "effectiveDateTime": "2011-01-04T04:04:28+05:30", + "performer": [ + { + "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" - } - }, - "request": { - "method": "PUT", - "url": "Observation/db250a50-54ff-eacd-ef4f-8f05b79aecad" - } - }, - { - "fullUrl": "urn:uuid:90c2203d-56d6-be20-2be4-9b879d3647a5", - "resource": { - "resourceType": "Observation", - "id": "90c2203d-56d6-be20-2be4-9b879d3647a5", - "code": { - "coding": [ - { - "code": "10378-8", - "display": "Polychromasia [Presence] in Blood by Light microscopy", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Observation/700cce12-7f39-bbb0-94f3-689107732835" } - ], - "text": "Polychromasia [Presence] in Blood by Light microscopy" }, - "valueCodeableConcept": { - "coding": [ - { - "code": "260415000", - "display": "not detected", - "system": "SCT" + { + "fullUrl": "urn:uuid:d198666f-2eae-1c28-ee17-d525a7a3ec85", + "resource": { + "resourceType": "Observation", + "id": "d198666f-2eae-1c28-ee17-d525a7a3ec85", + "status": "final", + "code": { + "coding": [ + { + "code": "30434-5", + "display": "Microcytes [Presence] in Blood", + "system": "http://loinc.org" + } + ], + "text": "Microcytes [Presence] in Blood" + }, + "valueCodeableConcept": { + "coding": [ + { + "code": "260415000", + "display": "not detected", + "system": "http://snomed.info/sct" + } + ], + "text": "None seen" + }, + "effectiveDateTime": "2011-01-04T04:04:28+05:30", + "performer": [ + { + "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Observation/d198666f-2eae-1c28-ee17-d525a7a3ec85" } - ], - "text": "None seen" }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2011-01-04T06:34:28+08:00", - "performer": [ - { - "reference": "Organization/c8cd57a5-13a6-54d1-7dcd-d0a6b637c660" - }, - { - "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" - } - ], - "component": [ - { - "code": { - "coding": [ - { - "code": "10378-8", - "display": "Polychromasia [Presence] in Blood by Light microscopy", - "system": "LN" - } - ], - "text": "Polychromasia [Presence] in Blood by Light microscopy" - }, - "interpretation": [ - { - "coding": [ - { - "code": "N", - "display": "Normal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + { + "fullUrl": "urn:uuid:db250a50-54ff-eacd-ef4f-8f05b79aecad", + "resource": { + "resourceType": "Observation", + "id": "db250a50-54ff-eacd-ef4f-8f05b79aecad", + "status": "final", + "code": { + "coding": [ + { + "code": "779-9", + "display": "Poikilocytosis [Presence] in Blood by Light microscopy", + "system": "http://loinc.org" + } + ], + "text": "Poikilocytosis [Presence] in Blood by Light microscopy" + }, + "valueCodeableConcept": { + "coding": [ + { + "code": "260415000", + "display": "not detected", + "system": "http://snomed.info/sct" + } + ], + "text": "None seen" + }, + "effectiveDateTime": "2011-01-04T04:04:28+05:30", + "performer": [ + { + "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" - } - }, - "request": { - "method": "PUT", - "url": "Observation/90c2203d-56d6-be20-2be4-9b879d3647a5" - } - }, - { - "fullUrl": "urn:uuid:3260b2c2-a8f9-1a32-d09f-556192b37dcd", - "resource": { - "resourceType": "Observation", - "id": "3260b2c2-a8f9-1a32-d09f-556192b37dcd", - "code": { - "coding": [ - { - "code": "6742-1", - "display": "Erythrocyte morphology finding [Identifier] in Blood", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Observation/db250a50-54ff-eacd-ef4f-8f05b79aecad" } - ], - "text": "Erythrocyte morphology finding [Identifier] in Blood" }, - "valueString": "Many spherocytes present.", - "interpretation": [ - { - "coding": [ - { - "code": "A", - "display": "Abnormal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2011-01-04T06:34:28+08:00", - "performer": [ - { - "reference": "Organization/c8cd57a5-13a6-54d1-7dcd-d0a6b637c660" - }, - { - "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" - } - ], - "component": [ - { - "code": { - "coding": [ - { - "code": "6742-1", - "display": "Erythrocyte morphology finding [Identifier] in Blood", - "system": "LN" - } - ], - "text": "Erythrocyte morphology finding [Identifier] in Blood" + { + "fullUrl": "urn:uuid:90c2203d-56d6-be20-2be4-9b879d3647a5", + "resource": { + "resourceType": "Observation", + "id": "90c2203d-56d6-be20-2be4-9b879d3647a5", + "status": "final", + "code": { + "coding": [ + { + "code": "10378-8", + "display": "Polychromasia [Presence] in Blood by Light microscopy", + "system": "http://loinc.org" + } + ], + "text": "Polychromasia [Presence] in Blood by Light microscopy" + }, + "valueCodeableConcept": { + "coding": [ + { + "code": "260415000", + "display": "not detected", + "system": "http://snomed.info/sct" + } + ], + "text": "None seen" + }, + "effectiveDateTime": "2011-01-04T04:04:28+05:30", + "performer": [ + { + "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "N", + "display": "Normal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } + ] }, - "valueString": "Many spherocytes present.", - "interpretation": [ - { - "coding": [ - { - "code": "A", - "display": "Abnormal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + "request": { + "method": "PUT", + "url": "Observation/90c2203d-56d6-be20-2be4-9b879d3647a5" + } + }, + { + "fullUrl": "urn:uuid:3260b2c2-a8f9-1a32-d09f-556192b37dcd", + "resource": { + "resourceType": "Observation", + "id": "3260b2c2-a8f9-1a32-d09f-556192b37dcd", + "status": "final", + "code": { + "coding": [ + { + "code": "6742-1", + "display": "Erythrocyte morphology finding [Identifier] in Blood", + "system": "http://loinc.org" + } + ], + "text": "Erythrocyte morphology finding [Identifier] in Blood" + }, + "valueString": "Many spherocytes present.", + "effectiveDateTime": "2011-01-04T04:04:28+05:30", + "performer": [ + { + "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "A", + "display": "Abnormal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" - } - }, - "request": { - "method": "PUT", - "url": "Observation/3260b2c2-a8f9-1a32-d09f-556192b37dcd" - } - }, - { - "fullUrl": "urn:uuid:ff76c538-2861-d8cf-7fc6-418d7f0688ef", - "resource": { - "resourceType": "Observation", - "id": "ff76c538-2861-d8cf-7fc6-418d7f0688ef", - "code": { - "coding": [ - { - "code": "11156-7", - "display": "Leukocyte morphology finding [Identifier] in Blood", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Observation/3260b2c2-a8f9-1a32-d09f-556192b37dcd" } - ], - "text": "Leukocyte morphology finding [Identifier] in Blood" }, - "valueString": "Reactive morphology in lymphoid cells.", - "interpretation": [ - { - "coding": [ - { - "code": "A", - "display": "Abnormal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2011-01-04T06:34:28+08:00", - "performer": [ - { - "reference": "Organization/c8cd57a5-13a6-54d1-7dcd-d0a6b637c660" - }, - { - "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" - } - ], - "component": [ - { - "code": { - "coding": [ - { - "code": "11156-7", - "display": "Leukocyte morphology finding [Identifier] in Blood", - "system": "LN" - } - ], - "text": "Leukocyte morphology finding [Identifier] in Blood" + { + "fullUrl": "urn:uuid:ff76c538-2861-d8cf-7fc6-418d7f0688ef", + "resource": { + "resourceType": "Observation", + "id": "ff76c538-2861-d8cf-7fc6-418d7f0688ef", + "status": "final", + "code": { + "coding": [ + { + "code": "11156-7", + "display": "Leukocyte morphology finding [Identifier] in Blood", + "system": "http://loinc.org" + } + ], + "text": "Leukocyte morphology finding [Identifier] in Blood" + }, + "valueString": "Reactive morphology in lymphoid cells.", + "effectiveDateTime": "2011-01-04T04:04:28+05:30", + "performer": [ + { + "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "A", + "display": "Abnormal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } + ] }, - "valueString": "Reactive morphology in lymphoid cells.", - "interpretation": [ - { - "coding": [ - { - "code": "A", - "display": "Abnormal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + "request": { + "method": "PUT", + "url": "Observation/ff76c538-2861-d8cf-7fc6-418d7f0688ef" + } + }, + { + "fullUrl": "urn:uuid:7cb9f3da-bf77-1317-12a2-d70c8577ca71", + "resource": { + "resourceType": "Observation", + "id": "7cb9f3da-bf77-1317-12a2-d70c8577ca71", + "status": "final", + "code": { + "coding": [ + { + "code": "11125-2", + "display": "Platelet morphology finding [Identifier] in Blood", + "system": "http://loinc.org" + } + ], + "text": "Platelet morphology finding [Identifier] in Blood" + }, + "valueString": "Platelets show defective granulation.", + "effectiveDateTime": "2011-01-04T04:04:28+05:30", + "performer": [ + { + "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "A", + "display": "Abnormal", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" - } - }, - "request": { - "method": "PUT", - "url": "Observation/ff76c538-2861-d8cf-7fc6-418d7f0688ef" - } - }, - { - "fullUrl": "urn:uuid:7cb9f3da-bf77-1317-12a2-d70c8577ca71", - "resource": { - "resourceType": "Observation", - "id": "7cb9f3da-bf77-1317-12a2-d70c8577ca71", - "code": { - "coding": [ - { - "code": "11125-2", - "display": "Platelet morphology finding [Identifier] in Blood", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Observation/7cb9f3da-bf77-1317-12a2-d70c8577ca71" } - ], - "text": "Platelet morphology finding [Identifier] in Blood" }, - "valueString": "Platelets show defective granulation.", - "interpretation": [ - { - "coding": [ - { - "code": "A", - "display": "Abnormal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "effectiveDateTime": "2011-01-04T06:34:28+08:00", - "performer": [ - { - "reference": "Organization/c8cd57a5-13a6-54d1-7dcd-d0a6b637c660" - }, - { - "reference": "PractitionerRole/fbbaa96a-8a5d-f670-0fcf-838b21d4c6a8" - } - ], - "component": [ - { - "code": { - "coding": [ - { - "code": "11125-2", - "display": "Platelet morphology finding [Identifier] in Blood", - "system": "LN" + { + "fullUrl": "urn:uuid:a1b19bd0-91c3-dbfa-4f1e-fdeb0eeb6963", + "resource": { + "resourceType": "Specimen", + "id": "a1b19bd0-91c3-dbfa-4f1e-fdeb0eeb6963", + "collection": { + "collectedDateTime": "2011-01-04T04:04:28+05:30" + }, + "type": { + "coding": [ + { + "code": "119297000", + "display": "BLD", + "system": "http://snomed.info/sct" + } + ], + "text": "Blood" } - ], - "text": "Platelet morphology finding [Identifier] in Blood" }, - "valueString": "Platelets show defective granulation.", - "interpretation": [ - { - "coding": [ - { - "code": "A", - "display": "Abnormal", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ] - } - ], - "subject": { - "reference": "Patient/397de93b-65e0-b3b6-7a79-d7869d57a8aa" - } - }, - "request": { - "method": "PUT", - "url": "Observation/7cb9f3da-bf77-1317-12a2-d70c8577ca71" - } - }, - { - "fullUrl": "urn:uuid:a1b19bd0-91c3-dbfa-4f1e-fdeb0eeb6963", - "resource": { - "resourceType": "Specimen", - "id": "a1b19bd0-91c3-dbfa-4f1e-fdeb0eeb6963", - "collection": { - "collectedDateTime": "2011-01-04T06:34:28+08:00" - }, - "type": { - "coding": [ - { - "code": "119297000", - "display": "BLD", - "system": "SCT" + "request": { + "method": "PUT", + "url": "Specimen/a1b19bd0-91c3-dbfa-4f1e-fdeb0eeb6963" } - ], - "text": "Blood" } - }, - "request": { - "method": "PUT", - "url": "Specimen/a1b19bd0-91c3-dbfa-4f1e-fdeb0eeb6963" - } - } - ] + ] } \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ORU_R01/ORU-R01-RMGEAD-expected.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ORU_R01/ORU-R01-RMGEAD-expected.json index b8b42620a..84516178e 100644 --- a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ORU_R01/ORU-R01-RMGEAD-expected.json +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/ORU_R01/ORU-R01-RMGEAD-expected.json @@ -1,302 +1,322 @@ { - "resourceType": "Bundle", - "type": "batch", - "timestamp": "2002-02-15T09:30:00", - "identifier": { - "value": "CNTRL-3456" - }, - "entry": [ - { - "fullUrl": "urn:uuid:59137ac2-b595-49c0-863e-df25b62bf2cd", - "resource": { - "resourceType": "MessageHeader", - "id": "59137ac2-b595-49c0-863e-df25b62bf2cd", - "source": { - "name": "GHH LAB" - }, - "destination": [ - { - "name": "GHH OE" - } - ], - "meta": { - "tag": [ - { - "code": "P", - "system": "http://terminology.hl7.org/CodeSystem/v2-0103" - } - ] - }, - "eventCoding": { - "code": "R01", - "system": "http://terminology.hl7.org/CodeSystem/v2-0003" - } - }, - "request": { - "method": "PUT", - "url": "MessageHeader/59137ac2-b595-49c0-863e-df25b62bf2cd" - } + "resourceType": "Bundle", + "type": "batch", + "timestamp": "2002-02-15T09:30:00", + "identifier": { + "value": "CNTRL-3456" }, - { - "fullUrl": "urn:uuid:92bee074-a5c5-3c79-1905-2ed380528150", - "resource": { - "resourceType": "Patient", - "id": "92bee074-a5c5-3c79-1905-2ed380528150", - "identifier": [ - { - "value": "555-44-4444" - }, - { - "value": "67-A4335", - "type": { - "coding": [ - { - "code": "DL" + "entry": [ + { + "fullUrl": "urn:uuid:59137ac2-b595-49c0-863e-df25b62bf2cd", + "resource": { + "resourceType": "MessageHeader", + "id": "59137ac2-b595-49c0-863e-df25b62bf2cd", + "source": { + "name": "GHH LAB", + "_endpoint": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } + ] + } + }, + "destination": [ + { + "name": "GHH OE", + "_endpoint": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } + ] + }, + "receiver": { + "reference": "Organization/fe717593-882d-d154-271e-e93d5b114a0d" + } + } + ], + "meta": { + "tag": [ + { + "code": "P", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "R01", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "ORU^R01" + }, + "sender": { + "reference": "Organization/6ab73577-5e9f-5084-a3aa-5402773d5fbd" } - ] }, - "system": "OH", - "period": { - "end": "2003-05-20" + "request": { + "method": "PUT", + "url": "MessageHeader/59137ac2-b595-49c0-863e-df25b62bf2cd" } - } - ], - "name": [ - { - "family": "EVERYWOMAN", - "given": [ - "EVE", - "E" - ], - "use": "official" - } - ], - "birthDate": "1962-03-20", - "gender": "female", - "address": [ - { - "line": [ - "153 FERNWOOD DR." - ], - "city": "STATESVILLE", - "state": "OH", - "postalCode": "35292" - } - ], - "telecom": [ - { - "value": "(206)3345232", - "use": "home" - }, - { - "value": "(206)752-121", - "use": "work" - } - ] - }, - "request": { - "method": "PUT", - "url": "Patient/92bee074-a5c5-3c79-1905-2ed380528150" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Practitioner" - }, - "request": { - "method": "PUT", - "url": "Practitioner/" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Location" - }, - "request": { - "method": "PUT", - "url": "Location/" - } - }, - { - "fullUrl": "urn:uuid:66170fe1-2ab4-a3a0-672a-dd146b9bee1b", - "resource": { - "resourceType": "Provenance", - "id": "66170fe1-2ab4-a3a0-672a-dd146b9bee1b", - "text": { - "status": "generated", - "div": "

Resource bundle generated on GENERATED_INSTANT_PLACEHOLDER using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: TEMPLATE_URL_PLACEHOLDER.Root template: ORU_R01.

" }, - "agent": [ - { - "type": { - "coding": [ - { - "code": "author", - "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" - } - ] + { + "fullUrl": "urn:uuid:92bee074-a5c5-3c79-1905-2ed380528150", + "resource": { + "resourceType": "Patient", + "id": "92bee074-a5c5-3c79-1905-2ed380528150", + "identifier": [ + { + "value": "555-44-4444" + }, + { + "value": "67-A4335", + "type": { + "coding": [ + { + "code": "DL" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/OH", + "period": { + "end": "2003-05-20" + } + } + ], + "name": [ + { + "family": "EVERYWOMAN", + "given": [ + "EVE", + "E" + ], + "use": "official" + } + ], + "birthDate": "1962-03-20", + "gender": "female", + "address": [ + { + "line": [ + "153 FERNWOOD DR." + ], + "city": "STATESVILLE", + "state": "OH", + "postalCode": "35292" + } + ], + "telecom": [ + { + "value": "(206)3345232", + "use": "home" + }, + { + "value": "(206)752-121", + "use": "work" + } + ], + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + "valueString": "JONES" + } + ] + }, + "request": { + "method": "PUT", + "url": "Patient/92bee074-a5c5-3c79-1905-2ed380528150" } - } - ], - "recorded": "2002-02-15T09:30:00" - }, - "request": { - "method": "PUT", - "url": "Provenance/66170fe1-2ab4-a3a0-672a-dd146b9bee1b" - } - }, - { - "fullUrl": "urn:uuid:4af7a7fb-e594-e5b3-43b9-969188e0c692", - "resource": { - "resourceType": "Account", - "id": "4af7a7fb-e594-e5b3-43b9-969188e0c692", - "identifier": [ - { - "value": "AC555444444" - } - ], - "subject": [ - { - "reference": "Patient/92bee074-a5c5-3c79-1905-2ed380528150" - } - ] - }, - "request": { - "method": "PUT", - "url": "Account/4af7a7fb-e594-e5b3-43b9-969188e0c692" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Encounter", - "status": "unknown", - "subject": { - "reference": "Patient/92bee074-a5c5-3c79-1905-2ed380528150" - } - }, - "request": { - "method": "PUT", - "url": "Encounter/" - } - }, - { - "fullUrl": "urn:uuid:0ca81c8f-6cb0-10b0-91e8-7528b98f5691", - "resource": { - "resourceType": "DiagnosticReport", - "id": "0ca81c8f-6cb0-10b0-91e8-7528b98f5691", - "identifier": [ - { - "type": { - "coding": [ - { - "code": "FILL", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" - } - ] + }, + { + "fullUrl": "urn:uuid:", + "resource": { + "resourceType": "Practitioner" + }, + "request": { + "method": "PUT", + "url": "Practitioner/" } - }, - { - "value": "845439" - }, - { - "value": "1045813" - } - ], - "effectiveDateTime": "2002-02-15T07:30:00", - "code": { - "coding": [ - { - "code": "15545", - "display": "GLUCOSE" + }, + { + "fullUrl": "urn:uuid:", + "resource": { + "resourceType": "Location" + }, + "request": { + "method": "PUT", + "url": "Location/" } - ] }, - "status": "final", - "result": [ - { - "reference": "Observation/209c8566-dafa-22b6-31f6-e4c00e649c61" - } - ] - }, - "request": { - "method": "PUT", - "url": "DiagnosticReport/0ca81c8f-6cb0-10b0-91e8-7528b98f5691" - } - }, - { - "fullUrl": "urn:uuid:209c8566-dafa-22b6-31f6-e4c00e649c61", - "resource": { - "resourceType": "Observation", - "id": "209c8566-dafa-22b6-31f6-e4c00e649c61", - "code": { - "coding": [ - { - "code": "1554-5", - "display": "GLUCOSE", - "system": "POST 12H CFST:MCNC:PT:SER/PLAS:QN" + { + "fullUrl": "urn:uuid:98cfa049-8565-6edd-d53e-b98ee8bcf59d", + "resource": { + "resourceType": "Provenance", + "id": "98cfa049-8565-6edd-d53e-b98ee8bcf59d", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T13:59:56.336Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: ORU_R01.

" + }, + "occurredDateTime": "2002-02-15T09:30:00", + "recorded": "2002-02-15T09:30:00", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/6ab73577-5e9f-5084-a3aa-5402773d5fbd" + } + } + ], + "activity": { + "coding": [ + { + "display": "ORU^R01^" + } + ] + }, + "target": [ + { + "reference": "Bundle/" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/98cfa049-8565-6edd-d53e-b98ee8bcf59d" } - ] }, - "valueQuantity": { - "unit": "mg/dl" + { + "fullUrl": "urn:uuid:4af7a7fb-e594-e5b3-43b9-969188e0c692", + "resource": { + "resourceType": "Account", + "id": "4af7a7fb-e594-e5b3-43b9-969188e0c692", + "identifier": [ + { + "value": "AC555444444" + } + ], + "status": "active", + "subject": [ + { + "reference": "Patient/92bee074-a5c5-3c79-1905-2ed380528150" + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/4af7a7fb-e594-e5b3-43b9-969188e0c692" + } }, - "valueString": " ", - "interpretation": [ - { - "coding": [ - { - "code": "H", - "display": "High", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } - ] - } - ], - "status": "final", - "component": [ - { - "code": { - "coding": [ - { - "code": "1554-5", - "display": "GLUCOSE", - "system": "POST 12H CFST:MCNC:PT:SER/PLAS:QN" + { + "fullUrl": "urn:uuid:", + "resource": { + "resourceType": "Encounter", + "text": { + "status": "generated", + "div": "

Visit Description:

" + }, + "subject": { + "reference": "Patient/92bee074-a5c5-3c79-1905-2ed380528150" } - ] }, - "valueQuantity": { - "unit": "mg/dl" + "request": { + "method": "PUT", + "url": "Encounter/" + } + }, + { + "fullUrl": "urn:uuid:0ca81c8f-6cb0-10b0-91e8-7528b98f5691", + "resource": { + "resourceType": "DiagnosticReport", + "id": "0ca81c8f-6cb0-10b0-91e8-7528b98f5691", + "identifier": [ + { + "type": { + "coding": [ + { + "code": "FILL", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + }, + { + "value": "845439", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-GHH OE" + }, + { + "value": "1045813", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-GHH LAB" + } + ], + "effectiveDateTime": "2002-02-15T07:30:00", + "code": { + "coding": [ + { + "code": "15545", + "display": "GLUCOSE" + } + ] + }, + "status": "final", + "result": [ + { + "reference": "Observation/209c8566-dafa-22b6-31f6-e4c00e649c61" + } + ] }, - "valueString": " ", - "referenceRange": [ - { - "text": "70_105" - } - ], - "interpretation": [ - { - "coding": [ - { - "code": "H", - "display": "High", - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" - } + "request": { + "method": "PUT", + "url": "DiagnosticReport/0ca81c8f-6cb0-10b0-91e8-7528b98f5691" + } + }, + { + "fullUrl": "urn:uuid:209c8566-dafa-22b6-31f6-e4c00e649c61", + "resource": { + "resourceType": "Observation", + "id": "209c8566-dafa-22b6-31f6-e4c00e649c61", + "status": "final", + "code": { + "coding": [ + { + "code": "1554-5", + "display": "GLUCOSE", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/POST 12H CFST:MCNC:PT:SER/PLAS:QN" + } + ] + }, + "valueQuantity": { + "value": 182, + "unit": "mg/dl" + }, + "referenceRange": [ + { + "text": "70_105" + } + ], + "interpretation": [ + { + "coding": [ + { + "code": "H", + "display": "High", + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" + } + ] + } ] - } - ] - } - ], - "subject": { - "reference": "Patient/92bee074-a5c5-3c79-1905-2ed380528150" + }, + "request": { + "method": "PUT", + "url": "Observation/209c8566-dafa-22b6-31f6-e4c00e649c61" + } } - }, - "request": { - "method": "PUT", - "url": "Observation/209c8566-dafa-22b6-31f6-e4c00e649c61" - } - } - ] + ] } \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/VXU_V04/IZ_1_1.1_Admin_Child_Max_Message-expected.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/VXU_V04/IZ_1_1.1_Admin_Child_Max_Message-expected.json index b43f6ada9..11110fa16 100644 --- a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/VXU_V04/IZ_1_1.1_Admin_Child_Max_Message-expected.json +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/VXU_V04/IZ_1_1.1_Admin_Child_Max_Message-expected.json @@ -1,623 +1,658 @@ { - "resourceType": "Bundle", - "type": "batch", - "timestamp": "2012-07-01T08:22:00", - "identifier": { - "value": "NIST-IZ-001.00" - }, - "entry": [ - { - "fullUrl": "urn:uuid:5cddb2d1-c441-ec21-1c0c-96605dd3a9c0", - "resource": { - "resourceType": "MessageHeader", - "id": "5cddb2d1-c441-ec21-1c0c-96605dd3a9c0", - "source": { - "name": "Test EHR Application" - }, - "meta": { - "tag": [ - { - "code": "P", - "system": "http://terminology.hl7.org/CodeSystem/v2-0103" - } - ] - }, - "eventCoding": { - "code": "V04", - "system": "http://terminology.hl7.org/CodeSystem/v2-0003" - } - }, - "request": { - "method": "PUT", - "url": "MessageHeader/5cddb2d1-c441-ec21-1c0c-96605dd3a9c0" - } + "resourceType": "Bundle", + "type": "batch", + "timestamp": "2012-07-01T08:22:00", + "identifier": { + "value": "NIST-IZ-001.00" }, - { - "fullUrl": "urn:uuid:1b2dce0f-93ae-fae4-cc64-b90257c96f1b", - "resource": { - "resourceType": "Patient", - "id": "1b2dce0f-93ae-fae4-cc64-b90257c96f1b", - "identifier": [ - { - "value": "D26376273", - "type": { - "coding": [ - { - "code": "MR", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + "entry": [ + { + "fullUrl": "urn:uuid:5cddb2d1-c441-ec21-1c0c-96605dd3a9c0", + "resource": { + "resourceType": "MessageHeader", + "id": "5cddb2d1-c441-ec21-1c0c-96605dd3a9c0", + "source": { + "name": "Test EHR Application", + "_endpoint": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } + ] + } + }, + "destination": [ + { + "_endpoint": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } + ] + }, + "receiver": { + "reference": "Organization/57e4a003-b56b-2993-9714-18b188c68595" + } + } + ], + "meta": { + "tag": [ + { + "code": "P", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "V04", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "VXU^V04^VXU_V04" + }, + "sender": { + "reference": "Organization/8a4905a9-ae0d-541f-4fde-2e228bbb0f70" } - ] + }, + "request": { + "method": "PUT", + "url": "MessageHeader/5cddb2d1-c441-ec21-1c0c-96605dd3a9c0" } - } - ], - "name": [ - { - "family": "Snow", - "given": [ - "Madelynn", - "Ainsley" - ], - "use": "official" - } - ], - "birthDate": "2007-07-06", - "gender": "female", - "address": [ - { - "line": [ - "32 Prescott Street Ave" - ], - "city": "Warwick", - "state": "MA", - "postalCode": "02452", - "country": "USA" - } - ], - "telecom": [ - { - "use": "home" - } - ], - "active": "true", - "contact": [ - { - "name": { - "family": "Lam", - "given": [ - "Morgan" - ], - "use": "official" + }, + { + "fullUrl": "urn:uuid:1b2dce0f-93ae-fae4-cc64-b90257c96f1b", + "resource": { + "resourceType": "Patient", + "id": "1b2dce0f-93ae-fae4-cc64-b90257c96f1b", + "identifier": [ + { + "value": "D26376273", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NIST-MPI" + } + ], + "name": [ + { + "family": "Snow", + "given": [ + "Madelynn", + "Ainsley" + ], + "use": "official" + } + ], + "birthDate": "2007-07-06", + "gender": "female", + "address": [ + { + "line": [ + "32 Prescott Street Ave" + ], + "city": "Warwick", + "state": "MA", + "postalCode": "02452", + "country": "USA" + } + ], + "telecom": [ + { + "use": "home", + "system": "phone" + } + ], + "active": "true", + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2076-8", + "display": "Native Hawaiian or Other Pacific Islander", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "Native Hawaiian or Other Pacific Islander" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", + "valueString": "Lam--Morgan" + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2186-5", + "display": "2186-5" + } + }, + { + "url": "text", + "valueString": "2186-5" + } + ] + } + ], + "contact": [ + { + "name": { + "family": "Lam", + "given": [ + "Morgan" + ], + "use": "official" + }, + "address": { + "line": [ + "32 Prescott Street Ave" + ], + "city": "Warwick", + "state": "MA", + "postalCode": "02452", + "country": "USA" + }, + "telecom": [ + { + "use": "home", + "system": "phone" + } + ] + } + ] }, - "address": { - "line": [ - "32 Prescott Street Ave" - ], - "city": "Warwick", - "state": "MA", - "postalCode": "02452", - "country": "USA" + "request": { + "method": "PUT", + "url": "Patient/1b2dce0f-93ae-fae4-cc64-b90257c96f1b" } - } - ] - }, - "request": { - "method": "PUT", - "url": "Patient/1b2dce0f-93ae-fae4-cc64-b90257c96f1b" - } - }, - { - "fullUrl": "urn:uuid:57ea8417-a3d9-a03e-3e89-0e2800129af1", - "resource": { - "resourceType": "Practitioner", - "id": "57ea8417-a3d9-a03e-3e89-0e2800129af1", - "identifier": [ - { - "value": "57422" - } - ], - "name": [ - { - "family": "RADON", - "given": [ - "NICHOLAS" - ], - "use": "official" - } - ] - }, - "request": { - "method": "PUT", - "url": "Practitioner/57ea8417-a3d9-a03e-3e89-0e2800129af1" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Practitioner", - "identifier": [ - { - "value": "57422" - } - ], - "name": [ - { - "family": "RADON", - "given": [ - "NICHOLAS" - ], - "use": "official" - } - ] - }, - "request": { - "method": "PUT", - "url": "Practitioner/" - } - }, - { - "fullUrl": "urn:uuid:cdc6a323-66a4-19cb-ff4e-a5c9a5f5fd1b", - "resource": { - "resourceType": "Practitioner", - "id": "cdc6a323-66a4-19cb-ff4e-a5c9a5f5fd1b", - "identifier": [ - { - "value": "57422" - } - ], - "name": [ - { - "family": "RADON", - "given": [ - "NICHOLAS" - ], - "use": "official" - } - ] - }, - "request": { - "method": "PUT", - "url": "Practitioner/cdc6a323-66a4-19cb-ff4e-a5c9a5f5fd1b" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Location" - }, - "request": { - "method": "PUT", - "url": "Location/" - } - }, - { - "fullUrl": "urn:uuid:df475b46-a50f-6a66-3a9a-2aca2b31a5bb", - "resource": { - "resourceType": "Provenance", - "id": "df475b46-a50f-6a66-3a9a-2aca2b31a5bb", - "text": { - "status": "generated", - "div": "

Resource bundle generated on GENERATED_INSTANT_PLACEHOLDER using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: TEMPLATE_URL_PLACEHOLDER.Root template: VXU_V04.

" }, - "agent": [ - { - "type": { - "coding": [ - { - "code": "enterer", - "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" - } - ] + { + "fullUrl": "urn:uuid:57ea8417-a3d9-a03e-3e89-0e2800129af1", + "resource": { + "resourceType": "Practitioner", + "id": "57ea8417-a3d9-a03e-3e89-0e2800129af1", + "identifier": [ + { + "value": "57422", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NIST-AA-1" + } + ], + "name": [ + { + "family": "RADON", + "given": [ + "NICHOLAS" + ], + "use": "official" + } + ] }, - "who": { - "reference": "Practitioner/57ea8417-a3d9-a03e-3e89-0e2800129af1" + "request": { + "method": "PUT", + "url": "Practitioner/57ea8417-a3d9-a03e-3e89-0e2800129af1" } - }, - { - "type": { - "coding": [ - { - "code": "author", - "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" - } - ] + }, + { + "fullUrl": "urn:uuid:", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "value": "57422", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NIST-AA-1" + } + ], + "name": [ + { + "family": "RADON", + "given": [ + "NICHOLAS" + ], + "use": "official" + } + ] }, - "who": { - "reference": "Practitioner/cdc6a323-66a4-19cb-ff4e-a5c9a5f5fd1b" + "request": { + "method": "PUT", + "url": "Practitioner/" } - } - ], - "recorded": "2012-07-01T08:22:00" - }, - "request": { - "method": "PUT", - "url": "Provenance/df475b46-a50f-6a66-3a9a-2aca2b31a5bb" - } - }, - { - "fullUrl": "urn:uuid:82fcb02d-52a4-17af-a707-923501f587d1", - "resource": { - "resourceType": "Account", - "id": "82fcb02d-52a4-17af-a707-923501f587d1", - "subject": [ - { - "reference": "Patient/1b2dce0f-93ae-fae4-cc64-b90257c96f1b" - } - ] - }, - "request": { - "method": "PUT", - "url": "Account/82fcb02d-52a4-17af-a707-923501f587d1" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Encounter", - "status": "unknown", - "subject": { - "reference": "Patient/1b2dce0f-93ae-fae4-cc64-b90257c96f1b" - } - }, - "request": { - "method": "PUT", - "url": "Encounter/" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Organization" - }, - "request": { - "method": "PUT", - "url": "Organization/" - } - }, - { - "fullUrl": "urn:uuid:a17fe59e-2385-e7c3-59c4-14f214cf72c7", - "resource": { - "resourceType": "RelatedPerson", - "id": "a17fe59e-2385-e7c3-59c4-14f214cf72c7", - "relationship": [ - { - "coding": [ - { - "code": "MTH", - "display": "mother", - "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" - } - ] - } - ], - "address": [ - { - "line": [ - "32 Prescott Street Ave" - ], - "city": "Warwick", - "state": "MA", - "postalCode": "02452", - "country": "USA" - } - ], - "name": [ - { - "family": "Lam", - "given": [ - "Morgan" - ], - "use": "official" - } - ], - "patient": { - "reference": "Patient/1b2dce0f-93ae-fae4-cc64-b90257c96f1b" - } - }, - "request": { - "method": "PUT", - "url": "RelatedPerson/a17fe59e-2385-e7c3-59c4-14f214cf72c7" - } - }, - { - "fullUrl": "urn:uuid:9d7483ec-3273-a9d9-0d6c-da4895472607", - "resource": { - "resourceType": "Immunization", - "id": "9d7483ec-3273-a9d9-0d6c-da4895472607", - "identifier": [ - { - "value": "IZ-783274", - "type": { - "coding": [ - { - "code": "FILL", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" - } - ] + }, + { + "fullUrl": "urn:uuid:cdc6a323-66a4-19cb-ff4e-a5c9a5f5fd1b", + "resource": { + "resourceType": "Practitioner", + "id": "cdc6a323-66a4-19cb-ff4e-a5c9a5f5fd1b", + "identifier": [ + { + "value": "57422", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NIST-AA-1" + } + ], + "name": [ + { + "family": "RADON", + "given": [ + "NICHOLAS" + ], + "use": "official" + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/cdc6a323-66a4-19cb-ff4e-a5c9a5f5fd1b" } - } - ], - "performer": [ - { - "function": { - "coding": [ - { - "code": "OP", - "system": "http://terminology.hl7.org/CodeSystem/v2-0443" - } - ] + }, + { + "fullUrl": "urn:uuid:", + "resource": { + "resourceType": "Location" }, - "actor": { - "reference": "Practitioner/cdc6a323-66a4-19cb-ff4e-a5c9a5f5fd1b" + "request": { + "method": "PUT", + "url": "Location/" } - }, - { - "function": { - "coding": [ - { - "code": "AP", - "system": "http://terminology.hl7.org/CodeSystem/v2-0443" - } - ] + }, + { + "fullUrl": "urn:uuid:6f2bb641-ec94-319f-da95-e6ed7262b018", + "resource": { + "resourceType": "Provenance", + "id": "6f2bb641-ec94-319f-da95-e6ed7262b018", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T14:01:13.556Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: VXU_V04.

" + }, + "occurredDateTime": "2012-07-01T08:22:00", + "recorded": "2012-07-01T08:22:00", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/8a4905a9-ae0d-541f-4fde-2e228bbb0f70" + } + } + ], + "activity": { + "coding": [ + { + "display": "VXU^V04^VXU_V04" + } + ] + }, + "target": [ + { + "reference": "Bundle/" + } + ] }, - "actor": { - "reference": "Practitioner/6389563f-944d-cf03-c166-cab811fa11b5" + "request": { + "method": "PUT", + "url": "Provenance/6f2bb641-ec94-319f-da95-e6ed7262b018" } - } - ], - "patient": { - "reference": "Patient/1b2dce0f-93ae-fae4-cc64-b90257c96f1b" }, - "occurrenceDateTime": "2012-08-14", - "vaccineCode": { - "coding": [ - { - "code": "140", - "display": "Influenza, seasonal, injectable, preservative free", - "system": "CVX" + { + "fullUrl": "urn:uuid:82fcb02d-52a4-17af-a707-923501f587d1", + "resource": { + "resourceType": "Account", + "id": "82fcb02d-52a4-17af-a707-923501f587d1", + "status": "active", + "subject": [ + { + "reference": "Patient/1b2dce0f-93ae-fae4-cc64-b90257c96f1b" + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/82fcb02d-52a4-17af-a707-923501f587d1" } - ] }, - "lotNumber": "Z0860BB", - "expirationDate": "2012-11-04", - "status": "completed", - "manufacturer": { - "reference": "Organization/bcdbbced-4721-ecce-55fe-75020f5c6048" - } - }, - "request": { - "method": "PUT", - "url": "Immunization/9d7483ec-3273-a9d9-0d6c-da4895472607" - } - }, - { - "fullUrl": "urn:uuid:bcdbbced-4721-ecce-55fe-75020f5c6048", - "resource": { - "resourceType": "Organization", - "id": "bcdbbced-4721-ecce-55fe-75020f5c6048", - "identifier": [ - { - "value": "CSL", - "system": "MVX" - } - ], - "name": "CSL Behring" - }, - "request": { - "method": "PUT", - "url": "Organization/bcdbbced-4721-ecce-55fe-75020f5c6048" - } - }, - { - "fullUrl": "urn:uuid:6389563f-944d-cf03-c166-cab811fa11b5", - "resource": { - "resourceType": "Practitioner", - "id": "6389563f-944d-cf03-c166-cab811fa11b5", - "identifier": [ - { - "value": "7832-1" - } - ], - "name": [ - { - "family": "Lemon", - "given": [ - "Mike", - "A" - ] - } - ] - }, - "request": { - "method": "PUT", - "url": "Practitioner/6389563f-944d-cf03-c166-cab811fa11b5" - } - }, - { - "fullUrl": "urn:uuid:ac8dc02f-77b0-7070-13d1-836f465308c7", - "resource": { - "resourceType": "Observation", - "id": "ac8dc02f-77b0-7070-13d1-836f465308c7", - "code": { - "coding": [ - { - "code": "64994-7", - "display": "Vaccine funding program eligibility category", - "system": "LN" + { + "fullUrl": "urn:uuid:", + "resource": { + "resourceType": "Encounter", + "text": { + "status": "generated", + "div": "

Visit Description:

" + }, + "subject": { + "reference": "Patient/1b2dce0f-93ae-fae4-cc64-b90257c96f1b" + } + }, + "request": { + "method": "PUT", + "url": "Encounter/" } - ] }, - "valueCodeableConcept": { - "coding": [ - { - "code": "V05", - "display": "VFC eligible - Federally Qualified Health Center Patient (under-insured)", - "system": "HL70064" + { + "fullUrl": "urn:uuid:", + "resource": { + "resourceType": "Organization" + }, + "request": { + "method": "PUT", + "url": "Organization/" } - ] }, - "status": "final", - "effectiveDateTime": "2012-07-01", - "component": [ - { - "code": { - "coding": [ - { - "code": "64994-7", - "display": "Vaccine funding program eligibility category", - "system": "LN" + { + "fullUrl": "urn:uuid:a17fe59e-2385-e7c3-59c4-14f214cf72c7", + "resource": { + "resourceType": "RelatedPerson", + "id": "a17fe59e-2385-e7c3-59c4-14f214cf72c7", + "relationship": [ + { + "coding": [ + { + "code": "MTH", + "display": "mother", + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode" + } + ] + } + ], + "address": [ + { + "line": [ + "32 Prescott Street Ave" + ], + "city": "Warwick", + "state": "MA", + "postalCode": "02452", + "country": "USA" + } + ], + "telecom": [ + { + "use": "home", + "system": "phone" + } + ], + "name": [ + { + "family": "Lam", + "given": [ + "Morgan" + ], + "use": "official" + } + ], + "patient": { + "reference": "Patient/1b2dce0f-93ae-fae4-cc64-b90257c96f1b" } - ] + }, + "request": { + "method": "PUT", + "url": "RelatedPerson/a17fe59e-2385-e7c3-59c4-14f214cf72c7" } - } - ], - "partOf": [ - { - "reference": "Immunization/9d7483ec-3273-a9d9-0d6c-da4895472607" - } - ], - "subject": { - "reference": "Patient/1b2dce0f-93ae-fae4-cc64-b90257c96f1b" - } - }, - "request": { - "method": "PUT", - "url": "Observation/ac8dc02f-77b0-7070-13d1-836f465308c7" - } - }, - { - "fullUrl": "urn:uuid:b22ad261-5119-914a-4417-ea59a3246d7e", - "resource": { - "resourceType": "Observation", - "id": "b22ad261-5119-914a-4417-ea59a3246d7e", - "code": { - "coding": [ - { - "code": "30956-7", - "display": "vaccine type", - "system": "LN" + }, + { + "fullUrl": "urn:uuid:9d7483ec-3273-a9d9-0d6c-da4895472607", + "resource": { + "resourceType": "Immunization", + "id": "9d7483ec-3273-a9d9-0d6c-da4895472607", + "identifier": [ + { + "value": "IZ-783274", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-NDA", + "type": { + "coding": [ + { + "code": "FILL", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "performer": [ + { + "function": { + "coding": [ + { + "code": "OP", + "system": "http://terminology.hl7.org/CodeSystem/v2-0443" + } + ] + }, + "actor": { + "reference": "Practitioner/cdc6a323-66a4-19cb-ff4e-a5c9a5f5fd1b" + } + }, + { + "function": { + "coding": [ + { + "code": "AP", + "system": "http://terminology.hl7.org/CodeSystem/v2-0443" + } + ] + }, + "actor": { + "reference": "Practitioner/6389563f-944d-cf03-c166-cab811fa11b5" + } + } + ], + "patient": { + "reference": "Patient/1b2dce0f-93ae-fae4-cc64-b90257c96f1b" + }, + "occurrenceDateTime": "2012-08-14", + "vaccineCode": { + "coding": [ + { + "code": "140", + "display": "Influenza, seasonal, injectable, preservative free", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/CVX" + } + ] + }, + "lotNumber": "Z0860BB", + "expirationDate": "2012-11-04", + "status": "completed", + "manufacturer": { + "reference": "Organization/bcdbbced-4721-ecce-55fe-75020f5c6048" + } + }, + "request": { + "method": "PUT", + "url": "Immunization/9d7483ec-3273-a9d9-0d6c-da4895472607" } - ] }, - "valueCodeableConcept": { - "coding": [ - { - "code": "88", - "display": "Influenza, unspecified formulation", - "system": "CVX" + { + "fullUrl": "urn:uuid:bcdbbced-4721-ecce-55fe-75020f5c6048", + "resource": { + "resourceType": "Organization", + "id": "bcdbbced-4721-ecce-55fe-75020f5c6048", + "identifier": [ + { + "value": "CSL", + "system": "MVX" + } + ], + "name": "CSL Behring" + }, + "request": { + "method": "PUT", + "url": "Organization/bcdbbced-4721-ecce-55fe-75020f5c6048" } - ] }, - "status": "final", - "component": [ - { - "code": { - "coding": [ - { - "code": "30956-7", - "display": "vaccine type", - "system": "LN" - } - ] + { + "fullUrl": "urn:uuid:6389563f-944d-cf03-c166-cab811fa11b5", + "resource": { + "resourceType": "Practitioner", + "id": "6389563f-944d-cf03-c166-cab811fa11b5", + "identifier": [ + { + "value": "7832-1", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NIST-AA-1" + } + ], + "name": [ + { + "family": "Lemon", + "given": [ + "Mike", + "A" + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Practitioner/6389563f-944d-cf03-c166-cab811fa11b5" } - } - ], - "partOf": [ - { - "reference": "Immunization/9d7483ec-3273-a9d9-0d6c-da4895472607" - } - ], - "subject": { - "reference": "Patient/1b2dce0f-93ae-fae4-cc64-b90257c96f1b" - } - }, - "request": { - "method": "PUT", - "url": "Observation/b22ad261-5119-914a-4417-ea59a3246d7e" - } - }, - { - "fullUrl": "urn:uuid:a886d7fc-b6fc-fb60-7c37-e950fbbb13a7", - "resource": { - "resourceType": "Observation", - "id": "a886d7fc-b6fc-fb60-7c37-e950fbbb13a7", - "code": { - "coding": [ - { - "code": "29768-9", - "display": "Date vaccine information statement published", - "system": "LN" + }, + { + "fullUrl": "urn:uuid:ac8dc02f-77b0-7070-13d1-836f465308c7", + "resource": { + "resourceType": "Observation", + "id": "ac8dc02f-77b0-7070-13d1-836f465308c7", + "status": "final", + "code": { + "coding": [ + { + "code": "64994-7", + "display": "Vaccine funding program eligibility category", + "system": "http://loinc.org" + } + ] + }, + "valueCodeableConcept": { + "coding": [ + { + "code": "V05", + "display": "VFC eligible - Federally Qualified Health Center Patient (under-insured)", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/HL70064" + } + ] + }, + "effectiveDateTime": "2012-07-01", + "method": { + "coding": [ + { + "code": "VXC40", + "display": "Eligibility captured at the immunization level", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/CDCPHINVS" + } + ] + }, + "partOf": [ + { + "reference": "Immunization/9d7483ec-3273-a9d9-0d6c-da4895472607" + } + ] + }, + "request": { + "method": "PUT", + "url": "Observation/ac8dc02f-77b0-7070-13d1-836f465308c7" } - ] }, - "status": "final", - "component": [ - { - "code": { - "coding": [ - { - "code": "29768-9", - "display": "Date vaccine information statement published", - "system": "LN" - } - ] + { + "fullUrl": "urn:uuid:b22ad261-5119-914a-4417-ea59a3246d7e", + "resource": { + "resourceType": "Observation", + "id": "b22ad261-5119-914a-4417-ea59a3246d7e", + "status": "final", + "code": { + "coding": [ + { + "code": "30956-7", + "display": "vaccine type", + "system": "http://loinc.org" + } + ] + }, + "valueCodeableConcept": { + "coding": [ + { + "code": "88", + "display": "Influenza, unspecified formulation", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/CVX" + } + ] + }, + "partOf": [ + { + "reference": "Immunization/9d7483ec-3273-a9d9-0d6c-da4895472607" + } + ] + }, + "request": { + "method": "PUT", + "url": "Observation/b22ad261-5119-914a-4417-ea59a3246d7e" } - } - ], - "partOf": [ - { - "reference": "Immunization/9d7483ec-3273-a9d9-0d6c-da4895472607" - } - ], - "subject": { - "reference": "Patient/1b2dce0f-93ae-fae4-cc64-b90257c96f1b" - } - }, - "request": { - "method": "PUT", - "url": "Observation/a886d7fc-b6fc-fb60-7c37-e950fbbb13a7" - } - }, - { - "fullUrl": "urn:uuid:c1c03ed1-957c-31a3-95d2-1e9409ae213c", - "resource": { - "resourceType": "Observation", - "id": "c1c03ed1-957c-31a3-95d2-1e9409ae213c", - "code": { - "coding": [ - { - "code": "29769-7", - "display": "Date vaccine information statement presented", - "system": "LN" + }, + { + "fullUrl": "urn:uuid:a886d7fc-b6fc-fb60-7c37-e950fbbb13a7", + "resource": { + "resourceType": "Observation", + "id": "a886d7fc-b6fc-fb60-7c37-e950fbbb13a7", + "status": "final", + "code": { + "coding": [ + { + "code": "29768-9", + "display": "Date vaccine information statement published", + "system": "http://loinc.org" + } + ] + }, + "partOf": [ + { + "reference": "Immunization/9d7483ec-3273-a9d9-0d6c-da4895472607" + } + ] + }, + "request": { + "method": "PUT", + "url": "Observation/a886d7fc-b6fc-fb60-7c37-e950fbbb13a7" } - ] }, - "status": "final", - "component": [ - { - "code": { - "coding": [ - { - "code": "29769-7", - "display": "Date vaccine information statement presented", - "system": "LN" - } - ] + { + "fullUrl": "urn:uuid:c1c03ed1-957c-31a3-95d2-1e9409ae213c", + "resource": { + "resourceType": "Observation", + "id": "c1c03ed1-957c-31a3-95d2-1e9409ae213c", + "status": "final", + "code": { + "coding": [ + { + "code": "29769-7", + "display": "Date vaccine information statement presented", + "system": "http://loinc.org" + } + ] + }, + "partOf": [ + { + "reference": "Immunization/9d7483ec-3273-a9d9-0d6c-da4895472607" + } + ] + }, + "request": { + "method": "PUT", + "url": "Observation/c1c03ed1-957c-31a3-95d2-1e9409ae213c" } - } - ], - "partOf": [ - { - "reference": "Immunization/9d7483ec-3273-a9d9-0d6c-da4895472607" - } - ], - "subject": { - "reference": "Patient/1b2dce0f-93ae-fae4-cc64-b90257c96f1b" } - }, - "request": { - "method": "PUT", - "url": "Observation/c1c03ed1-957c-31a3-95d2-1e9409ae213c" - } - } - ] + ] } \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/VXU_V04/VXU-expected.json b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/VXU_V04/VXU-expected.json index 726ef5b02..cbcee7948 100644 --- a/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/VXU_V04/VXU-expected.json +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.FunctionalTests/TestData/Expected/Hl7v2/VXU_V04/VXU-expected.json @@ -1,706 +1,731 @@ { - "resourceType": "Bundle", - "type": "batch", - "timestamp": "2015-06-24T21:47:27.655+08:00", - "identifier": { - "value": "NIST-IZ-AD-2.1_Send_V04_Z22" - }, - "entry": [ - { - "fullUrl": "urn:uuid:aefd5bbc-563b-7d19-5096-4b5754c338c1", - "resource": { - "resourceType": "MessageHeader", - "id": "aefd5bbc-563b-7d19-5096-4b5754c338c1", - "source": { - "name": "NISTEHRAPP" - }, - "destination": [ - { - "name": "NISTIISAPP" - } - ], - "meta": { - "tag": [ - { - "code": "P", - "system": "http://terminology.hl7.org/CodeSystem/v2-0103" - } - ] - }, - "eventCoding": { - "code": "V04", - "system": "http://terminology.hl7.org/CodeSystem/v2-0003" - } - }, - "request": { - "method": "PUT", - "url": "MessageHeader/aefd5bbc-563b-7d19-5096-4b5754c338c1" - } - }, - { - "fullUrl": "urn:uuid:8dc947ee-0db3-5fa2-04bb-16fd7680cfbe", - "resource": { - "resourceType": "Patient", - "id": "8dc947ee-0db3-5fa2-04bb-16fd7680cfbe", - "identifier": [ - { - "value": "90012", - "type": { - "coding": [ - { - "code": "MR", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" - } - ] - } - } - ], - "name": [ - { - "family": "Wong", - "given": [ - "Elise" - ], - "use": "official" - } - ], - "birthDate": "1983-06-15", - "gender": "female", - "address": [ - { - "line": [ - "9200 Wellington Trail" - ], - "city": "Bozeman", - "state": "MT", - "postalCode": "59715", - "country": "USA" - } - ], - "telecom": [ - { - "use": "home" - }, - { - "use": "home" - } - ], - "multipleBirthInteger": "1", - "deceasedBoolean": "false", - "active": "true" - }, - "request": { - "method": "PUT", - "url": "Patient/8dc947ee-0db3-5fa2-04bb-16fd7680cfbe" - } - }, - { - "fullUrl": "urn:uuid:9d113ef1-15cf-ec5c-6e04-230bf6b8bf71", - "resource": { - "resourceType": "Practitioner", - "id": "9d113ef1-15cf-ec5c-6e04-230bf6b8bf71", - "identifier": [ - { - "value": "654", - "type": { - "coding": [ - { - "code": "MD" - } - ] - } - }, - { - "value": "7824", - "type": { - "coding": [ - { - "code": "PRN" - } - ] - } - } - ], - "name": [ - { - "family": "Thomas", - "given": [ - "Wilma", - "Elizabeth" - ], - "use": "official" - }, - { - "family": "Jackson", - "given": [ - "Lily", - "Suzanne" - ], - "use": "official" - } - ] - }, - "request": { - "method": "PUT", - "url": "Practitioner/9d113ef1-15cf-ec5c-6e04-230bf6b8bf71" - } + "resourceType": "Bundle", + "type": "batch", + "timestamp": "2015-06-24T19:17:27.655+05:30", + "identifier": { + "value": "NIST-IZ-AD-2.1_Send_V04_Z22" }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Practitioner", - "identifier": [ - { - "value": "654", - "type": { - "coding": [ - { - "code": "MD" - } - ] - } - }, - { - "value": "7824", - "type": { - "coding": [ - { - "code": "PRN" + "entry": [ + { + "fullUrl": "urn:uuid:aefd5bbc-563b-7d19-5096-4b5754c338c1", + "resource": { + "resourceType": "MessageHeader", + "id": "aefd5bbc-563b-7d19-5096-4b5754c338c1", + "source": { + "name": "NISTEHRAPP", + "_endpoint": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } + ] + } + }, + "destination": [ + { + "name": "NISTIISAPP", + "_endpoint": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", + "valueCode": "unknown" + } + ] + }, + "receiver": { + "reference": "Organization/421aa904-409c-709f-ad7d-f1a7673d884f" + } + } + ], + "meta": { + "tag": [ + { + "code": "P", + "system": "http://terminology.hl7.org/CodeSystem/v2-0103" + } + ] + }, + "eventCoding": { + "code": "V04", + "system": "http://terminology.hl7.org/CodeSystem/v2-0003", + "display": "VXU^V04^VXU_V04" + }, + "sender": { + "reference": "Organization/8a0eacde-8a9d-6c26-af93-755bbf26dedc" + }, + "responsible": { + "reference": "Organization/8a0eacde-8a9d-6c26-af93-755bbf26dedc" } - ] - } - } - ], - "name": [ - { - "family": "Thomas", - "given": [ - "Wilma", - "Elizabeth" - ], - "use": "official" - }, - { - "family": "Jackson", - "given": [ - "Lily", - "Suzanne" - ], - "use": "official" - } - ] - }, - "request": { - "method": "PUT", - "url": "Practitioner/" - } - }, - { - "fullUrl": "urn:uuid:72b45e56-f6fc-c8af-bc2f-7f62d1a14e80", - "resource": { - "resourceType": "Practitioner", - "id": "72b45e56-f6fc-c8af-bc2f-7f62d1a14e80", - "identifier": [ - { - "value": "654", - "type": { - "coding": [ - { - "code": "MD" - } - ] + }, + "request": { + "method": "PUT", + "url": "MessageHeader/aefd5bbc-563b-7d19-5096-4b5754c338c1" } - } - ], - "name": [ - { - "family": "Thomas", - "given": [ - "Wilma", - "Elizabeth" - ], - "use": "official" - } - ] - }, - "request": { - "method": "PUT", - "url": "Practitioner/72b45e56-f6fc-c8af-bc2f-7f62d1a14e80" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Location" - }, - "request": { - "method": "PUT", - "url": "Location/" - } - }, - { - "fullUrl": "urn:uuid:593c9cc7-23a1-da42-e45a-c2754188dc96", - "resource": { - "resourceType": "Provenance", - "id": "593c9cc7-23a1-da42-e45a-c2754188dc96", - "text": { - "status": "generated", - "div": "

Resource bundle generated on GENERATED_INSTANT_PLACEHOLDER using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: TEMPLATE_URL_PLACEHOLDER.Root template: VXU_V04.

" }, - "agent": [ - { - "type": { - "coding": [ - { - "code": "enterer", - "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" - } - ] + { + "fullUrl": "urn:uuid:8dc947ee-0db3-5fa2-04bb-16fd7680cfbe", + "resource": { + "resourceType": "Patient", + "id": "8dc947ee-0db3-5fa2-04bb-16fd7680cfbe", + "identifier": [ + { + "value": "90012", + "type": { + "coding": [ + { + "code": "MR", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "display": "Medical record number" + } + ] + }, + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NIST-MPI-1" + } + ], + "name": [ + { + "family": "Wong", + "given": [ + "Elise" + ], + "use": "official" + } + ], + "birthDate": "1983-06-15", + "gender": "female", + "address": [ + { + "line": [ + "9200 Wellington Trail" + ], + "city": "Bozeman", + "state": "MT", + "postalCode": "59715", + "country": "USA" + } + ], + "telecom": [ + { + "use": "home", + "system": "phone" + } + ], + "multipleBirthInteger": 1, + "deceasedBoolean": false, + "active": "true", + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2028-9", + "display": "Asian", + "system": "urn:oid:2.16.840.1.113883.6.238" + } + }, + { + "url": "text", + "valueString": "Asian" + } + ] + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "code": "2186-5", + "display": "2186-5" + } + }, + { + "url": "text", + "valueString": "2186-5" + } + ] + } + ] }, - "who": { - "reference": "Practitioner/9d113ef1-15cf-ec5c-6e04-230bf6b8bf71" - }, - "onBehalfOf": { - "reference": "Organization/a5fe12ca-fd28-0fba-c0f7-b103adb9eb92" + "request": { + "method": "PUT", + "url": "Patient/8dc947ee-0db3-5fa2-04bb-16fd7680cfbe" } - }, - { - "type": { - "coding": [ - { - "code": "author", - "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" - } - ] + }, + { + "fullUrl": "urn:uuid:9d113ef1-15cf-ec5c-6e04-230bf6b8bf71", + "resource": { + "resourceType": "Practitioner", + "id": "9d113ef1-15cf-ec5c-6e04-230bf6b8bf71", + "identifier": [ + { + "value": "654", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NIST-PI-1", + "type": { + "coding": [ + { + "code": "MD", + "display": "Medical License number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + }, + { + "value": "7824", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NIST-PI-1", + "type": { + "coding": [ + { + "code": "PRN", + "display": "Provider number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Thomas", + "given": [ + "Wilma", + "Elizabeth" + ], + "use": "official" + }, + { + "family": "Jackson", + "given": [ + "Lily", + "Suzanne" + ], + "use": "official" + } + ] }, - "who": { - "reference": "Practitioner/72b45e56-f6fc-c8af-bc2f-7f62d1a14e80" - } - } - ], - "recorded": "2015-06-24T21:47:27.655+08:00" - }, - "request": { - "method": "PUT", - "url": "Provenance/593c9cc7-23a1-da42-e45a-c2754188dc96" - } - }, - { - "fullUrl": "urn:uuid:99ce28f5-c743-ed2e-b88e-47f2e32d23d5", - "resource": { - "resourceType": "Account", - "id": "99ce28f5-c743-ed2e-b88e-47f2e32d23d5", - "subject": [ - { - "reference": "Patient/8dc947ee-0db3-5fa2-04bb-16fd7680cfbe" - } - ] - }, - "request": { - "method": "PUT", - "url": "Account/99ce28f5-c743-ed2e-b88e-47f2e32d23d5" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Encounter", - "status": "unknown", - "subject": { - "reference": "Patient/8dc947ee-0db3-5fa2-04bb-16fd7680cfbe" - } - }, - "request": { - "method": "PUT", - "url": "Encounter/" - } - }, - { - "fullUrl": "urn:uuid:c0f2ddcb-f061-279f-d5e1-7b54b437e9db", - "resource": { - "resourceType": "Immunization", - "id": "c0f2ddcb-f061-279f-d5e1-7b54b437e9db", - "identifier": [ - { - "value": "4422", - "type": { - "coding": [ - { - "code": "PLAC", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" - } - ] - } - }, - { - "value": "13696", - "type": { - "coding": [ - { - "code": "FILL", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" - } - ] + "request": { + "method": "PUT", + "url": "Practitioner/9d113ef1-15cf-ec5c-6e04-230bf6b8bf71" } - } - ], - "performer": [ - { - "function": { - "coding": [ - { - "code": "OP", - "system": "http://terminology.hl7.org/CodeSystem/v2-0443" - } - ] + }, + { + "fullUrl": "urn:uuid:", + "resource": { + "resourceType": "Practitioner", + "identifier": [ + { + "value": "654", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NIST-PI-1", + "type": { + "coding": [ + { + "code": "MD", + "display": "Medical License number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + }, + { + "value": "7824", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NIST-PI-1", + "type": { + "coding": [ + { + "code": "PRN", + "display": "Provider number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Thomas", + "given": [ + "Wilma", + "Elizabeth" + ], + "use": "official" + }, + { + "family": "Jackson", + "given": [ + "Lily", + "Suzanne" + ], + "use": "official" + } + ] }, - "actor": { - "reference": "Practitioner/72b45e56-f6fc-c8af-bc2f-7f62d1a14e80" + "request": { + "method": "PUT", + "url": "Practitioner/" } - }, - { - "function": { - "coding": [ - { - "code": "AP", - "system": "http://terminology.hl7.org/CodeSystem/v2-0443" - } - ] + }, + { + "fullUrl": "urn:uuid:72b45e56-f6fc-c8af-bc2f-7f62d1a14e80", + "resource": { + "resourceType": "Practitioner", + "id": "72b45e56-f6fc-c8af-bc2f-7f62d1a14e80", + "identifier": [ + { + "value": "654", + "system": "http://example.com/v2-to-fhir-converter/assigning-authority-local-system-NIST-PI-1", + "type": { + "coding": [ + { + "code": "MD", + "display": "Medical License number", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "name": [ + { + "family": "Thomas", + "given": [ + "Wilma", + "Elizabeth" + ], + "use": "official" + } + ] }, - "actor": { - "reference": "Practitioner/9d113ef1-15cf-ec5c-6e04-230bf6b8bf71" + "request": { + "method": "PUT", + "url": "Practitioner/72b45e56-f6fc-c8af-bc2f-7f62d1a14e80" } - } - ], - "patient": { - "reference": "Patient/8dc947ee-0db3-5fa2-04bb-16fd7680cfbe" }, - "occurrenceDateTime": "2015-06-24", - "vaccineCode": { - "coding": [ - { - "code": "49281-0215-88", - "display": "TENIVAC", - "system": "NDC" + { + "fullUrl": "urn:uuid:", + "resource": { + "resourceType": "Location" + }, + "request": { + "method": "PUT", + "url": "Location/" } - ] }, - "lotNumber": "315841", - "expirationDate": "2015-12-16", - "status": "completed", - "manufacturer": { - "reference": "Organization/1d6edd62-0051-4efa-bc0b-db345da54f10" - } - }, - "request": { - "method": "PUT", - "url": "Immunization/c0f2ddcb-f061-279f-d5e1-7b54b437e9db" - } - }, - { - "fullUrl": "urn:uuid:1d6edd62-0051-4efa-bc0b-db345da54f10", - "resource": { - "resourceType": "Organization", - "id": "1d6edd62-0051-4efa-bc0b-db345da54f10", - "identifier": [ - { - "value": "PMC", - "system": "MVX" - } - ], - "name": "Sanofi Pasteur" - }, - "request": { - "method": "PUT", - "url": "Organization/1d6edd62-0051-4efa-bc0b-db345da54f10" - } - }, - { - "fullUrl": "urn:uuid:4f69f58b-f17b-5490-8131-f15d196e9d44", - "resource": { - "resourceType": "Observation", - "id": "4f69f58b-f17b-5490-8131-f15d196e9d44", - "code": { - "coding": [ - { - "code": "30963-3", - "display": "Vaccine Funding Source", - "system": "LN" + { + "fullUrl": "urn:uuid:e07c0451-5793-a1b1-e817-578764a7cc5b", + "resource": { + "resourceType": "Provenance", + "id": "e07c0451-5793-a1b1-e817-578764a7cc5b", + "text": { + "status": "generated", + "div": "

Resource bundle generated on 2021-10-07T14:01:51.579Z using Microsoft FHIR Converter.Template Version: TEMPLATE_VERSION_PLACEHOLDER.Template URL: https://github.com/microsoft/FHIR-Converter/releases/download/vTEMPLATE_VERSION_PLACEHOLDER/Hl7v2DefaultTemplates.tar.gz.Root template: VXU_V04.

" + }, + "occurredDateTime": "2015-06-24T19:17:27.655+05:30", + "recorded": "2015-06-24T19:17:27.655+05:30", + "agent": [ + { + "type": { + "coding": [ + { + "code": "author", + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type" + } + ] + }, + "who": { + "reference": "Organization/8a0eacde-8a9d-6c26-af93-755bbf26dedc" + } + } + ], + "activity": { + "coding": [ + { + "display": "VXU^V04^VXU_V04" + } + ] + }, + "target": [ + { + "reference": "Bundle/" + } + ] + }, + "request": { + "method": "PUT", + "url": "Provenance/e07c0451-5793-a1b1-e817-578764a7cc5b" } - ] }, - "valueCodeableConcept": { - "coding": [ - { - "code": "PHC70", - "display": "Private", - "system": "CDCPHINVS" + { + "fullUrl": "urn:uuid:99ce28f5-c743-ed2e-b88e-47f2e32d23d5", + "resource": { + "resourceType": "Account", + "id": "99ce28f5-c743-ed2e-b88e-47f2e32d23d5", + "status": "active", + "subject": [ + { + "reference": "Patient/8dc947ee-0db3-5fa2-04bb-16fd7680cfbe" + } + ] + }, + "request": { + "method": "PUT", + "url": "Account/99ce28f5-c743-ed2e-b88e-47f2e32d23d5" } - ] }, - "status": "final", - "effectiveDateTime": "2015-06-24", - "component": [ - { - "code": { - "coding": [ - { - "code": "30963-3", - "display": "Vaccine Funding Source", - "system": "LN" + { + "fullUrl": "urn:uuid:", + "resource": { + "resourceType": "Encounter", + "text": { + "status": "generated", + "div": "

Visit Description:

" + }, + "subject": { + "reference": "Patient/8dc947ee-0db3-5fa2-04bb-16fd7680cfbe" } - ] - } - } - ], - "partOf": [ - { - "reference": "Immunization/c0f2ddcb-f061-279f-d5e1-7b54b437e9db" - } - ], - "subject": { - "reference": "Patient/8dc947ee-0db3-5fa2-04bb-16fd7680cfbe" - } - }, - "request": { - "method": "PUT", - "url": "Observation/4f69f58b-f17b-5490-8131-f15d196e9d44" - } - }, - { - "fullUrl": "urn:uuid:c37e67e6-8592-cb8c-3111-f561fa2d8a4c", - "resource": { - "resourceType": "Observation", - "id": "c37e67e6-8592-cb8c-3111-f561fa2d8a4c", - "code": { - "coding": [ - { - "code": "64994-7", - "display": "Vaccine Funding Program Eligibility", - "system": "LN" - } - ] - }, - "valueCodeableConcept": { - "coding": [ - { - "code": "V01", - "display": "Not VFC Eligible", - "system": "HL70064" + }, + "request": { + "method": "PUT", + "url": "Encounter/" } - ] }, - "status": "final", - "effectiveDateTime": "2015-06-24", - "component": [ - { - "code": { - "coding": [ - { - "code": "64994-7", - "display": "Vaccine Funding Program Eligibility", - "system": "LN" + { + "fullUrl": "urn:uuid:c0f2ddcb-f061-279f-d5e1-7b54b437e9db", + "resource": { + "resourceType": "Immunization", + "id": "c0f2ddcb-f061-279f-d5e1-7b54b437e9db", + "identifier": [ + { + "value": "4422", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-NIST-AA-IZ-2", + "type": { + "coding": [ + { + "code": "PLAC", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + }, + { + "value": "13696", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-NIST-AA-IZ-2", + "type": { + "coding": [ + { + "code": "FILL", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "performer": [ + { + "function": { + "coding": [ + { + "code": "OP", + "system": "http://terminology.hl7.org/CodeSystem/v2-0443" + } + ] + }, + "actor": { + "reference": "Practitioner/72b45e56-f6fc-c8af-bc2f-7f62d1a14e80" + } + }, + { + "function": { + "coding": [ + { + "code": "AP", + "system": "http://terminology.hl7.org/CodeSystem/v2-0443" + } + ] + }, + "actor": { + "reference": "Practitioner/9d113ef1-15cf-ec5c-6e04-230bf6b8bf71" + } + } + ], + "patient": { + "reference": "Patient/8dc947ee-0db3-5fa2-04bb-16fd7680cfbe" + }, + "occurrenceDateTime": "2015-06-24", + "vaccineCode": { + "coding": [ + { + "code": "49281-0215-88", + "display": "TENIVAC", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/NDC" + } + ] + }, + "lotNumber": "315841", + "expirationDate": "2015-12-16", + "status": "completed", + "manufacturer": { + "reference": "Organization/1d6edd62-0051-4efa-bc0b-db345da54f10" } - ] - } - } - ], - "partOf": [ - { - "reference": "Immunization/c0f2ddcb-f061-279f-d5e1-7b54b437e9db" - } - ], - "subject": { - "reference": "Patient/8dc947ee-0db3-5fa2-04bb-16fd7680cfbe" - } - }, - "request": { - "method": "PUT", - "url": "Observation/c37e67e6-8592-cb8c-3111-f561fa2d8a4c" - } - }, - { - "fullUrl": "urn:uuid:068ce7b5-9620-1ac7-3117-b4b46fe2e2a2", - "resource": { - "resourceType": "Observation", - "id": "068ce7b5-9620-1ac7-3117-b4b46fe2e2a2", - "code": { - "coding": [ - { - "code": "69764-9", - "display": "Document Type", - "system": "LN" + }, + "request": { + "method": "PUT", + "url": "Immunization/c0f2ddcb-f061-279f-d5e1-7b54b437e9db" } - ] }, - "valueCodeableConcept": { - "coding": [ - { - "code": "253088698300028811170411", - "display": "Tetanus/Diphtheria (Td) Vaccine VIS", - "system": "cdcgs1vis" + { + "fullUrl": "urn:uuid:1d6edd62-0051-4efa-bc0b-db345da54f10", + "resource": { + "resourceType": "Organization", + "id": "1d6edd62-0051-4efa-bc0b-db345da54f10", + "identifier": [ + { + "value": "PMC", + "system": "MVX" + } + ], + "name": "Sanofi Pasteur" + }, + "request": { + "method": "PUT", + "url": "Organization/1d6edd62-0051-4efa-bc0b-db345da54f10" } - ] }, - "status": "final", - "effectiveDateTime": "2015-06-24", - "component": [ - { - "code": { - "coding": [ - { - "code": "69764-9", - "display": "Document Type", - "system": "LN" - } - ] + { + "fullUrl": "urn:uuid:4f69f58b-f17b-5490-8131-f15d196e9d44", + "resource": { + "resourceType": "Observation", + "id": "4f69f58b-f17b-5490-8131-f15d196e9d44", + "status": "final", + "code": { + "coding": [ + { + "code": "30963-3", + "display": "Vaccine Funding Source", + "system": "http://loinc.org" + } + ] + }, + "valueCodeableConcept": { + "coding": [ + { + "code": "PHC70", + "display": "Private", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/CDCPHINVS" + } + ] + }, + "effectiveDateTime": "2015-06-24", + "partOf": [ + { + "reference": "Immunization/c0f2ddcb-f061-279f-d5e1-7b54b437e9db" + } + ] + }, + "request": { + "method": "PUT", + "url": "Observation/4f69f58b-f17b-5490-8131-f15d196e9d44" } - } - ], - "partOf": [ - { - "reference": "Immunization/c0f2ddcb-f061-279f-d5e1-7b54b437e9db" - } - ], - "subject": { - "reference": "Patient/8dc947ee-0db3-5fa2-04bb-16fd7680cfbe" - } - }, - "request": { - "method": "PUT", - "url": "Observation/068ce7b5-9620-1ac7-3117-b4b46fe2e2a2" - } - }, - { - "fullUrl": "urn:uuid:1fc2db78-b289-a0ce-5b3e-7576f72e58b9", - "resource": { - "resourceType": "Observation", - "id": "1fc2db78-b289-a0ce-5b3e-7576f72e58b9", - "code": { - "coding": [ - { - "code": "29769-7", - "display": "Date Vis Presented", - "system": "LN" + }, + { + "fullUrl": "urn:uuid:c37e67e6-8592-cb8c-3111-f561fa2d8a4c", + "resource": { + "resourceType": "Observation", + "id": "c37e67e6-8592-cb8c-3111-f561fa2d8a4c", + "status": "final", + "code": { + "coding": [ + { + "code": "64994-7", + "display": "Vaccine Funding Program Eligibility", + "system": "http://loinc.org" + } + ] + }, + "valueCodeableConcept": { + "coding": [ + { + "code": "V01", + "display": "Not VFC Eligible", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/HL70064" + } + ] + }, + "effectiveDateTime": "2015-06-24", + "method": { + "coding": [ + { + "code": "VXC40", + "display": "per immunization", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/CDCPHINVS" + } + ] + }, + "partOf": [ + { + "reference": "Immunization/c0f2ddcb-f061-279f-d5e1-7b54b437e9db" + } + ] + }, + "request": { + "method": "PUT", + "url": "Observation/c37e67e6-8592-cb8c-3111-f561fa2d8a4c" } - ] }, - "valueDateTime": "2015-06-24", - "status": "final", - "effectiveDateTime": "2015-06-24", - "component": [ - { - "code": { - "coding": [ - { - "code": "29769-7", - "display": "Date Vis Presented", - "system": "LN" - } - ] + { + "fullUrl": "urn:uuid:068ce7b5-9620-1ac7-3117-b4b46fe2e2a2", + "resource": { + "resourceType": "Observation", + "id": "068ce7b5-9620-1ac7-3117-b4b46fe2e2a2", + "status": "final", + "code": { + "coding": [ + { + "code": "69764-9", + "display": "Document Type", + "system": "http://loinc.org" + } + ] + }, + "valueCodeableConcept": { + "coding": [ + { + "code": "253088698300028811170411", + "display": "Tetanus/Diphtheria (Td) Vaccine VIS", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/cdcgs1vis" + } + ] + }, + "effectiveDateTime": "2015-06-24", + "partOf": [ + { + "reference": "Immunization/c0f2ddcb-f061-279f-d5e1-7b54b437e9db" + } + ] }, - "valueDateTime": "2015-06-24" - } - ], - "partOf": [ - { - "reference": "Immunization/c0f2ddcb-f061-279f-d5e1-7b54b437e9db" - } - ], - "subject": { - "reference": "Patient/8dc947ee-0db3-5fa2-04bb-16fd7680cfbe" - } - }, - "request": { - "method": "PUT", - "url": "Observation/1fc2db78-b289-a0ce-5b3e-7576f72e58b9" - } - }, - { - "fullUrl": "urn:uuid:c82d117c-dc9d-e431-dc92-6ca91243da07", - "resource": { - "resourceType": "Immunization", - "id": "c82d117c-dc9d-e431-dc92-6ca91243da07", - "identifier": [ - { - "value": "38760", - "type": { - "coding": [ - { - "code": "FILL", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" - } - ] + "request": { + "method": "PUT", + "url": "Observation/068ce7b5-9620-1ac7-3117-b4b46fe2e2a2" } - } - ], - "patient": { - "reference": "Patient/8dc947ee-0db3-5fa2-04bb-16fd7680cfbe" }, - "occurrenceDateTime": "2014-10-12", - "vaccineCode": { - "coding": [ - { - "code": "88", - "display": "influenza, unspecified formulation", - "system": "CVX" + { + "fullUrl": "urn:uuid:1fc2db78-b289-a0ce-5b3e-7576f72e58b9", + "resource": { + "resourceType": "Observation", + "id": "1fc2db78-b289-a0ce-5b3e-7576f72e58b9", + "status": "final", + "code": { + "coding": [ + { + "code": "29769-7", + "display": "Date Vis Presented", + "system": "http://loinc.org" + } + ] + }, + "valueDateTime": "2015-06-24", + "effectiveDateTime": "2015-06-24", + "partOf": [ + { + "reference": "Immunization/c0f2ddcb-f061-279f-d5e1-7b54b437e9db" + } + ] + }, + "request": { + "method": "PUT", + "url": "Observation/1fc2db78-b289-a0ce-5b3e-7576f72e58b9" } - ] }, - "status": "completed" - }, - "request": { - "method": "PUT", - "url": "Immunization/c82d117c-dc9d-e431-dc92-6ca91243da07" - } - }, - { - "fullUrl": "urn:uuid:", - "resource": { - "resourceType": "Organization" - }, - "request": { - "method": "PUT", - "url": "Organization/" - } - }, - { - "fullUrl": "urn:uuid:07ff92a4-c57e-8726-a03a-1241de54a9c3", - "resource": { - "resourceType": "Immunization", - "id": "07ff92a4-c57e-8726-a03a-1241de54a9c3", - "identifier": [ - { - "value": "35508", - "type": { - "coding": [ - { - "code": "FILL", - "system": "http://terminology.hl7.org/CodeSystem/v2-0203" - } - ] + { + "fullUrl": "urn:uuid:c82d117c-dc9d-e431-dc92-6ca91243da07", + "resource": { + "resourceType": "Immunization", + "id": "c82d117c-dc9d-e431-dc92-6ca91243da07", + "identifier": [ + { + "value": "38760", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-NIST-AA-IZ-2", + "type": { + "coding": [ + { + "code": "FILL", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "patient": { + "reference": "Patient/8dc947ee-0db3-5fa2-04bb-16fd7680cfbe" + }, + "occurrenceDateTime": "2014-10-12", + "vaccineCode": { + "coding": [ + { + "code": "88", + "display": "influenza, unspecified formulation", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/CVX" + } + ] + }, + "status": "completed" + }, + "request": { + "method": "PUT", + "url": "Immunization/c82d117c-dc9d-e431-dc92-6ca91243da07" } - } - ], - "patient": { - "reference": "Patient/8dc947ee-0db3-5fa2-04bb-16fd7680cfbe" }, - "occurrenceDateTime": "2013-11-12", - "vaccineCode": { - "coding": [ - { - "code": "88", - "display": "influenza, unspecified formulation", - "system": "CVX" + { + "fullUrl": "urn:uuid:", + "resource": { + "resourceType": "Organization" + }, + "request": { + "method": "PUT", + "url": "Organization/" } - ] }, - "status": "completed" - }, - "request": { - "method": "PUT", - "url": "Immunization/07ff92a4-c57e-8726-a03a-1241de54a9c3" - } - } - ] + { + "fullUrl": "urn:uuid:07ff92a4-c57e-8726-a03a-1241de54a9c3", + "resource": { + "resourceType": "Immunization", + "id": "07ff92a4-c57e-8726-a03a-1241de54a9c3", + "identifier": [ + { + "value": "35508", + "system": "http://example.com/v2-to-fhir-converter/local-entity-identifier-NIST-AA-IZ-2", + "type": { + "coding": [ + { + "code": "FILL", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + } + ], + "patient": { + "reference": "Patient/8dc947ee-0db3-5fa2-04bb-16fd7680cfbe" + }, + "occurrenceDateTime": "2013-11-12", + "vaccineCode": { + "coding": [ + { + "code": "88", + "display": "influenza, unspecified formulation", + "system": "http://example.com/v2-to-fhir-converter/CodeSystem/CVX" + } + ] + }, + "status": "completed" + }, + "request": { + "method": "PUT", + "url": "Immunization/07ff92a4-c57e-8726-a03a-1241de54a9c3" + } + } + ] } \ No newline at end of file diff --git a/src/Microsoft.Health.Fhir.Liquid.Converter.UnitTests/Models/Hl7v2/Hl7v2TraceInfoTests.cs b/src/Microsoft.Health.Fhir.Liquid.Converter.UnitTests/Models/Hl7v2/Hl7v2TraceInfoTests.cs index 116d7dc55..af72481bb 100644 --- a/src/Microsoft.Health.Fhir.Liquid.Converter.UnitTests/Models/Hl7v2/Hl7v2TraceInfoTests.cs +++ b/src/Microsoft.Health.Fhir.Liquid.Converter.UnitTests/Models/Hl7v2/Hl7v2TraceInfoTests.cs @@ -62,15 +62,15 @@ public void GivenHl7v2Data_WhenCreate_CorrectHl7v2TraceInfoShouldBeReturned() var processor = new Hl7v2Processor(); var templateProvider = new TemplateProvider(TestConstants.Hl7v2TemplateDirectory, DataType.Hl7v2); _ = processor.Convert(content, "ADT_A01", templateProvider, traceInfo); - Assert.Single(traceInfo.UnusedSegments); + Assert.Equal(2, traceInfo.UnusedSegments.Count); - var unusedPid = traceInfo.UnusedSegments[0]; + var unusedPid = traceInfo.UnusedSegments[1]; Assert.Equal("PID", unusedPid.Type); Assert.Equal(1, unusedPid.Line); - Assert.Equal(4, unusedPid.Components.Count); - Assert.Equal(129, unusedPid.Components[2].Start); - Assert.Equal(135, unusedPid.Components[2].End); - Assert.Equal("AccMgr", unusedPid.Components[2].Value); + Assert.Equal(2, unusedPid.Components.Count); + Assert.Equal(139, unusedPid.Components[1].Start); + Assert.Equal(140, unusedPid.Components[1].End); + Assert.Equal("1", unusedPid.Components[0].Value); } } } diff --git a/src/Microsoft.Health.Fhir.TemplateManagement.UnitTests/Providers/TemplateCollectionProviderTests.cs b/src/Microsoft.Health.Fhir.TemplateManagement.UnitTests/Providers/TemplateCollectionProviderTests.cs index b2d48d926..7fc896d9e 100644 --- a/src/Microsoft.Health.Fhir.TemplateManagement.UnitTests/Providers/TemplateCollectionProviderTests.cs +++ b/src/Microsoft.Health.Fhir.TemplateManagement.UnitTests/Providers/TemplateCollectionProviderTests.cs @@ -85,8 +85,8 @@ public static IEnumerable GetImageInfoForArtifactWithTag() public static IEnumerable GetDefaultTemplatesInfo() { - yield return new object[] { "microsofthealth/fhirconverter:default", 759 }; - yield return new object[] { "microsofthealth/hl7v2templates:default", 759 }; + yield return new object[] { "microsofthealth/fhirconverter:default", 827 }; + yield return new object[] { "microsofthealth/hl7v2templates:default", 827 }; yield return new object[] { "microsofthealth/ccdatemplates:default", 821 }; yield return new object[] { "microsofthealth/jsontemplates:default", 2 }; } From 9f087e42194450b2acaf127600c5f27dae2a8b8d Mon Sep 17 00:00:00 2001 From: sowu880 <57981365+sowu880@users.noreply.github.com> Date: Wed, 20 Oct 2021 15:07:26 +0800 Subject: [PATCH 4/5] Refine pipeline (#326) * test * Update release.yml for Azure Pipelines * Update release.yml for Azure Pipelines * Update release.yml for Azure Pipelines * Update release.yml for Azure Pipelines * Update release.yml for Azure Pipelines * Update release.yml for Azure Pipelines * Update release.yml for Azure Pipelines * Update release.yml for Azure Pipelines * Update release.yml for Azure Pipelines * Update release.yml for Azure Pipelines * Update release.yml for Azure Pipelines * Update release.yml for Azure Pipelines --- release.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/release.yml b/release.yml index 0230ae953..5f99f3b6a 100644 --- a/release.yml +++ b/release.yml @@ -179,18 +179,10 @@ stages: artifactName: FhirConverterBuild downloadPath: $(System.DefaultWorkingDirectory) - script: | - git clone -q https://github.com/sowu880/dockerfiles-windows.git - cd dockerfiles-windows/registry/ - docker build -t registry-windows:2.7.1 . - docker run --rm -d -p 5000:5000 --name registry registry-windows:2.7.1 + docker pull wusongrui/registry-windows:2.7.1 + docker run --rm -d -p 5000:5000 --name registry wusongrui/registry-windows:2.7.1 displayName: start registry - # - script: | - # docker pull mcr.microsoft.com/windows/servercore:ltsc2019 - # docker tag mcr.microsoft.com/windows/servercore:ltsc2019 localhost:5000/windows - # docker push localhost:5000/windows - # displayName: test push - - script: | dotnet test FhirConverterBuild/**/*FunctionalTests.dll displayName: Functional Tests From 8a3519717586641f30a3537e206dc17b9f683db3 Mon Sep 17 00:00:00 2001 From: sowu880 <57981365+sowu880@users.noreply.github.com> Date: Wed, 27 Oct 2021 19:56:36 +0800 Subject: [PATCH 5/5] bump 4.3.0 (#330) --- release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release.yml b/release.yml index 5f99f3b6a..f8dcf5de6 100644 --- a/release.yml +++ b/release.yml @@ -17,7 +17,7 @@ variables: functionalTests: "**/*FunctionalTests/*.csproj" buildConfiguration: 'Release' major: 4 - minor: 2 + minor: 3 patch: 0 buildnum: $[counter(format('{0}.{1}.{2}',variables['major'],variables['minor'], variables['patch']), 1)] version: $(major).$(minor).$(patch).$(buildnum)