@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 +20 -0
- package/dist/index.d.cts +293 -2
- package/dist/index.d.ts +293 -2
- package/dist/index.js +20 -0
- package/docs/clients/PatientClient.md +2 -0
- package/docs/docs-manifest.json +9 -3
- package/docs/examples/index.md +2 -0
- package/docs/index.md +2 -0
- package/docs/models/Insurance.md +2 -0
- package/docs/models/ReplaceInsuranceRequest.md +25 -0
- package/docs/models/ReplaceInsuranceResponse.md +20 -0
- package/docs/models/RetireInsuranceRequest.md +17 -0
- package/docs/models/RetireInsuranceResponse.md +19 -0
- package/docs/models/index.md +4 -0
- package/docs/operations/fieldagent.listPatients.md +2 -0
- package/docs/operations/patient.getInsurance.md +17 -15
- package/docs/operations/patient.getPatient.md +2 -0
- package/docs/operations/patient.getPatientSidebarPatientSidebar.md +2 -0
- package/docs/operations/patient.replaceInsurance.md +124 -0
- package/docs/operations/patient.retireInsurance.md +129 -0
- package/package.json +1 -1
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
|