refactored save and update of observation group members with EncounterTransaction.