@clinia/context-engine-js 0.6.0-rc.0 → 0.6.0-rc.2

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,6 +3,11 @@ import type { operations } from "../generated/context-engine";
3
3
  export declare class GraphResource {
4
4
  #private;
5
5
  constructor(http: HttpClient);
6
+ /**
7
+ * Technical preview.
8
+ *
9
+ * @experimental
10
+ */
6
11
  listNodes(patientId: string, type: "extracted_fact" | "fact" | "extracted_narrative" | "narrative_passage" | "narrative" | "learned_memory" | "extracted_clinical_event", params?: {
7
12
  query?: {
8
13
  page?: number;
@@ -52,7 +57,12 @@ export declare class GraphResource {
52
57
  };
53
58
  };
54
59
  }, `${string}/${string}`>>;
55
- listEdges(patientId: string, type: "resolution_decision" | "resolves_to" | "chunked_into", params?: {
60
+ /**
61
+ * Technical preview.
62
+ *
63
+ * @experimental
64
+ */
65
+ listEdges(patientId: string, type: "resolution_decision" | "resolves_to" | "chunked_into" | "relationship", params?: {
56
66
  query?: {
57
67
  page?: number;
58
68
  perPage?: number;
@@ -68,7 +78,7 @@ export declare class GraphResource {
68
78
  header?: never;
69
79
  path: {
70
80
  patientId: string;
71
- type: "resolution_decision" | "resolves_to" | "chunked_into";
81
+ type: "resolution_decision" | "resolves_to" | "chunked_into" | "relationship";
72
82
  };
73
83
  cookie?: never;
74
84
  };
@@ -82,6 +92,14 @@ export declare class GraphResource {
82
92
  "application/json": import("..").components["schemas"]["EdgeList"];
83
93
  };
84
94
  };
95
+ 400: {
96
+ headers: {
97
+ [name: string]: unknown;
98
+ };
99
+ content: {
100
+ "application/json": import("..").components["schemas"]["ApiError"];
101
+ };
102
+ };
85
103
  404: {
86
104
  headers: {
87
105
  [name: string]: unknown;
@@ -100,10 +118,15 @@ export declare class GraphResource {
100
118
  } | undefined;
101
119
  path: {
102
120
  patientId: string;
103
- type: "resolution_decision" | "resolves_to" | "chunked_into";
121
+ type: "resolution_decision" | "resolves_to" | "chunked_into" | "relationship";
104
122
  };
105
123
  };
106
124
  }, `${string}/${string}`>>;
125
+ /**
126
+ * Technical preview.
127
+ *
128
+ * @experimental
129
+ */
107
130
  getNode(patientId: string, type: "extracted_fact" | "fact" | "extracted_narrative" | "narrative_passage" | "narrative" | "learned_memory" | "extracted_clinical_event", nodeId: string): Promise<import("openapi-fetch").FetchResponse<{
108
131
  parameters: {
109
132
  query?: never;
@@ -151,13 +174,18 @@ export declare class GraphResource {
151
174
  };
152
175
  };
153
176
  }, `${string}/${string}`>>;
154
- getEdge(patientId: string, type: "resolution_decision" | "resolves_to" | "chunked_into", edgeId: string): Promise<import("openapi-fetch").FetchResponse<{
177
+ /**
178
+ * Technical preview.
179
+ *
180
+ * @experimental
181
+ */
182
+ getEdge(patientId: string, type: "resolution_decision" | "resolves_to" | "chunked_into" | "relationship", edgeId: string): Promise<import("openapi-fetch").FetchResponse<{
155
183
  parameters: {
156
184
  query?: never;
157
185
  header?: never;
158
186
  path: {
159
187
  patientId: string;
160
- type: "resolution_decision" | "resolves_to" | "chunked_into";
188
+ type: "resolution_decision" | "resolves_to" | "chunked_into" | "relationship";
161
189
  edgeId: string;
162
190
  };
163
191
  cookie?: never;
@@ -193,18 +221,22 @@ export declare class GraphResource {
193
221
  params: {
194
222
  path: {
195
223
  patientId: string;
196
- type: "resolution_decision" | "resolves_to" | "chunked_into";
224
+ type: "resolution_decision" | "resolves_to" | "chunked_into" | "relationship";
197
225
  edgeId: string;
198
226
  };
199
227
  };
200
228
  }, `${string}/${string}`>>;
201
- queryNodes(patientId: string, type: "extracted_fact" | "fact" | "extracted_narrative" | "narrative_passage" | "narrative" | "learned_memory" | "extracted_clinical_event", body: NonNullable<operations["query-nodes"]["requestBody"]>["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
229
+ /**
230
+ * Technical preview.
231
+ *
232
+ * @experimental
233
+ */
234
+ queryExtractedFactNodes(patientId: string, body: NonNullable<operations["query-extracted-fact-nodes"]["requestBody"]>["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
202
235
  parameters: {
203
236
  query?: never;
204
237
  header?: never;
205
238
  path: {
206
239
  patientId: string;
207
- type: "extracted_fact" | "fact" | "extracted_narrative" | "narrative_passage" | "narrative" | "learned_memory" | "extracted_clinical_event";
208
240
  };
209
241
  cookie?: never;
210
242
  };
@@ -213,8 +245,6 @@ export declare class GraphResource {
213
245
  "application/json": {
214
246
  page?: number | null;
215
247
  perPage?: number;
216
- sort?: "effectiveStart";
217
- order?: "asc" | "desc";
218
248
  filter?: {
219
249
  id?: {
220
250
  eq: string;
@@ -226,6 +256,9 @@ export declare class GraphResource {
226
256
  } | {
227
257
  any: ("condition" | "medication" | "allergy" | "family_history" | "social_history" | "immunization" | "device" | "demographic" | "insurance" | "directive")[];
228
258
  };
259
+ ingestionId?: {
260
+ eq: string;
261
+ };
229
262
  };
230
263
  };
231
264
  };
@@ -236,7 +269,7 @@ export declare class GraphResource {
236
269
  [name: string]: unknown;
237
270
  };
238
271
  content: {
239
- "application/json": import("..").components["schemas"]["NodeList"];
272
+ "application/json": import("..").components["schemas"]["ExtractedFactNodeList"];
240
273
  };
241
274
  };
242
275
  400: {
@@ -255,7 +288,87 @@ export declare class GraphResource {
255
288
  "application/json": import("..").components["schemas"]["ApiError"];
256
289
  };
257
290
  };
258
- 501: {
291
+ };
292
+ }, {
293
+ params: {
294
+ path: {
295
+ patientId: string;
296
+ };
297
+ };
298
+ body: {
299
+ page?: number | null;
300
+ perPage?: number;
301
+ filter?: {
302
+ id?: {
303
+ eq: string;
304
+ } | {
305
+ any: string[];
306
+ };
307
+ type?: {
308
+ eq: "condition" | "medication" | "allergy" | "family_history" | "social_history" | "immunization" | "device" | "demographic" | "insurance" | "directive";
309
+ } | {
310
+ any: ("condition" | "medication" | "allergy" | "family_history" | "social_history" | "immunization" | "device" | "demographic" | "insurance" | "directive")[];
311
+ };
312
+ ingestionId?: {
313
+ eq: string;
314
+ };
315
+ };
316
+ };
317
+ }, `${string}/${string}`>>;
318
+ /**
319
+ * Technical preview.
320
+ *
321
+ * @experimental
322
+ */
323
+ queryFactNodes(patientId: string, body: NonNullable<operations["query-fact-nodes"]["requestBody"]>["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
324
+ parameters: {
325
+ query?: never;
326
+ header?: never;
327
+ path: {
328
+ patientId: string;
329
+ };
330
+ cookie?: never;
331
+ };
332
+ requestBody: {
333
+ content: {
334
+ "application/json": {
335
+ page?: number | null;
336
+ perPage?: number;
337
+ sort?: "effectiveStart";
338
+ order?: "asc" | "desc";
339
+ filter?: {
340
+ id?: {
341
+ eq: string;
342
+ } | {
343
+ any: string[];
344
+ };
345
+ type?: {
346
+ eq: "condition" | "medication" | "allergy" | "family_history" | "social_history" | "immunization" | "device" | "demographic" | "insurance" | "directive";
347
+ } | {
348
+ any: ("condition" | "medication" | "allergy" | "family_history" | "social_history" | "immunization" | "device" | "demographic" | "insurance" | "directive")[];
349
+ };
350
+ };
351
+ };
352
+ };
353
+ };
354
+ responses: {
355
+ 200: {
356
+ headers: {
357
+ [name: string]: unknown;
358
+ };
359
+ content: {
360
+ "application/json": import("..").components["schemas"]["FactNodeList"];
361
+ };
362
+ };
363
+ 400: {
364
+ headers: {
365
+ [name: string]: unknown;
366
+ };
367
+ content: {
368
+ "application/json": import("..").components["schemas"]["ApiError"];
369
+ };
370
+ };
371
+ 404: {
259
372
  headers: {
260
373
  [name: string]: unknown;
261
374
  };
@@ -268,7 +381,6 @@ export declare class GraphResource {
268
381
  params: {
269
382
  path: {
270
383
  patientId: string;
271
- type: "extracted_fact" | "fact" | "extracted_narrative" | "narrative_passage" | "narrative" | "learned_memory" | "extracted_clinical_event";
272
384
  };
273
385
  };
274
386
  body: {
@@ -290,4 +402,751 @@ export declare class GraphResource {
290
402
  };
291
403
  };
292
404
  }, `${string}/${string}`>>;
405
+ /**
406
+ * Technical preview.
407
+ *
408
+ * @experimental
409
+ */
410
+ queryExtractedNarrativeNodes(patientId: string, body: NonNullable<operations["query-extracted-narrative-nodes"]["requestBody"]>["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
411
+ parameters: {
412
+ query?: never;
413
+ header?: never;
414
+ path: {
415
+ patientId: string;
416
+ };
417
+ cookie?: never;
418
+ };
419
+ requestBody: {
420
+ content: {
421
+ "application/json": {
422
+ page?: number | null;
423
+ perPage?: number;
424
+ filter?: {
425
+ id?: {
426
+ eq: string;
427
+ } | {
428
+ any: string[];
429
+ };
430
+ documentId?: {
431
+ eq: string;
432
+ } | {
433
+ any: string[];
434
+ };
435
+ ingestionId?: {
436
+ eq: string;
437
+ };
438
+ };
439
+ };
440
+ };
441
+ };
442
+ responses: {
443
+ 200: {
444
+ headers: {
445
+ [name: string]: unknown;
446
+ };
447
+ content: {
448
+ "application/json": import("..").components["schemas"]["ExtractedNarrativeNodeList"];
449
+ };
450
+ };
451
+ 400: {
452
+ headers: {
453
+ [name: string]: unknown;
454
+ };
455
+ content: {
456
+ "application/json": import("..").components["schemas"]["ApiError"];
457
+ };
458
+ };
459
+ 404: {
460
+ headers: {
461
+ [name: string]: unknown;
462
+ };
463
+ content: {
464
+ "application/json": import("..").components["schemas"]["ApiError"];
465
+ };
466
+ };
467
+ };
468
+ }, {
469
+ params: {
470
+ path: {
471
+ patientId: string;
472
+ };
473
+ };
474
+ body: {
475
+ page?: number | null;
476
+ perPage?: number;
477
+ filter?: {
478
+ id?: {
479
+ eq: string;
480
+ } | {
481
+ any: string[];
482
+ };
483
+ documentId?: {
484
+ eq: string;
485
+ } | {
486
+ any: string[];
487
+ };
488
+ ingestionId?: {
489
+ eq: string;
490
+ };
491
+ };
492
+ };
493
+ }, `${string}/${string}`>>;
494
+ /**
495
+ * Technical preview.
496
+ *
497
+ * @experimental
498
+ */
499
+ queryNarrativePassageNodes(patientId: string, body: NonNullable<operations["query-narrative-passage-nodes"]["requestBody"]>["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
500
+ parameters: {
501
+ query?: never;
502
+ header?: never;
503
+ path: {
504
+ patientId: string;
505
+ };
506
+ cookie?: never;
507
+ };
508
+ requestBody: {
509
+ content: {
510
+ "application/json": {
511
+ page?: number | null;
512
+ perPage?: number;
513
+ filter?: {
514
+ id?: {
515
+ eq: string;
516
+ } | {
517
+ any: string[];
518
+ };
519
+ extractedNarrativeId?: {
520
+ eq: string;
521
+ } | {
522
+ any: string[];
523
+ };
524
+ };
525
+ };
526
+ };
527
+ };
528
+ responses: {
529
+ 200: {
530
+ headers: {
531
+ [name: string]: unknown;
532
+ };
533
+ content: {
534
+ "application/json": import("..").components["schemas"]["NarrativePassageNodeList"];
535
+ };
536
+ };
537
+ 400: {
538
+ headers: {
539
+ [name: string]: unknown;
540
+ };
541
+ content: {
542
+ "application/json": import("..").components["schemas"]["ApiError"];
543
+ };
544
+ };
545
+ 404: {
546
+ headers: {
547
+ [name: string]: unknown;
548
+ };
549
+ content: {
550
+ "application/json": import("..").components["schemas"]["ApiError"];
551
+ };
552
+ };
553
+ };
554
+ }, {
555
+ params: {
556
+ path: {
557
+ patientId: string;
558
+ };
559
+ };
560
+ body: {
561
+ page?: number | null;
562
+ perPage?: number;
563
+ filter?: {
564
+ id?: {
565
+ eq: string;
566
+ } | {
567
+ any: string[];
568
+ };
569
+ extractedNarrativeId?: {
570
+ eq: string;
571
+ } | {
572
+ any: string[];
573
+ };
574
+ };
575
+ };
576
+ }, `${string}/${string}`>>;
577
+ /**
578
+ * Technical preview.
579
+ *
580
+ * @experimental
581
+ */
582
+ queryNarrativeNodes(patientId: string, body: NonNullable<operations["query-narrative-nodes"]["requestBody"]>["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
583
+ parameters: {
584
+ query?: never;
585
+ header?: never;
586
+ path: {
587
+ patientId: string;
588
+ };
589
+ cookie?: never;
590
+ };
591
+ requestBody: {
592
+ content: {
593
+ "application/json": {
594
+ page?: number | null;
595
+ perPage?: number;
596
+ sort?: "effectiveAt";
597
+ order?: "asc" | "desc";
598
+ filter?: {
599
+ id?: {
600
+ eq: string;
601
+ } | {
602
+ any: string[];
603
+ };
604
+ boundFactTypes?: {
605
+ any: ("condition" | "medication" | "allergy" | "family_history" | "social_history" | "immunization" | "device" | "demographic" | "insurance" | "directive")[];
606
+ } | {
607
+ all: ("condition" | "medication" | "allergy" | "family_history" | "social_history" | "immunization" | "device" | "demographic" | "insurance" | "directive")[];
608
+ };
609
+ boundEventTypes?: {
610
+ any: ("encounter" | "observation" | "procedure" | "medication_event")[];
611
+ } | {
612
+ all: ("encounter" | "observation" | "procedure" | "medication_event")[];
613
+ };
614
+ summarized?: {
615
+ eq: boolean;
616
+ };
617
+ };
618
+ };
619
+ };
620
+ };
621
+ responses: {
622
+ 200: {
623
+ headers: {
624
+ [name: string]: unknown;
625
+ };
626
+ content: {
627
+ "application/json": import("..").components["schemas"]["NarrativeNodeList"];
628
+ };
629
+ };
630
+ 400: {
631
+ headers: {
632
+ [name: string]: unknown;
633
+ };
634
+ content: {
635
+ "application/json": import("..").components["schemas"]["ApiError"];
636
+ };
637
+ };
638
+ 404: {
639
+ headers: {
640
+ [name: string]: unknown;
641
+ };
642
+ content: {
643
+ "application/json": import("..").components["schemas"]["ApiError"];
644
+ };
645
+ };
646
+ };
647
+ }, {
648
+ params: {
649
+ path: {
650
+ patientId: string;
651
+ };
652
+ };
653
+ body: {
654
+ page?: number | null;
655
+ perPage?: number;
656
+ sort?: "effectiveAt";
657
+ order?: "asc" | "desc";
658
+ filter?: {
659
+ id?: {
660
+ eq: string;
661
+ } | {
662
+ any: string[];
663
+ };
664
+ boundFactTypes?: {
665
+ any: ("condition" | "medication" | "allergy" | "family_history" | "social_history" | "immunization" | "device" | "demographic" | "insurance" | "directive")[];
666
+ } | {
667
+ all: ("condition" | "medication" | "allergy" | "family_history" | "social_history" | "immunization" | "device" | "demographic" | "insurance" | "directive")[];
668
+ };
669
+ boundEventTypes?: {
670
+ any: ("encounter" | "observation" | "procedure" | "medication_event")[];
671
+ } | {
672
+ all: ("encounter" | "observation" | "procedure" | "medication_event")[];
673
+ };
674
+ summarized?: {
675
+ eq: boolean;
676
+ };
677
+ };
678
+ };
679
+ }, `${string}/${string}`>>;
680
+ /**
681
+ * Technical preview.
682
+ *
683
+ * @experimental
684
+ */
685
+ queryLearnedMemoryNodes(patientId: string, body: NonNullable<operations["query-learned-memory-nodes"]["requestBody"]>["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
686
+ parameters: {
687
+ query?: never;
688
+ header?: never;
689
+ path: {
690
+ patientId: string;
691
+ };
692
+ cookie?: never;
693
+ };
694
+ requestBody: {
695
+ content: {
696
+ "application/json": {
697
+ page?: number | null;
698
+ perPage?: number;
699
+ sort?: "createdAt";
700
+ order?: "asc" | "desc";
701
+ filter?: {
702
+ id?: {
703
+ eq: string;
704
+ } | {
705
+ any: string[];
706
+ };
707
+ type?: {
708
+ eq: "symptom" | "adherence" | "concern" | "preference";
709
+ };
710
+ sessionId?: {
711
+ eq: string;
712
+ };
713
+ };
714
+ };
715
+ };
716
+ };
717
+ responses: {
718
+ 200: {
719
+ headers: {
720
+ [name: string]: unknown;
721
+ };
722
+ content: {
723
+ "application/json": import("..").components["schemas"]["LearnedMemoryNodeList"];
724
+ };
725
+ };
726
+ 400: {
727
+ headers: {
728
+ [name: string]: unknown;
729
+ };
730
+ content: {
731
+ "application/json": import("..").components["schemas"]["ApiError"];
732
+ };
733
+ };
734
+ 404: {
735
+ headers: {
736
+ [name: string]: unknown;
737
+ };
738
+ content: {
739
+ "application/json": import("..").components["schemas"]["ApiError"];
740
+ };
741
+ };
742
+ };
743
+ }, {
744
+ params: {
745
+ path: {
746
+ patientId: string;
747
+ };
748
+ };
749
+ body: {
750
+ page?: number | null;
751
+ perPage?: number;
752
+ sort?: "createdAt";
753
+ order?: "asc" | "desc";
754
+ filter?: {
755
+ id?: {
756
+ eq: string;
757
+ } | {
758
+ any: string[];
759
+ };
760
+ type?: {
761
+ eq: "symptom" | "adherence" | "concern" | "preference";
762
+ };
763
+ sessionId?: {
764
+ eq: string;
765
+ };
766
+ };
767
+ };
768
+ }, `${string}/${string}`>>;
769
+ /**
770
+ * Technical preview.
771
+ *
772
+ * @experimental
773
+ */
774
+ queryExtractedClinicalEventNodes(patientId: string, body: NonNullable<operations["query-extracted-clinical-event-nodes"]["requestBody"]>["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
775
+ parameters: {
776
+ query?: never;
777
+ header?: never;
778
+ path: {
779
+ patientId: string;
780
+ };
781
+ cookie?: never;
782
+ };
783
+ requestBody: {
784
+ content: {
785
+ "application/json": {
786
+ page?: number | null;
787
+ perPage?: number;
788
+ filter?: {
789
+ id?: {
790
+ eq: string;
791
+ } | {
792
+ any: string[];
793
+ };
794
+ type?: {
795
+ eq: "encounter" | "observation" | "procedure" | "medication_event";
796
+ } | {
797
+ any: ("encounter" | "observation" | "procedure" | "medication_event")[];
798
+ };
799
+ ingestionId?: {
800
+ eq: string;
801
+ };
802
+ };
803
+ };
804
+ };
805
+ };
806
+ responses: {
807
+ 200: {
808
+ headers: {
809
+ [name: string]: unknown;
810
+ };
811
+ content: {
812
+ "application/json": import("..").components["schemas"]["ExtractedClinicalEventNodeList"];
813
+ };
814
+ };
815
+ 400: {
816
+ headers: {
817
+ [name: string]: unknown;
818
+ };
819
+ content: {
820
+ "application/json": import("..").components["schemas"]["ApiError"];
821
+ };
822
+ };
823
+ 404: {
824
+ headers: {
825
+ [name: string]: unknown;
826
+ };
827
+ content: {
828
+ "application/json": import("..").components["schemas"]["ApiError"];
829
+ };
830
+ };
831
+ };
832
+ }, {
833
+ params: {
834
+ path: {
835
+ patientId: string;
836
+ };
837
+ };
838
+ body: {
839
+ page?: number | null;
840
+ perPage?: number;
841
+ filter?: {
842
+ id?: {
843
+ eq: string;
844
+ } | {
845
+ any: string[];
846
+ };
847
+ type?: {
848
+ eq: "encounter" | "observation" | "procedure" | "medication_event";
849
+ } | {
850
+ any: ("encounter" | "observation" | "procedure" | "medication_event")[];
851
+ };
852
+ ingestionId?: {
853
+ eq: string;
854
+ };
855
+ };
856
+ };
857
+ }, `${string}/${string}`>>;
858
+ /**
859
+ * Technical preview.
860
+ *
861
+ * @experimental
862
+ */
863
+ queryResolutionDecisionEdges(patientId: string, body: NonNullable<operations["query-resolution-decision-edges"]["requestBody"]>["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
864
+ parameters: {
865
+ query?: never;
866
+ header?: never;
867
+ path: {
868
+ patientId: string;
869
+ };
870
+ cookie?: never;
871
+ };
872
+ requestBody: {
873
+ content: {
874
+ "application/json": {
875
+ page?: number | null;
876
+ perPage?: number;
877
+ filter?: {
878
+ verdict?: {
879
+ eq: "merge" | "reject";
880
+ };
881
+ resolution?: {
882
+ eq: "uncertain" | "probable" | "confirmed";
883
+ };
884
+ ruleId?: {
885
+ eq: string;
886
+ };
887
+ kind?: {
888
+ eq: "extracted_fact" | "narrative_passage";
889
+ };
890
+ };
891
+ };
892
+ };
893
+ };
894
+ responses: {
895
+ 200: {
896
+ headers: {
897
+ [name: string]: unknown;
898
+ };
899
+ content: {
900
+ "application/json": import("..").components["schemas"]["ResolutionDecisionEdgeList"];
901
+ };
902
+ };
903
+ 400: {
904
+ headers: {
905
+ [name: string]: unknown;
906
+ };
907
+ content: {
908
+ "application/json": import("..").components["schemas"]["ApiError"];
909
+ };
910
+ };
911
+ 404: {
912
+ headers: {
913
+ [name: string]: unknown;
914
+ };
915
+ content: {
916
+ "application/json": import("..").components["schemas"]["ApiError"];
917
+ };
918
+ };
919
+ };
920
+ }, {
921
+ params: {
922
+ path: {
923
+ patientId: string;
924
+ };
925
+ };
926
+ body: {
927
+ page?: number | null;
928
+ perPage?: number;
929
+ filter?: {
930
+ verdict?: {
931
+ eq: "merge" | "reject";
932
+ };
933
+ resolution?: {
934
+ eq: "uncertain" | "probable" | "confirmed";
935
+ };
936
+ ruleId?: {
937
+ eq: string;
938
+ };
939
+ kind?: {
940
+ eq: "extracted_fact" | "narrative_passage";
941
+ };
942
+ };
943
+ };
944
+ }, `${string}/${string}`>>;
945
+ /**
946
+ * Technical preview.
947
+ *
948
+ * @experimental
949
+ */
950
+ queryResolvesToEdges(patientId: string, body: NonNullable<operations["query-resolves-to-edges"]["requestBody"]>["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
951
+ parameters: {
952
+ query?: never;
953
+ header?: never;
954
+ path: {
955
+ patientId: string;
956
+ };
957
+ cookie?: never;
958
+ };
959
+ requestBody: {
960
+ content: {
961
+ "application/json": {
962
+ page?: number | null;
963
+ perPage?: number;
964
+ filter?: {
965
+ kind?: {
966
+ eq: "fact" | "narrative";
967
+ };
968
+ };
969
+ };
970
+ };
971
+ };
972
+ responses: {
973
+ 200: {
974
+ headers: {
975
+ [name: string]: unknown;
976
+ };
977
+ content: {
978
+ "application/json": import("..").components["schemas"]["ResolvesToEdgeList"];
979
+ };
980
+ };
981
+ 400: {
982
+ headers: {
983
+ [name: string]: unknown;
984
+ };
985
+ content: {
986
+ "application/json": import("..").components["schemas"]["ApiError"];
987
+ };
988
+ };
989
+ 404: {
990
+ headers: {
991
+ [name: string]: unknown;
992
+ };
993
+ content: {
994
+ "application/json": import("..").components["schemas"]["ApiError"];
995
+ };
996
+ };
997
+ };
998
+ }, {
999
+ params: {
1000
+ path: {
1001
+ patientId: string;
1002
+ };
1003
+ };
1004
+ body: {
1005
+ page?: number | null;
1006
+ perPage?: number;
1007
+ filter?: {
1008
+ kind?: {
1009
+ eq: "fact" | "narrative";
1010
+ };
1011
+ };
1012
+ };
1013
+ }, `${string}/${string}`>>;
1014
+ /**
1015
+ * Technical preview.
1016
+ *
1017
+ * @experimental
1018
+ */
1019
+ queryChunkedIntoEdges(patientId: string, body: NonNullable<operations["query-chunked-into-edges"]["requestBody"]>["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
1020
+ parameters: {
1021
+ query?: never;
1022
+ header?: never;
1023
+ path: {
1024
+ patientId: string;
1025
+ };
1026
+ cookie?: never;
1027
+ };
1028
+ requestBody: {
1029
+ content: {
1030
+ "application/json": {
1031
+ page?: number | null;
1032
+ perPage?: number;
1033
+ };
1034
+ };
1035
+ };
1036
+ responses: {
1037
+ 200: {
1038
+ headers: {
1039
+ [name: string]: unknown;
1040
+ };
1041
+ content: {
1042
+ "application/json": import("..").components["schemas"]["ChunkedIntoEdgeList"];
1043
+ };
1044
+ };
1045
+ 400: {
1046
+ headers: {
1047
+ [name: string]: unknown;
1048
+ };
1049
+ content: {
1050
+ "application/json": import("..").components["schemas"]["ApiError"];
1051
+ };
1052
+ };
1053
+ 404: {
1054
+ headers: {
1055
+ [name: string]: unknown;
1056
+ };
1057
+ content: {
1058
+ "application/json": import("..").components["schemas"]["ApiError"];
1059
+ };
1060
+ };
1061
+ };
1062
+ }, {
1063
+ params: {
1064
+ path: {
1065
+ patientId: string;
1066
+ };
1067
+ };
1068
+ body: {
1069
+ page?: number | null;
1070
+ perPage?: number;
1071
+ };
1072
+ }, `${string}/${string}`>>;
1073
+ /**
1074
+ * Technical preview.
1075
+ *
1076
+ * @experimental
1077
+ */
1078
+ queryRelationshipEdges(patientId: string, body: NonNullable<operations["query-relationship-edges"]["requestBody"]>["content"]["application/json"]): Promise<import("openapi-fetch").FetchResponse<{
1079
+ parameters: {
1080
+ query?: never;
1081
+ header?: never;
1082
+ path: {
1083
+ patientId: string;
1084
+ };
1085
+ cookie?: never;
1086
+ };
1087
+ requestBody: {
1088
+ content: {
1089
+ "application/json": {
1090
+ page?: number | null;
1091
+ perPage?: number;
1092
+ filter?: {
1093
+ type?: {
1094
+ eq: string;
1095
+ };
1096
+ source?: {
1097
+ eq: "explicit_reference" | "knowledge_base" | "temporal_inference" | "llm_inferred" | "narrative_verification";
1098
+ } | {
1099
+ any: ("explicit_reference" | "knowledge_base" | "temporal_inference" | "llm_inferred" | "narrative_verification")[];
1100
+ };
1101
+ };
1102
+ };
1103
+ };
1104
+ };
1105
+ responses: {
1106
+ 200: {
1107
+ headers: {
1108
+ [name: string]: unknown;
1109
+ };
1110
+ content: {
1111
+ "application/json": import("..").components["schemas"]["RelationshipEdgeList"];
1112
+ };
1113
+ };
1114
+ 400: {
1115
+ headers: {
1116
+ [name: string]: unknown;
1117
+ };
1118
+ content: {
1119
+ "application/json": import("..").components["schemas"]["ApiError"];
1120
+ };
1121
+ };
1122
+ 404: {
1123
+ headers: {
1124
+ [name: string]: unknown;
1125
+ };
1126
+ content: {
1127
+ "application/json": import("..").components["schemas"]["ApiError"];
1128
+ };
1129
+ };
1130
+ };
1131
+ }, {
1132
+ params: {
1133
+ path: {
1134
+ patientId: string;
1135
+ };
1136
+ };
1137
+ body: {
1138
+ page?: number | null;
1139
+ perPage?: number;
1140
+ filter?: {
1141
+ type?: {
1142
+ eq: string;
1143
+ };
1144
+ source?: {
1145
+ eq: "explicit_reference" | "knowledge_base" | "temporal_inference" | "llm_inferred" | "narrative_verification";
1146
+ } | {
1147
+ any: ("explicit_reference" | "knowledge_base" | "temporal_inference" | "llm_inferred" | "narrative_verification")[];
1148
+ };
1149
+ };
1150
+ };
1151
+ }, `${string}/${string}`>>;
293
1152
  }