consents

Get informed consent template

Deprecated: use GET /consents/v2/template. Returns the template including the legacy tax data transmission checkbox.

get/api/consents/template

Query parameters

consent_type'psychological' | 'nutritional' required

Informed consent type constants.

operator_idstring uuid required

Response

Successful Response

consent_type'psychological' | 'nutritional' required

Informed consent type constants.

operator_idstring uuid required

Operator UUID

operator_professionstring required

Operator profession (PSICOLOGO, NUTRIZIONISTA)

titlestring required

Consent title

full_textstring required

Full consent text with placeholders {}

Example response

{
  "checkboxes": [
    {
      "description": "Visto e compreso...",
      "id": "consent_given",
      "label": "FORNISCO IL CONSENSO",
      "required": true
    }
  ],
  "consent_type": "psychological",
  "fields": [
    {
      "editable": true,
      "id": "first_name",
      "label": "Nome",
      "required": true,
      "type": "text"
    },
    {
      "editable": true,
      "id": "gp_first_name",
      "label": "Nome medico curante",
      "required": false,
      "type": "text"
    }
  ],
  "full_text": "Io sottoscritto/a {first_name} {last_name}...",
  "operator_id": "123e4567-e89b-12d3-a456-426614174000",
  "operator_profession": "PSICOLOGO",
  "prefilled_data": {
    "first_name": "Mario",
    "last_name": "Rossi",
    "operator_name": "Dr. Luigi Bianchi",
    "tax_code": "RSSMRA90C15F205X"
  },
  "title": "Consenso Informato Psicoterapia"
}

Changes