Web Application

This application is primarily used by the doctors to view all the information entered by the health worker and provide medication, medical tests, follow up and diagnosis.

This web application is developed using Angular framework.

To setup the web application, please visit here - Web App setup

Directory Structure

node_modules: When you clone/download Git repository and run the command "npm install". This will find all the dependencies listed in package.json and download them for you.

 

src: src folder contains all the HTML, CSS and TypeScript files which are required to build a web application in Angular.

 

 

component: components are the building block of the web application.

All the different components are kept in one place. Inside the folder, there is specific HTML, Css and TypeScript file which performs that particular function.

 

 

 

services: It contains all the Rest API’s used to fetch, post and delete.

 

 

 

Reporting Module

Building Report

Intelehealth uses the in-built functionality of OpenMRS to create reports using the Reporting Module. Read more detailed information about the Reporting Module on the OpenMRS Wiki.

You can create a report by following these 3 steps.

Step 1. Build Data Set Definition

Step 2. Build Report

Step 3. Add Data Set to Report

 

Step 1. Build Data Set Definition

Step 1.1: Click 'Advance Administration' inside System Administration.

Step 1.2: Under 'Manage Report Definitions', click 'Data Set Definitions'.

Step 1.3: Click the plus sign next to SQL DataSet to add a new custom query.

Step 1.4: Under 'Name', input the title of your Data Set, so that you can find it later. You can type a more detailed description under 'Description.'

Step 1.5: Write your SQL query in the yellow box provided.

Step 1.6: Hit 'Save'.

 

Note: If we select 'endDate' parameter in our SQL query we have to add an additional day to it by following this syntax:

  • DATE_ADD(:endDate, INTERVAL 1 DAY)

Why we need this to do manually?

This is because of the 'endDate' parameter return till '00HH:00MM:00SS'. This leads in losing the whole day data so we have to add it manually until the OpenMRS community finds a solution to it.

talk.openmrs.org/t/how-to-add-whole-day-in-reporting-module-enddate/19966

 

Step 2. Build Report

Step 2.1: Click 'Report Administration' under 'Manage Report Definitions'

 

Step 2.2: Click 'Custom Report (Advanced)'.

Step 2.3: Enter the name of your report under 'Name.' You can enter a more detailed description in the 'Description' text-box. Then click 'Submit.'

 

Step 3. Add Data Set to Report

Step 3.1: In the Report Editor, click the plus sign under Data Set Definitions to add a new data set.

Step 3.2: In the 'Key', enter an appropriate label for your Data Set. Under 'Data Set Definition,' select the name of the data set you created in Step 1. Then click submit.

Step 3.3: In this stage, you may add parameters to the Report, such as Start Date, EndDate, and Location. (optional)