@mindbill/react 0.9.1 → 0.9.3

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
@@ -62,6 +62,24 @@ type BillReviewAttachment = {
62
62
  addedAt?: string;
63
63
  contentUrl?: string;
64
64
  };
65
+ type BillReviewPayer = {
66
+ id: string;
67
+ name: string;
68
+ hasElectronic?: boolean;
69
+ states?: string[];
70
+ };
71
+ type BillReviewFeatures = {
72
+ authorizationNumber?: boolean;
73
+ serviceDateRange?: boolean;
74
+ wcabNumber?: boolean;
75
+ codingPresets?: boolean;
76
+ };
77
+ type BillReviewClaimPatternStatus = {
78
+ state: "match" | "warning" | "unknown";
79
+ label: string;
80
+ detail?: string;
81
+ suggestion?: string;
82
+ };
65
83
  type BillReviewData = {
66
84
  bill: {
67
85
  id: string;
@@ -87,13 +105,21 @@ type BillReviewData = {
87
105
  };
88
106
  patient: {
89
107
  name: string;
108
+ firstName?: string;
109
+ middleName?: string;
110
+ lastName?: string;
90
111
  dob?: string;
91
112
  };
92
113
  injury: {
93
114
  claimNumber?: string;
94
115
  employer?: string;
95
116
  doi?: string;
117
+ injuryEndDate?: string;
118
+ cumulativeTrauma?: boolean;
119
+ adjNumber?: string;
96
120
  claimsAdminId?: string;
121
+ claimsAdminName?: string;
122
+ claimPatternStatus?: BillReviewClaimPatternStatus;
97
123
  };
98
124
  options?: {
99
125
  billingProviders?: BillReviewBillingProvider[];
@@ -102,6 +128,21 @@ type BillReviewData = {
102
128
  };
103
129
  };
104
130
  type BillReviewSaveInput = {
131
+ claimsAdminId: string;
132
+ patientOverrides?: {
133
+ firstName: string;
134
+ middleName?: string;
135
+ lastName: string;
136
+ dob?: string;
137
+ };
138
+ injuryOverrides?: {
139
+ claimNumber?: string;
140
+ employer?: string;
141
+ doi?: string;
142
+ injuryEndDate?: string;
143
+ cumulativeTrauma?: boolean;
144
+ adjNumber?: string;
145
+ };
105
146
  dos: string;
106
147
  dosEnd?: string | null;
107
148
  authorizationNumber?: string | null;
@@ -126,12 +167,26 @@ type BillReviewFormProps = {
126
167
  onAddAttachment: (file: File, documentType: BillReviewDocumentType, description?: string) => Promise<void>;
127
168
  onRemoveAttachment: (attachmentId: string) => Promise<void>;
128
169
  onOpenAttachment?: (attachment: BillReviewAttachment) => void;
170
+ onSearchClaimsAdministrators?: (query: string) => Promise<BillReviewPayer[]>;
129
171
  className?: string;
130
172
  style?: CSSProperties;
131
173
  appearance?: MindBillAppearance;
174
+ features?: BillReviewFeatures;
132
175
  disabled?: boolean;
133
176
  };
134
177
  type BillReviewDraft = {
178
+ claimsAdminId: string;
179
+ claimsAdminName: string;
180
+ patientFirstName: string;
181
+ patientMiddleName: string;
182
+ patientLastName: string;
183
+ patientDob: string;
184
+ claimNumber: string;
185
+ employer: string;
186
+ doi: string;
187
+ injuryEndDate: string;
188
+ cumulativeTrauma: boolean;
189
+ adjNumber: string;
135
190
  dos: string;
136
191
  dosEnd: string;
137
192
  authorizationNumber: string;
@@ -141,7 +196,7 @@ type BillReviewDraft = {
141
196
  lineItems: BillReviewLineItem[];
142
197
  };
143
198
  declare function buildBillReviewSaveInput(draft: BillReviewDraft): BillReviewSaveInput;
144
- declare function BillReviewForm({ data, onSave, onSubmit, onAddAttachment, onRemoveAttachment, onOpenAttachment, className, style, appearance, disabled, }: BillReviewFormProps): ReactElement;
199
+ declare function BillReviewForm({ data, onSave, onSubmit, onAddAttachment, onRemoveAttachment, onOpenAttachment, onSearchClaimsAdministrators, className, style, appearance, features, disabled, }: BillReviewFormProps): ReactElement;
145
200
  type BillStatusSummaryProps = {
146
201
  status: string;
147
202
  submittedAt?: string | null;
@@ -292,6 +347,7 @@ type BillLifecycleClientOptions = {
292
347
  };
293
348
  type BillLifecycleClient = {
294
349
  getLifecycle: (signal?: AbortSignal) => Promise<BillLifecycleData>;
350
+ searchClaimsAdministrators: (query: string) => Promise<BillReviewPayer[]>;
295
351
  saveReview: (input: BillReviewSaveInput) => Promise<BillLifecycleData>;
296
352
  submitBill: (input: BillReviewSaveInput, route: BillSubmissionRoute) => Promise<BillLifecycleData>;
297
353
  addAttachment: (file: File, documentType: BillReviewDocumentType, description?: string) => Promise<BillLifecycleData>;
@@ -321,6 +377,7 @@ type UseBillLifecycleResult = {
321
377
  isRefreshing: boolean;
322
378
  isMutating: boolean;
323
379
  refresh: () => Promise<void>;
380
+ searchClaimsAdministrators: BillLifecycleClient["searchClaimsAdministrators"];
324
381
  saveReview: BillLifecycleClient["saveReview"];
325
382
  submitBill: BillLifecycleClient["submitBill"];
326
383
  addAttachment: BillLifecycleClient["addAttachment"];
@@ -341,13 +398,14 @@ declare function createBillLifecycleClient({ billId, sessionEndpoint, getSession
341
398
  declare function useBillLifecycle({ billId: providedBillId, sessionEndpoint, getSession, apiBaseUrl, refreshInterval, enabled, initialData, onBillIdChange, fetch: fetchOverride, }: UseBillLifecycleOptions): UseBillLifecycleResult;
342
399
  type ConnectedBillLifecycleProps = UseBillLifecycleOptions & {
343
400
  appearance?: MindBillAppearance;
401
+ features?: BillReviewFeatures;
344
402
  className?: string;
345
403
  style?: CSSProperties;
346
404
  loadingFallback?: ReactNode;
347
405
  errorFallback?: (error: Error, retry: () => Promise<void>) => ReactNode;
348
406
  onChanged?: (data: BillLifecycleData) => void;
349
407
  };
350
- declare function ConnectedBillLifecycle({ appearance, className, style, loadingFallback, errorFallback, onChanged, ...options }: ConnectedBillLifecycleProps): ReactElement;
408
+ declare function ConnectedBillLifecycle({ appearance, features, className, style, loadingFallback, errorFallback, onChanged, ...options }: ConnectedBillLifecycleProps): ReactElement;
351
409
 
352
410
  type MindBillWidgetProps = {
353
411
  sessionToken: string;
@@ -369,4 +427,4 @@ declare const HostedBillFromReport: typeof MindBillBillFromReport;
369
427
  declare const HostedCollections: typeof MindBillCollections;
370
428
  declare const HostedOnboarding: typeof MindBillOnboarding;
371
429
 
372
- export { type BillEorDocument, type BillLifecycleAction, type BillLifecycleActionId, type BillLifecycleClient, type BillLifecycleClientOptions, type BillLifecycleData, type BillLifecycleSession, type BillLifecycleSessionProvider, type BillLifecycleSessionRequest, type BillReviewAttachment, type BillReviewBillingProvider, type BillReviewClinician, type BillReviewData, type BillReviewDocumentType, type BillReviewDraft, BillReviewForm, type BillReviewFormProps, type BillReviewLineItem, type BillReviewLocation, type BillReviewSaveInput, type BillStatusAction, type BillStatusClient, type BillStatusClientOptions, type BillStatusData, type BillStatusSession, type BillStatusSessionProvider, type BillStatusSessionRequest, BillStatusSummary, type BillStatusSummaryProps, type BillSubmissionRoute, type CloseBillInput, ConnectedBillLifecycle, type ConnectedBillLifecycleProps, ConnectedBillStatus, type ConnectedBillStatusProps, HostedBillFromReport, HostedBillReview, HostedBillTimeline, HostedCollections, HostedOnboarding, MindBillBillFromReport, MindBillBillReview, MindBillBillTimeline, MindBillCollections, MindBillOnboarding, type MindBillWidgetProps, type PostBillPaymentInput, type SubmitSecondReviewInput, type UseBillLifecycleOptions, type UseBillLifecycleResult, type UseBillStatusOptions, type UseBillStatusResult, buildBillReviewSaveInput, createBillLifecycleClient, createBillStatusClient, useBillLifecycle, useBillStatus };
430
+ export { type BillEorDocument, type BillLifecycleAction, type BillLifecycleActionId, type BillLifecycleClient, type BillLifecycleClientOptions, type BillLifecycleData, type BillLifecycleSession, type BillLifecycleSessionProvider, type BillLifecycleSessionRequest, 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, type BillStatusAction, type BillStatusClient, type BillStatusClientOptions, type BillStatusData, type BillStatusSession, type BillStatusSessionProvider, type BillStatusSessionRequest, BillStatusSummary, type BillStatusSummaryProps, type BillSubmissionRoute, type CloseBillInput, ConnectedBillLifecycle, type ConnectedBillLifecycleProps, ConnectedBillStatus, type ConnectedBillStatusProps, HostedBillFromReport, HostedBillReview, HostedBillTimeline, HostedCollections, HostedOnboarding, MindBillBillFromReport, MindBillBillReview, MindBillBillTimeline, MindBillCollections, MindBillOnboarding, type MindBillWidgetProps, type PostBillPaymentInput, type SubmitSecondReviewInput, type UseBillLifecycleOptions, type UseBillLifecycleResult, type UseBillStatusOptions, type UseBillStatusResult, buildBillReviewSaveInput, createBillLifecycleClient, createBillStatusClient, useBillLifecycle, useBillStatus };