Compare commits
3 Commits
main
...
EH/populat
| Author | SHA1 | Date |
|---|---|---|
|
|
4081dfcc41 | 1 year ago |
|
|
09795ff490 | 1 year ago |
|
|
e07a92116c | 1 year ago |
@ -0,0 +1,53 @@
|
|||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- Population statistics
|
||||||
|
operationId: getStatisticsAuthorisation
|
||||||
|
summary: Authorisation
|
||||||
|
description: Reports the authorisations for group-by items for the specified practice(s). Care groups are allowed to query the authorisations of the underlying practices. Practices are always allowed to access their own population statistics, therefore authorisation applies only to care groups wanting to access a practice statistics object (group-by item).
|
||||||
|
parameters:
|
||||||
|
- name: agbs
|
||||||
|
in: query
|
||||||
|
schema:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: ../schemas/agb.yaml
|
||||||
|
required: true
|
||||||
|
description: The agb of the practice(s) for which the authorisations should be reported.
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: An array with for each practice an object describing the authorisation settings for the care group.
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
practice:
|
||||||
|
$ref: '../schemas/agb.yaml'
|
||||||
|
caregroups:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
tag:
|
||||||
|
$ref: ../schemas/tag.yaml
|
||||||
|
agb:
|
||||||
|
$ref: '../schemas/agb.yaml'
|
||||||
|
groupBy:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
item:
|
||||||
|
$ref: ../schemas/StatisticsGroupBy-enum.yaml
|
||||||
|
description: All possible enum values are always in the output.
|
||||||
|
active:
|
||||||
|
type: boolean
|
||||||
|
description: True if authorised, otherwise false.
|
||||||
|
400:
|
||||||
|
$ref: '../zoo-api.yaml#/components/responses/ReqFailure'
|
||||||
|
401:
|
||||||
|
$ref: '../zoo-api.yaml#/components/responses/JwtFailure'
|
||||||
|
404:
|
||||||
|
$ref: '../zoo-api.yaml#/components/responses/PatNotFound'
|
||||||
@ -0,0 +1,56 @@
|
|||||||
|
post:
|
||||||
|
tags:
|
||||||
|
- Population statistics
|
||||||
|
operationId: setGroupByItemCareGroup
|
||||||
|
summary: Authorisation
|
||||||
|
description: |-
|
||||||
|
Set the authorisation for statistic group-by items for care groups. This enables or disables the statistic for use by the care group. Only when the API-user is authorized as the practice the settings may be changed.
|
||||||
|
parameters:
|
||||||
|
- name: item
|
||||||
|
in: path
|
||||||
|
schema:
|
||||||
|
$ref: '../schemas/StatisticsGroupBy-enum.yaml'
|
||||||
|
required: true
|
||||||
|
- name: tag
|
||||||
|
in: path
|
||||||
|
schema:
|
||||||
|
$ref: '../schemas/tag.yaml'
|
||||||
|
- $ref: '../zoo-api.yaml#/components/parameters/AgbSubject'
|
||||||
|
required: true
|
||||||
|
description: AGB of the practice for which the authorisation should be set. This should match the JWT-authorisation.
|
||||||
|
- name: active
|
||||||
|
in: query
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
required: true
|
||||||
|
description: True to set the authorisation, false to remove.
|
||||||
|
- name: employee
|
||||||
|
in: query
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
description: The employee that is adding the authorisation. Any string is accepted, but it is recommended to use a employee code derived from this API.
|
||||||
|
required: true
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: The response parrots the request, except for the `employee` and `timestamp` properties. If the authorisation is changed the `employee` and `timestamp` from the request are responded, but if the request didn't change the authorisation, then the `employee` and `timestamp` from the last change are in the payload.
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
employee:
|
||||||
|
type: string
|
||||||
|
timestamp:
|
||||||
|
$ref: ../schemas/dateTime.yaml
|
||||||
|
agb:
|
||||||
|
$ref: ../schemas/agb.yaml
|
||||||
|
authorizedFor:
|
||||||
|
$ref: '../schemas/StatisticsGroupBy-enum.yaml'
|
||||||
|
tag:
|
||||||
|
$ref: '../schemas/tag.yaml'
|
||||||
|
enddate:
|
||||||
|
$ref: '../schemas/date.yaml'
|
||||||
|
'401':
|
||||||
|
$ref: '../zoo-api.yaml/#/components/responses/NoAuth'
|
||||||
|
'403':
|
||||||
|
$ref: '../zoo-api.yaml/#/components/responses/NoAccess'
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
description: Represents an object on which population statistics can be generated.
|
||||||
|
type: string
|
||||||
|
enum:
|
||||||
|
- age
|
||||||
|
- preferredDoctor
|
||||||
|
- insurer
|
||||||
|
- gender
|
||||||
|
- deprivedNeighborhood
|
||||||
|
example: age
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
type: string
|
||||||
|
example: HZK
|
||||||
|
description: A tags represents some entity in which the practice can be classified, e.g. care group or district. The empty tag represents the practice itself.
|
||||||
Loading…
Reference in New Issue