...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Table of Contents | ||||
---|---|---|---|---|
|
Purpose
This WS is designed to update previously created healthcare service for the division of legal entity.
Key points
Only authenticated and authorized user with an appropriate scope can update healthcare service.
Healthcare service can be updated for PRIMARY_CARE, EMERGENCY, OUTPATIENT or PHARMACY legal entity.
Healthcare service can be updated for legal entities in ACTIVE or SUSPENDED statuses.
Only active healthcare service can be updated.
Only comment, available_time, restricted_periods fields can be updated.
Specification
Page Properties | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Logic
Update healthcare service in healthcare_services table (PRM DB) with data from request and additional fields:
comment = $.comment;
available_time = $.available_time;
not_available = $.not_available;
updated_at = now();
updated_by = user_id from access token.
Preconditions
API paragraph not found
Global and configurable parameters
NoHealthcare services hould be created
Input parameters
Input parameter | Values | Type | Description | Example |
---|---|---|---|---|
id | String | Healthcare service identifier. Optional. | d290f1ee-6c54-4b01-90e6-d701748f0851 |
Filters
No
Dictionaries
...
Request structure
...
Example:
Expand | ||
---|---|---|
| ||
|
...
Check that each object in not_available array has a valid period in $.not_available.during. during.end must be greater than during.start
in case of error - return 422 (“Should be greater then start“).
Processing
...
Response structure
See on Apiary
...
Expand | ||
---|---|---|
| ||
|
Post-processing processes
...
HTTP status codes
Page Properties | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Backward compatibility
...