Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Type
Enhancement, Tests
Description
dob
field to thecreatePatient
action and updated related validation and payload structures.resend_welcome_email
option in theupdatePatient
action, allowing resending of welcome emails.updatePatient
logic to usevalidatePayloadAndCreateSdk
for improved validation and SDK initialization.updatePatient
to cover new validation logic and refactored to use the new SDK.createPatient
.Changes walkthrough 📝
fields.ts
Add optional date of birth field to patient creation
extensions/healthie/actions/createPatient/config/fields.ts
dob
field to patient creation.dob
.CreatePatientPayload
to includedob
.createPatient.ts
Include date of birth in createPatient payload
extensions/healthie/actions/createPatient/createPatient.ts
dob
to the patient creation payload.fields.ts
Add resend welcome email option to updatePatient
extensions/healthie/actions/updatePatient/config/fields.ts
resend_welcome_email
field.UpdatePatientPayload
and validation schema.index.ts
Export FieldsValidationSchema for updatePatient
extensions/healthie/actions/updatePatient/config/index.ts
FieldsValidationSchema
.updatePatient.ts
Refactor updatePatient logic and add resend email feature
extensions/healthie/actions/updatePatient/updatePatient.ts
validatePayloadAndCreateSdk
.resend_welcome_email
.createPatient.test.ts
Fix typos in test descriptions for createPatient
extensions/healthie/actions/createPatient/createPatient.test.ts
updatePatient.test.ts
Refactor and enhance tests for updatePatient
extensions/healthie/actions/updatePatient/updatePatient.test.ts