@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 xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://hl7-ie.github.io/medication-events/fhir/MedicationDispense/hiqa-md-s3-balance> a fhir:MedicationDispense ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "hiqa-md-s3-balance"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-medicationdispense-edispensation" ;
       fhir:index 0 ;
       fhir:link <https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-medicationdispense-edispensation>
     ]
  ] ;
  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: MedicationDispense hiqa-md-s3-balance</b></p><a name=\"hiqa-md-s3-balance\"> </a><a name=\"hchiqa-md-s3-balance\"> </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-medicationdispense-edispensation.html\">IE MPD MedicationDispense (eDispensation)</a></p></div><p><b>R5: When the recording of the dispense started (new)</b>: 2026-09-03 10:30:00+0100</p><p><b>identifier</b>: <a href=\"http://terminology.hl7.org/6.3.0/NamingSystem-uri.html\" title=\"As defined by RFC 3986 (http://www.ietf.org/rfc/rfc3986.txt)(with many schemes defined in many RFCs). For OIDs and UUIDs, use the URN form (urn:oid:(note: lowercase) and urn:uuid:). See http://www.ietf.org/rfc/rfc3001.txt and http://www.ietf.org/rfc/rfc4122.txt #xD;#xA;#xD;#xA;This oid is used as an identifier II.root to indicate the the extension is an absolute URI (technically, an IRI). Typically, this is used for OIDs and GUIDs. Note that when this OID is used with OIDs and GUIDs, the II.extension should start with urn:oid or urn:uuid: #xD;#xA;#xD;#xA;Note that this OID is created to aid with interconversion between CDA and FHIR - FHIR uses urn:ietf:rfc:3986 as equivalent to this OID. URIs as identifiers appear more commonly in FHIR.#xD;#xA;#xD;#xA;This OID may also be used in CD.codeSystem.\">Uniform Resource Identifier (URI)</a>/urn:uuid:b5ed5f15-a819-5839-943f-9ad861c2e7ae</p><p><b>status</b>: Completed</p><p><b>medication</b>: <a href=\"Medication-hiqa-med-salbutamol-inhaler.html\">Medication Salbutamol 100 microgram/actuation pressurised suspension for inhalation</a></p><p><b>subject</b>: <a href=\"Patient-hiqa-patient-niamh-keane.html\">Niamh Keane (official) Female, DoB: 1990-11-08 ( National unique individual identifier: IEMpdNamingSystemIHI#999000000000000003)</a></p><h3>Performers</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Actor</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"Practitioner-hiqa-prac-pharmacist-farrell.html\">Practitioner Eoin Farrell (official)</a></td></tr></table><p><b>authorizingPrescription</b>: <a href=\"MedicationRequest-hiqa-rx-s3-salbutamol-repeat.html\">MedicationRequest: extension = 2026-09-01 --&gt; 2027-02-28; identifier = https://hl7-ie.github.io/ie-core/fhir/ie/core/sid/neps#IEMpdNamingSystemNePSPrescription#9-RX-2026-000003-1; status = active; intent = order; medication[x] = -&gt;Medication Salbutamol 100 microgram/actuation pressurised suspension for inhalation; authoredOn = 2026-09-01 11:05:00+0100; reasonCode = Asthma; groupIdentifier = https://hl7-ie.github.io/ie-core/fhir/ie/core/sid/neps#IEMpdNamingSystemNePSPrescription#9-RX-2026-000003; courseOfTherapyType = Continuous long term therapy</a></p><p><b>type</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ActCode FFC}\">First Fill - Complete</span></p><p><b>quantity</b>: 1 inhaler<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code{inhaler} = '{inhaler}')</span></p><p><b>whenHandedOver</b>: 2026-09-03 10:25:00+0100</p><h3>DosageInstructions</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Text</b></td></tr><tr><td style=\"display: none\">*</td><td>Inhale two puffs when required for breathlessness. Maximum 8 puffs in 24 hours</td></tr></table></div>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index 0 ;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationDispense.recorded" ] ;
     fhir:Extension.valueDateTime [ fhir:value "2026-09-03T10:30:00+01:00"^^xsd:dateTime ]
  ] ;
  fhir:MedicationDispense.identifier [
     fhir:index 0 ;
     fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ] ;
     fhir:Identifier.value [ fhir:value "urn:uuid:b5ed5f15-a819-5839-943f-9ad861c2e7ae" ]
  ] ;
  fhir:MedicationDispense.status [ fhir:value "completed"] ;
  fhir:MedicationDispense.medicationReference [
     fhir:link <https://hl7-ie.github.io/medication-events/fhir/Medication/hiqa-med-salbutamol-inhaler> ;
     fhir:Reference.reference [ fhir:value "Medication/hiqa-med-salbutamol-inhaler" ]
  ] ;
  fhir:MedicationDispense.subject [
     fhir:link <https://hl7-ie.github.io/medication-events/fhir/Patient/hiqa-patient-niamh-keane> ;
     fhir:Reference.reference [ fhir:value "Patient/hiqa-patient-niamh-keane" ]
  ] ;
  fhir:MedicationDispense.performer [
     fhir:index 0 ;
     fhir:MedicationDispense.performer.actor [
       fhir:link <https://hl7-ie.github.io/medication-events/fhir/Practitioner/hiqa-prac-pharmacist-farrell> ;
       fhir:Reference.reference [ fhir:value "Practitioner/hiqa-prac-pharmacist-farrell" ]
     ]
  ] ;
  fhir:MedicationDispense.authorizingPrescription [
     fhir:index 0 ;
     fhir:link <https://hl7-ie.github.io/medication-events/fhir/MedicationRequest/hiqa-rx-s3-salbutamol-repeat> ;
     fhir:Reference.reference [ fhir:value "MedicationRequest/hiqa-rx-s3-salbutamol-repeat" ]
  ] ;
  fhir:MedicationDispense.type [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ActCode" ] ;
       fhir:Coding.code [ fhir:value "FFC" ] ;
       fhir:Coding.display [ fhir:value "First Fill - Complete" ]
     ]
  ] ;
  fhir:MedicationDispense.quantity [
     fhir:Quantity.value [ fhir:value "1"^^xsd:decimal ] ;
     fhir:Quantity.unit [ fhir:value "inhaler" ] ;
     fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
     fhir:Quantity.code [ fhir:value "{inhaler}" ]
  ] ;
  fhir:MedicationDispense.whenHandedOver [ fhir:value "2026-09-03T10:25:00+01:00"^^xsd:dateTime] ;
  fhir:MedicationDispense.dosageInstruction [
     fhir:index 0 ;
     fhir:Dosage.text [ fhir:value "Inhale two puffs when required for breathlessness. Maximum 8 puffs in 24 hours" ]
  ] .

# - ontology header ------------------------------------------------------------

<https://hl7-ie.github.io/medication-events/fhir/MedicationDispense/hiqa-md-s3-balance.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

