@mindbill/react 0.34.0 → 0.35.0
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/README.md +23 -0
- package/dist/index.d.ts +102 -3
- package/dist/index.js +965 -466
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -297,6 +297,29 @@ Use `BillStatusSummary` only when your application already owns status loading a
|
|
|
297
297
|
|
|
298
298
|
Never send a Partner API key or long-lived credential to React/browser code.
|
|
299
299
|
|
|
300
|
+
## Bill tasks worklist, submissions ribbon, and payer status calls
|
|
301
|
+
|
|
302
|
+
`BillTasksDashboard` is the daisyBill-style Bill Tasks worklist: one tone-colored card per task section, rows bucketed by age (1-30 / 31-60 / 61-90 / 91-180 / 181+ days), clickable counts that carry the bill refs behind them, and a grand-total card. It is purely props-driven — aggregate your own work items with `buildBillTasksDashboard` (re-exported from `@mindbill/browser`):
|
|
303
|
+
|
|
304
|
+
```tsx
|
|
305
|
+
import { BillTasksDashboard, buildBillTasksDashboard } from "@mindbill/react";
|
|
306
|
+
|
|
307
|
+
const data = buildBillTasksDashboard(workItems, [
|
|
308
|
+
{ id: "payment_due", label: "Payment Due", agingBasisLabel: "Bill Sent Date", tone: "violet" },
|
|
309
|
+
{ id: "denials", label: "Denials", agingBasisLabel: "EOR Date", tone: "red" },
|
|
310
|
+
]);
|
|
311
|
+
|
|
312
|
+
<BillTasksDashboard
|
|
313
|
+
data={data}
|
|
314
|
+
heading="Bill Tasks"
|
|
315
|
+
onSelectCell={(cell) => openWorklist(cell.sectionId, cell.rowId, cell.bucketId, cell.refs)}
|
|
316
|
+
/>
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
`BillSubmissionsRibbon` renders a horizontal row of submission chips (Original Bill, Second Review, Duplicate Bill, …) with an optional deadline badge and up to three label/value meta pairs; `billSubmissionsRibbonFromHistory` maps the presented history's submission rows into chips.
|
|
320
|
+
|
|
321
|
+
`ReportBillStatusDialog` records the outcome of a payment-status phone call to the Claims Administrator / Bill Review vendor: payer contacts, the host-rendered submission receipt (for example a `BillHistoryTable`), and the five standard reported statuses (`REPORT_BILL_STATUS_OPTIONS`). The host posts the resulting `ReportBillStatusInput` through its own lifecycle action call.
|
|
322
|
+
|
|
300
323
|
## Organization onboarding and billing settings
|
|
301
324
|
|
|
302
325
|
`OrganizationOnboarding` captures the practice identity, billing provider, locations, and W-9 once — saved straight to your MindBill organization through the browser session — so your users never visit the MindBill dashboard. `BillingSettings` is the compact edit-after-setup variant of the same surface.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { MindBillAppearance, MindBillEventDetail, MindBillErrorDetail } from '@mindbill/embed';
|
|
2
2
|
export { MindBillAppearance, MindBillErrorDetail, MindBillEventDetail } from '@mindbill/embed';
|
|
3
3
|
import { CSSProperties, ReactElement, ReactNode } from 'react';
|
|
4
|
-
import { BillReviewData as BillReviewData$1, BillLifecycleDelivery, BillReviewAttachment as BillReviewAttachment$1, BrowserBillSubmissionResult, BillLifecycleSessionProvider, BillReviewPayer as BillReviewPayer$1, BrowserBillSubmissionDocument, BillDeliveryOptions as BillDeliveryOptions$1, SubmitBillInput, OrganizationProfileData, BillRemittanceSummary, BillEorDocument, BillPaymentRecord,
|
|
5
|
-
export { BillActivityRecord, BillClaimsAdministratorContact, BillClaimsAdministratorDirectory, BillClaimsAdministratorMailingAddress, BillClaimsAdministratorPattern, BillEorDocument, BillLifecycleAction, BillLifecycleActionId, BillLifecycleClient, BillLifecycleClientOptions, BillLifecycleData, BillLifecycleDelivery, BillLifecycleSession, BillLifecycleSessionProvider, BillLifecycleSessionRequest, BillPaymentRecord, BillRejection, BillRemittanceSummary, BrowserBillSubmissionResult, CloseBillInput, PostBillPaymentInput, ReopenBillInput, SubmitSecondReviewInput, createBillLifecycleClient } from '@mindbill/browser';
|
|
4
|
+
import { BillReviewData as BillReviewData$1, BillLifecycleDelivery, BillReviewAttachment as BillReviewAttachment$1, BrowserBillSubmissionResult, BillLifecycleSessionProvider, BillReviewPayer as BillReviewPayer$1, BrowserBillSubmissionDocument, BillDeliveryOptions as BillDeliveryOptions$1, SubmitBillInput, BillTasksDashboardData, BillTasksAgingBucket, BillHistoryEntry, OrganizationProfileData, BillRemittanceSummary, BillEorDocument, BillPaymentRecord, BillLifecycleAction, BillRejection, BillLifecycleData, BillLifecycleClientOptions, BillLifecycleClient } from '@mindbill/browser';
|
|
5
|
+
export { BILL_TASKS_AGING_BUCKETS, BillActivityRecord, BillClaimsAdministratorContact, BillClaimsAdministratorDirectory, BillClaimsAdministratorMailingAddress, BillClaimsAdministratorPattern, BillEorDocument, BillLifecycleAction, BillLifecycleActionId, BillLifecycleClient, BillLifecycleClientOptions, BillLifecycleData, BillLifecycleDelivery, BillLifecycleSession, BillLifecycleSessionProvider, BillLifecycleSessionRequest, BillPaymentRecord, BillRejection, BillRemittanceSummary, BillTasksAgingBucket, BillTasksDashboardData, BillTasksDashboardItem, BillTasksDashboardRow, BillTasksDashboardSection, BillTasksDashboardSectionInput, BillTasksDashboardTone, BrowserBillSubmissionResult, CloseBillInput, PostBillPaymentInput, ReopenBillInput, SubmitSecondReviewInput, billTasksAgingBucketIndex, buildBillTasksDashboard, createBillLifecycleClient } from '@mindbill/browser';
|
|
6
6
|
|
|
7
7
|
type MindBillThemePreset = "mindbill" | "qme-companion" | "orange-bright" | "clinical-blue" | "midnight-cyan";
|
|
8
8
|
type MindBillReactAppearance = MindBillAppearance & {
|
|
@@ -765,6 +765,105 @@ declare function buildBillStatusAgingMatrix(bills: BillingDashboardBill[], state
|
|
|
765
765
|
declare function buildBillStatusAgingCsv(bills: BillingDashboardBill[], stateOrder?: string[]): string;
|
|
766
766
|
declare function BillStatusAgingMatrix({ bills, heading, description, stateOrder, showBalances, onSelectCell, appearance, className, style, }: BillStatusAgingMatrixProps): ReactElement;
|
|
767
767
|
|
|
768
|
+
type SurfaceProps$3 = {
|
|
769
|
+
appearance?: MindBillReactAppearance;
|
|
770
|
+
className?: string;
|
|
771
|
+
style?: CSSProperties;
|
|
772
|
+
};
|
|
773
|
+
type BillTasksDashboardCell = {
|
|
774
|
+
sectionId: string;
|
|
775
|
+
rowId: string;
|
|
776
|
+
/** Null for a row's "Task Total" cell (all buckets). */
|
|
777
|
+
bucketId: string | null;
|
|
778
|
+
refs: string[];
|
|
779
|
+
count: number;
|
|
780
|
+
};
|
|
781
|
+
type BillTasksDashboardProps = SurfaceProps$3 & {
|
|
782
|
+
data: BillTasksDashboardData;
|
|
783
|
+
/** Must match the buckets passed to buildBillTasksDashboard. */
|
|
784
|
+
buckets?: BillTasksAgingBucket[];
|
|
785
|
+
heading?: ReactNode;
|
|
786
|
+
grandTotalLabel?: string;
|
|
787
|
+
emptyLabel?: string;
|
|
788
|
+
onSelectCell?: (cell: BillTasksDashboardCell) => void;
|
|
789
|
+
/** Rendered above the sections — hosts pass their own filters. */
|
|
790
|
+
toolbar?: ReactNode;
|
|
791
|
+
footnote?: ReactNode;
|
|
792
|
+
};
|
|
793
|
+
declare function BillTasksDashboard({ data, buckets, heading, grandTotalLabel, emptyLabel, onSelectCell, toolbar, footnote, appearance, className, style, }: BillTasksDashboardProps): ReactElement;
|
|
794
|
+
|
|
795
|
+
type SurfaceProps$2 = {
|
|
796
|
+
appearance?: MindBillReactAppearance;
|
|
797
|
+
className?: string;
|
|
798
|
+
style?: CSSProperties;
|
|
799
|
+
};
|
|
800
|
+
type BillSubmissionRibbonItem = {
|
|
801
|
+
id: string;
|
|
802
|
+
/** "Original Bill" | "Second Review" | "Duplicate Bill" | … */
|
|
803
|
+
label: string;
|
|
804
|
+
/** Small rounded badge, e.g. "Denial in 3 working days". */
|
|
805
|
+
badge?: string;
|
|
806
|
+
/** Up to three label/value pairs rendered under the label. */
|
|
807
|
+
meta?: Array<{
|
|
808
|
+
label: string;
|
|
809
|
+
value: string;
|
|
810
|
+
}>;
|
|
811
|
+
active?: boolean;
|
|
812
|
+
href?: string;
|
|
813
|
+
};
|
|
814
|
+
type BillSubmissionsRibbonProps = SurfaceProps$2 & {
|
|
815
|
+
items: BillSubmissionRibbonItem[];
|
|
816
|
+
onSelect?: (item: BillSubmissionRibbonItem) => void;
|
|
817
|
+
};
|
|
818
|
+
/** Maps a presented-history submission summary to its delivery route word. */
|
|
819
|
+
declare function billSubmissionsRibbonDeliveryLabel(summary: string): string;
|
|
820
|
+
/** Builds ribbon items from MindBill's presented history (submission rows only). */
|
|
821
|
+
declare function billSubmissionsRibbonFromHistory(history: BillHistoryEntry[]): BillSubmissionRibbonItem[];
|
|
822
|
+
declare function BillSubmissionsRibbon({ items, onSelect, appearance, className, style, }: BillSubmissionsRibbonProps): ReactElement;
|
|
823
|
+
|
|
824
|
+
type SurfaceProps$1 = {
|
|
825
|
+
appearance?: MindBillReactAppearance;
|
|
826
|
+
className?: string;
|
|
827
|
+
style?: CSSProperties;
|
|
828
|
+
};
|
|
829
|
+
type ReportBillStatusId = "message_left" | "eor_pending" | "eor_sent" | "bill_not_on_file" | "forwarded";
|
|
830
|
+
type ReportBillStatusInput = {
|
|
831
|
+
status: ReportBillStatusId;
|
|
832
|
+
company?: string;
|
|
833
|
+
representativeName?: string;
|
|
834
|
+
representativeRole?: string;
|
|
835
|
+
phone?: string;
|
|
836
|
+
callReference?: string;
|
|
837
|
+
note?: string;
|
|
838
|
+
};
|
|
839
|
+
declare const REPORT_BILL_STATUS_OPTIONS: Array<{
|
|
840
|
+
id: ReportBillStatusId;
|
|
841
|
+
label: string;
|
|
842
|
+
description: string;
|
|
843
|
+
}>;
|
|
844
|
+
type ReportBillStatusDialogProps = SurfaceProps$1 & {
|
|
845
|
+
title?: ReactNode;
|
|
846
|
+
claimsAdmin?: {
|
|
847
|
+
name: string;
|
|
848
|
+
hoursOfOperation?: string;
|
|
849
|
+
phones?: Array<{
|
|
850
|
+
label: string;
|
|
851
|
+
value: string;
|
|
852
|
+
}>;
|
|
853
|
+
};
|
|
854
|
+
billReview?: {
|
|
855
|
+
name: string;
|
|
856
|
+
phone?: string;
|
|
857
|
+
};
|
|
858
|
+
/** Host renders its submission receipt, e.g. a BillHistoryTable. */
|
|
859
|
+
receipt?: ReactNode;
|
|
860
|
+
submitting?: boolean;
|
|
861
|
+
error?: string | null;
|
|
862
|
+
onCancel: () => void;
|
|
863
|
+
onSave: (input: ReportBillStatusInput) => void;
|
|
864
|
+
};
|
|
865
|
+
declare function ReportBillStatusDialog({ title, claimsAdmin, billReview, receipt, submitting, error, onCancel, onSave, appearance, className, style, }: ReportBillStatusDialogProps): ReactElement;
|
|
866
|
+
|
|
768
867
|
type OrganizationOnboardingProps = {
|
|
769
868
|
appearance?: MindBillReactAppearance;
|
|
770
869
|
className?: string;
|
|
@@ -995,4 +1094,4 @@ type MindBillWidgetProps = {
|
|
|
995
1094
|
declare function MindBillBillTimeline(props: MindBillWidgetProps): ReactElement;
|
|
996
1095
|
declare function MindBillBillReview(props: MindBillWidgetProps): ReactElement;
|
|
997
1096
|
|
|
998
|
-
export { BILL_STATUS_AGING_BUCKETS, BILL_SUBMISSION_DIAGNOSIS_QUICK_PICKS, BILL_SUBMISSION_DOCUMENT_TYPES, BILL_SUBMISSION_REPORT_TYPES, BILL_SUBMISSION_REQUIRED_FIELDS, type BillActivityEvent, BillActivityTimeline, type BillActivityTimelineProps, type BillAgingBucket, type BillAgingBucketId, BillAgingSummary, type BillAgingSummaryProps, BillExplanationOfReview, type BillExplanationOfReviewProps, BillHistoryTable, type BillHistoryTableProps, BillLifecycleActions, type BillLifecycleActionsProps, BillLifecycleProgress, type BillLifecycleProgressProps, type BillLifecycleStage, BillList, type BillListProps, BillPayerContactCard, type BillPayerContactCardProps, BillPaymentLedger, type BillPaymentLedgerProps, BillReadOnlyForm, type BillReadOnlyFormProps, BillRejectionNotice, type BillRejectionNoticeProps, BillRemittanceCard, type BillRemittanceCardProps, type BillReviewAttachment, type BillReviewBillingProvider, type BillReviewClinician, type BillReviewData, type BillReviewDocumentType, type BillReviewDraft, type BillReviewFeatures, BillReviewForm, type BillReviewFormProps, type BillReviewLineItem, type BillReviewLocation, type BillReviewPayer, type BillReviewSaveInput, BillSnapshotSummary, type BillSnapshotSummaryProps, type BillStatusAction, type BillStatusAgingCell, BillStatusAgingMatrix, type BillStatusAgingMatrixData, type BillStatusAgingMatrixProps, type BillStatusAgingRow, type BillStatusClient, type BillStatusClientOptions, type BillStatusData, type BillStatusSession, type BillStatusSessionProvider, type BillStatusSessionRequest, BillStatusSummary, type BillStatusSummaryProps, BillSubmissionActions, type BillSubmissionAddress, type BillSubmissionAttachmentReportTypeMode, BillSubmissionAttachmentsSection, BillSubmissionClaimSection, type BillSubmissionDiagnosisOption, type BillSubmissionDocumentType, type BillSubmissionEvaluationType, BillSubmissionForm, type BillSubmissionFormProps, type BillSubmissionFormValue, BillSubmissionHeader, type BillSubmissionInput, type BillSubmissionModifierOption, BillSubmissionPatientSection, type BillSubmissionPostalPlace, type BillSubmissionProcedureOption, BillSubmissionProvidersSection, type BillSubmissionReportTypeOption, type BillSubmissionRoute, type BillSubmissionSectionId, BillSubmissionServiceLinesSection, type BillSubmissionSourceAttachment, type BillSubmissionTaxonomyOption, type BillSubmissionUpload, type BillSubmissionValidation, type BillingComponentProps, BillingDashboard, type BillingDashboardBill, type BillingDashboardProps, type BillingDashboardSummary, BillingReport, type BillingReportDimension, type BillingReportProps, type BillingReportRow, BillingSettings, ConnectedBillLifecycle, type ConnectedBillLifecycleProps, ConnectedBillStatus, type ConnectedBillStatusProps, DEFAULT_BILL_SUBMISSION_MODIFIERS, DEFAULT_BILL_SUBMISSION_PROCEDURES, DEFAULT_BILL_SUBMISSION_TAXONOMIES, MED_LEGAL_REPORT_TYPE_CODE, MindBillBillReview, MindBillBillTimeline, type MindBillReactAppearance, type MindBillThemePreset, type MindBillWidgetProps, OrganizationOnboarding, type OrganizationOnboardingProps, PSYCH_QME_DEFAULT_DIAGNOSIS, SendRouteDialog, type SendRouteDialogProps, type SendRouteSubmission, type UseBillLifecycleOptions, type UseBillLifecycleResult, type UseBillStatusOptions, type UseBillStatusResult, applyBillSubmissionEvaluationDiagnoses, applyBillSubmissionEvaluationModifiers, billActivityEventLabel, billAgingBucket, billAgingDays, billLifecycleDisplayLabel, billLifecycleStage, buildBillReviewSaveInput, buildBillStatusAgingCsv, buildBillStatusAgingMatrix, buildBillingReportCsv, buildBillingReportRows, calculateBillSubmissionAllowedAmount, claimsAdministratorRecommendations, createBillStatusClient, ensureTrailingBillSubmissionLine, ensureTrailingProcedureLine, exactClaimsAdministratorMatch, extractSendRouteEmail, formatBillSubmissionDate, formatSendRouteFax, mindBillAppearanceStyle, mindBillThemePresets, normalizeClaimsAdministratorName, parseBillSubmissionDate, prepareBillSubmissionDocuments, resolveMindBillAppearance, summarizeBillingDashboard, useBillLifecycle, useBillStatus, validateBillSubmission, visibleBillLifecycleActions };
|
|
1097
|
+
export { BILL_STATUS_AGING_BUCKETS, BILL_SUBMISSION_DIAGNOSIS_QUICK_PICKS, BILL_SUBMISSION_DOCUMENT_TYPES, BILL_SUBMISSION_REPORT_TYPES, BILL_SUBMISSION_REQUIRED_FIELDS, type BillActivityEvent, BillActivityTimeline, type BillActivityTimelineProps, type BillAgingBucket, type BillAgingBucketId, BillAgingSummary, type BillAgingSummaryProps, BillExplanationOfReview, type BillExplanationOfReviewProps, BillHistoryTable, type BillHistoryTableProps, BillLifecycleActions, type BillLifecycleActionsProps, BillLifecycleProgress, type BillLifecycleProgressProps, type BillLifecycleStage, BillList, type BillListProps, BillPayerContactCard, type BillPayerContactCardProps, BillPaymentLedger, type BillPaymentLedgerProps, BillReadOnlyForm, type BillReadOnlyFormProps, BillRejectionNotice, type BillRejectionNoticeProps, BillRemittanceCard, type BillRemittanceCardProps, type BillReviewAttachment, type BillReviewBillingProvider, type BillReviewClinician, type BillReviewData, type BillReviewDocumentType, type BillReviewDraft, type BillReviewFeatures, BillReviewForm, type BillReviewFormProps, type BillReviewLineItem, type BillReviewLocation, type BillReviewPayer, type BillReviewSaveInput, BillSnapshotSummary, type BillSnapshotSummaryProps, type BillStatusAction, type BillStatusAgingCell, BillStatusAgingMatrix, type BillStatusAgingMatrixData, type BillStatusAgingMatrixProps, type BillStatusAgingRow, type BillStatusClient, type BillStatusClientOptions, type BillStatusData, type BillStatusSession, type BillStatusSessionProvider, type BillStatusSessionRequest, BillStatusSummary, type BillStatusSummaryProps, BillSubmissionActions, type BillSubmissionAddress, type BillSubmissionAttachmentReportTypeMode, BillSubmissionAttachmentsSection, BillSubmissionClaimSection, type BillSubmissionDiagnosisOption, type BillSubmissionDocumentType, type BillSubmissionEvaluationType, BillSubmissionForm, type BillSubmissionFormProps, type BillSubmissionFormValue, BillSubmissionHeader, type BillSubmissionInput, type BillSubmissionModifierOption, BillSubmissionPatientSection, type BillSubmissionPostalPlace, type BillSubmissionProcedureOption, BillSubmissionProvidersSection, type BillSubmissionReportTypeOption, type BillSubmissionRibbonItem, type BillSubmissionRoute, type BillSubmissionSectionId, BillSubmissionServiceLinesSection, type BillSubmissionSourceAttachment, type BillSubmissionTaxonomyOption, type BillSubmissionUpload, type BillSubmissionValidation, BillSubmissionsRibbon, type BillSubmissionsRibbonProps, BillTasksDashboard, type BillTasksDashboardCell, type BillTasksDashboardProps, type BillingComponentProps, BillingDashboard, type BillingDashboardBill, type BillingDashboardProps, type BillingDashboardSummary, BillingReport, type BillingReportDimension, type BillingReportProps, type BillingReportRow, BillingSettings, ConnectedBillLifecycle, type ConnectedBillLifecycleProps, ConnectedBillStatus, type ConnectedBillStatusProps, DEFAULT_BILL_SUBMISSION_MODIFIERS, DEFAULT_BILL_SUBMISSION_PROCEDURES, DEFAULT_BILL_SUBMISSION_TAXONOMIES, MED_LEGAL_REPORT_TYPE_CODE, MindBillBillReview, MindBillBillTimeline, type MindBillReactAppearance, type MindBillThemePreset, type MindBillWidgetProps, OrganizationOnboarding, type OrganizationOnboardingProps, PSYCH_QME_DEFAULT_DIAGNOSIS, REPORT_BILL_STATUS_OPTIONS, ReportBillStatusDialog, type ReportBillStatusDialogProps, type ReportBillStatusId, type ReportBillStatusInput, SendRouteDialog, type SendRouteDialogProps, type SendRouteSubmission, type UseBillLifecycleOptions, type UseBillLifecycleResult, type UseBillStatusOptions, type UseBillStatusResult, applyBillSubmissionEvaluationDiagnoses, applyBillSubmissionEvaluationModifiers, billActivityEventLabel, billAgingBucket, billAgingDays, billLifecycleDisplayLabel, billLifecycleStage, billSubmissionsRibbonDeliveryLabel, billSubmissionsRibbonFromHistory, buildBillReviewSaveInput, buildBillStatusAgingCsv, buildBillStatusAgingMatrix, buildBillingReportCsv, buildBillingReportRows, calculateBillSubmissionAllowedAmount, claimsAdministratorRecommendations, createBillStatusClient, ensureTrailingBillSubmissionLine, ensureTrailingProcedureLine, exactClaimsAdministratorMatch, extractSendRouteEmail, formatBillSubmissionDate, formatSendRouteFax, mindBillAppearanceStyle, mindBillThemePresets, normalizeClaimsAdministratorName, parseBillSubmissionDate, prepareBillSubmissionDocuments, resolveMindBillAppearance, summarizeBillingDashboard, useBillLifecycle, useBillStatus, validateBillSubmission, visibleBillLifecycleActions };
|