mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage
synced 2026-05-18 20:08:19 +00:00
fix(enquiry-form): set name on createPatient
Patient records created from the enquiry form now get a platform title from the typed name. Cosmetic fix — frontend was already showing the fullName, only platform admin browsing showed "Untitled". Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -115,6 +115,7 @@ export const EnquiryForm = ({ isOpen, onOpenChange, callerPhone, leadName, leadI
|
|||||||
try {
|
try {
|
||||||
const phoneE164 = registeredPhone ? `+91${registeredPhone.replace(/^\+?91/, '').replace(/\D/g, '').slice(-10)}` : undefined;
|
const phoneE164 = registeredPhone ? `+91${registeredPhone.replace(/^\+?91/, '').replace(/\D/g, '').slice(-10)}` : undefined;
|
||||||
const patientData: Record<string, any> = {
|
const patientData: Record<string, any> = {
|
||||||
|
name: trimmedName,
|
||||||
fullName: nameParts,
|
fullName: nameParts,
|
||||||
patientType: 'NEW',
|
patientType: 'NEW',
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user