{
  "_id": "6a27252024555f66ed529e42",
  "Package": "chmsflow",
  "Type": "Package",
  "Title": "Transforming and Harmonizing CHMS Variables",
  "Version": "0.1.0",
  "Authors@R": "c(\nperson(\"Rafidul\", \"Islam\", email = \"raislam@ohri.ca\", role = c(\"aut\", \"cre\", \"cph\"), comment = c(ORCID = \"0009-0008-3072-5623\")),\nperson(\"Douglas\", \"Manuel\", email = \"dmanuel@ohri.ca\", role = c(\"aut\", \"cph\"), comment = c(ORCID = \"0000-0003-0912-0845\")),\nperson(\"Therese\", \"Chan\", email = \"TChan@bruyere.org\", role = c(\"ctb\"), comment = c(ORCID = \"0009-0002-2291-7218\")),\nperson(\"The Ottawa Hospital Research Institute\", role = c(\"cph\")))",
  "Description": "Harmonizes variables from the Canadian Health Measures\nSurvey (CHMS) across cycles 1-6 (2007-2019), producing\nconsistent, analysis-ready variables for use with CHMS data.\nRecoding is data-driven through metadata tables and applied\nwith recodeflow::rec_with_table() from the 'recodeflow'\npackage. The recoding approach builds on sjmisc::rec() from the\n'sjmisc' package (Ludecke 2018) <doi:10.21105/joss.00754>.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/Big-Life-Lab/chmsflow,\nhttps://big-life-lab.github.io/chmsflow/",
  "BugReports": "https://github.com/Big-Life-Lab/chmsflow/issues",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "quarto",
  "Config/build/clean-inst-doc": "FALSE",
  "LazyData": "true",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-08 20:21:57 UTC",
    "User": "root"
  },
  "Author": "Rafidul Islam [aut, cre, cph] (ORCID:\n<https://orcid.org/0009-0008-3072-5623>), Douglas Manuel [aut,\ncph] (ORCID: <https://orcid.org/0000-0003-0912-0845>), Therese\nChan [ctb] (ORCID: <https://orcid.org/0009-0002-2291-7218>),\nThe Ottawa Hospital Research Institute [cph]",
  "Maintainer": "Rafidul Islam <raislam@ohri.ca>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-06-08 18:00:08 UTC",
  "RemoteUrl": "https://github.com/cran/chmsflow",
  "RemoteRef": "HEAD",
  "RemoteSha": "94ab7c7261688865986685f4bfcfbc56b2b4e798",
  "MD5sum": "40c96263846412737a6a7c09b72a1cb7",
  "_user": "cran",
  "_type": "src",
  "_file": "chmsflow_0.1.0.tar.gz",
  "_fileid": "e2dcdb6762dfa807c0eef4b6296e49b80465a6be051bcdb3953ae504cb2c49cf",
  "_filesize": 3276675,
  "_sha256": "e2dcdb6762dfa807c0eef4b6296e49b80465a6be051bcdb3953ae504cb2c49cf",
  "_created": "2026-06-08T20:21:57.000Z",
  "_published": "2026-06-08T20:25:04.344Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 80188496489,
      "time": 142,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7491527893"
    },
    {
      "job": 80188496525,
      "time": 148,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7491529181"
    },
    {
      "job": 80187790261,
      "time": 232,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7491476189"
    },
    {
      "job": 80188496488,
      "time": 127,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7491522051"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/27164389639",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/chmsflow",
  "_commit": {
    "id": "94ab7c7261688865986685f4bfcfbc56b2b4e798",
    "author": "Rafidul Islam <raislam@ohri.ca>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.0\n",
    "time": 1780941608
  },
  "_maintainer": {
    "name": "Rafidul Islam",
    "email": "raislam@ohri.ca",
    "login": "rafdoodle",
    "description": "",
    "uuid": 134554829
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "haven",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "recodeflow",
      "role": "Imports"
    },
    {
      "package": "DT",
      "role": "Suggests"
    },
    {
      "package": "kableExtra",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "quarto",
      "role": "Suggests"
    },
    {
      "package": "readr",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-24",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.1.0",
      "date": "2026-06-08"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "rafdoodle",
      "count": 1,
      "uuid": 134554829
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/chmsflow"
  },
  "_devurl": "https://github.com/big-life-lab/chmsflow",
  "_pkgdown": "https://big-life-lab.github.io/chmsflow/",
  "_searchresults": 8,
  "_quarto": true,
  "_topics": [
    "quarto"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/chmsflow.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-06-08"
    }
  ],
  "_exports": [
    "adjust_dbp",
    "adjust_sbp",
    "aggregate_meds_by_person",
    "calculate_exercise_daily_avg",
    "calculate_exercise_weekly",
    "calculate_fv_daily_cycles1to2",
    "calculate_fv_daily_cycles3to6",
    "calculate_gfr",
    "calculate_household_income",
    "calculate_nonhdl",
    "calculate_pack_years",
    "calculate_waist_height_ratio",
    "categorize_ckd",
    "categorize_diet_quality",
    "categorize_exercise",
    "categorize_income_quintile",
    "categorize_nonhdl",
    "derive_alcohol_risk",
    "derive_alcohol_risk_detailed",
    "derive_cvd_family_history",
    "derive_cvd_personal_history",
    "derive_diabetes_status",
    "derive_hypertension",
    "derive_hypertension_adj",
    "derive_hypertension_control",
    "derive_hypertension_control_adj",
    "is_ace_inhibitor",
    "is_ace_med_cycles1to2",
    "is_any_antihtn_med",
    "is_any_htn_med_cycles1to2",
    "is_bb_med_cycles1to2",
    "is_beta_blocker",
    "is_calcium_channel_blocker",
    "is_ccb_med_cycles1to2",
    "is_diab_med_cycles1to2",
    "is_diabetes_med",
    "is_diur_med_cycles1to2",
    "is_diuretic",
    "is_lowest_income_quintile",
    "is_misc_htn_med_cycles1to2",
    "is_nsaid",
    "is_nsaid_med_cycles1to2",
    "is_other_antihtn_med",
    "recode_after_meds",
    "recode_meds_cycles1to2",
    "recode_meds_cycles3to6"
  ],
  "_datasets": [
    {
      "name": "cycle1",
      "title": "Canadian Health Measures Survey (CHMS) Cycle 1",
      "object": "cycle1",
      "class": [
        "data.frame"
      ],
      "fields": [
        "clinicid",
        "alc_11",
        "alc_17",
        "alc_18",
        "alcdwky",
        "amsdmva1",
        "amsdmva2",
        "amsdmva3",
        "amsdmva4",
        "amsdmva5",
        "amsdmva6",
        "amsdmva7",
        "bir_14",
        "bpmdpbpd",
        "bpmdpbps",
        "ccc_32",
        "ccc_51",
        "ccc_61",
        "ccc_63",
        "ccc_81",
        "clc_age",
        "clc_sex",
        "dhh_ms",
        "dhhdhsz",
        "edudr04",
        "fmh_11",
        "fmh_12",
        "fmh_13",
        "fmh_14",
        "fmh_15",
        "gendhdi",
        "gendmhi",
        "gen_15",
        "gen_18",
        "gen_20",
        "gfvd17y",
        "gfvd18y",
        "gfvd19y",
        "gfvd20y",
        "gfvd22y",
        "gfvd23y",
        "hwm_11cm",
        "hwm_13kg",
        "hwm_14cm",
        "hwmdbmi",
        "inc_21",
        "incfimp4",
        "lab_alkp",
        "lab_alt",
        "lab_bcre",
        "lab_bpb",
        "lab_ca",
        "lab_chol",
        "lab_ggt",
        "lab_hba1",
        "lab_hdl",
        "lab_vitd",
        "lbf_soc",
        "lbfdwsl",
        "lbfdhpw",
        "mdcd11y",
        "phc_11",
        "sdcdcgt",
        "sdcfimm",
        "slp_11",
        "slp_12",
        "smk_11",
        "smk_21",
        "smk_31",
        "smk_41",
        "smk_42",
        "smk_52",
        "smk_53",
        "smk_54",
        "smkdsty",
        "wgt_full",
        "wsdd14y"
      ],
      "rows": 50,
      "table": true,
      "tojson": true
    },
    {
      "name": "cycle1_meds",
      "title": "Canadian Health Measures Survey (CHMS) Cycle 1 Medications",
      "object": "cycle1_meds",
      "class": [
        "data.frame"
      ],
      "fields": [
        "CLINICID",
        "ATC_101A",
        "ATC_102A",
        "ATC_103A",
        "ATC_104A",
        "ATC_105A",
        "ATC_106A",
        "ATC_107A",
        "ATC_108A",
        "ATC_109A",
        "ATC_110A",
        "ATC_111A",
        "ATC_112A",
        "ATC_113A",
        "ATC_114A",
        "ATC_115A",
        "ATC_201A",
        "ATC_202A",
        "ATC_203A",
        "ATC_204A",
        "ATC_205A",
        "ATC_206A",
        "ATC_207A",
        "ATC_208A",
        "ATC_209A",
        "ATC_210A",
        "ATC_211A",
        "ATC_212A",
        "ATC_213A",
        "ATC_214A",
        "ATC_215A",
        "ATC_131A",
        "ATC_132A",
        "ATC_133A",
        "ATC_134A",
        "ATC_135A",
        "ATC_231A",
        "ATC_232A",
        "ATC_233A",
        "ATC_234A",
        "ATC_235A",
        "MHR_101B",
        "MHR_102B",
        "MHR_103B",
        "MHR_104B",
        "MHR_105B",
        "MHR_106B",
        "MHR_107B",
        "MHR_108B",
        "MHR_109B",
        "MHR_110B",
        "MHR_111B",
        "MHR_112B",
        "MHR_113B",
        "MHR_114B",
        "MHR_115B",
        "MHR_131B",
        "MHR_132B",
        "MHR_133B",
        "MHR_134B",
        "MHR_135B",
        "MHR_201B",
        "MHR_202B",
        "MHR_203B",
        "MHR_204B",
        "MHR_205B",
        "MHR_206B",
        "MHR_207B",
        "MHR_208B",
        "MHR_209B",
        "MHR_210B",
        "MHR_211B",
        "MHR_212B",
        "MHR_213B",
        "MHR_214B",
        "MHR_215B",
        "MHR_231B",
        "MHR_232B",
        "MHR_233B",
        "MHR_234B",
        "MHR_235B"
      ],
      "rows": 50,
      "table": true,
      "tojson": true
    },
    {
      "name": "cycle2",
      "title": "Canadian Health Measures Survey (CHMS) Cycle 2",
      "object": "cycle2",
      "class": [
        "data.frame"
      ],
      "fields": [
        "clinicid",
        "alc_11",
        "alc_17",
        "alc_18",
        "alcdwky",
        "ammdmva1",
        "ammdmva2",
        "ammdmva3",
        "ammdmva4",
        "ammdmva5",
        "ammdmva6",
        "ammdmva7",
        "bir_14",
        "bpmdpbpd",
        "bpmdpbps",
        "ccc_32",
        "ccc_51",
        "ccc_61",
        "ccc_63",
        "ccc_81",
        "clc_age",
        "clc_sex",
        "dhh_ms",
        "dhhdhsz",
        "edudr04",
        "fmh_11",
        "fmh_12",
        "fmh_13",
        "fmh_14",
        "fmh_15",
        "gendhdi",
        "gendmhi",
        "gen_15",
        "gen_18",
        "gen_20",
        "gfvd17y",
        "gfvd18y",
        "gfvd19y",
        "gfvd20y",
        "gfvd22y",
        "gfvd23y",
        "hwm_11cm",
        "hwm_13kg",
        "hwm_14cx",
        "hwmdbmi",
        "inc_21",
        "incfimp4",
        "lab_alkp",
        "lab_alt",
        "lab_bcre",
        "lab_bpb",
        "lab_ca",
        "lab_chol",
        "lab_ggt",
        "lab_hba1",
        "lab_hdl",
        "lab_vitd",
        "lbf_soc",
        "lbfdwsl",
        "lbfdhpw",
        "mdcd11y",
        "phc_11",
        "sdcdcgt",
        "sdcfimm",
        "slp_11",
        "slp_12",
        "smk_11",
        "smk_21",
        "smk_31",
        "smk_41",
        "smk_42",
        "smk_52",
        "smk_53",
        "smk_54",
        "smkdsty",
        "wgt_full",
        "wsdd14y"
      ],
      "rows": 50,
      "table": true,
      "tojson": true
    },
    {
      "name": "cycle2_meds",
      "title": "Canadian Health Measures Survey (CHMS) Cycle 2 Medications",
      "object": "cycle2_meds",
      "class": [
        "data.frame"
      ],
      "fields": [
        "clinicid",
        "atc_101a",
        "atc_102a",
        "atc_103a",
        "atc_104a",
        "atc_105a",
        "atc_106a",
        "atc_107a",
        "atc_108a",
        "atc_109a",
        "atc_110a",
        "atc_111a",
        "atc_112a",
        "atc_113a",
        "atc_114a",
        "atc_115a",
        "atc_201a",
        "atc_202a",
        "atc_203a",
        "atc_204a",
        "atc_205a",
        "atc_206a",
        "atc_207a",
        "atc_208a",
        "atc_209a",
        "atc_210a",
        "atc_211a",
        "atc_212a",
        "atc_213a",
        "atc_214a",
        "atc_215a",
        "atc_131a",
        "atc_132a",
        "atc_133a",
        "atc_134a",
        "atc_135a",
        "atc_231a",
        "atc_232a",
        "atc_233a",
        "atc_234a",
        "atc_235a",
        "mhr_101b",
        "mhr_102b",
        "mhr_103b",
        "mhr_104b",
        "mhr_105b",
        "mhr_106b",
        "mhr_107b",
        "mhr_108b",
        "mhr_109b",
        "mhr_110b",
        "mhr_111b",
        "mhr_112b",
        "mhr_113b",
        "mhr_114b",
        "mhr_115b",
        "mhr_131b",
        "mhr_132b",
        "mhr_133b",
        "mhr_134b",
        "mhr_135b",
        "mhr_201b",
        "mhr_202b",
        "mhr_203b",
        "mhr_204b",
        "mhr_205b",
        "mhr_206b",
        "mhr_207b",
        "mhr_208b",
        "mhr_209b",
        "mhr_210b",
        "mhr_211b",
        "mhr_212b",
        "mhr_213b",
        "mhr_214b",
        "mhr_215b",
        "mhr_231b",
        "mhr_232b",
        "mhr_233b",
        "mhr_234b",
        "mhr_235b"
      ],
      "rows": 50,
      "table": true,
      "tojson": true
    },
    {
      "name": "cycle3",
      "title": "Canadian Health Measures Survey (CHMS) Cycle 3",
      "object": "cycle3",
      "class": [
        "data.frame"
      ],
      "fields": [
        "clinicid",
        "alc_11",
        "alc_17",
        "alc_18",
        "alcdwky",
        "ammdmva1",
        "ammdmva2",
        "ammdmva3",
        "ammdmva4",
        "ammdmva5",
        "ammdmva6",
        "ammdmva7",
        "bir_14",
        "bpmdpbpd",
        "bpmdpbps",
        "ccc_32",
        "ccc_51",
        "ccc_61",
        "ccc_63",
        "ccc_81",
        "clc_age",
        "clc_sex",
        "dhh_ms",
        "dhhdhsz",
        "edudr04",
        "fmh_11",
        "fmh_12",
        "fmh_13",
        "fmh_14",
        "fmh_15",
        "gendhdi",
        "gendmhi",
        "gen_15",
        "gen_18",
        "gen_20",
        "gfvd17ay",
        "gfvd17by",
        "gfvd17cy",
        "gfvd17dy",
        "gfvd18y",
        "gfvd19y",
        "gfvd20y",
        "gfvd22y",
        "gfvd23y",
        "hwm_11cm",
        "hwm_13kg",
        "hwm_14cx",
        "hwmdbmi",
        "imm_03",
        "ipadttpa",
        "lab_alkp",
        "lab_bcre",
        "lab_bpb",
        "lab_ca",
        "lab_chol",
        "lab_ggt",
        "lab_hba1",
        "lab_hdl",
        "lab_vids",
        "lafcso01",
        "lafdwsl",
        "lfh_16",
        "mdcd04y",
        "pgdcgt",
        "phc_11",
        "slp_11",
        "slp_12",
        "smk_11",
        "smk_21",
        "smk_31",
        "smk_41",
        "smk_42",
        "smk_52",
        "smk_53",
        "smk_54",
        "smkdsty",
        "thi_01",
        "thifimp4",
        "wgt_full",
        "wsdd34y",
        "wsdd35y"
      ],
      "rows": 50,
      "table": true,
      "tojson": true
    },
    {
      "name": "cycle3_meds",
      "title": "Canadian Health Measures Survey (CHMS) Cycle 3 Medications",
      "object": "cycle3_meds",
      "class": [
        "data.frame"
      ],
      "fields": [
        "clinicid",
        "meucatc",
        "npi_25b"
      ],
      "rows": 4000,
      "table": true,
      "tojson": true
    },
    {
      "name": "cycle4",
      "title": "Canadian Health Measures Survey (CHMS) Cycle 4",
      "object": "cycle4",
      "class": [
        "data.frame"
      ],
      "fields": [
        "alc_11",
        "alc_17",
        "alc_18",
        "alcdwky",
        "ammdmva1",
        "ammdmva2",
        "ammdmva3",
        "ammdmva4",
        "ammdmva5",
        "ammdmva6",
        "ammdmva7",
        "bir_14",
        "bpmdpbpd",
        "bpmdpbps",
        "ccc_32",
        "ccc_51",
        "ccc_61",
        "ccc_63",
        "ccc_81",
        "clc_age",
        "clc_sex",
        "clinicid",
        "dhh_ms",
        "dhhdhsz",
        "edudr04",
        "fmh_11",
        "fmh_12",
        "fmh_13",
        "fmh_14",
        "fmh_15",
        "gen_15",
        "gen_18",
        "gen_20",
        "gendhdi",
        "gendmhi",
        "gfvd17ay",
        "gfvd17by",
        "gfvd17cy",
        "gfvd17dy",
        "gfvd18y",
        "gfvd19y",
        "gfvd20y",
        "gfvd22y",
        "gfvd23y",
        "hwm_11cm",
        "hwm_13kg",
        "hwm_14cx",
        "hwmdbmi",
        "imm_03",
        "lab_alkp",
        "lab_alt",
        "lab_bcre",
        "lab_bpb",
        "lab_ca",
        "lab_chol",
        "lab_ggt",
        "lab_hba1",
        "lab_hdl",
        "lab_vids",
        "lafcoc11",
        "lafdwsl",
        "lfh_16",
        "mdcd04y",
        "paadtot",
        "pgdcgt",
        "phc_11",
        "slp_11",
        "slp_12",
        "smk_11",
        "smk_21",
        "smk_31",
        "smk_41",
        "smk_42",
        "smk_52",
        "smk_53",
        "smk_54",
        "smkdsty",
        "thi_01",
        "thifimp4",
        "wgt_full",
        "wsdd34y",
        "wsdd35y"
      ],
      "rows": 50,
      "table": true,
      "tojson": true
    },
    {
      "name": "cycle4_meds",
      "title": "Canadian Health Measures Survey (CHMS) Cycle 4 Medications",
      "object": "cycle4_meds",
      "class": [
        "data.frame"
      ],
      "fields": [
        "CLINICID",
        "MEUCATC",
        "NPI_25B"
      ],
      "rows": 4050,
      "table": true,
      "tojson": true
    },
    {
      "name": "cycle5",
      "title": "Canadian Health Measures Survey (CHMS) Cycle 5",
      "object": "cycle5",
      "class": [
        "data.frame"
      ],
      "fields": [
        "alc_11",
        "alc_17",
        "alc_18",
        "alcdwky",
        "ammdmva1",
        "ammdmva2",
        "ammdmva3",
        "ammdmva4",
        "ammdmva5",
        "ammdmva6",
        "ammdmva7",
        "bir_14",
        "bpmdpbpd",
        "bpmdpbps",
        "ccc_32",
        "ccc_51",
        "ccc_59",
        "ccc_61",
        "ccc_63",
        "ccc_81",
        "clc_age",
        "clc_sex",
        "clinicid",
        "dhh_ms",
        "dhhdhsz",
        "edudr04",
        "gen_025",
        "gen_045",
        "gen_055",
        "gendhdi",
        "gendmhi",
        "gfvd17ay",
        "gfvd17by",
        "gfvd17cy",
        "gfvd17dy",
        "gfvd18y",
        "gfvd19y",
        "gfvd20y",
        "gfvd22y",
        "gfvd23y",
        "hwm_11cm",
        "hwm_13kg",
        "hwm_14cx",
        "hwmdbmi",
        "img_03",
        "inc_hhld",
        "incfhhld",
        "lab_alkp",
        "lab_bcre",
        "lab_bpb",
        "lab_ca",
        "lab_chol",
        "lab_ggt",
        "lab_hba1",
        "lab_hdl",
        "lab_una",
        "lab_vids",
        "lafcoc16",
        "lafdwsl",
        "lmh_016",
        "mdcd04y",
        "paadtot",
        "pgdcgt",
        "prs_11",
        "smk_11",
        "smk_21",
        "smk_31",
        "smk_41",
        "smk_42",
        "smk_52",
        "smk_53",
        "smk_54",
        "smkdsty",
        "spa_020",
        "wgt_full",
        "wsdd34y",
        "wsdd35y"
      ],
      "rows": 50,
      "table": true,
      "tojson": true
    },
    {
      "name": "cycle5_meds",
      "title": "Canadian Health Measures Survey (CHMS) Cycle 5 Medications",
      "object": "cycle5_meds",
      "class": [
        "data.frame"
      ],
      "fields": [
        "clinicid",
        "meucatc",
        "npi_25b"
      ],
      "rows": 3800,
      "table": true,
      "tojson": true
    },
    {
      "name": "cycle6",
      "title": "Canadian Health Measures Survey (CHMS) Cycle 6",
      "object": "cycle6",
      "class": [
        "data.frame"
      ],
      "fields": [
        "CLINICID",
        "ALC_11",
        "ALC_17",
        "ALC_18",
        "ALCDWKY",
        "AMMDMVA1",
        "AMMDMVA2",
        "AMMDMVA3",
        "AMMDMVA4",
        "AMMDMVA5",
        "AMMDMVA6",
        "AMMDMVA7",
        "BIR_14",
        "BPMDPBPD",
        "BPMDPBPS",
        "CCC_32",
        "CCC_51",
        "CCC_59",
        "CCC_61",
        "CCC_63",
        "CCC_81",
        "CLC_AGE",
        "CLC_SEX",
        "DHH_MS",
        "DHHDHSZ",
        "EDUDR04",
        "GEN_025",
        "GEN_045",
        "GEN_055",
        "GENDHDI",
        "GENDMHI",
        "GFVD17AY",
        "GFVD17BY",
        "GFVD17CY",
        "GFVD17DY",
        "GFVD18Y",
        "GFVD19Y",
        "GFVD20Y",
        "GFVD22Y",
        "GFVD23Y",
        "HWM_11CM",
        "HWM_13KG",
        "HWM_14CX",
        "HWMDBMI",
        "IMG_03",
        "LAB_ALKP",
        "LAB_ALT",
        "LAB_BCRE",
        "LAB_BPB",
        "LAB_CA",
        "LAB_CHOL",
        "LAB_GGT",
        "LAB_HBA1",
        "LAB_HDL",
        "LAB_UNA",
        "LAB_VIDS",
        "LAFCOC16",
        "LAFDWSL",
        "LMH_016",
        "MDCD04Y",
        "PAADTOT",
        "PGDCGT",
        "PRS_11",
        "SMK_11",
        "SMK_21",
        "SMK_31",
        "SMK_41",
        "SMK_42",
        "SMK_52",
        "SMK_53",
        "SMK_54",
        "SMKDSTY",
        "SPA_020",
        "THI_01",
        "THIFIMP4",
        "WGT_FULL",
        "WSDD34Y",
        "WSDD35Y"
      ],
      "rows": 50,
      "table": true,
      "tojson": true
    },
    {
      "name": "cycle6_meds",
      "title": "Canadian Health Measures Survey (CHMS) Cycle 6 Medications",
      "object": "cycle6_meds",
      "class": [
        "data.frame"
      ],
      "fields": [
        "CLINICID",
        "MEUCATC",
        "NPI_25B"
      ],
      "rows": 3850,
      "table": true,
      "tojson": true
    },
    {
      "name": "variable_details",
      "title": "variable-details.csv",
      "object": "variable_details",
      "class": [
        "data.frame"
      ],
      "fields": [
        "variable",
        "dummyVariable",
        "typeEnd",
        "databaseStart",
        "variableStart",
        "typeStart",
        "recEnd",
        "numValidCat",
        "catLabel",
        "catLabelLong",
        "units",
        "recStart",
        "catStartLabel",
        "variableStartShortLabel",
        "variableStartLabel",
        "notes",
        "X"
      ],
      "rows": 1111,
      "table": true,
      "tojson": true
    },
    {
      "name": "variables",
      "title": "variables.csv",
      "object": "variables",
      "class": [
        "data.frame"
      ],
      "fields": [
        "variable",
        "label",
        "labelLong",
        "section",
        "subject",
        "variableType",
        "units",
        "databaseStart",
        "variableStart"
      ],
      "rows": 211,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "adjust_dbp",
      "title": "Adjusted diastolic blood pressure",
      "topics": [
        "adjust_dbp"
      ]
    },
    {
      "page": "adjust_sbp",
      "title": "Adjusted systolic blood pressure",
      "topics": [
        "adjust_sbp"
      ]
    },
    {
      "page": "aggregate_meds_by_person",
      "title": "Aggregate medication variables to one row per person",
      "topics": [
        "aggregate_meds_by_person"
      ]
    },
    {
      "page": "calculate_exercise_daily_avg",
      "title": "Average daily minutes of moderate-to-vigorous physical activity (MVPA) from accelerometer data",
      "topics": [
        "calculate_exercise_daily_avg"
      ]
    },
    {
      "page": "calculate_exercise_weekly",
      "title": "Weekly minutes of moderate-to-vigorous physical activity (MVPA) from daily average",
      "topics": [
        "calculate_exercise_weekly"
      ]
    },
    {
      "page": "calculate_fv_daily_cycles1to2",
      "title": "Daily fruit and vegetable consumption in a year - cycles 1-2",
      "topics": [
        "calculate_fv_daily_cycles1to2"
      ]
    },
    {
      "page": "calculate_fv_daily_cycles3to6",
      "title": "Daily fruit and vegetable consumption in a year - cycles 3-6",
      "topics": [
        "calculate_fv_daily_cycles3to6"
      ]
    },
    {
      "page": "calculate_gfr",
      "title": "Estimated glomerular filtration rate (GFR)",
      "topics": [
        "calculate_gfr"
      ]
    },
    {
      "page": "calculate_household_income",
      "title": "Adjusted total household income",
      "topics": [
        "calculate_household_income"
      ]
    },
    {
      "page": "calculate_nonhdl",
      "title": "Non-HDL cholesterol level",
      "topics": [
        "calculate_nonhdl"
      ]
    },
    {
      "page": "calculate_pack_years",
      "title": "Smoking pack-years",
      "topics": [
        "calculate_pack_years"
      ]
    },
    {
      "page": "calculate_waist_height_ratio",
      "title": "Waist-to-height ratio (WHtR)",
      "topics": [
        "calculate_waist_height_ratio"
      ]
    },
    {
      "page": "categorize_ckd",
      "title": "Chronic kidney disease (CKD) derived variable",
      "topics": [
        "categorize_ckd"
      ]
    },
    {
      "page": "categorize_diet_quality",
      "title": "Categorical diet indicator",
      "topics": [
        "categorize_diet_quality"
      ]
    },
    {
      "page": "categorize_exercise",
      "title": "Categorical weekly moderate-to-vigorous physical activity (MVPA) indicator",
      "topics": [
        "categorize_exercise"
      ]
    },
    {
      "page": "categorize_income_quintile",
      "title": "Categorical adjusted household income",
      "topics": [
        "categorize_income_quintile"
      ]
    },
    {
      "page": "categorize_nonhdl",
      "title": "Categorical non-HDL cholesterol level",
      "topics": [
        "categorize_nonhdl"
      ]
    },
    {
      "page": "cycle1",
      "title": "Canadian Health Measures Survey (CHMS) Cycle 1",
      "topics": [
        "cycle1"
      ]
    },
    {
      "page": "cycle1_meds",
      "title": "Canadian Health Measures Survey (CHMS) Cycle 1 Medications",
      "topics": [
        "cycle1_meds"
      ]
    },
    {
      "page": "cycle2",
      "title": "Canadian Health Measures Survey (CHMS) Cycle 2",
      "topics": [
        "cycle2"
      ]
    },
    {
      "page": "cycle2_meds",
      "title": "Canadian Health Measures Survey (CHMS) Cycle 2 Medications",
      "topics": [
        "cycle2_meds"
      ]
    },
    {
      "page": "cycle3",
      "title": "Canadian Health Measures Survey (CHMS) Cycle 3",
      "topics": [
        "cycle3"
      ]
    },
    {
      "page": "cycle3_meds",
      "title": "Canadian Health Measures Survey (CHMS) Cycle 3 Medications",
      "topics": [
        "cycle3_meds"
      ]
    },
    {
      "page": "cycle4",
      "title": "Canadian Health Measures Survey (CHMS) Cycle 4",
      "topics": [
        "cycle4"
      ]
    },
    {
      "page": "cycle4_meds",
      "title": "Canadian Health Measures Survey (CHMS) Cycle 4 Medications",
      "topics": [
        "cycle4_meds"
      ]
    },
    {
      "page": "cycle5",
      "title": "Canadian Health Measures Survey (CHMS) Cycle 5",
      "topics": [
        "cycle5"
      ]
    },
    {
      "page": "cycle5_meds",
      "title": "Canadian Health Measures Survey (CHMS) Cycle 5 Medications",
      "topics": [
        "cycle5_meds"
      ]
    },
    {
      "page": "cycle6",
      "title": "Canadian Health Measures Survey (CHMS) Cycle 6",
      "topics": [
        "cycle6"
      ]
    },
    {
      "page": "cycle6_meds",
      "title": "Canadian Health Measures Survey (CHMS) Cycle 6 Medications",
      "topics": [
        "cycle6_meds"
      ]
    },
    {
      "page": "derive_alcohol_risk",
      "title": "Low risk drinking score",
      "topics": [
        "derive_alcohol_risk"
      ]
    },
    {
      "page": "derive_alcohol_risk_detailed",
      "title": "Low risk drinking score - former/never categories",
      "topics": [
        "derive_alcohol_risk_detailed"
      ]
    },
    {
      "page": "derive_cvd_family_history",
      "title": "Cardiovascular Disease (CVD) family history",
      "topics": [
        "derive_cvd_family_history"
      ]
    },
    {
      "page": "derive_cvd_personal_history",
      "title": "Cardiovascular disease (CVD) personal history",
      "topics": [
        "derive_cvd_personal_history"
      ]
    },
    {
      "page": "derive_diabetes_status",
      "title": "Diabetes derived variable",
      "topics": [
        "derive_diabetes_status"
      ]
    },
    {
      "page": "derive_hypertension",
      "title": "Hypertension derived variable",
      "topics": [
        "derive_hypertension"
      ]
    },
    {
      "page": "derive_hypertension_adj",
      "title": "Hypertension derived variable with adjusted blood pressures",
      "topics": [
        "derive_hypertension_adj"
      ]
    },
    {
      "page": "derive_hypertension_control",
      "title": "Controlled hypertension derived variable",
      "topics": [
        "derive_hypertension_control"
      ]
    },
    {
      "page": "derive_hypertension_control_adj",
      "title": "Controlled hypertension derived variable with adjusted blood pressures",
      "topics": [
        "derive_hypertension_control_adj"
      ]
    },
    {
      "page": "is_ace_inhibitor",
      "title": "ACE inhibitors",
      "topics": [
        "is_ace_inhibitor"
      ]
    },
    {
      "page": "is_ace_med_cycles1to2",
      "title": "ACE inhibitors - cycles 1-2",
      "topics": [
        "is_ace_med_cycles1to2"
      ]
    },
    {
      "page": "is_any_antihtn_med",
      "title": "Any anti-hypertensive medications",
      "topics": [
        "is_any_antihtn_med"
      ]
    },
    {
      "page": "is_any_htn_med_cycles1to2",
      "title": "Any anti-hypertensive medications - cycles 1-2",
      "topics": [
        "is_any_htn_med_cycles1to2"
      ]
    },
    {
      "page": "is_bb_med_cycles1to2",
      "title": "Beta blockers - cycles 1-2",
      "topics": [
        "is_bb_med_cycles1to2"
      ]
    },
    {
      "page": "is_beta_blocker",
      "title": "Beta blockers",
      "topics": [
        "is_beta_blocker"
      ]
    },
    {
      "page": "is_calcium_channel_blocker",
      "title": "Calcium channel blockers",
      "topics": [
        "is_calcium_channel_blocker"
      ]
    },
    {
      "page": "is_ccb_med_cycles1to2",
      "title": "Calcium channel blockers - cycles 1-2",
      "topics": [
        "is_ccb_med_cycles1to2"
      ]
    },
    {
      "page": "is_diab_med_cycles1to2",
      "title": "Diabetes medications - cycles 1-2",
      "topics": [
        "is_diab_med_cycles1to2"
      ]
    },
    {
      "page": "is_diabetes_med",
      "title": "Diabetes medications",
      "topics": [
        "is_diabetes_med"
      ]
    },
    {
      "page": "is_diur_med_cycles1to2",
      "title": "Diuretics - cycles 1-2",
      "topics": [
        "is_diur_med_cycles1to2"
      ]
    },
    {
      "page": "is_diuretic",
      "title": "Diuretics",
      "topics": [
        "is_diuretic"
      ]
    },
    {
      "page": "is_lowest_income_quintile",
      "title": "Lowest income quintile indicator",
      "topics": [
        "is_lowest_income_quintile"
      ]
    },
    {
      "page": "is_misc_htn_med_cycles1to2",
      "title": "Other anti-hypertensive medications - cycles 1-2",
      "topics": [
        "is_misc_htn_med_cycles1to2"
      ]
    },
    {
      "page": "is_nsaid",
      "title": "Non-steroidal anti-inflammatory drugs (NSAIDs)",
      "topics": [
        "is_nsaid"
      ]
    },
    {
      "page": "is_nsaid_med_cycles1to2",
      "title": "Non-steroidal anti-inflammatory drugs (NSAIDs) - cycles 1-2",
      "topics": [
        "is_nsaid_med_cycles1to2"
      ]
    },
    {
      "page": "is_other_antihtn_med",
      "title": "Other anti-hypertensive medications",
      "topics": [
        "is_other_antihtn_med"
      ]
    },
    {
      "page": "recode_after_meds",
      "title": "Recode variables that depend on derived medication variable inputs",
      "topics": [
        "recode_after_meds"
      ]
    },
    {
      "page": "recode_meds_cycles1to2",
      "title": "Recode medication variables for cycles 1-2 (wide format)",
      "topics": [
        "recode_meds_cycles1to2"
      ]
    },
    {
      "page": "recode_meds_cycles3to6",
      "title": "Recode medication variables for cycles 3-6 (long format)",
      "topics": [
        "recode_meds_cycles3to6"
      ]
    },
    {
      "page": "variable_details",
      "title": "variable-details.csv",
      "topics": [
        "variable_details"
      ]
    },
    {
      "page": "variables",
      "title": "variables.csv",
      "topics": [
        "variables"
      ]
    }
  ],
  "_pkglogo": "https://github.com/cran/chmsflow/raw/HEAD/man/figures/logo.svg",
  "_readme": "https://github.com/cran/chmsflow/raw/HEAD/README.md",
  "_rundeps": [
    "bit",
    "bit64",
    "cli",
    "clipr",
    "cpp11",
    "crayon",
    "datawizard",
    "dplyr",
    "forcats",
    "generics",
    "glue",
    "haven",
    "hms",
    "insight",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "prettyunits",
    "progress",
    "purrr",
    "R6",
    "readr",
    "recodeflow",
    "rlang",
    "sjlabelled",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "tzdb",
    "utf8",
    "vctrs",
    "vroom",
    "withr",
    "XML"
  ],
  "_vignettes": [
    {
      "source": "analysis_walkthrough.qmd",
      "filename": "analysis_walkthrough.html",
      "title": "Analysis walkthrough: hypertension prevalence",
      "engine": "quarto::html",
      "headings": [
        "Overview",
        "1. Load data",
        "2. Recode medications",
        "3. Derive hypertension status",
        "4. Inspect results",
        "5. Combine cycles",
        "Next steps"
      ],
      "created": "2026-06-08 18:00:08",
      "modified": "2026-06-08 18:00:08",
      "commits": 1
    },
    {
      "source": "derived_variables.qmd",
      "filename": "derived_variables.html",
      "title": "Derived variables",
      "engine": "quarto::html",
      "headings": [
        "Introduction",
        "How to use derived variables",
        "Creating a derived variable",
        "Next steps"
      ],
      "created": "2026-06-08 18:00:08",
      "modified": "2026-06-08 18:00:08",
      "commits": 1
    },
    {
      "source": "get_started.qmd",
      "filename": "get_started.html",
      "title": "Get started",
      "engine": "quarto::html",
      "headings": [
        "1. Introduction",
        "What chmsflow provides",
        "Typical workflow",
        "2. Installation",
        "3. Quick start",
        "4. Variable types",
        "4.1 Source variables (direct mapping)",
        "4.2 Transformed variables (continuous to categorical)",
        "4.3 Derived variables (computed by functions)",
        "5. Next steps"
      ],
      "created": "2026-06-08 18:00:08",
      "modified": "2026-06-08 18:00:08",
      "commits": 1
    },
    {
      "source": "how_to_add_variables.qmd",
      "filename": "how_to_add_variables.html",
      "title": "How to add variables to chmsflow",
      "engine": "quarto::html",
      "headings": [
        "Introduction",
        "How to add existing CHMS variables to chmsflow",
        "Example of an existing CHMS variable: Age",
        "Specifying the variable on variable_details.csv",
        "Columns",
        "Specifying the variable on variables.csv",
        "How to create derived variables and add them to chmsflow",
        "Example of a derived variable: Smoking pack-years",
        "Step 1. Creating a derived function",
        "Steps 2 and 3. Specifying pack-years in variable_details.csv and variables.csv",
        "Adding labels to a derived variable",
        "Creating a derived variable using derived variables",
        "Next steps"
      ],
      "created": "2026-06-08 18:00:08",
      "modified": "2026-06-08 18:00:08",
      "commits": 1
    },
    {
      "source": "methodology.qmd",
      "filename": "methodology.html",
      "title": "Methodology",
      "engine": "quarto::html",
      "headings": [
        "Why CHMS harmonization is non-trivial",
        "Variable naming changes",
        "Coding scheme differences",
        "Medication data format changes",
        "How chmsflow works",
        "Rules as data, derivation as code",
        "The variableStart column",
        "The recStart and recEnd columns",
        "Missing data semantics",
        "Derived variables",
        "Known limits",
        "Next steps",
        "References"
      ],
      "created": "2026-06-08 18:00:08",
      "modified": "2026-06-08 18:00:08",
      "commits": 1
    },
    {
      "source": "tagged_na_usage.qmd",
      "filename": "tagged_na_usage.html",
      "title": "Missing data (tagged_na)",
      "engine": "quarto::html",
      "headings": [
        "Missing data (NA --> tagged_na)",
        "CHMS approach to coding missing data",
        "Example haven::tagged_na()",
        "Using tagged_na for creating derived variables",
        "Next steps"
      ],
      "created": "2026-06-08 18:00:08",
      "modified": "2026-06-08 18:00:08",
      "commits": 1
    },
    {
      "source": "recoding_medications.qmd",
      "filename": "recoding_medications.html",
      "title": "Recoding CHMS medication variables",
      "engine": "quarto::html",
      "headings": [
        "1. Introduction",
        "Available medication variables",
        "Cycle differences",
        "2. When to use medication recoding",
        "3. Workflow",
        "3.1 Cycles 1--2",
        "3.2 Cycles 3--6",
        "4. Advanced: using individual classification functions",
        "Cycle format differences",
        "Next steps"
      ],
      "created": "2026-06-08 18:00:08",
      "modified": "2026-06-08 18:00:08",
      "commits": 1
    },
    {
      "source": "using_chmsflow_at_an_rdc.qmd",
      "filename": "using_chmsflow_at_an_rdc.html",
      "title": "Using chmsflow at an RDC",
      "engine": "quarto::html",
      "headings": [
        "Overview",
        "Workflow",
        "Setup inside the RDC",
        "1. Set the library path",
        "2. Load packages",
        "3. Load additional scripts and worksheets",
        "4. Load CHMS data",
        "5. Run your analysis",
        "Tips",
        "Next steps"
      ],
      "created": "2026-06-08 18:00:08",
      "modified": "2026-06-08 18:00:08",
      "commits": 1
    },
    {
      "source": "variables_and_variable_details.qmd",
      "filename": "variables_and_variable_details.html",
      "title": "Variable schema reference",
      "engine": "quarto::html",
      "headings": [
        "Overview",
        "variables.csv",
        "Columns",
        "variable-details.csv",
        "Row structure",
        "Derived variables",
        "Next steps"
      ],
      "created": "2026-06-08 18:00:08",
      "modified": "2026-06-08 18:00:08",
      "commits": 1
    }
  ],
  "_score": 3.6532125137753435,
  "_indexed": false,
  "_nocasepkg": "chmsflow",
  "_universes": [
    "cran",
    "rafdoodle",
    "big-life-lab"
  ],
  "_indexurl": "https://big-life-lab.r-universe.dev/chmsflow",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-06-08T20:24:15.000Z",
      "distro": "noble",
      "commit": "94ab7c7261688865986685f4bfcfbc56b2b4e798",
      "fileid": "35b8bd3888f45212e4182d6f27e231c2521aec50d3baec4592048bbb6f914bf3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27164389639"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-06-08T20:24:17.000Z",
      "distro": "noble",
      "commit": "94ab7c7261688865986685f4bfcfbc56b2b4e798",
      "fileid": "7b59f2d30465ec6999e4674508404b66d997a1c28415f6e17e5be18c9fcd8ddd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27164389639"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-06-08T20:24:27.000Z",
      "commit": "94ab7c7261688865986685f4bfcfbc56b2b4e798",
      "fileid": "34f71c406d8fbf81256331a06bcd8e725758c0d33e47e8a4451f6d85e765a77f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27164389639"
    }
  ]
}