@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://hl7-ie.github.io/medication-events/fhir/MedicationRequest/hiqa-rx-s4-oxycodone> a fhir:MedicationRequest ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "hiqa-rx-s4-oxycodone"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-medicationrequest-eprescription" ;
       fhir:index 0 ;
       fhir:link <https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-medicationrequest-eprescription>
     ]
  ] ;
  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 hiqa-rx-s4-oxycodone</b></p><a name=\"hiqa-rx-s4-oxycodone\"> </a><a name=\"hchiqa-rx-s4-oxycodone\"> </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-ie-mpd-medicationrequest-eprescription.html\">IE MPD MedicationRequest (ePrescription)</a></p></div><p><b>IE MPD Quantity Prescribed (Words and Figures)</b>: Twenty-eight (28) tablets</p><p><b>identifier</b>: <a href=\"NamingSystem-ie-mpd-ns-neps.html\" title=\"PLACEHOLDER URI, pending a URI published by the issuing authority (Requires Clarification, IE Core OI-003). HIQA EP 3.1: the NePS electronic prescription (group) identifier used throughout the prescription and dispensation life cycle.\">IEMpdNamingSystemNePSPrescription</a>/9-RX-2026-000004-1</p><p><b>status</b>: Active</p><p><b>intent</b>: Order</p><p><b>medication</b>: <a href=\"Medication-hiqa-med-oxycodone-10-pr.html\">Medication Oxycodone hydrochloride 10 mg prolonged-release oral tablet</a></p><p><b>subject</b>: <a href=\"Patient-hiqa-patient-declan-walsh.html\">Declan Walsh (official) Male, DoB: 1961-11-30 ( National unique individual identifier: IEMpdNamingSystemIHI#999000000000000004)</a></p><p><b>supportingInformation</b>: <a href=\"List-hiqa-allergies-declan-nilknown.html\">List for 'Allergies and adverse reactions Document' for '-&gt;Declan Walsh (official) Male, DoB: 1961-11-30 ( National unique individual identifier: IEMpdNamingSystemIHI#999000000000000004)'</a></p><p><b>authoredOn</b>: 2026-09-15 15:10:00+0100</p><p><b>requester</b>: <a href=\"PractitionerRole-hiqa-role-gp-nolan.html\">PractitionerRole: telecom = ph: +353 90 000 0001(Work),clodagh.nolan@riverside-practice.example.org(Work)</a></p><p><b>reasonCode</b>: <span title=\"Codes:{http://snomed.info/sct 82423001}\">Chronic pain</span></p><p><b>groupIdentifier</b>: <a href=\"NamingSystem-ie-mpd-ns-neps.html\" title=\"PLACEHOLDER URI, pending a URI published by the issuing authority (Requires Clarification, IE Core OI-003). HIQA EP 3.1: the NePS electronic prescription (group) identifier used throughout the prescription and dispensation life cycle.\">IEMpdNamingSystemNePSPrescription</a>/9-RX-2026-000004</p><p><b>courseOfTherapyType</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy continuous}\">Continuous long term therapy</span></p><blockquote><p><b>dosageInstruction</b></p><p><b>text</b>: Take one tablet every 12 hours. Swallow whole; do not crush or chew</p><p><b>timing</b>: Once per 12 hours</p><p><b>route</b>: <span title=\"Codes:{http://snomed.info/sct 26643006}\">Oral route</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 tablet<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code{tablet} = '{tablet}')</span></td></tr></table></blockquote><blockquote><p><b>dispenseRequest</b></p><p><b>MedicationRequest - Prescribed Quantity</b>: 28 tablets<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code{tablet} = '{tablet}')</span></p><p><b>IE MPD Number of Instalments</b>: 2</p><h3>DispenseIntervals</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Value</b></td><td><b>Unit</b></td><td><b>System</b></td><td><b>Code</b></td></tr><tr><td style=\"display: none\">*</td><td>7</td><td>days</td><td><a href=\"http://hl7.org/fhir/uv/xver-r5.r4/0.1.0/CodeSystem-v3-ucum.html\">http://unitsofmeasure.org</a></td><td>d</td></tr></table><p><b>validityPeriod</b>: 2026-09-15 --&gt; 2026-09-29</p><p><b>numberOfRepeatsAllowed</b>: 0</p><p><b>quantity</b>: 14 tablets<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code{tablet} = '{tablet}')</span></p></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>false</td><td><span title=\"Codes:\">Prolonged-release opioid: keep the same brand to avoid differences in release profile</span></td></tr></table></div>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index 0 ;
     fhir:Extension.url [ fhir:value "https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-quantity-in-words-and-figures" ] ;
     fhir:Extension.valueString [ fhir:value "Twenty-eight (28) tablets" ]
  ] ;
  fhir:MedicationRequest.identifier [
     fhir:index 0 ;
     fhir:Identifier.system [ fhir:value "https://hl7-ie.github.io/ie-core/fhir/ie/core/sid/neps" ] ;
     fhir:Identifier.value [ fhir:value "9-RX-2026-000004-1" ]
  ] ;
  fhir:MedicationRequest.status [ fhir:value "active"] ;
  fhir:MedicationRequest.intent [ fhir:value "order"] ;
  fhir:MedicationRequest.medicationReference [
     fhir:link <https://hl7-ie.github.io/medication-events/fhir/Medication/hiqa-med-oxycodone-10-pr> ;
     fhir:Reference.reference [ fhir:value "Medication/hiqa-med-oxycodone-10-pr" ]
  ] ;
  fhir:MedicationRequest.subject [
     fhir:link <https://hl7-ie.github.io/medication-events/fhir/Patient/hiqa-patient-declan-walsh> ;
     fhir:Reference.reference [ fhir:value "Patient/hiqa-patient-declan-walsh" ]
  ] ;
  fhir:MedicationRequest.supportingInformation [
     fhir:index 0 ;
     fhir:link <https://hl7-ie.github.io/medication-events/fhir/List/hiqa-allergies-declan-nilknown> ;
     fhir:Reference.reference [ fhir:value "List/hiqa-allergies-declan-nilknown" ]
  ] ;
  fhir:MedicationRequest.authoredOn [ fhir:value "2026-09-15T15:10:00+01:00"^^xsd:dateTime] ;
  fhir:MedicationRequest.requester [
     fhir:link <https://hl7-ie.github.io/medication-events/fhir/PractitionerRole/hiqa-role-gp-nolan> ;
     fhir:Reference.reference [ fhir:value "PractitionerRole/hiqa-role-gp-nolan" ]
  ] ;
  fhir:MedicationRequest.reasonCode [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       a sct:82423001 ;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
       fhir:Coding.code [ fhir:value "82423001" ] ;
       fhir:Coding.display [ fhir:value "Chronic pain" ]
     ]
  ] ;
  fhir:MedicationRequest.groupIdentifier [
     fhir:Identifier.system [ fhir:value "https://hl7-ie.github.io/ie-core/fhir/ie/core/sid/neps" ] ;
     fhir:Identifier.value [ fhir:value "9-RX-2026-000004" ]
  ] ;
  fhir:MedicationRequest.courseOfTherapyType [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy" ] ;
       fhir:Coding.code [ fhir:value "continuous" ] ;
       fhir:Coding.display [ fhir:value "Continuous long term therapy" ]
     ]
  ] ;
  fhir:MedicationRequest.dosageInstruction [
     fhir:index 0 ;
     fhir:Dosage.text [ fhir:value "Take one tablet every 12 hours. Swallow whole; do not crush or chew" ] ;
     fhir:Dosage.timing [
       fhir:Timing.repeat [
         fhir:Timing.repeat.frequency [ fhir:value "1"^^xsd:positiveInteger ] ;
         fhir:Timing.repeat.period [ fhir:value "12"^^xsd:decimal ] ;
         fhir:Timing.repeat.periodUnit [ fhir:value "h" ]
       ]
     ] ;
     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 "tablet" ] ;
         fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
         fhir:Quantity.code [ fhir:value "{tablet}" ]
       ]
     ]
  ] ;
  fhir:MedicationRequest.dispenseRequest [
     fhir:Element.extension [
       fhir:index 0 ;
       fhir:Extension.url [ fhir:value "https://profiles.ihe.net/PHARM/MPD/StructureDefinition/ihe-ext-medicationrequest-prescribedQuantity" ] ;
       fhir:Extension.valueQuantity [
         fhir:Quantity.value [ fhir:value "28"^^xsd:decimal ] ;
         fhir:Quantity.unit [ fhir:value "tablets" ] ;
         fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
         fhir:Quantity.code [ fhir:value "{tablet}" ]
       ]
     ], [
       fhir:index 1 ;
       fhir:Extension.url [ fhir:value "https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-number-of-instalments" ] ;
       fhir:Extension.valuePositiveInt [ fhir:value "2"^^xsd:positiveInteger ]
     ] ;
     fhir:MedicationRequest.dispenseRequest.dispenseInterval [
       fhir:Quantity.value [ fhir:value "7"^^xsd:decimal ] ;
       fhir:Quantity.unit [ fhir:value "days" ] ;
       fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
       fhir:Quantity.code [ fhir:value "d" ]
     ] ;
     fhir:MedicationRequest.dispenseRequest.validityPeriod [
       fhir:Period.start [ fhir:value "2026-09-15"^^xsd:date ] ;
       fhir:Period.end [ fhir:value "2026-09-29"^^xsd:date ]
     ] ;
     fhir:MedicationRequest.dispenseRequest.numberOfRepeatsAllowed [ fhir:value "0"^^xsd:nonNegativeInteger ] ;
     fhir:MedicationRequest.dispenseRequest.quantity [
       fhir:Quantity.value [ fhir:value "14"^^xsd:decimal ] ;
       fhir:Quantity.unit [ fhir:value "tablets" ] ;
       fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
       fhir:Quantity.code [ fhir:value "{tablet}" ]
     ]
  ] ;
  fhir:MedicationRequest.substitution [
     fhir:MedicationRequest.substitution.allowedBoolean [ fhir:value "false"^^xsd:boolean ] ;
     fhir:MedicationRequest.substitution.reason [
       fhir:CodeableConcept.text [ fhir:value "Prolonged-release opioid: keep the same brand to avoid differences in release profile" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://hl7-ie.github.io/medication-events/fhir/MedicationRequest/hiqa-rx-s4-oxycodone.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

