Skip to content

GP Registrations MI is a service used to collect Management Information describing patient transfers in the form of JSON events sent over a RESTful API.

Notifications You must be signed in to change notification settings

nhsconnect/prm-gp-registrations-mi

Repository files navigation

# prm-gp-registrations-mi

GP Registrations MI is a service used to collect Management Information describing patient transfers in the form of JSON events sent over a RESTful API.

Setup

Prerequisites

  • Download Java 17 OpenJDK
brew install openjdk@17
sudo ln -sfn /usr/local/opt/openjdk@17/libexec/openjdk.jdk \
     /Library/Java/JavaVirtualMachines/openjdk-17.jdk

List your java versions

/usr/libexec/java_home -V 

You may need to set the JAVA_HOME path in your config, eg. (zsh):

vim ~/.zshrc
export JAVA_HOME=`/usr/libexec/java_home`

Source your profile to load the changes:

source ~/.zshrc

Running the application

./tasks run_local

To check the application is running, you can go to swagger:

http://localhost:8080/swagger

Or you can also hit the status endpoint:

http://localhost:8080/_status

Running the tests and additional checks

Run unit tests

./tasks test_unit

Run test coverage verification

./tasks test_coverage

Run dependency check

./tasks dep

Run code quality check

./tasks code_quality

Validate the code

./tasks validate

Troubleshooting

If you are using IntelliJ and you are unable to run the tests, make sure to run the tests through IntelliJ IDEA rather than Gradle

Build, Execution, Deployment > Build Tools > Gradle > Run tests using: Intellij

About

GP Registrations MI is a service used to collect Management Information describing patient transfers in the form of JSON events sent over a RESTful API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 11