Skip to content

Commit b52094d

Browse files
authored
fix event names to be consistent
open-patient-chart and close-patient-chart, not patient-open-chart nor patient-chart-open Fixes #38
1 parent f14a5c5 commit b52094d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The EHR launches the app following the standard [SMART on FHIR EHR launch](http:
3333
Although FHIRcast works best with the SMART on FHIR launch and authorization process, it can also be used with implementation-specific launch and authz protocols. See [other launch scenarios]().
3434

3535
### App subscribes to session
36-
In this example, the app asks to be notified of the patient-chart-open and patient-chart-close events. Note that the bearer access_token used to authenticate to the Hub was initially granted during the SMART launch.
36+
In this example, the app asks to be notified of the open-patient-chart and close-patient-chart events. Note that the bearer access_token used to authenticate to the Hub was initially granted during the SMART launch.
3737

3838
Subscriber performs an HTTP POST to the hub base url with the following parameters.
3939

@@ -82,7 +82,7 @@ Field | Optionality | Type | Description
8282
`hub.reason` | Optional | *string* | The hub may include a reason for which the subscription has been denied. The subscription MAY be denied by the hub at any point (even if it was previously accepted). The Subscriber SHOULD then consider that the subscription is not possible anymore.
8383

8484
```
85-
GET https://app.example.com/session/callback/v7tfwuk17a?hub.mode=denied&hub.topic=https%3A%2F%2Fhub.example.com%2F7jaa86kgdudewiaq0wtu&hub.events=patient-open-chart,patient-close-chart&hub.challenge=meu3we944ix80ox&hub.reason=session+unexpectedly+stopped HTTP 1.1
85+
GET https://app.example.com/session/callback/v7tfwuk17a?hub.mode=denied&hub.topic=https%3A%2F%2Fhub.example.com%2F7jaa86kgdudewiaq0wtu&hub.events=open-patient-chart,close-patient-chart&hub.challenge=meu3we944ix80ox&hub.reason=session+unexpectedly+stopped HTTP 1.1
8686
Host: subscriber
8787
```
8888

@@ -101,7 +101,7 @@ Field | Optionality | Type | Description
101101
`hub.lease_seconds` | Required | *number* | The hub-determined number of seconds that the subscription will stay active before expiring, measured from the time the verification request was made from the hub to the subscriber. Subscribers must renew their subscription before the lease seconds period is over to avoid interruption.
102102

103103
```
104-
GET https://app.example.com/session/callback/v7tfwuk17a?hub.mode=subscribe&hub.topic=7jaa86kgdudewiaq0wtu&hub.events=patient-open-chart,patient-close-chart&hub.challenge=meu3we944ix80ox HTTP 1.1
104+
GET https://app.example.com/session/callback/v7tfwuk17a?hub.mode=subscribe&hub.topic=7jaa86kgdudewiaq0wtu&hub.events=open-patient-chart,close-patient-chart&hub.challenge=meu3we944ix80ox HTTP 1.1
105105
Host: subscriber
106106
```
107107

@@ -223,7 +223,7 @@ Host: hub
223223
Authorization: Bearer i8hweunweunweofiwweoijewiwe
224224
Content-Type: application/x-www-form-urlencoded
225225
226-
hub.callback=https%3A%2F%2Fapp.example.com%2Fsession%2Fcallback%2Fv7tfwuk17a&hub.mode=unsubscribe&hub.topic=https%3A%2F%2Fhub.example.com%2F7jaa86kgdudewiaq0wtu&hub.secret=shhh-this-is-a-secret&hub.events=patient-open-chart,patient-close-chart
226+
hub.callback=https%3A%2F%2Fapp.example.com%2Fsession%2Fcallback%2Fv7tfwuk17a&hub.mode=unsubscribe&hub.topic=https%3A%2F%2Fhub.example.com%2F7jaa86kgdudewiaq0wtu&hub.secret=shhh-this-is-a-secret&hub.events=open-patient-chart,close-patient-chart
227227
228228
```
229229
## Event Catalog

0 commit comments

Comments
 (0)