v1
latestOpenAPI 3.0.02026-07-14225552.2 KBconsent
Create consent request
Creates a consent request to get data about a patient by HIU user. CM should call Gateway - /v0.5/consent-requests/on-init API with the consent-request-id
post/v0.5/consent-requests/init
Headers
Authorizationstring required
Access token which was issued after successful login with gateway auth server.
Request body
Example request
{
"consent": {
"careContexts": [
{
"careContextReference": "Episode1",
"patientReference": "batman@tmh"
}
],
"patient": {
"id": "hinapatel79@ndhm"
},
"requester": {
"identifier": {
"system": "https://www.mciindia.org",
"type": "REGNO",
"value": "MH1001"
},
"name": "Dr. Manju"
}
},
"requestId": "499a5a4a-7dda-4f20-9b67-e24589627061"
}Response
Request Accepted