Skip to content
This repository has been archived by the owner on Nov 18, 2020. It is now read-only.

ManaseD/abbrev-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Abbreviation App

Web app that crowd sources understanding of abbreviations used in medical context.

Requirements

Download and install the docker community edition.

Getting started

Bring up the database first:

docker-compose -f docker-compose.yml up -d --build postgres

Bring up the backend (API) and front-end (APP):

docker-compose -f docker-compose.yml up -d --build api app

Open up the browser to localhost:4002

View logs:

docker-compose -f docker-compose.yml logs --follow api app postgres

Open postgres database:

docker-compose -f docker-compose.yml exec postgres psql -U project-name project-name

Import abbreviation data

Bulk import

Assumes you have a JSON file structured in the following format:

{ abbreviation: 
  { expansions: [
      "expanded text of the abbreviation",
      ...
    ],
    sentences: [
      "sentence with an <abbreviation> somewhere",
      ...
    ]
  } 
}

Exec into the API container and run node ./scripts/import-json-data.js <path/to/abbreviations.json>

Import individual abbreviations

Assumes data is provided in the following format:

  1. An expansions text file with each expansion on a new line:
...
dipole moment
dexmedetomidine
detarium microcarpum
dietary modification
...
  1. A text file of sentences with the abbreviation marked by the <...>:
...
This is an exmaple sentence that uses the abbreviation <dm> to illustrate an example
...

To import the data, call the import-data.js script from within the API container with the abbreviation as the first parameter, then the path to the expansions text file, and finally the path to the sentences text file as follows:

node import-data.js dm ./path-to-expansions.txt ./path-to-sentences.txt

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages