@healthcloudai/hc-sdk 3.1.0 → 3.3.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 +34 -1
- package/dist/index.d.cts +1021 -12
- package/dist/index.d.ts +1021 -12
- package/dist/index.js +34 -1
- package/docs/clients/AmsClient.md +1 -1
- package/docs/clients/AppointmentsClient.md +1 -0
- package/docs/clients/GrokClient.md +2 -2
- package/docs/docs-manifest.json +6 -4
- package/docs/examples/index.md +3 -2
- package/docs/index.md +3 -2
- package/docs/models/Appointment.md +1 -0
- package/docs/models/AthenaCreatePatientRequest.md +1 -0
- package/docs/models/AthenaVitalFailedReading.md +25 -0
- package/docs/models/AthenaVitalsMirrorResult.md +1 -0
- package/docs/models/CarequalityRetrieveDocumentsRequest.md +1 -1
- package/docs/models/GetPreferredPharmacyResponse.md +15 -0
- package/docs/models/NearestLocationsResponse.md +1 -1
- package/docs/models/OpenAIEmbedRequest.md +1 -1
- package/docs/models/PatientIntakeResponse.md +2 -0
- package/docs/models/SendGridSendEmailRequest.md +1 -1
- package/docs/models/index.md +2 -1
- package/docs/operations/appointments.book.md +1 -0
- package/docs/operations/appointments.cancel.md +1 -0
- package/docs/operations/appointments.getTelehealthLink.md +118 -0
- package/docs/operations/appointments.listPatientAppointments.md +1 -0
- package/docs/operations/appointments.reschedule.md +1 -0
- package/docs/operations/connectors.athenaListSocialHistoryQuestions.md +1 -1
- package/docs/operations/connectors.carequalityRetrieveDocuments.md +7 -11
- package/docs/operations/connectors.grokCreateHpiSummary.md +2 -2
- package/docs/operations/connectors.grokCreateScreeningSummary.md +2 -2
- package/docs/operations/connectors.openaiEmbed.md +7 -3
- package/docs/operations/connectors.sendgridSend.md +7 -3
- package/docs/operations/list_public_and_orchestrator_agent_ids_api_ams_application_agents__tenant_id__get.md +3 -3
- package/docs/operations/patient.getPatientIntake.md +8 -35
- package/docs/operations/patient.getPreferredPharmacy.md +2 -4
- package/docs/operations/patient.importVitals.md +9 -0
- package/docs/operations/patient.submitPatientIntake.md +8 -35
- package/docs/operations/vitals.recordVitals.md +9 -0
- package/package.json +4 -4
- package/docs/models/FhirResource.md +0 -19
package/dist/index.cjs
CHANGED
|
@@ -364,6 +364,19 @@ var AppointmentsClient = class extends BaseServiceClient {
|
|
|
364
364
|
body: request
|
|
365
365
|
});
|
|
366
366
|
}
|
|
367
|
+
/**
|
|
368
|
+
* Get the telehealth join link for an Athena-booked telehealth appointment.
|
|
369
|
+
* GET /appointments/{appointment_id}/telehealth-link
|
|
370
|
+
*
|
|
371
|
+
* Reads the link back from the Athena appointment's notes (written at
|
|
372
|
+
* booking time) — `book`'s own response also carries it once, right after
|
|
373
|
+
* booking, but `listPatientAppointments`/`cancel`/`reschedule` do not.
|
|
374
|
+
*/
|
|
375
|
+
getTelehealthLink(appointmentId) {
|
|
376
|
+
return this.send("GET", "/appointments/{appointment_id}/telehealth-link", {
|
|
377
|
+
pathParams: { appointment_id: appointmentId }
|
|
378
|
+
});
|
|
379
|
+
}
|
|
367
380
|
// ─── Patient Appointments ────────────────────────────────────────────
|
|
368
381
|
/**
|
|
369
382
|
* List all appointments for a patient.
|
|
@@ -383,7 +396,7 @@ var AmsClient = class extends BaseServiceClient {
|
|
|
383
396
|
super(http, "ams");
|
|
384
397
|
}
|
|
385
398
|
/** GET /application/agents/{tenant_id} (public; no access token required). */
|
|
386
|
-
|
|
399
|
+
getAgentsForTenant(tenantId) {
|
|
387
400
|
return this.send("GET", "/application/agents/{tenant_id}", {
|
|
388
401
|
pathParams: { tenant_id: tenantId },
|
|
389
402
|
auth: false
|
|
@@ -1964,6 +1977,22 @@ function mapValues(data, fn) {
|
|
|
1964
1977
|
return result;
|
|
1965
1978
|
}
|
|
1966
1979
|
|
|
1980
|
+
// src/models/openapi-generated/patient/models/IntakeVendorItemStatus.ts
|
|
1981
|
+
function IntakeVendorItemStatusFromJSON(json) {
|
|
1982
|
+
return IntakeVendorItemStatusFromJSONTyped(json, false);
|
|
1983
|
+
}
|
|
1984
|
+
function IntakeVendorItemStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
1985
|
+
if (json == null) {
|
|
1986
|
+
return json;
|
|
1987
|
+
}
|
|
1988
|
+
return {
|
|
1989
|
+
"index": json["index"],
|
|
1990
|
+
"label": json["label"] === void 0 ? void 0 : json["label"] === null ? null : json["label"],
|
|
1991
|
+
"reason": json["reason"] === void 0 ? void 0 : json["reason"] === null ? null : json["reason"],
|
|
1992
|
+
"status": json["status"]
|
|
1993
|
+
};
|
|
1994
|
+
}
|
|
1995
|
+
|
|
1967
1996
|
// src/models/openapi-generated/patient/models/IntakeVendorSectionStatus.ts
|
|
1968
1997
|
function IntakeVendorSectionStatusFromJSON(json) {
|
|
1969
1998
|
return IntakeVendorSectionStatusFromJSONTyped(json, false);
|
|
@@ -1973,6 +2002,7 @@ function IntakeVendorSectionStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1973
2002
|
return json;
|
|
1974
2003
|
}
|
|
1975
2004
|
return {
|
|
2005
|
+
"item_results": json["item_results"] == null ? void 0 : json["item_results"].map(IntakeVendorItemStatusFromJSON),
|
|
1976
2006
|
"mode": json["mode"] == null ? void 0 : json["mode"],
|
|
1977
2007
|
"reason": json["reason"] === void 0 ? void 0 : json["reason"] === null ? null : json["reason"],
|
|
1978
2008
|
"reference": json["reference"] === void 0 ? void 0 : json["reference"] === null ? null : json["reference"],
|
|
@@ -1989,6 +2019,7 @@ function IntakeVendorStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1989
2019
|
return json;
|
|
1990
2020
|
}
|
|
1991
2021
|
return {
|
|
2022
|
+
"item_results": json["item_results"] == null ? void 0 : json["item_results"].map(IntakeVendorItemStatusFromJSON),
|
|
1992
2023
|
"mode": json["mode"] == null ? void 0 : json["mode"],
|
|
1993
2024
|
"reason": json["reason"] === void 0 ? void 0 : json["reason"] === null ? null : json["reason"],
|
|
1994
2025
|
"reference": json["reference"] === void 0 ? void 0 : json["reference"] === null ? null : json["reference"],
|
|
@@ -2008,8 +2039,10 @@ function PatientIntakeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
2008
2039
|
}
|
|
2009
2040
|
return {
|
|
2010
2041
|
"created_at": new Date(json["created_at"]),
|
|
2042
|
+
"invalid_entries": json["invalid_entries"] === void 0 ? void 0 : json["invalid_entries"] === null ? null : json["invalid_entries"],
|
|
2011
2043
|
"storage_status": json["storage_status"],
|
|
2012
2044
|
"submission_id": json["submission_id"],
|
|
2045
|
+
"unknown_fields": json["unknown_fields"] === void 0 ? void 0 : json["unknown_fields"] === null ? null : json["unknown_fields"],
|
|
2013
2046
|
"vendors": mapValues(json["vendors"], IntakeVendorStatusFromJSON)
|
|
2014
2047
|
};
|
|
2015
2048
|
}
|