I’m working with an implementation that requires for a number of latest observations to be view-able for the same concept on a dashboard. This is because it is possible with this implementation to record multiple observations with a particular check list.
We’d like to extend the “Latest Obs For Concept List Dashboard Widget” to make this possible. What is currently possible is displaying the “one most recent observation” for a concept which in our case displays the very lastly checked observation on a check list for example.
I created RA-1665 that would allow for backwards compatibility of the widget and at the same time allow configuration of “n latest observations” for a concept. I would like to receive thoughts on this. Thanks.
Thanks @ssmusoke, I think this could work if we were interested in observations across encounters. What we’d like to achieve is a way of displaying multiple observations for a concept from the same encounter. And BTW, the encounters widget also displays the latest observation for a concept of an encounter. We would maybe also have to adjust the “encounters widget” to achieve similar outcomes.
For example displaying as many obs as checked below,
If one of those concept IDs happens to point to an obs group, then we need to find a way to display that obs group.
I guess we should limit ourselves to a single layer of grouping. Because of course obs groups can be indefinitely nested… A single line does not offer many display options so we should probably do something like:
If the concept ID points to an obs group then produce a display string of the first layer of nested obs.
When displaying the contents of an obs group, is all the available data shown, what happens when there are 10 items in the group, are they all shown
An obs group is considered a single concept
Not sure about the display, but I am thinking that the obsgroup concept name will be displayed, and the other concepts displayed under it but indented. If not do share a mockup (can be built in HTML - thats what I did for the other widget mockups)
What is the purpose of the nLatestObs variable - it is not clear to me in light of Item 1 above
That’s exactly the use case that we need to cover.
The obs concept name is always on the LHS anyway. It will be the same for obs groups concept names.
I don’t know, if one wants to report on a specific obs in a group, they would target it through its defining concept directly, there is no reason to access its latest data through the containing group.
@mksd Just ran into this again, can the obsGroupLabels follow the concept_name types FULLY_SPECIFIED, SHORT_NAME etc to reduce translation overhead otherwise looks good