@prefix fhir: <http://hl7.org/fhir/> .
@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 -------------------------------------------------------------------

<https://nhicore.nhi.gov.tw/empd/MedicationRequest/med-req-08-ep> a fhir:MedicationRequest ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "med-req-08-ep"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://nhicore.nhi.gov.tw/empd/StructureDefinition/MedicationRequest-EMPD" ;
       fhir:index 0 ;
       fhir:link <https://nhicore.nhi.gov.tw/empd/StructureDefinition/MedicationRequest-EMPD>
     ]
  ] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "extensions" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: MedicationRequest med-req-08-ep</b></p><a name=\"med-req-08-ep\"> </a><a name=\"hcmed-req-08-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-MedicationRequest-EMPD.html\">電子處方箋-處方內容(MedicationRequest)</a></p></div><p><b>Extension-給藥總日份</b>: 1</p><p><b>identifier</b>: <code>https://nhicore.nhi.gov.tw/empd/identifier/prescription</code>/Med000005, 1</p><p><b>status</b>: Active</p><p><b>intent</b>: Order</p><p><b>category</b>: <span title=\"Codes:{https://nhicore.nhi.gov.tw/empd/CodeSystem/TypeOfPrescription-cs A}\">一般處方箋：處方用藥，一次給予7日(含)以下之用藥量</span>, <span title=\"Codes:{https://nhicore.nhi.gov.tw/empd/CodeSystem/OrderType-cs 3}\">特殊材料</span>, <span title=\"Codes:{https://nhicore.nhi.gov.tw/empd/CodeSystem/SelfpayStatus-cs 00}\">自費</span></p><p><b>medication</b>: <span title=\"Codes:{https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMaterial-cs CBZ001650001}\">“賽禾醫療”冠狀動脈血管內碎石術導管</span></p><p><b>subject</b>: <a href=\"Patient-pat-ep.html\">甄○康(official) Female, DoB: 1985-01-02 ( Medical record number (use: official, ))</a></p><p><b>insurance</b>: <a href=\"Coverage-cov-01-ep.html\">Coverage: extension = 普通疾病; status = active; type = 健保</a></p><h3>DispenseRequests</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ValidityPeriod</b></td><td><b>NumberOfRepeatsAllowed</b></td><td><b>Quantity</b></td></tr><tr><td style=\"display: none\">*</td><td>2026-08-24 --&gt; 2026-08-26</td><td>0</td><td>1 each</td></tr></table></div>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index 0 ;
     fhir:Extension.url [ fhir:value "https://nhicore.nhi.gov.tw/empd/StructureDefinition/Extension-TotalDuration" ] ;
     fhir:Extension.valuePositiveInt [ fhir:value "1"^^xsd:positiveInteger ]
  ] ;
  fhir:MedicationRequest.identifier [
     fhir:index 0 ;
     fhir:Identifier.system [ fhir:value "https://nhicore.nhi.gov.tw/empd/identifier/prescription" ] ;
     fhir:Identifier.value [ fhir:value "Med000005" ]
  ], [
     fhir:index 1 ;
     fhir:Identifier.value [ fhir:value "1" ]
  ] ;
  fhir:MedicationRequest.status [ fhir:value "active"] ;
  fhir:MedicationRequest.intent [ fhir:value "order"] ;
  fhir:MedicationRequest.category [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "https://nhicore.nhi.gov.tw/empd/CodeSystem/TypeOfPrescription-cs" ] ;
       fhir:Coding.code [ fhir:value "A" ]
     ]
  ], [
     fhir:index 1 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "https://nhicore.nhi.gov.tw/empd/CodeSystem/OrderType-cs" ] ;
       fhir:Coding.code [ fhir:value "3" ]
     ]
  ], [
     fhir:index 2 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "https://nhicore.nhi.gov.tw/empd/CodeSystem/SelfpayStatus-cs" ] ;
       fhir:Coding.code [ fhir:value "00" ] ;
       fhir:Coding.display [ fhir:value "自費" ]
     ]
  ] ;
  fhir:MedicationRequest.medicationCodeableConcept [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "https://nhicore.nhi.gov.tw/empd/CodeSystem/NonNHIMaterial-cs" ] ;
       fhir:Coding.code [ fhir:value "CBZ001650001" ] ;
       fhir:Coding.display [ fhir:value "“賽禾醫療”冠狀動脈血管內碎石術導管" ]
     ]
  ] ;
  fhir:MedicationRequest.subject [
     fhir:link <https://nhicore.nhi.gov.tw/empd/Patient/pat-ep> ;
     fhir:Reference.reference [ fhir:value "Patient/pat-ep" ]
  ] ;
  fhir:MedicationRequest.insurance [
     fhir:index 0 ;
     fhir:link <https://nhicore.nhi.gov.tw/empd/Coverage/cov-01-ep> ;
     fhir:Reference.reference [ fhir:value "Coverage/cov-01-ep" ]
  ] ;
  fhir:MedicationRequest.dispenseRequest [
     fhir:MedicationRequest.dispenseRequest.validityPeriod [
       fhir:Period.start [ fhir:value "2026-08-24"^^xsd:date ] ;
       fhir:Period.end [ fhir:value "2026-08-26"^^xsd:date ]
     ] ;
     fhir:MedicationRequest.dispenseRequest.numberOfRepeatsAllowed [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
     fhir:MedicationRequest.dispenseRequest.quantity [
       fhir:Quantity.value [ fhir:value "1"^^xsd:decimal ] ;
       fhir:Quantity.unit [ fhir:value "each" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://nhicore.nhi.gov.tw/empd/MedicationRequest/med-req-08-ep.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

