Replaced 'enddate' with 'active' in population statistics. Updated all statistics API's with AGB-subject parameter.

EH/population-statistics-authorisation
Eric Hoekstra 1 year ago
parent e07a92116c
commit 09795ff490

@ -6,6 +6,7 @@ get:
description: |-
Groups the patient population by any combination of age, preferred doctor, etc. and calculates the count of each category.
parameters:
- $ref: '../zoo-api.yaml#/components/parameters/AgbSubject'
- $ref: '../zoo-api.yaml#/components/parameters/RefDateDefaultToday'
- name: groupByItems
in: query

@ -32,11 +32,10 @@ get:
properties:
item:
$ref: ../schemas/StatisticsGroupBy-enum.yaml
enddate:
$ref: ../schemas/date.yaml
description: All possible enum values are always in the output.
active:
type: boolean
description: False if the end date is today or in the past.
description: True if authorised, otherwise false.
caregroups:
type: array
items:

@ -15,17 +15,15 @@ post:
in: path
schema:
$ref: '../schemas/tag.yaml'
- name: agb
in: query
schema:
$ref: '../schemas/agb.yaml'
description: AGB of the practice for which the authorisation should be set. This should match the JWT-authorisation.
- $ref: '../zoo-api.yaml#/components/parameters/AgbSubject'
required: true
- name: enddate
description: AGB of the practice for which the authorisation should be set. This should match the JWT-authorisation.
- name: active
in: query
schema:
$ref: ../schemas/date.yaml
description: End date of the authorisation (exclusive). If omitted no end date is applied, or the end date is removed of an existing authorisation. Setting an end date to today or in past, effectively removes the authorisation.
type: boolean
required: true
description: True to set the authorisation, false to remove.
- name: employee
in: query
schema:

@ -11,17 +11,15 @@ post:
schema:
$ref: '../schemas/StatisticsGroupBy-enum.yaml'
required: true
- name: agb
in: query
schema:
$ref: '../schemas/agb.yaml'
description: AGB of the practice for which the authorisation should be set. This should match the JWT-authorisation.
- $ref: '../zoo-api.yaml#/components/parameters/AgbSubject'
required: true
- name: enddate
description: AGB of the practice for which the authorisation should be set. This should match the JWT-authorisation.
- name: active
in: query
schema:
$ref: ../schemas/date.yaml
description: End date of the authorisation (exclusive). If omitted no end date is applied, or the end date is removed of an existing authorisation. Setting an end date to today or in past, effectively removes the authorisation.
type: boolean
description: True to set the authorisation, false to remove.
required: true
- name: employee
in: query
schema:

@ -5,6 +5,7 @@ get:
summary: Deprived neighborhood, patients
description: The list of patients belonging to one of the categories, see `neighborhood` below.
parameters:
- $ref: '../zoo-api.yaml#/components/parameters/AgbSubject'
- $ref: '../zoo-api.yaml#/components/parameters/RefDateDefaultToday'
- name: neighborhood
in: path

@ -4,10 +4,8 @@ get:
operationId: groupByItems
summary: Group-by items
parameters:
- name: agb
in: query
schema:
$ref: ../schemas/agb.yaml
- $ref: '../zoo-api.yaml#/components/parameters/AgbSubject'
required: true
responses:
200:
description: |-

@ -133,6 +133,13 @@ components:
required: false
schema:
$ref: schemas/agb.yaml
AgbSubject:
name: agb
in: query
schema:
$ref: schemas/agb.yaml
description: |-
The AGB of the practice for which the operation is executed. In other words: the subject of the operation. It is expected that the AGB is the same as the AGB of the logged in practice or one of the AGB's of the care group its practices.
Pretty:
name: pretty
in: query

Loading…
Cancel
Save