Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Specification

Schema

Features - add service to group

Features - add service to group

Authorize

  1. Check user scope (scope = 'service_catalog:write') in order to perform this action
    1. In case error - generate 401 response

...

    1. if invalid  - return 409 eror (message: "Service/Service group should be active !")

Validate PK Service/Service group

...

  1. Check exist Service/Service group by $.id.

    1. if invalid - return 404 error (message: "Service/Service group is not found!")

Validate uniqueness active connection Service with Service group

...

  1. When add service to group and this Service group included in program service, check that Service included in this program service
    1. if invalid - return 422 error (message: "Service should be included in all medical programs which ServiceGroup included in")
  2. When deactivate service from program service, check that Service group (in which service included) don't included in this program service

    1. if invalid - return 422 error (message: "Service should be removed from ServiceGroup which included in this medical programsprogram")