From e34c14df539bac2309e49a5b0960c3004c95491c Mon Sep 17 00:00:00 2001 From: Cibi Jacob Date: Mon, 6 Jan 2025 17:43:08 +0000 Subject: [PATCH] docs: update xslt file to generate the fhir bundle to add consent and organization resources #947 --- .../specifications/ccda/cda-fhir-bundle.xslt | 151 +++++++++++++++--- .../specifications/ccda/cda-phi-filter.xslt | 140 ++++++++-------- 2 files changed, 204 insertions(+), 87 deletions(-) diff --git a/support/specifications/ccda/cda-fhir-bundle.xslt b/support/specifications/ccda/cda-fhir-bundle.xslt index 390d34e5fc..2a7fad5f1b 100644 --- a/support/specifications/ccda/cda-fhir-bundle.xslt +++ b/support/specifications/ccda/cda-fhir-bundle.xslt @@ -6,20 +6,23 @@ + + + + + { "resourceType": "Bundle", - "type": "collection", - + "id": "", + "meta" : { + "lastUpdated" : "", + "profile" : ["http://shinny.org/us/ny/hrsn/StructureDefinition/SHINNYBundleProfile"] + }, + "type" : "transaction", + "timestamp" : "", "entry": [ - + ] } @@ -28,9 +31,15 @@ , { + "fullUrl" : "http://shinny.org/us/ny/hrsn/Patient/", "resource": { "resourceType": "Patient", - "id": "", + "id": "", + "meta" : { + "lastUpdated" : "", + "profile" : ["http://shinny.org/us/ny/hrsn/StructureDefinition/shinny-patient"] + }, + "language" : "", "name": [ { "use": "official", @@ -83,11 +92,11 @@ ], "extension": [ { - "url": "http://hl7.org/fhir/StructureDefinition/patient-race", + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", "valueCodeableConcept": { "coding": [ { - "system": "", + "system": "urn:oid:", "code": "", "display": "" } @@ -95,11 +104,11 @@ } }, { - "url": "http://hl7.org/fhir/StructureDefinition/patient-ethnicity", + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", "valueCodeableConcept": { "coding": [ { - "system": "", + "system": "urn:oid:", "code": "", "display": "" } @@ -119,6 +128,10 @@ } } ] + }, + "request" : { + "method" : "POST", + "url" : "http://shinny.org/us/ny/hrsn/Patient/" } } @@ -127,9 +140,14 @@ , { + "fullUrl" : "http://shinny.org/us/ny/hrsn/Encounter/", "resource": { "resourceType": "Encounter", "id": "", + "meta" : { + "lastUpdated" : "", + "profile" : ["http://shinny.org/us/ny/hrsn/StructureDefinition/shinny-encounter"] + }, "status": "finished", "type": [ { @@ -146,6 +164,93 @@ "start": "", "end": "" } + }, + "request" : { + "method" : "POST", + "url" : "http://shinny.org/us/ny/hrsn/Encounter/" + } + } + + + + + , + { + "fullUrl" : "http://shinny.org/us/ny/hrsn/Consent/", + "resource": { + "resourceType": "Consent", + "id": "", + "meta" : { + "lastUpdated" : "", + "profile" : ["http://shinny.org/us/ny/hrsn/StructureDefinition/shinny-Consent"] + }, + "status": "", + "category": [ + { + "coding": [ + { + "system": "", + "code": "", + "display": "" + } + ] + } + ], + "subject" : { + "reference" : "Patient/" + "display" : "" + }, + "organization" : [{ + "reference" : "Organization/" + }], + }, + "request" : { + "method" : "POST", + "url" : "http://shinny.org/us/ny/hrsn/Consent/" + } + } + + + + + , + { + "fullUrl" : "http://shinny.org/us/ny/hrsn/Organization/", + "resource": { + "resourceType": "Organization", + "id": "", + "meta" : { + "lastUpdated" : "", + "profile" : ["http://shinny.org/us/ny/hrsn/StructureDefinition/shin-ny-organization"] + }, + "active": true, + "identifier": [ + { + "type" : { + "coding": [ + { + "display": "" + } + ] + }, + "system" : "http://www.scn.ny.gov/", + "value" : "" + } + ], + "name" : "", + "address" : [{ + "text" : ", , ", + "line" : [""], + "city" : "", + "district" : "", + "state" : "", + "postalCode" : "" + }] + }, + + "request" : { + "method" : "POST", + "url" : "http://shinny.org/us/ny/hrsn/Organization/" } } @@ -154,9 +259,14 @@ , { + "fullUrl" : "http://shinny.org/us/ny/hrsn/Observation/", "resource": { "resourceType": "Observation", "id": "", + "meta" : { + "lastUpdated" : "", + "profile" : ["http://shinny.org/us/ny/hrsn/StructureDefinition/shinny-observation-screening-response"] + }, "status": "", "code": { "coding": [ @@ -171,7 +281,7 @@ "subject": { "reference": "Patient/" }, - "category": { + "category": [{ "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/observation-category", @@ -179,7 +289,7 @@ "display": "" } ] - }, + }], "effectiveDateTime": " @@ -204,9 +314,12 @@ " + }, + "request" : { + "method" : "POST", + "url" : "http://shinny.org/us/ny/hrsn/Observation/" } } - - \ No newline at end of file + diff --git a/support/specifications/ccda/cda-phi-filter.xslt b/support/specifications/ccda/cda-phi-filter.xslt index 7a19202126..6e4af702ac 100644 --- a/support/specifications/ccda/cda-phi-filter.xslt +++ b/support/specifications/ccda/cda-phi-filter.xslt @@ -187,11 +187,11 @@ - + - +
@@ -213,77 +213,81 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + +
-
+