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: Closed
    • Priority: Non-Essential
    • Resolution: Fixed
    • 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.

        Gliffy Diagrams

          Attachments

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

            Issue Links

              Activity

                People

                Assignee:
                dkayiwa Daniel Kayiwa
                Reporter:
                burke Burke Mamlin
                Votes:
                2 Vote for this issue
                Watchers:
                12 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: