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.