Uploaded image for project: 'HTML Form Entry Module'
  1. HTML Form Entry Module
  2. HTML-387

No support to check if a concept is complex and inconsistancy in saving of Complex Obs from htmlform

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: TBD
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: HTML Form Entry 2.0
    • Labels:
      None
    • Complexity:
      Undetermined

      Description

      1. We have introduced EncounterSaveHandler into openmrs core which saves the the complex obs before saving the encounters. Voiding the obs after saving the encounter is causing some problems with saving of complexObs.

      the saveEncounter() at line 644 in FormEntrySession triggers the EncounterSaveHandler and at that time encounter will be having both the newly created Obs and the old obs(which is pushed into Obstovoid for voiding). So the EncounterSaveHandler saves the complexData assosiated with the two obs(old and new) resullting in inconsistent data getting saved

      Quick Fix:
      Moving entire if block at line 662 to line 631 solves the problem.

      2.Add support to check if a concept is complex in HtmlFormEntryUtil.createObs()

        Attachments

          Activity

            People

            Assignee:
            pushkar Pushkar Ravipati [X] (Inactive)
            Reporter:
            pushkar Pushkar Ravipati [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: