{"id":23421147,"url":"https://github.com/nhsdigital/ncdes","last_synced_at":"2025-07-28T22:33:37.650Z","repository":{"id":141917017,"uuid":"547199646","full_name":"NHSDigital/ncdes","owner":"NHSDigital","description":"Code used to produce the Network Contract Directed Enhanced Service publication","archived":false,"fork":false,"pushed_at":"2024-11-25T12:15:11.000Z","size":19966,"stargazers_count":2,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-11-25T12:33:28.041Z","etag":null,"topics":["nhs-digital-gpes","nhs-digital-ncdes","nhs-digital-publication"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NHSDigital.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.txt","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"supporting_docs/CODEOWNERS.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-07T09:42:36.000Z","updated_at":"2024-11-25T12:10:34.000Z","dependencies_parsed_at":"2024-06-03T18:45:15.112Z","dependency_job_id":null,"html_url":"https://github.com/NHSDigital/ncdes","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NHSDigital%2Fncdes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NHSDigital%2Fncdes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NHSDigital%2Fncdes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NHSDigital%2Fncdes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NHSDigital","download_url":"https://codeload.github.com/NHSDigital/ncdes/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230903878,"owners_count":18297817,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nhs-digital-gpes","nhs-digital-ncdes","nhs-digital-publication"],"created_at":"2024-12-23T02:14:10.814Z","updated_at":"2025-07-28T22:33:37.643Z","avatar_url":"https://github.com/NHSDigital.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e Warning: This is the README for the publically accessible version of the NCDes package. If you are an internal analyst please don't use the below instructions to run the publication process.\n\n\u003cp\u003e\u0026nbsp;\u003c/p\u003e\n\nRepository owner: General Practice Data, Extracts, Specifications and Analysis (GPDESA) Team\n\nEmail: england.gpses@nhs.net\n\nTo contact us raise an issue on Github or via email and we will respond promptly.\n\n\u003cp\u003e\u0026nbsp;\u003c/p\u003e\n\n# NCDes package\n\nThis is a redacted version of the code used to produce the NCDes publicatons. The publications can be found here:\n\nhttps://digital.nhs.uk/data-and-information/publications/statistical/mi-network-contract-des\n\n\u003cp\u003e\u0026nbsp;\u003c/p\u003e\n\n## Creating a file structure \n\nFirstly, clone the repository to a location on your machine.\n\nTo run this process locally you will need to create the below file structure on your machine and insert the provided files in the 'public_meta_data' folder as instructed in the 'Instructions for producing publication' steps.\n\n```\nroot\n|\n|---Input\n|   |---Current\n|   |   |---ncdes_synthetic_data.csv\n|   |---Archive\n|   |---CQRS_files\n|       |---NCD_CQRS_Metadata_Mapping.csv\n|       |---NCD_metadata.csv\n|\n|---Output\n|   |---Automated Checks\n|   |   |---Missing Indicators History.csv\n|   |   |---Missing Measures History.csv\n|   |   |---Unexpected Indicators History.csv\n|   |   |---Unexpected Measures History.csv\n|   |---NCD_yy_yy\n\n```\n\n\u003cp\u003e\u0026nbsp;\u003c/p\u003e\n\n## Instructions for publication production\nAfter the above set up steps have been completed you can follow the below instructions to create the publication. Please note that you will not be able to run the code as this requires access to a private server. The data on the private server contains reference data that is used for mapping purposes. The reference tables used contain data from the [epraccur file](https://digital.nhs.uk/services/organisation-data-service/file-downloads/gp-and-gp-practice-related-data) and the [ONS code history database](https://www.ons.gov.uk/methodology/geography/geographicalproducts/namescodesandlookups/codehistorydatabasechd)\n\n1) Review the config file and edit the paramaters as necessary e.g. edit the root directory value so that it matches the root of the directory that you set up. Make use of escape characters and end path with a double \"\\\\\\\\\" e.g. \"\\\\\\\\\\\\\\example\\\\\\root\\\\\\directory\\\\\\\\\".\n\n2) Move the 'ncdes_synthetic_data.csv' from the 'public_meta_data' folder into your '{root_directory}\\Input\\Current' folder.\n\n3) Next you will need to ensure that any files within the public metadata folder are populated appropriately and moved to the appropriate location as per the file structure above.\n\n4) Double click \"run_ncdes.bat\" to run the job. The job will begin by downloading the relevant python packages into a virtual environment and then running the job. The output of the job can then be found in the '{root_directory}\\Output\\YY_YY' folder. This will open automatically once the job is complete. \n\n\u003e WARNING: Please note that python uses the '\\\\' character as an escape character. To ensure your inserted paths work insert an additional '\\\\' each time it appears in your defined path. E.g.  'C:\\Python25\\Test scripts' becomes 'C:\\\\\\Python25\\\\\\Test scripts'  \n\n\u003cp\u003e\u0026nbsp;\u003c/p\u003e\n\n## Glossary of acronyms\nThere are a number of acronyms used in the text. They are set out in full and explained below:\n\n CQRS: Calculating Quality Reporting Service. The Calculating Quality Reporting Service (CQRS) is an approvals, reporting and payments calculation system for GP practices. More information on CQRS can be found [here](https://welcome.cqrs.nhs.uk/).\n\nNCDes: Network Contract Directed Enhanced Services. This is explained in detail on this [page](https://digital.nhs.uk/data-and-information/publications/statistical/mi-network-contract-des).\n\nPCN: Primary care networks. Groups of GP practices working closely together - along with other healthcare staff and organisations - providing integrated services to the local population.\n\n\u003cp\u003e\u0026nbsp;\u003c/p\u003e\n\n## Licence\nNCDes codebase is released under the MIT License.\n\nThe documentation is © Crown copyright and available under the terms of the Open Government 3.0 licence.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhsdigital%2Fncdes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnhsdigital%2Fncdes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhsdigital%2Fncdes/lists"}