web-core-tcm 0.0.71 → 0.0.72

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.
@@ -4,7 +4,7 @@ export declare class AlovaCheck extends Check {
4
4
  put(): Promise<this>;
5
5
  post(): Promise<this>;
6
6
  delete(): Promise<void>;
7
- static query(page: number, pageSize: number, sort: string, patientId?: string, doctorId?: string, startTime?: string, endTime?: string, patientName?: string, patientGender?: string, patientPhoneNumber?: string): Promise<{
7
+ static query(page: number, pageSize: number, sort: string, patientId?: string, doctorId?: string, startTime?: string, endTime?: string, patientName?: string, patientGender?: string, patientPhoneNumber?: string, patientMainSymptom?: string): Promise<{
8
8
  data: AlovaCheck[];
9
9
  total: number;
10
10
  page: number;
@@ -1,5 +1,5 @@
1
- import { Check as d, Payment as m } from "../../check.js";
2
- class l extends d {
1
+ import { Check as k, Payment as m } from "../../check.js";
2
+ class p extends k {
3
3
  async get() {
4
4
  return this.of(
5
5
  await checkApi.checkStateRestful.getCheckState({
@@ -7,7 +7,7 @@ class l extends d {
7
7
  id: this.id
8
8
  },
9
9
  async transform(t) {
10
- return new l().of(t);
10
+ return new p().of(t);
11
11
  }
12
12
  }).send()
13
13
  );
@@ -36,25 +36,24 @@ class l extends d {
36
36
  }
37
37
  }).send(), Promise.resolve();
38
38
  }
39
- static query(t, h, u, s, c, i, r, n, e, o) {
39
+ static query(t, o, u, s, c, r, i, n, e, l, h) {
40
40
  return checkApi.checkStateRestful.queryCheckState({
41
41
  params: {
42
42
  ...s && { patientId: s },
43
43
  ...c && { doctorId: c },
44
- ...i && { startTime: i },
45
- ...r && { endTime: r },
44
+ ...r && { startTime: r },
45
+ ...i && { endTime: i },
46
46
  ...n && { patientName: n },
47
47
  ...e && { patientGender: e },
48
- ...o && { patientPhoneNumber: o },
49
- pageSize: h,
48
+ ...l && { patientPhoneNumber: l },
49
+ ...h && { patientMainSymptom: h },
50
+ pageSize: o,
50
51
  page: t,
51
52
  sort: u
52
53
  },
53
54
  async transform(a) {
54
55
  return {
55
- data: await Promise.all(
56
- a.content.map((p) => new l().of(p))
57
- ),
56
+ data: await Promise.all(a.content.map((d) => new p().of(d))),
58
57
  total: a.totalElements,
59
58
  page: a.number,
60
59
  pageSize: a.size,
@@ -64,22 +63,22 @@ class l extends d {
64
63
  }
65
64
  }).send();
66
65
  }
67
- static queryPayment(t, h, u, s, c, i, r, n) {
66
+ static queryPayment(t, o, u, s, c, r, i, n) {
68
67
  return checkApi.checkStateRestful.queryPaymentState({
69
68
  params: {
70
69
  ...u && { doctorId: u },
71
70
  ...s && { patientId: s },
72
71
  ...c && { patientName: c },
73
- ...i && { patientPhone: i },
74
- ...r && { prescriptionPaymentStatus: r },
72
+ ...r && { patientPhone: r },
73
+ ...i && { prescriptionPaymentStatus: i },
75
74
  ...n && { outboundStatus: n },
76
- pageSize: h,
75
+ pageSize: o,
77
76
  page: t
78
77
  },
79
78
  async transform(e) {
80
79
  return {
81
80
  data: await Promise.all(
82
- e.content.map((a) => new k().of(a))
81
+ e.content.map((h) => new S().of(h))
83
82
  ),
84
83
  total: e.totalElements,
85
84
  page: e.number,
@@ -91,7 +90,7 @@ class l extends d {
91
90
  }).send();
92
91
  }
93
92
  }
94
- class k extends m {
93
+ class S extends m {
95
94
  async putOutboundStatus(t) {
96
95
  return this.outboundStatus = t, await checkApi.checkStateRestful.putCheckState({
97
96
  pathParams: {
@@ -114,6 +113,6 @@ class k extends m {
114
113
  }
115
114
  }
116
115
  export {
117
- l as AlovaCheck,
118
- k as AlovaPayment
116
+ p as AlovaCheck,
117
+ S as AlovaPayment
119
118
  };
@@ -30,7 +30,7 @@ export declare abstract class Check extends NetworkObject {
30
30
  abstract put(): Promise<this>;
31
31
  abstract post(): Promise<this>;
32
32
  abstract delete(): Promise<void>;
33
- static query(page: number, pageSize: number, sort: string, patientId?: string, doctorId?: string, startTime?: string, endTime?: string, patientName?: string, patientGender?: string, patientPhoneNumber?: string): Promise<Page<Check>>;
33
+ static query(page: number, pageSize: number, sort: string, patientId?: string, doctorId?: string, startTime?: string, endTime?: string, patientName?: string, patientGender?: string, patientPhoneNumber?: string, patientMainSymptom?: string): Promise<Page<Check>>;
34
34
  static queryPayment(page: number, pageSize: number, doctorId?: string, patientId?: string, patientName?: string, patientPhone?: string, prescriptionPaymentStatus?: number, outboundStatus?: number): Promise<Page<Payment>>;
35
35
  }
36
36
  export declare abstract class Payment extends NetworkObject {
@@ -1,12 +1,12 @@
1
1
  import { Patient as h } from "../patient/patient.js";
2
- import { NetworkObject as l, Sequence as r, Tag as b } from "../core/core.js";
2
+ import { NetworkObject as l, Sequence as r, Tag as g } from "../core/core.js";
3
3
  import { Metas as m } from "../patient/meta.js";
4
4
  import { Prescription as s } from "../prescription/prescription.js";
5
5
  import { extractPlainText as c } from "../../util/RichTextUtil.js";
6
6
  import { Doctor as f } from "../doctor/doctor.js";
7
7
  import "../prescription/index.js";
8
8
  import { Builder as S } from "../../../node_modules/builder-pattern/dist/index.js";
9
- import { Herbal as g } from "../prescription/herbal.js";
9
+ import { Herbal as P } from "../prescription/herbal.js";
10
10
  class n extends l {
11
11
  static builder() {
12
12
  return S(this._default);
@@ -34,11 +34,11 @@ class n extends l {
34
34
  constructor() {
35
35
  super();
36
36
  const t = s.builder().build();
37
- t.herbals.push(g.builder().build()), this.prescriptions.data.push(t);
37
+ t.herbals.push(P.builder().build()), this.prescriptions.data.push(t);
38
38
  }
39
39
  async of(t) {
40
40
  if (t.tagsState != null && (this.tags = await Promise.all(
41
- t.tagsState.map((i) => new b().of(i))
41
+ t.tagsState.map((i) => new g().of(i))
42
42
  )), t.id != null && (this.id = t.id), t.prescriptionsState != null) {
43
43
  this.prescriptions = new r();
44
44
  const i = JSON.parse(t.prescriptionsState), e = await Promise.all(
@@ -60,19 +60,8 @@ class n extends l {
60
60
  (i) => this.metas[i].data.map((e) => e.state())
61
61
  ), t;
62
62
  }
63
- static query(t, i, e, a, p, d, o, u, T, y) {
64
- return n.default().query(
65
- t,
66
- i,
67
- e,
68
- a,
69
- p,
70
- d,
71
- o,
72
- u,
73
- T,
74
- y
75
- );
63
+ static query(t, i, e, a, p, d, o, u, T, y, b) {
64
+ return n.default().query(t, i, e, a, p, d, o, u, T, y, b);
76
65
  }
77
66
  static queryPayment(t, i, e, a, p, d, o, u) {
78
67
  return n.default().queryPayment(
@@ -87,7 +76,7 @@ class n extends l {
87
76
  );
88
77
  }
89
78
  }
90
- class A extends l {
79
+ class _ extends l {
91
80
  static builder() {
92
81
  return S(this._default);
93
82
  }
@@ -127,5 +116,5 @@ class A extends l {
127
116
  }
128
117
  export {
129
118
  n as Check,
130
- A as Payment
119
+ _ as Payment
131
120
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-core-tcm",
3
- "version": "0.0.71",
3
+ "version": "0.0.72",
4
4
  "description": "Core",
5
5
  "productName": "Core",
6
6
  "author": "wywywywywywywywywy <qa123456_0714@qq.com>",