From cceae4449e6b08b1c4e7c5ebfe18dbf8149b3f36 Mon Sep 17 00:00:00 2001 From: Eric Hoekstra Date: Mon, 1 Jul 2024 08:35:35 +0200 Subject: [PATCH] Add population count group-by items end point. --- paths/population_statistics_groupByItems.yaml | 27 +++++++++++++++++++ zoo-api.yaml | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 paths/population_statistics_groupByItems.yaml diff --git a/paths/population_statistics_groupByItems.yaml b/paths/population_statistics_groupByItems.yaml new file mode 100644 index 0000000..3830709 --- /dev/null +++ b/paths/population_statistics_groupByItems.yaml @@ -0,0 +1,27 @@ +get: + tags: + - Population statistics + operationId: groupByItems + summary: Group-by items for population count + responses: + 200: + description: |- + Returns a list of all available group-by items for the population count end point, but only if the items are available for the selected customer. A customer is selected by a JWT-claim or the AGB header. The output of this end point should be the same as the documentation for the groupByItems-parameter of the population count end point. + content: + application/json: + schema: + type: array + items: + type: string + example: + - age + - preferredDoctor + - insurer + - gender + - deprivedNeighborhood + 400: + $ref: '../zoo-api.yaml#/components/responses/ReqFailure' + 401: + $ref: '../zoo-api.yaml#/components/responses/JwtFailure' + 404: + $ref: '../zoo-api.yaml#/components/responses/PatNotFound' \ No newline at end of file diff --git a/zoo-api.yaml b/zoo-api.yaml index 8eed09c..975abd8 100644 --- a/zoo-api.yaml +++ b/zoo-api.yaml @@ -53,6 +53,8 @@ paths: $ref: 'paths/patient_fundusByPractice.yaml' /population/statistics: $ref: 'paths/population_statistics.yaml' + /population/statistics/groupByItems: + $ref: 'paths/population_statistics_groupByItems.yaml' /population/statistics/deprivedNeighborhood: $ref: 'paths/population_statistics_deprived.yaml' /population/statistics/employeeFeat: