https://github.com/tensorsystems/tensoremr
Modern Electronic Medical and Health Record
https://github.com/tensorsystems/tensoremr
ehr emr health healthcare
Last synced: 3 months ago
JSON representation
Modern Electronic Medical and Health Record
- Host: GitHub
- URL: https://github.com/tensorsystems/tensoremr
- Owner: tensorsystems
- License: gpl-2.0
- Created: 2022-07-25T14:44:30.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-09-04T18:25:32.000Z (almost 2 years ago)
- Last Synced: 2025-12-17T04:54:19.512Z (6 months ago)
- Topics: ehr, emr, health, healthcare
- Language: TypeScript
- Homepage:
- Size: 116 MB
- Stars: 10
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: COPYING
Awesome Lists containing this project
README
[
](./logo.png)
ℹ️ *This project is in active development and is not production ready. Contributions are welcome*
# Setting up for development
## Prerequisites
- Go
- Node
- Docker
## Setup
1. Run the command `yarn` or `npm install` in the project root
2. Run `docker-compose up` in `docker-compose/dev`. This will setup `postgres`, `redis`, `pgadmin`, and `supertokens`
3. Run `yarn nx serve cli seed roles`. This will seed necessary roles in supertokens
4. Run `yarn nx serve cli seed users`. This will seed some users. Checkout the user management dashboard `http://localhost:8081/api/auth/dashboard` after seeding
5. Run `yarn nx serve cli loinc-import`. This will load LOINC dataset into redis
6. 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](https://github.com/tensorsystems/tensoremr/blob/main/config/FHIR)
1. [datasources.xml](https://github.com/tensorsystems/tensoremr/blob/main/config/FHIR/datasources.xml) found in `defaultServer/configDropins/defaults/datasources.xml`
2. [extension-search-parameters.json](https://github.com/tensorsystems/tensoremr/blob/main/config/FHIR/extension-search-parameters.json) found in `defaultServer/config/default/extension-search-parameters.json`
3. [fhir-server-config.json](https://github.com/tensorsystems/tensoremr/blob/main/config/FHIR/fhir-server-config.json) found in `defaultServer/config/default/fhir-server-config.json`
4. [server.xml](https://github.com/tensorsystems/tensoremr/blob/main/config/FHIR/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](https://loinc.org/fhir/) and get a username and password.
After getting a username and password, update the loinc fields in the [core-service environment variables file](https://github.com/tensorsystems/tensoremr/blob/main/apps/core/.env)
After that, run `yarn nx serve loinc-import` in the project root