Spenser - a developer's companion
1.0.0 - STU1 International flag

Spenser - a developer's companion, published by Zeora. This guide is not an authorized publication; it is the continuous build for version 1.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/costateixeira/spenser/tree/master and changes regularly. See the Directory of published versions
Built from commit 1fbb0f74.

: Example - Dispense that did not happen - TTL Representation

Raw ttl | Download


@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org/fhir/MedicationDispense/DeclinedDispenseOutOfStock> a fhir:MedicationDispense ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "DeclinedDispenseOutOfStock"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: MedicationDispense DeclinedDispenseOutOfStock</b></p><a name=\"DeclinedDispenseOutOfStock\"> </a><a name=\"hcDeclinedDispenseOutOfStock\"> </a><p><b>status</b>: Declined</p><h3>NotPerformedReasons</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Concept</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{http://hl7.org/fhir/CodeSystem/medicationdispense-status-reason outofstock}\">Drug not available - out of stock</span></td></tr></table><h3>Medications</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Concept</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{http://costateixeira.github.io/spenser/CodeSystem/SpenserMeds chocolate-dark}\">Dark Chocolate</span></td></tr></table><p><b>subject</b>: <a href=\"Patient/123\">Patient/123</a></p><p><b>authorizingPrescription</b>: <a href=\"MedicationRequest-ActionableDarkOrder.html\">MedicationRequest: status = active; intent = instance-order</a></p></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:status [ fhir:v "declined"] ; # 
  fhir:notPerformedReason [
     fhir:concept [
       fhir:coding ( [
         fhir:system [ fhir:v "http://hl7.org/fhir/CodeSystem/medicationdispense-status-reason"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "outofstock" ] ;
         fhir:display [ fhir:v "Drug not available - out of stock" ]
       ] )
     ]
  ] ; # 
  fhir:medication [
     fhir:concept [
       fhir:coding ( [
         fhir:system [ fhir:v "http://costateixeira.github.io/spenser/CodeSystem/SpenserMeds"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "chocolate-dark" ] ;
         fhir:display [ fhir:v "Dark Chocolate" ]
       ] )
     ]
  ] ; # 
  fhir:subject [
     fhir:link <http://hl7.org/fhir/Patient/123> ;
     fhir:reference [ fhir:v "Patient/123" ]
  ] ; # 
  fhir:authorizingPrescription ( [
     fhir:link <http://hl7.org/fhir/MedicationRequest/ActionableDarkOrder> ;
     fhir:reference [ fhir:v "MedicationRequest/ActionableDarkOrder" ]
  ] ) . # 

<http://hl7.org/fhir/Patient/123> a fhir:Patient .

<http://hl7.org/fhir/MedicationRequest/ActionableDarkOrder> a fhir:MedicationRequest .