@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-s6-atorvastatin> a fhir:MedicationRequest ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "hiqa-rx-s6-atorvastatin"] ;
  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 "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: MedicationRequest hiqa-rx-s6-atorvastatin</b></p><a name=\"hiqa-rx-s6-atorvastatin\"> </a><a name=\"hchiqa-rx-s6-atorvastatin\"> </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>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-000006-2</p><p><b>status</b>: Active</p><p><b>intent</b>: Order</p><p><b>medication</b>: <a href=\"Medication-ie-mpd-medication-atorvastatin-20.html\">Medication Atorvastatin 20 mg 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-16 10:00: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>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-000006</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 once a day at night</p><p><b>timing</b>: Once per 1 day</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><h3>DispenseRequests</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ValidityPeriod</b></td><td><b>Quantity</b></td></tr><tr><td style=\"display: none\">*</td><td>2026-09-16 --&gt; 2027-03-15</td><td>28 tablets<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code{tablet} = '{tablet}')</span></td></tr></table><h3>Substitutions</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Allowed[x]</b></td></tr><tr><td style=\"display: none\">*</td><td>true</td></tr></table></div>"
  ] ;
  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-000006-2" ]
  ] ;
  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/ie-mpd-medication-atorvastatin-20> ;
     fhir:Reference.reference [ fhir:value "Medication/ie-mpd-medication-atorvastatin-20" ]
  ] ;
  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-16T10:00: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.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-000006" ]
  ] ;
  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 once a day at night" ] ;
     fhir:Dosage.timing [
       fhir:Timing.repeat [
         fhir:Timing.repeat.frequency [ fhir:value "1"^^xsd:positiveInteger ] ;
         fhir:Timing.repeat.period [ fhir:value "1"^^xsd:decimal ] ;
         fhir:Timing.repeat.periodUnit [ fhir:value "d" ]
       ]
     ] ;
     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:MedicationRequest.dispenseRequest.validityPeriod [
       fhir:Period.start [ fhir:value "2026-09-16"^^xsd:date ] ;
       fhir:Period.end [ fhir:value "2027-03-15"^^xsd:date ]
     ] ;
     fhir:MedicationRequest.dispenseRequest.quantity [
       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:MedicationRequest.substitution [
     fhir:MedicationRequest.substitution.allowedBoolean [ fhir:value "true"^^xsd:boolean ]
  ] .

# - ontology header ------------------------------------------------------------

<https://hl7-ie.github.io/medication-events/fhir/MedicationRequest/hiqa-rx-s6-atorvastatin.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

