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

<ServiceRequest xmlns="http://hl7.org/fhir">
  <id value="example"/>
  <meta>
    <profile value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest"/>
  </meta>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative</b></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 "example" </p><p style="margin-bottom: 0px">Profile: <a href="StructureDefinition-qicore-servicerequest.html">QICoreServiceRequest</a></p></div><p><b>status</b>: completed</p><p><b>intent</b>: order</p><p><b>priority</b>: urgent</p><p><b>code</b>: Excision of appendix (procedure) <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="https://browser.ihtsdotools.org/">SNOMED CT</a>#80146002)</span></p><p><b>subject</b>: <a href="Patient-example.html">Patient/example</a> " CHALMERS"</p><p><b>encounter</b>: <a href="Encounter-example.html">Encounter/example</a></p><p><b>occurrence</b>: 2013-04-05</p><p><b>asNeeded</b>: true</p><p><b>authoredOn</b>: 2013-04-04</p><p><b>reasonCode</b>: On examination - abdominal pain - right iliac <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="https://browser.ihtsdotools.org/">SNOMED CT</a>#163220003)</span></p><p><b>bodySite</b>: Appendix structure <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="https://browser.ihtsdotools.org/">SNOMED CT</a>#66754008)</span></p></div>
  </text>
<!--  Extension removed in R4, not clear where this should appear
  <extension url="http://hl7.org/fhir/StructureDefinition/procedurerequest-authorizedBy">
    <valueReference>
      <reference value="Practitioner/example"/>
    </valueReference>
  </extension>
	 -->
  <status value="completed"/>
  <intent value="order"/>
  <priority value="urgent"/>
  <code>
    <coding>
      <system value="http://snomed.info/sct"/>
      <code value="80146002"/>
      <display value="Excision of appendix (procedure)"/>
    </coding>
    <text value="Excision of appendix (procedure)"/>
  </code>
  <subject>
    <reference value="Patient/example"/>
  </subject>
  <encounter>
    <reference value="Encounter/example"/>
  </encounter>
  <occurrenceDateTime value="2013-04-05"/>
  <asNeededBoolean value="true"/>
  <authoredOn value="2013-04-04"/>
  <reasonCode>
    <coding>
      <system value="http://snomed.info/sct"/>
      <code value="163220003"/>
      <display value="On examination - abdominal pain - right iliac"/>
    </coding>
  </reasonCode>
  <bodySite>
    <coding>
      <system value="http://snomed.info/sct"/>
      <code value="66754008"/>
      <display value="Appendix structure"/>
    </coding>
  </bodySite>
</ServiceRequest>