consents
Create or update informed consent
Deprecated: use POST /consents/v2. Submit informed consent form including the legacy tax data transmission consent, which also sets patients.deduction.
post/api/consents
Request body
Example request
{
"consent_type": "psychological",
"form_data": {
"birth_date": "15/03/1990",
"birth_place": "Milano",
"consent_given": true,
"first_name": "Mario",
"gdpr_consent": true,
"last_name": "Rossi",
"residence": "Via Roma 123, Milano (MI)",
"tax_code": "RSSMRA90C15F205X",
"tax_data_consent": true
},
"operator_id": "123e4567-e89b-12d3-a456-426614174000"
}Response
Successful Response
Example response
{
"consent_id": "123e4567-e89b-12d3-a456-426614174001",
"message": "Modulo consenso inviato. OTP inviato alla tua email.",
"next_action": "verify_otp",
"status": "pending_otp"
}