@healthcloudai/hc-sdk 0.8.9 → 0.8.11

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.js CHANGED
@@ -492,6 +492,13 @@ var FieldAgentClient = class extends BaseServiceClient {
492
492
  body: request
493
493
  });
494
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
+ */
495
502
  getPhoto(fhirPersonId, query) {
496
503
  return this.send("GET", "/agents/{fhir_person_id}/photo", {
497
504
  pathParams: { fhir_person_id: fhirPersonId },
@@ -572,6 +579,13 @@ var PatientClient = class extends BaseServiceClient {
572
579
  body: request
573
580
  });
574
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
+ */
575
589
  getPhoto(fhirPatientId, query) {
576
590
  return this.send("GET", "/patients/{id}/photo", {
577
591
  pathParams: { id: fhirPatientId },
@@ -874,8 +888,11 @@ var PersonClient = class extends BaseServiceClient {
874
888
  });
875
889
  }
876
890
  /**
877
- * 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.
878
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
879
896
  */
880
897
  getPhoto(fhirPersonId, query) {
881
898
  return this.send("GET", "/persons/{person_id}/photo", {
@@ -929,6 +946,13 @@ var ProviderClient = class extends BaseServiceClient {
929
946
  uploadPhoto(fhirPractitionerId, request) {
930
947
  return this.send("POST", "/practitioners/{practitioner_id}/photo", { pathParams: { practitioner_id: fhirPractitionerId }, body: request });
931
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
+ */
932
956
  getPhoto(fhirPractitionerId, query) {
933
957
  return this.send("GET", "/practitioners/{practitioner_id}/photo", { pathParams: { practitioner_id: fhirPractitionerId }, query });
934
958
  }
@@ -1006,36 +1030,82 @@ var GraphClient = class extends BaseServiceClient {
1006
1030
  connect() {
1007
1031
  return this.connectService();
1008
1032
  }
1009
- // ─── Providers ───────────────────────────────────────────────────────
1010
1033
  searchProviders(request) {
1011
- return this.send("POST", "/graph/providers/search", { body: request });
1034
+ return this.send("POST", "/graph/providers/search", {
1035
+ body: request
1036
+ });
1012
1037
  }
1013
1038
  searchProvidersCypher(request) {
1014
- return this.send("POST", "/graph/providers/cypher", { body: request });
1039
+ return this.send("POST", "/graph/providers/cypher", {
1040
+ body: request
1041
+ });
1015
1042
  }
1016
- // ─── Health Plans ────────────────────────────────────────────────────
1017
1043
  searchHealthPlans(request) {
1018
- return this.send("POST", "/graph/health-plans/search", { body: request });
1044
+ return this.send("POST", "/graph/health-plans/search", {
1045
+ body: request
1046
+ });
1019
1047
  }
1020
1048
  searchHealthPlansCypher(request) {
1021
- return this.send("POST", "/graph/health-plans/cypher", { body: request });
1049
+ return this.send("POST", "/graph/health-plans/cypher", {
1050
+ body: request
1051
+ });
1022
1052
  }
1023
- // ─── Document Summaries ──────────────────────────────────────────────
1024
1053
  searchDocumentSummaries(request) {
1025
- return this.send("POST", "/graph/document-summaries/search", { body: request });
1054
+ return this.send("POST", "/graph/document-summaries/search", {
1055
+ body: request
1056
+ });
1026
1057
  }
1027
1058
  searchDocumentSummariesCypher(request) {
1028
- return this.send("POST", "/graph/document-summaries/cypher", { body: request });
1059
+ return this.send("POST", "/graph/document-summaries/cypher", {
1060
+ body: request
1061
+ });
1062
+ }
1063
+ searchMedicalConcepts(request) {
1064
+ return this.send("POST", "/graph/medical-concepts/search", {
1065
+ body: request
1066
+ });
1067
+ }
1068
+ searchMedicalConceptsCypher(request) {
1069
+ return this.send("POST", "/graph/medical-concepts/cypher", {
1070
+ body: request
1071
+ });
1072
+ }
1073
+ searchMedicalConceptsFaceted(query) {
1074
+ return this.send("GET", "/medical-concepts/search", { query });
1075
+ }
1076
+ listMedicalConceptVocabularies() {
1077
+ return this.send("GET", "/medical-concepts/vocabularies");
1078
+ }
1079
+ listMedicalConcepts(query) {
1080
+ return this.send("GET", "/medical-concepts", { query });
1081
+ }
1082
+ getMedicalConcept(conceptId) {
1083
+ return this.send("GET", "/medical-concepts/{concept_id}", { pathParams: { concept_id: conceptId } });
1084
+ }
1085
+ listMedicalConceptRelationships(conceptId, query) {
1086
+ return this.send("GET", "/medical-concepts/{concept_id}/relationships", { pathParams: { concept_id: conceptId }, query });
1087
+ }
1088
+ listMedicalConceptAncestors(conceptId, query) {
1089
+ return this.send("GET", "/medical-concepts/{concept_id}/ancestors", { pathParams: { concept_id: conceptId }, query });
1090
+ }
1091
+ listMedicalConceptDescendants(conceptId, query) {
1092
+ return this.send("GET", "/medical-concepts/{concept_id}/descendants", { pathParams: { concept_id: conceptId }, query });
1029
1093
  }
1030
1094
  // ─── Policy Documents ────────────────────────────────────────────────
1031
1095
  listPolicyDocuments(query) {
1032
- return this.send("GET", "/documents", { query });
1096
+ return this.send("GET", "/documents", {
1097
+ query
1098
+ });
1033
1099
  }
1034
1100
  searchPolicyDocuments(query) {
1035
- return this.send("GET", "/documents/search", { query });
1101
+ return this.send("GET", "/documents/search", {
1102
+ query
1103
+ });
1036
1104
  }
1037
1105
  getPolicyDocument(docId) {
1038
- return this.send("GET", "/documents/{doc_id}", { pathParams: { doc_id: docId } });
1106
+ return this.send("GET", "/documents/{doc_id}", {
1107
+ pathParams: { doc_id: docId }
1108
+ });
1039
1109
  }
1040
1110
  };
1041
1111
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@healthcloudai/hc-sdk",
3
- "version": "0.8.9",
3
+ "version": "0.8.11",
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",