pat-shared-components 0.1.0-beta.9 → 0.2.0-beta.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 +1 -50
- package/dist/index.es.js +27275 -37102
- package/dist/index.umd.js +92 -202
- package/dist/style.css +1 -1
- package/dist/types/components/Shared/CtaButton.vue.d.ts +31 -0
- package/dist/types/components/Shared/index.d.ts +1 -0
- package/dist/types/components/TestResult/BookAppointmentModal/BookAppointment/BookAppointment.vue.d.ts +26 -0
- package/dist/types/components/TestResult/{CtaButton.vue.d.ts → BookAppointmentModal/BookAppointment/DateItem.vue.d.ts} +3 -1
- package/dist/types/components/TestResult/BookAppointmentModal/BookAppointment/DayPartItem.vue.d.ts +24 -0
- package/dist/types/components/TestResult/BookAppointmentModal/BookAppointment/TimeSlotItem.vue.d.ts +30 -0
- package/dist/types/components/TestResult/BookAppointmentModal/BookAppointmentModal.vue.d.ts +27 -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/{TestResultHistoryDetail.vue.d.ts → TestResultHistoryDetailModal/TestResultHistoryDetail.vue.d.ts} +0 -0
- package/dist/types/components/TestResult/{TestResultHistoryDetailModal.vue.d.ts → TestResultHistoryDetailModal/TestResultHistoryDetailModal.vue.d.ts} +1 -2
- package/dist/types/components/TestResult/index.d.ts +6 -4
- package/dist/types/constants/Common.d.ts +13 -0
- package/dist/types/constants/Enums.d.ts +61 -0
- package/dist/types/index.d.ts +7 -4
- package/dist/types/plugin.d.ts +8 -0
- package/dist/types/types/Appointment.d.ts +14 -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/dist/types/types/index.d.ts +1 -0
- package/package.json +6 -7
- package/dist/types/components/TestResult/CheckAnotherResultButton.vue.d.ts +0 -4
|
@@ -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.
|
|
3
|
+
"version": "0.2.0-beta.1",
|
|
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.47",
|
|
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;
|