Table of Contents | ||||
---|---|---|---|---|
|
...
Verify the validity of access token
in case of error return 401 ('Access denied')
Check user scope diagnostic_report:write in order to perform this action
in case of error generate 403 response ('Invalid scopes')
Request to process the request using a token in the headers
Headers*
Наприклад:
Content-Type:application/json
Authorization:Bearer mF_9.B5f-4.1JqM
...
DS must be valid
The document must be signed by recorder
Select PRM.parties.tax_id from PRM where PRM.parties.id ==( Select PRM.employees.party_id where PRM.employees.id==$.diagnostic_report.recorded_by.identifier.value)
ds.drfo == select a
in case of error retuert 409 "Document must be signed by the recorder of the diagnostic_report"
Recorder must be a current user
$.diagnostic_report.recorded_by.identifier.value is one of current user's employee
in case of error return 409 "Document must be sent by the recorder of the diagnostic_report"
...