Skip to main content

webhooks

The patient's decision, sent to the record holder

The same decision sent to the system that holds the records, with all care context references.

POST/api/v3/consent/request/hip/notify

status only ever carries GRANTED, REVOKED or EXPIRED on this callback.

Authorizations

Authorizationbearer tokenRequired

The accessToken from POST /api/hiecm/gateway/v3/sessions. Send it as Authorization: Bearer <ACCESS_TOKEN>.

Body

statusstringRequired

The values actually sent to a HIP on this callback.

One of GRANTEDREVOKEDEXPIRED

consentIdstringRequired
consentDetailobjectRequired
consentDetail.schemaVersionstringRequired
consentDetail.consentIdstringRequired
consentDetail.createdAtstringRequired
consentDetail.patientobjectRequired
consentDetail.patient.idstringRequired
consentDetail.careContextsobject[]Required
consentDetail.careContexts.patientReferencestringRequired
consentDetail.careContexts.careContextReferencestringRequired
consentDetail.purposeobjectRequired
consentDetail.purpose.textstringRequired
consentDetail.purpose.codestringRequired
consentDetail.purpose.refUristringRequired
consentDetail.hipobjectRequired
consentDetail.hip.idstringRequired
consentDetail.hip.namestringRequired
consentDetail.hip.typestring
consentDetail.hiuobjectRequired
consentDetail.hiu.idstringRequired
consentDetail.hiu.namestringRequired
consentDetail.hiu.typestring
consentDetail.consentManagerobjectRequired
consentDetail.consentManager.idstringRequired
consentDetail.requesterobjectRequired
consentDetail.requester.namestringRequired
consentDetail.requester.identifierobjectRequired
consentDetail.requester.identifier.valuestringRequired
consentDetail.requester.identifier.typestringRequired
consentDetail.requester.identifier.systemstringRequired
consentDetail.hiTypesobject[]Required
consentDetail.permissionobjectRequired
consentDetail.permission.accessModestringRequired

One of VIEWSTOREQUERYSTREAM

consentDetail.permission.dateRangeobjectRequired
consentDetail.permission.dateRange.fromstring

Start of the data access window

consentDetail.permission.dateRange.tostring

End of the data access window

consentDetail.permission.dataEraseAtstringRequired

Consent expiry, after this the HIU must delete the data

consentDetail.permission.frequencyobjectRequired
consentDetail.permission.frequency.unitstring

One of HOURDAYWEEKMONTHYEAR

consentDetail.permission.frequency.valueinteger

Frequency value

consentDetail.permission.frequency.repeatsinteger

Number of repeats (0 = unlimited during consent period)

signaturestringRequired

Base64-encoded digital signature of the consent artefact.

grantAcknowledgementbooleanRequired

Required; no further semantics are documented for this field beyond the boolean value.

Responses

200

Your bridge acknowledged the callback with 200 OK. The gateway validates the body you send back, so a 200 carrying the wrong body is still a failure.

Where this fits

hiecm-m3.yaml declares this callback at module level and names no call against it. Which call produces it is not documented, so this page does not say.