When using Bahmni 0.85 is there a way to control whether certain sections (ie nested concept sets) of an observation template are shown as collapsed when a user adds the template in the clinical module? At the moment all sections of all obs templates are expanded by default when they are added but it would be great if we could configure some to be collapsed so that it resembles the one in the image.
I saw that there was something like this in the patient attributes configuration (https://bahmni.atlassian.net/wiki/spaces/BAH/pages/14286874/Patient+Attributes?showComments=true&showCommentArea=true) so was wondering whether there is an analogous configuration for the clinical app:
"The sections will be collapsed on the registration new patient page. If any of the sections needed to be expanded on opening the page, “expanded : true” should be specified in the section(see above config for example). "
@angshuonline thanks that looks like it would do the trick but there’s a comment at the bottom of the page you linked that suggests that the ability to show/hide using formcondition.js is available from version 0.90. Does it also work in 0.85 or 0.86 or was that feature implemented subsequently?
‘form conditions’ for conceptSetUI (or Forms 1.0) should be present in 0.86. In v0.90, we improved on it to pass the patient information to the function.
Not in Forms 1.0, but Forms 2.0 provides a form load event
No.
Sub-form can be simulated in Forms 1.0 - just including a conceptSet as member of another set.
Forms 2.0, does not have sub-form feature. (We did think of linked-forms but not implemented yet)