@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.js CHANGED
@@ -523,101 +523,101 @@ var PatientClient = class extends BaseServiceClient {
523
523
  connect() {
524
524
  return this.connectService();
525
525
  }
526
- updatePhone(patientId, request) {
526
+ updatePhone(fhirPatientId, request) {
527
527
  return this.send("POST", "/patients/{id}/phone", {
528
- pathParams: { id: patientId },
528
+ pathParams: { id: fhirPatientId },
529
529
  body: request
530
530
  });
531
531
  }
532
- verifySms(patientId, request) {
532
+ verifySms(fhirPatientId, request) {
533
533
  return this.send("POST", "/patients/{id}/verify-sms", {
534
- pathParams: { id: patientId },
534
+ pathParams: { id: fhirPatientId },
535
535
  body: request
536
536
  });
537
537
  }
538
- updateAddress(patientId, request) {
538
+ updateAddress(fhirPatientId, request) {
539
539
  return this.send("PUT", "/patients/{id}/address", {
540
- pathParams: { id: patientId },
540
+ pathParams: { id: fhirPatientId },
541
541
  body: request
542
542
  });
543
543
  }
544
- updateRace(patientId, request) {
544
+ updateRace(fhirPatientId, request) {
545
545
  return this.send("PUT", "/patients/{id}/race", {
546
- pathParams: { id: patientId },
546
+ pathParams: { id: fhirPatientId },
547
547
  body: request
548
548
  });
549
549
  }
550
- getProfile(patientId) {
550
+ getProfile(fhirPatientId) {
551
551
  return this.send("GET", "/patients/{id}", {
552
- pathParams: { id: patientId }
552
+ pathParams: { id: fhirPatientId }
553
553
  });
554
554
  }
555
- getDashboard(patientId) {
555
+ getDashboard(fhirPatientId) {
556
556
  return this.send("GET", "/patients/{id}/dashboard", {
557
- pathParams: { id: patientId }
557
+ pathParams: { id: fhirPatientId }
558
558
  });
559
559
  }
560
- uploadPhoto(patientId, request) {
560
+ uploadPhoto(fhirPatientId, request) {
561
561
  return this.send("POST", "/patients/{id}/photo", {
562
- pathParams: { id: patientId },
562
+ pathParams: { id: fhirPatientId },
563
563
  body: request
564
564
  });
565
565
  }
566
- getPhoto(patientId, query) {
566
+ getPhoto(fhirPatientId, query) {
567
567
  return this.send("GET", "/patients/{id}/photo", {
568
- pathParams: { id: patientId },
568
+ pathParams: { id: fhirPatientId },
569
569
  query
570
570
  });
571
571
  }
572
- getPhotoUploadUrl(patientId) {
572
+ getPhotoUploadUrl(fhirPatientId) {
573
573
  return this.send("GET", "/patients/{id}/photo/upload-url", {
574
- pathParams: { id: patientId }
574
+ pathParams: { id: fhirPatientId }
575
575
  });
576
576
  }
577
- compareFaceMatch(patientId, request) {
577
+ compareFaceMatch(fhirPatientId, request) {
578
578
  return this.send("POST", "/patients/{id}/face-match", {
579
- pathParams: { id: patientId },
579
+ pathParams: { id: fhirPatientId },
580
580
  body: request
581
581
  });
582
582
  }
583
- scanIdentityDocument(patientId, request) {
583
+ scanIdentityDocument(fhirPatientId, request) {
584
584
  return this.send("POST", "/patients/{id}/identity-document", {
585
- pathParams: { id: patientId },
585
+ pathParams: { id: fhirPatientId },
586
586
  body: request
587
587
  });
588
588
  }
589
- updateDemographics(patientId, request) {
589
+ updateDemographics(fhirPatientId, request) {
590
590
  return this.send("PUT", "/patients/{id}/demographics", {
591
- pathParams: { id: patientId },
591
+ pathParams: { id: fhirPatientId },
592
592
  body: request
593
593
  });
594
594
  }
595
- createInsurance(patientId, request) {
595
+ createInsurance(fhirPatientId, request) {
596
596
  return this.send("POST", "/patients/{id}/insurance", {
597
- pathParams: { id: patientId },
597
+ pathParams: { id: fhirPatientId },
598
598
  body: request
599
599
  });
600
600
  }
601
- createMedication(patientId, request) {
601
+ createMedication(fhirPatientId, request) {
602
602
  return this.send("POST", "/patients/{id}/medications", {
603
- pathParams: { id: patientId },
603
+ pathParams: { id: fhirPatientId },
604
604
  body: request
605
605
  });
606
606
  }
607
- listMedications(patientId, query) {
607
+ listMedications(fhirPatientId, query) {
608
608
  return this.send("GET", "/patients/{id}/medications", {
609
- pathParams: { id: patientId },
609
+ pathParams: { id: fhirPatientId },
610
610
  query
611
611
  });
612
612
  }
613
- getMedication(patientId, medicationId) {
613
+ getMedication(fhirPatientId, medicationId) {
614
614
  return this.send("GET", "/patients/{id}/medications/{med_id}", {
615
- pathParams: { id: patientId, med_id: medicationId }
615
+ pathParams: { id: fhirPatientId, med_id: medicationId }
616
616
  });
617
617
  }
618
- updateMedicationStatus(patientId, medicationId, request) {
618
+ updateMedicationStatus(fhirPatientId, medicationId, request) {
619
619
  return this.send("PUT", "/patients/{id}/medications/{med_id}", {
620
- pathParams: { id: patientId, med_id: medicationId },
620
+ pathParams: { id: fhirPatientId, med_id: medicationId },
621
621
  body: request
622
622
  });
623
623
  }
@@ -808,15 +808,15 @@ var PersonClient = class extends BaseServiceClient {
808
808
  });
809
809
  }
810
810
  // ─── Person CRUD (authenticated) ─────────────────────────────────────
811
- updatePhone(personId, request) {
811
+ updatePhone(fhirPersonId, request) {
812
812
  return this.send("POST", "/persons/{person_id}/phone", {
813
- pathParams: { person_id: personId },
813
+ pathParams: { person_id: fhirPersonId },
814
814
  body: request
815
815
  });
816
816
  }
817
- verifySms(personId, request) {
817
+ verifySms(fhirPersonId, request) {
818
818
  return this.send("POST", "/persons/{person_id}/verify-sms", {
819
- pathParams: { person_id: personId },
819
+ pathParams: { person_id: fhirPersonId },
820
820
  body: request
821
821
  });
822
822
  }
@@ -824,18 +824,18 @@ var PersonClient = class extends BaseServiceClient {
824
824
  * Get a person by ID.
825
825
  * GET /persons/{person_id}
826
826
  */
827
- get(personId) {
827
+ get(fhirPersonId) {
828
828
  return this.send("GET", "/persons/{person_id}", {
829
- pathParams: { person_id: personId }
829
+ pathParams: { person_id: fhirPersonId }
830
830
  });
831
831
  }
832
832
  /**
833
833
  * Update a person's fields.
834
834
  * PATCH /persons/{person_id}
835
835
  */
836
- update(personId, request) {
836
+ update(fhirPersonId, request) {
837
837
  return this.send("PATCH", "/persons/{person_id}", {
838
- pathParams: { person_id: personId },
838
+ pathParams: { person_id: fhirPersonId },
839
839
  body: request
840
840
  });
841
841
  }
@@ -844,18 +844,18 @@ var PersonClient = class extends BaseServiceClient {
844
844
  * Get a presigned upload URL for a person's photo.
845
845
  * GET /persons/{person_id}/photo/upload-url
846
846
  */
847
- getPhotoUploadUrl(personId) {
847
+ getPhotoUploadUrl(fhirPersonId) {
848
848
  return this.send("GET", "/persons/{person_id}/photo/upload-url", {
849
- pathParams: { person_id: personId }
849
+ pathParams: { person_id: fhirPersonId }
850
850
  });
851
851
  }
852
852
  /**
853
853
  * Upload a person's photo (base64).
854
854
  * POST /persons/{person_id}/photo
855
855
  */
856
- uploadPhoto(personId, request) {
856
+ uploadPhoto(fhirPersonId, request) {
857
857
  return this.send("POST", "/persons/{person_id}/photo", {
858
- pathParams: { person_id: personId },
858
+ pathParams: { person_id: fhirPersonId },
859
859
  body: request
860
860
  });
861
861
  }
@@ -863,9 +863,9 @@ var PersonClient = class extends BaseServiceClient {
863
863
  * Get a person's photo by binary_id.
864
864
  * GET /persons/{person_id}/photo?binary_id=...
865
865
  */
866
- getPhoto(personId, query) {
866
+ getPhoto(fhirPersonId, query) {
867
867
  return this.send("GET", "/persons/{person_id}/photo", {
868
- pathParams: { person_id: personId },
868
+ pathParams: { person_id: fhirPersonId },
869
869
  query
870
870
  });
871
871
  }
@@ -896,27 +896,27 @@ var ProviderClient = class extends BaseServiceClient {
896
896
  return this.send("POST", "/auth/confirm-reset-password", { body: request, auth: false });
897
897
  }
898
898
  // ─── Practitioner CRUD ─────────────────────────────────────────────
899
- updatePhone(practitionerId, request) {
900
- return this.send("POST", "/practitioners/{practitioner_id}/phone", { pathParams: { practitioner_id: practitionerId }, body: request });
899
+ updatePhone(fhirPractitionerId, request) {
900
+ return this.send("POST", "/practitioners/{practitioner_id}/phone", { pathParams: { practitioner_id: fhirPractitionerId }, body: request });
901
901
  }
902
- verifySms(practitionerId, request) {
903
- return this.send("POST", "/practitioners/{practitioner_id}/verify-sms", { pathParams: { practitioner_id: practitionerId }, body: request });
902
+ verifySms(fhirPractitionerId, request) {
903
+ return this.send("POST", "/practitioners/{practitioner_id}/verify-sms", { pathParams: { practitioner_id: fhirPractitionerId }, body: request });
904
904
  }
905
- get(practitionerId) {
906
- return this.send("GET", "/practitioners/{practitioner_id}", { pathParams: { practitioner_id: practitionerId } });
905
+ get(fhirPractitionerId) {
906
+ return this.send("GET", "/practitioners/{practitioner_id}", { pathParams: { practitioner_id: fhirPractitionerId } });
907
907
  }
908
- update(practitionerId, request) {
909
- return this.send("PATCH", "/practitioners/{practitioner_id}", { pathParams: { practitioner_id: practitionerId }, body: request });
908
+ update(fhirPractitionerId, request) {
909
+ return this.send("PATCH", "/practitioners/{practitioner_id}", { pathParams: { practitioner_id: fhirPractitionerId }, body: request });
910
910
  }
911
911
  // ─── Photo ─────────────────────────────────────────────────────────
912
- getPhotoUploadUrl(practitionerId) {
913
- return this.send("GET", "/practitioners/{practitioner_id}/photo/upload-url", { pathParams: { practitioner_id: practitionerId } });
912
+ getPhotoUploadUrl(fhirPractitionerId) {
913
+ return this.send("GET", "/practitioners/{practitioner_id}/photo/upload-url", { pathParams: { practitioner_id: fhirPractitionerId } });
914
914
  }
915
- uploadPhoto(practitionerId, request) {
916
- return this.send("POST", "/practitioners/{practitioner_id}/photo", { pathParams: { practitioner_id: practitionerId }, body: request });
915
+ uploadPhoto(fhirPractitionerId, request) {
916
+ return this.send("POST", "/practitioners/{practitioner_id}/photo", { pathParams: { practitioner_id: fhirPractitionerId }, body: request });
917
917
  }
918
- getPhoto(practitionerId, query) {
919
- return this.send("GET", "/practitioners/{practitioner_id}/photo", { pathParams: { practitioner_id: practitionerId }, query });
918
+ getPhoto(fhirPractitionerId, query) {
919
+ return this.send("GET", "/practitioners/{practitioner_id}/photo", { pathParams: { practitioner_id: fhirPractitionerId }, query });
920
920
  }
921
921
  };
922
922
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@healthcloudai/hc-sdk",
3
- "version": "0.8.3",
3
+ "version": "0.8.5",
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",