Small proof-of-concept project for pseudonymous consent and linkage.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.classpath
.gitignore
.project
README.md
config.yml
openconsent.paw
pom.xml

README.md

OpenConsent

OpenConsent is a java-based microservice that acts as a safe trusted intermediary connecting patients with clinical services and research projects.

For more information about this project, please see my recent blog post.

An updated description of the project is now available here: http://wardle.org/information-governance/2017/04/08/pseudonymous-consent.html

How to get started

  1. Download the source code.
git clone https://github.com/wardle/openconsent.git
  1. Compile without unit tests
mvn -DskipTests package
  1. Create a local database - I use PostgreSQL.

  2. Create a config.yml and change your jdbc url for the database you have created

jdbc:
  postgres:
    url: jdbc:postgresql:openconsent
    driverClassName: org.postgresql.Driver
    initialSize: 10

cayenne:
  datasource: postgres
  createSchema: false

flyway:
  locations:
    - db/migration
  dataSources:
    - postgres
  1. Create the database using flyway migrations.
java -jar target/openconsent-1.0-SNAPSHOT.jar --config=config.yml --migrate

Note: currently at this early stage of development, I am editing migration #1 so use --clean to remove all database tables and then migrate to take into account changes. Once the schemas are relatively stable, any changes will be made properly in migrations.

  1. You can run the unit tests to check it is all working
mvn package
  1. Otherwise, start the REST server:
java -jar target/openconsent-1.0-SNAPSHOT.jar --config=config.yml --server

Mark