diff --git a/cg/models/orders/constants.py b/cg/models/orders/constants.py index 42ab938df4..aacec8e9e5 100644 --- a/cg/models/orders/constants.py +++ b/cg/models/orders/constants.py @@ -26,6 +26,7 @@ class ExcelSampleAliases(StrEnum): COLLECTION_DATE = "UDF/Collection Date" COMMENT = "UDF/Comment" CONCENTRATION = "UDF/Concentration (nM)" + CONCENTRATION_NG_UL = "UDF/Concentration (ng/ul)" CONCENTRATION_SAMPLE = "UDF/Sample Conc." CONTAINER = "Container/Type" CONTAINER_NAME = "Container/Name" diff --git a/cg/models/orders/excel_sample.py b/cg/models/orders/excel_sample.py index bdc293f4e2..4c5871ed91 100644 --- a/cg/models/orders/excel_sample.py +++ b/cg/models/orders/excel_sample.py @@ -29,6 +29,7 @@ class ExcelSample(OrderSample): concentration: Annotated[str, AfterValidator(numeric_value)] = Field( None, alias=ExcelSampleAliases.CONCENTRATION ) + concentration_ng_ul: str = Field(None, alias=ExcelSampleAliases.CONCENTRATION_NG_UL) concentration_sample: Annotated[str, AfterValidator(numeric_value)] = Field( None, alias=ExcelSampleAliases.CONCENTRATION_SAMPLE ) diff --git a/cg/models/orders/json_sample.py b/cg/models/orders/json_sample.py index db775ed3f2..2d4440a38b 100644 --- a/cg/models/orders/json_sample.py +++ b/cg/models/orders/json_sample.py @@ -9,6 +9,7 @@ class JsonSample(OrderSample): cohorts: list[str] | None = None concentration: str | None = None + concentration_ng_ul: str | None = None concentration_sample: str | None = None control: str | None = None data_analysis: Pipeline = Pipeline.MIP_DNA diff --git a/cg/models/orders/sample_base.py b/cg/models/orders/sample_base.py index 54cd1c57c4..d4a964f4b2 100644 --- a/cg/models/orders/sample_base.py +++ b/cg/models/orders/sample_base.py @@ -53,6 +53,7 @@ class OrderSample(BaseModel): collection_date: str | None = None comment: constr(max_length=Sample.comment.property.columns[0].type.length) | None = None concentration: float | None = None + concentration_ng_ul: float | None = None concentration_sample: float | None = None container: ContainerEnum | None = None container_name: str | None = None