feat(ClaimStatus) - Schema updated, hence changes made in backend, frontend

This commit is contained in:
2025-09-19 01:41:25 +05:30
parent 9d06e9ded4
commit 6e97e5ab40
14 changed files with 678 additions and 188 deletions

View File

@@ -125,13 +125,14 @@ router.post(
responseType: "arraybuffer",
});
const groupTitle = `Insurance Claim`;
const groupTitle = "Insurance Claim";
const groupTitleKey = "INSURANCE_CLAIM";
const groupCategory = "CLAIM";
// ✅ Find or create PDF group for this claim
let group = await storage.findPdfGroupByPatientTitleAndCategory(
let group = await storage.findPdfGroupByPatientTitleKeyAndCategory(
parsedPatientId,
groupTitle,
groupTitleKey,
groupCategory
);
@@ -139,6 +140,7 @@ router.post(
group = await storage.createPdfGroup(
parsedPatientId,
groupTitle,
groupTitleKey,
groupCategory
);
}