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

<Composition xmlns="http://hl7.org/fhir">
  <id value="MHAD-Example-Smith-Johnson-Composition"/>
  <meta>
    <profile value="http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-PACPComposition"/>
  </meta>
  <language value="en"/>
  <text>
    <status value="extensions"/>
  </text>
  <extension url="http://hl7.org/fhir/StructureDefinition/composition-clinicaldocument-versionNumber">
    <valueString value="2024-12-22T05:00:00+00:00"/>
  </extension>
  <identifier>
    <system value="https://example.org/standards/terminology/namingSystem/setId"/>
    <value value="2.16.840.1.113883.15.15.200.1:11220-d580858d0d83427381cd9d2237580048"/>
  </identifier>
  <status value="final"/>
  <type>
    <coding>
      <system value="http://loinc.org"/>
      <code value="104144-1"/>
      <display value="Mental health Advance directives"/>
    </coding>
  </type>
  <category>
    <coding>
      <system value="http://loinc.org"/>
      <code value="107903-7"/>
      <display value="Clinical note"/>
    </coding>
  </category>
  <category>
    <coding>
      <system value="http://loinc.org"/>
      <code value="42348-3"/>
      <display value="Advance healthcare directives"/>
    </coding>
  </category>
  <subject>
    <reference value="Patient/Example-Smith-Johnson-Patient1"/>
  </subject>
  <date value="2024-12-22T05:00:00+00:00"/>
  <author>
    <reference value="Patient/Example-Smith-Johnson-Patient1"/>
    <display value="Betsy Smith-Johnson"/>
  </author>
  <title value="Mental Health Directive (Maryland)"/>
  <attester>
    <mode value="personal"/>
  </attester>
  <custodian>
    <reference value="Organization/Example-Smith-Johnson-OrganizationCustodian1"/>
  </custodian>
  <section>
    <title value="MHAD Source Form for Betsy Smith-Johnson"/>
    <code>
      <coding>
        <system value="http://hl7.org/fhir/us/pacio-adi/CodeSystem/adi-temp-cs"/>
        <code value="advance_directive_source_form"/>
      </coding>
    </code>
    <text>
      <status value="additional"/>
    </text>
    <entry>
      <reference value="Binary/MHAD-Example-Smith-Johnson-Binary"/>
    </entry>
  </section>
  <section>
    <title value="Appointment of a Primary Healthcare Agent and Alternate Healthcare Agents"/>
    <code>
      <coding>
        <system value="http://loinc.org"/>
        <code value="81335-2"/>
        <display value="Healthcare Agent"/>
      </coding>
    </code>
    <text>
      <status value="additional"/>
    </text>
    <entry>
      <reference value="RelatedPerson/Example-Smith-Johnson-Notary2"/>
    </entry>
    <entry>
      <reference value="RelatedPerson/Example-Smith-Johnson-HealthcareAgent3"/>
    </entry>
    <entry>
      <reference value="Consent/Example-Smith-Johnson-HealthcareAgentConsent2"/>
    </entry>
  </section>
</Composition>