Skip to content

Instantly share code, notes, and snippets.

@jmandel
Created May 2, 2016 22:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmandel/39588675e6b951fb0872528b778194f0 to your computer and use it in GitHub Desktop.
Save jmandel/39588675e6b951fb0872528b778194f0 to your computer and use it in GitHub Desktop.
CDS Hooks API before/after ?
{
"hook":"patient-view",
"hookInstance":"e456d5b6-8f98-4e83-b586-40def6bc7778",
"fhirServer":"http://hooks.smarthealthit.org:9080",
"redirect":"http://hooks2.smarthealthit.org/service-done.html",
"user":"Practitioner/example",
"patient":"1288992",
"prefetch":{
"patientToGreet":{
"resource":{
"resourceType":"Patient",
"id":"1288992",
"active":true,
"name":[
{
"use":"official",
"family":[
"Adams"
],
"given":[
"Daniel",
"X."
]
}
],
"gender":"male",
"birthDate":"1925-12-23"
},
"response":{
"status":"200 OK"
}
}
},
"context":[]
}
{
"resourceType":"Parameters",
"parameter":[
{
"name":"activity",
"valueCoding":{
"system":"http://cds-hooks.smarthealthit.org/activity",
"code":"patient-view"
}
},
{
"name":"activityInstance",
"valueString":"20a0d525-639d-43d8-b100-671df12874b9"
},
{
"name":"fhirServer",
"valueUri":"http://hooks.smarthealthit.org:9080"
},
{
"name":"redirect",
"valueString":"http://hooks.fhir.me/service-done.html"
},
{
"name":"user",
"valueString":"Practitioner/example"
},
{
"name":"patient",
"valueId":"1288992"
},
{
"name":"preFetchData",
"resource":{
"resourceType":"Bundle",
"type":"transaction-response",
"entry":[
{
"resource":{
"resourceType":"Patient",
"id":"1288992",
"active":true,
"name":[
{
"use":"official",
"family":[
"Adams"
],
"given":[
"Daniel",
"X."
]
}
],
"gender":"male",
"birthDate":"1925-12-23"
},
"response":{
"status":"200 OK"
}
}
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment