def get_context_data(self, *args, **kwargs): context = super().get_context_data(*args, **kwargs) context.update({ "jumbotron_title": "Reader Studies", "jumbotron_description": format_html( ("A reader study can be used to collect annotations or " "score algorithm results for a set of medical images. " "Please <a href='{}'>contact us</a> if you would like " "to set up your own reader study."), random_encode("mailto:[email protected]"), ), }) return context
def get_context_data(self, *args, **kwargs): context = super().get_context_data(*args, **kwargs) context.update({ "jumbotron_title": "Archives", "jumbotron_description": format_html( ("An archive can be used to collect set of medical " "images, which can later be used in a reader study, " "challenge or algorithm. Please <a href='{}'>contact " "us</a> if you would like to set up your own archive."), random_encode("mailto:[email protected]"), ), }) return context
def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) context.update({ "jumbotron_title": "Organizations", "jumbotron_description": format_html( ("An organization is a group or institution who have " "created an archive, reader study, challenge or " "algorithm on this site. Please <a href='{}'>contact " "us</a> if you would like to add your organization."), mark_safe(random_encode("mailto:[email protected]")), ), }) return context
def get_context_data(self, *args, **kwargs): context = super().get_context_data(*args, **kwargs) context.update({ "jumbotron_title": "Algorithms", "jumbotron_description": format_html( ("We have made several machine learning algorithms " "available that you can try out by uploading your " "own anonymised medical imaging data. " "Please <a href='{}'>contact us</a> if you would like " "to make your own algorithm available here."), random_encode("mailto:[email protected]"), ), }) return context
def get_context_data(self, *, object_list=None, **kwargs): context = super().get_context_data(**kwargs) modalities = ImagingModality.objects.all() task_types = TaskType.objects.all() regions = BodyRegion.objects.all().prefetch_related( "bodystructure_set") challenge_series = ChallengeSeries.objects.all() page_obj, num_pages, num_results = self._get_page() context.update({ "modalities": modalities, "body_regions": regions, "task_types": task_types, "challenge_series": challenge_series, "page_obj": page_obj, "num_pages": num_pages, "num_results": num_results, "current_page": self._current_page, "current_search": self._current_search, "jumbotron_title": "Challenges", "jumbotron_description": format_html( ("Here is an overview of all challenges that have been " "organised within the area of medical image analysis " "that we are aware of. Please <a href='{}'>contact " "us</a> if you want to advertise your challenge or " "know of any study that would fit in this overview."), random_encode("mailto:[email protected]"), ), }) return context
def get_context_data(self, *, object_list=None, **kwargs): context = super().get_context_data(**kwargs) page_obj, num_pages, num_results, total_count = self._get_page() context.update({ "filter": self.int_filter, "filters_applied": self._filters_applied, "page_obj": page_obj, "num_pages": num_pages, "num_results": num_results, "total_count": total_count, "current_page": self._current_page, "next_page": self._current_page + 1, "previous_page": self._current_page - 1, "jumbotron_title": "Challenges", "jumbotron_description": format_html( ("Here is an overview of all challenges that have been " "organised within the area of medical image analysis " "that we are aware of. Please <a href='{}'>contact " "us</a> if you want to advertise your challenge or " "know of any study that would fit in this overview."), random_encode("mailto:[email protected]"), ), }) return context