PrEP Module
- PrEP is a comprehensive module designed to manage Pre-Exposure Prophylaxis (PrEP) services within LamisPlus EMR.
- It provides functionalities for managing patient data, PrEP eligibility, enrollment, clinic visits, interruptions, and regimens.
- The module integrates with existing LamisPlus EMR modules to streamline the management of PrEP services.
- Manage patient information and PrEP eligibility
- Handle PrEP enrollment and clinic commencement
- Track patient activities and interruptions
- Track patient PrEP status
- Manage PrEP regimens
- Integrate with related LamisPlus modules
- IDE of choice (IntelliJ, Eclipse, etc.)
- Java 8+
- Node.js
- React.js
git clone https://github.com/lamisplus/PrEP-Module.git
cd /<projects-folder>/PrEP-Module- Install Java 8+
- Install PostgreSQL 14+
- Install Node.js
- Install React.js
- Open the project in your IDE of choice.
- Update Maven application properties as required.
-
Change the directory to
src:cd src -
Run frontend build command:
npm run build
-
Run Maven clean install:
mvn clean install
-
Run Maven package command:
mvn clean package
-
Launch the JAR file:
java -jar <path-to-jar-file>
-
Optionally, run with memory allocation:
java -jar -Xms4096M -Xmx6144M <path-to-jar-file>
-
Visit the application on a browser at the configured port:
http://localhost:8080
-
Visit the application at:
http://localhost:8080/swagger-ui.html#/
- Application logs can be accessed in the
application-debugfolder.
- Set up the PostgreSQL database and update the connection details in the
module.ymlfile. - Ensure the
application.propertiesfile in the core module is configured with the correct database URL, username, and password.
mvn spring-boot:run- Access the application at
http://localhost:8080.
- Refer to the API documentation for endpoint details.
DATABASE_URL: Refer to the core moduleSPRING_PROFILES_ACTIVE: Refer to the core module- Configuration files: Refer to the core module
Clone the repository:
git clone https://github.com/lamisplus/PrEP-Module.git
cd /<projects-folder>/PrEP-Modulemvn spring-boot:run- Use an IDE like IntelliJ IDEA or Eclipse for debugging.
- Set breakpoints and use the debugger to step through the code.
mvn test- JUnit (Spring Boot's default test library inherited from parent POM)
-
Build the project using Maven:
mvn clean package
-
Deploy the generated JAR file to your application server.
- Docker
- Kubernetes
- AWS
- Azure
- Fork the repository and create a new branch for your feature or bug fix.
- Ensure your code follows the project's code style and guidelines.
- Submit a pull request with a detailed description of your changes.
- Follow the Java Code Conventions.
- Use meaningful variable and method names.
- Use feature branches for new features.
- Ensure all tests pass before submitting a PR.
- Provide a detailed description of changes in the PR.
- Gamaliel Dashua, @gamalieldashuaDataFi, @Gamey001 (main contributor)
- Special Mentions: @Asquarep, @joshuagabriel-datafi, @Ganiyatyakub, @AJ-DataFI, @mathewade
- Database Connection Error: Ensure that the
DATABASE_URLinapplication.propertiesis correct and the database server is running. - Issue Report: PrEP Visit Form Submission Failure: Sometimes after major modifications, the PrEP Visit form cannot be submitted due to structural issues requiring refactoring. Efforts are underway to address this. Meanwhile, check the validation error object and verify if the patient has eligibility matching the visit date.
-
Q: How do I reset my database?
- A: Run the database migration script located in the migrations directory.
-
v2.2.1: Updated dependencies and improved API endpoints.