@mindbill/angular 0.5.0 → 0.6.1
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 +35 -4
- package/fesm2022/mindbill-angular.mjs +652 -9
- package/fesm2022/mindbill-angular.mjs.map +1 -1
- package/package.json +1 -1
- package/types/mindbill-angular.d.ts +113 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { OnChanges, OnDestroy, EventEmitter, SimpleChanges } from '@angular/core';
|
|
3
|
-
import { BillLifecycleClientOptions, BillLifecycleData, CloseBillInput, PostBillPaymentInput, SubmitSecondReviewInput, BillLifecycleSessionProvider } from '@mindbill/browser';
|
|
4
|
-
export { BillLifecycleAction, BillLifecycleActionId, BillLifecycleClient, BillLifecycleClientOptions, BillLifecycleData, BillLifecycleSession, BillLifecycleSessionProvider, BillReviewData, BillSubmissionRoute, CloseBillInput, PostBillPaymentInput, SubmitSecondReviewInput } from '@mindbill/browser';
|
|
3
|
+
import { BillLifecycleClientOptions, BillLifecycleData, CloseBillInput, PostBillPaymentInput, SubmitSecondReviewInput, BillLifecycleSessionProvider, BrowserBillCreateInput, BrowserBillSubmissionDocument, BrowserBillSubmissionInput, BrowserBillSubmissionResult, BillReviewPayer, BillDiagnosisCode } from '@mindbill/browser';
|
|
4
|
+
export { BillLifecycleAction, BillLifecycleActionId, BillLifecycleClient, BillLifecycleClientOptions, BillLifecycleData, BillLifecycleSession, BillLifecycleSessionProvider, BillReviewData, BillSubmissionRoute, BrowserBillCreateInput, BrowserBillSubmissionInput, BrowserBillSubmissionResult, CloseBillInput, PostBillPaymentInput, SubmitSecondReviewInput } from '@mindbill/browser';
|
|
5
5
|
|
|
6
6
|
declare class MindBillLifecycleStore {
|
|
7
7
|
readonly billId: i0.WritableSignal<string>;
|
|
@@ -129,6 +129,8 @@ type MindBillDashboardSummary = {
|
|
|
129
129
|
totalPaid: number;
|
|
130
130
|
outstanding: number;
|
|
131
131
|
openCount: number;
|
|
132
|
+
submittedThisMonth: number;
|
|
133
|
+
closedThisMonth: number;
|
|
132
134
|
bills: MindBillDashboardBill[];
|
|
133
135
|
aging: MindBillAgingBucket[];
|
|
134
136
|
};
|
|
@@ -154,9 +156,11 @@ declare abstract class DashboardBase {
|
|
|
154
156
|
}
|
|
155
157
|
declare class MindBillBillAgingSummaryComponent extends DashboardBase {
|
|
156
158
|
buckets: MindBillAgingBucket[];
|
|
159
|
+
selectedBucket: MindBillAgingBucketId | "";
|
|
160
|
+
bucketSelected: EventEmitter<MindBillAgingBucketId>;
|
|
157
161
|
width(balance: number): number;
|
|
158
162
|
static ɵfac: i0.ɵɵFactoryDeclaration<MindBillBillAgingSummaryComponent, never>;
|
|
159
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MindBillBillAgingSummaryComponent, "mindbill-bill-aging-summary", never, { "buckets": { "alias": "buckets"; "required": false; }; }, {}, never, never, true, never>;
|
|
163
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MindBillBillAgingSummaryComponent, "mindbill-bill-aging-summary", never, { "buckets": { "alias": "buckets"; "required": false; }; "selectedBucket": { "alias": "selectedBucket"; "required": false; }; }, { "bucketSelected": "bucketSelected"; }, never, never, true, never>;
|
|
160
164
|
}
|
|
161
165
|
declare class MindBillBillListComponent extends DashboardBase {
|
|
162
166
|
bills: MindBillDashboardBill[];
|
|
@@ -174,9 +178,12 @@ declare class MindBillBillingDashboardComponent extends DashboardBase {
|
|
|
174
178
|
createBill: EventEmitter<void>;
|
|
175
179
|
query: string;
|
|
176
180
|
state: string;
|
|
181
|
+
agingBucket: MindBillAgingBucketId | "";
|
|
177
182
|
get summary(): MindBillDashboardSummary;
|
|
178
183
|
get states(): string[];
|
|
179
184
|
get filteredBills(): MindBillDashboardBill[];
|
|
185
|
+
get agingLabel(): string;
|
|
186
|
+
toggleAging(bucket: MindBillAgingBucketId): void;
|
|
180
187
|
label(value: string): string;
|
|
181
188
|
static ɵfac: i0.ɵɵFactoryDeclaration<MindBillBillingDashboardComponent, never>;
|
|
182
189
|
static ɵcmp: i0.ɵɵComponentDeclaration<MindBillBillingDashboardComponent, "mindbill-billing-dashboard", never, { "bills": { "alias": "bills"; "required": false; }; "heading": { "alias": "heading"; "required": false; }; "description": { "alias": "description"; "required": false; }; }, { "billSelected": "billSelected"; "createBill": "createBill"; }, never, never, true, never>;
|
|
@@ -191,5 +198,106 @@ declare class MindBillBillingReportComponent extends DashboardBase {
|
|
|
191
198
|
static ɵcmp: i0.ɵɵComponentDeclaration<MindBillBillingReportComponent, "mindbill-billing-report", never, { "bills": { "alias": "bills"; "required": false; }; "heading": { "alias": "heading"; "required": false; }; }, {}, never, never, true, never>;
|
|
192
199
|
}
|
|
193
200
|
|
|
194
|
-
|
|
195
|
-
|
|
201
|
+
type MindBillSubmissionAttachment = Omit<BrowserBillSubmissionDocument, "contentBase64"> & {
|
|
202
|
+
contentBase64?: string;
|
|
203
|
+
contentUrl?: string;
|
|
204
|
+
locked?: boolean;
|
|
205
|
+
badge?: string;
|
|
206
|
+
};
|
|
207
|
+
type MindBillSubmissionProcedureOption = {
|
|
208
|
+
code: string;
|
|
209
|
+
description: string;
|
|
210
|
+
allowedAmount?: number;
|
|
211
|
+
};
|
|
212
|
+
type MindBillSubmissionModifierOption = {
|
|
213
|
+
code: string;
|
|
214
|
+
description: string;
|
|
215
|
+
};
|
|
216
|
+
type MindBillSubmissionTaxonomyOption = {
|
|
217
|
+
code: string;
|
|
218
|
+
description: string;
|
|
219
|
+
};
|
|
220
|
+
declare class MindBillBillSubmissionComponent implements OnChanges {
|
|
221
|
+
initialBill: BrowserBillCreateInput;
|
|
222
|
+
attachments: MindBillSubmissionAttachment[];
|
|
223
|
+
appearance: MindBillAngularAppearance;
|
|
224
|
+
sessionEndpoint: string;
|
|
225
|
+
getSession?: BillLifecycleSessionProvider;
|
|
226
|
+
apiBaseUrl?: string;
|
|
227
|
+
heading: string;
|
|
228
|
+
description: string;
|
|
229
|
+
submitLabel: string;
|
|
230
|
+
procedureOptions: MindBillSubmissionProcedureOption[];
|
|
231
|
+
modifierOptions: MindBillSubmissionModifierOption[];
|
|
232
|
+
taxonomyOptions: MindBillSubmissionTaxonomyOption[];
|
|
233
|
+
submitter?: (input: BrowserBillSubmissionInput) => Promise<BrowserBillSubmissionResult>;
|
|
234
|
+
submitted: EventEmitter<BrowserBillSubmissionResult>;
|
|
235
|
+
submissionError: EventEmitter<Error>;
|
|
236
|
+
billChange: EventEmitter<BrowserBillCreateInput>;
|
|
237
|
+
bill: BrowserBillCreateInput;
|
|
238
|
+
workingAttachments: MindBillSubmissionAttachment[];
|
|
239
|
+
payerQuery: string;
|
|
240
|
+
payerResults: BillReviewPayer[];
|
|
241
|
+
payerBusy: boolean;
|
|
242
|
+
diagnosisQuery: string;
|
|
243
|
+
diagnosisResults: BillDiagnosisCode[];
|
|
244
|
+
diagnosisOffset: number;
|
|
245
|
+
diagnosisBusy: boolean;
|
|
246
|
+
submitting: boolean;
|
|
247
|
+
errorMessage: string;
|
|
248
|
+
invalidFields: Set<string>;
|
|
249
|
+
readonly quickDiagnoses: any[];
|
|
250
|
+
private searchTimer?;
|
|
251
|
+
private postalTimer?;
|
|
252
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
253
|
+
get themeStyle(): Record<string, string>;
|
|
254
|
+
private referenceClient;
|
|
255
|
+
postalChanged(value: string): void;
|
|
256
|
+
searchPayers(): void;
|
|
257
|
+
selectPayer(payer: BillReviewPayer): void;
|
|
258
|
+
searchDiagnoses(reset: boolean): void;
|
|
259
|
+
diagnosisScrolled(event: Event): void;
|
|
260
|
+
hasDiagnosis(code: string): boolean;
|
|
261
|
+
toggleDiagnosis(item: BillDiagnosisCode): void;
|
|
262
|
+
addDiagnosis(item: BillDiagnosisCode): void;
|
|
263
|
+
removeDiagnosis(code: string): void;
|
|
264
|
+
ensureTrailingLine(): void;
|
|
265
|
+
removeLine(index: number): void;
|
|
266
|
+
setModifier(index: number, value: string): void;
|
|
267
|
+
procedureDescription(code: string): string;
|
|
268
|
+
allowed(line: BrowserBillCreateInput["serviceLines"][number]): number | null;
|
|
269
|
+
get totalAllowed(): number;
|
|
270
|
+
filesSelected(event: Event): Promise<void>;
|
|
271
|
+
removeAttachment(index: number): void;
|
|
272
|
+
previewAttachment(attachment: MindBillSubmissionAttachment): void;
|
|
273
|
+
bad(path: string): boolean;
|
|
274
|
+
private validate;
|
|
275
|
+
private submissionDocuments;
|
|
276
|
+
submit(event: Event): Promise<void>;
|
|
277
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MindBillBillSubmissionComponent, never>;
|
|
278
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MindBillBillSubmissionComponent, "mindbill-bill-submission", never, { "initialBill": { "alias": "initialBill"; "required": false; }; "attachments": { "alias": "attachments"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "sessionEndpoint": { "alias": "sessionEndpoint"; "required": false; }; "getSession": { "alias": "getSession"; "required": false; }; "apiBaseUrl": { "alias": "apiBaseUrl"; "required": false; }; "heading": { "alias": "heading"; "required": false; }; "description": { "alias": "description"; "required": false; }; "submitLabel": { "alias": "submitLabel"; "required": false; }; "procedureOptions": { "alias": "procedureOptions"; "required": false; }; "modifierOptions": { "alias": "modifierOptions"; "required": false; }; "taxonomyOptions": { "alias": "taxonomyOptions"; "required": false; }; "submitter": { "alias": "submitter"; "required": false; }; }, { "submitted": "submitted"; "submissionError": "submissionError"; "billChange": "billChange"; }, never, never, true, never>;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
type MindBillManagementSession = {
|
|
282
|
+
url: string;
|
|
283
|
+
};
|
|
284
|
+
type MindBillManagementSessionProvider = () => Promise<MindBillManagementSession | string>;
|
|
285
|
+
declare class MindBillBillingManagementButtonComponent {
|
|
286
|
+
sessionEndpoint: string;
|
|
287
|
+
sessionProvider?: MindBillManagementSessionProvider;
|
|
288
|
+
label: string;
|
|
289
|
+
loadingLabel: string;
|
|
290
|
+
appearance: MindBillAngularAppearance;
|
|
291
|
+
opened: EventEmitter<string>;
|
|
292
|
+
failed: EventEmitter<unknown>;
|
|
293
|
+
loading: boolean;
|
|
294
|
+
errorMessage: string;
|
|
295
|
+
get themeStyle(): Record<string, string>;
|
|
296
|
+
openBillingManagement(): Promise<void>;
|
|
297
|
+
private fetchSession;
|
|
298
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MindBillBillingManagementButtonComponent, never>;
|
|
299
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MindBillBillingManagementButtonComponent, "mindbill-billing-management-button", never, { "sessionEndpoint": { "alias": "sessionEndpoint"; "required": false; }; "sessionProvider": { "alias": "sessionProvider"; "required": false; }; "label": { "alias": "label"; "required": false; }; "loadingLabel": { "alias": "loadingLabel"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; }, { "opened": "opened"; "failed": "failed"; }, never, never, true, never>;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export { MindBillBillAgingSummaryComponent, MindBillBillLifecycleComponent, MindBillBillListComponent, MindBillBillSubmissionComponent, MindBillBillingDashboardComponent, MindBillBillingManagementButtonComponent, MindBillBillingReportComponent, MindBillLifecycleStore, buildMindBillReportCsv, buildMindBillReportRows, ensureTrailingProcedureLine, isEmptyProcedureLine, mindBillAgingBucket, mindBillAgingDays, summarizeMindBillDashboard };
|
|
303
|
+
export type { MindBillAgingBucket, MindBillAgingBucketId, MindBillAngularAppearance, MindBillAngularThemePreset, MindBillDashboardBill, MindBillDashboardSummary, MindBillManagementSession, MindBillManagementSessionProvider, MindBillReportDimension, MindBillReportRow, MindBillSubmissionAttachment, MindBillSubmissionModifierOption, MindBillSubmissionProcedureOption, MindBillSubmissionTaxonomyOption, ProcedureLine };
|