save assign patient activity to TDB, tested