Release 5 Draft Ballot

This page is part of the FHIR Specification (v4.6.0: R5 Draft Ballot). 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

Servicerequest-example2.xml

Orders and Observations Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Device, Encounter, Patient, Practitioner, RelatedPerson

Raw XML (canonical form + also see XML Format Specification)

Jump past Narrative

An example of an order for home physiotherapy (id = "physiotherapy")

<?xml version="1.0" encoding="UTF-8"?>

<ServiceRequest xmlns="http://hl7.org/fhir">
  <id value="physiotherapy"/> 
  <!--    demonstrating in this example the reason reference element using contained resources
   for the purpose of this example only typically this would be a separate independent resource
     -->
  <text> <status value="generated"/> <div xmlns="http://www.w3.org/1999/xhtml"><p> <b> Generated Narrative</b> </p> <p> <b> identifier</b> : Placer: 20170201-0001</p> <p> <b> basedOn</b> : <a> Generated Summary: status: active; intent: plan; period: 1 Jan. 2013, 9:30:00 pm --&gt;
           (ongoing)</a> </p> <p> <b> status</b> : completed</p> <p> <b> intent</b> : order</p> <p> <b> code</b> : <span> Physiotherapy of chest (regime/therapy)</span> </p> <p> <b> subject</b> : <a> Generated Summary: Medical record number: 12345 (USUAL); active; Peter James Chalmers
           (OFFICIAL), Jim , Peter James Windsor (MAIDEN); , Phone: (03) 5555 6473, Phone: (03) 3410
           5613, Phone: (03) 5555 8834; gender: male; birthDate: 1974-12-25; </a> </p> <p> <b> occurrence</b> : Duration 15days, Do 1-1 per 1 days</p> <p> <b> asNeeded</b> : <span> as needed to clear mucus</span> </p> <p> <b> authoredOn</b> : 2 Feb. 2017, 4:23:07 am</p> <p> <b> requester</b> : <a> Dr Adam Careful. Generated Summary: id: 23; active; Adam Careful </a> </p> <h3> Reasons</h3> <table> <tr> <td> -</td> </tr> <tr> <td> *</td> </tr> </table> <p> <b> relevantHistory</b> : <a>  </a> </p> <blockquote> <p> <b> target</b> : <a> ServiceRequest/physiotherapy/_history/1</a> </p> <p> <b> recorded</b> : 2 Feb. 2017, 4:23:07 am</p> <h3> Agents</h3> <table> <tr> <td> -</td> <td> <b> Role</b> </td> <td> <b> Who</b> </td> </tr> <tr> <td> *</td> <td> <span> author (originator)</span> </td> <td> <a> Dr Adam Careful. Generated Summary: id: 23; active; Adam Careful </a> </td> </tr> </table> <h3> Signatures</h3> <table> <tr> <td> -</td> </tr> <tr> <td> *</td> </tr> </table> </blockquote> </div> </text> <contained> 
    <Provenance> 
      <id value="signature"/> 
      <target> 
        <reference value="ServiceRequest/physiotherapy/_history/1"/> 
      </target> 
      <recorded value="2017-02-01T17:23:07Z"/> 
      <agent> 
        <role> 
          <coding> 
            <system value="http://terminology.hl7.org/CodeSystem/v3-ParticipationType"/> 
            <code value="AUT"/> 
          </coding> 
        </role> 
        <who> 
          <reference value="Practitioner/example"/> 
          <display value="Dr Adam Careful"/> 
        </who> 
      </agent> 
      <signature> 
        <type> 
          <system value="urn:iso-astm:E1762-95:2013"/> 
          <code value="1.2.840.10065.1.12.1.1"/> 
          <display value="Author's Signature"/> 
        </type> 
        <when value="2017-02-01T17:23:07Z"/> 
        <who> 
          <reference value="Practitioner/example"/> 
          <display value="Dr Adam Careful"/> 
        </who> 
        <targetFormat value="application/fhir+xml"/> 
        <sigFormat value="application/signature+xml"/> 
        <data value="dGhpcyBibG9iIGlzIHNuaXBwZWQ="/> 
      </signature> 
    </Provenance> 
  </contained> 
  <contained> 
    <Condition> 
      <id value="cystic-fibrosis"/> 
      <clinicalStatus> 
        <coding> 
          <system value="http://terminology.hl7.org/CodeSystem/condition-clinical"/> 
          <code value="active"/> 
        </coding> 
        </clinicalStatus> 
        <verificationStatus> 
        <coding> 
          <system value="http://terminology.hl7.org/CodeSystem/condition-ver-status"/> 
          <code value="confirmed"/> 
        </coding> 
        </verificationStatus> 
      <category> 
        <coding> 
          <system value="http://terminology.hl7.org/CodeSystem/condition-category"/> 
          <code value="problem-list-item"/> 
          <display value="Problem List Item"/> 
        </coding> 
      </category> 
      <severity> 
        <coding> 
          <system value="http://snomed.info/sct"/> 
          <code value="255604002"/> 
          <display value="Mild"/> 
        </coding> 
      </severity> 
      <code> 
        <coding> 
          <system value="http://hl7.org/fhir/sid/icd-10-cm"/> 
          <code value="E84.0"/> 
          <display value="Cystic fibrosis with pulmonary manifestations"/> 
        </coding> 
        <text value="Cystic Fibrosis"/> 
      </code> 
      <subject> 
        <reference value="Patient/example"/> 
      </subject> 
      <onsetDateTime value="2012-11-12"/> 
    </Condition> 
  </contained> 
  <identifier> 
    <type> 
      <coding> 
        <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> 
        <code value="PLAC"/> 
        <display value="Placer Identifier"/> 
      </coding> 
      <text value="Placer"/> 
    </type> 
    <system value="http://goodhealth.org/placer-ids">
    </system> 
    <value value="20170201-0001"/> 
  </identifier> 
  <!--     example to show how a CarePlan can be referenced from a request    -->
  <basedOn> 
    <reference value="CarePlan/gpvisit"/> 
  </basedOn> 
  <status value="completed"/> 
  <intent value="order"/> 
  <!--    Physiotherapy or home excercises would be a common use case for as needed. E.g. exercises
   for cystic fibrosis - "Chest therapy 1-4 times per day as needed to clear mucus"    -->
  <code> 
    <coding> 
      <system value="http://snomed.info/sct"/> 
      <code value="34431008"/> 
      <display value="Physiotherapy of chest (regime/therapy)"/> 
    </coding> 
  </code> 
  <subject> 
    <reference value="Patient/example"/> 
  </subject> 
  <occurrenceTiming> 
    <repeat> 
      <duration value="15"/> 
      <durationMax value="25"/> 
      <durationUnit value="min"/> 
      <frequency value="1"/> 
      <frequencyMax value="4"/> 
      <period value="1"/> 
      <periodUnit value="d"/> 
    </repeat> 
  </occurrenceTiming> 
  <asNeededCodeableConcept> 
    <text value="as needed to clear mucus"/> 
  </asNeededCodeableConcept> 
  <!--    TimeStamp when order authorized   -->
  <authoredOn value="2017-02-01T17:23:07Z"/> 
  <requester> 
      <reference value="Practitioner/example"/> 
      <display value="Dr Adam Careful"/> 
  </requester> 
  <!--    demonstrating in this example the reason reference element using a contained resource
   for the purpose of this example only typically would reference an external resource   -->
  <reason> 
     <reference> 
      <reference value="#cystic-fibrosis"/> 
    </reference> 
  </reason> 
  <!--    demonstrating in this example the relevant history element using a contained resource
   for the purpose of this example only typically would reference an external resource   -->
  <relevantHistory> 
    <reference value="#signature"/> 
    <display value="Author's Signature"/> 
  </relevantHistory> 
</ServiceRequest> 

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.