[fundus] API modified to take caching into account.

live
Reinier Zwitserloot 7 months ago
parent 2c7522aae1
commit 0f18baa919
No known key found for this signature in database
GPG Key ID: DADEDCAA42950296

@ -49,11 +49,41 @@ get:
schema: schema:
type: string type: string
enum: ['gp', 'specialist', 'unknown', ''] enum: ['gp', 'specialist', 'unknown', '']
- name: ifNewerThan
in: query
required: false
description: |-
Useful to check if new data is available relative to an earlier request: Provide the same date as provided in a previous response's `refDate` value.
If no new data is available since then, a `206 - No Content` HTTP response is returned. Date without time part in ISO8601 format.
schema:
type: string
format: date
example: "1970-01-13"
- $ref: '../zoo-api.yaml#/components/parameters/Pretty' - $ref: '../zoo-api.yaml#/components/parameters/Pretty'
- $ref: '../zoo-api.yaml#/components/parameters/RefDateDefaultToday'
- $ref: '../zoo-api.yaml#/components/parameters/CareGroup' - $ref: '../zoo-api.yaml#/components/parameters/CareGroup'
- $ref: '../zoo-api.yaml#/components/parameters/Authorization' - $ref: '../zoo-api.yaml#/components/parameters/Authorization'
responses: responses:
'206':
description: |-
No new data is available: No new group report has been constructed with a `refDate` newer than `ifNewerThan`.
'503':
description: The data cannot be provided, because EPD data has not been provided to Zorg op Orde, or ZOO has not had a chance to run the fundus calculations on this data.
content:
application/json:
schema:
type: object
required:
- agb
- regionName
properties:
agb:
description: |-
The same AGB as supplied via authentication or the `agb` parameter: The AGB of the care group being queried.
$ref: ../schemas/agb.yaml
regionName:
description: |-
A human readable name describing the care group being queried (The entity whose AGB code is sent as `agb`).
type: string
'200': '200':
description: All patients where funduscopy status is relevant are returned. description: All patients where funduscopy status is relevant are returned.
content: content:
@ -71,10 +101,7 @@ get:
agb: agb:
description: |- description: |-
The same AGB as supplied via authentication or the `agb` parameter: The AGB of the care group being queried. The same AGB as supplied via authentication or the `agb` parameter: The AGB of the care group being queried.
type: integer $ref: ../schemas/agb.yaml
format: int32
minimum: 1
maximum: 99999999
regionName: regionName:
description: |- description: |-
A human readable name describing the care group being queried (The entity whose AGB code is sent as `agb`). A human readable name describing the care group being queried (The entity whose AGB code is sent as `agb`).
@ -83,6 +110,7 @@ get:
$ref: ../schemas/date.yaml $ref: ../schemas/date.yaml
example: '2024-04-01' example: '2024-04-01'
description: |- description: |-
The date when this report for the
The date used for all calculations: Any time spans are relative to this date, any measurement requirements The date used for all calculations: Any time spans are relative to this date, any measurement requirements
as stated in the care group's policies such as 'must be registered every year or cannot be considered' are applied as stated in the care group's policies such as 'must be registered every year or cannot be considered' are applied
to this date, anything that occured after this date is ignored. to this date, anything that occured after this date is ignored.

@ -42,10 +42,51 @@ get:
schema: schema:
type: string type: string
enum: ['gp', 'specialist', 'unknown', ''] enum: ['gp', 'specialist', 'unknown', '']
- name: ifNewerThan
in: query
required: false
description: |-
Useful to check if new data is available relative to an earlier request: Provide the same date as provided in a previous response's `refDate` value.
If no new data is available since then, a `206 - No Content` HTTP response is returned. Date without time part in ISO8601 format.
schema:
type: string
format: date
example: "1970-01-13"
- $ref: '../zoo-api.yaml#/components/parameters/Pretty' - $ref: '../zoo-api.yaml#/components/parameters/Pretty'
- $ref: '../zoo-api.yaml#/components/parameters/RefDateDefaultToday'
- $ref: '../zoo-api.yaml#/components/parameters/Authorization' - $ref: '../zoo-api.yaml#/components/parameters/Authorization'
responses: responses:
'206':
description: |-
No new data is available: The EPD has not provided new information since `ifNewerThan`, or Zorg op Orde has not had a chance to rerun the fundus calculations on newly provided EPD data.
'503':
description: The data cannot be provided, because EPD data has not been provided to Zorg op Orde, or ZOO has not had a chance to run the fundus calculations on this data.
content:
application/json:
schema:
type: object
required:
- practice
properties:
practice:
type: object
required:
- agb
- name
- gpis
- refDate
properties:
agb:
description: |-
The AGB code of the GP practice whose patients are provided in this object.
$ref: ../schemas/agb.yaml
name:
description: |-
A human readable name describing the GP practice (The entity whose AGB code is sent as `agb`).
type: string
gpis:
$ref: ../schemas/GPIS.yaml
refDate:
$ref: "../schemas/fundus-status.yaml#/properties/refDate"
'200': '200':
description: All patients where funduscopy status is relevant is returned. description: All patients where funduscopy status is relevant is returned.
content: content:
@ -53,18 +94,11 @@ get:
schema: schema:
type: object type: object
required: required:
- refDate
- practice - practice
- refDate
properties: properties:
dict: dict:
$ref: '../schemas/TermsDictionary.yaml' $ref: '../schemas/TermsDictionary.yaml'
refDate:
$ref: ../schemas/date.yaml
description: |-
The date used for all calculations: Any time spans are relative to this date, any measurement requirements
as stated in the care group's policies such as 'must be registered every year or cannot be considered' are applied
to this date, anything that occured after this date is ignored.
example: '2024-04-01'
practice: practice:
$ref: "../schemas/fundus-status.yaml" $ref: "../schemas/fundus-status.yaml"
'400': '400':

@ -3,6 +3,7 @@ required:
- agb - agb
- name - name
- gpis - gpis
- refDate
- patients - patients
properties: properties:
agb: agb:
@ -15,6 +16,14 @@ properties:
type: string type: string
gpis: gpis:
$ref: 'GPIS.yaml' $ref: 'GPIS.yaml'
refDate:
$ref: ../schemas/date.yaml
description: |-
The date used for all calculations: Any time spans are relative to this date, any measurement requirements
as stated in the care group's policies such as 'must be registered every year or cannot be considered' are applied
to this date, anything that occured after this date is ignored. The date depends on the last time the EPD system provided
data; generally it will be quite recent.
example: '2024-04-01'
patients: patients:
type: array type: array
items: items:

Loading…
Cancel
Save