@healthcloudai/hc-sdk 0.8.7 → 0.8.10
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 +117 -10
- package/dist/index.d.cts +283 -15
- package/dist/index.d.ts +283 -15
- package/dist/index.js +117 -10
- 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.
|
|
@@ -483,6 +492,13 @@ var FieldAgentClient = class extends BaseServiceClient {
|
|
|
483
492
|
body: request
|
|
484
493
|
});
|
|
485
494
|
}
|
|
495
|
+
/**
|
|
496
|
+
* Get a field agent's photo by binary_id, or the stored photo if binary_id is omitted.
|
|
497
|
+
* GET /agents/{fhir_person_id}/photo?binary_id=...
|
|
498
|
+
*
|
|
499
|
+
* @param fhirPersonId - The FHIR Person ID of the agent
|
|
500
|
+
* @param query - Optional query parameters; if omitted, fetches the stored/default photo
|
|
501
|
+
*/
|
|
486
502
|
getPhoto(fhirPersonId, query) {
|
|
487
503
|
return this.send("GET", "/agents/{fhir_person_id}/photo", {
|
|
488
504
|
pathParams: { fhir_person_id: fhirPersonId },
|
|
@@ -563,6 +579,13 @@ var PatientClient = class extends BaseServiceClient {
|
|
|
563
579
|
body: request
|
|
564
580
|
});
|
|
565
581
|
}
|
|
582
|
+
/**
|
|
583
|
+
* Get a patient's photo by binary_id, or the stored photo if binary_id is omitted.
|
|
584
|
+
* GET /patients/{id}/photo?binary_id=...
|
|
585
|
+
*
|
|
586
|
+
* @param fhirPatientId - The FHIR Patient ID
|
|
587
|
+
* @param query - Optional query parameters; if omitted, fetches the stored/default photo
|
|
588
|
+
*/
|
|
566
589
|
getPhoto(fhirPatientId, query) {
|
|
567
590
|
return this.send("GET", "/patients/{id}/photo", {
|
|
568
591
|
pathParams: { id: fhirPatientId },
|
|
@@ -598,6 +621,11 @@ var PatientClient = class extends BaseServiceClient {
|
|
|
598
621
|
body: request
|
|
599
622
|
});
|
|
600
623
|
}
|
|
624
|
+
listPatientInsurances(fhirPatientId) {
|
|
625
|
+
return this.send("GET", "/patients/{id}/insurance", {
|
|
626
|
+
pathParams: { id: fhirPatientId }
|
|
627
|
+
});
|
|
628
|
+
}
|
|
601
629
|
createMedication(fhirPatientId, request) {
|
|
602
630
|
return this.send("POST", "/patients/{id}/medications", {
|
|
603
631
|
pathParams: { id: fhirPatientId },
|
|
@@ -860,8 +888,11 @@ var PersonClient = class extends BaseServiceClient {
|
|
|
860
888
|
});
|
|
861
889
|
}
|
|
862
890
|
/**
|
|
863
|
-
* Get a person's photo by binary_id.
|
|
891
|
+
* Get a person's photo by binary_id, or the stored photo if binary_id is omitted.
|
|
864
892
|
* GET /persons/{person_id}/photo?binary_id=...
|
|
893
|
+
*
|
|
894
|
+
* @param fhirPersonId - The FHIR Person ID
|
|
895
|
+
* @param query - Optional query parameters; if omitted, fetches the stored/default photo
|
|
865
896
|
*/
|
|
866
897
|
getPhoto(fhirPersonId, query) {
|
|
867
898
|
return this.send("GET", "/persons/{person_id}/photo", {
|
|
@@ -915,6 +946,13 @@ var ProviderClient = class extends BaseServiceClient {
|
|
|
915
946
|
uploadPhoto(fhirPractitionerId, request) {
|
|
916
947
|
return this.send("POST", "/practitioners/{practitioner_id}/photo", { pathParams: { practitioner_id: fhirPractitionerId }, body: request });
|
|
917
948
|
}
|
|
949
|
+
/**
|
|
950
|
+
* Get a practitioner's photo by binary_id, or the stored photo if binary_id is omitted.
|
|
951
|
+
* GET /practitioners/{practitioner_id}/photo?binary_id=...
|
|
952
|
+
*
|
|
953
|
+
* @param fhirPractitionerId - The FHIR Practitioner ID
|
|
954
|
+
* @param query - Optional query parameters; if omitted, fetches the stored/default photo
|
|
955
|
+
*/
|
|
918
956
|
getPhoto(fhirPractitionerId, query) {
|
|
919
957
|
return this.send("GET", "/practitioners/{practitioner_id}/photo", { pathParams: { practitioner_id: fhirPractitionerId }, query });
|
|
920
958
|
}
|
|
@@ -994,34 +1032,103 @@ var GraphClient = class extends BaseServiceClient {
|
|
|
994
1032
|
}
|
|
995
1033
|
// ─── Providers ───────────────────────────────────────────────────────
|
|
996
1034
|
searchProviders(request) {
|
|
997
|
-
return this.send("POST", "/graph/providers/search", {
|
|
1035
|
+
return this.send("POST", "/graph/providers/search", {
|
|
1036
|
+
body: request
|
|
1037
|
+
});
|
|
998
1038
|
}
|
|
999
1039
|
searchProvidersCypher(request) {
|
|
1000
|
-
return this.send("POST", "/graph/providers/cypher", {
|
|
1040
|
+
return this.send("POST", "/graph/providers/cypher", {
|
|
1041
|
+
body: request
|
|
1042
|
+
});
|
|
1043
|
+
}
|
|
1044
|
+
ragProvidersSearch(request) {
|
|
1045
|
+
return this.send("POST", "/graph/rag/providers/search", {
|
|
1046
|
+
body: request
|
|
1047
|
+
});
|
|
1048
|
+
}
|
|
1049
|
+
ragProvidersCypher(request) {
|
|
1050
|
+
return this.send("POST", "/graph/rag/providers/cypher", {
|
|
1051
|
+
body: request
|
|
1052
|
+
});
|
|
1001
1053
|
}
|
|
1002
1054
|
// ─── Health Plans ────────────────────────────────────────────────────
|
|
1003
1055
|
searchHealthPlans(request) {
|
|
1004
|
-
return this.send("POST", "/graph/health-plans/search", {
|
|
1056
|
+
return this.send("POST", "/graph/health-plans/search", {
|
|
1057
|
+
body: request
|
|
1058
|
+
});
|
|
1005
1059
|
}
|
|
1006
1060
|
searchHealthPlansCypher(request) {
|
|
1007
|
-
return this.send("POST", "/graph/health-plans/cypher", {
|
|
1061
|
+
return this.send("POST", "/graph/health-plans/cypher", {
|
|
1062
|
+
body: request
|
|
1063
|
+
});
|
|
1064
|
+
}
|
|
1065
|
+
ragHealthPlansSearch(request) {
|
|
1066
|
+
return this.send("POST", "/graph/rag/health-plans/search", {
|
|
1067
|
+
body: request
|
|
1068
|
+
});
|
|
1069
|
+
}
|
|
1070
|
+
ragHealthPlansCypher(request) {
|
|
1071
|
+
return this.send("POST", "/graph/rag/health-plans/cypher", {
|
|
1072
|
+
body: request
|
|
1073
|
+
});
|
|
1008
1074
|
}
|
|
1009
1075
|
// ─── Document Summaries ──────────────────────────────────────────────
|
|
1010
1076
|
searchDocumentSummaries(request) {
|
|
1011
|
-
return this.send("POST", "/graph/document-summaries/search", {
|
|
1077
|
+
return this.send("POST", "/graph/document-summaries/search", {
|
|
1078
|
+
body: request
|
|
1079
|
+
});
|
|
1012
1080
|
}
|
|
1013
1081
|
searchDocumentSummariesCypher(request) {
|
|
1014
|
-
return this.send("POST", "/graph/document-summaries/cypher", {
|
|
1082
|
+
return this.send("POST", "/graph/document-summaries/cypher", {
|
|
1083
|
+
body: request
|
|
1084
|
+
});
|
|
1085
|
+
}
|
|
1086
|
+
ragDocumentSummariesSearch(request) {
|
|
1087
|
+
return this.send("POST", "/graph/rag/document-summaries/search", {
|
|
1088
|
+
body: request
|
|
1089
|
+
});
|
|
1090
|
+
}
|
|
1091
|
+
ragDocumentSummariesCypher(request) {
|
|
1092
|
+
return this.send("POST", "/graph/rag/document-summaries/cypher", {
|
|
1093
|
+
body: request
|
|
1094
|
+
});
|
|
1095
|
+
}
|
|
1096
|
+
// ─── Medical Concepts ────────────────────────────────────────────────
|
|
1097
|
+
searchMedicalConcepts(request) {
|
|
1098
|
+
return this.send("POST", "/graph/medical-concepts/search", {
|
|
1099
|
+
body: request
|
|
1100
|
+
});
|
|
1101
|
+
}
|
|
1102
|
+
searchMedicalConceptsCypher(request) {
|
|
1103
|
+
return this.send("POST", "/graph/medical-concepts/cypher", {
|
|
1104
|
+
body: request
|
|
1105
|
+
});
|
|
1106
|
+
}
|
|
1107
|
+
ragMedicalConceptsSearch(request) {
|
|
1108
|
+
return this.send("POST", "/graph/rag/medical-concepts/search", {
|
|
1109
|
+
body: request
|
|
1110
|
+
});
|
|
1111
|
+
}
|
|
1112
|
+
ragMedicalConceptsCypher(request) {
|
|
1113
|
+
return this.send("POST", "/graph/rag/medical-concepts/cypher", {
|
|
1114
|
+
body: request
|
|
1115
|
+
});
|
|
1015
1116
|
}
|
|
1016
1117
|
// ─── Policy Documents ────────────────────────────────────────────────
|
|
1017
1118
|
listPolicyDocuments(query) {
|
|
1018
|
-
return this.send("GET", "/documents", {
|
|
1119
|
+
return this.send("GET", "/documents", {
|
|
1120
|
+
query
|
|
1121
|
+
});
|
|
1019
1122
|
}
|
|
1020
1123
|
searchPolicyDocuments(query) {
|
|
1021
|
-
return this.send("GET", "/documents/search", {
|
|
1124
|
+
return this.send("GET", "/documents/search", {
|
|
1125
|
+
query
|
|
1126
|
+
});
|
|
1022
1127
|
}
|
|
1023
1128
|
getPolicyDocument(docId) {
|
|
1024
|
-
return this.send("GET", "/documents/{doc_id}", {
|
|
1129
|
+
return this.send("GET", "/documents/{doc_id}", {
|
|
1130
|
+
pathParams: { doc_id: docId }
|
|
1131
|
+
});
|
|
1025
1132
|
}
|
|
1026
1133
|
};
|
|
1027
1134
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@healthcloudai/hc-sdk",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.10",
|
|
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"
|