@healthcloudai/hc-sdk 3.7.0 → 3.8.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 (30) hide show
  1. package/dist/index.cjs +44 -0
  2. package/dist/index.d.cts +792 -403
  3. package/dist/index.d.ts +792 -403
  4. package/dist/index.js +44 -0
  5. package/docs/clients/ProviderClient.md +7 -0
  6. package/docs/docs-manifest.json +23 -3
  7. package/docs/examples/index.md +7 -0
  8. package/docs/index.md +7 -0
  9. package/docs/models/ProviderAppointment.md +24 -0
  10. package/docs/models/ProviderAppointmentResponse.md +17 -0
  11. package/docs/models/ProviderAppointmentsResponse.md +18 -0
  12. package/docs/models/ProviderEncounterListResponse.md +18 -0
  13. package/docs/models/ProviderEncounterResponse.md +17 -0
  14. package/docs/models/ProviderPatientAddress.md +22 -0
  15. package/docs/models/ProviderPatientPhone.md +19 -0
  16. package/docs/models/ProviderPatientRecordResponse.md +24 -0
  17. package/docs/models/ProviderPatientSummary.md +27 -0
  18. package/docs/models/UpdateEncounterClinicalNoteRequest.md +24 -0
  19. package/docs/models/UpdateEncounterClinicalNoteResponse.md +19 -0
  20. package/docs/models/UpdateEncounterStatusRequest.md +21 -0
  21. package/docs/models/UpdateEncounterStatusResponse.md +19 -0
  22. package/docs/models/index.md +13 -0
  23. package/docs/operations/provider.getAppointment.md +148 -0
  24. package/docs/operations/provider.getEncounter.md +120 -0
  25. package/docs/operations/provider.getPatientRecord.md +122 -0
  26. package/docs/operations/provider.listAppointments.md +176 -0
  27. package/docs/operations/provider.listEncounters.md +123 -0
  28. package/docs/operations/provider.updateEncounterClinicalNote.md +154 -0
  29. package/docs/operations/provider.updateEncounterStatus.md +152 -0
  30. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -2941,6 +2941,50 @@ var ProviderClient = class extends BaseServiceClient {
2941
2941
  connect() {
2942
2942
  return this.connectService();
2943
2943
  }
2944
+ /** List encounters in the authenticated provider's tenant. */
2945
+ listEncounters(filters) {
2946
+ return this.send("GET", "/encounters", { query: filters });
2947
+ }
2948
+ /** Get one encounter with its patient demographic summary. */
2949
+ getEncounter(encounterId) {
2950
+ return this.send("GET", "/encounters/{encounter_id}", { pathParams: { encounter_id: encounterId } });
2951
+ }
2952
+ /** Update the clinical note and assessment for one encounter. */
2953
+ updateEncounterClinicalNote(encounterId, request) {
2954
+ return this.send("PATCH", "/encounters/{encounter_id}/clinical-note", {
2955
+ pathParams: { encounter_id: encounterId },
2956
+ body: request
2957
+ });
2958
+ }
2959
+ /** Update canonical status; the server resolves any EHR status ID. */
2960
+ updateEncounterStatus(encounterId, request) {
2961
+ return this.send("PATCH", "/encounters/{encounter_id}/status", {
2962
+ pathParams: { encounter_id: encounterId },
2963
+ body: request
2964
+ });
2965
+ }
2966
+ /** List appointments in the authenticated provider's tenant.
2967
+ *
2968
+ * Date-window semantics (identical on the Athena and FHIR backends):
2969
+ * neither date -> today .. today+30d; only start_date -> start_date .. start_date+30d;
2970
+ * only end_date -> today .. end_date; legacy date pins exactly one calendar day.
2971
+ * The window is capped at 90 days and the result count at limit (default 100, max 200).
2972
+ */
2973
+ listAppointments(filters) {
2974
+ return this.send("GET", "/appointments", { query: filters });
2975
+ }
2976
+ /** Get one appointment with its patient demographic summary. */
2977
+ getAppointment(appointmentId) {
2978
+ return this.send("GET", "/appointments/{appointment_id}", { pathParams: { appointment_id: appointmentId } });
2979
+ }
2980
+ /** Get a patient's consolidated health record (provider tenant scope). */
2981
+ getPatientRecord(patientId) {
2982
+ return this.send("GET", "/patients/{patient_id}/record", { pathParams: { patient_id: patientId } });
2983
+ }
2984
+ /** @deprecated Use listAppointments({ visit_type: "telehealth" }). */
2985
+ listTelehealthAppointments(filters) {
2986
+ return this.listAppointments({ ...filters, visit_type: "telehealth" });
2987
+ }
2944
2988
  /** Submit multiple insurance eligibility checks for asynchronous processing. */
2945
2989
  async submitInsuranceEligibilityBatch(request) {
2946
2990
  const response = await this.send("POST", "/insurance/eligibility/batch", {