@awell-health/awell-extensions 1.0.103 → 1.0.105
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/extensions/docuSign/settings.d.ts +2 -2
- package/dist/extensions/elation/actions/createAppointment.d.ts +6 -6
- package/dist/extensions/elation/actions/createAppointment.js +12 -12
- package/dist/extensions/elation/actions/createAppointment.js.map +1 -1
- package/dist/extensions/elation/actions/createNonVisitNote.d.ts +6 -27
- package/dist/extensions/elation/actions/createNonVisitNote.js +25 -39
- package/dist/extensions/elation/actions/createNonVisitNote.js.map +1 -1
- package/dist/extensions/elation/actions/createPatient.d.ts +17 -2
- package/dist/extensions/elation/actions/createPatient.js +48 -19
- package/dist/extensions/elation/actions/createPatient.js.map +1 -1
- package/dist/extensions/elation/actions/deleteNonVisitNote.js +1 -1
- package/dist/extensions/elation/actions/deleteNonVisitNote.js.map +1 -1
- package/dist/extensions/elation/actions/findPhysician.js +0 -7
- package/dist/extensions/elation/actions/findPhysician.js.map +1 -1
- package/dist/extensions/elation/actions/getAppointment.js +1 -1
- package/dist/extensions/elation/actions/getAppointment.js.map +1 -1
- package/dist/extensions/elation/actions/getPatient.d.ts +5 -1
- package/dist/extensions/elation/actions/getPatient.js +11 -3
- package/dist/extensions/elation/actions/getPatient.js.map +1 -1
- package/dist/extensions/elation/actions/getPhysician/config/dataPoints.d.ts +30 -0
- package/dist/extensions/elation/actions/getPhysician/config/dataPoints.js +34 -0
- package/dist/extensions/elation/actions/getPhysician/config/dataPoints.js.map +1 -0
- package/dist/extensions/elation/actions/getPhysician/config/fields.d.ts +18 -0
- package/dist/extensions/elation/actions/getPhysician/config/fields.js +19 -0
- package/dist/extensions/elation/actions/getPhysician/config/fields.js.map +1 -0
- package/dist/extensions/elation/actions/getPhysician/config/index.d.ts +2 -0
- package/dist/extensions/elation/actions/getPhysician/config/index.js +9 -0
- package/dist/extensions/elation/actions/getPhysician/config/index.js.map +1 -0
- package/dist/extensions/elation/actions/getPhysician/getPhysician.d.ts +4 -0
- package/dist/extensions/elation/actions/getPhysician/getPhysician.js +86 -0
- package/dist/extensions/elation/actions/getPhysician/getPhysician.js.map +1 -0
- package/dist/extensions/elation/actions/getPhysician/getPhysician.test.d.ts +1 -0
- package/dist/extensions/elation/actions/getPhysician/getPhysician.test.js +46 -0
- package/dist/extensions/elation/actions/getPhysician/getPhysician.test.js.map +1 -0
- package/dist/extensions/elation/actions/getPhysician/index.d.ts +1 -0
- package/dist/extensions/elation/actions/getPhysician/index.js +6 -0
- package/dist/extensions/elation/actions/getPhysician/index.js.map +1 -0
- package/dist/extensions/elation/actions/index.d.ts +50 -119
- package/dist/extensions/elation/actions/index.js +4 -2
- package/dist/extensions/elation/actions/index.js.map +1 -1
- package/dist/extensions/elation/actions/updatePatient.d.ts +7 -7
- package/dist/extensions/elation/actions/updatePatient.js +37 -26
- package/dist/extensions/elation/actions/updatePatient.js.map +1 -1
- package/dist/extensions/elation/client.d.ts +5 -3
- package/dist/extensions/elation/client.js +12 -1
- package/dist/extensions/elation/client.js.map +1 -1
- package/dist/extensions/elation/types/patient.d.ts +3 -2
- package/dist/extensions/elation/utils/elationMobilePhoneToE164/elationMobilePhoneToE164.d.ts +9 -0
- package/dist/extensions/elation/utils/elationMobilePhoneToE164/elationMobilePhoneToE164.js +24 -0
- package/dist/extensions/elation/utils/elationMobilePhoneToE164/elationMobilePhoneToE164.js.map +1 -0
- package/dist/extensions/elation/utils/elationMobilePhoneToE164/elationMobilePhoneToE164.test.d.ts +1 -0
- package/dist/extensions/elation/utils/elationMobilePhoneToE164/elationMobilePhoneToE164.test.js +26 -0
- package/dist/extensions/elation/utils/elationMobilePhoneToE164/elationMobilePhoneToE164.test.js.map +1 -0
- package/dist/extensions/elation/utils/elationMobilePhoneToE164/index.d.ts +1 -0
- package/dist/extensions/elation/utils/elationMobilePhoneToE164/index.js +6 -0
- package/dist/extensions/elation/utils/elationMobilePhoneToE164/index.js.map +1 -0
- package/dist/extensions/elation/utils/getLastEmail/getLastEmail.d.ts +2 -0
- package/dist/extensions/elation/utils/getLastEmail/getLastEmail.js +21 -0
- package/dist/extensions/elation/utils/getLastEmail/getLastEmail.js.map +1 -0
- package/dist/extensions/elation/utils/getLastEmail/getLastEmail.test.d.ts +1 -0
- package/dist/extensions/elation/utils/getLastEmail/getLastEmail.test.js +29 -0
- package/dist/extensions/elation/utils/getLastEmail/getLastEmail.test.js.map +1 -0
- package/dist/extensions/elation/utils/getLastEmail/index.d.ts +1 -0
- package/dist/extensions/elation/utils/getLastEmail/index.js +6 -0
- package/dist/extensions/elation/utils/getLastEmail/index.js.map +1 -0
- package/dist/extensions/elation/validation/patient.zod.d.ts +591 -0
- package/dist/extensions/elation/validation/patient.zod.js +39 -1
- package/dist/extensions/elation/validation/patient.zod.js.map +1 -1
- package/dist/extensions/elation/webhooks/appointmentCreatedOrUpdated.d.ts +11 -0
- package/dist/extensions/elation/webhooks/appointmentCreatedOrUpdated.js +34 -0
- package/dist/extensions/elation/webhooks/appointmentCreatedOrUpdated.js.map +1 -0
- package/dist/extensions/elation/webhooks/index.d.ts +1 -2
- package/dist/extensions/elation/webhooks/index.js +2 -1
- package/dist/extensions/elation/webhooks/index.js.map +1 -1
- package/dist/extensions/elation/webhooks/patientCreatedOrUpdated.d.ts +1 -1
- package/dist/extensions/elation/webhooks/patientCreatedOrUpdated.js +1 -1
- package/dist/extensions/index.js +2 -0
- package/dist/extensions/index.js.map +1 -1
- package/dist/extensions/markdown.json +6 -2
- package/dist/extensions/zusHealth/client/client.d.ts +12 -0
- package/dist/extensions/zusHealth/client/client.js +42 -0
- package/dist/extensions/zusHealth/client/client.js.map +1 -0
- package/dist/extensions/zusHealth/client/index.d.ts +1 -0
- package/dist/extensions/zusHealth/client/index.js +6 -0
- package/dist/extensions/zusHealth/client/index.js.map +1 -0
- package/dist/extensions/zusHealth/client/type.d.ts +6 -0
- package/dist/extensions/zusHealth/client/type.js +3 -0
- package/dist/extensions/zusHealth/client/type.js.map +1 -0
- package/dist/extensions/zusHealth/index.d.ts +2 -0
- package/dist/extensions/zusHealth/index.js +20 -0
- package/dist/extensions/zusHealth/index.js.map +1 -0
- package/dist/extensions/zusHealth/settings.d.ts +37 -0
- package/dist/extensions/zusHealth/settings.js +41 -0
- package/dist/extensions/zusHealth/settings.js.map +1 -0
- package/dist/extensions/zusHealth/utils/error.d.ts +6 -0
- package/dist/extensions/zusHealth/utils/error.js +53 -0
- package/dist/extensions/zusHealth/utils/error.js.map +1 -0
- package/dist/extensions/zusHealth/utils/index.d.ts +1 -0
- package/dist/extensions/zusHealth/utils/index.js +18 -0
- package/dist/extensions/zusHealth/utils/index.js.map +1 -0
- package/dist/extensions/zusHealth/validation/encounter.zod.d.ts +2 -0
- package/dist/extensions/zusHealth/validation/encounter.zod.js +9 -0
- package/dist/extensions/zusHealth/validation/encounter.zod.js.map +1 -0
- package/dist/extensions/zusHealth/validation/index.d.ts +2 -0
- package/dist/extensions/zusHealth/validation/index.js +19 -0
- package/dist/extensions/zusHealth/validation/index.js.map +1 -0
- package/dist/extensions/zusHealth/validation/settings.zod.d.ts +20 -0
- package/dist/extensions/zusHealth/validation/settings.zod.js +22 -0
- package/dist/extensions/zusHealth/validation/settings.zod.js.map +1 -0
- package/dist/extensions/zusHealth/webhooks/index.d.ts +3 -0
- package/dist/extensions/zusHealth/webhooks/index.js +7 -0
- package/dist/extensions/zusHealth/webhooks/index.js.map +1 -0
- package/dist/extensions/zusHealth/webhooks/patientAdmitted.d.ts +43 -0
- package/dist/extensions/zusHealth/webhooks/patientAdmitted.js +93 -0
- package/dist/extensions/zusHealth/webhooks/patientAdmitted.js.map +1 -0
- package/dist/extensions/zusHealth/webhooks/patientDischarged.d.ts +47 -0
- package/dist/extensions/zusHealth/webhooks/patientDischarged.js +98 -0
- package/dist/extensions/zusHealth/webhooks/patientDischarged.js.map +1 -0
- package/dist/extensions/zusHealth/webhooks/types.d.ts +28 -0
- package/dist/extensions/zusHealth/webhooks/types.js +22 -0
- package/dist/extensions/zusHealth/webhooks/types.js.map +1 -0
- package/package.json +1 -1
@@ -736,3 +736,594 @@ export declare const patientSchema: z.ZodObject<{
|
|
736
736
|
} | null | undefined;
|
737
737
|
metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
738
738
|
}>;
|
739
|
+
export declare const updatePatientSchema: z.ZodObject<{
|
740
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
741
|
+
middle_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
742
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
743
|
+
actual_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
744
|
+
gender_identity: z.ZodOptional<z.ZodNullable<z.ZodEnum<["unknown", "man", "woman", "transgender_man", "transgender_woman", "nonbinary", "option_not_listed", "prefer_not_to_say", "two_spirit"]>>>;
|
745
|
+
legal_gender_marker: z.ZodOptional<z.ZodNullable<z.ZodEnum<["M", "F", "X", "U"]>>>;
|
746
|
+
pronouns: z.ZodOptional<z.ZodNullable<z.ZodEnum<["he_him_his", "she_her_hers", "they_them_theirs", "not_listed"]>>>;
|
747
|
+
sex: z.ZodOptional<z.ZodNullable<z.ZodEnum<["Male", "Female", "Other", "Unknown"]>>>;
|
748
|
+
sexual_orientation: z.ZodOptional<z.ZodNullable<z.ZodEnum<["unknown", "straight", "gay", "bisexual", "option_not_listed", "prefer_not_to_say", "lesbian", "queer", "asexual"]>>>;
|
749
|
+
primary_physician: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
750
|
+
caregiver_practice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
751
|
+
dob: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, string, Date>>>;
|
752
|
+
ssn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
753
|
+
race: z.ZodOptional<z.ZodNullable<z.ZodEnum<["No race specified", "American Indian or Alaska Native", "Asian", "Black or African American", "Native Hawaiian or Other Pacific Islander", "White", "Other", "Declined to specify"]>>>;
|
754
|
+
preferred_language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
755
|
+
ethnicity: z.ZodOptional<z.ZodNullable<z.ZodEnum<["No ethnicity specified", "Hispanic or Latino", "Not Hispanic or Latino", "Unknown", "Declined to specify"]>>>;
|
756
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
757
|
+
vip: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
758
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
759
|
+
address_line1: z.ZodString;
|
760
|
+
address_line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
761
|
+
city: z.ZodString;
|
762
|
+
state: z.ZodString;
|
763
|
+
zip: z.ZodString;
|
764
|
+
}, "strict", z.ZodTypeAny, {
|
765
|
+
state: string;
|
766
|
+
city: string;
|
767
|
+
zip: string;
|
768
|
+
address_line1: string;
|
769
|
+
address_line2?: string | null | undefined;
|
770
|
+
}, {
|
771
|
+
state: string;
|
772
|
+
city: string;
|
773
|
+
zip: string;
|
774
|
+
address_line1: string;
|
775
|
+
address_line2?: string | null | undefined;
|
776
|
+
}>>>;
|
777
|
+
phones: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
778
|
+
phone: z.ZodString;
|
779
|
+
phone_type: z.ZodEnum<["Home", "Mobile", "Main", "Work", "Night", "Fax", "Other"]>;
|
780
|
+
}, "strict", z.ZodTypeAny, {
|
781
|
+
phone: string;
|
782
|
+
phone_type: "Other" | "Home" | "Mobile" | "Main" | "Work" | "Night" | "Fax";
|
783
|
+
}, {
|
784
|
+
phone: string;
|
785
|
+
phone_type: "Other" | "Home" | "Mobile" | "Main" | "Work" | "Night" | "Fax";
|
786
|
+
}>, "many">>>;
|
787
|
+
emails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
788
|
+
email: z.ZodString;
|
789
|
+
}, "strict", z.ZodTypeAny, {
|
790
|
+
email: string;
|
791
|
+
}, {
|
792
|
+
email: string;
|
793
|
+
}>, "many">>>;
|
794
|
+
guarantor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
795
|
+
address: z.ZodString;
|
796
|
+
city: z.ZodString;
|
797
|
+
state: z.ZodString;
|
798
|
+
zip: z.ZodString;
|
799
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
800
|
+
relationship: z.ZodOptional<z.ZodNullable<z.ZodEnum<["Caregiver", "Child", "Friend", "Grandparent", "Guardian", "Parent", "Sibling", "Spouse", "Other"]>>>;
|
801
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
802
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
803
|
+
middle_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
804
|
+
}, "strict", z.ZodTypeAny, {
|
805
|
+
state: string;
|
806
|
+
address: string;
|
807
|
+
city: string;
|
808
|
+
zip: string;
|
809
|
+
phone?: string | null | undefined;
|
810
|
+
relationship?: "Other" | "Caregiver" | "Child" | "Friend" | "Grandparent" | "Guardian" | "Parent" | "Sibling" | "Spouse" | null | undefined;
|
811
|
+
first_name?: string | null | undefined;
|
812
|
+
last_name?: string | null | undefined;
|
813
|
+
middle_name?: string | null | undefined;
|
814
|
+
}, {
|
815
|
+
state: string;
|
816
|
+
address: string;
|
817
|
+
city: string;
|
818
|
+
zip: string;
|
819
|
+
phone?: string | null | undefined;
|
820
|
+
relationship?: "Other" | "Caregiver" | "Child" | "Friend" | "Grandparent" | "Guardian" | "Parent" | "Sibling" | "Spouse" | null | undefined;
|
821
|
+
first_name?: string | null | undefined;
|
822
|
+
last_name?: string | null | undefined;
|
823
|
+
middle_name?: string | null | undefined;
|
824
|
+
}>>>;
|
825
|
+
insurances: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
826
|
+
rank: z.ZodEnum<["primary", "secondary", "tertiary"]>;
|
827
|
+
carrier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
828
|
+
member_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
829
|
+
group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
830
|
+
plan: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
831
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
832
|
+
extension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
833
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
834
|
+
suite: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
835
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
836
|
+
state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
837
|
+
zip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
838
|
+
copay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
839
|
+
deductible: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
840
|
+
payment_program: z.ZodOptional<z.ZodNullable<z.ZodEnum<["Medicare Part B", "Medicare Advantage", "Medicaid", "Commercial - HMSA", "Commercial - SFHP", "Commercial - Other", "Worker's Compensation"]>>>;
|
841
|
+
insured_person_first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
842
|
+
insured_person_last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
843
|
+
insured_person_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
844
|
+
insured_person_city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
845
|
+
insured_person_state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
846
|
+
insured_person_zip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
847
|
+
insured_person_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
848
|
+
insured_person_dob: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, string, Date>>>;
|
849
|
+
insured_person_gender: z.ZodOptional<z.ZodNullable<z.ZodEnum<["M", "F", "X", "U"]>>>;
|
850
|
+
insured_person_ssn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
851
|
+
relationship_to_insured: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
852
|
+
}, "strict", z.ZodTypeAny, {
|
853
|
+
rank: "secondary" | "primary" | "tertiary";
|
854
|
+
carrier?: string | null | undefined;
|
855
|
+
member_id?: string | null | undefined;
|
856
|
+
group_id?: string | null | undefined;
|
857
|
+
plan?: string | null | undefined;
|
858
|
+
phone?: string | null | undefined;
|
859
|
+
extension?: string | null | undefined;
|
860
|
+
address?: string | null | undefined;
|
861
|
+
suite?: string | null | undefined;
|
862
|
+
city?: string | null | undefined;
|
863
|
+
state?: string | null | undefined;
|
864
|
+
zip?: string | null | undefined;
|
865
|
+
copay?: number | null | undefined;
|
866
|
+
deductible?: number | null | undefined;
|
867
|
+
payment_program?: "Medicare Part B" | "Medicare Advantage" | "Medicaid" | "Commercial - HMSA" | "Commercial - SFHP" | "Commercial - Other" | "Worker's Compensation" | null | undefined;
|
868
|
+
insured_person_first_name?: string | null | undefined;
|
869
|
+
insured_person_last_name?: string | null | undefined;
|
870
|
+
insured_person_address?: string | null | undefined;
|
871
|
+
insured_person_city?: string | null | undefined;
|
872
|
+
insured_person_state?: string | null | undefined;
|
873
|
+
insured_person_zip?: string | null | undefined;
|
874
|
+
insured_person_id?: string | null | undefined;
|
875
|
+
insured_person_dob?: string | null | undefined;
|
876
|
+
insured_person_gender?: "M" | "F" | "X" | "U" | null | undefined;
|
877
|
+
insured_person_ssn?: string | null | undefined;
|
878
|
+
relationship_to_insured?: string | null | undefined;
|
879
|
+
}, {
|
880
|
+
rank: "secondary" | "primary" | "tertiary";
|
881
|
+
carrier?: string | null | undefined;
|
882
|
+
member_id?: string | null | undefined;
|
883
|
+
group_id?: string | null | undefined;
|
884
|
+
plan?: string | null | undefined;
|
885
|
+
phone?: string | null | undefined;
|
886
|
+
extension?: string | null | undefined;
|
887
|
+
address?: string | null | undefined;
|
888
|
+
suite?: string | null | undefined;
|
889
|
+
city?: string | null | undefined;
|
890
|
+
state?: string | null | undefined;
|
891
|
+
zip?: string | null | undefined;
|
892
|
+
copay?: number | null | undefined;
|
893
|
+
deductible?: number | null | undefined;
|
894
|
+
payment_program?: "Medicare Part B" | "Medicare Advantage" | "Medicaid" | "Commercial - HMSA" | "Commercial - SFHP" | "Commercial - Other" | "Worker's Compensation" | null | undefined;
|
895
|
+
insured_person_first_name?: string | null | undefined;
|
896
|
+
insured_person_last_name?: string | null | undefined;
|
897
|
+
insured_person_address?: string | null | undefined;
|
898
|
+
insured_person_city?: string | null | undefined;
|
899
|
+
insured_person_state?: string | null | undefined;
|
900
|
+
insured_person_zip?: string | null | undefined;
|
901
|
+
insured_person_id?: string | null | undefined;
|
902
|
+
insured_person_dob?: Date | null | undefined;
|
903
|
+
insured_person_gender?: "M" | "F" | "X" | "U" | null | undefined;
|
904
|
+
insured_person_ssn?: string | null | undefined;
|
905
|
+
relationship_to_insured?: string | null | undefined;
|
906
|
+
}>, "many">>>;
|
907
|
+
deleted_insurances: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
908
|
+
rank: z.ZodEnum<["primary", "secondary", "tertiary"]>;
|
909
|
+
carrier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
910
|
+
member_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
911
|
+
group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
912
|
+
plan: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
913
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
914
|
+
extension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
915
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
916
|
+
suite: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
917
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
918
|
+
state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
919
|
+
zip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
920
|
+
copay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
921
|
+
deductible: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
922
|
+
payment_program: z.ZodOptional<z.ZodNullable<z.ZodEnum<["Medicare Part B", "Medicare Advantage", "Medicaid", "Commercial - HMSA", "Commercial - SFHP", "Commercial - Other", "Worker's Compensation"]>>>;
|
923
|
+
insured_person_first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
924
|
+
insured_person_last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
925
|
+
insured_person_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
926
|
+
insured_person_city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
927
|
+
insured_person_state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
928
|
+
insured_person_zip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
929
|
+
insured_person_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
930
|
+
insured_person_dob: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, string, Date>>>;
|
931
|
+
insured_person_gender: z.ZodOptional<z.ZodNullable<z.ZodEnum<["M", "F", "X", "U"]>>>;
|
932
|
+
insured_person_ssn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
933
|
+
relationship_to_insured: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
934
|
+
}, "strict", z.ZodTypeAny, {
|
935
|
+
rank: "secondary" | "primary" | "tertiary";
|
936
|
+
carrier?: string | null | undefined;
|
937
|
+
member_id?: string | null | undefined;
|
938
|
+
group_id?: string | null | undefined;
|
939
|
+
plan?: string | null | undefined;
|
940
|
+
phone?: string | null | undefined;
|
941
|
+
extension?: string | null | undefined;
|
942
|
+
address?: string | null | undefined;
|
943
|
+
suite?: string | null | undefined;
|
944
|
+
city?: string | null | undefined;
|
945
|
+
state?: string | null | undefined;
|
946
|
+
zip?: string | null | undefined;
|
947
|
+
copay?: number | null | undefined;
|
948
|
+
deductible?: number | null | undefined;
|
949
|
+
payment_program?: "Medicare Part B" | "Medicare Advantage" | "Medicaid" | "Commercial - HMSA" | "Commercial - SFHP" | "Commercial - Other" | "Worker's Compensation" | null | undefined;
|
950
|
+
insured_person_first_name?: string | null | undefined;
|
951
|
+
insured_person_last_name?: string | null | undefined;
|
952
|
+
insured_person_address?: string | null | undefined;
|
953
|
+
insured_person_city?: string | null | undefined;
|
954
|
+
insured_person_state?: string | null | undefined;
|
955
|
+
insured_person_zip?: string | null | undefined;
|
956
|
+
insured_person_id?: string | null | undefined;
|
957
|
+
insured_person_dob?: string | null | undefined;
|
958
|
+
insured_person_gender?: "M" | "F" | "X" | "U" | null | undefined;
|
959
|
+
insured_person_ssn?: string | null | undefined;
|
960
|
+
relationship_to_insured?: string | null | undefined;
|
961
|
+
}, {
|
962
|
+
rank: "secondary" | "primary" | "tertiary";
|
963
|
+
carrier?: string | null | undefined;
|
964
|
+
member_id?: string | null | undefined;
|
965
|
+
group_id?: string | null | undefined;
|
966
|
+
plan?: string | null | undefined;
|
967
|
+
phone?: string | null | undefined;
|
968
|
+
extension?: string | null | undefined;
|
969
|
+
address?: string | null | undefined;
|
970
|
+
suite?: string | null | undefined;
|
971
|
+
city?: string | null | undefined;
|
972
|
+
state?: string | null | undefined;
|
973
|
+
zip?: string | null | undefined;
|
974
|
+
copay?: number | null | undefined;
|
975
|
+
deductible?: number | null | undefined;
|
976
|
+
payment_program?: "Medicare Part B" | "Medicare Advantage" | "Medicaid" | "Commercial - HMSA" | "Commercial - SFHP" | "Commercial - Other" | "Worker's Compensation" | null | undefined;
|
977
|
+
insured_person_first_name?: string | null | undefined;
|
978
|
+
insured_person_last_name?: string | null | undefined;
|
979
|
+
insured_person_address?: string | null | undefined;
|
980
|
+
insured_person_city?: string | null | undefined;
|
981
|
+
insured_person_state?: string | null | undefined;
|
982
|
+
insured_person_zip?: string | null | undefined;
|
983
|
+
insured_person_id?: string | null | undefined;
|
984
|
+
insured_person_dob?: Date | null | undefined;
|
985
|
+
insured_person_gender?: "M" | "F" | "X" | "U" | null | undefined;
|
986
|
+
insured_person_ssn?: string | null | undefined;
|
987
|
+
relationship_to_insured?: string | null | undefined;
|
988
|
+
}>, "many">>>;
|
989
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
990
|
+
patient_status: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
991
|
+
deceased_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodDate, string, Date>>>;
|
992
|
+
inactive_reason: z.ZodOptional<z.ZodNullable<z.ZodEnum<["other", "patient left on bad terms", "patient left on good terms", "practice ended relationship", "unknown"]>>>;
|
993
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
994
|
+
status: z.ZodEnum<["active", "deceased", "inactive", "prospect"]>;
|
995
|
+
}, "strict", z.ZodTypeAny, {
|
996
|
+
status: "active" | "inactive" | "deceased" | "prospect";
|
997
|
+
deceased_date?: string | null | undefined;
|
998
|
+
inactive_reason?: "unknown" | "other" | "patient left on bad terms" | "patient left on good terms" | "practice ended relationship" | null | undefined;
|
999
|
+
notes?: string | null | undefined;
|
1000
|
+
}, {
|
1001
|
+
status: "active" | "inactive" | "deceased" | "prospect";
|
1002
|
+
deceased_date?: Date | null | undefined;
|
1003
|
+
inactive_reason?: "unknown" | "other" | "patient left on bad terms" | "patient left on good terms" | "practice ended relationship" | null | undefined;
|
1004
|
+
notes?: string | null | undefined;
|
1005
|
+
}>>>;
|
1006
|
+
preference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
1007
|
+
preferred_pharmacy_1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
1008
|
+
preferred_pharmacy_2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
1009
|
+
}, "strict", z.ZodTypeAny, {
|
1010
|
+
preferred_pharmacy_1?: string | null | undefined;
|
1011
|
+
preferred_pharmacy_2?: string | null | undefined;
|
1012
|
+
}, {
|
1013
|
+
preferred_pharmacy_1?: string | null | undefined;
|
1014
|
+
preferred_pharmacy_2?: string | null | undefined;
|
1015
|
+
}>>>;
|
1016
|
+
emergency_contact: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
1017
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
1018
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
1019
|
+
relationship: z.ZodOptional<z.ZodNullable<z.ZodEnum<["Caregiver", "Child", "Friend", "Grandparent", "Guardian", "Parent", "Sibling", "Spouse", "Other"]>>>;
|
1020
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
1021
|
+
address_line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
1022
|
+
address_line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
1023
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
1024
|
+
state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
1025
|
+
zip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
1026
|
+
}, "strict", z.ZodTypeAny, {
|
1027
|
+
first_name?: string | null | undefined;
|
1028
|
+
last_name?: string | null | undefined;
|
1029
|
+
relationship?: "Other" | "Caregiver" | "Child" | "Friend" | "Grandparent" | "Guardian" | "Parent" | "Sibling" | "Spouse" | null | undefined;
|
1030
|
+
phone?: string | null | undefined;
|
1031
|
+
address_line1?: string | null | undefined;
|
1032
|
+
address_line2?: string | null | undefined;
|
1033
|
+
city?: string | null | undefined;
|
1034
|
+
state?: string | null | undefined;
|
1035
|
+
zip?: string | null | undefined;
|
1036
|
+
}, {
|
1037
|
+
first_name?: string | null | undefined;
|
1038
|
+
last_name?: string | null | undefined;
|
1039
|
+
relationship?: "Other" | "Caregiver" | "Child" | "Friend" | "Grandparent" | "Guardian" | "Parent" | "Sibling" | "Spouse" | null | undefined;
|
1040
|
+
phone?: string | null | undefined;
|
1041
|
+
address_line1?: string | null | undefined;
|
1042
|
+
address_line2?: string | null | undefined;
|
1043
|
+
city?: string | null | undefined;
|
1044
|
+
state?: string | null | undefined;
|
1045
|
+
zip?: string | null | undefined;
|
1046
|
+
}>>>;
|
1047
|
+
primary_care_provider_npi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
1048
|
+
previous_first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
1049
|
+
previous_last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
1050
|
+
master_patient: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
1051
|
+
employer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
1052
|
+
code: z.ZodString;
|
1053
|
+
name: z.ZodString;
|
1054
|
+
description: z.ZodString;
|
1055
|
+
}, "strict", z.ZodTypeAny, {
|
1056
|
+
code: string;
|
1057
|
+
name: string;
|
1058
|
+
description: string;
|
1059
|
+
}, {
|
1060
|
+
code: string;
|
1061
|
+
name: string;
|
1062
|
+
description: string;
|
1063
|
+
}>>>;
|
1064
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
1065
|
+
}, "strict", z.ZodTypeAny, {
|
1066
|
+
first_name?: string | null | undefined;
|
1067
|
+
middle_name?: string | null | undefined;
|
1068
|
+
last_name?: string | null | undefined;
|
1069
|
+
actual_name?: string | null | undefined;
|
1070
|
+
gender_identity?: "unknown" | "man" | "woman" | "transgender_man" | "transgender_woman" | "nonbinary" | "option_not_listed" | "prefer_not_to_say" | "two_spirit" | null | undefined;
|
1071
|
+
legal_gender_marker?: "M" | "F" | "X" | "U" | null | undefined;
|
1072
|
+
pronouns?: "he_him_his" | "she_her_hers" | "they_them_theirs" | "not_listed" | null | undefined;
|
1073
|
+
sex?: "Male" | "Female" | "Other" | "Unknown" | null | undefined;
|
1074
|
+
sexual_orientation?: "unknown" | "option_not_listed" | "prefer_not_to_say" | "straight" | "gay" | "bisexual" | "lesbian" | "queer" | "asexual" | null | undefined;
|
1075
|
+
primary_physician?: number | null | undefined;
|
1076
|
+
caregiver_practice?: number | null | undefined;
|
1077
|
+
dob?: string | null | undefined;
|
1078
|
+
ssn?: string | null | undefined;
|
1079
|
+
race?: "Other" | "No race specified" | "American Indian or Alaska Native" | "Asian" | "Black or African American" | "Native Hawaiian or Other Pacific Islander" | "White" | "Declined to specify" | null | undefined;
|
1080
|
+
preferred_language?: string | null | undefined;
|
1081
|
+
ethnicity?: "Unknown" | "Declined to specify" | "No ethnicity specified" | "Hispanic or Latino" | "Not Hispanic or Latino" | null | undefined;
|
1082
|
+
notes?: string | null | undefined;
|
1083
|
+
vip?: boolean | null | undefined;
|
1084
|
+
address?: {
|
1085
|
+
state: string;
|
1086
|
+
city: string;
|
1087
|
+
zip: string;
|
1088
|
+
address_line1: string;
|
1089
|
+
address_line2?: string | null | undefined;
|
1090
|
+
} | null | undefined;
|
1091
|
+
phones?: {
|
1092
|
+
phone: string;
|
1093
|
+
phone_type: "Other" | "Home" | "Mobile" | "Main" | "Work" | "Night" | "Fax";
|
1094
|
+
}[] | null | undefined;
|
1095
|
+
emails?: {
|
1096
|
+
email: string;
|
1097
|
+
}[] | null | undefined;
|
1098
|
+
guarantor?: {
|
1099
|
+
state: string;
|
1100
|
+
address: string;
|
1101
|
+
city: string;
|
1102
|
+
zip: string;
|
1103
|
+
phone?: string | null | undefined;
|
1104
|
+
relationship?: "Other" | "Caregiver" | "Child" | "Friend" | "Grandparent" | "Guardian" | "Parent" | "Sibling" | "Spouse" | null | undefined;
|
1105
|
+
first_name?: string | null | undefined;
|
1106
|
+
last_name?: string | null | undefined;
|
1107
|
+
middle_name?: string | null | undefined;
|
1108
|
+
} | null | undefined;
|
1109
|
+
insurances?: {
|
1110
|
+
rank: "secondary" | "primary" | "tertiary";
|
1111
|
+
carrier?: string | null | undefined;
|
1112
|
+
member_id?: string | null | undefined;
|
1113
|
+
group_id?: string | null | undefined;
|
1114
|
+
plan?: string | null | undefined;
|
1115
|
+
phone?: string | null | undefined;
|
1116
|
+
extension?: string | null | undefined;
|
1117
|
+
address?: string | null | undefined;
|
1118
|
+
suite?: string | null | undefined;
|
1119
|
+
city?: string | null | undefined;
|
1120
|
+
state?: string | null | undefined;
|
1121
|
+
zip?: string | null | undefined;
|
1122
|
+
copay?: number | null | undefined;
|
1123
|
+
deductible?: number | null | undefined;
|
1124
|
+
payment_program?: "Medicare Part B" | "Medicare Advantage" | "Medicaid" | "Commercial - HMSA" | "Commercial - SFHP" | "Commercial - Other" | "Worker's Compensation" | null | undefined;
|
1125
|
+
insured_person_first_name?: string | null | undefined;
|
1126
|
+
insured_person_last_name?: string | null | undefined;
|
1127
|
+
insured_person_address?: string | null | undefined;
|
1128
|
+
insured_person_city?: string | null | undefined;
|
1129
|
+
insured_person_state?: string | null | undefined;
|
1130
|
+
insured_person_zip?: string | null | undefined;
|
1131
|
+
insured_person_id?: string | null | undefined;
|
1132
|
+
insured_person_dob?: string | null | undefined;
|
1133
|
+
insured_person_gender?: "M" | "F" | "X" | "U" | null | undefined;
|
1134
|
+
insured_person_ssn?: string | null | undefined;
|
1135
|
+
relationship_to_insured?: string | null | undefined;
|
1136
|
+
}[] | null | undefined;
|
1137
|
+
deleted_insurances?: {
|
1138
|
+
rank: "secondary" | "primary" | "tertiary";
|
1139
|
+
carrier?: string | null | undefined;
|
1140
|
+
member_id?: string | null | undefined;
|
1141
|
+
group_id?: string | null | undefined;
|
1142
|
+
plan?: string | null | undefined;
|
1143
|
+
phone?: string | null | undefined;
|
1144
|
+
extension?: string | null | undefined;
|
1145
|
+
address?: string | null | undefined;
|
1146
|
+
suite?: string | null | undefined;
|
1147
|
+
city?: string | null | undefined;
|
1148
|
+
state?: string | null | undefined;
|
1149
|
+
zip?: string | null | undefined;
|
1150
|
+
copay?: number | null | undefined;
|
1151
|
+
deductible?: number | null | undefined;
|
1152
|
+
payment_program?: "Medicare Part B" | "Medicare Advantage" | "Medicaid" | "Commercial - HMSA" | "Commercial - SFHP" | "Commercial - Other" | "Worker's Compensation" | null | undefined;
|
1153
|
+
insured_person_first_name?: string | null | undefined;
|
1154
|
+
insured_person_last_name?: string | null | undefined;
|
1155
|
+
insured_person_address?: string | null | undefined;
|
1156
|
+
insured_person_city?: string | null | undefined;
|
1157
|
+
insured_person_state?: string | null | undefined;
|
1158
|
+
insured_person_zip?: string | null | undefined;
|
1159
|
+
insured_person_id?: string | null | undefined;
|
1160
|
+
insured_person_dob?: string | null | undefined;
|
1161
|
+
insured_person_gender?: "M" | "F" | "X" | "U" | null | undefined;
|
1162
|
+
insured_person_ssn?: string | null | undefined;
|
1163
|
+
relationship_to_insured?: string | null | undefined;
|
1164
|
+
}[] | null | undefined;
|
1165
|
+
tags?: string[] | null | undefined;
|
1166
|
+
patient_status?: {
|
1167
|
+
status: "active" | "inactive" | "deceased" | "prospect";
|
1168
|
+
deceased_date?: string | null | undefined;
|
1169
|
+
inactive_reason?: "unknown" | "other" | "patient left on bad terms" | "patient left on good terms" | "practice ended relationship" | null | undefined;
|
1170
|
+
notes?: string | null | undefined;
|
1171
|
+
} | null | undefined;
|
1172
|
+
preference?: {
|
1173
|
+
preferred_pharmacy_1?: string | null | undefined;
|
1174
|
+
preferred_pharmacy_2?: string | null | undefined;
|
1175
|
+
} | null | undefined;
|
1176
|
+
emergency_contact?: {
|
1177
|
+
first_name?: string | null | undefined;
|
1178
|
+
last_name?: string | null | undefined;
|
1179
|
+
relationship?: "Other" | "Caregiver" | "Child" | "Friend" | "Grandparent" | "Guardian" | "Parent" | "Sibling" | "Spouse" | null | undefined;
|
1180
|
+
phone?: string | null | undefined;
|
1181
|
+
address_line1?: string | null | undefined;
|
1182
|
+
address_line2?: string | null | undefined;
|
1183
|
+
city?: string | null | undefined;
|
1184
|
+
state?: string | null | undefined;
|
1185
|
+
zip?: string | null | undefined;
|
1186
|
+
} | null | undefined;
|
1187
|
+
primary_care_provider_npi?: string | null | undefined;
|
1188
|
+
previous_first_name?: string | null | undefined;
|
1189
|
+
previous_last_name?: string | null | undefined;
|
1190
|
+
master_patient?: number | null | undefined;
|
1191
|
+
employer?: {
|
1192
|
+
code: string;
|
1193
|
+
name: string;
|
1194
|
+
description: string;
|
1195
|
+
} | null | undefined;
|
1196
|
+
metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
1197
|
+
}, {
|
1198
|
+
first_name?: string | null | undefined;
|
1199
|
+
middle_name?: string | null | undefined;
|
1200
|
+
last_name?: string | null | undefined;
|
1201
|
+
actual_name?: string | null | undefined;
|
1202
|
+
gender_identity?: "unknown" | "man" | "woman" | "transgender_man" | "transgender_woman" | "nonbinary" | "option_not_listed" | "prefer_not_to_say" | "two_spirit" | null | undefined;
|
1203
|
+
legal_gender_marker?: "M" | "F" | "X" | "U" | null | undefined;
|
1204
|
+
pronouns?: "he_him_his" | "she_her_hers" | "they_them_theirs" | "not_listed" | null | undefined;
|
1205
|
+
sex?: "Male" | "Female" | "Other" | "Unknown" | null | undefined;
|
1206
|
+
sexual_orientation?: "unknown" | "option_not_listed" | "prefer_not_to_say" | "straight" | "gay" | "bisexual" | "lesbian" | "queer" | "asexual" | null | undefined;
|
1207
|
+
primary_physician?: number | null | undefined;
|
1208
|
+
caregiver_practice?: number | null | undefined;
|
1209
|
+
dob?: Date | null | undefined;
|
1210
|
+
ssn?: string | null | undefined;
|
1211
|
+
race?: "Other" | "No race specified" | "American Indian or Alaska Native" | "Asian" | "Black or African American" | "Native Hawaiian or Other Pacific Islander" | "White" | "Declined to specify" | null | undefined;
|
1212
|
+
preferred_language?: string | null | undefined;
|
1213
|
+
ethnicity?: "Unknown" | "Declined to specify" | "No ethnicity specified" | "Hispanic or Latino" | "Not Hispanic or Latino" | null | undefined;
|
1214
|
+
notes?: string | null | undefined;
|
1215
|
+
vip?: boolean | null | undefined;
|
1216
|
+
address?: {
|
1217
|
+
state: string;
|
1218
|
+
city: string;
|
1219
|
+
zip: string;
|
1220
|
+
address_line1: string;
|
1221
|
+
address_line2?: string | null | undefined;
|
1222
|
+
} | null | undefined;
|
1223
|
+
phones?: {
|
1224
|
+
phone: string;
|
1225
|
+
phone_type: "Other" | "Home" | "Mobile" | "Main" | "Work" | "Night" | "Fax";
|
1226
|
+
}[] | null | undefined;
|
1227
|
+
emails?: {
|
1228
|
+
email: string;
|
1229
|
+
}[] | null | undefined;
|
1230
|
+
guarantor?: {
|
1231
|
+
state: string;
|
1232
|
+
address: string;
|
1233
|
+
city: string;
|
1234
|
+
zip: string;
|
1235
|
+
phone?: string | null | undefined;
|
1236
|
+
relationship?: "Other" | "Caregiver" | "Child" | "Friend" | "Grandparent" | "Guardian" | "Parent" | "Sibling" | "Spouse" | null | undefined;
|
1237
|
+
first_name?: string | null | undefined;
|
1238
|
+
last_name?: string | null | undefined;
|
1239
|
+
middle_name?: string | null | undefined;
|
1240
|
+
} | null | undefined;
|
1241
|
+
insurances?: {
|
1242
|
+
rank: "secondary" | "primary" | "tertiary";
|
1243
|
+
carrier?: string | null | undefined;
|
1244
|
+
member_id?: string | null | undefined;
|
1245
|
+
group_id?: string | null | undefined;
|
1246
|
+
plan?: string | null | undefined;
|
1247
|
+
phone?: string | null | undefined;
|
1248
|
+
extension?: string | null | undefined;
|
1249
|
+
address?: string | null | undefined;
|
1250
|
+
suite?: string | null | undefined;
|
1251
|
+
city?: string | null | undefined;
|
1252
|
+
state?: string | null | undefined;
|
1253
|
+
zip?: string | null | undefined;
|
1254
|
+
copay?: number | null | undefined;
|
1255
|
+
deductible?: number | null | undefined;
|
1256
|
+
payment_program?: "Medicare Part B" | "Medicare Advantage" | "Medicaid" | "Commercial - HMSA" | "Commercial - SFHP" | "Commercial - Other" | "Worker's Compensation" | null | undefined;
|
1257
|
+
insured_person_first_name?: string | null | undefined;
|
1258
|
+
insured_person_last_name?: string | null | undefined;
|
1259
|
+
insured_person_address?: string | null | undefined;
|
1260
|
+
insured_person_city?: string | null | undefined;
|
1261
|
+
insured_person_state?: string | null | undefined;
|
1262
|
+
insured_person_zip?: string | null | undefined;
|
1263
|
+
insured_person_id?: string | null | undefined;
|
1264
|
+
insured_person_dob?: Date | null | undefined;
|
1265
|
+
insured_person_gender?: "M" | "F" | "X" | "U" | null | undefined;
|
1266
|
+
insured_person_ssn?: string | null | undefined;
|
1267
|
+
relationship_to_insured?: string | null | undefined;
|
1268
|
+
}[] | null | undefined;
|
1269
|
+
deleted_insurances?: {
|
1270
|
+
rank: "secondary" | "primary" | "tertiary";
|
1271
|
+
carrier?: string | null | undefined;
|
1272
|
+
member_id?: string | null | undefined;
|
1273
|
+
group_id?: string | null | undefined;
|
1274
|
+
plan?: string | null | undefined;
|
1275
|
+
phone?: string | null | undefined;
|
1276
|
+
extension?: string | null | undefined;
|
1277
|
+
address?: string | null | undefined;
|
1278
|
+
suite?: string | null | undefined;
|
1279
|
+
city?: string | null | undefined;
|
1280
|
+
state?: string | null | undefined;
|
1281
|
+
zip?: string | null | undefined;
|
1282
|
+
copay?: number | null | undefined;
|
1283
|
+
deductible?: number | null | undefined;
|
1284
|
+
payment_program?: "Medicare Part B" | "Medicare Advantage" | "Medicaid" | "Commercial - HMSA" | "Commercial - SFHP" | "Commercial - Other" | "Worker's Compensation" | null | undefined;
|
1285
|
+
insured_person_first_name?: string | null | undefined;
|
1286
|
+
insured_person_last_name?: string | null | undefined;
|
1287
|
+
insured_person_address?: string | null | undefined;
|
1288
|
+
insured_person_city?: string | null | undefined;
|
1289
|
+
insured_person_state?: string | null | undefined;
|
1290
|
+
insured_person_zip?: string | null | undefined;
|
1291
|
+
insured_person_id?: string | null | undefined;
|
1292
|
+
insured_person_dob?: Date | null | undefined;
|
1293
|
+
insured_person_gender?: "M" | "F" | "X" | "U" | null | undefined;
|
1294
|
+
insured_person_ssn?: string | null | undefined;
|
1295
|
+
relationship_to_insured?: string | null | undefined;
|
1296
|
+
}[] | null | undefined;
|
1297
|
+
tags?: string[] | null | undefined;
|
1298
|
+
patient_status?: {
|
1299
|
+
status: "active" | "inactive" | "deceased" | "prospect";
|
1300
|
+
deceased_date?: Date | null | undefined;
|
1301
|
+
inactive_reason?: "unknown" | "other" | "patient left on bad terms" | "patient left on good terms" | "practice ended relationship" | null | undefined;
|
1302
|
+
notes?: string | null | undefined;
|
1303
|
+
} | null | undefined;
|
1304
|
+
preference?: {
|
1305
|
+
preferred_pharmacy_1?: string | null | undefined;
|
1306
|
+
preferred_pharmacy_2?: string | null | undefined;
|
1307
|
+
} | null | undefined;
|
1308
|
+
emergency_contact?: {
|
1309
|
+
first_name?: string | null | undefined;
|
1310
|
+
last_name?: string | null | undefined;
|
1311
|
+
relationship?: "Other" | "Caregiver" | "Child" | "Friend" | "Grandparent" | "Guardian" | "Parent" | "Sibling" | "Spouse" | null | undefined;
|
1312
|
+
phone?: string | null | undefined;
|
1313
|
+
address_line1?: string | null | undefined;
|
1314
|
+
address_line2?: string | null | undefined;
|
1315
|
+
city?: string | null | undefined;
|
1316
|
+
state?: string | null | undefined;
|
1317
|
+
zip?: string | null | undefined;
|
1318
|
+
} | null | undefined;
|
1319
|
+
primary_care_provider_npi?: string | null | undefined;
|
1320
|
+
previous_first_name?: string | null | undefined;
|
1321
|
+
previous_last_name?: string | null | undefined;
|
1322
|
+
master_patient?: number | null | undefined;
|
1323
|
+
employer?: {
|
1324
|
+
code: string;
|
1325
|
+
name: string;
|
1326
|
+
description: string;
|
1327
|
+
} | null | undefined;
|
1328
|
+
metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
1329
|
+
}>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.patientSchema = exports.patientStatusSchema = exports.insuranceSchema = exports.guarantorSchema = exports.emailSchema = exports.phoneSchema = void 0;
|
3
|
+
exports.updatePatientSchema = exports.patientSchema = exports.patientStatusSchema = exports.insuranceSchema = exports.guarantorSchema = exports.emailSchema = exports.phoneSchema = void 0;
|
4
4
|
const extensions_core_1 = require("@awell-health/extensions-core");
|
5
5
|
const zod_1 = require("zod");
|
6
6
|
// Enums
|
@@ -207,4 +207,42 @@ exports.patientSchema = zod_1.z
|
|
207
207
|
metadata: zod_1.z.object({}).passthrough().nullish(),
|
208
208
|
})
|
209
209
|
.strict();
|
210
|
+
exports.updatePatientSchema = zod_1.z
|
211
|
+
.object({
|
212
|
+
first_name: zod_1.z.string().max(70).nullish(),
|
213
|
+
middle_name: zod_1.z.string().max(50).nullish(),
|
214
|
+
last_name: zod_1.z.string().max(70).nullish(),
|
215
|
+
actual_name: zod_1.z.string().max(150).nullish(),
|
216
|
+
gender_identity: genderIdentityEnum.nullish(),
|
217
|
+
legal_gender_marker: legalGenderMarkerEnum.nullish(),
|
218
|
+
pronouns: pronounsEnum.nullish(),
|
219
|
+
sex: sexEnum.nullish(),
|
220
|
+
sexual_orientation: sexualOrientationEnum.nullish(),
|
221
|
+
primary_physician: extensions_core_1.NumericIdSchema.nullish(),
|
222
|
+
caregiver_practice: extensions_core_1.NumericIdSchema.nullish(),
|
223
|
+
dob: extensions_core_1.DateOnlySchema.nullish(),
|
224
|
+
ssn: zod_1.z.string().length(9).nullish(),
|
225
|
+
race: raceEnum.nullish(),
|
226
|
+
preferred_language: zod_1.z.string().nullish(),
|
227
|
+
ethnicity: ethnicityEnum.nullish(),
|
228
|
+
notes: zod_1.z.string().max(500).nullish(),
|
229
|
+
vip: zod_1.z.boolean().nullish(),
|
230
|
+
address: addressSchema.strict().nullish(),
|
231
|
+
phones: zod_1.z.array(exports.phoneSchema.strict()).max(2).nullish(),
|
232
|
+
emails: zod_1.z.array(exports.emailSchema.strict()).nullish(),
|
233
|
+
guarantor: exports.guarantorSchema.strict().nullish(),
|
234
|
+
insurances: zod_1.z.array(exports.insuranceSchema.strict()).nullish(),
|
235
|
+
deleted_insurances: zod_1.z.array(exports.insuranceSchema.strict()).nullish(),
|
236
|
+
tags: zod_1.z.array(zod_1.z.string().max(100)).max(10).nullish(),
|
237
|
+
patient_status: exports.patientStatusSchema.strict().nullish(),
|
238
|
+
preference: preferenceSchema.strict().nullish(),
|
239
|
+
emergency_contact: emergencyContactSchema.strict().nullish(),
|
240
|
+
primary_care_provider_npi: zod_1.z.string().length(10).nullish(),
|
241
|
+
previous_first_name: zod_1.z.string().max(70).nullish(),
|
242
|
+
previous_last_name: zod_1.z.string().max(70).nullish(),
|
243
|
+
master_patient: extensions_core_1.NumericIdSchema.nullish(),
|
244
|
+
employer: employerSchema.strict().nullish(),
|
245
|
+
metadata: zod_1.z.object({}).passthrough().nullish(),
|
246
|
+
})
|
247
|
+
.strict();
|
210
248
|
//# sourceMappingURL=patient.zod.js.map
|