web-core-tcm 0.0.29 → 0.0.30

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.
@@ -0,0 +1,1240 @@
1
+ import { Alova, AlovaMethodCreateConfig, AlovaGenerics, Method } from 'alova';
2
+ import { $$userConfigMap, alovaInstance } from './index';
3
+ import { default as apiDefinitions } from './apiDefinitions';
4
+ type CollapsedAlova = typeof alovaInstance;
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
+
83
+ export interface AnnotationState {
84
+ value?: string;
85
+ actor?: string;
86
+ timestamp?: string;
87
+ }
88
+ export interface TagState {
89
+ key?: string;
90
+ annotationsState?: AnnotationState[];
91
+ }
92
+ 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;
105
+ }
106
+ export interface MetaState {
107
+ id?: string;
108
+ ownerState?: PatientState;
109
+ type?: string;
110
+ tagsState?: TagState[];
111
+ createdTimestamp?: string;
112
+ updatedTimestamp?: string;
113
+ }
114
+ 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;
123
+ }
124
+ 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;
138
+ }
139
+ export interface DateDistribute {
140
+ date?: string;
141
+ count?: number;
142
+ }
143
+ export interface GenderDistribute {
144
+ gender?: string;
145
+ count?: number;
146
+ }
147
+ export interface AgeDistribute {
148
+ age?: number;
149
+ count?: number;
150
+ }
151
+ export interface SortObject {
152
+ empty?: boolean;
153
+ sorted?: boolean;
154
+ unsorted?: boolean;
155
+ }
156
+ export interface PageableObject {
157
+ offset?: number;
158
+ sort?: SortObject;
159
+ pageSize?: number;
160
+ paged?: boolean;
161
+ pageNumber?: number;
162
+ unpaged?: boolean;
163
+ }
164
+ 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;
176
+ }
177
+ 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;
189
+ }
190
+ 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;
202
+ }
203
+ 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;
1240
+ }