Skip to content

Commit

Permalink
DocumentReference examples for MBS Report, PBS Report, AIR
Browse files Browse the repository at this point in the history
DocumentReference example(s) for MHR system to demonstrate how / if these can be generated from an original upload payload for Australian Immunisation Register, Medicare /DVA Benefits Report and Pharmaceutical Benefits Report.
#142
#143
  • Loading branch information
dtr-agency committed Mar 27, 2022
1 parent 83b597e commit 2d45d35
Show file tree
Hide file tree
Showing 14 changed files with 610 additions and 14 deletions.
135 changes: 135 additions & 0 deletions examples/DocumentReference/documentreference-air-01.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
<DocumentReference xmlns="http://hl7.org/fhir">
<id value="air-01"/>
<!--Created DocumentReference from 'data in' Bundle | Post from Medicare repository to MHR-->
<!--DocumentReference for the set of resources that make up the AIR for Patient Sally FIELD IHI 8003608833357361 -->
<meta>
<profile value="http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-documentreference-core-1"/>
</meta>
<masterIdentifier>
<system value="urn:ietf:rfc:3986"/>
<value value="urn:uuid:475db616-dfd5-43f3-b935-9f582233a38d" />
</masterIdentifier>
<identifier>
<system value="urn:ietf:rfc:3986"/>
<value value="urn:uuid:475db616-dfd5-43f3-b935-9f582233a38d" />
</identifier>
<status value="current"/>
<docStatus value="final"/>
<type>
<coding>
<system value="https://healthterminologies.gov.au/fhir/CodeSystem/nctis-data-components-1"/>
<code value="100.17042"/>
<display value="Australian Immunisation Register"/>
</coding>
</type>
<category>
<coding>
<system
value="https://healthterminologies.gov.au/fhir/CodeSystem/nctis-data-components-1"/>
<code value="100.17042"/>
<display value="Australian Immunisation Register"/>
</coding>
</category>
<subject>
<!-- Asssume local record number will be used here instead of IHI-->
<reference value="Patient/mhr-field-sally"/>
<identifier>
<type>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/v2-0203"/>
<code value="NI"/>
<display value="National unique individual identifier"/>
</coding>
<text value="IHI"/>
</type>
<system value="http://ns.electronichealth.net.au/id/hi/ihi/1.0"/>
<value value="8003608833357361"/>
</identifier>
</subject>
<!--Instant this DocumentReference was created from the uploaded the Bundle | resource-->
<date value="2022-02-15T01:02:00+10:00"/>
<author>
<reference value="Device/medicare-rs-01"/>
</author>
<custodian>
<reference value="Organization/medicare-rs-operator"/>
</custodian>
<content>
<!--Assumption that a Binary of the original upload is persisted-->
<attachment>
<language value="en-AU"/>
<url value="http://example.org/mhr/xds/mhd/Binary/b4f868e7-adc8-47b6-9f4e-002315b8e587"/>
</attachment>
</content>
<context>
<sourcePatientInfo>
<identifier>
<type>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/v2-0203"/>
<code value="NI"/>
</coding>
<text value="IHI"/>
</type>
<system value="http://ns.electronichealth.net.au/id/hi/ihi/1.0"/>
<value value="8003608000228437"/>
</identifier>
</sourcePatientInfo>
<!--RELATED RESOURCES - REFERENCING INDIVIDUAL RESOURCES ACROSS THE DB THAT MAKE UP THIS 'DOCUMENT'-->
<!--The url identifier scheme used below is nonsense should be replaced with the real scheme. The nonsense convention is document identifier (i.e. Bundle.identifier) + integer-->
<!--There is no related reference for a Patient record as this is not persisted - MHR Master Patient record is maintained and when a view or other output is
generated that generation process is to generate a fresh Patient resource according to current data and business rules-->
<related>
<!--reference for Flag/air-02-->
<reference value="http://example.org/mhr/xds/mhd/Flag/475db616-dfd5-43f3-b935-9f582233a38d.1"/>
</related>
<related>
<!--reference for Immunization/air-covid-01-->
<reference value="http://example.org/mhr/xds/mhd/Immunization/475db616-dfd5-43f3-b935-9f582233a38d.1"/>
</related>
<related>
<!--reference for Immunization/air-covid-02-->
<reference value="http://example.org/mhr/xds/mhd/Immunization/475db616-dfd5-43f3-b935-9f582233a38d.3"/>
</related>
<related>
<!--reference for Immunization/air-covid-03-->
<reference value="http://example.org/mhr/xds/mhd/Immunization/475db616-dfd5-43f3-b935-9f582233a38d.4"/>
</related>
<related>
<!--reference for Immunization/air-hepb-01-->
<reference value="http://example.org/mhr/xds/mhd/Immunization/475db616-dfd5-43f3-b935-9f582233a38d.5"/>
</related>
<related>
<!--reference for Immunization/air-dip-01-->
<reference value="http://example.org/mhr/xds/mhd/Immunization/475db616-dfd5-43f3-b935-9f582233a38d.6"/>
</related>
<related>
<!--reference for Immunization/air-dip-02-->
<reference value="http://example.org/mhr/xds/mhd/Immunization/475db616-dfd5-43f3-b935-9f582233a38d.7"/>
</related>
<related>
<!--reference for Immunization/air-dip-03-->
<reference value="http://example.org/mhr/xds/mhd/Immunization/475db616-dfd5-43f3-b935-9f582233a38d.8"/>
</related>
<related>
<!--reference for Immunization/air-dip-04-->
<reference value="http://example.org/mhr/xds/mhd/Immunization/475db616-dfd5-43f3-b935-9f582233a38d.9"/>
</related>
<related>
<!--reference for Immunization/air-dip-05-->
<reference value="http://example.org/mhr/xds/mhd/Immunization/475db616-dfd5-43f3-b935-9f582233a38d.10"/>
</related>
<related>
<!--reference for Immunization/air-infl-01-->
<reference value="http://example.org/mhr/xds/mhd/Immunization/475db616-dfd5-43f3-b935-9f582233a38d.11"/>
</related>
<related>
<!--reference for Immunization/air-infl-02-->
<reference value="http://example.org/mhr/xds/mhd/Immunization/475db616-dfd5-43f3-b935-9f582233a38d.12"/>
</related>
<related>
<!--reference for Immunization/air-infl-03-->
<reference value="http://example.org/mhr/xds/mhd/Immunization/475db616-dfd5-43f3-b935-9f582233a38d.13"/>
</related>
</context>
</DocumentReference>
92 changes: 92 additions & 0 deletions examples/DocumentReference/documentreference-mbs-01.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<DocumentReference xmlns="http://hl7.org/fhir">
<id value="mbs-01"/>
<!--Created DocumentReference from 'data in' Bundle | Post from Medicare repository to MHR-->
<!--DocumentReference for ExplanationOfBenefit/mbs-01 -->
<meta>
<profile value="http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-documentreference-core-1"/>
</meta>
<masterIdentifier>
<system value="urn:ietf:rfc:3986"/>
<value value="urn:uuid:a7b64195-3553-4708-957e-04d571c7db92" />
</masterIdentifier>
<identifier>
<system value="urn:ietf:rfc:3986"/>
<value value="urn:uuid:a7b64195-3553-4708-957e-04d571c7db92" />
</identifier>
<status value="current"/>
<docStatus value="final"/>
<type>
<coding>
<system value="https://healthterminologies.gov.au/fhir/CodeSystem/nctis-data-components-1"/>
<code value="100.16644"/>
<display value="Medicare/DVA Benefits Report"/>
</coding>
</type>
<category>
<coding>
<system
value="https://healthterminologies.gov.au/fhir/CodeSystem/nctis-data-components-1"/>
<code value="100.16644"/>
<display value="Medicare/DVA Benefits Report"/>
</coding>
</category>
<subject>
<!-- Asssume local record number will be used here instead of IHI-->
<reference value="Patient/mhr-zhang-wei"/>
<identifier>
<type>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/v2-0203"/>
<code value="NI"/>
<display value="National unique individual identifier"/>
</coding>
<text value="IHI"/>
</type>
<system value="http://ns.electronichealth.net.au/id/hi/ihi/1.0"/>
<value value="8003608833564735"/>
</identifier>
</subject>
<!--Instant this DocumentReference was created from the uploaded the Bundle | resource-->
<date value="2019-02-08T10:02:00+10:00"/>
<author>
<reference value="Device/medicare-rs-01"/>
</author>
<custodian>
<reference value="Organization/medicare-rs-operator"/>
</custodian>
<content>
<!--Assumption that a Binary of the original upload is persisted-->
<attachment>
<language value="en-AU"/>
<url value="http://example.org/mhr/xds/mhd/Binary/6834d034-5a89-4394-8bf2-a947584ac438"/>
</attachment>
</content>
<context>
<sourcePatientInfo>
<identifier>
<type>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/v2-0203"/>
<code value="NI"/>
</coding>
<text value="IHI"/>
</type>
<system value="http://ns.electronichealth.net.au/id/hi/ihi/1.0"/>
<value value="8003608000228437"/>
</identifier>
</sourcePatientInfo>
<!--RELATED RESOURCES - REFERENCING INDIVIDUAL RESOURCES ACROSS THE DB THAT MAKE UP THIS 'DOCUMENT'-->
<!--The url identifier scheme used below is nonsense should be replaced with the real scheme. The nonsense convention is document identifier (i.e. Bundle.identifier or Resource.identifier)-->
<!--There is no related reference for a Patient record as this is not persisted - MHR Master Patient record is maintained and when a view or other output is
generated that generation process is to generate a fresh Patient resource according to current data and business rules-->
<related>
<reference value="http://example.org/mhr/xds/mhd/ExplanationOfBenefit/a7b64195-3553-4708-957e-04d571c7db92"/>
<!--identifier below is the value of ExplanationOfBenefit.identifier-->
<identifier>
<system value="urn:ietf:rfc:3986"/>
<value value="urn:uuid:a7b64195-3553-4708-957e-04d571c7db92" />
</identifier>
</related>
<!--additional instances of related are instantiated if the Bundle | resource has been split across a DB-->
</context>
</DocumentReference>
92 changes: 92 additions & 0 deletions examples/DocumentReference/documentreference-mbs-02.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<DocumentReference xmlns="http://hl7.org/fhir">
<id value="mbs-02"/>
<!--Created DocumentReference from 'data in' Bundle | Post from Medicare repository to MHR-->
<!--DocumentReference for ExplanationOfBenefit/mbs-02 -->
<meta>
<profile value="http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-documentreference-core-1"/>
</meta>
<masterIdentifier>
<system value="urn:ietf:rfc:3986"/>
<value value="urn:uuid:79a8b5a5-1631-4eec-b031-815156c9a47b" />
</masterIdentifier>
<identifier>
<system value="urn:ietf:rfc:3986"/>
<value value="urn:uuid:79a8b5a5-1631-4eec-b031-815156c9a47b" />
</identifier>
<status value="current"/>
<docStatus value="final"/>
<type>
<coding>
<system value="https://healthterminologies.gov.au/fhir/CodeSystem/nctis-data-components-1"/>
<code value="100.16644"/>
<display value="Medicare/DVA Benefits Report"/>
</coding>
</type>
<category>
<coding>
<system
value="https://healthterminologies.gov.au/fhir/CodeSystem/nctis-data-components-1"/>
<code value="100.16644"/>
<display value="Medicare/DVA Benefits Report"/>
</coding>
</category>
<subject>
<!-- Asssume local record number will be used here instead of IHI-->
<reference value="Patient/mhr-field-sally"/>
<identifier>
<type>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/v2-0203"/>
<code value="NI"/>
<display value="National unique individual identifier"/>
</coding>
<text value="IHI"/>
</type>
<system value="http://ns.electronichealth.net.au/id/hi/ihi/1.0"/>
<value value="8003608833357361"/>
</identifier>
</subject>
<!--Instant this DocumentReference was created from the uploaded the Bundle | resource-->
<date value="2017-12-04T01:02:00+10:00"/>
<author>
<reference value="Device/medicare-rs-01"/>
</author>
<custodian>
<reference value="Organization/medicare-rs-operator"/>
</custodian>
<content>
<!--Assumption that a Binary of the original upload is persisted-->
<attachment>
<language value="en-AU"/>
<url value="http://example.org/mhr/xds/mhd/Binary/e2c4db8a-7164-46c3-990a-d00cdaec348d"/>
</attachment>
</content>
<context>
<sourcePatientInfo>
<identifier>
<type>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/v2-0203"/>
<code value="NI"/>
</coding>
<text value="IHI"/>
</type>
<system value="http://ns.electronichealth.net.au/id/hi/ihi/1.0"/>
<value value="8003608000228437"/>
</identifier>
</sourcePatientInfo>
<!--RELATED RESOURCES - REFERENCING INDIVIDUAL RESOURCES ACROSS THE DB THAT MAKE UP THIS 'DOCUMENT'-->
<!--The url identifier scheme used below is nonsense should be replaced with the real scheme. The nonsense convention is document identifier (i.e. Bundle.identifier or Resource.identifier)-->
<!--There is no related reference for a Patient record as this is not persisted - MHR Master Patient record is maintained and when a view or other output is
generated that generation process is to generate a fresh Patient resource according to current data and business rules-->
<related>
<reference value="http://example.org/mhr/xds/mhd/ExplanationOfBenefit/79a8b5a5-1631-4eec-b031-815156c9a47b"/>
<!--identifier below is the value of ExplanationOfBenefit.identifier-->
<identifier>
<system value="urn:ietf:rfc:3986"/>
<value value="urn:uuid:79a8b5a5-1631-4eec-b031-815156c9a47b" />
</identifier>
</related>
<!--additional instances of related are instantiated if the Bundle | resource has been split across a DB-->
</context>
</DocumentReference>
6 changes: 5 additions & 1 deletion examples/DocumentReference/documentreference-nbcsp-01.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@
<system value="http://ns.electronichealth.net.au/id/hi/ihi/1.0"/>
<value value="8003608000228437"/>
</identifier>
</sourcePatientInfo>
</sourcePatientInfo>
<!--RELATED RESOURCES - REFERENCING INDIVIDUAL RESOURCES ACROSS THE DB THAT MAKE UP THIS 'DOCUMENT'-->
<!--The url identifier scheme used below is nonsense should be replaced with the real scheme. The nonsense convention is document identifier (i.e. Bundle.identifier or Resource.identifier)-->
<!--There is no related reference for a Patient record as this is not persisted - MHR Master Patient record is maintained and when a view or other output is
generated that generation process is to generate a fresh Patient resource according to current data and business rules-->
<related>
<reference value="http://example.org/mhr/xds/mhd/Bundle/e5c4c5e5-ab81-460e-b122-ed98dbe1f7e5"/>
<identifier>
Expand Down
4 changes: 4 additions & 0 deletions examples/DocumentReference/documentreference-nbcsp-02.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@
<value value="8003608000228437"/>
</identifier>
</sourcePatientInfo>
<!--RELATED RESOURCES - REFERENCING INDIVIDUAL RESOURCES ACROSS THE DB THAT MAKE UP THIS 'DOCUMENT'-->
<!--The url identifier scheme used below is nonsense should be replaced with the real scheme. The nonsense convention is document identifier (i.e. Bundle.identifier or Resource.identifier)-->
<!--There is no related reference for a Patient record as this is not persisted - MHR Master Patient record is maintained and when a view or other output is
generated that generation process is to generate a fresh Patient resource according to current data and business rules-->
<related>
<reference value="http://example.org/mhr/xds/mhd/Bundle/b5cf0f22-30b3-4bda-a724-8d37aeafb26a"/>
<identifier>
Expand Down
4 changes: 4 additions & 0 deletions examples/DocumentReference/documentreference-nbcsp-03.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@
<value value="8003608833564735"/>
</identifier>
</sourcePatientInfo>
<!--RELATED RESOURCES - REFERENCING INDIVIDUAL RESOURCES ACROSS THE DB THAT MAKE UP THIS 'DOCUMENT'-->
<!--The url identifier scheme used below is nonsense should be replaced with the real scheme. The nonsense convention is document identifier (i.e. Bundle.identifier or Resource.identifier)-->
<!--There is no related reference for a Patient record as this is not persisted - MHR Master Patient record is maintained and when a view or other output is
generated that generation process is to generate a fresh Patient resource according to current data and business rules-->
<related>
<reference value="http://example.org/mhr/xds/mhd/Bundle/5a655945-c2b3-4d01-9e88-224873e32d8d"/>
<identifier>
Expand Down
4 changes: 4 additions & 0 deletions examples/DocumentReference/documentreference-ncsp-01.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@
<value value="8003608833564735"/>
</identifier>
</sourcePatientInfo>
<!--RELATED RESOURCES - REFERENCING INDIVIDUAL RESOURCES ACROSS THE DB THAT MAKE UP THIS 'DOCUMENT'-->
<!--The url identifier scheme used below is nonsense should be replaced with the real scheme. The nonsense convention is document identifier (i.e. Bundle.identifier or Resource.identifier)-->
<!--There is no related reference for a Patient record as this is not persisted - MHR Master Patient record is maintained and when a view or other output is
generated that generation process is to generate a fresh Patient resource according to current data and business rules-->
<related>
<reference value="http://example.org/mhr/xds/mhd/Bundle/5a655945-c2b3-4d01-9e88-224873e32d8d"/>
<identifier>
Expand Down
Loading

0 comments on commit 2d45d35

Please sign in to comment.