register_patient
Register a new patient by name and phone, or retrieve the existing record if the phone number is already on file, avoiding duplicate registrations.
Instructions
Register a new patient, or return the existing record for that phone number.
Call find_patient first. If the phone number is already on file this returns
that patient with created: false instead of creating a duplicate — so a repeat
caller keeps one history rather than several.
Confirm the spelling of the name and the phone number with the caller before calling this.
Args: name: Full name as the patient gives it. phone: Any common format; '+91 98765-43210' and '+919876543210' are treated as the same number. dob: 'YYYY-MM-DD', optional but useful for distinguishing same-name patients. notes: Anything the front desk should remember. Not clinical notes.
Example: register_patient(name="Rajesh Shah", phone="+919876543210", dob="1968-04-12")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dob | No | ||
| name | Yes | ||
| notes | No | ||
| phone | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||