Purpose
This WS is similar to the API. Get Care Plans by search params_EN , but returns Care plan with specified requisition number for the patients Care plan to whom it belongs.
Specification
Authorization
Verify the validity of access token
Return (401, 'unauthorized') in case of validation fails
Verify that token is not expired
in case of error - return (401, 'unauthorized')
Check user scopes in order to perform this action (scope = 'care_plan:read')
Return (403, 'invalid scopes') in case of invalid scope(s)
Service logic
Service returns all Care plans with specified requisition number filtered by status if submitted:
Get all care plan by requisition from care_plans collection (MongoDB)
If submitted, filter list above by status
Render a response according to specification with found Care plan entities. Care plans should be rendered without their activities.