merge patients-samples-screens in one view function