@mindbill/react 0.77.22 → 0.77.24

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 CHANGED
@@ -946,6 +946,23 @@ type RfaContactDirectoryProps = {
946
946
  getClaimsAdministratorDirectory?: (id: string, injuryState?: string) => Promise<BillClaimsAdministratorDirectory>;
947
947
  };
948
948
 
949
+ /** Saved values printed on the DWC Form RFA that the request itself does not store. */
950
+ type RfaFormDetails = {
951
+ employee?: {
952
+ formName?: string | undefined;
953
+ dateOfBirth?: string | undefined;
954
+ employer?: string | undefined;
955
+ };
956
+ physician?: {
957
+ specialty?: string | undefined;
958
+ };
959
+ };
960
+ /** Host-rendered lookups placed inside the matching official form section. */
961
+ type RfaFormSelectors = {
962
+ claim?: ReactNode;
963
+ physician?: ReactNode;
964
+ };
965
+
949
966
  type RfaDraftItemInput = {
950
967
  id?: string;
951
968
  externalId?: string;
@@ -991,8 +1008,12 @@ type RfaDraftFormProps = TreatmentDraftAppearance & RfaContactDirectoryProps & {
991
1008
  /** Remount with a different React key when switching requests. Use mode="edit" when replacing existing content; saving invalidates its signature. */
992
1009
  initialDraft: RfaDraftInput;
993
1010
  mode?: "create" | "edit";
994
- /** Use the official DWC-RFA labels and consolidated service information. Opt in per host organization. */
1011
+ /** Follow the DWC Form RFA section by section, showing every printed field. Opt in per host organization. */
995
1012
  officialForm?: boolean;
1013
+ /** Saved employee and physician values printed on the form but not stored on the request. */
1014
+ formDetails?: RfaFormDetails | undefined;
1015
+ /** Lookups rendered inside the Employee and Requesting Physician sections; they stay usable while the form is disabled. */
1016
+ selectors?: RfaFormSelectors;
996
1017
  managePracticeHref?: string;
997
1018
  manageLocationsHref?: string;
998
1019
  onRefreshProfile?: () => Promise<void>;
@@ -1031,7 +1052,7 @@ type RfaDraftFormProps = TreatmentDraftAppearance & RfaContactDirectoryProps & {
1031
1052
  /** Remove blank optional item fields, retaining an explicitly cleared return fax. */
1032
1053
  declare function normalizeRfaDraft(draft: RfaDraftInput): RfaDraftInput;
1033
1054
  declare function validateRfaDraft(draft: RfaDraftInput): string | null;
1034
- declare function RfaDraftForm({ initialDraft, identity, officialForm, managePracticeHref, manageLocationsHref, onRefreshProfile, onReview, onPreview, searchClaimsAdministrators, getClaimsAdministratorDirectory, embedded, onSave, onBack, mode, searchDiagnosisCodes, organizationProfile, savedDiagnosisCodes, supportingDocuments, disabled, ...appearance }: RfaDraftFormProps): ReactElement;
1055
+ declare function RfaDraftForm({ initialDraft, identity, officialForm, formDetails, selectors, managePracticeHref, manageLocationsHref, onRefreshProfile, onReview, onPreview, searchClaimsAdministrators, getClaimsAdministratorDirectory, embedded, onSave, onBack, mode, searchDiagnosisCodes, organizationProfile, savedDiagnosisCodes, supportingDocuments, disabled, ...appearance }: RfaDraftFormProps): ReactElement;
1035
1056
 
1036
1057
  type RfaClaimSelectorProps = {
1037
1058
  selectedClaimId: string;
@@ -2158,9 +2179,11 @@ type RfaAuthorizationDestinationProps = {
2158
2179
  /** Selection only: the host owns signing, destination confirmation, and delivery. */
2159
2180
  onSelectionStart?: () => void;
2160
2181
  onChange: (destination: RfaAuthorizationDestinationOption | null) => void;
2182
+ /** Render as a plain field group inside a host form section, without its own frame or legend. */
2183
+ compact?: boolean;
2161
2184
  };
2162
2185
  /** Choose a destination without sending an RFA or treating email as fax. */
2163
- declare function RfaAuthorizationDestination({ contextKey, directory, savedContact, loading, error, disabled, onChange, onSelectionStart }: RfaAuthorizationDestinationProps): ReactElement;
2186
+ declare function RfaAuthorizationDestination({ contextKey, directory, savedContact, loading, error, disabled, onChange, onSelectionStart, compact }: RfaAuthorizationDestinationProps): ReactElement;
2164
2187
 
2165
2188
  type RfaLifecycleControlsProps = OrganizationClientOptions & TreatmentDraftAppearance & {
2166
2189
  rfa: RfaRecord;