Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow numerical input using a slider #37

Merged
merged 12 commits into from
Feb 25, 2024
Merged

Allow numerical input using a slider #37

merged 12 commits into from
Feb 25, 2024

Conversation

vishnuravi
Copy link
Member

@vishnuravi vishnuravi commented Feb 24, 2024

Allow numerical input using a slider

♻️ Current situation & Problem

Currently our JSON only supports numerical answers that are entered in a field. However, in many cases, we may want to use a slider as the control. The HL7 SDC Implementation Guide supports the use of sliders via the item-control extension. The ResearchKitOnFHIR package also implements this extension

⚙️ Release Notes

  • Adds a toggle button to allow the user to display a number question as a slider, which adds the item-control extension.
  • Adds fields for the user to define the minimum, maximum, and step values of the slider.

Code of Conduct & Contributing Guidelines

By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines:

@vishnuravi vishnuravi merged commit a5a7d65 into main Feb 25, 2024
1 check passed
@vishnuravi vishnuravi deleted the slider branch February 25, 2024 14:47
karansoin added a commit to CS342/2024-PICS that referenced this pull request Mar 1, 2024
…tructuring and rewriting questionnaires (#37)

# Questionnaire Refinement with Advanced UI and Formatting

## ♻️ Current situation & Problem
Current UI is not intuitive with imperfect formatting. Questions and
answers in the questionnaires are slightly unclear and values associated
with each answer currently are not consistent throughout each question
and questionnaire (currently sometimes 1 is the best, and sometimes 1 is
the worst)


## ⚙️ Release Notes 
- Making the UI more intuitive with modified formatting and addition of
slider in the questionnaires
- Modified questions and answers in all questionnaires are to make them
more clear and to ensure values associated with each answer currently
consistent throughout each question and questionnaire


## 📚 Documentation
*Please ensure that you properly document any additions in conformance
to [Spezi Documentation
Guide](https://github.com/StanfordSpezi/.github/blob/main/DOCUMENTATIONGUIDE.md).*
New slider features: StanfordBDHG/phoenix#37



## ✅ Testing
No additional testing, current UI and SwiftLint tests are extensive


## 📝 Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md).
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.

1 participant