Stream: subscriptions
Topic: Cerner Subscription server
Max Philips (Jan 28 2018 at 18:23):
Subscription create and search are available on Cerner's connectathon server now
Create: POST https://fhir-open.stagingcerner.com/stu3/a758f80e-aa74-4118-80aa-98cc75846c76/Subscription
Header - Content-Type: accept/json
Body - JSON Subscription
Search: GET https://fhir-open.stagingcerner.com/stu3/a758f80e-aa74-4118-80aa-98cc75846c76/Subscription?_id=1
Header - Accept: application/json+fhir
_id supports single or multiple ids like '1' or '1,2,3'
Please let me know how it works and what I've missed. I will be working on sending notifications next.
Leo Bergnéhr (Jan 28 2018 at 19:01):
Seems to work fine when supplying the Accept header as application/fhir+json but it errors out if there is no Accept header or if it's e.g. */*.
Max Philips (Jan 28 2018 at 21:19):
Deploying a very simple notification system now. There is a /notify endpoint you can POST text to like "<patient id>|<resource>". The server then calls the endpoint provided for all Subscriptions that are monitoring that resource. We also have a script to run instead of making the /notify calls manually. I'll update when it is deployed
Max Philips (Jan 28 2018 at 21:52):
This is live now. Manual notification triggers can be POSTed to https://fhir-open.stagingcerner.com/stu3/a758f80e-aa74-4118-80aa-98cc75846c76/notify with a body like "12345|Patient". Performing such a POST would trigger all subscriptions with a criteria containing 'Patient' to have their endpoint called
Will Maethner (Jan 28 2018 at 22:05):
I'm having trouble getting the subscription create to work from fiddler. I get an "Unsupported media type" error using the info shown below. Any ideas?
pasted image
Max Philips (Jan 28 2018 at 22:46):
Hm, that URL/Content-Type look fine to me. Here's what an example request would look like in cURL using one of the example Subscriptions. I was able to send this off successfully
curl -X POST https://fhir-open.stagingcerner.com/stu3/a758f80e-aa74-4118-80aa-98cc75846c76/Subscription \
-H 'Content-Type: application/json' \
-d '{
"resourceType": "Subscription",
"status": "requested",
"contact": [
{
"system": "phone",
"value": "ext 4123"
}
],
"end": "2021-01-01T00:00:00Z",
"reason": "Monitor new neonatal function",
"criteria": "Observation?code=http://loinc.org|1975-2",
"channel": {
"type": "rest-hook",
"endpoint": "https://biliwatch.com/customers/mount-auburn-miu/on-result",
"payload": "application/fhir+json",
"header": [
"Authorization: Bearer secret-token-abc-123"
]
},
"tag": [
{
"system": "http://example.org/fhir/cs/internal",
"code": "bili-done"
}
]
}'
Last updated: Apr 12 2022 at 19:14 UTC
