Skip to content

Commit

Permalink
Allow emails and phones to be cleared
Browse files Browse the repository at this point in the history
  • Loading branch information
gffking committed Jan 31, 2025
1 parent 477f644 commit 9b05c16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions patient.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ type PatientUpdate struct {
Address *PatientAddress `json:"address,omitempty"`
Consents []*PatientConsent `json:"consents,omitempty"`
DOB *string `json:"dob,omitempty"`
Emails []*PatientEmail `json:"emails,omitempty"`
Emails *[]*PatientEmail `json:"emails,omitempty"`
Ethnicity *string `json:"ethnicity,omitempty"`
FirstName *string `json:"first_name,omitempty"`
GenderIdentity *string `json:"gender_identity,omitempty"`
Expand All @@ -275,7 +275,7 @@ type PatientUpdate struct {
MiddleName *string `json:"middle_name,omitempty"`
Notes *string `json:"notes,omitempty"`
PatientStatus *PatientStatusUpdate `json:"patient_status,omitempty"`
Phones []*PatientPhone `json:"phones,omitempty"`
Phones *[]*PatientPhone `json:"phones,omitempty"`
PreferredLanguage *string `json:"preferred_language,omitempty"`
PrimaryCareProviderNPI *string `json:"primary_care_provider_npi,omitempty"`
PrimaryPhysician *int64 `json:"primary_physician,omitempty"`
Expand Down
8 changes: 4 additions & 4 deletions patient_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,11 @@ func TestPatientService_Update(t *testing.T) {
},
},
DOB: Ptr("dob"),
Emails: []*PatientEmail{
Emails: Ptr([]*PatientEmail{
{
Email: "email",
},
},
}),
Ethnicity: Ptr("ethnicity"),
FirstName: Ptr("first name"),
GenderIdentity: Ptr("gender identity name"),
Expand Down Expand Up @@ -305,12 +305,12 @@ func TestPatientService_Update(t *testing.T) {
InactiveReason: Ptr("other"),
Status: Ptr("inactive"),
},
Phones: []*PatientPhone{
Phones: Ptr([]*PatientPhone{
{
Phone: "phone",
PhoneType: "phone type",
},
},
}),
PreferredLanguage: Ptr("preferred language"),
PrimaryCareProviderNPI: Ptr("primary care provider NPI"),
PrimaryPhysician: Ptr[int64](1),
Expand Down

0 comments on commit 9b05c16

Please sign in to comment.