diff --git a/api/ui_api.swagger.yaml b/api/ui_api.swagger.yaml index 4b77aed..86105e2 100644 --- a/api/ui_api.swagger.yaml +++ b/api/ui_api.swagger.yaml @@ -24,8 +24,7 @@ servers: tags: - name: core description: |- - API for cross-cutting API concerns, such as authentication. - TBD. + API for cross-cutting API concerns, such as authentication and the springboard. - name: patient description: |- API for retrieving medical dossier data and concerns based on looking up a @@ -44,11 +43,44 @@ tags: As well as a 'config' view where they see _all_ care programs that could possibly be relevant for that customer, where the customer can preview the report (essentially, run the report as normal), favourite something they don't get by default, or unfavourite something they get by default. paths: + + + /springboard/apps: + get: + tags: + - core + summary: Available springboard apps + responses: + '200': + description: List of available apps + content: + application/json: + schema: + type: object + properties: + notifications: + type: string + apps: + type: array + items: + type: string + /patient/base: get: tags: - patient summary: Get basic personal info not directly related to their medical dossier + parameters: + - name: bsn + in: query + description: |- + The SSN (dutch: _BSN_) of a patient to look up. May only contain digits, cannot contain more than 9 digits, and cannot be 0. + required: true + schema: + type: string + example: 123456789 + - $ref: '#/components/parameters/Authorization' + responses: '200': description: Basic personal information for the patient is returned. @@ -169,13 +201,16 @@ paths: 4 digits exactly, 0-left-padded if needed. If unknown or not insured, 4 zeroes. type: string example: 3331 + '400': + description: The request is invalid; for example, it doesn't contain the required `BSN` parameter. '401': - $ref: '#/components/responses/NoAuth' + $ref: '#/components/responses/JwtFailure' '403': - $ref: '#/components/responses/NoAccess' + description: Indicated practice is known but has not authorized ZOO to share this information with signer. '404': $ref: '#/components/responses/PatNotFound' + /qoc/careprogram: get: tags: @@ -448,14 +483,58 @@ components: type: string example: ZEL-dm2 - + + parameters: + Authorization: + name: Authorization + in: header + description: |- + Single-use signed JWT token with the following mandatory claims: +
kid – key id: A string identifying a trusted signer; agreed upon between user and Zorg op Orde beforehand.iat – Issued at: Time when this JWT was created and signed. Must be no more than 1 hour ago.
+ jti – JWT ID: A unique string used to prevent replay: Any given ID can not be used more than once.
+ agb – GP AGB: AGB code (Medical entity identifier); the lookup will be done on the medical dossier data of this practice or entity.
+ exp – OPTIONAL Expires at: If included, the request must not be received after this time.
+ nbf – OPTIONAL Not before: If included, the request must not be received before this time.
+