@healthcloudai/hc-sdk 0.8.9 → 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 +103 -10
- package/dist/index.d.cts +246 -13
- package/dist/index.d.ts +246 -13
- package/dist/index.js +103 -10
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -563,6 +563,13 @@ var FieldAgentClient = class extends BaseServiceClient {
|
|
|
563
563
|
body: request
|
|
564
564
|
});
|
|
565
565
|
}
|
|
566
|
+
/**
|
|
567
|
+
* Get a field agent's photo by binary_id, or the stored photo if binary_id is omitted.
|
|
568
|
+
* GET /agents/{fhir_person_id}/photo?binary_id=...
|
|
569
|
+
*
|
|
570
|
+
* @param fhirPersonId - The FHIR Person ID of the agent
|
|
571
|
+
* @param query - Optional query parameters; if omitted, fetches the stored/default photo
|
|
572
|
+
*/
|
|
566
573
|
getPhoto(fhirPersonId, query) {
|
|
567
574
|
return this.send("GET", "/agents/{fhir_person_id}/photo", {
|
|
568
575
|
pathParams: { fhir_person_id: fhirPersonId },
|
|
@@ -643,6 +650,13 @@ var PatientClient = class extends BaseServiceClient {
|
|
|
643
650
|
body: request
|
|
644
651
|
});
|
|
645
652
|
}
|
|
653
|
+
/**
|
|
654
|
+
* Get a patient's photo by binary_id, or the stored photo if binary_id is omitted.
|
|
655
|
+
* GET /patients/{id}/photo?binary_id=...
|
|
656
|
+
*
|
|
657
|
+
* @param fhirPatientId - The FHIR Patient ID
|
|
658
|
+
* @param query - Optional query parameters; if omitted, fetches the stored/default photo
|
|
659
|
+
*/
|
|
646
660
|
getPhoto(fhirPatientId, query) {
|
|
647
661
|
return this.send("GET", "/patients/{id}/photo", {
|
|
648
662
|
pathParams: { id: fhirPatientId },
|
|
@@ -945,8 +959,11 @@ var PersonClient = class extends BaseServiceClient {
|
|
|
945
959
|
});
|
|
946
960
|
}
|
|
947
961
|
/**
|
|
948
|
-
* Get a person's photo by binary_id.
|
|
962
|
+
* Get a person's photo by binary_id, or the stored photo if binary_id is omitted.
|
|
949
963
|
* GET /persons/{person_id}/photo?binary_id=...
|
|
964
|
+
*
|
|
965
|
+
* @param fhirPersonId - The FHIR Person ID
|
|
966
|
+
* @param query - Optional query parameters; if omitted, fetches the stored/default photo
|
|
950
967
|
*/
|
|
951
968
|
getPhoto(fhirPersonId, query) {
|
|
952
969
|
return this.send("GET", "/persons/{person_id}/photo", {
|
|
@@ -1000,6 +1017,13 @@ var ProviderClient = class extends BaseServiceClient {
|
|
|
1000
1017
|
uploadPhoto(fhirPractitionerId, request) {
|
|
1001
1018
|
return this.send("POST", "/practitioners/{practitioner_id}/photo", { pathParams: { practitioner_id: fhirPractitionerId }, body: request });
|
|
1002
1019
|
}
|
|
1020
|
+
/**
|
|
1021
|
+
* Get a practitioner's photo by binary_id, or the stored photo if binary_id is omitted.
|
|
1022
|
+
* GET /practitioners/{practitioner_id}/photo?binary_id=...
|
|
1023
|
+
*
|
|
1024
|
+
* @param fhirPractitionerId - The FHIR Practitioner ID
|
|
1025
|
+
* @param query - Optional query parameters; if omitted, fetches the stored/default photo
|
|
1026
|
+
*/
|
|
1003
1027
|
getPhoto(fhirPractitionerId, query) {
|
|
1004
1028
|
return this.send("GET", "/practitioners/{practitioner_id}/photo", { pathParams: { practitioner_id: fhirPractitionerId }, query });
|
|
1005
1029
|
}
|
|
@@ -1079,34 +1103,103 @@ var GraphClient = class extends BaseServiceClient {
|
|
|
1079
1103
|
}
|
|
1080
1104
|
// ─── Providers ───────────────────────────────────────────────────────
|
|
1081
1105
|
searchProviders(request) {
|
|
1082
|
-
return this.send("POST", "/graph/providers/search", {
|
|
1106
|
+
return this.send("POST", "/graph/providers/search", {
|
|
1107
|
+
body: request
|
|
1108
|
+
});
|
|
1083
1109
|
}
|
|
1084
1110
|
searchProvidersCypher(request) {
|
|
1085
|
-
return this.send("POST", "/graph/providers/cypher", {
|
|
1111
|
+
return this.send("POST", "/graph/providers/cypher", {
|
|
1112
|
+
body: request
|
|
1113
|
+
});
|
|
1114
|
+
}
|
|
1115
|
+
ragProvidersSearch(request) {
|
|
1116
|
+
return this.send("POST", "/graph/rag/providers/search", {
|
|
1117
|
+
body: request
|
|
1118
|
+
});
|
|
1119
|
+
}
|
|
1120
|
+
ragProvidersCypher(request) {
|
|
1121
|
+
return this.send("POST", "/graph/rag/providers/cypher", {
|
|
1122
|
+
body: request
|
|
1123
|
+
});
|
|
1086
1124
|
}
|
|
1087
1125
|
// ─── Health Plans ────────────────────────────────────────────────────
|
|
1088
1126
|
searchHealthPlans(request) {
|
|
1089
|
-
return this.send("POST", "/graph/health-plans/search", {
|
|
1127
|
+
return this.send("POST", "/graph/health-plans/search", {
|
|
1128
|
+
body: request
|
|
1129
|
+
});
|
|
1090
1130
|
}
|
|
1091
1131
|
searchHealthPlansCypher(request) {
|
|
1092
|
-
return this.send("POST", "/graph/health-plans/cypher", {
|
|
1132
|
+
return this.send("POST", "/graph/health-plans/cypher", {
|
|
1133
|
+
body: request
|
|
1134
|
+
});
|
|
1135
|
+
}
|
|
1136
|
+
ragHealthPlansSearch(request) {
|
|
1137
|
+
return this.send("POST", "/graph/rag/health-plans/search", {
|
|
1138
|
+
body: request
|
|
1139
|
+
});
|
|
1140
|
+
}
|
|
1141
|
+
ragHealthPlansCypher(request) {
|
|
1142
|
+
return this.send("POST", "/graph/rag/health-plans/cypher", {
|
|
1143
|
+
body: request
|
|
1144
|
+
});
|
|
1093
1145
|
}
|
|
1094
1146
|
// ─── Document Summaries ──────────────────────────────────────────────
|
|
1095
1147
|
searchDocumentSummaries(request) {
|
|
1096
|
-
return this.send("POST", "/graph/document-summaries/search", {
|
|
1148
|
+
return this.send("POST", "/graph/document-summaries/search", {
|
|
1149
|
+
body: request
|
|
1150
|
+
});
|
|
1097
1151
|
}
|
|
1098
1152
|
searchDocumentSummariesCypher(request) {
|
|
1099
|
-
return this.send("POST", "/graph/document-summaries/cypher", {
|
|
1153
|
+
return this.send("POST", "/graph/document-summaries/cypher", {
|
|
1154
|
+
body: request
|
|
1155
|
+
});
|
|
1156
|
+
}
|
|
1157
|
+
ragDocumentSummariesSearch(request) {
|
|
1158
|
+
return this.send("POST", "/graph/rag/document-summaries/search", {
|
|
1159
|
+
body: request
|
|
1160
|
+
});
|
|
1161
|
+
}
|
|
1162
|
+
ragDocumentSummariesCypher(request) {
|
|
1163
|
+
return this.send("POST", "/graph/rag/document-summaries/cypher", {
|
|
1164
|
+
body: request
|
|
1165
|
+
});
|
|
1166
|
+
}
|
|
1167
|
+
// ─── Medical Concepts ────────────────────────────────────────────────
|
|
1168
|
+
searchMedicalConcepts(request) {
|
|
1169
|
+
return this.send("POST", "/graph/medical-concepts/search", {
|
|
1170
|
+
body: request
|
|
1171
|
+
});
|
|
1172
|
+
}
|
|
1173
|
+
searchMedicalConceptsCypher(request) {
|
|
1174
|
+
return this.send("POST", "/graph/medical-concepts/cypher", {
|
|
1175
|
+
body: request
|
|
1176
|
+
});
|
|
1177
|
+
}
|
|
1178
|
+
ragMedicalConceptsSearch(request) {
|
|
1179
|
+
return this.send("POST", "/graph/rag/medical-concepts/search", {
|
|
1180
|
+
body: request
|
|
1181
|
+
});
|
|
1182
|
+
}
|
|
1183
|
+
ragMedicalConceptsCypher(request) {
|
|
1184
|
+
return this.send("POST", "/graph/rag/medical-concepts/cypher", {
|
|
1185
|
+
body: request
|
|
1186
|
+
});
|
|
1100
1187
|
}
|
|
1101
1188
|
// ─── Policy Documents ────────────────────────────────────────────────
|
|
1102
1189
|
listPolicyDocuments(query) {
|
|
1103
|
-
return this.send("GET", "/documents", {
|
|
1190
|
+
return this.send("GET", "/documents", {
|
|
1191
|
+
query
|
|
1192
|
+
});
|
|
1104
1193
|
}
|
|
1105
1194
|
searchPolicyDocuments(query) {
|
|
1106
|
-
return this.send("GET", "/documents/search", {
|
|
1195
|
+
return this.send("GET", "/documents/search", {
|
|
1196
|
+
query
|
|
1197
|
+
});
|
|
1107
1198
|
}
|
|
1108
1199
|
getPolicyDocument(docId) {
|
|
1109
|
-
return this.send("GET", "/documents/{doc_id}", {
|
|
1200
|
+
return this.send("GET", "/documents/{doc_id}", {
|
|
1201
|
+
pathParams: { doc_id: docId }
|
|
1202
|
+
});
|
|
1110
1203
|
}
|
|
1111
1204
|
};
|
|
1112
1205
|
|