@healthcloudai/hc-sdk 3.32.0 → 3.33.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.
package/dist/index.cjs CHANGED
@@ -3987,6 +3987,15 @@ var ProviderClient = class extends BaseServiceClient {
3987
3987
  claimEncounter(encounterId) {
3988
3988
  return this.send("POST", "/encounters/{encounter_id}/claim", { pathParams: { encounter_id: encounterId } });
3989
3989
  }
3990
+ /**
3991
+ * Get or open the encounter for a video visit (POST /appointments/{id}/encounter). Returns the caller's open encounter
3992
+ * for the patient, else the appointment's own encounter (any status; a finished one is read-only), else creates a virtual
3993
+ * in-progress encounter linked to the appointment. `created` says which. The patient is not notified and no linked EHR is
3994
+ * written. Rejects with 403 when the appointment is not the caller's, 404 when it does not exist, 400 for an invalid id.
3995
+ */
3996
+ ensureAppointmentEncounter(appointmentId) {
3997
+ return this.send("POST", "/appointments/{appointment_id}/encounter", { pathParams: { appointment_id: appointmentId } });
3998
+ }
3990
3999
  /**
3991
4000
  * Replace an encounter's diagnoses (PUT /encounters/{id}/diagnoses): add, change or remove. Codes come from
3992
4001
  * searchIcd10; codes left out of the list are removed, and the display text always comes from the ICD-10 data. Only the