Example of subscription for beginning of a clinical encounter
{
"resourceType" : "Subscription",
"id" : "admission",
"name" : "AdmissionExample",
"status" : "active",
"topic" : "http://example.org/R5/SubscriptionTopic/admission",
"end" : "2019-08-07T11:15:18Z",
"managingEntity" : {
"reference" : "Organization/1"
},
"reason" : "subscription for beginning of a clinical encounter for patient 123",
"filterBy" : [{
"filterParameter" : "patient",
"value" : "Patient/123"
}],
"channelType" : {
"code" : "rest-hook"
},
"endpoint" : "https://example.org/Endpoints/P123",
"parameter" : [{
"name" : "Authorization",
"value" : "Bearer secret-token-abc-123"
}],
"heartbeatPeriod" : 60,
"timeout" : 5,
"contentType" : "application/fhir+json",
"content" : "id-only",
"maxCount" : 100
}
Usage note: every effort has been made to ensure that the
examples are correct and useful, but they are not a normative part
of the specification.