Download as pdf or txt
Download as pdf or txt
You are on page 1of 26

INDUSTRIAL TRAINING REPORT

Health Management Information Systems

Submitted in partial fulfillment of the


Requirements for the award of

Degree of Bachelor of Technology in Computer Science and


Engineering

NNN
Submitted By

Name: Saransh Dixit


University Roll No. 1629010128

SUBMITTED TO: Ms. Swati Singh

Department of Computer Science and Engineering


ABESIT GHAZIABAD
i
DECLARATION

I hereby declare that the Industrial Training Report entitled (“Health Management Information
Systems”) is an authentic record of my own work as requirements of Industrial Training during
the period from JULY 3,2019 to JULY 30,2019 for the award of degree of B.Tech. (Computer
Science and Engineering), ABESIT, Ghaziabad.

(Signature of student)
Saransh Dixit
1629010128
Date: OCT 22,2019

ii
ACKNOWLEDGEMENT

The internship opportunity I had with Centre For Railway Information Systems (CRIS) was a
great chance for learning and professional development. Therefore, I consider myself as a
very lucky individual as I was provided with an opportunity to be a part of it. I am also
grateful for having a chance to meet so many wonderful people and professionals who led me
though this internship period.

Bearing in mind previous I am using this opportunity to express my deepest gratitude and
special thanks to the GM of RFID group who in spite of being extraordinarily busy with her
duties, took time out to hear, guide and keep me on the correct path and allowing me to carry
out my project at their esteemed organization and extending during the training.

I express my deepest thanks to Mr. Sunil Kumar for taking part in useful decision & giving
necessary advices and guidance and arranged all facilities to make life easier. I choose this
moment to acknowledge her contribution gratefully.

It is my radiant sentiment to place on record my best regards, deepest sense of gratitude to


D.S. Adhikari manager of organization for their careful and precious guidance which were
extremely valuable for my study both theoretically and practically.

I perceive as this opportunity as a big milestone in my career development. I will strive to use
gained skills and knowledge in the best possible way, and I will continue to work on their
improvement, in order to attain desired career objectives. Hope to continue cooperation with
all of you in the future,
Sincerely,

Saransh Dixit

Place: Ghaziabad

Date :- OCT 22,2019

iii
ABOUT COMPANY

Centre for Railway


Information Systems

The Ministry of Railways set up CRIS as a Society in July 1986. We are headquartered
in New Delhi, with Regional offices in Delhi, Kolkata, Mumbai, Chennai, and
Secunderabad .Our current portfolio of projects covers the gamut of Indian Railways
functions, such as passenger ticketing, freight operations, train dispatching and
control, crew management, e-procurement, management of Railways fixed and
moving assets, and production of rolling stock. Our information systems provide
services in the remotest of locations, from Kargil to Kanniyakumari, from Tawang to
the Andaman Islands.

Their human resources are their strength. They have 800 personnel include a pool of
competent IT professionals, whose skillsets include system architecture, system
analysis and design, and program development, complemented by an experienced
group of serving and former Railway personnel with domain knowledge and system
implementation skills. This unique combination gives us an unbeatable edge in the
Railway and Government sector.

Their collaborative model of working that ensures the delivery of cost-effective,


sustainable information systems. We have been successful in using cutting edge
technologies in practical ways to ensure workable IT solutions for the Railways in many
areas.

They are currently developing systems to cover emerging needs of the Railways
including the protection of Railway assets, energy management, management of the
overhead electrification system, parcel management, employees’ health
management, and a comprehensive financial management system.

Other projects under execution include development of ticketing on mobile phones,


linking tickets to Aadhaar, tracking of trains in real time through GPS, tracking of
rolling stock using radio frequency identification, setting up a geo-spatial database for
the Railways, and the setting up a state-of-the-art datacentre to house the Railways’
IT system.

CRIS held a symposium, "IT Can Happen in Government", in New Delhi on 1 July
2010 after a previous symposium on 6 July 2009. The symposium explored
challenges faced by government agencies in meeting their IT needs and creating IT
systems. A seminar on big data was held in July 2014, followed by a one on smart
cities in July 2015 and on mobility and mobile apps in 2018. CRIS seminars are held
annually, with the most-recent one (on Digital Transformation of Large Enterprises)
on 1 July 2019.

iv
COA (Control Office Application), which assists train controllers (despatchers) in
planning and tracking the movement of trains across the network, shares its data
with applications such as NTES (with which passengers can obtain a train's location
and expected movement) and FOIS. Train punctuality reports are generated through
ICMS (Integrated Coaching Management System), which also receives data from
COA.

Figure :- Organization Structure of CRIS

v
Table of Contents

Table of Contents PAGE.NO

CHAPTER 1: INTRODUCTION TO PROJECT………………………... 1

CHAPTER 2: TOOLS & TECHNOLOGY USED


Tools: Visual Studio Code………………………………………... 2
Technology: Node.js……………………………………………… 3
Technology: LoopBack 3………………………………………… 7
Technology: PostgreSQL………………………………………… 10

CHAPTER 3 SNAPSHOT
REST API…………………………………………………………. 13
Log in Page………………………………………………………... 14

CHAPTER 4 RESULTS & DISCUSSION


Result……………………………………………………………… 15
Discussion………………………………………………………… 16

CHAPTER 5 CONCLUSION & FUTURE SCOPE


Conclusion………………………………………………………… 17
Future Scope………………………………………………………. 18

CHAPTER 6 REFRENCES………………………………………………. 19

vi
List of Figures

FIGURES PAGE NO.

Figure 1 :- extendibility of vs code 2


Figure 2 :- Concepts of Node.JS 4
Figure 3 :- Node.js single-thread model vs traditional servers 5
Figure 4 :- Node.js concurrency model and event-loop 6
Figure 5 :- LoopBack modules, how they are related, and their dependencies 7
Figures 6 :- Model inheritance 8
Figure 7 :- PostgreSQL's Architecture 10
Figure 8 :- js file to auto update db. 12
Figure 9 :- json file to add db. in REST API 12
Figure 10 :- Launching API 13
Figure 11 :- REST API build during Training 13
Figure 12 :- screenshot of login page of website HERO 14
Figure 13 :- Changes in recent Release 14

vii
Introduction to Project

HERO (Healthcare for the Entire Railway Organization) is an application, where the railway
employee can enter the HID number and password allotted to them by Railway organization,
Where the logged in user can view the patient profile picture and other details. HERO is the
web application for managing extensive network of hospitals and clinics of INDIAN
RAILWAYS. Which includes specialized hospitals for cancer (Varanasi), heart diseases
(Chennai), orthopedics (Kolkata) and Plastic surgery (Mumbai). In addition, 150 private
hospitals are recognized for treatment. Railway employees are referred to Medical Colleges
and specialized treatment centers and expenses are reimbursed. Indian Railways have their
own Family Planning and Family Welfare centers to look after health of mothers and
children.

Entitlement for login : -


1. All Railway employees.
2. Families of Railway employees and “Dependent relative”. No age and other
restrictions for children and step-children, they should be wholly dependent and
residing with the Railway employee. “Dependent” mean a person who does not have
independent income more than 15% of the emoluments of the Railway servant
concerned or Rs. 3500/-plus dearness relief thereon, rounded off to the nearest ten-
rupee figure, whichever is more.
3. Spouses, employed or not.
4. Act Apprentices who come within the family of Railway employee.
5. Staff of institutes, Clubs, Statutory canteens.
6. Servants of Railway employee – only outdoor treatment.
7. Casual Labors, Licensed porters, Staff of co-operative canteens.
8. Contractors’ labor if no hospital exists (Contractor has to pay).

Issues Faced :-
1. Staff other than pharmacists needs training on the use of PCs.
2. Training to medical staff on concepts and usage of medical standards for IT-enablement
such as SNOMED-CT, ICD etc. needs to be started immediately.

1
TOOLS AND TECHNOLOGY USED

TOOLS

VISUAL STUDIO CODE EDITIOR

INTRODUCTION :-

Visual Studio Code is a source-code editor developed by Microsoft for Windows, Linux and
macOS. It includes support for debugging, embedded Git control and GitHub, syntax
highlighting, intelligent code completion, snippets, and code refactoring.

ADVANTAGES :-

1. Meet IntelliSense : - Go beyond syntax highlighting and autocomplete with


IntelliSense, which provides smart completions based on variable types, function
definitions, and imported modules.

2. Deploy with confidence and ease : - With Microsoft Azure you can deploy and host
your React, Angular, Vue, Node, Python (and more!) sites, store and query relational
and document based data, and scale with serverless computing, all with ease, all from
within VS code.

3. Print statement debugging is a thing of the past: - Debug code right from the
editor. Launch or attach to your running apps and debug with break points, call stacks,
and an interactive console.

4. Extensible and customizable. : - Want even more features? Install extensions to add
new languages, themes, debuggers, and to connect to additional services. Extensions
run in separate processes, ensuring they won't slow down your editor

Figure 1 :- extendibility of vs code

2
TECHNOLOGY

Node.JS

INTRODUCTION :-

Node.JS is an open source, cross-platform runtime environment for developing server-side


and networking applications. Node.js applications are written in JavaScript, and can be run
within the Node.js runtime on OS X, Microsoft Windows, and Linux.
Node.js also provides a rich library of various JavaScript modules which simplifies the
development of web applications using Node.js to a great extent .

FEATURES OF NODE.JS :-

Following are some of the important features that make Node.js the first choice of software
architects.
 Asynchronous and Event Driven − All APIs of Node.js library are asynchronous,
that is, non-blocking. It essentially means a Node.js based server never waits for an
API to return data. The server moves to the next API after calling it and a notification
mechanism of Events of Node.js helps the server to get a response from the previous
API call.
 Very Fast − Being built on Google Chrome's V8 JavaScript Engine, Node.js library is
very fast in code execution.
 Single Threaded but Highly Scalable − Node.js uses a single threaded model with
event looping. Event mechanism helps the server to respond in a non-blocking way
and makes the server highly scalable as opposed to traditional servers which create
limited threads to handle requests. Node.js uses a single threaded program and the
same program can provide service to a much larger number of requests than traditional
servers like Apache HTTP Server.
 No Buffering − Node.js applications never buffer any data. These applications simply
output the data in chunks.
 License − Node.js is released under the MIT license.

WHERE TO USE NODE.JS?

Following are the areas where Node.js is proving itself as a perfect technology partner.

 I/O bound Applications


 Data Streaming Applications
 Data Intensive Real-time Applications (DIRT)
 JSON APIs based Applications
 Single Page Applications

3
Figure 2 :- Concepts of Node.JS

INSTALLATION (ON UNIX/Linux/Mac OS X, & SunOS)

Based on your OS architecture, download and extract the archive node-v6.3.1-osname.tar.gz


into /tmp, and then finally move extracted files into /usr/local/Node.js directory. For example:

$ cd /tmp
$ wget http://nodejs.org/dist/v6.3.1/node-v6.3.1-linux-x64.tar.gz
$ tar xvfz node-v6.3.1-linux-x64.tar.gz
$ mkdir -p /usr/local/nodejs
$ mv node-v6.3.1-linux-x64/* /usr/local/nodejs

Add /usr/local/Node.js/bin to the PATH environment variable.

OS Output

Linux export PATH=$PATH:/usr/local/nodejs/bin

Mac export PATH=$PATH:/usr/local/nodejs/bin

FreeBSD export PATH=$PATH:/usr/local/nodejs/bin

Table 1 :- output when path is added

4
INSTALLATION (ON Windows)

Use the MSI file and follow the prompts to install the Node.js. By default, the installer uses
the Node.js distribution in C:\Program Files\Node.js. The installer should set the C:\Program
Files\Node.js\bin directory in window's PATH environment variable. Restart any open
command prompts for the change to take effect.

ADVANTAGES OF Node.js

Node has several advantages, some of which are:

1. RESTful API. As Node can build an HTTP server out of the box, it can communicate
with all other components through HTTP methods for CRUD operations based on the
RESTful paradigm.

2. Single Threaded. Since it is not blocking I/O operations, Node can handle all user
requests using a single thread, instead of allocation of new thread for each request,
which has a large memory footprint. Nonetheless, Node does use a thread pool at the
kernel level to guarantee that the operations are being executed asynchronously
without blocking the event-loop. This is necessary because the kernel does not
support all operations asynchronously.

Figure 3 :- Node.js single-thread model vs traditional servers

3. NPM: The Node Package Manager is based on JavaScript's npm. A built-in module
that supports package management, it can be used to easily download and install modules
for a Node application. Moreover, Node already has many packages and libraries
developed to work on top of it; all of which confine to the asynchronous nature of
Node.js.

4. None-blocking I/O. Because Node uses an Event-loop to allow asynchronous


operations and callback functions, it is capable to setting the requesting function on the
side till the task is completed and meanwhile handling other tasks.

5
Figure 4 :- Node.js concurrency model and event-loop

5. There is also an advantage for using JavaScript on the server because data structures
and logic may be shared by both front-end and back-end which increases the synergy of
the developers' team as resource may be shared. Furthermore, using a unified data
structure across the stack makes transfer easier and removes the overhead of data
conversion and casting.

6. Finally, Node is supported by a great community that is very vibrant and dedicated to
constantly improve Node.js itself or develop new modules for it.

6
LoopBack 3

INTRODUCTION

The LoopBack framework is a set of Node.js modules that you can use independently or
together to quickly build REST APIs.
A LoopBack application interacts with data sources through the LoopBack model API,
available locally within Node.js, remotely over REST, and via native client APIs For iOS,
android and HTML 5. Using these APIs, apps can query databases, store data, upload files,
send emails, create push notifications, register users, and perform other actions provided by
data sources and services.

Figure 5 :- LoopBack modules, how they are related, and their dependencies

7
INSTALLATION

To install the LoopBack CLI tool, enter this command:


 npm install -g loopback-cli
This installs the lb command-line tool for scaffolding and modifying LoopBack applications.

FEATURES OF LoopBack
MODELS are at the heart of LoopBack, and represent back-end data sources such as
databases or other back end services (REST, SOAP, and so on). LoopBack models are
JavaScript objects with both Node and REST APIs.
A key powerful feature of LoopBack is that when you define a model it automatically comes
with a predefined REST API with a full set of create, read, update, and delete operations.
The Basic Model Object has methods for adding hooks and for validating Data. Other model
objects all “inherit from” it. Models have an inheritance hierarchy, as shown at right: When
you attach a model to a persistent data source it becomes a connected model with create,
retrieve, update, and delete operations. LoopBack’s built-in models inherit from it.

Figures 6 :- Model inheritance

There are two types of models


 Built-in models
 Custom models

8
Built-in models :- Every LoopBack application has a set of predefined built-in models such
as User, Role, and Application, so you don’t have to create these common models from
scratch
Custom models :- You can define your own custom models specific to your
application. You can make your custom models, extend your own Built-in models to build
on the predefined functionality of User, Application, and other built-in models.
You can create LoopBack models in various ways, depending on what kind of data source the
model is based on. You can create models:
 With LoopBack models generator.
 From an existing relational Database using model discovery. Then you can keep your
model synchronized with the database using LoopBack’s schema/model
synchronization API.
 By instance introspection for free-form data in NoSQL databases or REST APIs.
All three of these methods create a Model definition JSON file that defines your model in
LoopBack, by convention in a LoopBack project’s common/models directory; for
example, common/models/account.json.

ADVANTAGES OF LoopBack

1. FullStack development :- You may get frameworks for client side development and
so can be found for server side. But loopback gives you the power of a full-stack
development. You can share your same model with both client and server. The rest
API functions in the server are also available in the client side.

2. Built in models & features :-Loopback gives you a lot of things out of the box. You
can create CRUD API’s of any model with a simple flag. Very common needs like
user management with role based API access are already available.
Loopback gives you API swagger where you can easily get the API contract and can
also interact with them.

3. Code is moduler & structured :-This is an advantage with any opinionated


framework. You have the project architecture in place; you know how to place the
new codes; handy level of abstraction and as a result a quick but structured project.

4. Quick scaffold & fast development :- Using the strongloop cli you can easily
scaffold your loopback project with all its out of the box functionalities and can also
develop your project in a very fast pace.

5. Organization support :-Full-time team is developing it now and Strongloop is


acquired by IBM. This gives the framework a stability and maturity to become a
major player in this field.

6. Built in ORM :-The concept of adding a separate json file for defining models and
relations are really awesome and an example of clean code.

9
PostgreSQL

INTRODUCTION

PostgreSQL is a general purpose and object-relational database management system, the


most advanced open source database system. PostgreSQL was designed to run on UNIX-like
platforms. However, PostgreSQL was then also designed to be portable so that it could run on
various platforms such as Mac OS X, Solaris, and Windows.

PostgreSQL requires very minimum maintained efforts because of its stability. Therefore, if
you develop applications based on PostgreSQL, the total cost of ownership is low in
comparison with other database management systems.

Figure 7 :- PostgreSQL's Architecture

FEATURES

1. Compatible with various platforms using all major languages and middleware
2. It offers a most sophisticated locking mechanism
3. Support for multi-version concurrency control
4. Full support for client-server network architecture
5. Log-based and trigger-based replication SSL
10
6. Standby server and high availability
7. Object-oriented and ANSI-SQL2008 compatible
8. Support for JSON allows linking with other data stores like NoSQL which act as a
federated hub for polyglot databases.

INSTALLATION (on Windows)

1. Download and run the Windows PostgreSQL one click installer. When the wizard
prompts you to choose where to install PostgreSQL, point it to the apps subdirectory
of your <LABKEY_ROOT>, i.e. C:\labkey\apps\postgresql-10.6\
2. Keep track of the PostgreSQL Windows Service account name and password.
LabKey Server needs to ask for it so that we can pass it along to the PostgreSQL
installer.
3. Keep track of the database superuser name and password. You'll need these to
initially create the LabKey database, the LabKey database user, and grant that user the
owner role.
4. We recommend that you install the graphical tool pgAdmin 4.x for easy database
administration. Leave the default settings as they are on the "Installation Options"
page to include pgAdmin.
5. Using superuser permissions:

 Create an empty database.


 Create a PostgreSQL user named 'labkey'.
 Grant the owner role to the labkey user over the database.
 Revoke public permissions from the database.

ADVANTAGE

1. PostgreSQL can run dynamic websites and web apps as a LAMP stack option
2. PostgreSQL's write-ahead logging makes it a highly fault-tolerant database
3. PostgreSQL source code is freely available under an open source license. This allows
you the freedom to use, modify, and implement it as per your business needs.
4. PostgreSQL supports geographic objects so you can use it for location-based services
and geographic information systems
5. PostgreSQL supports geographic objects so it can be used as a geospatial data store
for location-based services and geographic information systems
6. To learn Postgres, you don't need much training as it’s easy to use
7. Low maintenance administration for both embedded and enterprise use

11
SNAPSHOTS

Figure 8 :- js file to auto update db.

Figure 9 :- json file to add db. in REST API

12
Figure 10 :- Launching API

Figure 11 :- REST API build during Training

13
Figure 12 :- screenshot of login page of website HERO

Figure 13 :- Changes in recent Release

14
RESULT AND DISCUSSIONS

RESULT

HERO (Healthcare for the Entire Railway Organization) is an application, where the railway
employee can enter the HID number and password allotted to them by Railway organization,
Where the logged in user can view the patient profile picture and other details. HERO is the
web application for managing extensive network of hospitals and clinics of INDIAN
RAILWAYS. Which includes specialized hospitals for cancer (Varanasi), heart diseases
(Chennai), orthopedics (Kolkata) and Plastic surgery (Mumbai). In addition, 150 private
hospitals are recognized for treatment. Railway employees are referred to Medical Colleges
and specialized treatment centers and expenses are reimbursed. Indian Railways have their
own Family Planning and Family Welfare centers to look after health of mothers and
children.

HERO is still under development and is a good initiative by Indian railways and CRIS and
will help a lot in future as it helps to maintain the log of the health of their employee so that
no serious disease affects their employee and helps to take care of their employee

Due to working on this project under mentioned organization, now I have some basics of how
industry works and how the project development really takes place. I worked on the backend
of this project with the tools and technologies mentioned above and learnt how to develop
REST API’s.

15
DISCUSSION

The current work is the initial background report for the website development project
(HERO). This report aims to provide a critical review of the relevant literature in the web
field and also to describe key aspects of the methodology that will be applied throughout the
project.

This report tries to examine various issues that arise while building a website. It is important
to highlight, that websites are not simple software artifacts. Mastering the necessary software
skills and tools to build a website does not guarantee its success. For this reason, following
the guidance and the advice of my supervising professor, this report focuses on many other
challenges that come up through the development process, like performing website
evaluation, conducting market research and choosing the right business model for the website
proposal. These are the first and most crucial steps that will ensure that the final IT
employment website, will be developed according to the requirements of the Indian Railways
and will be tailored to the needs of its users.

Further research and more focus will be given on software tools after these parts of the
methodology are complete and will be presented in later stages of the project. The decisions
on how the website will be build depend on the results of the problem investigation stage,
since they will play a major role into describing the specific user requirements for the
software. The decision will be based on evaluating case studies of website development, in
order to examine a vast variety of techniques and software tools that have been applied
successfully in real projects. Furthermore, further research will be conducted to spot the
strong points of various techniques and justify the choice that will be finally made.

Finally, an attempt will be made to contact some experienced web developers and ideally
some web developers who have worked on similar projects, in order to absorb valuable
knowledge from their experience.

16
CONCLUSION AND FUTURE SCOPE

CONCLUSSION

As a conclusion, I can say that this internship was a great experience. Thanks to this project, I
acquired deeper knowledge concerning my technical skills but I also personally benefited.
Currently Node.JS REST API’s are a common part of web applications, and one of the most
popular language for web development used by developers worldwide. If we surf internet we
can see millions of websites built with Node.JS, LoopBack and PostgreSQL.

I learn to live in a different environment from the one I am used to.

Indeed, I grew more independent in work and also in everyday life. I realized that I could do
more things than I thought like learning new things by myself. There are huge opportunities
available for the students who want to work in this field. Many private and public
organizations hire web designer for their online work and website development. With the
rapid advent of online industry, the demand of web development professionals is increasing
and this has created a huge job opportunity for the aspirants in the upcoming days. Also, an
experienced person in this field can also work as a freelancer; there are many online
companies which provide online projects to the individuals.

It was a wonderful learning experience for me at CRIS (Centre for Railways Systems) for 1
months. I gained a lot of insights almost every aspects of development of REST API’s. The
friendly welcome from all the employee’s is appreciating, sharing the experience and given
their peace of wisdom which they have gained in long journey of their work. I am thankful
for the wonderful experience.

17
FUTURE SCOPE

HERO is going to be used as the web application for managing extensive network of
hospitals and clinics of INDIAN RAILWAYS

REST or RESTful API design (Representational State Transfer) is designed to take


advantage of existing protocols. While REST can be used over nearly any protocol, it usually
takes advantage of HTTP when used for Web APIs. REST API can also be futurity used in
cloud services, application services etc.

Especially if I don't have any experience. Finding work can be a real challenge. A successful
internship can help me turn an experience into a career opportunity. So as a successful
internship my future scopes will be:
 To be work IT company.
 Can work as a Software Engineer.
 Can work as a Web Designer.
 Can work as a Web Developer.
 Can work as a QA Tester.

18
REFRENCES

>REST API :- https://www.seobility.net/en/wiki/REST_API

>LOOPBACK 3 :- https://loopback.io/doc/en/lb3/

>PostgreSQL :- https://www.postgresql.org/docs/12/index.html

>NODE.JS :- https://www.w3schools.com/nodejs/

19

You might also like