Da Vinci Health Record Exchange (HRex)
1.2.0-cibuild - STU 1.1

Da Vinci Health Record Exchange (HRex), published by HL7 International / Clinical Interoperability Council. This guide is not an authorized publication; it is the continuous build for version 1.2.0-cibuild built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/davinci-ehrx/ and changes regularly. See the Directory of published versions

## : HRex Task Subscription Notification - completed query example - TTL Representation

Raw ttl | Download

    @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 sct: <http://snomed.info/id/> .
    @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

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

     a fhir:Bundle ;
      fhir:nodeRole fhir:treeRoot ;
      fhir:id [ fhir:v "subscription-notification-with-data"] ; #
      fhir:type [ fhir:v "history"] ; #
      fhir:timestamp [ fhir:v "2020-05-29T11:44:13.1882432-05:00"^^xsd:dateTime] ; #
      fhir:entry ( [
    fhir:fullUrl [ fhir:v "urn:uuid:93be0c3d-1ba9-49bf-8a9b-9614604cda3c"^^xsd:anyURI ] ;
        ( fhir:resource <urn:uuid:93be0c3d-1ba9-49bf-8a9b-9614604cda3c> ) ;
    fhir:request [
    fhir:method [ fhir:v "GET" ] ;
    fhir:url [ fhir:v "https://example.org/fhir/r4/Subscription/task/$status"^^xsd:anyURI ]     ] ;
    fhir:response [
    fhir:status [ fhir:v "200" ]     ]
      ] [
    fhir:fullUrl [ fhir:v "https://example.org/fhir/r4/Task/e3b9e31e-6252-40a5-9b7b-dfa6ca44f875"^^xsd:anyURI ] ;
        ( fhir:resource <https://example.org/fhir/r4/Task/e3b9e31e-6252-40a5-9b7b-dfa6ca44f875> ) ;
    fhir:request [
    fhir:method [ fhir:v "PUT" ] ;
    fhir:url [ fhir:v "Task"^^xsd:anyURI ]     ] ;
    fhir:response [
    fhir:status [ fhir:v "200" ]     ]
      ] ) . #

    <urn:uuid:93be0c3d-1ba9-49bf-8a9b-9614604cda3c> a fhir:Parameters ;
      fhir:id [ fhir:v "93be0c3d-1ba9-49bf-8a9b-9614604cda3c"] ; #
      fhir:parameter ( [
    fhir:name [ fhir:v "subscription-url" ] ;
    fhir:value [
    a fhir:uri ;
    fhir:v "https://example.org/fhir/r4/Subscription/task"^^xsd:anyURI     ]
      ] [
    fhir:name [ fhir:v "status" ] ;
    fhir:value [
    a fhir:code ;
    fhir:v "active"     ]
      ] [
    fhir:name [ fhir:v "type" ] ;
    fhir:value [
    a fhir:code ;
    fhir:v "event-notification"     ]
      ] [
    fhir:name [ fhir:v "subscription-event-count" ] ;
    fhir:value [
    a fhir:unsignedInt ;
    fhir:v "2"^^xsd:nonNegativeInteger     ]
      ] [
    fhir:name [ fhir:v "bundle-event-count" ] ;
    fhir:value [
    a fhir:unsignedInt ;
    fhir:v "1"^^xsd:nonNegativeInteger     ]
      ] [
    fhir:name [ fhir:v "subscription-topic-url" ] ;
    fhir:value [
    a fhir:uri ;
    fhir:v "http://hl7.org/fhir/us/davinci-hrex/SubscriptionTopic/Task"^^xsd:anyURI     ]
      ] ) . #

    <https://example.org/fhir/r4/Task/e3b9e31e-6252-40a5-9b7b-dfa6ca44f875> a fhir:Task ;
      fhir:id [ fhir:v "e3b9e31e-6252-40a5-9b7b-dfa6ca44f875"] ; #
      fhir:text [
    fhir:status [ fhir:v "generated" ] ;
    fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Task_e3b9e31e-6252-40a5-9b7b-dfa6ca44f875\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Task e3b9e31e-6252-40a5-9b7b-dfa6ca44f875</b></p><a name=\"e3b9e31e-6252-40a5-9b7b-dfa6ca44f875\"> </a><a name=\"hce3b9e31e-6252-40a5-9b7b-dfa6ca44f875\"> </a><a name=\"e3b9e31e-6252-40a5-9b7b-dfa6ca44f875-en-US\"> </a><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>: 2020-07-30 20:07:15-0600</p><p><b>requester</b>: <a href=\"http://example.org/new-payer/fhir/Organization/hl7pay\">http://example.org/new-payer/fhir/Organization/hl7pay</a></p><p><b>owner</b>: <a href=\"http://example.org/provider/fhir/Organization/hl7prov\">http://example.org/provider/fhir/Organization/hl7prov</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 style=\"display: none\">-</td><td><b>Type</b></td><td><b>Value[x]</b></td></tr><tr><td style=\"display: none\">*</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 style=\"display: none\">-</td><td><b>Type</b></td><td><b>Value[x]</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{http://hl7.org/fhir/us/davinci-hrex/CodeSystem/hrex-temp data-value}\">data values output</span></td><td><a href=\"#hce3b9e31e-6252-40a5-9b7b-dfa6ca44f875/results\">Bundle: type = searchset; total = 1</a></td></tr></table><hr/><blockquote><p class=\"res-header-id\"><b>Generated Narrative: Bundle #results</b></p><a name=\"e3b9e31e-6252-40a5-9b7b-dfa6ca44f875/results\"> </a><a name=\"hce3b9e31e-6252-40a5-9b7b-dfa6ca44f875/results\"> </a><a name=\"e3b9e31e-6252-40a5-9b7b-dfa6ca44f875/results-en-US\"> </a><p>Bundle results of type searchset</p><a name=\"http-//local.fhir.org-960/r4/Condition/example\"> </a><a name=\"Condition_example\"> </a><a name=\"hcCondition_example\"> </a><hr/><p>Entry 1 - fullUrl = http://local.fhir.org:960/r4/Condition/example</p><p>Search:Mode = match</p><p>Resource Condition:</p><blockquote>Severe burn of left ear (Date: 24-June 2012)</blockquote></blockquote></div>"^^rdf:XMLLiteral
      ] ; #
      fhir:contained ( [
    a fhir:Bundle ;
    fhir:id [ fhir:v "results" ] ;
    fhir:type [ fhir:v "searchset" ] ;
    fhir:total [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
        ( fhir:link [
    fhir:relation [ fhir:v "self" ] ;
    fhir:url [ fhir:v "http://example.org/new-payer/fhir/Condition?patient=Patient/pat1&clinical-status=active&code:below=http%3A%2F%2Fsnomed.info%2Fsct%7C73211009"^^xsd:anyURI ]     ] ) ;
        ( fhir:entry [
    fhir:fullUrl [ fhir:v "http://local.fhir.org:960/r4/Condition/example"^^xsd:anyURI ] ;
          ( fhir:resource <http://local.fhir.org:960/r4/Condition/example> ) ;
    fhir:search [
    fhir:mode [ fhir:v "match" ]       ]     ] )
      ] ) ; #
      fhir:basedOn ( [
    fhir:link <http://example.org/new-payer/CommunicationRequest/57> ;
    fhir:reference [ fhir:v "http://example.org/new-payer/CommunicationRequest/57" ]
      ] ) ; #
      fhir:status [ fhir:v "completed"] ; #
      fhir:intent [ fhir:v "order"] ; #
      fhir:code [
        ( fhir:coding [
    fhir:system [ fhir:v "http://hl7.org/fhir/us/davinci-hrex/CodeSystem/hrex-temp"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "data-request" ]     ] )
      ] ; #
      fhir:for [
    fhir:link <http://example.org/new-payer/fhir/Patient/pat1> ;
    fhir:reference [ fhir:v "http://example.org/new-payer/fhir/Patient/pat1" ]
      ] ; #
      fhir:authoredOn [ fhir:v "2020-07-30T20:07:15-06:00"^^xsd:dateTime] ; #
      fhir:requester [
    fhir:link <http://example.org/new-payer/fhir/Organization/hl7pay> ;
    fhir:reference [ fhir:v "http://example.org/new-payer/fhir/Organization/hl7pay" ]
      ] ; #
      fhir:owner [
    fhir:link <http://example.org/provider/fhir/Organization/hl7prov> ;
    fhir:reference [ fhir:v "http://example.org/provider/fhir/Organization/hl7prov" ]
      ] ; #
      fhir:reasonCode [
    fhir:text [ fhir:v "Support prior authorization decision-making" ]
      ] ; #
      fhir:reasonReference [
    fhir:link <http://example.org/new-payer/fhir/Claim/123> ;
    fhir:reference [ fhir:v "http://example.org/new-payer/fhir/Claim/123" ]
      ] ; #
      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=Patient/pat1&clinical-status=active&code:below=http%3A%2F%2Fsnomed.info%2Fsct%7C73211009"     ]
      ] ) ; #
      fhir:output ( [
    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-value" ]       ] )     ] ;
    fhir:value [
    a fhir:Reference ;
    fhir:reference [ fhir:v "#results" ]     ]
      ] ) . #

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