Da Vinci - Documentation Templates and Rules
1.0.0 - STU 1

This page is part of the Documentation Templates and Rules (v1.0.0: STU 1) based on FHIR R4. This is the current published version. For a full list of available versions, see the Directory of published versions

: DTR Task Example - R4 - TTL Representation

Raw ttl | Download


@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <http://loinc.org/rdf#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

 a fhir:Task;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "blood-gass-panel-task-r4"];
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-task-r4";
       fhir:index 0;
       fhir:link <http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-task-r4>     ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>This is an example Task that was created to request a Blood Gas Panel.</p></div>"
  ];
  fhir:DomainResource.contained [
     a fhir:Patient;
     fhir:index 0;
     fhir:Resource.id [ fhir:value "example1" ];
     fhir:Patient.gender [ fhir:value "male" ];
     fhir:Patient.birthDate [ fhir:value "1996-12-23"^^xsd:date ];
     fhir:Patient.address [
       fhir:index 0;
       fhir:Address.use [ fhir:value "home" ];
       fhir:Address.type [ fhir:value "both" ];
       fhir:Address.state [ fhir:value "MA" ]     ]
  ], [
     a fhir:Practitioner;
     fhir:index 1;
     fhir:Resource.id [ fhir:value "example2" ];
     fhir:Practitioner.identifier [
       fhir:index 0;
       fhir:Identifier.system [ fhir:value "http://hl7.org/fhir/sid/us-npi" ];
       fhir:Identifier.value [ fhir:value "1122334455" ]     ];
     fhir:Practitioner.name [
       fhir:index 0;
       fhir:HumanName.family [ fhir:value "Doe" ];
       fhir:HumanName.given [
         fhir:value "Jane";
         fhir:index 0       ];
       fhir:HumanName.prefix [
         fhir:value "Dr.";
         fhir:index 0       ]     ]
  ], [
     a fhir:ServiceRequest;
     fhir:index 2;
     fhir:Resource.id [ fhir:value "example4" ];
     fhir:ServiceRequest.status [ fhir:value "active" ];
     fhir:ServiceRequest.intent [ fhir:value "original-order" ];
     fhir:ServiceRequest.code [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         a loinc:24338-6;
         fhir:Coding.system [ fhir:value "http://loinc.org" ];
         fhir:Coding.code [ fhir:value "24338-6" ]       ];
       fhir:CodeableConcept.text [ fhir:value "Gas panel - Blood" ]     ];
     fhir:ServiceRequest.subject [
       fhir:Reference.reference [ fhir:value "#example1" ]     ];
     fhir:ServiceRequest.occurrenceDateTime [ fhir:value "2019-05-08T09:33:27+07:00"^^xsd:dateTime ];
     fhir:ServiceRequest.requester [
       fhir:Reference.reference [ fhir:value "#example2" ];
       fhir:Reference.display [ fhir:value "Dr. Jane Doe" ]     ];
     fhir:ServiceRequest.reasonCode [
       fhir:index 0;
       fhir:CodeableConcept.text [ fhir:value "Check for O2 blood saturation levels" ]     ]
  ];
  fhir:Task.basedOn [
     fhir:index 0;
     fhir:Reference.display [ fhir:value "home-o2-questionnaire" ]
  ];
  fhir:Task.status [ fhir:value "requested"];
  fhir:Task.intent [ fhir:value "order"];
  fhir:Task.priority [ fhir:value "routine"];
  fhir:Task.description [ fhir:value "Create order for getting O2 blood saturation levels"];
  fhir:Task.focus [
     fhir:Reference.reference [ fhir:value "#example4" ];
     fhir:Reference.display [ fhir:value "Blood gas panel request" ]
  ];
  fhir:Task.for [
     fhir:Reference.reference [ fhir:value "#example1" ]
  ];
  fhir:Task.executionPeriod [
     fhir:Period.start [ fhir:value "2019-07-13T08:25:05+10:00"^^xsd:dateTime ]
  ];
  fhir:Task.authoredOn [ fhir:value "2019-07-18T08:25:05+10:00"^^xsd:dateTime];
  fhir:Task.lastModified [ fhir:value "2019-07-18T09:45:05+10:00"^^xsd:dateTime];
  fhir:Task.requester [
     fhir:Reference.reference [ fhir:value "#example2" ];
     fhir:Reference.display [ fhir:value "Dr Jane Doe" ]
  ];
  fhir:Task.performerType [
     fhir:index 0;
     fhir:CodeableConcept.coding [
       fhir:index 0;
       a sct:18850004;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
       fhir:Coding.code [ fhir:value "18850004" ]     ];
     fhir:CodeableConcept.text [ fhir:value "Performer" ]
  ];
  fhir:Task.restriction [
     fhir:Task.restriction.repetitions [ fhir:value "1"^^xsd:positiveInteger ];
     fhir:Task.restriction.period [
       fhir:Period.end [ fhir:value "2016-11-02T09:45:05+10:00"^^xsd:dateTime ]     ]
  ].

# - ontology header ------------------------------------------------------------

 a owl:Ontology;
  owl:imports fhir:fhir.ttl.