[api] Updated population statistics API after review and test.

EH/population-statistics-authorisation
Eric Hoekstra 2 years ago
parent 68999a6a36
commit b94dd75998

@ -1,12 +1,10 @@
get: get:
tags: tags:
- population - population statistics
operationId: "populationStatistics" operationId: "populationStatistics"
summary: "Get a population count divided by items like age, preferred doctor, etc." summary: "Get a population count"
description: |- description: |-
A table with at least two columns. The first column is a category of age, preferred doctor, etc. The second, the number of patients in the category. The category can be extended by several more group by items. Groups the patient population by any combination of age, preferred doctor, etc. and calculates the count of each category.
Patients who are no longer registrered are excluded, so only patients with an active registration are included. Patients without birthdate are excluded (rare).
parameters: parameters:
- name: referenceDate - name: referenceDate
in: query in: query
@ -29,23 +27,25 @@ get:
- preferredDoctor - preferredDoctor
- insurer - insurer
- gender - gender
description: "Several items can be added to the group by using a comma separated list, e.g. `groupByItems=gender,age`. If an item is twice or more repeated the first occurance is used. Only known ages are outputted. The insurer is outputted as an Uzovi (with name and concern). The most recent Uzovi table is used to convert codes to names and concerns. The sequence of the items in the URL is the same as the sequence in the grouping of the output." description: "Several items can be added to the group by using a comma separated list, e.g. `groupByItems=gender,age`. If an item is twice or more repeated the first occurrence is used."
- name: insurer - name: insurer
in: query in: query
style: form style: form
explode: false explode: false
required: false
schema: schema:
$ref: ../schemas/insurer-Uzovi.yaml $ref: ../schemas/insurer-Uzovi.yaml
description: "Supply zero, one or more Uzovi's to limit the responses to certain insurer. Use 0 to select all patients without insurer registred. Supply the Uzovi code as an integer in a comma separated list, e.g. `insurer=101,211,3344`." description: "Supply zero, one or more Uzovi's to limit the responses to certain insurer. Use 0 to select all patients without insurer registered. Supply the Uzovi code as an integer in a comma separated list, e.g. `insurer=101,211,3344`."
- name: passerBy - name: passerBy
in: query in: query
required: false
schema: schema:
type: boolean type: boolean
description: "True to include passer-by patients. This also includes Medicom's noni patients. (Noni = niet op naam ingeschreven.) By default passer-by patients are excluded from the response." description: "True to include passer-by patients. This also includes Medicom's noni patients. (Noni = niet op naam ingeschreven.) By default passer-by patients are excluded from the response."
- $ref: '../zoo-api.yaml#/components/parameters/Authorization' - $ref: '../zoo-api.yaml#/components/parameters/Authorization'
responses: responses:
200: 200:
description: "The response body is a JSON-array with for each group, defined by a sequence of `groupByItem` query parameters, an object with a count `n`." description: "The response body is a JSON-array with for each group, defined by a sequence of `groupByItem` query parameters, an object with a count `n`. Only patients with an active registration on the reference date are included. When age is chosen as a category, only patients with a birthdate are included and only known ages are included in the response. The insurer is outputted as an Uzovi (with name and concern). The most recent Uzovi table is used to convert codes to names and concerns. If an Uzovi is missing in that table it is still added to the response, but without name and/or concern. The sequence of the items in the URL is the same as the sequence in the grouping of the output."
content: content:
application/json: application/json:
schema: schema:
@ -74,4 +74,3 @@ get:
description: "Indicated practice is known but has not authorized ZOO to share this information with signer." description: "Indicated practice is known but has not authorized ZOO to share this information with signer."
404: 404:
$ref: '../zoo-api.yaml#/components/responses/PatNotFound' $ref: '../zoo-api.yaml#/components/responses/PatNotFound'

@ -1,10 +1,9 @@
get: get:
tags: tags:
- population - population statistics
operationId: "populationStatisticsDeprivedNeighborhood" operationId: "populationStatisticsDeprivedNeighborhood"
summary: "Get a deprived neighborhood versus regular count." summary: "Patients in a deprived neighborhood"
description: |- description: "A simple report with a count of all patients living in a deprived neighborhood or regular one based on the well-known postcode table."
Patients who are no longer registrered are excluded, so only patients with an active registration are included. Passer-by and NONI-patients are excluded. Patients without birthdate are excluded (rare).
parameters: parameters:
- name: referenceDate - name: referenceDate
in: query in: query
@ -18,7 +17,7 @@ get:
- $ref: '../zoo-api.yaml#/components/parameters/Authorization' - $ref: '../zoo-api.yaml#/components/parameters/Authorization'
responses: responses:
200: 200:
description: "The response body is a JSON-array with exactly two objects." description: "The response body is a JSON-array with exactly three objects. Patients who are no longer registered are excluded from the response, so only patients with an active registration are included. Passer-by and NONI-patients are excluded."
content: content:
application/json: application/json:
schema: schema:
@ -35,6 +34,12 @@ get:
regularNeighborhood: regularNeighborhood:
type: number type: number
example: 256 example: 256
- type: object
description: "When an irregular postcode is used for a patient it can't be used for determining the neighborhood. These patients are added to unknown."
properties:
unknown:
type: number
example: 3
400: 400:
description: "Common HTTP semantics, see the response body." description: "Common HTTP semantics, see the response body."
401: 401:

@ -24,9 +24,9 @@ tags:
description: |- description: |-
API for retrieving medical dossier data and concerns based on looking up a API for retrieving medical dossier data and concerns based on looking up a
specific patient. specific patient.
- name: population - name: population statistics
description: |- description: |-
Population statistics. Statistics of a patient population.
- name: Quality of Care - name: Quality of Care
description: |- description: |-
API related to Quality of Care (QoC) features API related to Quality of Care (QoC) features

Loading…
Cancel
Save