@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.au/fhir/core/Composition/aups-minimal> a fhir:Composition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "aups-minimal"] ;
  fhir:Resource.meta [
     fhir:Meta.versionId [ fhir:value "1" ] ;
     fhir:Meta.profile [
       fhir:value "http://hl7.org.au/fhir/core/StructureDefinition/au-core-composition" ;
       fhir:index 0 ;
       fhir:link <http://hl7.org.au/fhir/core/StructureDefinition/au-core-composition>
     ]
  ] ;
  fhir:Resource.language [ fhir:value "en-AU"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en-AU\" lang=\"en-AU\"><p class=\"res-header-id\"><b>Generated Narrative: Composition aups-minimal</b></p><a name=\"aups-minimal\"> </a><a name=\"hcaups-minimal\"> </a><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\">version: 1; Language: en-AU</p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-au-core-composition.html\">AU Core Composition</a></p></div><p><b>identifier</b>: <a href=\"http://terminology.hl7.org/6.2.0/NamingSystem-uri.html\" title=\"As defined by RFC 3986 (http://www.ietf.org/rfc/rfc3986.txt)(with many schemes defined in many RFCs). For OIDs and UUIDs, use the URN form (urn:oid:(note: lowercase) and urn:uuid:). See http://www.ietf.org/rfc/rfc3001.txt and http://www.ietf.org/rfc/rfc4122.txt #xD;#xA;#xD;#xA;This oid is used as an identifier II.root to indicate the the extension is an absolute URI (technically, an IRI). Typically, this is used for OIDs and GUIDs. Note that when this OID is used with OIDs and GUIDs, the II.extension should start with urn:oid or urn:uuid: #xD;#xA;#xD;#xA;Note that this OID is created to aid with interconversion between CDA and FHIR - FHIR uses urn:ietf:rfc:3986 as equivalent to this OID. URIs as identifiers appear more commonly in FHIR.#xD;#xA;#xD;#xA;This OID may also be used in CD.codeSystem.\">Uniform Resource Identifier (URI)</a>/urn:uuid:8f0c263a-b43a-4c65-957a-7121fc57dd64</p><p><b>status</b>: Final</p><p><b>type</b>: <span title=\"Codes:{http://loinc.org 60591-5}\">Patient summary Document</span></p><p><b>date</b>: 2025-02-03</p><p><b>author</b>: <a href=\"PractitionerRole-bobrester-bob-gp.html\">PractitionerRole General practitioner</a></p><p><b>title</b>: Australian Patient Summary</p><h3>Attesters</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Mode</b></td><td><b>Time</b></td><td><b>Party</b></td></tr><tr><td style=\"display: none\">*</td><td>Professional</td><td>2025-02-03</td><td><a href=\"PractitionerRole-bobrester-bob-gp.html\">PractitionerRole General practitioner</a></td></tr></table><p><b>custodian</b>: <a href=\"Organization-bobrester-medical-center.html\">Organization Bobrester Medical Center</a></p></div>"
  ] ;
  fhir:Composition.identifier [
     fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ] ;
     fhir:Identifier.value [ fhir:value "urn:uuid:8f0c263a-b43a-4c65-957a-7121fc57dd64" ]
  ] ;
  fhir:Composition.status [ fhir:value "final"] ;
  fhir:Composition.type [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       a loinc:60591-5 ;
       fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
       fhir:Coding.code [ fhir:value "60591-5" ] ;
       fhir:Coding.display [ fhir:value "Patient summary Document" ]
     ]
  ] ;
  fhir:Composition.subject [
     fhir:link <http://hl7.org.au/fhir/core/Patient/banks-mia-leanne> ;
     fhir:Reference.reference [ fhir:value "Patient/banks-mia-leanne" ]
  ] ;
  fhir:Composition.date [ fhir:value "2025-02-03"^^xsd:date] ;
  fhir:Composition.author [
     fhir:index 0 ;
     fhir:link <http://hl7.org.au/fhir/core/PractitionerRole/bobrester-bob-gp> ;
     fhir:Reference.reference [ fhir:value "PractitionerRole/bobrester-bob-gp" ]
  ] ;
  fhir:Composition.title [ fhir:value "Australian Patient Summary"] ;
  fhir:Composition.attester [
     fhir:index 0 ;
     fhir:Composition.attester.mode [ fhir:value "professional" ] ;
     fhir:Composition.attester.time [ fhir:value "2025-02-03"^^xsd:date ] ;
     fhir:Composition.attester.party [
       fhir:link <http://hl7.org.au/fhir/core/PractitionerRole/bobrester-bob-gp> ;
       fhir:Reference.reference [ fhir:value "PractitionerRole/bobrester-bob-gp" ]
     ]
  ] ;
  fhir:Composition.custodian [
     fhir:link <http://hl7.org.au/fhir/core/Organization/bobrester-medical-center> ;
     fhir:Reference.reference [ fhir:value "Organization/bobrester-medical-center" ]
  ] ;
  fhir:Composition.section [
     fhir:index 0 ;
     fhir:Composition.section.title [ fhir:value "Active Allergies or Intolerances" ] ;
     fhir:Composition.section.code [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         a loinc:48765-2 ;
         fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
         fhir:Coding.code [ fhir:value "48765-2" ] ;
         fhir:Coding.display [ fhir:value "Allergies and adverse reactions Document" ]
       ]
     ] ;
     fhir:Composition.section.entry [
       fhir:index 0 ;
       fhir:link <http://hl7.org.au/fhir/core/AllergyIntolerance/lactose> ;
       fhir:Reference.reference [ fhir:value "AllergyIntolerance/lactose" ]
     ]
  ], [
     fhir:index 1 ;
     fhir:Composition.section.title [ fhir:value "Problem List" ] ;
     fhir:Composition.section.code [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         a loinc:11450-4 ;
         fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
         fhir:Coding.code [ fhir:value "11450-4" ] ;
         fhir:Coding.display [ fhir:value "Problem list - Reported" ]
       ]
     ] ;
     fhir:Composition.section.text [
       fhir:Narrative.status [ fhir:value "generated" ] ;
       fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en-AU\" lang=\"en-AU\">There is no information available about the consumer's health problems or disabilities.</div>"
     ] ;
     fhir:Composition.section.emptyReason [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/list-empty-reason" ] ;
         fhir:Coding.code [ fhir:value "unavailable" ] ;
         fhir:Coding.display [ fhir:value "Unavailable" ]
       ] ;
       fhir:CodeableConcept.text [ fhir:value "No information available" ]
     ]
  ], [
     fhir:index 2 ;
     fhir:Composition.section.title [ fhir:value "Current Medicines" ] ;
     fhir:Composition.section.code [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         a loinc:10160-0 ;
         fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
         fhir:Coding.code [ fhir:value "10160-0" ] ;
         fhir:Coding.display [ fhir:value "History of Medication use Narrative" ]
       ]
     ] ;
     fhir:Composition.section.entry [
       fhir:index 0 ;
       fhir:link <http://hl7.org.au/fhir/core/MedicationStatement/active-bisoprolol> ;
       fhir:Reference.reference [ fhir:value "MedicationStatement/active-bisoprolol" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://hl7.org.au/fhir/core/Composition/aups-minimal.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

