@healthcloudai/hc-sdk 0.8.5 → 0.8.7
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 +32 -2
- package/dist/index.cjs +31 -19
- package/dist/index.d.cts +86 -27
- package/dist/index.d.ts +86 -27
- package/dist/index.js +31 -19
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -413,7 +413,7 @@ var FieldAgentClient = class extends BaseServiceClient {
|
|
|
413
413
|
}
|
|
414
414
|
register(request) {
|
|
415
415
|
return this.send("POST", "/auth/register", {
|
|
416
|
-
body: withTenantId(request, this.getTenantId()),
|
|
416
|
+
body: withTenantId({ ...request, person_type: "field_agent" }, this.getTenantId()),
|
|
417
417
|
auth: false
|
|
418
418
|
});
|
|
419
419
|
}
|
|
@@ -455,37 +455,37 @@ var FieldAgentClient = class extends BaseServiceClient {
|
|
|
455
455
|
auth: false
|
|
456
456
|
});
|
|
457
457
|
}
|
|
458
|
-
getAgent(
|
|
459
|
-
return this.send("GET", "/agents/{
|
|
460
|
-
pathParams: {
|
|
458
|
+
getAgent(fhirPersonId) {
|
|
459
|
+
return this.send("GET", "/agents/{fhir_person_id}", {
|
|
460
|
+
pathParams: { fhir_person_id: fhirPersonId }
|
|
461
461
|
});
|
|
462
462
|
}
|
|
463
|
-
updateAgent(
|
|
464
|
-
return this.send("PATCH", "/agents/{
|
|
465
|
-
pathParams: {
|
|
463
|
+
updateAgent(fhirPersonId, request) {
|
|
464
|
+
return this.send("PATCH", "/agents/{fhir_person_id}", {
|
|
465
|
+
pathParams: { fhir_person_id: fhirPersonId },
|
|
466
466
|
body: request
|
|
467
467
|
});
|
|
468
468
|
}
|
|
469
|
-
getDashboard(
|
|
470
|
-
return this.send("GET", "/agents/{
|
|
471
|
-
pathParams: {
|
|
469
|
+
getDashboard(fhirPersonId, query) {
|
|
470
|
+
return this.send("GET", "/agents/{fhir_person_id}/dashboard", {
|
|
471
|
+
pathParams: { fhir_person_id: fhirPersonId },
|
|
472
472
|
query
|
|
473
473
|
});
|
|
474
474
|
}
|
|
475
|
-
getPhotoUploadUrl(
|
|
476
|
-
return this.send("GET", "/agents/{
|
|
477
|
-
pathParams: {
|
|
475
|
+
getPhotoUploadUrl(fhirPersonId) {
|
|
476
|
+
return this.send("GET", "/agents/{fhir_person_id}/photo/upload-url", {
|
|
477
|
+
pathParams: { fhir_person_id: fhirPersonId }
|
|
478
478
|
});
|
|
479
479
|
}
|
|
480
|
-
uploadPhoto(
|
|
481
|
-
return this.send("POST", "/agents/{
|
|
482
|
-
pathParams: {
|
|
480
|
+
uploadPhoto(fhirPersonId, request) {
|
|
481
|
+
return this.send("POST", "/agents/{fhir_person_id}/photo", {
|
|
482
|
+
pathParams: { fhir_person_id: fhirPersonId },
|
|
483
483
|
body: request
|
|
484
484
|
});
|
|
485
485
|
}
|
|
486
|
-
getPhoto(
|
|
487
|
-
return this.send("GET", "/agents/{
|
|
488
|
-
pathParams: {
|
|
486
|
+
getPhoto(fhirPersonId, query) {
|
|
487
|
+
return this.send("GET", "/agents/{fhir_person_id}/photo", {
|
|
488
|
+
pathParams: { fhir_person_id: fhirPersonId },
|
|
489
489
|
query
|
|
490
490
|
});
|
|
491
491
|
}
|
|
@@ -948,6 +948,18 @@ var TelehealthClient = class extends BaseServiceClient {
|
|
|
948
948
|
connect() {
|
|
949
949
|
return this.connectService();
|
|
950
950
|
}
|
|
951
|
+
createChannel() {
|
|
952
|
+
return this.send("POST", "/telehealth/channels");
|
|
953
|
+
}
|
|
954
|
+
createPatientToken(request) {
|
|
955
|
+
return this.send("POST", "/telehealth/tokens/patient", { body: request });
|
|
956
|
+
}
|
|
957
|
+
createProviderToken(request) {
|
|
958
|
+
return this.send("POST", "/telehealth/tokens/provider", { body: request });
|
|
959
|
+
}
|
|
960
|
+
fetchRtcToken(request) {
|
|
961
|
+
return this.send("POST", "/fetch_rtc_token", { body: request });
|
|
962
|
+
}
|
|
951
963
|
};
|
|
952
964
|
|
|
953
965
|
// src/clients/VitalsClient.ts
|
package/package.json
CHANGED