{
  "_id": "6a18a6c9acfb0bcc41dc8ba3",
  "Package": "cohortflow",
  "Title": "Define and Apply Cohort Inclusion/Exclusion Criteria",
  "Version": "0.0.0.9009",
  "Authors@R": "person(\"Matthew\", \"Moore\", , \"matthew.moore@auckland.ac.nz\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0003-0730-8027\"))",
  "Description": "Define inclusion and exclusion criteria for cohort studies\nusing formulas or functions, apply them to data, and render the\nresulting attrition flow as CONSORT flow diagrams, tables, or\nnarrative text. Supports hierarchical designs (participants\nnested in clusters/sites) and flexible grouping for reporting.\nCriteria pipelines can be serialised to YAML for\nreproducibility and sharing. Parts of this package were\ndeveloped with the assistance of GitHub Copilot (powered by\nClaude), an AI coding assistant.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "8.0.0",
  "Config/testthat/edition": "3",
  "Repository": "https://mattmoo.r-universe.dev",
  "Date/Publication": "2026-05-28 18:30:39 UTC",
  "RemoteUrl": "https://github.com/mattmoo/cohortflow",
  "RemoteRef": "HEAD",
  "RemoteSha": "1d02d1087df5de09184e55fed756621caa66e0b9",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-28 20:31:31 UTC",
    "User": "root"
  },
  "Author": "Matthew Moore [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-0730-8027>)",
  "Maintainer": "Matthew Moore <matthew.moore@auckland.ac.nz>",
  "MD5sum": "0253565f60836b67ee5dabac178ba328",
  "_user": "mattmoo",
  "_type": "src",
  "_file": "cohortflow_0.0.0.9009.tar.gz",
  "_fileid": "353bf51d0e2e5c8ebc2b2c67d90aed88ffe8ae7fe1539c1d21796b5e5019c7c2",
  "_filesize": 172613,
  "_sha256": "353bf51d0e2e5c8ebc2b2c67d90aed88ffe8ae7fe1539c1d21796b5e5019c7c2",
  "_created": "2026-05-28T20:31:31.000Z",
  "_published": "2026-05-28T20:34:17.867Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78382627154,
      "time": 136,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7276686713"
    },
    {
      "job": 78382627149,
      "time": 137,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7276686919"
    },
    {
      "job": 78382627145,
      "time": 113,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7276679015"
    },
    {
      "job": 78382627168,
      "time": 89,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7276671413"
    },
    {
      "job": 78382180813,
      "time": 147,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7276641508"
    },
    {
      "job": 78382627151,
      "time": 115,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7276679829"
    },
    {
      "job": 78382627139,
      "time": 80,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7276668619"
    },
    {
      "job": 78382627162,
      "time": 73,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7276666585"
    },
    {
      "job": 78382627172,
      "time": 80,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7276668820"
    }
  ],
  "_buildurl": "https://github.com/r-universe/mattmoo/actions/runs/26600350019",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/mattmoo/cohortflow",
  "_commit": {
    "id": "1d02d1087df5de09184e55fed756621caa66e0b9",
    "author": "Matthew Moore <matthew.moore@auckland.ac.nz>",
    "committer": "Matthew Moore <matthew.moore@auckland.ac.nz>",
    "message": "fix: R CMD check clean — LICENSE, RoxygenNote 8.0.0, %||% compat, roxygen block fixes (v0.0.0.9009)\n",
    "time": 1779993039
  },
  "_maintainer": {
    "name": "Matthew Moore",
    "email": "matthew.moore@auckland.ac.nz",
    "login": "mattmoo",
    "orcid": "0000-0003-0730-8027",
    "description": "",
    "uuid": 20387030
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "yaml",
      "role": "Imports"
    },
    {
      "package": "flextable",
      "role": "Suggests"
    },
    {
      "package": "gt",
      "role": "Suggests"
    },
    {
      "package": "huxtable",
      "role": "Suggests"
    },
    {
      "package": "officer",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "mattmoo",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-14",
      "n": 4
    },
    {
      "week": "2026-22",
      "n": 14
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "mattmoo",
      "count": 21,
      "uuid": 20387030
    }
  ],
  "_userbio": {
    "uuid": 20387030,
    "type": "user",
    "name": "Matthew moore"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/cohortflow"
  },
  "_devurl": "https://github.com/mattmoo/cohortflow",
  "_searchresults": 3,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/cohortflow.html",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_exports": [
    "apply_criteria",
    "as_attrition_table",
    "as_attrition_tibble",
    "cf_criteria",
    "cf_criterion",
    "cf_hierarchy",
    "cohort",
    "exclude",
    "excluded",
    "export_criteria",
    "group_exclude",
    "group_include",
    "import_criteria",
    "include",
    "mock_cohortflow",
    "select_within"
  ],
  "_help": [
    {
      "page": "apply_criteria",
      "title": "Apply a criteria pipeline to a data frame",
      "topics": [
        "apply_criteria"
      ]
    },
    {
      "page": "as_attrition_table",
      "title": "Format an attrition table from a cohort flow object",
      "topics": [
        "as_attrition_table"
      ]
    },
    {
      "page": "as_attrition_tibble",
      "title": "Build an attrition tibble from a cohort flow object",
      "topics": [
        "as_attrition_tibble"
      ]
    },
    {
      "page": "cf_criteria",
      "title": "Create an eligibility criteria pipeline",
      "topics": [
        "cf_criteria"
      ]
    },
    {
      "page": "cf_criterion",
      "title": "Create a single cohort criterion",
      "topics": [
        "cf_criterion"
      ]
    },
    {
      "page": "cf_hierarchy",
      "title": "Declare the nesting hierarchy for a cohort",
      "topics": [
        "cf_hierarchy"
      ]
    },
    {
      "page": "cohort",
      "title": "Extract the surviving cohort from a flow object",
      "topics": [
        "cohort"
      ]
    },
    {
      "page": "exclude",
      "title": "Add an exclusion criterion to a criteria pipeline",
      "topics": [
        "exclude"
      ]
    },
    {
      "page": "excluded",
      "title": "Extract excluded rows from a flow object",
      "topics": [
        "excluded"
      ]
    },
    {
      "page": "export_criteria",
      "title": "Serialises a 'cf_criteria' object to a human-readable YAML file (or string). The schema is self-describing and can be re-imported with 'import_criteria()'.",
      "topics": [
        "export_criteria"
      ]
    },
    {
      "page": "group_exclude",
      "title": "Add a group-level exclusion criterion",
      "topics": [
        "group_exclude"
      ]
    },
    {
      "page": "group_include",
      "title": "Add a group-level inclusion criterion",
      "topics": [
        "group_include"
      ]
    },
    {
      "page": "import_criteria",
      "title": "Import a criteria pipeline from YAML",
      "topics": [
        "import_criteria"
      ]
    },
    {
      "page": "include",
      "title": "Add an inclusion criterion to a criteria pipeline",
      "topics": [
        "include"
      ]
    },
    {
      "page": "mock_cohortflow",
      "title": "Generate synthetic cohort data for testing and examples",
      "topics": [
        "mock_cohortflow"
      ]
    },
    {
      "page": "select_within",
      "title": "Select rows within groups",
      "topics": [
        "select_within"
      ]
    }
  ],
  "_readme": "https://github.com/mattmoo/cohortflow/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "dplyr",
    "generics",
    "glue",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "R6",
    "rlang",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr",
    "yaml"
  ],
  "_score": 2,
  "_indexed": true,
  "_nocasepkg": "cohortflow",
  "_universes": [
    "mattmoo"
  ],
  "_previous": "0.0.0.9008",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.0.9009",
      "date": "2026-05-28T20:33:46.000Z",
      "distro": "noble",
      "commit": "1d02d1087df5de09184e55fed756621caa66e0b9",
      "fileid": "63a7b45f72ba99cc95934b7ecc22f9be7c447d558b12a8129df3c3c71218b27b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mattmoo/actions/runs/26600350019"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.0.0.9009",
      "date": "2026-05-28T20:33:50.000Z",
      "distro": "noble",
      "commit": "1d02d1087df5de09184e55fed756621caa66e0b9",
      "fileid": "efe8959b6cdacf4042d6c0d3ecba418ed31d96d0c840c50169e3635ab7b3691d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mattmoo/actions/runs/26600350019"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.0.9009",
      "date": "2026-05-28T20:33:25.000Z",
      "commit": "1d02d1087df5de09184e55fed756621caa66e0b9",
      "fileid": "5a1cc766c5c0a56087ef82a29866b7b19d4ebc73405cba10d194ef6691b587da",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mattmoo/actions/runs/26600350019"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.0.0.9009",
      "date": "2026-05-28T20:33:03.000Z",
      "commit": "1d02d1087df5de09184e55fed756621caa66e0b9",
      "fileid": "7504e2a5419402dfdba127a322748cd5267dcc721f9dc5195410f31ac95f8e45",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mattmoo/actions/runs/26600350019"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.0.9009",
      "date": "2026-05-28T20:33:42.000Z",
      "commit": "1d02d1087df5de09184e55fed756621caa66e0b9",
      "fileid": "8d0939fb18f7d33df8ded355d74264675a9f20b9585704419e51c84565fad2bb",
      "status": "success",
      "buildurl": "https://github.com/r-universe/mattmoo/actions/runs/26600350019"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.0.9009",
      "date": "2026-05-28T20:32:46.000Z",
      "commit": "1d02d1087df5de09184e55fed756621caa66e0b9",
      "fileid": "d9f3e23dbec15d8b26f36c1e6515568f1abb32770dd34db4af9964f81b5ee650",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mattmoo/actions/runs/26600350019"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.0.9009",
      "date": "2026-05-28T20:32:41.000Z",
      "commit": "1d02d1087df5de09184e55fed756621caa66e0b9",
      "fileid": "980b6ec04eca8d2c68eec559cc1d4f1b0105e02974a2633172a2f6fd8b6ab95b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mattmoo/actions/runs/26600350019"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.0.0.9009",
      "date": "2026-05-28T20:32:47.000Z",
      "commit": "1d02d1087df5de09184e55fed756621caa66e0b9",
      "fileid": "0f4e85200cb125b172309f21d494ec715316af0f92f6eed3f84823888aa752fe",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mattmoo/actions/runs/26600350019"
    }
  ]
}