Skip to content

Commit

Permalink
Removed underscores in values. Expected values in _from and _to varia…
Browse files Browse the repository at this point in the history
…bles.
  • Loading branch information
Anders Aasted Isaksen authored and Anders Aasted Isaksen committed Mar 15, 2024
1 parent d75ec5f commit 022b5aa
Showing 1 changed file with 40 additions and 40 deletions.
80 changes: 40 additions & 40 deletions data-raw/variable_description.csv
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
"","register_name","raw_register_filename","years_covered","variable_name","danish_description","english_description","data_type","format","expected_values","explanation_of_values","notes_for_devs"
"1","cpr_registerets_befolkningstabel","bef","1968_onward","pnr","pseudonymiseret_cpr_nummer","pseudonymised_social_security_number","string","12_digits_zero_padded","""0000000001""_to_""9999999999""",NA,NA
"2","cpr_registerets_befolkningstabel","bef","1968_onward","koen","koen","sex","integer","1_digit","c(0,1)","0_is_woman",NA
"3","cpr_registerets_befolkningstabel","bef","1968_onward","foed_dato","foedselsdato","date_of_birth","date_year","YYYYMMDD","as.Date(""1900-01-01""):as.Date(""2020-01-01"")",NA,NA
"4","laegemiddelstatistikregisteret","lmdb","1995_onward","pnr","pseudonymiseret_cpr_nummer","pseudonymised_social_security_number","string","12_digits_zero_padded","""00000000001_to_""9999999999""",NA,NA
"5","laegemiddelstatistikregisteret","lmdb","1995_onward","eksd","ekspeditionsdato","date_of_purchase","date_year","YYYYMMDD","as.Date(""1995-01-01""):as.Date(""2020-01-01"")",NA,NA
"6","laegemiddelstatistikregisteret","lmdb","1995_onward","atc","atc_kode_fuld","atc_code","string","7_digits","[:alpha:][:digit:][:digit:][:alpha:][:alpha:]..","""^A10""_is_glucose_lowering_medication",NA
"7","laegemiddelstatistikregisteret","lmdb","1995_onward","volume","antal_standarddoser_i_pakken","number_of_daily_doses_in_package","double","standard","c(1:10)",NA,NA
"8","laegemiddelstatistikregisteret","lmdb","1995_onward","apk","antal_pakker_koebt","number_of_packages_purchased","integer","standard","c(1:10)",NA,NA
"9","laegemiddelstatistikregisteret","lmdb","1995_onward","indo","indikationskode_for_recept","indication_code","string","blank_or_7_digits_zero_padded","""""_""0000001""_to_""9999999""","refer_to_kat_classification","the_only_used_values_are_""0000092""_""0000276""_""0000781"""
"10","laegemiddelstatistikregisteret","lmdb","1995_onward","name","praeparatnavn","drug_retail_name","string","natural_language","eg_""Metformin Actavis""",NA,NA
"11","laegemiddelstatistikregisteret","lmdb","1995_onward","vnr","varenummer","item_code","string","6_digits_zero_padded","""000001""_to_""999999""",NA,NA
"12","landspatientregisteret_lpr2_administration","lpr_adm","1977_to_2018","pnr","pseudonymiseret_cpr_nummer","pseudonymised_social_security_number","string","12_digits_zero_padded","""00000000001_to_""9999999999""",NA,NA
"13","landspatientregisteret_lpr2_administration","lpr_adm","1977_to_2018","recnum","kontakt_id_nummer","record_id_number","string","18_digits_zero_padded","""00000000000000001_to_""9999999999999999""",NA,NA
"14","landspatientregisteret_lpr2_administration","lpr_adm","1977_to_2018","d_inddto","indlaeggelsesdato_(start_paa_kontakt)","date_of_admission_or_initial_contact","date_year","YYYYMMDD","as.Date(""1977-01-01""):as.Date(""2019-01-01"")",NA,NA
"15","landspatientregisteret_lpr2_administration","lpr_adm","1977_to_2018","c_spec","afdelings_specialekode","specialty_code_of_department","string","2_digits_zero_padded","""00""_to_""99""",NA,"c_blok_is_derived_from_c_spec"
"16","landspatientregisteret_lpr2_administration","lpr_adm","1977_to_2018","c_pattype","patient_contact_type","patient_contact_type","integer","standard","c(0,1,2,3)",NA,"no_lpr3_equivalent"
"17","landspatientregisteret_lpr2_diagnoser","lpr_diag","1977_to_2018","recnum","kontakt_id_nummer","record_id_number","string","18_digits_zero_padded","""00000000000000001_to_""9999999999999999""",NA,NA
"18","landspatientregisteret_lpr2_diagnoser","lpr_diag","1977_to_2018","c_diag","diagnosekode","diagnosis_code","string","icd8_or_icd10","""00009""_to_""99999""_or_""^[:alpha:][:alpha:][:digit:][:digit:]""","""^249|^250|^DE1[0-4]""_is_diabetes",NA
"19","landspatientregisteret_lpr2_diagnoser","lpr_diag","1977_to_2018","c_diagtype","diagnosetype","diagnosis_type","string","1_digit","c('A','B','H','+')","A_is_primary_diagnosis_B_is_secondary_diagnosis",NA
"20","landspatientregisteret_lpr3_kontakter","kontakter","2019_onward","cpr","pseudonymiseret_cpr_nummer","pseudonymised_social_security_number","string","12_digits_zero_padded","""00000000001_to_""9999999999""",NA,"lpr3_equivalent_to_pnr"
"21","landspatientregisteret_lpr3_kontakter","kontakter","2019_onward","dw_ek_kontakt","kontakt_id_nummer","record_id_number","string","18_digits_zero_padded","""00000000000000001_to_""9999999999999999""",NA,"lpr3_equivalent_to_recnum"
"22","landspatientregisteret_lpr3_kontakter","kontakter","2019_onward","dato_start","indlaeggelsesdato_(start_paa_kontakt)","date_of_admission_or_initial_contact","date_year","YYYYMMDD","as.Date(""1977-01-01""):as.Date(""2019-01-01"")",NA,"lpr3_equivalent_to_inddto"
"23","landspatientregisteret_lpr3_kontakter","kontakter","2019_onward","hovedspeciale_ans","afdelings_speciale","specialty_of_department","string","natural_language","eg_""endokrinologi""","need_to_copy_lpr2_lpr3_conversion_table_from_dst","lpr3_equivalent_to_c_spec_but_different_format"
"24","landspatientregisteret_lpr3_diagnoser","diagnoser","2019_onward","dw_ek_kontakt","kontakt_id_nummer","record_id_number","string","18_digits_zero_padded","""00000000000000001_to_""9999999999999999""",NA,NA
"25","landspatientregisteret_lpr3_diagnoser","diagnoser","2019_onward","diagnosekode","diagnosekode","diagnosis_code","string","icd10","""^[:alpha:][:alpha:][:digit:][:digit:]""","^DE1[0-4]_is_diabetes",NA
"26","landspatientregisteret_lpr3_diagnoser","diagnoser","2019_onward","diagnosetype","diagnosetype","diagnosis_type","string","1_digit","c('A','B','H','+')",NA,NA
"27","landspatientregisteret_lpr3_diagnoser","diagnoser","2019_onward","senere_afkraeftet","blev_diagnosen_senere_afkraeftet?","was_the_diagnosis_refuted_later?",NA,NA,NA,NA,NA
"28","sygesikringsregisteret","sysi","1990_to_2005","pnr","pseudonymiseret_cpr_nummer","pseudonymised_social_security_number","string","12_digits_zero_padded","""00000000001_to_""9999999999""",NA,NA
"29","sygesikringsregisteret","sysi","1990_to_2005","barnmak","blev_ydelse_ydet_til_patientens_barn?","was_the_service_provided_to_the_patients_child?","integer","1_digit","c(0,1)","0_is_no",NA
"30","sygesikringsregisteret","sysi","1990_to_2005","speciale","ydelsens_honoreringskode","billing_code_of_the_service","string","5_digits","""00000""_to_""99999""","^54_is_diabetes",NA
"31","sygesikringsregisteret","sysi","1990_to_2005","honuge","uge_og_aar_for_ydelse","week_and_year_of_service","string","4_digits_2d_week_2d_year","paste0(01:52,90:99/00:05)","see_Signes_code_for_date_formatting",NA
"32","sygesikringsregisteret","sssy","2005_onward","pnr","pseudonymiseret_cpr_nummer","pseudonymised_social_security_number","string","12_digits_zero_padded","""00000000001_to_""9999999999""",NA,NA
"33","sygesikringsregisteret","sssy","2005_onward","barnmak","blev_ydelse_ydet_til_patientens_barn?","was_the_service_provided_to_the_patients_child?","integer","1_digit","c(0,1)","0_is_no",NA
"34","sygesikringsregisteret","sssy","2005_onward","speciale","ydelsens_honoreringskode","billing_code_of_the_service","string","5_digits","""00000""_to_""99999""","^54_is_diabetes",NA
"35","sygesikringsregisteret","sssy","2005_onward","honuge","uge_og_aar_for_ydelse","week_and_year_of_service","string","4_digits_2d_week_2d_year","paste0(01:52,05:22)","see_Signes_code_for_proper_date_formatting",NA
"36","laboratoriedatabasens_forskertabel","lab_forsker","2011_onward","patient_cpr","pseudonymiseret_cpr_nummer","pseudonymised_social_security_number","string","12_digits_zero_padded","""00000000001_to_""9999999999""",NA,NA
"37","laboratoriedatabasens_forskertabel","lab_forsker","2011_onward","samplingdate","dato_for_proevetagning","date_of_sampling","date_year","YYYYMMDD","as.Date(""2011-01-01""):as.Date(""2022-01-01"")",NA,NA
"38","laboratoriedatabasens_forskertabel","lab_forsker","2011_onward","analysiscode","analysens_npu_kode","analysis_npu_code","string","8_digit_NPU_code","paste0(""NPU"", 00001:99999)","NPU27300_is_hba1c_in_modern_units","NPU03835_is_hba1c_in_old_units"
"39","laboratoriedatabasens_forskertabel","lab_forsker","2011_onward","value","numerisk_resultat_af_analyse","numerical_result_of_analysis","double","standard","runif(min = 0, max = 150)",NA,NA
"","register_name","register_abbrev","start_year","end_year","variable_name","danish_description","english_description","data_type","format","expected_values_from","expected_values_to","explanation_of_values","comments"
"1","CPR-registerets befolkningstabel","bef",1968,NA,"pnr","pseudonymiseret cpr-nummer","pseudonymised social security number","string","12 digits zero-padded","""0000000001""","""9999999999""",NA,NA
"2","CPR-registerets befolkningstabel","bef",1968,NA,"koen","koen","sex","integer","Binary 1 digit","0","1","0 is woman",NA
"3","CPR-registerets befolkningstabel","bef",1968,NA,"foed_dato","foedselsdato","date of birth","date_year","YYYYMMDD","as.Date(""1900-01-01"")","as.Date(""2020-01-01"")",NA,NA
"4","Laegemiddelstatistikregisteret","lmdb",1995,NA,"pnr","pseudonymiseret cpr-nummer","pseudonymised social security number","string","12 digits zero-padded","""00000000001""","""9999999999""",NA,NA
"5","Laegemiddelstatistikregisteret","lmdb",1995,NA,"eksd","ekspeditionsdato","date of purchase","date_year","YYYYMMDD","as.Date(""1995-01-01"")","as.Date(""2020-01-01"")",NA,NA
"6","Laegemiddelstatistikregisteret","lmdb",1995,NA,"atc","ATC-kode (fuldt specificeret)","ATC code (fully specified)","string","7 digits","[:alpha:][:digit:][:digit:][:alpha:][:alpha:]..","[:alpha:][:digit:][:digit:][:alpha:][:alpha:]..","""^A10"" is glucose-lowering medications",NA
"7","Laegemiddelstatistikregisteret","lmdb",1995,NA,"volume","antal standarddoser (DDD) i pakken","number of daily standard doses (DDD) in package","double","standard","1","10",NA,NA
"8","Laegemiddelstatistikregisteret","lmdb",1995,NA,"apk","antal pakker koebt","number of packages purchased","integer","standard","1","10",NA,NA
"9","Laegemiddelstatistikregisteret","lmdb",1995,NA,"indo","indikationskode for recept","indication code","string","blank or 7 digits zero-padded","""0000001""","""9999999""","refer to the KAT classification","the only used values are c(""0000092"", ""0000276"", ""0000781"")"
"10","Laegemiddelstatistikregisteret","lmdb",1995,NA,"name","praeparatnavn","drug retail name","string","natural language","""Metformin Actavis""","""Insulatard FlexPen""",NA,NA
"11","Laegemiddelstatistikregisteret","lmdb",1995,NA,"vnr","varenummer","item code","string","6 digits zero-padded","""000001""","""999999""",NA,NA
"12","Landspatientregisterets administrationstabel (LPR2)","lpr_adm",1977,2018,"pnr","pseudonymiseret cpr-nummer","pseudonymised social security number","string","12 digits zero-padded","""00000000001""","""9999999999""",NA,NA
"13","Landspatientregisterets administrationstabel (LPR2)","lpr_adm",1977,2018,"recnum","kontakt id-nummer","record id number","string","18 digits zero-padded","""00000000000000001""","""9999999999999999""",NA,NA
"14","Landspatientregisterets administrationstabel (LPR2)","lpr_adm",1977,2018,"d_inddto","indlaeggelsesdato (start paa kontakt)","date of admission or initial contact","date_year","YYYYMMDD","as.Date(""1977-01-01"")","as.Date(""2019-01-01"")",NA,NA
"15","Landspatientregisterets administrationstabel (LPR2)","lpr_adm",1977,2018,"c_spec","afdelings specialekode","specialty code of department","string","2 digits zero-padded","""00""","""99""",NA,"c_blok is derived from c_spec"
"16","Landspatientregisterets administrationstabel (LPR2)","lpr_adm",1977,2018,"c_pattype","kontakt type","contact type","integer","standard","0","3",NA,"has no lpr3 equivalent"
"17","Landspatientregisterets diagnosetabel (LPR2)","lpr_diag",1977,2018,"recnum","kontakt_id_nummer","record id number","string","18 digits zero-padded","""00000000000000001""","""9999999999999999""",NA,NA
"18","Landspatientregisterets diagnosetabel (LPR2)","lpr_diag",1977,2018,"c_diag","diagnosekode","diagnosis code","string","icd8 or icd10","""00009""","""^[:alpha:][:alpha:][:digit:][:digit:]""","""^249|^250|^DE1[0-4]"" are diabetes codes",NA
"19","Landspatientregisterets diagnosetabel (LPR2)","lpr_diag",1977,2018,"c_diagtype","diagnosetype","diagnosis type","string","1 digit","""A""","""B""","A is a primary diagnosis, B is a secondary diagnosis",NA
"20","Landspatientregisterets kontakttabel (LPR3)","kontakter",2019,NA,"cpr","pseudonymiseret cpr-nummer","pseudonymised social security number","string","12 digits zero-padded","""00000000001""","""9999999999""",NA,"lpr3 equivalent to pnr"
"21","Landspatientregisterets kontakttabel (LPR3)","kontakter",2019,NA,"dw_ek_kontakt","kontakt id-nummer","record id number","string","18 digits zero-padded","""00000000000000001""","""9999999999999999""",NA,"lpr3 equivalent to recnum"
"22","Landspatientregisterets kontakttabel (LPR3)","kontakter",2019,NA,"dato_start","indlaeggelsesdato (start paa kontakt)","date of admission or initial contact","date_year","YYYYMMDD","as.Date(""1977-01-01"")","as.Date(""2019-01-01"")",NA,"lpr3_equivalent_to_inddto"
"23","Landspatientregisterets kontakttabel (LPR3)","kontakter",2019,NA,"hovedspeciale_ans","afdelings speciale","specialty of department","string","natural language","""endokrinologi""","""intern medicin""","Is the LPR3 equivalent to c_spec but with different format","need to copy lpr2-lpr3 conversion table from dst"
"24","Landspatientregisterets diagnosetabel (LPR3)","diagnoser",2019,NA,"dw_ek_kontakt","kontakt id-nummer","record id number","string","18 digits zero-padded","""00000000000000001""","""9999999999999999""",NA,NA
"25","Landspatientregisterets diagnosetabel (LPR3)","diagnoser",2019,NA,"diagnosekode","diagnosekode","diagnosis code","string","icd10","""^[:alpha:][:alpha:][:digit:][:digit:]""","""^[:alpha:][:alpha:][:digit:][:digit:]""","""^DE1[0-4]"" are diabetes codes",NA
"26","Landspatientregisterets diagnosetabel (LPR3)","diagnoser",2019,NA,"diagnosetype","diagnosetype","diagnosis type","string","1 digit",NA,"c('A','B','H','+')",NA,NA
"27","Landspatientregisterets diagnosetabel (LPR3)","diagnoser",2019,NA,"senere_afkraeftet","blev diagnosen senere afkraeftet?","was the diagnosis retracted later?","string","Binary natural language","""Ja""","""Nej""",NA,NA
"28","Sygesikringsregisteret","sysi",1990,2005,"pnr","pseudonymiseret cpr-nummer","pseudonymised social security number","string","12 digits zero-padded","""00000000001""","""9999999999""",NA,NA
"29","Sygesikringsregisteret","sysi",1990,2005,"barnmak","blev ydelse ydet til patientens barn?","was the service provided to the patient's child?","integer","Binary 1 digit","0","1","0 is no",NA
"30","Sygesikringsregisteret","sysi",1990,2005,"speciale","ydelsens honoreringskode","billing code of the service (fully specified)","string","5 digits","""00000""","""99999""","""^54"" is diabetes-specific podiatrist service",NA
"31","Sygesikringsregisteret","sysi",1990,2005,"honuge","uge og aar for ydelse","week and year of service","string","4 digits: WWyy (2 digits week number, 2 digits year)","""0190""","""5205""","see Signes code for date formatting",NA
"32","Sygesikringsregisteret","sssy",2005,NA,"pnr","pseudonymiseret cpr-nummer","pseudonymised social security number","string","12 digits zero-padded","""00000000001""","""9999999999""",NA,NA
"33","Sygesikringsregisteret","sssy",2005,NA,"barnmak","blev ydelse ydet til patientens barn?","was the service provided to the patient's child?","integer","Binary 1 digit","0","1","0 is no",NA
"34","Sygesikringsregisteret","sssy",2005,NA,"speciale","ydelsens honoreringskode (fuldt specificeret)","billing code of the service (fully specified)","string","5 digits","""00000""","""99999""","""^54"" is diabetes-specific podiatrist service",NA
"35","Sygesikringsregisteret","sssy",2005,NA,"honuge","uge og aar for ydelse","week and year of service","string","4 digits: WWyy (2 digits week number, 2 digits year)","""0105""","""5222""","see Signes code for date formatting",NA
"36","Laboratoriedatabasens forskertabel","lab_forsker",2011,NA,"patient_cpr","pseudonymiseret cpr-nummer","pseudonymised social security number","string","12 digits zero-padded","""00000000001""","""9999999999""",NA,NA
"37","Laboratoriedatabasens forskertabel","lab_forsker",2011,NA,"samplingdate","dato for proevetagning","date of sampling","date_year","YYYYMMDD","as.Date(""2011-01-01"")","as.Date(""2022-01-01"")",NA,NA
"38","Laboratoriedatabasens forskertabel","lab_forsker",2011,NA,"analysiscode","analysens NPU-kode","NPU code of analysis","string","8 digit NPU code","""NPU00001""","""NPU99999""","NPU27300 is HbA1c in modern units (IFCC)","NPU03835 is HbA1c in old units"
"39","Laboratoriedatabasens forskertabel","lab_forsker",2011,NA,"value","numerisk resultat af analyse","numerical result of analysis","double","standard","0","180",NA,NA

0 comments on commit 022b5aa

Please sign in to comment.