feat(patient-status schema updated)- applied changes

This commit is contained in:
2025-10-30 21:13:33 +05:30
parent 103142b2d3
commit 54f83ab398
9 changed files with 146 additions and 63 deletions

View File

@@ -77,7 +77,6 @@ async function createOrUpdatePatientByInsuranceId(options: {
gender: "",
phone: "",
userId,
status: "inactive",
insuranceId,
};
@@ -219,7 +218,7 @@ router.post(
if (patient && patient.id !== undefined) {
const newStatus =
seleniumResult.eligibility === "Y" ? "active" : "inactive";
seleniumResult.eligibility === "Y" ? "ACTIVE" : "INACTIVE";
await storage.updatePatient(patient.id, { status: newStatus });
outputResult.patientUpdateStatus = `Patient status updated to ${newStatus}`;
@@ -647,7 +646,7 @@ router.post(
// Update patient status based on seleniumResult.eligibility
const newStatus =
seleniumResult?.eligibility === "Y" ? "active" : "inactive";
seleniumResult?.eligibility === "Y" ? "ACTIVE" : "INACTIVE";
await storage.updatePatient(updatedPatient.id, { status: newStatus });
resultItem.patientUpdateStatus = `Patient status updated to ${newStatus}`;