Changed medication concentration curves to use AdherenceItem documents instead of MedicationAdministration documents. Fixed sorting in tree view.