FormStep visibilityRule from enableWhen#91
Conversation
b0566a7 to
f8d3729
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## nested-skips #91 +/- ##
================================================
- Coverage 87.84% 85.84% -2.00%
================================================
Files 28 28
Lines 485 487 +2
================================================
- Hits 426 418 -8
- Misses 59 69 +10
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
PSchmiedmayer
left a comment
There was a problem hiding this comment.
Looks good to me; would love to get an review from @vishnuravi as well 👍
|
Unfortunately, I have noticed that this implementation doesn't actually work... To really make this work, we would probably need to rewrite some parts of this library as a whole (e.g. we would need to have access to previously created steps within the task, which is not possible with the current setup). I actually planned to use enableWhen within questionnaires in ENGAGE-HF, but ultimately decided against using enableWhen for individual parts of steps and simply using it on a step-by-step level instead. This is still definitely an interesting problem to solve, but I'm not sure, if I can do the whole refactoring very soon - happy to explain the problem in more detail though, if someone is willing to take this over! |
FormStep visibilityRule from enableWhen
♻️ Current situation & Problem
Currently, a nested item's enableWhen property is simply ignored. With these changes, we introduce a translation from the enableWhen property in FHIR to the visibilityRule property of a ORKFormStep.
⚙️ Release Notes
enableWhenproperty in a FHIR questionnaire📚 Documentation
Please ensure that you properly document any additions in conformance to Spezi Documentation Guide.
You can use this section to describe your solution, but we encourage contributors to document your reasoning and changes using in-line documentation.
✅ Testing
Please ensure that the PR meets the testing requirements set by CodeCov and that new functionality is appropriately tested.
This section describes important information about the tests and why some elements might not be testable.
Code of Conduct & Contributing Guidelines
By creating and submitting this pull request, you agree to follow our Code of Conduct and Contributing Guidelines: