nlpmed_portal.annotations.views module¶
- class nlpmed_portal.annotations.views.ProjectView[source]¶
Bases:
ScopedPermissionRequiredMixin,TemplateView- permission_required = 'view_project'¶
- template_name = 'annotations/projects_list.html'¶
- COMPONENT_MODELS = [('encoding_fixer', <class 'nlpmed_portal.nlp.forms.EncodingFixerForm'>), ('pattern_replacer', <class 'nlpmed_portal.nlp.forms.PatternReplacerForm'>), ('word_masker', <class 'nlpmed_portal.nlp.forms.WordMaskerForm'>), ('note_filter', <class 'nlpmed_portal.nlp.forms.NoteFilterForm'>), ('section_splitter', <class 'nlpmed_portal.nlp.forms.SectionSplitterForm'>), ('section_filter', <class 'nlpmed_portal.nlp.forms.SectionFilterForm'>), ('sentence_segmenter', <class 'nlpmed_portal.nlp.forms.SentenceSegmenterForm'>), ('duplicate_checker', <class 'nlpmed_portal.nlp.forms.DuplicateCheckerForm'>), ('sentence_filter', <class 'nlpmed_portal.nlp.forms.SentenceFilterForm'>), ('sentence_expander', <class 'nlpmed_portal.nlp.forms.SentenceExpanderForm'>), ('joiner', <class 'nlpmed_portal.nlp.forms.JoinerForm'>), ('ml_inference', <class 'nlpmed_portal.nlp.forms.MLInferenceForm'>)]¶
- class nlpmed_portal.annotations.views.PatientView[source]¶
Bases:
ScopedPermissionRequiredMixin,TemplateView- permission_required = 'view_patient'¶
- template_name = 'annotations/patients_list.html'¶
- class nlpmed_portal.annotations.views.PatientDetailView[source]¶
Bases:
ScopedPermissionRequiredMixin,DetailView- permission_required = 'view_patient'¶
- queryset¶
- get_template_names()[source]¶
Return a list of template names to be used for the request. May not be called if render_to_response() is overridden. Return a list containing
template_name, if set on the value. Otherwise, return a list containing:the contents of the
template_name_fieldfield on the object instance that the view is operating upon (if available)<app_label>/<model_name><template_name_suffix>.html
- class nlpmed_portal.annotations.views.ProjectMembershipView[source]¶
Bases:
ScopedPermissionRequiredMixin,TemplateView- permission_required = 'view_projectmembership'¶
- template_name = 'annotations/project_memberships_list.html'¶