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

Obs should have a pointer for the form_field it was created through

    XMLWordPrintable

    Details

    • Complexity:
      Medium
    • Sprint:
      RESTWS Sprint - Sept 2012, Burke's Test Sprint, OpenMRS Platform 1.11 Sprint 1

      Description

      It is impossible to reliably determine exactly which form field an obs was created through. (For simple forms you can guess correctly 100% of the time, but for complex forms, where more than one field has the same concept or concept_set, it's impossible to get it exactly right all the time.) This makes it impossible to reliably re-display a form "as entered". It also means that there's no way to tell from an obs exactly what text was associated with the question asked on the form.

      We should add a form_field column to the obs table.

      As a consequence, we'd need to update the formentry and xforms modules to carry this information through. (At present htmlformentry does not use the form schema tables, but once it does, it should support this too.)

      TODOs:

      Add to Obs:

      • void setFormField(String namespace, String formFieldPath);
      • String getFormFieldNamespace();
      • String getFormFieldPath();

      This should be done in a branch or create a patch so that it doesn't get into trunk until we have other obs-table-related changes.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                wyclif Wyclif Luyima
                Reporter:
                darius Darius Jazayeri
                Votes:
                14 Vote for this issue
                Watchers:
                22 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 1 week
                    1w
                    Remaining:
                    Time Spent - 4 hours Remaining Estimate - 4 days, 4 hours
                    4d 4h
                    Logged:
                    Time Spent - 4 hours Remaining Estimate - 4 days, 4 hours
                    4h