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:
is an author of the Medication request Request (medication_request.employee_id)
has an approval on write Care plan if Medication Request based on the Care plan (medication_request.based_on)
is a Doctor whohas declarationwith the Patient.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
...