Table of Contents |
---|
Purpose
...
Page Properties | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Logic
Method receives signed message (pkcs7) including signed content, digital signature and signer public key in signed_content
property. All signature fields will be validated (including signer certificate authority).
...
Signed content MUST consists of JSON object with Medication request Request data. Object that need to be signed is returned by Get medication request requests details response, JSON.Path: $.data
.
Important: Invoke Get Medication request Request by ID to obtain seed - Hash of previous block in Medication request Request chain or other random component that should be signed with Medication request Request.
Look at Dummy Sign Medication Request Requests for more details.
Preconditions
...
Get url for medication request upload. Use Request a Secret WS (need check actuality !!!)
ParameterSourceaction 'GET' bucket 'medication-request-requests' resource_id : MEDICATION_REQUEST_ID resource_name : MEDICATION_REQUEST_NAME Upload signed medication request request to media storage
...
Medication request form example: medication_request_form.docx
Update Medication Request Request status
...
Get authentication_method of MPI
If authentication_method == OTP - send SMS:
Generate text SMS (call Manmethod- templates rendering service with template "TEMPLATE_SMS_FOR_SIGN_MEDICATION_REQUEST" (!!! TBD).
Sending SMS for MPI via service .... (!!! TBD)
Response structure
See on Apiary
...
HTTP status code | Message | What caused the error |
---|---|---|
200 | Response |
|
401 | Unauthorized Error |
|
422 | Error |
Backward compatibility
API paragraph not found
...