Skip to content

Commit

Permalink
Make stem table start_datetime nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
Spayralbe committed Jan 13, 2025
1 parent efcfdb1 commit 9ee51a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/omop_cdm/dynamic/cdm531/clinical_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ class BaseStemTableCdm531:
person_id: Mapped[int] = mapped_column(ForeignKey(FK_PERSON_ID), index=True, sort_order=300)
concept_id: Mapped[int] = mapped_column(ForeignKey(FK_CONCEPT_ID), index=True, sort_order=400)
start_date: Mapped[Optional[datetime.date]] = mapped_column(Date, sort_order=500)
start_datetime: Mapped[datetime.datetime] = mapped_column(DateTime, sort_order=600)
start_datetime: Mapped[Optional[datetime.datetime]] = mapped_column(DateTime, sort_order=600)
end_date: Mapped[Optional[datetime.date]] = mapped_column(Date, sort_order=700)
end_datetime: Mapped[Optional[datetime.datetime]] = mapped_column(DateTime, sort_order=800)
verbatim_end_date: Mapped[Optional[datetime.date]] = mapped_column(Date, sort_order=900)
Expand Down
2 changes: 1 addition & 1 deletion src/omop_cdm/dynamic/cdm54/clinical_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ class BaseStemTableCdm54:
person_id: Mapped[int] = mapped_column(ForeignKey(FK_PERSON_ID), index=True, sort_order=300)
concept_id: Mapped[int] = mapped_column(ForeignKey(FK_CONCEPT_ID), index=True, sort_order=400)
start_date: Mapped[Optional[datetime.date]] = mapped_column(Date, sort_order=500)
start_datetime: Mapped[datetime.datetime] = mapped_column(DateTime, sort_order=600)
start_datetime: Mapped[Optional[datetime.datetime]] = mapped_column(DateTime, sort_order=600)
end_date: Mapped[Optional[datetime.date]] = mapped_column(Date, sort_order=700)
end_datetime: Mapped[Optional[datetime.datetime]] = mapped_column(DateTime, sort_order=800)
verbatim_end_date: Mapped[Optional[datetime.date]] = mapped_column(Date, sort_order=900)
Expand Down

0 comments on commit 9ee51a2

Please sign in to comment.