@healthcloudai/hc-sdk 3.28.0 → 3.29.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 (41) hide show
  1. package/dist/index.cjs +65 -0
  2. package/dist/index.d.cts +755 -5
  3. package/dist/index.d.ts +755 -5
  4. package/dist/index.js +65 -0
  5. package/docs/clients/PatientClient.md +5 -0
  6. package/docs/clients/ProviderClient.md +3 -0
  7. package/docs/docs-manifest.json +23 -3
  8. package/docs/examples/index.md +8 -0
  9. package/docs/index.md +8 -0
  10. package/docs/models/AvailabilityWindow.md +19 -0
  11. package/docs/models/BookPracticeAppointmentRequest.md +18 -0
  12. package/docs/models/CreatePracticeInviteRequest.md +17 -0
  13. package/docs/models/GetPatientResponse.md +1 -0
  14. package/docs/models/PatientDemographics.md +1 -0
  15. package/docs/models/PracticeAppointment.md +26 -0
  16. package/docs/models/PracticeAppointmentResponse.md +17 -0
  17. package/docs/models/PracticeAppointmentsResponse.md +19 -0
  18. package/docs/models/PracticeAvailability.md +22 -0
  19. package/docs/models/PracticeAvailabilityResponse.md +18 -0
  20. package/docs/models/PracticeInviteResponse.md +20 -0
  21. package/docs/models/PracticeSlot.md +19 -0
  22. package/docs/models/PracticeSlotsResponse.md +21 -0
  23. package/docs/models/ProviderPatientProfile.md +1 -0
  24. package/docs/models/ReschedulePracticeAppointmentRequest.md +17 -0
  25. package/docs/models/index.md +12 -0
  26. package/docs/models/patient.RegisterRequest.md +1 -0
  27. package/docs/models/patient.RegisterResponse.md +1 -0
  28. package/docs/operations/fieldagent.listPatients.md +1 -0
  29. package/docs/operations/patient.bookPracticeAppointment.md +180 -0
  30. package/docs/operations/patient.cancelPracticeAppointment.md +158 -0
  31. package/docs/operations/patient.getPatient.md +1 -0
  32. package/docs/operations/patient.getPatientSidebarPatientSidebar.md +1 -0
  33. package/docs/operations/patient.listPracticeAppointmentSlots.md +149 -0
  34. package/docs/operations/patient.listPracticeAppointments.md +156 -0
  35. package/docs/operations/patient.register.md +4 -1
  36. package/docs/operations/patient.reschedulePracticeAppointment.md +182 -0
  37. package/docs/operations/provider.createPracticeInvite.md +140 -0
  38. package/docs/operations/provider.getPatientProfile.md +1 -0
  39. package/docs/operations/provider.getPracticeAvailability.md +136 -0
  40. package/docs/operations/provider.setPracticeAvailability.md +168 -0
  41. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -3665,6 +3665,43 @@ var PatientClient = class extends BaseServiceClient {
3665
3665
  body: request
3666
3666
  });
3667
3667
  }
3668
+ /**
3669
+ * Free telehealth slots of the patient's practice (GET /practice-appointment-slots), computed from the practice's
3670
+ * hours minus booked ones. `from` / `to` (ISO 8601, at most 31 days) narrow the range. A patient with no practice gets
3671
+ * `practice_id: null` and no slots.
3672
+ */
3673
+ listPracticeAppointmentSlots(query) {
3674
+ return this.send("GET", "/practice-appointment-slots", { query });
3675
+ }
3676
+ /**
3677
+ * Book a slot (POST /practice-appointments). 409 `slot_taken` when someone else got it, 409 `no_practice`, 502
3678
+ * `mirror_failed` when an Athena-integrated tenant's Athena booking failed (nothing is booked).
3679
+ */
3680
+ bookPracticeAppointment(request) {
3681
+ return this.send("POST", "/practice-appointments", { body: request });
3682
+ }
3683
+ /** The patient's own practice appointments, earliest first (GET /practice-appointments). */
3684
+ listPracticeAppointments(query) {
3685
+ return this.send("GET", "/practice-appointments", { query });
3686
+ }
3687
+ /** Cancel one of the patient's own practice appointments, any time before it starts (POST /practice-appointments/{id}/cancel). */
3688
+ cancelPracticeAppointment(appointmentId) {
3689
+ return this.send("POST", "/practice-appointments/{appointment_id}/cancel", {
3690
+ pathParams: { appointment_id: appointmentId },
3691
+ body: {}
3692
+ });
3693
+ }
3694
+ /**
3695
+ * Move one of the patient's own practice appointments to another free slot (POST /practice-appointments/{id}/reschedule).
3696
+ * The result is a new appointment (`previous_appointment_id` is the old one); the old time is released only once the
3697
+ * new one is booked.
3698
+ */
3699
+ reschedulePracticeAppointment(appointmentId, request) {
3700
+ return this.send("POST", "/practice-appointments/{appointment_id}/reschedule", {
3701
+ pathParams: { appointment_id: appointmentId },
3702
+ body: request
3703
+ });
3704
+ }
3668
3705
  };
3669
3706
 
3670
3707
  // src/models/openapi-generated/person/models/AddressType.ts
@@ -4037,6 +4074,34 @@ var ProviderClient = class extends BaseServiceClient {
4037
4074
  listLabCatalog(filters) {
4038
4075
  return this.send("GET", "/lab-orders/catalog", { query: filters });
4039
4076
  }
4077
+ /**
4078
+ * The practice's telehealth booking rules (GET /practitioners/{id}/availability). Practice owner, own record only (403
4079
+ * otherwise). `availability` is null until it is set.
4080
+ */
4081
+ getPracticeAvailability(practitionerId) {
4082
+ return this.send("GET", "/practitioners/{practitioner_id}/availability", {
4083
+ pathParams: { practitioner_id: practitionerId }
4084
+ });
4085
+ }
4086
+ /**
4087
+ * Set the practice's telehealth booking rules (PUT /practitioners/{id}/availability). Weekly windows in an IANA time
4088
+ * zone, slot length 15/20/30/45/60 minutes (default 30), minimum lead hours, booking horizon days and closed dates.
4089
+ * Patients' bookable slots are computed from these. Practice owner, own record only.
4090
+ */
4091
+ setPracticeAvailability(practitionerId, availability) {
4092
+ return this.send("PUT", "/practitioners/{practitioner_id}/availability", {
4093
+ pathParams: { practitioner_id: practitionerId },
4094
+ body: availability
4095
+ });
4096
+ }
4097
+ /**
4098
+ * Create a single-use invite for the practice (POST /practice/invites). A patient who registers with `invite_code`
4099
+ * (or opens `registration_path`) becomes a patient of the practice. Practice owner only; `ttl_days` is 1 to 30
4100
+ * (default 14).
4101
+ */
4102
+ createPracticeInvite(request) {
4103
+ return this.send("POST", "/practice/invites", { body: request != null ? request : {} });
4104
+ }
4040
4105
  /**
4041
4106
  * Ask the patient to schedule a telehealth appointment (POST /encounters/{id}/telehealth-request). Records a proposed
4042
4107
  * telehealth appointment and sends the patient a generic notice. At most one request per encounter per hour: a repeat