@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 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 created
3975
- * first, each with a minimal patient summary and `reported_symptoms` (what the patient reported, cut to 300 characters).
3976
- * Use the item's `fhir_id` with claimEncounter.
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,108 @@ 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
+ /**
4604
+ * The plan's drug formulary summary plus a page of its drugs (tier, then name). A plan with no
4605
+ * formulary answers `formulary: null` and no items.
4606
+ */
4607
+ listPlanFormulary(planId, query) {
4608
+ return this.send("GET", "/analytics/plans/{plan_id}/formulary", {
4609
+ pathParams: { plan_id: planId },
4610
+ query: toQuery(query)
4611
+ });
4612
+ }
4613
+ /** The plan's drug cost sharing, one row per tier and pharmacy channel. */
4614
+ listPlanCostShares(planId, query) {
4615
+ return this.send("GET", "/analytics/plans/{plan_id}/cost-shares", {
4616
+ pathParams: { plan_id: planId },
4617
+ query: toQuery(query)
4618
+ });
4619
+ }
4620
+ // ─── Providers ───────────────────────────────────────────────────────
4621
+ listProviders(query) {
4622
+ return this.send("GET", "/analytics/providers", { query: toQuery(query) });
4623
+ }
4624
+ getProvider(npi) {
4625
+ return this.send("GET", "/analytics/providers/{npi}", { pathParams: { npi } });
4626
+ }
4627
+ // ─── Networks and states ─────────────────────────────────────────────
4628
+ listNetworks(query) {
4629
+ return this.send("GET", "/analytics/networks", { query: toQuery(query) });
4630
+ }
4631
+ listStates(query) {
4632
+ return this.send("GET", "/analytics/states", { query: toQuery(query) });
4633
+ }
4634
+ // ─── Medical concepts ────────────────────────────────────────────────
4635
+ listMedicalConcepts(query) {
4636
+ return this.send("GET", "/analytics/medical-concepts", { query: toQuery(query) });
4637
+ }
4638
+ listMedicalConceptVocabularies(query) {
4639
+ return this.send("GET", "/analytics/medical-concepts/vocabularies", { query: toQuery(query) });
4640
+ }
4641
+ getMedicalConcept(conceptId) {
4642
+ return this.send("GET", "/analytics/medical-concepts/{concept_id}", {
4643
+ pathParams: { concept_id: conceptId }
4644
+ });
4645
+ }
4646
+ listMedicalConceptRelationships(conceptId, query) {
4647
+ return this.send("GET", "/analytics/medical-concepts/{concept_id}/relationships", {
4648
+ pathParams: { concept_id: conceptId },
4649
+ query: toQuery(query)
4650
+ });
4651
+ }
4652
+ listMedicalConceptAncestors(conceptId, query) {
4653
+ return this.send("GET", "/analytics/medical-concepts/{concept_id}/ancestors", {
4654
+ pathParams: { concept_id: conceptId },
4655
+ query: toQuery(query)
4656
+ });
4657
+ }
4658
+ listMedicalConceptDescendants(conceptId, query) {
4659
+ return this.send("GET", "/analytics/medical-concepts/{concept_id}/descendants", {
4660
+ pathParams: { concept_id: conceptId },
4661
+ query: toQuery(query)
4662
+ });
4663
+ }
4664
+ };
4665
+
4561
4666
  // src/clients/connectors/ConnectorFactory.ts
4562
4667
  function assertConfigObject(connectorName, config) {
4563
4668
  if (typeof config !== "object" || config === null || Array.isArray(config)) {
@@ -7563,6 +7668,7 @@ var HCSDK = class {
7563
7668
  );
7564
7669
  this.mcp = new MCPClient(this.http);
7565
7670
  this.graph = new GraphClient(this.http);
7671
+ this.analytics = new AnalyticsClient(this.http);
7566
7672
  this.connectors = new ConnectorsNamespace(this.http);
7567
7673
  }
7568
7674
  setAccessToken(token) {
@@ -7663,6 +7769,7 @@ var HCSDK_SWAGGER_OPERATION_COUNTS = {
7663
7769
  // Annotate the CommonJS export names for ESM import in node:
7664
7770
  0 && (module.exports = {
7665
7771
  AmsClient,
7772
+ AnalyticsClient,
7666
7773
  AnthropicClient,
7667
7774
  AppleAuthClient,
7668
7775
  AthenaHealthClient,