As a user,
I want to view a list of all the values within a form from the obs to obs display control
So that I can get a wholistic view of all the data that is recorded
The obs to obs flowsheet exists for Forms 1, and needs to be extended to include Forms 2.0. The display control has the ability to edit and view an expanded list of all values in a particular form from the display control. For instance, it can be used to view obs data of patients across forms in Month 1, Month 2, and so on. This pivot can happen on rows or columns
Support to display obs values will be provided only such that the concept appears in all the forms
It will be designed to be extendable such that if the concept does not appear in selective forms, it will appear only for those forms where it exists
Support for expanded view is inherently present for FormBuilder
User should be able to configure concepts to be displayed as columns in the obs to obs flowsheet from Forms 2.0
Validation of concepts configured such that it is included in all forms named
Display all concepts in the expanded view of the form if the configuration of concepts is missing
User can expand the view of the display control to view all values in the display control
Display of newly edited values will be reflected in the expanded view of the display control
Expanded view of the form with all concepts
Configuration of columns for expanded view to be provided
Validation in case configuration is missing
Out of Scope*
View button of forms display control
Backward compatibility to show concepts of Forms 1.0 and Forms 2.0. In case a Forms 1.0 concept does not exist, we don’t show any value i.e. a blank value
Add a value in expanded config of obs to obs flowsheet to support multiple form names, under template name.
Create an api in ‘openmrs-module-bahmni.ie.apps’ to get concept names in a form, for a given list of forms.
Make call to the ‘obs to obs tabular api’ with the above concept names + the form names given in the expanded config of obs to obs flowsheet
The pivoted table should display in the same manner as form1.
Link to PR:
*Link to Documentation: *https://docs.google.com/document/d/1Q3NRbbajsAjmVGSuRV_r-dT9dqhvU10KCN9x0ny0wzs/edit