Created
May 2, 2016 22:55
-
-
Save jmandel/39588675e6b951fb0872528b778194f0 to your computer and use it in GitHub Desktop.
CDS Hooks API before/after ?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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":[] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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