- {isEditable && !patient ? (
- <>
-
-
{
- onAppointmentChange({ ...appointment, patientId: p[0].id })
- }}
- onSearch={async (query: string) => PatientRepository.search(query)}
- searchAccessor="fullName"
- renderMenuItemChildren={(p: Patient) => (
- {`${p.fullName} (${p.friendlyId})`}
- )}
- />
- >
- ) : (
-
- )}
+
+ onFieldChange && onFieldChange('patientId', p[0].id)}
+ onSearch={async (query: string) => PatientRepository.search(query)}
+ searchAccessor="fullName"
+ renderMenuItemChildren={(p: Patient) => (
+ {`${p.fullName} (${p.friendlyId})`}
+ )}
+ />