getPatientConsents
Returns list of all patient consents for either a single patient or a single project, optionally filtered by additional properties.
Results are restricted to consents for projects added by the caller's organization.
To ensure system performance, queries must be filtered by at least one of patientId, patientMRN, email, phone, externalId, or projectId.
Only one patient identifier should be provided at a time.
| Request Body — REQUIRED |
|---|
consentTypes string[] — REQUIREDPossible values: [ The type of consent to search for. See documentation for more details on each type. |
hasConsented boolean[]Include to change whether to search for only for patients who have consented (the default), patients who have not consented, or both. |
patientId stringInclude to search for only a single patient's consents. This must be a valid HealthEx patient reference id. Only one patient identifier may be included. |
patientMRN stringInclude to search for only a single patient's consents. This must be a valid patient Medical Record Number. Only one patient identifier may be included. |
email stringInclude to search for only a single patient's consents. This must be a valid patient email address. Only one patient identifier may be included. |
phone stringInclude to search for only a single patient's consents. This must be a valid patient phone number. Only one patient identifier may be included. |
externalId stringInclude to search for only a single patient's consents. This must be a valid patient external identifier. Only one patient identifier may be included. |
studyId stringInclude to search only for consents for a specific study. |
expiredConsents booleanInclude to search for expired consents. |
includeReason booleanInclude to compute and return the reason for each consent decision. |
| Responses | ||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
200Returns all matching consent records, grouped by patient
|