@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.
Files changed (40) hide show
  1. package/dist/index.cjs +34 -1
  2. package/dist/index.d.cts +1021 -12
  3. package/dist/index.d.ts +1021 -12
  4. package/dist/index.js +34 -1
  5. package/docs/clients/AmsClient.md +1 -1
  6. package/docs/clients/AppointmentsClient.md +1 -0
  7. package/docs/clients/GrokClient.md +2 -2
  8. package/docs/docs-manifest.json +6 -4
  9. package/docs/examples/index.md +3 -2
  10. package/docs/index.md +3 -2
  11. package/docs/models/Appointment.md +1 -0
  12. package/docs/models/AthenaCreatePatientRequest.md +1 -0
  13. package/docs/models/AthenaVitalFailedReading.md +25 -0
  14. package/docs/models/AthenaVitalsMirrorResult.md +1 -0
  15. package/docs/models/CarequalityRetrieveDocumentsRequest.md +1 -1
  16. package/docs/models/GetPreferredPharmacyResponse.md +15 -0
  17. package/docs/models/NearestLocationsResponse.md +1 -1
  18. package/docs/models/OpenAIEmbedRequest.md +1 -1
  19. package/docs/models/PatientIntakeResponse.md +2 -0
  20. package/docs/models/SendGridSendEmailRequest.md +1 -1
  21. package/docs/models/index.md +2 -1
  22. package/docs/operations/appointments.book.md +1 -0
  23. package/docs/operations/appointments.cancel.md +1 -0
  24. package/docs/operations/appointments.getTelehealthLink.md +118 -0
  25. package/docs/operations/appointments.listPatientAppointments.md +1 -0
  26. package/docs/operations/appointments.reschedule.md +1 -0
  27. package/docs/operations/connectors.athenaListSocialHistoryQuestions.md +1 -1
  28. package/docs/operations/connectors.carequalityRetrieveDocuments.md +7 -11
  29. package/docs/operations/connectors.grokCreateHpiSummary.md +2 -2
  30. package/docs/operations/connectors.grokCreateScreeningSummary.md +2 -2
  31. package/docs/operations/connectors.openaiEmbed.md +7 -3
  32. package/docs/operations/connectors.sendgridSend.md +7 -3
  33. package/docs/operations/list_public_and_orchestrator_agent_ids_api_ams_application_agents__tenant_id__get.md +3 -3
  34. package/docs/operations/patient.getPatientIntake.md +8 -35
  35. package/docs/operations/patient.getPreferredPharmacy.md +2 -4
  36. package/docs/operations/patient.importVitals.md +9 -0
  37. package/docs/operations/patient.submitPatientIntake.md +8 -35
  38. package/docs/operations/vitals.recordVitals.md +9 -0
  39. package/package.json +4 -4
  40. 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
- listApplicationAgents(tenantId) {
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
  }