STU 3 Candidate

This page is part of the FHIR Specification (v1.4.0: STU 3 Ballot 3). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3 R2

Documentreference-example.xml

Raw XML (canonical form)

Example of documentreference (id = "example")

<DocumentReference xmlns="http://hl7.org/fhir">
  <id value="example"/>
  <!--    Many XDS systems do not trak any id for the author. When systems don't do this, 
    the only option is for the author information to be contained in the Document Reference
      -->
  <text><status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: example</p><p><b>contained</b>: </p><p><b>masterIdentifier</b>: urn:oid:1.3.6.1.4.1.21367.2005.3.7</p><p><b>identifier</b>: urn:oid:1.3.6.1.4.1.21367.2005.3.7.1234</p><p><b>subject</b>: <a>Patient/xcda</a></p><p><b>type</b>: Outpatient Note <span>(Details : {LOINC code '34108-1' = 'Outpatient Note', given as 'Outpatient Note'})</span></p><p><b>class</b>: History and Physical <span>(Details : {http://ihe.net/xds/connectathon/classCodes code 'History and Physical' = '??',
           given as 'History and Physical'})</span></p><p><b>author</b>: <a>Practitioner/xcda1</a>, id: a2; Gerald Smitty </p><p><b>custodian</b>: <a>Organization/organization-example</a></p><p><b>authenticator</b>: <a>Organization/organization-example</a></p><p><b>created</b>: 24/12/2005 9:35:00 AM</p><p><b>indexed</b>: 24/12/2005 9:43:41 AM</p><p><b>status</b>: current</p><p><b>docStatus</b>: preliminary <span>(Details : {http://hl7.org/fhir/composition-status code 'preliminary' = 'Preliminary',
           given as 'preliminary'})</span></p><h3>RelatesTos</h3><table><tr><td>-</td><td><b>Code</b></td><td><b>Target</b></td></tr><tr><td>*</td><td>appends</td><td><a>DocumentReference/example</a></td></tr></table><p><b>description</b>: Physical</p><p><b>securityLabel</b>: very restricted <span>(Details : {http://hl7.org/fhir/v3/Confidentiality code 'V' = 'very restricted', given
           as 'very restricted'})</span></p><h3>Contents</h3><table><tr><td>-</td><td><b>Attachment</b></td><td><b>Format</b></td></tr><tr><td>*</td><td/><td>History and Physical Specification (Details: urn:oid:1.3.6.1.4.1.19376.1.2.3 code urn:ihe:pcc:handp:
            2008 = '??', stated as 'History and Physical Specification')</td></tr></table><blockquote><p><b>context</b></p><p><b>encounter</b>: <a>Encounter/xcda</a></p><p><b>event</b>: Arm <span>(Details : {http://ihe.net/xds/connectathon/eventCodes code 'T-D8200' = '??', given as
             'Arm'})</span></p><p><b>period</b>: 23/12/2004 8:00:00 AM --&gt; 23/12/2004 8:01:00 AM</p><p><b>facilityType</b>: Outpatient <span>(Details : {http://www.ihe.net/xds/connectathon/healthcareFacilityTypeCodes code 'Outpatient'
             = '??', given as 'Outpatient'})</span></p><p><b>practiceSetting</b>: General Medicine <span>(Details : {http://www.ihe.net/xds/connectathon/practiceSettingCodes code 'General Medicine'
             = '??', given as 'General Medicine'})</span></p><p><b>sourcePatientInfo</b>: <a>Patient/xcda</a></p><h3>Relateds</h3><table><tr><td>-</td><td><b>Identifier</b></td><td><b>Ref</b></td></tr><tr><td>*</td><td>urn:oid:1.3.6.1.4.1.21367.2005.3.7.2345</td><td><a>Patient/xcda</a></td></tr></table></blockquote></div></text><contained>
    <Practitioner>
      <id value="a2"/>
      <name>
        <family value="Smitty"/>
        <given value="Gerald"/>
      </name>
      <practitionerRole>
        <organization>
          <display value="Cleveland Clinic"/>
        </organization>
        <role>
          <text value="Attending"/>
        </role>
        <specialty>
          <text value="Orthopedic"/>
        </specialty>
      </practitionerRole>
    </Practitioner>
  </contained>
  <masterIdentifier>
    <system value="urn:ietf:rfc:3986"/>
    <value value="urn:oid:1.3.6.1.4.1.21367.2005.3.7"/>
  </masterIdentifier>
  <identifier>
    <system value="urn:ietf:rfc:3986"/>
    <value value="urn:oid:1.3.6.1.4.1.21367.2005.3.7.1234"/>
  </identifier>
  <subject>
    <reference value="Patient/xcda"/>
  </subject>
  <type>
    <coding>
      <system value="http://loinc.org"/>
      <code value="34108-1"/>
      <display value="Outpatient Note"/>
    </coding>
  </type>
  <class>
    <coding>
      <system value="http://ihe.net/xds/connectathon/classCodes"/>
      <code value="History and Physical"/>
      <display value="History and Physical"/>
    </coding>
  </class>
  <author>
    <reference value="Practitioner/xcda1"/>
  </author>
  <author>
    <reference value="#a2"/>
  </author>
  <custodian>
    <reference value="Organization/organization-example"/>
  </custodian>
  <authenticator>
    <reference value="Organization/organization-example"/>
  </authenticator>
  <created value="2005-12-24T09:35:00+11:00"/>
  <indexed value="2005-12-24T09:43:41+11:00"/>
  <status value="current"/>
  <docStatus>
    <coding>
      <system value="http://hl7.org/fhir/composition-status"/>
      <code value="preliminary"/>
      <display value="preliminary"/>
    </coding>
  </docStatus>
  <relatesTo>
    <code value="appends"/>
    <target>
      <reference value="DocumentReference/example"/>
    </target>
  </relatesTo>
  <description value="Physical"/>
  <securityLabel>
    <coding>
      <system value="http://hl7.org/fhir/v3/Confidentiality"/>
      <code value="V"/>
      <display value="very restricted"/>
    </coding>
  </securityLabel>
  <content>
    <attachment>
      <contentType value="application/hl7-v3+xml"/>
      <language value="en-US"/>
      <url value="http://example.org/xds/mhd/Binary/07a6483f-732b-461e-86b6-edb665c45510"/>
      <size value="3654"/>
      <hash value="2jmj7l5rSw0yVb/vlWAYkK/YBwk="/>
    </attachment>
    <format>
      <system value="urn:oid:1.3.6.1.4.1.19376.1.2.3"/>
      <code value="urn:ihe:pcc:handp:2008"/>
      <display value="History and Physical Specification"/>
    </format>
  </content>
  <context>
    <encounter>
      <reference value="Encounter/xcda"/>
    </encounter>
    <event>
      <coding>
        <system value="http://ihe.net/xds/connectathon/eventCodes"/>
        <code value="T-D8200"/>
        <display value="Arm"/>
      </coding>
    </event>
    <period>
      <start value="2004-12-23T08:00:00+11:00"/>
      <end value="2004-12-23T08:01:00+11:00"/>
    </period>
    <facilityType>
      <coding>
        <system value="http://www.ihe.net/xds/connectathon/healthcareFacilityTypeCodes"/>
        <code value="Outpatient"/>
        <display value="Outpatient"/>
      </coding>
    </facilityType>
    <practiceSetting>
      <coding>
        <system value="http://www.ihe.net/xds/connectathon/practiceSettingCodes"/>
        <code value="General Medicine"/>
        <display value="General Medicine"/>
      </coding>
    </practiceSetting>
    <sourcePatientInfo>
      <reference value="Patient/xcda"/>
    </sourcePatientInfo>
    <related>
      <identifier>
        <system value="urn:ietf:rfc:3986"/>
        <value value="urn:oid:1.3.6.1.4.1.21367.2005.3.7.2345"/>
      </identifier>
      <ref>
        <reference value="Patient/xcda"/>
      </ref>
    </related>
  </context>
</DocumentReference>

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.