@healthcloudai/hc-sdk 3.1.0 → 3.2.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 (38) hide show
  1. package/dist/index.cjs +21 -1
  2. package/dist/index.d.cts +999 -11
  3. package/dist/index.d.ts +999 -11
  4. package/dist/index.js +21 -1
  5. package/docs/clients/AmsClient.md +1 -1
  6. package/docs/clients/GrokClient.md +2 -2
  7. package/docs/docs-manifest.json +4 -3
  8. package/docs/examples/index.md +2 -2
  9. package/docs/index.md +2 -2
  10. package/docs/models/Appointment.md +1 -0
  11. package/docs/models/AthenaCreatePatientRequest.md +1 -0
  12. package/docs/models/AthenaVitalFailedReading.md +25 -0
  13. package/docs/models/AthenaVitalsMirrorResult.md +1 -0
  14. package/docs/models/CarequalityRetrieveDocumentsRequest.md +1 -1
  15. package/docs/models/GetPreferredPharmacyResponse.md +15 -0
  16. package/docs/models/NearestLocationsResponse.md +1 -1
  17. package/docs/models/OpenAIEmbedRequest.md +1 -1
  18. package/docs/models/PatientIntakeResponse.md +2 -0
  19. package/docs/models/SendGridSendEmailRequest.md +1 -1
  20. package/docs/models/index.md +2 -1
  21. package/docs/operations/appointments.book.md +1 -0
  22. package/docs/operations/appointments.cancel.md +1 -0
  23. package/docs/operations/appointments.listPatientAppointments.md +1 -0
  24. package/docs/operations/appointments.reschedule.md +1 -0
  25. package/docs/operations/connectors.athenaListSocialHistoryQuestions.md +1 -1
  26. package/docs/operations/connectors.carequalityRetrieveDocuments.md +7 -11
  27. package/docs/operations/connectors.grokCreateHpiSummary.md +2 -2
  28. package/docs/operations/connectors.grokCreateScreeningSummary.md +2 -2
  29. package/docs/operations/connectors.openaiEmbed.md +7 -3
  30. package/docs/operations/connectors.sendgridSend.md +7 -3
  31. package/docs/operations/list_public_and_orchestrator_agent_ids_api_ams_application_agents__tenant_id__get.md +3 -3
  32. package/docs/operations/patient.getPatientIntake.md +8 -35
  33. package/docs/operations/patient.getPreferredPharmacy.md +2 -4
  34. package/docs/operations/patient.importVitals.md +9 -0
  35. package/docs/operations/patient.submitPatientIntake.md +8 -35
  36. package/docs/operations/vitals.recordVitals.md +9 -0
  37. package/package.json +4 -4
  38. package/docs/models/FhirResource.md +0 -19
package/dist/index.cjs CHANGED
@@ -383,7 +383,7 @@ var AmsClient = class extends BaseServiceClient {
383
383
  super(http, "ams");
384
384
  }
385
385
  /** GET /application/agents/{tenant_id} (public; no access token required). */
386
- listApplicationAgents(tenantId) {
386
+ getAgentsForTenant(tenantId) {
387
387
  return this.send("GET", "/application/agents/{tenant_id}", {
388
388
  pathParams: { tenant_id: tenantId },
389
389
  auth: false
@@ -1964,6 +1964,22 @@ function mapValues(data, fn) {
1964
1964
  return result;
1965
1965
  }
1966
1966
 
1967
+ // src/models/openapi-generated/patient/models/IntakeVendorItemStatus.ts
1968
+ function IntakeVendorItemStatusFromJSON(json) {
1969
+ return IntakeVendorItemStatusFromJSONTyped(json, false);
1970
+ }
1971
+ function IntakeVendorItemStatusFromJSONTyped(json, ignoreDiscriminator) {
1972
+ if (json == null) {
1973
+ return json;
1974
+ }
1975
+ return {
1976
+ "index": json["index"],
1977
+ "label": json["label"] === void 0 ? void 0 : json["label"] === null ? null : json["label"],
1978
+ "reason": json["reason"] === void 0 ? void 0 : json["reason"] === null ? null : json["reason"],
1979
+ "status": json["status"]
1980
+ };
1981
+ }
1982
+
1967
1983
  // src/models/openapi-generated/patient/models/IntakeVendorSectionStatus.ts
1968
1984
  function IntakeVendorSectionStatusFromJSON(json) {
1969
1985
  return IntakeVendorSectionStatusFromJSONTyped(json, false);
@@ -1973,6 +1989,7 @@ function IntakeVendorSectionStatusFromJSONTyped(json, ignoreDiscriminator) {
1973
1989
  return json;
1974
1990
  }
1975
1991
  return {
1992
+ "item_results": json["item_results"] == null ? void 0 : json["item_results"].map(IntakeVendorItemStatusFromJSON),
1976
1993
  "mode": json["mode"] == null ? void 0 : json["mode"],
1977
1994
  "reason": json["reason"] === void 0 ? void 0 : json["reason"] === null ? null : json["reason"],
1978
1995
  "reference": json["reference"] === void 0 ? void 0 : json["reference"] === null ? null : json["reference"],
@@ -1989,6 +2006,7 @@ function IntakeVendorStatusFromJSONTyped(json, ignoreDiscriminator) {
1989
2006
  return json;
1990
2007
  }
1991
2008
  return {
2009
+ "item_results": json["item_results"] == null ? void 0 : json["item_results"].map(IntakeVendorItemStatusFromJSON),
1992
2010
  "mode": json["mode"] == null ? void 0 : json["mode"],
1993
2011
  "reason": json["reason"] === void 0 ? void 0 : json["reason"] === null ? null : json["reason"],
1994
2012
  "reference": json["reference"] === void 0 ? void 0 : json["reference"] === null ? null : json["reference"],
@@ -2008,8 +2026,10 @@ function PatientIntakeResponseFromJSONTyped(json, ignoreDiscriminator) {
2008
2026
  }
2009
2027
  return {
2010
2028
  "created_at": new Date(json["created_at"]),
2029
+ "invalid_entries": json["invalid_entries"] === void 0 ? void 0 : json["invalid_entries"] === null ? null : json["invalid_entries"],
2011
2030
  "storage_status": json["storage_status"],
2012
2031
  "submission_id": json["submission_id"],
2032
+ "unknown_fields": json["unknown_fields"] === void 0 ? void 0 : json["unknown_fields"] === null ? null : json["unknown_fields"],
2013
2033
  "vendors": mapValues(json["vendors"], IntakeVendorStatusFromJSON)
2014
2034
  };
2015
2035
  }