Skip to content

Commit

Permalink
added annotation creation process fields
Browse files Browse the repository at this point in the history
  • Loading branch information
sherwoodf committed Jun 24, 2024
1 parent f48c368 commit 89defc1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bia-shared-datamodels/src/bia_models/bia_data_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ class ImageAnnotationDataset(
image: List[UUID] = Field()
file: List[UUID] = Field()
submitted_in_study: UUID = Field()
annotation_method: UUID = Field()


class AnnotationFileReference(
Expand All @@ -95,3 +96,11 @@ class AnnotationFileReference(
represenatation: List[UUID] = Field()
source_image: UUID = Field()
submission_dataset: UUID = Field()
creation_process: UUID = Field()


class AnnotationMethod(
semantic_models.AnnotationMethod,
DocumentMixin,
):
pass
3 changes: 3 additions & 0 deletions bia-shared-datamodels/src/bia_models/semantic_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,9 @@ class AnnotationMixin(BaseModel):
spatial_information: str = Field(
description="""Spatial information for non-pixel annotations."""
)
creation_process: AnnotationMethod = Field(
description="""The process that was followed to create the annotation."""
)


class AnnotationFileReference(FileReference, AnnotationMixin):
Expand Down

0 comments on commit 89defc1

Please sign in to comment.