@mindbill/react 0.77.43 → 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 +49 -33
- 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;
|
|
@@ -10508,6 +10519,9 @@ function TreatmentDraftShell({ title, description, children, hideHeading = false
|
|
|
10508
10519
|
.mbtd .mbrfa-template-save{display:grid;grid-template-columns:minmax(0,420px);gap:10px 16px;margin-top:10px}.mbtd .mbrfa-template-save>label{display:grid;gap:4px;font-size:12px;color:var(--mb-muted)}.mbtd .mbrfa-template-save>.mbrfa-check{display:flex;flex-direction:row;align-items:center;gap:8px;cursor:pointer}.mbtd .mbrfa-template-save>.mbrfa-check>input{width:16px;height:16px;min-height:16px;margin:0;padding:0;flex:0 0 16px;accent-color:var(--mb-accent)}.mbtd .mbrfa-template-save>:is(.mbrfa-check,.mbrfa-section-actions){grid-column:1/-1;margin-top:0;padding-top:0;border-top:0}
|
|
10509
10520
|
@media(max-width:760px){.mbtd .mbrfa-template-save{grid-template-columns:minmax(0,1fr)}}
|
|
10510
10521
|
.mbtd .mbrfa-form-grid>.mbrfa-row-start{grid-column:1/span 3}.mbtd .mbrfa-form-grid textarea[rows="2"]{min-height:44px}
|
|
10522
|
+
.mbtd .mbrfa-treatments{display:grid;gap:14px}.mbtd .mbrfa-treatment+.mbrfa-treatment{padding-top:16px;border-top:1px solid var(--mb-border)}
|
|
10523
|
+
.mbtd .mbrfa-treatment-head{display:flex;align-items:center;gap:14px;margin-bottom:10px;font-size:13px}.mbtd .mbrfa-treatment-head>strong{font-weight:600;margin-right:auto}.mbtd button.mbrfa-link.mbrfa-link.mbrfa-treatment-remove{color:var(--mb-danger,#b42318)}
|
|
10524
|
+
.mbtd .mbrfa-add-treatment{display:block;width:100%;min-height:44px;border:1px dashed color-mix(in srgb,var(--mb-accent) 55%,var(--mb-border));background:color-mix(in srgb,var(--mb-accent) 5%,var(--mb-surface));color:var(--mb-accent);font-weight:600;text-align:center;cursor:pointer}.mbtd .mbrfa-add-treatment:hover:not(:disabled){background:color-mix(in srgb,var(--mb-accent) 10%,var(--mb-surface))}
|
|
10511
10525
|
.mbtd .mbrfa-option-group{display:grid;gap:4px;grid-column:1/-1}.mbtd .mbrfa-option-group+.mbrfa-option-group{margin-top:6px;padding-top:14px;border-top:1px solid var(--mb-border)}.mbtd .mbrfa-option-group>span{font-size:12px;font-weight:600;color:var(--mb-muted)}.mbtd .mbrfa-option-group>span>small{margin-left:10px;font-weight:400}
|
|
10512
10526
|
.mbtd .mbrfa-docs{display:grid;gap:10px}
|
|
10513
10527
|
.mbtd .mbrfa-doc{display:flex;align-items:center;gap:12px;padding:10px 14px;border:1px solid var(--mb-border);border-radius:var(--mb-control-radius);background:var(--mb-surface)}.mbtd .mbrfa-doc>span{display:grid;min-width:0;flex:1}.mbtd .mbrfa-doc strong{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mbtd .mbrfa-doc small{font-size:12px;color:var(--mb-muted)}.mbtd .mbrfa-doc>button{border:0;background:none;min-height:32px;width:32px;padding:0;font-size:20px;line-height:1;color:var(--mb-muted)}.mbtd .mbrfa-doc>button:hover{color:var(--mb-text)}
|
|
@@ -13475,39 +13489,41 @@ function RfaDraftForm({ initialDraft, identity, officialForm = false, formDetail
|
|
|
13475
13489
|
setAdministratorOverride({ id });
|
|
13476
13490
|
update({ authorizationContact });
|
|
13477
13491
|
} }),
|
|
13478
|
-
|
|
13479
|
-
/* @__PURE__ */
|
|
13480
|
-
|
|
13481
|
-
|
|
13482
|
-
|
|
13483
|
-
|
|
13484
|
-
|
|
13485
|
-
|
|
13486
|
-
|
|
13487
|
-
|
|
13488
|
-
"
|
|
13489
|
-
/* @__PURE__ */ jsx43(
|
|
13490
|
-
] }),
|
|
13491
|
-
/* @__PURE__ */
|
|
13492
|
-
|
|
13493
|
-
|
|
13494
|
-
|
|
13495
|
-
|
|
13496
|
-
|
|
13497
|
-
|
|
13498
|
-
|
|
13499
|
-
|
|
13500
|
-
|
|
13501
|
-
|
|
13502
|
-
|
|
13503
|
-
|
|
13504
|
-
|
|
13505
|
-
|
|
13506
|
-
|
|
13507
|
-
|
|
13492
|
+
/* @__PURE__ */ jsxs41("fieldset", { disabled: locked, children: [
|
|
13493
|
+
/* @__PURE__ */ jsx43("legend", { children: "Requested Treatment" }),
|
|
13494
|
+
treatmentTemplates || onSaveTreatmentTemplate ? /* @__PURE__ */ jsx43(RfaTemplateBar, { templates: treatmentTemplates ?? [], items: draft2.items, renderingProviderId: draft2.renderingProviderId, physicianName: draft2.providerName, disabled: locked, onApply: (items) => update({ items }), onSave: onSaveTreatmentTemplate, onManage: onManageTreatmentTemplates }) : null,
|
|
13495
|
+
/* @__PURE__ */ jsxs41("div", { className: "mbrfa-treatments", children: [
|
|
13496
|
+
draft2.items.map((item, index) => /* @__PURE__ */ jsxs41("div", { className: "mbrfa-treatment", role: "group", "aria-label": `Treatment ${index + 1}`, children: [
|
|
13497
|
+
draft2.items.length > 1 ? /* @__PURE__ */ jsxs41("div", { className: "mbrfa-treatment-head", children: [
|
|
13498
|
+
/* @__PURE__ */ jsxs41("strong", { children: [
|
|
13499
|
+
"Treatment ",
|
|
13500
|
+
index + 1
|
|
13501
|
+
] }),
|
|
13502
|
+
index > 0 && draft2.items[0]?.diagnosisCode ? /* @__PURE__ */ jsx43("button", { type: "button", className: "mbrfa-link", onClick: () => updateItem(index, { diagnosisCode: draft2.items[0].diagnosisCode, diagnosisDescription: draft2.items[0].diagnosisDescription ?? "" }), children: "Copy diagnosis from first treatment" }) : null,
|
|
13503
|
+
/* @__PURE__ */ jsx43("button", { type: "button", className: "mbrfa-link mbrfa-treatment-remove", "aria-label": `Remove treatment ${index + 1}`, onClick: () => update({ items: draft2.items.filter((_, position) => position !== index) }), children: "Remove" })
|
|
13504
|
+
] }) : null,
|
|
13505
|
+
/* @__PURE__ */ jsxs41("div", { className: "mbrfa-form-grid", children: [
|
|
13506
|
+
/* @__PURE__ */ jsx43(RfaDiagnosisFields, { officialForm: true, code: item.diagnosisCode, ...item.diagnosisDescription !== void 0 ? { description: item.diagnosisDescription } : {}, ...searchDiagnosisCodes ? { search: searchDiagnosisCodes } : {}, onChange: (value) => updateItem(index, value) }),
|
|
13507
|
+
/* @__PURE__ */ jsxs41("label", { className: "mbrfa-s3 mbrfa-row-start", children: [
|
|
13508
|
+
/* @__PURE__ */ jsxs41("span", { children: [
|
|
13509
|
+
"Service/Good Requested",
|
|
13510
|
+
/* @__PURE__ */ jsx43(RfaRequired, {})
|
|
13511
|
+
] }),
|
|
13512
|
+
/* @__PURE__ */ jsx43("textarea", { rows: 2, required: true, maxLength: 1e3, value: item.serviceDescription, onChange: (event) => updateItem(index, { serviceDescription: event.target.value }) })
|
|
13513
|
+
] }),
|
|
13514
|
+
/* @__PURE__ */ jsxs41("label", { className: "mbrfa-s1", children: [
|
|
13515
|
+
/* @__PURE__ */ jsx43("span", { children: "CPT/HCPCS Code" }),
|
|
13516
|
+
/* @__PURE__ */ jsx43("input", { placeholder: "Optional", maxLength: 16, value: item.procedureCode ?? "", onChange: (event) => updateItem(index, { procedureCode: event.target.value }) })
|
|
13517
|
+
] }),
|
|
13518
|
+
/* @__PURE__ */ jsxs41("label", { className: "mbrfa-s2", children: [
|
|
13519
|
+
/* @__PURE__ */ jsx43("span", { children: "Other Information" }),
|
|
13520
|
+
/* @__PURE__ */ jsx43("textarea", { rows: 2, placeholder: "Frequency, duration, quantity, etc. (optional)", maxLength: 2e3, value: typeof item.metadata?.otherInformation === "string" ? item.metadata.otherInformation : [item.quantity !== void 0 ? `Quantity: ${item.quantity}` : "", item.units !== void 0 ? `Units: ${item.units}` : "", item.frequency, item.duration, item.requestedFrom ? `From: ${item.requestedFrom}` : "", item.requestedTo ? `Through: ${item.requestedTo}` : ""].filter(Boolean).join("; "), onChange: (event) => updateItem(index, { metadata: { ...item.metadata, otherInformation: event.target.value } }) })
|
|
13521
|
+
] })
|
|
13522
|
+
] })
|
|
13523
|
+
] }, index)),
|
|
13524
|
+
/* @__PURE__ */ jsx43("button", { type: "button", className: "mbrfa-add-treatment", disabled: locked || draft2.items.length >= 100, onClick: () => update({ items: [...draft2.items, { diagnosisCode: "", serviceDescription: "" }] }), children: "+ Add another treatment" })
|
|
13508
13525
|
] })
|
|
13509
|
-
] }
|
|
13510
|
-
/* @__PURE__ */ jsx43("div", { children: /* @__PURE__ */ jsx43("button", { type: "button", disabled: locked || draft2.items.length >= 100, onClick: () => update({ items: [...draft2.items, { diagnosisCode: "", serviceDescription: "" }] }), children: "Add requested treatment" }) }),
|
|
13526
|
+
] }),
|
|
13511
13527
|
supportingDocumentFields,
|
|
13512
13528
|
saveError,
|
|
13513
13529
|
/* @__PURE__ */ jsxs41("div", { className: "mbtd-actions", children: [
|