web-core-tcm 0.0.23 → 0.0.25
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/package.json +38 -21
- package/quasar.config.ts +28 -15
- package/src/api/algorithm/comprehensiveAlgorithm.ts +1 -1
- package/src/api/algorithm/index.ts +7 -7
- package/src/api/algorithm/inquiriesAlgorithm.ts +4 -7
- package/src/api/algorithm/inspectionsAlgorithm.ts +1 -1
- package/src/api/algorithm/lisemsAlgorithm.ts +3 -3
- package/src/api/algorithm/pulsationsAlgorithm.ts +2 -3
- package/src/api/authorization/alova/apiDefinitions.ts +2 -2
- package/src/api/authorization/alova/createApis.ts +22 -7
- package/src/api/authorization/alova/globals.d.ts +35 -14
- package/src/api/authorization/alova/implement/authorization.ts +11 -9
- package/src/api/authorization/alova/implement/index.ts +1 -1
- package/src/api/authorization/alova/index.ts +4 -5
- package/src/api/authorization/authorization.ts +6 -6
- package/src/api/authorization/index.ts +1 -1
- package/src/api/check/alova/apiDefinitions.ts +2 -2
- package/src/api/check/alova/createApis.ts +22 -7
- package/src/api/check/alova/globals.d.ts +29 -20
- package/src/api/check/alova/implement/check.ts +145 -99
- package/src/api/check/alova/implement/index.ts +1 -1
- package/src/api/check/alova/index.ts +4 -5
- package/src/api/check/check.ts +116 -63
- package/src/api/check/index.ts +1 -1
- package/src/api/config/alova/index.ts +26 -27
- package/src/api/config/index.ts +59 -57
- package/src/api/doctor/alova/apiDefinitions.ts +2 -2
- package/src/api/doctor/alova/createApis.ts +22 -7
- package/src/api/doctor/alova/globals.d.ts +27 -18
- package/src/api/doctor/alova/implement/doctor.ts +38 -24
- package/src/api/doctor/alova/implement/index.ts +1 -1
- package/src/api/doctor/alova/index.ts +4 -4
- package/src/api/doctor/doctor.ts +18 -18
- package/src/api/doctor/index.ts +1 -1
- package/src/api/index.ts +12 -15
- package/src/api/metric/implement/index.ts +1 -1
- package/src/api/metric/implement/metric.ts +44 -34
- package/src/api/metric/index.ts +1 -1
- package/src/api/metric/metric.ts +36 -36
- package/src/api/oauth/alova/apiDefinitions.ts +2 -2
- package/src/api/oauth/alova/createApis.ts +22 -7
- package/src/api/oauth/alova/globals.d.ts +25 -16
- package/src/api/oauth/alova/implement/index.ts +1 -1
- package/src/api/oauth/alova/implement/oauth.ts +20 -15
- package/src/api/oauth/alova/index.ts +4 -5
- package/src/api/oauth/index.ts +1 -1
- package/src/api/oauth/oauth.ts +9 -5
- package/src/api/outpatient/alova/apiDefinitions.ts +2 -2
- package/src/api/outpatient/alova/createApis.ts +22 -7
- package/src/api/outpatient/alova/globals.d.ts +25 -16
- package/src/api/outpatient/alova/implement/index.ts +1 -1
- package/src/api/outpatient/alova/implement/outpatient.ts +76 -51
- package/src/api/outpatient/alova/index.ts +4 -5
- package/src/api/outpatient/index.ts +1 -1
- package/src/api/outpatient/outpatient.ts +29 -24
- package/src/api/patient/alova/apiDefinitions.ts +2 -2
- package/src/api/patient/alova/createApis.ts +22 -7
- package/src/api/patient/alova/globals.d.ts +56 -43
- package/src/api/patient/alova/implement/index.ts +1 -1
- package/src/api/patient/alova/implement/meta.ts +253 -224
- package/src/api/patient/alova/implement/patient.ts +79 -57
- package/src/api/patient/alova/index.ts +3 -5
- package/src/api/patient/core.ts +51 -49
- package/src/api/patient/index.ts +1 -1
- package/src/api/patient/meta.ts +244 -140
- package/src/api/patient/patient.ts +25 -25
- package/src/api/prescription/alova/apiDefinitions.ts +2 -2
- package/src/api/prescription/alova/createApis.ts +22 -7
- package/src/api/prescription/alova/globals.d.ts +32 -23
- package/src/api/prescription/alova/implement/herbal.ts +59 -39
- package/src/api/prescription/alova/implement/index.ts +1 -1
- package/src/api/prescription/alova/implement/prescription.ts +50 -33
- package/src/api/prescription/alova/index.ts +4 -5
- package/src/api/prescription/herbal.ts +17 -10
- package/src/api/prescription/index.ts +1 -1
- package/src/api/prescription/prescription.ts +35 -27
- package/src/api/scientist/alova/apiDefinitions.ts +2 -2
- package/src/api/scientist/alova/createApis.ts +22 -7
- package/src/api/scientist/alova/globals.d.ts +25 -16
- package/src/api/scientist/alova/implement/index.ts +1 -1
- package/src/api/scientist/alova/implement/scientist.ts +31 -20
- package/src/api/scientist/alova/index.ts +5 -4
- package/src/api/scientist/index.ts +1 -1
- package/src/api/scientist/scientist.ts +20 -20
- package/src/index.ts +3 -4
- package/src/layouts/UserLayout.vue +9 -7
- package/src/pages/LoginPage.vue +2 -5
- package/src/proto/types/Images_pb.ts +13 -13
- package/src/proto/types/WaveMap_pb.ts +13 -13
- package/src/router/routes.ts +2 -2
- package/src/util/export.ts +4 -4
- package/src/util/helper.ts +6 -6
- package/src/util/image.ts +1 -1
- package/src/util/number.ts +4 -4
- package/src/util/s256.js +1 -4
- package/src/util/secret.ts +1 -1
- package/src/util/string.ts +18 -18
- package/tsconfig.json +5 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { Page} from '
|
|
2
|
-
import { NetworkObject } from '
|
|
3
|
-
import type { QueuerState } from '
|
|
1
|
+
import type { Page } from 'src/api/patient/core';
|
|
2
|
+
import { NetworkObject } from 'src/api/patient/core';
|
|
3
|
+
import type { QueuerState } from 'src/api/outpatient/alova/globals';
|
|
4
4
|
import type { IBuilder } from 'builder-pattern';
|
|
5
5
|
import { Builder } from 'builder-pattern';
|
|
6
|
-
import { Patient } from '
|
|
7
|
-
import { Doctor } from '
|
|
6
|
+
import { Patient } from 'src/api/patient/patient';
|
|
7
|
+
import { Doctor } from 'src/api/doctor/doctor';
|
|
8
8
|
|
|
9
9
|
export enum QueuerStatus {
|
|
10
10
|
Waiting = 0,
|
|
@@ -12,12 +12,12 @@ export enum QueuerStatus {
|
|
|
12
12
|
Finished = 2,
|
|
13
13
|
}
|
|
14
14
|
export const QueuerStatusConfig = {
|
|
15
|
-
[QueuerStatus.Finished]: {name: '完成'},
|
|
16
|
-
[QueuerStatus.InTreatment]: {name
|
|
17
|
-
[QueuerStatus.Waiting]: {name
|
|
18
|
-
}
|
|
15
|
+
[QueuerStatus.Finished]: { name: '完成' },
|
|
16
|
+
[QueuerStatus.InTreatment]: { name: '就诊' },
|
|
17
|
+
[QueuerStatus.Waiting]: { name: '等待' },
|
|
18
|
+
};
|
|
19
19
|
export abstract class Queuer extends NetworkObject {
|
|
20
|
-
static override builder(): IBuilder<Queuer>{
|
|
20
|
+
static override builder(): IBuilder<Queuer> {
|
|
21
21
|
return Builder(this._default) as unknown as IBuilder<Queuer>;
|
|
22
22
|
}
|
|
23
23
|
static override default(): typeof Queuer {
|
|
@@ -32,12 +32,12 @@ export abstract class Queuer extends NetworkObject {
|
|
|
32
32
|
|
|
33
33
|
override async of(json: QueuerState): Promise<this> {
|
|
34
34
|
//修改下面逻辑,改为判空,为空就不覆盖
|
|
35
|
-
if(json.id != undefined)this.id = json.id;
|
|
36
|
-
if(json.patientState != undefined)await this.patient.of(json.patientState);
|
|
37
|
-
if(json.doctorState != undefined)await this.doctor.of(json.doctorState);
|
|
38
|
-
if(json.createdTimestamp != undefined)this.createdTimestamp = json.createdTimestamp;
|
|
39
|
-
if(json.updatedTimestamp != undefined)this.updatedTimestamp = json.updatedTimestamp;
|
|
40
|
-
if(json.status != undefined)this.status = json.status;
|
|
35
|
+
if (json.id != undefined) this.id = json.id;
|
|
36
|
+
if (json.patientState != undefined) await this.patient.of(json.patientState);
|
|
37
|
+
if (json.doctorState != undefined) await this.doctor.of(json.doctorState);
|
|
38
|
+
if (json.createdTimestamp != undefined) this.createdTimestamp = json.createdTimestamp;
|
|
39
|
+
if (json.updatedTimestamp != undefined) this.updatedTimestamp = json.updatedTimestamp;
|
|
40
|
+
if (json.status != undefined) this.status = json.status;
|
|
41
41
|
return Promise.resolve(this);
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -48,15 +48,20 @@ export abstract class Queuer extends NetworkObject {
|
|
|
48
48
|
doctorState: this.doctor.state(),
|
|
49
49
|
createdTimestamp: this.createdTimestamp,
|
|
50
50
|
updatedTimestamp: this.updatedTimestamp,
|
|
51
|
-
status: this.status
|
|
51
|
+
status: this.status,
|
|
52
52
|
} as QueuerState;
|
|
53
53
|
}
|
|
54
|
-
static query(
|
|
55
|
-
|
|
54
|
+
static query(
|
|
55
|
+
page: number,
|
|
56
|
+
pageSize: number,
|
|
57
|
+
doctorId?: string,
|
|
58
|
+
patientId?: string,
|
|
59
|
+
): Promise<Page<Queuer>> {
|
|
60
|
+
return Queuer.default().query(page, pageSize, doctorId, patientId);
|
|
56
61
|
}
|
|
57
|
-
abstract get(): Promise<this
|
|
58
|
-
abstract put(): Promise<this
|
|
59
|
-
abstract putStatus(status?: number): Promise<this
|
|
60
|
-
abstract delete(): Promise<this
|
|
61
|
-
abstract post(): Promise<this
|
|
62
|
+
abstract get(): Promise<this>;
|
|
63
|
+
abstract put(): Promise<this>;
|
|
64
|
+
abstract putStatus(status?: number): Promise<this>;
|
|
65
|
+
abstract delete(): Promise<this>;
|
|
66
|
+
abstract post(): Promise<this>;
|
|
62
67
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types='./globals.d.ts' />
|
|
2
2
|
/* tslint:disable */
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
/**
|
|
5
5
|
* 患者服务 - version v1.0
|
|
6
6
|
*
|
|
@@ -37,5 +37,5 @@ export default {
|
|
|
37
37
|
'metricRestful.datesOfMeta': ['GET', '/患者/服务/统计/元/日期'],
|
|
38
38
|
'metricRestful.totalOfMeta': ['GET', '/患者/服务/统计/元/总数'],
|
|
39
39
|
'metricRestful.totalOfMetaByToday': ['GET', '/患者/服务/统计/元/今日'],
|
|
40
|
-
'metaStateRestful.getMetaObject': ['GET', '/患者/服务/元/{id}/元象']
|
|
40
|
+
'metaStateRestful.getMetaObject': ['GET', '/患者/服务/元/{id}/元象'],
|
|
41
41
|
};
|
|
@@ -19,7 +19,11 @@ import { Method } from 'alova';
|
|
|
19
19
|
import apiDefinitions from './apiDefinitions';
|
|
20
20
|
|
|
21
21
|
const cache = Object.create(null);
|
|
22
|
-
const createFunctionalProxy = (
|
|
22
|
+
const createFunctionalProxy = (
|
|
23
|
+
array: (string | symbol)[],
|
|
24
|
+
alovaInstance: Alova<AlovaGenerics>,
|
|
25
|
+
configMap: any,
|
|
26
|
+
) => {
|
|
23
27
|
const apiPathKey = array.join('.') as keyof typeof apiDefinitions;
|
|
24
28
|
if (cache[apiPathKey]) {
|
|
25
29
|
return cache[apiPathKey];
|
|
@@ -39,7 +43,7 @@ const createFunctionalProxy = (array: (string | symbol)[], alovaInstance: Alova<
|
|
|
39
43
|
}
|
|
40
44
|
const mergedConfig = {
|
|
41
45
|
...configMap[apiPathKey],
|
|
42
|
-
...config
|
|
46
|
+
...config,
|
|
43
47
|
};
|
|
44
48
|
const [method, url] = apiItem;
|
|
45
49
|
const pathParams = mergedConfig.pathParams;
|
|
@@ -49,7 +53,10 @@ const createFunctionalProxy = (array: (string | symbol)[], alovaInstance: Alova<
|
|
|
49
53
|
});
|
|
50
54
|
delete mergedConfig.pathParams;
|
|
51
55
|
let data = mergedConfig.data;
|
|
52
|
-
if (
|
|
56
|
+
if (
|
|
57
|
+
Object.prototype.toString.call(data) === '[object Object]' &&
|
|
58
|
+
typeof FormData !== 'undefined'
|
|
59
|
+
) {
|
|
53
60
|
let hasBlobData = false;
|
|
54
61
|
const formData = new FormData();
|
|
55
62
|
for (const key in data) {
|
|
@@ -60,8 +67,14 @@ const createFunctionalProxy = (array: (string | symbol)[], alovaInstance: Alova<
|
|
|
60
67
|
}
|
|
61
68
|
data = hasBlobData ? formData : data;
|
|
62
69
|
}
|
|
63
|
-
return new Method(
|
|
64
|
-
|
|
70
|
+
return new Method(
|
|
71
|
+
method!.toUpperCase() as MethodType,
|
|
72
|
+
alovaInstance,
|
|
73
|
+
urlReplaced,
|
|
74
|
+
mergedConfig,
|
|
75
|
+
data,
|
|
76
|
+
);
|
|
77
|
+
},
|
|
65
78
|
});
|
|
66
79
|
cache[apiPathKey] = proxy;
|
|
67
80
|
return proxy;
|
|
@@ -71,7 +84,7 @@ export const createApis = (alovaInstance: Alova<AlovaGenerics>, configMap: any)
|
|
|
71
84
|
const Apis = new Proxy({} as patientApi, {
|
|
72
85
|
get(_, property) {
|
|
73
86
|
return createFunctionalProxy([property], alovaInstance, configMap);
|
|
74
|
-
}
|
|
87
|
+
},
|
|
75
88
|
});
|
|
76
89
|
return Apis;
|
|
77
90
|
};
|
|
@@ -93,7 +106,9 @@ type APISofParameters<Tag extends string, Url extends string> = Tag extends keyo
|
|
|
93
106
|
: any;
|
|
94
107
|
type MethodsConfigMap = {
|
|
95
108
|
[P in keyof typeof import('./apiDefinitions').default]?: MethodConfig<
|
|
96
|
-
P extends `${infer Tag}.${infer Url}`
|
|
109
|
+
P extends `${infer Tag}.${infer Url}`
|
|
110
|
+
? Parameters<NonNullable<APISofParameters<Tag, Url>[0]>['transform']>[0]
|
|
111
|
+
: any
|
|
97
112
|
>;
|
|
98
113
|
};
|
|
99
114
|
export const withConfigType = <Config extends MethodsConfigMap>(config: Config) => config;
|
|
@@ -36,7 +36,16 @@ type Alova2MethodConfig<Responded> =
|
|
|
36
36
|
>
|
|
37
37
|
? Omit<
|
|
38
38
|
AlovaMethodCreateConfig<
|
|
39
|
-
AlovaGenerics<
|
|
39
|
+
AlovaGenerics<
|
|
40
|
+
Responded,
|
|
41
|
+
any,
|
|
42
|
+
RequestConfig,
|
|
43
|
+
Response,
|
|
44
|
+
ResponseHeader,
|
|
45
|
+
L1Cache,
|
|
46
|
+
L2Cache,
|
|
47
|
+
SE
|
|
48
|
+
>,
|
|
40
49
|
any,
|
|
41
50
|
Responded
|
|
42
51
|
>,
|
|
@@ -47,7 +56,7 @@ type Alova2MethodConfig<Responded> =
|
|
|
47
56
|
// Extract the return type of transform function that define in $$userConfigMap, if it not exists, use the default type.
|
|
48
57
|
type ExtractUserDefinedTransformed<
|
|
49
58
|
DefinitionKey extends keyof typeof apiDefinitions,
|
|
50
|
-
Default
|
|
59
|
+
Default,
|
|
51
60
|
> = DefinitionKey extends keyof UserMethodConfigMap
|
|
52
61
|
? UserMethodConfigMap[DefinitionKey]['transform'] extends (...args: any[]) => any
|
|
53
62
|
? Awaited<ReturnType<UserMethodConfigMap[DefinitionKey]['transform']>>
|
|
@@ -56,7 +65,7 @@ type ExtractUserDefinedTransformed<
|
|
|
56
65
|
type Alova2Method<
|
|
57
66
|
Responded,
|
|
58
67
|
DefinitionKey extends keyof typeof apiDefinitions,
|
|
59
|
-
CurrentConfig extends Alova2MethodConfig<any
|
|
68
|
+
CurrentConfig extends Alova2MethodConfig<any>,
|
|
60
69
|
> =
|
|
61
70
|
CollapsedAlova extends Alova<
|
|
62
71
|
AlovaGenerics<
|
|
@@ -289,9 +298,9 @@ declare global {
|
|
|
289
298
|
pathParams: {
|
|
290
299
|
id: string;
|
|
291
300
|
};
|
|
292
|
-
}
|
|
301
|
+
},
|
|
293
302
|
>(
|
|
294
|
-
config: Config
|
|
303
|
+
config: Config,
|
|
295
304
|
): Alova2Method<MetaState, 'metaStateRestful.getMetaState', Config>;
|
|
296
305
|
/**
|
|
297
306
|
* ---
|
|
@@ -417,9 +426,9 @@ declare global {
|
|
|
417
426
|
id: string;
|
|
418
427
|
};
|
|
419
428
|
data: MetaState;
|
|
420
|
-
}
|
|
429
|
+
},
|
|
421
430
|
>(
|
|
422
|
-
config: Config
|
|
431
|
+
config: Config,
|
|
423
432
|
): Alova2Method<MetaState, 'metaStateRestful.putMetaState', Config>;
|
|
424
433
|
/**
|
|
425
434
|
* ---
|
|
@@ -449,9 +458,9 @@ declare global {
|
|
|
449
458
|
pathParams: {
|
|
450
459
|
id: string;
|
|
451
460
|
};
|
|
452
|
-
}
|
|
461
|
+
},
|
|
453
462
|
>(
|
|
454
|
-
config: Config
|
|
463
|
+
config: Config,
|
|
455
464
|
): Alova2Method<null, 'metaStateRestful.deleteMetaState', Config>;
|
|
456
465
|
/**
|
|
457
466
|
* ---
|
|
@@ -535,9 +544,9 @@ declare global {
|
|
|
535
544
|
type: string;
|
|
536
545
|
};
|
|
537
546
|
data: Blob;
|
|
538
|
-
}
|
|
547
|
+
},
|
|
539
548
|
>(
|
|
540
|
-
config: Config
|
|
549
|
+
config: Config,
|
|
541
550
|
): Alova2Method<MetaState, 'metaStateRestful.postMetaState', Config>;
|
|
542
551
|
/**
|
|
543
552
|
* ---
|
|
@@ -684,9 +693,9 @@ declare global {
|
|
|
684
693
|
queryMetaAndPatientState<
|
|
685
694
|
Config extends Alova2MethodConfig<PageMetaState> & {
|
|
686
695
|
data: QueryMetaWithPatientStateRequest;
|
|
687
|
-
}
|
|
696
|
+
},
|
|
688
697
|
>(
|
|
689
|
-
config: Config
|
|
698
|
+
config: Config,
|
|
690
699
|
): Alova2Method<PageMetaState, 'metaStateRestful.queryMetaAndPatientState', Config>;
|
|
691
700
|
/**
|
|
692
701
|
* ---
|
|
@@ -826,9 +835,9 @@ declare global {
|
|
|
826
835
|
queryMetaStateByExactMatch<
|
|
827
836
|
Config extends Alova2MethodConfig<PageMetaState> & {
|
|
828
837
|
data: QueryMetaStateByExactMatchRequest;
|
|
829
|
-
}
|
|
838
|
+
},
|
|
830
839
|
>(
|
|
831
|
-
config: Config
|
|
840
|
+
config: Config,
|
|
832
841
|
): Alova2Method<PageMetaState, 'metaStateRestful.queryMetaStateByExactMatch', Config>;
|
|
833
842
|
/**
|
|
834
843
|
* ---
|
|
@@ -961,9 +970,9 @@ declare global {
|
|
|
961
970
|
queryMetaState<
|
|
962
971
|
Config extends Alova2MethodConfig<PageMetaState> & {
|
|
963
972
|
data: QueryMetaStateRequest;
|
|
964
|
-
}
|
|
973
|
+
},
|
|
965
974
|
>(
|
|
966
|
-
config: Config
|
|
975
|
+
config: Config,
|
|
967
976
|
): Alova2Method<PageMetaState, 'metaStateRestful.queryMetaState', Config>;
|
|
968
977
|
/**
|
|
969
978
|
* ---
|
|
@@ -993,9 +1002,9 @@ declare global {
|
|
|
993
1002
|
pathParams: {
|
|
994
1003
|
id: string;
|
|
995
1004
|
};
|
|
996
|
-
}
|
|
1005
|
+
},
|
|
997
1006
|
>(
|
|
998
|
-
config: Config
|
|
1007
|
+
config: Config,
|
|
999
1008
|
): Alova2Method<null, 'metaStateRestful.getMetaObject', Config>;
|
|
1000
1009
|
};
|
|
1001
1010
|
patientStateRestful: {
|
|
@@ -1053,9 +1062,9 @@ declare global {
|
|
|
1053
1062
|
pathParams: {
|
|
1054
1063
|
id: string;
|
|
1055
1064
|
};
|
|
1056
|
-
}
|
|
1065
|
+
},
|
|
1057
1066
|
>(
|
|
1058
|
-
config: Config
|
|
1067
|
+
config: Config,
|
|
1059
1068
|
): Alova2Method<PatientState, 'patientStateRestful.getPatientState', Config>;
|
|
1060
1069
|
/**
|
|
1061
1070
|
* ---
|
|
@@ -1145,9 +1154,9 @@ declare global {
|
|
|
1145
1154
|
id: string;
|
|
1146
1155
|
};
|
|
1147
1156
|
data: PatientState;
|
|
1148
|
-
}
|
|
1157
|
+
},
|
|
1149
1158
|
>(
|
|
1150
|
-
config: Config
|
|
1159
|
+
config: Config,
|
|
1151
1160
|
): Alova2Method<PatientState, 'patientStateRestful.putPatientState', Config>;
|
|
1152
1161
|
/**
|
|
1153
1162
|
* ---
|
|
@@ -1177,9 +1186,9 @@ declare global {
|
|
|
1177
1186
|
pathParams: {
|
|
1178
1187
|
id: string;
|
|
1179
1188
|
};
|
|
1180
|
-
}
|
|
1189
|
+
},
|
|
1181
1190
|
>(
|
|
1182
|
-
config: Config
|
|
1191
|
+
config: Config,
|
|
1183
1192
|
): Alova2Method<null, 'patientStateRestful.deletePatientState', Config>;
|
|
1184
1193
|
/**
|
|
1185
1194
|
* ---
|
|
@@ -1284,9 +1293,9 @@ declare global {
|
|
|
1284
1293
|
endTime?: string;
|
|
1285
1294
|
sort?: string;
|
|
1286
1295
|
};
|
|
1287
|
-
}
|
|
1296
|
+
},
|
|
1288
1297
|
>(
|
|
1289
|
-
config: Config
|
|
1298
|
+
config: Config,
|
|
1290
1299
|
): Alova2Method<PagePatientState, 'patientStateRestful.queryPatientState', Config>;
|
|
1291
1300
|
/**
|
|
1292
1301
|
* ---
|
|
@@ -1364,9 +1373,9 @@ declare global {
|
|
|
1364
1373
|
postPatientState<
|
|
1365
1374
|
Config extends Alova2MethodConfig<PatientState> & {
|
|
1366
1375
|
data: PatientState;
|
|
1367
|
-
}
|
|
1376
|
+
},
|
|
1368
1377
|
>(
|
|
1369
|
-
config: Config
|
|
1378
|
+
config: Config,
|
|
1370
1379
|
): Alova2Method<PatientState, 'patientStateRestful.postPatientState', Config>;
|
|
1371
1380
|
/**
|
|
1372
1381
|
* ---
|
|
@@ -1471,10 +1480,14 @@ declare global {
|
|
|
1471
1480
|
queryPatientStateByExactMatch<
|
|
1472
1481
|
Config extends Alova2MethodConfig<PagePatientState> & {
|
|
1473
1482
|
data: QueryPatientStateByExactMatchRequest;
|
|
1474
|
-
}
|
|
1483
|
+
},
|
|
1475
1484
|
>(
|
|
1476
|
-
config: Config
|
|
1477
|
-
): Alova2Method<
|
|
1485
|
+
config: Config,
|
|
1486
|
+
): Alova2Method<
|
|
1487
|
+
PagePatientState,
|
|
1488
|
+
'patientStateRestful.queryPatientStateByExactMatch',
|
|
1489
|
+
Config
|
|
1490
|
+
>;
|
|
1478
1491
|
};
|
|
1479
1492
|
metricRestful: {
|
|
1480
1493
|
/**
|
|
@@ -1492,7 +1505,7 @@ declare global {
|
|
|
1492
1505
|
* ```
|
|
1493
1506
|
*/
|
|
1494
1507
|
totalOfPatient<Config extends Alova2MethodConfig<number>>(
|
|
1495
|
-
config?: Config
|
|
1508
|
+
config?: Config,
|
|
1496
1509
|
): Alova2Method<number, 'metricRestful.totalOfPatient', Config>;
|
|
1497
1510
|
/**
|
|
1498
1511
|
* ---
|
|
@@ -1512,7 +1525,7 @@ declare global {
|
|
|
1512
1525
|
* ```
|
|
1513
1526
|
*/
|
|
1514
1527
|
ageDistributeOfPatient<Config extends Alova2MethodConfig<AgeDistribute[]>>(
|
|
1515
|
-
config?: Config
|
|
1528
|
+
config?: Config,
|
|
1516
1529
|
): Alova2Method<AgeDistribute[], 'metricRestful.ageDistributeOfPatient', Config>;
|
|
1517
1530
|
/**
|
|
1518
1531
|
* ---
|
|
@@ -1532,7 +1545,7 @@ declare global {
|
|
|
1532
1545
|
* ```
|
|
1533
1546
|
*/
|
|
1534
1547
|
genderDistributeOfPatient<Config extends Alova2MethodConfig<GenderDistribute[]>>(
|
|
1535
|
-
config?: Config
|
|
1548
|
+
config?: Config,
|
|
1536
1549
|
): Alova2Method<GenderDistribute[], 'metricRestful.genderDistributeOfPatient', Config>;
|
|
1537
1550
|
/**
|
|
1538
1551
|
* ---
|
|
@@ -1552,7 +1565,7 @@ declare global {
|
|
|
1552
1565
|
* ```
|
|
1553
1566
|
*/
|
|
1554
1567
|
dateDistributeOfPatient<Config extends Alova2MethodConfig<DateDistribute[]>>(
|
|
1555
|
-
config?: Config
|
|
1568
|
+
config?: Config,
|
|
1556
1569
|
): Alova2Method<DateDistribute[], 'metricRestful.dateDistributeOfPatient', Config>;
|
|
1557
1570
|
/**
|
|
1558
1571
|
* ---
|
|
@@ -1569,7 +1582,7 @@ declare global {
|
|
|
1569
1582
|
* ```
|
|
1570
1583
|
*/
|
|
1571
1584
|
totalOfPatientByToday<Config extends Alova2MethodConfig<number>>(
|
|
1572
|
-
config?: Config
|
|
1585
|
+
config?: Config,
|
|
1573
1586
|
): Alova2Method<number, 'metricRestful.totalOfPatientByToday', Config>;
|
|
1574
1587
|
/**
|
|
1575
1588
|
* ---
|
|
@@ -1602,9 +1615,9 @@ declare global {
|
|
|
1602
1615
|
params: {
|
|
1603
1616
|
type: string;
|
|
1604
1617
|
};
|
|
1605
|
-
}
|
|
1618
|
+
},
|
|
1606
1619
|
>(
|
|
1607
|
-
config: Config
|
|
1620
|
+
config: Config,
|
|
1608
1621
|
): Alova2Method<DateDistribute[], 'metricRestful.datesOfMeta', Config>;
|
|
1609
1622
|
/**
|
|
1610
1623
|
* ---
|
|
@@ -1634,9 +1647,9 @@ declare global {
|
|
|
1634
1647
|
params: {
|
|
1635
1648
|
type: string;
|
|
1636
1649
|
};
|
|
1637
|
-
}
|
|
1650
|
+
},
|
|
1638
1651
|
>(
|
|
1639
|
-
config: Config
|
|
1652
|
+
config: Config,
|
|
1640
1653
|
): Alova2Method<number, 'metricRestful.totalOfMeta', Config>;
|
|
1641
1654
|
/**
|
|
1642
1655
|
* ---
|
|
@@ -1666,9 +1679,9 @@ declare global {
|
|
|
1666
1679
|
params: {
|
|
1667
1680
|
type: string;
|
|
1668
1681
|
};
|
|
1669
|
-
}
|
|
1682
|
+
},
|
|
1670
1683
|
>(
|
|
1671
|
-
config: Config
|
|
1684
|
+
config: Config,
|
|
1672
1685
|
): Alova2Method<number, 'metricRestful.totalOfMetaByToday', Config>;
|
|
1673
1686
|
};
|
|
1674
1687
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './meta';
|
|
2
|
-
export * from './patient';
|
|
2
|
+
export * from './patient';
|