@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <https://loinc.org/rdf/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://nhicore.nhi.gov.tw/empd/Composition/com-ep> a fhir:Composition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "com-ep"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://nhicore.nhi.gov.tw/empd/StructureDefinition/Composition-EMPD"^^xsd:anyURI ;
       fhir:link <https://nhicore.nhi.gov.tw/empd/StructureDefinition/Composition-EMPD>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Composition com-ep</b></p><a name=\"com-ep\"> </a><a name=\"hccom-ep\"> </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\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-Composition-EMPD.html\">電子處方箋-Composition</a></p></div><p><b>status</b>: Final</p><p><b>type</b>: <span title=\"Codes:{http://loinc.org 57833-6}\">Prescription for medication</span></p><p><b>encounter</b>: <a href=\"Encounter-enc-ep.html\">Encounter: identifier = https://www.nhi.gov.tw/ch/mp-1.html#01234567890123456789; status = finished; class = 西醫一般案件 (案件分類#01); serviceType = General surgery (qualifier value); period = 2023-02-23 --&gt; (ongoing)</a></p><p><b>date</b>: 2024-02-19 14:30:00+0100</p><p><b>author</b>: </p><ul><li><a href=\"Organization-org-ep.html\">Organization 洪文武診所</a></li><li><a href=\"Practitioner-pra-ep.html\">Practitioner 洪文武(official)</a></li></ul><p><b>title</b>: 電子處方箋</p><p><b>custodian</b>: <a href=\"Organization-org-ep.html\">Organization 洪文武診所</a></p></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:status [ fhir:v "final"] ; # 
  fhir:type [
     fhir:coding ( [
       a loinc:57833-6 ;
       fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "57833-6" ] ;
       fhir:display [ fhir:v "Prescription for medication" ]
     ] )
  ] ; # 
  fhir:subject [
     fhir:link <https://nhicore.nhi.gov.tw/empd/Patient/pat-ep> ;
     fhir:reference [ fhir:v "Patient/pat-ep" ]
  ] ; # 
  fhir:encounter [
     fhir:link <https://nhicore.nhi.gov.tw/empd/Encounter/enc-ep> ;
     fhir:reference [ fhir:v "Encounter/enc-ep" ]
  ] ; # 
  fhir:date [ fhir:v "2024-02-19T14:30:00+01:00"^^xsd:dateTime] ; # 
  fhir:author ( [
     fhir:link <https://nhicore.nhi.gov.tw/empd/Organization/org-ep> ;
     fhir:reference [ fhir:v "Organization/org-ep" ]
  ] [
     fhir:link <https://nhicore.nhi.gov.tw/empd/Practitioner/pra-ep> ;
     fhir:reference [ fhir:v "Practitioner/pra-ep" ]
  ] ) ; # 
  fhir:title [ fhir:v "電子處方箋"] ; # 
  fhir:custodian [
     fhir:link <https://nhicore.nhi.gov.tw/empd/Organization/org-ep> ;
     fhir:reference [ fhir:v "Organization/org-ep" ]
  ] ; # 
  fhir:section ( [
     fhir:code [
       fhir:coding ( [
         a loinc:29762-2 ;
         fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "29762-2" ]
       ] ) ;
       fhir:text [ fhir:v "Social history Narrative" ]
     ] ;
     fhir:entry ( [
       fhir:link <https://nhicore.nhi.gov.tw/empd/Coverage/cov-ep> ;
       fhir:reference [ fhir:v "Coverage/cov-ep" ]
     ] )
  ] [
     fhir:code [
       fhir:coding ( [
         a loinc:85353-1 ;
         fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "85353-1" ]
       ] ) ;
       fhir:text [ fhir:v "Vital signs, weight, height, head circumference, oxygen saturation and BMI panel" ]
     ] ;
     fhir:entry ( [
       fhir:link <https://nhicore.nhi.gov.tw/empd/Observation/obs-ep> ;
       fhir:reference [ fhir:v "Observation/obs-ep" ]
     ] )
  ] [
     fhir:code [
       fhir:coding ( [
         a loinc:29548-5 ;
         fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "29548-5" ]
       ] ) ;
       fhir:text [ fhir:v "Diagnosis Narrative" ]
     ] ;
     fhir:entry ( [
       fhir:link <https://nhicore.nhi.gov.tw/empd/Condition/con-ep> ;
       fhir:reference [ fhir:v "Condition/con-ep" ]
     ] )
  ] [
     fhir:code [
       fhir:coding ( [
         a loinc:29551-9 ;
         fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "29551-9" ]
       ] ) ;
       fhir:text [ fhir:v "Medication prescribed Narrative Narrative" ]
     ] ;
     fhir:entry ( [
       fhir:link <https://nhicore.nhi.gov.tw/empd/Medication/med-01-ep> ;
       fhir:reference [ fhir:v "Medication/med-01-ep" ]
     ] [
       fhir:link <https://nhicore.nhi.gov.tw/empd/Medication/MedicationSelfEMPD-non01> ;
       fhir:reference [ fhir:v "Medication/MedicationSelfEMPD-non01" ]
     ] [
       fhir:link <https://nhicore.nhi.gov.tw/empd/MedicationRequest/med-req-01-ep> ;
       fhir:reference [ fhir:v "MedicationRequest/med-req-01-ep" ]
     ] )
  ] ) . # 

# -------------------------------------------------------------------------------------

