The National Data Opt-out Service is a service that allows patients to opt out of their confidential patient information being used for research and planning, the website project consists of multiple repositories (ndop-back-end, ndop-front-end, ndop-nojs)
This is the source code repository for the back end portion of the National Data Opt-out Service.
This repository contains a variety of backend lambda functions, including the following:
- state model lambdas:
check-state-model
- Lambda used to check a specified state model in ElastiCachedelete-state-model
- Lambda used to delete a specified state model from ElastiCacheget-state-model
- Lambda used to get a specified state model from ElastiCacheput-state-model
- Lambda used to set a specified state model in ElastiCache- The state model lambdas are being placed in the same VPC as ElastiCache to control the access to the ElastiCache, any other backend or frontend lambda that needs to read/write to the state model in the ElastiCache can do that through the state model lambdas.
To build the NDOP back end code locally
- clone the repository
git clone https://github.com/nhsconnect/ndop-back-end.git
This repository contains the source code for the backend lambdas, and as such, can not be directly run in a local environment and will need to be deployed into AWS.
To run the unit tests from the command line, run:
make unit-test-python-lambdas
To run coverage from the command line, run:
make coverage-python-lambdas
To run linting from the command line, run:
make lint-python-lambdas