@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <http://loinc.org/rdf#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org/fhir/us/pacio-adi/Composition/MHAD-Example-Smith-Johnson-Composition> a fhir:Composition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "MHAD-Example-Smith-Johnson-Composition"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-PACPComposition" ;
       fhir:index -1 ;
       fhir:link <http://hl7.org/fhir/us/pacio-adi/StructureDefinition/ADI-PACPComposition>
     ]
  ] ;
  fhir:Resource.language [ fhir:value "en"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "extensions" ]
  ] ;
  fhir:DomainResource.extension [
     fhir:index -1 ;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/composition-clinicaldocument-versionNumber" ] ;
     fhir:Extension.valueString [ fhir:value "2024-12-22T05:00:00+00:00" ]
  ] ;
  fhir:Composition.identifier [
     fhir:Identifier.system [ fhir:value "https://example.org/standards/terminology/namingSystem/setId" ] ;
     fhir:Identifier.value [ fhir:value "2.16.840.1.113883.15.15.200.1:11220-d580858d0d83427381cd9d2237580048" ]
  ] ;
  fhir:Composition.status [ fhir:value "final"] ;
  fhir:Composition.type [
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       a loinc:104144-1 ;
       fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
       fhir:Coding.code [ fhir:value "104144-1" ] ;
       fhir:Coding.display [ fhir:value "Mental health Advance directives" ]
     ]
  ] ;
  fhir:Composition.category [
     fhir:index -1 ;
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       a loinc:107903-7 ;
       fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
       fhir:Coding.code [ fhir:value "107903-7" ] ;
       fhir:Coding.display [ fhir:value "Clinical note" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       a loinc:42348-3 ;
       fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
       fhir:Coding.code [ fhir:value "42348-3" ] ;
       fhir:Coding.display [ fhir:value "Advance healthcare directives" ]
     ]
  ] ;
  fhir:Composition.subject [
     fhir:link <http://hl7.org/fhir/us/pacio-adi/Patient/Example-Smith-Johnson-Patient1> ;
     fhir:Reference.reference [ fhir:value "Patient/Example-Smith-Johnson-Patient1" ]
  ] ;
  fhir:Composition.date [ fhir:value "2024-12-22T05:00:00+00:00"^^xsd:dateTime] ;
  fhir:Composition.author [
     fhir:index -1 ;
     fhir:link <http://hl7.org/fhir/us/pacio-adi/Patient/Example-Smith-Johnson-Patient1> ;
     fhir:Reference.reference [ fhir:value "Patient/Example-Smith-Johnson-Patient1" ] ;
     fhir:Reference.display [ fhir:value "Betsy Smith-Johnson" ]
  ] ;
  fhir:Composition.title [ fhir:value "Mental Health Directive (Maryland)"] ;
  fhir:Composition.attester [
     fhir:index -1 ;
     fhir:Composition.attester.mode [ fhir:value "personal" ]
  ] ;
  fhir:Composition.custodian [
     fhir:link <http://hl7.org/fhir/us/pacio-adi/Organization/Example-Smith-Johnson-OrganizationCustodian1> ;
     fhir:Reference.reference [ fhir:value "Organization/Example-Smith-Johnson-OrganizationCustodian1" ]
  ] ;
  fhir:Composition.section [
     fhir:index -1 ;
     fhir:Composition.section.title [ fhir:value "MHAD Source Form for Betsy Smith-Johnson" ] ;
     fhir:Composition.section.code [
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/pacio-adi/CodeSystem/adi-temp-cs" ] ;
         fhir:Coding.code [ fhir:value "advance_directive_source_form" ]
       ]
     ] ;
     fhir:Composition.section.text [
       fhir:Narrative.status [ fhir:value "additional" ]
     ] ;
     fhir:Composition.section.entry [
       fhir:index -1 ;
       fhir:link <http://hl7.org/fhir/us/pacio-adi/Binary/MHAD-Example-Smith-Johnson-Binary> ;
       fhir:Reference.reference [ fhir:value "Binary/MHAD-Example-Smith-Johnson-Binary" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:Composition.section.title [ fhir:value "Appointment of a Primary Healthcare Agent and Alternate Healthcare Agents" ] ;
     fhir:Composition.section.code [
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         a loinc:81335-2 ;
         fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
         fhir:Coding.code [ fhir:value "81335-2" ] ;
         fhir:Coding.display [ fhir:value "Healthcare Agent" ]
       ]
     ] ;
     fhir:Composition.section.text [
       fhir:Narrative.status [ fhir:value "additional" ]
     ] ;
     fhir:Composition.section.entry [
       fhir:index -1 ;
       fhir:link <http://hl7.org/fhir/us/pacio-adi/RelatedPerson/Example-Smith-Johnson-Notary2> ;
       fhir:Reference.reference [ fhir:value "RelatedPerson/Example-Smith-Johnson-Notary2" ]
     ], [
       fhir:index -1 ;
       fhir:link <http://hl7.org/fhir/us/pacio-adi/RelatedPerson/Example-Smith-Johnson-HealthcareAgent3> ;
       fhir:Reference.reference [ fhir:value "RelatedPerson/Example-Smith-Johnson-HealthcareAgent3" ]
     ], [
       fhir:index -1 ;
       fhir:link <http://hl7.org/fhir/us/pacio-adi/Consent/Example-Smith-Johnson-HealthcareAgentConsent2> ;
       fhir:Reference.reference [ fhir:value "Consent/Example-Smith-Johnson-HealthcareAgentConsent2" ]
     ]
  ] .

<http://hl7.org/fhir/us/pacio-adi/Patient/Example-Smith-Johnson-Patient1> a fhir:us .

<http://hl7.org/fhir/us/pacio-adi/Organization/Example-Smith-Johnson-OrganizationCustodian1> a fhir:us .

<http://hl7.org/fhir/us/pacio-adi/Binary/MHAD-Example-Smith-Johnson-Binary> a fhir:us .

<http://hl7.org/fhir/us/pacio-adi/RelatedPerson/Example-Smith-Johnson-Notary2> a fhir:us .

<http://hl7.org/fhir/us/pacio-adi/RelatedPerson/Example-Smith-Johnson-HealthcareAgent3> a fhir:us .

<http://hl7.org/fhir/us/pacio-adi/Consent/Example-Smith-Johnson-HealthcareAgentConsent2> a fhir:us .

# - ontology header ------------------------------------------------------------

<http://hl7.org/fhir/us/pacio-adi/Composition/MHAD-Example-Smith-Johnson-Composition.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl ;
  owl:versionIRI <http://build.fhir.org/us/pacio-adi/Composition/MHAD-Example-Smith-Johnson-Composition.ttl> .

# -------------------------------------------------------------------------------------

