-
Notifications
You must be signed in to change notification settings - Fork 249
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
Support max length and min length #185
Comments
Can I work on the issue? |
Hi Manikant, Thanks. |
@Manikant25 We already have a PR for this, see #224 |
No, I don't know much about the project if you are doing keep doing. |
@s-ayush2903 Thanks for informing me. |
#224 is about min and max value rather than min and max length. @pankajkatoch do you have an estimated date for this one? thanks all! |
@jingtang10 i would like to work upon this issue, if its still available. |
@jingtang10 Should I take this up next? |
Note this item is about the max length of the string field - it's not about the max min value. |
@sakets3010 will you be able to work on this? @kunjan8794 might be able to help since he implemented the validator framework. |
Hi @jingtang10 , I wont be able to work on this immediately. Pleases feel free to reassign. Apologies. |
@jingtang10 In that case, should I take this up next? |
In our views for different question types, we need to validate the lengths of the answers by respecting the min and max length constraints.
The max length constraint is part of the
Questionnaire
resource in FHIR: https://www.hl7.org/fhir/questionnaire-definitions.html#Questionnaire.item.maxLengthThe min length constarint is part of the structured data capture implementation guide (SDC IG): http://hl7.org/fhir/uv/sdc/2019May/behavior.html#value-constraints Notice the difference: it's an extension, not part of the core resource.
@kunjan8794 already created a validation framework: https://github.com/google/android-fhir/tree/master/datacapture/src/main/java/com/google/android/fhir/datacapture/validation
We will need to create possibly 2 more validators, which will be triggered if the max length field is set or the min length extension exists.
The result of the validation will then be displayed in the UI in the appropriate places in different types of input.
To begin with, we can probably focus on EditText types of controls.
The text was updated successfully, but these errors were encountered: