web-core-tcm 0.0.66 → 0.0.71

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 (82) hide show
  1. package/dist/src/api/algorithm/alova/implement/lisemsAlgorithm.js +6 -10
  2. package/dist/src/api/algorithm/pulsationsAlgorithm.js +1 -1
  3. package/dist/src/api/authorization/alova/index.d.ts +3 -2
  4. package/dist/src/api/authorization/alova/index.js +16 -13
  5. package/dist/src/api/authorization/authorization.d.ts +1 -1
  6. package/dist/src/api/authorization/index.js +9 -6
  7. package/dist/src/api/check/alova/index.d.ts +1 -2
  8. package/dist/src/api/check/alova/index.js +10 -11
  9. package/dist/src/api/check/check.d.ts +1 -1
  10. package/dist/src/api/check/index.js +9 -10
  11. package/dist/src/api/config/alova/index.js +10 -10
  12. package/dist/src/api/config/index.d.ts +0 -1
  13. package/dist/src/api/config/index.js +9 -15
  14. package/dist/src/api/core/core.d.ts +1 -1
  15. package/dist/src/api/doctor/alova/index.d.ts +1 -2
  16. package/dist/src/api/doctor/alova/index.js +7 -8
  17. package/dist/src/api/doctor/doctor.d.ts +1 -1
  18. package/dist/src/api/doctor/index.js +6 -7
  19. package/dist/src/api/index.d.ts +0 -1
  20. package/dist/src/api/index.js +0 -2
  21. package/dist/src/api/metric/alova/implement/metric.d.ts +1 -1
  22. package/dist/src/api/metric/metric.d.ts +2 -2
  23. package/dist/src/api/oauth/alova/index.d.ts +1 -2
  24. package/dist/src/api/oauth/alova/index.js +11 -12
  25. package/dist/src/api/oauth/index.js +5 -6
  26. package/dist/src/api/outpatient/alova/index.d.ts +1 -2
  27. package/dist/src/api/outpatient/alova/index.js +10 -11
  28. package/dist/src/api/outpatient/index.js +9 -10
  29. package/dist/src/api/outpatient/outpatient.d.ts +1 -1
  30. package/dist/src/api/patient/alova/implement/meta.d.ts +1 -1
  31. package/dist/src/api/patient/alova/index.d.ts +1 -2
  32. package/dist/src/api/patient/alova/index.js +10 -11
  33. package/dist/src/api/patient/index.js +26 -27
  34. package/dist/src/api/patient/meta.d.ts +1 -1
  35. package/dist/src/api/patient/patient.d.ts +1 -1
  36. package/dist/src/api/prescription/alova/implement/prescription.d.ts +1 -0
  37. package/dist/src/api/prescription/alova/implement/prescription.js +17 -9
  38. package/dist/src/api/prescription/alova/index.d.ts +1 -2
  39. package/dist/src/api/prescription/alova/index.js +1 -2
  40. package/dist/src/api/prescription/herbal.d.ts +1 -1
  41. package/dist/src/api/prescription/index.js +11 -12
  42. package/dist/src/api/prescription/prescription.d.ts +2 -1
  43. package/dist/src/api/prescription/prescription.js +12 -9
  44. package/dist/src/api/scientist/alova/index.d.ts +1 -2
  45. package/dist/src/api/scientist/alova/index.js +5 -6
  46. package/dist/src/api/scientist/index.js +7 -8
  47. package/dist/src/api/scientist/scientist.d.ts +1 -1
  48. package/dist/src/components/tcm/inquirise/ComplaintViewCollected.vue.d.ts +3 -14
  49. package/dist/src/components/tcm/inquirise/ComplaintViewCollected.vue.js +2 -2
  50. package/dist/src/components/tcm/inquirise/ComplaintViewCollected.vue2.js +129 -117
  51. package/dist/src/components/tcm/inquirise/ComplaintsRecognitionCollected.vue.d.ts +3 -14
  52. package/dist/src/components/tcm/inquirise/ComplaintsRecognitionCollected.vue.js +2 -2
  53. package/dist/src/components/tcm/inquirise/ComplaintsRecognitionCollected.vue2.js +139 -123
  54. package/dist/src/components/tcm/lisems/EPPCollected.vue.js +1 -1
  55. package/dist/src/components/tcm/palpations/PulsationCollect.vue.js +2 -2
  56. package/dist/src/components/tcm/palpations/PulsationCollect.vue2.js +54 -51
  57. package/dist/src/index.js +40 -42
  58. package/dist/web-core-tcm.css +1 -1
  59. package/package.json +1 -6
  60. package/dist/src/api/manager/alova/apiDefinitions.d.ts +0 -62
  61. package/dist/src/api/manager/alova/apiDefinitions.js +0 -50
  62. package/dist/src/api/manager/alova/createApis.d.ts +0 -10
  63. package/dist/src/api/manager/alova/createApis.js +0 -49
  64. package/dist/src/api/manager/alova/globals.d.ts +0 -4890
  65. package/dist/src/api/manager/alova/implement/department.d.ts +0 -7
  66. package/dist/src/api/manager/alova/implement/department.js +0 -44
  67. package/dist/src/api/manager/alova/implement/division.d.ts +0 -7
  68. package/dist/src/api/manager/alova/implement/division.js +0 -44
  69. package/dist/src/api/manager/alova/implement/hospital.d.ts +0 -7
  70. package/dist/src/api/manager/alova/implement/hospital.js +0 -44
  71. package/dist/src/api/manager/alova/implement/index.d.ts +0 -3
  72. package/dist/src/api/manager/alova/implement/index.js +0 -8
  73. package/dist/src/api/manager/alova/index.d.ts +0 -7
  74. package/dist/src/api/manager/alova/index.js +0 -20
  75. package/dist/src/api/manager/department.d.ts +0 -30
  76. package/dist/src/api/manager/department.js +0 -35
  77. package/dist/src/api/manager/division.d.ts +0 -30
  78. package/dist/src/api/manager/division.js +0 -34
  79. package/dist/src/api/manager/hospital.d.ts +0 -32
  80. package/dist/src/api/manager/hospital.js +0 -36
  81. package/dist/src/api/manager/index.d.ts +0 -4
  82. package/dist/src/api/manager/index.js +0 -18
@@ -1,32 +1,32 @@
1
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 A, ComplaintMeta as r, ECGMeta as i, FaceMeta as s, ImageMeta as c, ImagesMeta as P, Meta as m, MetaSequence as x, MetaType as f, MetaTypeConfig as g, MetaTypeMap as C, Metas as u, PCGMeta as T, PPGMeta as G, PulsationMeta as I, SceneMeta as S, TextMeta as y, TongueMeta as b, WavesMeta as d } from "./meta.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, MetaTypeMap as C, Metas as u, PCGMeta as T, PPGMeta as G, PulsationMeta as S, SceneMeta as y, TextMeta as I, TongueMeta as b, WavesMeta as d } from "./meta.js";
3
3
  import { Patient as q } from "./patient.js";
4
- import { $$userConfigMap as F, alovaInstance as O, alovaInstance as $ } from "./alova/index.js";
5
- import { AlovaAppendixMeta as w, AlovaComplaintMeta as B, AlovaECGMeta as N, AlovaFaceMeta as W, AlovaMeta as h, AlovaMetas as z, AlovaPCGMeta as D, AlovaPPGMeta as H, AlovaPulsationMeta as J, AlovaSceneMeta as K, AlovaTongueMeta as L } from "./alova/implement/meta.js";
6
- import { AlovaPatient as R } from "./alova/implement/patient.js";
4
+ import { $$userConfigMap as F, alovaInstance as O } from "./alova/index.js";
5
+ import { AlovaAppendixMeta as k, AlovaComplaintMeta as w, AlovaECGMeta as B, AlovaFaceMeta as N, AlovaMeta as W, AlovaMetas as h, AlovaPCGMeta as z, AlovaPPGMeta as D, AlovaPulsationMeta as H, AlovaSceneMeta as J, AlovaTongueMeta as K } from "./alova/implement/meta.js";
6
+ import { AlovaPatient as Q } from "./alova/implement/patient.js";
7
7
  export {
8
8
  F as $$userConfigMap,
9
- w as AlovaAppendixMeta,
10
- B as AlovaComplaintMeta,
11
- N as AlovaECGMeta,
12
- W as AlovaFaceMeta,
13
- h as AlovaMeta,
14
- z as AlovaMetas,
15
- D as AlovaPCGMeta,
16
- H as AlovaPPGMeta,
17
- R as AlovaPatient,
18
- J as AlovaPulsationMeta,
19
- K as AlovaSceneMeta,
20
- L as AlovaTongueMeta,
9
+ k as AlovaAppendixMeta,
10
+ w as AlovaComplaintMeta,
11
+ B as AlovaECGMeta,
12
+ N as AlovaFaceMeta,
13
+ W as AlovaMeta,
14
+ h as AlovaMetas,
15
+ z as AlovaPCGMeta,
16
+ D as AlovaPPGMeta,
17
+ Q as AlovaPatient,
18
+ H as AlovaPulsationMeta,
19
+ J as AlovaSceneMeta,
20
+ K as AlovaTongueMeta,
21
21
  t as Annotation,
22
- A as AppendixMeta,
22
+ r as AppendixMeta,
23
23
  o as BaseObject,
24
- r as ComplaintMeta,
24
+ v as ComplaintMeta,
25
25
  i as ECGMeta,
26
- s as FaceMeta,
27
- c as ImageMeta,
28
- P as ImagesMeta,
29
- m as Meta,
26
+ P as FaceMeta,
27
+ m as ImageMeta,
28
+ c as ImagesMeta,
29
+ s as Meta,
30
30
  x as MetaSequence,
31
31
  f as MetaType,
32
32
  g as MetaTypeConfig,
@@ -37,13 +37,12 @@ export {
37
37
  G as PPGMeta,
38
38
  n as Page,
39
39
  q as Patient,
40
- I as PulsationMeta,
41
- S as SceneMeta,
40
+ S as PulsationMeta,
41
+ y as SceneMeta,
42
42
  l as Sequence,
43
43
  p as Tag,
44
- y as TextMeta,
44
+ I as TextMeta,
45
45
  b as TongueMeta,
46
46
  d as WavesMeta,
47
- O as alovaInstance,
48
- $ as patientAlovaInstance
47
+ O as alovaInstance
49
48
  };
@@ -1,6 +1,6 @@
1
1
  import { Page, Sequence, Tag, NetworkObject } from '../core/core';
2
2
  import { WaveMap } from '../../proto/types/WaveMap_pb';
3
- import { MetaState } from './alova/globals';
3
+ import { MetaState } from './alova/globals.d.ts';
4
4
  import { Image, Images } from '../../proto/types/Images_pb';
5
5
  import { Patient } from './patient';
6
6
  import { IBuilder } from 'builder-pattern';
@@ -1,5 +1,5 @@
1
1
  import { Page, Tag, NetworkObject } from '../core/core';
2
- import { PatientState } from './alova/globals';
2
+ import { PatientState } from './alova/globals.d.ts';
3
3
  import { Metas } from './meta';
4
4
  import { IBuilder } from 'builder-pattern';
5
5
  export declare abstract class Patient extends NetworkObject {
@@ -12,4 +12,5 @@ export declare class AlovaPrescription extends Prescription {
12
12
  put(): Promise<this>;
13
13
  post(): Promise<this>;
14
14
  delete(): Promise<this>;
15
+ static initPrescriptions(owner: Doctor): Promise<void>;
15
16
  }
@@ -1,17 +1,17 @@
1
1
  import { Prescription as o } from "../../prescription.js";
2
- class a extends o {
3
- static query(s = 0, r = 9999999, p, e) {
4
- const i = p?.state();
2
+ class r extends o {
3
+ static query(i = 0, e = 9999999, n, s) {
4
+ const a = n?.state();
5
5
  return prescriptionApi.prescriptionRestful.queryPrescriptionState({
6
6
  data: {
7
- ...i && { ownerState: i },
8
- ...e && { name: e },
9
- page: s,
10
- pageSize: r
7
+ ...a && { ownerState: a },
8
+ ...s && { name: s },
9
+ page: i,
10
+ pageSize: e
11
11
  },
12
12
  async transform(t) {
13
13
  return {
14
- data: await Promise.all(t.content.map((n) => new a().of(n))),
14
+ data: await Promise.all(t.content.map((p) => new r().of(p))),
15
15
  total: t.totalElements,
16
16
  page: t.number,
17
17
  pageSize: t.size,
@@ -43,7 +43,15 @@ class a extends o {
43
43
  }
44
44
  }).send(), this;
45
45
  }
46
+ static async initPrescriptions(i) {
47
+ const e = i?.state();
48
+ return await prescriptionApi.prescriptionRestful.initPrescriptions({
49
+ data: {
50
+ ownerState: e
51
+ }
52
+ }), Promise.resolve();
53
+ }
46
54
  }
47
55
  export {
48
- a as AlovaPrescription
56
+ r as AlovaPrescription
49
57
  };
@@ -1,7 +1,6 @@
1
1
  export declare const alovaInstance: import('alova').Alova<import('alova').AlovaGenerics<any, any, import('alova/fetch').FetchRequestInit, Response, Headers, any, any, any>>;
2
- export { alovaInstance as prescriptionAlovaInstance };
3
2
  export declare const $$userConfigMap: {};
4
3
  declare const Apis: prescriptionApi;
5
4
  export default Apis;
6
5
  export * from './implement';
7
- export type * from './globals';
6
+ export type * from './globals.d.ts';
@@ -16,6 +16,5 @@ i(f);
16
16
  export {
17
17
  m as $$userConfigMap,
18
18
  c as alovaInstance,
19
- f as default,
20
- c as prescriptionAlovaInstance
19
+ f as default
21
20
  };
@@ -1,5 +1,5 @@
1
1
  import { Page, NetworkObject } from '../core/core';
2
- import { HerbalState } from './alova/globals';
2
+ import { HerbalState } from './alova/globals.d.ts';
3
3
  import { IBuilder } from 'builder-pattern';
4
4
  import { Doctor } from '../doctor/doctor';
5
5
  export declare abstract class Herbal extends NetworkObject {
@@ -1,14 +1,13 @@
1
- import { Herbal as a } from "./herbal.js";
2
- import { Prescription as t } from "./prescription.js";
3
- import { $$userConfigMap as p, alovaInstance as s, alovaInstance as i } from "./alova/index.js";
4
- import { AlovaHerbal as c } from "./alova/implement/herbal.js";
5
- import { AlovaPrescription as m } from "./alova/implement/prescription.js";
1
+ import { Herbal as e } from "./herbal.js";
2
+ import { Prescription as p } from "./prescription.js";
3
+ import { $$userConfigMap as f, alovaInstance as i } from "./alova/index.js";
4
+ import { AlovaHerbal as m } from "./alova/implement/herbal.js";
5
+ import { AlovaPrescription as x } from "./alova/implement/prescription.js";
6
6
  export {
7
- p as $$userConfigMap,
8
- c as AlovaHerbal,
9
- m as AlovaPrescription,
10
- a as Herbal,
11
- t as Prescription,
12
- s as alovaInstance,
13
- i as prescriptionAlovaInstance
7
+ f as $$userConfigMap,
8
+ m as AlovaHerbal,
9
+ x as AlovaPrescription,
10
+ e as Herbal,
11
+ p as Prescription,
12
+ i as alovaInstance
14
13
  };
@@ -1,5 +1,5 @@
1
1
  import { Herbal } from './herbal';
2
- import { PrescriptionState } from './alova/globals';
2
+ import { PrescriptionState } from './alova/globals.d.ts';
3
3
  import { Page, NetworkObject } from '../core/core';
4
4
  import { IBuilder } from 'builder-pattern';
5
5
  import { Doctor } from '../doctor/doctor';
@@ -23,4 +23,5 @@ export declare abstract class Prescription extends NetworkObject {
23
23
  abstract put(): Promise<this>;
24
24
  abstract post(): Promise<this>;
25
25
  abstract delete(): Promise<this>;
26
+ static initPrescriptions(owner: Doctor): Promise<void>;
26
27
  }
@@ -1,8 +1,8 @@
1
- import { Herbal as u } from "./herbal.js";
2
- import { NetworkObject as s } from "../core/core.js";
1
+ import { Herbal as s } from "./herbal.js";
2
+ import { NetworkObject as u } from "../core/core.js";
3
3
  import { Builder as d } from "../../../node_modules/builder-pattern/dist/index.js";
4
- import { Doctor as i } from "../doctor/doctor.js";
5
- class a extends s {
4
+ import { Doctor as a } from "../doctor/doctor.js";
5
+ class i extends u {
6
6
  static builder() {
7
7
  return d(this._default);
8
8
  }
@@ -13,7 +13,7 @@ class a extends s {
13
13
  createdTimestamp = "";
14
14
  updatedTimestamp = "";
15
15
  name = "匿名药方";
16
- owner = i.builder().build();
16
+ owner = a.builder().build();
17
17
  totalAmount = 0;
18
18
  useAmount = 0;
19
19
  craftType = "自煎";
@@ -21,8 +21,8 @@ class a extends s {
21
21
  useTime = ["早上", "晚上"];
22
22
  herbals = [];
23
23
  async of(t) {
24
- return t.id != null && (this.id = t.id), t.createdTimestamp != null && (this.createdTimestamp = t.createdTimestamp), t.updatedTimestamp != null && (this.updatedTimestamp = t.updatedTimestamp), t.name != null && (this.name = t.name), t.ownerState != null && (this.owner = await i.builder().build().of(t.ownerState)), t.totalAmount != null && (this.totalAmount = t.totalAmount), t.useAmount != null && (this.useAmount = t.useAmount), t.craftType != null && (this.craftType = t.craftType), t.useWay != null && (this.useWay = t.useWay), t.useTime != null && (this.useTime = t.useTime), t.herbalsState != null && (this.herbals = await Promise.all(
25
- t.herbalsState.map((e) => u.builder().build().of(e))
24
+ return t.id != null && (this.id = t.id), t.createdTimestamp != null && (this.createdTimestamp = t.createdTimestamp), t.updatedTimestamp != null && (this.updatedTimestamp = t.updatedTimestamp), t.name != null && (this.name = t.name), t.ownerState != null && (this.owner = await a.builder().build().of(t.ownerState)), t.totalAmount != null && (this.totalAmount = t.totalAmount), t.useAmount != null && (this.useAmount = t.useAmount), t.craftType != null && (this.craftType = t.craftType), t.useWay != null && (this.useWay = t.useWay), t.useTime != null && (this.useTime = t.useTime), t.herbalsState != null && (this.herbals = await Promise.all(
25
+ t.herbalsState.map((e) => s.builder().build().of(e))
26
26
  )), Promise.resolve(this);
27
27
  }
28
28
  state() {
@@ -41,9 +41,12 @@ class a extends s {
41
41
  };
42
42
  }
43
43
  static query(t = 0, e = 9999999, m, r) {
44
- return a.default().query(t, e, m, r);
44
+ return i.default().query(t, e, m, r);
45
+ }
46
+ static initPrescriptions(t) {
47
+ return i.default().initPrescriptions(t);
45
48
  }
46
49
  }
47
50
  export {
48
- a as Prescription
51
+ i as Prescription
49
52
  };
@@ -2,6 +2,5 @@ export declare const alovaInstance: import('alova').Alova<import('alova').AlovaG
2
2
  export declare const $$userConfigMap: {};
3
3
  declare const Apis: scientistApi;
4
4
  export * from './implement';
5
- export type * from './globals';
6
- export { alovaInstance as scientistAlovaInstance };
5
+ export type * from './globals.d.ts';
7
6
  export default Apis;
@@ -1,21 +1,20 @@
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 { withConfigType as o, createApis as r, mountApis as i } from "./createApis.js";
4
- import { responded as s, onAuthRequired as a } from "../../config/alova/index.js";
5
- import { getServiceEndpoint as n, ServiceType as p } from "../../config/index.js";
4
+ import { responded as p, onAuthRequired as a } from "../../config/alova/index.js";
5
+ import { getServiceEndpoint as n, ServiceType as s } from "../../config/index.js";
6
6
  import "./implement/index.js";
7
7
  const c = e({
8
- baseURL: n(p.Scientist),
8
+ baseURL: n(s.Scientist),
9
9
  requestAdapter: t(),
10
10
  beforeRequest: a(() => {
11
11
  }),
12
12
  cacheFor: null,
13
- responded: s
13
+ responded: p
14
14
  }), m = o({}), f = r(c, m);
15
15
  i(f);
16
16
  export {
17
17
  m as $$userConfigMap,
18
18
  c as alovaInstance,
19
- f as default,
20
- c as scientistAlovaInstance
19
+ f as default
21
20
  };
@@ -1,10 +1,9 @@
1
- import { Scientist as o } from "./scientist.js";
2
- import { $$userConfigMap as n, alovaInstance as s, alovaInstance as i } from "./alova/index.js";
3
- import { AlovaScientist as c } from "./alova/implement/scientist.js";
1
+ import { Scientist as e } from "./scientist.js";
2
+ import { $$userConfigMap as a, alovaInstance as i } from "./alova/index.js";
3
+ import { AlovaScientist as f } from "./alova/implement/scientist.js";
4
4
  export {
5
- n as $$userConfigMap,
6
- c as AlovaScientist,
7
- o as Scientist,
8
- s as alovaInstance,
9
- i as scientistAlovaInstance
5
+ a as $$userConfigMap,
6
+ f as AlovaScientist,
7
+ e as Scientist,
8
+ i as alovaInstance
10
9
  };
@@ -1,6 +1,6 @@
1
1
  import { NetworkObject } from '../core/core';
2
2
  import { IBuilder } from 'builder-pattern';
3
- import { ScientistState } from './alova/globals';
3
+ import { ScientistState } from './alova/globals.d.ts';
4
4
  export declare abstract class Scientist extends NetworkObject {
5
5
  static builder(): IBuilder<Scientist>;
6
6
  static default(): typeof Scientist;
@@ -1,19 +1,8 @@
1
+ import { ComplaintMeta } from '../../../api/patient';
1
2
  declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
2
- collected: (symptomsStore: {
3
- symptoms: string[];
4
- text_details: string;
5
- remark: string;
6
- text_label: string[];
7
- dialog_history: string[];
8
- }) => any;
3
+ collected: (complaintMeta: ComplaintMeta) => any;
9
4
  }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
10
- onCollected?: (symptomsStore: {
11
- symptoms: string[];
12
- text_details: string;
13
- remark: string;
14
- text_label: string[];
15
- dialog_history: string[];
16
- }) => any;
5
+ onCollected?: (complaintMeta: ComplaintMeta) => any;
17
6
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
18
7
  svgRoot: HTMLDivElement;
19
8
  }, any>;
@@ -1,7 +1,7 @@
1
1
  import o from "./ComplaintViewCollected.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a0f84961"]]);
4
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2e40b696"]]);
5
5
  export {
6
- p as default
6
+ r as default
7
7
  };