fix: MH eligibility selenium integration and patient data extraction
This commit is contained in:
@@ -8,8 +8,7 @@ import path from "path";
|
||||
import { storage } from "../../storage";
|
||||
import { emptyFolderContainingFile } from "../../utils/emptyTempFolder";
|
||||
import {
|
||||
startPythonJob,
|
||||
pollPythonJob,
|
||||
callPythonSync,
|
||||
imageToPdfBuffer,
|
||||
} from "./_shared";
|
||||
|
||||
@@ -28,14 +27,11 @@ export async function runClaimStatusProcessor(
|
||||
): Promise<ClaimStatusProcessorResult> {
|
||||
const { enrichedPayload, insuranceId } = input;
|
||||
|
||||
// 1) Start async Python job
|
||||
const sid = await startPythonJob("/claim-status-check/async", {
|
||||
// 1) Call the Python service synchronously (BullMQ worker handles async)
|
||||
const result = await callPythonSync("/claim-status-check", {
|
||||
data: enrichedPayload,
|
||||
});
|
||||
|
||||
// 2) Poll for completion
|
||||
const result = await pollPythonJob(sid);
|
||||
|
||||
const outputResult: ClaimStatusProcessorResult = {};
|
||||
|
||||
// 3) Look up patient
|
||||
|
||||
Reference in New Issue
Block a user