@healthcloudai/hc-sdk 0.8.10 → 0.8.11
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/README.md +52 -1
- package/dist/index.cjs +19 -42
- package/dist/index.d.cts +70 -18
- package/dist/index.d.ts +70 -18
- package/dist/index.js +19 -42
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -130,7 +130,8 @@ sdk.fieldAgent // connect, register/login/resetPassword/verifyEmail/verifySm
|
|
|
130
130
|
// getAgent/updateAgent, getDashboard, photo, listPatients, listEncounters
|
|
131
131
|
sdk.mcp // connect + JSON-RPC proxy (patient/fieldAgent tool calls)
|
|
132
132
|
sdk.graph // connect, provider search/cypher, health plan search/cypher,
|
|
133
|
-
// document
|
|
133
|
+
// document/medical-concept search/cypher, medical-concept
|
|
134
|
+
// list/detail/hierarchy, policy document list/search/get
|
|
134
135
|
```
|
|
135
136
|
|
|
136
137
|
`sdk.fieldAgent` talks to a different host (`*-api-fieldagent.health.cloud`)
|
|
@@ -143,6 +144,56 @@ instances.
|
|
|
143
144
|
|
|
144
145
|
All groups share one HTTP client, one token store, one error handler, the same URL resolver, query serialiser, and path-param interpolator.
|
|
145
146
|
|
|
147
|
+
### Graph API
|
|
148
|
+
|
|
149
|
+
`sdk.graph` exposes 19 public methods, one for each Graph API route. The eight
|
|
150
|
+
Search/Cypher methods accept `rag?: boolean`; setting `rag: true` uses the same
|
|
151
|
+
POST route and returns a typed `GraphRagResponse`. There are no separate RAG
|
|
152
|
+
wrapper methods.
|
|
153
|
+
|
|
154
|
+
```ts
|
|
155
|
+
// Standard structured response
|
|
156
|
+
const providers = await sdk.graph.searchProviders({
|
|
157
|
+
phrase: "cardiology",
|
|
158
|
+
state_code: "CA",
|
|
159
|
+
limit: 20,
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
// Same endpoint, Graph-RAG response
|
|
163
|
+
const providerAnswer = await sdk.graph.searchProviders({
|
|
164
|
+
phrase: "cardiology",
|
|
165
|
+
state_code: "CA",
|
|
166
|
+
limit: 20,
|
|
167
|
+
rag: true,
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
// Cypher uses the same rag flag
|
|
171
|
+
const conceptAnswer = await sdk.graph.searchMedicalConceptsCypher({
|
|
172
|
+
query: "How many medical concepts are available?",
|
|
173
|
+
limit: 20,
|
|
174
|
+
rag: true,
|
|
175
|
+
});
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
Search/Cypher methods:
|
|
179
|
+
|
|
180
|
+
- `searchProviders`, `searchProvidersCypher`
|
|
181
|
+
- `searchHealthPlans`, `searchHealthPlansCypher`
|
|
182
|
+
- `searchDocumentSummaries`, `searchDocumentSummariesCypher`
|
|
183
|
+
- `searchMedicalConcepts`, `searchMedicalConceptsCypher`
|
|
184
|
+
|
|
185
|
+
Additional GET-backed methods:
|
|
186
|
+
|
|
187
|
+
- `searchMedicalConceptsFaceted`, `listMedicalConceptVocabularies`
|
|
188
|
+
- `listMedicalConcepts`, `getMedicalConcept`
|
|
189
|
+
- `listMedicalConceptRelationships`, `listMedicalConceptAncestors`,
|
|
190
|
+
`listMedicalConceptDescendants`
|
|
191
|
+
- `listPolicyDocuments`, `searchPolicyDocuments`, `getPolicyDocument`
|
|
192
|
+
|
|
193
|
+
Together with `connect`, this is 19 public SDK methods. The live suite executes
|
|
194
|
+
29 scenarios because it tests all eight POST methods both with and without RAG,
|
|
195
|
+
and runs faceted medical-concept search for SNOMED, RXNORM, and MESH.
|
|
196
|
+
|
|
146
197
|
### Telehealth helpers
|
|
147
198
|
|
|
148
199
|
The telehealth client exposes the backend's channel and RTC-token routes:
|
package/dist/index.cjs
CHANGED
|
@@ -1101,7 +1101,6 @@ var GraphClient = class extends BaseServiceClient {
|
|
|
1101
1101
|
connect() {
|
|
1102
1102
|
return this.connectService();
|
|
1103
1103
|
}
|
|
1104
|
-
// ─── Providers ───────────────────────────────────────────────────────
|
|
1105
1104
|
searchProviders(request) {
|
|
1106
1105
|
return this.send("POST", "/graph/providers/search", {
|
|
1107
1106
|
body: request
|
|
@@ -1112,17 +1111,6 @@ var GraphClient = class extends BaseServiceClient {
|
|
|
1112
1111
|
body: request
|
|
1113
1112
|
});
|
|
1114
1113
|
}
|
|
1115
|
-
ragProvidersSearch(request) {
|
|
1116
|
-
return this.send("POST", "/graph/rag/providers/search", {
|
|
1117
|
-
body: request
|
|
1118
|
-
});
|
|
1119
|
-
}
|
|
1120
|
-
ragProvidersCypher(request) {
|
|
1121
|
-
return this.send("POST", "/graph/rag/providers/cypher", {
|
|
1122
|
-
body: request
|
|
1123
|
-
});
|
|
1124
|
-
}
|
|
1125
|
-
// ─── Health Plans ────────────────────────────────────────────────────
|
|
1126
1114
|
searchHealthPlans(request) {
|
|
1127
1115
|
return this.send("POST", "/graph/health-plans/search", {
|
|
1128
1116
|
body: request
|
|
@@ -1133,17 +1121,6 @@ var GraphClient = class extends BaseServiceClient {
|
|
|
1133
1121
|
body: request
|
|
1134
1122
|
});
|
|
1135
1123
|
}
|
|
1136
|
-
ragHealthPlansSearch(request) {
|
|
1137
|
-
return this.send("POST", "/graph/rag/health-plans/search", {
|
|
1138
|
-
body: request
|
|
1139
|
-
});
|
|
1140
|
-
}
|
|
1141
|
-
ragHealthPlansCypher(request) {
|
|
1142
|
-
return this.send("POST", "/graph/rag/health-plans/cypher", {
|
|
1143
|
-
body: request
|
|
1144
|
-
});
|
|
1145
|
-
}
|
|
1146
|
-
// ─── Document Summaries ──────────────────────────────────────────────
|
|
1147
1124
|
searchDocumentSummaries(request) {
|
|
1148
1125
|
return this.send("POST", "/graph/document-summaries/search", {
|
|
1149
1126
|
body: request
|
|
@@ -1154,17 +1131,6 @@ var GraphClient = class extends BaseServiceClient {
|
|
|
1154
1131
|
body: request
|
|
1155
1132
|
});
|
|
1156
1133
|
}
|
|
1157
|
-
ragDocumentSummariesSearch(request) {
|
|
1158
|
-
return this.send("POST", "/graph/rag/document-summaries/search", {
|
|
1159
|
-
body: request
|
|
1160
|
-
});
|
|
1161
|
-
}
|
|
1162
|
-
ragDocumentSummariesCypher(request) {
|
|
1163
|
-
return this.send("POST", "/graph/rag/document-summaries/cypher", {
|
|
1164
|
-
body: request
|
|
1165
|
-
});
|
|
1166
|
-
}
|
|
1167
|
-
// ─── Medical Concepts ────────────────────────────────────────────────
|
|
1168
1134
|
searchMedicalConcepts(request) {
|
|
1169
1135
|
return this.send("POST", "/graph/medical-concepts/search", {
|
|
1170
1136
|
body: request
|
|
@@ -1175,15 +1141,26 @@ var GraphClient = class extends BaseServiceClient {
|
|
|
1175
1141
|
body: request
|
|
1176
1142
|
});
|
|
1177
1143
|
}
|
|
1178
|
-
|
|
1179
|
-
return this.send("
|
|
1180
|
-
body: request
|
|
1181
|
-
});
|
|
1144
|
+
searchMedicalConceptsFaceted(query) {
|
|
1145
|
+
return this.send("GET", "/medical-concepts/search", { query });
|
|
1182
1146
|
}
|
|
1183
|
-
|
|
1184
|
-
return this.send("
|
|
1185
|
-
|
|
1186
|
-
|
|
1147
|
+
listMedicalConceptVocabularies() {
|
|
1148
|
+
return this.send("GET", "/medical-concepts/vocabularies");
|
|
1149
|
+
}
|
|
1150
|
+
listMedicalConcepts(query) {
|
|
1151
|
+
return this.send("GET", "/medical-concepts", { query });
|
|
1152
|
+
}
|
|
1153
|
+
getMedicalConcept(conceptId) {
|
|
1154
|
+
return this.send("GET", "/medical-concepts/{concept_id}", { pathParams: { concept_id: conceptId } });
|
|
1155
|
+
}
|
|
1156
|
+
listMedicalConceptRelationships(conceptId, query) {
|
|
1157
|
+
return this.send("GET", "/medical-concepts/{concept_id}/relationships", { pathParams: { concept_id: conceptId }, query });
|
|
1158
|
+
}
|
|
1159
|
+
listMedicalConceptAncestors(conceptId, query) {
|
|
1160
|
+
return this.send("GET", "/medical-concepts/{concept_id}/ancestors", { pathParams: { concept_id: conceptId }, query });
|
|
1161
|
+
}
|
|
1162
|
+
listMedicalConceptDescendants(conceptId, query) {
|
|
1163
|
+
return this.send("GET", "/medical-concepts/{concept_id}/descendants", { pathParams: { concept_id: conceptId }, query });
|
|
1187
1164
|
}
|
|
1188
1165
|
// ─── Policy Documents ────────────────────────────────────────────────
|
|
1189
1166
|
listPolicyDocuments(query) {
|
package/dist/index.d.cts
CHANGED
|
@@ -12612,9 +12612,13 @@ interface DocumentSummaryRagCitation {
|
|
|
12612
12612
|
score?: number | null;
|
|
12613
12613
|
}
|
|
12614
12614
|
interface MedicalConceptRagCitation {
|
|
12615
|
-
|
|
12616
|
-
|
|
12615
|
+
id?: string | null;
|
|
12616
|
+
code?: string | null;
|
|
12617
|
+
vocabulary?: string | null;
|
|
12618
|
+
sctid?: string | null;
|
|
12619
|
+
preferred_term?: string | null;
|
|
12617
12620
|
semantic_tag?: string | null;
|
|
12621
|
+
tty?: string | null;
|
|
12618
12622
|
score?: number | null;
|
|
12619
12623
|
}
|
|
12620
12624
|
interface CypherRagCitation {
|
|
@@ -12638,26 +12642,74 @@ interface GraphRagResponse<TCitation extends GraphRagCitation = GraphRagCitation
|
|
|
12638
12642
|
* - document-summary structured search, Cypher, and Graph-RAG
|
|
12639
12643
|
* - medical-concept structured search, Cypher, and Graph-RAG
|
|
12640
12644
|
* - policy-document list, search, and by-id lookup
|
|
12645
|
+
* - unified medical-concept search, list, detail, relationships, and hierarchy
|
|
12641
12646
|
*/
|
|
12642
12647
|
declare class GraphClient extends BaseServiceClient {
|
|
12643
12648
|
constructor(http: HttpClient);
|
|
12644
12649
|
connect<TResponse = ConnectResponse>(): Promise<TResponse>;
|
|
12645
|
-
searchProviders
|
|
12646
|
-
|
|
12647
|
-
|
|
12648
|
-
|
|
12649
|
-
|
|
12650
|
-
|
|
12651
|
-
|
|
12652
|
-
|
|
12653
|
-
|
|
12654
|
-
|
|
12655
|
-
|
|
12656
|
-
|
|
12657
|
-
|
|
12658
|
-
|
|
12659
|
-
|
|
12660
|
-
|
|
12650
|
+
searchProviders(request: ProviderSearchRequest & {
|
|
12651
|
+
rag: true;
|
|
12652
|
+
}): Promise<GraphRagResponse<ProviderRagCitation>>;
|
|
12653
|
+
searchProviders(request: ProviderSearchRequest & {
|
|
12654
|
+
rag?: false;
|
|
12655
|
+
}): Promise<ProviderSearchResponse>;
|
|
12656
|
+
searchProviders(request: ProviderSearchRequest): Promise<ProviderSearchResponse | GraphRagResponse<ProviderRagCitation>>;
|
|
12657
|
+
searchProvidersCypher(request: CypherQueryRequest & {
|
|
12658
|
+
rag: true;
|
|
12659
|
+
}): Promise<GraphRagResponse<CypherRagCitation>>;
|
|
12660
|
+
searchProvidersCypher(request: CypherQueryRequest & {
|
|
12661
|
+
rag?: false;
|
|
12662
|
+
}): Promise<CypherQueryResponse>;
|
|
12663
|
+
searchProvidersCypher(request: CypherQueryRequest): Promise<CypherQueryResponse | GraphRagResponse<CypherRagCitation>>;
|
|
12664
|
+
searchHealthPlans(request: HealthPlanSearchRequest & {
|
|
12665
|
+
rag: true;
|
|
12666
|
+
}): Promise<GraphRagResponse<HealthPlanRagCitation>>;
|
|
12667
|
+
searchHealthPlans(request: HealthPlanSearchRequest & {
|
|
12668
|
+
rag?: false;
|
|
12669
|
+
}): Promise<HealthPlanSearchResponse>;
|
|
12670
|
+
searchHealthPlans(request: HealthPlanSearchRequest): Promise<HealthPlanSearchResponse | GraphRagResponse<HealthPlanRagCitation>>;
|
|
12671
|
+
searchHealthPlansCypher(request: CypherQueryRequest & {
|
|
12672
|
+
rag: true;
|
|
12673
|
+
}): Promise<GraphRagResponse<CypherRagCitation>>;
|
|
12674
|
+
searchHealthPlansCypher(request: CypherQueryRequest & {
|
|
12675
|
+
rag?: false;
|
|
12676
|
+
}): Promise<CypherQueryResponse>;
|
|
12677
|
+
searchHealthPlansCypher(request: CypherQueryRequest): Promise<CypherQueryResponse | GraphRagResponse<CypherRagCitation>>;
|
|
12678
|
+
searchDocumentSummaries(request: DocumentSummarySearchRequest & {
|
|
12679
|
+
rag: true;
|
|
12680
|
+
}): Promise<GraphRagResponse<DocumentSummaryRagCitation>>;
|
|
12681
|
+
searchDocumentSummaries(request: DocumentSummarySearchRequest & {
|
|
12682
|
+
rag?: false;
|
|
12683
|
+
}): Promise<DocumentSummarySearchResponse>;
|
|
12684
|
+
searchDocumentSummaries(request: DocumentSummarySearchRequest): Promise<DocumentSummarySearchResponse | GraphRagResponse<DocumentSummaryRagCitation>>;
|
|
12685
|
+
searchDocumentSummariesCypher(request: CypherQueryRequest & {
|
|
12686
|
+
rag: true;
|
|
12687
|
+
}): Promise<GraphRagResponse<CypherRagCitation>>;
|
|
12688
|
+
searchDocumentSummariesCypher(request: CypherQueryRequest & {
|
|
12689
|
+
rag?: false;
|
|
12690
|
+
}): Promise<CypherQueryResponse>;
|
|
12691
|
+
searchDocumentSummariesCypher(request: CypherQueryRequest): Promise<CypherQueryResponse | GraphRagResponse<CypherRagCitation>>;
|
|
12692
|
+
searchMedicalConcepts(request: MedicalConceptSearchRequest & {
|
|
12693
|
+
rag: true;
|
|
12694
|
+
}): Promise<GraphRagResponse<MedicalConceptRagCitation>>;
|
|
12695
|
+
searchMedicalConcepts(request: MedicalConceptSearchRequest & {
|
|
12696
|
+
rag?: false;
|
|
12697
|
+
}): Promise<MedicalConceptSearchResponse>;
|
|
12698
|
+
searchMedicalConcepts(request: MedicalConceptSearchRequest): Promise<MedicalConceptSearchResponse | GraphRagResponse<MedicalConceptRagCitation>>;
|
|
12699
|
+
searchMedicalConceptsCypher(request: CypherQueryRequest & {
|
|
12700
|
+
rag: true;
|
|
12701
|
+
}): Promise<GraphRagResponse<CypherRagCitation>>;
|
|
12702
|
+
searchMedicalConceptsCypher(request: CypherQueryRequest & {
|
|
12703
|
+
rag?: false;
|
|
12704
|
+
}): Promise<CypherQueryResponse>;
|
|
12705
|
+
searchMedicalConceptsCypher(request: CypherQueryRequest): Promise<CypherQueryResponse | GraphRagResponse<CypherRagCitation>>;
|
|
12706
|
+
searchMedicalConceptsFaceted<TResponse = MedicalConceptSearchResponse>(query?: MedicalConceptFacetedSearchQuery): Promise<TResponse>;
|
|
12707
|
+
listMedicalConceptVocabularies<TResponse = MedicalConceptVocabularyCount[]>(): Promise<TResponse>;
|
|
12708
|
+
listMedicalConcepts<TResponse = MedicalConcept[]>(query?: MedicalConceptListQuery): Promise<TResponse>;
|
|
12709
|
+
getMedicalConcept<TResponse = MedicalConceptDetailsResponse>(conceptId: string): Promise<TResponse>;
|
|
12710
|
+
listMedicalConceptRelationships<TResponse = MedicalConceptRelationship[]>(conceptId: string, query?: MedicalConceptRelationshipsQuery): Promise<TResponse>;
|
|
12711
|
+
listMedicalConceptAncestors<TResponse = MedicalConcept[]>(conceptId: string, query?: MedicalConceptHierarchyQuery): Promise<TResponse>;
|
|
12712
|
+
listMedicalConceptDescendants<TResponse = MedicalConcept[]>(conceptId: string, query?: MedicalConceptHierarchyQuery): Promise<TResponse>;
|
|
12661
12713
|
listPolicyDocuments<TResponse = PolicyDocument[]>(query?: PolicyDocumentListQuery): Promise<TResponse>;
|
|
12662
12714
|
searchPolicyDocuments<TResponse = PolicyDocument[]>(query: PolicyDocumentSearchQuery): Promise<TResponse>;
|
|
12663
12715
|
getPolicyDocument<TResponse = PolicyDocument>(docId: string): Promise<TResponse>;
|
package/dist/index.d.ts
CHANGED
|
@@ -12612,9 +12612,13 @@ interface DocumentSummaryRagCitation {
|
|
|
12612
12612
|
score?: number | null;
|
|
12613
12613
|
}
|
|
12614
12614
|
interface MedicalConceptRagCitation {
|
|
12615
|
-
|
|
12616
|
-
|
|
12615
|
+
id?: string | null;
|
|
12616
|
+
code?: string | null;
|
|
12617
|
+
vocabulary?: string | null;
|
|
12618
|
+
sctid?: string | null;
|
|
12619
|
+
preferred_term?: string | null;
|
|
12617
12620
|
semantic_tag?: string | null;
|
|
12621
|
+
tty?: string | null;
|
|
12618
12622
|
score?: number | null;
|
|
12619
12623
|
}
|
|
12620
12624
|
interface CypherRagCitation {
|
|
@@ -12638,26 +12642,74 @@ interface GraphRagResponse<TCitation extends GraphRagCitation = GraphRagCitation
|
|
|
12638
12642
|
* - document-summary structured search, Cypher, and Graph-RAG
|
|
12639
12643
|
* - medical-concept structured search, Cypher, and Graph-RAG
|
|
12640
12644
|
* - policy-document list, search, and by-id lookup
|
|
12645
|
+
* - unified medical-concept search, list, detail, relationships, and hierarchy
|
|
12641
12646
|
*/
|
|
12642
12647
|
declare class GraphClient extends BaseServiceClient {
|
|
12643
12648
|
constructor(http: HttpClient);
|
|
12644
12649
|
connect<TResponse = ConnectResponse>(): Promise<TResponse>;
|
|
12645
|
-
searchProviders
|
|
12646
|
-
|
|
12647
|
-
|
|
12648
|
-
|
|
12649
|
-
|
|
12650
|
-
|
|
12651
|
-
|
|
12652
|
-
|
|
12653
|
-
|
|
12654
|
-
|
|
12655
|
-
|
|
12656
|
-
|
|
12657
|
-
|
|
12658
|
-
|
|
12659
|
-
|
|
12660
|
-
|
|
12650
|
+
searchProviders(request: ProviderSearchRequest & {
|
|
12651
|
+
rag: true;
|
|
12652
|
+
}): Promise<GraphRagResponse<ProviderRagCitation>>;
|
|
12653
|
+
searchProviders(request: ProviderSearchRequest & {
|
|
12654
|
+
rag?: false;
|
|
12655
|
+
}): Promise<ProviderSearchResponse>;
|
|
12656
|
+
searchProviders(request: ProviderSearchRequest): Promise<ProviderSearchResponse | GraphRagResponse<ProviderRagCitation>>;
|
|
12657
|
+
searchProvidersCypher(request: CypherQueryRequest & {
|
|
12658
|
+
rag: true;
|
|
12659
|
+
}): Promise<GraphRagResponse<CypherRagCitation>>;
|
|
12660
|
+
searchProvidersCypher(request: CypherQueryRequest & {
|
|
12661
|
+
rag?: false;
|
|
12662
|
+
}): Promise<CypherQueryResponse>;
|
|
12663
|
+
searchProvidersCypher(request: CypherQueryRequest): Promise<CypherQueryResponse | GraphRagResponse<CypherRagCitation>>;
|
|
12664
|
+
searchHealthPlans(request: HealthPlanSearchRequest & {
|
|
12665
|
+
rag: true;
|
|
12666
|
+
}): Promise<GraphRagResponse<HealthPlanRagCitation>>;
|
|
12667
|
+
searchHealthPlans(request: HealthPlanSearchRequest & {
|
|
12668
|
+
rag?: false;
|
|
12669
|
+
}): Promise<HealthPlanSearchResponse>;
|
|
12670
|
+
searchHealthPlans(request: HealthPlanSearchRequest): Promise<HealthPlanSearchResponse | GraphRagResponse<HealthPlanRagCitation>>;
|
|
12671
|
+
searchHealthPlansCypher(request: CypherQueryRequest & {
|
|
12672
|
+
rag: true;
|
|
12673
|
+
}): Promise<GraphRagResponse<CypherRagCitation>>;
|
|
12674
|
+
searchHealthPlansCypher(request: CypherQueryRequest & {
|
|
12675
|
+
rag?: false;
|
|
12676
|
+
}): Promise<CypherQueryResponse>;
|
|
12677
|
+
searchHealthPlansCypher(request: CypherQueryRequest): Promise<CypherQueryResponse | GraphRagResponse<CypherRagCitation>>;
|
|
12678
|
+
searchDocumentSummaries(request: DocumentSummarySearchRequest & {
|
|
12679
|
+
rag: true;
|
|
12680
|
+
}): Promise<GraphRagResponse<DocumentSummaryRagCitation>>;
|
|
12681
|
+
searchDocumentSummaries(request: DocumentSummarySearchRequest & {
|
|
12682
|
+
rag?: false;
|
|
12683
|
+
}): Promise<DocumentSummarySearchResponse>;
|
|
12684
|
+
searchDocumentSummaries(request: DocumentSummarySearchRequest): Promise<DocumentSummarySearchResponse | GraphRagResponse<DocumentSummaryRagCitation>>;
|
|
12685
|
+
searchDocumentSummariesCypher(request: CypherQueryRequest & {
|
|
12686
|
+
rag: true;
|
|
12687
|
+
}): Promise<GraphRagResponse<CypherRagCitation>>;
|
|
12688
|
+
searchDocumentSummariesCypher(request: CypherQueryRequest & {
|
|
12689
|
+
rag?: false;
|
|
12690
|
+
}): Promise<CypherQueryResponse>;
|
|
12691
|
+
searchDocumentSummariesCypher(request: CypherQueryRequest): Promise<CypherQueryResponse | GraphRagResponse<CypherRagCitation>>;
|
|
12692
|
+
searchMedicalConcepts(request: MedicalConceptSearchRequest & {
|
|
12693
|
+
rag: true;
|
|
12694
|
+
}): Promise<GraphRagResponse<MedicalConceptRagCitation>>;
|
|
12695
|
+
searchMedicalConcepts(request: MedicalConceptSearchRequest & {
|
|
12696
|
+
rag?: false;
|
|
12697
|
+
}): Promise<MedicalConceptSearchResponse>;
|
|
12698
|
+
searchMedicalConcepts(request: MedicalConceptSearchRequest): Promise<MedicalConceptSearchResponse | GraphRagResponse<MedicalConceptRagCitation>>;
|
|
12699
|
+
searchMedicalConceptsCypher(request: CypherQueryRequest & {
|
|
12700
|
+
rag: true;
|
|
12701
|
+
}): Promise<GraphRagResponse<CypherRagCitation>>;
|
|
12702
|
+
searchMedicalConceptsCypher(request: CypherQueryRequest & {
|
|
12703
|
+
rag?: false;
|
|
12704
|
+
}): Promise<CypherQueryResponse>;
|
|
12705
|
+
searchMedicalConceptsCypher(request: CypherQueryRequest): Promise<CypherQueryResponse | GraphRagResponse<CypherRagCitation>>;
|
|
12706
|
+
searchMedicalConceptsFaceted<TResponse = MedicalConceptSearchResponse>(query?: MedicalConceptFacetedSearchQuery): Promise<TResponse>;
|
|
12707
|
+
listMedicalConceptVocabularies<TResponse = MedicalConceptVocabularyCount[]>(): Promise<TResponse>;
|
|
12708
|
+
listMedicalConcepts<TResponse = MedicalConcept[]>(query?: MedicalConceptListQuery): Promise<TResponse>;
|
|
12709
|
+
getMedicalConcept<TResponse = MedicalConceptDetailsResponse>(conceptId: string): Promise<TResponse>;
|
|
12710
|
+
listMedicalConceptRelationships<TResponse = MedicalConceptRelationship[]>(conceptId: string, query?: MedicalConceptRelationshipsQuery): Promise<TResponse>;
|
|
12711
|
+
listMedicalConceptAncestors<TResponse = MedicalConcept[]>(conceptId: string, query?: MedicalConceptHierarchyQuery): Promise<TResponse>;
|
|
12712
|
+
listMedicalConceptDescendants<TResponse = MedicalConcept[]>(conceptId: string, query?: MedicalConceptHierarchyQuery): Promise<TResponse>;
|
|
12661
12713
|
listPolicyDocuments<TResponse = PolicyDocument[]>(query?: PolicyDocumentListQuery): Promise<TResponse>;
|
|
12662
12714
|
searchPolicyDocuments<TResponse = PolicyDocument[]>(query: PolicyDocumentSearchQuery): Promise<TResponse>;
|
|
12663
12715
|
getPolicyDocument<TResponse = PolicyDocument>(docId: string): Promise<TResponse>;
|
package/dist/index.js
CHANGED
|
@@ -1030,7 +1030,6 @@ var GraphClient = class extends BaseServiceClient {
|
|
|
1030
1030
|
connect() {
|
|
1031
1031
|
return this.connectService();
|
|
1032
1032
|
}
|
|
1033
|
-
// ─── Providers ───────────────────────────────────────────────────────
|
|
1034
1033
|
searchProviders(request) {
|
|
1035
1034
|
return this.send("POST", "/graph/providers/search", {
|
|
1036
1035
|
body: request
|
|
@@ -1041,17 +1040,6 @@ var GraphClient = class extends BaseServiceClient {
|
|
|
1041
1040
|
body: request
|
|
1042
1041
|
});
|
|
1043
1042
|
}
|
|
1044
|
-
ragProvidersSearch(request) {
|
|
1045
|
-
return this.send("POST", "/graph/rag/providers/search", {
|
|
1046
|
-
body: request
|
|
1047
|
-
});
|
|
1048
|
-
}
|
|
1049
|
-
ragProvidersCypher(request) {
|
|
1050
|
-
return this.send("POST", "/graph/rag/providers/cypher", {
|
|
1051
|
-
body: request
|
|
1052
|
-
});
|
|
1053
|
-
}
|
|
1054
|
-
// ─── Health Plans ────────────────────────────────────────────────────
|
|
1055
1043
|
searchHealthPlans(request) {
|
|
1056
1044
|
return this.send("POST", "/graph/health-plans/search", {
|
|
1057
1045
|
body: request
|
|
@@ -1062,17 +1050,6 @@ var GraphClient = class extends BaseServiceClient {
|
|
|
1062
1050
|
body: request
|
|
1063
1051
|
});
|
|
1064
1052
|
}
|
|
1065
|
-
ragHealthPlansSearch(request) {
|
|
1066
|
-
return this.send("POST", "/graph/rag/health-plans/search", {
|
|
1067
|
-
body: request
|
|
1068
|
-
});
|
|
1069
|
-
}
|
|
1070
|
-
ragHealthPlansCypher(request) {
|
|
1071
|
-
return this.send("POST", "/graph/rag/health-plans/cypher", {
|
|
1072
|
-
body: request
|
|
1073
|
-
});
|
|
1074
|
-
}
|
|
1075
|
-
// ─── Document Summaries ──────────────────────────────────────────────
|
|
1076
1053
|
searchDocumentSummaries(request) {
|
|
1077
1054
|
return this.send("POST", "/graph/document-summaries/search", {
|
|
1078
1055
|
body: request
|
|
@@ -1083,17 +1060,6 @@ var GraphClient = class extends BaseServiceClient {
|
|
|
1083
1060
|
body: request
|
|
1084
1061
|
});
|
|
1085
1062
|
}
|
|
1086
|
-
ragDocumentSummariesSearch(request) {
|
|
1087
|
-
return this.send("POST", "/graph/rag/document-summaries/search", {
|
|
1088
|
-
body: request
|
|
1089
|
-
});
|
|
1090
|
-
}
|
|
1091
|
-
ragDocumentSummariesCypher(request) {
|
|
1092
|
-
return this.send("POST", "/graph/rag/document-summaries/cypher", {
|
|
1093
|
-
body: request
|
|
1094
|
-
});
|
|
1095
|
-
}
|
|
1096
|
-
// ─── Medical Concepts ────────────────────────────────────────────────
|
|
1097
1063
|
searchMedicalConcepts(request) {
|
|
1098
1064
|
return this.send("POST", "/graph/medical-concepts/search", {
|
|
1099
1065
|
body: request
|
|
@@ -1104,15 +1070,26 @@ var GraphClient = class extends BaseServiceClient {
|
|
|
1104
1070
|
body: request
|
|
1105
1071
|
});
|
|
1106
1072
|
}
|
|
1107
|
-
|
|
1108
|
-
return this.send("
|
|
1109
|
-
body: request
|
|
1110
|
-
});
|
|
1073
|
+
searchMedicalConceptsFaceted(query) {
|
|
1074
|
+
return this.send("GET", "/medical-concepts/search", { query });
|
|
1111
1075
|
}
|
|
1112
|
-
|
|
1113
|
-
return this.send("
|
|
1114
|
-
|
|
1115
|
-
|
|
1076
|
+
listMedicalConceptVocabularies() {
|
|
1077
|
+
return this.send("GET", "/medical-concepts/vocabularies");
|
|
1078
|
+
}
|
|
1079
|
+
listMedicalConcepts(query) {
|
|
1080
|
+
return this.send("GET", "/medical-concepts", { query });
|
|
1081
|
+
}
|
|
1082
|
+
getMedicalConcept(conceptId) {
|
|
1083
|
+
return this.send("GET", "/medical-concepts/{concept_id}", { pathParams: { concept_id: conceptId } });
|
|
1084
|
+
}
|
|
1085
|
+
listMedicalConceptRelationships(conceptId, query) {
|
|
1086
|
+
return this.send("GET", "/medical-concepts/{concept_id}/relationships", { pathParams: { concept_id: conceptId }, query });
|
|
1087
|
+
}
|
|
1088
|
+
listMedicalConceptAncestors(conceptId, query) {
|
|
1089
|
+
return this.send("GET", "/medical-concepts/{concept_id}/ancestors", { pathParams: { concept_id: conceptId }, query });
|
|
1090
|
+
}
|
|
1091
|
+
listMedicalConceptDescendants(conceptId, query) {
|
|
1092
|
+
return this.send("GET", "/medical-concepts/{concept_id}/descendants", { pathParams: { concept_id: conceptId }, query });
|
|
1116
1093
|
}
|
|
1117
1094
|
// ─── Policy Documents ────────────────────────────────────────────────
|
|
1118
1095
|
listPolicyDocuments(query) {
|
package/package.json
CHANGED