pat-shared-components 0.1.0-beta.8 → 0.1.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 +1 -50
- package/dist/index.es.js +28592 -53
- package/dist/index.umd.js +129 -1
- package/dist/style.css +1 -1
- package/dist/types/components/{TestResult → Shared}/CtaButton.vue.d.ts +10 -1
- package/dist/types/components/Shared/index.d.ts +1 -0
- package/dist/types/components/TestResult/CheckOthersButton.vue.d.ts +2 -0
- package/dist/types/components/TestResult/Desktop/ResultReady.vue.d.ts +1 -1
- package/dist/types/components/TestResult/Mobile/BookingTab/BookingDetail/BookingDetail.vue.d.ts +11 -2
- package/dist/types/components/TestResult/Mobile/BookingTab/BookingDetail/BookingNumber.vue.d.ts +22 -1
- package/dist/types/components/TestResult/Mobile/BookingTab/BookingDetail/BookingPrescription.vue.d.ts +22 -1
- package/dist/types/components/TestResult/Mobile/BookingTab/BookingDetail/PatientInfo.vue.d.ts +22 -1
- package/dist/types/components/TestResult/Mobile/BookingTab/BookingList.vue.d.ts +9 -2
- package/dist/types/components/TestResult/Mobile/MyProfile.vue.d.ts +13 -4
- package/dist/types/components/TestResult/Mobile/ResultTab/TestResultDetail/ResultOverview.vue.d.ts +1 -1
- package/dist/types/components/TestResult/Mobile/ResultTab/TestResultDetail/ResultReadyV2.vue.d.ts +1 -1
- package/dist/types/components/TestResult/Mobile/ResultTab/TestResultDetail/TestResultDetail.vue.d.ts +23 -12
- package/dist/types/components/TestResult/Mobile/ResultTab/TestResultList.vue.d.ts +13 -3
- package/dist/types/components/TestResult/PatientFullInfo.vue.d.ts +1 -1
- package/dist/types/components/TestResult/PatientShortInfo.vue.d.ts +2 -9
- package/dist/types/components/TestResult/index.d.ts +1 -2
- package/dist/types/constants/Common.d.ts +13 -0
- package/dist/types/constants/Enums.d.ts +56 -0
- package/dist/types/index.d.ts +8 -4
- package/dist/types/plugin.d.ts +8 -0
- package/dist/types/types/Booking.d.ts +1 -2
- package/dist/types/types/TestResult.d.ts +60 -1
- package/dist/types/types/TestResultHistory.d.ts +2 -1
- package/package.json +6 -7
- package/dist/types/components/TestResult/CheckAnotherResultButton.vue.d.ts +0 -4
|
@@ -3,8 +3,17 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface Props {
|
|
5
5
|
url: string;
|
|
6
|
+
title: string;
|
|
7
|
+
subtitle: string;
|
|
8
|
+
hideIcon?: boolean;
|
|
6
9
|
}
|
|
7
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
10
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
11
|
+
hideIcon: boolean;
|
|
12
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
13
|
+
hideIcon: boolean;
|
|
14
|
+
}>>>, {
|
|
15
|
+
hideIcon: boolean;
|
|
16
|
+
}>;
|
|
8
17
|
export default _default;
|
|
9
18
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
10
19
|
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
package/dist/types/components/TestResult/Mobile/BookingTab/BookingDetail/BookingDetail.vue.d.ts
CHANGED
|
@@ -4,10 +4,19 @@ import type { Booking } from '@/types';
|
|
|
4
4
|
*/
|
|
5
5
|
export interface Props {
|
|
6
6
|
bookingDetail: Booking;
|
|
7
|
+
loading: boolean;
|
|
8
|
+
hideBackToList?: boolean;
|
|
7
9
|
}
|
|
8
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
10
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
11
|
+
hideBackToList: boolean;
|
|
12
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("switch-to-list" | "click:find-branch")[], "switch-to-list" | "click:find-branch", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
13
|
+
hideBackToList: boolean;
|
|
14
|
+
}>>> & {
|
|
15
|
+
"onSwitch-to-list"?: (...args: any[]) => any;
|
|
9
16
|
"onClick:find-branch"?: (...args: any[]) => any;
|
|
10
|
-
}, {
|
|
17
|
+
}, {
|
|
18
|
+
hideBackToList: boolean;
|
|
19
|
+
}>;
|
|
11
20
|
export default _default;
|
|
12
21
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
22
|
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
package/dist/types/components/TestResult/Mobile/BookingTab/BookingDetail/BookingNumber.vue.d.ts
CHANGED
|
@@ -1,2 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Booking } from '@/types';
|
|
2
|
+
/**
|
|
3
|
+
* Props
|
|
4
|
+
*/
|
|
5
|
+
export interface Props {
|
|
6
|
+
bookingDetail: Booking;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>>, {}>;
|
|
2
9
|
export default _default;
|
|
10
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
12
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
|
+
} : {
|
|
15
|
+
type: import('vue').PropType<T[K]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
20
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
21
|
+
default: D[K];
|
|
22
|
+
} : P[K];
|
|
23
|
+
};
|
|
@@ -1,2 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Booking } from '@/types';
|
|
2
|
+
/**
|
|
3
|
+
* Props
|
|
4
|
+
*/
|
|
5
|
+
export interface Props {
|
|
6
|
+
bookingDetail: Booking;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>>, {}>;
|
|
2
9
|
export default _default;
|
|
10
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
12
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
|
+
} : {
|
|
15
|
+
type: import('vue').PropType<T[K]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
20
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
21
|
+
default: D[K];
|
|
22
|
+
} : P[K];
|
|
23
|
+
};
|
package/dist/types/components/TestResult/Mobile/BookingTab/BookingDetail/PatientInfo.vue.d.ts
CHANGED
|
@@ -1,2 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Booking } from '@/types';
|
|
2
|
+
/**
|
|
3
|
+
* Props
|
|
4
|
+
*/
|
|
5
|
+
export interface Props {
|
|
6
|
+
bookingDetail: Booking;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>>, {}>;
|
|
2
9
|
export default _default;
|
|
10
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
12
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
|
+
} : {
|
|
15
|
+
type: import('vue').PropType<T[K]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
20
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
21
|
+
default: D[K];
|
|
22
|
+
} : P[K];
|
|
23
|
+
};
|
|
@@ -7,11 +7,18 @@ export interface Props {
|
|
|
7
7
|
loading: boolean;
|
|
8
8
|
skeletonCount: number;
|
|
9
9
|
hideLoadMore: boolean;
|
|
10
|
+
bookingButtonUrl?: string;
|
|
10
11
|
}
|
|
11
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
12
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
13
|
+
bookingButtonUrl: string;
|
|
14
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("switch-to-detail" | "click:load-more")[], "switch-to-detail" | "click:load-more", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
15
|
+
bookingButtonUrl: string;
|
|
16
|
+
}>>> & {
|
|
12
17
|
"onSwitch-to-detail"?: (...args: any[]) => any;
|
|
13
18
|
"onClick:load-more"?: (...args: any[]) => any;
|
|
14
|
-
}, {
|
|
19
|
+
}, {
|
|
20
|
+
bookingButtonUrl: string;
|
|
21
|
+
}>;
|
|
15
22
|
export default _default;
|
|
16
23
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
17
24
|
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,13 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Gender } from '@/constants/Enums';
|
|
2
2
|
/**
|
|
3
3
|
* Props
|
|
4
4
|
*/
|
|
5
5
|
export interface Props {
|
|
6
|
-
|
|
6
|
+
fullName: string;
|
|
7
|
+
dob: string;
|
|
8
|
+
gender: Gender;
|
|
9
|
+
phoneNumber: string;
|
|
7
10
|
loading: boolean;
|
|
8
|
-
ctaButtonUrl
|
|
11
|
+
ctaButtonUrl?: string;
|
|
9
12
|
}
|
|
10
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
13
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
14
|
+
ctaButtonUrl: string;
|
|
15
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
16
|
+
ctaButtonUrl: string;
|
|
17
|
+
}>>>, {
|
|
18
|
+
ctaButtonUrl: string;
|
|
19
|
+
}>;
|
|
11
20
|
export default _default;
|
|
12
21
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
22
|
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
package/dist/types/components/TestResult/Mobile/ResultTab/TestResultDetail/TestResultDetail.vue.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TestResult } from '@/types';
|
|
2
2
|
/**
|
|
3
3
|
* Props
|
|
4
4
|
*/
|
|
@@ -6,21 +6,27 @@ export interface Props {
|
|
|
6
6
|
testResult: TestResult;
|
|
7
7
|
loading: boolean;
|
|
8
8
|
ctaButtonUrl: string;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
hidePatientInfo?: boolean;
|
|
10
|
+
hideCheckOtherButton?: boolean;
|
|
11
|
+
hideViewAllButton?: boolean;
|
|
11
12
|
}
|
|
12
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
14
|
+
hidePatientInfo: boolean;
|
|
15
|
+
hideCheckOtherButton: boolean;
|
|
16
|
+
hideViewAllButton: boolean;
|
|
17
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("switch-to-list" | "click:check-others")[], "switch-to-list" | "click:check-others", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
18
|
+
hidePatientInfo: boolean;
|
|
19
|
+
hideCheckOtherButton: boolean;
|
|
20
|
+
hideViewAllButton: boolean;
|
|
18
21
|
}>>> & {
|
|
19
22
|
"onSwitch-to-list"?: (...args: any[]) => any;
|
|
20
|
-
"onClick:
|
|
23
|
+
"onClick:check-others"?: (...args: any[]) => any;
|
|
21
24
|
}, {
|
|
22
|
-
|
|
23
|
-
|
|
25
|
+
hidePatientInfo: boolean;
|
|
26
|
+
hideCheckOtherButton: boolean;
|
|
27
|
+
hideViewAllButton: boolean;
|
|
28
|
+
}>, {
|
|
29
|
+
default: (_: {}) => any;
|
|
24
30
|
}>;
|
|
25
31
|
export default _default;
|
|
26
32
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -37,3 +43,8 @@ declare type __VLS_WithDefaults<P, D> = {
|
|
|
37
43
|
default: D[K];
|
|
38
44
|
} : P[K];
|
|
39
45
|
};
|
|
46
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
47
|
+
new (): {
|
|
48
|
+
$slots: S;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
@@ -6,13 +6,23 @@ export interface Props {
|
|
|
6
6
|
items: TestResultCompact[];
|
|
7
7
|
loading: boolean;
|
|
8
8
|
skeletonCount: number;
|
|
9
|
-
ctaButtonUrl
|
|
9
|
+
ctaButtonUrl?: string;
|
|
10
10
|
hideLoadMore: boolean;
|
|
11
|
+
bookingButtonUrl?: string;
|
|
11
12
|
}
|
|
12
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
13
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
14
|
+
ctaButtonUrl: string;
|
|
15
|
+
bookingButtonUrl: string;
|
|
16
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("switch-to-detail" | "click:load-more")[], "switch-to-detail" | "click:load-more", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
17
|
+
ctaButtonUrl: string;
|
|
18
|
+
bookingButtonUrl: string;
|
|
19
|
+
}>>> & {
|
|
13
20
|
"onSwitch-to-detail"?: (...args: any[]) => any;
|
|
14
21
|
"onClick:load-more"?: (...args: any[]) => any;
|
|
15
|
-
}, {
|
|
22
|
+
}, {
|
|
23
|
+
bookingButtonUrl: string;
|
|
24
|
+
ctaButtonUrl: string;
|
|
25
|
+
}>;
|
|
16
26
|
export default _default;
|
|
17
27
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
28
|
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TestResult } from '@/types';
|
|
2
2
|
export interface Props {
|
|
3
3
|
testResult: TestResult;
|
|
4
|
-
hasTooltip?: boolean;
|
|
5
4
|
}
|
|
6
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
7
|
-
hasTooltip: boolean;
|
|
8
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
9
|
-
hasTooltip: boolean;
|
|
10
|
-
}>>>, {
|
|
11
|
-
hasTooltip: boolean;
|
|
12
|
-
}>;
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>>, {}>;
|
|
13
6
|
export default _default;
|
|
14
7
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
8
|
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { default as CallUsFilledButton } from './CallUsFilledButton.vue';
|
|
2
|
-
export { default as
|
|
3
|
-
export { default as CtaButton } from './CtaButton.vue';
|
|
2
|
+
export { default as CheckOthersButton } from './CheckOthersButton.vue';
|
|
4
3
|
export { default as PatientFullInfo } from './PatientFullInfo.vue';
|
|
5
4
|
export { default as PatientShortInfo } from './PatientShortInfo.vue';
|
|
6
5
|
export { default as PatientShortInfoV2 } from './PatientShortInfoV2.vue';
|
|
@@ -1,2 +1,15 @@
|
|
|
1
1
|
export declare const SupportPhone = "19001717";
|
|
2
2
|
export declare const SupportEmail = "customersupport@diag.vn";
|
|
3
|
+
export declare enum LsKey {
|
|
4
|
+
Locale = "DiagPatientPortalLocale"
|
|
5
|
+
}
|
|
6
|
+
export declare const EventBusName: {
|
|
7
|
+
Container: string;
|
|
8
|
+
MicroTestResult: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const EventType: {
|
|
11
|
+
ChangeRoute: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const CookieName: {
|
|
14
|
+
AccessToken: string;
|
|
15
|
+
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Booking
|
|
3
|
+
*/
|
|
1
4
|
export declare enum BookingStatus {
|
|
2
5
|
Pending = "pending",
|
|
3
6
|
Canceled = "canceled",
|
|
@@ -8,3 +11,56 @@ export declare enum PaymentStatus {
|
|
|
8
11
|
Refunded = "refunded",
|
|
9
12
|
Unpaid = "unpaid"
|
|
10
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* Test Result
|
|
16
|
+
*/
|
|
17
|
+
export declare enum TestResultStatus {
|
|
18
|
+
Ordered = "ordered",
|
|
19
|
+
Ready = "ready",
|
|
20
|
+
PartiallyComplete = "partial",
|
|
21
|
+
InProgress = "in-progress",
|
|
22
|
+
Canceled = "canceled",
|
|
23
|
+
Rejected = "rejected"
|
|
24
|
+
}
|
|
25
|
+
export declare enum TestResultTemplate {
|
|
26
|
+
Default = "default",
|
|
27
|
+
GXNT1 = "GXNT1",
|
|
28
|
+
HPV = "HPV",
|
|
29
|
+
STD = "STD"
|
|
30
|
+
}
|
|
31
|
+
export declare enum TestResultConclusion {
|
|
32
|
+
Abnormal = "A",
|
|
33
|
+
LowerAbnormal = "L",
|
|
34
|
+
Panic = "P",
|
|
35
|
+
Normal = "N"
|
|
36
|
+
}
|
|
37
|
+
export declare enum TestStatus {
|
|
38
|
+
SampleCollected = "SampleCollected",
|
|
39
|
+
SampleReceived = "SampleReceived",
|
|
40
|
+
YetToTransfer = "Yet to Transfer",
|
|
41
|
+
Completed = "Completed",
|
|
42
|
+
Cancel = "Cancel",
|
|
43
|
+
Approve = "Approve"
|
|
44
|
+
}
|
|
45
|
+
export declare enum ResultType {
|
|
46
|
+
Numberic = "numeric",
|
|
47
|
+
Text = "text",
|
|
48
|
+
XML = "XML"
|
|
49
|
+
}
|
|
50
|
+
export declare enum ResultSegmentNormalType {
|
|
51
|
+
Normal = "normal",
|
|
52
|
+
Attention = "attention",
|
|
53
|
+
Critical = "critical"
|
|
54
|
+
}
|
|
55
|
+
export declare enum ResultSegmentValueOPR {
|
|
56
|
+
GreaterThan = ">",
|
|
57
|
+
GreaterThanOrEqualTo = "\u2265",
|
|
58
|
+
LessThan = "<",
|
|
59
|
+
LessThanOrEqualTo = "\u2264",
|
|
60
|
+
BTW = "btw",
|
|
61
|
+
Txt = "txt"
|
|
62
|
+
}
|
|
63
|
+
export declare enum Gender {
|
|
64
|
+
Male = "Male",
|
|
65
|
+
Female = "Female"
|
|
66
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import 'diag-shared-business-components/dist/index.css';
|
|
1
|
+
import './assets/styles/main.scss';
|
|
3
2
|
export * from './types';
|
|
4
3
|
export * from './components/Shared';
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
export * from './components/TestResult';
|
|
5
|
+
export * from './constants/Common';
|
|
6
|
+
export * from './constants/Enums';
|
|
7
|
+
/**
|
|
8
|
+
* Localizations
|
|
9
|
+
*/
|
|
7
10
|
export { default as vi } from './locales/vi.json';
|
|
8
11
|
export { default as en } from './locales/en.json';
|
|
12
|
+
export { default as default } from './plugin';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { Gender } from '
|
|
2
|
-
import type { BookingStatus, PaymentStatus } from '@/constants/Enums';
|
|
1
|
+
import type { BookingStatus, Gender, PaymentStatus } from '@/constants/Enums';
|
|
3
2
|
export interface BookingCompact {
|
|
4
3
|
booking_code: string;
|
|
5
4
|
booking_status: BookingStatus;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TestResultStatus } from '
|
|
1
|
+
import type { Gender, ResultSegmentNormalType, ResultSegmentValueOPR, ResultType, TestResultConclusion, TestResultStatus, TestResultTemplate, TestStatus } from '@/constants/Enums';
|
|
2
2
|
export interface TestResultCompact {
|
|
3
3
|
order_id: string;
|
|
4
4
|
first_name: string;
|
|
@@ -6,3 +6,62 @@ export interface TestResultCompact {
|
|
|
6
6
|
visit_date: string;
|
|
7
7
|
key: string;
|
|
8
8
|
}
|
|
9
|
+
export interface TestResult extends TestResultBase {
|
|
10
|
+
categories: TestResultCategory[];
|
|
11
|
+
}
|
|
12
|
+
export interface TestResultCategory {
|
|
13
|
+
name: string;
|
|
14
|
+
sort?: string;
|
|
15
|
+
tests: TestResultItem[];
|
|
16
|
+
count_critical: number;
|
|
17
|
+
count_abnormal: number;
|
|
18
|
+
count_in_progress: number;
|
|
19
|
+
count_normal: number;
|
|
20
|
+
}
|
|
21
|
+
export interface TestResultItem {
|
|
22
|
+
is_abnormal?: TestResultConclusion;
|
|
23
|
+
purpose?: string;
|
|
24
|
+
ranges: TestResultRange[];
|
|
25
|
+
reference_range: string;
|
|
26
|
+
test_code: string;
|
|
27
|
+
test_name: string;
|
|
28
|
+
test_status: TestStatus;
|
|
29
|
+
test_value: any;
|
|
30
|
+
test_value_type: ResultType;
|
|
31
|
+
uom_code: string;
|
|
32
|
+
delta_value?: any;
|
|
33
|
+
}
|
|
34
|
+
export interface TestResultRange {
|
|
35
|
+
result_type: `${ResultType}`;
|
|
36
|
+
value_txt: string;
|
|
37
|
+
status: `${ResultSegmentNormalType}`;
|
|
38
|
+
result_label: string;
|
|
39
|
+
color: string;
|
|
40
|
+
is_active: boolean;
|
|
41
|
+
value_min: number;
|
|
42
|
+
value_max: number;
|
|
43
|
+
value_opr?: `${ResultSegmentValueOPR}`;
|
|
44
|
+
}
|
|
45
|
+
export interface TestResultBase {
|
|
46
|
+
can_booking: boolean;
|
|
47
|
+
date_of_birth: string;
|
|
48
|
+
doctor_name?: string;
|
|
49
|
+
doctor_note?: string;
|
|
50
|
+
first_name: string;
|
|
51
|
+
gender: Gender;
|
|
52
|
+
order_id: string;
|
|
53
|
+
ordered_at: string;
|
|
54
|
+
pdf: string;
|
|
55
|
+
phone_number: string;
|
|
56
|
+
result_at?: string;
|
|
57
|
+
result_status: TestResultStatus;
|
|
58
|
+
sample_collected_at?: string;
|
|
59
|
+
status: string;
|
|
60
|
+
template_type: `${TestResultTemplate}`;
|
|
61
|
+
overview: TestResultOverview[];
|
|
62
|
+
}
|
|
63
|
+
export interface TestResultOverview {
|
|
64
|
+
count: number;
|
|
65
|
+
name: string;
|
|
66
|
+
percent: number;
|
|
67
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TestResultConclusion } from '
|
|
1
|
+
import type { TestResultConclusion } from '@/constants/Enums';
|
|
2
2
|
export interface TestResultHistoryCompact {
|
|
3
3
|
test_code: string;
|
|
4
4
|
min_test_value: number;
|
|
@@ -16,6 +16,7 @@ export interface TestResultHistory {
|
|
|
16
16
|
}
|
|
17
17
|
export interface HistoryChartDataItem {
|
|
18
18
|
value: number;
|
|
19
|
+
original_test_value: string;
|
|
19
20
|
order_date: string;
|
|
20
21
|
is_abnormal: TestResultConclusion;
|
|
21
22
|
reference_range: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pat-shared-components",
|
|
3
|
-
"version": "0.1.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/**/*"
|
|
6
6
|
],
|
|
@@ -34,20 +34,18 @@
|
|
|
34
34
|
"format": "prettier . --write"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@
|
|
38
|
-
"
|
|
39
|
-
"chart.js": "^4.1.2",
|
|
40
|
-
"diag-shared-business-components": "^0.6.0-beta.6",
|
|
37
|
+
"@juggle/resize-observer": "^3.4.0",
|
|
38
|
+
"chart.js": "^3.9.1",
|
|
41
39
|
"imask": "^6.4.3",
|
|
42
40
|
"lodash": "^4.17.21",
|
|
43
41
|
"moment-mini": "^2.29.4",
|
|
44
|
-
"pat-design-system": "
|
|
45
|
-
"postcss-preset-env": "^7.8.3",
|
|
42
|
+
"pat-design-system": "0.2.0-beta.38",
|
|
46
43
|
"uuid": "^8.3.2",
|
|
47
44
|
"vue": "^3.2.37",
|
|
48
45
|
"vue-i18n": "^9.2.2"
|
|
49
46
|
},
|
|
50
47
|
"devDependencies": {
|
|
48
|
+
"@babel/core": "^7.20.12",
|
|
51
49
|
"@intlify/eslint-plugin-vue-i18n": "^2.0.0",
|
|
52
50
|
"@rushstack/eslint-patch": "^1.1.4",
|
|
53
51
|
"@tailwindcss/line-clamp": "^0.4.2",
|
|
@@ -67,6 +65,7 @@
|
|
|
67
65
|
"jsdom": "^20.0.1",
|
|
68
66
|
"npm-run-all": "^4.1.5",
|
|
69
67
|
"postcss": "^8.4.19",
|
|
68
|
+
"postcss-preset-env": "^8.0.1",
|
|
70
69
|
"prettier": "^2.7.1",
|
|
71
70
|
"sass": "^1.56.0",
|
|
72
71
|
"tailwindcss": "^3.2.2",
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click:check-another"[], "click:check-another", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
2
|
-
"onClick:check-another"?: (...args: any[]) => any;
|
|
3
|
-
}, {}>;
|
|
4
|
-
export default _default;
|