@mindbill/angular 0.19.0 → 0.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2015,6 +2015,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
2015
2015
  }] } });
2016
2016
  const CORRECTION_DOCUMENT_TYPES = new Set(["final_report", "letter_of_attestation", "proof_of_service", "form_122", "return_to_work_voucher", "w9", "medical_records", "appeal", "other"]);
2017
2017
  function correctionDocumentType(value) { return (CORRECTION_DOCUMENT_TYPES.has(value) ? value : "other"); }
2018
+ function selectedPayerKey(data) {
2019
+ const key = data.injury.payerKey;
2020
+ return typeof key === "string" && key ? key : undefined;
2021
+ }
2018
2022
  function correctionBill(data) {
2019
2023
  const billing = data.bill.billingSnapshot?.billingProvider;
2020
2024
  const rendering = data.bill.billingSnapshot?.renderingProvider;
@@ -2036,7 +2040,12 @@ function correctionBill(data) {
2036
2040
  employer: data.injury.employer || "",
2037
2041
  dateOfInjury: data.injury.doi || "",
2038
2042
  ...(data.injury.injuryDescription ? { description: data.injury.injuryDescription } : {}),
2039
- claimsAdministrator: { id: data.injury.claimsAdminId || "", name: data.injury.claimsAdminName || "" },
2043
+ claimsAdministrator: {
2044
+ id: data.injury.claimsAdminId || "",
2045
+ name: data.injury.claimsAdminName || "",
2046
+ // Selected payer (subpayor) key; typed loosely because this package pins an older @mindbill/browser.
2047
+ ...(selectedPayerKey(data) ? { payerId: selectedPayerKey(data) } : {}),
2048
+ },
2040
2049
  },
2041
2050
  service: { date: data.bill.dos, ...(data.bill.dosEnd !== undefined ? { endDate: data.bill.dosEnd } : {}), ...(data.bill.authorizationNumber !== undefined ? { authorizationNumber: data.bill.authorizationNumber } : {}) },
2042
2051
  billingProvider: billing?.taxIdType === 'SSN' && billing.taxIdConfigured ? { sourceBillId: data.bill.id } : {
@@ -3097,5 +3106,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
3097
3106
  * Generated bundle index. Do not edit.
3098
3107
  */
3099
3108
 
3100
- export { MINDBILL_BILL_TASKS_PILL_BASES, MINDBILL_BILL_TASKS_TONES, MINDBILL_STATUS_AGING_BUCKETS, MindBillBillAgingSummaryComponent, MindBillBillLifecycleComponent, MindBillBillListComponent, MindBillBillRejectionNoticeComponent, MindBillBillSubmissionComponent, MindBillBillTasksDashboardComponent, MindBillBillingDashboardComponent, MindBillBillingManagementButtonComponent, MindBillBillingReportComponent, MindBillComboBoxComponent, MindBillDateInputComponent, MindBillLifecycleStore, MindBillOrganizationOnboardingComponent, MindBillStatusAgingMatrixComponent, billRejectionIssueSummary, billRejectionIssues, buildMindBillReportCsv, buildMindBillReportRows, buildMindBillStatusAgingCsv, buildMindBillStatusAgingMatrix, ensureTrailingProcedureLine, formatMindBillSubmissionDate, isEmptyProcedureLine, mindBillAgingBucket, mindBillAgingDays, mindBillAngularAppearanceStyle, mindBillBillTasksCell, mindBillBillTasksPillBase, mindBillBillTasksTone, mindBillCustomProcedureOption, parseMindBillSubmissionDate, summarizeMindBillDashboard };
3109
+ export { MindBillBillAgingSummaryComponent, MindBillBillLifecycleComponent, MindBillBillListComponent, MindBillBillRejectionNoticeComponent, MindBillBillSubmissionComponent, MindBillBillTasksDashboardComponent, MindBillBillingDashboardComponent, MindBillBillingManagementButtonComponent, MindBillBillingReportComponent, MindBillLifecycleStore, MindBillOrganizationOnboardingComponent, MindBillStatusAgingMatrixComponent, buildMindBillReportCsv, buildMindBillReportRows, buildMindBillStatusAgingCsv, buildMindBillStatusAgingMatrix, ensureTrailingProcedureLine, isEmptyProcedureLine, mindBillAgingBucket, mindBillAgingDays, mindBillAngularAppearanceStyle, summarizeMindBillDashboard };
3101
3110
  //# sourceMappingURL=mindbill-angular.mjs.map