@healthcloudai/hc-sdk 3.8.0 → 3.10.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
@@ -710,7 +710,11 @@ var EhrClient = class extends BaseServiceClient {
710
710
  query: resourceType ? { resource_type: resourceType } : void 0
711
711
  });
712
712
  }
713
- /** List a patient's observations. */
713
+ /**
714
+ * List a patient's observations. Vital-sign observations are excluded by
715
+ * default (use {@link listVitals} for those); pass category "vital-signs"
716
+ * explicitly to include them here.
717
+ */
714
718
  listObservations(patientId, category) {
715
719
  return this.send("GET", "/patients/{patient_id}/observations", {
716
720
  pathParams: { patient_id: patientId },
@@ -730,7 +734,13 @@ var EhrClient = class extends BaseServiceClient {
730
734
  query: questionnaireUrl ? { questionnaire_url: questionnaireUrl } : void 0
731
735
  });
732
736
  }
733
- /** Get a patient's consolidated health record. */
737
+ /**
738
+ * Get a patient's consolidated health record. The record carries its mapped
739
+ * domain sections (social/functional/gyn/perinatal history, encounters,
740
+ * vitals, diagnostics, …) but no raw `observations` bucket — list general
741
+ * observations with {@link listObservations} (vital signs excluded) and
742
+ * vital signs with {@link listVitals}.
743
+ */
734
744
  getHealthRecord(patientId) {
735
745
  return this.send("GET", "/patients/{patient_id}/record", {
736
746
  pathParams: { patient_id: patientId }
@@ -742,7 +752,10 @@ var EhrClient = class extends BaseServiceClient {
742
752
  pathParams: { patient_id: patientId }
743
753
  });
744
754
  }
745
- /** List a patient's vitals. */
755
+ /**
756
+ * List a patient's vital signs (the only place vital-sign observations are
757
+ * returned — {@link listObservations} excludes them by default).
758
+ */
746
759
  listVitals(patientId, dateFrom, dateTo, type) {
747
760
  const query = dateFrom || dateTo || type ? {
748
761
  ...dateFrom ? { date_from: dateFrom } : {},
@@ -2999,6 +3012,13 @@ var ProviderClient = class extends BaseServiceClient {
2999
3012
  login(request) {
3000
3013
  return this.send("POST", "/auth/login", { body: withTenantId(request, this.getTenantId()), auth: false });
3001
3014
  }
3015
+ /**
3016
+ * Renew practitioner tokens via Cognito REFRESH_TOKEN_AUTH (POST /auth/refresh).
3017
+ * Requires a refresh token previously returned by login.
3018
+ */
3019
+ refreshToken(request) {
3020
+ return this.send("POST", "/auth/refresh", { body: withTenantId(request, this.getTenantId()), auth: false });
3021
+ }
3002
3022
  verifyEmail(request) {
3003
3023
  return this.send("POST", "/auth/verify-email", { body: withTenantId(request, this.getTenantId()), auth: false });
3004
3024
  }