web-core-tcm 0.0.30 → 0.0.35

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.
Files changed (56) hide show
  1. package/dist/src/api/algorithm/alova/implement/comprehensiveAlgorithm.d.ts +7 -0
  2. package/dist/src/api/algorithm/alova/implement/comprehensiveAlgorithm.js +31 -0
  3. package/dist/src/api/algorithm/alova/implement/index.d.ts +5 -0
  4. package/dist/src/api/algorithm/alova/implement/inquiriesAlgorithm.d.ts +16 -0
  5. package/dist/src/api/algorithm/alova/implement/inquiriesAlgorithm.js +26 -0
  6. package/dist/src/api/algorithm/alova/implement/inspectionsAlgorithm.d.ts +5 -0
  7. package/dist/src/api/algorithm/alova/implement/inspectionsAlgorithm.js +21 -0
  8. package/dist/src/api/algorithm/alova/implement/lisemsAlgorithm.d.ts +5 -0
  9. package/dist/src/api/algorithm/alova/implement/lisemsAlgorithm.js +26 -0
  10. package/dist/src/api/algorithm/alova/implement/pulsationsAlgorithm.d.ts +7 -0
  11. package/dist/src/api/algorithm/alova/implement/pulsationsAlgorithm.js +19 -0
  12. package/dist/src/api/algorithm/alova/index.d.ts +6 -0
  13. package/dist/src/api/algorithm/alova/index.js +47 -0
  14. package/dist/src/api/algorithm/comprehensiveAlgorithm.d.ts +11 -4
  15. package/dist/src/api/algorithm/comprehensiveAlgorithm.js +26 -14
  16. package/dist/src/api/algorithm/index.d.ts +1 -5
  17. package/dist/src/api/algorithm/index.js +26 -60
  18. package/dist/src/api/algorithm/inquiriesAlgorithm.d.ts +20 -13
  19. package/dist/src/api/algorithm/inquiriesAlgorithm.js +27 -7
  20. package/dist/src/api/algorithm/inspectionsAlgorithm.d.ts +9 -2
  21. package/dist/src/api/algorithm/inspectionsAlgorithm.js +18 -8
  22. package/dist/src/api/algorithm/lisemsAlgorithm.d.ts +9 -2
  23. package/dist/src/api/algorithm/lisemsAlgorithm.js +16 -11
  24. package/dist/src/api/algorithm/pulsationsAlgorithm.d.ts +11 -4
  25. package/dist/src/api/algorithm/pulsationsAlgorithm.js +18 -6
  26. package/dist/src/api/check/alova/index.js +1 -1
  27. package/dist/src/api/check/check.d.ts +1 -1
  28. package/dist/src/api/check/check.js +1 -1
  29. package/dist/src/api/{patient → core}/core.d.ts +7 -2
  30. package/dist/src/api/{patient → core}/core.js +27 -17
  31. package/dist/src/api/doctor/alova/index.js +1 -1
  32. package/dist/src/api/doctor/doctor.d.ts +1 -1
  33. package/dist/src/api/doctor/doctor.js +1 -1
  34. package/dist/src/api/outpatient/alova/implement/outpatient.d.ts +1 -1
  35. package/dist/src/api/outpatient/alova/index.js +1 -1
  36. package/dist/src/api/outpatient/outpatient.d.ts +1 -1
  37. package/dist/src/api/outpatient/outpatient.js +1 -1
  38. package/dist/src/api/patient/alova/implement/meta.d.ts +1 -1
  39. package/dist/src/api/patient/alova/implement/meta.js +58 -58
  40. package/dist/src/api/patient/alova/implement/patient.d.ts +1 -1
  41. package/dist/src/api/patient/alova/index.js +8 -6
  42. package/dist/src/api/patient/index.d.ts +1 -1
  43. package/dist/src/api/patient/index.js +36 -35
  44. package/dist/src/api/patient/meta.d.ts +1 -1
  45. package/dist/src/api/patient/meta.js +1 -1
  46. package/dist/src/api/patient/patient.d.ts +1 -1
  47. package/dist/src/api/patient/patient.js +1 -1
  48. package/dist/src/api/prescription/alova/index.js +1 -1
  49. package/dist/src/api/prescription/herbal.d.ts +1 -1
  50. package/dist/src/api/prescription/herbal.js +1 -1
  51. package/dist/src/api/prescription/prescription.d.ts +1 -1
  52. package/dist/src/api/prescription/prescription.js +1 -1
  53. package/dist/src/api/scientist/alova/index.js +1 -1
  54. package/dist/src/api/scientist/scientist.d.ts +1 -1
  55. package/dist/src/api/scientist/scientist.js +1 -1
  56. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  import { Patient } from '../patient/patient';
2
- import { Page, Tag, NetworkObject, Sequence } from '../patient/core';
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 "../patient/core.js";
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 './alova/globals';
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 NetworkObject {
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 i } from "../../../node_modules/builder-pattern/dist/index.js";
2
- class d {
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 a {
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 i(this._default);
22
+ return n(this._default);
14
23
  }
15
24
  static default() {
16
25
  return a;
17
26
  }
18
27
  }
19
- class r extends a {
28
+ class o extends a {
20
29
  value = "";
21
30
  actor = "";
22
31
  timestamp = "";
23
32
  static builder() {
24
- return i(r);
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 n extends a {
49
+ class r extends a {
41
50
  static builder() {
42
- return i(n);
51
+ return n(r);
43
52
  }
44
53
  static default() {
45
- return n;
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 r().of(e));
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 h = s.key, c = s.getLastAnnotation().value.slice(0, 10);
82
+ const c = s.key, l = s.getLastAnnotation().value.slice(0, 10);
74
83
  e.find(
75
- (o) => o.key == h && o.getLastAnnotation().value.slice(0, 10) == c
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 f {
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
- r as Annotation,
113
+ o as Annotation,
114
+ i as BaseObject,
105
115
  a as NetworkObject,
106
- d as Page,
107
- f as Sequence,
108
- n as Tag
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 "../../patient/core.js";
6
+ import "../../core/core.js";
7
7
  const c = e({
8
8
  baseURL: n(s.Doctor),
9
9
  requestAdapter: o(),
@@ -1,4 +1,4 @@
1
- import { NetworkObject } from '../patient/core';
1
+ import { NetworkObject } from '../core/core';
2
2
  import { DoctorState } from './alova/globals';
3
3
  import { IBuilder } from 'builder-pattern';
4
4
  export declare abstract class Doctor extends NetworkObject {
@@ -1,4 +1,4 @@
1
- import { NetworkObject as t } from "../patient/core.js";
1
+ import { NetworkObject as t } from "../core/core.js";
2
2
  import { Builder as i } from "../../../node_modules/builder-pattern/dist/index.js";
3
3
  class a extends t {
4
4
  static builder() {
@@ -1,5 +1,5 @@
1
1
  import { Queuer } from '../../outpatient';
2
- import { Page } from '../../../patient/core';
2
+ import { Page } from '../../../core/core';
3
3
  export declare class AlovaQueuer extends Queuer {
4
4
  get(): Promise<this>;
5
5
  put(): Promise<this>;
@@ -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 "../../patient/core.js";
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 { Page, NetworkObject } from '../patient/core';
1
+ import { Page, NetworkObject } from '../core/core';
2
2
  import { QueuerState } from './alova/globals';
3
3
  import { IBuilder } from 'builder-pattern';
4
4
  import { Patient } from '../patient/patient';
@@ -1,4 +1,4 @@
1
- import { NetworkObject as s } from "../patient/core.js";
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 '../../core';
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 E, TongueMeta as I, FaceMeta as G, SceneMeta as R, PulsationMeta as q, PPGMeta as B, PCGMeta as k, ECGMeta as D, AppendixMeta as F, ComplaintMeta as L, Metas as T, MetaType as n } from "../../meta.js";
2
- import { Tag as W, Annotation as H } from "../../core.js";
3
- import { tongueAnalyze as J, faceAnalyze as K } from "../../../algorithm/inspectionsAlgorithm.js";
4
- import { base64ToArrayBuffer as x } from "../../../../util/image.js";
5
- import { pulsationAnalysis as Q, pulsationPreprocessing as U } from "../../../algorithm/pulsationsAlgorithm.js";
6
- import { analysisLisems as z } from "../../../algorithm/lisemsAlgorithm.js";
7
- class V extends E {
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, d, w, y, r, i, m, P, C) {
36
- const b = C?.map((g) => g.state()), A = a?.state();
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
- ...d && { endTime: d },
44
+ ...y && { endTime: y },
45
45
  ...w && { sort: w },
46
- ...y && { patientName: y },
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 O of g.content)
56
- S.push(await M.map(O));
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, d, w) {
69
- const y = a?.state();
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
- ...y && { ownerState: y },
72
+ ...d && { ownerState: d },
73
73
  ...o && { type: o },
74
74
  ...h && { startTime: h },
75
- ...d && { endTime: d },
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, d, w, y) {
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
- ...d && { startTime: d },
104
+ ...y && { startTime: y },
105
105
  ...w && { endTime: w },
106
- ...y && { sort: y }
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
- W.builder().key(o).annotations([H.builder().value(h).actor(t).timestamp(a).build()]).build()
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 X extends I {
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([x(this.base64Image)])), this.tags.push(...v(await J(e).send(), "算法")), Promise.resolve(this);
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 Y extends G {
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([x(this.base64Image)])), this.tags.push(...v(await K(e).send(), "算法")), Promise.resolve(this);
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 Z extends R {
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 _ extends q {
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 Q(e).send(), "算法")), Promise.resolve(this);
249
+ return this.tags.push(...v(await x.pulsationAnalysis(e), "算法")), Promise.resolve(this);
250
250
  }
251
251
  preprocess(t) {
252
- return U(t);
252
+ return x.pulsationPreprocessing(t);
253
253
  }
254
254
  }
255
- class $ extends B {
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).send(), "算法")), Promise.resolve(this);
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 j extends k {
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).send(), "算法")), Promise.resolve(this);
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 N extends D {
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).send(), "算法")), Promise.resolve(this);
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 tt extends F {
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 et extends L {
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 T {
376
+ class M extends H {
377
377
  static map(t) {
378
378
  const e = n[t.type];
379
- if (e == n.Pulsation) return new _().of(t);
380
- if (e == n.Tongue) return new X().of(t);
381
- if (e == n.Complaint) return new et().of(t);
382
- if (e == n.Face) return new Y().of(t);
383
- if (e == n.Appendix) return new tt().of(t);
384
- if (e == n.ECG) return new N().of(t);
385
- if (e == n.PCG) return new j().of(t);
386
- if (e == n.Scene) return new Z().of(t);
387
- if (e == n.PPG) return new $().of(t);
388
- if (e == n.Meta) return new V().of(t);
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
- tt as AlovaAppendixMeta,
394
- et as AlovaComplaintMeta,
395
- N as AlovaECGMeta,
396
- Y as AlovaFaceMeta,
397
- V as AlovaMeta,
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
- j as AlovaPCGMeta,
400
- $ as AlovaPPGMeta,
401
- _ as AlovaPulsationMeta,
402
- Z as AlovaSceneMeta,
403
- X as AlovaTongueMeta
399
+ _ as AlovaPCGMeta,
400
+ Z as AlovaPPGMeta,
401
+ Y as AlovaPulsationMeta,
402
+ X as AlovaSceneMeta,
403
+ U as AlovaTongueMeta
404
404
  };
@@ -1,5 +1,5 @@
1
1
  import { Patient } from '../../patient';
2
- import { Page } from '../../core';
2
+ import { Page } from '../../../core/core';
3
3
  export declare class AlovaPatient extends Patient {
4
4
  get(): Promise<this>;
5
5
  put(): Promise<this>;
@@ -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 a } from "../../config/alova/index.js";
5
- import { getServiceEndpoint as m, ServiceType as n } from "../../config/index.js";
6
- import "../core.js";
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/index.js";
8
+ import "../../algorithm/inspectionsAlgorithm.js";
9
+ import "../../algorithm/pulsationsAlgorithm.js";
10
+ import "../../algorithm/lisemsAlgorithm.js";
9
11
  const s = e({
10
- baseURL: m(n.Patient),
12
+ baseURL: a(n.Patient),
11
13
  requestAdapter: t(),
12
- beforeRequest: a(() => {
14
+ beforeRequest: m(() => {
13
15
  }),
14
16
  cacheFor: null,
15
17
  responded: p
@@ -1,4 +1,4 @@
1
- export * from './core';
1
+ export * from '../core/core';
2
2
  export * from './meta';
3
3
  export * from './patient';
4
4
  export * from './alova';
@@ -1,46 +1,47 @@
1
- import { Annotation as t, NetworkObject as o, Page as M, Sequence as n, Tag as l } from "./core.js";
2
- import { AppendixMeta as A, ComplaintMeta as r, ECGMeta as v, FaceMeta as i, ImageMeta as P, ImagesMeta as m, Meta as x, MetaSequence as c, MetaType as f, MetaTypeConfig as g, Metas as s, PCGMeta as C, PPGMeta as u, PulsationMeta as G, SceneMeta as T, TextMeta as S, TongueMeta as I, WavesMeta as d } from "./meta.js";
3
- import { Patient as y } from "./patient.js";
4
- import { $$userConfigMap as F, alovaInstance as $ } from "./alova/index.js";
5
- import { AlovaAppendixMeta as j, AlovaComplaintMeta as k, AlovaECGMeta as w, AlovaFaceMeta as N, AlovaMeta as O, AlovaMetas as W, AlovaPCGMeta as h, AlovaPPGMeta as z, AlovaPulsationMeta as B, AlovaSceneMeta as D, AlovaTongueMeta as H } from "./alova/implement/meta.js";
6
- import { AlovaPatient as K } from "./alova/implement/patient.js";
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
- F as $$userConfigMap,
9
- j as AlovaAppendixMeta,
8
+ E as $$userConfigMap,
9
+ $ as AlovaAppendixMeta,
10
10
  k as AlovaComplaintMeta,
11
11
  w as AlovaECGMeta,
12
- N as AlovaFaceMeta,
13
- O as AlovaMeta,
12
+ B as AlovaFaceMeta,
13
+ N as AlovaMeta,
14
14
  W as AlovaMetas,
15
15
  h as AlovaPCGMeta,
16
16
  z as AlovaPPGMeta,
17
- K as AlovaPatient,
18
- B as AlovaPulsationMeta,
19
- D as AlovaSceneMeta,
20
- H as AlovaTongueMeta,
17
+ L as AlovaPatient,
18
+ D as AlovaPulsationMeta,
19
+ H as AlovaSceneMeta,
20
+ J as AlovaTongueMeta,
21
21
  t as Annotation,
22
- A as AppendixMeta,
23
- r as ComplaintMeta,
24
- v as ECGMeta,
25
- i as FaceMeta,
26
- P as ImageMeta,
27
- m as ImagesMeta,
28
- x as Meta,
29
- c as MetaSequence,
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
- s as Metas,
33
- o as NetworkObject,
34
- C as PCGMeta,
35
- u as PPGMeta,
36
- M as Page,
37
- y as Patient,
38
- G as PulsationMeta,
39
- T as SceneMeta,
40
- n as Sequence,
41
- l as Tag,
42
- S as TextMeta,
43
- I as TongueMeta,
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
- $ as alovaInstance
46
+ F as alovaInstance
46
47
  };
@@ -1,4 +1,4 @@
1
- import { Page, Sequence, Tag, NetworkObject } from './core';
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 "./core.js";
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 { Page, Tag, NetworkObject } from './core';
1
+ import { Page, Tag, NetworkObject } from '../core/core';
2
2
  import { PatientState } from './alova/globals';
3
3
  import { Metas } from './meta';
4
4
  import { IBuilder } from 'builder-pattern';
@@ -1,4 +1,4 @@
1
- import { NetworkObject as e, Tag as a } from "./core.js";
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 "../../patient/core.js";
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 { Page, NetworkObject } from '../patient/core';
1
+ import { Page, NetworkObject } from '../core/core';
2
2
  import { HerbalState } from './alova/globals';
3
3
  import { IBuilder } from 'builder-pattern';
4
4
  import { Doctor } from '../doctor/doctor';
@@ -1,4 +1,4 @@
1
- import { NetworkObject as u } from "../patient/core.js";
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 {