Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
45acd18
feat(linting): commitlint ,Commitzen, Husky configuration
Zapper9982 Sep 25, 2025
d97c0be
feat: added new register api for stoptb
vishwab1 May 7, 2026
eb8649e
feat: added new register api for stoptb
vishwab1 May 7, 2026
2e50511
feat: added new api for nurse
vishwab1 May 7, 2026
51fd584
fix: populate workingDistrictId from blockId in getUserDetail when di…
vishwab1 May 7, 2026
be07130
feat: align Stop TB APIs with BRD β€” village scoping + correct field n…
vishwab1 May 8, 2026
ef5f091
refactor: replace tb_stoptb_registration with BenFlowStatus for regis…
vishwab1 May 8, 2026
59c549a
fix: worklist chnges
vishwab1 May 8, 2026
2edec41
fix: use JwtToken header for getBeneficiaryDetails TM-API call
vishwab1 May 8, 2026
27de8a2
fix: use okhttp User-Agent pattern for TM-API call in getBeneficiaryD…
vishwab1 May 8, 2026
408b29f
fix: look up 12-digit beneficiaryID from BenFlowStatus for TM-API qui…
vishwab1 May 8, 2026
5e7c2d8
refactor: redesign Stop TB worklist to return full beneficiary data i…
vishwab1 May 9, 2026
aef7d85
fix: use mapping table two-step lookup to fetch beneficiary details i…
vishwab1 May 9, 2026
47d2cf8
refactor: use OutputResponse for all StopTBController endpoints to ma…
vishwab1 May 10, 2026
6b2ea68
feat: add Stop TB worklist path and anthropometry to getBeneficiaryData
vishwab1 May 11, 2026
37b8c0b
fix: use JOIN query for getAddressesByBenRegIds and accept villageId …
vishwab1 May 11, 2026
9294444
fix: switch getAddressesByBenRegIds to native SQL to avoid Hibernate …
vishwab1 May 11, 2026
e7b409e
fix: use per-row mapping lookup for Stop TB worklist to avoid Hiberna…
vishwab1 May 11, 2026
dba4d1c
feat: add stopTBDetails block (personFrom, caseFindingType, isMobileA…
vishwab1 May 11, 2026
a8c2a31
feat: add occupation, economicStatus, residentialArea to stopTBDetail…
vishwab1 May 11, 2026
19a8122
feat: add demographics block with address, occupation, economicStatus…
vishwab1 May 11, 2026
32a5338
Revert "feat: add demographics block with address, occupation, econom…
vishwab1 May 11, 2026
51d796e
feat: use tb-prefixed keys for economicStatus and residentialArea to …
vishwab1 May 11, 2026
42e5017
feat: move occupation, economicStatus, residentialArea into beneficia…
vishwab1 May 11, 2026
cab18f2
fix: read economicStatus and residentialArea directly from ExtraField…
vishwab1 May 11, 2026
4b99b2d
feat: add Diagnostics module and Yes/No ID fields across Stop TB nurs…
vishwab1 May 11, 2026
6ffc50e
feat: accept array of objects in all 4 Stop TB nurse save APIs
vishwab1 May 12, 2026
ace45fa
fix supervisor name
SauravBizbRolly May 13, 2026
4ff074e
fix supervisor name
SauravBizbRolly May 13, 2026
e4d9369
fix supervisor name
SauravBizbRolly May 13, 2026
e1d6fc4
add update date on get ben api
SauravBizbRolly May 18, 2026
ada3b78
add update date on get ben api
SauravBizbRolly May 18, 2026
fda8f8a
feat: return updateDate and updatedBy in all Stop TB getAll APIs
vishwab1 May 19, 2026
6d34fab
fix: resolve compile errors β€” move resultMap.put after initialization…
vishwab1 May 19, 2026
efab338
feat: add chest xray, sputum, NAAT reason fields to StopTB diagnostics
vishwab1 May 28, 2026
6bb1fb1
feat(stoptb): add local-to-central sync fields for Stop TB mobile flow
vishwab1 Jun 4, 2026
862e8fa
fix: make vanID stamping conditional β€” skip gracefully when camp not …
vishwab1 Jun 5, 2026
05fe5f1
feat(stoptb): add stoptb.enforce.vanid flag to fail loudly when camp …
vishwab1 Jun 16, 2026
0b969b6
fix(stoptb): correct symptomatic/asymptomatic save and retrieve mapping
vishwab1 Jun 17, 2026
165feda
fix sync issue
SauravBizbRolly Jun 17, 2026
4dc7b4d
feat(counselling): implement dynamic form management for TB counselling
sehjotsinghunthinkable Jun 17, 2026
e6fbe83
feat(stoptb): add per-visit history to General Examination, TB Screen…
vishwab1 Jun 17, 2026
b5b8c68
Merge remote-tracking branch 'origin/vb/stoptb' into vb/stoptb
vishwab1 Jun 17, 2026
8e3f106
chore(local-env): update local datasource/redis/jwt config and add dy…
vishwab1 Jun 18, 2026
ee2cf23
chore(local-env): keep backup copy of common_local.properties
vishwab1 Jun 18, 2026
2d483cb
token chnges
vishwab1 Jun 18, 2026
6cb34ef
Vb/counselling (#254)
vishwab1 Jun 23, 2026
3a16e0d
Vb/counselling (#255)
sehjotsinghunthinkable Jun 23, 2026
26599aa
Vb/counselling (#256)
vishwab1 Jun 24, 2026
c795640
fix(user-service): handle empty result from getDistrictByBlockId fall…
vishwab1 Jun 24, 2026
bf2ea79
Vb/counselling (#257)
sehjotsinghunthinkable Jun 25, 2026
e0aae0a
fix(dynamic-form): default processed to N via @Builder.Default
vishwab1 Jun 25, 2026
7af425c
Vb/counselling (#258)
sehjotsinghunthinkable Jun 26, 2026
b8083bb
Vb/counselling (#259)
sehjotsinghunthinkable Jun 26, 2026
454f7bf
Vb/counselling (#261)
sehjotsinghunthinkable Jun 30, 2026
5ca325a
feat(stoptb): dual-write clinical data to AMRIT standard tables via t…
vishwab1 Jun 30, 2026
2d9ca9b
fix(stoptb): getBeneficiaryData reads anthropometry/vitals from stand…
vishwab1 Jun 30, 2026
9f95020
fix(compile): rename variable 'a' to 'anthro' to avoid conflict with …
vishwab1 Jun 30, 2026
41f3c4d
fix(stoptb): set CreatedDate on t_benvisitdetail insert to prevent NO…
vishwab1 Jun 30, 2026
e4f5ecd
fix(anc-pnc): guard CreatedDate on BenVisitDetail insert for ANC and …
vishwab1 Jun 30, 2026
b9b6154
fix(docker): set TZ=Asia/Kolkata to prevent UTC/IST date mismatch
vishwab1 Jul 1, 2026
af98e66
fix(stoptb): handle ISO 8601 Z suffix in parseDob to fix beneficiary …
vishwab1 Jul 1, 2026
d848cc1
fix(stoptb): fallback to i_ben_flow_outreach.ben_dob when i_beneficia…
vishwab1 Jul 1, 2026
40a3a29
fix: use saveAndFlush to prevent FK violation in t_benchiefcomplaint
vishwab1 Jul 1, 2026
a3d7e46
Vb/counselling (#262)
sehjotsinghunthinkable Jul 2, 2026
2d5cf2b
Vb/counselling (#263)
sehjotsinghunthinkable Jul 2, 2026
ead22fd
Vb/counselling (#264)
sehjotsinghunthinkable Jul 3, 2026
2002dcf
fix(stoptb): compute age from benDetailsRMNCH_OBJ.dob instead of benD…
vishwab1 Jul 3, 2026
b66b991
field missing
vishwab1 Jul 3, 2026
21e7a85
fix(stoptb): scope Suspected/Confirmed getAll by facility+village ins…
vishwab1 Jul 3, 2026
69e48e3
fix(stoptb): drop date filter from facility-scoped Suspected query
vishwab1 Jul 3, 2026
e86b109
fix(stoptb): join facility-scoped query on beneficiaryID, not benefic…
vishwab1 Jul 3, 2026
251e64c
Add debug logging, RMNCH pinCode field, and GPS fallback pinCode mapping
vishwab1 Jul 7, 2026
fa68856
Vb/counselling (#269)
sehjotsinghunthinkable Jul 7, 2026
c64d6e5
fix(counselling): remove duplicate findCounselledBenIds method and im…
vishwab1 Jul 7, 2026
ed387f5
Vb/counselling (#270)
sehjotsinghunthinkable Jul 7, 2026
fe2c0fe
Move Risk Factors and HIV Status from General Examination to TB Scree…
vishwab1 Jul 8, 2026
597b842
Keep Risk Factors and HIV Status on General Examination too
vishwab1 Jul 8, 2026
f935ce0
Stop TB API responses were silently dropping null fields
vishwab1 Jul 8, 2026
07defaa
chore: remove stale StopTB planning docs
vishwab1 Jul 13, 2026
46536d3
Revert "Vb/counselling (#270)"
vishwab1 Jul 13, 2026
03dfd29
Revert "Vb/counselling (#269)"
vishwab1 Jul 13, 2026
7b68387
Revert "Vb/counselling (#264)"
vishwab1 Jul 13, 2026
e7ad7c6
Move Risk Factors and HIV Status from General Examination to TB Scree…
vishwab1 Jul 8, 2026
8db7386
Keep Risk Factors and HIV Status on General Examination too
vishwab1 Jul 8, 2026
e42ceb0
Changing in complete api accoridng to release 1.1 (#279)
sehjotsinghunthinkable Jul 14, 2026
2cdfae6
fix: tolerate duplicate i_beneficiarymapping rows in Stop TB worklist
vishwab1 Jul 14, 2026
8152fd4
fix: remove PII-dumping debug println statements from BeneficiaryCont…
vishwab1 Jul 21, 2026
b30e410
fix: add try/catch to VillageLevelFormController save methods
vishwab1 Jul 21, 2026
988c940
chore: remove confirmed-dead StopTB endpoints and backing code
vishwab1 Jul 21, 2026
6a49e71
fix: handle List<> return type change in AbhaBeneficiaryServiceImpl
vishwab1 Jul 21, 2026
d57b042
chore: remove local-dev SQL scripts from repo
vishwab1 Jul 22, 2026
487d04d
Add Nikshay TU/Facility/Village support for Stop TB
vishwab1 Jul 10, 2026
08e6b82
refactor(stoptb): drop per-record Nikshay TU/Facility/Village snapshot
vishwab1 Jul 14, 2026
e8ef902
fix(nikshay): join Nikshay TU/Facility masters with FIND_IN_SET
vishwab1 Jul 15, 2026
93f02f7
fix(nikshay): stop patching District via AMRIT block lookup for Stop TB
vishwab1 Jul 15, 2026
f02f6c0
fix(nikshay): resolve Stop TB's real district instead of leaving it null
vishwab1 Jul 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/commit-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Commit Compliance

on:
pull_request:
types: [opened, synchronize, reopened]

jobs:
commitlint:
runs-on: ubuntu-latest

steps:
- name: Checkout code with submodule
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
submodules: true
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18

- name: Install dependencies
run: |
npm ci --legacy-peer-deps
npm i --legacy-peer-deps

- name: Run commitlint on PR
run: |
npx commitlint --from ${{ github.event.pull_request.base.sha }} \
--to ${{ github.event.pull_request.head.sha }} \
--verbose
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ mvnw.cmd
.mvn
/logs/
src/main/environment/common_local.properties
node_modules
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx --no -- commitlint --edit $1
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ FROM eclipse-temurin:17-jre

WORKDIR /app

ENV TZ=Asia/Kolkata

# Copy the built WAR file from the build stage
COPY --from=build /app/target/*.war app.war

Expand Down
43 changes: 43 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,49 @@ This repository comprises of all APIs related to FLW Mobile App.

Flw-API is a microservice which is used for the creation and management of beneficiaries related data

## Setting Up Commit Hooks

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:

### Prerequisites
- Node.js (v14 or later)
- npm (comes with Node.js)

### Setup Steps

1. **Install Node.js and npm**
- Download and install from [nodejs.org](https://nodejs.org/)
- Verify installation with:
```
node --version
npm --version
```
2. **Install dependencies**
- From the project root directory, run:
```
npm ci
```
- This will install all required dependencies including Husky and commitlint
3. **Verify hooks installation**
- The hooks should be automatically installed by Husky
- You can verify by checking if the `.husky` directory contains executable hooks
### Commit Message Convention
This project follows a specific commit message format:
- Format: `type(scope): subject`
- Example: `feat(login): add remember me functionality`
Types include:
- `feat`: A new feature
- `fix`: A bug fix
- `docs`: Documentation changes
- `style`: Code style changes (formatting, etc.)
- `refactor`: Code changes that neither fix bugs nor add features
- `perf`: Performance improvements
- `test`: Adding or fixing tests
- `build`: Changes to build process or tools
- `ci`: Changes to CI configuration
- `chore`: Other changes (e.g., maintenance tasks, dependencies)
Your commit messages will be automatically validated when you commit, ensuring project consistency.

## Filing Issues

If you encounter any issues, bugs, or have feature requests, please file them in the [main AMRIT repository](https://github.com/PSMRI/AMRIT/issues). Centralizing all feedback helps us streamline improvements and address concerns efficiently.
Expand Down
36 changes: 36 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'body-leading-blank': [1, 'always'],
'body-max-line-length': [2, 'always', 100],
'footer-leading-blank': [1, 'always'],
'footer-max-line-length': [2, 'always', 100],
'header-max-length': [2, 'always', 100],
'subject-case': [
2,
'never',
['sentence-case', 'start-case', 'pascal-case', 'upper-case'],
],
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
'type-case': [2, 'always', 'lower-case'],
'type-empty': [2, 'never'],
'type-enum': [
2,
'always',
[
'build',
'chore',
'ci',
'docs',
'feat',
'fix',
'perf',
'refactor',
'revert',
'style',
'test',
],
],
}
};
Loading