--- title: "Find or Get Patient" description: "Find an existing patient and choose the correct patient_id for appointments, notes, and documents." canonical_url: "http://localhost/api/quickstart/find-patient" --- # Find or Get Patient > Find an existing patient and choose the correct patient_id for appointments, notes, and documents. Use this guide to find an existing patient and choose the correct `patient_id` for follow-up requests like appointments, medical notes, and documents. ## Flow Overview ![Find Patient Flow](http://localhost/images/quickstart/find-patient.png) ## Code Example ### Shared setup #### 1. Lookup patients by demographics #### 2. Get one patient using `patient_id` ## patient_id formats The `patient_id` path parameter supports multiple formats: - `abc_12345` (treated as EHR ID) - `emr_id:abc_12345` - `se_personal_number:191212121212` - `no_personal_number:26258605879` - `nhs_number:9434765919` For full details, see [Patient IDs](http://localhost/api/guides/patient-id). ## Key Insights - For patient-specific endpoints, use supported `patient_id` formats (`emr_id:*`, `se_personal_number:*`, etc.). - Keep both `id` (Leyr) and `emr_id` (EHR) for traceability and support workflows. - Use the Patients OpenAPI tag for request/response schema details when building UI mappings. ## Next steps Create or upsert a patient record. Create appointments using a found timeslot and a patient. ## API Reference - [Patients API](https://api.leyr.io/docs#tag/Patients) - [Patient ID Guide](http://localhost/api/guides/patient-id) ## Sitemap See the full [sitemap](http://localhost/sitemap.md) for all pages.