@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 CHANGED
@@ -310,6 +310,15 @@ var AppointmentsClient = class extends BaseServiceClient {
310
310
  query
311
311
  });
312
312
  }
313
+ /**
314
+ * Create a slot.
315
+ * POST /slots
316
+ */
317
+ createSlot(request) {
318
+ return this.send("POST", "/slots", {
319
+ body: request
320
+ });
321
+ }
313
322
  // ─── Appointments ────────────────────────────────────────────────────
314
323
  /**
315
324
  * Book an appointment for a specific slot.
@@ -554,6 +563,13 @@ var FieldAgentClient = class extends BaseServiceClient {
554
563
  body: request
555
564
  });
556
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
+ */
557
573
  getPhoto(fhirPersonId, query) {
558
574
  return this.send("GET", "/agents/{fhir_person_id}/photo", {
559
575
  pathParams: { fhir_person_id: fhirPersonId },
@@ -634,6 +650,13 @@ var PatientClient = class extends BaseServiceClient {
634
650
  body: request
635
651
  });
636
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
+ */
637
660
  getPhoto(fhirPatientId, query) {
638
661
  return this.send("GET", "/patients/{id}/photo", {
639
662
  pathParams: { id: fhirPatientId },
@@ -669,6 +692,11 @@ var PatientClient = class extends BaseServiceClient {
669
692
  body: request
670
693
  });
671
694
  }
695
+ listPatientInsurances(fhirPatientId) {
696
+ return this.send("GET", "/patients/{id}/insurance", {
697
+ pathParams: { id: fhirPatientId }
698
+ });
699
+ }
672
700
  createMedication(fhirPatientId, request) {
673
701
  return this.send("POST", "/patients/{id}/medications", {
674
702
  pathParams: { id: fhirPatientId },
@@ -931,8 +959,11 @@ var PersonClient = class extends BaseServiceClient {
931
959
  });
932
960
  }
933
961
  /**
934
- * 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.
935
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
936
967
  */
937
968
  getPhoto(fhirPersonId, query) {
938
969
  return this.send("GET", "/persons/{person_id}/photo", {
@@ -986,6 +1017,13 @@ var ProviderClient = class extends BaseServiceClient {
986
1017
  uploadPhoto(fhirPractitionerId, request) {
987
1018
  return this.send("POST", "/practitioners/{practitioner_id}/photo", { pathParams: { practitioner_id: fhirPractitionerId }, body: request });
988
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
+ */
989
1027
  getPhoto(fhirPractitionerId, query) {
990
1028
  return this.send("GET", "/practitioners/{practitioner_id}/photo", { pathParams: { practitioner_id: fhirPractitionerId }, query });
991
1029
  }
@@ -1065,34 +1103,103 @@ var GraphClient = class extends BaseServiceClient {
1065
1103
  }
1066
1104
  // ─── Providers ───────────────────────────────────────────────────────
1067
1105
  searchProviders(request) {
1068
- return this.send("POST", "/graph/providers/search", { body: request });
1106
+ return this.send("POST", "/graph/providers/search", {
1107
+ body: request
1108
+ });
1069
1109
  }
1070
1110
  searchProvidersCypher(request) {
1071
- return this.send("POST", "/graph/providers/cypher", { body: request });
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
+ });
1072
1124
  }
1073
1125
  // ─── Health Plans ────────────────────────────────────────────────────
1074
1126
  searchHealthPlans(request) {
1075
- return this.send("POST", "/graph/health-plans/search", { body: request });
1127
+ return this.send("POST", "/graph/health-plans/search", {
1128
+ body: request
1129
+ });
1076
1130
  }
1077
1131
  searchHealthPlansCypher(request) {
1078
- return this.send("POST", "/graph/health-plans/cypher", { body: request });
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
+ });
1079
1145
  }
1080
1146
  // ─── Document Summaries ──────────────────────────────────────────────
1081
1147
  searchDocumentSummaries(request) {
1082
- return this.send("POST", "/graph/document-summaries/search", { body: request });
1148
+ return this.send("POST", "/graph/document-summaries/search", {
1149
+ body: request
1150
+ });
1083
1151
  }
1084
1152
  searchDocumentSummariesCypher(request) {
1085
- return this.send("POST", "/graph/document-summaries/cypher", { body: request });
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
+ });
1086
1187
  }
1087
1188
  // ─── Policy Documents ────────────────────────────────────────────────
1088
1189
  listPolicyDocuments(query) {
1089
- return this.send("GET", "/documents", { query });
1190
+ return this.send("GET", "/documents", {
1191
+ query
1192
+ });
1090
1193
  }
1091
1194
  searchPolicyDocuments(query) {
1092
- return this.send("GET", "/documents/search", { query });
1195
+ return this.send("GET", "/documents/search", {
1196
+ query
1197
+ });
1093
1198
  }
1094
1199
  getPolicyDocument(docId) {
1095
- return this.send("GET", "/documents/{doc_id}", { pathParams: { doc_id: docId } });
1200
+ return this.send("GET", "/documents/{doc_id}", {
1201
+ pathParams: { doc_id: docId }
1202
+ });
1096
1203
  }
1097
1204
  };
1098
1205