-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
13 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 11 additions & 7 deletions
18
cg/services/order_validation_service/workflows/balsamic/models/sample.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |