@lm_fe/env 0.1.201
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 +31 -0
- package/dist/HK-MO-TW-a8290c42.js +35 -0
- package/dist/HK-MO-TW-a8290c42.js.map +1 -0
- package/dist/MAINLAND-dbab9013.js +408 -0
- package/dist/MAINLAND-dbab9013.js.map +1 -0
- package/dist/OVERSEA-aee11a7a.js +5 -0
- package/dist/OVERSEA-aee11a7a.js.map +1 -0
- package/dist/STREETS-a799058d.js +210 -0
- package/dist/STREETS-a799058d.js.map +1 -0
- package/dist/constant/APP_CONFIG.d.ts +30 -0
- package/dist/constant/index.d.ts +18 -0
- package/dist/constant/modal_template_types.d.ts +11 -0
- package/dist/env/MchcEnv.d.ts +60 -0
- package/dist/env/index.d.ts +8 -0
- package/dist/env/type copy.d.ts +12 -0
- package/dist/env/type.d.ts +8 -0
- package/dist/event/MchcDriver.d.ts +17 -0
- package/dist/event/index.d.ts +26 -0
- package/dist/event/types/common.d.ts +5 -0
- package/dist/event/types/components/BaseList.d.ts +7 -0
- package/dist/event/types/mchc_driver.d.ts +38 -0
- package/dist/event/types/my_form.d.ts +46 -0
- package/dist/event/types/outpatient.d.ts +17 -0
- package/dist/event/types/service_info.d.ts +11 -0
- package/dist/event/types/ws.d.ts +82 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +3573 -0
- package/dist/index.js.map +1 -0
- package/dist/logger/index.d.ts +2 -0
- package/dist/macro/index.d.ts +25 -0
- package/dist/select_options/address/HK-MO-TW.d.ts +34 -0
- package/dist/select_options/address/MAINLAND.d.ts +6 -0
- package/dist/select_options/address/OVERSEA.d.ts +4 -0
- package/dist/select_options/address/STREETS.d.ts +209 -0
- package/dist/select_options/address/index.d.ts +247 -0
- package/dist/select_options/checkbox_options.d.ts +6 -0
- package/dist/select_options/country.d.ts +1 -0
- package/dist/select_options/funcs.d.ts +19 -0
- package/dist/select_options/index.d.ts +4 -0
- package/dist/select_options/other_options.d.ts +172 -0
- package/dist/select_options/preset_options.d.ts +127 -0
- package/dist/select_options/types.d.ts +15 -0
- package/dist/state/actionType.d.ts +52 -0
- package/dist/state/actions/dictionaries.d.ts +2 -0
- package/dist/state/actions/health-mission.d.ts +10 -0
- package/dist/state/actions/prenatal-diagnosis.d.ts +5 -0
- package/dist/state/actions/prenatal-visit.d.ts +40 -0
- package/dist/state/actions/system.d.ts +8 -0
- package/dist/state/actions/tabs.d.ts +6 -0
- package/dist/state/actions/temp-ids.d.ts +2 -0
- package/dist/state/index.d.ts +43 -0
- package/dist/state/types.d.ts +148 -0
- package/dist/storage/index.d.ts +18 -0
- package/dist/utils/MchcRouterContainer.d.ts +14 -0
- package/dist/utils/checkIdNO.d.ts +40 -0
- package/dist/utils/dictionary.d.ts +40 -0
- package/dist/utils/dynamicScriptCtx.d.ts +3 -0
- package/dist/utils/func.d.ts +14 -0
- package/dist/utils/history.d.ts +8 -0
- package/dist/utils/index.d.ts +68 -0
- package/dist/utils/medical_examination.d.ts +21 -0
- package/dist/utils/runtime_ctx.d.ts +34 -0
- package/dist/utils/state.d.ts +10 -0
- package/dist/utils/user_data.d.ts +23 -0
- package/package.json +33 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const all_env: MchcTypes[];
|
|
2
|
+
export type MchcType_default = 'mchc';
|
|
3
|
+
export type MchcType_越秀妇幼 = '越秀妇幼';
|
|
4
|
+
export type MchcType_广三 = '广三';
|
|
5
|
+
export type MchcType_南医增城 = '南医增城';
|
|
6
|
+
export type MchcType_华医 = '华医';
|
|
7
|
+
export type MchcType_临洮 = '临洮';
|
|
8
|
+
export type MchcType_建瓯 = '建瓯';
|
|
9
|
+
export type MchcType_潮汕 = '潮汕';
|
|
10
|
+
export type MchcType_郫都 = '郫都';
|
|
11
|
+
export type MchcTypes = MchcType_default | MchcType_越秀妇幼 | MchcType_广三 | MchcType_南医增城 | MchcType_华医 | MchcType_临洮 | MchcType_建瓯 | MchcType_潮汕 | MchcType_郫都;
|
|
12
|
+
export type Common_Form_Config_Names = '门诊_建档' | '住院_登记';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const all_env: readonly ["mchc", "临洮", "华医", "南医增城", "广三", "越秀妇幼", "建瓯", "广州市八", "南医附属", "潮汕", "郫都", "省妇幼"];
|
|
2
|
+
type ENV_TYPE = typeof all_env;
|
|
3
|
+
export type MchcTypes = ENV_TYPE[number];
|
|
4
|
+
export type MCHC_TYPE_MAP = {
|
|
5
|
+
[env in MchcTypes]: env;
|
|
6
|
+
};
|
|
7
|
+
export type Common_Form_Config_Names = '门诊_建档' | '住院_登记';
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseWsService } from "@lm_fe/utils";
|
|
2
|
+
import { TDirver_Event } from "./types/mchc_driver";
|
|
3
|
+
export * from './types/mchc_driver';
|
|
4
|
+
declare class MchcDriver extends BaseWsService<TDirver_Event> {
|
|
5
|
+
download(): void;
|
|
6
|
+
protected _messageHandler(e: WebSocketEventMap['message']): void;
|
|
7
|
+
private send_id;
|
|
8
|
+
send(data: {
|
|
9
|
+
data?: any;
|
|
10
|
+
name?: string;
|
|
11
|
+
token?: string;
|
|
12
|
+
command?: string;
|
|
13
|
+
send_id?: string;
|
|
14
|
+
}): void;
|
|
15
|
+
private checkType;
|
|
16
|
+
}
|
|
17
|
+
export declare const mchcDriver: MchcDriver;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { EventEmitter } from "@lm_fe/utils";
|
|
2
|
+
import { IMyForm_Event } from "./types/my_form";
|
|
3
|
+
import { IOutpatient_Event } from "./types/outpatient";
|
|
4
|
+
import { IService_info } from "./types/service_info";
|
|
5
|
+
import { IWs_Event } from "./types/ws";
|
|
6
|
+
import { IBaseList_Event } from "./types/components/BaseList";
|
|
7
|
+
export * from './MchcDriver';
|
|
8
|
+
export declare const mchcEvent: EventEmitter<{
|
|
9
|
+
print_modal: [{
|
|
10
|
+
url?: string;
|
|
11
|
+
requestData?: any;
|
|
12
|
+
width?: string | number;
|
|
13
|
+
printData?: string;
|
|
14
|
+
size?: string;
|
|
15
|
+
isNewEdition?: boolean;
|
|
16
|
+
}];
|
|
17
|
+
my_form: IMyForm_Event;
|
|
18
|
+
BaseList_hook: IBaseList_Event;
|
|
19
|
+
service_info: IService_info;
|
|
20
|
+
custom_msg: [{
|
|
21
|
+
readonly type: any;
|
|
22
|
+
data?: any;
|
|
23
|
+
}];
|
|
24
|
+
outpatient: IOutpatient_Event;
|
|
25
|
+
ws_event: IWs_Event;
|
|
26
|
+
}>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare const ReadCard_TPL: {
|
|
2
|
+
name: string;
|
|
3
|
+
gender: string;
|
|
4
|
+
people: string;
|
|
5
|
+
birth: string;
|
|
6
|
+
idno: string;
|
|
7
|
+
address: string;
|
|
8
|
+
agency: string;
|
|
9
|
+
expirestart: string;
|
|
10
|
+
expireend: string;
|
|
11
|
+
};
|
|
12
|
+
export interface IReadCardData {
|
|
13
|
+
name: string;
|
|
14
|
+
address: string;
|
|
15
|
+
idNO: string;
|
|
16
|
+
idNo?: string;
|
|
17
|
+
idType: number;
|
|
18
|
+
dob: string;
|
|
19
|
+
age: number;
|
|
20
|
+
nationality: string;
|
|
21
|
+
nativeplace: string;
|
|
22
|
+
gender: string;
|
|
23
|
+
}
|
|
24
|
+
export type T_ReadCard_Msg = {
|
|
25
|
+
type: 'ReadCard';
|
|
26
|
+
data: IReadCardData;
|
|
27
|
+
send_id?: string;
|
|
28
|
+
};
|
|
29
|
+
export type T_QRScan_Msg = {
|
|
30
|
+
type: 'QRScan';
|
|
31
|
+
send_id?: string;
|
|
32
|
+
};
|
|
33
|
+
export type TDirver_Event = T_ReadCard_Msg | T_QRScan_Msg | {
|
|
34
|
+
type: 'Raw';
|
|
35
|
+
data: any;
|
|
36
|
+
};
|
|
37
|
+
export declare function check_is_readcard(data: any): boolean;
|
|
38
|
+
export declare function parse_readcard_data(_data: any): IReadCardData | undefined;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { IBaseType } from "./common";
|
|
2
|
+
import { AnyObject } from "@lm_fe/utils";
|
|
3
|
+
interface I_onChange extends IBaseType<'onChange'> {
|
|
4
|
+
name: string;
|
|
5
|
+
value: any;
|
|
6
|
+
values?: AnyObject;
|
|
7
|
+
config?: any;
|
|
8
|
+
setValue?(name: string, value: any): void;
|
|
9
|
+
setValues?(obj: AnyObject): void;
|
|
10
|
+
setOptions?(obj: any[]): void;
|
|
11
|
+
}
|
|
12
|
+
interface I_onSearch extends IBaseType<'onSearch'> {
|
|
13
|
+
name: string;
|
|
14
|
+
value: {
|
|
15
|
+
text: string;
|
|
16
|
+
data?: any;
|
|
17
|
+
};
|
|
18
|
+
values?: AnyObject;
|
|
19
|
+
setValue?(name: string, value: any): void;
|
|
20
|
+
setValues?(obj: AnyObject): void;
|
|
21
|
+
}
|
|
22
|
+
interface I_onClick extends IBaseType<'onClick'> {
|
|
23
|
+
btnName: string;
|
|
24
|
+
values?: any;
|
|
25
|
+
setValue?(name: string, value: any): void;
|
|
26
|
+
setValues?(obj: AnyObject): void;
|
|
27
|
+
}
|
|
28
|
+
interface I_onBlur extends IBaseType<'onBlur'> {
|
|
29
|
+
value?: any;
|
|
30
|
+
name?: string;
|
|
31
|
+
}
|
|
32
|
+
interface I_onFocus extends IBaseType<'onFocus'> {
|
|
33
|
+
value?: any;
|
|
34
|
+
name?: string;
|
|
35
|
+
}
|
|
36
|
+
interface I_onLoad extends IBaseType<'onLoad'> {
|
|
37
|
+
formName?: string;
|
|
38
|
+
}
|
|
39
|
+
interface I_onTabChange extends IBaseType<'onTabChange'> {
|
|
40
|
+
activeKey: string;
|
|
41
|
+
oldKey: string;
|
|
42
|
+
}
|
|
43
|
+
export type IMyForm_Event = [
|
|
44
|
+
I_onChange | I_onSearch | I_onClick | I_onTabChange | I_onBlur | I_onFocus | I_onLoad
|
|
45
|
+
];
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IBaseType } from "./common";
|
|
2
|
+
interface I_弹窗 extends IBaseType<'弹窗'> {
|
|
3
|
+
modal_name: '瘢痕子宫阴道试产表' | '子痫前期风险评估表' | '深静脉血栓高危因素孕期用药筛查表' | '高危标记' | '梅毒管理' | '专案';
|
|
4
|
+
}
|
|
5
|
+
interface I_刷新头部 extends IBaseType<'刷新头部'> {
|
|
6
|
+
pregnancyId: any;
|
|
7
|
+
}
|
|
8
|
+
interface I_添加修改诊断 extends IBaseType<'添加修改诊断'> {
|
|
9
|
+
diagnoses: any;
|
|
10
|
+
}
|
|
11
|
+
interface I_其他事件 extends IBaseType<'其他事件'> {
|
|
12
|
+
data: {
|
|
13
|
+
name: string;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export type IOutpatient_Event = [I_弹窗 | I_其他事件 | I_刷新头部 | I_添加修改诊断];
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IBaseType } from "./common";
|
|
2
|
+
interface I_乙肝个案登机卡提醒 extends IBaseType<'乙肝个案登记卡提醒'> {
|
|
3
|
+
flag: boolean;
|
|
4
|
+
}
|
|
5
|
+
interface I_其他事件 extends IBaseType<'其他事件'> {
|
|
6
|
+
data: {
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export type IService_info = [I_乙肝个案登机卡提醒 | I_其他事件];
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { AnyObject } from "@lm_fe/utils";
|
|
2
|
+
import { IBaseType } from "./common";
|
|
3
|
+
import ReconnectingWebSocket from "reconnecting-websocket";
|
|
4
|
+
interface IT1 {
|
|
5
|
+
"id": number;
|
|
6
|
+
"type": "DiagnosisRemind";
|
|
7
|
+
"title": "梅毒(梅毒阳性/异常,是否添加梅毒诊断)";
|
|
8
|
+
"level": 9;
|
|
9
|
+
"handleTime": "2023-04-23 11:12:10";
|
|
10
|
+
"data": {
|
|
11
|
+
"content": "梅毒阳性/异常,是否添加梅毒诊断";
|
|
12
|
+
"key": "梅毒";
|
|
13
|
+
};
|
|
14
|
+
"pregnancyId": 2919;
|
|
15
|
+
"doctorId": 509;
|
|
16
|
+
"handleType": "yes";
|
|
17
|
+
"popUp": null;
|
|
18
|
+
"ignores": string[];
|
|
19
|
+
}
|
|
20
|
+
interface IT2 {
|
|
21
|
+
"id": number;
|
|
22
|
+
"type": "RiskMark";
|
|
23
|
+
"title": "高危因素标记";
|
|
24
|
+
"level": 9;
|
|
25
|
+
"handleTime": "2023-04-23 16:22:43";
|
|
26
|
+
"data": {
|
|
27
|
+
"highriskTree": {
|
|
28
|
+
"key": null;
|
|
29
|
+
"title": "遗传病史";
|
|
30
|
+
"value": null;
|
|
31
|
+
"level": null;
|
|
32
|
+
"selected": null;
|
|
33
|
+
"children": {
|
|
34
|
+
"key": null;
|
|
35
|
+
"title": "产前筛查有异常但产前诊断无异常";
|
|
36
|
+
"value": "遗传病史:产前筛查有异常但产前诊断无异常";
|
|
37
|
+
"level": "Ⅲ";
|
|
38
|
+
"selected": true;
|
|
39
|
+
"children": null;
|
|
40
|
+
}[];
|
|
41
|
+
}[];
|
|
42
|
+
};
|
|
43
|
+
"pregnancyId": 2919;
|
|
44
|
+
"doctorId": 509;
|
|
45
|
+
"handleType": "yes";
|
|
46
|
+
"popUp": null;
|
|
47
|
+
"ignores": null;
|
|
48
|
+
}
|
|
49
|
+
interface IT3 {
|
|
50
|
+
"id": number;
|
|
51
|
+
"type": "DiagnosisRemind";
|
|
52
|
+
"title": "漏诊提醒";
|
|
53
|
+
"level": 1;
|
|
54
|
+
"handleTime": null;
|
|
55
|
+
"data": {
|
|
56
|
+
"content": "HIV阳性,是否添加艾滋病诊断";
|
|
57
|
+
"key": "艾滋病";
|
|
58
|
+
};
|
|
59
|
+
"pregnancyId": 2919;
|
|
60
|
+
"doctorId": 509;
|
|
61
|
+
"handleType": null;
|
|
62
|
+
"popUp": null;
|
|
63
|
+
"ignores": null;
|
|
64
|
+
}
|
|
65
|
+
interface IT4 {
|
|
66
|
+
"type": "clean-msg";
|
|
67
|
+
"isShow": true;
|
|
68
|
+
}
|
|
69
|
+
interface IT5 {
|
|
70
|
+
"type": "RefreshPregnancyHeaderInfo";
|
|
71
|
+
}
|
|
72
|
+
interface I_onChange extends IBaseType<'obis-doctor'> {
|
|
73
|
+
event: 'open' | 'message' | 'error' | 'close';
|
|
74
|
+
data?: IT1 | IT2 | IT3 | IT4 | IT5;
|
|
75
|
+
ins: ReconnectingWebSocket;
|
|
76
|
+
}
|
|
77
|
+
interface I_onSearch extends IBaseType<'obis-globalRisk'> {
|
|
78
|
+
event: 'open' | 'message' | 'error' | 'close';
|
|
79
|
+
data?: AnyObject;
|
|
80
|
+
}
|
|
81
|
+
export type IWs_Event = [I_onChange | I_onSearch];
|
|
82
|
+
export {};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import './index.less';
|
|
2
|
+
export * from './constant';
|
|
3
|
+
export * from './env';
|
|
4
|
+
export * from './event';
|
|
5
|
+
export * from './logger';
|
|
6
|
+
export * from './macro';
|
|
7
|
+
export * from './select_options';
|
|
8
|
+
export * from './utils';
|
|
9
|
+
export * from './state';
|
|
10
|
+
export * from './storage';
|