Creating a temporal engine for NoSQL data store for patient records