Versions Compared

Key

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


Table of Contents

Specification

...

  • check if tax_id in DS = (SELECT parties.tax_id from party_users join parties on party_users.party_id=parties.id where party_users.user_id=$.user;)

    • in case error return error 422, "Invalid drfo in DS"

Validate User

Do reject Medication request Request allowed for User if he has following active and approved employee that:

  1. is an author of the Medication request Request (medication_request.employee_id)

  2. has an approval on write Care plan if Medication Request based on the Care plan (medication_request.based_on)

  3. is a Doctor who has declaration with the Patient.

    1. in case of error - return 409 ("Only an author, employee with approval on care plan or doctor with an active declaration with the patient can reject medication request")

Check signed content

Check that signed content contains all required fields and is equal to stored object

...