Skip to content

Conversation

@MaryamMehd
Copy link
Collaborator

No description provided.

- Add QAnswerOptionToggleExpressions.ts with basic and multiple controls examples
- Add AnswerOptionToggleExpressions.stories.tsx with two story variants
- Update questionnaires index.ts to export new questionnaires
- Demonstrates dynamic enabling/disabling of answer options based on FHIRPath expressions
- Supports dropdown, checkbox, and radio button controls
- Addresses GitHub issue #1598 for v1.0.0-alpha.50
- Add Basic Example: age validation (>= 18)
- Add Complex Example: height, weight, BMI, blood pressure, phone validation
- Add Conditional Example: pregnancy weight and diabetes HbA1c validation
- Fix FHIRPath expressions to use correct context (%resource) and data types
- Fix validation for empty fields using .exists() check
- All examples tested and working in Storybook

Resolves #1598 for targetConstraint extension (v1.0.0-alpha.22)
- Add Answer Option Toggle Expressions stories (v1.0.0-alpha.50)
- Add Target Constraint stories with Basic, Complex, and Conditional examples (v1.0.0-alpha.22)
- Add Quantity Extensions stories for maxQuantity and minQuantity (v1.0.0-alpha.12)
- Fix Target Constraint validation logic and FHIRPath expressions
- Add comprehensive test examples with realistic healthcare data
- Clean up and fix existing story files
- Remove Parameterised ValueSets (requires external terminology servers)

Resolves #1598
@MaryamMehd MaryamMehd requested a review from fongsean October 3, 2025 01:45
MARYAMMEHDIZ and others added 4 commits October 3, 2025 11:29
- Add width extension support to StandardTextField component
- Update StringField and IntegerField to use width extensions
- Create comprehensive width extension examples and Storybook stories
- Fix width extension rendering for individual form fields
- Add Basic, Percentage, and Grid layout examples
- All width percentages now work correctly (25%, 50%, 75%, 100%, etc.)

Resolves: Width extension implementation for GitHub issue #1598
- Revert IntegerField.tsx, StringField.tsx, Textfield.styles.ts to original state
- Revert targetConstraint.ts to original state
- Keep only Storybook stories and questionnaire examples
- Core extension code should not be modified for Storybook stories
All examples now properly demonstrate width extension usage
with supported controls only (gtable and grid).
# Conflicts:
#	packages/smart-forms-renderer/src/stories/storybookWrappers/PrePopWrapperForStorybook.tsx
@fongsean
Copy link
Contributor

Closing as changes has been implemented in #1670.

Thanks @MARYAMMEHDIZ!

@fongsean fongsean closed this Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants