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: