Move patient data to factory.

Breaks charts!