journey

Get a patient's journey (admin)

Admin/customer_care view of a specific patient's journey, rendered exactly as that patient sees it (phases and steps, no contents). Useful to debug ordering/status issues on a specific account.

get/api/journey/patients/{patient_id}

Path parameters

patient_idstring uuid required

Patient UUID

Patient UUID

Response

Successful Response

current_phase_codestring nullable

Current phase code based on appointments

psi_statusstring nullable

Current psychologist status from patient_status_at_date

nutri_statusstring nullable

Current nutritionist status from patient_status_at_date

total_stepsinteger required

Total number of steps in the journey

completed_stepsinteger required

Number of completed steps

completed_appointmentsinteger required

Number of completed appointments (FATTO)

has_valid_appointmentsboolean required

True if patient has at least one valid appointment. Frontend uses this to decide preview position: sotto video Giulia/Zaira (false) or sotto frase giornaliera (true)

Example response

{
  "completed_appointments": 4,
  "completed_steps": 3,
  "current_phase_code": "initial",
  "has_valid_appointments": true,
  "nutri_status": "attivo",
  "phases": [],
  "psi_status": "attivo",
  "total_steps": 12
}

Changes

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