{
  "_id": "6a16973eacfb0bcc41d7c385",
  "Package": "epidm",
  "Version": "1.0.6",
  "Title": "UK Epidemiological Data Management",
  "Authors@R": "c(\nperson(\"Alex\", \"Bhattacharya\", email = \"alex.bhatt@gmail.com\", role = c(\"aut\", \"cre\")),\nperson(\"Alice\", \"Graham\", email = \"graham.alice@gmail.com\", role = c(\"aut\"), comment = c(ORCID = \"0000-0003-3000-2771\")),\nperson(\"Harshana\", \"Liyanage\", email = \"harshanal@gmail.com\", role = c(\"aut\"), comment = c(ORCID = \"0000-0001-9738-6349\")),\nperson(\"Frederick\", \"Sloots\", email = \"frederick.sloots@ukhsa.gov.uk\", role = c(\"aut\"), comment = c(ORCID = \"0009-0006-4927-8937\")),\nperson(\"Emma\", \"Parker\", email = \"emma.k.parker@ukhsa.gov.uk\", role = c(\"aut\"), comment = c(ORCID = \"0009-0007-8485-5303\"))\n)",
  "Description": "Contains utilities and functions for the cleaning,\nprocessing and management of patient level public health data\nfor surveillance and analysis held by the UK Health Security\nAgency, UKHSA.",
  "URL": "https://github.com/ukhsa-collaboration/epidm",
  "BugReports": "https://github.com/ukhsa-collaboration/epidm/issues",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "Repository": "https://ukhsa-collaboration.r-universe.dev",
  "Date/Publication": "2026-02-19 10:39:04 UTC",
  "RemoteUrl": "https://github.com/ukhsa-collaboration/epidm",
  "RemoteRef": "HEAD",
  "RemoteSha": "e0d0ac04a1ddd2f3569d6b634393e24e073ac555",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-27 06:58:24 UTC",
    "User": "root"
  },
  "Author": "Alex Bhattacharya [aut, cre],\nAlice Graham [aut] (ORCID: <https://orcid.org/0000-0003-3000-2771>),\nHarshana Liyanage [aut] (ORCID:\n<https://orcid.org/0000-0001-9738-6349>),\nFrederick Sloots [aut] (ORCID: <https://orcid.org/0009-0006-4927-8937>),\nEmma Parker [aut] (ORCID: <https://orcid.org/0009-0007-8485-5303>)",
  "Maintainer": "Alex Bhattacharya <alex.bhatt@gmail.com>",
  "MD5sum": "e1160a4633dbb1dec368e466b4c216a0",
  "_user": "ukhsa-collaboration",
  "_type": "src",
  "_file": "epidm_1.0.6.tar.gz",
  "_fileid": "faa467981804a9d667f79541533c6b3644140717b7358b759703876324c727c4",
  "_filesize": 683581,
  "_sha256": "faa467981804a9d667f79541533c6b3644140717b7358b759703876324c727c4",
  "_created": "2026-05-27T06:58:24.000Z",
  "_published": "2026-05-27T07:03:26.895Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78024240012,
      "time": 189,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7233931240"
    },
    {
      "job": 78024240011,
      "time": 163,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7233923550"
    },
    {
      "job": 78024240008,
      "time": 185,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7233946487"
    },
    {
      "job": 78024240013,
      "time": 159,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7233938252"
    },
    {
      "job": 78023843774,
      "time": 181,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7233879149"
    },
    {
      "job": 78024240010,
      "time": 138,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7233916347"
    },
    {
      "job": 78024240019,
      "time": 120,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7233912177"
    },
    {
      "job": 78024240014,
      "time": 128,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7233913916"
    },
    {
      "job": 78024240045,
      "time": 121,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7233912508"
    }
  ],
  "_buildurl": "https://github.com/r-universe/ukhsa-collaboration/actions/runs/26495857100",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/ukhsa-collaboration/epidm",
  "_commit": {
    "id": "e0d0ac04a1ddd2f3569d6b634393e24e073ac555",
    "author": "EmmaKParker <117925650+EmmaKParker@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Updated DESCRIPTION with Emma Parker as author",
    "time": 1771497544
  },
  "_maintainer": {
    "name": "Alex Bhattacharya",
    "email": "alex.bhatt@gmail.com",
    "login": "alexbhatt",
    "twitter": "@alexbhatt",
    "description": "Principal Epidemiologist and Field Service Head of Data Science. Primarily working in R.",
    "uuid": 33866404
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.4.0",
      "role": "Depends"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "DBI",
      "role": "Imports"
    },
    {
      "package": "odbc",
      "role": "Imports"
    },
    {
      "package": "phonics",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "readr",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "stringi",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "lubridate",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Imports"
    },
    {
      "package": "rmarkdown",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "DiagrammeR",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "patrick",
      "role": "Suggests"
    }
  ],
  "_owner": "ukhsa-collaboration",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-44",
      "n": 1
    },
    {
      "week": "2025-46",
      "n": 2
    },
    {
      "week": "2025-47",
      "n": 1
    },
    {
      "week": "2025-48",
      "n": 6
    },
    {
      "week": "2025-49",
      "n": 5
    },
    {
      "week": "2025-50",
      "n": 5
    },
    {
      "week": "2026-04",
      "n": 1
    },
    {
      "week": "2026-05",
      "n": 2
    },
    {
      "week": "2026-06",
      "n": 1
    },
    {
      "week": "2026-07",
      "n": 2
    },
    {
      "week": "2026-08",
      "n": 14
    }
  ],
  "_tags": [
    {
      "name": "1.0.6",
      "date": "2026-02-19"
    }
  ],
  "_stars": 6,
  "_contributors": [
    {
      "user": "f-sloots",
      "count": 71,
      "uuid": 175831821
    },
    {
      "user": "emmakparker",
      "count": 53,
      "uuid": 117925650
    },
    {
      "user": "alexbhatt",
      "count": 45,
      "uuid": 33866404
    },
    {
      "user": "harshana-ukhsa",
      "count": 43,
      "uuid": 148277171
    },
    {
      "user": "alicegraham",
      "count": 8,
      "uuid": 153922718
    },
    {
      "user": "harshanal",
      "count": 3,
      "uuid": 270178
    }
  ],
  "_userbio": {
    "uuid": 116561398,
    "type": "organization",
    "name": "ukhsa-collaboration"
  },
  "_downloads": {
    "count": 273,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/epidm"
  },
  "_devurl": "https://github.com/ukhsa-collaboration/epidm",
  "_searchresults": 6,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/epidm.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/ukhsa-collaboration/epidm",
  "_realowner": "ukhsa-collaboration",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.2",
      "date": "2022-02-15"
    },
    {
      "version": "1.0.3",
      "date": "2022-07-06"
    },
    {
      "version": "1.0.4",
      "date": "2022-07-12"
    },
    {
      "version": "1.0.6",
      "date": "2026-02-25"
    }
  ],
  "_exports": [
    "cip_spells",
    "csv_from_zip",
    "group_time",
    "inpatient_codes",
    "link_ae_inpatient",
    "lookup_recode",
    "proxy_episode_dates",
    "respeciate_generic",
    "sql_clean",
    "sql_connect",
    "sql_read",
    "sql_write",
    "uk_patient_id",
    "valid_nhs"
  ],
  "_datasets": [
    {
      "name": "genus_gram_stain",
      "title": "Bacterial Genus Gram Stain Lookup Table",
      "object": "genus_gram_stain",
      "class": [
        "data.frame"
      ],
      "fields": [
        "organism_genus",
        "gram_stain",
        "gram_positive",
        "gram_negative"
      ],
      "rows": 250,
      "table": true,
      "tojson": true
    },
    {
      "name": "group_ecds_discharge_destination",
      "title": "A&E attendance discharge destination",
      "object": "group_ecds_discharge_destination",
      "class": [
        "data.frame"
      ],
      "fields": [
        "code",
        "destination_code"
      ],
      "rows": 20,
      "table": true,
      "tojson": true
    },
    {
      "name": "group_inpatient_admission_method",
      "title": "Inpatient admission methods",
      "object": "group_inpatient_admission_method",
      "class": [
        "data.frame"
      ],
      "fields": [
        "code",
        "admission_method"
      ],
      "rows": 18,
      "table": true,
      "tojson": true
    },
    {
      "name": "group_inpatient_discharge_destination",
      "title": "Inpatient discharge destination",
      "object": "group_inpatient_discharge_destination",
      "class": [
        "data.frame"
      ],
      "fields": [
        "code",
        "discharge_destination"
      ],
      "rows": 22,
      "table": true,
      "tojson": true
    },
    {
      "name": "lab_data",
      "title": "Synthetic Lab Data for epidm",
      "object": "lab_data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "nhs_number",
        "local_patient_identifier",
        "patient_birth_date",
        "sex",
        "surname",
        "forename",
        "organism_species_name",
        "specimen_date",
        "specimen_type",
        "lab_code",
        "local_authority_name",
        "local_authority_code",
        "postcode"
      ],
      "rows": 10,
      "table": true,
      "tojson": true
    },
    {
      "name": "respeciate_organism",
      "title": "Respeciated organisms",
      "object": "respeciate_organism",
      "class": [
        "data.frame"
      ],
      "fields": [
        "previous_organism_name",
        "organism_species_name",
        "organism_genus_name",
        "genus_change",
        "genus_all_species"
      ],
      "rows": 60,
      "table": true,
      "tojson": true
    },
    {
      "name": "specimen_type_grouping",
      "title": "Specimen type grouping",
      "object": "specimen_type_grouping",
      "class": [
        "data.frame"
      ],
      "fields": [
        "specimen_type",
        "specimen_group"
      ],
      "rows": 143,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "cip_spells",
      "title": "Continuous Inpatient (CIP) Spells",
      "topics": [
        "cip_spells"
      ]
    },
    {
      "page": "csv_from_zip",
      "title": "Download a csv from a zip",
      "topics": [
        "csv_from_zip"
      ]
    },
    {
      "page": "genus_gram_stain",
      "title": "Bacterial Genus Gram Stain Lookup Table",
      "topics": [
        "genus_gram_stain"
      ]
    },
    {
      "page": "group_ecds_discharge_destination",
      "title": "A&E attendance discharge destination",
      "topics": [
        "group_ecds_discharge_destination"
      ]
    },
    {
      "page": "group_inpatient_admission_method",
      "title": "Inpatient admission methods",
      "topics": [
        "group_inpatient_admission_method"
      ]
    },
    {
      "page": "group_inpatient_discharge_destination",
      "title": "Inpatient discharge destination",
      "topics": [
        "group_inpatient_discharge_destination"
      ]
    },
    {
      "page": "group_time",
      "title": "Grouping of intervals or events that occur close together in time",
      "topics": [
        "group_time"
      ]
    },
    {
      "page": "hospital_in_out_dates",
      "title": "Hospital IN/OUT dates",
      "topics": [
        "hospital_in_out_dates"
      ]
    },
    {
      "page": "inpatient_codes",
      "title": "Inpatient Codes cleanup",
      "topics": [
        "inpatient_codes"
      ]
    },
    {
      "page": "lab_data",
      "title": "Synthetic Lab Data for epidm",
      "topics": [
        "lab_data"
      ]
    },
    {
      "page": "lookup_recode",
      "title": "Lookup table switch handler",
      "topics": [
        "lookup_recode"
      ]
    },
    {
      "page": "proxy_episode_dates",
      "title": "Clean and Impute HES/SUS Episode Start and End Dates",
      "topics": [
        "proxy_episode_dates"
      ]
    },
    {
      "page": "respeciate_generic",
      "title": "Respeciate unspecified samples",
      "topics": [
        "respeciate_generic"
      ]
    },
    {
      "page": "respeciate_organism",
      "title": "Respeciated organisms",
      "topics": [
        "respeciate_organism"
      ]
    },
    {
      "page": "specimen_type_grouping",
      "title": "Specimen type grouping",
      "topics": [
        "specimen_type_grouping"
      ]
    },
    {
      "page": "sql_clean",
      "title": "Clean and Read a SQL query",
      "topics": [
        "sql_clean"
      ]
    },
    {
      "page": "sql_connect",
      "title": "Connect to a SQL database",
      "topics": [
        "sql_connect"
      ]
    },
    {
      "page": "sql_read",
      "title": "Read a table from a SQL database",
      "topics": [
        "sql_read"
      ]
    },
    {
      "page": "sql_write",
      "title": "Write a table to a SQL database",
      "topics": [
        "sql_write"
      ]
    },
    {
      "page": "uk_patient_id",
      "title": "Patient ID record grouping",
      "topics": [
        "uk_patient_id"
      ]
    },
    {
      "page": "valid_nhs",
      "title": "NHS Number Validity Check",
      "topics": [
        "valid_nhs"
      ]
    }
  ],
  "_pkglogo": "https://github.com/ukhsa-collaboration/epidm/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/ukhsa-collaboration/epidm/raw/HEAD/README.md",
  "_rundeps": [
    "base64enc",
    "BH",
    "bit",
    "bit64",
    "blob",
    "bslib",
    "cachem",
    "cli",
    "clipr",
    "cpp11",
    "crayon",
    "data.table",
    "DBI",
    "DiagrammeR",
    "digest",
    "dplyr",
    "evaluate",
    "farver",
    "fastmap",
    "fontawesome",
    "fs",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "highr",
    "hms",
    "htmltools",
    "htmlwidgets",
    "igraph",
    "isoband",
    "jquerylib",
    "jsonlite",
    "knitr",
    "labeling",
    "lattice",
    "lifecycle",
    "lubridate",
    "magrittr",
    "Matrix",
    "memoise",
    "mime",
    "odbc",
    "phonics",
    "pillar",
    "pkgconfig",
    "prettyunits",
    "progress",
    "purrr",
    "R6",
    "rappdirs",
    "RColorBrewer",
    "Rcpp",
    "readr",
    "rlang",
    "rmarkdown",
    "rstudioapi",
    "S7",
    "sass",
    "scales",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "tinytex",
    "tzdb",
    "utf8",
    "vctrs",
    "viridisLite",
    "visNetwork",
    "vroom",
    "withr",
    "xfun",
    "yaml"
  ],
  "_vignettes": [
    {
      "source": "epidm-function-usage.Rmd",
      "filename": "epidm-function-usage.html",
      "title": "Guide: Staged Patient Matching and Time-based Episode Grouping with EpiDM",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "1. uk_patient_id() function",
        "Input Requirements",
        "Example usage",
        "2. group_time() function",
        "Purpose",
        "Using uk_patient_id() and group_time() together with SGSS and CIMS data"
      ],
      "created": "2026-02-06 14:17:07",
      "modified": "2026-02-16 16:31:49",
      "commits": 3
    }
  ],
  "_score": 6.217483944213907,
  "_indexed": true,
  "_nocasepkg": "epidm",
  "_universes": [
    "ukhsa-collaboration",
    "alexbhatt"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.6",
      "date": "2026-05-27T07:01:12.000Z",
      "distro": "noble",
      "commit": "e0d0ac04a1ddd2f3569d6b634393e24e073ac555",
      "fileid": "863d66add6ebb23cfbb3de7dad95fe5245719d0d21626b9d57bd17cf321d349d",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/ukhsa-collaboration/actions/runs/26495857100"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.6",
      "date": "2026-05-27T07:00:50.000Z",
      "distro": "noble",
      "commit": "e0d0ac04a1ddd2f3569d6b634393e24e073ac555",
      "fileid": "661ed5aac4582f1a7a16c123a2e4f3b62cd8b2be41a126edf69b59457808762b",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/ukhsa-collaboration/actions/runs/26495857100"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.6",
      "date": "2026-05-27T07:02:15.000Z",
      "commit": "e0d0ac04a1ddd2f3569d6b634393e24e073ac555",
      "fileid": "f061d967f057e28c5498ef72b43ab8d3ab284a65e0b53878312613b1695db2aa",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/ukhsa-collaboration/actions/runs/26495857100"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.6",
      "date": "2026-05-27T07:01:44.000Z",
      "commit": "e0d0ac04a1ddd2f3569d6b634393e24e073ac555",
      "fileid": "836ff0e7dde36d8a97f4bebd13b020f752e153f135e6adab7d16dd4ffbe81411",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/ukhsa-collaboration/actions/runs/26495857100"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.6",
      "date": "2026-05-27T07:00:57.000Z",
      "commit": "e0d0ac04a1ddd2f3569d6b634393e24e073ac555",
      "fileid": "4ed3e5bfdd362df5d6b39346a14c78698cc2b69036a474e089046e33d9460ed3",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ukhsa-collaboration/actions/runs/26495857100"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.6",
      "date": "2026-05-27T07:00:01.000Z",
      "commit": "e0d0ac04a1ddd2f3569d6b634393e24e073ac555",
      "fileid": "95dd67a8d3bdb04036dced627ff11d90fb90dbdc002b2068fd08f828c9cc57df",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/ukhsa-collaboration/actions/runs/26495857100"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.6",
      "date": "2026-05-27T07:00:13.000Z",
      "commit": "e0d0ac04a1ddd2f3569d6b634393e24e073ac555",
      "fileid": "35efe3e82203142f03fb3127b328491d4ae2af1f2f48c4a6a950d8c11d354174",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/ukhsa-collaboration/actions/runs/26495857100"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0.6",
      "date": "2026-05-27T07:00:02.000Z",
      "commit": "e0d0ac04a1ddd2f3569d6b634393e24e073ac555",
      "fileid": "27fc23ba919af277e129192eef52c94f49a0e2974afdf7f5943db4752fd0cb76",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/ukhsa-collaboration/actions/runs/26495857100"
    }
  ]
}