@mindbill/react 0.77.32 → 0.77.34
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.d.ts +3 -1
- package/dist/index.js +60 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2191,9 +2191,11 @@ type RfaAuthorizationDestinationProps = {
|
|
|
2191
2191
|
onChange: (destination: RfaAuthorizationDestinationOption | null) => void;
|
|
2192
2192
|
/** Render as a plain field group inside a host form section, without its own frame or legend. */
|
|
2193
2193
|
compact?: boolean;
|
|
2194
|
+
/** Compact mode: offer one "enter manually" choice that hands entry to the host's own fields. */
|
|
2195
|
+
onManualEntry?: () => void;
|
|
2194
2196
|
};
|
|
2195
2197
|
/** Choose a destination without sending an RFA or treating email as fax. */
|
|
2196
|
-
declare function RfaAuthorizationDestination({ contextKey, directory, savedContact, loading, error, disabled, onChange, onSelectionStart, compact }: RfaAuthorizationDestinationProps): ReactElement;
|
|
2198
|
+
declare function RfaAuthorizationDestination({ contextKey, directory, savedContact, loading, error, disabled, onChange, onSelectionStart, compact, onManualEntry }: RfaAuthorizationDestinationProps): ReactElement;
|
|
2197
2199
|
|
|
2198
2200
|
type RfaLifecycleControlsProps = OrganizationClientOptions & TreatmentDraftAppearance & {
|
|
2199
2201
|
rfa: RfaRecord;
|
package/dist/index.js
CHANGED
|
@@ -10123,7 +10123,7 @@ function RfaIdentitySelect({ label: label5, placeholder, searchPlaceholder, quer
|
|
|
10123
10123
|
// src/rfa-authorization-destination.tsx
|
|
10124
10124
|
import { normalizeRfaFax, rfaAuthorizationDestinations, rfaAuthorizationGuidance as rfaAuthorizationGuidance2 } from "@mindbill/browser";
|
|
10125
10125
|
import { Fragment as Fragment13, jsx as jsx23, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
10126
|
-
function RfaAuthorizationDestination({ contextKey, directory, savedContact, loading = false, error, disabled = false, onChange, onSelectionStart, compact = false }) {
|
|
10126
|
+
function RfaAuthorizationDestination({ contextKey, directory, savedContact, loading = false, error, disabled = false, onChange, onSelectionStart, compact = false, onManualEntry }) {
|
|
10127
10127
|
const options = loading || error ? [] : rfaAuthorizationDestinations(directory);
|
|
10128
10128
|
const fax = savedContact?.fax ? normalizeRfaFax(savedContact.fax) : null;
|
|
10129
10129
|
const savedLabel = savedContact?.contactName || savedContact?.name || "Saved request contact";
|
|
@@ -10184,9 +10184,13 @@ function RfaAuthorizationDestination({ contextKey, directory, savedContact, load
|
|
|
10184
10184
|
searchable: true,
|
|
10185
10185
|
disabled: disabled || loading,
|
|
10186
10186
|
value: selection,
|
|
10187
|
-
options: [...options.map((option, index) => ({ id: String(index), label: option.label, detail: `${option.method === "fax" ? "Fax" : "E-mail"} ${option.destination}` })), { id: "manual", label: needsAdjuster ? "Enter the handling adjuster\u2019s fax" : "Enter another confirmed authorization fax" }, { id: "manual-email", label: "Enter a confirmed authorization e-mail" }].filter((option) => option.id === selection || `${option.label} ${"detail" in option ? option.detail : ""}`.toLowerCase().includes(query.trim().toLowerCase())),
|
|
10187
|
+
options: [...options.map((option, index) => ({ id: String(index), label: option.label, detail: `${option.method === "fax" ? "Fax" : "E-mail"} ${option.destination}` })), ...onManualEntry ? [{ id: "manual-entry", label: needsAdjuster ? "Enter the handling adjuster\u2019s contact manually" : "Enter a different contact manually" }] : [{ id: "manual", label: needsAdjuster ? "Enter the handling adjuster\u2019s fax" : "Enter another confirmed authorization fax" }, { id: "manual-email", label: "Enter a confirmed authorization e-mail" }]].filter((option) => option.id === selection || `${option.label} ${"detail" in option ? option.detail : ""}`.toLowerCase().includes(query.trim().toLowerCase())),
|
|
10188
10188
|
onSelect: (value) => {
|
|
10189
10189
|
setQuery("");
|
|
10190
|
+
if (value === "manual-entry") {
|
|
10191
|
+
onManualEntry?.();
|
|
10192
|
+
return;
|
|
10193
|
+
}
|
|
10190
10194
|
pick(value);
|
|
10191
10195
|
}
|
|
10192
10196
|
}
|
|
@@ -10396,11 +10400,35 @@ function TreatmentDraftShell({ title, description, children, hideHeading = false
|
|
|
10396
10400
|
.mbtd .mbrfa-form-grid .mbrfa-picker{padding-bottom:2px}
|
|
10397
10401
|
.mbtd .mbrfa-picker a,.mbtd .mbrfa-picker-links{font-size:12px}.mbtd .mbrfa-picker-links{display:flex;gap:12px;flex-wrap:wrap;align-items:center;min-height:18px}
|
|
10398
10402
|
.mbtd .mbrfa-picker p,.mbtd .mbrfa-guidance p{margin:0;font-size:12px}.mbtd .mbrfa-guidance{display:grid;gap:4px}
|
|
10403
|
+
.mbtd .mbrfa-section-actions{display:flex;gap:12px;align-items:center;margin-top:14px;font-size:12px;color:var(--mb-muted)}
|
|
10399
10404
|
.mbtd .mbrfa-field-hint{font-size:12px;color:var(--mb-muted);font-weight:400}
|
|
10400
10405
|
.mbtd .mbrfa-link-out{color:var(--mb-muted)!important;text-decoration:none}.mbtd .mbrfa-link-out:hover{text-decoration:underline}.mbtd .mbrfa-picker-links a{text-decoration:none}
|
|
10401
10406
|
.mbtd button.mbrfa-link.mbrfa-link{border:0;background:none;padding:0;min-height:0;color:var(--mb-accent);font-size:12px;text-decoration:none}.mbtd button.mbrfa-link.mbrfa-link:hover,.mbtd .mbrfa-picker-links a:hover{text-decoration:underline}
|
|
10402
10407
|
.mbtd fieldset.mbrfa-plain.mbrfa-plain{border:0;padding:0;margin:0;background:none;border-radius:0;min-width:0}
|
|
10403
10408
|
.mbtd .mbrfa-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
|
|
10409
|
+
.mbtd form.mbrfa-official{gap:18px;counter-reset:mbrfa-section}
|
|
10410
|
+
.mbtd form.mbrfa-official>fieldset{padding:0 20px 20px;border:1px solid var(--mb-border);border-radius:var(--mb-radius);background:var(--mb-surface);box-shadow:0 1px 2px #0000000a}
|
|
10411
|
+
.mbtd form.mbrfa-official>fieldset>legend{float:left;display:flex;align-items:center;gap:10px;width:calc(100% + 40px);margin:0 -20px;padding:13px 20px;border-bottom:1px solid var(--mb-border);font-size:14px;font-weight:600;letter-spacing:-.005em}
|
|
10412
|
+
.mbtd form.mbrfa-official>fieldset>legend+*{clear:both}.mbtd form.mbrfa-official>fieldset>legend+:not(.mbrfa-pickers){padding-top:18px}
|
|
10413
|
+
.mbtd form.mbrfa-official>fieldset>legend::before{counter-increment:mbrfa-section;content:counter(mbrfa-section);display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:color-mix(in srgb,var(--mb-accent) 12%,var(--mb-surface));color:var(--mb-accent);font-size:12px;font-weight:600}
|
|
10414
|
+
.mbtd form.mbrfa-official .mbrfa-pickers{margin:0 -20px 18px;padding:16px 20px;border-bottom:1px solid var(--mb-border);background:var(--mb-soft)}
|
|
10415
|
+
.mbtd form.mbrfa-official .mbrfa-picker>span:first-child{font-size:12px;font-weight:600;letter-spacing:.01em}
|
|
10416
|
+
.mbtd form.mbrfa-official .mbrfa-form-grid{gap:14px 20px}
|
|
10417
|
+
.mbtd form.mbrfa-official .mbrfa-saved>span,.mbtd form.mbrfa-official .mbrfa-form-grid>label{font-size:12px;color:var(--mb-muted);font-weight:500}
|
|
10418
|
+
.mbtd form.mbrfa-official .mbrfa-form-grid>label>:is(input,textarea){color:var(--mb-text)}
|
|
10419
|
+
.mbtd form.mbrfa-official .mbrfa-saved>strong{font-size:14px;font-weight:500;color:var(--mb-text)}
|
|
10420
|
+
.mbtd form.mbrfa-official .mbrfa-request-details>.mbtd-grid{gap:4px}
|
|
10421
|
+
.mbtd form.mbrfa-official .mbrfa-request-types{display:inline-grid;grid-auto-flow:column;grid-template-columns:none;gap:0;padding:3px;margin-bottom:10px;border:1px solid var(--mb-border);border-radius:calc(var(--mb-control-radius) + 3px);background:var(--mb-soft);justify-self:start;width:fit-content;max-width:100%}
|
|
10422
|
+
.mbtd form.mbrfa-official .mbrfa-request-types .mbrfa-check{min-height:34px;padding:6px 16px;border-radius:var(--mb-control-radius);color:var(--mb-muted);font-size:13px}
|
|
10423
|
+
.mbtd form.mbrfa-official .mbrfa-request-types .mbrfa-check:has(input:checked){background:var(--mb-surface);color:var(--mb-text);box-shadow:0 1px 2px #00000014}
|
|
10424
|
+
.mbtd form.mbrfa-official .mbrfa-request-types input[type=radio]{position:absolute;opacity:0;width:1px;height:1px}
|
|
10425
|
+
.mbtd form.mbrfa-official .mbrfa-request-types .mbrfa-check:has(input:focus-visible){outline:2px solid var(--mb-accent);outline-offset:2px}
|
|
10426
|
+
.mbtd form.mbrfa-official .mbrfa-request-details .mbrfa-check{min-height:32px;font-size:13px}
|
|
10427
|
+
.mbtd form.mbrfa-official .mbrfa-section-actions{margin-top:16px;padding-top:12px;border-top:1px dashed var(--mb-border)}
|
|
10428
|
+
.mbtd form.mbrfa-official>div:has(>button:only-child)>button{border-style:dashed;color:var(--mb-accent);font-weight:500}
|
|
10429
|
+
.mbtd form.mbrfa-official>.mbtd-actions:last-child{position:sticky;bottom:12px;z-index:5;justify-content:flex-end;flex-direction:row-reverse;margin-top:0;padding:10px 14px;border:1px solid var(--mb-border);border-radius:var(--mb-radius);background:color-mix(in srgb,var(--mb-surface) 92%,transparent);backdrop-filter:blur(6px);box-shadow:0 6px 20px #00000014}
|
|
10430
|
+
.mbtd form.mbrfa-official>.mbtd-actions:last-child>[role=status]{margin-right:auto;order:9}
|
|
10431
|
+
@media(max-width:760px){.mbtd form.mbrfa-official>.mbtd-actions:last-child{position:static;flex-direction:row}.mbtd form.mbrfa-official .mbrfa-request-types{grid-auto-flow:row;width:100%}}
|
|
10404
10432
|
@media(max-width:760px){.mbtd .mbrfa-pickers,.mbtd .mbrfa-pickers[data-columns="2"]{grid-template-columns:minmax(0,1fr)}.mbtd .mbrfa-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mbtd .mbrfa-form-grid>*{grid-column:1/-1}.mbtd .mbrfa-form-grid>.mbrfa-s1,.mbtd .mbrfa-form-grid>.mbrfa-s2{grid-column:span 1}}
|
|
10405
10433
|
@media(max-width:640px){.mbtd .mbrfa-request-types{grid-template-columns:1fr;gap:4px}}
|
|
10406
10434
|
@media(forced-colors:active){.mbtd .mbrfa-request-types input[type=radio]{appearance:auto}.mbtd .mbrfa-request-types input[type=radio]::after{display:none}}
|
|
@@ -12579,11 +12607,16 @@ var contactRows = [
|
|
|
12579
12607
|
["phone", "Phone", 30, 2],
|
|
12580
12608
|
["fax", "Fax Number", 30, 2]
|
|
12581
12609
|
];
|
|
12582
|
-
function RfaOfficialContactFields({ nameLabel, value, onChange, before, beforeEmail, faxHint }) {
|
|
12583
|
-
const
|
|
12610
|
+
function RfaOfficialContactFields({ nameLabel, value, onChange, before, beforeEmail, faxHint, editable = true }) {
|
|
12611
|
+
const hint = (key2) => key2 === "fax" && faxHint && !value?.fax?.trim() ? /* @__PURE__ */ jsx37("small", { className: "mbrfa-field-hint", children: faxHint }) : null;
|
|
12612
|
+
const field = (key2, label5, max, span) => editable ? /* @__PURE__ */ jsxs35("label", { className: `mbrfa-s${span}`, children: [
|
|
12584
12613
|
label5,
|
|
12585
12614
|
/* @__PURE__ */ jsx37("input", { type: key2 === "email" ? "email" : key2 === "phone" || key2 === "fax" ? "tel" : "text", maxLength: max, value: value?.[key2] ?? "", onChange: (event) => onChange({ ...value, [key2]: event.target.value }) }),
|
|
12586
|
-
key2
|
|
12615
|
+
hint(key2)
|
|
12616
|
+
] }, key2) : /* @__PURE__ */ jsxs35("div", { className: `mbrfa-s${span} mbrfa-saved`, children: [
|
|
12617
|
+
/* @__PURE__ */ jsx37("span", { children: label5 }),
|
|
12618
|
+
/* @__PURE__ */ jsx37("strong", { children: value?.[key2]?.trim() || "\u2014" }),
|
|
12619
|
+
hint(key2)
|
|
12587
12620
|
] }, key2);
|
|
12588
12621
|
return /* @__PURE__ */ jsxs35("div", { className: "mbrfa-form-grid", children: [
|
|
12589
12622
|
before,
|
|
@@ -12594,6 +12627,12 @@ function RfaOfficialContactFields({ nameLabel, value, onChange, before, beforeEm
|
|
|
12594
12627
|
field("email", "E-mail Address", 254, 6)
|
|
12595
12628
|
] });
|
|
12596
12629
|
}
|
|
12630
|
+
function RfaManualToggle({ manual, onChange, disabled }) {
|
|
12631
|
+
return /* @__PURE__ */ jsxs35("div", { className: "mbrfa-section-actions", children: [
|
|
12632
|
+
/* @__PURE__ */ jsx37("button", { type: "button", className: "mbrfa-link", disabled, "aria-pressed": manual, onClick: () => onChange(!manual), children: manual ? "Done editing" : "Edit manually" }),
|
|
12633
|
+
manual ? /* @__PURE__ */ jsx37("span", { children: "These values are saved on this request only." }) : null
|
|
12634
|
+
] });
|
|
12635
|
+
}
|
|
12597
12636
|
function useRfaFormDetails(client, claimId, renderingProviderId, enabled) {
|
|
12598
12637
|
const [details, setDetails] = useState22();
|
|
12599
12638
|
useEffect19(() => {
|
|
@@ -12614,7 +12653,7 @@ function useRfaFormDetails(client, claimId, renderingProviderId, enabled) {
|
|
|
12614
12653
|
|
|
12615
12654
|
// src/rfa-practice-picker.tsx
|
|
12616
12655
|
import { Fragment as Fragment21, jsx as jsx38, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
12617
|
-
function RfaPracticePicker({ profile, value, onChange, managePracticeHref, manageLocationsHref, onEditPractice, onEditLocation }) {
|
|
12656
|
+
function RfaPracticePicker({ profile, value, onChange, managePracticeHref, manageLocationsHref, onEditPractice, onEditLocation, onChosen }) {
|
|
12618
12657
|
const practices = profile?.billingProviders ?? [];
|
|
12619
12658
|
const [practice, setPractice] = useState23(() => practices.find((item) => item.name === value?.name)?.id ?? "");
|
|
12620
12659
|
const [location, setLocation] = useState23(() => practice ? (profile?.locations ?? []).find((item) => item.active !== false && item.street === value?.address && (!item.billingProviderId || item.billingProviderId === practice))?.id ?? "" : "");
|
|
@@ -12638,6 +12677,7 @@ function RfaPracticePicker({ profile, value, onChange, managePracticeHref, manag
|
|
|
12638
12677
|
if (!provider) return;
|
|
12639
12678
|
setPractice(id);
|
|
12640
12679
|
setPracticeQuery("");
|
|
12680
|
+
onChosen?.();
|
|
12641
12681
|
const matching = (profile?.locations ?? []).filter((item) => item.active !== false && (item.billingProviderId === id || !item.billingProviderId && practices.length === 1));
|
|
12642
12682
|
const primary = matching.filter((item) => item.isPrimary);
|
|
12643
12683
|
const chosen = matching.length === 1 ? matching[0] : primary.length === 1 ? primary[0] : void 0;
|
|
@@ -12655,6 +12695,7 @@ function RfaPracticePicker({ profile, value, onChange, managePracticeHref, manag
|
|
|
12655
12695
|
if (!chosen) return;
|
|
12656
12696
|
setLocation(id);
|
|
12657
12697
|
setLocationQuery("");
|
|
12698
|
+
onChosen?.();
|
|
12658
12699
|
onChange({ ...value, ...located(chosen, practices.find((item) => item.id === practice)?.phone) });
|
|
12659
12700
|
} }),
|
|
12660
12701
|
/* @__PURE__ */ jsxs36("span", { className: "mbrfa-picker-links", children: [
|
|
@@ -12758,6 +12799,7 @@ function RfaDiagnosisFields({ code, description, onChange, search, officialForm
|
|
|
12758
12799
|
import { jsx as jsx40, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
12759
12800
|
function RfaContactPicker({ administratorId, claimNumber, contextKey, value, onChange, searchClaimsAdministrators, getClaimsAdministratorDirectory, disabled, officialForm = false }) {
|
|
12760
12801
|
const listId = useId7();
|
|
12802
|
+
const [manual, setManual] = useState25(() => officialForm && !searchClaimsAdministrators);
|
|
12761
12803
|
const [query, setQuery] = useState25("");
|
|
12762
12804
|
const [options, setOptions] = useState25([]);
|
|
12763
12805
|
const [directory, setDirectory] = useState25(null);
|
|
@@ -12822,7 +12864,7 @@ function RfaContactPicker({ administratorId, claimNumber, contextKey, value, onC
|
|
|
12822
12864
|
const option = options.find((item) => item.id === id);
|
|
12823
12865
|
if (option) choose(option);
|
|
12824
12866
|
} }) }) : null,
|
|
12825
|
-
/* @__PURE__ */ jsx40(RfaPicker, { label: directory?.authorizationStatus === "claim_handling_location_routes" ? "Claim-handling office" : "Authorization contact", children: /* @__PURE__ */ jsx40(RfaAuthorizationDestination, { compact: true, contextKey: `${contextKey}:${administratorId ?? ""}`, directory, loading, error, disabled, onChange: (destination) => {
|
|
12867
|
+
/* @__PURE__ */ jsx40(RfaPicker, { label: directory?.authorizationStatus === "claim_handling_location_routes" ? "Claim-handling office" : "Authorization contact", children: /* @__PURE__ */ jsx40(RfaAuthorizationDestination, { compact: true, onManualEntry: () => setManual(true), contextKey: `${contextKey}:${administratorId ?? ""}`, directory, loading, error, disabled, onChange: (destination) => {
|
|
12826
12868
|
if (!destination) return;
|
|
12827
12869
|
const kept = { ...shown };
|
|
12828
12870
|
delete kept.fax;
|
|
@@ -12830,7 +12872,8 @@ function RfaContactPicker({ administratorId, claimNumber, contextKey, value, onC
|
|
|
12830
12872
|
onChange(administratorId, { ...kept, name: directory?.name ?? shown.name ?? "", contactName: destination.recipientName ?? destination.label, ...destination.phone ? { phone: destination.phone } : {}, ...destination.method === "fax" ? { fax: destination.destination } : { email: destination.destination } });
|
|
12831
12873
|
} }) })
|
|
12832
12874
|
] }),
|
|
12833
|
-
/* @__PURE__ */ jsx40("fieldset", { className: "mbrfa-plain", disabled, children: /* @__PURE__ */ jsx40(RfaOfficialContactFields, { nameLabel: "Company Name", value: shown, onChange: (contact) => onChange(administratorId, contact) }) })
|
|
12875
|
+
/* @__PURE__ */ jsx40("fieldset", { className: "mbrfa-plain", disabled, children: /* @__PURE__ */ jsx40(RfaOfficialContactFields, { editable: manual, nameLabel: "Company Name", value: shown, onChange: (contact) => onChange(administratorId, contact) }) }),
|
|
12876
|
+
/* @__PURE__ */ jsx40(RfaManualToggle, { manual, onChange: setManual, disabled })
|
|
12834
12877
|
] });
|
|
12835
12878
|
}
|
|
12836
12879
|
return /* @__PURE__ */ jsxs38("fieldset", { disabled, children: [
|
|
@@ -12963,6 +13006,10 @@ function RfaDraftForm({ initialDraft, identity, officialForm = false, formDetail
|
|
|
12963
13006
|
document.removeEventListener("visibilitychange", refresh);
|
|
12964
13007
|
};
|
|
12965
13008
|
}, [officialForm, onRefreshProfile]);
|
|
13009
|
+
const [practiceManualChoice, setPracticeManual] = useState26(null);
|
|
13010
|
+
const savedPractices = organizationProfile?.billingProviders ?? [];
|
|
13011
|
+
const typedPractice = Object.values(savedDraft.requestingPractice ?? {}).some((value) => value?.trim());
|
|
13012
|
+
const practiceManual = practiceManualChoice ?? !(savedPractices.some((provider) => provider.name === savedDraft.requestingPractice?.name) || !typedPractice && savedPractices.length > 0);
|
|
12966
13013
|
const [administratorOverride, setAdministratorOverride] = useState26(null);
|
|
12967
13014
|
const identityKey = `${identity?.claimId ?? ""}:${identity?.claimsAdminId ?? ""}`;
|
|
12968
13015
|
const previousClaim = useRef19(identityKey);
|
|
@@ -13045,7 +13092,7 @@ function RfaDraftForm({ initialDraft, identity, officialForm = false, formDetail
|
|
|
13045
13092
|
if (officialForm) return /* @__PURE__ */ jsxs39(TreatmentDraftShell, { ...appearance, hideHeading: embedded, title: "Request for authorization", description: "DWC Form RFA", children: [
|
|
13046
13093
|
mode === "edit" ? /* @__PURE__ */ jsx41("p", { className: "mbtd-note", children: "Saving replaces this draft, clears its signature, and requires a new signing review. It does not send the request or authorize treatment." }) : null,
|
|
13047
13094
|
onBack ? /* @__PURE__ */ jsx41("button", { type: "button", disabled: locked, onClick: () => onBack(draft2), children: "Back to patient and physician" }) : null,
|
|
13048
|
-
/* @__PURE__ */ jsxs39("form", { onSubmit: submit, children: [
|
|
13095
|
+
/* @__PURE__ */ jsxs39("form", { onSubmit: submit, className: "mbrfa-official", children: [
|
|
13049
13096
|
/* @__PURE__ */ jsxs39("fieldset", { disabled: locked, className: "mbrfa-request-details", children: [
|
|
13050
13097
|
/* @__PURE__ */ jsx41("legend", { children: "Request type" }),
|
|
13051
13098
|
/* @__PURE__ */ jsxs39("div", { className: "mbtd-grid", children: [
|
|
@@ -13081,11 +13128,12 @@ function RfaDraftForm({ initialDraft, identity, officialForm = false, formDetail
|
|
|
13081
13128
|
/* @__PURE__ */ jsx41("legend", { children: "Requesting Physician Information" }),
|
|
13082
13129
|
/* @__PURE__ */ jsxs39("div", { className: "mbrfa-pickers", "data-columns": selectors?.physician ? 3 : 2, children: [
|
|
13083
13130
|
selectors?.physician ? /* @__PURE__ */ jsx41(RfaPicker, { label: "Requesting physician", children: selectors.physician }) : null,
|
|
13084
|
-
/* @__PURE__ */ jsx41(RfaPracticePicker, { profile: organizationProfile, value: draft2.requestingPractice, onChange: (requestingPractice) => update({ requestingPractice }), ...managePracticeHref ? { managePracticeHref } : {}, ...manageLocationsHref ? { manageLocationsHref } : {}, onEditPractice, onEditLocation })
|
|
13131
|
+
/* @__PURE__ */ jsx41(RfaPracticePicker, { profile: organizationProfile, value: draft2.requestingPractice, onChange: (requestingPractice) => update({ requestingPractice }), ...managePracticeHref ? { managePracticeHref } : {}, ...manageLocationsHref ? { manageLocationsHref } : {}, onEditPractice, onEditLocation, onChosen: () => setPracticeManual(false) })
|
|
13085
13132
|
] }),
|
|
13086
13133
|
/* @__PURE__ */ jsx41("fieldset", { className: "mbrfa-plain", disabled: locked, children: /* @__PURE__ */ jsx41(
|
|
13087
13134
|
RfaOfficialContactFields,
|
|
13088
13135
|
{
|
|
13136
|
+
editable: practiceManual,
|
|
13089
13137
|
nameLabel: "Practice Name",
|
|
13090
13138
|
value: draft2.requestingPractice,
|
|
13091
13139
|
onChange: (requestingPractice) => update({ requestingPractice }),
|
|
@@ -13096,7 +13144,8 @@ function RfaDraftForm({ initialDraft, identity, officialForm = false, formDetail
|
|
|
13096
13144
|
/* @__PURE__ */ jsx41(RfaSavedField, { span: 3, label: "NPI Number", value: draft2.providerNpi })
|
|
13097
13145
|
] })
|
|
13098
13146
|
}
|
|
13099
|
-
) })
|
|
13147
|
+
) }),
|
|
13148
|
+
/* @__PURE__ */ jsx41(RfaManualToggle, { manual: practiceManual, onChange: setPracticeManual, disabled: locked })
|
|
13100
13149
|
] }),
|
|
13101
13150
|
/* @__PURE__ */ jsx41(RfaContactPicker, { officialForm: true, ...searchClaimsAdministrators ? { searchClaimsAdministrators } : {}, ...getClaimsAdministratorDirectory ? { getClaimsAdministratorDirectory } : {}, ...draft2.claimsAdminId ? { administratorId: draft2.claimsAdminId } : {}, ...draft2.claimNumber ? { claimNumber: draft2.claimNumber } : {}, contextKey: draft2.claimId, value: draft2.authorizationContact, disabled: locked, onChange: (id, authorizationContact) => {
|
|
13102
13151
|
setAdministratorOverride({ id });
|