Skip to content

Commit

Permalink
Add description to CI module RDMS
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonysena committed Sep 11, 2024
1 parent 46f97a0 commit 984b13f
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 50 deletions.
5 changes: 3 additions & 2 deletions R/Module-CohortIncidence.R
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,9 @@ CohortIncidenceModule <- R6::R6Class(
return(data)
},
.getResultsDataModelSpecification = function() {
rdms <- CohortGenerator::readCsv(
file = private$.getResultsDataModelSpecificationFileLocation()
rdms <- readr::read_csv(
file = private$.getResultsDataModelSpecificationFileLocation(),
show_col_types = FALSE
)
rdms$tableName <-paste0(self$tablePrefix, rdms$tableName)
return(rdms)
Expand Down
96 changes: 48 additions & 48 deletions inst/csv/cohortIncidenceRdms.csv
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
table_name,column_name,data_type,is_required,primary_key
incidence_summary,ref_id ,int,no,no
incidence_summary,database_id,varchar(255),yes,no
incidence_summary,source_name,varchar(255),no,no
incidence_summary,target_cohort_definition_id,bigint,no,no
incidence_summary,tar_id,bigint,no,no
incidence_summary,subgroup_id,bigint,no,no
incidence_summary,outcome_id,bigint,no,no
incidence_summary,age_group_id,int,no,no
incidence_summary,gender_id,int,no,no
incidence_summary,gender_name,varchar(255),no,no
incidence_summary,start_year,int,no,no
incidence_summary,persons_at_risk_pe,bigint,no,no
incidence_summary,persons_at_risk,bigint,no,no
incidence_summary,person_days_pe,bigint,no,no
incidence_summary,person_days,bigint,no,no
incidence_summary,person_outcomes_pe,bigint,no,no
incidence_summary,person_outcomes,bigint,no,no
incidence_summary,outcomes_pe,bigint,no,no
incidence_summary,outcomes,bigint,no,no
incidence_summary,incidence_proportion_p100p,float,no,no
incidence_summary,incidence_rate_p100py,float,no,no
target_def,ref_id,int,yes,yes
target_def,target_cohort_definition_id,bigint,yes,yes
target_def,target_name,varchar(255),no,no
outcome_def,ref_id,int,yes,yes
outcome_def,outcome_id,bigint,yes,yes
outcome_def,outcome_cohort_definition_id,bigint,no,no
outcome_def,outcome_name,varchar(255),no,no
outcome_def,clean_window,bigint,no,no
outcome_def,excluded_cohort_definition_id,bigint,no,no
tar_def,ref_id,int,yes,yes
tar_def,tar_id,bigint,yes,yes
tar_def,tar_start_with,varchar(10),no,no
tar_def,tar_start_offset,bigint,no,no
tar_def,tar_end_with,varchar(10),no,no
tar_def,tar_end_offset,bigint,no,no
age_group_def,ref_id,int,yes,yes
age_group_def,age_group_id,int,yes,yes
age_group_def,age_group_name,varchar(255),yes,no
age_group_def,min_age,int,no,no
age_group_def,max_age,int,no,no
subgroup_def,ref_id,int,yes,yes
subgroup_def,subgroup_id,bigint,no,yes
subgroup_def,subgroup_name,varchar(255),no,no
target_outcome_ref,ref_id,int,yes,yes
target_outcome_ref,target_cohort_id,bigint,yes,yes
target_outcome_ref,outcome_cohort_id,bigint,yes,yes
table_name,column_name,data_type,is_required,primary_key,description
incidence_summary,ref_id,int,no,no,
incidence_summary,database_id,varchar(255),yes,no,
incidence_summary,source_name,varchar(255),no,no,
incidence_summary,target_cohort_definition_id,bigint,no,no,
incidence_summary,tar_id,bigint,no,no,
incidence_summary,subgroup_id,bigint,no,no,
incidence_summary,outcome_id,bigint,no,no,
incidence_summary,age_group_id,int,no,no,
incidence_summary,gender_id,int,no,no,
incidence_summary,gender_name,varchar(255),no,no,
incidence_summary,start_year,int,no,no,
incidence_summary,persons_at_risk_pe,bigint,no,no,
incidence_summary,persons_at_risk,bigint,no,no,
incidence_summary,person_days_pe,bigint,no,no,
incidence_summary,person_days,bigint,no,no,
incidence_summary,person_outcomes_pe,bigint,no,no,
incidence_summary,person_outcomes,bigint,no,no,
incidence_summary,outcomes_pe,bigint,no,no,
incidence_summary,outcomes,bigint,no,no,
incidence_summary,incidence_proportion_p100p,float,no,no,
incidence_summary,incidence_rate_p100py,float,no,no,
target_def,ref_id,int,yes,yes,
target_def,target_cohort_definition_id,bigint,yes,yes,
target_def,target_name,varchar(255),no,no,
outcome_def,ref_id,int,yes,yes,
outcome_def,outcome_id,bigint,yes,yes,
outcome_def,outcome_cohort_definition_id,bigint,no,no,
outcome_def,outcome_name,varchar(255),no,no,
outcome_def,clean_window,bigint,no,no,
outcome_def,excluded_cohort_definition_id,bigint,no,no,
tar_def,ref_id,int,yes,yes,
tar_def,tar_id,bigint,yes,yes,
tar_def,tar_start_with,varchar(10),no,no,
tar_def,tar_start_offset,bigint,no,no,
tar_def,tar_end_with,varchar(10),no,no,
tar_def,tar_end_offset,bigint,no,no,
age_group_def,ref_id,int,yes,yes,
age_group_def,age_group_id,int,yes,yes,
age_group_def,age_group_name,varchar(255),yes,no,
age_group_def,min_age,int,no,no,
age_group_def,max_age,int,no,no,
subgroup_def,ref_id,int,yes,yes,
subgroup_def,subgroup_id,bigint,no,yes,
subgroup_def,subgroup_name,varchar(255),no,no,
target_outcome_ref,ref_id,int,yes,yes,
target_outcome_ref,target_cohort_id,bigint,yes,yes,
target_outcome_ref,outcome_cohort_id,bigint,yes,yes,

0 comments on commit 984b13f

Please sign in to comment.