@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/us/davinci-cdex/Task/cdex-task-inline-example11> a fhir:Task ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:basedOn ( [
     fhir:link <http://example.org/fhir/CommunicationRequest/cdex-example-authorization> ;
     fhir:reference [ fhir:v "http://example.org/fhir/CommunicationRequest/cdex-example-authorization" ]
  ] ) ; # 
  fhir:status [ fhir:v "requested"] ; # 
  fhir:intent [ fhir:v "order"] ; # 
  fhir:code [
     fhir:coding ( [
       fhir:system [ fhir:v "http://hl7.org/fhir/us/davinci-cdex/CodeSystem/cdex-temp"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "data-request-query" ]
     ] )
  ] ; # 
  fhir:for [
     fhir:identifier [
       fhir:type [
         fhir:coding ( [
           fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v2-0203"^^xsd:anyURI ] ;
           fhir:code [ fhir:v "MB" ] ;
           fhir:display [ fhir:v "Member Number" ]
         ] ) ;
         fhir:text [ fhir:v "Member Number" ]
       ] ;
       fhir:system [ fhir:v "http://example.org/cdex/payer/member-ids"^^xsd:anyURI ] ;
       fhir:value [ fhir:v "Member123" ]
     ]
  ] ; # 
  fhir:authoredOn [ fhir:v "2020-10-26T02:58:55.179Z"^^xsd:dateTime] ; # 
  fhir:lastModified [ fhir:v "2020-10-26T02:58:55.179Z"^^xsd:dateTime] ; # 
  fhir:requester [
     fhir:identifier [
       fhir:system [ fhir:v "http://example.org/cdex/payer/payer-ids"^^xsd:anyURI ] ;
       fhir:value [ fhir:v "Payer123" ]
     ]
  ] ; # 
  fhir:owner [
     fhir:identifier [
       fhir:system [ fhir:v "http://hl7.org/fhir/sid/us-npi"^^xsd:anyURI ] ;
       fhir:value [ fhir:v "9941339108" ]
     ]
  ] ; # 
  fhir:reasonReference [
     fhir:identifier [
       fhir:type [
         fhir:coding ( [
           fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v2-0203"^^xsd:anyURI ] ;
           fhir:code [ fhir:v "FILL" ] ;
           fhir:display [ fhir:v "Filler Identifier" ]
         ] ) ;
         fhir:text [ fhir:v "Payer Claim ID" ]
       ] ;
       fhir:system [ fhir:v "http://example.org/cdex/payer/claim-ids"^^xsd:anyURI ] ;
       fhir:value [ fhir:v "Claim123" ]
     ]
  ] ; # 
  fhir:input ( [
     fhir:type [
       fhir:coding ( [
         fhir:system [ fhir:v "http://hl7.org/fhir/us/davinci-hrex/CodeSystem/hrex-temp"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "data-query" ]
       ] )
     ] ;
     fhir:value [
       a fhir:string ;
       fhir:v "Condition?patient=cdex-example-patient&clinical-status=active,recurrance,remission"
     ]
  ] [
     fhir:type [
       fhir:coding ( [
         fhir:system [ fhir:v "http://hl7.org/fhir/us/davinci-cdex/CodeSystem/cdex-temp"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "purpose-of-use" ]
       ] )
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActReason"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "TREAT" ]
       ] )
     ]
  ] ) . # 

# -------------------------------------------------------------------------------------

