make a prototype frontend based on this mermaid diagramsequenceDiagram  participant Usuario  participant Frontend  participant Backend  Usuario->>Frontend: Ingresar número de teléfono  Frontend->>Backend: Verificar número (¿Paciente existente?)    alt Paciente existente    Backend-->>Frontend: Retorna JWT temporal    Frontend->>Usuario: Mostrar calendario y horarios disponibles    Usuario->>Frontend: Selecciona fecha y hora    Frontend->>Backend: Enviar solicitud de cita (con JWT)    Backend-->>Frontend: Confirmación de cita    Frontend-->>Usuario: Mostrar confirmación  else Paciente nuevo    Backend-->>Frontend: Indicar "Paciente nuevo"    Frontend->>Usuario: Solicitar datos del paciente    Usuario->>Frontend: EnvÃa datos personales    Frontend->>Backend: Registrar paciente    Backend-->>Frontend: Retorna JWT temporal    Frontend->>Usuario: Mostrar calendario y horarios disponibles    Usuario->>Frontend: Selecciona fecha y hora    Frontend->>Backend: Enviar solicitud de cita (con JWT)    Backend-->>Frontend: Confirmación de cita    Frontend-->>Usuario: Mostrar confirmación  end
I'll create a prototype frontend based on your medical appointment booking system sequence diagram. This will implement the complete flow from phone number verification to appointment confirmation.
I've created a complete prototype frontend that implements the medical appointment booking flow from your sequence diagram. Here's what the system includes:
+1234567890 to simulate an existing patient (MarÃa GarcÃa)The prototype uses modern UI components and follows the exact sequence from your diagram, making it perfect for demonstrations and further development.
can you add a validation if this phone number exits, just jump to the booking screen "+503 76501035"
I'll add validation for the phone number "+503 76501035" so it jumps directly to the booking screen as an existing patient.
Perfect! Now when you enter the phone number "+503 76501035", the system will recognize it as an existing patient (Carlos Mendoza) and jump directly to the calendar selection screen, skipping the registration form.
The validation works by checking the phone number against the mock database of existing patients, and if found, it generates a temporary JWT and proceeds to the booking screen with the patient's information already loaded.