web-core-tcm 0.0.30 → 0.0.34
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/dist/src/api/algorithm/alova/implement/comprehensiveAlgorithm.d.ts +7 -0
- package/dist/src/api/algorithm/alova/implement/comprehensiveAlgorithm.js +31 -0
- package/dist/src/api/algorithm/alova/implement/index.d.ts +5 -0
- package/dist/src/api/algorithm/alova/implement/inquiriesAlgorithm.d.ts +16 -0
- package/dist/src/api/algorithm/alova/implement/inquiriesAlgorithm.js +26 -0
- package/dist/src/api/algorithm/alova/implement/inspectionsAlgorithm.d.ts +5 -0
- package/dist/src/api/algorithm/alova/implement/inspectionsAlgorithm.js +21 -0
- package/dist/src/api/algorithm/alova/implement/lisemsAlgorithm.d.ts +5 -0
- package/dist/src/api/algorithm/alova/implement/lisemsAlgorithm.js +26 -0
- package/dist/src/api/algorithm/alova/implement/pulsationsAlgorithm.d.ts +7 -0
- package/dist/src/api/algorithm/alova/implement/pulsationsAlgorithm.js +19 -0
- package/dist/src/api/algorithm/alova/index.d.ts +6 -0
- package/dist/src/api/algorithm/alova/index.js +47 -0
- package/dist/src/api/algorithm/comprehensiveAlgorithm.d.ts +11 -4
- package/dist/src/api/algorithm/comprehensiveAlgorithm.js +26 -14
- package/dist/src/api/algorithm/index.d.ts +1 -5
- package/dist/src/api/algorithm/index.js +26 -60
- package/dist/src/api/algorithm/inquiriesAlgorithm.d.ts +20 -13
- package/dist/src/api/algorithm/inquiriesAlgorithm.js +27 -7
- package/dist/src/api/algorithm/inspectionsAlgorithm.d.ts +9 -2
- package/dist/src/api/algorithm/inspectionsAlgorithm.js +18 -8
- package/dist/src/api/algorithm/lisemsAlgorithm.d.ts +9 -2
- package/dist/src/api/algorithm/lisemsAlgorithm.js +16 -11
- package/dist/src/api/algorithm/pulsationsAlgorithm.d.ts +11 -4
- package/dist/src/api/algorithm/pulsationsAlgorithm.js +18 -6
- package/dist/src/api/check/alova/index.js +1 -1
- package/dist/src/api/check/check.d.ts +1 -1
- package/dist/src/api/check/check.js +1 -1
- package/dist/src/api/{patient → core}/core.d.ts +7 -2
- package/dist/src/api/{patient → core}/core.js +27 -17
- package/dist/src/api/doctor/alova/index.js +1 -1
- package/dist/src/api/doctor/doctor.d.ts +1 -1
- package/dist/src/api/doctor/doctor.js +1 -1
- package/dist/src/api/outpatient/alova/implement/outpatient.d.ts +1 -1
- package/dist/src/api/outpatient/alova/index.js +1 -1
- package/dist/src/api/outpatient/outpatient.d.ts +1 -1
- package/dist/src/api/outpatient/outpatient.js +1 -1
- package/dist/src/api/patient/alova/implement/meta.d.ts +1 -1
- package/dist/src/api/patient/alova/implement/meta.js +58 -58
- package/dist/src/api/patient/alova/implement/patient.d.ts +1 -1
- package/dist/src/api/patient/alova/index.js +8 -6
- package/dist/src/api/patient/index.d.ts +1 -1
- package/dist/src/api/patient/index.js +36 -35
- package/dist/src/api/patient/meta.d.ts +1 -1
- package/dist/src/api/patient/meta.js +1 -1
- package/dist/src/api/patient/patient.d.ts +1 -1
- package/dist/src/api/patient/patient.js +1 -1
- package/dist/src/api/prescription/alova/index.js +1 -1
- package/dist/src/api/prescription/herbal.d.ts +1 -1
- package/dist/src/api/prescription/herbal.js +1 -1
- package/dist/src/api/prescription/prescription.d.ts +1 -1
- package/dist/src/api/prescription/prescription.js +1 -1
- package/dist/src/api/scientist/alova/index.js +1 -1
- package/dist/src/api/scientist/scientist.d.ts +1 -1
- package/dist/src/api/scientist/scientist.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Patient } from '../patient/patient';
|
|
2
|
-
import { Page, Tag, NetworkObject, Sequence } from '../
|
|
2
|
+
import { Page, Tag, NetworkObject, Sequence } from '../core/core';
|
|
3
3
|
import { CheckState, PaymentState } from './alova/globals';
|
|
4
4
|
import { Metas } from '../patient/meta';
|
|
5
5
|
import { Prescription } from '../prescription/prescription';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Patient as S } from "../patient/patient.js";
|
|
2
|
-
import { NetworkObject as h, Sequence as m, Tag as y } from "../
|
|
2
|
+
import { NetworkObject as h, Sequence as m, Tag as y } from "../core/core.js";
|
|
3
3
|
import { Metas as n } from "../patient/meta.js";
|
|
4
4
|
import { Prescription as u } from "../prescription/prescription.js";
|
|
5
5
|
import { AlovaPrescription as g } from "../prescription/alova/implement/prescription.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnnotationState, TagState } from '
|
|
1
|
+
import { AnnotationState, TagState } from '../patient/alova/globals';
|
|
2
2
|
import { IBuilder } from 'builder-pattern';
|
|
3
3
|
export declare class Page<T> {
|
|
4
4
|
data: T[];
|
|
@@ -8,7 +8,12 @@ export declare class Page<T> {
|
|
|
8
8
|
pageCount: number;
|
|
9
9
|
isLastPage: boolean;
|
|
10
10
|
}
|
|
11
|
-
declare abstract class
|
|
11
|
+
export declare abstract class BaseObject {
|
|
12
|
+
static _default: typeof BaseObject;
|
|
13
|
+
static builder(): IBuilder<unknown>;
|
|
14
|
+
static default(): typeof BaseObject;
|
|
15
|
+
}
|
|
16
|
+
declare abstract class NetworkObject extends BaseObject {
|
|
12
17
|
static _default: typeof NetworkObject;
|
|
13
18
|
static builder(): IBuilder<unknown>;
|
|
14
19
|
static default(): typeof NetworkObject;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Builder as
|
|
2
|
-
class
|
|
1
|
+
import { Builder as n } from "../../../node_modules/builder-pattern/dist/index.js";
|
|
2
|
+
class f {
|
|
3
3
|
data = [];
|
|
4
4
|
total = 0;
|
|
5
5
|
page = 0;
|
|
@@ -7,21 +7,30 @@ class d {
|
|
|
7
7
|
pageCount = 0;
|
|
8
8
|
isLastPage = !1;
|
|
9
9
|
}
|
|
10
|
-
class
|
|
10
|
+
class i {
|
|
11
|
+
static _default = i;
|
|
12
|
+
static builder() {
|
|
13
|
+
return n(this._default);
|
|
14
|
+
}
|
|
15
|
+
static default() {
|
|
16
|
+
return i;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
class a extends i {
|
|
11
20
|
static _default = a;
|
|
12
21
|
static builder() {
|
|
13
|
-
return
|
|
22
|
+
return n(this._default);
|
|
14
23
|
}
|
|
15
24
|
static default() {
|
|
16
25
|
return a;
|
|
17
26
|
}
|
|
18
27
|
}
|
|
19
|
-
class
|
|
28
|
+
class o extends a {
|
|
20
29
|
value = "";
|
|
21
30
|
actor = "";
|
|
22
31
|
timestamp = "";
|
|
23
32
|
static builder() {
|
|
24
|
-
return
|
|
33
|
+
return n(o);
|
|
25
34
|
}
|
|
26
35
|
constructor(t = "", e = "", s = "") {
|
|
27
36
|
super(), this.value = t, this.actor = e, this.timestamp = s;
|
|
@@ -37,12 +46,12 @@ class r extends a {
|
|
|
37
46
|
};
|
|
38
47
|
}
|
|
39
48
|
}
|
|
40
|
-
class
|
|
49
|
+
class r extends a {
|
|
41
50
|
static builder() {
|
|
42
|
-
return
|
|
51
|
+
return n(r);
|
|
43
52
|
}
|
|
44
53
|
static default() {
|
|
45
|
-
return
|
|
54
|
+
return r;
|
|
46
55
|
}
|
|
47
56
|
key = "";
|
|
48
57
|
annotations = [];
|
|
@@ -52,7 +61,7 @@ class n extends a {
|
|
|
52
61
|
async of(t) {
|
|
53
62
|
this.key = t.key;
|
|
54
63
|
for (const e of t.annotationsState)
|
|
55
|
-
this.annotations.push(await new
|
|
64
|
+
this.annotations.push(await new o().of(e));
|
|
56
65
|
return this;
|
|
57
66
|
}
|
|
58
67
|
state() {
|
|
@@ -70,9 +79,9 @@ class n extends a {
|
|
|
70
79
|
static getValueTagSet(t) {
|
|
71
80
|
const e = [];
|
|
72
81
|
return t.forEach((s) => {
|
|
73
|
-
const
|
|
82
|
+
const c = s.key, l = s.getLastAnnotation().value.slice(0, 10);
|
|
74
83
|
e.find(
|
|
75
|
-
(
|
|
84
|
+
(u) => u.key == c && u.getLastAnnotation().value.slice(0, 10) == l
|
|
76
85
|
) || e.push(s);
|
|
77
86
|
}), e;
|
|
78
87
|
}
|
|
@@ -80,7 +89,7 @@ class n extends a {
|
|
|
80
89
|
return this.key = t.key, this.annotations = t.annotations, this;
|
|
81
90
|
}
|
|
82
91
|
}
|
|
83
|
-
class
|
|
92
|
+
class p {
|
|
84
93
|
data = [];
|
|
85
94
|
current = {};
|
|
86
95
|
showed = !1;
|
|
@@ -101,9 +110,10 @@ class f {
|
|
|
101
110
|
}
|
|
102
111
|
}
|
|
103
112
|
export {
|
|
104
|
-
|
|
113
|
+
o as Annotation,
|
|
114
|
+
i as BaseObject,
|
|
105
115
|
a as NetworkObject,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
116
|
+
f as Page,
|
|
117
|
+
p as Sequence,
|
|
118
|
+
r as Tag
|
|
109
119
|
};
|
|
@@ -3,7 +3,7 @@ import o from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
|
|
|
3
3
|
import { createApis as r, mountApis as t, withConfigType as p } from "./createApis.js";
|
|
4
4
|
import { responded as i, onAuthRequired as a } from "../../config/alova/index.js";
|
|
5
5
|
import { getServiceEndpoint as n, ServiceType as s } from "../../config/index.js";
|
|
6
|
-
import "../../
|
|
6
|
+
import "../../core/core.js";
|
|
7
7
|
const c = e({
|
|
8
8
|
baseURL: n(s.Doctor),
|
|
9
9
|
requestAdapter: o(),
|
|
@@ -3,7 +3,7 @@ import t from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
|
|
|
3
3
|
import { createApis as o, mountApis as r, withConfigType as p } from "./createApis.js";
|
|
4
4
|
import { responded as i, onAuthRequired as a } from "../../config/alova/index.js";
|
|
5
5
|
import { getServiceEndpoint as n, ServiceType as m } from "../../config/index.js";
|
|
6
|
-
import "../../
|
|
6
|
+
import "../../core/core.js";
|
|
7
7
|
import "../../../../node_modules/pinyin/lib/esm/pinyin.js";
|
|
8
8
|
const s = e({
|
|
9
9
|
baseURL: n(m.Outpatient),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NetworkObject as s } from "../
|
|
1
|
+
import { NetworkObject as s } from "../core/core.js";
|
|
2
2
|
import { Builder as m } from "../../../node_modules/builder-pattern/dist/index.js";
|
|
3
3
|
import { Patient as p } from "../patient/patient.js";
|
|
4
4
|
import { Doctor as o } from "../doctor/doctor.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MetaState } from '../globals';
|
|
2
2
|
import { AppendixMeta, ComplaintMeta, ECGMeta, FaceMeta, Meta, Metas, PCGMeta, PPGMeta, PulsationMeta, SceneMeta, TongueMeta } from '../../meta';
|
|
3
|
-
import { Page, Tag } from '
|
|
3
|
+
import { Page, Tag } from '../../../core/core';
|
|
4
4
|
import { Patient } from '../../patient';
|
|
5
5
|
export declare class AlovaMeta extends Meta {
|
|
6
6
|
deserialize(): Promise<this>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Meta as
|
|
2
|
-
import { Tag as
|
|
3
|
-
import {
|
|
4
|
-
import { base64ToArrayBuffer as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
class
|
|
1
|
+
import { Meta as G, TongueMeta as R, FaceMeta as L, SceneMeta as q, PulsationMeta as B, PPGMeta as k, PCGMeta as D, ECGMeta as F, AppendixMeta as T, ComplaintMeta as W, Metas as H, MetaType as n } from "../../meta.js";
|
|
2
|
+
import { Tag as J, Annotation as K } from "../../../core/core.js";
|
|
3
|
+
import { InspectionsAlgorithm as C } from "../../../algorithm/inspectionsAlgorithm.js";
|
|
4
|
+
import { base64ToArrayBuffer as O } from "../../../../util/image.js";
|
|
5
|
+
import { PulsationsAlgorithm as x } from "../../../algorithm/pulsationsAlgorithm.js";
|
|
6
|
+
import { LisemsAlgorithm as z } from "../../../algorithm/lisemsAlgorithm.js";
|
|
7
|
+
class Q extends G {
|
|
8
8
|
deserialize() {
|
|
9
9
|
return Promise.resolve(this);
|
|
10
10
|
}
|
|
@@ -32,8 +32,8 @@ class V extends E {
|
|
|
32
32
|
analyze() {
|
|
33
33
|
throw new Error("Method not implemented.");
|
|
34
34
|
}
|
|
35
|
-
static queryMetaWithPatient(t, e, a, o, h,
|
|
36
|
-
const b =
|
|
35
|
+
static queryMetaWithPatient(t, e, a, o, h, y, w, d, r, i, m, P, I) {
|
|
36
|
+
const b = I?.map((g) => g.state()), A = a?.state();
|
|
37
37
|
return patientApi.metaStateRestful.queryMetaAndPatientState({
|
|
38
38
|
data: {
|
|
39
39
|
...A && { ownerState: A },
|
|
@@ -41,9 +41,9 @@ class V extends E {
|
|
|
41
41
|
page: t,
|
|
42
42
|
pageSize: e,
|
|
43
43
|
...h && { startTime: h },
|
|
44
|
-
...
|
|
44
|
+
...y && { endTime: y },
|
|
45
45
|
...w && { sort: w },
|
|
46
|
-
...
|
|
46
|
+
...d && { patientName: d },
|
|
47
47
|
...r && { patientPhoneNumber: r },
|
|
48
48
|
...i && { patientStartBirthdate: i },
|
|
49
49
|
...m && { patientEndBirthdate: m },
|
|
@@ -52,8 +52,8 @@ class V extends E {
|
|
|
52
52
|
},
|
|
53
53
|
async transform(g) {
|
|
54
54
|
const S = [];
|
|
55
|
-
for (const
|
|
56
|
-
S.push(await M.map(
|
|
55
|
+
for (const E of g.content)
|
|
56
|
+
S.push(await M.map(E));
|
|
57
57
|
return {
|
|
58
58
|
data: S,
|
|
59
59
|
total: g.totalElements,
|
|
@@ -65,14 +65,14 @@ class V extends E {
|
|
|
65
65
|
}
|
|
66
66
|
}).send();
|
|
67
67
|
}
|
|
68
|
-
static query(t, e, a, o, h,
|
|
69
|
-
const
|
|
68
|
+
static query(t, e, a, o, h, y, w) {
|
|
69
|
+
const d = a?.state();
|
|
70
70
|
return patientApi.metaStateRestful.queryMetaState({
|
|
71
71
|
data: {
|
|
72
|
-
...
|
|
72
|
+
...d && { ownerState: d },
|
|
73
73
|
...o && { type: o },
|
|
74
74
|
...h && { startTime: h },
|
|
75
|
-
...
|
|
75
|
+
...y && { endTime: y },
|
|
76
76
|
...w && { sort: w },
|
|
77
77
|
page: t,
|
|
78
78
|
pageSize: e
|
|
@@ -92,7 +92,7 @@ class V extends E {
|
|
|
92
92
|
}
|
|
93
93
|
}).send();
|
|
94
94
|
}
|
|
95
|
-
static queryMetaStateByExactMatch(t, e, a, o, h,
|
|
95
|
+
static queryMetaStateByExactMatch(t, e, a, o, h, y, w, d) {
|
|
96
96
|
const r = e?.map((i) => i.state());
|
|
97
97
|
return patientApi.metaStateRestful.queryMetaStateByExactMatch({
|
|
98
98
|
data: {
|
|
@@ -101,9 +101,9 @@ class V extends E {
|
|
|
101
101
|
...a && { type: a },
|
|
102
102
|
...o && { pageSize: o },
|
|
103
103
|
...h && { page: h },
|
|
104
|
-
...
|
|
104
|
+
...y && { startTime: y },
|
|
105
105
|
...w && { endTime: w },
|
|
106
|
-
...
|
|
106
|
+
...d && { sort: d }
|
|
107
107
|
},
|
|
108
108
|
async transform(i) {
|
|
109
109
|
const m = [];
|
|
@@ -157,11 +157,11 @@ const p = (s, t, e) => patientApi.metaStateRestful.postMetaState({
|
|
|
157
157
|
const e = [], a = Date.now().toString();
|
|
158
158
|
return Object.entries(s).forEach(([o, h]) => {
|
|
159
159
|
e.push(
|
|
160
|
-
|
|
160
|
+
J.builder().key(o).annotations([K.builder().value(h).actor(t).timestamp(a).build()]).build()
|
|
161
161
|
);
|
|
162
162
|
}), e;
|
|
163
163
|
};
|
|
164
|
-
class
|
|
164
|
+
class U extends R {
|
|
165
165
|
async getObject() {
|
|
166
166
|
return this.base64Image ? Promise.resolve(this.base64Image) : this.deserialize(await f(this.id));
|
|
167
167
|
}
|
|
@@ -180,10 +180,10 @@ class X extends I {
|
|
|
180
180
|
async analyze(t = !1) {
|
|
181
181
|
t && (this.tags = []);
|
|
182
182
|
const e = new FormData();
|
|
183
|
-
return e.append("files", new Blob([
|
|
183
|
+
return e.append("files", new Blob([O(this.base64Image)])), this.tags.push(...v(await C.tongueAnalyze(e), "算法")), Promise.resolve(this);
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
class
|
|
186
|
+
class V extends L {
|
|
187
187
|
async getObject() {
|
|
188
188
|
return this.base64Image ? Promise.resolve(this.base64Image) : this.deserialize(await f(this.id));
|
|
189
189
|
}
|
|
@@ -202,10 +202,10 @@ class Y extends G {
|
|
|
202
202
|
async analyze(t = !1) {
|
|
203
203
|
t && (this.tags = []);
|
|
204
204
|
const e = new FormData();
|
|
205
|
-
return e.append("files", new Blob([
|
|
205
|
+
return e.append("files", new Blob([O(this.base64Image)])), this.tags.push(...v(await C.faceAnalyze(e), "算法")), Promise.resolve(this);
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
class
|
|
208
|
+
class X extends q {
|
|
209
209
|
async getObject() {
|
|
210
210
|
return this.base64Image ? Promise.resolve(this.base64Image) : this.deserialize(await f(this.id));
|
|
211
211
|
}
|
|
@@ -225,7 +225,7 @@ class Z extends R {
|
|
|
225
225
|
return t && (this.tags = []), Promise.resolve(this);
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
|
-
class
|
|
228
|
+
class Y extends B {
|
|
229
229
|
async getObject() {
|
|
230
230
|
return this.waves ? Promise.resolve(this.waves) : this.deserialize(await f(this.id));
|
|
231
231
|
}
|
|
@@ -246,13 +246,13 @@ class _ extends q {
|
|
|
246
246
|
const e = {};
|
|
247
247
|
for (const a in this.waves?.origin)
|
|
248
248
|
e[a] = this.waves.origin[a].values;
|
|
249
|
-
return this.tags.push(...v(await
|
|
249
|
+
return this.tags.push(...v(await x.pulsationAnalysis(e), "算法")), Promise.resolve(this);
|
|
250
250
|
}
|
|
251
251
|
preprocess(t) {
|
|
252
|
-
return
|
|
252
|
+
return x.pulsationPreprocessing(t);
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
-
class
|
|
255
|
+
class Z extends k {
|
|
256
256
|
async getObject() {
|
|
257
257
|
return this.waves ? Promise.resolve(this.waves) : this.deserialize(await f(this.id));
|
|
258
258
|
}
|
|
@@ -273,13 +273,13 @@ class $ extends B {
|
|
|
273
273
|
const e = {};
|
|
274
274
|
for (const a in this.waves?.origin)
|
|
275
275
|
e[a] = this.waves.origin[a].values;
|
|
276
|
-
return this.tags.push(...v(await z(e)
|
|
276
|
+
return this.tags.push(...v(await z.analysisLisems(e), "算法")), Promise.resolve(this);
|
|
277
277
|
}
|
|
278
278
|
preprocess(t) {
|
|
279
279
|
return Promise.resolve(t);
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
|
-
class
|
|
282
|
+
class _ extends D {
|
|
283
283
|
async getObject() {
|
|
284
284
|
return this.waves ? Promise.resolve(this.waves) : this.deserialize(await f(this.id));
|
|
285
285
|
}
|
|
@@ -300,13 +300,13 @@ class j extends k {
|
|
|
300
300
|
const e = {};
|
|
301
301
|
for (const a in this.waves?.origin)
|
|
302
302
|
e[a] = this.waves.origin[a].values;
|
|
303
|
-
return this.tags.push(...v(await z(e)
|
|
303
|
+
return this.tags.push(...v(await z.analysisLisems(e), "算法")), Promise.resolve(this);
|
|
304
304
|
}
|
|
305
305
|
preprocess(t) {
|
|
306
306
|
return Promise.resolve(t);
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
|
-
class
|
|
309
|
+
class $ extends F {
|
|
310
310
|
async getObject() {
|
|
311
311
|
return this.waves ? Promise.resolve(this.waves) : this.deserialize(await f(this.id));
|
|
312
312
|
}
|
|
@@ -327,13 +327,13 @@ class N extends D {
|
|
|
327
327
|
const e = {};
|
|
328
328
|
for (const a in this.waves?.origin)
|
|
329
329
|
e[a] = this.waves.origin[a].values;
|
|
330
|
-
return this.tags.push(...v(await z(e)
|
|
330
|
+
return this.tags.push(...v(await z.analysisLisems(e), "算法")), Promise.resolve(this);
|
|
331
331
|
}
|
|
332
332
|
preprocess(t) {
|
|
333
333
|
return Promise.resolve(t);
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
|
-
class
|
|
336
|
+
class j extends T {
|
|
337
337
|
async getObject() {
|
|
338
338
|
return this.base64Images.length ? Promise.resolve(this.base64Images) : this.deserialize(await f(this.id));
|
|
339
339
|
}
|
|
@@ -353,7 +353,7 @@ class tt extends F {
|
|
|
353
353
|
return t && (this.tags = []), Promise.resolve(this);
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
|
-
class
|
|
356
|
+
class N extends W {
|
|
357
357
|
async getObject() {
|
|
358
358
|
return this.text ? Promise.resolve(this.text) : this.deserialize(await f(this.id));
|
|
359
359
|
}
|
|
@@ -373,32 +373,32 @@ class et extends L {
|
|
|
373
373
|
return t && (this.tags = []), Promise.resolve(this);
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
|
-
class M extends
|
|
376
|
+
class M extends H {
|
|
377
377
|
static map(t) {
|
|
378
378
|
const e = n[t.type];
|
|
379
|
-
if (e == n.Pulsation) return new
|
|
380
|
-
if (e == n.Tongue) return new
|
|
381
|
-
if (e == n.Complaint) return new
|
|
382
|
-
if (e == n.Face) return new
|
|
383
|
-
if (e == n.Appendix) return new
|
|
384
|
-
if (e == n.ECG) return new
|
|
385
|
-
if (e == n.PCG) return new
|
|
386
|
-
if (e == n.Scene) return new
|
|
387
|
-
if (e == n.PPG) return new
|
|
388
|
-
if (e == n.Meta) return new
|
|
379
|
+
if (e == n.Pulsation) return new Y().of(t);
|
|
380
|
+
if (e == n.Tongue) return new U().of(t);
|
|
381
|
+
if (e == n.Complaint) return new N().of(t);
|
|
382
|
+
if (e == n.Face) return new V().of(t);
|
|
383
|
+
if (e == n.Appendix) return new j().of(t);
|
|
384
|
+
if (e == n.ECG) return new $().of(t);
|
|
385
|
+
if (e == n.PCG) return new _().of(t);
|
|
386
|
+
if (e == n.Scene) return new X().of(t);
|
|
387
|
+
if (e == n.PPG) return new Z().of(t);
|
|
388
|
+
if (e == n.Meta) return new Q().of(t);
|
|
389
389
|
throw new Error("未知的Meta类型");
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
392
|
export {
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
393
|
+
j as AlovaAppendixMeta,
|
|
394
|
+
N as AlovaComplaintMeta,
|
|
395
|
+
$ as AlovaECGMeta,
|
|
396
|
+
V as AlovaFaceMeta,
|
|
397
|
+
Q as AlovaMeta,
|
|
398
398
|
M as AlovaMetas,
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
399
|
+
_ as AlovaPCGMeta,
|
|
400
|
+
Z as AlovaPPGMeta,
|
|
401
|
+
Y as AlovaPulsationMeta,
|
|
402
|
+
X as AlovaSceneMeta,
|
|
403
|
+
U as AlovaTongueMeta
|
|
404
404
|
};
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { createAlova as e } from "../../../../node_modules/alova/dist/alova.esm.js";
|
|
2
2
|
import t from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
|
|
3
3
|
import { createApis as o, mountApis as r, withConfigType as i } from "./createApis.js";
|
|
4
|
-
import { responded as p, onAuthRequired as
|
|
5
|
-
import { getServiceEndpoint as
|
|
6
|
-
import "
|
|
4
|
+
import { responded as p, onAuthRequired as m } from "../../config/alova/index.js";
|
|
5
|
+
import { getServiceEndpoint as a, ServiceType as n } from "../../config/index.js";
|
|
6
|
+
import "../../core/core.js";
|
|
7
7
|
import "../../../../node_modules/pinyin/lib/esm/pinyin.js";
|
|
8
|
-
import "../../algorithm/
|
|
8
|
+
import "../../algorithm/inspectionsAlgorithm.js";
|
|
9
|
+
import "../../algorithm/pulsationsAlgorithm.js";
|
|
10
|
+
import "../../algorithm/lisemsAlgorithm.js";
|
|
9
11
|
const s = e({
|
|
10
|
-
baseURL:
|
|
12
|
+
baseURL: a(n.Patient),
|
|
11
13
|
requestAdapter: t(),
|
|
12
|
-
beforeRequest:
|
|
14
|
+
beforeRequest: m(() => {
|
|
13
15
|
}),
|
|
14
16
|
cacheFor: null,
|
|
15
17
|
responded: p
|
|
@@ -1,46 +1,47 @@
|
|
|
1
|
-
import { Annotation as t,
|
|
2
|
-
import { AppendixMeta as
|
|
3
|
-
import { Patient as
|
|
4
|
-
import { $$userConfigMap as
|
|
5
|
-
import { AlovaAppendixMeta as
|
|
6
|
-
import { AlovaPatient as
|
|
1
|
+
import { Annotation as t, BaseObject as o, NetworkObject as M, Page as n, Sequence as l, Tag as p } from "../core/core.js";
|
|
2
|
+
import { AppendixMeta as r, ComplaintMeta as v, ECGMeta as i, FaceMeta as P, ImageMeta as m, ImagesMeta as c, Meta as s, MetaSequence as x, MetaType as f, MetaTypeConfig as g, Metas as C, PCGMeta as u, PPGMeta as G, PulsationMeta as T, SceneMeta as S, TextMeta as I, TongueMeta as b, WavesMeta as d } from "./meta.js";
|
|
3
|
+
import { Patient as q } from "./patient.js";
|
|
4
|
+
import { $$userConfigMap as E, alovaInstance as F } from "./alova/index.js";
|
|
5
|
+
import { AlovaAppendixMeta as $, AlovaComplaintMeta as k, AlovaECGMeta as w, AlovaFaceMeta as B, AlovaMeta as N, AlovaMetas as W, AlovaPCGMeta as h, AlovaPPGMeta as z, AlovaPulsationMeta as D, AlovaSceneMeta as H, AlovaTongueMeta as J } from "./alova/implement/meta.js";
|
|
6
|
+
import { AlovaPatient as L } from "./alova/implement/patient.js";
|
|
7
7
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
E as $$userConfigMap,
|
|
9
|
+
$ as AlovaAppendixMeta,
|
|
10
10
|
k as AlovaComplaintMeta,
|
|
11
11
|
w as AlovaECGMeta,
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
B as AlovaFaceMeta,
|
|
13
|
+
N as AlovaMeta,
|
|
14
14
|
W as AlovaMetas,
|
|
15
15
|
h as AlovaPCGMeta,
|
|
16
16
|
z as AlovaPPGMeta,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
L as AlovaPatient,
|
|
18
|
+
D as AlovaPulsationMeta,
|
|
19
|
+
H as AlovaSceneMeta,
|
|
20
|
+
J as AlovaTongueMeta,
|
|
21
21
|
t as Annotation,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
v as
|
|
25
|
-
i as
|
|
26
|
-
P as
|
|
27
|
-
m as
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
r as AppendixMeta,
|
|
23
|
+
o as BaseObject,
|
|
24
|
+
v as ComplaintMeta,
|
|
25
|
+
i as ECGMeta,
|
|
26
|
+
P as FaceMeta,
|
|
27
|
+
m as ImageMeta,
|
|
28
|
+
c as ImagesMeta,
|
|
29
|
+
s as Meta,
|
|
30
|
+
x as MetaSequence,
|
|
30
31
|
f as MetaType,
|
|
31
32
|
g as MetaTypeConfig,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
33
|
+
C as Metas,
|
|
34
|
+
M as NetworkObject,
|
|
35
|
+
u as PCGMeta,
|
|
36
|
+
G as PPGMeta,
|
|
37
|
+
n as Page,
|
|
38
|
+
q as Patient,
|
|
39
|
+
T as PulsationMeta,
|
|
40
|
+
S as SceneMeta,
|
|
41
|
+
l as Sequence,
|
|
42
|
+
p as Tag,
|
|
43
|
+
I as TextMeta,
|
|
44
|
+
b as TongueMeta,
|
|
44
45
|
d as WavesMeta,
|
|
45
|
-
|
|
46
|
+
F as alovaInstance
|
|
46
47
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Page, Sequence, Tag, NetworkObject } from '
|
|
1
|
+
import { Page, Sequence, Tag, NetworkObject } from '../core/core';
|
|
2
2
|
import { WaveMap } from '../../proto/types/WaveMap_pb';
|
|
3
3
|
import { MetaState } from './alova/globals';
|
|
4
4
|
import { Image, Images } from '../../proto/types/Images_pb';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NetworkObject as B, Tag as E, Sequence as C } from "
|
|
1
|
+
import { NetworkObject as B, Tag as E, Sequence as C } from "../core/core.js";
|
|
2
2
|
import { arrayBufferToImageBase64 as w } from "../../util/image.js";
|
|
3
3
|
import { WaveMapSchema as h, WaveSchema as q } from "../../proto/types/WaveMap_pb.js";
|
|
4
4
|
import { ImageSchema as g, ImagesSchema as P } from "../../proto/types/Images_pb.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NetworkObject as e, Tag as a } from "
|
|
1
|
+
import { NetworkObject as e, Tag as a } from "../core/core.js";
|
|
2
2
|
import { Metas as d } from "./meta.js";
|
|
3
3
|
import { Builder as m } from "../../../node_modules/builder-pattern/dist/index.js";
|
|
4
4
|
import { getName as r } from "../../util/string.js";
|
|
@@ -3,7 +3,7 @@ import o from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
|
|
|
3
3
|
import { createApis as r, mountApis as t, withConfigType as i } from "./createApis.js";
|
|
4
4
|
import { responded as p, onAuthRequired as a } from "../../config/alova/index.js";
|
|
5
5
|
import { getServiceEndpoint as n, ServiceType as s } from "../../config/index.js";
|
|
6
|
-
import "../../
|
|
6
|
+
import "../../core/core.js";
|
|
7
7
|
const c = e({
|
|
8
8
|
baseURL: n(s.Prescription),
|
|
9
9
|
requestAdapter: o(),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NetworkObject as u } from "../
|
|
1
|
+
import { NetworkObject as u } from "../core/core.js";
|
|
2
2
|
import { Builder as f } from "../../../node_modules/builder-pattern/dist/index.js";
|
|
3
3
|
import { Doctor as t } from "../doctor/doctor.js";
|
|
4
4
|
class e extends u {
|