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 - Task asking for an order to be fulfilled - 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/Task/FulfillPlainMilkOrder> a fhir:Task ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "FulfillPlainMilkOrder"] ; # 
  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: Task FulfillPlainMilkOrder</b></p><a name=\"FulfillPlainMilkOrder\"> </a><a name=\"hcFulfillPlainMilkOrder\"> </a><p><b>identifier</b>: <code>http://example.org/spenser-orders</code>/demo-1</p><p><b>status</b>: Requested</p><p><b>intent</b>: order</p><p><b>code</b>: <span title=\"Codes:{http://hl7.org/fhir/CodeSystem/task-code fulfill}\">Fulfill the focal request</span></p><p><b>focus</b>: <a href=\"MedicationRequest-PlainMilkOrder.html\">MedicationRequest: status = active; intent = instance-order</a></p><p><b>for</b>: <a href=\"Patient/123\">Patient/123</a></p></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:identifier ( [
     fhir:system [ fhir:v "http://example.org/spenser-orders"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "demo-1" ]
  ] ) ; # 
  fhir:status [ fhir:v "requested"] ; # 
  fhir:intent [ fhir:v "order"] ; # 
  fhir:code [
     fhir:coding ( [
       fhir:system [ fhir:v "http://hl7.org/fhir/CodeSystem/task-code"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "fulfill" ] ;
       fhir:display [ fhir:v "Fulfill the focal request" ]
     ] )
  ] ; # 
  fhir:focus [
     fhir:link <http://hl7.org/fhir/MedicationRequest/PlainMilkOrder> ;
     fhir:reference [ fhir:v "MedicationRequest/PlainMilkOrder" ]
  ] ; # 
  fhir:for [
     fhir:link <http://hl7.org/fhir/Patient/123> ;
     fhir:reference [ fhir:v "Patient/123" ]
  ] . # 

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

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