Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-1858

Enhanced support for obs_group

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Design
    • Priority: Should
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Data Model
    • Labels:
      None
    • Complexity:
      High

      Description

      In TRUNK-1357, we added obs_group to the data model; however, we ended up embedding groups as pseudo-observations within the same table instead of creating a separate obs_group table. This has a couple undesirable side effects:

      1. We do not explicitly distinguish between groups and observations – e.g., we infer a group by looking for null values and/or a non-null member list. To distinguish groups from individual observations, you must check Obs.isGroup(). The effect is that the business of handling/distinguishing groups and observations is no longer encapsulated within the API and ends up getting coded (and re-coded) in many different places.
      2. We do not have a space for need to add group-specific metadata/detail.

      At a minimum, we could add an ObsGroup domain object and have this returned by the API. Eventually, we should create the obs_group table as initially planned.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Unassigned
                Reporter:
                burke Burke Mamlin
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated: