Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

arkhn/timeline-patient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

43be1cb · Jan 25, 2022

History

94 Commits
Jan 17, 2022
Jan 4, 2022
Jan 3, 2022
Jan 25, 2022
Jan 3, 2022
Jan 3, 2022
Dec 2, 2021
Nov 26, 2021
Dec 2, 2021
Jan 3, 2022
Nov 26, 2021
Nov 26, 2021
Jan 3, 2022
Jan 4, 2022
Jan 3, 2022
Jan 3, 2022
Jan 3, 2022
Jan 3, 2022
Jan 25, 2022
Jan 3, 2022

Repository files navigation

Patient-Timeline

Setup environnement variables

First of all, environnement variables need to be set. Start by creating a .env file located at the root of the project. Copy in it the content of .env.template file.

Set each of the constant values.

Setup Python virtual env

From the /python project folder.

python3 -m venv ./.venv

source ./.venv/bin/activate

pip install -r requirements.txt

Start MinIO server

From the project root folder.

docker-compose up

NB: The MinIO server will have the credentials set in the .env file (ie MINIO_ACCESS_KEY & MINIO_SECRET_KEY)

Launch script to setup fake documents

python3 python/main.py

Setup DocumentReference resource

All there is to do now is to set a new mapping DocumentReference (for instance in River).

  • Set its source table to timeline_documents.
  • Plug the content[0].attachment.url attirbute to timeline_documents.doc_url
  • Plug the subject.identifier.value attribute to timeline_documents.patient_id

You can check on the preview if everything is alright.

Once it is, just launch a batch for this DocumentReference resource.

Install App dependencies

yarn install

Start App

yarn start