@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://nhicore.nhi.gov.tw/empd/Medication/med-04-ep> a fhir:Medication ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "med-04-ep"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://nhicore.nhi.gov.tw/empd/StructureDefinition/Medication-EMPD" ;
       fhir:index 0 ;
       fhir:link <https://nhicore.nhi.gov.tw/empd/StructureDefinition/Medication-EMPD>
     ]
  ] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Medication med-04-ep</b></p><a name=\"med-04-ep\"> </a><a name=\"hcmed-04-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-Medication-EMPD.html\">電子處方箋-藥物處方內容(Medication)</a></p></div><p><b>code</b>: <span title=\"Codes:{https://nhicore.nhi.gov.tw/empd/CodeSystem/NHIMedication-cs BC071521G0}\">Metformin hydrochloride</span></p><p><b>form</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm TAB}\">錠劑</span></p><h3>Ingredients</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Item[x]</b></td><td><b>Strength</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{http://snomed.info/sct 109083009}\">Metformin hydrochloride</span></td><td>500 mg<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  codemg = 'mg')</span>/1 Tablet<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code{tbl} = '{tbl}')</span></td></tr></table></div>"
  ] ;
  fhir:Medication.code [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "https://nhicore.nhi.gov.tw/empd/CodeSystem/NHIMedication-cs" ] ;
       fhir:Coding.code [ fhir:value "BC071521G0" ]
     ] ;
     fhir:CodeableConcept.text [ fhir:value "Metformin hydrochloride" ]
  ] ;
  fhir:Medication.form [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm" ] ;
       fhir:Coding.code [ fhir:value "TAB" ]
     ] ;
     fhir:CodeableConcept.text [ fhir:value "錠劑" ]
  ] ;
  fhir:Medication.ingredient [
     fhir:index 0 ;
     fhir:Medication.ingredient.itemCodeableConcept [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         a sct:109083009 ;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
         fhir:Coding.code [ fhir:value "109083009" ] ;
         fhir:Coding.display [ fhir:value "Metformin hydrochloride (substance)" ]
       ] ;
       fhir:CodeableConcept.text [ fhir:value "Metformin hydrochloride" ]
     ] ;
     fhir:Medication.ingredient.strength [
       fhir:Ratio.numerator [
         fhir:Quantity.value [ fhir:value "500"^^xsd:decimal ] ;
         fhir:Quantity.unit [ fhir:value "mg" ] ;
         fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
         fhir:Quantity.code [ fhir:value "mg" ]
       ] ;
       fhir:Ratio.denominator [
         fhir:Quantity.value [ fhir:value "1"^^xsd:decimal ] ;
         fhir:Quantity.unit [ fhir:value "Tablet" ] ;
         fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
         fhir:Quantity.code [ fhir:value "{tbl}" ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://nhicore.nhi.gov.tw/empd/Medication/med-04-ep.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

