The ethics of data sharing

I work mostly with clinical trials that collect health data from individuals with obsessive-compulsive disorder and related disorders. What are the ethical aspects as well as arguments for and against sharing that data? The call for more open data from research studies comes in the aftermath of a replication crisis in psychological research, where findings that were previously viewed as robust fail to replicate in larger, more rigorous, trials. One reason for non-replicability could be that data was not handled properly in the original trials, e.