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

Prevent obs from having both value and members

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Design
    • Priority: Non-Essential
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Complexity:
      Low

      Description

      Obs group parents should not, themselves, have a value (see this thread). Until obs groups can be separated from obs (TRUNK-1858), we should at least prevent grouping obs (parent obs with members) from having a value.

      Dev notes

      In the ObsValidator

      • Throw an APIException if an obs with members has any value filled in

      In the Obs.java class:

      • In the Obs.addMember method, check to make sure the current obs doesn't have any values. Throw an APIException if it does.

        Attachments

        1. obsGroup.patch
          3 kB
        2. ObsGroupRestrictToHaveValue.patch
          32 kB
        3. Trunk1861Latest.patch
          36 kB

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              burke Burke Mamlin
              Votes:
              2 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated: