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

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @clinia/context-engine-js
2
2
 
3
+ ## 0.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - b704c4a: Expose each area of the API as a resource property on `ContextEngineClient` — `client.patients`, `client.ingest`, `client.graph`, `client.sessions`, `client.vfs`, `client.info` — alongside the existing low-level `http` client. The resource classes are exported too, for constructing one on its own.
8
+
9
+ Add `ingest.ingestCdaR2Multipart()`, which submits several CDA documents in one request as `multipart/form-data`. `ingest.ingestCdaR2()` continues to submit a single document as `application/cda+xml`. A route offering more than one request media type now gets one method per media type rather than only its first.
10
+
3
11
  ## 0.6.0-rc.2
4
12
 
5
13
  ### Minor Changes
@@ -1592,6 +1592,7 @@ export interface components {
1592
1592
  /** @description Id of the `extracted_fact` node this member traces to (`ef_...`). */
1593
1593
  extractedFactId: string;
1594
1594
  }[];
1595
+ fieldVerdicts: components["schemas"]["FactConflicts"];
1595
1596
  } | {
1596
1597
  /** @description Human-readable label — condition name, drug name, vaccine name, etc. */
1597
1598
  display: string;
@@ -1626,6 +1627,7 @@ export interface components {
1626
1627
  /** @description Id of the `extracted_fact` node this member traces to (`ef_...`). */
1627
1628
  extractedFactId: string;
1628
1629
  }[];
1630
+ fieldVerdicts: components["schemas"]["FactConflicts"];
1629
1631
  } | {
1630
1632
  /** @description Human-readable label — condition name, drug name, vaccine name, etc. */
1631
1633
  display: string;
@@ -1665,6 +1667,7 @@ export interface components {
1665
1667
  /** @description Id of the `extracted_fact` node this member traces to (`ef_...`). */
1666
1668
  extractedFactId: string;
1667
1669
  }[];
1670
+ fieldVerdicts: components["schemas"]["FactConflicts"];
1668
1671
  } | {
1669
1672
  /** @description Human-readable label — condition name, drug name, vaccine name, etc. */
1670
1673
  display: string;
@@ -1702,6 +1705,7 @@ export interface components {
1702
1705
  /** @description Id of the `extracted_fact` node this member traces to (`ef_...`). */
1703
1706
  extractedFactId: string;
1704
1707
  }[];
1708
+ fieldVerdicts: components["schemas"]["FactConflicts"];
1705
1709
  } | {
1706
1710
  /** @description Human-readable label — condition name, drug name, vaccine name, etc. */
1707
1711
  display: string;
@@ -1731,6 +1735,7 @@ export interface components {
1731
1735
  /** @description Id of the `extracted_fact` node this member traces to (`ef_...`). */
1732
1736
  extractedFactId: string;
1733
1737
  }[];
1738
+ fieldVerdicts: components["schemas"]["FactConflicts"];
1734
1739
  } | {
1735
1740
  /** @description Human-readable label — condition name, drug name, vaccine name, etc. */
1736
1741
  display: string;
@@ -1763,6 +1768,7 @@ export interface components {
1763
1768
  /** @description Id of the `extracted_fact` node this member traces to (`ef_...`). */
1764
1769
  extractedFactId: string;
1765
1770
  }[];
1771
+ fieldVerdicts: components["schemas"]["FactConflicts"];
1766
1772
  } | {
1767
1773
  /** @description Human-readable label — condition name, drug name, vaccine name, etc. */
1768
1774
  display: string;
@@ -1793,6 +1799,7 @@ export interface components {
1793
1799
  /** @description Id of the `extracted_fact` node this member traces to (`ef_...`). */
1794
1800
  extractedFactId: string;
1795
1801
  }[];
1802
+ fieldVerdicts: components["schemas"]["FactConflicts"];
1796
1803
  } | {
1797
1804
  /** @description Human-readable label — condition name, drug name, vaccine name, etc. */
1798
1805
  display: string;
@@ -1824,6 +1831,7 @@ export interface components {
1824
1831
  /** @description Id of the `extracted_fact` node this member traces to (`ef_...`). */
1825
1832
  extractedFactId: string;
1826
1833
  }[];
1834
+ fieldVerdicts: components["schemas"]["FactConflicts"];
1827
1835
  } | {
1828
1836
  /** @description Human-readable label — condition name, drug name, vaccine name, etc. */
1829
1837
  display: string;
@@ -1858,6 +1866,7 @@ export interface components {
1858
1866
  /** @description Id of the `extracted_fact` node this member traces to (`ef_...`). */
1859
1867
  extractedFactId: string;
1860
1868
  }[];
1869
+ fieldVerdicts: components["schemas"]["FactConflicts"];
1861
1870
  } | {
1862
1871
  /** @description Human-readable label — condition name, drug name, vaccine name, etc. */
1863
1872
  display: string;
@@ -1890,6 +1899,7 @@ export interface components {
1890
1899
  /** @description Id of the `extracted_fact` node this member traces to (`ef_...`). */
1891
1900
  extractedFactId: string;
1892
1901
  }[];
1902
+ fieldVerdicts: components["schemas"]["FactConflicts"];
1893
1903
  };
1894
1904
  } | {
1895
1905
  /** @enum {string} */
@@ -2242,6 +2252,26 @@ export interface components {
2242
2252
  };
2243
2253
  };
2244
2254
  };
2255
+ /** @description One verdict per field decided across the members, keyed by the field it settled. A field every member agreed on still carries a verdict, with an empty `conflict`. */
2256
+ FactConflicts: {
2257
+ [key: string]: {
2258
+ picked: components["schemas"]["ScoredFactMember"];
2259
+ /** @description Members that carried the same value as the picked one. */
2260
+ agreed: components["schemas"]["ScoredFactMember"][];
2261
+ /** @description Members that carried a different value. */
2262
+ conflict: (components["schemas"]["ScoredFactMember"] & {
2263
+ /** @description The value this member lost the field with — null when it carried nothing. Untyped: its type is the field's own. */
2264
+ value?: unknown;
2265
+ })[];
2266
+ };
2267
+ };
2268
+ /** @description One member of a fact's cluster, as a field's verdict names it. */
2269
+ ScoredFactMember: {
2270
+ /** @description Id of the `extracted_fact` node this member traces to (`ef_...`). */
2271
+ extractedFactId: string;
2272
+ /** @description Score this member was ranked with when the field was decided. */
2273
+ score: number;
2274
+ };
2245
2275
  /** @description A page of nodes of one type from the patient context graph. */
2246
2276
  NodeList: {
2247
2277
  /** @description The requested page of items. */
@@ -3047,6 +3077,7 @@ export interface components {
3047
3077
  /** @description Id of the `extracted_fact` node this member traces to (`ef_...`). */
3048
3078
  extractedFactId: string;
3049
3079
  }[];
3080
+ fieldVerdicts: components["schemas"]["FactConflicts"];
3050
3081
  } | {
3051
3082
  /** @description Human-readable label — condition name, drug name, vaccine name, etc. */
3052
3083
  display: string;
@@ -3081,6 +3112,7 @@ export interface components {
3081
3112
  /** @description Id of the `extracted_fact` node this member traces to (`ef_...`). */
3082
3113
  extractedFactId: string;
3083
3114
  }[];
3115
+ fieldVerdicts: components["schemas"]["FactConflicts"];
3084
3116
  } | {
3085
3117
  /** @description Human-readable label — condition name, drug name, vaccine name, etc. */
3086
3118
  display: string;
@@ -3120,6 +3152,7 @@ export interface components {
3120
3152
  /** @description Id of the `extracted_fact` node this member traces to (`ef_...`). */
3121
3153
  extractedFactId: string;
3122
3154
  }[];
3155
+ fieldVerdicts: components["schemas"]["FactConflicts"];
3123
3156
  } | {
3124
3157
  /** @description Human-readable label — condition name, drug name, vaccine name, etc. */
3125
3158
  display: string;
@@ -3157,6 +3190,7 @@ export interface components {
3157
3190
  /** @description Id of the `extracted_fact` node this member traces to (`ef_...`). */
3158
3191
  extractedFactId: string;
3159
3192
  }[];
3193
+ fieldVerdicts: components["schemas"]["FactConflicts"];
3160
3194
  } | {
3161
3195
  /** @description Human-readable label — condition name, drug name, vaccine name, etc. */
3162
3196
  display: string;
@@ -3186,6 +3220,7 @@ export interface components {
3186
3220
  /** @description Id of the `extracted_fact` node this member traces to (`ef_...`). */
3187
3221
  extractedFactId: string;
3188
3222
  }[];
3223
+ fieldVerdicts: components["schemas"]["FactConflicts"];
3189
3224
  } | {
3190
3225
  /** @description Human-readable label — condition name, drug name, vaccine name, etc. */
3191
3226
  display: string;
@@ -3218,6 +3253,7 @@ export interface components {
3218
3253
  /** @description Id of the `extracted_fact` node this member traces to (`ef_...`). */
3219
3254
  extractedFactId: string;
3220
3255
  }[];
3256
+ fieldVerdicts: components["schemas"]["FactConflicts"];
3221
3257
  } | {
3222
3258
  /** @description Human-readable label — condition name, drug name, vaccine name, etc. */
3223
3259
  display: string;
@@ -3248,6 +3284,7 @@ export interface components {
3248
3284
  /** @description Id of the `extracted_fact` node this member traces to (`ef_...`). */
3249
3285
  extractedFactId: string;
3250
3286
  }[];
3287
+ fieldVerdicts: components["schemas"]["FactConflicts"];
3251
3288
  } | {
3252
3289
  /** @description Human-readable label — condition name, drug name, vaccine name, etc. */
3253
3290
  display: string;
@@ -3279,6 +3316,7 @@ export interface components {
3279
3316
  /** @description Id of the `extracted_fact` node this member traces to (`ef_...`). */
3280
3317
  extractedFactId: string;
3281
3318
  }[];
3319
+ fieldVerdicts: components["schemas"]["FactConflicts"];
3282
3320
  } | {
3283
3321
  /** @description Human-readable label — condition name, drug name, vaccine name, etc. */
3284
3322
  display: string;
@@ -3313,6 +3351,7 @@ export interface components {
3313
3351
  /** @description Id of the `extracted_fact` node this member traces to (`ef_...`). */
3314
3352
  extractedFactId: string;
3315
3353
  }[];
3354
+ fieldVerdicts: components["schemas"]["FactConflicts"];
3316
3355
  } | {
3317
3356
  /** @description Human-readable label — condition name, drug name, vaccine name, etc. */
3318
3357
  display: string;
@@ -3345,6 +3384,7 @@ export interface components {
3345
3384
  /** @description Id of the `extracted_fact` node this member traces to (`ef_...`). */
3346
3385
  extractedFactId: string;
3347
3386
  }[];
3387
+ fieldVerdicts: components["schemas"]["FactConflicts"];
3348
3388
  };
3349
3389
  }[];
3350
3390
  /** @description Pagination metadata for the returned page. */
@@ -23,6 +23,8 @@ export type IngestSessionBody = components["schemas"]["IngestSessionBody"];
23
23
  export type BrowseResult = components["schemas"]["BrowseResult"];
24
24
  export type ReadResponse = components["schemas"]["ReadResponse"];
25
25
  export type Node = components["schemas"]["Node"];
26
+ export type FactConflicts = components["schemas"]["FactConflicts"];
27
+ export type ScoredFactMember = components["schemas"]["ScoredFactMember"];
26
28
  export type NodeList = components["schemas"]["NodeList"];
27
29
  export type Edge = components["schemas"]["Edge"];
28
30
  export type NodeRef = components["schemas"]["NodeRef"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clinia/context-engine-js",
3
- "version": "0.6.0-rc.2",
3
+ "version": "0.6.0",
4
4
  "description": "TypeScript client for the Clinia Context Engine",
5
5
  "keywords": [
6
6
  "clinia",