Skip to main content

Overview

The Waitlist Management system allows ARCA to efficiently manage people waiting to begin treatment. The waitlist is publicly accessible for registration, while clinic staff can view, manage, and process entries through the dashboard.

How the Waitlist Works

The waitlist operates on a first-come, first-served basis:
  • Each entry receives a unique ID upon registration
  • Position is determined by registration date and time (createdAt)
  • Earlier registrations have priority over later ones
  • Each entry has an active/inactive status (isActive)
  • Only active entries count toward queue position
The waitlist ID is a UUID that registrants can use to check their position. Keep this ID safe - it’s the only way to track position without staff assistance.

Public Registration

People can register for the waitlist through ARCA’s public-facing form without needing an account.

Registration Process

1

Access the Registration Form

Navigate to the public waitlist registration page at /lista-espera/cadastro.
2

Section 1: Personal Information

Enter:
  • Registered Name: Full legal name (required, up to 150 characters)
  • Social Name: Preferred name if different (optional, up to 100 characters)
  • Birth Date: Select from calendar picker (required)
  • Personal Phone: Contact number in format (11) 99999-9999 (required)
  • Emergency Contact: Alternative phone number (required)
3

Section 2: Address

Complete the address fields:
  • Street name and number
  • Neighborhood
  • City
  • State (2-letter code, e.g., “SP”)
  • CEP (postal code, 8 digits only, e.g., “12345678”)
4

Section 3: Complementary Information

Select from dropdown menus:
  • Gender: Masculine, Feminine, Non-binary, or Prefer not to say
  • Skin Color: White, Black, Brown, Yellow, Indigenous, or Prefer not to say
  • Education Level: From incomplete elementary through doctorate
5

Submit Registration

Click Send Registration to submit. The system validates all required fields before accepting.
6

Save Waitlist ID

After successful registration, a green alert displays with your unique waitlist ID. Save this ID - you’ll need it to check your position later.

Registration Validation

The form validates:
  • Required fields are not empty
  • Name fields respect character limits (150 for registered name, 100 for social name)
  • Phone numbers are in valid format (up to 20 characters)
  • State is exactly 2 letters
  • CEP is exactly 8 numeric digits
  • Birth date is not in the future
The CEP field only accepts numbers. If you paste a formatted CEP like “12345-678”, the system automatically removes the hyphen.

Staff Waitlist Dashboard

Clinic staff access the waitlist through /dashboard/lista-espera.

Viewing the Waitlist

The dashboard displays all waitlist entries in a table with:
  • Name: Registered name with social name in parentheses if provided
  • Birth Date: Formatted as DD/MM/YYYY
  • Phone: Personal contact number
  • Status: Active (green badge) or Inactive (red badge)
  • Registration Date: When they joined the waitlist
  • Actions: View, Edit, and Delete buttons

Statistics Display

At the top of the waitlist table, you’ll see:
  • Total: All entries in the system
  • Active: Currently active entries in the queue
  • Inactive: Entries marked as inactive
  • Displaying: Number of filtered results (when filters are applied)

Search and Filtering

The search field finds entries by:
  • Registered name (partial matches)
  • Social name (partial matches)
  • Phone number (exact or partial)
  • City name
  • Neighborhood name

Status Filter

Filter the list by:
  • All Status: Shows both active and inactive entries
  • Active Only: Shows people currently in the queue
  • Inactive Only: Shows people removed from the queue
Search and filters work together. For example, searching for “João” with “Active Only” filter shows only active entries matching “João”.

Managing Waitlist Entries

Viewing Details

1

Click the Eye Icon

In the Actions column, click the eye icon for any entry.
2

Review Information

A dialog displays complete information organized in sections:
  • Personal Information: Names, birth date, status
  • Contacts: Personal phone and emergency contact
  • Address: Full formatted address with CEP
  • System Information: Waitlist ID and exact registration timestamp
3

Close Dialog

Click Close or press Escape to return to the list.

Editing an Entry

Staff can update waitlist information:
1

Click the Edit Icon

Click the pencil icon in the Actions column.
2

Update Fields

The edit dialog contains three sections matching the registration form:
  • Personal Information (name and social name)
  • Contacts (both phone numbers)
  • Address (all address fields)
3

Save Changes

Click Save Changes. The entry updates immediately in the table.
Editing a waitlist entry does NOT change their position. Position is based on original registration time and cannot be modified.

Deleting an Entry

Remove someone from the waitlist:
1

Click the Delete Icon

Click the red trash icon in the Actions column.
2

Confirm Deletion

A confirmation dialog appears showing the person’s name. This action cannot be undone.
3

Click Delete

Click the red Delete button to permanently remove the entry, or Cancel to keep it.
Deletion is permanent and cannot be undone. Consider marking entries as inactive instead if you want to preserve the record.

Checking Waitlist Position

People with a waitlist ID can check their position:
  1. Navigate to /lista-espera/consulta
  2. Enter the waitlist ID provided during registration
  3. Click Check Position
  4. The system displays:
    • Current position in the queue
    • Status (Active or Inactive)
    • Registration date

Position Calculation

Position is calculated by:
  1. Counting all active entries with an earlier createdAt timestamp
  2. Adding 1 to get the current position
  3. Inactive entries are not counted in the queue
Example: If 50 people registered before you and all are still active, your position is 51.

Waitlist Statistics

The /waitlist/stats endpoint provides:
  • Total Queue Length (qntFila): Number of people in the waitlist
  • Last Update (ultimaAtualizacao): Timestamp of the most recent entry
This data is displayed on the public registration page to give transparency about current wait times.

Converting to Active Patient

When a waitlist entry is ready to begin treatment:
1

Review Entry Details

Open the waitlist entry and verify all information is current.
2

Contact the Person

Use the phone number to contact them and schedule an intake appointment.
3

Create Patient Record

In Patient Management, create a new patient record using the information from the waitlist entry:
  • Copy demographic information
  • Assign an intern and supervisor
  • Set the treatment start date
4

Mark as Inactive or Delete

Either mark the waitlist entry as inactive or delete it to remove them from the active queue.
Currently, waitlist-to-patient conversion is a manual process. Copy the information carefully to ensure accuracy in the patient record.

Data Privacy

Waitlist data handling:
  • Public Access: Anyone can register and check their own position with their ID
  • Staff Access: All authenticated users can view and manage the complete waitlist
  • Data Storage: Entries remain in the system even when deleted (soft delete with timestamps)
  • Audit Trail: All staff actions on waitlist entries are logged

Best Practices

Review the waitlist weekly to:
  • Verify contact information is still valid
  • Identify the next candidates for treatment
  • Remove duplicate entries
  • Update any changed information
When contacting people from the waitlist:
  • Identify yourself and the clinic clearly
  • Explain their position and estimated wait time honestly
  • Confirm their continued interest in treatment
  • Update their contact information if it has changed
Use the active/inactive status effectively:
  • Keep entries active if they’re still waiting
  • Mark as inactive if they decline treatment, become unreachable, or convert to patients
  • Don’t delete entries unnecessarily - inactive status preserves the data
If someone registers multiple times:
  • Keep the earliest entry (it has priority)
  • Contact them to confirm which contact information is correct
  • Delete or mark newer duplicate entries as inactive

Waitlist Fields Reference

FieldTypeRequiredMax LengthNotes
nomeRegistroStringYes150Legal/registered name
nomeSocialStringNo100Preferred/social name
dataNascimentoDateYes-Cannot be in the future
telefonePessoalStringYes20Primary contact phone
contatoEmergenciaStringYes20Emergency contact phone
enderecoRuaStringYes255Street address
enderecoNumeroStringYes10Address number
enderecoBairroStringYes100Neighborhood
enderecoCidadeStringYes100City name
enderecoEstadoStringYes2State code (e.g., “SP”)
enderecoCEPStringYes8Postal code (numbers only)
id_GeneroIntegerYes-Gender ID (1-4)
id_CorPeleIntegerYes-Skin color ID (1-6)
id_EscolaridadeIntegerYes-Education level ID (1-9)
isActiveBoolean--Auto-set to true
createdAtDateTime--Auto-generated timestamp

Build docs developers (and LLMs) love