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

Add SerializableComplexObsHandler interface for form processing methods

    XMLWordPrintable

    Details

    • Complexity:
      Medium

      Description

      In order to properly handle complex observation data through the ORUR01Handler and create forms based on relevant schema segments, we need a new handler for complex observations providing two essential methods:

      • getFormFields():List<FormField>
        • format = [XML, JSON, etc]
      • serializeFormData(String data):String
        • e.g. data = <name>John</name><relationship>Father</relationship>
        • result is in a format useful to the handler's save() method, e.g. {'name': 'John', 'relationship': 'Father'}

      Bonus Points:

      • Add a BaseSerializableComplexObsHandler that implements these methods in a very simple fashion, using properties to generate the schema, serialize it and store the data
      • Add a WebBaseSerializableComplexObsHandler that displays and allows for editing a BaseSerializableComplexObsHandler

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                wyclif Wyclif Luyima
                Reporter:
                jeremy Jeremy Keiper
                Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 1 day
                    1d
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 1 day
                    1d