On this page
A clinic appointment app should solve scheduling before it handles health information. Patients need to identify a doctor, choose an available visit and recover the confirmation later; reception staff need a reliable schedule. Keep the first version deliberately narrow: no symptoms, diagnoses, prescriptions, attachments or medical history. Even a minimal booking can be sensitive, so privacy and professional review remain launch requirements.
Screens
- Doctors: show clinic-approved names, specialties and appointment eligibility without inferred medical recommendations.
- Book a slot: choose a doctor’s opening and review the clinic’s visit and cancellation rules.
- My visits: list only the authenticated patient’s appointment times and cancellation state.
- Clinic information: show verified contact details, location, hours and owner-approved urgent-care guidance.
Data model
| Table | Key fields | Purpose |
|---|---|---|
| doctors | id (uuid), display_name (text), specialty_label (text), active (bool) | A clinic-managed directory, not a diagnostic matching system. |
| slots | id (uuid), doctor_id (uuid), starts_at (timestamptz), ends_at (timestamptz) | Fixed clinic availability without public patient identifiers. |
| appointments | id (uuid), patient_id (uuid), slot_id (uuid), status (text), created_at (timestamptz) | Minimal reservation records with no clinical notes field. |
| clinic_staff | user_id (uuid), clinic_id (uuid), role (text) | Explicit receptionist and scheduling authority. |
Patients may read and cancel only their own eligible appointments; authorized reception staff may access the scheduling records their role requires. Apply backend row-level security and verify it through direct unauthorized requests, not just screen navigation. Use a unique constraint on the active slot reservation and a server transaction for booking or cancellation. Never expose patient identity through public availability responses, analytics events or notification previews. Ask the clinic to specify retention, deletion, consent language and administrative access before storing real appointments.
Reception access should be reviewed when a staff member changes duties or leaves the clinic, not just at account creation. Test sign-out on a shared reception device and ensure a different user cannot navigate backward into the previous patient view. Document who receives access complaints and handles deletion requests.
Native features
Clinic scheduling benefits from discreet visit reminders and directions to the clinic entrance, not access to a patient's health database. NotificationManager or UserNotifications can display neutral reminder wording chosen by the clinic. Opening the supplied destination through an Android map intent or MapKit need not require the patient's current location. Avoid exporting doctor specialty or patient identity into another app without explicit consent. A declined reminder must leave the visit visible inside My visits. These implementation choices reduce unnecessary disclosure, but they are not a substitute for the clinic's privacy and regulatory review.
Android notes (Kotlin and Jetpack Compose)
Use a LazyColumn of doctors keyed by doctor ID and Material 3 filter chips for clinic-approved specialties. A scoped ViewModel should separate directory data from the authenticated patient's reservations. Navigation Compose routes need opaque visit IDs; never put patient names in route strings or debug logs. A confirmation ModalBottomSheet should show the clinic address and cancellation policy without soliciting symptoms. On a shared Android phone, sign out while a visit detail is open, sign in as a different patient, and press Back. No previous visit should reappear. Inspect the locked screen when a test reminder arrives to confirm the approved neutral wording.
iPhone notes (Swift and SwiftUI)
A SwiftUI NavigationStack can separate the public clinician directory from a patient-only List of visits. Reset both the navigation path and the patient store when the session changes; any SwiftData cache needs a deliberate retention policy before real patient use. Offer directions through MapKit with the clinic's entrance coordinate and a readable address fallback. Request UserNotifications authorization from an explanation sheet rather than on first launch. Test an iPhone with very large text and notifications disabled: select a long clinician name, book the final slot, and confirm the full time and cancellation terms remain readable without a reminder or truncated label.
Copy-paste prompt
Build a clinic appointment app for Android with Doctors, Book a slot, My visits and Clinic information. Limit data to doctors, fixed availability, patient-owned reservations and clinic staff roles. Do not collect medical records, symptoms, diagnoses, prescriptions or uploaded reports in version one. Ask for clinic time zone, opening hours, cancellation deadlines, consent wording, retention policy and authorized scheduling roles. Require a professional healthcare privacy and compliance review before real patient use. Prevent double booking with a unique active-slot constraint and server transaction; patient identity must never appear in public availability. Include loading, no openings, session expired, booking conflict, connection error and denied reminder access. Use neutral notification text and no medical interpretation. Acceptance requires reserving a visit, reopening it and confirming that only the patient and authorized clinic staff can read it; another patient’s direct request must fail.
Opens Apirex with this prompt in the box. Pick the Android · Kotlin tab before you send.
Acceptance test
- Enter a clinic-approved doctor profile and one opening in the clinic’s named time zone, without entering any real patient information.
- Reserve that opening as test patient A, then submit the same slot as patient B and require a single successful confirmation.
- Close the app, reopen My visits and check patient A’s appointment against the authorized receptionist’s schedule.
- Request patient A’s appointment identifier using patient B’s session and an unauthenticated request; neither response may reveal the booking details.
- Deny reminders and inspect lock-screen text after opting in later; verify that cancellation after the clinic’s stated cutoff is rejected on the backend.
Frequently asked questions
Does avoiding medical records make this automatically compliant?
It does not: appointment metadata can itself reveal sensitive information. Obtain qualified professional review of applicable healthcare privacy, security, consent and retention obligations before accepting real patients; this brief does not provide legal certification.
Can parents book for their children?
Do not infer guardian authority from a matching surname or shared device. Dependent scheduling needs an explicit guardian-consent and access model, plus review of children’s data obligations, before it is added to this patient-only scope.
Should patients describe their symptoms when booking?
Leave symptom entry out of this first release, including free-text notes that could become an unintended medical record. Use clinic-approved service labels only if necessary, and route urgent medical concerns through guidance supplied by the clinic rather than generated triage advice.
Build this blueprint
The blueprint prompt, ready for your platform. Edit anything before you send it.
Opens Apirex with this prompt. Pick the Android · Kotlin tab before you send. The Free plan includes 5 Rex Credits a day.