@healthcloudai/hc-sdk 3.32.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 +102 -3
- package/dist/index.d.cts +392 -6
- package/dist/index.d.ts +392 -6
- package/dist/index.js +101 -3
- package/docs/clients/ProviderClient.md +1 -0
- package/docs/docs-manifest.json +5 -3
- package/docs/examples/index.md +1 -0
- package/docs/index.md +1 -0
- package/docs/models/EnsureAppointmentEncounterResponse.md +20 -0
- package/docs/models/index.md +1 -0
- package/docs/operations/provider.ensureAppointmentEncounter.md +150 -0
- 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", {});
|
|
@@ -3987,6 +3990,15 @@ var ProviderClient = class extends BaseServiceClient {
|
|
|
3987
3990
|
claimEncounter(encounterId) {
|
|
3988
3991
|
return this.send("POST", "/encounters/{encounter_id}/claim", { pathParams: { encounter_id: encounterId } });
|
|
3989
3992
|
}
|
|
3993
|
+
/**
|
|
3994
|
+
* Get or open the encounter for a video visit (POST /appointments/{id}/encounter). Returns the caller's open encounter
|
|
3995
|
+
* for the patient, else the appointment's own encounter (any status; a finished one is read-only), else creates a virtual
|
|
3996
|
+
* in-progress encounter linked to the appointment. `created` says which. The patient is not notified and no linked EHR is
|
|
3997
|
+
* written. Rejects with 403 when the appointment is not the caller's, 404 when it does not exist, 400 for an invalid id.
|
|
3998
|
+
*/
|
|
3999
|
+
ensureAppointmentEncounter(appointmentId) {
|
|
4000
|
+
return this.send("POST", "/appointments/{appointment_id}/encounter", { pathParams: { appointment_id: appointmentId } });
|
|
4001
|
+
}
|
|
3990
4002
|
/**
|
|
3991
4003
|
* Replace an encounter's diagnoses (PUT /encounters/{id}/diagnoses): add, change or remove. Codes come from
|
|
3992
4004
|
* searchIcd10; codes left out of the list are removed, and the display text always comes from the ICD-10 data. Only the
|
|
@@ -4549,6 +4561,91 @@ var GraphClient = class extends BaseServiceClient {
|
|
|
4549
4561
|
}
|
|
4550
4562
|
};
|
|
4551
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
|
+
|
|
4552
4649
|
// src/clients/connectors/ConnectorFactory.ts
|
|
4553
4650
|
function assertConfigObject(connectorName, config) {
|
|
4554
4651
|
if (typeof config !== "object" || config === null || Array.isArray(config)) {
|
|
@@ -7554,6 +7651,7 @@ var HCSDK = class {
|
|
|
7554
7651
|
);
|
|
7555
7652
|
this.mcp = new MCPClient(this.http);
|
|
7556
7653
|
this.graph = new GraphClient(this.http);
|
|
7654
|
+
this.analytics = new AnalyticsClient(this.http);
|
|
7557
7655
|
this.connectors = new ConnectorsNamespace(this.http);
|
|
7558
7656
|
}
|
|
7559
7657
|
setAccessToken(token) {
|
|
@@ -7654,6 +7752,7 @@ var HCSDK_SWAGGER_OPERATION_COUNTS = {
|
|
|
7654
7752
|
// Annotate the CommonJS export names for ESM import in node:
|
|
7655
7753
|
0 && (module.exports = {
|
|
7656
7754
|
AmsClient,
|
|
7755
|
+
AnalyticsClient,
|
|
7657
7756
|
AnthropicClient,
|
|
7658
7757
|
AppleAuthClient,
|
|
7659
7758
|
AthenaHealthClient,
|