Setting up for development
September 4, 2024 · View on GitHub
ℹ️ This project is in active development and is not production ready. Contributions are welcome
Setting up for development
Prerequisites
- Go
- Node
- Docker
Setup
- Run the command
yarnornpm installin the project root - Run
docker-compose upindocker-compose/dev. This will setuppostgres,redis,pgadmin, andsupertokens - Run
yarn nx serve cli seed roles. This will seed necessary roles in supertokens - Run
yarn nx serve cli seed users. This will seed some users. Checkout the user management dashboardhttp://localhost:8081/api/auth/dashboardafter seeding - Run
yarn nx serve cli loinc-import. This will load LOINC dataset into redis - Run
yarn nx serve cli create-tables. This is create necessary tables
FHIR Server
Tensor EMR uses FHIR to store clinical data natively. Since the FHIR model is standardized, you may be able to use any FHIR sever in production. However, Tensor EMR is currently being developed with LinuxForHealth’s FHIR server built on Java. Go ahead and install that on your machine.
https://github.com/LinuxForHealth/FHIR
After installation, you'll need to change some configuration files before starting the server. Replaces the following configs with the ones provided in here
- datasources.xml found in
defaultServer/configDropins/defaults/datasources.xml - extension-search-parameters.json found in
defaultServer/config/default/extension-search-parameters.json - fhir-server-config.json found in
defaultServer/config/default/fhir-server-config.json - server.xml found in
defaultServer/server.xml
Snowstorm
Tensor EMR uses SNOMED-CT for terminology. Snowstorm is a terminology server that provides support for SNOMED-CT. You may install it here
https://github.com/IHTSDO/snowstorm
Note: You will need to acquire the release files from snomed to start the server https://www.snomed.org/get-snomed
LOINC
LOINC is another termonology standard that provides coding for various observations as well as provide forms.
We access their resources using their FHIR API service. You'll need to go to their website and get a username and password.
After getting a username and password, update the loinc fields in the core-service environment variables file
After that, run yarn nx serve loinc-import in the project root
