<Composition xmlns="http://hl7.org/fhir">
  <id value="Composition1Example" />
  <meta>
    <profile value="http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/composition-ca-ps" />
  </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 "Composition1Example" </p>
        <p style="margin-bottom: 0px">Profile: <a href="StructureDefinition-composition-ca-ps.html">Composition (PS-CA)</a></p>
      </div>
      <p>
        <b>identifier</b>: id: 12345678</p>
      <p>
        <b>status</b>: final</p>
      <p>
        <b>type</b>: Patient summary Document <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="https://loinc.org/">LOINC</a>#60591-5)</span></p>
      <p>
        <b>date</b>: 2021-09-11T16:30:00+01:00</p>
      <p>
        <b>author</b>: <a href="PractitionerRole-practitionerrole1-example.html">PractitionerRole/practitionerrole1-example</a></p>
      <p>
        <b>title</b>: Patient Summary as of January 5, 2022 16:30</p>
      <p>
        <b>confidentiality</b>: N</p>
      <h3>Attesters</h3>
      <table class="grid">
        <tr>
          <td>-</td>
          <td>
            <b>Mode</b>
          </td>
          <td>
            <b>Time</b>
          </td>
          <td>
            <b>Party</b>
          </td>
        </tr>
        <tr>
          <td>*</td>
          <td>legal</td>
          <td>2020-12-11T14:30:00+01:00</td>
          <td>
            <a href="PractitionerRole-practitionerrole1-example.html">PractitionerRole/practitionerrole1-example</a>
          </td>
        </tr>
      </table>
      <p>
        <b>custodian</b>: <a href="Organization-organization1-example.html">Organization/organization1-example</a> "XYZ Organization"</p>
      <h3>Events</h3>
      <table class="grid">
        <tr>
          <td>-</td>
          <td>
            <b>Code</b>
          </td>
          <td>
            <b>Period</b>
          </td>
        </tr>
        <tr>
          <td>*</td>
          <td>care provision <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="http://terminology.hl7.org/3.0.0/CodeSystem-v3-ActClass.html">ActClass</a>#PCPR)</span></td>
          <td>?? --&gt; 2020-12-11T14:30:00+01:00</td>
        </tr>
      </table>
    </div>
  </text>
  <identifier>
    <system value="http://example.org" />
    <value value="12345678" />
  </identifier>
  <status value="final" />
  <type>
    <coding>
      <system value="http://loinc.org" />
      <code value="60591-5" />
      <display value="Patient summary Document" />
    </coding>
  </type>
  <subject>
    <reference value="Patient/patient1-example" />
  </subject>
  <date value="2021-09-11T16:30:00+01:00" />
  <author>
    <reference value="PractitionerRole/practitionerrole1-example" />
  </author>
  <title value="Patient Summary as of January 5, 2022 16:30" />
  <confidentiality value="N" />
  <attester>
    <mode value="legal" />
    <time value="2020-12-11T14:30:00+01:00" />
    <party>
      <reference value="PractitionerRole/practitionerrole1-example" />
    </party>
  </attester>
  <custodian>
    <reference value="Organization/organization1-example" />
  </custodian>
  <event>
    <code>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/v3-ActClass" />
        <code value="PCPR" />
      </coding>
    </code>
    <period>
      <end value="2020-12-11T14:30:00+01:00" />
    </period>
  </event>
  <section>
    <title value="Active Problems" />
    <code>
      <coding>
        <system value="http://loinc.org" />
        <code value="11450-4" />
        <display value="Problem list Reported" />
      </coding>
    </code>
    <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 "heart-condition-example" </p>
          <p style="margin-bottom: 0px">Profile: <a href="StructureDefinition-condition-ca-ps.html">Condition (PS-CA)</a></p>
        </div>
        <p>
          <b>clinicalStatus</b>: Active <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="http://terminology.hl7.org/3.0.0/CodeSystem-condition-clinical.html">Condition Clinical Status Codes</a>#active)</span></p>
        <p>
          <b>verificationStatus</b>: Confirmed <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="http://terminology.hl7.org/3.0.0/CodeSystem-condition-ver-status.html">ConditionVerificationStatus</a>#confirmed)</span></p>
        <p>
          <b>category</b>: Problem List Item <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="http://terminology.hl7.org/3.0.0/CodeSystem-condition-category.html">Condition Category Codes</a>#problem-list-item)</span></p>
        <p>
          <b>severity</b>: Moderate <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="https://browser.ihtsdotools.org/">SNOMED CT</a>#6736007)</span></p>
        <p>
          <b>code</b>: Disorder of heart valve <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="https://browser.ihtsdotools.org/">SNOMED CT</a>#368009 "Heart valve disorder")</span></p>
        <p>
          <b>bodySite</b>: heart structure <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="https://browser.ihtsdotools.org/">SNOMED CT</a>#40768004 "Left thorax")</span></p>
        <p>
          <b>subject</b>: <a href="Patient-patient1-example.html">Patient/patient1-example: Donald Duck</a> " DONALD"</p>
        <p>
          <b>onset</b>: 2021-08-05</p>
        <p>
          <b>asserter</b>: <a href="Patient-patient1-example.html">Patient/patient1-example: Donald Duck</a> " DONALD"</p>
      </div>
    </text>
    <entry>
      <reference value="Condition/heart-condition-example" />
    </entry>
  </section>
  <section>
    <title value="Medication Summary section" />
    <code>
      <coding>
        <system value="http://loinc.org" />
        <code value="10160-0" />
        <display value="History of Medication use Narrative" />
      </coding>
    </code>
    <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 "simvastatin-request-example" </p>
          <p style="margin-bottom: 0px">Profile: <a href="StructureDefinition-medicationrequest-ca-ps.html">Medication Request (PS-CA)</a></p>
        </div>
        <p>
          <b>status</b>: active</p>
        <p>
          <b>intent</b>: order</p>
        <p>
          <b>medication</b>: Fluspiral 50 mcg <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="http://terminology.hl7.org/3.0.0/CodeSystem-atc.html">WHO ATC</a>#C10AA01 "simvastatin")</span></p>
        <p>
          <b>subject</b>: <a href="Patient-patient1-example.html">Patient/patient1-example: Donald Duck</a> " DONALD"</p>
        <p>
          <b>authoredOn</b>: 2021-10-10</p>
        <p>
          <b>requester</b>: <a href="Practitioner-practitioner1-example.html">Practitioner/practitioner1-example: Patrick Pump</a> " PUMP"</p>
        <h3>DispenseRequests</h3>
        <table class="grid">
          <tr>
            <td>-</td>
            <td>
              <b>ValidityPeriod</b>
            </td>
          </tr>
          <tr>
            <td>*</td>
            <td>2021-01-01 --&gt; (ongoing)</td>
          </tr>
        </table>
      </div>
    </text>
    <entry>
      <reference value="MedicationRequest/simvastatin-request-example" />
    </entry>
  </section>
  <section>
    <title value="Allergies and Intolerances" />
    <code>
      <coding>
        <system value="http://loinc.org" />
        <code value="48765-2" />
        <display value="Allergies and adverse reactions Document" />
      </coding>
    </code>
    <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 "cashew-allergy-example" </p>
          <p style="margin-bottom: 0px">Profile: <a href="StructureDefinition-allergyintolerance-ca-ps.html">Allergy Intolerance (PS-CA)</a></p>
        </div>
        <p>
          <b>clinicalStatus</b>: Active <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="http://terminology.hl7.org/3.0.0/CodeSystem-allergyintolerance-clinical.html">AllergyIntolerance Clinical Status Codes</a>#active)</span></p>
        <p>
          <b>verificationStatus</b>: Confirmed present <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="http://terminology.hl7.org/3.0.0/CodeSystem-allergyintolerance-verification.html">AllergyIntolerance Verification Status</a>#confirmed; <a href="https://browser.ihtsdotools.org/">SNOMED CT</a>#410605003)</span></p>
        <p>
          <b>type</b>: allergy</p>
        <p>
          <b>criticality</b>: high</p>
        <p>
          <b>code</b>: Cashew nut (substance) <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="https://browser.ihtsdotools.org/">SNOMED CT</a>#227493005)</span></p>
        <p>
          <b>patient</b>: <a href="Patient-patient1-example.html">Patient/patient1-example: Donald Duck</a> " DONALD"</p>
        <p>
          <b>onset</b>: 2004</p>
        <p>
          <b>asserter</b>: <a href="Patient-patient1-example.html">Patient/patient1-example: Donald Duck</a> " DONALD"</p>
        <h3>Reactions</h3>
        <table class="grid">
          <tr>
            <td>-</td>
            <td>
              <b>Manifestation</b>
            </td>
            <td>
              <b>Onset</b>
            </td>
            <td>
              <b>Severity</b>
            </td>
          </tr>
          <tr>
            <td>*</td>
            <td>Anaphylactic reaction <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="https://browser.ihtsdotools.org/">SNOMED CT</a>#39579001)</span></td>
            <td>2004-06-12</td>
            <td>severe</td>
          </tr>
        </table>
      </div>
    </text>
    <entry>
      <reference value="AllergyIntolerance/cashew-allergy-example" />
    </entry>
  </section>
</Composition>