Download zip Select Archive Format
Name Last Update history
File dir .vscode Loading commit data...
File dir src Loading commit data...
File dir tests Loading commit data...
File dir web_sample Loading commit data...
File txt .gitignore Loading commit data...
File txt .gitlab-ci.yml Loading commit data...
File txt CHANGELOG.md Loading commit data...
File txt Makefile Loading commit data...
File txt README.md Loading commit data...
File txt index.ts Loading commit data...
File txt package-lock.json Loading commit data...
File txt package.json Loading commit data...
File txt tsconfig.json Loading commit data...
File txt tslint.json Loading commit data...

README.md

Javascript/typescript SDK client for MedMe EHR

Build for development

    npm install -g typescript
    npm i
    make build

Running tests

  1. Previously install user with publicId=user999 and internalId=1 into table UserIDMap of embedded.db database. Copy your UserSign to tests/user999_ehr_user_sign.txt without whitespaces and other symbols. You should to provide only one record with internalID=1 in this table.

You may also do initialize embedded.db using next command (path to embedded.db can be changed):

tests/init_embedded.sh ../csharp/MedMe/EHR.RPCServer/embedded.db
  1. Start MedMe.EHRServer using make run from folder of the package sources or other way.

  2. Start mock Auth Server using make auth_server_run from root directory of Typescript SDK sources.

  3. Run tests make test.

Running demo application

Copy web_sample/lib/env-prod-template.js to web_sample/lib/env-prod.js and setup your production ehr servers for using it in demo application.

Run demo application

    make web_sample_run