[api] Added deprived neighborhood statistics.

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

@ -29,7 +29,6 @@ get:
- preferredDoctor - preferredDoctor
- insurer - insurer
- gender - gender
- deprivedNeighborhood
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 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."
- name: insurer - name: insurer
in: query in: query

@ -0,0 +1,46 @@
get:
tags:
- population
operationId: "populationStatisticsDeprivedNeighborhood"
summary: "Get a deprived neighborhood versus regular count."
description: |-
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:
- name: referenceDate
in: query
required: true
schema:
type: "string"
pattern: "\\d\\d\\d\\d-\\d\\d-\\d\\d"
format: "date"
description: ISO formatted date
example: 2015-12-15
- $ref: '../zoo-api.yaml#/components/parameters/Authorization'
responses:
200:
description: "The response body is a JSON-array with exactly two objects."
content:
application/json:
schema:
type: array
items:
oneOf:
- type: object
properties:
deprivedNeighborhood:
type: number
example: 42
- type: object
properties:
regularNeighborhood:
type: number
example: 256
400:
description: "Common HTTP semantics, see the response body."
401:
$ref: '../zoo-api.yaml#/components/responses/JwtFailure'
403:
description: "Indicated practice is known but has not authorized ZOO to share this information with signer."
404:
$ref: '../zoo-api.yaml#/components/responses/PatNotFound'

@ -125,6 +125,9 @@ insurer:
type: string type: string
description: "The concern name, if any, otherwise the empty string." description: "The concern name, if any, otherwise the empty string."
example: "ACHMEA" example: "ACHMEA"
valid:
type: boolean
description: "True if the insurer can be validated using the Uzovi table on the reference date."
patid: patid:
$ref: 'pat-patId.yaml' $ref: 'pat-patId.yaml'
pat_unid: pat_unid:

@ -49,6 +49,8 @@ paths:
$ref: 'paths/patient_base.yaml' $ref: 'paths/patient_base.yaml'
/population/statistics: /population/statistics:
$ref: 'paths/population_statistics.yaml' $ref: 'paths/population_statistics.yaml'
/population/statistics/deprivedNeighborhood:
$ref: 'paths/population_statistics_deprived.yaml'
/qoc/careprogram: /qoc/careprogram:
$ref: 'paths/qoc_careprogram.yaml' $ref: 'paths/qoc_careprogram.yaml'
/qoc/careprogram/{careprogramKey}/fave: /qoc/careprogram/{careprogramKey}/fave:

Loading…
Cancel
Save