Release 4

This page is part of the FHIR Specification (v4.0.1: R4 - Mixed Normative and STU) in it's permanent home (it will always be available at this URL). 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 with Details</b> </p> <p> <b> id</b> : physiotherapy</p> <p> <b> contained</b> : , </p> <p> <b> identifier</b> : Placer = 20170201-0001</p> <p> <b> basedOn</b> : <a> CarePlan/gpvisit</a> </p> <p> <b> status</b> : completed</p> <p> <b> intent</b> : order</p> <p> <b> code</b> : Physiotherapy of chest (regime/therapy)  <span> (Details : {SNOMED CT code '34431008' = 'Physiotherapy of chest', given as 'Physiotherapy
           of chest (regime/therapy) '})</span> </p> <p> <b> subject</b> : <a> Patient/example</a> </p> <p> <b> occurrence</b> : Duration 15days, Do 1-1 per 1 days</p> <p> <b> asNeeded</b> : as needed to clear mucus <span> (Details )</span> </p> <p> <b> authoredOn</b> : 01/02/2017 5:23:07 PM</p> <p> <b> requester</b> : <a> Dr Adam Careful</a> </p> <p> <b> reasonReference</b> : id: cystic-fibrosis; Active <span> (Details : {http://terminology.hl7.org/CodeSystem/condition-clinical code 'active' = 'Active)</span> ; Confirmed <span> (Details : {http://terminology.hl7.org/CodeSystem/condition-ver-status code 'confirmed'
           = 'Confirmed)</span> ; Problem List Item <span> (Details : {http://terminology.hl7.org/CodeSystem/condition-category code 'problem-list-item'
           = 'Problem List Item', given as 'Problem List Item'})</span> ; Mild <span> (Details : {SNOMED CT code '255604002' = 'Mild', given as 'Mild'})</span> ; Cystic Fibrosis <span> (Details : {http://hl7.org/fhir/sid/icd-10-cm code 'E84.0' = 'E84.0', given as 'Cystic
           fibrosis with pulmonary manifestations'})</span> ; onset: 12/11/2012</p> <p> <b> relevantHistory</b> : Author's Signature. Generated Summary: id: signature; recorded: 01/02/2017 5:23:07 PM;
         </p> </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   -->
  <reasonReference> 
    <reference value="#cystic-fibrosis"/> 
  </reasonReference> 
  <!--    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.