Code Monkey home page Code Monkey logo

pomi's Introduction

Warning: This is the README for the publicly accessible version of the POMI package. If you are an analyst, please don't use the below instructions to run the publication process.

 

POMI RAP

Contact Information

Repository owner: Primary Care Domain Analytical Team

Email: [email protected]

To contact us raise an issue on Github or via email and we will respond promptly.

 

Publication Summary

Patient Online is an NHS England programme designed to support GP Practices to offer and promote online services to patients, including access to coded information in records, appointment booking and ordering of repeat prescriptions. Data are provided by GP system suppliers to NHS England monthly and published on the last Thursday each month, pending no issues, otherwise as soon as possible thereafter.

The publications can be found here:

https://digital.nhs.uk/data-and-information/publications/statistical/mi-patient-online-pomi/current

 

Set up

  1. Make a clone of the repository on your local machine.
  2. Navigate to the cloned version of the repository in a command line terminal by setting your current directory to the location of the cloned repository.
  3. Create and activate the correct environment by entering the below two sperate commands into your terminal:
conda env create --name pomi --file requirements.txt
conda activate pomi

Note that you only need to create your environment once. If you wish to return to the project again, you can omit the 'conda env create' command.

 

Creating a file structure

To run this process locally you will need to create the below file structure on your machine and insert the provided files in the 'Code' folder as instructed in the 'Instructions for producing publication' steps.

root
│
├───CODE
│
├───INPUTS
│   │
│   ├─── Fact Table Exclude List INF.csv
│   │
│   ├─── Fact Table Exclude List.csv
│   │
│   ├─── Trend Monitor Template.xlsx
│   │
│   ├─── GPWT_PARTICIPATION_DDMMYY.csv
│   │
│   ├─── QS Part Status-GPWC-YYYY-YYYY.csv
│       
├───OUTPUTS

 

Instructions for publication production

After 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 PCN API Call, GP Practice API call and ONS code history database

  1. In the config file edit the root directory value so that it matches the root of the directory that you set up earlier. Make use of escape characters e.g., "\\example\root\directory". Make sure your Code, Inputs and Outputs files are there.
  2. Ensure that all of the input files are in the INPUTS folder as per the file structure above.
  3. Run the main file by typing the below command into your terminal (make sure your terminal has the current directory set to that of the cloned repo):
python -m main

After the process has run the output will be in the {root_directory}\Outputs. You can set root_directory in config.json to "" to automatically detect the current directory.

 

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'

 

Licence

POMI codebase is released under the MIT License.

The documentation is © Crown copyright and available under the terms of the Open Government 3.0 licence.

pomi's People

Contributors

haidarnhsd avatar natashachetwynd avatar

Watchers

 avatar  avatar  avatar

Forkers

haidarnhsd

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.