@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-example4> a fhir:Task ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "fm-example4"] ; #     This is an example to demonstrate using task for actioning a reprocessing of several lines on a preauthorization 
  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-006" ]
  ] ) ; # 
  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 "reprocess" ]
     ] )
  ] ; #   real time request and response required  ,     fictive code and description elements populated for this example     
  fhir:focus ( [] ) ; # 
  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" ]
     ]
  ] ; # 
  fhir:input ( [
     fhir:type [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/financialtaskinputtype"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/financialtaskinputtype>
         ] ;
         fhir:code [ fhir:v "origresponse" ]
       ] ) #   identifier of the insurer's response to the preauthorization  
     ] ;
     fhir:value [
       a fhir:Reference ;
       fhir:identifier [
         fhir:system [
           fhir:v "http://nationalinsurers.com/claimresponse"^^xsd:anyURI ;
           fhir:l <http://nationalinsurers.com/claimresponse>
         ] ;
         fhir:value [ fhir:v "CR201810040001234" ]
       ]
     ]
  ] [
     fhir:type [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/financialtaskinputtype"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/financialtaskinputtype>
         ] ;
         fhir:code [ fhir:v "reference" ]
       ] ) #   authorization reference  
     ] ;
     fhir:value [
       a fhir:String ;
       fhir:v "BR12345"
     ]
  ] [
     fhir:type [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/financialtaskinputtype"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/financialtaskinputtype>
         ] ;
         fhir:code [ fhir:v "item" ]
       ] ) #   line item sequence number to reprocess  
     ] ;
     fhir:value [
       a fhir:PositiveInt ;
       fhir:v "2"^^xsd:positiveInteger
     ]
  ] [
     fhir:type [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/financialtaskinputtype"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/financialtaskinputtype>
         ] ;
         fhir:code [ fhir:v "item" ]
       ] ) #   line item sequence number to reprocess  
     ] ;
     fhir:value [
       a fhir:PositiveInt ;
       fhir:v "3"^^xsd:positiveInteger
     ]
  ] ) . # 

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

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

