A pan used for urination and defecation while in bed, now usually for reasons of medical necessity or convenience.
A toilet: a fixture intended for urination and defecation.
A lavatory: a room for urination and defecation.