@healthcloudai/hc-sdk 0.8.3 → 0.8.5

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
@@ -594,101 +594,101 @@ var PatientClient = class extends BaseServiceClient {
594
594
  connect() {
595
595
  return this.connectService();
596
596
  }
597
- updatePhone(patientId, request) {
597
+ updatePhone(fhirPatientId, request) {
598
598
  return this.send("POST", "/patients/{id}/phone", {
599
- pathParams: { id: patientId },
599
+ pathParams: { id: fhirPatientId },
600
600
  body: request
601
601
  });
602
602
  }
603
- verifySms(patientId, request) {
603
+ verifySms(fhirPatientId, request) {
604
604
  return this.send("POST", "/patients/{id}/verify-sms", {
605
- pathParams: { id: patientId },
605
+ pathParams: { id: fhirPatientId },
606
606
  body: request
607
607
  });
608
608
  }
609
- updateAddress(patientId, request) {
609
+ updateAddress(fhirPatientId, request) {
610
610
  return this.send("PUT", "/patients/{id}/address", {
611
- pathParams: { id: patientId },
611
+ pathParams: { id: fhirPatientId },
612
612
  body: request
613
613
  });
614
614
  }
615
- updateRace(patientId, request) {
615
+ updateRace(fhirPatientId, request) {
616
616
  return this.send("PUT", "/patients/{id}/race", {
617
- pathParams: { id: patientId },
617
+ pathParams: { id: fhirPatientId },
618
618
  body: request
619
619
  });
620
620
  }
621
- getProfile(patientId) {
621
+ getProfile(fhirPatientId) {
622
622
  return this.send("GET", "/patients/{id}", {
623
- pathParams: { id: patientId }
623
+ pathParams: { id: fhirPatientId }
624
624
  });
625
625
  }
626
- getDashboard(patientId) {
626
+ getDashboard(fhirPatientId) {
627
627
  return this.send("GET", "/patients/{id}/dashboard", {
628
- pathParams: { id: patientId }
628
+ pathParams: { id: fhirPatientId }
629
629
  });
630
630
  }
631
- uploadPhoto(patientId, request) {
631
+ uploadPhoto(fhirPatientId, request) {
632
632
  return this.send("POST", "/patients/{id}/photo", {
633
- pathParams: { id: patientId },
633
+ pathParams: { id: fhirPatientId },
634
634
  body: request
635
635
  });
636
636
  }
637
- getPhoto(patientId, query) {
637
+ getPhoto(fhirPatientId, query) {
638
638
  return this.send("GET", "/patients/{id}/photo", {
639
- pathParams: { id: patientId },
639
+ pathParams: { id: fhirPatientId },
640
640
  query
641
641
  });
642
642
  }
643
- getPhotoUploadUrl(patientId) {
643
+ getPhotoUploadUrl(fhirPatientId) {
644
644
  return this.send("GET", "/patients/{id}/photo/upload-url", {
645
- pathParams: { id: patientId }
645
+ pathParams: { id: fhirPatientId }
646
646
  });
647
647
  }
648
- compareFaceMatch(patientId, request) {
648
+ compareFaceMatch(fhirPatientId, request) {
649
649
  return this.send("POST", "/patients/{id}/face-match", {
650
- pathParams: { id: patientId },
650
+ pathParams: { id: fhirPatientId },
651
651
  body: request
652
652
  });
653
653
  }
654
- scanIdentityDocument(patientId, request) {
654
+ scanIdentityDocument(fhirPatientId, request) {
655
655
  return this.send("POST", "/patients/{id}/identity-document", {
656
- pathParams: { id: patientId },
656
+ pathParams: { id: fhirPatientId },
657
657
  body: request
658
658
  });
659
659
  }
660
- updateDemographics(patientId, request) {
660
+ updateDemographics(fhirPatientId, request) {
661
661
  return this.send("PUT", "/patients/{id}/demographics", {
662
- pathParams: { id: patientId },
662
+ pathParams: { id: fhirPatientId },
663
663
  body: request
664
664
  });
665
665
  }
666
- createInsurance(patientId, request) {
666
+ createInsurance(fhirPatientId, request) {
667
667
  return this.send("POST", "/patients/{id}/insurance", {
668
- pathParams: { id: patientId },
668
+ pathParams: { id: fhirPatientId },
669
669
  body: request
670
670
  });
671
671
  }
672
- createMedication(patientId, request) {
672
+ createMedication(fhirPatientId, request) {
673
673
  return this.send("POST", "/patients/{id}/medications", {
674
- pathParams: { id: patientId },
674
+ pathParams: { id: fhirPatientId },
675
675
  body: request
676
676
  });
677
677
  }
678
- listMedications(patientId, query) {
678
+ listMedications(fhirPatientId, query) {
679
679
  return this.send("GET", "/patients/{id}/medications", {
680
- pathParams: { id: patientId },
680
+ pathParams: { id: fhirPatientId },
681
681
  query
682
682
  });
683
683
  }
684
- getMedication(patientId, medicationId) {
684
+ getMedication(fhirPatientId, medicationId) {
685
685
  return this.send("GET", "/patients/{id}/medications/{med_id}", {
686
- pathParams: { id: patientId, med_id: medicationId }
686
+ pathParams: { id: fhirPatientId, med_id: medicationId }
687
687
  });
688
688
  }
689
- updateMedicationStatus(patientId, medicationId, request) {
689
+ updateMedicationStatus(fhirPatientId, medicationId, request) {
690
690
  return this.send("PUT", "/patients/{id}/medications/{med_id}", {
691
- pathParams: { id: patientId, med_id: medicationId },
691
+ pathParams: { id: fhirPatientId, med_id: medicationId },
692
692
  body: request
693
693
  });
694
694
  }
@@ -879,15 +879,15 @@ var PersonClient = class extends BaseServiceClient {
879
879
  });
880
880
  }
881
881
  // ─── Person CRUD (authenticated) ─────────────────────────────────────
882
- updatePhone(personId, request) {
882
+ updatePhone(fhirPersonId, request) {
883
883
  return this.send("POST", "/persons/{person_id}/phone", {
884
- pathParams: { person_id: personId },
884
+ pathParams: { person_id: fhirPersonId },
885
885
  body: request
886
886
  });
887
887
  }
888
- verifySms(personId, request) {
888
+ verifySms(fhirPersonId, request) {
889
889
  return this.send("POST", "/persons/{person_id}/verify-sms", {
890
- pathParams: { person_id: personId },
890
+ pathParams: { person_id: fhirPersonId },
891
891
  body: request
892
892
  });
893
893
  }
@@ -895,18 +895,18 @@ var PersonClient = class extends BaseServiceClient {
895
895
  * Get a person by ID.
896
896
  * GET /persons/{person_id}
897
897
  */
898
- get(personId) {
898
+ get(fhirPersonId) {
899
899
  return this.send("GET", "/persons/{person_id}", {
900
- pathParams: { person_id: personId }
900
+ pathParams: { person_id: fhirPersonId }
901
901
  });
902
902
  }
903
903
  /**
904
904
  * Update a person's fields.
905
905
  * PATCH /persons/{person_id}
906
906
  */
907
- update(personId, request) {
907
+ update(fhirPersonId, request) {
908
908
  return this.send("PATCH", "/persons/{person_id}", {
909
- pathParams: { person_id: personId },
909
+ pathParams: { person_id: fhirPersonId },
910
910
  body: request
911
911
  });
912
912
  }
@@ -915,18 +915,18 @@ var PersonClient = class extends BaseServiceClient {
915
915
  * Get a presigned upload URL for a person's photo.
916
916
  * GET /persons/{person_id}/photo/upload-url
917
917
  */
918
- getPhotoUploadUrl(personId) {
918
+ getPhotoUploadUrl(fhirPersonId) {
919
919
  return this.send("GET", "/persons/{person_id}/photo/upload-url", {
920
- pathParams: { person_id: personId }
920
+ pathParams: { person_id: fhirPersonId }
921
921
  });
922
922
  }
923
923
  /**
924
924
  * Upload a person's photo (base64).
925
925
  * POST /persons/{person_id}/photo
926
926
  */
927
- uploadPhoto(personId, request) {
927
+ uploadPhoto(fhirPersonId, request) {
928
928
  return this.send("POST", "/persons/{person_id}/photo", {
929
- pathParams: { person_id: personId },
929
+ pathParams: { person_id: fhirPersonId },
930
930
  body: request
931
931
  });
932
932
  }
@@ -934,9 +934,9 @@ var PersonClient = class extends BaseServiceClient {
934
934
  * Get a person's photo by binary_id.
935
935
  * GET /persons/{person_id}/photo?binary_id=...
936
936
  */
937
- getPhoto(personId, query) {
937
+ getPhoto(fhirPersonId, query) {
938
938
  return this.send("GET", "/persons/{person_id}/photo", {
939
- pathParams: { person_id: personId },
939
+ pathParams: { person_id: fhirPersonId },
940
940
  query
941
941
  });
942
942
  }
@@ -967,27 +967,27 @@ var ProviderClient = class extends BaseServiceClient {
967
967
  return this.send("POST", "/auth/confirm-reset-password", { body: request, auth: false });
968
968
  }
969
969
  // ─── Practitioner CRUD ─────────────────────────────────────────────
970
- updatePhone(practitionerId, request) {
971
- return this.send("POST", "/practitioners/{practitioner_id}/phone", { pathParams: { practitioner_id: practitionerId }, body: request });
970
+ updatePhone(fhirPractitionerId, request) {
971
+ return this.send("POST", "/practitioners/{practitioner_id}/phone", { pathParams: { practitioner_id: fhirPractitionerId }, body: request });
972
972
  }
973
- verifySms(practitionerId, request) {
974
- return this.send("POST", "/practitioners/{practitioner_id}/verify-sms", { pathParams: { practitioner_id: practitionerId }, body: request });
973
+ verifySms(fhirPractitionerId, request) {
974
+ return this.send("POST", "/practitioners/{practitioner_id}/verify-sms", { pathParams: { practitioner_id: fhirPractitionerId }, body: request });
975
975
  }
976
- get(practitionerId) {
977
- return this.send("GET", "/practitioners/{practitioner_id}", { pathParams: { practitioner_id: practitionerId } });
976
+ get(fhirPractitionerId) {
977
+ return this.send("GET", "/practitioners/{practitioner_id}", { pathParams: { practitioner_id: fhirPractitionerId } });
978
978
  }
979
- update(practitionerId, request) {
980
- return this.send("PATCH", "/practitioners/{practitioner_id}", { pathParams: { practitioner_id: practitionerId }, body: request });
979
+ update(fhirPractitionerId, request) {
980
+ return this.send("PATCH", "/practitioners/{practitioner_id}", { pathParams: { practitioner_id: fhirPractitionerId }, body: request });
981
981
  }
982
982
  // ─── Photo ─────────────────────────────────────────────────────────
983
- getPhotoUploadUrl(practitionerId) {
984
- return this.send("GET", "/practitioners/{practitioner_id}/photo/upload-url", { pathParams: { practitioner_id: practitionerId } });
983
+ getPhotoUploadUrl(fhirPractitionerId) {
984
+ return this.send("GET", "/practitioners/{practitioner_id}/photo/upload-url", { pathParams: { practitioner_id: fhirPractitionerId } });
985
985
  }
986
- uploadPhoto(practitionerId, request) {
987
- return this.send("POST", "/practitioners/{practitioner_id}/photo", { pathParams: { practitioner_id: practitionerId }, body: request });
986
+ uploadPhoto(fhirPractitionerId, request) {
987
+ return this.send("POST", "/practitioners/{practitioner_id}/photo", { pathParams: { practitioner_id: fhirPractitionerId }, body: request });
988
988
  }
989
- getPhoto(practitionerId, query) {
990
- return this.send("GET", "/practitioners/{practitioner_id}/photo", { pathParams: { practitioner_id: practitionerId }, query });
989
+ getPhoto(fhirPractitionerId, query) {
990
+ return this.send("GET", "/practitioners/{practitioner_id}/photo", { pathParams: { practitioner_id: fhirPractitionerId }, query });
991
991
  }
992
992
  };
993
993