@healthcloudai/hc-sdk 3.25.0 → 3.26.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 (35) hide show
  1. package/dist/index.cjs +49 -1
  2. package/dist/index.d.cts +2113 -307
  3. package/dist/index.d.ts +2113 -307
  4. package/dist/index.js +49 -1
  5. package/docs/clients/ProviderClient.md +6 -0
  6. package/docs/docs-manifest.json +24 -3
  7. package/docs/examples/index.md +6 -0
  8. package/docs/index.md +6 -0
  9. package/docs/models/CommunicationConsent.md +24 -0
  10. package/docs/models/Dependent.md +21 -0
  11. package/docs/models/DependentRelationship.md +15 -0
  12. package/docs/models/EncounterMedicationInput.md +29 -0
  13. package/docs/models/EncounterMedicationsResponse.md +19 -0
  14. package/docs/models/LabCatalogItem.md +24 -0
  15. package/docs/models/LabCatalogResponse.md +18 -0
  16. package/docs/models/LabOrder.md +1 -0
  17. package/docs/models/ProviderDriversLicenseSummary.md +19 -0
  18. package/docs/models/ProviderPatientInsuranceResponse.md +19 -0
  19. package/docs/models/ProviderPatientProfile.md +42 -0
  20. package/docs/models/ProviderPatientProfileResponse.md +21 -0
  21. package/docs/models/TelehealthRequest.md +22 -0
  22. package/docs/models/TelehealthRequestInput.md +17 -0
  23. package/docs/models/TelehealthRequestResponse.md +19 -0
  24. package/docs/models/UpdateEncounterMedicationsRequest.md +17 -0
  25. package/docs/models/index.md +15 -0
  26. package/docs/operations/provider.getLabOrder.md +21 -25
  27. package/docs/operations/provider.getPatientInsurance.md +134 -0
  28. package/docs/operations/provider.getPatientProfile.md +188 -0
  29. package/docs/operations/provider.listEncounterMedications.md +142 -0
  30. package/docs/operations/provider.listLabCatalog.md +215 -0
  31. package/docs/operations/provider.listLabOrders.md +24 -27
  32. package/docs/operations/provider.placeLabOrder.md +26 -28
  33. package/docs/operations/provider.requestTelehealthVisit.md +124 -0
  34. package/docs/operations/provider.updateEncounterMedications.md +186 -0
  35. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -3916,7 +3916,10 @@ var ProviderClient = class extends BaseServiceClient {
3916
3916
  placeLabOrder(patientId, request) {
3917
3917
  return this.send("POST", "/patients/{patient_id}/lab-orders", { pathParams: { patient_id: patientId }, body: request });
3918
3918
  }
3919
- /** List a patient's lab orders (GET /patients/{patient_id}/lab-orders), optionally by `status` (submitting, accepted or rejected). */
3919
+ /**
3920
+ * List a patient's lab orders (GET /patients/{patient_id}/lab-orders), optionally by `status` (submitting, accepted or
3921
+ * rejected) and by `encounter_id` (only the orders placed from that encounter).
3922
+ */
3920
3923
  listLabOrders(patientId, filters) {
3921
3924
  return this.send("GET", "/patients/{patient_id}/lab-orders", { pathParams: { patient_id: patientId }, query: filters });
3922
3925
  }
@@ -3928,6 +3931,51 @@ var ProviderClient = class extends BaseServiceClient {
3928
3931
  getLabOrderRequisition(patientId, orderId) {
3929
3932
  return this.send("GET", "/patients/{patient_id}/lab-orders/{order_id}/requisition", { pathParams: { patient_id: patientId, order_id: orderId } });
3930
3933
  }
3934
+ /**
3935
+ * A patient's full profile (GET /patients/{patient_id}/profile): demographics, identifiers, contact details, addresses,
3936
+ * emergency contacts, preferred pharmacy, communication consent, dependents and flags. A driver's license number comes
3937
+ * back as its last four characters. 404 for a patient who is not on the caller's care team and has no encounter with them.
3938
+ */
3939
+ getPatientProfile(patientId) {
3940
+ return this.send("GET", "/patients/{patient_id}/profile", { pathParams: { patient_id: patientId } });
3941
+ }
3942
+ /** A patient's insurance coverages, primary first (GET /patients/{patient_id}/insurance). Same scope as getPatientProfile. */
3943
+ getPatientInsurance(patientId) {
3944
+ return this.send("GET", "/patients/{patient_id}/insurance", { pathParams: { patient_id: patientId } });
3945
+ }
3946
+ /** The medications recorded on an encounter the caller holds (GET /encounters/{id}/medications). */
3947
+ listEncounterMedications(encounterId) {
3948
+ return this.send("GET", "/encounters/{encounter_id}/medications", { pathParams: { encounter_id: encounterId } });
3949
+ }
3950
+ /**
3951
+ * Replace an encounter's medications (PUT /encounters/{id}/medications): add, change or remove up to 25 at once.
3952
+ * Medications left out are removed (kept for audit). Records the plan in the chart; it does not e-prescribe. Only the
3953
+ * assigned provider (403 otherwise), and not once the encounter is signed (409).
3954
+ */
3955
+ updateEncounterMedications(encounterId, request) {
3956
+ return this.send("PUT", "/encounters/{encounter_id}/medications", {
3957
+ pathParams: { encounter_id: encounterId },
3958
+ body: request
3959
+ });
3960
+ }
3961
+ /**
3962
+ * The tests and panels a provider can order (GET /lab-orders/catalog), optionally filtered by `kind` (test or panel)
3963
+ * and `q` (name contains). Use an item's `catalog_item_id` in placeLabOrder.
3964
+ */
3965
+ listLabCatalog(filters) {
3966
+ return this.send("GET", "/lab-orders/catalog", { query: filters });
3967
+ }
3968
+ /**
3969
+ * Ask the patient to schedule a telehealth appointment (POST /encounters/{id}/telehealth-request). Records a proposed
3970
+ * telehealth appointment and sends the patient a generic notice. At most one request per encounter per hour: a repeat
3971
+ * returns the existing request with `created: false`. Only the assigned provider (403), and not once signed (409).
3972
+ */
3973
+ requestTelehealthVisit(encounterId, request) {
3974
+ return this.send("POST", "/encounters/{encounter_id}/telehealth-request", {
3975
+ pathParams: { encounter_id: encounterId },
3976
+ body: request != null ? request : {}
3977
+ });
3978
+ }
3931
3979
  /** Get a patient's consolidated health record (provider tenant scope). */
3932
3980
  getPatientRecord(patientId) {
3933
3981
  return this.send("GET", "/patients/{patient_id}/record", { pathParams: { patient_id: patientId } });