Patient Information
Heidi allows you to provide patient information for the current patient. When providing patient information as params
to Heidi.open()
or Heidi.setPatient(), you should use this
format:
Please note, all fields are optional however providing them will add more contextual information when generating notes
PatientInfo
| Attribute | Type | Required |
|---|---|---|
id | string | Yes |
name | string | No |
firstName | string | No |
lastName | string | No |
gender | "male" | "female" | "other" | "unknown" | No |
dob | string as YYYY-MM-DD | No |
Note:
- When
firstNameand/orlastNameare provided, they take precedence over parsing thenamefield. This is useful for EHR systems that provide structured name data or use formats like "LastName, FirstName" that are difficult to parse reliably. - The
dobfield only accepts dates inYYYY-MM-DDformat (e.g., "1990-05-15"). Other date formats are not supported and will be rejected. - At runtime,
gendervalues are parsed case-insensitively and trimmed; we recommend using lowercase literals to satisfy TypeScript.
TypeScript Interface
interface PatientInfo {
id: string;
name?: string;
firstName?: string;
lastName?: string;
gender?: "male" | "female" | "other" | "unknown";
dob?: string;
}