projecttacoma/bonnie — pull request #340 by jtferns (2014-07-15 20:00:56+00:00)
Title: Auto un/select expected values in patient builder

### Story ###
- https://www.pivotaltracker.com/story/show/73827152

### Notes ###
- included fix for CV measures having only one MSRPOPL for patient-based measure
- included update to OBSERV_UNIT toggle buttons to be better aligned with the UI
- added jasmine tests for IPP, DENOM, NUMER auto selections
- added selectPopulations method that is triggered when a population's expected value is blurred, which enforces the following rules
- if using non-episode of care and non-CV or patient-based CV measures
- select IPP -> handle STRAT if it exists (untested)
- select DENOM or MSRPOPL -> handle IPP
- select NUMER or DENEX or DENEXCEP -> handle DENOM
- unselect STRAT -> handle IPP
- unselect IPP -> handle DENOM and MSRPOPL (if CV measure)
- unselect DENOM or MSRPOPL -> handle NUMER and DENEX and DENEXCEP
- else if using Episode of care measures
- increment IPP -> handle STRAT if it exists and is lesser (untested)
- increment DENOM or MSRPOPL -> handle IPP if it is lesser
- increment NUMER or DENEX or DENEXCEP -> handle DENOM if it is lesser
- decrement STRAT -> handle IPP if it is greater
- decrement IPP -> handle DENOM and MSRPOPL (if CV measure) if they are greater
- decrement DENOM or MSRPOPL -> handle NUMER and DENEX and DENEXCEP if they are greater