@mindbill/react 0.23.1 → 0.24.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 +3 -3
- package/dist/index.d.ts +25 -3
- package/dist/index.js +236 -42
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -152,10 +152,10 @@ The component includes the interaction model, not just the markup:
|
|
|
152
152
|
- paste-friendly `MM/DD/YYYY` date fields and required-field asterisks;
|
|
153
153
|
- ZIP-to-city/state completion through MindBill's authenticated postal directory;
|
|
154
154
|
- complete, server-backed ICD-10 search with an alphabetized 100-code first page, automatic 100-code scroll paging, common-injury quick picks, and removable chips;
|
|
155
|
-
- canonical claims-administrator
|
|
156
|
-
- QME, AME, and Psych QME evaluation modes with medical-legal modifier defaults;
|
|
155
|
+
- canonical claims-administrator matching through the authenticated MindBill payer directory: exact aliases select automatically, while fuzzy matches show up to five explicit suggestions with claim-number pattern evidence;
|
|
156
|
+
- QME, AME, and Psych QME evaluation modes with medical-legal modifier defaults; Psych QME also seeds `Z04.6` when no more specific diagnosis was supplied, and exposes it as a Psych quick pick;
|
|
157
157
|
- searchable workers-comp procedure/modifier controls, medical-legal fee-schedule amounts, totals, valid manual CPT/HCPCS entry, and an automatically maintained empty line;
|
|
158
|
-
- removable source documents with new-tab previews, a locked auto-attached practice W-9, and a full-width click, panel-drop, or whole-page PDF upload area.
|
|
158
|
+
- removable source documents with new-tab previews, a locked auto-attached practice W-9, and a full-width click, panel-drop, or whole-page PDF upload area. Med-legal mode assigns every document to `J4 - Med-Legal Report` without showing another control; professional mode shows the complete searchable PWK01 report-type directory. Override that presentation with `attachmentReportTypeMode`, `attachmentReportTypes`, and `defaultAttachmentReportType`.
|
|
159
159
|
|
|
160
160
|
Partners supply tenant-specific bootstrap data, one short-lived browser session callback, and optionally an `onSubmitted` callback to persist the returned `billId`. Required fields, validation, ZIP lookup, ICD-10 and payer directories, service-line behavior, PDF encoding, wire-format serialization, atomic submission, attachments, and submission UX stay inside `@mindbill/react`, so every integration receives the same billing workflow. Optional `diagnosisOptions`, `procedureOptions`, `modifierOptions`, and lookup callbacks extend or replace defaults when a partner has licensed or organization-specific data.
|
|
161
161
|
|
package/dist/index.d.ts
CHANGED
|
@@ -357,6 +357,13 @@ declare function BillReadOnlyForm({ data, appearance, className, style, onOpenAt
|
|
|
357
357
|
|
|
358
358
|
declare const BILL_SUBMISSION_DOCUMENT_TYPES: readonly ["final_report", "proof_of_service", "letter_of_attestation", "form_122", "return_to_work_voucher", "w9", "medical_records", "appeal", "other"];
|
|
359
359
|
type BillSubmissionDocumentType = (typeof BILL_SUBMISSION_DOCUMENT_TYPES)[number];
|
|
360
|
+
type BillSubmissionAttachmentReportTypeMode = "auto" | "hidden" | "visible";
|
|
361
|
+
type BillSubmissionReportTypeOption = {
|
|
362
|
+
code: string;
|
|
363
|
+
label: string;
|
|
364
|
+
};
|
|
365
|
+
declare const MED_LEGAL_REPORT_TYPE_CODE = "OZ:J4";
|
|
366
|
+
declare const BILL_SUBMISSION_REPORT_TYPES: readonly BillSubmissionReportTypeOption[];
|
|
360
367
|
type BillSubmissionEvaluationType = "qme" | "ame" | "psych_qme";
|
|
361
368
|
type BillSubmissionAddress = {
|
|
362
369
|
line1: string;
|
|
@@ -459,15 +466,18 @@ type BillSubmissionSourceAttachment = {
|
|
|
459
466
|
autoAttached?: boolean;
|
|
460
467
|
removable?: boolean;
|
|
461
468
|
previewUrl?: string;
|
|
469
|
+
reportTypeCode?: string;
|
|
462
470
|
};
|
|
463
471
|
type BillSubmissionUpload = {
|
|
464
472
|
file: File;
|
|
465
473
|
documentType: BillSubmissionDocumentType;
|
|
466
474
|
description?: string;
|
|
475
|
+
reportTypeCode?: string;
|
|
467
476
|
};
|
|
468
477
|
type BillSubmissionFormValue = {
|
|
469
478
|
bill: BillSubmissionInput;
|
|
470
479
|
sourceAttachmentIds: string[];
|
|
480
|
+
sourceAttachmentReportTypes: Record<string, string>;
|
|
471
481
|
uploads: BillSubmissionUpload[];
|
|
472
482
|
};
|
|
473
483
|
type BillSubmissionFormProps = {
|
|
@@ -491,6 +501,10 @@ type BillSubmissionFormProps = {
|
|
|
491
501
|
onLookupPostalCode?: (postalCode: string) => Promise<BillSubmissionPostalPlace | null>;
|
|
492
502
|
procedureOptions?: BillSubmissionProcedureOption[];
|
|
493
503
|
modifierOptions?: BillSubmissionModifierOption[];
|
|
504
|
+
/** Auto hides and forces J4 for med-legal bills; treatment bills show the full report-type directory. */
|
|
505
|
+
attachmentReportTypeMode?: BillSubmissionAttachmentReportTypeMode;
|
|
506
|
+
attachmentReportTypes?: readonly BillSubmissionReportTypeOption[];
|
|
507
|
+
defaultAttachmentReportType?: string;
|
|
494
508
|
appearance?: MindBillReactAppearance;
|
|
495
509
|
className?: string;
|
|
496
510
|
style?: CSSProperties;
|
|
@@ -509,17 +523,25 @@ type BillSubmissionValidation = {
|
|
|
509
523
|
valid: boolean;
|
|
510
524
|
fieldErrors: Record<string, string>;
|
|
511
525
|
};
|
|
512
|
-
declare function prepareBillSubmissionDocuments({ attachments, selectedIds, uploads, fetch: fetchOverride, }: {
|
|
526
|
+
declare function prepareBillSubmissionDocuments({ attachments, selectedIds, uploads, reportTypeCodeByAttachmentId, defaultReportTypeCode, fetch: fetchOverride, }: {
|
|
513
527
|
attachments: BillSubmissionSourceAttachment[];
|
|
514
528
|
selectedIds: string[];
|
|
515
529
|
uploads: BillSubmissionUpload[];
|
|
530
|
+
reportTypeCodeByAttachmentId?: Record<string, string>;
|
|
531
|
+
defaultReportTypeCode?: string;
|
|
516
532
|
fetch?: typeof globalThis.fetch;
|
|
517
533
|
}): Promise<BrowserBillSubmissionDocument[]>;
|
|
518
534
|
declare function ensureTrailingBillSubmissionLine(lines: BillSubmissionInput["serviceLines"]): BillSubmissionInput["serviceLines"];
|
|
519
535
|
declare function parseBillSubmissionDate(value: string): string | undefined;
|
|
520
536
|
declare function formatBillSubmissionDate(value: string | null | undefined): string;
|
|
521
537
|
declare function applyBillSubmissionEvaluationModifiers(lines: BillSubmissionInput["serviceLines"], type: BillSubmissionEvaluationType): BillSubmissionInput["serviceLines"];
|
|
538
|
+
declare const PSYCH_QME_DEFAULT_DIAGNOSIS = "Z04.6";
|
|
539
|
+
/** Seed Psych QME's general examination code only when no diagnosis was supplied. */
|
|
540
|
+
declare function applyBillSubmissionEvaluationDiagnoses(diagnoses: string[] | undefined, type: BillSubmissionEvaluationType): string[];
|
|
522
541
|
declare function validateBillSubmission(bill: BillSubmissionInput): BillSubmissionValidation;
|
|
542
|
+
declare function normalizeClaimsAdministratorName(value: string): string;
|
|
543
|
+
declare function exactClaimsAdministratorMatch(results: BillReviewPayer$1[], suppliedName: string): BillReviewPayer$1 | undefined;
|
|
544
|
+
declare function claimsAdministratorRecommendations(results: BillReviewPayer$1[], limit?: number): BillReviewPayer$1[];
|
|
523
545
|
type BillSubmissionSectionId = "header" | "patient" | "claim" | "providers" | "serviceLines" | "attachments" | "actions";
|
|
524
546
|
declare function BillSubmissionHeader(): ReactElement;
|
|
525
547
|
declare function BillSubmissionPatientSection(): ReactElement;
|
|
@@ -528,7 +550,7 @@ declare function BillSubmissionProvidersSection(): ReactElement;
|
|
|
528
550
|
declare function BillSubmissionServiceLinesSection(): ReactElement;
|
|
529
551
|
declare function BillSubmissionAttachmentsSection(): ReactElement;
|
|
530
552
|
declare function BillSubmissionActions(): ReactElement;
|
|
531
|
-
declare function BillSubmissionForm({ initialBill, attachments, onSubmit, onSubmitted, getSession, sessionEndpoint, apiBaseUrl, fetch: fetchOverride, onSearchClaimsAdministrators, diagnosisOptions, onSearchDiagnoses, onLookupPostalCode, procedureOptions, modifierOptions, appearance, className, style, disabled, submitLabel, heading, description, children, }: BillSubmissionFormProps): ReactElement;
|
|
553
|
+
declare function BillSubmissionForm({ initialBill, attachments, onSubmit, onSubmitted, getSession, sessionEndpoint, apiBaseUrl, fetch: fetchOverride, onSearchClaimsAdministrators, diagnosisOptions, onSearchDiagnoses, onLookupPostalCode, procedureOptions, modifierOptions, attachmentReportTypeMode, attachmentReportTypes, defaultAttachmentReportType, appearance, className, style, disabled, submitLabel, heading, description, children, }: BillSubmissionFormProps): ReactElement;
|
|
532
554
|
|
|
533
555
|
/** Public-domain and MindBill-owned metadata. CPT descriptions are intentionally limited to the curated catalog. */
|
|
534
556
|
declare const DEFAULT_BILL_SUBMISSION_PROCEDURES: BillSubmissionProcedureOption[];
|
|
@@ -790,4 +812,4 @@ type MindBillWidgetProps = {
|
|
|
790
812
|
declare function MindBillBillTimeline(props: MindBillWidgetProps): ReactElement;
|
|
791
813
|
declare function MindBillBillReview(props: MindBillWidgetProps): ReactElement;
|
|
792
814
|
|
|
793
|
-
export { BILL_SUBMISSION_DIAGNOSIS_QUICK_PICKS, BILL_SUBMISSION_DOCUMENT_TYPES, BILL_SUBMISSION_REQUIRED_FIELDS, type BillActivityEvent, BillActivityTimeline, type BillActivityTimelineProps, type BillAgingBucket, type BillAgingBucketId, BillAgingSummary, type BillAgingSummaryProps, BillLifecycleActions, type BillLifecycleActionsProps, BillLifecycleProgress, type BillLifecycleProgressProps, type BillLifecycleStage, BillList, type BillListProps, BillPayerContactCard, type BillPayerContactCardProps, BillPaymentLedger, type BillPaymentLedgerProps, BillReadOnlyForm, type BillReadOnlyFormProps, 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 BillStatusClient, type BillStatusClientOptions, type BillStatusData, type BillStatusSession, type BillStatusSessionProvider, type BillStatusSessionRequest, BillStatusSummary, type BillStatusSummaryProps, BillSubmissionActions, type BillSubmissionAddress, 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 BillSubmissionRoute, type BillSubmissionSectionId, BillSubmissionServiceLinesSection, type BillSubmissionSourceAttachment, type BillSubmissionUpload, type BillSubmissionValidation, type BillingComponentProps, BillingDashboard, type BillingDashboardBill, type BillingDashboardProps, type BillingDashboardSummary, BillingReport, type BillingReportDimension, type BillingReportProps, type BillingReportRow, ConnectedBillLifecycle, type ConnectedBillLifecycleProps, ConnectedBillStatus, type ConnectedBillStatusProps, DEFAULT_BILL_SUBMISSION_MODIFIERS, DEFAULT_BILL_SUBMISSION_PROCEDURES, MindBillBillReview, MindBillBillTimeline, type MindBillReactAppearance, type MindBillThemePreset, type MindBillWidgetProps, type UseBillLifecycleOptions, type UseBillLifecycleResult, type UseBillStatusOptions, type UseBillStatusResult, applyBillSubmissionEvaluationModifiers, billActivityEventLabel, billAgingBucket, billAgingDays, billLifecycleDisplayLabel, billLifecycleStage, buildBillReviewSaveInput, buildBillingReportCsv, buildBillingReportRows, calculateBillSubmissionAllowedAmount, createBillStatusClient, ensureTrailingBillSubmissionLine, ensureTrailingProcedureLine, formatBillSubmissionDate, mindBillAppearanceStyle, mindBillThemePresets, parseBillSubmissionDate, prepareBillSubmissionDocuments, resolveMindBillAppearance, summarizeBillingDashboard, useBillLifecycle, useBillStatus, validateBillSubmission, visibleBillLifecycleActions };
|
|
815
|
+
export { 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, BillLifecycleActions, type BillLifecycleActionsProps, BillLifecycleProgress, type BillLifecycleProgressProps, type BillLifecycleStage, BillList, type BillListProps, BillPayerContactCard, type BillPayerContactCardProps, BillPaymentLedger, type BillPaymentLedgerProps, BillReadOnlyForm, type BillReadOnlyFormProps, 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 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 BillSubmissionUpload, type BillSubmissionValidation, type BillingComponentProps, BillingDashboard, type BillingDashboardBill, type BillingDashboardProps, type BillingDashboardSummary, BillingReport, type BillingReportDimension, type BillingReportProps, type BillingReportRow, ConnectedBillLifecycle, type ConnectedBillLifecycleProps, ConnectedBillStatus, type ConnectedBillStatusProps, DEFAULT_BILL_SUBMISSION_MODIFIERS, DEFAULT_BILL_SUBMISSION_PROCEDURES, MED_LEGAL_REPORT_TYPE_CODE, MindBillBillReview, MindBillBillTimeline, type MindBillReactAppearance, type MindBillThemePreset, type MindBillWidgetProps, PSYCH_QME_DEFAULT_DIAGNOSIS, type UseBillLifecycleOptions, type UseBillLifecycleResult, type UseBillStatusOptions, type UseBillStatusResult, applyBillSubmissionEvaluationDiagnoses, applyBillSubmissionEvaluationModifiers, billActivityEventLabel, billAgingBucket, billAgingDays, billLifecycleDisplayLabel, billLifecycleStage, buildBillReviewSaveInput, buildBillingReportCsv, buildBillingReportRows, calculateBillSubmissionAllowedAmount, claimsAdministratorRecommendations, createBillStatusClient, ensureTrailingBillSubmissionLine, ensureTrailingProcedureLine, exactClaimsAdministratorMatch, formatBillSubmissionDate, mindBillAppearanceStyle, mindBillThemePresets, normalizeClaimsAdministratorName, parseBillSubmissionDate, prepareBillSubmissionDocuments, resolveMindBillAppearance, summarizeBillingDashboard, useBillLifecycle, useBillStatus, validateBillSubmission, visibleBillLifecycleActions };
|