This wiki has undergone a migration to Confluence found Here

CDS Hooks Interface for Hacking Health Brisbane 2017 Track 6

From HL7Wiki
Revision as of 13:05, 10 July 2017 by GrahameGrieve (talk | contribs) (Created page with "This page describes the interface for track 6 for Hacking Health Brisbane 2017 (see https://hhbrisbane2017.sparkboard.com/project/59419949317f780400a39a30) == Basics == ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This page describes the interface for track 6 for Hacking Health Brisbane 2017 (see [[1]])

Basics

The cds-hook is 'order-review' - see [[2]].

Given the scenario described in the track, we assume that there's no call back to the EHR - so all data is provided via pre-fetch. Therefore, the EHR provides the following information:

  • hook = order-review
  • a hook instance
  • a user id
  • a patient
  • an encounter (e.g. information about the GP consultation)
  • a patient and and encounter resource matching those in the pre-fetch data
  • at least one Condition - (problem list for the patient, also in the prefetch data
  • one or more ProcedureRequest resources, for each test (or panel) requested by the clinician (in the context)
  • no oauth/redirect details

The service returns a set of cards (no profile on the response yet).

Implementations

There's an implementation at http://test.fhir.org/r3/cds-services/hacking-health. All that implementation does is return a card that describes technical issues with the submission from the EHR.

Example

{
 "hook": "order-review",
 "hookInstance": "123",
 "user": "Practitioner/123",
 "patient": "Patient/1234",
 "encounter": "Encounter/234",
 "context": [{
   "resourceType": "ProcedureRequest",
   "subject": {
     "reference": "Patient/1234"
   },
   "context": {
     "reference": "Encounter/234"
   },
   "code": {
     "coding": [{
       "system": "http://loinc.org",
       "code": "24320-4"
     }]
   }
 }],
 "prefetch": {
   "resourceType": "Bundle",
   "entry": [{
     "resource": {
       "resourceType": "Patient",
       "gender": "male",
       "birthDate": "1970-01-01",
       "id": "1234"
     }
   },
   {
     "resource": {
       "resourceType": "Encounter",
       "id": "234",
       "subject": {
         "reference": "Patient/1234"
       },
       "reason": [{
         "text": "Sudden LOC"
       }]
     }
   },
   {
     "resource": {
       "resourceType": "Condition",
       "subject": {
         "reference": "Patient/1234"
       },
       "code": {
         "coding": [{
           "system": "http://snomed.info/sct",
           "code": "73211009",
           "display": "Diabetes mellitus"
         }]
       }
     }
   }]
 }
}