Skip to content

Commit

Permalink
Update initial physician input
Browse files Browse the repository at this point in the history
  • Loading branch information
Wendy authored and Wendy committed Oct 21, 2024
1 parent 98c96aa commit 5ff8584
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/src/pages/patients/PatientRegistration.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export default function PatientRegistration() {
codeStatus: false,
});
const [unvisitedSections, setUnvisitedSections] = useState([]);

const { patientId } = useParams();
const navigate = useNavigate();
const location = useLocation();
Expand Down Expand Up @@ -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 = {
Expand Down

0 comments on commit 5ff8584

Please sign in to comment.