Giter VIP home page Giter VIP logo

ccg--constituencies's Introduction

CCG => Constituencies

Lookup conversion script to work out which Westminster Parliamentary Constituencies are contained within which NHS Clinical Commissioning Groups. Uses ONS lookup tables to carry out the lookup in a three step process:

  1. Lookup which Output Areas (OA) are contained in each Clinical Commissioning Group (CCG)
  2. Lookup which Westminster Parliamentary Constituency (WPC) covers each OA
  3. Lookup which WPCs are contained in each CCG, based on the OAs covered by each

Created to provide an answer to a tweet by @JoeReddington: https://twitter.com/joereddington/status/511105946710716416

Uses data from https://geoportal.statistics.gov.uk/geoportal/catalog/search/browse/browse.page


Modified version includes

PCT => Constituencies

pctlookup uses files from OS OpenData http://parlvid.mysociety.org/os/ to work out which of the (now defunct) Primary Care Trusts would have been in which (modern) constituencies. pctInput.csv was created by removing all put the pct and constituency columns from the postcode database and then doing a unique sort. The relevent commands were:

cut -d , -f 18 -f 22 ONSPD_MAY_2014_UK.csv > pctCon.txt vim pctCon.txt wc pctCon.txt sort -u pctCon.txt >

ccg--constituencies's People

Contributors

martinjc avatar joereddington avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.