-
Notifications
You must be signed in to change notification settings - Fork 60
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
DOB validation - Date of Birth should be <= today() #845
Comments
maxValue | Core | date, dateTime, time, decimal, integer | as per question type This extension is used for questions with simple quantitative types. It does not currently support the Quantity data type. The extension allows establishing the upper bound for an answer. For example, ensuring that birth dates are >= 1990-01-01 or an integer is greater than or equal to 0. (Note that the integer and decimal types both allow negative numbers if not constrained.) This extension can be used together with the cqf-calculatedValue extension to establish a dynamic limit. For example, ensuring that a date of birth will result in a minimum age by setting maxValue with an expression of 'today() - 18 years'.The minValue SHALL be less than or equal to the maxValue, if both are specified. |
Can we do this in the Questionniare and not in code? |
Yes. This is accurate, We should be able to update the Questionnaire with min/max values and then check if the SDC Lib can be able to translate it correctly or raise an issue if we have any bugs/enhancements for it. |
ill pick this up |
As per the SDK we can add extensions for min-max value validation in the questionnaire but as per my findings we can't make those validations dynamic i.e use current date as maxValue. CC: @f-odhiambo |
if you haven't yet can you please ask on zulip (I think there's an SDC channel), how people handle dynamic max? also is there an issue on the sdk repo for this? if not, can yea please create one, thanks! |
Yes, @pld. We had a discussion on the Android FHIR SDK Developers call today Jan 13th 2022, will create a ticket on SDK and tag here as well |
#questionnaire channel: |
As discussed there are 2 things to consider in this ticket:
|
Name of feature to enhance
A client's date of birth should be <= today()
Description of feature
Should apply to all DOB fields currently available in
The text was updated successfully, but these errors were encountered: