@prefix fhir: <http://hl7.org/fhir/> .
@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/MedicationRequest/med-req-01-ep> a fhir:MedicationRequest ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "med-req-01-ep"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://nhicore.nhi.gov.tw/empd/StructureDefinition/MedicationRequest-EMPD"^^xsd:anyURI ;
       fhir:link <https://nhicore.nhi.gov.tw/empd/StructureDefinition/MedicationRequest-EMPD>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "extensions" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: MedicationRequest med-req-01-ep</b></p><a name=\"med-req-01-ep\"> </a><a name=\"hcmed-req-01-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>: 7 days</p><p><b>identifier</b>: <code>http://www.moi.gov.tw/</code>/Med000001, 7</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 1}\">用藥明細</span>, <span title=\"Codes:{https://nhicore.nhi.gov.tw/empd/CodeSystem/SelfpayStatus-cs 01}\">非自費</span></p><p><b>medication</b>: <a href=\"Medication-med-01-ep.html\">Medication YEN KUANG EYE DROPS</a></p><p><b>subject</b>: <a href=\"Patient-pat-ep.html\">甄○康(official) Female, DoB: 1985-01-02 ( Medical record number: Z199999829 (use: official, ))</a></p><p><b>insurance</b>: <a href=\"Coverage-cov-ep.html\">Coverage: status = active; type = 職業傷害</a></p><p><b>note</b>: , </p><blockquote><div><p>A</p>\n</div></blockquote><blockquote><div><p>否</p>\n</div></blockquote><blockquote><p><b>dosageInstruction</b></p><p><b>timing</b>: 4</p><p><b>route</b>: <span title=\"Codes:{https://twcore.mohw.gov.tw/ig/twcore/CodeSystem/medication-path-tw PO}\">口服</span></p><h3>DoseAndRates</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Dose[x]</b></td></tr><tr><td style=\"display: none\">*</td><td>1 顆</td></tr></table></blockquote><blockquote><p><b>dispenseRequest</b></p><p><b>validityPeriod</b>: 2024-01-12 00:00:00+0800 --&gt; 2024-01-19 00:00:00+0800</p><p><b>numberOfRepeatsAllowed</b>: 1</p><p><b>quantity</b>: 12 顆</p><h3>ExpectedSupplyDurations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Value</b></td></tr><tr><td style=\"display: none\">*</td><td>3</td></tr></table></blockquote><h3>Substitutions</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Allowed[x]</b></td><td><b>Reason</b></td></tr><tr><td style=\"display: none\">*</td><td>true</td><td><span title=\"Codes:\">不可替代時始需註明</span></td></tr></table></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:extension ( [
     fhir:url [ fhir:v "https://nhicore.nhi.gov.tw/empd/StructureDefinition/Extension-TotalDuration"^^xsd:anyURI ] ;
     fhir:value [
       a fhir:Quantity ;
       fhir:value [ fhir:v "7"^^xsd:decimal ] ;
       fhir:unit [ fhir:v "days" ]
     ]
  ] ) ; # 
  fhir:identifier ( [
     fhir:system [ fhir:v "http://www.moi.gov.tw/"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "Med000001" ]
  ] [
     fhir:value [ fhir:v "7" ]
  ] ) ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:intent [ fhir:v "order"] ; # 
  fhir:category ( [
     fhir:coding ( [
       fhir:system [ fhir:v "https://nhicore.nhi.gov.tw/empd/CodeSystem/TypeOfPrescription-cs"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "A" ]
     ] )
  ] [
     fhir:coding ( [
       fhir:system [ fhir:v "https://nhicore.nhi.gov.tw/empd/CodeSystem/OrderType-cs"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "1" ]
     ] )
  ] [
     fhir:coding ( [
       fhir:system [ fhir:v "https://nhicore.nhi.gov.tw/empd/CodeSystem/SelfpayStatus-cs"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "01" ] ;
       fhir:display [ fhir:v "非自費" ]
     ] )
  ] ) ; # 
  fhir:medication [
     a fhir:Reference ;
     fhir:link <https://nhicore.nhi.gov.tw/empd/Medication/med-01-ep> ;
     fhir:reference [ fhir:v "Medication/med-01-ep" ]
  ] ; # 
  fhir:subject [
     fhir:link <https://nhicore.nhi.gov.tw/empd/Patient/pat-ep> ;
     fhir:reference [ fhir:v "Patient/pat-ep" ]
  ] ; # 
  fhir:insurance ( [
     fhir:link <https://nhicore.nhi.gov.tw/empd/Coverage/cov-ep> ;
     fhir:reference [ fhir:v "Coverage/cov-ep" ]
  ] ) ; # 
  fhir:note ( [
     fhir:text [ fhir:v "A" ]
  ] [
     fhir:text [ fhir:v "否" ]
  ] ) ; # 
  fhir:dosageInstruction ( [
     fhir:timing [
       fhir:repeat [
         fhir:frequency [ fhir:v "4"^^xsd:positiveInteger ]
       ]
     ] ;
     fhir:route [
       fhir:coding ( [
         fhir:system [ fhir:v "https://twcore.mohw.gov.tw/ig/twcore/CodeSystem/medication-path-tw"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "PO" ]
       ] )
     ] ;
     fhir:doseAndRate ( [
       fhir:dose [
         a fhir:Quantity ;
         fhir:value [ fhir:v "1"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "顆" ]
       ]
     ] )
  ] ) ; # 
  fhir:dispenseRequest [
     fhir:validityPeriod [
       fhir:start [ fhir:v "2024-01-12T00:00:00+08:00"^^xsd:dateTime ] ;
       fhir:end [ fhir:v "2024-01-19T00:00:00+08:00"^^xsd:dateTime ]
     ] ;
     fhir:numberOfRepeatsAllowed [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
     fhir:quantity [
       fhir:value [ fhir:v "12"^^xsd:decimal ] ;
       fhir:unit [ fhir:v "顆" ] ;
       fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ]
     ] ;
     fhir:expectedSupplyDuration [
       fhir:value [ fhir:v "3"^^xsd:decimal ]
     ]
  ] ; # 
  fhir:substitution [
     fhir:allowed [
       a fhir:boolean ;
       fhir:v true
     ] ;
     fhir:reason [
       fhir:text [ fhir:v "不可替代時始需註明" ]
     ]
  ] . # 

# -------------------------------------------------------------------------------------

