Ga naar hoofdinhoud

Respondents

Respondents are people that fill out questionnaires. The default respondent is the patient, but there's also profess, parent, second_parent, teacher and caregiver.

  • In the future second_parent will be merged into parent.
  • You won't see a profess respondent, since you can't send out to professionals, since there isn't usually just one.

Get a single respondent

GET /api/v1/dossier/:epd_id/respondents/:id

Response

Sample request

GET /api/v1/dossiers/epd_id_2/respondents/2
Status: 200 OK
{
"id": 2,
"label": "Patiënt",
"respondent_type": "patient"
}

Response Attributes

NameTypeDescription
idintegerId uniquely identifying the respondent.
labelstringNon-identifying name for the respondent (e.g. history teacher)
respondent_typestringpatient, parent, second_parent, teacher or caregiver.

Get all respondents for a dossier

GET /api/v1/dossier/:epd_id/respondents

Returns an array of hashes of the same format as show.