If you are doing this in code, it is straightforward and will
work in a normal way. When you set up your parameter mappings,
simply set them to:
"onOrAfter=${start_of_today-6d},onOrBefore=${end_of_today}"
However, if you are trying to do this via the UI, there is
currently a "feature" (it is by design) that only allows for
setting up expression-based parameter mappings if the enclosing
definition has parameters itself. "Luckily" there is no
validation around this when you save the definition or when you
add and remove parameters, so you can get around this a bit
clumsily when you set up your composition cohort definition by:
1. Add in some dummy date parameter (eg. use the quick link for
"date")
2. Add your Encounter Cohort search, and set up your parameter
mappings as above (don't refer to the date parameter you added
here, but use the built-in parameters)
3. Remove the dummy parameter you added in step 1.
--
OpenMRS Implementers: http://om.rs/implist
Post: implem...@openmrs.org | Unsubscribe: implementers...@openmrs.org
Manage your OpenMRS subscriptions: http://om.rs/id
Visit OpenMRS Talk at http://om.rs/talk for chat and discussions!
To unsubscribe from this group and stop receiving emails from it, send an email to implementers...@openmrs.org.