@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.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 created
3897
- * first, each with a minimal patient summary and `reported_symptoms` (what the patient reported, cut to 300 characters).
3898
- * Use the item's `fhir_id` with claimEncounter.
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,91 @@ 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
+ // ─── Providers ───────────────────────────────────────────────────────
4525
+ listProviders(query) {
4526
+ return this.send("GET", "/analytics/providers", { query: toQuery(query) });
4527
+ }
4528
+ getProvider(npi) {
4529
+ return this.send("GET", "/analytics/providers/{npi}", { pathParams: { npi } });
4530
+ }
4531
+ // ─── Networks and states ─────────────────────────────────────────────
4532
+ listNetworks(query) {
4533
+ return this.send("GET", "/analytics/networks", { query: toQuery(query) });
4534
+ }
4535
+ listStates(query) {
4536
+ return this.send("GET", "/analytics/states", { query: toQuery(query) });
4537
+ }
4538
+ // ─── Medical concepts ────────────────────────────────────────────────
4539
+ listMedicalConcepts(query) {
4540
+ return this.send("GET", "/analytics/medical-concepts", { query: toQuery(query) });
4541
+ }
4542
+ listMedicalConceptVocabularies(query) {
4543
+ return this.send("GET", "/analytics/medical-concepts/vocabularies", { query: toQuery(query) });
4544
+ }
4545
+ getMedicalConcept(conceptId) {
4546
+ return this.send("GET", "/analytics/medical-concepts/{concept_id}", {
4547
+ pathParams: { concept_id: conceptId }
4548
+ });
4549
+ }
4550
+ listMedicalConceptRelationships(conceptId, query) {
4551
+ return this.send("GET", "/analytics/medical-concepts/{concept_id}/relationships", {
4552
+ pathParams: { concept_id: conceptId },
4553
+ query: toQuery(query)
4554
+ });
4555
+ }
4556
+ listMedicalConceptAncestors(conceptId, query) {
4557
+ return this.send("GET", "/analytics/medical-concepts/{concept_id}/ancestors", {
4558
+ pathParams: { concept_id: conceptId },
4559
+ query: toQuery(query)
4560
+ });
4561
+ }
4562
+ listMedicalConceptDescendants(conceptId, query) {
4563
+ return this.send("GET", "/analytics/medical-concepts/{concept_id}/descendants", {
4564
+ pathParams: { concept_id: conceptId },
4565
+ query: toQuery(query)
4566
+ });
4567
+ }
4568
+ };
4569
+
4483
4570
  // src/clients/connectors/ConnectorFactory.ts
4484
4571
  function assertConfigObject(connectorName, config) {
4485
4572
  if (typeof config !== "object" || config === null || Array.isArray(config)) {
@@ -7485,6 +7572,7 @@ var HCSDK = class {
7485
7572
  );
7486
7573
  this.mcp = new MCPClient(this.http);
7487
7574
  this.graph = new GraphClient(this.http);
7575
+ this.analytics = new AnalyticsClient(this.http);
7488
7576
  this.connectors = new ConnectorsNamespace(this.http);
7489
7577
  }
7490
7578
  setAccessToken(token) {
@@ -7584,6 +7672,7 @@ var HCSDK_SWAGGER_OPERATION_COUNTS = {
7584
7672
  };
7585
7673
  export {
7586
7674
  AmsClient,
7675
+ AnalyticsClient,
7587
7676
  AnthropicClient,
7588
7677
  AppleAuthClient,
7589
7678
  AthenaHealthClient,
@@ -1,5 +1,5 @@
1
1
  {
2
- "docsDataContentDigest": "sha256:8d802eaebddccf29de88e6f8680a7c49682c4199e281ff6840bed0fd6ca4e59b",
2
+ "docsDataContentDigest": "sha256:c520f32221cccf017ce5e58b66657f04c075786abfa135ce1dda689fe45b2d20",
3
3
  "generatedFiles": [
4
4
  "authentication.md",
5
5
  "clients/AmsClient.md",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@healthcloudai/hc-sdk",
3
- "version": "3.33.0",
3
+ "version": "3.34.0",
4
4
  "description": "All-in-one HealthCloud SDK with typed platform APIs and secure connector clients.",
5
5
  "author": "Healthcheck Systems Inc",
6
6
  "license": "MIT",