@mindbill/angular 0.20.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: {
|
|
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 } : {
|