ЕСОЗ - публічна документація
Register New Declaration
- Check existence of $doctor_id and is_active = true.
- If doesn't exist - return error
- Check existence of $msp_id and is_active = true.
- If doesn't exist - return error
- Create new declaration record
- Default Declaration status = "PENDING_SIGNATURE"
TODO: deactivate old declaration.
ЕСОЗ - публічна документація