Skip to content

Commit

Permalink
added time fields
Browse files Browse the repository at this point in the history
  • Loading branch information
saskiad committed Dec 9, 2024
1 parent d741ed2 commit 4837aec
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions src/aind_data_schema/core/procedures.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,27 +357,6 @@ class CatheterMaintenance(AindModel):
notes: Optional[str] = Field(default=None, title="Notes")


class BloodCollection(AindModel):
"""Description of a blood collection procedure"""

procedure_type: Literal["Blood collection"] = "Blood collection"
protocol_id = Optional[str] = Field(default=None, title="Protocol ID", description="DOI for protocols.io")
iacuc_protcol: str = Field(..., title="IACUC protocol")
start_date: date = Field(..., title="Start date")
experimenter_full_name: str = Field(
...,
description="First and last name of the experimenter.",
title="Experimenter full name",
)
injection: IntraperitonealInjection = Field(..., title="IP injection")
injection_time:
collection_time:
collection_volume: Decimal = Field(..., title="Collection volume")
collection_volume_unit: VolumeUnit = Field(..., title="Collection volume unit")
collection_method: Optional[str] = Field(default=None, title="Collection method for terminal collection")
notes: Optional[str] = Field(default=None, title="Notes"


class Craniotomy(AindModel):
"""Description of craniotomy procedure"""

Expand Down Expand Up @@ -581,6 +560,28 @@ class IntraCisternalMagnaInjection(BrainInjection):
injection_volume_unit: VolumeUnit = Field(VolumeUnit.NL, title="Injection volume unit")


class BloodCollection(AindModel):
"""Description of a blood collection procedure"""

procedure_type: Literal["Blood collection"] = "Blood collection"
protocol_id = Optional[str] = Field(default=None, title="Protocol ID", description="DOI for protocols.io")
iacuc_protcol: str = Field(..., title="IACUC protocol")
start_date: date = Field(..., title="Start date")
experimenter_full_name: str = Field(
...,
description="First and last name of the experimenter.",
title="Experimenter full name",
)
injection: IntraperitonealInjection = Field(..., title="IP injection")
injection_time: int = Field(..., title="Relative injection time")
collection_time: int = Field(..., title="Relative collection time")
time_unit: TimeUnit = Field(default=TimeUnit.M, title="Time unit")
collection_volume: Decimal = Field(..., title="Collection volume")
collection_volume_unit: VolumeUnit = Field(..., title="Collection volume unit")
collection_method: Optional[str] = Field(default=None, title="Collection method for terminal collection")
notes: Optional[str] = Field(default=None, title="Notes"


class TrainingProtocol(AindModel):
"""Description of an animal training protocol"""

Expand Down

0 comments on commit 4837aec

Please sign in to comment.