consents

Get consents for CSV export

Returns consents with given statuses (multi-value ?status=) with full patient/operator join.

get/api/consents/export

Query parameters

statusstring[] required

Response

Successful Response

idstring uuid required
patient_idstring uuid nullable
operator_idstring uuid nullable
consent_type'psychological' | 'nutritional'

Informed consent type constants.

status'draft' | 'pending_otp' | 'pending_approval' | 'revision_required' | 'verified' | 'expired' | 'revoked'

Informed consent status constants.

form_dataobject nullable
created_atstring date-time nullable
verified_atstring date-time nullable
expires_atstring date-time nullable
rejected_atstring date-time nullable
rejection_reasonstring nullable
otp_codestring nullable
otp_expires_atstring date-time nullable
otp_attemptsinteger nullable
otp_locked_untilstring date-time nullable
otp_verified_atstring date-time nullable
email_sent_atstring date-time nullable
guardian_namestring nullable
guardian_relationshipstring nullable
consent_pdf_signed_atstring date-time nullable
revision_type'documents' | 'signed_pdf'

Revision type requested after minor consent rejection.

Changes

No recorded changes to this endpoint across all 1 revision of this API.