| Australian Digital Health Agency FHIR Implementation Guide 1.1.0

This page is part of the Australian Digital Health Agency FHIR Implementation Guide 1.1.0. It is based on FHIR® version 4.0.1. See the Directory of published versions for a list of available previous versions.

## Example: DocumentReference-pbs-02

Formats: Narrative, XML, JSON, Turtle

Raw xml

    <DocumentReference xmlns="http://hl7.org/fhir">
      <id value="pbs-02"/>
    <!-- Created DocumentReference from 'data in' Bundle | Post from Medicare repository to MHR -->
    <!-- DocumentReference for ExplanationOfBenefit/pbs-02  -->
      <meta>
        <profile
                 value="http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-documentreference-core-1"/>
      </meta>
      <text>
        <status value="generated"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative: DocumentReference</b><a name="pbs-02"> </a></p><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px">Resource DocumentReference "pbs-02" </p><p style="margin-bottom: 0px">Profile: <a href="StructureDefinition-dh-documentreference-core-1.html">ADHA Core DocumentReference</a></p></div><p><b>masterIdentifier</b>: id: urn:uuid:73f7a30b-add3-4673-a4e9-65b0d8670a36</p><p><b>identifier</b>: id: urn:uuid:73f7a30b-add3-4673-a4e9-65b0d8670a36</p><p><b>status</b>: current</p><p><b>docStatus</b>: final</p><p><b>type</b>: Pharmaceutical Benefits Report <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (nctis-data-components-1#100.16650)</span></p><p><b>category</b>: Pharmaceutical Benefits Report <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (nctis-data-components-1#100.16650)</span></p><p><b>subject</b>: <a href="Patient-mhr-field-sally.html">Patient/mhr-field-sally</a> " FIELD"</p><p><b>date</b>: 17 Feb 2020, 1:02:00 am</p><p><b>author</b>: <a href="Device-medicare-rs-01.html">Device/medicare-rs-01</a></p><p><b>custodian</b>: <a href="Organization-medicare-rs-operator.html">Organization/medicare-rs-operator</a> "Medicare Australia repository services operator"</p><blockquote><p><b>content</b></p><h3>Attachments</h3><table class="grid"><tr><td>-</td><td><b>Language</b></td><td><b>Url</b></td></tr><tr><td>*</td><td>en-AU</td><td><a href="http://example.org/mhr/xds/mhd/Binary/9637211e-26e0-4374-ab6c-ed36c76132c8">http://example.org/mhr/xds/mhd/Binary/9637211e-26e0-4374-ab6c-ed36c76132c8</a></td></tr></table></blockquote><h3>Contexts</h3><table class="grid"><tr><td>-</td><td><b>SourcePatientInfo</b></td><td><b>Related</b></td></tr><tr><td>*</td><td><span></span></td><td><a href="http://example.org/mhr/xds/mhd/ExplanationOfBenefit/73f7a30b-add3-4673-a4e9-65b0d8670a36">http://example.org/mhr/xds/mhd/ExplanationOfBenefit/73f7a30b-add3-4673-a4e9-65b0d8670a36</a></td></tr></table></div>
      </text>
      <masterIdentifier>
        <system value="urn:ietf:rfc:3986"/>
        <value value="urn:uuid:73f7a30b-add3-4673-a4e9-65b0d8670a36"/>
      </masterIdentifier>
      <identifier>
        <system value="urn:ietf:rfc:3986"/>
        <value value="urn:uuid:73f7a30b-add3-4673-a4e9-65b0d8670a36"/>
      </identifier>
      <status value="current"/>
      <docStatus value="final"/>
      <type>
        <coding>
          <system
                  value="https://healthterminologies.gov.au/fhir/CodeSystem/nctis-data-components-1"/>
          <code value="100.16650"/>
          <display value="Pharmaceutical Benefits Report"/>
        </coding>
      </type>
      <category>
        <coding>
          <system
                  value="https://healthterminologies.gov.au/fhir/CodeSystem/nctis-data-components-1"/>
          <code value="100.16650"/>
          <display value="Pharmaceutical Benefits Report"/>
        </coding>
      </category>
      <subject>
      <!--  Assume 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="2020-02-17T01: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/9637211e-26e0-4374-ab6c-ed36c76132c8"/>
        </attachment>
      </content>
    <!-- additional instances of related are instantiated if the Bundle | resource has been split across a DB -->
      <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/73f7a30b-add3-4673-a4e9-65b0d8670a36"/>
        <!-- identifier below is the value of ExplanationOfBenefit.identifier -->
          <identifier>
            <system value="urn:ietf:rfc:3986"/>
            <value value="urn:uuid:73f7a30b-add3-4673-a4e9-65b0d8670a36"/>
          </identifier>
        </related>
      </context>
    </DocumentReference>