Skip to content

Cross-table interval proposer and related functionality - #128

Open
tim-band wants to merge 12 commits into
mainfrom
cross-table-interval
Open

Cross-table interval proposer and related functionality#128
tim-band wants to merge 12 commits into
mainfrom
cross-table-interval

Conversation

@tim-band

@tim-band tim-band commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Cross-table intervals: getting an end time given a start time in a related table.
As with same-table intervals, the start time needs to be marked with the "start" role.

Many actual changes here:

Cross-table interval proposer (so you can have the start of an interval as person.birth_datetime and any table that has a person_id can get a date relative to that). This is surprisingly useful; the proposer keeps proposing delightful things!
New "extract" proposers that can extract Date from a DateTime in the same table (very useful for OMOP), and a Year, Month or Day from Date or DateTime (useful for OMOP's person table).
Fixed an issue Yean Hoon found with her tests failing because her SRC_SCHEMA environment variable was set and the tests were not removing it.
Adjusted the colouring; it turns out that making the prompt a different colour to the user's input confuses cmd.Cmd. If we switch to the cmd2 package we should be able to get coloured prompts back.
Select gets tab completion!
Colour theme can be set from an environment variable.
New Dockerfile that's usually faster to build.
Fixed a crash in multivariate proposers (very simple fix)
Fixed a crash with multiple concept IDs in the same partitioned generator. This was really difficult to fix!
Added MSSQL to partition generator tests and found out they don't work. Big fix.

@tim-band tim-band changed the title Initial go at cross-table interval proposer. Cross-table interval proposer and related functionality Aug 4, 2026
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.

3 participants