-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add additions for 1.1 for tissue samples
- Loading branch information
Showing
6 changed files
with
543 additions
and
23 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
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
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from typing import Optional, Union | ||
from datetime import date, datetime | ||
from pydantic import BaseModel, Field, constr | ||
from hdr_schemata.definitions.HDRUK import CommaSeparatedValues | ||
|
||
|
||
class SampleDonor(BaseModel): | ||
id: Optional[constr(min_length=2, max_length=50)] = Field( | ||
None, title="Donor ID", description="ID of the sample donor" | ||
) | ||
|
||
sex: Optional[str] = Field( | ||
None, title="Donor Sex", description="Sex of the sample donor" | ||
) | ||
|
||
birthDate: Optional[Union[date, datetime]] = Field( | ||
None, title="Donor birth date", description="Date of birth of the sample donor" | ||
) | ||
|
||
dataCategories: Optional[CommaSeparatedValues] = Field( | ||
None, | ||
title="Donor Data Categories", | ||
description="Data categories related to the sample donor", | ||
) |
Oops, something went wrong.