projecttacoma/bonnie — pull request #43 by jtferns (2014-01-02 23:52:22+00:00)
Title: Field Values: Filtering and sorting

**Stories**
- https://www.pivotaltracker.com/story/show/62925160
- https://www.pivotaltracker.com/story/show/63158864

Current filtering strategy involves a hash keyed off of PatientDataCriteria type, added to the EditCriteriaValueView.
For now, all PatientDataCriteria will have field value options defined in the globalInclusions attribute, and all ecounter-based PatientDataCriteria will have ecounter-specific field value options also available.

Going forward, we will determine which field values should be long in the global list, and which ones belong in the specific PatientDataCriteria type list.

Additionally, if we can introduce patient_api_function values into the PatientDataCriteria model, we can key the inclusion hash off of those instead of type.