From 5ff8584156509b48da006adf4febc63e3c9e1d93 Mon Sep 17 00:00:00 2001 From: Wendy Date: Mon, 21 Oct 2024 01:58:14 -0700 Subject: [PATCH] Update initial physician input --- client/src/pages/patients/PatientRegistration.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/pages/patients/PatientRegistration.jsx b/client/src/pages/patients/PatientRegistration.jsx index 46225133..a528fa66 100644 --- a/client/src/pages/patients/PatientRegistration.jsx +++ b/client/src/pages/patients/PatientRegistration.jsx @@ -47,7 +47,6 @@ export default function PatientRegistration() { codeStatus: false, }); const [unvisitedSections, setUnvisitedSections] = useState([]); - const { patientId } = useParams(); const navigate = useNavigate(); const location = useLocation(); @@ -175,7 +174,9 @@ export default function PatientRegistration() { setInitialPhysicianData({ id: physician ? physician.id : '', - name: physician ? `${physician.firstName} ${physician.lastName}` : '', + name: physician + ? `${physician.firstName} ${physician.lastName} ${physician.phone ? `${physician.phone} ` : ''}- ${physician.hospitals[0]?.name || ''}` + : '', }); const patientData = {