Skip to content

Date formats when providing your own dummy data #499

Answered by iaindillingham
elsie-h asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for your question, @elsie-h.

The generate_cohort sub-command expects the elig_date column in the generated dummy data to match its entry in the study definition. Notice that the elig_date column in the study definition is the result of calling the patients.categorised_as function, and that this function accepts a dictionary with string keys and string values as its first argument: the keys are categories and the values are expressions of logic. It isn't possible to tell this function that the string keys are dates that correspond to a format, such as YYYY-MM-DD. Other functions, such as patients.with_these_clinical_events, accept a date_format argument. Not so, patients.categorised_as

Replies: 2 comments 4 replies

Comment options

elsie-h
Nov 30, 2021
Collaborator Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@iaindillingham
Comment options

@iaindillingham
Comment options

@alexwalkerepi
Comment options

@iaindillingham
Comment options

Answer selected by elsie-h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants