@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 sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://www.nricm.edu.tw/twcm/MedicationRequest/MedicationRequestTWCM-pro> a fhir:MedicationRequest ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "MedicationRequestTWCM-pro"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://www.nricm.edu.tw/twcm/StructureDefinition/medicationrequest-twcm" ;
       fhir:index 0 ;
       fhir:link <https://www.nricm.edu.tw/twcm/StructureDefinition/medicationrequest-twcm>
     ]
  ] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h3><b>藥品請求的詳細資料</b></h3><p><b>藥品請求的狀態</b>：Completed <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\">( <a href=\"http://terminology.hl7.org/CodeSystem/medicationrequest-status-reason\">MedicationRequest Status Reason Codes</a>#completed)</span></p><p><b>藥品請求的意圖</b>：Order <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\">( <a href=\"http://hl7.org/fhir/CodeSystem/medicationrequest-intent\">medicationRequest Intent</a>#order)</span></p><p><b>病人</b>：<a href=\"Patient-PatientTWCM-min.html\">Patient/PatientTWCM-min</a> \"陳美真\"</p><p><b>藥品</b>：<a href=\"Medication-MedicationTWCM-pro.html\">Medication/MedicationTWCM-pro</a></p><p><b>就醫事件</b>：<a href=\"Encounter-EncounterTWCM-min.html\">Encounter/EncounterTWCM-min</a></p><p><b>藥品調劑方式</b>：先煎</p><p><b>藥品使用頻率</b>：QID <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\">( <a href=\"http://terminology.hl7.org/CodeSystem/v3-GTSAbbreviation\">HL7 TimingAbbreviation </a>#QID)</span></p><p><b>用藥開始時間</b>：2010-04-01<br/><b>用藥結束時間</b>：2010-04-03</p><p><b>服藥天數</b>：3d</p><p><b>藥品服用方法</b>：Oral route <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\">( <a href=\"http://snomed.info/sct\">SNOMED CT + 臺灣健保署給藥途徑值集</a>#26643006)</span></p><p><b>用量</b>：1</p><p><b>用量單位</b>：g</p><p><b>藥品總用量</b>：12g</p><p><b>包數</b>：12</p></div>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index 0 ;
     fhir:Extension.url [ fhir:value "https://www.nricm.edu.tw/twcm/StructureDefinition/packagenumber-twcm" ] ;
     fhir:Extension.valueInteger [ fhir:value "12"^^xsd:integer ]
  ] ;
  fhir:MedicationRequest.status [ fhir:value "completed"] ;
  fhir:MedicationRequest.intent [ fhir:value "order"] ;
  fhir:MedicationRequest.medicationReference [
     fhir:link <https://www.nricm.edu.tw/twcm/Medication/MedicationTWCM-pro> ;
     fhir:Reference.reference [ fhir:value "Medication/MedicationTWCM-pro" ]
  ] ;
  fhir:MedicationRequest.subject [
     fhir:link <https://www.nricm.edu.tw/twcm/Patient/PatientTWCM-min> ;
     fhir:Reference.reference [ fhir:value "Patient/PatientTWCM-min" ]
  ] ;
  fhir:MedicationRequest.encounter [
     fhir:link <https://www.nricm.edu.tw/twcm/Encounter/EncounterTWCM-min> ;
     fhir:Reference.reference [ fhir:value "Encounter/EncounterTWCM-min" ]
  ] ;
  fhir:MedicationRequest.note [
     fhir:index 0 ;
     fhir:Annotation.text [ fhir:value "先煎" ]
  ] ;
  fhir:MedicationRequest.dosageInstruction [
     fhir:index 0 ;
     fhir:Dosage.timing [
       fhir:Timing.repeat [
         fhir:Timing.repeat.boundsPeriod [
           fhir:Period.start [ fhir:value "2010-04-01"^^xsd:date ] ;
           fhir:Period.end [ fhir:value "2010-04-03"^^xsd:date ]
         ] ;
         fhir:Timing.repeat.duration [ fhir:value "3"^^xsd:decimal ] ;
         fhir:Timing.repeat.durationUnit [ fhir:value "d" ]
       ] ;
       fhir:Timing.code [
         fhir:CodeableConcept.coding [
           fhir:index 0 ;
           fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-GTSAbbreviation" ] ;
           fhir:Coding.code [ fhir:value "QID" ] ;
           fhir:Coding.display [ fhir:value "QID" ]
         ] ;
         fhir:CodeableConcept.text [ fhir:value "一天四次,三餐飯後與睡前" ]
       ]
     ] ;
     fhir:Dosage.route [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         a sct:26643006 ;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
         fhir:Coding.code [ fhir:value "26643006" ] ;
         fhir:Coding.display [ fhir:value "Oral route" ]
       ]
     ] ;
     fhir:Dosage.doseAndRate [
       fhir:index 0 ;
       fhir:Dosage.doseAndRate.doseQuantity [
         fhir:Quantity.value [ fhir:value "1"^^xsd:decimal ] ;
         fhir:Quantity.unit [ fhir:value "g" ]
       ]
     ]
  ] ;
  fhir:MedicationRequest.dispenseRequest [
     fhir:MedicationRequest.dispenseRequest.quantity [
       fhir:Quantity.value [ fhir:value "12"^^xsd:decimal ] ;
       fhir:Quantity.unit [ fhir:value "g" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://www.nricm.edu.tw/twcm/MedicationRequest/MedicationRequestTWCM-pro.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

