...
Validate digital sign as described on sign patient request process
Check signed content
Check decoded signed content with previously created on IL.db.
|
In case if they are not equal - generate 422 error (message: "Signed content does not match the previously created content")
Generate data for sign and compare it with information from il.merge_requests.data
In case if they are not equal - generate 422 error (message: "Created content has been changed")
Validate schema
Validate request using schema (TBD)
...