@healthcloudai/hc-sdk 3.5.1 → 3.6.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 (39) hide show
  1. package/dist/index.cjs +35 -0
  2. package/dist/index.d.cts +1030 -101
  3. package/dist/index.d.ts +1030 -101
  4. package/dist/index.js +35 -0
  5. package/docs/clients/PatientClient.md +1 -0
  6. package/docs/docs-manifest.json +18 -3
  7. package/docs/examples/index.md +1 -0
  8. package/docs/index.md +1 -0
  9. package/docs/models/AddPatientIntakeRequest.md +24 -0
  10. package/docs/models/AddPatientIntakeResponse.md +17 -0
  11. package/docs/models/AdvanceDirective.md +31 -0
  12. package/docs/models/AdvanceDirectiveType.md +15 -0
  13. package/docs/models/CarequalityRetrieveDocumentsRequest.md +1 -1
  14. package/docs/models/DirectiveScope.md +15 -0
  15. package/docs/models/DirectiveStatus.md +15 -0
  16. package/docs/models/GetHealthRecordResponse.md +2 -2
  17. package/docs/models/Immunization.md +40 -0
  18. package/docs/models/ImmunizationRoute.md +15 -0
  19. package/docs/models/ImmunizationStatus.md +15 -0
  20. package/docs/models/ListDirectivesResponse.md +1 -1
  21. package/docs/models/ListImmunizationsResponse.md +1 -1
  22. package/docs/models/ListProceduresResponse.md +1 -1
  23. package/docs/models/OpenAIEmbedRequest.md +1 -1
  24. package/docs/models/Procedure.md +37 -0
  25. package/docs/models/ProcedureLaterality.md +15 -0
  26. package/docs/models/ProcedureStatus.md +15 -0
  27. package/docs/models/SendGridSendEmailRequest.md +1 -1
  28. package/docs/models/VaccinationSite.md +15 -0
  29. package/docs/models/ehr.ImmunizationReaction.md +20 -0
  30. package/docs/models/ehr.ListMedicationsResponse.md +1 -1
  31. package/docs/models/index.md +14 -0
  32. package/docs/operations/connectors.carequalityRetrieveDocuments.md +11 -7
  33. package/docs/operations/connectors.openaiEmbed.md +3 -7
  34. package/docs/operations/connectors.sendgridSend.md +3 -7
  35. package/docs/operations/diagnostics.lookupTestByGs1.md +11 -3
  36. package/docs/operations/ehr.listMedications.md +2 -2
  37. package/docs/operations/patient.addPatientIntake.md +117 -0
  38. package/docs/operations/patient.listMedications.md +2 -2
  39. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -2082,8 +2082,43 @@ function PatientIntakeResponseFromJSONTyped(json, ignoreDiscriminator) {
2082
2082
  };
2083
2083
  }
2084
2084
 
2085
+ // src/models/openapi-generated/patient/models/AddPatientIntakeRequest.ts
2086
+ function AddPatientIntakeRequestToJSON(json) {
2087
+ return AddPatientIntakeRequestToJSONTyped(json, false);
2088
+ }
2089
+ function AddPatientIntakeRequestToJSONTyped(value, ignoreDiscriminator = false) {
2090
+ if (value == null) {
2091
+ return value;
2092
+ }
2093
+ return {
2094
+ "patient_id": value["patient_id"],
2095
+ "section": value["section"],
2096
+ "summary": value["summary"]
2097
+ };
2098
+ }
2099
+
2100
+ // src/models/openapi-generated/patient/models/AddPatientIntakeResponse.ts
2101
+ function AddPatientIntakeResponseFromJSON(json) {
2102
+ return AddPatientIntakeResponseFromJSONTyped(json, false);
2103
+ }
2104
+ function AddPatientIntakeResponseFromJSONTyped(json, ignoreDiscriminator) {
2105
+ if (json == null) {
2106
+ return json;
2107
+ }
2108
+ return {
2109
+ "error_messages": json["error_messages"] == null ? void 0 : json["error_messages"]
2110
+ };
2111
+ }
2112
+
2085
2113
  // src/clients/PatientClient.ts
2086
2114
  var PatientClient = class extends BaseServiceClient {
2115
+ /** Add one agent-collected intake section and return actionable validation errors. */
2116
+ async addToIntake(patientId, section, summary) {
2117
+ const response = await this.send("POST", "/healthrecords/intake/add", {
2118
+ body: AddPatientIntakeRequestToJSON({ patient_id: patientId, section, summary })
2119
+ });
2120
+ return AddPatientIntakeResponseFromJSON(response);
2121
+ }
2087
2122
  /** Add patient-reported history; each call creates a new server-identified submission. */
2088
2123
  async submitPatientIntake(request) {
2089
2124
  const response = await this.send("POST", "/patients/health-record/intake", {