Health and Wellness centre (HWC) is one of the comprehensive applications of AMRIT designed to capture details of 7 Service packages as per guidelines which should be available at Health and Wellness centre.
- Provide medical advice and services to beneficiaries
- Out patient service
- Video consultation with specialists doctors
- Drug dispense and laboratory facility available at centre
- More than 20 lab tests can be performed using IOT devices and data flows directly to AMRIT
- Compliance with all 3 milestones of ABDM
- SnomedCT, LOINC, ICD -10, FHIR compatible
- Ante natal care (ANC)
- Post natal care (PNC)
- Neonatal and infant health care services
- Childhood and adolescent health care services including immunisation
- Family planning, contraceptive services and other reproductive health care
- Care for acute simple illnesses and minor ailments
- Management of communicable diseases
- National health programs (General OPD)
- Prevention, screening and management of non communicable diseases (NCD)
This microservice is built on Java, Spring boot framework and MySQL DB.
- JDK 17 Oracle website or use an open-source JDK like OpenJDK
- Spring Tool Suite 3 / Eclipse(2023-03)
- Maven Apache Maven website.
- Redis-x64-3.0.504
- MySQL Workbench 8.0
- Node.js (v14 or later)
- npm (comes with Node.js)
- You can copy
common_example.properties
tocommon_local.properties
and edit the file accordingly. The file is undersrc/main/environment
folder. - In your editor, click on Run -> Run configuration.
- Double-click on Maven build and give a suitable name for the new configuration.
- Populate the base directory by clicking on workspace and selecting HWC-API module.
- Set goals to clean install
-DENV_VAR=local(your choice of desired environment)
and click on Apply. - It is advisable have a personal environment properties file under src/main/environment filling out all the placeholders to avoid repetitive manual work each time you run locally.
- Click Run to run the build configuration.
- In your editor, click on Run -> Run configuration.
- Double click on Spring Boot App(in STS) / Java Application(in Eclipse) and give a suitable name for the new configuration.
- Select the project and main class and click on Apply.
- Click Run to run the configuration. Keep the Redis server open during this run.
- Once the run is complete, load http://localhost:8080/swagger-ui.html#!/
-
Install Visual Studio Code: Download and install Visual Studio Code from the official website.
-
Install Visual Studio Code Extensions:
- Java Extension Pack: Open Visual Studio Code, go to the Extensions view by clicking on the Extensions icon in the Activity Bar, and search for "Java Extension Pack." Install it to get Java support and Maven integration.
-
Open the Project in Visual Studio Code:
- Launch Visual Studio Code and open your folder in the editor.
-
Configure Java and Maven:
- If not already configured, set up your Java Home and Maven Home in Visual Studio Code.
- Go to File > Preferences > Settings, search for "Java Home" and "Maven Home," and specify the paths to your JDK and Maven installations.
-
Build and Run:
- Navigate to your project directory using the
cd
command. - Use Maven commands like
mvn clean install
to build your project. - To run your Java application, use
mvn spring-boot:run
. Ensure the redis server is open during run.
- Navigate to your project directory using the
- Video Consultation
All features have been exposed as REST endpoints. Refer to the SWAGGER API specification for details.
This project uses Git hooks to enforce consistent code quality and commit message standards. Even though this is a Java project, the hooks are powered by Node.js. Follow these steps to set up the hooks locally:
-
Install Node.js and npm
- Download and install from nodejs.org
- Verify installation with:
node --version npm --version
-
Install dependencies
- From the project root directory, run:
npm install npm ci
- This will install all required dependencies including Husky and commitlint
- From the project root directory, run:
-
Verify hooks installation
- The hooks should be automatically installed by Husky
- You can verify by checking if the
.husky
directory contains executable hooks
This project follows a specific commit message format:
- Format:
type(scope): subject
- Example:
feat(login): add remember me functionality
Types include:
feat
: A new featurefix
: A bug fixdocs
: Documentation changesstyle
: Code style changes (formatting, etc.)refactor
: Code changes that neither fix bugs nor add featuresperf
: Performance improvementstest
: Adding or fixing testsbuild
: Changes to build process or toolsci
: Changes to CI configurationchore
: Other changes (e.g., maintenance tasks, dependencies)
Your commit messages will be automatically validated when you commit, ensuring project consistency.
If you encounter any issues, bugs, or have feature requests, please file them in the main AMRIT repository. Centralizing all feedback helps us streamline improvements and address concerns efficiently.
We’d love to have you join our community discussions and get real-time support!
Join our Discord server to connect with contributors, ask questions, and stay updated.