@healthcloudai/hc-sdk 3.33.0 → 3.35.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 +110 -3
- package/dist/index.d.cts +421 -5
- package/dist/index.d.ts +421 -5
- package/dist/index.js +109 -3
- package/docs/docs-manifest.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15,6 +15,7 @@ var SERVICES = [
|
|
|
15
15
|
"connectors",
|
|
16
16
|
"person",
|
|
17
17
|
"graph",
|
|
18
|
+
"analytics",
|
|
18
19
|
"ams"
|
|
19
20
|
];
|
|
20
21
|
function isServiceName(value) {
|
|
@@ -3893,9 +3894,10 @@ var ProviderClient = class extends BaseServiceClient {
|
|
|
3893
3894
|
return this.send("GET", "/encounters", { query: filters });
|
|
3894
3895
|
}
|
|
3895
3896
|
/**
|
|
3896
|
-
* The queue (GET /encounters/queue): the newest 10 encounters in the tenant that no provider has taken, newest
|
|
3897
|
-
* first, each with a minimal patient summary and `reported_symptoms
|
|
3898
|
-
*
|
|
3897
|
+
* The queue (GET /encounters/queue): the newest 10 encounters in the tenant that no provider has taken, newest
|
|
3898
|
+
* created first, each with a minimal patient summary and `reported_symptoms`: the explicitly labelled Symptoms block
|
|
3899
|
+
* from the patient's notes (intake and unlabelled narrative excluded), cut to at most 300 characters with an
|
|
3900
|
+
* ellipsis when longer, or null when there is none. Use the item's `fhir_id` with claimEncounter.
|
|
3899
3901
|
*/
|
|
3900
3902
|
getEncounterQueue() {
|
|
3901
3903
|
return this.send("GET", "/encounters/queue", {});
|
|
@@ -4480,6 +4482,108 @@ var GraphClient = class extends BaseServiceClient {
|
|
|
4480
4482
|
}
|
|
4481
4483
|
};
|
|
4482
4484
|
|
|
4485
|
+
// src/clients/AnalyticsClient.ts
|
|
4486
|
+
var toQuery = (query) => query;
|
|
4487
|
+
var AnalyticsClient = class extends BaseServiceClient {
|
|
4488
|
+
constructor(http) {
|
|
4489
|
+
super(http, "analytics");
|
|
4490
|
+
}
|
|
4491
|
+
// ─── Payers ──────────────────────────────────────────────────────────
|
|
4492
|
+
listPayers(query) {
|
|
4493
|
+
return this.send("GET", "/analytics/payers", { query: toQuery(query) });
|
|
4494
|
+
}
|
|
4495
|
+
getPayer(payerId) {
|
|
4496
|
+
return this.send("GET", "/analytics/payers/{payer_id}", { pathParams: { payer_id: payerId } });
|
|
4497
|
+
}
|
|
4498
|
+
listPayerPlans(payerId, query) {
|
|
4499
|
+
return this.send("GET", "/analytics/payers/{payer_id}/plans", {
|
|
4500
|
+
pathParams: { payer_id: payerId },
|
|
4501
|
+
query: toQuery(query)
|
|
4502
|
+
});
|
|
4503
|
+
}
|
|
4504
|
+
listPayerNetworks(payerId, query) {
|
|
4505
|
+
return this.send("GET", "/analytics/payers/{payer_id}/networks", {
|
|
4506
|
+
pathParams: { payer_id: payerId },
|
|
4507
|
+
query: toQuery(query)
|
|
4508
|
+
});
|
|
4509
|
+
}
|
|
4510
|
+
listPayerProviders(payerId, query) {
|
|
4511
|
+
return this.send("GET", "/analytics/payers/{payer_id}/providers", {
|
|
4512
|
+
pathParams: { payer_id: payerId },
|
|
4513
|
+
query: toQuery(query)
|
|
4514
|
+
});
|
|
4515
|
+
}
|
|
4516
|
+
// ─── Plans ───────────────────────────────────────────────────────────
|
|
4517
|
+
listPlans(query) {
|
|
4518
|
+
return this.send("GET", "/analytics/plans", { query: toQuery(query) });
|
|
4519
|
+
}
|
|
4520
|
+
/** `planId` is the graph id (`<state>:<year>:<plan_id>`); its colons are URL-encoded for you. */
|
|
4521
|
+
getPlan(planId) {
|
|
4522
|
+
return this.send("GET", "/analytics/plans/{plan_id}", { pathParams: { plan_id: planId } });
|
|
4523
|
+
}
|
|
4524
|
+
/**
|
|
4525
|
+
* The plan's drug formulary summary plus a page of its drugs (tier, then name). A plan with no
|
|
4526
|
+
* formulary answers `formulary: null` and no items.
|
|
4527
|
+
*/
|
|
4528
|
+
listPlanFormulary(planId, query) {
|
|
4529
|
+
return this.send("GET", "/analytics/plans/{plan_id}/formulary", {
|
|
4530
|
+
pathParams: { plan_id: planId },
|
|
4531
|
+
query: toQuery(query)
|
|
4532
|
+
});
|
|
4533
|
+
}
|
|
4534
|
+
/** The plan's drug cost sharing, one row per tier and pharmacy channel. */
|
|
4535
|
+
listPlanCostShares(planId, query) {
|
|
4536
|
+
return this.send("GET", "/analytics/plans/{plan_id}/cost-shares", {
|
|
4537
|
+
pathParams: { plan_id: planId },
|
|
4538
|
+
query: toQuery(query)
|
|
4539
|
+
});
|
|
4540
|
+
}
|
|
4541
|
+
// ─── Providers ───────────────────────────────────────────────────────
|
|
4542
|
+
listProviders(query) {
|
|
4543
|
+
return this.send("GET", "/analytics/providers", { query: toQuery(query) });
|
|
4544
|
+
}
|
|
4545
|
+
getProvider(npi) {
|
|
4546
|
+
return this.send("GET", "/analytics/providers/{npi}", { pathParams: { npi } });
|
|
4547
|
+
}
|
|
4548
|
+
// ─── Networks and states ─────────────────────────────────────────────
|
|
4549
|
+
listNetworks(query) {
|
|
4550
|
+
return this.send("GET", "/analytics/networks", { query: toQuery(query) });
|
|
4551
|
+
}
|
|
4552
|
+
listStates(query) {
|
|
4553
|
+
return this.send("GET", "/analytics/states", { query: toQuery(query) });
|
|
4554
|
+
}
|
|
4555
|
+
// ─── Medical concepts ────────────────────────────────────────────────
|
|
4556
|
+
listMedicalConcepts(query) {
|
|
4557
|
+
return this.send("GET", "/analytics/medical-concepts", { query: toQuery(query) });
|
|
4558
|
+
}
|
|
4559
|
+
listMedicalConceptVocabularies(query) {
|
|
4560
|
+
return this.send("GET", "/analytics/medical-concepts/vocabularies", { query: toQuery(query) });
|
|
4561
|
+
}
|
|
4562
|
+
getMedicalConcept(conceptId) {
|
|
4563
|
+
return this.send("GET", "/analytics/medical-concepts/{concept_id}", {
|
|
4564
|
+
pathParams: { concept_id: conceptId }
|
|
4565
|
+
});
|
|
4566
|
+
}
|
|
4567
|
+
listMedicalConceptRelationships(conceptId, query) {
|
|
4568
|
+
return this.send("GET", "/analytics/medical-concepts/{concept_id}/relationships", {
|
|
4569
|
+
pathParams: { concept_id: conceptId },
|
|
4570
|
+
query: toQuery(query)
|
|
4571
|
+
});
|
|
4572
|
+
}
|
|
4573
|
+
listMedicalConceptAncestors(conceptId, query) {
|
|
4574
|
+
return this.send("GET", "/analytics/medical-concepts/{concept_id}/ancestors", {
|
|
4575
|
+
pathParams: { concept_id: conceptId },
|
|
4576
|
+
query: toQuery(query)
|
|
4577
|
+
});
|
|
4578
|
+
}
|
|
4579
|
+
listMedicalConceptDescendants(conceptId, query) {
|
|
4580
|
+
return this.send("GET", "/analytics/medical-concepts/{concept_id}/descendants", {
|
|
4581
|
+
pathParams: { concept_id: conceptId },
|
|
4582
|
+
query: toQuery(query)
|
|
4583
|
+
});
|
|
4584
|
+
}
|
|
4585
|
+
};
|
|
4586
|
+
|
|
4483
4587
|
// src/clients/connectors/ConnectorFactory.ts
|
|
4484
4588
|
function assertConfigObject(connectorName, config) {
|
|
4485
4589
|
if (typeof config !== "object" || config === null || Array.isArray(config)) {
|
|
@@ -7485,6 +7589,7 @@ var HCSDK = class {
|
|
|
7485
7589
|
);
|
|
7486
7590
|
this.mcp = new MCPClient(this.http);
|
|
7487
7591
|
this.graph = new GraphClient(this.http);
|
|
7592
|
+
this.analytics = new AnalyticsClient(this.http);
|
|
7488
7593
|
this.connectors = new ConnectorsNamespace(this.http);
|
|
7489
7594
|
}
|
|
7490
7595
|
setAccessToken(token) {
|
|
@@ -7584,6 +7689,7 @@ var HCSDK_SWAGGER_OPERATION_COUNTS = {
|
|
|
7584
7689
|
};
|
|
7585
7690
|
export {
|
|
7586
7691
|
AmsClient,
|
|
7692
|
+
AnalyticsClient,
|
|
7587
7693
|
AnthropicClient,
|
|
7588
7694
|
AppleAuthClient,
|
|
7589
7695
|
AthenaHealthClient,
|
package/docs/docs-manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"docsDataContentDigest": "sha256:
|
|
2
|
+
"docsDataContentDigest": "sha256:c254d6c82be8809aff78a12f79c5bc72065c6aaef6fca500790b28ded154fc90",
|
|
3
3
|
"generatedFiles": [
|
|
4
4
|
"authentication.md",
|
|
5
5
|
"clients/AmsClient.md",
|
package/package.json
CHANGED