@healthcloudai/hc-sdk 3.10.0 → 3.11.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 +11 -7
- package/dist/index.d.cts +464 -40
- package/dist/index.d.ts +464 -40
- package/dist/index.js +11 -7
- package/docs/docs-manifest.json +5 -2
- package/docs/models/ClinicalObservation.md +44 -0
- package/docs/models/GetHealthRecordResponse.md +1 -1
- package/docs/models/ListFunctionalStatusResponse.md +2 -2
- package/docs/models/ListObservationsResponse.md +2 -2
- package/docs/models/ListSocialHistoryResponse.md +1 -1
- package/docs/models/ListVitalsResponse.md +1 -1
- package/docs/models/ObservationComponent.md +23 -0
- package/docs/models/VitalReading.md +44 -0
- package/docs/models/index.md +3 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -691,7 +691,7 @@ var EhrClient = class extends BaseServiceClient {
|
|
|
691
691
|
pathParams: { patient_id: patientId }
|
|
692
692
|
});
|
|
693
693
|
}
|
|
694
|
-
/** List a patient's functional-status observations. */
|
|
694
|
+
/** List a patient's functional-status observations as serialized ClinicalObservation domain models (never raw FHIR). */
|
|
695
695
|
listFunctionalStatus(patientId) {
|
|
696
696
|
return this.send("GET", "/patients/{patient_id}/functional-status", {
|
|
697
697
|
pathParams: { patient_id: patientId }
|
|
@@ -711,8 +711,9 @@ var EhrClient = class extends BaseServiceClient {
|
|
|
711
711
|
});
|
|
712
712
|
}
|
|
713
713
|
/**
|
|
714
|
-
* List a patient's observations
|
|
715
|
-
*
|
|
714
|
+
* List a patient's observations as serialized ClinicalObservation domain
|
|
715
|
+
* models (never raw FHIR). Vital-sign observations are excluded by default
|
|
716
|
+
* (use {@link listVitals} for those); pass category "vital-signs"
|
|
716
717
|
* explicitly to include them here.
|
|
717
718
|
*/
|
|
718
719
|
listObservations(patientId, category) {
|
|
@@ -739,22 +740,25 @@ var EhrClient = class extends BaseServiceClient {
|
|
|
739
740
|
* domain sections (social/functional/gyn/perinatal history, encounters,
|
|
740
741
|
* vitals, diagnostics, …) but no raw `observations` bucket — list general
|
|
741
742
|
* observations with {@link listObservations} (vital signs excluded) and
|
|
742
|
-
* vital signs with {@link listVitals}.
|
|
743
|
+
* vital signs with {@link listVitals}. The vitals section is the full
|
|
744
|
+
* history serialized as VitalReading domain models (never raw FHIR).
|
|
743
745
|
*/
|
|
744
746
|
getHealthRecord(patientId) {
|
|
745
747
|
return this.send("GET", "/patients/{patient_id}/record", {
|
|
746
748
|
pathParams: { patient_id: patientId }
|
|
747
749
|
});
|
|
748
750
|
}
|
|
749
|
-
/** List a patient's social history. */
|
|
751
|
+
/** List a patient's social history as serialized ClinicalObservation domain models (never raw FHIR). */
|
|
750
752
|
listSocialHistory(patientId) {
|
|
751
753
|
return this.send("GET", "/patients/{patient_id}/social-history", {
|
|
752
754
|
pathParams: { patient_id: patientId }
|
|
753
755
|
});
|
|
754
756
|
}
|
|
755
757
|
/**
|
|
756
|
-
* List a patient's vital signs
|
|
757
|
-
*
|
|
758
|
+
* List a patient's vital signs as serialized VitalReading domain models
|
|
759
|
+
* (full history — never raw FHIR; blood-pressure panels carry systolic
|
|
760
|
+
* and diastolic). This is the only place vital-sign observations are
|
|
761
|
+
* returned — {@link listObservations} excludes them by default.
|
|
758
762
|
*/
|
|
759
763
|
listVitals(patientId, dateFrom, dateTo, type) {
|
|
760
764
|
const query = dateFrom || dateTo || type ? {
|