@healthcloudai/hc-sdk 0.8.5 → 0.8.9
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 +45 -19
- package/dist/index.d.cts +123 -29
- package/dist/index.d.ts +123 -29
- package/dist/index.js +45 -19
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -239,6 +239,15 @@ var AppointmentsClient = class extends BaseServiceClient {
|
|
|
239
239
|
query
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
|
+
/**
|
|
243
|
+
* Create a slot.
|
|
244
|
+
* POST /slots
|
|
245
|
+
*/
|
|
246
|
+
createSlot(request) {
|
|
247
|
+
return this.send("POST", "/slots", {
|
|
248
|
+
body: request
|
|
249
|
+
});
|
|
250
|
+
}
|
|
242
251
|
// ─── Appointments ────────────────────────────────────────────────────
|
|
243
252
|
/**
|
|
244
253
|
* Book an appointment for a specific slot.
|
|
@@ -413,7 +422,7 @@ var FieldAgentClient = class extends BaseServiceClient {
|
|
|
413
422
|
}
|
|
414
423
|
register(request) {
|
|
415
424
|
return this.send("POST", "/auth/register", {
|
|
416
|
-
body: withTenantId(request, this.getTenantId()),
|
|
425
|
+
body: withTenantId({ ...request, person_type: "field_agent" }, this.getTenantId()),
|
|
417
426
|
auth: false
|
|
418
427
|
});
|
|
419
428
|
}
|
|
@@ -455,37 +464,37 @@ var FieldAgentClient = class extends BaseServiceClient {
|
|
|
455
464
|
auth: false
|
|
456
465
|
});
|
|
457
466
|
}
|
|
458
|
-
getAgent(
|
|
459
|
-
return this.send("GET", "/agents/{
|
|
460
|
-
pathParams: {
|
|
467
|
+
getAgent(fhirPersonId) {
|
|
468
|
+
return this.send("GET", "/agents/{fhir_person_id}", {
|
|
469
|
+
pathParams: { fhir_person_id: fhirPersonId }
|
|
461
470
|
});
|
|
462
471
|
}
|
|
463
|
-
updateAgent(
|
|
464
|
-
return this.send("PATCH", "/agents/{
|
|
465
|
-
pathParams: {
|
|
472
|
+
updateAgent(fhirPersonId, request) {
|
|
473
|
+
return this.send("PATCH", "/agents/{fhir_person_id}", {
|
|
474
|
+
pathParams: { fhir_person_id: fhirPersonId },
|
|
466
475
|
body: request
|
|
467
476
|
});
|
|
468
477
|
}
|
|
469
|
-
getDashboard(
|
|
470
|
-
return this.send("GET", "/agents/{
|
|
471
|
-
pathParams: {
|
|
478
|
+
getDashboard(fhirPersonId, query) {
|
|
479
|
+
return this.send("GET", "/agents/{fhir_person_id}/dashboard", {
|
|
480
|
+
pathParams: { fhir_person_id: fhirPersonId },
|
|
472
481
|
query
|
|
473
482
|
});
|
|
474
483
|
}
|
|
475
|
-
getPhotoUploadUrl(
|
|
476
|
-
return this.send("GET", "/agents/{
|
|
477
|
-
pathParams: {
|
|
484
|
+
getPhotoUploadUrl(fhirPersonId) {
|
|
485
|
+
return this.send("GET", "/agents/{fhir_person_id}/photo/upload-url", {
|
|
486
|
+
pathParams: { fhir_person_id: fhirPersonId }
|
|
478
487
|
});
|
|
479
488
|
}
|
|
480
|
-
uploadPhoto(
|
|
481
|
-
return this.send("POST", "/agents/{
|
|
482
|
-
pathParams: {
|
|
489
|
+
uploadPhoto(fhirPersonId, request) {
|
|
490
|
+
return this.send("POST", "/agents/{fhir_person_id}/photo", {
|
|
491
|
+
pathParams: { fhir_person_id: fhirPersonId },
|
|
483
492
|
body: request
|
|
484
493
|
});
|
|
485
494
|
}
|
|
486
|
-
getPhoto(
|
|
487
|
-
return this.send("GET", "/agents/{
|
|
488
|
-
pathParams: {
|
|
495
|
+
getPhoto(fhirPersonId, query) {
|
|
496
|
+
return this.send("GET", "/agents/{fhir_person_id}/photo", {
|
|
497
|
+
pathParams: { fhir_person_id: fhirPersonId },
|
|
489
498
|
query
|
|
490
499
|
});
|
|
491
500
|
}
|
|
@@ -598,6 +607,11 @@ var PatientClient = class extends BaseServiceClient {
|
|
|
598
607
|
body: request
|
|
599
608
|
});
|
|
600
609
|
}
|
|
610
|
+
listPatientInsurances(fhirPatientId) {
|
|
611
|
+
return this.send("GET", "/patients/{id}/insurance", {
|
|
612
|
+
pathParams: { id: fhirPatientId }
|
|
613
|
+
});
|
|
614
|
+
}
|
|
601
615
|
createMedication(fhirPatientId, request) {
|
|
602
616
|
return this.send("POST", "/patients/{id}/medications", {
|
|
603
617
|
pathParams: { id: fhirPatientId },
|
|
@@ -948,6 +962,18 @@ var TelehealthClient = class extends BaseServiceClient {
|
|
|
948
962
|
connect() {
|
|
949
963
|
return this.connectService();
|
|
950
964
|
}
|
|
965
|
+
createChannel() {
|
|
966
|
+
return this.send("POST", "/telehealth/channels");
|
|
967
|
+
}
|
|
968
|
+
createPatientToken(request) {
|
|
969
|
+
return this.send("POST", "/telehealth/tokens/patient", { body: request });
|
|
970
|
+
}
|
|
971
|
+
createProviderToken(request) {
|
|
972
|
+
return this.send("POST", "/telehealth/tokens/provider", { body: request });
|
|
973
|
+
}
|
|
974
|
+
fetchRtcToken(request) {
|
|
975
|
+
return this.send("POST", "/fetch_rtc_token", { body: request });
|
|
976
|
+
}
|
|
951
977
|
};
|
|
952
978
|
|
|
953
979
|
// src/clients/VitalsClient.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@healthcloudai/hc-sdk",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.9",
|
|
4
4
|
"description": "All-in-one HealthCloud SDK with typed platform APIs and secure connector clients.",
|
|
5
5
|
"author": "Healthcheck Systems Inc",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,7 +42,8 @@
|
|
|
42
42
|
"prepublishOnly": "npm run build",
|
|
43
43
|
"test:live:connectors": "vitest run --config vitest.live.config.ts tests/live/connectors",
|
|
44
44
|
"test:live:connector": "vitest run --config vitest.live.config.ts",
|
|
45
|
-
"export:la28": "tsx scripts/export-la28.ts"
|
|
45
|
+
"export:la28": "tsx scripts/export-la28.ts",
|
|
46
|
+
"export:patient-insurance-appointments": "tsx scripts/export-patient-insurance-appointments.ts"
|
|
46
47
|
},
|
|
47
48
|
"peerDependencies": {
|
|
48
49
|
"react-native": ">=0.70.0"
|