90 likes | 183 Views
Expanding on coded value sources in Observations. Suranga Nath Kasthurirathne Primary Mentor : Glen McCallum Backup Mentor : Burke Mamlin. Initial Discussion. Existing solution Obs currently support a finite list of data types The ( initial) Requirements
E N D
Expanding on coded value sources in Observations SurangaNathKasthurirathne Primary Mentor : Glen McCallum Backup Mentor : Burke Mamlin Suranga Nath Kasthurirathne - OpenMRS 2011
Initial Discussion • Existing solution • Obs currently support a finite list of data types • The (initial) Requirements • Expand on system to allow users to define obs using domain data objects Suranga Nath Kasthurirathne - OpenMRS 2011
Requirements (Refined) • Support creation of Obs using any user defined custom data type • Minimal changes to the existing database • Converging on custom data types Suranga Nath Kasthurirathne - OpenMRS 2011
Solution Alternatives • Expanding on the database design • Support custom data types by expanding on complex observations using handlers • Expand hierarchy to support all possible custom data types, and how this data can be displayed Suranga Nath Kasthurirathne - OpenMRS 2011
The New handler system • Automatic registration • Clear precedence system based on priority assigned for each handler • Override handlers based on user requirements • Multiple layers of handlers that can be inter changed based on priority • Addresses ‘which data type, and how it is displayed’ Suranga Nath Kasthurirathne - OpenMRS 2011
Progress to date • Completed work on Concepts • First draft of Handler class hierarchy • Supports automatic registration of handlers • Ability to prioritize handlers • UI changes allowing users to create complex data observations using new handlers • Moved existing image and Text handlers to new approach (75% done) Suranga Nath Kasthurirathne - OpenMRS 2011
Progress to date… • Users can now create, void and unvoidobscreated using custom data types • Implementation of fieldGen layer to support easy data entry • Why fieldGen? • Support for other data handler layers Suranga Nath Kasthurirathne - OpenMRS 2011
Outstanding Issues • Select refreshing of jspto interact with tags • Finalize handler Hierarchy • Iron out issues in Text and Image handlers • Handler config : Constraining possible data values • Constraining domain objects using a string value (?) • Constraints for Image and Text Handlers (?) Suranga Nath Kasthurirathne - OpenMRS 2011