@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <https://loinc.org/rdf/> .
@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-example19> a fhir:Task ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:contained ( [
     a fhir:Patient ;
     fhir:id [ fhir:v "patient" ] ;
     fhir:identifier ( [
       fhir:use [ fhir:v "usual" ] ;
       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:name ( [
       fhir:family [ fhir:v "Shaw" ] ;
       fhir:given ( [ fhir:v "Amy" ] )
     ] ) ;
     fhir:birthDate [ fhir:v "1987-02-20"^^xsd:date ]
  ] [
     a fhir:PractitionerRole ;
     fhir:id [ fhir:v "practitionerrole" ] ;
     fhir:practitioner [
       fhir:identifier [
         fhir:system [ fhir:v "http://hl7.org/fhir/sid/us-npi"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "9941339100" ]
       ]
     ] ;
     fhir:organization [
       fhir:identifier [
         fhir:system [ fhir:v "http://hl7.org/fhir/sid/us-npi"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "1234567893" ]
       ]
     ]
  ] ) ; # 
  fhir:identifier ( [
     fhir:type [
       fhir:coding ( [
         fhir:system [ fhir:v "http://hl7.org/fhir/us/davinci-cdex/CodeSystem/cdex-temp"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "tracking-id" ] ;
         fhir:display [ fhir:v "Tracking Id" ]
       ] ) ;
       fhir:text [ fhir:v "Re-Association Tracking Control Number" ]
     ] ;
     fhir:system [ fhir:v "http://example.org/payer"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "trackingid123" ]
  ] ) ; # 
  fhir:status [ fhir:v "requested"] ; # 
  fhir:intent [ fhir:v "order"] ; # 
  fhir:code [
     fhir:coding ( [
       fhir:system [ fhir:v "http://hl7.org/fhir/us/davinci-pas/CodeSystem/PASTempCodes"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "attachment-request-code" ]
     ] ) ;
     fhir:text [ fhir:v "Coded Attachment Request" ]
  ] ; # 
  fhir:for [
     fhir:reference [ fhir:v "#patient" ]
  ] ; # 
  fhir:authoredOn [ fhir:v "2022-06-17T16:16:06Z"^^xsd:dateTime] ; # 
  fhir:lastModified [ fhir:v "2022-06-17T16:16:06Z"^^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:reference [ fhir:v "#practitionerrole" ]
  ] ; # 
  fhir:reasonCode [
     fhir:coding ( [
       fhir:system [ fhir:v "http://hl7.org/fhir/claim-use"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "claim" ] ;
       fhir:display [ fhir:v "Claim" ]
     ] ) ;
     fhir:text [ fhir:v "claim" ]
  ] ; # 
  fhir:reasonReference [
     fhir:identifier [
       fhir:system [ fhir:v "http://example.org/cdex/payer/claim-ids"^^xsd:anyURI ] ;
       fhir:value [ fhir:v "Claim123" ]
     ]
  ] ; # 
  fhir:restriction [
     fhir:period [
       fhir:end [ fhir:v "2022-06-21"^^xsd:date ]
     ]
  ] ; # 
  fhir:input ( [
     fhir:extension ( [
       fhir:url [ fhir:v "http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-paLineNumber"^^xsd:anyURI ] ;
       fhir:value [
         a fhir:integer ;
         fhir:v "1"^^xsd:integer
       ]
     ] ) ;
     fhir:type [
       fhir:coding ( [
         fhir:system [ fhir:v "http://hl7.org/fhir/us/davinci-pas/CodeSystem/PASTempCodes"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "attachments-needed" ]
       ] )
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         a loinc:11506-3 ;
         fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "11506-3" ] ;
         fhir:display [ fhir:v "Progress note" ]
       ] ) ;
       fhir:text [ fhir:v "Progress note" ]
     ]
  ] [
     fhir:type [
       fhir:coding ( [
         fhir:system [ fhir:v "http://hl7.org/fhir/us/davinci-cdex/CodeSystem/cdex-temp"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "signature-flag" ]
       ] )
     ] ;
     fhir:value [
       a fhir:boolean ;
       fhir:v "true"^^xsd:boolean
     ]
  ] [
     fhir:type [
       fhir:coding ( [
         fhir:system [ fhir:v "http://hl7.org/fhir/us/davinci-pas/CodeSystem/PASTempCodes"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "payer-url" ]
       ] )
     ] ;
     fhir:value [
       a fhir:url ;
       fhir:v "http://example.org/cdex/payer/$submit-attachment"^^xsd:anyURI
     ]
  ] [
     fhir:type [
       fhir:coding ( [
         fhir:system [ fhir:v "http://hl7.org/fhir/us/davinci-cdex/CodeSystem/cdex-temp"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "service-date" ]
       ] )
     ] ;
     fhir:value [
       a fhir:date ;
       fhir:v "2022-06-13"^^xsd:date
     ]
  ] [
     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 "CLMATTCH" ] ;
         fhir:display [ fhir:v "claim attachment" ]
       ] )
     ]
  ] ) . # 

# -------------------------------------------------------------------------------------

