Our team has a general idea of how results are displayed, but we could always use a better understanding of how exactly it works. More precisely, we could use help better understanding how results are stored and how they are passed to the view for display. Thanks ahead!
We want to know how the results are displayed so we can modify it, but we believe that knowing how they are stored could help us achieve this. Any information on either of these things would help immensely. Thanks again
I have learned this file contains the methods printCohort() and printCollection() which allow me to update how cohort queries and person queries are previewed respectively.
Now I am having the issue of correctly updating how they are displayed.
printCohort(StringBuilder sb, Cohort cohort) takes as parameters the string to build and the cohort which is being previewed. It appears cohort only has a valid size attribute; its id is NULL from what I have seen. Do you have any suggestions on getting the patients from the cohort object being passed in?
printCollection(StringBuilder sb, Collection<?> c) again takes as parameters the string to build and the collection to display. Updating the resulting table has proven to be more difficult than I expected since sb is simply filled with HTML to create a table. I have tried adding the definition-table class in an attempt to create a paginated table similar to the ones used when selecting a query to preview. This has not been successful. My current solution is making the table scrollable rather than pageable. If there is a better way to update these tables, please let me know.