@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 +62 -62
- package/dist/index.d.cts +119 -44
- package/dist/index.d.ts +119 -44
- package/dist/index.js +62 -62
- package/package.json +1 -1
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(
|
|
526
|
+
updatePhone(fhirPatientId, request) {
|
|
527
527
|
return this.send("POST", "/patients/{id}/phone", {
|
|
528
|
-
pathParams: { id:
|
|
528
|
+
pathParams: { id: fhirPatientId },
|
|
529
529
|
body: request
|
|
530
530
|
});
|
|
531
531
|
}
|
|
532
|
-
verifySms(
|
|
532
|
+
verifySms(fhirPatientId, request) {
|
|
533
533
|
return this.send("POST", "/patients/{id}/verify-sms", {
|
|
534
|
-
pathParams: { id:
|
|
534
|
+
pathParams: { id: fhirPatientId },
|
|
535
535
|
body: request
|
|
536
536
|
});
|
|
537
537
|
}
|
|
538
|
-
updateAddress(
|
|
538
|
+
updateAddress(fhirPatientId, request) {
|
|
539
539
|
return this.send("PUT", "/patients/{id}/address", {
|
|
540
|
-
pathParams: { id:
|
|
540
|
+
pathParams: { id: fhirPatientId },
|
|
541
541
|
body: request
|
|
542
542
|
});
|
|
543
543
|
}
|
|
544
|
-
updateRace(
|
|
544
|
+
updateRace(fhirPatientId, request) {
|
|
545
545
|
return this.send("PUT", "/patients/{id}/race", {
|
|
546
|
-
pathParams: { id:
|
|
546
|
+
pathParams: { id: fhirPatientId },
|
|
547
547
|
body: request
|
|
548
548
|
});
|
|
549
549
|
}
|
|
550
|
-
getProfile(
|
|
550
|
+
getProfile(fhirPatientId) {
|
|
551
551
|
return this.send("GET", "/patients/{id}", {
|
|
552
|
-
pathParams: { id:
|
|
552
|
+
pathParams: { id: fhirPatientId }
|
|
553
553
|
});
|
|
554
554
|
}
|
|
555
|
-
getDashboard(
|
|
555
|
+
getDashboard(fhirPatientId) {
|
|
556
556
|
return this.send("GET", "/patients/{id}/dashboard", {
|
|
557
|
-
pathParams: { id:
|
|
557
|
+
pathParams: { id: fhirPatientId }
|
|
558
558
|
});
|
|
559
559
|
}
|
|
560
|
-
uploadPhoto(
|
|
560
|
+
uploadPhoto(fhirPatientId, request) {
|
|
561
561
|
return this.send("POST", "/patients/{id}/photo", {
|
|
562
|
-
pathParams: { id:
|
|
562
|
+
pathParams: { id: fhirPatientId },
|
|
563
563
|
body: request
|
|
564
564
|
});
|
|
565
565
|
}
|
|
566
|
-
getPhoto(
|
|
566
|
+
getPhoto(fhirPatientId, query) {
|
|
567
567
|
return this.send("GET", "/patients/{id}/photo", {
|
|
568
|
-
pathParams: { id:
|
|
568
|
+
pathParams: { id: fhirPatientId },
|
|
569
569
|
query
|
|
570
570
|
});
|
|
571
571
|
}
|
|
572
|
-
getPhotoUploadUrl(
|
|
572
|
+
getPhotoUploadUrl(fhirPatientId) {
|
|
573
573
|
return this.send("GET", "/patients/{id}/photo/upload-url", {
|
|
574
|
-
pathParams: { id:
|
|
574
|
+
pathParams: { id: fhirPatientId }
|
|
575
575
|
});
|
|
576
576
|
}
|
|
577
|
-
compareFaceMatch(
|
|
577
|
+
compareFaceMatch(fhirPatientId, request) {
|
|
578
578
|
return this.send("POST", "/patients/{id}/face-match", {
|
|
579
|
-
pathParams: { id:
|
|
579
|
+
pathParams: { id: fhirPatientId },
|
|
580
580
|
body: request
|
|
581
581
|
});
|
|
582
582
|
}
|
|
583
|
-
scanIdentityDocument(
|
|
583
|
+
scanIdentityDocument(fhirPatientId, request) {
|
|
584
584
|
return this.send("POST", "/patients/{id}/identity-document", {
|
|
585
|
-
pathParams: { id:
|
|
585
|
+
pathParams: { id: fhirPatientId },
|
|
586
586
|
body: request
|
|
587
587
|
});
|
|
588
588
|
}
|
|
589
|
-
updateDemographics(
|
|
589
|
+
updateDemographics(fhirPatientId, request) {
|
|
590
590
|
return this.send("PUT", "/patients/{id}/demographics", {
|
|
591
|
-
pathParams: { id:
|
|
591
|
+
pathParams: { id: fhirPatientId },
|
|
592
592
|
body: request
|
|
593
593
|
});
|
|
594
594
|
}
|
|
595
|
-
createInsurance(
|
|
595
|
+
createInsurance(fhirPatientId, request) {
|
|
596
596
|
return this.send("POST", "/patients/{id}/insurance", {
|
|
597
|
-
pathParams: { id:
|
|
597
|
+
pathParams: { id: fhirPatientId },
|
|
598
598
|
body: request
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
|
-
createMedication(
|
|
601
|
+
createMedication(fhirPatientId, request) {
|
|
602
602
|
return this.send("POST", "/patients/{id}/medications", {
|
|
603
|
-
pathParams: { id:
|
|
603
|
+
pathParams: { id: fhirPatientId },
|
|
604
604
|
body: request
|
|
605
605
|
});
|
|
606
606
|
}
|
|
607
|
-
listMedications(
|
|
607
|
+
listMedications(fhirPatientId, query) {
|
|
608
608
|
return this.send("GET", "/patients/{id}/medications", {
|
|
609
|
-
pathParams: { id:
|
|
609
|
+
pathParams: { id: fhirPatientId },
|
|
610
610
|
query
|
|
611
611
|
});
|
|
612
612
|
}
|
|
613
|
-
getMedication(
|
|
613
|
+
getMedication(fhirPatientId, medicationId) {
|
|
614
614
|
return this.send("GET", "/patients/{id}/medications/{med_id}", {
|
|
615
|
-
pathParams: { id:
|
|
615
|
+
pathParams: { id: fhirPatientId, med_id: medicationId }
|
|
616
616
|
});
|
|
617
617
|
}
|
|
618
|
-
updateMedicationStatus(
|
|
618
|
+
updateMedicationStatus(fhirPatientId, medicationId, request) {
|
|
619
619
|
return this.send("PUT", "/patients/{id}/medications/{med_id}", {
|
|
620
|
-
pathParams: { id:
|
|
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(
|
|
811
|
+
updatePhone(fhirPersonId, request) {
|
|
812
812
|
return this.send("POST", "/persons/{person_id}/phone", {
|
|
813
|
-
pathParams: { person_id:
|
|
813
|
+
pathParams: { person_id: fhirPersonId },
|
|
814
814
|
body: request
|
|
815
815
|
});
|
|
816
816
|
}
|
|
817
|
-
verifySms(
|
|
817
|
+
verifySms(fhirPersonId, request) {
|
|
818
818
|
return this.send("POST", "/persons/{person_id}/verify-sms", {
|
|
819
|
-
pathParams: { person_id:
|
|
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(
|
|
827
|
+
get(fhirPersonId) {
|
|
828
828
|
return this.send("GET", "/persons/{person_id}", {
|
|
829
|
-
pathParams: { person_id:
|
|
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(
|
|
836
|
+
update(fhirPersonId, request) {
|
|
837
837
|
return this.send("PATCH", "/persons/{person_id}", {
|
|
838
|
-
pathParams: { person_id:
|
|
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(
|
|
847
|
+
getPhotoUploadUrl(fhirPersonId) {
|
|
848
848
|
return this.send("GET", "/persons/{person_id}/photo/upload-url", {
|
|
849
|
-
pathParams: { person_id:
|
|
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(
|
|
856
|
+
uploadPhoto(fhirPersonId, request) {
|
|
857
857
|
return this.send("POST", "/persons/{person_id}/photo", {
|
|
858
|
-
pathParams: { person_id:
|
|
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(
|
|
866
|
+
getPhoto(fhirPersonId, query) {
|
|
867
867
|
return this.send("GET", "/persons/{person_id}/photo", {
|
|
868
|
-
pathParams: { person_id:
|
|
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(
|
|
900
|
-
return this.send("POST", "/practitioners/{practitioner_id}/phone", { pathParams: { practitioner_id:
|
|
899
|
+
updatePhone(fhirPractitionerId, request) {
|
|
900
|
+
return this.send("POST", "/practitioners/{practitioner_id}/phone", { pathParams: { practitioner_id: fhirPractitionerId }, body: request });
|
|
901
901
|
}
|
|
902
|
-
verifySms(
|
|
903
|
-
return this.send("POST", "/practitioners/{practitioner_id}/verify-sms", { pathParams: { practitioner_id:
|
|
902
|
+
verifySms(fhirPractitionerId, request) {
|
|
903
|
+
return this.send("POST", "/practitioners/{practitioner_id}/verify-sms", { pathParams: { practitioner_id: fhirPractitionerId }, body: request });
|
|
904
904
|
}
|
|
905
|
-
get(
|
|
906
|
-
return this.send("GET", "/practitioners/{practitioner_id}", { pathParams: { practitioner_id:
|
|
905
|
+
get(fhirPractitionerId) {
|
|
906
|
+
return this.send("GET", "/practitioners/{practitioner_id}", { pathParams: { practitioner_id: fhirPractitionerId } });
|
|
907
907
|
}
|
|
908
|
-
update(
|
|
909
|
-
return this.send("PATCH", "/practitioners/{practitioner_id}", { pathParams: { practitioner_id:
|
|
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(
|
|
913
|
-
return this.send("GET", "/practitioners/{practitioner_id}/photo/upload-url", { pathParams: { practitioner_id:
|
|
912
|
+
getPhotoUploadUrl(fhirPractitionerId) {
|
|
913
|
+
return this.send("GET", "/practitioners/{practitioner_id}/photo/upload-url", { pathParams: { practitioner_id: fhirPractitionerId } });
|
|
914
914
|
}
|
|
915
|
-
uploadPhoto(
|
|
916
|
-
return this.send("POST", "/practitioners/{practitioner_id}/photo", { pathParams: { practitioner_id:
|
|
915
|
+
uploadPhoto(fhirPractitionerId, request) {
|
|
916
|
+
return this.send("POST", "/practitioners/{practitioner_id}/photo", { pathParams: { practitioner_id: fhirPractitionerId }, body: request });
|
|
917
917
|
}
|
|
918
|
-
getPhoto(
|
|
919
|
-
return this.send("GET", "/practitioners/{practitioner_id}/photo", { pathParams: { practitioner_id:
|
|
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