| Australian Digital Health Agency FHIR Implementation Guide 1.1.0

This page is part of the Australian Digital Health Agency FHIR Implementation Guide 1.1.0. It is based on FHIR® version 4.0.1. See the Directory of published versions for a list of available previous versions.

## Example: MedicationRequest-claim-pbs-01

Formats: Narrative, XML, JSON, Turtle

Raw ttl

    @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 -------------------------------------------------------------------

     a fhir:MedicationRequest;
      fhir:nodeRole fhir:treeRoot;
      fhir:Resource.id [ fhir:value "claim-pbs-01"];
      fhir:Resource.meta [
         fhir:Meta.profile [
           fhir:value "http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-medicationrequest-pbs-claim-1";
           fhir:index 0;
           fhir:link <http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-medicationrequest-pbs-claim-1>     ]
      ];
      fhir:DomainResource.text [
         fhir:Narrative.status [ fhir:value "generated" ];
         fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: MedicationRequest</b><a name=\"claim-pbs-01\"> </a></p><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\">Resource MedicationRequest \"claim-pbs-01\" </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-dh-medicationrequest-pbs-claim-1.html\">ADHA PBS Claim Item</a></p></div><p><b>identifier</b>: id: urn:uuid:296dcbd7-d763-4ecf-aa78-523bcc11ecda</p><p><b>status</b>: unknown</p><p><b>intent</b>: order</p><p><b>medication</b>: <a href=\"Medication-cephalexin-01.html\">Medication/cephalexin-01</a></p><p><b>subject</b>: <a href=\"Patient-mhr-field-sally.html\">Patient/mhr-field-sally</a> \" FIELD\"</p><p><b>authoredOn</b>: 2020-01-15</p><h3>DispenseRequests</h3><table class=\"grid\"><tr><td>-</td><td><b>NumberOfRepeatsAllowed</b></td><td><b>Quantity</b></td></tr><tr><td>*</td><td>1</td><td>20 capsule</td></tr></table></div>"
      ];
      fhir:MedicationRequest.identifier [
         fhir:index 0;
         fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ];
         fhir:Identifier.value [ fhir:value "urn:uuid:296dcbd7-d763-4ecf-aa78-523bcc11ecda" ]
      ];
      fhir:MedicationRequest.status [ fhir:value "unknown"];
      fhir:MedicationRequest.intent [ fhir:value "order"];
      fhir:MedicationRequest.medicationReference [
         fhir:Reference.reference [ fhir:value "Medication/cephalexin-01" ]
      ];
      fhir:MedicationRequest.subject [
         fhir:Reference.reference [ fhir:value "Patient/mhr-field-sally" ];
         fhir:Reference.identifier [
           fhir:Identifier.type [
             fhir:CodeableConcept.coding [
               fhir:index 0;
               fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0203" ];
               fhir:Coding.code [ fhir:value "NI" ];
               fhir:Coding.display [ fhir:value "National unique individual identifier" ]         ];
             fhir:CodeableConcept.text [ fhir:value "IHI" ]       ];
           fhir:Identifier.system [ fhir:value "http://ns.electronichealth.net.au/id/hi/ihi/1.0" ];
           fhir:Identifier.value [ fhir:value "8003608833357361" ]     ]
      ];
      fhir:MedicationRequest.authoredOn [ fhir:value "2020-01-15"^^xsd:date];
      fhir:MedicationRequest.dispenseRequest [
         fhir:MedicationRequest.dispenseRequest.numberOfRepeatsAllowed [ fhir:value "1"^^xsd:nonNegativeInteger ];
         fhir:MedicationRequest.dispenseRequest.quantity [
           fhir:Quantity.value [ fhir:value "20"^^xsd:decimal ];
           fhir:Quantity.unit [ fhir:value "capsule" ]     ]
      ].

    # - ontology header ------------------------------------------------------------

     a owl:Ontology;
      owl:imports fhir:fhir.ttl.