@healthcloudai/hc-sdk 2.0.2 → 2.2.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/README.md +3 -1
- package/dist/index.cjs +24 -10
- package/dist/index.d.cts +1602 -550
- package/dist/index.d.ts +1602 -550
- package/dist/index.js +24 -10
- package/docs/clients/FieldAgentClient.md +3 -0
- package/docs/clients/PatientClient.md +1 -2
- package/docs/clients/TelehealthClient.md +0 -1
- package/docs/docs-manifest.json +28 -10
- package/docs/examples/index.md +4 -3
- package/docs/index.md +4 -3
- package/docs/models/AddDependentRequest.md +10 -6
- package/docs/models/AddDependentResponse.md +17 -0
- package/docs/models/AddNotificationResponse.md +19 -0
- package/docs/models/CreateQuestionnaireRequest.md +3 -3
- package/docs/models/CreateQuestionnaireResponse.md +1 -1
- package/docs/models/DependentResponse.md +17 -0
- package/docs/models/GetPatientPhotoResponse.md +15 -0
- package/docs/models/ListDependentsResponse.md +2 -2
- package/docs/models/ListNotificationsResponse.md +2 -2
- package/docs/models/NotificationResponse.md +19 -0
- package/docs/models/NotificationUpsertRequest.md +23 -0
- package/docs/models/OnboardEncounterPayload.md +35 -0
- package/docs/models/OnboardEncounterStepResult.md +15 -0
- package/docs/models/OnboardPatientPayload.md +22 -0
- package/docs/models/OnboardPatientRequest.md +4 -4
- package/docs/models/OnboardPatientResponse.md +4 -4
- package/docs/models/OnboardPatientStepResult.md +20 -0
- package/docs/models/OnboardQuestionnaireAnswer.md +15 -0
- package/docs/models/OnboardQuestionnaireDefinition.md +19 -0
- package/docs/models/OnboardQuestionnairePayload.md +19 -0
- package/docs/models/OnboardQuestionnaireResponseItem.md +14 -0
- package/docs/models/OnboardQuestionnaireStepResult.md +16 -0
- package/docs/models/OnboardVitalsPayload.md +19 -0
- package/docs/models/OnboardVitalsStepResult.md +15 -0
- package/docs/models/PatientPhotoUploadUrlResponse.md +14 -0
- package/docs/models/QuestionItemType.md +11 -0
- package/docs/models/QuestionnaireItemInput.md +21 -0
- package/docs/models/UploadPatientPhotoRequest.md +14 -0
- package/docs/models/{FetchRtcTokenResponse.md → UploadPatientPhotoResponse.md} +3 -4
- package/docs/models/index.md +22 -5
- package/docs/operations/fieldagent.confirmResetPassword.md +1 -1
- package/docs/operations/fieldagent.getPatientPhoto.md +85 -0
- package/docs/operations/{patient.commsRtcToken.md → fieldagent.patientPhotoUploadUrl.md} +19 -18
- package/docs/operations/fieldagent.uploadPatientPhoto.md +87 -0
- package/docs/operations/patient.addDependent.md +2 -2
- package/docs/operations/patient.addNotification.md +3 -3
- package/docs/operations/patient.checkEligibility.md +1 -1
- package/docs/operations/patient.confirmResetPassword.md +1 -1
- package/docs/operations/patient.createQuestionnaire.md +4 -4
- package/docs/operations/patient.listDependents.md +1 -1
- package/docs/operations/patient.listNotifications.md +1 -1
- package/docs/operations/person.confirmResetPassword.md +1 -1
- package/docs/operations/provider.confirmResetPassword.md +1 -1
- package/package.json +1 -2
- package/docs/models/AddNotificationRequest.md +0 -17
- package/docs/models/CommsRtcTokenRequest.md +0 -15
- package/docs/models/CommsRtcTokenResponse.md +0 -19
- package/docs/models/FetchRtcTokenRequest.md +0 -15
- package/docs/operations/telehealth.fetchRtcToken.md +0 -82
package/README.md
CHANGED
|
@@ -25,7 +25,9 @@ Public authentication calls use the configured tenant. For authenticated APIs, i
|
|
|
25
25
|
|
|
26
26
|
## Detailed documentation
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
Detailed API, model, configuration, authentication, and example documentation is included in the published package under `docs/`.
|
|
29
|
+
|
|
30
|
+
After installation, start with `node_modules/@healthcloudai/hc-sdk/docs/index.md`. You can also browse the published package files from the [npm Code tab](https://www.npmjs.com/package/@healthcloudai/hc-sdk?activeTab=code). Detailed pages are generated from the shared structured docs data; this README intentionally remains package-level.
|
|
29
31
|
|
|
30
32
|
## Package overview
|
|
31
33
|
|
package/dist/index.cjs
CHANGED
|
@@ -589,6 +589,30 @@ var FieldAgentClient = class extends BaseServiceClient {
|
|
|
589
589
|
listPatients(query) {
|
|
590
590
|
return this.send("GET", "/patients", { query });
|
|
591
591
|
}
|
|
592
|
+
getPatientPhotoUploadUrl(patientId) {
|
|
593
|
+
return this.send("GET", "/patients/{patient_id}/photo/upload-url", {
|
|
594
|
+
pathParams: { patient_id: patientId }
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
uploadPatientPhoto(patientId, request) {
|
|
598
|
+
return this.send("POST", "/patients/{patient_id}/photo", {
|
|
599
|
+
pathParams: { patient_id: patientId },
|
|
600
|
+
body: request
|
|
601
|
+
});
|
|
602
|
+
}
|
|
603
|
+
/**
|
|
604
|
+
* Get a patient's photo by binary_id, or the stored photo if binary_id is omitted.
|
|
605
|
+
* GET /patients/{patient_id}/photo?binary_id=...
|
|
606
|
+
*
|
|
607
|
+
* @param patientId - The FHIR Patient ID
|
|
608
|
+
* @param query - Optional query parameters; if omitted, fetches the stored/default photo
|
|
609
|
+
*/
|
|
610
|
+
getPatientPhoto(patientId, query) {
|
|
611
|
+
return this.send("GET", "/patients/{patient_id}/photo", {
|
|
612
|
+
pathParams: { patient_id: patientId },
|
|
613
|
+
query
|
|
614
|
+
});
|
|
615
|
+
}
|
|
592
616
|
listEncounters(query) {
|
|
593
617
|
return this.send("GET", "/encounters", { query });
|
|
594
618
|
}
|
|
@@ -1283,12 +1307,6 @@ var PatientClient = class extends BaseServiceClient {
|
|
|
1283
1307
|
body: request
|
|
1284
1308
|
});
|
|
1285
1309
|
}
|
|
1286
|
-
commsRtcToken(request) {
|
|
1287
|
-
return this.send("POST", "/communications/rtc-token", {
|
|
1288
|
-
body: request,
|
|
1289
|
-
auth: false
|
|
1290
|
-
});
|
|
1291
|
-
}
|
|
1292
1310
|
};
|
|
1293
1311
|
|
|
1294
1312
|
// src/models/openapi-generated/person/models/AddressType.ts
|
|
@@ -1585,9 +1603,6 @@ var TelehealthClient = class extends BaseServiceClient {
|
|
|
1585
1603
|
createProviderToken(request) {
|
|
1586
1604
|
return this.send("POST", "/telehealth/tokens/provider", { body: request });
|
|
1587
1605
|
}
|
|
1588
|
-
fetchRtcToken(request) {
|
|
1589
|
-
return this.send("POST", "/fetch_rtc_token", { body: request });
|
|
1590
|
-
}
|
|
1591
1606
|
};
|
|
1592
1607
|
|
|
1593
1608
|
// src/clients/VitalsClient.ts
|
|
@@ -4799,7 +4814,6 @@ var HCSDK_OPERATION_SUMMARY = [
|
|
|
4799
4814
|
{ service: "patient", method: "POST", path: "/communications/messages", sdkMethod: "patient.upsertMessage", summary: "Upsert message" },
|
|
4800
4815
|
{ service: "patient", method: "GET", path: "/communications/invites", sdkMethod: "patient.listInvites", summary: "List invites" },
|
|
4801
4816
|
{ service: "patient", method: "POST", path: "/communications/invites", sdkMethod: "patient.upsertInvite", summary: "Upsert invite" },
|
|
4802
|
-
{ service: "patient", method: "POST", path: "/communications/rtc-token", sdkMethod: "patient.commsRtcToken", summary: "Create communications RTC token" },
|
|
4803
4817
|
{ service: "vitals", method: "GET", path: "/connect", sdkMethod: "vitals.connect", summary: "Lambda warm-up / connectivity check" },
|
|
4804
4818
|
{ service: "vitals", method: "POST", path: "/patients/{patient_id}/vitals", sdkMethod: "vitals.record", summary: "Record patient vitals" },
|
|
4805
4819
|
{ service: "vitals", method: "GET", path: "/patients/{patient_id}/vitals", sdkMethod: "vitals.list", summary: "List patient vitals" },
|