@healthcloudai/hc-sdk 3.16.0 → 3.17.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
@@ -2852,6 +2852,26 @@ var PatientClient = class extends BaseServiceClient {
2852
2852
  listPatientInsurances() {
2853
2853
  return this.send("GET", "/patients/insurance", {});
2854
2854
  }
2855
+ /** Confirm a change to saved insurance. A pending response is not completion.
2856
+ * Reuse request_id/body for retries; never retry through createInsurance().
2857
+ */
2858
+ replaceInsurance(coverageId, request) {
2859
+ return this.send(
2860
+ "PUT",
2861
+ `/patients/insurance/${encodeURIComponent(coverageId)}`,
2862
+ { body: request }
2863
+ );
2864
+ }
2865
+ /** Retire the exact saved coverage after confirmation. History is retained.
2866
+ * Reuse request_id for retries; pending is not completed removal.
2867
+ */
2868
+ retireInsurance(coverageId, request) {
2869
+ return this.send(
2870
+ "POST",
2871
+ `/patients/insurance/${encodeURIComponent(coverageId)}/retire`,
2872
+ { body: request }
2873
+ );
2874
+ }
2855
2875
  importHealthRecord(payload) {
2856
2876
  return this.send("POST", "/patients/health-record/import", {
2857
2877
  body: payload