예제 #1
0
 class Meta:
     model = WorkstationConfig
     fields = [
         "pk",
         "slug",
         "title",
         "description",
         "created",
         "modified",
         "creator",
         "window_presets",
         "default_window_preset",
         "default_slab_thickness_mm",
         "default_slab_render_method",
         "default_orientation",
         "default_overlay_alpha",
         "default_overlay_lut",
         "default_overlay_interpolation",
         "overlay_segments",
         "default_zoom_scale",
         "show_image_info_plugin",
         "show_display_plugin",
         "show_invert_tool",
         "show_flip_tool",
         "show_window_level_tool",
         "show_reset_tool",
     ]
     swagger_schema_fields = swagger_schema_fields_for_charfield(
         default_orientation=model._meta.get_field("default_orientation"),
         default_slab_render_method=model._meta.get_field(
             "default_slab_render_method"),
         default_overlay_interpolation=model._meta.get_field(
             "default_overlay_interpolation"),
     )
예제 #2
0
 class Meta:
     model = ComponentInterface
     fields = [
         "title",
         "description",
         "slug",
         "kind",
         "pk",
     ]
     swagger_schema_fields = swagger_schema_fields_for_charfield(
         kind=model._meta.get_field("kind"))
예제 #3
0
 class Meta:
     model = Job
     fields = [
         "pk",
         "api_url",
         "algorithm_image",
         "inputs",
         "outputs",
         "status",
     ]
     swagger_schema_fields = swagger_schema_fields_for_charfield(
         status=model._meta.get_field("status"))
예제 #4
0
 class Meta:
     model = RawImageUploadSession
     fields = (
         "pk",
         "creator",
         "status",
         "error_message",
         "image_set",
         "api_url",
     )
     swagger_schema_fields = swagger_schema_fields_for_charfield(
         status=model._meta.get_field("status")
     )
예제 #5
0
 class Meta:
     model = RawImageUploadSession
     fields = [
         "pk",
         "creator",
         "status",
         "error_message",
         "image_set",
         "algorithm_image",
         "archive",
         "reader_study",
         "api_url",
     ]
     swagger_schema_fields = swagger_schema_fields_for_charfield(
         status=model._meta.get_field("status"))
예제 #6
0
 class Meta:
     model = Evaluation
     fields = (
         "pk",
         "method",
         "submission",
         "created",
         "published",
         "outputs",
         "rank",
         "rank_score",
         "rank_per_metric",
         "status",
     )
     swagger_schema_fields = swagger_schema_fields_for_charfield(
         status=model._meta.get_field("status"))
예제 #7
0
 class Meta:
     model = Question
     fields = (
         "answer_type",
         "api_url",
         "form_direction",
         "help_text",
         "image_port",
         "pk",
         "question_text",
         "reader_study",
         "required",
         "options",
     )
     swagger_schema_fields = swagger_schema_fields_for_charfield(
         answer_type=model._meta.get_field("answer_type"),
         form_direction=model._meta.get_field(
             "direction"),  # model.direction gets remapped
         image_port=model._meta.get_field("image_port"),
     )
예제 #8
0
 class Meta:
     model = Session
     fields = ("pk", "status")
     swagger_schema_fields = swagger_schema_fields_for_charfield(
         status=model._meta.get_field("status"))