Now adding patientId and patientRecordId in storeFromViewsToLocal (if given)