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

Adding Period_prior_to_index function #35

Open
wants to merge 27 commits into
base: dev
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
01cc575
Intiaial dispatch for period_prior_to_index function
Jay-sanjay Jun 5, 2024
6c6780c
trying to debug
Jay-sanjay Jun 5, 2024
b239985
Added the second dispatch
Jay-sanjay Jun 7, 2024
9039db8
Tests added for the second dispatch
Jay-sanjay Jun 7, 2024
a0a64b1
debugging
Jay-sanjay Jun 8, 2024
a3e1c10
debugging
Jay-sanjay Jun 8, 2024
ec9d500
print
Jay-sanjay Jun 8, 2024
f90444d
print
Jay-sanjay Jun 8, 2024
ce88cd5
Docs Strings added
Jay-sanjay Jun 12, 2024
57a4ab1
Added to api.md
Jay-sanjay Jun 12, 2024
d989ab3
Added to api.md
Jay-sanjay Jun 12, 2024
01ac533
added to api.md
Jay-sanjay Jun 12, 2024
6ce8bd3
Update preprocessing.jl
Jay-sanjay Jun 12, 2024
96f8457
Create cohort on Eunomia for testing
TheCedarPrince Jun 14, 2024
6b1e001
Merge branch 'dev' into period_prior_to_index
TheCedarPrince Jun 14, 2024
bb3856c
Update preprocessing.jl
Jay-sanjay Jun 24, 2024
3cdc4e3
added requested changes
Jay-sanjay Jun 24, 2024
65cfe3e
added more changes
Jay-sanjay Jun 24, 2024
e23dab5
added requested changes
Jay-sanjay Jun 28, 2024
0488869
Merge branch 'dev' into period_prior_to_index
Jay-sanjay Jun 30, 2024
13b1f45
Update api.md
Jay-sanjay Jun 30, 2024
f446cbc
Update preprocessing.jl
Jay-sanjay Jul 1, 2024
6fe7490
Update preprocessing.jl
Jay-sanjay Jul 1, 2024
c929d81
bug fixed
Jay-sanjay Jul 1, 2024
ac4410a
Update preprocessing.jl
Jay-sanjay Jul 1, 2024
a5f59dd
Merge branch 'dev' into period_prior_to_index
Jay-sanjay Jul 17, 2024
1432c24
Update preprocessing.jl
Jay-sanjay Jul 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
debugging
  • Loading branch information
Jay-sanjay committed Jun 8, 2024
commit a0a64b1042c4edbd9a73d6d60ff87f9e59b5464b
34 changes: 33 additions & 1 deletion src/preprocessing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,38 @@ function Dummy(

end

function Dummy2(
cohort_ids::Vector,
conn;
tab = cohort
)

df = DBInterface.execute(conn, Dummy2(cohort_ids; tab=tab)) |> DataFrame

return df
end

function Dummy2(
cohort_ids::Vector;
tab = cohort
)

sql =
From(tab) |>
Where(Fun.in(Get.cohort_definition_id, cohort_ids...)) |>
Select(Get.cohort_definition_id, Get.subject_id) |>
q -> render(q, dialect=dialect)

return String(sql)

end








"""
TODO: Add Doc-Strings.
Expand Down Expand Up @@ -78,4 +110,4 @@ function period_prior_to_index(
end


export Dummy, period_prior_to_index
export Dummy, period_prior_to_index, Dummy2
Loading