Git Product home page Git Product logo

projecteka / consent-manager Goto Github PK

View Code? Open in Web Editor NEW
27.0 17.0 17.0 13.89 MB

The Health Data Consent Manager is an entity that acts as a consent collector for the Customer and mediates the Health Information data flows from the HIP to the recipient HIU or the Customer.

Java 99.21% Makefile 0.06% Dockerfile 0.14% HTML 0.46% Shell 0.13%
information-flow consent-manager architecture

consent-manager's Introduction

๐Ÿช Consent Manager

A Health Data Consent Manager (HDCM) is a new type of entity proposed here whose task is to provide health information aggregation services to customers of health care services. It enables customers to fetch their health information from one or more Health Information Providers (e.g., Hospitals, Diagnostic Labs, Medical Device Companies), based on their explicit Consent and to share such aggregated information with Health Information Users i.e. entities in need of such data (e.g., Insurers, Doctors, Medical Researchers).

Components

components

System Architecture

Architecture

Consent Manager Architecture

Import the project

When using IntelliJ Idea, open this project by importing the gradle file and check Auto Import option to resolve all the dependencies automatically.

๐Ÿ’ช Motivation

Consent Manager must provide its customers an interface using which they can view and manage consent artefacts associated with them and, optionally, an interface for the customers to view their aggregated health information.

Build Status

ci/cd

๐Ÿ‘ Code Style

JAVA Naming Conventions

๐ŸŽ‰ Language/Frameworks

๐Ÿ Requirements

Setting up local machine

๐Ÿš€ Running From Source

To run

./gradlew :consent:bootRun

or if you want to run in dev environment setup

./gradlew bootRun --args='--spring.profiles.active=dev'

Running The Tests

To run the tests

./grdlew test

Features

  1. Consent Management
  2. Aggregate Health Information

API Contract

Once ran the application, navigate to

{HOST}/index.html

Commands to Know

Generates PNGs for all *.puml files located in docs/diagrams and <project>/docs/diagrams.

make png

Create a keypair in keystore (Also initializes keystore)

keytool -genkeypair -alias ${keypair_alias} -keyalg RSA -keysize 2048 -storetype PKCS12 -keystore ${keystore_filepath} -validity ${validity_in_days} -storepass ${password}

keyalg: the cryptographic algorithm to generate the key pair.

keysize: the size of the key. We have used 2048 bits, but 4096 can be used for production.

storetype: the type of keystore - it's either PKCS12 or JKS.

When running the previous command, we will be asked to input some information, but we are free to skip all of it (just press Return to skip an option). When asked if the information is correct, we should type yes. Finally, we hit return to use the keystore password as key password as well.

Verify keystore content

in JKS format - keytool -list -v -keystore ${filepath}

in PKCS12 format - keytool -list -v -storetype pkcs12 -keystore ${filepath}

consent-manager's People

Contributors

abhisekharh1988 avatar ajayvk-tw avatar angshu avatar apoorva-ga avatar avghadsangita avatar bipul-jha avatar dependabot-preview[bot] avatar dheeraj-p avatar ganesanarun avatar gayatrijagtap avatar imaditiagg avatar leelanakka avatar limitless-horizon avatar mddubey avatar meghnathoughtworks avatar mominzafartw avatar mounicasagi avatar nexengineer avatar rajeswaritw avatar rishabghoshtw avatar saisree9 avatar shwetadongare avatar tw-mahendra avatar veena-tw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

consent-manager's Issues

consent-manager_keycloak_setup_1 issue.

consent-manager_keycloak_setup_1 exits automatically in container when I run docker-compose -f docker-compose-backend.yml start

Error:-
exit-code =1;
Problem with request: Get http://keycloak:8080: dial tcp 172.18.0.5:8080: connect: connection refused. Sleeping 1s

docker-compose -f docker-compose.yml up --build failed with error on Step 3

Command used: docker-compose -f docker-compose.yml up --build

Log for Reference:

Building consent-manager
Step 1/5 : FROM openjdk:12-jdk-alpine
12-jdk-alpine: Pulling from library/openjdk
6c40cc604d8e: Pull complete
9716b977a99b: Pull complete
Digest: sha256:fecd532eaee349b4d9e329148e99de77ffaf803e66e184a0e4d6b946bb97ffa3
Status: Downloaded newer image for openjdk:12-jdk-alpine
---> 0c68e7c5b7a0
Step 2/5 : VOLUME /tmp
---> Running in 1ee85a6727de
Removing intermediate container 1ee85a6727de
---> 2d6ad62fee16
Step 3/5 : COPY build/libs/* app.jar
ERROR: Service 'consent-manager' failed to build: COPY failed: no source files were specified

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.