feat: add member details PDF step to MH history and CMSP flows
After clicking the member ID link, print the member details page via CDP before navigating to service history. Adds member details as a panel in the side-by-side PDF viewer: MH History shows 3 panels (eligibility, member details, service history); CMSP shows 4 panels (eligibility, member details, service history, accumulator). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -28,6 +28,8 @@ export interface CmspEligibilityHistoryRemainingProcessorResult {
|
||||
pdfUploadStatus?: string;
|
||||
pdfFileId?: number | null;
|
||||
pdfFilename?: string | null;
|
||||
memberDetailsPdfFileId?: number | null;
|
||||
memberDetailsPdfFilename?: string | null;
|
||||
historyPdfFileId?: number | null;
|
||||
historyPdfFilename?: string | null;
|
||||
accumulatorPdfFileId?: number | null;
|
||||
@@ -135,6 +137,12 @@ export async function runCmspEligibilityHistoryRemainingProcessor(
|
||||
outputResult.pdfUploadStatus = "No eligibility PDF returned by Selenium";
|
||||
}
|
||||
|
||||
// Save member details PDF
|
||||
if (seleniumResult.member_details_pdf_path?.endsWith(".pdf")) {
|
||||
outputResult.memberDetailsPdfFileId = await saveToGroup(seleniumResult.member_details_pdf_path);
|
||||
outputResult.memberDetailsPdfFilename = path.basename(seleniumResult.member_details_pdf_path);
|
||||
}
|
||||
|
||||
// Save history PDF
|
||||
if (seleniumResult.history_pdf_path?.endsWith(".pdf")) {
|
||||
outputResult.historyPdfFileId = await saveToGroup(seleniumResult.history_pdf_path);
|
||||
|
||||
@@ -27,8 +27,10 @@ export interface EligibilityHistoryProcessorResult {
|
||||
patientUpdateStatus?: string;
|
||||
pdfUploadStatus?: string;
|
||||
pdfFileId?: number | null;
|
||||
historyPdfFileId?: number | null;
|
||||
pdfFilename?: string | null;
|
||||
memberDetailsPdfFileId?: number | null;
|
||||
memberDetailsPdfFilename?: string | null;
|
||||
historyPdfFileId?: number | null;
|
||||
historyPdfFilename?: string | null;
|
||||
}
|
||||
|
||||
@@ -137,6 +139,12 @@ export async function runEligibilityHistoryProcessor(
|
||||
}
|
||||
outputResult.pdfFileId = eligibilityPdfFileId;
|
||||
|
||||
// Save member details PDF
|
||||
if (seleniumResult.member_details_pdf_path?.endsWith(".pdf")) {
|
||||
outputResult.memberDetailsPdfFileId = await saveToGroup(seleniumResult.member_details_pdf_path);
|
||||
outputResult.memberDetailsPdfFilename = path.basename(seleniumResult.member_details_pdf_path);
|
||||
}
|
||||
|
||||
// Save history PDF
|
||||
let historyPdfFileId: number | null = null;
|
||||
if (seleniumResult.history_pdf_path?.endsWith(".pdf")) {
|
||||
|
||||
Reference in New Issue
Block a user