some refactorings
patient data is now an encrypted json string
TODO search/filter patient with JS