@mindbill/react 0.48.1 → 0.49.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/dist/index.d.ts CHANGED
@@ -1019,6 +1019,46 @@ declare function OrganizationOnboarding({ appearance, className, style, sessionE
1019
1019
  /** Compact edit-after-setup variant of {@link OrganizationOnboarding}. */
1020
1020
  declare function BillingSettings(props: Omit<OrganizationOnboardingProps, "variant">): ReactElement;
1021
1021
 
1022
+ type NotificationAgingDay = 30 | 60 | 90;
1023
+ type NotificationPreferences = {
1024
+ enabled: boolean;
1025
+ statusUpdates: boolean;
1026
+ agingDays: NotificationAgingDay[];
1027
+ quietHours: boolean;
1028
+ };
1029
+ /** A projection from the host's authenticated server, not the raw administrative API. */
1030
+ type NotificationSettingsSnapshot = {
1031
+ preferences: NotificationPreferences | null;
1032
+ /** Display only. The server selects and verifies this address. */
1033
+ email: string;
1034
+ audience: "practice" | "assigned_bills";
1035
+ environment: "live" | "sandbox";
1036
+ canEnable: boolean;
1037
+ };
1038
+ /** Deliberately excludes identity, address, audience, verification and bill assignments. */
1039
+ type NotificationSettingsUpdate = NotificationPreferences & {
1040
+ consent: boolean;
1041
+ };
1042
+ type NotificationSettingsAdapter = {
1043
+ load: () => Promise<NotificationSettingsSnapshot>;
1044
+ save: (update: NotificationSettingsUpdate) => Promise<NotificationSettingsSnapshot>;
1045
+ unsubscribe: () => Promise<NotificationSettingsSnapshot>;
1046
+ };
1047
+ type NotificationSettingsProps = {
1048
+ /** Change on host user, practice or environment changes. Never an authorization credential. */
1049
+ identityKey: string;
1050
+ /** Memoize this adapter. Every method calls the host's authenticated server. */
1051
+ adapter: NotificationSettingsAdapter;
1052
+ appearance?: MindBillReactAppearance;
1053
+ className?: string;
1054
+ style?: CSSProperties;
1055
+ onSaved?: (snapshot: NotificationSettingsSnapshot) => void;
1056
+ };
1057
+ /** Drop into a host settings page. Identity changes remount and discard stale UI state. */
1058
+ declare function NotificationSettings(props: NotificationSettingsProps): ReactElement;
1059
+ /** The same connected, host-adapter surface; no permanent key or browser enrollment endpoint. */
1060
+ declare const ConnectedNotificationSettings: typeof NotificationSettings;
1061
+
1022
1062
  type BillStatusData = {
1023
1063
  billId: string;
1024
1064
  state: string;
@@ -1217,6 +1257,8 @@ type UseBillLifecycleResult = {
1217
1257
  openAttachment: (attachment: Pick<BillReviewAttachment, "id">) => Promise<void>;
1218
1258
  openEor: (document: BillEorDocument) => Promise<void>;
1219
1259
  downloadPacket: () => Promise<void>;
1260
+ downloadSubmissionArtifact: (attemptId: string, artifactId: string, label: string) => Promise<void>;
1261
+ downloadIbrPacket: () => Promise<void>;
1220
1262
  addNote: BillLifecycleClient["addNote"];
1221
1263
  previewCourtesyCopy: BillLifecycleClient["previewCourtesyCopy"];
1222
1264
  sendCourtesyCopy: BillLifecycleClient["sendCourtesyCopy"];
@@ -1319,6 +1361,8 @@ type BillRegistryItem = {
1319
1361
  dateOfService: string | null;
1320
1362
  procedureCodes: string[];
1321
1363
  billingProviderId: string | null;
1364
+ renderingProviderId?: string | null;
1365
+ renderingProviderName?: string | null;
1322
1366
  submittedAt: string | null;
1323
1367
  arAgeDays: number | null;
1324
1368
  totalCharge: number;
@@ -1333,6 +1377,8 @@ type BillRegistryQuery = {
1333
1377
  age?: BillRegistryAge;
1334
1378
  claimsAdministrator?: string;
1335
1379
  billingProviderId?: string;
1380
+ /** Doctor who performed the service, distinct from the billing practice. */
1381
+ renderingProviderId?: string;
1336
1382
  taskSection?: string;
1337
1383
  taskType?: string;
1338
1384
  taskLabel?: string;
@@ -1346,6 +1392,12 @@ type BillRegistryResult = {
1346
1392
  balanceTotal: number;
1347
1393
  page: number;
1348
1394
  pageSize: number;
1395
+ filters?: {
1396
+ renderingProviders: Array<{
1397
+ id: string;
1398
+ name: string;
1399
+ }>;
1400
+ };
1349
1401
  };
1350
1402
  type BillTasksResult = {
1351
1403
  dashboard: BillTasksDashboardData;
@@ -1356,6 +1408,10 @@ type BillTasksResult = {
1356
1408
  id: string;
1357
1409
  name: string;
1358
1410
  }>;
1411
+ renderingProviders?: Array<{
1412
+ id: string;
1413
+ name: string;
1414
+ }>;
1359
1415
  };
1360
1416
  };
1361
1417
  type ServiceLineItemsReport = {
@@ -1414,7 +1470,7 @@ type BillingOperationsClientOptions = {
1414
1470
  type BillingOperationsClient = {
1415
1471
  clearSession: () => void;
1416
1472
  getBills: (query?: BillRegistryQuery, signal?: AbortSignal) => Promise<BillRegistryResult>;
1417
- getBillTasks: (claimsAdministrator?: string, signal?: AbortSignal) => Promise<BillTasksResult>;
1473
+ getBillTasks: (claimsAdministrator?: string, signal?: AbortSignal, renderingProviderId?: string) => Promise<BillTasksResult>;
1418
1474
  getServiceLineItems: (range: {
1419
1475
  from: string;
1420
1476
  to: string;
@@ -1453,10 +1509,12 @@ declare function ConnectedProductivityReport({ appearance, className, style, ini
1453
1509
  type ConnectedBillingWorkspaceProps = ConnectedSurfaceProps & {
1454
1510
  initialView?: "tasks" | "bills" | "procedures" | "productivity";
1455
1511
  onCreateBill?: () => void;
1512
+ /** Show simulation controls on selected sandbox bills. Never enables live simulations. */
1513
+ sandboxControls?: boolean;
1456
1514
  /** Return contacts for the selected bill only; never auto-selects recipients. */
1457
1515
  getCourtesyCopyRecipientOptions?: (billId: string) => readonly CourtesyCopyRecipientOption[];
1458
1516
  };
1459
- declare function ConnectedBillingWorkspace({ appearance, className, style, initialView, onCreateBill, getCourtesyCopyRecipientOptions, ...options }: ConnectedBillingWorkspaceProps): ReactElement;
1517
+ declare function ConnectedBillingWorkspace({ appearance, className, style, initialView, onCreateBill, sandboxControls, getCourtesyCopyRecipientOptions, ...options }: ConnectedBillingWorkspaceProps): ReactElement;
1460
1518
 
1461
1519
  type MindBillWidgetProps = {
1462
1520
  sessionToken: string;
@@ -1470,4 +1528,4 @@ type MindBillWidgetProps = {
1470
1528
  declare function MindBillBillTimeline(props: MindBillWidgetProps): ReactElement;
1471
1529
  declare function MindBillBillReview(props: MindBillWidgetProps): ReactElement;
1472
1530
 
1473
- 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, BillCourtesyCopyForm, type BillCourtesyCopyFormProps, BillExplanationOfReview, type BillExplanationOfReviewProps, BillHistoryTable, type BillHistoryTableProps, BillLifecycleActions, type BillLifecycleActionsProps, BillLifecycleProgress, type BillLifecycleProgressProps, type BillLifecycleProgressStepsOptions, type BillLifecycleStage, BillList, type BillListProps, BillPayerContactCard, type BillPayerContactCardProps, BillPaymentLedger, type BillPaymentLedgerProps, BillReadOnlyForm, type BillReadOnlyFormProps, type BillRegistryAge, type BillRegistryItem, type BillRegistryQuery, type BillRegistryResult, type BillRegistrySort, type BillRegistryStatus, 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$1 as BillSubmissionInput, type BillSubmissionModifierOption, BillSubmissionPatientSection, type BillSubmissionPostalPlace, type BillSubmissionProcedureOption, type BillSubmissionProfileOption, type BillSubmissionProfileOptions, 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 BillTasksResult, type BillingComponentProps, BillingDashboard, type BillingDashboardBill, type BillingDashboardProps, type BillingDashboardSummary, type BillingOperationsClient, type BillingOperationsClientOptions, BillingReport, type BillingReportDimension, type BillingReportProps, type BillingReportRow, BillingSettings, ClaimsAdministratorDirectoryDialog, type ClaimsAdministratorDirectoryDialogProps, ConnectedBillLifecycle, type ConnectedBillLifecycleProps, ConnectedBillSearch, type ConnectedBillSearchProps, ConnectedBillStatus, type ConnectedBillStatusProps, ConnectedBillTasksDashboard, type ConnectedBillTasksDashboardProps, ConnectedBillingWorkspace, type ConnectedBillingWorkspaceProps, ConnectedProductivityReport, ConnectedServiceLineItemsReport, type CourtesyCopyRecipientOption, 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, type ProductivityReport, ReportBillStatusDialog, type ReportBillStatusDialogProps, SECOND_REVIEW_REASON_TEMPLATES, SecondReviewForm, type SecondReviewFormProps, SendRouteDialog, type SendRouteDialogProps, type SendRouteSubmission, type ServiceLineItemsReport, type UseBillLifecycleOptions, type UseBillLifecycleResult, type UseBillStatusOptions, type UseBillStatusResult, applyBillSubmissionEvaluationDiagnoses, applyBillSubmissionEvaluationModifiers, billActivityEventLabel, billAgingBucket, billAgingDays, billLifecycleDisplayLabel, billLifecycleStage, billSubmissionsRibbonDeliveryLabel, billSubmissionsRibbonFromHistory, buildBillReviewSaveInput, buildBillStatusAgingCsv, buildBillStatusAgingMatrix, buildBillingReportCsv, buildBillingReportRows, calculateBillSubmissionAllowedAmount, chooseClaimsAdministrator, claimsAdministratorRecommendations, createBillStatusClient, createBillingOperationsClient, ensureTrailingBillSubmissionLine, ensureTrailingProcedureLine, exactClaimsAdministratorMatch, extractSendRouteEmail, formatBillSubmissionDate, formatSendRouteFax, isBillLifecycleDraft, mindBillAppearanceStyle, mindBillThemePresets, normalizeClaimsAdministratorName, organizationProfileOptions, parseBillSubmissionDate, prepareBillSubmissionDocuments, resolveMindBillAppearance, submittedClaimsAdministrator, summarizeBillingDashboard, useBillLifecycle, useBillStatus, validateBillSubmission, visibleBillLifecycleActions };
1531
+ 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, BillCourtesyCopyForm, type BillCourtesyCopyFormProps, BillExplanationOfReview, type BillExplanationOfReviewProps, BillHistoryTable, type BillHistoryTableProps, BillLifecycleActions, type BillLifecycleActionsProps, BillLifecycleProgress, type BillLifecycleProgressProps, type BillLifecycleProgressStepsOptions, type BillLifecycleStage, BillList, type BillListProps, BillPayerContactCard, type BillPayerContactCardProps, BillPaymentLedger, type BillPaymentLedgerProps, BillReadOnlyForm, type BillReadOnlyFormProps, type BillRegistryAge, type BillRegistryItem, type BillRegistryQuery, type BillRegistryResult, type BillRegistrySort, type BillRegistryStatus, 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$1 as BillSubmissionInput, type BillSubmissionModifierOption, BillSubmissionPatientSection, type BillSubmissionPostalPlace, type BillSubmissionProcedureOption, type BillSubmissionProfileOption, type BillSubmissionProfileOptions, 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 BillTasksResult, type BillingComponentProps, BillingDashboard, type BillingDashboardBill, type BillingDashboardProps, type BillingDashboardSummary, type BillingOperationsClient, type BillingOperationsClientOptions, BillingReport, type BillingReportDimension, type BillingReportProps, type BillingReportRow, BillingSettings, ClaimsAdministratorDirectoryDialog, type ClaimsAdministratorDirectoryDialogProps, ConnectedBillLifecycle, type ConnectedBillLifecycleProps, ConnectedBillSearch, type ConnectedBillSearchProps, ConnectedBillStatus, type ConnectedBillStatusProps, ConnectedBillTasksDashboard, type ConnectedBillTasksDashboardProps, ConnectedBillingWorkspace, type ConnectedBillingWorkspaceProps, ConnectedNotificationSettings, ConnectedProductivityReport, ConnectedServiceLineItemsReport, type CourtesyCopyRecipientOption, 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, type NotificationAgingDay, type NotificationPreferences, NotificationSettings, type NotificationSettingsAdapter, type NotificationSettingsProps, type NotificationSettingsSnapshot, type NotificationSettingsUpdate, OrganizationOnboarding, type OrganizationOnboardingProps, PSYCH_QME_DEFAULT_DIAGNOSIS, type ProductivityReport, ReportBillStatusDialog, type ReportBillStatusDialogProps, SECOND_REVIEW_REASON_TEMPLATES, SecondReviewForm, type SecondReviewFormProps, SendRouteDialog, type SendRouteDialogProps, type SendRouteSubmission, type ServiceLineItemsReport, type UseBillLifecycleOptions, type UseBillLifecycleResult, type UseBillStatusOptions, type UseBillStatusResult, applyBillSubmissionEvaluationDiagnoses, applyBillSubmissionEvaluationModifiers, billActivityEventLabel, billAgingBucket, billAgingDays, billLifecycleDisplayLabel, billLifecycleStage, billSubmissionsRibbonDeliveryLabel, billSubmissionsRibbonFromHistory, buildBillReviewSaveInput, buildBillStatusAgingCsv, buildBillStatusAgingMatrix, buildBillingReportCsv, buildBillingReportRows, calculateBillSubmissionAllowedAmount, chooseClaimsAdministrator, claimsAdministratorRecommendations, createBillStatusClient, createBillingOperationsClient, ensureTrailingBillSubmissionLine, ensureTrailingProcedureLine, exactClaimsAdministratorMatch, extractSendRouteEmail, formatBillSubmissionDate, formatSendRouteFax, isBillLifecycleDraft, mindBillAppearanceStyle, mindBillThemePresets, normalizeClaimsAdministratorName, organizationProfileOptions, parseBillSubmissionDate, prepareBillSubmissionDocuments, resolveMindBillAppearance, submittedClaimsAdministrator, summarizeBillingDashboard, useBillLifecycle, useBillStatus, validateBillSubmission, visibleBillLifecycleActions };