Closed joshunrau closed 3 weeks ago
[!CAUTION]
Review failed
The pull request is closed.
The changes made to the patient-health-questionnaire-9
module involve several key updates. The import statement now includes the omit
function from lodash-es
. A new constant, $Response
, is introduced for validating numeric responses constrained between 0 and 3. The tags
section has been updated to include 'Depression' in both English and French, and response labels have been standardized. The totalScore
calculation has been modified to exclude the impactOnFunctioning
field. The validationSchema
has been restructured to use $Response
, and a custom validation rule has been added.
File Path | Change Summary |
---|---|
packages/instrument-library/src/forms/patient-health-questionnaire-9/index.ts | - Added constant $Response for numeric response validation. - Updated totalScore to exclude impactOnFunctioning using omit . - Restructured validationSchema to utilize $Response and added custom validation with superRefine . - Modified tags to include 'Depression' in English and French. - Standardized response labels for consistency. |
In a garden of forms, we hop and play,
With numbers and tags, we brighten the day.
A schema refined, with rules that are clear,
For every response, we hold dear.
So let’s celebrate, with a joyful cheer! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Bug Fixes
impactOnFunctioning
field.These changes ensure clearer requirements and a more user-friendly experience when completing the questionnaire.