Skip to content

Commit

Permalink
Merge branch 'main' into fix-payer-plan
Browse files Browse the repository at this point in the history
  • Loading branch information
Spayralbe committed Jan 14, 2025
2 parents 5f6a02a + bafeb23 commit e1f2c0c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

Bugfixes
- Incorrect references for payer_plan_period_id fields in CDM 5.4 ([#12](https://github.com/thehyve/omop-cdm/issues/12))
- The stem table field `start_datetime` is now nullable in CDM 5.3 and 5.4 ([#14](https://github.com/thehyve/omop-cdm/issues/14))

## v0.2.0
Update supported Python version to 3.9-3.13.
Expand Down
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 e1f2c0c

Please sign in to comment.