@healthcloudai/hc-sdk 3.33.0 → 3.34.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/dist/index.cjs +93 -3
- package/dist/index.d.cts +327 -5
- package/dist/index.d.ts +327 -5
- package/dist/index.js +92 -3
- package/docs/docs-manifest.json +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -21,6 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
23
|
AmsClient: () => AmsClient,
|
|
24
|
+
AnalyticsClient: () => AnalyticsClient,
|
|
24
25
|
AnthropicClient: () => AnthropicClient,
|
|
25
26
|
AppleAuthClient: () => AppleAuthClient,
|
|
26
27
|
AthenaHealthClient: () => AthenaHealthClient,
|
|
@@ -93,6 +94,7 @@ var SERVICES = [
|
|
|
93
94
|
"connectors",
|
|
94
95
|
"person",
|
|
95
96
|
"graph",
|
|
97
|
+
"analytics",
|
|
96
98
|
"ams"
|
|
97
99
|
];
|
|
98
100
|
function isServiceName(value) {
|
|
@@ -3971,9 +3973,10 @@ var ProviderClient = class extends BaseServiceClient {
|
|
|
3971
3973
|
return this.send("GET", "/encounters", { query: filters });
|
|
3972
3974
|
}
|
|
3973
3975
|
/**
|
|
3974
|
-
* The queue (GET /encounters/queue): the newest 10 encounters in the tenant that no provider has taken, newest
|
|
3975
|
-
* first, each with a minimal patient summary and `reported_symptoms
|
|
3976
|
-
*
|
|
3976
|
+
* The queue (GET /encounters/queue): the newest 10 encounters in the tenant that no provider has taken, newest
|
|
3977
|
+
* created first, each with a minimal patient summary and `reported_symptoms`: the explicitly labelled Symptoms block
|
|
3978
|
+
* from the patient's notes (intake and unlabelled narrative excluded), cut to at most 300 characters with an
|
|
3979
|
+
* ellipsis when longer, or null when there is none. Use the item's `fhir_id` with claimEncounter.
|
|
3977
3980
|
*/
|
|
3978
3981
|
getEncounterQueue() {
|
|
3979
3982
|
return this.send("GET", "/encounters/queue", {});
|
|
@@ -4558,6 +4561,91 @@ var GraphClient = class extends BaseServiceClient {
|
|
|
4558
4561
|
}
|
|
4559
4562
|
};
|
|
4560
4563
|
|
|
4564
|
+
// src/clients/AnalyticsClient.ts
|
|
4565
|
+
var toQuery = (query) => query;
|
|
4566
|
+
var AnalyticsClient = class extends BaseServiceClient {
|
|
4567
|
+
constructor(http) {
|
|
4568
|
+
super(http, "analytics");
|
|
4569
|
+
}
|
|
4570
|
+
// ─── Payers ──────────────────────────────────────────────────────────
|
|
4571
|
+
listPayers(query) {
|
|
4572
|
+
return this.send("GET", "/analytics/payers", { query: toQuery(query) });
|
|
4573
|
+
}
|
|
4574
|
+
getPayer(payerId) {
|
|
4575
|
+
return this.send("GET", "/analytics/payers/{payer_id}", { pathParams: { payer_id: payerId } });
|
|
4576
|
+
}
|
|
4577
|
+
listPayerPlans(payerId, query) {
|
|
4578
|
+
return this.send("GET", "/analytics/payers/{payer_id}/plans", {
|
|
4579
|
+
pathParams: { payer_id: payerId },
|
|
4580
|
+
query: toQuery(query)
|
|
4581
|
+
});
|
|
4582
|
+
}
|
|
4583
|
+
listPayerNetworks(payerId, query) {
|
|
4584
|
+
return this.send("GET", "/analytics/payers/{payer_id}/networks", {
|
|
4585
|
+
pathParams: { payer_id: payerId },
|
|
4586
|
+
query: toQuery(query)
|
|
4587
|
+
});
|
|
4588
|
+
}
|
|
4589
|
+
listPayerProviders(payerId, query) {
|
|
4590
|
+
return this.send("GET", "/analytics/payers/{payer_id}/providers", {
|
|
4591
|
+
pathParams: { payer_id: payerId },
|
|
4592
|
+
query: toQuery(query)
|
|
4593
|
+
});
|
|
4594
|
+
}
|
|
4595
|
+
// ─── Plans ───────────────────────────────────────────────────────────
|
|
4596
|
+
listPlans(query) {
|
|
4597
|
+
return this.send("GET", "/analytics/plans", { query: toQuery(query) });
|
|
4598
|
+
}
|
|
4599
|
+
/** `planId` is the graph id (`<state>:<year>:<plan_id>`); its colons are URL-encoded for you. */
|
|
4600
|
+
getPlan(planId) {
|
|
4601
|
+
return this.send("GET", "/analytics/plans/{plan_id}", { pathParams: { plan_id: planId } });
|
|
4602
|
+
}
|
|
4603
|
+
// ─── Providers ───────────────────────────────────────────────────────
|
|
4604
|
+
listProviders(query) {
|
|
4605
|
+
return this.send("GET", "/analytics/providers", { query: toQuery(query) });
|
|
4606
|
+
}
|
|
4607
|
+
getProvider(npi) {
|
|
4608
|
+
return this.send("GET", "/analytics/providers/{npi}", { pathParams: { npi } });
|
|
4609
|
+
}
|
|
4610
|
+
// ─── Networks and states ─────────────────────────────────────────────
|
|
4611
|
+
listNetworks(query) {
|
|
4612
|
+
return this.send("GET", "/analytics/networks", { query: toQuery(query) });
|
|
4613
|
+
}
|
|
4614
|
+
listStates(query) {
|
|
4615
|
+
return this.send("GET", "/analytics/states", { query: toQuery(query) });
|
|
4616
|
+
}
|
|
4617
|
+
// ─── Medical concepts ────────────────────────────────────────────────
|
|
4618
|
+
listMedicalConcepts(query) {
|
|
4619
|
+
return this.send("GET", "/analytics/medical-concepts", { query: toQuery(query) });
|
|
4620
|
+
}
|
|
4621
|
+
listMedicalConceptVocabularies(query) {
|
|
4622
|
+
return this.send("GET", "/analytics/medical-concepts/vocabularies", { query: toQuery(query) });
|
|
4623
|
+
}
|
|
4624
|
+
getMedicalConcept(conceptId) {
|
|
4625
|
+
return this.send("GET", "/analytics/medical-concepts/{concept_id}", {
|
|
4626
|
+
pathParams: { concept_id: conceptId }
|
|
4627
|
+
});
|
|
4628
|
+
}
|
|
4629
|
+
listMedicalConceptRelationships(conceptId, query) {
|
|
4630
|
+
return this.send("GET", "/analytics/medical-concepts/{concept_id}/relationships", {
|
|
4631
|
+
pathParams: { concept_id: conceptId },
|
|
4632
|
+
query: toQuery(query)
|
|
4633
|
+
});
|
|
4634
|
+
}
|
|
4635
|
+
listMedicalConceptAncestors(conceptId, query) {
|
|
4636
|
+
return this.send("GET", "/analytics/medical-concepts/{concept_id}/ancestors", {
|
|
4637
|
+
pathParams: { concept_id: conceptId },
|
|
4638
|
+
query: toQuery(query)
|
|
4639
|
+
});
|
|
4640
|
+
}
|
|
4641
|
+
listMedicalConceptDescendants(conceptId, query) {
|
|
4642
|
+
return this.send("GET", "/analytics/medical-concepts/{concept_id}/descendants", {
|
|
4643
|
+
pathParams: { concept_id: conceptId },
|
|
4644
|
+
query: toQuery(query)
|
|
4645
|
+
});
|
|
4646
|
+
}
|
|
4647
|
+
};
|
|
4648
|
+
|
|
4561
4649
|
// src/clients/connectors/ConnectorFactory.ts
|
|
4562
4650
|
function assertConfigObject(connectorName, config) {
|
|
4563
4651
|
if (typeof config !== "object" || config === null || Array.isArray(config)) {
|
|
@@ -7563,6 +7651,7 @@ var HCSDK = class {
|
|
|
7563
7651
|
);
|
|
7564
7652
|
this.mcp = new MCPClient(this.http);
|
|
7565
7653
|
this.graph = new GraphClient(this.http);
|
|
7654
|
+
this.analytics = new AnalyticsClient(this.http);
|
|
7566
7655
|
this.connectors = new ConnectorsNamespace(this.http);
|
|
7567
7656
|
}
|
|
7568
7657
|
setAccessToken(token) {
|
|
@@ -7663,6 +7752,7 @@ var HCSDK_SWAGGER_OPERATION_COUNTS = {
|
|
|
7663
7752
|
// Annotate the CommonJS export names for ESM import in node:
|
|
7664
7753
|
0 && (module.exports = {
|
|
7665
7754
|
AmsClient,
|
|
7755
|
+
AnalyticsClient,
|
|
7666
7756
|
AnthropicClient,
|
|
7667
7757
|
AppleAuthClient,
|
|
7668
7758
|
AthenaHealthClient,
|