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
|
@@ -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<
|
|
@@ -181,9 +190,9 @@ declare global {
|
|
|
181
190
|
pathParams: {
|
|
182
191
|
id: string;
|
|
183
192
|
};
|
|
184
|
-
}
|
|
193
|
+
},
|
|
185
194
|
>(
|
|
186
|
-
config: Config
|
|
195
|
+
config: Config,
|
|
187
196
|
): Alova2Method<DoctorState, 'doctorStateRestful.getDoctorState', Config>;
|
|
188
197
|
/**
|
|
189
198
|
* ---
|
|
@@ -239,9 +248,9 @@ declare global {
|
|
|
239
248
|
id: string;
|
|
240
249
|
};
|
|
241
250
|
data: DoctorState;
|
|
242
|
-
}
|
|
251
|
+
},
|
|
243
252
|
>(
|
|
244
|
-
config: Config
|
|
253
|
+
config: Config,
|
|
245
254
|
): Alova2Method<DoctorState, 'doctorStateRestful.putDoctorState', Config>;
|
|
246
255
|
/**
|
|
247
256
|
* ---
|
|
@@ -271,9 +280,9 @@ declare global {
|
|
|
271
280
|
pathParams: {
|
|
272
281
|
id: string;
|
|
273
282
|
};
|
|
274
|
-
}
|
|
283
|
+
},
|
|
275
284
|
>(
|
|
276
|
-
config: Config
|
|
285
|
+
config: Config,
|
|
277
286
|
): Alova2Method<null, 'doctorStateRestful.deleteDoctorState', Config>;
|
|
278
287
|
/**
|
|
279
288
|
* ---
|
|
@@ -349,9 +358,9 @@ declare global {
|
|
|
349
358
|
pageSize: number;
|
|
350
359
|
page: number;
|
|
351
360
|
};
|
|
352
|
-
}
|
|
361
|
+
},
|
|
353
362
|
>(
|
|
354
|
-
config: Config
|
|
363
|
+
config: Config,
|
|
355
364
|
): Alova2Method<PageDoctorState, 'doctorStateRestful.queryDoctorState', Config>;
|
|
356
365
|
/**
|
|
357
366
|
* ---
|
|
@@ -395,9 +404,9 @@ declare global {
|
|
|
395
404
|
postDoctorState<
|
|
396
405
|
Config extends Alova2MethodConfig<DoctorState> & {
|
|
397
406
|
data: DoctorState;
|
|
398
|
-
}
|
|
407
|
+
},
|
|
399
408
|
>(
|
|
400
|
-
config: Config
|
|
409
|
+
config: Config,
|
|
401
410
|
): Alova2Method<DoctorState, 'doctorStateRestful.postDoctorState', Config>;
|
|
402
411
|
/**
|
|
403
412
|
* ---
|
|
@@ -485,9 +494,9 @@ declare global {
|
|
|
485
494
|
queryDoctorStateByExactMatch<
|
|
486
495
|
Config extends Alova2MethodConfig<PageDoctorState> & {
|
|
487
496
|
data: QueryDoctorStateByExactMatchRequest;
|
|
488
|
-
}
|
|
497
|
+
},
|
|
489
498
|
>(
|
|
490
|
-
config: Config
|
|
499
|
+
config: Config,
|
|
491
500
|
): Alova2Method<PageDoctorState, 'doctorStateRestful.queryDoctorStateByExactMatch', Config>;
|
|
492
501
|
/**
|
|
493
502
|
* ---
|
|
@@ -507,7 +516,7 @@ declare global {
|
|
|
507
516
|
* ```
|
|
508
517
|
*/
|
|
509
518
|
datesOfDoctor<Config extends Alova2MethodConfig<DateDistribute[]>>(
|
|
510
|
-
config?: Config
|
|
519
|
+
config?: Config,
|
|
511
520
|
): Alova2Method<DateDistribute[], 'doctorStateRestful.datesOfDoctor', Config>;
|
|
512
521
|
/**
|
|
513
522
|
* ---
|
|
@@ -524,7 +533,7 @@ declare global {
|
|
|
524
533
|
* ```
|
|
525
534
|
*/
|
|
526
535
|
totalOfDoctor<Config extends Alova2MethodConfig<number>>(
|
|
527
|
-
config?: Config
|
|
536
|
+
config?: Config,
|
|
528
537
|
): Alova2Method<number, 'doctorStateRestful.totalOfDoctor', Config>;
|
|
529
538
|
/**
|
|
530
539
|
* ---
|
|
@@ -541,7 +550,7 @@ declare global {
|
|
|
541
550
|
* ```
|
|
542
551
|
*/
|
|
543
552
|
totalOfDoctorByToday<Config extends Alova2MethodConfig<number>>(
|
|
544
|
-
config?: Config
|
|
553
|
+
config?: Config,
|
|
545
554
|
): Alova2Method<number, 'doctorStateRestful.totalOfDoctorByToday', Config>;
|
|
546
555
|
};
|
|
547
556
|
}
|
|
@@ -1,37 +1,51 @@
|
|
|
1
|
-
import { Doctor } from '
|
|
1
|
+
import { Doctor } from 'src/api/doctor/doctor';
|
|
2
2
|
|
|
3
|
-
export class AlovaDoctor extends Doctor{
|
|
3
|
+
export class AlovaDoctor extends Doctor {
|
|
4
4
|
override async get() {
|
|
5
|
-
return this.of(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
return this.of(
|
|
6
|
+
await doctorApi.doctorStateRestful
|
|
7
|
+
.getDoctorState({
|
|
8
|
+
pathParams: {
|
|
9
|
+
id: this.id,
|
|
10
|
+
},
|
|
11
|
+
async transform(res) {
|
|
12
|
+
return new AlovaDoctor().of(res);
|
|
13
|
+
},
|
|
14
|
+
})
|
|
15
|
+
.send(),
|
|
16
|
+
);
|
|
13
17
|
}
|
|
14
18
|
|
|
15
19
|
override async put() {
|
|
16
|
-
return this.of(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
return this.of(
|
|
21
|
+
await doctorApi.doctorStateRestful
|
|
22
|
+
.putDoctorState({
|
|
23
|
+
pathParams: {
|
|
24
|
+
id: this.id,
|
|
25
|
+
},
|
|
26
|
+
data: this.state(),
|
|
27
|
+
})
|
|
28
|
+
.send(),
|
|
29
|
+
);
|
|
22
30
|
}
|
|
23
31
|
|
|
24
32
|
override async post() {
|
|
25
|
-
return this.of(
|
|
26
|
-
|
|
27
|
-
|
|
33
|
+
return this.of(
|
|
34
|
+
await doctorApi.doctorStateRestful
|
|
35
|
+
.postDoctorState({
|
|
36
|
+
data: this.state(),
|
|
37
|
+
})
|
|
38
|
+
.send(),
|
|
39
|
+
);
|
|
28
40
|
}
|
|
29
41
|
override async delete() {
|
|
30
|
-
await doctorApi.doctorStateRestful
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
42
|
+
await doctorApi.doctorStateRestful
|
|
43
|
+
.deleteDoctorState({
|
|
44
|
+
pathParams: {
|
|
45
|
+
id: this.id,
|
|
46
|
+
},
|
|
47
|
+
})
|
|
48
|
+
.send();
|
|
35
49
|
return Promise.resolve();
|
|
36
50
|
}
|
|
37
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './doctor';
|
|
1
|
+
export * from './doctor';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { createAlova } from 'alova';
|
|
2
2
|
import fetchAdapter from 'alova/fetch';
|
|
3
3
|
import { createApis, withConfigType, mountApis } from './createApis';
|
|
4
|
-
import { onAuthRequired, responded } from '
|
|
5
|
-
import { getServiceEndpoint, ServiceType } from '
|
|
4
|
+
import { onAuthRequired, responded } from 'src/api/config/alova';
|
|
5
|
+
import { getServiceEndpoint, ServiceType } from 'src/api/config';
|
|
6
6
|
|
|
7
7
|
export const alovaInstance = createAlova({
|
|
8
8
|
baseURL: getServiceEndpoint(ServiceType.Doctor),
|
|
9
9
|
requestAdapter: fetchAdapter(),
|
|
10
10
|
beforeRequest: onAuthRequired(() => {}),
|
|
11
11
|
cacheFor: null,
|
|
12
|
-
responded: responded
|
|
12
|
+
responded: responded,
|
|
13
13
|
});
|
|
14
14
|
|
|
15
15
|
export const $$userConfigMap = withConfigType({});
|
|
@@ -20,4 +20,4 @@ mountApis(Apis);
|
|
|
20
20
|
|
|
21
21
|
export default Apis;
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
export * from './implement';
|
package/src/api/doctor/doctor.ts
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { NetworkObject } from '
|
|
2
|
-
import type { DoctorState } from '
|
|
1
|
+
import { NetworkObject } from 'src/api/patient/core';
|
|
2
|
+
import type { DoctorState } from 'src/api/doctor/alova/globals';
|
|
3
3
|
import type { IBuilder } from 'builder-pattern';
|
|
4
4
|
import { Builder } from 'builder-pattern';
|
|
5
5
|
|
|
6
|
-
export abstract class Doctor extends NetworkObject{
|
|
7
|
-
static override builder(): IBuilder<Doctor>{
|
|
6
|
+
export abstract class Doctor extends NetworkObject {
|
|
7
|
+
static override builder(): IBuilder<Doctor> {
|
|
8
8
|
return Builder(this._default) as unknown as IBuilder<Doctor>;
|
|
9
9
|
}
|
|
10
10
|
static override default(): typeof Doctor {
|
|
11
11
|
return this._default as unknown as typeof Doctor;
|
|
12
12
|
}
|
|
13
|
-
id: string =
|
|
14
|
-
name: string =
|
|
13
|
+
id: string = '';
|
|
14
|
+
name: string = '';
|
|
15
15
|
createdTimestamp: string = '';
|
|
16
16
|
updatedTimestamp: string = '';
|
|
17
17
|
gender: string = '';
|
|
18
18
|
identityNumber: string = '';
|
|
19
19
|
phoneNumber: string = '';
|
|
20
20
|
birthdate: string = '';
|
|
21
|
-
custom: string = '标准模式'
|
|
22
|
-
override of(json: DoctorState){
|
|
23
|
-
if(json.id != undefined)this.id = json.id;
|
|
24
|
-
if(json.name != undefined)this.name = json.name;
|
|
25
|
-
if(json.createdTimestamp != undefined)this.createdTimestamp = json.createdTimestamp;
|
|
26
|
-
if(json.updatedTimestamp != undefined)this.updatedTimestamp = json.updatedTimestamp;
|
|
27
|
-
if(json.gender != undefined)this.gender = json.gender;
|
|
28
|
-
if(json.identityNumber != undefined)this.identityNumber = json.identityNumber;
|
|
29
|
-
if(json.phoneNumber != undefined)this.phoneNumber = json.phoneNumber;
|
|
30
|
-
if(json.birthdate != undefined)this.birthdate = json.birthdate;
|
|
31
|
-
return Promise.resolve(this)
|
|
21
|
+
custom: string = '标准模式';
|
|
22
|
+
override of(json: DoctorState) {
|
|
23
|
+
if (json.id != undefined) this.id = json.id;
|
|
24
|
+
if (json.name != undefined) this.name = json.name;
|
|
25
|
+
if (json.createdTimestamp != undefined) this.createdTimestamp = json.createdTimestamp;
|
|
26
|
+
if (json.updatedTimestamp != undefined) this.updatedTimestamp = json.updatedTimestamp;
|
|
27
|
+
if (json.gender != undefined) this.gender = json.gender;
|
|
28
|
+
if (json.identityNumber != undefined) this.identityNumber = json.identityNumber;
|
|
29
|
+
if (json.phoneNumber != undefined) this.phoneNumber = json.phoneNumber;
|
|
30
|
+
if (json.birthdate != undefined) this.birthdate = json.birthdate;
|
|
31
|
+
return Promise.resolve(this);
|
|
32
32
|
}
|
|
33
|
-
override state(){
|
|
33
|
+
override state() {
|
|
34
34
|
const state = {} as DoctorState;
|
|
35
35
|
if (this.id) state.id = this.id;
|
|
36
36
|
if (this.name) state.name = this.name;
|
package/src/api/doctor/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './doctor';
|
|
2
|
-
export * from './alova
|
|
2
|
+
export * from './alova';
|
package/src/api/index.ts
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
export * as AlgorithmApi from './algorithm/index'
|
|
2
|
-
|
|
3
|
-
export * as CheckApi from './check/index'
|
|
4
|
-
export * as ConfigApi from './config/index'
|
|
5
|
-
|
|
6
|
-
export * as MetricApi from './metric/index'
|
|
7
|
-
export * as OAuthApi from './oauth/index'
|
|
8
|
-
export * as OutPatientApi from './outpatient/index'
|
|
9
|
-
export * as PatientApi from './patient/index'
|
|
10
|
-
export * as PrescriptionApi from './prescription/index'
|
|
11
|
-
export * as ScientistApi from './scientist/index'
|
|
12
|
-
export * as DeviceApi from './device/device'
|
|
13
|
-
|
|
14
|
-
export { DoctorApi , AuthorizationApi}
|
|
15
|
-
|
|
1
|
+
export * as AlgorithmApi from './algorithm/index';
|
|
2
|
+
export * as AuthorizationApi from './authorization/index';
|
|
3
|
+
export * as CheckApi from './check/index';
|
|
4
|
+
export * as ConfigApi from './config/index';
|
|
5
|
+
export * as DoctorApi from './doctor/index';
|
|
6
|
+
export * as MetricApi from './metric/index';
|
|
7
|
+
export * as OAuthApi from './oauth/index';
|
|
8
|
+
export * as OutPatientApi from './outpatient/index';
|
|
9
|
+
export * as PatientApi from './patient/index';
|
|
10
|
+
export * as PrescriptionApi from './prescription/index';
|
|
11
|
+
export * as ScientistApi from './scientist/index';
|
|
12
|
+
export * as DeviceApi from './device/device';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './metric';
|
|
1
|
+
export * from './metric';
|
|
@@ -1,98 +1,108 @@
|
|
|
1
|
-
import type { MetaType } from '
|
|
2
|
-
import { Metric } from '
|
|
3
|
-
import type {
|
|
1
|
+
import type { MetaType } from 'src/api/patient/meta';
|
|
2
|
+
import { Metric } from 'src/api/metric/metric';
|
|
3
|
+
import type {
|
|
4
|
+
AgeDistribute,
|
|
5
|
+
DateDistribute,
|
|
6
|
+
GenderDistribute,
|
|
7
|
+
} from 'src/api/patient/alova/globals';
|
|
4
8
|
|
|
5
9
|
export class AlovaMetric extends Metric {
|
|
6
10
|
// 科研相关统计
|
|
7
11
|
static override getPatientTodayCount(): Promise<number> {
|
|
8
|
-
return patientApi.metricRestful.totalOfPatientByToday().send()
|
|
12
|
+
return patientApi.metricRestful.totalOfPatientByToday().send();
|
|
9
13
|
}
|
|
10
14
|
|
|
11
15
|
static override getPatientTotalCount(): Promise<number> {
|
|
12
|
-
return patientApi.metricRestful.totalOfPatient().send()
|
|
16
|
+
return patientApi.metricRestful.totalOfPatient().send();
|
|
13
17
|
}
|
|
14
18
|
|
|
15
19
|
static override getPatientDateDistribute(): Promise<DateDistribute[]> {
|
|
16
|
-
return patientApi.metricRestful.dateDistributeOfPatient().send()
|
|
20
|
+
return patientApi.metricRestful.dateDistributeOfPatient().send();
|
|
17
21
|
}
|
|
18
22
|
|
|
19
23
|
static override getPatientAgeDistribute(): Promise<AgeDistribute[]> {
|
|
20
|
-
return patientApi.metricRestful.ageDistributeOfPatient().send()
|
|
24
|
+
return patientApi.metricRestful.ageDistributeOfPatient().send();
|
|
21
25
|
}
|
|
22
26
|
|
|
23
27
|
static override getPatientGenderDistribute(): Promise<GenderDistribute[]> {
|
|
24
|
-
return patientApi.metricRestful.genderDistributeOfPatient().send()
|
|
28
|
+
return patientApi.metricRestful.genderDistributeOfPatient().send();
|
|
25
29
|
}
|
|
26
30
|
|
|
27
31
|
// 面象相关统计
|
|
28
32
|
static override getMetaTodayCount(type: MetaType): Promise<number> {
|
|
29
|
-
return patientApi.metricRestful
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
return patientApi.metricRestful
|
|
34
|
+
.totalOfMetaByToday({
|
|
35
|
+
params: {
|
|
36
|
+
type: type,
|
|
37
|
+
},
|
|
38
|
+
})
|
|
39
|
+
.send();
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
static override getMetaTotalCount(type: MetaType): Promise<number> {
|
|
37
|
-
return patientApi.metricRestful
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
43
|
+
return patientApi.metricRestful
|
|
44
|
+
.totalOfMeta({
|
|
45
|
+
params: {
|
|
46
|
+
type: type,
|
|
47
|
+
},
|
|
48
|
+
})
|
|
49
|
+
.send();
|
|
42
50
|
}
|
|
43
51
|
|
|
44
52
|
static override getMetaDateDistribute(type: MetaType): Promise<DateDistribute[]> {
|
|
45
|
-
return patientApi.metricRestful
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
53
|
+
return patientApi.metricRestful
|
|
54
|
+
.datesOfMeta({
|
|
55
|
+
params: {
|
|
56
|
+
type: type,
|
|
57
|
+
},
|
|
58
|
+
})
|
|
59
|
+
.send();
|
|
50
60
|
}
|
|
51
61
|
|
|
52
62
|
// 病例相关统计
|
|
53
63
|
static override getCheckGenderDistribute(): Promise<GenderDistribute[]> {
|
|
54
|
-
return checkApi.checkStateRestful.genderDistributeOfCheckState().send()
|
|
64
|
+
return checkApi.checkStateRestful.genderDistributeOfCheckState().send();
|
|
55
65
|
}
|
|
56
66
|
|
|
57
67
|
static override getCheckAgeDistribute(): Promise<AgeDistribute[]> {
|
|
58
|
-
return checkApi.checkStateRestful.ageDistributeOfCheckState().send()
|
|
68
|
+
return checkApi.checkStateRestful.ageDistributeOfCheckState().send();
|
|
59
69
|
}
|
|
60
70
|
|
|
61
71
|
static override getCheckTotalCount(): Promise<number> {
|
|
62
|
-
return checkApi.checkStateRestful.totalOfCheckState().send()
|
|
72
|
+
return checkApi.checkStateRestful.totalOfCheckState().send();
|
|
63
73
|
}
|
|
64
74
|
|
|
65
75
|
static override getCheckDateDistribute(): Promise<DateDistribute[]> {
|
|
66
|
-
return checkApi.checkStateRestful.datesOfCheckState().send()
|
|
76
|
+
return checkApi.checkStateRestful.datesOfCheckState().send();
|
|
67
77
|
}
|
|
68
78
|
|
|
69
79
|
static override getCheckTodayCount(): Promise<number> {
|
|
70
|
-
return checkApi.checkStateRestful.totalOfCheckByTodayState().send()
|
|
80
|
+
return checkApi.checkStateRestful.totalOfCheckByTodayState().send();
|
|
71
81
|
}
|
|
72
82
|
|
|
73
83
|
// 医生相关统计
|
|
74
84
|
static override getDoctorTotalCount(): Promise<number> {
|
|
75
|
-
return doctorApi.doctorStateRestful.totalOfDoctor().send()
|
|
85
|
+
return doctorApi.doctorStateRestful.totalOfDoctor().send();
|
|
76
86
|
}
|
|
77
87
|
|
|
78
88
|
static override getDoctorDateDistribute(): Promise<DateDistribute[]> {
|
|
79
|
-
return doctorApi.doctorStateRestful.datesOfDoctor().send()
|
|
89
|
+
return doctorApi.doctorStateRestful.datesOfDoctor().send();
|
|
80
90
|
}
|
|
81
91
|
|
|
82
92
|
static override getDoctorTodayCount(): Promise<number> {
|
|
83
|
-
return doctorApi.doctorStateRestful.totalOfDoctorByToday().send()
|
|
93
|
+
return doctorApi.doctorStateRestful.totalOfDoctorByToday().send();
|
|
84
94
|
}
|
|
85
95
|
|
|
86
96
|
// 排队相关统计
|
|
87
97
|
static override getQueuerTotalCount(): Promise<number> {
|
|
88
|
-
return outpatientApi.metricRestful.totalOfQueuerState().send()
|
|
98
|
+
return outpatientApi.metricRestful.totalOfQueuerState().send();
|
|
89
99
|
}
|
|
90
100
|
|
|
91
101
|
static override getQueuerDateDistribute(): Promise<DateDistribute[]> {
|
|
92
|
-
return outpatientApi.metricRestful.datesOfQueuerState().send()
|
|
102
|
+
return outpatientApi.metricRestful.datesOfQueuerState().send();
|
|
93
103
|
}
|
|
94
104
|
|
|
95
105
|
static override getQueuerTodayCount(): Promise<number> {
|
|
96
|
-
return outpatientApi.metricRestful.totalOfQueuerTodayState().send()
|
|
106
|
+
return outpatientApi.metricRestful.totalOfQueuerTodayState().send();
|
|
97
107
|
}
|
|
98
108
|
}
|
package/src/api/metric/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './implement
|
|
1
|
+
export * from './implement';
|
|
2
2
|
export * from './metric';
|
package/src/api/metric/metric.ts
CHANGED
|
@@ -1,114 +1,114 @@
|
|
|
1
|
-
import type { MetaType } from '
|
|
1
|
+
import type { MetaType } from 'src/api/patient/meta';
|
|
2
2
|
import type { IBuilder } from 'builder-pattern';
|
|
3
3
|
import { Builder } from 'builder-pattern';
|
|
4
|
-
import type { DateDistribute } from '
|
|
5
|
-
import type { AgeDistribute, GenderDistribute } from '
|
|
4
|
+
import type { DateDistribute } from 'src/api/patient/alova/globals';
|
|
5
|
+
import type { AgeDistribute, GenderDistribute } from 'src/api/check/alova/globals';
|
|
6
6
|
|
|
7
7
|
export class Metric {
|
|
8
|
-
static _default: typeof Metric
|
|
9
|
-
static builder(): IBuilder<unknown>{
|
|
8
|
+
static _default: typeof Metric;
|
|
9
|
+
static builder(): IBuilder<unknown> {
|
|
10
10
|
return Builder(this._default) as unknown as IBuilder<Metric>;
|
|
11
11
|
}
|
|
12
12
|
static default(): typeof Metric {
|
|
13
13
|
return this._default as unknown as typeof Metric;
|
|
14
14
|
}
|
|
15
15
|
// 科研相关统计
|
|
16
|
-
static getPatientTodayCount()
|
|
16
|
+
static getPatientTodayCount(): Promise<number> {
|
|
17
17
|
//表单格式的body,不是Json格式的
|
|
18
|
-
return Metric.default().getPatientTodayCount()
|
|
18
|
+
return Metric.default().getPatientTodayCount();
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
static getPatientTotalCount()
|
|
21
|
+
static getPatientTotalCount(): Promise<number> {
|
|
22
22
|
//表单格式的body,不是Json格式的
|
|
23
|
-
return Metric.default().getPatientTotalCount()
|
|
23
|
+
return Metric.default().getPatientTotalCount();
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
static getPatientDateDistribute(): Promise<DateDistribute[]> {
|
|
27
27
|
//表单格式的body,不是Json格式的
|
|
28
|
-
return Metric.default().getPatientDateDistribute()
|
|
28
|
+
return Metric.default().getPatientDateDistribute();
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
static getPatientAgeDistribute(): Promise<AgeDistribute[]> {
|
|
32
32
|
//表单格式的body,不是Json格式的
|
|
33
|
-
return Metric.default().getPatientAgeDistribute()
|
|
33
|
+
return Metric.default().getPatientAgeDistribute();
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
static getPatientGenderDistribute(): Promise<GenderDistribute[]> {
|
|
37
37
|
//表单格式的body,不是Json格式的
|
|
38
|
-
return Metric.default().getPatientGenderDistribute()
|
|
38
|
+
return Metric.default().getPatientGenderDistribute();
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
// 面象相关统计
|
|
42
42
|
static getMetaTodayCount(type: MetaType): Promise<number> {
|
|
43
43
|
//表单格式的body,不是Json格式的
|
|
44
|
-
return Metric.default().getMetaTodayCount(type)
|
|
44
|
+
return Metric.default().getMetaTodayCount(type);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
static getMetaTotalCount(type: MetaType): Promise<number> {
|
|
48
48
|
//表单格式的body,不是Json格式的
|
|
49
|
-
return Metric.default().getMetaTotalCount(type)
|
|
49
|
+
return Metric.default().getMetaTotalCount(type);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
static getMetaDateDistribute(type: MetaType): Promise<DateDistribute[]> {
|
|
53
53
|
//表单格式的body,不是Json格式的
|
|
54
|
-
return Metric.default().getMetaDateDistribute(type)
|
|
54
|
+
return Metric.default().getMetaDateDistribute(type);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
// 病例相关统计
|
|
58
58
|
static getCheckGenderDistribute(): Promise<GenderDistribute[]> {
|
|
59
59
|
//表单格式的body,不是Json格式的
|
|
60
|
-
return Metric.default().getCheckGenderDistribute()
|
|
60
|
+
return Metric.default().getCheckGenderDistribute();
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
static getCheckAgeDistribute(): Promise<AgeDistribute[]>
|
|
63
|
+
static getCheckAgeDistribute(): Promise<AgeDistribute[]> {
|
|
64
64
|
//表单格式的body,不是Json格式的
|
|
65
|
-
return Metric.default().getCheckAgeDistribute()
|
|
65
|
+
return Metric.default().getCheckAgeDistribute();
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
static getCheckTotalCount()
|
|
68
|
+
static getCheckTotalCount(): Promise<number> {
|
|
69
69
|
//表单格式的body,不是Json格式的
|
|
70
|
-
return Metric.default().getCheckTotalCount()
|
|
70
|
+
return Metric.default().getCheckTotalCount();
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
static getCheckDateDistribute(): Promise<DateDistribute[]>
|
|
73
|
+
static getCheckDateDistribute(): Promise<DateDistribute[]> {
|
|
74
74
|
//表单格式的body,不是Json格式的
|
|
75
|
-
return Metric.default().getCheckDateDistribute()
|
|
75
|
+
return Metric.default().getCheckDateDistribute();
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
static getCheckTodayCount()
|
|
78
|
+
static getCheckTodayCount(): Promise<number> {
|
|
79
79
|
//表单格式的body,不是Json格式的
|
|
80
|
-
return Metric.default().getCheckTodayCount()
|
|
80
|
+
return Metric.default().getCheckTodayCount();
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
// 医生相关统计
|
|
84
|
-
static getDoctorTotalCount()
|
|
84
|
+
static getDoctorTotalCount(): Promise<number> {
|
|
85
85
|
//表单格式的body,不是Json格式的
|
|
86
|
-
return Metric.default().getDoctorTotalCount()
|
|
86
|
+
return Metric.default().getDoctorTotalCount();
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
static getDoctorDateDistribute()
|
|
89
|
+
static getDoctorDateDistribute(): Promise<DateDistribute[]> {
|
|
90
90
|
//表单格式的body,不是Json格式的
|
|
91
|
-
return Metric.default().getDoctorDateDistribute()
|
|
91
|
+
return Metric.default().getDoctorDateDistribute();
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
static getDoctorTodayCount()
|
|
94
|
+
static getDoctorTodayCount(): Promise<number> {
|
|
95
95
|
//表单格式的body,不是Json格式的
|
|
96
|
-
return Metric.default().getDoctorTodayCount()
|
|
96
|
+
return Metric.default().getDoctorTodayCount();
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
// 排队相关统计
|
|
100
|
-
static getQueuerTotalCount()
|
|
100
|
+
static getQueuerTotalCount(): Promise<number> {
|
|
101
101
|
//表单格式的body,不是Json格式的
|
|
102
|
-
return Metric.default().getQueuerTotalCount()
|
|
102
|
+
return Metric.default().getQueuerTotalCount();
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
static getQueuerDateDistribute()
|
|
105
|
+
static getQueuerDateDistribute(): Promise<DateDistribute[]> {
|
|
106
106
|
//表单格式的body,不是Json格式的
|
|
107
|
-
return Metric.default().getQueuerDateDistribute()
|
|
107
|
+
return Metric.default().getQueuerDateDistribute();
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
static getQueuerTodayCount()
|
|
110
|
+
static getQueuerTodayCount(): Promise<number> {
|
|
111
111
|
//表单格式的body,不是Json格式的
|
|
112
|
-
return Metric.default().getQueuerTodayCount()
|
|
112
|
+
return Metric.default().getQueuerTodayCount();
|
|
113
113
|
}
|
|
114
114
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types='./globals.d.ts' />
|
|
2
2
|
/* tslint:disable */
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
/**
|
|
5
5
|
* OpenAPI definition - version v0
|
|
6
6
|
*
|
|
@@ -22,5 +22,5 @@ export default {
|
|
|
22
22
|
'phoneVerifyRestful.sendSMSCode': ['GET', '/互联/服务/电话/发送短信'],
|
|
23
23
|
'phoneVerifyRestful.authToken': ['GET', '/互联/服务/电话/令牌认证'],
|
|
24
24
|
'authorizationRestful.consent': ['GET', '/互联/服务/授权/许可'],
|
|
25
|
-
'authorizationRestful.getClientDescription': ['GET', '/互联/服务/授权/客户端介绍']
|
|
25
|
+
'authorizationRestful.getClientDescription': ['GET', '/互联/服务/授权/客户端介绍'],
|
|
26
26
|
};
|