@mindbill/react 0.77.55 → 0.77.57

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
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import { ReactElement, CSSProperties, ReactNode } from 'react';
3
3
  import * as _mindbill_browser from '@mindbill/browser';
4
- import { MedicalProviderNetwork, BillReferenceClient, CaClaimFeeQuoteInput, CaClaimFeeQuoteResult, BillCourtesyCopyInput, BillCourtesyCopyPreview, BillCourtesyCopyResult, SubmitBillInput, BillDeliveryOptions as BillDeliveryOptions$1, BillFeeContext, ClaimForm, BillFormData, BillReviewPayerOption, BilledDrug, BillLineFormData, OrganizationClientOptions, BrowserBillSubmissionResult, BillLifecycleSessionProvider, BillReviewPayerListInput, BillReviewPayerPage, BillReviewPayer as BillReviewPayer$1, BillClaimsAdministratorDirectory, BillClaimsAdministratorSource, BillProcedureCodeSearchInput, BillProcedureCodePage, BillFeeQuoteInput, BillFeeQuote, BrowserBillSubmissionDocument, OrganizationProfileData, HistoricalBillReviewData, BillReviewClinician as BillReviewClinician$1, BillLifecycleDelivery, BillReviewAttachment as BillReviewAttachment$1, RfaFollowUp, RfaContact, BillDiagnosisCode, RfaRecord, RfaListQuery, BillTasksDashboardData, BillTasksAgingBucket, BillHistoryEntry, BillAttemptSummary, ReportBillStatusInput, BillEorDocument, BillPaymentRecord, BillRemittanceSummary, BillLifecycleAction, BillRejection, BillLifecycleData, BillLifecycleClientOptions, BillLifecycleClient, SubmitSecondReviewInput, RfaAuthorizationDestinationOption, ReportAutofillResult, RfaForwardResult } from '@mindbill/browser';
4
+ import { MedicalProviderNetwork, BillReferenceClient, CaClaimFeeQuoteInput, CaClaimFeeQuoteResult, BillCourtesyCopyInput, BillCourtesyCopyPreview, BillCourtesyCopyResult, SubmitBillInput, BillDeliveryOptions as BillDeliveryOptions$1, BillFeeContext, ClaimForm, BillFormData, BillReviewPayerOption, BilledDrug, BillLineFormData, OrganizationClientOptions, BrowserBillSubmissionResult, BillLifecycleSessionProvider, BillReviewPayerListInput, BillReviewPayerPage, BillReviewPayer as BillReviewPayer$1, BillClaimsAdministratorDirectory, BillClaimsAdministratorSource, BillProcedureCodeSearchInput, BillProcedureCodePage, BillFeeQuoteInput, BillFeeQuote, BrowserBillSubmissionDocument, OrganizationProfileData, HistoricalBillReviewData, BillReviewClinician as BillReviewClinician$1, BillLifecycleDelivery, BillReviewAttachment as BillReviewAttachment$1, RfaRecord, RfaFollowUp, RfaContact, BillDiagnosisCode, RfaListQuery, BillTasksDashboardData, BillTasksAgingBucket, BillHistoryEntry, BillAttemptSummary, ReportBillStatusInput, BillEorDocument, BillPaymentRecord, BillRemittanceSummary, BillLifecycleAction, BillRejection, BillLifecycleData, BillLifecycleClientOptions, BillLifecycleClient, SubmitSecondReviewInput, RfaAuthorizationDestinationOption, ReportAutofillResult, RfaForwardResult } from '@mindbill/browser';
5
5
  export { BILL_TASKS_AGING_BUCKETS, BillActivityRecord, BillClaimsAdministratorAuthorizationStatus, BillClaimsAdministratorContact, BillClaimsAdministratorDirectory, BillClaimsAdministratorMailingAddress, BillClaimsAdministratorPattern, BillClaimsAdministratorPayer, BillClaimsAdministratorSource, BillCourtesyCopyInput, BillCourtesyCopyPreview, BillCourtesyCopyResult, BillEorDocument, BillFeeContext, BillFormData, BillFormValue, BillLifecycleAction, BillLifecycleActionId, BillLifecycleClient, BillLifecycleClientOptions, BillLifecycleData, BillLifecycleDelivery, BillLifecycleSession, BillLifecycleSessionProvider, BillLifecycleSessionRequest, BillLineFormData, BillPaymentRecord, BillRejection, BillRemittanceSummary, BillReviewPayerOption, BillReviewPayerSuggestion, BillSubmissionDetail, BillTasksAgingBucket, BillTasksDashboardData, BillTasksDashboardItem, BillTasksDashboardRow, BillTasksDashboardSection, BillTasksDashboardSectionInput, BillTasksDashboardTone, BillTeamNote, BilledDrug, BrowserBillSubmissionResult, CaClaimFeeQuoteInput, CaClaimFeeQuoteResult, ClaimForm, CloseBillInput, HistoricalBillReviewData, MedicalProviderNetwork, PostBillPaymentInput, REPORT_BILL_STATUS_OPTIONS, ReopenBillInput, ReportBillStatusContacts, ReportBillStatusId, ReportBillStatusInput, RfaAuthorizationDestinationOption, RfaCreateDraftInput, RfaRecord, RfaSigningPreview, SECOND_REVIEW_REASON_TEMPLATE, SECOND_REVIEW_WINDOW_DAYS, SecondReviewDeadline, SendDuplicateBillInput, SubmitSecondReviewInput, billTasksAgingBucketIndex, buildBillTasksDashboard, createBillLifecycleClient, reportBillStatusContacts, secondReviewDeadline } from '@mindbill/browser';
6
6
  import { MindBillAppearance, MindBillEventDetail, MindBillErrorDetail } from '@mindbill/embed';
7
7
  export { MindBillAppearance, MindBillErrorDetail, MindBillEventDetail } from '@mindbill/embed';
@@ -901,6 +901,39 @@ type TreatmentDraftAppearance = {
901
901
  disabled?: boolean;
902
902
  };
903
903
 
904
+ type RfaLifecycleControlsProps = OrganizationClientOptions & TreatmentDraftAppearance & {
905
+ rfa: RfaRecord;
906
+ selectedResponseDocumentId?: string;
907
+ /** Opt in only when your server grants rfas:act or rfas:edit, respectively. */
908
+ permissions?: readonly ("act" | "edit")[];
909
+ onUpdated?: (rfa: RfaRecord) => void;
910
+ /** Render as rows inside a host card, without the panel heading or summary notes. */
911
+ rows?: boolean;
912
+ /** Host-provided reading of a response document (for example OCR plus a model). When given, choosing a response
913
+ * prefills its treatment decisions for a person to check. Failures leave the form empty; nothing is saved automatically. */
914
+ readResponse?: (rfaId: string, documentId: string) => Promise<RfaResponseReading>;
915
+ };
916
+ /** What was read from a utilization review response, for a person to check. Nothing here is saved until they confirm. */
917
+ type RfaResponseReading = {
918
+ status: "read" | "unreadable";
919
+ decidedAt?: string;
920
+ items: Array<{
921
+ itemId: string;
922
+ outcome: "approved" | "modified" | "denied" | "not_addressed";
923
+ confident: boolean;
924
+ authorizationNumber?: string;
925
+ authorizedProcedureCode?: string;
926
+ authorizedQuantity?: number;
927
+ authorizedUnits?: number;
928
+ effectiveFrom?: string;
929
+ effectiveTo?: string;
930
+ decisionReason?: string;
931
+ reviewerName?: string;
932
+ reviewerPhone?: string;
933
+ }>;
934
+ };
935
+ declare function RfaLifecycleControls({ sessionEndpoint, getSession, apiBaseUrl, fetch: fetchOverride, ...props }: RfaLifecycleControlsProps): ReactElement;
936
+
904
937
  type RfaTaskState = "Due" | "Scheduled" | "Completed";
905
938
  type RfaTaskAge = "0-5" | "6-14" | "15-30" | "31+" | "unknown";
906
939
  /** Staff task filters, independent from RFA lifecycle/clinical status. */
@@ -1178,6 +1211,8 @@ type RfaDashboardProps = OrganizationClientOptions & TreatmentDraftAppearance &
1178
1211
  renderClaimSelector?: (props: RfaClaimSelectorProps) => ReactNode;
1179
1212
  /** Host-owned saved provider selection and provider creation. Newly selected providers are resolved through creation context. */
1180
1213
  renderProviderSelector?: (props: RfaProviderSelectorProps) => ReactNode;
1214
+ /** Reads a utilization review response so its treatment decisions open prefilled for a person to check. See RfaLifecycleControls. */
1215
+ readRfaResponse?: RfaLifecycleControlsProps["readResponse"];
1181
1216
  canManageProviderSignatures?: boolean;
1182
1217
  /** Host-owned physician signature setup inside the send dialog (for example draw or upload buttons). `missing` holds the send until
1183
1218
  * the host reports a saved signature; leave it undefined when the host cannot tell. Replaces the built-in PNG upload there. */
@@ -2259,17 +2294,6 @@ type RfaAuthorizationDestinationProps = {
2259
2294
  /** Choose a destination without sending an RFA or treating email as fax. */
2260
2295
  declare function RfaAuthorizationDestination({ contextKey, directory, savedContact, loading, error, disabled, onChange, onSelectionStart, compact, onManualEntry, autoSelectSingle, method, preselectSaved }: RfaAuthorizationDestinationProps): ReactElement;
2261
2296
 
2262
- type RfaLifecycleControlsProps = OrganizationClientOptions & TreatmentDraftAppearance & {
2263
- rfa: RfaRecord;
2264
- selectedResponseDocumentId?: string;
2265
- /** Opt in only when your server grants rfas:act or rfas:edit, respectively. */
2266
- permissions?: readonly ("act" | "edit")[];
2267
- onUpdated?: (rfa: RfaRecord) => void;
2268
- /** Render as rows inside a host card, without the panel heading or summary notes. */
2269
- rows?: boolean;
2270
- };
2271
- declare function RfaLifecycleControls({ sessionEndpoint, getSession, apiBaseUrl, fetch: fetchOverride, ...props }: RfaLifecycleControlsProps): ReactElement;
2272
-
2273
2297
  type ReportAutofillProps = OrganizationClientOptions & {
2274
2298
  /** Use an authenticated host endpoint instead of a MindBill browser session. */
2275
2299
  analyzeReport?(file: File): Promise<ReportAutofillResult>;