web-core-tcm 0.0.38 → 0.0.40

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.
@@ -3,1238 +3,1130 @@ import { $$userConfigMap, alovaInstance } from './index';
3
3
  import { default as apiDefinitions } from './apiDefinitions';
4
4
  type CollapsedAlova = typeof alovaInstance;
5
5
  type UserMethodConfigMap = typeof $$userConfigMap;
6
-
7
- type Alova2MethodConfig<Responded> =
8
- CollapsedAlova extends Alova<
9
- AlovaGenerics<
10
- any,
11
- any,
12
- infer RequestConfig,
13
- infer Response,
14
- infer ResponseHeader,
15
- infer L1Cache,
16
- infer L2Cache,
17
- infer SE
18
- >
19
- >
20
- ? Omit<
21
- AlovaMethodCreateConfig<
22
- AlovaGenerics<
23
- Responded,
24
- any,
25
- RequestConfig,
26
- Response,
27
- ResponseHeader,
28
- L1Cache,
29
- L2Cache,
30
- SE
31
- >,
32
- any,
33
- Responded
34
- >,
35
- 'params'
36
- >
37
- : never;
38
-
39
- // Extract the return type of transform function that define in $$userConfigMap, if it not exists, use the default type.
40
- type ExtractUserDefinedTransformed<
41
- DefinitionKey extends keyof typeof apiDefinitions,
42
- Default,
43
- > = DefinitionKey extends keyof UserMethodConfigMap
44
- ? UserMethodConfigMap[DefinitionKey]['transform'] extends (...args: any[]) => any
45
- ? Awaited<ReturnType<UserMethodConfigMap[DefinitionKey]['transform']>>
46
- : Default
47
- : Default;
48
- type Alova2Method<
49
- Responded,
50
- DefinitionKey extends keyof typeof apiDefinitions,
51
- CurrentConfig extends Alova2MethodConfig<any>,
52
- > =
53
- CollapsedAlova extends Alova<
54
- AlovaGenerics<
55
- any,
56
- any,
57
- infer RequestConfig,
58
- infer Response,
59
- infer ResponseHeader,
60
- infer L1Cache,
61
- infer L2Cache,
62
- infer SE
63
- >
64
- >
65
- ? Method<
66
- AlovaGenerics<
67
- CurrentConfig extends undefined
68
- ? ExtractUserDefinedTransformed<DefinitionKey, Responded>
69
- : CurrentConfig['transform'] extends (...args: any[]) => any
70
- ? Awaited<ReturnType<CurrentConfig['transform']>>
71
- : ExtractUserDefinedTransformed<DefinitionKey, Responded>,
72
- any,
73
- RequestConfig,
74
- Response,
75
- ResponseHeader,
76
- L1Cache,
77
- L2Cache,
78
- SE
79
- >
80
- >
81
- : never;
82
-
6
+ type Alova2MethodConfig<Responded> = CollapsedAlova extends Alova<AlovaGenerics<any, any, infer RequestConfig, infer Response, infer ResponseHeader, infer L1Cache, infer L2Cache, infer SE>> ? Omit<AlovaMethodCreateConfig<AlovaGenerics<Responded, any, RequestConfig, Response, ResponseHeader, L1Cache, L2Cache, SE>, any, Responded>, 'params'> : never;
7
+ type ExtractUserDefinedTransformed<DefinitionKey extends keyof typeof apiDefinitions, Default> = DefinitionKey extends keyof UserMethodConfigMap ? UserMethodConfigMap[DefinitionKey]['transform'] extends (...args: any[]) => any ? Awaited<ReturnType<UserMethodConfigMap[DefinitionKey]['transform']>> : Default : Default;
8
+ type Alova2Method<Responded, DefinitionKey extends keyof typeof apiDefinitions, CurrentConfig extends Alova2MethodConfig<any>> = CollapsedAlova extends Alova<AlovaGenerics<any, any, infer RequestConfig, infer Response, infer ResponseHeader, infer L1Cache, infer L2Cache, infer SE>> ? Method<AlovaGenerics<CurrentConfig extends undefined ? ExtractUserDefinedTransformed<DefinitionKey, Responded> : CurrentConfig['transform'] extends (...args: any[]) => any ? Awaited<ReturnType<CurrentConfig['transform']>> : ExtractUserDefinedTransformed<DefinitionKey, Responded>, any, RequestConfig, Response, ResponseHeader, L1Cache, L2Cache, SE>> : never;
83
9
  export interface AnnotationState {
84
- value?: string;
85
- actor?: string;
86
- timestamp?: string;
10
+ value?: string;
11
+ actor?: string;
12
+ timestamp?: string;
87
13
  }
88
14
  export interface TagState {
89
- key?: string;
90
- annotationsState?: AnnotationState[];
15
+ key?: string;
16
+ annotationsState?: AnnotationState[];
91
17
  }
92
18
  export interface PatientState {
93
- id?: string;
94
- doctorId?: string;
95
- name?: string;
96
- createdTimestamp?: string;
97
- updatedTimestamp?: string;
98
- identity?: string;
99
- gender?: string;
100
- phoneNumber?: string;
101
- birthdate?: string;
102
- remarks?: string[];
103
- tagsState?: TagState[];
104
- mainSymptom?: string;
19
+ id?: string;
20
+ doctorId?: string;
21
+ name?: string;
22
+ createdTimestamp?: string;
23
+ updatedTimestamp?: string;
24
+ identity?: string;
25
+ gender?: string;
26
+ phoneNumber?: string;
27
+ birthdate?: string;
28
+ remarks?: string[];
29
+ tagsState?: TagState[];
30
+ mainSymptom?: string;
105
31
  }
106
32
  export interface MetaState {
107
- id?: string;
108
- ownerState?: PatientState;
109
- type?: string;
110
- tagsState?: TagState[];
111
- createdTimestamp?: string;
112
- updatedTimestamp?: string;
33
+ id?: string;
34
+ ownerState?: PatientState;
35
+ type?: string;
36
+ tagsState?: TagState[];
37
+ createdTimestamp?: string;
38
+ updatedTimestamp?: string;
113
39
  }
114
40
  export interface DoctorState {
115
- id?: string;
116
- name?: string;
117
- createdTimestamp?: string;
118
- updatedTimestamp?: string;
119
- gender?: string;
120
- identityNumber?: string;
121
- phoneNumber?: string;
122
- birthdate?: string;
41
+ id?: string;
42
+ name?: string;
43
+ createdTimestamp?: string;
44
+ updatedTimestamp?: string;
45
+ gender?: string;
46
+ identityNumber?: string;
47
+ phoneNumber?: string;
48
+ birthdate?: string;
123
49
  }
124
50
  export interface CheckState {
125
- id?: string;
126
- metasState?: MetaState[];
127
- prescriptionsState?: string;
128
- diagnosis?: string;
129
- doctorState?: DoctorState;
130
- patientState?: PatientState;
131
- paymentType?: string;
132
- outpatientType?: string;
133
- createdTimestamp?: string;
134
- updatedTimestamp?: string;
135
- tagsState?: TagState[];
136
- prescriptionPaymentStatus?: number;
137
- outboundStatus?: number;
51
+ id?: string;
52
+ metasState?: MetaState[];
53
+ prescriptionsState?: string;
54
+ diagnosis?: string;
55
+ doctorState?: DoctorState;
56
+ patientState?: PatientState;
57
+ paymentType?: string;
58
+ outpatientType?: string;
59
+ createdTimestamp?: string;
60
+ updatedTimestamp?: string;
61
+ tagsState?: TagState[];
62
+ prescriptionPaymentStatus?: number;
63
+ outboundStatus?: number;
138
64
  }
139
65
  export interface DateDistribute {
140
- date?: string;
141
- count?: number;
66
+ date?: string;
67
+ count?: number;
142
68
  }
143
69
  export interface GenderDistribute {
144
- gender?: string;
145
- count?: number;
70
+ gender?: string;
71
+ count?: number;
146
72
  }
147
73
  export interface AgeDistribute {
148
- age?: number;
149
- count?: number;
74
+ age?: number;
75
+ count?: number;
150
76
  }
151
77
  export interface SortObject {
152
- empty?: boolean;
153
- sorted?: boolean;
154
- unsorted?: boolean;
78
+ empty?: boolean;
79
+ sorted?: boolean;
80
+ unsorted?: boolean;
155
81
  }
156
82
  export interface PageableObject {
157
- offset?: number;
158
- sort?: SortObject;
159
- pageSize?: number;
160
- paged?: boolean;
161
- pageNumber?: number;
162
- unpaged?: boolean;
83
+ offset?: number;
84
+ sort?: SortObject;
85
+ pageSize?: number;
86
+ paged?: boolean;
87
+ pageNumber?: number;
88
+ unpaged?: boolean;
163
89
  }
164
90
  export interface PageCheckState {
165
- totalPages?: number;
166
- totalElements?: number;
167
- size?: number;
168
- content?: CheckState[];
169
- number?: number;
170
- sort?: SortObject;
171
- first?: boolean;
172
- last?: boolean;
173
- numberOfElements?: number;
174
- pageable?: PageableObject;
175
- empty?: boolean;
91
+ totalPages?: number;
92
+ totalElements?: number;
93
+ size?: number;
94
+ content?: CheckState[];
95
+ number?: number;
96
+ sort?: SortObject;
97
+ first?: boolean;
98
+ last?: boolean;
99
+ numberOfElements?: number;
100
+ pageable?: PageableObject;
101
+ empty?: boolean;
176
102
  }
177
103
  export interface PaymentState {
178
- id?: string;
179
- prescription?: string;
180
- doctorId?: string;
181
- patientId?: string;
182
- patientName?: string;
183
- patientPhone?: string;
184
- patientGender?: string;
185
- createdTimestamp?: number;
186
- updatedTimestamp?: number;
187
- prescriptionPaymentStatus?: number;
188
- outboundStatus?: number;
104
+ id?: string;
105
+ prescription?: string;
106
+ doctorId?: string;
107
+ patientId?: string;
108
+ patientName?: string;
109
+ patientPhone?: string;
110
+ patientGender?: string;
111
+ createdTimestamp?: number;
112
+ updatedTimestamp?: number;
113
+ prescriptionPaymentStatus?: number;
114
+ outboundStatus?: number;
189
115
  }
190
116
  export interface PagePaymentState {
191
- totalPages?: number;
192
- totalElements?: number;
193
- size?: number;
194
- content?: PaymentState[];
195
- number?: number;
196
- sort?: SortObject;
197
- first?: boolean;
198
- last?: boolean;
199
- numberOfElements?: number;
200
- pageable?: PageableObject;
201
- empty?: boolean;
117
+ totalPages?: number;
118
+ totalElements?: number;
119
+ size?: number;
120
+ content?: PaymentState[];
121
+ number?: number;
122
+ sort?: SortObject;
123
+ first?: boolean;
124
+ last?: boolean;
125
+ numberOfElements?: number;
126
+ pageable?: PageableObject;
127
+ empty?: boolean;
202
128
  }
203
129
  declare global {
204
- interface checkApi {
205
- checkStateRestful: {
206
- /**
207
- * ---
208
- *
209
- * [GET]
210
- *
211
- * **path:** /病历/服务/{id}
212
- *
213
- * ---
214
- *
215
- * **Path Parameters**
216
- * ```ts
217
- * type PathParameters = {
218
- * id: string
219
- * }
220
- * ```
221
- *
222
- * ---
223
- *
224
- * **Response**
225
- * ```ts
226
- * type Response = {
227
- * id?: string
228
- * // [items] start
229
- * // [items] end
230
- * metasState?: Array<{
231
- * id?: string
232
- * ownerState?: {
233
- * id?: string
234
- * doctorId?: string
235
- * name?: string
236
- * createdTimestamp?: string
237
- * updatedTimestamp?: string
238
- * identity?: string
239
- * gender?: string
240
- * phoneNumber?: string
241
- * birthdate?: string
242
- * // [items] start
243
- * // [items] end
244
- * remarks?: string[]
245
- * // [items] start
246
- * // [items] end
247
- * tagsState?: Array<{
248
- * key?: string
249
- * // [items] start
250
- * // [items] end
251
- * annotationsState?: Array<{
252
- * value?: string
253
- * actor?: string
254
- * timestamp?: string
255
- * }>
256
- * }>
257
- * mainSymptom?: string
258
- * }
259
- * type?: string
260
- * // [items] start
261
- * // [items] end
262
- * tagsState?: Array<{
263
- * key?: string
264
- * // [items] start
265
- * // [items] end
266
- * annotationsState?: Array<{
267
- * value?: string
268
- * actor?: string
269
- * timestamp?: string
270
- * }>
271
- * }>
272
- * createdTimestamp?: string
273
- * updatedTimestamp?: string
274
- * }>
275
- * prescriptionsState?: string
276
- * diagnosis?: string
277
- * doctorState?: {
278
- * id?: string
279
- * name?: string
280
- * createdTimestamp?: string
281
- * updatedTimestamp?: string
282
- * gender?: string
283
- * identityNumber?: string
284
- * phoneNumber?: string
285
- * birthdate?: string
286
- * }
287
- * patientState?: {
288
- * id?: string
289
- * doctorId?: string
290
- * name?: string
291
- * createdTimestamp?: string
292
- * updatedTimestamp?: string
293
- * identity?: string
294
- * gender?: string
295
- * phoneNumber?: string
296
- * birthdate?: string
297
- * // [items] start
298
- * // [items] end
299
- * remarks?: string[]
300
- * // [items] start
301
- * // [items] end
302
- * tagsState?: Array<{
303
- * key?: string
304
- * // [items] start
305
- * // [items] end
306
- * annotationsState?: Array<{
307
- * value?: string
308
- * actor?: string
309
- * timestamp?: string
310
- * }>
311
- * }>
312
- * mainSymptom?: string
313
- * }
314
- * paymentType?: string
315
- * outpatientType?: string
316
- * createdTimestamp?: string
317
- * updatedTimestamp?: string
318
- * // [items] start
319
- * // [items] end
320
- * tagsState?: Array<{
321
- * key?: string
322
- * // [items] start
323
- * // [items] end
324
- * annotationsState?: Array<{
325
- * value?: string
326
- * actor?: string
327
- * timestamp?: string
328
- * }>
329
- * }>
330
- * prescriptionPaymentStatus?: number
331
- * outboundStatus?: number
332
- * }
333
- * ```
334
- */
335
- getCheckState<
336
- Config extends Alova2MethodConfig<CheckState> & {
337
- pathParams: {
338
- id: string;
339
- };
340
- },
341
- >(
342
- config: Config,
343
- ): Alova2Method<CheckState, 'checkStateRestful.getCheckState', Config>;
344
- /**
345
- * ---
346
- *
347
- * [PUT]
348
- *
349
- * **path:** /病历/服务/{id}
350
- *
351
- * ---
352
- *
353
- * **Path Parameters**
354
- * ```ts
355
- * type PathParameters = {
356
- * id: string
357
- * }
358
- * ```
359
- *
360
- * ---
361
- *
362
- * **RequestBody**
363
- * ```ts
364
- * type RequestBody = {
365
- * id?: string
366
- * // [items] start
367
- * // [items] end
368
- * metasState?: Array<{
369
- * id?: string
370
- * ownerState?: {
371
- * id?: string
372
- * doctorId?: string
373
- * name?: string
374
- * createdTimestamp?: string
375
- * updatedTimestamp?: string
376
- * identity?: string
377
- * gender?: string
378
- * phoneNumber?: string
379
- * birthdate?: string
380
- * // [items] start
381
- * // [items] end
382
- * remarks?: string[]
383
- * // [items] start
384
- * // [items] end
385
- * tagsState?: Array<{
386
- * key?: string
387
- * // [items] start
388
- * // [items] end
389
- * annotationsState?: Array<{
390
- * value?: string
391
- * actor?: string
392
- * timestamp?: string
393
- * }>
394
- * }>
395
- * mainSymptom?: string
396
- * }
397
- * type?: string
398
- * // [items] start
399
- * // [items] end
400
- * tagsState?: Array<{
401
- * key?: string
402
- * // [items] start
403
- * // [items] end
404
- * annotationsState?: Array<{
405
- * value?: string
406
- * actor?: string
407
- * timestamp?: string
408
- * }>
409
- * }>
410
- * createdTimestamp?: string
411
- * updatedTimestamp?: string
412
- * }>
413
- * prescriptionsState?: string
414
- * diagnosis?: string
415
- * doctorState?: {
416
- * id?: string
417
- * name?: string
418
- * createdTimestamp?: string
419
- * updatedTimestamp?: string
420
- * gender?: string
421
- * identityNumber?: string
422
- * phoneNumber?: string
423
- * birthdate?: string
424
- * }
425
- * patientState?: {
426
- * id?: string
427
- * doctorId?: string
428
- * name?: string
429
- * createdTimestamp?: string
430
- * updatedTimestamp?: string
431
- * identity?: string
432
- * gender?: string
433
- * phoneNumber?: string
434
- * birthdate?: string
435
- * // [items] start
436
- * // [items] end
437
- * remarks?: string[]
438
- * // [items] start
439
- * // [items] end
440
- * tagsState?: Array<{
441
- * key?: string
442
- * // [items] start
443
- * // [items] end
444
- * annotationsState?: Array<{
445
- * value?: string
446
- * actor?: string
447
- * timestamp?: string
448
- * }>
449
- * }>
450
- * mainSymptom?: string
451
- * }
452
- * paymentType?: string
453
- * outpatientType?: string
454
- * createdTimestamp?: string
455
- * updatedTimestamp?: string
456
- * // [items] start
457
- * // [items] end
458
- * tagsState?: Array<{
459
- * key?: string
460
- * // [items] start
461
- * // [items] end
462
- * annotationsState?: Array<{
463
- * value?: string
464
- * actor?: string
465
- * timestamp?: string
466
- * }>
467
- * }>
468
- * prescriptionPaymentStatus?: number
469
- * outboundStatus?: number
470
- * }
471
- * ```
472
- *
473
- * ---
474
- *
475
- * **Response**
476
- * ```ts
477
- * type Response = {
478
- * id?: string
479
- * // [items] start
480
- * // [items] end
481
- * metasState?: Array<{
482
- * id?: string
483
- * ownerState?: {
484
- * id?: string
485
- * doctorId?: string
486
- * name?: string
487
- * createdTimestamp?: string
488
- * updatedTimestamp?: string
489
- * identity?: string
490
- * gender?: string
491
- * phoneNumber?: string
492
- * birthdate?: string
493
- * // [items] start
494
- * // [items] end
495
- * remarks?: string[]
496
- * // [items] start
497
- * // [items] end
498
- * tagsState?: Array<{
499
- * key?: string
500
- * // [items] start
501
- * // [items] end
502
- * annotationsState?: Array<{
503
- * value?: string
504
- * actor?: string
505
- * timestamp?: string
506
- * }>
507
- * }>
508
- * mainSymptom?: string
509
- * }
510
- * type?: string
511
- * // [items] start
512
- * // [items] end
513
- * tagsState?: Array<{
514
- * key?: string
515
- * // [items] start
516
- * // [items] end
517
- * annotationsState?: Array<{
518
- * value?: string
519
- * actor?: string
520
- * timestamp?: string
521
- * }>
522
- * }>
523
- * createdTimestamp?: string
524
- * updatedTimestamp?: string
525
- * }>
526
- * prescriptionsState?: string
527
- * diagnosis?: string
528
- * doctorState?: {
529
- * id?: string
530
- * name?: string
531
- * createdTimestamp?: string
532
- * updatedTimestamp?: string
533
- * gender?: string
534
- * identityNumber?: string
535
- * phoneNumber?: string
536
- * birthdate?: string
537
- * }
538
- * patientState?: {
539
- * id?: string
540
- * doctorId?: string
541
- * name?: string
542
- * createdTimestamp?: string
543
- * updatedTimestamp?: string
544
- * identity?: string
545
- * gender?: string
546
- * phoneNumber?: string
547
- * birthdate?: string
548
- * // [items] start
549
- * // [items] end
550
- * remarks?: string[]
551
- * // [items] start
552
- * // [items] end
553
- * tagsState?: Array<{
554
- * key?: string
555
- * // [items] start
556
- * // [items] end
557
- * annotationsState?: Array<{
558
- * value?: string
559
- * actor?: string
560
- * timestamp?: string
561
- * }>
562
- * }>
563
- * mainSymptom?: string
564
- * }
565
- * paymentType?: string
566
- * outpatientType?: string
567
- * createdTimestamp?: string
568
- * updatedTimestamp?: string
569
- * // [items] start
570
- * // [items] end
571
- * tagsState?: Array<{
572
- * key?: string
573
- * // [items] start
574
- * // [items] end
575
- * annotationsState?: Array<{
576
- * value?: string
577
- * actor?: string
578
- * timestamp?: string
579
- * }>
580
- * }>
581
- * prescriptionPaymentStatus?: number
582
- * outboundStatus?: number
583
- * }
584
- * ```
585
- */
586
- putCheckState<
587
- Config extends Alova2MethodConfig<CheckState> & {
588
- pathParams: {
589
- id: string;
590
- };
591
- data: CheckState;
592
- },
593
- >(
594
- config: Config,
595
- ): Alova2Method<CheckState, 'checkStateRestful.putCheckState', Config>;
596
- /**
597
- * ---
598
- *
599
- * [DELETE]
600
- *
601
- * **path:** /病历/服务/{id}
602
- *
603
- * ---
604
- *
605
- * **Path Parameters**
606
- * ```ts
607
- * type PathParameters = {
608
- * id: string
609
- * }
610
- * ```
611
- *
612
- * ---
613
- *
614
- * **Response**
615
- * ```ts
616
- * type Response = null
617
- * ```
618
- */
619
- deleteCheckState<
620
- Config extends Alova2MethodConfig<null> & {
621
- pathParams: {
622
- id: string;
623
- };
624
- },
625
- >(
626
- config: Config,
627
- ): Alova2Method<null, 'checkStateRestful.deleteCheckState', Config>;
628
- /**
629
- * ---
630
- *
631
- * [GET]
632
- *
633
- * **path:** /病历/服务
634
- *
635
- * ---
636
- *
637
- * **Query Parameters**
638
- * ```ts
639
- * type QueryParameters = {
640
- * patientId?: string
641
- * doctorId?: string
642
- * startTime?: string
643
- * endTime?: string
644
- * patientName?: string
645
- * patientGender?: string
646
- * patientPhoneNumber?: string
647
- * pageSize: number
648
- * page: number
649
- * sort: string
650
- * }
651
- * ```
652
- *
653
- * ---
654
- *
655
- * **Response**
656
- * ```ts
657
- * type Response = {
658
- * totalPages?: number
659
- * totalElements?: number
660
- * size?: number
661
- * // [items] start
662
- * // [items] end
663
- * content?: Array<{
664
- * id?: string
665
- * // [items] start
666
- * // [items] end
667
- * metasState?: Array<{
668
- * id?: string
669
- * ownerState?: {
670
- * id?: string
671
- * doctorId?: string
672
- * name?: string
673
- * createdTimestamp?: string
674
- * updatedTimestamp?: string
675
- * identity?: string
676
- * gender?: string
677
- * phoneNumber?: string
678
- * birthdate?: string
679
- * // [items] start
680
- * // [items] end
681
- * remarks?: string[]
682
- * // [items] start
683
- * // [items] end
684
- * tagsState?: Array<{
685
- * key?: string
686
- * // [items] start
687
- * // [items] end
688
- * annotationsState?: Array<{
689
- * value?: string
690
- * actor?: string
691
- * timestamp?: string
692
- * }>
693
- * }>
694
- * mainSymptom?: string
695
- * }
696
- * type?: string
697
- * // [items] start
698
- * // [items] end
699
- * tagsState?: Array<{
700
- * key?: string
701
- * // [items] start
702
- * // [items] end
703
- * annotationsState?: Array<{
704
- * value?: string
705
- * actor?: string
706
- * timestamp?: string
707
- * }>
708
- * }>
709
- * createdTimestamp?: string
710
- * updatedTimestamp?: string
711
- * }>
712
- * prescriptionsState?: string
713
- * diagnosis?: string
714
- * doctorState?: {
715
- * id?: string
716
- * name?: string
717
- * createdTimestamp?: string
718
- * updatedTimestamp?: string
719
- * gender?: string
720
- * identityNumber?: string
721
- * phoneNumber?: string
722
- * birthdate?: string
723
- * }
724
- * patientState?: {
725
- * id?: string
726
- * doctorId?: string
727
- * name?: string
728
- * createdTimestamp?: string
729
- * updatedTimestamp?: string
730
- * identity?: string
731
- * gender?: string
732
- * phoneNumber?: string
733
- * birthdate?: string
734
- * // [items] start
735
- * // [items] end
736
- * remarks?: string[]
737
- * // [items] start
738
- * // [items] end
739
- * tagsState?: Array<{
740
- * key?: string
741
- * // [items] start
742
- * // [items] end
743
- * annotationsState?: Array<{
744
- * value?: string
745
- * actor?: string
746
- * timestamp?: string
747
- * }>
748
- * }>
749
- * mainSymptom?: string
750
- * }
751
- * paymentType?: string
752
- * outpatientType?: string
753
- * createdTimestamp?: string
754
- * updatedTimestamp?: string
755
- * // [items] start
756
- * // [items] end
757
- * tagsState?: Array<{
758
- * key?: string
759
- * // [items] start
760
- * // [items] end
761
- * annotationsState?: Array<{
762
- * value?: string
763
- * actor?: string
764
- * timestamp?: string
765
- * }>
766
- * }>
767
- * prescriptionPaymentStatus?: number
768
- * outboundStatus?: number
769
- * }>
770
- * number?: number
771
- * sort?: {
772
- * empty?: boolean
773
- * sorted?: boolean
774
- * unsorted?: boolean
775
- * }
776
- * first?: boolean
777
- * last?: boolean
778
- * numberOfElements?: number
779
- * pageable?: {
780
- * offset?: number
781
- * sort?: {
782
- * empty?: boolean
783
- * sorted?: boolean
784
- * unsorted?: boolean
785
- * }
786
- * pageSize?: number
787
- * paged?: boolean
788
- * pageNumber?: number
789
- * unpaged?: boolean
790
- * }
791
- * empty?: boolean
792
- * }
793
- * ```
794
- */
795
- queryCheckState<
796
- Config extends Alova2MethodConfig<PageCheckState> & {
797
- params: {
798
- patientId?: string;
799
- doctorId?: string;
800
- startTime?: string;
801
- endTime?: string;
802
- patientName?: string;
803
- patientGender?: string;
804
- patientPhoneNumber?: string;
805
- pageSize: number;
806
- page: number;
807
- sort: string;
808
- };
809
- },
810
- >(
811
- config: Config,
812
- ): Alova2Method<PageCheckState, 'checkStateRestful.queryCheckState', Config>;
813
- /**
814
- * ---
815
- *
816
- * [POST]
817
- *
818
- * **path:** /病历/服务
819
- *
820
- * ---
821
- *
822
- * **RequestBody**
823
- * ```ts
824
- * type RequestBody = {
825
- * id?: string
826
- * // [items] start
827
- * // [items] end
828
- * metasState?: Array<{
829
- * id?: string
830
- * ownerState?: {
831
- * id?: string
832
- * doctorId?: string
833
- * name?: string
834
- * createdTimestamp?: string
835
- * updatedTimestamp?: string
836
- * identity?: string
837
- * gender?: string
838
- * phoneNumber?: string
839
- * birthdate?: string
840
- * // [items] start
841
- * // [items] end
842
- * remarks?: string[]
843
- * // [items] start
844
- * // [items] end
845
- * tagsState?: Array<{
846
- * key?: string
847
- * // [items] start
848
- * // [items] end
849
- * annotationsState?: Array<{
850
- * value?: string
851
- * actor?: string
852
- * timestamp?: string
853
- * }>
854
- * }>
855
- * mainSymptom?: string
856
- * }
857
- * type?: string
858
- * // [items] start
859
- * // [items] end
860
- * tagsState?: Array<{
861
- * key?: string
862
- * // [items] start
863
- * // [items] end
864
- * annotationsState?: Array<{
865
- * value?: string
866
- * actor?: string
867
- * timestamp?: string
868
- * }>
869
- * }>
870
- * createdTimestamp?: string
871
- * updatedTimestamp?: string
872
- * }>
873
- * prescriptionsState?: string
874
- * diagnosis?: string
875
- * doctorState?: {
876
- * id?: string
877
- * name?: string
878
- * createdTimestamp?: string
879
- * updatedTimestamp?: string
880
- * gender?: string
881
- * identityNumber?: string
882
- * phoneNumber?: string
883
- * birthdate?: string
884
- * }
885
- * patientState?: {
886
- * id?: string
887
- * doctorId?: string
888
- * name?: string
889
- * createdTimestamp?: string
890
- * updatedTimestamp?: string
891
- * identity?: string
892
- * gender?: string
893
- * phoneNumber?: string
894
- * birthdate?: string
895
- * // [items] start
896
- * // [items] end
897
- * remarks?: string[]
898
- * // [items] start
899
- * // [items] end
900
- * tagsState?: Array<{
901
- * key?: string
902
- * // [items] start
903
- * // [items] end
904
- * annotationsState?: Array<{
905
- * value?: string
906
- * actor?: string
907
- * timestamp?: string
908
- * }>
909
- * }>
910
- * mainSymptom?: string
911
- * }
912
- * paymentType?: string
913
- * outpatientType?: string
914
- * createdTimestamp?: string
915
- * updatedTimestamp?: string
916
- * // [items] start
917
- * // [items] end
918
- * tagsState?: Array<{
919
- * key?: string
920
- * // [items] start
921
- * // [items] end
922
- * annotationsState?: Array<{
923
- * value?: string
924
- * actor?: string
925
- * timestamp?: string
926
- * }>
927
- * }>
928
- * prescriptionPaymentStatus?: number
929
- * outboundStatus?: number
930
- * }
931
- * ```
932
- *
933
- * ---
934
- *
935
- * **Response**
936
- * ```ts
937
- * type Response = {
938
- * id?: string
939
- * // [items] start
940
- * // [items] end
941
- * metasState?: Array<{
942
- * id?: string
943
- * ownerState?: {
944
- * id?: string
945
- * doctorId?: string
946
- * name?: string
947
- * createdTimestamp?: string
948
- * updatedTimestamp?: string
949
- * identity?: string
950
- * gender?: string
951
- * phoneNumber?: string
952
- * birthdate?: string
953
- * // [items] start
954
- * // [items] end
955
- * remarks?: string[]
956
- * // [items] start
957
- * // [items] end
958
- * tagsState?: Array<{
959
- * key?: string
960
- * // [items] start
961
- * // [items] end
962
- * annotationsState?: Array<{
963
- * value?: string
964
- * actor?: string
965
- * timestamp?: string
966
- * }>
967
- * }>
968
- * mainSymptom?: string
969
- * }
970
- * type?: string
971
- * // [items] start
972
- * // [items] end
973
- * tagsState?: Array<{
974
- * key?: string
975
- * // [items] start
976
- * // [items] end
977
- * annotationsState?: Array<{
978
- * value?: string
979
- * actor?: string
980
- * timestamp?: string
981
- * }>
982
- * }>
983
- * createdTimestamp?: string
984
- * updatedTimestamp?: string
985
- * }>
986
- * prescriptionsState?: string
987
- * diagnosis?: string
988
- * doctorState?: {
989
- * id?: string
990
- * name?: string
991
- * createdTimestamp?: string
992
- * updatedTimestamp?: string
993
- * gender?: string
994
- * identityNumber?: string
995
- * phoneNumber?: string
996
- * birthdate?: string
997
- * }
998
- * patientState?: {
999
- * id?: string
1000
- * doctorId?: string
1001
- * name?: string
1002
- * createdTimestamp?: string
1003
- * updatedTimestamp?: string
1004
- * identity?: string
1005
- * gender?: string
1006
- * phoneNumber?: string
1007
- * birthdate?: string
1008
- * // [items] start
1009
- * // [items] end
1010
- * remarks?: string[]
1011
- * // [items] start
1012
- * // [items] end
1013
- * tagsState?: Array<{
1014
- * key?: string
1015
- * // [items] start
1016
- * // [items] end
1017
- * annotationsState?: Array<{
1018
- * value?: string
1019
- * actor?: string
1020
- * timestamp?: string
1021
- * }>
1022
- * }>
1023
- * mainSymptom?: string
1024
- * }
1025
- * paymentType?: string
1026
- * outpatientType?: string
1027
- * createdTimestamp?: string
1028
- * updatedTimestamp?: string
1029
- * // [items] start
1030
- * // [items] end
1031
- * tagsState?: Array<{
1032
- * key?: string
1033
- * // [items] start
1034
- * // [items] end
1035
- * annotationsState?: Array<{
1036
- * value?: string
1037
- * actor?: string
1038
- * timestamp?: string
1039
- * }>
1040
- * }>
1041
- * prescriptionPaymentStatus?: number
1042
- * outboundStatus?: number
1043
- * }
1044
- * ```
1045
- */
1046
- postCheckState<
1047
- Config extends Alova2MethodConfig<CheckState> & {
1048
- data: CheckState;
1049
- },
1050
- >(
1051
- config: Config,
1052
- ): Alova2Method<CheckState, 'checkStateRestful.postCheckState', Config>;
1053
- /**
1054
- * ---
1055
- *
1056
- * [GET]
1057
- *
1058
- * **path:** /病历/服务/药方/支付信息
1059
- *
1060
- * ---
1061
- *
1062
- * **Query Parameters**
1063
- * ```ts
1064
- * type QueryParameters = {
1065
- * doctorId?: string
1066
- * patientId?: string
1067
- * prescriptionPaymentStatus?: number
1068
- * outboundStatus?: number
1069
- * patientName?: string
1070
- * patientGender?: string
1071
- * patientPhoneNumber?: string
1072
- * pageSize?: number
1073
- * page?: number
1074
- * }
1075
- * ```
1076
- *
1077
- * ---
1078
- *
1079
- * **Response**
1080
- * ```ts
1081
- * type Response = {
1082
- * totalPages?: number
1083
- * totalElements?: number
1084
- * size?: number
1085
- * // [items] start
1086
- * // [items] end
1087
- * content?: Array<{
1088
- * id?: string
1089
- * prescription?: string
1090
- * doctorId?: string
1091
- * patientId?: string
1092
- * patientName?: string
1093
- * patientPhone?: string
1094
- * patientGender?: string
1095
- * createdTimestamp?: number
1096
- * updatedTimestamp?: number
1097
- * prescriptionPaymentStatus?: number
1098
- * outboundStatus?: number
1099
- * }>
1100
- * number?: number
1101
- * sort?: {
1102
- * empty?: boolean
1103
- * sorted?: boolean
1104
- * unsorted?: boolean
1105
- * }
1106
- * first?: boolean
1107
- * last?: boolean
1108
- * numberOfElements?: number
1109
- * pageable?: {
1110
- * offset?: number
1111
- * sort?: {
1112
- * empty?: boolean
1113
- * sorted?: boolean
1114
- * unsorted?: boolean
1115
- * }
1116
- * pageSize?: number
1117
- * paged?: boolean
1118
- * pageNumber?: number
1119
- * unpaged?: boolean
1120
- * }
1121
- * empty?: boolean
1122
- * }
1123
- * ```
1124
- */
1125
- queryPaymentState<
1126
- Config extends Alova2MethodConfig<PagePaymentState> & {
1127
- params: {
1128
- doctorId?: string;
1129
- patientId?: string;
1130
- prescriptionPaymentStatus?: number;
1131
- outboundStatus?: number;
1132
- patientName?: string;
1133
- patientGender?: string;
1134
- patientPhoneNumber?: string;
1135
- pageSize?: number;
1136
- page?: number;
1137
- };
1138
- },
1139
- >(
1140
- config: Config,
1141
- ): Alova2Method<PagePaymentState, 'checkStateRestful.queryPaymentState', Config>;
1142
- /**
1143
- * ---
1144
- *
1145
- * [GET]
1146
- *
1147
- * **path:** /病历/服务/统计/病历/日期
1148
- *
1149
- * ---
1150
- *
1151
- * **Response**
1152
- * ```ts
1153
- * type Response = Array<{
1154
- * date?: string
1155
- * count?: number
1156
- * }>
1157
- * ```
1158
- */
1159
- datesOfCheckState<Config extends Alova2MethodConfig<DateDistribute[]>>(
1160
- config?: Config,
1161
- ): Alova2Method<DateDistribute[], 'checkStateRestful.datesOfCheckState', Config>;
1162
- /**
1163
- * ---
1164
- *
1165
- * [GET]
1166
- *
1167
- * **path:** /病历/服务/统计/病历/总数
1168
- *
1169
- * ---
1170
- *
1171
- * **Response**
1172
- * ```ts
1173
- * type Response = number
1174
- * ```
1175
- */
1176
- totalOfCheckState<Config extends Alova2MethodConfig<number>>(
1177
- config?: Config,
1178
- ): Alova2Method<number, 'checkStateRestful.totalOfCheckState', Config>;
1179
- /**
1180
- * ---
1181
- *
1182
- * [GET]
1183
- *
1184
- * **path:** /病历/服务/统计/病历/性别/分布
1185
- *
1186
- * ---
1187
- *
1188
- * **Response**
1189
- * ```ts
1190
- * type Response = Array<{
1191
- * gender?: string
1192
- * count?: number
1193
- * }>
1194
- * ```
1195
- */
1196
- genderDistributeOfCheckState<Config extends Alova2MethodConfig<GenderDistribute[]>>(
1197
- config?: Config,
1198
- ): Alova2Method<GenderDistribute[], 'checkStateRestful.genderDistributeOfCheckState', Config>;
1199
- /**
1200
- * ---
1201
- *
1202
- * [GET]
1203
- *
1204
- * **path:** /病历/服务/统计/病历/年龄/分布
1205
- *
1206
- * ---
1207
- *
1208
- * **Response**
1209
- * ```ts
1210
- * type Response = Array<{
1211
- * age?: number
1212
- * count?: number
1213
- * }>
1214
- * ```
1215
- */
1216
- ageDistributeOfCheckState<Config extends Alova2MethodConfig<AgeDistribute[]>>(
1217
- config?: Config,
1218
- ): Alova2Method<AgeDistribute[], 'checkStateRestful.ageDistributeOfCheckState', Config>;
1219
- /**
1220
- * ---
1221
- *
1222
- * [GET]
1223
- *
1224
- * **path:** /病历/服务/统计/病历/今日
1225
- *
1226
- * ---
1227
- *
1228
- * **Response**
1229
- * ```ts
1230
- * type Response = number
1231
- * ```
1232
- */
1233
- totalOfCheckByTodayState<Config extends Alova2MethodConfig<number>>(
1234
- config?: Config,
1235
- ): Alova2Method<number, 'checkStateRestful.totalOfCheckByTodayState', Config>;
1236
- };
1237
- }
1238
-
1239
- var checkApi: checkApi;
130
+ interface checkApi {
131
+ checkStateRestful: {
132
+ /**
133
+ * ---
134
+ *
135
+ * [GET]
136
+ *
137
+ * **path:** /病历/服务/{id}
138
+ *
139
+ * ---
140
+ *
141
+ * **Path Parameters**
142
+ * ```ts
143
+ * type PathParameters = {
144
+ * id: string
145
+ * }
146
+ * ```
147
+ *
148
+ * ---
149
+ *
150
+ * **Response**
151
+ * ```ts
152
+ * type Response = {
153
+ * id?: string
154
+ * // [items] start
155
+ * // [items] end
156
+ * metasState?: Array<{
157
+ * id?: string
158
+ * ownerState?: {
159
+ * id?: string
160
+ * doctorId?: string
161
+ * name?: string
162
+ * createdTimestamp?: string
163
+ * updatedTimestamp?: string
164
+ * identity?: string
165
+ * gender?: string
166
+ * phoneNumber?: string
167
+ * birthdate?: string
168
+ * // [items] start
169
+ * // [items] end
170
+ * remarks?: string[]
171
+ * // [items] start
172
+ * // [items] end
173
+ * tagsState?: Array<{
174
+ * key?: string
175
+ * // [items] start
176
+ * // [items] end
177
+ * annotationsState?: Array<{
178
+ * value?: string
179
+ * actor?: string
180
+ * timestamp?: string
181
+ * }>
182
+ * }>
183
+ * mainSymptom?: string
184
+ * }
185
+ * type?: string
186
+ * // [items] start
187
+ * // [items] end
188
+ * tagsState?: Array<{
189
+ * key?: string
190
+ * // [items] start
191
+ * // [items] end
192
+ * annotationsState?: Array<{
193
+ * value?: string
194
+ * actor?: string
195
+ * timestamp?: string
196
+ * }>
197
+ * }>
198
+ * createdTimestamp?: string
199
+ * updatedTimestamp?: string
200
+ * }>
201
+ * prescriptionsState?: string
202
+ * diagnosis?: string
203
+ * doctorState?: {
204
+ * id?: string
205
+ * name?: string
206
+ * createdTimestamp?: string
207
+ * updatedTimestamp?: string
208
+ * gender?: string
209
+ * identityNumber?: string
210
+ * phoneNumber?: string
211
+ * birthdate?: string
212
+ * }
213
+ * patientState?: {
214
+ * id?: string
215
+ * doctorId?: string
216
+ * name?: string
217
+ * createdTimestamp?: string
218
+ * updatedTimestamp?: string
219
+ * identity?: string
220
+ * gender?: string
221
+ * phoneNumber?: string
222
+ * birthdate?: string
223
+ * // [items] start
224
+ * // [items] end
225
+ * remarks?: string[]
226
+ * // [items] start
227
+ * // [items] end
228
+ * tagsState?: Array<{
229
+ * key?: string
230
+ * // [items] start
231
+ * // [items] end
232
+ * annotationsState?: Array<{
233
+ * value?: string
234
+ * actor?: string
235
+ * timestamp?: string
236
+ * }>
237
+ * }>
238
+ * mainSymptom?: string
239
+ * }
240
+ * paymentType?: string
241
+ * outpatientType?: string
242
+ * createdTimestamp?: string
243
+ * updatedTimestamp?: string
244
+ * // [items] start
245
+ * // [items] end
246
+ * tagsState?: Array<{
247
+ * key?: string
248
+ * // [items] start
249
+ * // [items] end
250
+ * annotationsState?: Array<{
251
+ * value?: string
252
+ * actor?: string
253
+ * timestamp?: string
254
+ * }>
255
+ * }>
256
+ * prescriptionPaymentStatus?: number
257
+ * outboundStatus?: number
258
+ * }
259
+ * ```
260
+ */
261
+ getCheckState<Config extends Alova2MethodConfig<CheckState> & {
262
+ pathParams: {
263
+ id: string;
264
+ };
265
+ }>(config: Config): Alova2Method<CheckState, 'checkStateRestful.getCheckState', Config>;
266
+ /**
267
+ * ---
268
+ *
269
+ * [PUT]
270
+ *
271
+ * **path:** /病历/服务/{id}
272
+ *
273
+ * ---
274
+ *
275
+ * **Path Parameters**
276
+ * ```ts
277
+ * type PathParameters = {
278
+ * id: string
279
+ * }
280
+ * ```
281
+ *
282
+ * ---
283
+ *
284
+ * **RequestBody**
285
+ * ```ts
286
+ * type RequestBody = {
287
+ * id?: string
288
+ * // [items] start
289
+ * // [items] end
290
+ * metasState?: Array<{
291
+ * id?: string
292
+ * ownerState?: {
293
+ * id?: string
294
+ * doctorId?: string
295
+ * name?: string
296
+ * createdTimestamp?: string
297
+ * updatedTimestamp?: string
298
+ * identity?: string
299
+ * gender?: string
300
+ * phoneNumber?: string
301
+ * birthdate?: string
302
+ * // [items] start
303
+ * // [items] end
304
+ * remarks?: string[]
305
+ * // [items] start
306
+ * // [items] end
307
+ * tagsState?: Array<{
308
+ * key?: string
309
+ * // [items] start
310
+ * // [items] end
311
+ * annotationsState?: Array<{
312
+ * value?: string
313
+ * actor?: string
314
+ * timestamp?: string
315
+ * }>
316
+ * }>
317
+ * mainSymptom?: string
318
+ * }
319
+ * type?: string
320
+ * // [items] start
321
+ * // [items] end
322
+ * tagsState?: Array<{
323
+ * key?: string
324
+ * // [items] start
325
+ * // [items] end
326
+ * annotationsState?: Array<{
327
+ * value?: string
328
+ * actor?: string
329
+ * timestamp?: string
330
+ * }>
331
+ * }>
332
+ * createdTimestamp?: string
333
+ * updatedTimestamp?: string
334
+ * }>
335
+ * prescriptionsState?: string
336
+ * diagnosis?: string
337
+ * doctorState?: {
338
+ * id?: string
339
+ * name?: string
340
+ * createdTimestamp?: string
341
+ * updatedTimestamp?: string
342
+ * gender?: string
343
+ * identityNumber?: string
344
+ * phoneNumber?: string
345
+ * birthdate?: string
346
+ * }
347
+ * patientState?: {
348
+ * id?: string
349
+ * doctorId?: string
350
+ * name?: string
351
+ * createdTimestamp?: string
352
+ * updatedTimestamp?: string
353
+ * identity?: string
354
+ * gender?: string
355
+ * phoneNumber?: string
356
+ * birthdate?: string
357
+ * // [items] start
358
+ * // [items] end
359
+ * remarks?: string[]
360
+ * // [items] start
361
+ * // [items] end
362
+ * tagsState?: Array<{
363
+ * key?: string
364
+ * // [items] start
365
+ * // [items] end
366
+ * annotationsState?: Array<{
367
+ * value?: string
368
+ * actor?: string
369
+ * timestamp?: string
370
+ * }>
371
+ * }>
372
+ * mainSymptom?: string
373
+ * }
374
+ * paymentType?: string
375
+ * outpatientType?: string
376
+ * createdTimestamp?: string
377
+ * updatedTimestamp?: string
378
+ * // [items] start
379
+ * // [items] end
380
+ * tagsState?: Array<{
381
+ * key?: string
382
+ * // [items] start
383
+ * // [items] end
384
+ * annotationsState?: Array<{
385
+ * value?: string
386
+ * actor?: string
387
+ * timestamp?: string
388
+ * }>
389
+ * }>
390
+ * prescriptionPaymentStatus?: number
391
+ * outboundStatus?: number
392
+ * }
393
+ * ```
394
+ *
395
+ * ---
396
+ *
397
+ * **Response**
398
+ * ```ts
399
+ * type Response = {
400
+ * id?: string
401
+ * // [items] start
402
+ * // [items] end
403
+ * metasState?: Array<{
404
+ * id?: string
405
+ * ownerState?: {
406
+ * id?: string
407
+ * doctorId?: string
408
+ * name?: string
409
+ * createdTimestamp?: string
410
+ * updatedTimestamp?: string
411
+ * identity?: string
412
+ * gender?: string
413
+ * phoneNumber?: string
414
+ * birthdate?: string
415
+ * // [items] start
416
+ * // [items] end
417
+ * remarks?: string[]
418
+ * // [items] start
419
+ * // [items] end
420
+ * tagsState?: Array<{
421
+ * key?: string
422
+ * // [items] start
423
+ * // [items] end
424
+ * annotationsState?: Array<{
425
+ * value?: string
426
+ * actor?: string
427
+ * timestamp?: string
428
+ * }>
429
+ * }>
430
+ * mainSymptom?: string
431
+ * }
432
+ * type?: string
433
+ * // [items] start
434
+ * // [items] end
435
+ * tagsState?: Array<{
436
+ * key?: string
437
+ * // [items] start
438
+ * // [items] end
439
+ * annotationsState?: Array<{
440
+ * value?: string
441
+ * actor?: string
442
+ * timestamp?: string
443
+ * }>
444
+ * }>
445
+ * createdTimestamp?: string
446
+ * updatedTimestamp?: string
447
+ * }>
448
+ * prescriptionsState?: string
449
+ * diagnosis?: string
450
+ * doctorState?: {
451
+ * id?: string
452
+ * name?: string
453
+ * createdTimestamp?: string
454
+ * updatedTimestamp?: string
455
+ * gender?: string
456
+ * identityNumber?: string
457
+ * phoneNumber?: string
458
+ * birthdate?: string
459
+ * }
460
+ * patientState?: {
461
+ * id?: string
462
+ * doctorId?: string
463
+ * name?: string
464
+ * createdTimestamp?: string
465
+ * updatedTimestamp?: string
466
+ * identity?: string
467
+ * gender?: string
468
+ * phoneNumber?: string
469
+ * birthdate?: string
470
+ * // [items] start
471
+ * // [items] end
472
+ * remarks?: string[]
473
+ * // [items] start
474
+ * // [items] end
475
+ * tagsState?: Array<{
476
+ * key?: string
477
+ * // [items] start
478
+ * // [items] end
479
+ * annotationsState?: Array<{
480
+ * value?: string
481
+ * actor?: string
482
+ * timestamp?: string
483
+ * }>
484
+ * }>
485
+ * mainSymptom?: string
486
+ * }
487
+ * paymentType?: string
488
+ * outpatientType?: string
489
+ * createdTimestamp?: string
490
+ * updatedTimestamp?: string
491
+ * // [items] start
492
+ * // [items] end
493
+ * tagsState?: Array<{
494
+ * key?: string
495
+ * // [items] start
496
+ * // [items] end
497
+ * annotationsState?: Array<{
498
+ * value?: string
499
+ * actor?: string
500
+ * timestamp?: string
501
+ * }>
502
+ * }>
503
+ * prescriptionPaymentStatus?: number
504
+ * outboundStatus?: number
505
+ * }
506
+ * ```
507
+ */
508
+ putCheckState<Config extends Alova2MethodConfig<CheckState> & {
509
+ pathParams: {
510
+ id: string;
511
+ };
512
+ data: CheckState;
513
+ }>(config: Config): Alova2Method<CheckState, 'checkStateRestful.putCheckState', Config>;
514
+ /**
515
+ * ---
516
+ *
517
+ * [DELETE]
518
+ *
519
+ * **path:** /病历/服务/{id}
520
+ *
521
+ * ---
522
+ *
523
+ * **Path Parameters**
524
+ * ```ts
525
+ * type PathParameters = {
526
+ * id: string
527
+ * }
528
+ * ```
529
+ *
530
+ * ---
531
+ *
532
+ * **Response**
533
+ * ```ts
534
+ * type Response = null
535
+ * ```
536
+ */
537
+ deleteCheckState<Config extends Alova2MethodConfig<null> & {
538
+ pathParams: {
539
+ id: string;
540
+ };
541
+ }>(config: Config): Alova2Method<null, 'checkStateRestful.deleteCheckState', Config>;
542
+ /**
543
+ * ---
544
+ *
545
+ * [GET]
546
+ *
547
+ * **path:** /病历/服务
548
+ *
549
+ * ---
550
+ *
551
+ * **Query Parameters**
552
+ * ```ts
553
+ * type QueryParameters = {
554
+ * patientId?: string
555
+ * doctorId?: string
556
+ * startTime?: string
557
+ * endTime?: string
558
+ * patientName?: string
559
+ * patientGender?: string
560
+ * patientPhoneNumber?: string
561
+ * pageSize: number
562
+ * page: number
563
+ * sort: string
564
+ * }
565
+ * ```
566
+ *
567
+ * ---
568
+ *
569
+ * **Response**
570
+ * ```ts
571
+ * type Response = {
572
+ * totalPages?: number
573
+ * totalElements?: number
574
+ * size?: number
575
+ * // [items] start
576
+ * // [items] end
577
+ * content?: Array<{
578
+ * id?: string
579
+ * // [items] start
580
+ * // [items] end
581
+ * metasState?: Array<{
582
+ * id?: string
583
+ * ownerState?: {
584
+ * id?: string
585
+ * doctorId?: string
586
+ * name?: string
587
+ * createdTimestamp?: string
588
+ * updatedTimestamp?: string
589
+ * identity?: string
590
+ * gender?: string
591
+ * phoneNumber?: string
592
+ * birthdate?: string
593
+ * // [items] start
594
+ * // [items] end
595
+ * remarks?: string[]
596
+ * // [items] start
597
+ * // [items] end
598
+ * tagsState?: Array<{
599
+ * key?: string
600
+ * // [items] start
601
+ * // [items] end
602
+ * annotationsState?: Array<{
603
+ * value?: string
604
+ * actor?: string
605
+ * timestamp?: string
606
+ * }>
607
+ * }>
608
+ * mainSymptom?: string
609
+ * }
610
+ * type?: string
611
+ * // [items] start
612
+ * // [items] end
613
+ * tagsState?: Array<{
614
+ * key?: string
615
+ * // [items] start
616
+ * // [items] end
617
+ * annotationsState?: Array<{
618
+ * value?: string
619
+ * actor?: string
620
+ * timestamp?: string
621
+ * }>
622
+ * }>
623
+ * createdTimestamp?: string
624
+ * updatedTimestamp?: string
625
+ * }>
626
+ * prescriptionsState?: string
627
+ * diagnosis?: string
628
+ * doctorState?: {
629
+ * id?: string
630
+ * name?: string
631
+ * createdTimestamp?: string
632
+ * updatedTimestamp?: string
633
+ * gender?: string
634
+ * identityNumber?: string
635
+ * phoneNumber?: string
636
+ * birthdate?: string
637
+ * }
638
+ * patientState?: {
639
+ * id?: string
640
+ * doctorId?: string
641
+ * name?: string
642
+ * createdTimestamp?: string
643
+ * updatedTimestamp?: string
644
+ * identity?: string
645
+ * gender?: string
646
+ * phoneNumber?: string
647
+ * birthdate?: string
648
+ * // [items] start
649
+ * // [items] end
650
+ * remarks?: string[]
651
+ * // [items] start
652
+ * // [items] end
653
+ * tagsState?: Array<{
654
+ * key?: string
655
+ * // [items] start
656
+ * // [items] end
657
+ * annotationsState?: Array<{
658
+ * value?: string
659
+ * actor?: string
660
+ * timestamp?: string
661
+ * }>
662
+ * }>
663
+ * mainSymptom?: string
664
+ * }
665
+ * paymentType?: string
666
+ * outpatientType?: string
667
+ * createdTimestamp?: string
668
+ * updatedTimestamp?: string
669
+ * // [items] start
670
+ * // [items] end
671
+ * tagsState?: Array<{
672
+ * key?: string
673
+ * // [items] start
674
+ * // [items] end
675
+ * annotationsState?: Array<{
676
+ * value?: string
677
+ * actor?: string
678
+ * timestamp?: string
679
+ * }>
680
+ * }>
681
+ * prescriptionPaymentStatus?: number
682
+ * outboundStatus?: number
683
+ * }>
684
+ * number?: number
685
+ * sort?: {
686
+ * empty?: boolean
687
+ * sorted?: boolean
688
+ * unsorted?: boolean
689
+ * }
690
+ * first?: boolean
691
+ * last?: boolean
692
+ * numberOfElements?: number
693
+ * pageable?: {
694
+ * offset?: number
695
+ * sort?: {
696
+ * empty?: boolean
697
+ * sorted?: boolean
698
+ * unsorted?: boolean
699
+ * }
700
+ * pageSize?: number
701
+ * paged?: boolean
702
+ * pageNumber?: number
703
+ * unpaged?: boolean
704
+ * }
705
+ * empty?: boolean
706
+ * }
707
+ * ```
708
+ */
709
+ queryCheckState<Config extends Alova2MethodConfig<PageCheckState> & {
710
+ params: {
711
+ patientId?: string;
712
+ doctorId?: string;
713
+ startTime?: string;
714
+ endTime?: string;
715
+ patientName?: string;
716
+ patientGender?: string;
717
+ patientPhoneNumber?: string;
718
+ pageSize: number;
719
+ page: number;
720
+ sort: string;
721
+ };
722
+ }>(config: Config): Alova2Method<PageCheckState, 'checkStateRestful.queryCheckState', Config>;
723
+ /**
724
+ * ---
725
+ *
726
+ * [POST]
727
+ *
728
+ * **path:** /病历/服务
729
+ *
730
+ * ---
731
+ *
732
+ * **RequestBody**
733
+ * ```ts
734
+ * type RequestBody = {
735
+ * id?: string
736
+ * // [items] start
737
+ * // [items] end
738
+ * metasState?: Array<{
739
+ * id?: string
740
+ * ownerState?: {
741
+ * id?: string
742
+ * doctorId?: string
743
+ * name?: string
744
+ * createdTimestamp?: string
745
+ * updatedTimestamp?: string
746
+ * identity?: string
747
+ * gender?: string
748
+ * phoneNumber?: string
749
+ * birthdate?: string
750
+ * // [items] start
751
+ * // [items] end
752
+ * remarks?: string[]
753
+ * // [items] start
754
+ * // [items] end
755
+ * tagsState?: Array<{
756
+ * key?: string
757
+ * // [items] start
758
+ * // [items] end
759
+ * annotationsState?: Array<{
760
+ * value?: string
761
+ * actor?: string
762
+ * timestamp?: string
763
+ * }>
764
+ * }>
765
+ * mainSymptom?: string
766
+ * }
767
+ * type?: string
768
+ * // [items] start
769
+ * // [items] end
770
+ * tagsState?: Array<{
771
+ * key?: string
772
+ * // [items] start
773
+ * // [items] end
774
+ * annotationsState?: Array<{
775
+ * value?: string
776
+ * actor?: string
777
+ * timestamp?: string
778
+ * }>
779
+ * }>
780
+ * createdTimestamp?: string
781
+ * updatedTimestamp?: string
782
+ * }>
783
+ * prescriptionsState?: string
784
+ * diagnosis?: string
785
+ * doctorState?: {
786
+ * id?: string
787
+ * name?: string
788
+ * createdTimestamp?: string
789
+ * updatedTimestamp?: string
790
+ * gender?: string
791
+ * identityNumber?: string
792
+ * phoneNumber?: string
793
+ * birthdate?: string
794
+ * }
795
+ * patientState?: {
796
+ * id?: string
797
+ * doctorId?: string
798
+ * name?: string
799
+ * createdTimestamp?: string
800
+ * updatedTimestamp?: string
801
+ * identity?: string
802
+ * gender?: string
803
+ * phoneNumber?: string
804
+ * birthdate?: string
805
+ * // [items] start
806
+ * // [items] end
807
+ * remarks?: string[]
808
+ * // [items] start
809
+ * // [items] end
810
+ * tagsState?: Array<{
811
+ * key?: string
812
+ * // [items] start
813
+ * // [items] end
814
+ * annotationsState?: Array<{
815
+ * value?: string
816
+ * actor?: string
817
+ * timestamp?: string
818
+ * }>
819
+ * }>
820
+ * mainSymptom?: string
821
+ * }
822
+ * paymentType?: string
823
+ * outpatientType?: string
824
+ * createdTimestamp?: string
825
+ * updatedTimestamp?: string
826
+ * // [items] start
827
+ * // [items] end
828
+ * tagsState?: Array<{
829
+ * key?: string
830
+ * // [items] start
831
+ * // [items] end
832
+ * annotationsState?: Array<{
833
+ * value?: string
834
+ * actor?: string
835
+ * timestamp?: string
836
+ * }>
837
+ * }>
838
+ * prescriptionPaymentStatus?: number
839
+ * outboundStatus?: number
840
+ * }
841
+ * ```
842
+ *
843
+ * ---
844
+ *
845
+ * **Response**
846
+ * ```ts
847
+ * type Response = {
848
+ * id?: string
849
+ * // [items] start
850
+ * // [items] end
851
+ * metasState?: Array<{
852
+ * id?: string
853
+ * ownerState?: {
854
+ * id?: string
855
+ * doctorId?: string
856
+ * name?: string
857
+ * createdTimestamp?: string
858
+ * updatedTimestamp?: string
859
+ * identity?: string
860
+ * gender?: string
861
+ * phoneNumber?: string
862
+ * birthdate?: string
863
+ * // [items] start
864
+ * // [items] end
865
+ * remarks?: string[]
866
+ * // [items] start
867
+ * // [items] end
868
+ * tagsState?: Array<{
869
+ * key?: string
870
+ * // [items] start
871
+ * // [items] end
872
+ * annotationsState?: Array<{
873
+ * value?: string
874
+ * actor?: string
875
+ * timestamp?: string
876
+ * }>
877
+ * }>
878
+ * mainSymptom?: string
879
+ * }
880
+ * type?: string
881
+ * // [items] start
882
+ * // [items] end
883
+ * tagsState?: Array<{
884
+ * key?: string
885
+ * // [items] start
886
+ * // [items] end
887
+ * annotationsState?: Array<{
888
+ * value?: string
889
+ * actor?: string
890
+ * timestamp?: string
891
+ * }>
892
+ * }>
893
+ * createdTimestamp?: string
894
+ * updatedTimestamp?: string
895
+ * }>
896
+ * prescriptionsState?: string
897
+ * diagnosis?: string
898
+ * doctorState?: {
899
+ * id?: string
900
+ * name?: string
901
+ * createdTimestamp?: string
902
+ * updatedTimestamp?: string
903
+ * gender?: string
904
+ * identityNumber?: string
905
+ * phoneNumber?: string
906
+ * birthdate?: string
907
+ * }
908
+ * patientState?: {
909
+ * id?: string
910
+ * doctorId?: string
911
+ * name?: string
912
+ * createdTimestamp?: string
913
+ * updatedTimestamp?: string
914
+ * identity?: string
915
+ * gender?: string
916
+ * phoneNumber?: string
917
+ * birthdate?: string
918
+ * // [items] start
919
+ * // [items] end
920
+ * remarks?: string[]
921
+ * // [items] start
922
+ * // [items] end
923
+ * tagsState?: Array<{
924
+ * key?: string
925
+ * // [items] start
926
+ * // [items] end
927
+ * annotationsState?: Array<{
928
+ * value?: string
929
+ * actor?: string
930
+ * timestamp?: string
931
+ * }>
932
+ * }>
933
+ * mainSymptom?: string
934
+ * }
935
+ * paymentType?: string
936
+ * outpatientType?: string
937
+ * createdTimestamp?: string
938
+ * updatedTimestamp?: string
939
+ * // [items] start
940
+ * // [items] end
941
+ * tagsState?: Array<{
942
+ * key?: string
943
+ * // [items] start
944
+ * // [items] end
945
+ * annotationsState?: Array<{
946
+ * value?: string
947
+ * actor?: string
948
+ * timestamp?: string
949
+ * }>
950
+ * }>
951
+ * prescriptionPaymentStatus?: number
952
+ * outboundStatus?: number
953
+ * }
954
+ * ```
955
+ */
956
+ postCheckState<Config extends Alova2MethodConfig<CheckState> & {
957
+ data: CheckState;
958
+ }>(config: Config): Alova2Method<CheckState, 'checkStateRestful.postCheckState', Config>;
959
+ /**
960
+ * ---
961
+ *
962
+ * [GET]
963
+ *
964
+ * **path:** /病历/服务/药方/支付信息
965
+ *
966
+ * ---
967
+ *
968
+ * **Query Parameters**
969
+ * ```ts
970
+ * type QueryParameters = {
971
+ * doctorId?: string
972
+ * patientId?: string
973
+ * prescriptionPaymentStatus?: number
974
+ * outboundStatus?: number
975
+ * patientName?: string
976
+ * patientGender?: string
977
+ * patientPhoneNumber?: string
978
+ * pageSize?: number
979
+ * page?: number
980
+ * }
981
+ * ```
982
+ *
983
+ * ---
984
+ *
985
+ * **Response**
986
+ * ```ts
987
+ * type Response = {
988
+ * totalPages?: number
989
+ * totalElements?: number
990
+ * size?: number
991
+ * // [items] start
992
+ * // [items] end
993
+ * content?: Array<{
994
+ * id?: string
995
+ * prescription?: string
996
+ * doctorId?: string
997
+ * patientId?: string
998
+ * patientName?: string
999
+ * patientPhone?: string
1000
+ * patientGender?: string
1001
+ * createdTimestamp?: number
1002
+ * updatedTimestamp?: number
1003
+ * prescriptionPaymentStatus?: number
1004
+ * outboundStatus?: number
1005
+ * }>
1006
+ * number?: number
1007
+ * sort?: {
1008
+ * empty?: boolean
1009
+ * sorted?: boolean
1010
+ * unsorted?: boolean
1011
+ * }
1012
+ * first?: boolean
1013
+ * last?: boolean
1014
+ * numberOfElements?: number
1015
+ * pageable?: {
1016
+ * offset?: number
1017
+ * sort?: {
1018
+ * empty?: boolean
1019
+ * sorted?: boolean
1020
+ * unsorted?: boolean
1021
+ * }
1022
+ * pageSize?: number
1023
+ * paged?: boolean
1024
+ * pageNumber?: number
1025
+ * unpaged?: boolean
1026
+ * }
1027
+ * empty?: boolean
1028
+ * }
1029
+ * ```
1030
+ */
1031
+ queryPaymentState<Config extends Alova2MethodConfig<PagePaymentState> & {
1032
+ params: {
1033
+ doctorId?: string;
1034
+ patientId?: string;
1035
+ prescriptionPaymentStatus?: number;
1036
+ outboundStatus?: number;
1037
+ patientName?: string;
1038
+ patientGender?: string;
1039
+ patientPhoneNumber?: string;
1040
+ pageSize?: number;
1041
+ page?: number;
1042
+ };
1043
+ }>(config: Config): Alova2Method<PagePaymentState, 'checkStateRestful.queryPaymentState', Config>;
1044
+ /**
1045
+ * ---
1046
+ *
1047
+ * [GET]
1048
+ *
1049
+ * **path:** /病历/服务/统计/病历/日期
1050
+ *
1051
+ * ---
1052
+ *
1053
+ * **Response**
1054
+ * ```ts
1055
+ * type Response = Array<{
1056
+ * date?: string
1057
+ * count?: number
1058
+ * }>
1059
+ * ```
1060
+ */
1061
+ datesOfCheckState<Config extends Alova2MethodConfig<DateDistribute[]>>(config?: Config): Alova2Method<DateDistribute[], 'checkStateRestful.datesOfCheckState', Config>;
1062
+ /**
1063
+ * ---
1064
+ *
1065
+ * [GET]
1066
+ *
1067
+ * **path:** /病历/服务/统计/病历/总数
1068
+ *
1069
+ * ---
1070
+ *
1071
+ * **Response**
1072
+ * ```ts
1073
+ * type Response = number
1074
+ * ```
1075
+ */
1076
+ totalOfCheckState<Config extends Alova2MethodConfig<number>>(config?: Config): Alova2Method<number, 'checkStateRestful.totalOfCheckState', Config>;
1077
+ /**
1078
+ * ---
1079
+ *
1080
+ * [GET]
1081
+ *
1082
+ * **path:** /病历/服务/统计/病历/性别/分布
1083
+ *
1084
+ * ---
1085
+ *
1086
+ * **Response**
1087
+ * ```ts
1088
+ * type Response = Array<{
1089
+ * gender?: string
1090
+ * count?: number
1091
+ * }>
1092
+ * ```
1093
+ */
1094
+ genderDistributeOfCheckState<Config extends Alova2MethodConfig<GenderDistribute[]>>(config?: Config): Alova2Method<GenderDistribute[], 'checkStateRestful.genderDistributeOfCheckState', Config>;
1095
+ /**
1096
+ * ---
1097
+ *
1098
+ * [GET]
1099
+ *
1100
+ * **path:** /病历/服务/统计/病历/年龄/分布
1101
+ *
1102
+ * ---
1103
+ *
1104
+ * **Response**
1105
+ * ```ts
1106
+ * type Response = Array<{
1107
+ * age?: number
1108
+ * count?: number
1109
+ * }>
1110
+ * ```
1111
+ */
1112
+ ageDistributeOfCheckState<Config extends Alova2MethodConfig<AgeDistribute[]>>(config?: Config): Alova2Method<AgeDistribute[], 'checkStateRestful.ageDistributeOfCheckState', Config>;
1113
+ /**
1114
+ * ---
1115
+ *
1116
+ * [GET]
1117
+ *
1118
+ * **path:** /病历/服务/统计/病历/今日
1119
+ *
1120
+ * ---
1121
+ *
1122
+ * **Response**
1123
+ * ```ts
1124
+ * type Response = number
1125
+ * ```
1126
+ */
1127
+ totalOfCheckByTodayState<Config extends Alova2MethodConfig<number>>(config?: Config): Alova2Method<number, 'checkStateRestful.totalOfCheckByTodayState', Config>;
1128
+ };
1129
+ }
1130
+ var checkApi: checkApi;
1240
1131
  }
1132
+ export {};