FHIR Chat · How to have an enable for date ? · questionnaire

Stream: questionnaire

Topic: How to have an enable for date ?


view this post on Zulip SAM TSAI (Nov 30 2021 at 04:26):

I want have a branch logic for a date, when the user's input date is more than 6 days ago.
In the following example, I want the Q2 only show when Q5's value is 6 day ago.
Q1. How to store the unit, like 6 days, not 6 hours, or 6 weeks?
Q2. Is "6" or "-6" to indicate I want to the current time - the value in the Q2 is great than 6?
Screen-Shot-2021-11-29-at-10.21.47-PM.png

view this post on Zulip Brian Postlethwaite (Nov 30 2021 at 09:00):

(today() - 1wk) and use the enablewhen Expression extension.

view this post on Zulip Brian Postlethwaite (Nov 30 2021 at 09:02):

The enable when core stuff expects an actual value.

view this post on Zulip Brian Postlethwaite (Nov 30 2021 at 09:02):

I believe that functionality is on both the lhmc and our Telstra Health renderers backlog.

view this post on Zulip Brian Postlethwaite (Nov 30 2021 at 09:04):

Though if you had a hidden field with initialValue expression with that value, and used that as the enablewhen value it would work (though that would then have the value in the submitted data too) but could be a workaround depending on what renderer you're using.

view this post on Zulip Paul Lynch (Nov 30 2021 at 15:07):

Brian Postlethwaite said:

I believe that functionality is on both the lhmc and our Telstra Health renderers backlog.

LHC-Forms supports enableWhenExpression via fhirpath.js

view this post on Zulip Brian Postlethwaite (Dec 01 2021 at 05:53):

Wasn't sure if you'd implemented that yet


Last updated: Apr 12 2022 at 19:14 UTC