pophealth/popHealth — Issue #12: Provider view - # of patients: 0
Author: andrequina
Created: 2012-03-05 16:14:22+00:00
State: open

When using the provider view in Pophealth, the number of patients is always zero (and the bar charts always remain gray, even if the measure calculates to be something other than 0/0).

This is caused by the following code block in provider.rb:
```def records(effective_date=nil)
Record.by_provider(self, effective_date)
end```

There is no by_provider method defined on record, only on PatientCache.
Replacing the Record with PatientCache makes the number of patients show, but only when measures have been calculated (which isn't good either).