@mindbill/react 0.77.44 → 0.77.45
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.
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8156,6 +8156,15 @@ function normalizeBillSubmissionReportTypeCode(value) {
|
|
|
8156
8156
|
);
|
|
8157
8157
|
}
|
|
8158
8158
|
var isProlongedCode = (code) => /^9935[89]$/.test(code.trim());
|
|
8159
|
+
function billSubmissionProviderKindForTaxonomy(taxonomy) {
|
|
8160
|
+
const code = taxonomy?.trim().toUpperCase() ?? "";
|
|
8161
|
+
if (!/^[A-Z0-9]{10}$/.test(code)) return void 0;
|
|
8162
|
+
if (/^(20|103[GT]|111N|213E|152W|1223|1711)/.test(code)) return "physician";
|
|
8163
|
+
if (code.startsWith("363A")) return "physician_assistant";
|
|
8164
|
+
if (code.startsWith("363L")) return "nurse_practitioner";
|
|
8165
|
+
if (code.startsWith("364S")) return "clinical_nurse_specialist";
|
|
8166
|
+
return void 0;
|
|
8167
|
+
}
|
|
8159
8168
|
function billSubmissionEstimateContext(code, placeOfService, details = {}) {
|
|
8160
8169
|
if (details.basis === "adjustment") return {};
|
|
8161
8170
|
if (!isTherapyEditorCode(code) && /^[A-Z0-9]{5}$/.test(code) && !/^ML/.test(code) && details.providerKind && details.providerKind !== "physical_therapist") return {
|
|
@@ -9186,7 +9195,7 @@ function BillSubmissionForm({
|
|
|
9186
9195
|
const detailsIndex = isProlongedCode(line.code) ? prolongedLeader(index) : index;
|
|
9187
9196
|
const saved = bill.serviceLines[detailsIndex]?.feeContext;
|
|
9188
9197
|
const prolonged = saved?.prolongedServiceContext;
|
|
9189
|
-
|
|
9198
|
+
const details = feeDetails[detailsIndex] ?? {
|
|
9190
9199
|
...drugDetailsFromSaved(line.drug, saved),
|
|
9191
9200
|
...anesthesiaDetailsFromSaved(saved),
|
|
9192
9201
|
...therapyDetailsFromSaved(saved),
|
|
@@ -9201,6 +9210,8 @@ function BillSubmissionForm({
|
|
|
9201
9210
|
relatedEvaluationDate: prolonged?.relatedEvaluationDate,
|
|
9202
9211
|
prolongedTimeBasis: prolonged?.ongoingPatientManagement && prolonged.personallyPerformed && !prolonged.timeCountedInOtherServices && prolonged.completeSameDayServices ? "documented" : ""
|
|
9203
9212
|
};
|
|
9213
|
+
const impliedKind = isTherapyEditorCode(line.code) ? void 0 : billSubmissionProviderKindForTaxonomy(bill.renderingProvider?.taxonomy);
|
|
9214
|
+
return details.providerKind === void 0 && impliedKind ? { ...details, providerKind: impliedKind } : details;
|
|
9204
9215
|
};
|
|
9205
9216
|
const quoteInputs = bill.serviceLines.map((line, index) => {
|
|
9206
9217
|
if (!treatmentBilling || !line.code.trim() || isMedicalLegalCode(line.code)) return null;
|