Expanding on coded value sources in Observations Suranga Nath Kasthurirathne Primary Mentor : Glen...

9
Expanding on coded value sources in Observations Suranga Nath Kasthurirathne Primary Mentor : Glen McCallum Backup Mentor : Burke Mamlin 1 Suranga Nath Kasthurirathne - OpenMRS 2011

Transcript of Expanding on coded value sources in Observations Suranga Nath Kasthurirathne Primary Mentor : Glen...

Page 1: Expanding on coded value sources in Observations Suranga Nath Kasthurirathne Primary Mentor : Glen McCallum Backup Mentor : Burke Mamlin 1Suranga Nath.

Suranga Nath Kasthurirathne - OpenMRS 2011

1

Expanding on coded value sources in Observations

Suranga Nath Kasthurirathne

Primary Mentor : Glen McCallum Backup Mentor : Burke Mamlin

Page 2: Expanding on coded value sources in Observations Suranga Nath Kasthurirathne Primary Mentor : Glen McCallum Backup Mentor : Burke Mamlin 1Suranga Nath.

Suranga Nath Kasthurirathne - OpenMRS 2011

2

Initial Discussion

Existing solutionObs currently support a finite list of data types

The (initial) Requirements Expand on system to allow users to define obs

using domain data objects

Page 3: Expanding on coded value sources in Observations Suranga Nath Kasthurirathne Primary Mentor : Glen McCallum Backup Mentor : Burke Mamlin 1Suranga Nath.

Suranga Nath Kasthurirathne - OpenMRS 2011

3

Requirements (Refined)

Support creation of Obs using any user defined custom data type

Minimal changes to the existing database

Converging on custom data types

Page 4: Expanding on coded value sources in Observations Suranga Nath Kasthurirathne Primary Mentor : Glen McCallum Backup Mentor : Burke Mamlin 1Suranga Nath.

Suranga Nath Kasthurirathne - OpenMRS 2011

4

Solution Alternatives

Expanding on the database design

Support custom data types by expanding on complex observations using handlersExpand hierarchy to support all possible

custom data types, and how this data can be displayed

Page 5: Expanding on coded value sources in Observations Suranga Nath Kasthurirathne Primary Mentor : Glen McCallum Backup Mentor : Burke Mamlin 1Suranga Nath.

Suranga Nath Kasthurirathne - OpenMRS 2011

5

The New handler system

Automatic registrationClear precedence system based on priority

assigned for each handlerOverride handlers based on user

requirementsMultiple layers of handlers that can be inter

changed based on priorityAddresses ‘which data type, and how it is

displayed’

Page 6: Expanding on coded value sources in Observations Suranga Nath Kasthurirathne Primary Mentor : Glen McCallum Backup Mentor : Burke Mamlin 1Suranga Nath.

Suranga Nath Kasthurirathne - OpenMRS 2011

6

Page 7: Expanding on coded value sources in Observations Suranga Nath Kasthurirathne Primary Mentor : Glen McCallum Backup Mentor : Burke Mamlin 1Suranga Nath.

Suranga Nath Kasthurirathne - OpenMRS 2011

7

Progress to date

Completed work on ConceptsFirst draft of Handler class hierarchySupports automatic registration of handlersAbility to prioritize handlersUI changes allowing users to create complex

data observations using new handlersMoved existing image and Text handlers to

new approach (75% done)

Page 8: Expanding on coded value sources in Observations Suranga Nath Kasthurirathne Primary Mentor : Glen McCallum Backup Mentor : Burke Mamlin 1Suranga Nath.

Suranga Nath Kasthurirathne - OpenMRS 2011

8

Progress to date…

Users can now create, void and unvoid obs created using custom data types

Implementation of fieldGen layer to support easy data entryWhy fieldGen?Support for other data handler layers

Page 9: Expanding on coded value sources in Observations Suranga Nath Kasthurirathne Primary Mentor : Glen McCallum Backup Mentor : Burke Mamlin 1Suranga Nath.

Suranga Nath Kasthurirathne - OpenMRS 2011

9

Outstanding IssuesSelect refreshing of jsp to interact with tagsFinalize handler HierarchyIron out issues in Text and Image handlers

Handler config : Constraining possible data valuesConstraining domain objects using a string

value (?)Constraints for Image and Text Handlers (?)