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

Create a complex obs handler to store value of the "relationships" complex observation

    XMLWordPrintable

Details

    • High

    Description

      Recent updates to complex observation handlers will allow us to generate a schema, serialize the form data and consume it through the form entry interfaces of Form Entry and XForms. AMPATH needs a version of this that collects relationship data, including data about a related person and possibly observations on the relative.

      The observation should be viewable and editable through the OpenMRS UI as well as XForms. The intent is to submit this information from a mobile device or enter it through OpenMRS.

      The save method on the handler should maintain Person, Relationship and Obs objects inside OpenMRS aligned with this data, and the web handler should offer links to viewing these artifacts when viewing the complex observation. It would be wise to store the uuids of generated objects in valueComplex along with the originally entered information in order to facilitate this design.

      XML schema segment example
      <neighbor openmrs_concept="123^NEIGHBOR^99DCT" openmrs_datatype="ED" openmrs_handler="RelationshipDataHandler">
        <name><given></given><middle></middle><family></family></name>
        <nickname></nickname>
        <tribe></tribe>
        <phone></phone>
        <religion></religion>
        <address>
          <town></town>
          <plot></plot>
          <section></section>
          <shoppingCenter></shoppingCenter>
          <landmark></landmark>
          <village></village>
          <wellKnownNeighbor></wellKnownNeighbor>
          <homestead></homestead>
        </address>
      </neighbor>
      

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                bwabuti Boniface Wabuti .I.
                Votes:
                7 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: