@healthcloudai/hc-sdk 3.10.0 → 3.12.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 +30 -7
- package/dist/index.d.cts +558 -42
- package/dist/index.d.ts +558 -42
- package/dist/index.js +30 -7
- package/docs/clients/PatientClient.md +1 -0
- package/docs/docs-manifest.json +8 -3
- package/docs/examples/index.md +1 -0
- package/docs/index.md +1 -0
- package/docs/models/ClinicalObservation.md +44 -0
- package/docs/models/GetDefaultProviderResponse.md +18 -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 +4 -0
- package/docs/operations/patient.getDefaultProvider.md +117 -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 ? {
|
|
@@ -2167,6 +2171,20 @@ function AddPatientIntakeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
2167
2171
|
};
|
|
2168
2172
|
}
|
|
2169
2173
|
|
|
2174
|
+
// src/models/openapi-generated/patient/models/GetDefaultProviderResponse.ts
|
|
2175
|
+
function GetDefaultProviderResponseFromJSON(json) {
|
|
2176
|
+
return GetDefaultProviderResponseFromJSONTyped(json, false);
|
|
2177
|
+
}
|
|
2178
|
+
function GetDefaultProviderResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
2179
|
+
if (json == null) {
|
|
2180
|
+
return json;
|
|
2181
|
+
}
|
|
2182
|
+
return {
|
|
2183
|
+
"name": json["name"],
|
|
2184
|
+
"npi": json["npi"]
|
|
2185
|
+
};
|
|
2186
|
+
}
|
|
2187
|
+
|
|
2170
2188
|
// src/clients/PatientClient.ts
|
|
2171
2189
|
var PatientClient = class extends BaseServiceClient {
|
|
2172
2190
|
/** Add one agent-collected intake section and return actionable validation errors. */
|
|
@@ -2259,6 +2277,11 @@ var PatientClient = class extends BaseServiceClient {
|
|
|
2259
2277
|
getDashboard() {
|
|
2260
2278
|
return this.send("GET", "/patients/dashboard", {});
|
|
2261
2279
|
}
|
|
2280
|
+
/** GET /patients/defaultprovider — return the authenticated patient's tenant default provider. */
|
|
2281
|
+
async getDefaultProvider() {
|
|
2282
|
+
const response = await this.send("GET", "/patients/defaultprovider", {});
|
|
2283
|
+
return GetDefaultProviderResponseFromJSON(response);
|
|
2284
|
+
}
|
|
2262
2285
|
getAgentConfiguration() {
|
|
2263
2286
|
return this.send("GET", "/agentconfiguration", {});
|
|
2264
2287
|
}
|