v1

latestOpenAPI 3.0.02026-07-14327580.4 KB
Gateway

Create consent request

Creates a consent request to get data about a patient by HIU user.

post/v0.5/consent-requests/init

Headers

Authorizationstring required

Access token which was issued after successful login with gateway auth server, which will be sent by gateway to authenticate itself with API bridge.

X-CM-IDstring required

Suffix of the consent manager to which the request was intended.

Request body

requestIdstring uuid required

a nonce, unique for each HTTP request.

timestampstring date-time required

Date time format in UTC, includes miliseconds YYYY-MM-DDThh:mm:ss.vZ

Example request

{
  "consent": {
    "careContexts": [
      {
        "careContextReference": "Episode1",
        "patientReference": "batman@tmh"
      }
    ],
    "patient": {
      "id": "hinapatel@ndhm"
    },
    "requester": {
      "identifier": {
        "system": "https://www.mciindia.org",
        "type": "REGNO",
        "value": "MH1001"
      },
      "name": "Dr. Manju"
    }
  },
  "requestId": "499a5a4a-7dda-4f20-9b67-e24589627061"
}

Response

Request Accepted