Skip to content

merlinwijaya/demo-hl7-nodejs

 
 

Repository files navigation

Getting Started

Frontend Setup

Install Node.js

Install node.js on your local machine, this project is built with node v20.17.0

Install project dependencies

Install project dependencies by running

npm install
# or
yarn

Start the development server

Start the development server by running:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

Backend Setup

Import the .cls and .xml files

The backend code, which includes all the database schema classes, the REST services and the production, is available under Prototype. Download the Prototype folder and import the folder on the Management Portal into any namespace. System Explorer -> Classes -> Browse -> Select Prototype

Create Web Application

  • On the Management Portal navigate to: System Administration -> Security -> Application -> Web Application -> Create New Web Application.

  • Fill in the form as shown below management portal

  • The APIs defined in Prototype/DB/RESTServices.cls will be available at http://localhost:80/api/prototype/*

    • e.g. For example, the route /patient will be available at http://localhost:80/api/prototype/patients
    • rest api

Importing Data

Downloading sample data

  • Download the PatientData.csv file from public

Import the Data into IRIS

  • On the Management Portal navigate to: System Explorer -> SQL -> Go -> Wizards -> Data Import. management portal

  • Enter the path and name of import file, select the namespace and schema to import to and click Finish. wizard

Production Configuration

  • Business service: set up DSN and credentials
  • Business operation: create folder for file path output production

Instance Port and Authentication Setup

  • Port number of the IRIS instance (I'm using port 80)
  • auth.ts username and password (make sure CSPSystem user has READ privilege)

Running

  1. Add Patient addpatient

  2. Open visual trace visualtrace

  3. Check output txt file output

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • ObjectScript 57.1%
  • TypeScript 38.3%
  • CSS 2.6%
  • JavaScript 2.0%