Skip to content

Commit

Permalink
Fix models
Browse files Browse the repository at this point in the history
  • Loading branch information
seallard committed Aug 29, 2024
1 parent d1372db commit 10c7d14
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@

class BalsamicCase(Case):
samples: list[BalsamicSample]
cohorts: list[str] | None = None
synopsis: str | None = None
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
from pydantic import Field
from cg.constants.constants import GenomeVersion
from cg.models.orders.sample_base import NAME_PATTERN, ControlEnum, SexEnum, StatusEnum
from cg.services.order_validation_service.constants import TissueBlockEnum
from cg.services.order_validation_service.constants import ElutionBuffer, TissueBlockEnum
from cg.services.order_validation_service.models.sample import Sample


class BalsamicSample(Sample):
age_at_sampling: float | None = None
capture_kit: str | None = None
comment: str | None = None
concentration_ng_ul: float | None = None
control: ControlEnum | None = None
elution_buffer: str | None = None
father: str | None = Field(None, pattern=NAME_PATTERN)
elution_buffer: ElutionBuffer
formalin_fixation_time: int | None = None
mother: str | None = Field(None, pattern=NAME_PATTERN)
is_tumour: bool
phenotype_groups: list[str] | None = None
phenotype_terms: list[str] | None = None
post_formalin_fixation_time: int | None = None
sex: SexEnum | None = None
source: str | None = None
reference_genome: GenomeVersion
sex: SexEnum
source: str
status: StatusEnum | None = None
subject_id: str = Field(pattern=NAME_PATTERN, max_length=128)
tissue_block_size: TissueBlockEnum | None = None
concentration_ng_ul: float | None = None
tumour_purity: int | None = None

0 comments on commit 10c7d14

Please sign in to comment.