It varies. Sometimes a medium claims to be based on a true story but takes liberties for dramatic effect. Other times, it's purely fictional with no connection to reality.
The show Medium was not based on a true story. It was created by the writers' imagination and creative concepts. The characters and events were fictional constructs to entertain the audience.