@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/fm-example1> a fhir:Task ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "fm-example1"] ; #     This is an example to demonstrate using task for actioning a claim reversal  
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n      <p>\n        <b> Generated Narrative with Details</b>\n      </p>\n    </div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:identifier ( [
     fhir:use [ fhir:v "official" ] ;
     fhir:system [
       fhir:v "http:/happyvalley.com/task"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/http:/happyvalley.com/task>
     ] ;
     fhir:value [ fhir:v "20181012-001" ]
  ] ) ; # 
  fhir:status [ fhir:v "requested"] ; # 
  fhir:intent [ fhir:v "order"] ; # 
  fhir:priority [ fhir:v "stat"] ; # 
  fhir:code [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/financialtaskcode"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/financialtaskcode>
       ] ;
       fhir:code [ fhir:v "cancel" ]
     ] )
  ] ; #   real time request and response required  ,     fictive code and description elements populated for this example     
  fhir:focus ( [
     fhir:value [
       a fhir:Canonical ;
       fhir:v "http://happyvalley.com/claim/1500"^^xsd:anyURI ;
       fhir:l <http://happyvalley.com/claim/1500>
     ]
  ] ) ; # 
  fhir:authoredOn [ fhir:v "2018-10-04T08:25:05+10:00"^^xsd:dateTime] ; # 
  fhir:lastModified [ fhir:v "2018-10-04T08:25:05+10:00"^^xsd:dateTime] ; # 
  fhir:requester [
     fhir:l <http://hl7.org/fhir/Organization/example> ;
     fhir:reference [ fhir:v "Organization/example" ] ;
     fhir:display [ fhir:v "Happy Valley Clinic" ]
  ] ; # 
  fhir:owner [
     fhir:identifier [
       fhir:system [
         fhir:v "http://nationalinsurers.com/identifiers"^^xsd:anyURI ;
         fhir:l <http://nationalinsurers.com/identifiers>
       ] ;
       fhir:value [ fhir:v "12345" ]
     ]
  ] . # 

<http://hl7.org/fhir/Organization/example> a fhir:Organization .

# -------------------------------------------------------------------------------------

