Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1195 move EC from API to lambdas #1174

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
build: fix bad merge
  • Loading branch information
leite08 committed Dec 13, 2023
commit 0f0fe284029f69549c1cc820f721dcb26cfe597d
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { CoverageEnhancer } from "@metriport/core/external/commonwell/cq-bridge/
import { CoverageEnhancerCloud } from "@metriport/core/external/commonwell/cq-bridge/coverage-enhancer-cloud";
import { CommonWellManagementAPI } from "@metriport/core/external/commonwell/management/api";
import { Config } from "../../../shared/config";
import { PatientLoaderLocal } from "../patient-loader-local";
import { CoverageEnhancerApiLocal } from "./coverage-enhancer-api-local";

export function makeCoverageEnhancer(): CoverageEnhancer | undefined {
Expand All @@ -12,7 +13,11 @@ export function makeCoverageEnhancer(): CoverageEnhancer | undefined {
console.log(`Could not return a CoverageEnhancer, mising cwPatientLinkQueueUrl`);
return undefined;
}
return new CoverageEnhancerCloud(Config.getAWSRegion(), cwPatientLinkQueueUrl);
return new CoverageEnhancerCloud(
Config.getAWSRegion(),
cwPatientLinkQueueUrl,
new PatientLoaderLocal()
);
}

const cwManagementUrl = Config.getCWManagementUrl();
Expand Down