Da Vinci Health Record Exchange (HRex)
0.2.0 - STU R1 - 2nd ballot

This page is part of the Da Vinci Health Record Exchange (v0.2.0: STU1 Ballot 1) based on FHIR R4. The current version which supercedes this version is 1.0.0. For a full list of available versions, see the Directory of published versions

: HRex Task Data Request - completed query example - TTL Representation

Raw ttl | Download

@prefix fhir: <http://hl7.org/fhir/> .
@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 "query-complete"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><p><b>id</b>: query-complete</p><p><b>basedOn</b>: <a href=\"http://example.org/new-payer/CommunicationRequest/57\">http://example.org/new-payer/CommunicationRequest/57</a></p><p><b>status</b>: completed</p><p><b>intent</b>: order</p><p><b>code</b>: <span title=\"Codes: {http://hl7.org/fhir/us/davinci-hrex/CodeSystem/hrex-temp data-request}\">data request task</span></p><p><b>for</b>: <a href=\"http://example.org/new-payer/fhir/Patient/pat1\">http://example.org/new-payer/fhir/Patient/pat1</a></p><p><b>authoredOn</b>: Jul 31, 2020 2:07:15 AM</p><p><b>requester</b>: <a href=\"Organization-full.html\">Generated Summary: id: full; id: 11223344, id: 11223344, id: 55566667, id: 0123456789, id: 918273645; active; name: New Health Plan; ph: 1-800-123-4567, ph: 1-234-567-8901, info@newhealthplan.org</a></p><p><b>owner</b>: <a href=\"http://example.org/new-payer/fhir/Organization/hl7pay\">http://example.org/new-payer/fhir/Organization/hl7pay</a></p><p><b>reasonCode</b>: <span title=\"Codes: \">Support prior authorization decision-making</span></p><p><b>reasonReference</b>: <a href=\"http://example.org/new-payer/fhir/Claim/123\">http://example.org/new-payer/fhir/Claim/123</a></p><h3>Inputs</h3><table class=\"grid\"><tr><td>-</td><td><b>Type</b></td><td><b>Value[x]</b></td></tr><tr><td>*</td><td><span title=\"Codes: {http://hl7.org/fhir/us/davinci-hrex/CodeSystem/hrex-temp data-query}\">data query input</span></td><td>Condition?patient=Patient/pat1&amp;clinical-status=active&amp;code:below=http%3A%2F%2Fsnomed.info%2Fsct%7C73211009</td></tr></table><h3>Outputs</h3><table class=\"grid\"><tr><td>-</td><td><b>Type</b></td><td><b>Value[x]</b></td></tr><tr><td>*</td><td><span title=\"Codes: {http://hl7.org/fhir/us/davinci-hrex/CodeSystem/hrex-temp data-value}\">data values output</span></td><td><a name=\"results\"> </a><blockquote><p><b>id</b>: results</p><p><b>type</b>: searchset</p><p><b>total</b>: 1</p><h3>Links</h3><table class=\"grid\"><tr><td>-</td><td><b>Relation</b></td><td><b>Url</b></td></tr><tr><td>*</td><td>self</td><td><a href=\"http://example.org/new-payor/fhir/Condition?patient=Patient/pat1&amp;clinical-status=active&amp;code:below=http%3A%2F%2Fsnomed.info%2Fsct%7C73211009\">http://example.org/new-payor/fhir/Condition?patient=Patient/pat1&amp;clinical-status=active&amp;code:below=http%3A%2F%2Fsnomed.info%2Fsct%7C73211009</a></td></tr></table><blockquote><p><b>entry</b></p><p><b>fullUrl</b>: <a href=\"http://local.fhir.org:960/r4/Condition/example\">http://local.fhir.org:960/r4/Condition/example</a></p><p><b>resource</b>: </p><h3>Searches</h3><table class=\"grid\"><tr><td>-</td><td><b>Mode</b></td></tr><tr><td>*</td><td>match</td></tr></table></blockquote></blockquote></td></tr></table></div>"
  ];
  fhir:DomainResource.contained [
     a fhir:Bundle;
     fhir:index 0;
     fhir:Resource.id [ fhir:value "results" ];
     fhir:Bundle.type [ fhir:value "searchset" ];
     fhir:Bundle.total [ fhir:value "1"^^xsd:nonNegativeInteger ];
     fhir:Bundle.link [
       fhir:index 0;
       fhir:Bundle.link.relation [ fhir:value "self" ];
       fhir:Bundle.link.url [ fhir:value "http://example.org/new-payor/fhir/Condition?patient=Patient/pat1&clinical-status=active&code:below=http%3A%2F%2Fsnomed.info%2Fsct%7C73211009" ]     ];
     fhir:Bundle.entry [
       fhir:index 0;
       fhir:Bundle.entry.fullUrl [ fhir:value "http://local.fhir.org:960/r4/Condition/example" ];
       fhir:Bundle.entry.resource <http://local.fhir.org:960/r4/Condition/example>;
       fhir:Bundle.entry.search [
         fhir:Bundle.entry.search.mode [ fhir:value "match" ]       ]     ]
  ];
  fhir:Task.basedOn [
     fhir:index 0;
     fhir:link <http://example.org/new-payer/CommunicationRequest/57>;
     fhir:Reference.reference [ fhir:value "http://example.org/new-payer/CommunicationRequest/57" ]
  ];
  fhir:Task.status [ fhir:value "completed"];
  fhir:Task.intent [ fhir:value "order"];
  fhir:Task.code [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/davinci-hrex/CodeSystem/hrex-temp" ];
       fhir:Coding.code [ fhir:value "data-request" ]     ]
  ];
  fhir:Task.for [
     fhir:link <http://example.org/new-payer/fhir/Patient/pat1>;
     fhir:Reference.reference [ fhir:value "http://example.org/new-payer/fhir/Patient/pat1" ]
  ];
  fhir:Task.authoredOn [ fhir:value "2020-07-30T20:07:15-06:00"^^xsd:dateTime];
  fhir:Task.requester [
     fhir:Reference.reference [ fhir:value "Organization/full" ]
  ];
  fhir:Task.owner [
     fhir:link <http://example.org/new-payer/fhir/Organization/hl7pay>;
     fhir:Reference.reference [ fhir:value "http://example.org/new-payer/fhir/Organization/hl7pay" ]
  ];
  fhir:Task.reasonCode [
     fhir:CodeableConcept.text [ fhir:value "Support prior authorization decision-making" ]
  ];
  fhir:Task.reasonReference [
     fhir:link <http://example.org/new-payer/fhir/Claim/123>;
     fhir:Reference.reference [ fhir:value "http://example.org/new-payer/fhir/Claim/123" ]
  ];
  fhir:Task.input [
     fhir:index 0;
     fhir:Task.input.type [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/davinci-hrex/CodeSystem/hrex-temp" ];
         fhir:Coding.code [ fhir:value "data-query" ]       ]     ];
     fhir:Task.input.valueString [ fhir:value "Condition?patient=Patient/pat1&clinical-status=active&code:below=http%3A%2F%2Fsnomed.info%2Fsct%7C73211009" ]
  ];
  fhir:Task.output [
     fhir:index 0;
     fhir:Task.output.type [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/davinci-hrex/CodeSystem/hrex-temp" ];
         fhir:Coding.code [ fhir:value "data-value" ]       ]     ];
     fhir:Task.output.valueReference [
       fhir:Reference.reference [ fhir:value "#results" ]     ]
  ].

<http://local.fhir.org:960/r4/Condition/example> a fhir:Condition;
  fhir:Resource.id [ fhir:value "example"];
  fhir:Resource.meta [
     fhir:Meta.versionId [ fhir:value "1" ];
     fhir:Meta.lastUpdated [ fhir:value "2018-11-12T03:34:46.552Z"^^xsd:dateTime ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">Severe burn of left ear (Date: 24-May 2012)</div>"
  ];
  fhir:Condition.clinicalStatus [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/condition-clinical" ];
       fhir:Coding.code [ fhir:value "active" ]     ]
  ];
  fhir:Condition.verificationStatus [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/condition-ver-status" ];
       fhir:Coding.code [ fhir:value "confirmed" ]     ]
  ];
  fhir:Condition.category [
     fhir:index 0;
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/condition-category" ];
       fhir:Coding.code [ fhir:value "encounter-diagnosis" ];
       fhir:Coding.display [ fhir:value "Encounter Diagnosis" ]     ], [
       fhir:index 1;
       a sct:359642000;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
       fhir:Coding.code [ fhir:value "359642000" ];
       fhir:Coding.display [ fhir:value "Type 2 diabetes mellitus in nonobese" ]     ]
  ];
  fhir:Condition.subject [
     fhir:link <http://example.org/new-payer/fhir/Patient/pat1>;
     fhir:Reference.reference [ fhir:value "http://example.org/new-payer/fhir/Patient/pat1" ]
  ];
  fhir:Condition.onsetDateTime [ fhir:value "2012-05-24"^^xsd:date].

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

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