nlpmed_portal.annotations.api.serializers module¶
- class nlpmed_portal.annotations.api.serializers.LabelValueSerializer[source]¶
Bases:
ModelSerializer- class Meta[source]¶
Bases:
object- model¶
alias of
LabelValue
- fields = ['id', 'name']¶
- class nlpmed_portal.annotations.api.serializers.LabelCategorySerializer[source]¶
Bases:
WritableNestedModelSerializer- class Meta[source]¶
Bases:
object- model¶
alias of
LabelCategory
- fields = ['id', 'name', 'label_values']¶
- class nlpmed_portal.annotations.api.serializers.ProjectListSerializer[source]¶
Bases:
ModelSerializer- class Meta[source]¶
Bases:
object- fields = ['id', 'name', 'annotation_type', 'required_patient_annotations', 'required_patient_adjudications', 'label_categories']¶
- read_only_fields = ['id', 'name', 'annotation_type', 'required_patient_annotations', 'required_patient_adjudications', 'label_categories']¶
- class nlpmed_portal.annotations.api.serializers.ProjectDetailSerializer[source]¶
Bases:
WritableNestedModelSerializer
- class nlpmed_portal.annotations.api.serializers.SectionSerializer[source]¶
Bases:
WritableNestedModelSerializer
- class nlpmed_portal.annotations.api.serializers.NoteSerializer[source]¶
Bases:
WritableNestedModelSerializer
- class nlpmed_portal.annotations.api.serializers.PatientAnnotationListSerializer[source]¶
Bases:
ModelSerializer- class Meta[source]¶
Bases:
object- model¶
alias of
PatientAnnotation
- fields = ['id', 'patient', 'annotator', 'annotator_name', 'event_date', 'notes', 'comment', 'event_label_values', 'event_label_cat_values']¶
- read_only_fields = ['id', 'patient', 'annotator', 'annotator_name', 'event_date', 'notes', 'comment', 'event_label_values', 'event_label_cat_values']¶
- class nlpmed_portal.annotations.api.serializers.PatientAnnotationDetailSerializer[source]¶
Bases:
ModelSerializer
- class nlpmed_portal.annotations.api.serializers.ProjectMembershipListSerializer[source]¶
Bases:
ModelSerializer- class Meta[source]¶
Bases:
object- model¶
alias of
ProjectMembership
- fields = ['id', 'assignee', 'assignee_name', 'project', 'project_name', 'group', 'group_name', 'assigner', 'assigner_name', 'created_at']¶
- read_only_fields = ['id', 'assignee', 'assignee_name', 'project', 'project_name', 'group', 'group_name', 'assigner', 'assigner_name', 'created_at']¶
- class nlpmed_portal.annotations.api.serializers.ProjectMembershipDetailSerializer[source]¶
Bases:
ModelSerializer- class Meta[source]¶
Bases:
object- model¶
alias of
ProjectMembership
- fields = ['id', 'assignee', 'assignee_name', 'project', 'project_name', 'group', 'group_name', 'assigner', 'assigner_name', 'created_at', 'all_groups', 'all_users']¶
- read_only_fields = ['id', 'assignee_name', 'project_name', 'group_name', 'assigner_name', 'created_at']¶
- class nlpmed_portal.annotations.api.serializers.TaskListSerializer[source]¶
Bases:
ModelSerializer- class Meta[source]¶
Bases:
object- fields = ['id', 'assignee', 'assignee_name', 'patient', 'status', 'status_name', 'assigner', 'assigner_name', 'created_at', 'task_type', 'project_name']¶
- read_only_fields = ['id', 'assignee', 'assignee_name', 'patient', 'status', 'status_name', 'assigner', 'assigner_name', 'created_at', 'task_type', 'project_name']¶
- class nlpmed_portal.annotations.api.serializers.TaskDetailSerializer[source]¶
Bases:
ModelSerializer- codenames = ['add_patientannotation', 'add_nerannotation', 'add_adjudication']¶
- class nlpmed_portal.annotations.api.serializers.BulkCreateTaskSerializer[source]¶
Bases:
Serializer- codenames = ['add_patientannotation', 'add_nerannotation', 'add_adjudication']¶
- class nlpmed_portal.annotations.api.serializers.AdjudicationSerializer[source]¶
Bases:
ModelSerializer- class Meta[source]¶
Bases:
object- model¶
alias of
Adjudication
- fields = ['id', 'patient', 'event_date', 'event_label_values', 'event_label_cat_values', 'adjudicator', 'adjudicator_name', 'notes', 'source_annotations']¶
- read_only_fields = ['id', 'adjudicator_name', 'event_label_cat_values', 'notes']¶
- class nlpmed_portal.annotations.api.serializers.NERAnnotationSerializer[source]¶
Bases:
ModelSerializer
- class nlpmed_portal.annotations.api.serializers.ExportAnnotationSerializer[source]¶
Bases:
Serializer