Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register

Ticket #67 (new task)

Opened 3 years ago

Last modified 2 years ago

Switch all boolean concepts/observations to coded TRUE/FALSE.

Reported by: bmamlin Assigned to: bwolfe
Priority: major Milestone: OpenMRS 1.3
Component: OpenMRS Code Base Keywords:
Cc: bwolfe, djazayeri Introductory Ticket:

Description

Transition boolean data type to being modeled as a coded values instead of either boolean or numeric 0 & 1. This will allow for more graceful transition to TRUE/FALSE/UNKNOWN when concepts need to be remodeled or re-used.

  • Add convenience methods to support boolean as coded values. Concept ids for TRUE and FALSE should be drawn from global properties org.openmrs.Concept.TRUE and org.openmrs.Concept.FALSE. If not defined, we could search Concept for concepts named "TRUE" and "FALSE" as a last result, I suppose.
    • ConceptService: Concept getTrue() and Concept getFalse()
    • Concept: Boolean getValueAsBoolean()

As a first pass, I'll see if I can make the changes to org.openmrs.Concept such that it's external behavior remains unchanged (so the existing code using concepts will not need to change).

Obviously, any DAO-level code that refers to boolean observations (possibly in reporting DAO?) will need to be changed.

Change History

06/19/06 03:26:46 changed by bmamlin

  • owner changed from bmamlin to bwolfe.

07/10/06 21:42:10 changed by djazayeri

  • milestone changed from OpenMRS 1.1 to OpenMRS 1.2.