feat(procedureCodes-dialog) - v2 done
This commit is contained in:
@@ -146,9 +146,13 @@ export default function ClaimsPage() {
|
||||
|
||||
// case1: - this params are set by pdf extraction/patient page or either by patient-add-form. then used in claim page here.
|
||||
const [location] = useLocation();
|
||||
const { newPatient } = useMemo(() => {
|
||||
|
||||
const { newPatient, mode } = useMemo(() => {
|
||||
const params = new URLSearchParams(window.location.search);
|
||||
return { newPatient: params.get("newPatient") };
|
||||
return {
|
||||
newPatient: params.get("newPatient"),
|
||||
mode: params.get("mode"), // direct | manual | null};
|
||||
};
|
||||
}, [location]);
|
||||
|
||||
const handleNewClaim = (patientId: number, appointmentId?: number) => {
|
||||
@@ -532,6 +536,7 @@ export default function ClaimsPage() {
|
||||
<ClaimForm
|
||||
patientId={selectedPatientId}
|
||||
appointmentId={selectedAppointmentId ?? undefined}
|
||||
autoSubmit={mode === "direct"}
|
||||
onClose={closeClaim}
|
||||
onSubmit={handleClaimSubmit}
|
||||
onHandleAppointmentSubmit={handleAppointmentSubmit}
|
||||
|
||||
Reference in New Issue
Block a user