{
  "_id": "6a102a61acfb0bcc41c91f89",
  "Package": "NHSRwaitinglist",
  "Title": "Waiting List Metrics Using Queuing Theory",
  "Version": "0.1.2",
  "Authors@R": "c(\nperson(\"Neil\", \"Walton\", ,\"neil.walton@durham.ac.uk\", \"aut\", comment = c(ORCID =\"0000-0002-5241-9765\")),\nperson(\"Jacqueline\", \"Grout\", ,\"jacqueline.grout1@nhs.net\", \"ctb\"),\nperson(\"Zoë\", \"Turner\", , \"zoe.turner3@nhs.net\", \"ctb\", comment = c(ORCID = \"0000-0003-1033-9158\")),\nperson(\"Matt\", \"Dray\", , \"matt.dray@nhs.net\", \"aut\"),\nperson(\"Paul\", \"Fenton\", , \"paul.fenton@nca.nhs.uk\", \"ctb\"),\nperson(\"Peter\", \"Shakeshaft\", , \"peter.shakeshaft1@nhs.net\", \"ctb\"),\nperson(\"David\", \"Foord\", , \"david.foord1@nhs.net\", \"ctb\"),\nperson(\"Tom\", \"Smith\", ,\"thomas.smith103@nhs.net\", \"aut\"),\nperson(\"Chris\", \"Mainey\", ,\"c.mainey1@nhs.net\", c(\"cre\",\"aut\"), comment = c(ORCID =\"0000-0002-3018-6171\")),\nperson(\"Mohammed\", \"Mohammed\", , \"m.mohammed2@nhs.net\", \"ctb\"),\nperson(\"NHS-R community\", email = \"nhs.rcommunity@nhs.net\", role = \"cph\")\n)",
  "Maintainer": "Chris Mainey <c.mainey1@nhs.net>",
  "Description": "Waiting list management using queuing theory to analyse,\npredict and manage queues, based on the approach described in\nFong et al. (2022) <doi:10.1101/2022.08.23.22279117>.  Aimed at\nUK National Health Service (NHS) applications, waiting list\nsummary statistics, target-value calculations, waiting list\nsimulation, and scheduling functions are included.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "VignetteBuilder": "knitr",
  "URL": "https://nhs-r-community.github.io/NHSRwaitinglist/,\nhttps://github.com/nhs-r-community/NHSRwaitinglist",
  "BugReports": "https://github.com/nhs-r-community/NHSRwaitinglist/issues",
  "Config/testthat/edition": "3",
  "LazyData": "true",
  "Language": "en-GB",
  "Config/pak/sysreqs": "libssl-dev",
  "Repository": "https://nhs-r-community.r-universe.dev",
  "Date/Publication": "2025-07-15 13:11:51 UTC",
  "RemoteUrl": "https://github.com/nhs-r-community/NHSRwaitinglist",
  "RemoteRef": "main",
  "RemoteSha": "02e746b44e5ac9b34cdfcab0999c912869536da3",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-13 07:04:17 UTC",
    "User": "root"
  },
  "Author": "Neil Walton [aut] (ORCID: <https://orcid.org/0000-0002-5241-9765>),\nJacqueline Grout [ctb],\nZoë Turner [ctb] (ORCID: <https://orcid.org/0000-0003-1033-9158>),\nMatt Dray [aut],\nPaul Fenton [ctb],\nPeter Shakeshaft [ctb],\nDavid Foord [ctb],\nTom Smith [aut],\nChris Mainey [cre, aut] (ORCID:\n<https://orcid.org/0000-0002-3018-6171>),\nMohammed Mohammed [ctb],\nNHS-R community [cph]",
  "MD5sum": "0dab5be1063f82091dfca6af32431ead",
  "_user": "nhs-r-community",
  "_type": "src",
  "_file": "NHSRwaitinglist_0.1.2.tar.gz",
  "_fileid": "8d1d78e7fb0281dfefdbff9c00ee1c0d3c57453d711ed06627bb070982d253eb",
  "_filesize": 1112870,
  "_sha256": "8d1d78e7fb0281dfefdbff9c00ee1c0d3c57453d711ed06627bb070982d253eb",
  "_created": "2026-05-13T07:04:17.000Z",
  "_published": "2026-05-22T10:05:21.700Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77358324735,
      "time": 155,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6963682427"
    },
    {
      "job": 77358324734,
      "time": 154,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6963681893"
    },
    {
      "job": 77358325248,
      "time": 102,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6963767707"
    },
    {
      "job": 77358324829,
      "time": 130,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6963790189"
    },
    {
      "job": 77358324168,
      "time": 220,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6963637278"
    },
    {
      "job": 77358324010,
      "time": 115,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7157934855"
    },
    {
      "job": 77358324909,
      "time": 103,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6963668171"
    },
    {
      "job": 77358324916,
      "time": 102,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6963667135"
    },
    {
      "job": 77358324938,
      "time": 109,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6963668545"
    }
  ],
  "_buildurl": "https://github.com/r-universe/nhs-r-community/actions/runs/25783687277",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/nhs-r-community/NHSRwaitinglist",
  "_commit": {
    "id": "02e746b44e5ac9b34cdfcab0999c912869536da3",
    "author": "Chris Mainey <39626211+chrismainey@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #141 from chrismainey/main\n\nUpdated broken links for resubmission",
    "time": 1752585111
  },
  "_maintainer": {
    "name": "Chris Mainey",
    "email": "c.mainey1@nhs.net",
    "login": "chrismainey",
    "orcid": "0000-0002-3018-6171",
    "uuid": 39626211
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "randomNames",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "nhs-r-community",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-20",
      "n": 2
    },
    {
      "week": "2025-27",
      "n": 3
    },
    {
      "week": "2025-28",
      "n": 1
    },
    {
      "week": "2025-29",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v0.1.2",
      "date": "2025-07-15"
    }
  ],
  "_topics": [
    "nhs",
    "nhs-oa",
    "nhs-r-community",
    "queuing-theory",
    "waiting-list"
  ],
  "_stars": 23,
  "_contributors": [
    {
      "user": "chrismainey",
      "count": 162,
      "uuid": 39626211
    },
    {
      "user": "thomuk",
      "count": 85,
      "uuid": 10871342
    },
    {
      "user": "davidfoord1",
      "count": 66,
      "uuid": 140633967
    },
    {
      "user": "jacgrout",
      "count": 36,
      "uuid": 103451105
    },
    {
      "user": "neilwalton",
      "count": 34,
      "uuid": 53338269
    },
    {
      "user": "lextuga007",
      "count": 14,
      "uuid": 39963221
    },
    {
      "user": "matt-dray",
      "count": 7,
      "uuid": 18232097
    },
    {
      "user": "petersnhs",
      "count": 6,
      "uuid": 67410797
    },
    {
      "user": "chrisbeeley",
      "count": 1,
      "uuid": 1259867
    }
  ],
  "_userbio": {
    "uuid": 53170984,
    "type": "organization",
    "name": "NHS-R Community",
    "description": "A community for analysts and data scientists working in the UK's Health Sector and using R"
  },
  "_downloads": {
    "count": 200,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/NHSRwaitinglist"
  },
  "_devurl": "https://github.com/nhs-r-community/nhsrwaitinglist",
  "_pkgdown": "https://nhs-r-community.github.io/NHSRwaitinglist/",
  "_searchresults": 28,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/NHSRwaitinglist.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/nhs-r-community/nhsrwaitinglist",
  "_realowner": "nhs-r-community",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2025-04-03"
    },
    {
      "version": "0.1.1",
      "date": "2025-04-29"
    },
    {
      "version": "0.1.2",
      "date": "2025-07-15"
    }
  ],
  "_exports": [
    "calc_queue_load",
    "calc_relief_capacity",
    "calc_target_capacity",
    "calc_target_mean_wait",
    "calc_target_queue_size",
    "calc_waiting_list_pressure",
    "create_waiting_list",
    "sim_patients",
    "sim_schedule",
    "wl_insert",
    "wl_join",
    "wl_queue_size",
    "wl_referral_stats",
    "wl_removal_stats",
    "wl_schedule",
    "wl_simulator",
    "wl_stats"
  ],
  "_datasets": [
    {
      "name": "demographic_data",
      "title": "demographic data",
      "object": "demographic_data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "hospital_site",
        "main_spec_code",
        "opcs4_code",
        "n",
        "mean_arrival_rate",
        "mean_wait",
        "start_date",
        "sd",
        "rott"
      ],
      "rows": 5,
      "table": true,
      "tojson": true
    },
    {
      "name": "opcs4",
      "title": "OPCS4 data",
      "object": "opcs4",
      "class": [
        "data.frame"
      ],
      "fields": [
        "code_1digit",
        "name_1digit",
        "code_3digit",
        "name_3digit",
        "code_4digit",
        "name_4digit",
        "node_id",
        "parent_id",
        "selectable"
      ],
      "rows": 12251,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "calc_queue_load",
      "title": "Calculate Queue Load",
      "topics": [
        "calc_queue_load"
      ]
    },
    {
      "page": "calc_relief_capacity",
      "title": "Relief Capacity",
      "topics": [
        "calc_relief_capacity"
      ]
    },
    {
      "page": "calc_target_capacity",
      "title": "Target Capacity",
      "topics": [
        "calc_target_capacity"
      ]
    },
    {
      "page": "calc_target_mean_wait",
      "title": "Average Waiting Time",
      "topics": [
        "calc_target_mean_wait"
      ]
    },
    {
      "page": "calc_target_queue_size",
      "title": "Target Queue Size",
      "topics": [
        "calc_target_queue_size"
      ]
    },
    {
      "page": "calc_waiting_list_pressure",
      "title": "Calculate Waiting List Pressure",
      "topics": [
        "calc_waiting_list_pressure"
      ]
    },
    {
      "page": "create_waiting_list",
      "title": "Create Waiting List",
      "topics": [
        "create_waiting_list"
      ]
    },
    {
      "page": "demographic_data",
      "title": "demographic data",
      "topics": [
        "demographic_data"
      ]
    },
    {
      "page": "opcs4",
      "title": "OPCS4 data",
      "topics": [
        "opcs4"
      ]
    },
    {
      "page": "sim_patients",
      "title": "Generator of NHS patients",
      "topics": [
        "sim_patients"
      ]
    },
    {
      "page": "sim_schedule",
      "title": "Generator a list of dates to schedule",
      "topics": [
        "sim_schedule"
      ]
    },
    {
      "page": "wl_insert",
      "title": "Insert new referrals into the waiting list",
      "topics": [
        "wl_insert"
      ]
    },
    {
      "page": "wl_join",
      "title": "Join two waiting list",
      "topics": [
        "wl_join"
      ]
    },
    {
      "page": "wl_queue_size",
      "title": "Queue size calculator",
      "topics": [
        "wl_queue_size"
      ]
    },
    {
      "page": "wl_referral_stats",
      "title": "Calculate some stats about referrals",
      "topics": [
        "wl_referral_stats"
      ]
    },
    {
      "page": "wl_removal_stats",
      "title": "Calculate some stats about removals",
      "topics": [
        "wl_removal_stats"
      ]
    },
    {
      "page": "wl_schedule",
      "title": "A simple operation scheduler",
      "topics": [
        "wl_schedule"
      ]
    },
    {
      "page": "wl_simulator",
      "title": "Simple simulator to create a waiting list",
      "topics": [
        "wl_simulator"
      ]
    },
    {
      "page": "wl_stats",
      "title": "Calculate some stats about the waiting list",
      "topics": [
        "wl_stats"
      ]
    }
  ],
  "_readme": "https://github.com/nhs-r-community/NHSRwaitinglist/raw/main/README.md",
  "_rundeps": [
    "cli",
    "crayon",
    "curl",
    "data.table",
    "dplyr",
    "generics",
    "glue",
    "jsonlite",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "pkgsearch",
    "R6",
    "randomNames",
    "rlang",
    "tibble",
    "tidyselect",
    "toOrdinal",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "waiting_list_sim.Rmd",
      "filename": "waiting_list_sim.html",
      "title": "Exploring waiting list management strategies with simulation",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Scenarios",
        "Set-up",
        "1. Bringing down a waiting list",
        "What is the target for this service?",
        "Options for management",
        "1. Raising capacity",
        "2. Reducing demand",
        "2. Our waiting list can afford to grow",
        "3. How our list will change with referral growth / service change",
        "4. Estimating uncertainty via Monte Carlo methods"
      ],
      "created": "2025-04-28 10:43:47",
      "modified": "2025-05-14 15:33:05",
      "commits": 3
    },
    {
      "source": "three_example_waiting_lists.Rmd",
      "filename": "three_example_waiting_lists.html",
      "title": "Three example waiting lists",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Anatomy of a waiting list",
        "1. A growing waiting list",
        "Referral statistics",
        "Removal statistics",
        "Overall stats",
        "2. A finely balanced waiting list",
        "3. A waiting list with sufficient capacity",
        "Conclusion"
      ],
      "created": "2024-07-21 17:53:50",
      "modified": "2025-03-27 17:22:25",
      "commits": 3
    },
    {
      "source": "example_walkthrough.Rmd",
      "filename": "example_walkthrough.html",
      "title": "Walkthrough of waiting list functions",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Setup",
        "Demand, capacity, and load",
        "Waiting list targets",
        "Target queue length",
        "Target queue size",
        "Relief capacity",
        "Target capacity",
        "Waiting list pressure",
        "Summary",
        "Further reading"
      ],
      "created": "2023-12-12 11:28:45",
      "modified": "2025-04-28 10:43:47",
      "commits": 9
    }
  ],
  "_score": 7.4901271047354,
  "_indexed": true,
  "_nocasepkg": "nhsrwaitinglist",
  "_universes": [
    "nhs-r-community",
    "chrismainey"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-05-13T07:06:41.000Z",
      "distro": "noble",
      "commit": "02e746b44e5ac9b34cdfcab0999c912869536da3",
      "fileid": "4cc67ea565617ee8357727ec02de35b72430f9c944aea66cbabef75c6ffb955b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/nhs-r-community/actions/runs/25783687277"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-05-13T07:06:36.000Z",
      "distro": "noble",
      "commit": "02e746b44e5ac9b34cdfcab0999c912869536da3",
      "fileid": "a67f6eecab5ac35d24c81768ede33baf28c8676973da3c12b7e0ee5614e650c7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/nhs-r-community/actions/runs/25783687277"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-05-13T07:11:39.000Z",
      "commit": "02e746b44e5ac9b34cdfcab0999c912869536da3",
      "fileid": "a49fedc57ff118cd374f94fd8d9894117a34579dc4c3bdd91ad8d413f34c0e13",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/nhs-r-community/actions/runs/25783687277"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-05-13T07:12:49.000Z",
      "commit": "02e746b44e5ac9b34cdfcab0999c912869536da3",
      "fileid": "94f23a0e823ff9399ac8d7d9e35077a59443e2a511f14b9e74c56bba6443f255",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/nhs-r-community/actions/runs/25783687277"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-05-13T07:05:45.000Z",
      "commit": "02e746b44e5ac9b34cdfcab0999c912869536da3",
      "fileid": "ebb118e8b3fdfd75d3213b48f9f3e2bf8fb431034845967f5b38bcbc2cce77a3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/nhs-r-community/actions/runs/25783687277"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-05-13T07:05:40.000Z",
      "commit": "02e746b44e5ac9b34cdfcab0999c912869536da3",
      "fileid": "10869a483cdf11de7c9968cbc49a6e3cdab3c23ba44ff5f188429c249b527632",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/nhs-r-community/actions/runs/25783687277"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-05-13T07:05:46.000Z",
      "commit": "02e746b44e5ac9b34cdfcab0999c912869536da3",
      "fileid": "1829e5c991fa2283f1b911cc23905131d9ab78cd02a6abd95abaf0137e317d25",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/nhs-r-community/actions/runs/25783687277"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.2",
      "date": "2026-05-22T10:05:04.000Z",
      "commit": "02e746b44e5ac9b34cdfcab0999c912869536da3",
      "fileid": "b5adf7fd0b6a50b0d8d3937d15533b235ced15d68bc9070f04ef8c11698da22a",
      "status": "success",
      "buildurl": "https://github.com/r-universe/nhs-r-community/actions/runs/25783687277"
    }
  ]
}