Implementation Guidance Index > Connectivity Summary
Connectivity Summary
Client systems will be required to connect to the ONE Access Gateway in order to access provincial FHIR based interfaces including DHDR FHIR APIs. The Gateway will authorize customer applications to access the DHDR to search and retrieve drug information. Connectivity to the Ontario DHDR FHIR service through the Gateway requires consumer implementation of a ONE ID Public Key Infrastructure (PKI) and JSON web token (JWT).
JWT Business Data
The following table summarizes the mandatory information that needs to be supplied by the consumer to authorize the request.
Table: JWT Query Data
Data Element | Definition | Type | Optionality | Length | Example |
---|---|---|---|---|---|
jti | Unique Token ID- will be generated by application | ST | Mandatory | 1..40 | |
org | The name of original organization the application is associated with | ST | Optional | 1..70 | University Health Network |
app | The name of application used for the access | ST | Mandatory | 1..50 | Medly |
appVersion | The version of the application | ST | Mandatory | 1..10 | 1.03 |
sub | The login ID of the user initiating the login request | ST | Mandatory | 1..50 | jasmith@myhealthapp.com |
idp | Identify provider- work with eHealth Ontario to assign IDP | ST | Mandatory | 1..255 | http://ehealthontario.ca/fhir/NamingSystem/idp-medly |
prn | Name of the user (principal , as defined in https://openid.net/specs/draft-jones-json-web-token-07.html | ST | Mandatory | 1..75 | John Smith |
usertype | Type of the user: P (patient), D (delegate) or S (designate). | ST | Mandatory | 1..1 | P |
aud | Identifier of the user. Should represent the same value as the one present in the FHIR query string | ST | Mandatory | 1..255 | |
exp | Token expiration time (Its value is a JSON number representing the number of seconds from 1970-01-01T0:0:0Z as measured in UTC until the date/time.) | NM | Mandatory | ||
iat | Issued time (Its value is a JSON number representing the number of seconds from 1970-01-01T0:0:0Z as measured in UTC until the date/time.) | NM | Mandatory | 1444143566 |
JWT Header
Data Element | Definition | Type | Optionality |
---|---|---|---|
alg | Algorithm used. As defined in https://tools.ietf.org/html/rfc7515#page-10 This has to be set to "RS256" | ST | Mandatory |
kid | Key ID used to secure the token, as defined in https://tools.ietf.org/html/rfc7515#page-11 | ST | Optional |
x5t | Certificate thumbprint used to sign the token, as defined in https://tools.ietf.org/html/rfc7515#page-12 | ST | Mandatory |
typ | Type of the token. As defined in: https://tools.ietf.org/html/rfc7515#page-12 always set to “JWT” | ST | Mandatory |