Open LZRS opened 2 weeks ago
We need to include contiguous set of items not with page extension into another page.
"If there are items at the same level as a 'page' group that are listed before the 'page' group, they will be treated as a separate page" Reference - https://build.fhir.org/ig/HL7/fhir-extensions//CodeSystem-questionnaire-item-control.html
So if the questionnaire looks like -
{ itemWithNoPageExtension1, itemWithPageExtension2, // have nested items itemWithPageExtension3, itemWithNoPageExtension4, itemWithNoPageExtension5, itemWithNoPageExtension6, itemWithPageExtension7, }
The pages would look like following:-
{ page1: { itemWithNoPageExtension1, }, page2: { itemWithPageExtension2 }, page3: { itemWithPageExtension3 }, page4: { itemWithNoPageExtension4, itemWithNoPageExtension5, itemWithNoPageExtension6 }, page5: { itemWithPageExtension7 } }
Ah okay, makes sense. Probably we'd then need to make changes to our questionnaires, thanks
IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).
Fixes #2568
Description Change
getQuestionnairePages
to only return questionnaire pages from QuestionnaireItems that have extensionAlternative(s) considered Have you considered any alternatives? And if so, why have you chosen the approach in this PR?
Type Bug fix
Screenshots (if applicable)
Checklist
./gradlew spotlessApply
and./gradlew spotlessCheck
to check my code follows the style guide of this project../gradlew check
and./gradlew connectedCheck
to test my changes locally.