Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat 1147 interoception #1190

Merged
merged 16 commits into from
Jan 6, 2025
Merged

Feat 1147 interoception #1190

merged 16 commits into from
Jan 6, 2025

Conversation

saskiad
Copy link
Collaborator

@saskiad saskiad commented Dec 9, 2024

closes #1147

@saskiad saskiad requested a review from dyf December 17, 2024 23:05
@@ -415,6 +488,7 @@ class IntraperitonealInjection(Injection):
"""Description of an intraperitoneal injection procedure"""

procedure_type: Literal["Intraperitoneal injection"] = "Intraperitoneal injection"
procedure_time: Optional[AwareDatetimeWithDefault] = Field(default=None, title="Collection time")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

title is wrong

src/aind_data_schema/core/procedures.py Outdated Show resolved Hide resolved
procedure_type: Literal["Catheter implant"] = "Catheter implant"
protocol_id: Optional[str] = Field(default=None, title="Protocol ID", description="DOI for protocols.io")
iacuc_protocol: str = Field(..., title="IACUC protocol")
start_date: date = Field(..., title="Start date")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be procedure_time instead of start_date?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we only have date resolution on implants - especially when they are done offsite

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

collection_time: AwareDatetimeWithDefault = Field(..., title="Collection time")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

procedure_time?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's a sub-procedure. It could just be time if you prefer

src/aind_data_schema/core/procedures.py Outdated Show resolved Hide resolved
@saskiad saskiad requested a review from dyf January 3, 2025 22:54
src/aind_data_schema/core/procedures.py Outdated Show resolved Hide resolved
src/aind_data_schema/core/procedures.py Outdated Show resolved Hide resolved
@dyf dyf self-requested a review January 6, 2025 19:52
@saskiad saskiad added this pull request to the merge queue Jan 6, 2025
Merged via the queue into dev with commit 6b6e672 Jan 6, 2025
5 checks passed
@saskiad saskiad deleted the feat_1147_interoception branch January 6, 2025 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Interoception project procedures classes
2 participants