[api] Added careprogram object. Added description for /customer/careprogram/enddate end point.
parent
89eeb6fecb
commit
1747510619
@ -0,0 +1,55 @@
|
|||||||
|
post:
|
||||||
|
tags:
|
||||||
|
- Customer management
|
||||||
|
operationId: setCustomerCareProgramPeriodEnd
|
||||||
|
summary: Update the period end of a practice in a care program.
|
||||||
|
description: |-
|
||||||
|
This API allows to update only the period end date of the participation of a practice in a care program. This is equivalent to submitting a new participation to this API, but only the `periodStart` parameter is not needed.
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
'application/x-www-form-urlencoded':
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
careprogram:
|
||||||
|
description: The kind of care program that the practice participates in.
|
||||||
|
$ref: '../schemas/CareProgram-enum.yaml'
|
||||||
|
agb:
|
||||||
|
description: The AGB of the practice (not the doctor).
|
||||||
|
$ref: '../schemas/agb.yaml'
|
||||||
|
employee:
|
||||||
|
type: string
|
||||||
|
description: The employee that is adding the practice. Any string is accepted, but it is recommended to use a employee code derived from this API.
|
||||||
|
periodEnd:
|
||||||
|
description: The end of the period of the participation. Allowed to be not set or empty, when no end date is known. If set, `periodEnd` must be at least a day after the `periodStart` which is stored for the combination of `careprogram` and `agb`.
|
||||||
|
$ref: ../schemas/date.yaml
|
||||||
|
required:
|
||||||
|
- careprogram
|
||||||
|
- agb
|
||||||
|
- employee
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: |-
|
||||||
|
If the request was successful processed a Json-object with the following properties is send back to the caller, otherwise a non 200 HTTP response.
|
||||||
|
content:
|
||||||
|
'application/json':
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
employee:
|
||||||
|
type: string
|
||||||
|
timestamp:
|
||||||
|
$ref: ../schemas/dateTime.yaml
|
||||||
|
careprogram:
|
||||||
|
$ref: '../schemas/CareProgram-enum.yaml'
|
||||||
|
agb:
|
||||||
|
$ref: '../schemas/agb.yaml'
|
||||||
|
periodStart:
|
||||||
|
$ref: ../schemas/date.yaml
|
||||||
|
periodEnd:
|
||||||
|
$ref: ../schemas/date.yaml
|
||||||
|
'401':
|
||||||
|
$ref: '../zoo-api.yaml/#/components/responses/NoAuth'
|
||||||
|
'403':
|
||||||
|
$ref: '../zoo-api.yaml/#/components/responses/NoAccess'
|
||||||
|
|
||||||
@ -1,4 +1,7 @@
|
|||||||
description: Date without time part in ISO-8601 format. Dates are processed using Java's java.util.GregorianCalender in non-lenient mode. That for example means that 2023-02-29, which was not in a leap year, is intepreted as 2023-03-01.
|
description: |-
|
||||||
|
Date without time part in ISO-8601 format.
|
||||||
|
|
||||||
|
Note on submitting dates to this API. Dates are processed using Java's java.util.GregorianCalender in non-lenient mode. That for example means that 2023-02-29, which was not in a leap year, is intepreted as 2023-03-01.
|
||||||
type: string
|
type: string
|
||||||
format: date
|
format: date
|
||||||
example: "1970-01-13"
|
example: "1970-01-13"
|
||||||
|
|||||||
Loading…
Reference in New Issue