Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev to master - 28-02-24 #654

Merged
merged 53 commits into from
Feb 28, 2024
Merged

dev to master - 28-02-24 #654

merged 53 commits into from
Feb 28, 2024

Conversation

kanishq-egov
Copy link
Contributor

@kanishq-egov kanishq-egov commented Feb 28, 2024

Summary by CodeRabbit

  • Documentation
    • Added sequence diagrams for various processes in the referral management system.
  • New Features
    • Enabled searching by UUID for individual search and included a total count for households.
    • Enhanced project module with date validation and beneficiary tagging.
    • Introduced new model classes for handling HFReferral bulk requests and responses.
    • Improved stock management with additional constraints and enums.
  • Refactor
    • Updated validation constraints in model classes for better data handling.
    • Enhanced project staff service with new configurations and utility methods.
  • Bug Fixes
    • Resolved issues related to project beneficiary tagging and individual search by UUID.

kanishq-egov and others added 30 commits October 12, 2023 15:08
* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-3376: added comments as per review comments

* HLM-3376 : added changes as per code review comments, each column's name included in query

* HLM-3376: query column names
* hlm-4062: updated household

* HLM-4062: added  count api support using cte for household

* HLM-4062: updated HouseholdRepository.java

* updated householdrowmapper.java

* HLM-4062:code refactor, removed useCTE parameter
* added downsync dummy api

* added downsync dummy api with res

* HLM-4062: added count api changes for household

* HLM-4062: Updated findbyid references

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-4062: Updated pom.xml of household

* Hlm 3376 reviewcomments (#524)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-3376: added comments as per review comments

* HLM-3376 : added changes as per code review comments, each column's name included in query

* HLM-3376: query column names

* Dev (#537)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-4062: added count api changes for household

* HLM-4062: Updated findbyid references

* HLM-4062: Updated pom.xml of household

* Hlm 3376 reviewcomments (#524)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-3376: added comments as per review comments

* HLM-3376 : added changes as per code review comments, each column's name included in query

* HLM-3376: query column names

---------

Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>
Co-authored-by: kanishq-egov <138671649+kanishq-egov@users.noreply.github.com>

* Added project beneficiary tag field

* renamed project beneficiary tag to voucher tag

* Added project beneficiary tag field

* renamed project beneficiary tag to voucher tag

* rebased project-persister.yml from configs

* updated pom.xml: update common model version to 1.0.10

* updated db script, added unique constraint to tag column

* updated referral-management.yml

* updated db script

* project beneficiary voucher tag uniqueness validator and search support

* updated PbVoucherTagUniqueValidator.java

* Added and updated for unique field voucher tag create and update scenario

* project beneficiary bug fix

* removed unused import

* project beneficiary : voucherTag renamed to tag

* Hlm 4062 count api (#547) (#548)

* hlm-4062: updated household

* HLM-4062: added  count api support using cte for household

* HLM-4062: updated HouseholdRepository.java

* updated householdrowmapper.java

* HLM-4062:code refactor, removed useCTE parameter

Co-authored-by: kanishq-egov <138671649+kanishq-egov@users.noreply.github.com>

* referral management project beneficiary validation fix

* deleted persister and indexer file from project module resource folder

---------

Co-authored-by: kavi_elrey <25226238+kavi-egov@users.noreply.github.com>
Co-authored-by: Vishal <sarasani.vishalreddy@egovernments.org>
* adding clientRefId, Models version change, migration file

* adding clientRefId for HouseholdMemberSearch as List

* updated migration

* adding Notnull for clientrefId

---------

Co-authored-by: Vishal <sarasani.vishalreddy@egovernments.org>
* added downsync dummy api

* added downsync dummy api with res

* HLM-4062: added count api changes for household

* HLM-4062: Updated findbyid references

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-4062: Updated pom.xml of household

* Hlm 3376 reviewcomments (#524)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-3376: added comments as per review comments

* HLM-3376 : added changes as per code review comments, each column's name included in query

* HLM-3376: query column names

* Dev (#537)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-4062: added count api changes for household

* HLM-4062: Updated findbyid references

* HLM-4062: Updated pom.xml of household

* Hlm 3376 reviewcomments (#524)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-3376: added comments as per review comments

* HLM-3376 : added changes as per code review comments, each column's name included in query

* HLM-3376: query column names

---------

Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>
Co-authored-by: kanishq-egov <138671649+kanishq-egov@users.noreply.github.com>

* Added project beneficiary tag field

* renamed project beneficiary tag to voucher tag

* Hlm 4062 count api (#547) (#548)

* hlm-4062: updated household

* HLM-4062: added  count api support using cte for household

* HLM-4062: updated HouseholdRepository.java

* updated householdrowmapper.java

* HLM-4062:code refactor, removed useCTE parameter

Co-authored-by: kanishq-egov <138671649+kanishq-egov@users.noreply.github.com>

* Project beneficiary tag cherrypick (#549)

* Added project beneficiary tag field

* renamed project beneficiary tag to voucher tag

* rebased project-persister.yml from configs

* updated pom.xml: update common model version to 1.0.10

* updated db script, added unique constraint to tag column

* updated referral-management.yml

* updated db script

* project beneficiary voucher tag uniqueness validator and search support

* updated PbVoucherTagUniqueValidator.java

* Added and updated for unique field voucher tag create and update scenario

* project beneficiary bug fix

* removed unused import

* project beneficiary : voucherTag renamed to tag

* referral management project beneficiary validation fix

---------

Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>
Co-authored-by: Vishal <sarasani.vishalreddy@egovernments.org>

* dummy api with same pagination response

* dummy api with same pagination response

* dummy api with same pagination response

* downsync data test

* data integrated till beneficiary

* Update CHANGELOG.md

* Delete health-services/project/src/main/resources/project-persistor.yml

* skip on empty result added

* skip on empty result added

* beneficary searhc based on individual clientref id added

* sideeffetc, ref, task fetch added

* tasks earch fix

* referral search fix

---------

Co-authored-by: kavi_elrey <25226238+kavi-egov@users.noreply.github.com>
Co-authored-by: Vishal <sarasani.vishalreddy@egovernments.org>
kavi-egov and others added 15 commits November 9, 2023 15:54
Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>
* updated the version, and added the changelog

* updated ReferralManagement CHANGELOG

* Update CHANGELOG.md

---------

Co-authored-by: kavi_elrey@1993 <25226238+kavi-egov@users.noreply.github.com>
…n-patch

HLM-4062: removed pagination from fields excluding household api call
* HLM-4062: missed in implementation

* HLM-4062: default max is set to 1000 for not null limit value and 0 for offset value

* project beneficiary tag update failed fix HLM-4444

* HLM-4444: added code review comments

* sownsync bug fix for limit

---------

Co-authored-by: kavi_elrey <25226238+kavi-egov@users.noreply.github.com>
* HLM-4501: Added changes for HFReferral flow

* updated comments for common models

* updated comments for common models removed ini file

This reverts commit c1e226f.

* HLM-4501: updated topics and hfreferal constants

* HLM-4501: updated HFReferralService.java

* HLM-4501: Added changes in project id validator

* HLM-4501: updated HFReferralService.java

* HLM-4501: fixed hfreferral changes

* HLM-4501: added project facility id validator for hf_referral

* HLM-4501: missing link for validator added

* HLM-4501: updated HfrProjectFacilityIdValidator for NPE

* HLM-4501 : updated hf referral symtoms character length to 256

* HLM-4501: updated additionalFields field value size from 2 to 1
* HLM-3372: added changes required to fix quantity, Sender Receiver enum

* HLM-3372: Sender and Receiver id validator

* HLM-3372: updated all reference for SenderType and Receiver Type enum

* HLM-3372: stock model updated, removed size annotations from referenceidtype enum field

* HLM-3372: Min validation added for integer type of quantity

* HLM-3372: test cases updated

* HLM-5004 Added max value and decimal condition for quantity in stock, added component and order annotation for SSenderIdReceiverIdEqualsValidator

* HLM-5004 Custom JsonDeserializer validator IntegerValidator added in health-services-models

* hlm-5004 added custom exception and a custom exception handler to handle the integer validator exception

* hlm-5004 optimized imports and added code comments

* hlm-5004 CustomIntegerSerializer added and unnecessary validators removed

* hlm-5004 Registered the CustomIntegerDeserializer with objectMapper for Integer class

* hlm-5004 Removed line of code that was removing all the invalid entities from the list in SSenderIdReceiverIdEqualsValidator

* hlm-5004 changes in test configurations and optimized imports

* hlm-5004 added row version validator for stock delete

* hlm-5004 dateOfEntry field was handled in StockRowMapper to return null if no value is present and description was added to stock contact for transactionReason

* updated pom.xml for health campaign models

* Revert "updated pom.xml for health campaign models"

This reverts commit 035c787.

---------

Co-authored-by: syed-egov <syed.owais@egovernments.org>
* Dev to master : beneficiary tag bug fix, downsync pagination fix (#576)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-4062: added count api changes for household

* HLM-4062: Updated findbyid references

* HLM-4062: Updated pom.xml of household

* Hlm 3376 reviewcomments (#524)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-3376: added comments as per review comments

* HLM-3376 : added changes as per code review comments, each column's name included in query

* HLM-3376: query column names

* Hlm 4062 count api (#547)

* hlm-4062: updated household

* HLM-4062: added  count api support using cte for household

* HLM-4062: updated HouseholdRepository.java

* updated householdrowmapper.java

* HLM-4062:code refactor, removed useCTE parameter

* Project beneficiary tag cherrypick (#539)

* added downsync dummy api

* added downsync dummy api with res

* HLM-4062: added count api changes for household

* HLM-4062: Updated findbyid references

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-4062: Updated pom.xml of household

* Hlm 3376 reviewcomments (#524)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-3376: added comments as per review comments

* HLM-3376 : added changes as per code review comments, each column's name included in query

* HLM-3376: query column names

* Dev (#537)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-4062: added count api changes for household

* HLM-4062: Updated findbyid references

* HLM-4062: Updated pom.xml of household

* Hlm 3376 reviewcomments (#524)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-3376: added comments as per review comments

* HLM-3376 : added changes as per code review comments, each column's name included in query

* HLM-3376: query column names

---------

Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>
Co-authored-by: kanishq-egov <138671649+kanishq-egov@users.noreply.github.com>

* Added project beneficiary tag field

* renamed project beneficiary tag to voucher tag

* Added project beneficiary tag field

* renamed project beneficiary tag to voucher tag

* rebased project-persister.yml from configs

* updated pom.xml: update common model version to 1.0.10

* updated db script, added unique constraint to tag column

* updated referral-management.yml

* updated db script

* project beneficiary voucher tag uniqueness validator and search support

* updated PbVoucherTagUniqueValidator.java

* Added and updated for unique field voucher tag create and update scenario

* project beneficiary bug fix

* removed unused import

* project beneficiary : voucherTag renamed to tag

* Hlm 4062 count api (#547) (#548)

* hlm-4062: updated household

* HLM-4062: added  count api support using cte for household

* HLM-4062: updated HouseholdRepository.java

* updated householdrowmapper.java

* HLM-4062:code refactor, removed useCTE parameter

Co-authored-by: kanishq-egov <138671649+kanishq-egov@users.noreply.github.com>

* referral management project beneficiary validation fix

* deleted persister and indexer file from project module resource folder

---------

Co-authored-by: kavi_elrey <25226238+kavi-egov@users.noreply.github.com>
Co-authored-by: Vishal <sarasani.vishalreddy@egovernments.org>

* HH member clientrefid (#551)

* adding clientRefId, Models version change, migration file

* adding clientRefId for HouseholdMemberSearch as List

* updated migration

* adding Notnull for clientrefId

---------

Co-authored-by: Vishal <sarasani.vishalreddy@egovernments.org>

* Downsync smc referral module (#556)

* added downsync dummy api

* added downsync dummy api with res

* HLM-4062: added count api changes for household

* HLM-4062: Updated findbyid references

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-4062: Updated pom.xml of household

* Hlm 3376 reviewcomments (#524)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-3376: added comments as per review comments

* HLM-3376 : added changes as per code review comments, each column's name included in query

* HLM-3376: query column names

* Dev (#537)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-4062: added count api changes for household

* HLM-4062: Updated findbyid references

* HLM-4062: Updated pom.xml of household

* Hlm 3376 reviewcomments (#524)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-3376: added comments as per review comments

* HLM-3376 : added changes as per code review comments, each column's name included in query

* HLM-3376: query column names

---------

Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>
Co-authored-by: kanishq-egov <138671649+kanishq-egov@users.noreply.github.com>

* Added project beneficiary tag field

* renamed project beneficiary tag to voucher tag

* Hlm 4062 count api (#547) (#548)

* hlm-4062: updated household

* HLM-4062: added  count api support using cte for household

* HLM-4062: updated HouseholdRepository.java

* updated householdrowmapper.java

* HLM-4062:code refactor, removed useCTE parameter

Co-authored-by: kanishq-egov <138671649+kanishq-egov@users.noreply.github.com>

* Project beneficiary tag cherrypick (#549)

* Added project beneficiary tag field

* renamed project beneficiary tag to voucher tag

* rebased project-persister.yml from configs

* updated pom.xml: update common model version to 1.0.10

* updated db script, added unique constraint to tag column

* updated referral-management.yml

* updated db script

* project beneficiary voucher tag uniqueness validator and search support

* updated PbVoucherTagUniqueValidator.java

* Added and updated for unique field voucher tag create and update scenario

* project beneficiary bug fix

* removed unused import

* project beneficiary : voucherTag renamed to tag

* referral management project beneficiary validation fix

---------

Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>
Co-authored-by: Vishal <sarasani.vishalreddy@egovernments.org>

* dummy api with same pagination response

* dummy api with same pagination response

* dummy api with same pagination response

* downsync data test

* data integrated till beneficiary

* Update CHANGELOG.md

* Delete health-services/project/src/main/resources/project-persistor.yml

* skip on empty result added

* skip on empty result added

* beneficary searhc based on individual clientref id added

* sideeffetc, ref, task fetch added

* tasks earch fix

* referral search fix

---------

Co-authored-by: kavi_elrey <25226238+kavi-egov@users.noreply.github.com>
Co-authored-by: Vishal <sarasani.vishalreddy@egovernments.org>

* Dev downsync fix smc (#561)

* household model reverse

* Update CHANGELOG.md

* Added changes for includeDeleted for downsync

* not null added

---------

Co-authored-by: kavi_elrey <25226238+kavi-egov@users.noreply.github.com>
Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>

* Dev master conflict fix (#562)

* HLM-3069: updated build.config.yml

* HLM-3069: updated build-config.yml renamed adrm to referralmanagement

* HLM-3372: increased stock version from 1.1.0 to 1.1.1-beta and project version from 1.1.0 to 1.1.1-beta

* referralmanagement version 1.0.0-beta, added changelog, localsetup

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* HLM-3069: null project beneficiary validation error fix

* HLM-3069: added comments and splitted validation condition

* Dev to master (#550)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-4062: added count api changes for household

* HLM-4062: Updated findbyid references

* HLM-4062: Updated pom.xml of household

* Hlm 3376 reviewcomments (#524)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-3376: added comments as per review comments

* HLM-3376 : added changes as per code review comments, each column's name included in query

* HLM-3376: query column names

* Hlm 4062 count api (#547)

* hlm-4062: updated household

* HLM-4062: added  count api support using cte for household

* HLM-4062: updated HouseholdRepository.java

* updated householdrowmapper.java

* HLM-4062:code refactor, removed useCTE parameter

---------

Co-authored-by: kavi_elrey@1993 <25226238+kavi-egov@users.noreply.github.com>

---------

Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>
Co-authored-by: kanishq-egov <138671649+kanishq-egov@users.noreply.github.com>

* Dev downsync fix smc (#563)

* household model reverse

* Update CHANGELOG.md

* Added changes for includeDeleted for downsync

* not null added

---------

Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>

* Dev master conflict fix (#565)

* HLM-3069: updated build.config.yml

* HLM-3069: updated build-config.yml renamed adrm to referralmanagement

* HLM-3372: increased stock version from 1.1.0 to 1.1.1-beta and project version from 1.1.0 to 1.1.1-beta

* referralmanagement version 1.0.0-beta, added changelog, localsetup

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* HLM-3069: null project beneficiary validation error fix

* HLM-3069: added comments and splitted validation condition

* Dev to master (#550)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-4062: added count api changes for household

* HLM-4062: Updated findbyid references

* HLM-4062: Updated pom.xml of household

* Hlm 3376 reviewcomments (#524)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-3376: added comments as per review comments

* HLM-3376 : added changes as per code review comments, each column's name included in query

* HLM-3376: query column names

* Hlm 4062 count api (#547)

* hlm-4062: updated household

* HLM-4062: added  count api support using cte for household

* HLM-4062: updated HouseholdRepository.java

* updated householdrowmapper.java

* HLM-4062:code refactor, removed useCTE parameter

---------

Co-authored-by: kavi_elrey@1993 <25226238+kavi-egov@users.noreply.github.com>

---------

Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>
Co-authored-by: kanishq-egov <138671649+kanishq-egov@users.noreply.github.com>

* Dev downsync fix smc (#566)

* household model reverse

* Update CHANGELOG.md

* Added changes for includeDeleted for downsync

* not null added

---------

Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>

* Added fix for testcases for householdmember (#570)

Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>

* updated the version, and added the changelog (#571)

* updated the version, and added the changelog

* updated ReferralManagement CHANGELOG

* Update CHANGELOG.md

---------

Co-authored-by: kavi_elrey@1993 <25226238+kavi-egov@users.noreply.github.com>

* HLM-4062: removed pagination from fields excluding household api call

* HLM-4062: missed in implementation (#574)

* HLM-4062: missed in implementation

* HLM-4062: default max is set to 1000 for not null limit value and 0 for offset value

* project beneficiary tag update failed fix HLM-4444

* HLM-4444: added code review comments

* sownsync bug fix for limit

---------

Co-authored-by: kavi_elrey <25226238+kavi-egov@users.noreply.github.com>

* HLM-4444: project beneficiary update fix (#575)

* Update CHANGELOG.md

* updated changelog with dates (#577)

* updated stock module changelog (#578)

---------

Co-authored-by: kavi_elrey@1993 <25226238+kavi-egov@users.noreply.github.com>
Co-authored-by: Vishal <sarasani.vishalreddy@egovernments.org>
Co-authored-by: bhanu prakash <109132521+bhanuprakash-egov@users.noreply.github.com>
Co-authored-by: Naveen J <83631045+naveen-egov@users.noreply.github.com>
Co-authored-by: talele08 <talele08@users.noreply.github.com>

* Referral and Side effect sequence diagram

* HLM-4501: Added changes for HFReferral flow

* updated comments for common models

* updated comments for common models removed ini file

This reverts commit c1e226f.

* HLM-4501: updated topics and hfreferal constants

* HLM-4501: updated HFReferralService.java

* HLM-4501: Added changes in project id validator

* HLM-4501: updated HFReferralService.java

* HLM-4501: fixed hfreferral changes

* HLM-4501: added project facility id validator for hf_referral

* HLM-4501: missing link for validator added

* HLM-4501: updated HfrProjectFacilityIdValidator for NPE

* HLM-4501 : updated hf referral symtoms character length to 256

* HLM-4501: updated additionalFields field value size from 2 to 1

* HLM-4501: added code comments for all hf referral related classes

* HLM-4501: hf-referral sequence diagram

---------

Co-authored-by: kavi_elrey@1993 <25226238+kavi-egov@users.noreply.github.com>
Co-authored-by: Vishal <sarasani.vishalreddy@egovernments.org>
Co-authored-by: bhanu prakash <109132521+bhanuprakash-egov@users.noreply.github.com>
Co-authored-by: Naveen J <83631045+naveen-egov@users.noreply.github.com>
Co-authored-by: talele08 <talele08@users.noreply.github.com>
* HLM-4496: Added attendance module in HCM

* HLM-4496: updated attendance directory, removed target folder and imi file

* buil config added for hlm-4496 in feature branch

* HLM-4207: offline enablement in attendance log

* HLM-4207: added db migration script

* HLM-4207: updated db migration script

* HLM-4207: updated incorrect statements

* HLM-4207: bulk api support, without redis cache

* HLM-4207: updated Attendancelog consumer for bulk api

* HLM-4207: consumer fix

* HLM-4207: cache support added for attendance log create and update

* HLM-4207: added health-individual endpoint

* HLM-4207: added radis host

* HLM-4207: updated qualified for objectmapper in attendance module

* HLM-4496,HLM-4207: updated application.properties for redis config

* HLM-4207: updated kafka listener topics

* HLM-4207: changed kafka config

* HLM-4894 adding hrms related flag to Individual object, adding another ApiOperation

* HLM-4894 adding hrms related flag to Individual object, adding another ApiOperation

* HLM-4207, HLM-4986, HLM-4987 : bug fix

* HLM-4894 adding changes related to linking of HRMS Employee with Individual

* HLM-4894 adding changes related to linking of HRMS Employee with Individual

* HLM-4207: added clientreferenceid search, null check for document id

* HLM-4894 reverting changes related to linking of HRMS Employee with Individual

* HLM-4894 reverting changes related to linking of HRMS Employee with Individual from libraries, common-models

* HLM-4207: code re-format

* HLM-4894 adding changes for managing attendees while enrollment

* HLM-4207: updated attendance search, register id or clientreference id are mandatory

* hlm-5009 staffId in ProjectStaffSearch changed to list from string

* HLM-4894 updating build config

* HLM-4207: clientReferenceIds is changed to clientReferenceId for Attendance Log search criteria

* HLM-4207: removed staff validation for search without register id

* HLM-4894 adding changes for project staff validation

* HLM-4894 adding @qualifier annotation for object mapper

* HLM-4894 fixing hrms url

* HLM-4771: added changes for updating the registers on project date update

* HLM-4771: project update changes

* HLM-4771: updated the project start date update validation, can not update start date if it is already started

* HLM-4771: updated attendance register consumer and service with comments

* HLM-4771: updated the tenant id

* HLM-4894 updating environment variables.

* HLM-4894 updating code changes

* HLM-4894 adding code changes

* HLM-4894 adding code changes

* HLM-4894 adding code changes

* HLM-4771: updated the project validators, validation for start and end date of project

* HLM-4894 adding useruuid as search param in individual search

* HLM-4894 adding useruuid as search param in individual search

* HLM-4894 adding useruuid as search param in individual search

* HLM-4894 adding changes for registry creation when supervisor enrolls

* HLM-4496, HLM-4894: first staff enrollment on attendance register creation is optional

* HLM-4894 adding changes attendee enrollment

* HLM-4894 adding changes for making staffId as list of staffId in ProjectStaffSearch

* HLM-4894 adding changes for making staffId as list of staffId in ProjectStaffSearch

* HLM-4894 adding changes for making staffId as list of staffId in ProjectStaffSearch

* HLM-4894 removing staff-bulk-create-topic

* HLM-4894 removing staff-bulk-create-topic

* HLM-4894 removing staff-bulk-create-topic

* HLM-4894 removing staff-bulk-create-topic

* HLM-4894 changing health-attendance consumer group-id

* HLM-4894 adding changes for projectstaff consumer

* HLM-4894 adding changes for projectstaff consumer

* HLM-4894 adding changes for projectstaff consumer

* HLM-4894 adding changes for projectstaff consumer

* HLM-4894 adding changes for projectstaff consumer

* HLM-5045: added changes, project start date and end date difference should at least be 1 day.

* HLM-4894 adding comments

* HLM-4894 adding additional Details during attendance register creation

* HLM-4894 adding additional Details during attendance register creation

* hlm-4496 : bug fix on adding staff on updation of register

* HLM-4894 increasing limit to 1000

* Added changelog for individual, health-services-models, project, stock

* HLM-4496 : remove attendance module as it is moved to DIGIT-Works repository.

* HLM-5076: added changes related to project module

* updated individual user uuid search field for hlm-4496, hlm-4207

* changed common models build to 1.0.19-SNAPSHOT

---------

Co-authored-by: Priyanka-eGov <priyanka@egovernments.org>
Co-authored-by: syed-egov <syed.owais@egovernments.org>
Co-authored-by: kavi_elrey@1993 <25226238+kavi-egov@users.noreply.github.com>
@kanishq-egov kanishq-egov self-assigned this Feb 28, 2024
Copy link
Contributor

coderabbitai bot commented Feb 28, 2024

Walkthrough

The recent updates encompass a significant overhaul in the health service documentation and codebase. The focus lies on the introduction and enhancement of sequence diagrams for various referral management processes, covering HFReferrals, referrals, and side effects in both bulk and individual scenarios. Furthermore, there are notable improvements and additions in the health-services modules, particularly in individual and household services, model validations, and the creation of new classes and enums to streamline data management and service interactions.

Changes

Files Summary
.../referralmanagement/hfreferral/*.puml
.../referralmanagement/referral/*.puml
.../referralmanagement/side-effect/*.puml
Introduced sequence diagrams for HFReferral, Referral, and Side Effect processes including bulk operations and single instances.
health-services/household/CHANGELOG.md
health-services/individual/CHANGELOG.md
.../individual/src/...
Enhanced household and individual services with new features and search capabilities.
.../health-services-models/CHANGELOG.md
.../health-services-models/src/main/java/org.egov/...
Updated models with validation changes, new fields, classes like HFReferral*, custom deserializers, and enums.
health-services/project/CHANGELOG.md
.../project/src/main/java/org/egov/project/...
Improved project service with new configurations, constants, and validation for project updates.

"In the realm of code and docs, changes abound, 🌟
From diagrams to models, improvements are found. 📈
With each line and update, our services refine,
Ensuring health systems, with efficiency, align. 🏥
So hop along, dear friends, let's embrace the new,
For in this digital garden, growth is ever true. 🐰"
~ @coderabbitai

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share

Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit-tests for this file.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit tests for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository from git and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit tests.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json

CodeRabbit Discord Community

Join our Discord Community to get help, request features, and share feedback.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Status

Actionable comments generated: 20

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 1c034e3 and 9a489b0.
Files ignored due to path filters (5)
  • build/build-config.yml is excluded by: !**/*.yml
  • docs/health-api-specs/contracts/stock.yml is excluded by: !**/*.yml
  • health-services/libraries/health-services-models/pom.xml is excluded by: !**/*.xml
  • health-services/referralmanagement/pom.xml is excluded by: !**/*.xml
  • health-services/stock/pom.xml is excluded by: !**/*.xml
Files selected for processing (85)
  • docs/health-api-specs/sequence-diagrams/referralmanagement/hfreferral/bulk_create.puml (1 hunks)
  • docs/health-api-specs/sequence-diagrams/referralmanagement/hfreferral/bulk_delete.puml (1 hunks)
  • docs/health-api-specs/sequence-diagrams/referralmanagement/hfreferral/bulk_update.puml (1 hunks)
  • docs/health-api-specs/sequence-diagrams/referralmanagement/hfreferral/create.puml (1 hunks)
  • docs/health-api-specs/sequence-diagrams/referralmanagement/hfreferral/delete.puml (1 hunks)
  • docs/health-api-specs/sequence-diagrams/referralmanagement/hfreferral/update.puml (1 hunks)
  • docs/health-api-specs/sequence-diagrams/referralmanagement/referral/bulk_create.puml (1 hunks)
  • docs/health-api-specs/sequence-diagrams/referralmanagement/referral/bulk_delete.puml (1 hunks)
  • docs/health-api-specs/sequence-diagrams/referralmanagement/referral/bulk_update.puml (1 hunks)
  • docs/health-api-specs/sequence-diagrams/referralmanagement/referral/create.puml (1 hunks)
  • docs/health-api-specs/sequence-diagrams/referralmanagement/referral/delete.puml (1 hunks)
  • docs/health-api-specs/sequence-diagrams/referralmanagement/referral/update.puml (1 hunks)
  • docs/health-api-specs/sequence-diagrams/referralmanagement/side-effect/bulk_create.puml (1 hunks)
  • docs/health-api-specs/sequence-diagrams/referralmanagement/side-effect/bulk_delete.puml (1 hunks)
  • docs/health-api-specs/sequence-diagrams/referralmanagement/side-effect/bulk_update.puml (1 hunks)
  • docs/health-api-specs/sequence-diagrams/referralmanagement/side-effect/create.puml (1 hunks)
  • docs/health-api-specs/sequence-diagrams/referralmanagement/side-effect/delete.puml (1 hunks)
  • docs/health-api-specs/sequence-diagrams/referralmanagement/side-effect/update.puml (1 hunks)
  • health-services/household/CHANGELOG.md (1 hunks)
  • health-services/individual/CHANGELOG.md (1 hunks)
  • health-services/individual/src/main/java/org/egov/individual/repository/IndividualRepository.java (1 hunks)
  • health-services/individual/src/main/java/org/egov/individual/web/models/IndividualSearch.java (1 hunks)
  • health-services/individual/src/test/java/org/egov/individual/helper/IndividualSearchTestBuilder.java (1 hunks)
  • health-services/individual/src/test/java/org/egov/individual/repository/IndividualRepositoryTest.java (2 hunks)
  • health-services/libraries/health-services-models/CHANGELOG.md (1 hunks)
  • health-services/libraries/health-services-models/src/main/java/org/egov/common/models/core/validator/CustomIntegerDeserializer.java (1 hunks)
  • health-services/libraries/health-services-models/src/main/java/org/egov/common/models/facility/Field.java (3 hunks)
  • health-services/libraries/health-services-models/src/main/java/org/egov/common/models/household/Field.java (3 hunks)
  • health-services/libraries/health-services-models/src/main/java/org/egov/common/models/household/HouseholdSearch.java (1 hunks)
  • health-services/libraries/health-services-models/src/main/java/org/egov/common/models/individual/Field.java (3 hunks)
  • health-services/libraries/health-services-models/src/main/java/org/egov/common/models/individual/IndividualSearch.java (1 hunks)
  • health-services/libraries/health-services-models/src/main/java/org/egov/common/models/product/Field.java (3 hunks)
  • health-services/libraries/health-services-models/src/main/java/org/egov/common/models/project/Field.java (3 hunks)
  • health-services/libraries/health-services-models/src/main/java/org/egov/common/models/project/ProjectStaffSearch.java (1 hunks)
  • health-services/libraries/health-services-models/src/main/java/org/egov/common/models/referralmanagement/hfreferral/HFReferral.java (1 hunks)
  • health-services/libraries/health-services-models/src/main/java/org/egov/common/models/referralmanagement/hfreferral/HFReferralBulkRequest.java (1 hunks)
  • health-services/libraries/health-services-models/src/main/java/org/egov/common/models/referralmanagement/hfreferral/HFReferralBulkResponse.java (1 hunks)
  • health-services/libraries/health-services-models/src/main/java/org/egov/common/models/referralmanagement/hfreferral/HFReferralRequest.java (1 hunks)
  • health-services/libraries/health-services-models/src/main/java/org/egov/common/models/referralmanagement/hfreferral/HFReferralResponse.java (1 hunks)
  • health-services/libraries/health-services-models/src/main/java/org/egov/common/models/referralmanagement/hfreferral/HFReferralSearch.java (1 hunks)
  • health-services/libraries/health-services-models/src/main/java/org/egov/common/models/referralmanagement/hfreferral/HFReferralSearchRequest.java (1 hunks)
  • health-services/libraries/health-services-models/src/main/java/org/egov/common/models/stock/Field.java (3 hunks)
  • health-services/libraries/health-services-models/src/main/java/org/egov/common/models/stock/ReferenceIdType.java (1 hunks)
  • health-services/libraries/health-services-models/src/main/java/org/egov/common/models/stock/SenderReceiverType.java (1 hunks)
  • health-services/libraries/health-services-models/src/main/java/org/egov/common/models/stock/Stock.java (3 hunks)
  • health-services/project/CHANGELOG.md (1 hunks)
  • health-services/project/src/main/java/org/egov/project/config/ProjectConfiguration.java (1 hunks)
  • health-services/project/src/main/java/org/egov/project/service/ProjectStaffService.java (5 hunks)
  • health-services/project/src/main/java/org/egov/project/util/MDMSUtils.java (4 hunks)
  • health-services/project/src/main/java/org/egov/project/util/ProjectConstants.java (2 hunks)
  • health-services/project/src/main/java/org/egov/project/validator/beneficiary/PbVoucherTagUniqueForUpdateValidator.java (3 hunks)
  • health-services/project/src/main/java/org/egov/project/validator/project/ProjectValidator.java (10 hunks)
  • health-services/project/src/main/java/org/egov/project/web/models/ProjectStaffSearch.java (1 hunks)
  • health-services/project/src/main/resources/application.properties (1 hunks)
  • health-services/project/src/test/java/org/egov/project/service/ProjectStaffServiceSearchTest.java (1 hunks)
  • health-services/referralmanagement/CHANGELOG.md (1 hunks)
  • health-services/referralmanagement/src/main/java/org/egov/referralmanagement/Constants.java (1 hunks)
  • health-services/referralmanagement/src/main/java/org/egov/referralmanagement/config/ReferralManagementConfiguration.java (1 hunks)
  • health-services/referralmanagement/src/main/java/org/egov/referralmanagement/consumer/HFReferralConsumer.java (1 hunks)
  • health-services/referralmanagement/src/main/java/org/egov/referralmanagement/repository/HFReferralRepository.java (1 hunks)
  • health-services/referralmanagement/src/main/java/org/egov/referralmanagement/repository/rowmapper/HFReferralRowMapper.java (1 hunks)
  • health-services/referralmanagement/src/main/java/org/egov/referralmanagement/service/DownsyncService.java (10 hunks)
  • health-services/referralmanagement/src/main/java/org/egov/referralmanagement/service/HFReferralService.java (1 hunks)
  • health-services/referralmanagement/src/main/java/org/egov/referralmanagement/service/enrichment/HFReferralEnrichmentService.java (1 hunks)
  • health-services/referralmanagement/src/main/java/org/egov/referralmanagement/validator/hfreferral/HfrIsDeletedValidator.java (1 hunks)
  • health-services/referralmanagement/src/main/java/org/egov/referralmanagement/validator/hfreferral/HfrNonExistentEntityValidator.java (1 hunks)
  • health-services/referralmanagement/src/main/java/org/egov/referralmanagement/validator/hfreferral/HfrNullIdValidator.java (1 hunks)
  • health-services/referralmanagement/src/main/java/org/egov/referralmanagement/validator/hfreferral/HfrProjectFacilityIdValidator.java (1 hunks)
  • health-services/referralmanagement/src/main/java/org/egov/referralmanagement/validator/hfreferral/HfrProjectIdValidator.java (1 hunks)
  • health-services/referralmanagement/src/main/java/org/egov/referralmanagement/validator/hfreferral/HfrRowVersionValidator.java (1 hunks)
  • health-services/referralmanagement/src/main/java/org/egov/referralmanagement/validator/hfreferral/HfrUniqueEntityValidator.java (1 hunks)
  • health-services/referralmanagement/src/main/java/org/egov/referralmanagement/web/controllers/HFReferralApiController.java (1 hunks)
  • health-services/referralmanagement/src/main/resources/application.properties (2 hunks)
  • health-services/referralmanagement/src/main/resources/db/migration/main/V20231214113400__hf_referral_create_ddl.sql (1 hunks)
  • health-services/referralmanagement/src/main/resources/db/migration/main/V20240103142200__hf_referral_project_facility_rename_ddl.sql (1 hunks)
  • health-services/stock/CHANGELOG.md (1 hunks)
  • health-services/stock/src/main/java/org/egov/stock/config/MainConfiguration.java (2 hunks)
  • health-services/stock/src/main/java/org/egov/stock/repository/rowmapper/StockRowMapper.java (3 hunks)
  • health-services/stock/src/main/java/org/egov/stock/service/FacilityService.java (2 hunks)
  • health-services/stock/src/main/java/org/egov/stock/service/StockService.java (3 hunks)
  • health-services/stock/src/main/java/org/egov/stock/util/ValidatorUtil.java (8 hunks)
  • health-services/stock/src/main/java/org/egov/stock/validator/stock/SReferenceIdValidator.java (2 hunks)
  • health-services/stock/src/main/java/org/egov/stock/validator/stock/SSenderIdReceiverIdEqualsValidator.java (1 hunks)
  • health-services/stock/src/test/java/org/egov/stock/TestConfiguration.java (2 hunks)
  • health-services/stock/src/test/java/org/egov/stock/helper/StockTestBuilder.java (2 hunks)
Files skipped from review due to trivial changes (2)
  • health-services/referralmanagement/CHANGELOG.md
  • health-services/referralmanagement/src/main/resources/db/migration/main/V20240103142200__hf_referral_project_facility_rename_ddl.sql
Additional comments: 89
health-services/individual/CHANGELOG.md (1)
  • 3-5: The changelog update clearly documents the addition of the ability to search by UUID for individual search in version 1.1.3. This entry is concise and follows the standard format for changelog documentation.
health-services/household/CHANGELOG.md (1)
  • 3-6: The changelog update clearly documents the addition of a total count for households and a new field for HouseholdMember named clientReferenceId in version 1.1.1. These entries are concise and follow the standard format for changelog documentation.
health-services/project/CHANGELOG.md (1)
  • 3-6: The changelog update clearly documents the addition of validation for updating project start and end dates, and a new tag in project beneficiary in version 1.1.1. These entries are concise and follow the standard format for changelog documentation.
health-services/stock/CHANGELOG.md (1)
  • 3-8: The changelog update clearly documents the enhancements to inventory flow with sender id and receiver id added in version 1.1.2, and the introduction of QR code for last mile delivery in version 1.1.1. These entries are concise and follow the standard format for changelog documentation.
health-services/libraries/health-services-models/CHANGELOG.md (1)
  • 3-10: The changelog update clearly documents several changes across different versions, including the change of staffId to a list in version 1.0.19, adding user UUID in individual search in version 1.0.18, and adding client reference ID for household members in version 1.0.11. These entries are concise and follow the standard format for changelog documentation.
health-services/referralmanagement/src/main/java/org/egov/referralmanagement/Constants.java (1)
  • 8-9: The addition of the constants SET_HF_REFERRALS and GET_HF_REFERRALS to the Constants interface is appropriate and follows the naming convention used for other constants in the interface, clearly indicating their purpose related to handling health facility referrals.
health-services/project/src/main/java/org/egov/project/web/models/ProjectStaffSearch.java (1)
  • 40-40: The change from a single String staffId to a List<String> implies that the search functionality now supports querying by multiple staff IDs. Ensure that all parts of the system interacting with this class are updated accordingly to handle lists instead of single strings. This change could significantly impact how search results are processed and returned.
health-services/libraries/health-services-models/src/main/java/org/egov/common/models/referralmanagement/hfreferral/HFReferralBulkRequest.java (1)
  • 1-46: The implementation of HFReferralBulkRequest class with validation annotations and a method for adding HFReferral items is well-done. The use of @NotNull, @Valid, and @Size(min = 1) annotations ensures data integrity and that the bulk request contains at least one referral. The null checks in addHFReferralItem method are a good practice to prevent potential NullPointerException.
health-services/stock/src/test/java/org/egov/stock/helper/StockTestBuilder.java (1)
  • 4-5: The introduction of ReferenceIdType and SenderReceiverType enums and their usage in the StockTestBuilder class enhances type safety and clarity in the stock management functionality. The adjustments in method chaining for quantity and rowVersion are also noted as improvements for consistency. Good job on these enhancements.

Also applies to: 31-40

health-services/stock/src/main/java/org/egov/stock/validator/stock/SSenderIdReceiverIdEqualsValidator.java (3)
  • 25-25: The class SSenderIdReceiverIdEqualsValidator correctly implements the Validator interface for StockBulkRequest and Stock, focusing on ensuring senderId and receiverId are not equal. This is a crucial validation step to prevent logical errors in stock transactions.
  • 33-61: The validate method efficiently iterates through each Stock entity in the provided StockBulkRequest, checking if senderId and receiverId are equal. If they are equal, it correctly identifies the entity as invalid, creates an appropriate error object, and populates the error details map. This method is well-structured and follows best practices for error handling and logging.
  • 69-73: The helper method areSenderAndReceiverEqual is concise and effectively checks if senderId and receiverId are equal, considering null checks for both IDs. This method enhances the readability and maintainability of the validation logic.
health-services/libraries/health-services-models/src/main/java/org/egov/common/models/stock/Stock.java (4)
  • 54-55: Adding @Min and @Max constraints to the quantity field ensures that the quantity cannot be less than 1 and does not exceed the maximum integer value. This is a good practice for maintaining data integrity and preventing unrealistic values.
  • 63-65: Changing referenceIdType from String to ReferenceIdType with @NotNull and @Valid annotations ensures that only valid enum values are accepted, enhancing type safety and data integrity.
  • 69-69: Adding a @NotNull constraint to transactionType ensures that this field cannot be null, which is crucial for maintaining the consistency and integrity of stock transactions.
  • 83-85: Changing senderType and receiverType from String to SenderReceiverType with specific message constraints ensures that only valid enum values are accepted, enhancing type safety and data integrity.
health-services/referralmanagement/src/main/java/org/egov/referralmanagement/validator/hfreferral/HfrRowVersionValidator.java (2)
  • 38-38: The class HfrRowVersionValidator correctly implements the Validator interface for HFReferralBulkRequest and HFReferral, focusing on validating row version mismatches. This is an important validation step to ensure data consistency during bulk updates.
  • 53-72: The validate method effectively identifies HFReferral entities with row version mismatches by comparing the versions of entities in the request with those in the database. It uses a well-structured approach to fetch existing referrals, compare row versions, and populate the error details map for mismatches. This method follows best practices for error handling and logging.
health-services/referralmanagement/src/main/java/org/egov/referralmanagement/config/ReferralManagementConfiguration.java (1)
  • 64-90: The addition of configuration properties for HFReferral Kafka topics (createHFReferralTopic, updateHFReferralTopic, deleteHFReferralTopic, createHFReferralBulkTopic, updateHFReferralBulkTopic, deleteHFReferralBulkTopic) and project search URLs (projectFacilitySearchUrl, projectSearchUrl) is well-implemented. These properties are essential for supporting the new functionality related to HFReferrals and project management within the referral management system.
health-services/stock/src/main/java/org/egov/stock/repository/rowmapper/StockRowMapper.java (1)
  • 47-66: > 📝 NOTE

This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [38-63]

The updates to StockRowMapper to handle ReferenceIdType and SenderReceiverType enums for referenceIdType, senderType, and receiverType fields, as well as handling dateOfEntry as nullable, are correctly implemented. These changes ensure that the Stock entity is accurately mapped from database results, enhancing type safety and data integrity.

docs/health-api-specs/sequence-diagrams/referralmanagement/referral/delete.puml (1)
  • 1-124: The sequence diagram for the referral deletion process accurately represents the workflow, including request validation, error handling, and asynchronous processing through Kafka and Elasticsearch. It provides a clear visual representation of the interactions between components in the referral deletion process.
docs/health-api-specs/sequence-diagrams/referralmanagement/side-effect/delete.puml (1)
  • 1-123: The sequence diagram for the side effect deletion process accurately represents the workflow, including request validation, error handling, and asynchronous processing. It provides a clear visual representation of the interactions between components in the side effect deletion process.
health-services/referralmanagement/src/main/java/org/egov/referralmanagement/validator/hfreferral/HfrNonExistentEntityValidator.java (2)
  • 39-39: The class HfrNonExistentEntityValidator correctly implements the Validator interface for HFReferralBulkRequest and HFReferral, focusing on validating the existence of referred entities. This is an important validation step to ensure that referred entities exist before processing referrals.
  • 57-78: The validate method effectively identifies HFReferral entities referring to non-existent entities by comparing the entities in the request with those in the database. It uses a well-structured approach to fetch existing referrals, check for non-existent referrals, and populate the error details map for non-existent entities. This method follows best practices for error handling and logging.
docs/health-api-specs/sequence-diagrams/referralmanagement/hfreferral/create.puml (6)
  • 1-3: The title and theme setup are correctly defined, ensuring clarity and visual appeal for the diagram.
  • 4-14: All necessary participants for the HFReferral creation process are correctly declared, ensuring a comprehensive representation of the system components involved.
  • 16-41: The initial request validation and error handling for request validation failures are well-documented, including the use of an error topic for unrecoverable errors requiring manual intervention. This ensures robust error handling and clear documentation of failure paths.
  • 42-83: The diagram effectively handles scenarios where the record already exists, both in cache and database, and returns an appropriate error code. This prevents duplicate entries and ensures data integrity.
  • 84-105: The validation for project and projectFacility IDs is clearly outlined, including checks for existence and handling of invalid IDs with appropriate error codes. This ensures dependencies are correctly managed and errors are clearly communicated.
  • 106-134: The successful creation path, including caching and asynchronous processing via Kafka, is well-documented. This shows a clear flow from data validation to persistence and indexing, ensuring a comprehensive understanding of the creation process.
docs/health-api-specs/sequence-diagrams/referralmanagement/side-effect/bulk_delete.puml (5)
  • 1-3: The title and theme setup are correctly defined, ensuring clarity and visual appeal for the diagram.
  • 4-16: All necessary participants for the Side Effect bulk delete process are correctly declared, ensuring a comprehensive representation of the system components involved.
  • 18-43: The initial request validation and error handling for request validation failures are well-documented, including the use of an error topic for unrecoverable errors requiring manual intervention. This ensures robust error handling and clear documentation of failure paths.
  • 44-122: The loop for handling each side-effect deletion, including null ID checks, record existence validation, and error handling for non-existent records, is clearly outlined. This ensures that each side effect is properly validated and handled before deletion, maintaining data integrity.
  • 123-123: The successful deletion path, including asynchronous processing via Kafka, is well-documented. This shows a clear flow from data validation to persistence and indexing, ensuring a comprehensive understanding of the bulk deletion process.
docs/health-api-specs/sequence-diagrams/referralmanagement/side-effect/create.puml (5)
  • 1-3: The title and theme setup are correctly defined, ensuring clarity and visual appeal for the diagram.
  • 4-16: All necessary participants for the Side Effect create process are correctly declared, ensuring a comprehensive representation of the system components involved.
  • 18-43: The initial request validation and error handling for request validation failures are well-documented, including the use of an error topic for unrecoverable errors requiring manual intervention. This ensures robust error handling and clear documentation of failure paths.
  • 44-107: The diagram effectively handles scenarios where the record already exists, both in cache and database, and returns an appropriate error code. Additionally, it includes validation for projectTaskId and projectBeneficiaryId, ensuring dependencies are correctly managed and errors are clearly communicated.
  • 108-137: The successful creation path, including caching and asynchronous processing via Kafka, is well-documented. This shows a clear flow from data validation to persistence and indexing, ensuring a comprehensive understanding of the creation process.
health-services/stock/src/main/java/org/egov/stock/config/MainConfiguration.java (1)
  • 47-52: The update to the objectMapper bean to include a custom deserializer for Integer using SimpleModule and CustomIntegerDeserializer is a good practice for handling specific deserialization needs. This ensures that integers are deserialized in a manner that is consistent with the application's requirements, potentially handling issues like number format exceptions more gracefully.
docs/health-api-specs/sequence-diagrams/referralmanagement/referral/bulk_delete.puml (4)
  • 1-3: The title and theme setup are correctly defined, ensuring clarity and visual appeal for the diagram.
  • 4-17: All necessary participants for the Referral bulk delete process are correctly declared, ensuring a comprehensive representation of the system components involved.
  • 19-44: The initial request validation and error handling for request validation failures are well-documented, including the use of an error topic for unrecoverable errors requiring manual intervention. This ensures robust error handling and clear documentation of failure paths.
  • 45-131: The loop for handling each referral deletion, including null ID checks, record existence validation, and error handling for non-existent records, is clearly outlined. Additionally, the diagram includes handling for duplicate entries and incorrect rowVersion, ensuring that data integrity is maintained throughout the bulk deletion process.
docs/health-api-specs/sequence-diagrams/referralmanagement/hfreferral/delete.puml (4)
  • 1-3: The title and theme setup are correctly defined, ensuring clarity and visual appeal for the diagram.
  • 4-17: All necessary participants for the HFReferral delete process are correctly declared, ensuring a comprehensive representation of the system components involved.
  • 19-44: The initial request validation and error handling for request validation failures are well-documented, including the use of an error topic for unrecoverable errors requiring manual intervention. This ensures robust error handling and clear documentation of failure paths.
  • 45-141: The diagram effectively handles scenarios where the HFReferral ID is null, the record does not exist, or the rowVersion is incorrect, and returns appropriate error codes for each scenario. This ensures data integrity and clear communication of errors. Additionally, the successful deletion path, including caching and asynchronous processing via Kafka, is well-documented, showing a clear flow from data validation to persistence and indexing.
docs/health-api-specs/sequence-diagrams/referralmanagement/hfreferral/bulk_create.puml (1)
  • 1-140: The sequence diagram for HFReferral - Bulk Create provides a clear and detailed representation of the process flow. It correctly outlines interactions between components such as the client, ReferralManagement, RedisCache, Kafka, PersisterService, IndexerService, ErrorService, ElasticSearch, and the database. The use of alternative paths for error handling and validation failures is well-represented. Ensure that all components and interactions depicted in the diagram accurately reflect the current system architecture and business logic.
docs/health-api-specs/sequence-diagrams/referralmanagement/side-effect/bulk_create.puml (1)
  • 1-141: The sequence diagram for Side Effect - Bulk Create provides a clear and detailed representation of the process flow for handling bulk creation of side effects. It correctly outlines interactions between components such as the client, ReferralManagement, RedisCache, Kafka, PersisterService, IndexerService, ErrorService, ElasticSearch, and the database. The use of alternative paths for error handling, validation failures, and checks for projectTaskId and projectBeneficiaryId are well-represented. Ensure that all components and interactions depicted in the diagram accurately reflect the current system architecture and business logic for handling side effects.
docs/health-api-specs/sequence-diagrams/referralmanagement/hfreferral/bulk_delete.puml (1)
  • 1-153: The sequence diagram for HFReferral - Bulk Delete provides a clear and detailed representation of the process flow for handling bulk deletion of HFReferrals. It correctly outlines interactions between components such as the client, ReferralManagement, RedisCache, Kafka, PersisterService, IndexerService, ErrorService, ElasticSearch, and the database. The use of alternative paths for error handling, validation failures, and checks for record existence are well-represented. Ensure that all components and interactions depicted in the diagram accurately reflect the current system architecture and business logic for handling bulk deletions.
docs/health-api-specs/sequence-diagrams/referralmanagement/side-effect/update.puml (1)
  • 1-175: The sequence diagram for Side Effect - Update provides a clear and detailed representation of the process flow for updating side effects. It correctly outlines interactions between components such as the client, ReferralManagement, RedisCache, Kafka, PersisterService, IndexerService, ErrorService, ElasticSearch, and the database. The use of alternative paths for error handling, validation failures, and checks for projectTaskId and projectBeneficiaryId are well-represented. Ensure that all components and interactions depicted in the diagram accurately reflect the current system architecture and business logic for updating side effects.
health-services/project/src/test/java/org/egov/project/service/ProjectStaffServiceSearchTest.java (1)
  • 53-53: The modification to assign a list of staff IDs (Collections.singletonList("some-user-id")) in the ProjectStaffSearch object creation aligns with supporting searches by multiple staff IDs. Ensure that the service and repository layers have been updated accordingly to handle lists of staff IDs effectively. This change enhances the flexibility of the search functionality.
health-services/referralmanagement/src/main/java/org/egov/referralmanagement/consumer/HFReferralConsumer.java (1)
  • 1-110: The implementation of Kafka listeners in HFReferralConsumer.java for handling bulk create, update, and delete operations for HFReferrals is well-structured and follows best practices. Each method correctly processes the Kafka message payload, invokes the corresponding service method for bulk operations, and includes robust error handling and logging. Ensure that the Kafka topic names are correctly configured in the application properties and that the HFReferralService methods are designed to support these bulk operations effectively.
docs/health-api-specs/sequence-diagrams/referralmanagement/side-effect/bulk_update.puml (1)
  • 1-177: The sequence diagram for Side Effect - Bulk Update provides a comprehensive view of the process, including request validation, error handling, and data persistence. It's crucial to ensure that all components involved (e.g., RedisCache, Kafka, Database) are correctly integrated and that the error handling process is robust, especially for unrecoverable errors requiring manual intervention. Additionally, consider adding more details on how the bulk update operation is performed in the database and how individual records are handled in case of partial failures.
health-services/project/src/main/java/org/egov/project/config/ProjectConfiguration.java (1)
  • 186-187: The addition of the projectStaffAttendanceTopic field in ProjectConfiguration is correctly annotated with @Value to inject the property value. Ensure that the corresponding property ${project.staff.attendance.topic} is defined in the application's properties file to avoid issues during runtime.
health-services/referralmanagement/src/main/resources/application.properties (1)
  • 122-135: > 📝 NOTE

This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [100-131]

The addition of new properties related to project service URLs and Kafka topics for HF referral management is crucial for supporting the enhanced functionalities in referral management. Ensure that these URLs and topics are correctly configured in the environment where the application is deployed. Additionally, verify that the Kafka topics are created and accessible by the application to avoid runtime issues.

docs/health-api-specs/sequence-diagrams/referralmanagement/referral/create.puml (1)
  • 1-201: The sequence diagram for Referral - Create provides a detailed view of the process, including request validation, error handling, and data persistence. It's important to ensure that all components involved (e.g., UserService, FacilityService, RedisCache, Kafka, Database) are correctly integrated and that the error handling process is robust, especially for dependency errors and record existence checks. Additionally, consider adding more details on how the create operation is performed in the database and how the system handles cases where the recipient type affects the validation flow.
docs/health-api-specs/sequence-diagrams/referralmanagement/hfreferral/update.puml (1)
  • 1-195: The sequence diagram for HFReferral - Update provides a comprehensive view of the process, including request validation, error handling, and data persistence. It's crucial to ensure that all components involved (e.g., ProjectService, RedisCache, Kafka, Database) are correctly integrated and that the error handling process is robust, especially for dependency errors and rowVersion checks. Additionally, consider adding more details on how the update operation is performed in the database, particularly how conflicts with rowVersion are handled to ensure data consistency.
health-services/stock/src/main/java/org/egov/stock/service/FacilityService.java (2)
  • 101-101: Using the SenderReceiverType enum for comparison instead of string literals enhances type safety and readability. This is a good practice as it avoids potential errors due to typos and makes the code more maintainable.
  • 104-104: Similarly, using the SenderReceiverType enum for the receiver type comparison is a good practice for the same reasons mentioned earlier. It improves code maintainability and readability.
health-services/project/src/main/resources/application.properties (1)
  • 168-168: The addition of the project.staff.attendance.topic configuration key for Kafka topics related to staff attendance is a clear and descriptive way to manage application settings. Ensure that the topic name aligns with the naming conventions used across your Kafka topics for consistency.
health-services/project/src/main/java/org/egov/project/util/MDMSUtils.java (2)
  • 22-28: The addition of imports for classes and the new constant MDMS_HCM_ATTENDANCE_MODULE_NAME are appropriate for the functionality being introduced. It's good practice to keep constants centralized for easier management and modification.
  • 130-143: The implementation of getAttendanceModuleRequestData method to retrieve attendance module details is a good addition. It follows the established pattern for fetching module details from MDMS. Ensure that the MASTER_ATTENDANCE_SESSION constant is correctly defined and used within your MDMS configuration.
docs/health-api-specs/sequence-diagrams/referralmanagement/referral/bulk_create.puml (1)
  • 1-204: The sequence diagram for the Referral - Bulk Create process is comprehensive and clearly outlines the interactions between components such as Client, ReferralManagement, FacilityService, and others. It includes validation steps, error handling, and asynchronous processing which are crucial for understanding the flow. Ensure that all components and interactions are accurately represented according to the system's architecture and that the diagram is updated if the process changes.
health-services/referralmanagement/src/main/java/org/egov/referralmanagement/validator/hfreferral/HfrProjectIdValidator.java (3)
  • 52-68: The implementation of the validate method in HfrProjectIdValidator is well-structured, grouping HFReferrals by tenantId and validating project existence for each group. This approach is efficient and ensures that validation is performed in a tenant-specific manner. Ensure that error handling is robust and that all possible error conditions are accounted for.
  • 76-108: The getExistingProjects method fetches existing projects from the Project Service based on their IDs. This method is crucial for the validation process. Ensure that the service endpoint used is reliable and that error handling within this method is sufficient to catch and report any issues encountered during the fetch operation.
  • 112-130: The validateAndPopulateErrors method correctly filters out invalid entities and populates the error map. This is a key part of the validation process, ensuring that errors are reported back to the caller. It's important to ensure that the error messages provided are clear and informative to aid in debugging and correction of data issues.
docs/health-api-specs/sequence-diagrams/referralmanagement/referral/update.puml (1)
  • 1-237: The sequence diagram for the referral update process is comprehensive and outlines the interactions between various components effectively. It includes detailed steps for request validation, error handling, and dependency checks. Ensure that all services and components involved in the process are up-to-date and accurately represented. Additionally, verify that the error codes and conditions used throughout the diagram are consistent with the system's error handling conventions.
docs/health-api-specs/sequence-diagrams/referralmanagement/hfreferral/bulk_update.puml (1)
  • 1-205: The sequence diagram for the HFReferral bulk update process is well-detailed, capturing the bulk operation's nuances. It effectively illustrates the interactions for bulk updates, including request validation, error handling, and dependency checks. Ensure the diagram reflects the latest system architecture and error handling conventions, especially considering the bulk nature of the operations. Additionally, confirm that the async processes and error topics are correctly configured to handle bulk data efficiently.
health-services/referralmanagement/src/main/java/org/egov/referralmanagement/validator/hfreferral/HfrProjectFacilityIdValidator.java (1)
  • 1-134: The HfrProjectFacilityIdValidator class is well-structured and follows good practices in implementing the validation logic for ProjectFacility entities in HFReferral objects. A few recommendations for improvement:
  • Ensure that the error handling within getExistingProjects method is comprehensive and provides enough context for debugging in case of failures.
  • Consider optimizing the process of fetching existing projects if the list of project facility IDs becomes large, to avoid potential performance issues.
  • Verify that the serviceRequestClient.fetchResult method handles timeouts and other network-related exceptions gracefully.

Overall, the class implements the required validation logic effectively. Ensure that unit tests cover various scenarios, including success, failure, and edge cases.

health-services/individual/src/test/java/org/egov/individual/repository/IndividualRepositoryTest.java (2)
  • 91-91: The addition of .byUserUUID() in the test case shouldFindOtherParamsFromDbAndReturnAllTheDependentEntitiesAsWellIfPresent is appropriate and extends the test coverage to include scenarios where user UUID is part of the search criteria. Ensure that the corresponding mock setups and assertions are updated to reflect this new search parameter.
  • 149-149: Similarly, the inclusion of .byUserUUID() in the test case shouldFindOtherParamsAndIdentifierFromDbAndReturnAllTheDependentEntitiesAsWellIfPresent is relevant and enhances the test's comprehensiveness. Verify that the test accurately reflects the behavior of the IndividualRepository when filtering by user UUID, alongside other parameters and identifiers.
docs/health-api-specs/sequence-diagrams/referralmanagement/referral/bulk_update.puml (1)
  • 1-18: The sequence diagram starts correctly with the definition of the title, theme, participants, and components involved in the bulk update process. This setup is clear and well-organized, providing a good overview of the entities involved.
health-services/referralmanagement/src/main/java/org/egov/referralmanagement/repository/HFReferralRepository.java (1)
  • 33-55: The class definition and constructor are correctly set up, with appropriate dependency injection for required components like Producer, NamedParameterJdbcTemplate, RedisTemplate, SelectQueryBuilder, and HFReferralRowMapper. This setup facilitates the repository's operations and interactions with the database and cache.
health-services/project/src/main/java/org/egov/project/validator/beneficiary/PbVoucherTagUniqueForUpdateValidator.java (1)
  • 25-25: The addition of author information enhances the documentation and provides clarity on the ownership and maintenance of the code. This is a good practice for code maintainability.
health-services/stock/src/main/java/org/egov/stock/service/StockService.java (3)
  • 34-40: > 📝 NOTE

This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [37-61]

The inclusion of the SSenderIdReceiverIdEqualsValidator in the predicate for applicability in create operations is a significant enhancement. It ensures that sender and receiver IDs are validated for equality, which is crucial for certain stock operations. This addition strengthens the validation logic and prevents potential data inconsistencies.

  • 73-73: Similarly, the addition of the SSenderIdReceiverIdEqualsValidator in the predicate for applicability in update operations is commendable. It ensures that the validation for sender and receiver ID equality is also applied during updates, maintaining consistency and data integrity throughout the lifecycle of stock entities.
  • 78-79: The decision not to include the SSenderIdReceiverIdEqualsValidator in the predicate for applicability in delete operations is appropriate. Since delete operations may not require the same level of validation for sender and receiver IDs, excluding this validator from the delete flow helps optimize performance and maintain focus on relevant validations.
health-services/referralmanagement/src/main/java/org/egov/referralmanagement/web/controllers/HFReferralApiController.java (3)
  • 89-97: The bulk creation endpoint referralBulkV1CreatePost correctly handles bulk operations. However, setting the API ID in the request info (request.getRequestInfo().setApiId(httpServletRequest.getRequestURI());) might not be necessary or could be misleading if the API ID is meant to be a static identifier for the API. Verify the intention behind setting the API ID dynamically based on the request URI and ensure it aligns with the overall design and usage of API IDs in the system.
  • 151-158: The bulk update endpoint referralV1BulkUpdatePost follows the same pattern as the bulk create endpoint. Ensure that the dynamic setting of the API ID is intentional and consistent with the system's design. Additionally, consider the response status code used and whether it accurately reflects the operation's nature.
  • 185-192: The bulk delete endpoint referralV1BulkDeletePost correctly implements the bulk deletion functionality. As with other bulk operations, verify the dynamic setting of the API ID. Additionally, consider the response status code used, especially if the operation does not return any content upon successful deletion.
health-services/individual/src/main/java/org/egov/individual/repository/IndividualRepository.java (1)
  • 273-276: The addition of the userUuid condition in the getQueryForIndividual method enhances the query's flexibility by allowing searches based on userUuid. This change is consistent with the PR's objectives to improve search capabilities and data handling. However, ensure that userUuid values are properly sanitized before this point to prevent SQL injection vulnerabilities. Additionally, consider indexing the userUuid column in the database if it's frequently used in queries to improve performance.
health-services/project/src/main/java/org/egov/project/validator/project/ProjectValidator.java (5)
  • 1-17: > 📝 NOTE

This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [3-38]

The addition of imports for java.time, com.fasterxml.jackson.databind, and the new constant MDMS_HCM_ATTENDANCE_MODULE_NAME are appropriate for the new functionalities introduced in this class. Ensure that these imports are used effectively throughout the class and that there are no unused imports to maintain code cleanliness.

  • 54-56: The addition of the ObjectMapper field with the @Autowired annotation is a good practice for dependency injection, promoting decoupling and easier testing. However, ensure that the @Qualifier("objectMapper") is correctly configured in the Spring context to inject the intended ObjectMapper bean, as multiple beans of the same type might exist.
  • 74-74: The method validateAttendanceSessionAgainstMDMS is correctly called within validateCreateProjectRequest to include new validation logic for attendance sessions. This integration ensures that the validation process is comprehensive and considers the newly introduced attendance session requirements.
  • 322-365: The method validateAttendanceSessionAgainstMDMS introduces new logic to validate attendance sessions against MDMS data. While the approach is generally correct, there are a few points to consider:
  • Ensure that the MDMS data retrieval (mdmsUtils.mDMSCall) is efficient and does not introduce performance bottlenecks, especially in bulk operations.
  • The use of JsonPath.read for parsing MDMS data is appropriate, but ensure proper error handling for JSON parsing exceptions.
  • The validation logic for numberOfSessions against the MDMS response is crucial for data integrity. However, consider adding more detailed error messages to help debug issues more effectively.
  • 440-496: > 📝 NOTE

This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [414-492]

The methods validateStartDateAndEndDateAgainstDB and the logic for validating start and end dates against the current timestamp and next date are well-integrated. However, consider the following:

  • Ensure that the logic for calculating nextDateTimestampUTC is accurate and accounts for time zone differences appropriately.
  • The error handling and messaging are clear, but ensure that these validations are thoroughly tested, especially the edge cases around the current timestamp and next date calculations.

Comment on lines +70 to +81
@RequestMapping(value = "/v1/_create", method = RequestMethod.POST)
public ResponseEntity<HFReferralResponse> referralV1CreatePost(@ApiParam(value = "Capture details of HFReferral", required = true) @Valid @RequestBody HFReferralRequest request) {

HFReferral hfReferral = hfReferralService.create(request);
HFReferralResponse response = HFReferralResponse.builder()
.hfReferral(hfReferral)
.responseInfo(ResponseInfoFactory
.createResponseInfo(request.getRequestInfo(), true))
.build();

return ResponseEntity.status(HttpStatus.ACCEPTED).body(response);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The method referralV1CreatePost correctly implements the creation of a single HFReferral. It uses appropriate annotations and validation. The response status HttpStatus.ACCEPTED is used, which implies that the request has been accepted for processing but the processing has not been completed. This is typically used for asynchronous processing. If the creation of HFReferral is synchronous and immediate, consider using HttpStatus.CREATED for a more accurate status code.

- return ResponseEntity.status(HttpStatus.ACCEPTED).body(response);
+ return ResponseEntity.status(HttpStatus.CREATED).body(response);

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
@RequestMapping(value = "/v1/_create", method = RequestMethod.POST)
public ResponseEntity<HFReferralResponse> referralV1CreatePost(@ApiParam(value = "Capture details of HFReferral", required = true) @Valid @RequestBody HFReferralRequest request) {
HFReferral hfReferral = hfReferralService.create(request);
HFReferralResponse response = HFReferralResponse.builder()
.hfReferral(hfReferral)
.responseInfo(ResponseInfoFactory
.createResponseInfo(request.getRequestInfo(), true))
.build();
return ResponseEntity.status(HttpStatus.ACCEPTED).body(response);
}
@RequestMapping(value = "/v1/_create", method = RequestMethod.POST)
public ResponseEntity<HFReferralResponse> referralV1CreatePost(@ApiParam(value = "Capture details of HFReferral", required = true) @Valid @RequestBody HFReferralRequest request) {
HFReferral hfReferral = hfReferralService.create(request);
HFReferralResponse response = HFReferralResponse.builder()
.hfReferral(hfReferral)
.responseInfo(ResponseInfoFactory
.createResponseInfo(request.getRequestInfo(), true))
.build();
return ResponseEntity.status(HttpStatus.CREATED).body(response);
}

Comment on lines +111 to +123
@RequestMapping(value = "/v1/_search", method = RequestMethod.POST)
public ResponseEntity<HFReferralBulkResponse> referralV1SearchPost(@ApiParam(value = "HFReferral Search.", required = true) @Valid @RequestBody HFReferralSearchRequest request,
@NotNull @Min(0) @Max(1000) @ApiParam(value = "Pagination - limit records in response", required = true) @Valid @RequestParam(value = "limit", required = true) Integer limit,
@NotNull @Min(0) @ApiParam(value = "Pagination - offset from which records should be returned in response", required = true) @Valid @RequestParam(value = "offset", required = true) Integer offset,
@NotNull @ApiParam(value = "Unique id for a tenant.", required = true) @Valid @RequestParam(value = "tenantId", required = true) String tenantId,
@ApiParam(value = "Epoch of the time since when the changes on the object should be picked up. Search results from this parameter should include both newly created objects since this time as well as any modified objects since this time. This criterion is included to help polling clients to get the changes in system since a last time they synchronized with the platform. ") @Valid @RequestParam(value = "lastChangedSince", required = false) Long lastChangedSince,
@ApiParam(value = "Used in search APIs to specify if (soft) deleted records should be included in search results.", defaultValue = "false") @Valid @RequestParam(value = "includeDeleted", required = false, defaultValue = "false") Boolean includeDeleted) throws Exception {

List<HFReferral> hfReferrals = hfReferralService.search(request, limit, offset, tenantId, lastChangedSince, includeDeleted);
HFReferralBulkResponse response = HFReferralBulkResponse.builder().responseInfo(ResponseInfoFactory
.createResponseInfo(request.getRequestInfo(), true)).hfReferrals(hfReferrals).build();

return ResponseEntity.status(HttpStatus.OK).body(response);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The search endpoint referralV1SearchPost correctly implements pagination and allows for filtering based on various criteria. However, the method throws a generic Exception, which is a broad exception type. It's recommended to catch and handle specific exceptions that might occur during the operation. This approach improves error handling and makes the code more robust by allowing for more granular control over different error conditions.

Consider catching specific exceptions that could occur during the search operation and handling them appropriately.

Comment on lines +132 to +142
@RequestMapping(value = "/v1/_update", method = RequestMethod.POST)
public ResponseEntity<HFReferralResponse> referralV1UpdatePost(@ApiParam(value = "Capture details of Existing HFReferral", required = true) @Valid @RequestBody HFReferralRequest request) {
HFReferral hfReferral = hfReferralService.update(request);

HFReferralResponse response = HFReferralResponse.builder()
.hfReferral(hfReferral)
.responseInfo(ResponseInfoFactory
.createResponseInfo(request.getRequestInfo(), true))
.build();

return ResponseEntity.status(HttpStatus.ACCEPTED).body(response);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The update endpoint referralV1UpdatePost is implemented correctly with appropriate validation and response handling. Similar to the create endpoint, consider the use of HttpStatus.OK or HttpStatus.CREATED instead of HttpStatus.ACCEPTED if the update operation is immediate and does not involve asynchronous processing.

- return ResponseEntity.status(HttpStatus.ACCEPTED).body(response);
+ return ResponseEntity.status(HttpStatus.OK).body(response);

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
@RequestMapping(value = "/v1/_update", method = RequestMethod.POST)
public ResponseEntity<HFReferralResponse> referralV1UpdatePost(@ApiParam(value = "Capture details of Existing HFReferral", required = true) @Valid @RequestBody HFReferralRequest request) {
HFReferral hfReferral = hfReferralService.update(request);
HFReferralResponse response = HFReferralResponse.builder()
.hfReferral(hfReferral)
.responseInfo(ResponseInfoFactory
.createResponseInfo(request.getRequestInfo(), true))
.build();
return ResponseEntity.status(HttpStatus.ACCEPTED).body(response);
@RequestMapping(value = "/v1/_update", method = RequestMethod.POST)
public ResponseEntity<HFReferralResponse> referralV1UpdatePost(@ApiParam(value = "Capture details of Existing HFReferral", required = true) @Valid @RequestBody HFReferralRequest request) {
HFReferral hfReferral = hfReferralService.update(request);
HFReferralResponse response = HFReferralResponse.builder()
.hfReferral(hfReferral)
.responseInfo(ResponseInfoFactory
.createResponseInfo(request.getRequestInfo(), true))
.build();
return ResponseEntity.status(HttpStatus.OK).body(response);

Comment on lines +166 to +176
@RequestMapping(value = "/v1/_delete", method = RequestMethod.POST)
public ResponseEntity<HFReferralResponse> referralV1DeletePost(@ApiParam(value = "Capture details of Existing HFReferral", required = true) @Valid @RequestBody HFReferralRequest request) {
HFReferral hfReferral = hfReferralService.delete(request);

HFReferralResponse response = HFReferralResponse.builder()
.hfReferral(hfReferral)
.responseInfo(ResponseInfoFactory
.createResponseInfo(request.getRequestInfo(), true))
.build();

return ResponseEntity.status(HttpStatus.ACCEPTED).body(response);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The delete endpoint referralV1DeletePost is implemented correctly. However, consider using HttpStatus.NO_CONTENT as the response status code if the deletion is successful and does not return any content.

- return ResponseEntity.status(HttpStatus.ACCEPTED).body(response);
+ return ResponseEntity.status(HttpStatus.NO_CONTENT).build();

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
@RequestMapping(value = "/v1/_delete", method = RequestMethod.POST)
public ResponseEntity<HFReferralResponse> referralV1DeletePost(@ApiParam(value = "Capture details of Existing HFReferral", required = true) @Valid @RequestBody HFReferralRequest request) {
HFReferral hfReferral = hfReferralService.delete(request);
HFReferralResponse response = HFReferralResponse.builder()
.hfReferral(hfReferral)
.responseInfo(ResponseInfoFactory
.createResponseInfo(request.getRequestInfo(), true))
.build();
return ResponseEntity.status(HttpStatus.ACCEPTED).body(response);
@RequestMapping(value = "/v1/_delete", method = RequestMethod.POST)
public ResponseEntity<HFReferralResponse> referralV1DeletePost(@ApiParam(value = "Capture details of Existing HFReferral", required = true) @Valid @RequestBody HFReferralRequest request) {
HFReferral hfReferral = hfReferralService.delete(request);
HFReferralResponse response = HFReferralResponse.builder()
.hfReferral(hfReferral)
.responseInfo(ResponseInfoFactory
.createResponseInfo(request.getRequestInfo(), true))
.build();
return ResponseEntity.status(HttpStatus.NO_CONTENT).build();

Comment on lines +197 to +201
if (project.getStartDate() != null && project.getEndDate() != null && project.getEndDate() != 0
&& project.getEndDate().compareTo(Instant.ofEpochMilli(project.getStartDate()).plus(Duration.ofDays(1)).toEpochMilli()) < 0) {
log.error("Start date and end date difference should at least be 1 day.");
errorMap.put("INVALID_DATE", "Start date and end date difference should at least be 1 day.");
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The validation logic added to ensure that the start date and end date difference is at least 1 day is a good practice for data integrity. However, consider extracting this logic into a separate method to improve readability and maintainability. Additionally, ensure that this validation logic is consistently applied across all relevant methods where date validation is necessary.

- if (project.getStartDate() != null && project.getEndDate() != null && project.getEndDate() != 0
-         && project.getEndDate().compareTo(Instant.ofEpochMilli(project.getStartDate()).plus(Duration.ofDays(1)).toEpochMilli()) < 0) {
-     log.error("Start date and end date difference should at least be 1 day.");
-     errorMap.put("INVALID_DATE", "Start date and end date difference should at least be 1 day.");
- }
+ validateDateDifference(project, errorMap);

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
if (project.getStartDate() != null && project.getEndDate() != null && project.getEndDate() != 0
&& project.getEndDate().compareTo(Instant.ofEpochMilli(project.getStartDate()).plus(Duration.ofDays(1)).toEpochMilli()) < 0) {
log.error("Start date and end date difference should at least be 1 day.");
errorMap.put("INVALID_DATE", "Start date and end date difference should at least be 1 day.");
}
validateDateDifference(project, errorMap);

Comment on lines +114 to +150
public List<HFReferral> findById(List<String> ids, Boolean includeDeleted, String columnName) {
// Find objects in the cache based on the provided IDs.
List<HFReferral> objFound = findInCache(ids).stream()
.filter(entity -> entity.getIsDeleted().equals(includeDeleted))
.collect(Collectors.toList());

// If objects are found in the cache, check if there are any IDs remaining to be retrieved.
if (!objFound.isEmpty()) {
Method idMethod = getIdMethod(objFound, columnName);
ids.removeAll(objFound.stream()
.map(obj -> (String) ReflectionUtils.invokeMethod(idMethod, obj))
.collect(Collectors.toList()));

// If no IDs are remaining, return the objects found in the cache.
if (ids.isEmpty()) {
return objFound;
}
}

// Generate a SELECT query based on the provided IDs and column name.
String query = String.format("SELECT hf.id, hf.clientreferenceid, hf.tenantid, hf.projectid, hf.projectfacilityid, hf.symptom, hf.symptomsurveyid, hf.beneficiaryid, hf.referralcode, hf.nationallevelid, hf.createdby, hf.createdtime, hf.lastmodifiedby, hf.lastmodifiedtime, hf.clientcreatedby, hf.clientcreatedtime, hf.clientlastmodifiedby, hf.clientlastmodifiedtime, hf.rowversion, hf.isdeleted, hf.additionaldetails from hf_referral hf WHERE hf.%s IN (:ids) ", columnName);

// Add conditions to exclude deleted records if includeDeleted is false.
if (includeDeleted == null || !includeDeleted) {
query += " AND hf.isDeleted = false ";
}

// Create parameter map for the query and execute it to retrieve HFReferral entities.
Map<String, Object> paramMap = new HashMap<>();
paramMap.put("ids", ids);
List<HFReferral> hfReferralList = this.namedParameterJdbcTemplate.query(query, paramMap, this.rowMapper);

// Add the retrieved entities to the cache.
objFound.addAll(hfReferralList);
putInCache(objFound);
return objFound;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The findById method efficiently retrieves HFReferral entities based on a list of IDs, including handling cache lookups and database queries. The method's implementation to avoid redundant database queries by checking the cache first is commendable. Ensure that cache consistency is maintained to prevent stale data issues.

+ Implement strategies to maintain cache consistency and avoid stale data.

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
public List<HFReferral> findById(List<String> ids, Boolean includeDeleted, String columnName) {
// Find objects in the cache based on the provided IDs.
List<HFReferral> objFound = findInCache(ids).stream()
.filter(entity -> entity.getIsDeleted().equals(includeDeleted))
.collect(Collectors.toList());
// If objects are found in the cache, check if there are any IDs remaining to be retrieved.
if (!objFound.isEmpty()) {
Method idMethod = getIdMethod(objFound, columnName);
ids.removeAll(objFound.stream()
.map(obj -> (String) ReflectionUtils.invokeMethod(idMethod, obj))
.collect(Collectors.toList()));
// If no IDs are remaining, return the objects found in the cache.
if (ids.isEmpty()) {
return objFound;
}
}
// Generate a SELECT query based on the provided IDs and column name.
String query = String.format("SELECT hf.id, hf.clientreferenceid, hf.tenantid, hf.projectid, hf.projectfacilityid, hf.symptom, hf.symptomsurveyid, hf.beneficiaryid, hf.referralcode, hf.nationallevelid, hf.createdby, hf.createdtime, hf.lastmodifiedby, hf.lastmodifiedtime, hf.clientcreatedby, hf.clientcreatedtime, hf.clientlastmodifiedby, hf.clientlastmodifiedtime, hf.rowversion, hf.isdeleted, hf.additionaldetails from hf_referral hf WHERE hf.%s IN (:ids) ", columnName);
// Add conditions to exclude deleted records if includeDeleted is false.
if (includeDeleted == null || !includeDeleted) {
query += " AND hf.isDeleted = false ";
}
// Create parameter map for the query and execute it to retrieve HFReferral entities.
Map<String, Object> paramMap = new HashMap<>();
paramMap.put("ids", ids);
List<HFReferral> hfReferralList = this.namedParameterJdbcTemplate.query(query, paramMap, this.rowMapper);
// Add the retrieved entities to the cache.
objFound.addAll(hfReferralList);
putInCache(objFound);
return objFound;
}
public List<HFReferral> findById(List<String> ids, Boolean includeDeleted, String columnName) {
// Find objects in the cache based on the provided IDs.
List<HFReferral> objFound = findInCache(ids).stream()
.filter(entity -> entity.getIsDeleted().equals(includeDeleted))
.collect(Collectors.toList());
// If objects are found in the cache, check if there are any IDs remaining to be retrieved.
if (!objFound.isEmpty()) {
Method idMethod = getIdMethod(objFound, columnName);
ids.removeAll(objFound.stream()
.map(obj -> (String) ReflectionUtils.invokeMethod(idMethod, obj))
.collect(Collectors.toList()));
// If no IDs are remaining, return the objects found in the cache.
if (ids.isEmpty()) {
return objFound;
}
}
// Generate a SELECT query based on the provided IDs and column name.
String query = String.format("SELECT hf.id, hf.clientreferenceid, hf.tenantid, hf.projectid, hf.projectfacilityid, hf.symptom, hf.symptomsurveyid, hf.beneficiaryid, hf.referralcode, hf.nationallevelid, hf.createdby, hf.createdtime, hf.lastmodifiedby, hf.lastmodifiedtime, hf.clientcreatedby, hf.clientcreatedtime, hf.clientlastmodifiedby, hf.clientlastmodifiedtime, hf.rowversion, hf.isdeleted, hf.additionaldetails from hf_referral hf WHERE hf.%s IN (:ids) ", columnName);
// Add conditions to exclude deleted records if includeDeleted is false.
if (includeDeleted == null || !includeDeleted) {
query += " AND hf.isDeleted = false ";
}
// Create parameter map for the query and execute it to retrieve HFReferral entities.
Map<String, Object> paramMap = new HashMap<>();
paramMap.put("ids", ids);
List<HFReferral> hfReferralList = this.namedParameterJdbcTemplate.query(query, paramMap, this.rowMapper);
// Add the retrieved entities to the cache.
objFound.addAll(hfReferralList);
putInCache(objFound);
return objFound;
}

Comment on lines 113 to 117
Map<String, ProjectBeneficiary> existingProjectBeneficiaryVoucherTagMap = existingProjectBeneficiaries.stream().filter(projectBeneficiary -> projectBeneficiary.getTag() != null).collect(Collectors.toMap(ProjectBeneficiary::getTag, projectBeneficiary -> projectBeneficiary));
invalidEntities = validProjectBeneficiaries.stream()
.filter(notHavingErrors())
.filter(projectBeneficiary -> !existingProjectBeneficiaryMap.get(projectBeneficiary.getId()).getTag().equals(projectBeneficiary.getTag()))
.filter(projectBeneficiary -> isInvalid(projectBeneficiary, existingVoucherTags))
.filter(projectBeneficiary -> isUpdated(projectBeneficiary, existingProjectBeneficiaryMap))
.filter(projectBeneficiary -> isInvalid(projectBeneficiary, existingProjectBeneficiaryVoucherTagMap))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The refactoring to include a check for updated entities based on their voucher tags is a significant improvement. It ensures that the validation logic accounts for updates to existing entities, enhancing data integrity. However, ensure that this logic does not introduce performance issues by optimizing the retrieval and comparison of existing entities.

+ Optimize the retrieval and comparison of existing entities to avoid performance issues.

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
Map<String, ProjectBeneficiary> existingProjectBeneficiaryVoucherTagMap = existingProjectBeneficiaries.stream().filter(projectBeneficiary -> projectBeneficiary.getTag() != null).collect(Collectors.toMap(ProjectBeneficiary::getTag, projectBeneficiary -> projectBeneficiary));
invalidEntities = validProjectBeneficiaries.stream()
.filter(notHavingErrors())
.filter(projectBeneficiary -> !existingProjectBeneficiaryMap.get(projectBeneficiary.getId()).getTag().equals(projectBeneficiary.getTag()))
.filter(projectBeneficiary -> isInvalid(projectBeneficiary, existingVoucherTags))
.filter(projectBeneficiary -> isUpdated(projectBeneficiary, existingProjectBeneficiaryMap))
.filter(projectBeneficiary -> isInvalid(projectBeneficiary, existingProjectBeneficiaryVoucherTagMap))
Map<String, ProjectBeneficiary> existingProjectBeneficiaryVoucherTagMap = existingProjectBeneficiaries.stream().filter(projectBeneficiary -> projectBeneficiary.getTag() != null).collect(Collectors.toMap(ProjectBeneficiary::getTag, projectBeneficiary -> projectBeneficiary));
invalidEntities = validProjectBeneficiaries.stream()
.filter(notHavingErrors())
.filter(projectBeneficiary -> isUpdated(projectBeneficiary, existingProjectBeneficiaryMap))
.filter(projectBeneficiary -> isInvalid(projectBeneficiary, existingProjectBeneficiaryVoucherTagMap))

@@ -129,24 +129,46 @@
private void populateErrors(List<ProjectBeneficiary> invalidEntities, Map<ProjectBeneficiary, List<Error>> errorDetailsMap) {
// For each invalid entity, create an error and populate error details
invalidEntities.forEach(projectBeneficiary -> {
Error error = getErrorForUniqueEntity();
Error error = Error.builder().errorMessage("Project Beneficiary Tag Validation Failed").errorCode("INVALID_TAG").type(Error.ErrorType.NON_RECOVERABLE).exception(new CustomException("INVALID_TAG", "Project Beneficiary Tag Validation Failed")).build();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The method populateErrors for populating error details for entities with duplicate voucher tags is well-implemented. It ensures that meaningful error messages are provided, aiding in debugging and user feedback. Ensure that error codes are standardized and documented for consistency.

+ Standardize and document error codes for consistency and clarity.

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
Error error = Error.builder().errorMessage("Project Beneficiary Tag Validation Failed").errorCode("INVALID_TAG").type(Error.ErrorType.NON_RECOVERABLE).exception(new CustomException("INVALID_TAG", "Project Beneficiary Tag Validation Failed")).build();
Error error = Error.builder().errorMessage("Project Beneficiary Tag Validation Failed").errorCode("INVALID_TAG").type(Error.ErrorType.NON_RECOVERABLE).exception(new CustomException("INVALID_TAG", "Project Beneficiary Tag Validation Failed")).build();

Comment on lines 145 to 150
private boolean isInvalid(ProjectBeneficiary entity, Map<String, ProjectBeneficiary> existingProjectBeneficiaryVoucherTagMap) {
String id = entity.getId();
String tag = entity.getTag();

// Check if an entity with the same ID exists in the map and has a different tag
return existingVoucherTags.contains(tag);
return existingProjectBeneficiaryVoucherTagMap.keySet().contains(tag) && !existingProjectBeneficiaryVoucherTagMap.get(tag).getId().equals(id);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The method isInvalid correctly checks for the validity of voucher tags by comparing them against existing entities. This is crucial for maintaining the uniqueness constraint. Consider adding logging for debugging purposes, especially when a tag is found to be invalid.

+ Add logging for debugging purposes when a tag is found to be invalid.

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
private boolean isInvalid(ProjectBeneficiary entity, Map<String, ProjectBeneficiary> existingProjectBeneficiaryVoucherTagMap) {
String id = entity.getId();
String tag = entity.getTag();
// Check if an entity with the same ID exists in the map and has a different tag
return existingVoucherTags.contains(tag);
return existingProjectBeneficiaryVoucherTagMap.keySet().contains(tag) && !existingProjectBeneficiaryVoucherTagMap.get(tag).getId().equals(id);
private boolean isInvalid(ProjectBeneficiary entity, Map<String, ProjectBeneficiary> existingProjectBeneficiaryVoucherTagMap) {
String id = entity.getId();
String tag = entity.getTag();
// Check if an entity with the same ID exists in the map and has a different tag
return existingProjectBeneficiaryVoucherTagMap.keySet().contains(tag) && !existingProjectBeneficiaryVoucherTagMap.get(tag).getId().equals(id);

Comment on lines 160 to 173
private boolean isUpdated(ProjectBeneficiary entity, Map<String, ProjectBeneficiary> existingProjectBeneficiaryMap) {
String id = entity.getId();
String tag = entity.getTag();

// Retrieve the existing ProjectBeneficiary object to compare
ProjectBeneficiary projectBeneficiaryFromSearch = existingProjectBeneficiaryMap.get(id);

// check if existing ProjectBeneficiary Tag is null or not and if it is null whether it is updated or not
if(projectBeneficiaryFromSearch.getTag() == null) return tag != null;

// Check if the tag of the current entity is equal to the tag of the existing entity
return ( !projectBeneficiaryFromSearch.getTag().equals(tag)
|| ( tag != null && !tag.equals(projectBeneficiaryFromSearch.getTag()) ));
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new method isUpdated to check if a ProjectBeneficiary entity is considered updated based on its tag is a thoughtful addition. It adds granularity to the validation process. Ensure that this method is thoroughly tested, especially for edge cases where tags might be updated to null or from null to a value.

+ Thoroughly test the `isUpdated` method, especially for edge cases involving null values.

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
private boolean isUpdated(ProjectBeneficiary entity, Map<String, ProjectBeneficiary> existingProjectBeneficiaryMap) {
String id = entity.getId();
String tag = entity.getTag();
// Retrieve the existing ProjectBeneficiary object to compare
ProjectBeneficiary projectBeneficiaryFromSearch = existingProjectBeneficiaryMap.get(id);
// check if existing ProjectBeneficiary Tag is null or not and if it is null whether it is updated or not
if(projectBeneficiaryFromSearch.getTag() == null) return tag != null;
// Check if the tag of the current entity is equal to the tag of the existing entity
return ( !projectBeneficiaryFromSearch.getTag().equals(tag)
|| ( tag != null && !tag.equals(projectBeneficiaryFromSearch.getTag()) ));
}
private boolean isUpdated(ProjectBeneficiary entity, Map<String, ProjectBeneficiary> existingProjectBeneficiaryMap) {
String id = entity.getId();
String tag = entity.getTag();
// Retrieve the existing ProjectBeneficiary object to compare
ProjectBeneficiary projectBeneficiaryFromSearch = existingProjectBeneficiaryMap.get(id);
// check if existing ProjectBeneficiary Tag is null or not and if it is null whether it is updated or not
if(projectBeneficiaryFromSearch.getTag() == null) return tag != null;
// Check if the tag of the current entity is equal to the tag of the existing entity
return ( !projectBeneficiaryFromSearch.getTag().equals(tag)
|| ( tag != null && !tag.equals(projectBeneficiaryFromSearch.getTag()) ));
}

* HLM-4496: updated changedlog for individual, health-services-models, project, referralmanagement

* HLM-4496: Added size annotations on individual search userUuid field

* hlm-4496: Revert of application.properties changes
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 9a489b0 and f5e2aa6.
Files selected for processing (7)
  • health-services/individual/CHANGELOG.md (1 hunks)
  • health-services/individual/src/main/java/org/egov/individual/web/models/IndividualSearch.java (2 hunks)
  • health-services/libraries/health-services-models/CHANGELOG.md (1 hunks)
  • health-services/libraries/health-services-models/src/main/java/org/egov/common/models/individual/IndividualSearch.java (2 hunks)
  • health-services/project/CHANGELOG.md (1 hunks)
  • health-services/project/src/main/java/org/egov/project/service/ProjectStaffService.java (5 hunks)
  • health-services/referralmanagement/CHANGELOG.md (1 hunks)
Files skipped from review as they are similar to previous changes (7)
  • health-services/individual/CHANGELOG.md
  • health-services/individual/src/main/java/org/egov/individual/web/models/IndividualSearch.java
  • health-services/libraries/health-services-models/CHANGELOG.md
  • health-services/libraries/health-services-models/src/main/java/org/egov/common/models/individual/IndividualSearch.java
  • health-services/project/CHANGELOG.md
  • health-services/project/src/main/java/org/egov/project/service/ProjectStaffService.java
  • health-services/referralmanagement/CHANGELOG.md

@kavi-egov kavi-egov merged commit 69baa20 into master Feb 28, 2024
3 checks passed
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between f5e2aa6 and 7ddb18a.
Files ignored due to path filters (5)
  • build/build-config.yml is excluded by: !**/*.yml
  • health-services/individual/pom.xml is excluded by: !**/*.xml
  • health-services/project/pom.xml is excluded by: !**/*.xml
  • health-services/referralmanagement/pom.xml is excluded by: !**/*.xml
  • health-services/stock/pom.xml is excluded by: !**/*.xml
Files selected for processing (1)
  • health-services/libraries/health-services-models/CHANGELOG.md (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • health-services/libraries/health-services-models/CHANGELOG.md

kavi-egov added a commit that referenced this pull request May 28, 2024
…lineModel (#678)

* added downsync dummy api

* added downsync dummy api with res

* HLM-4062: added count api changes for household

* HLM-4062: Updated findbyid references

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-4062: Updated pom.xml of household

* Hlm 3376 reviewcomments (#524)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-3376: added comments as per review comments

* HLM-3376 : added changes as per code review comments, each column's name included in query

* HLM-3376: query column names

* Dev (#537)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-4062: added count api changes for household

* HLM-4062: Updated findbyid references

* HLM-4062: Updated pom.xml of household

* Hlm 3376 reviewcomments (#524)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-3376: added comments as per review comments

* HLM-3376 : added changes as per code review comments, each column's name included in query

* HLM-3376: query column names

---------

Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>
Co-authored-by: kanishq-egov <138671649+kanishq-egov@users.noreply.github.com>

* Added project beneficiary tag field

* renamed project beneficiary tag to voucher tag

* hlm-4062: updated household

* HLM-4062: added  count api support using cte for household

* HLM-4062: updated HouseholdRepository.java

* Added project beneficiary tag field

* renamed project beneficiary tag to voucher tag

* rebased project-persister.yml from configs

* updated pom.xml: update common model version to 1.0.10

* updated db script, added unique constraint to tag column

* updated referral-management.yml

* updated db script

* project beneficiary voucher tag uniqueness validator and search support

* updated PbVoucherTagUniqueValidator.java

* Added and updated for unique field voucher tag create and update scenario

* updated householdrowmapper.java

* project beneficiary bug fix

* removed unused import

* HLM-4062:code refactor, removed useCTE parameter

* project beneficiary : voucherTag renamed to tag

* Hlm 4062 count api (#547) (#548)

* hlm-4062: updated household

* HLM-4062: added  count api support using cte for household

* HLM-4062: updated HouseholdRepository.java

* updated householdrowmapper.java

* HLM-4062:code refactor, removed useCTE parameter

Co-authored-by: kanishq-egov <138671649+kanishq-egov@users.noreply.github.com>

* referral management project beneficiary validation fix

* Project beneficiary tag cherrypick (#549)

* Added project beneficiary tag field

* renamed project beneficiary tag to voucher tag

* rebased project-persister.yml from configs

* updated pom.xml: update common model version to 1.0.10

* updated db script, added unique constraint to tag column

* updated referral-management.yml

* updated db script

* project beneficiary voucher tag uniqueness validator and search support

* updated PbVoucherTagUniqueValidator.java

* Added and updated for unique field voucher tag create and update scenario

* project beneficiary bug fix

* removed unused import

* project beneficiary : voucherTag renamed to tag

* referral management project beneficiary validation fix

---------

Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>
Co-authored-by: Vishal <sarasani.vishalreddy@egovernments.org>

* dummy api with same pagination response

* dummy api with same pagination response

* dummy api with same pagination response

* added changes for individual

* Added count api in household member and project beneficiary models

* added total count for findById in individual

* HLM-4062: Added SearchResponse model, updated CommonUtils.java,Removed total count from Individual, HouseholdMember, ProjectBeneficiary. Added count api changes for Household, Individual, HouseholdMember, ProjectBeneficiary

* HLM-4062: updated health-service-common version to 1.0.15

* updated health common version to 1.0.15

* downsync data test

* data integrated till beneficiary

* Update CHANGELOG.md

* Delete health-services/project/src/main/resources/project-persistor.yml

* skip on empty result added

* skip on empty result added

* beneficary searhc based on individual clientref id added

* sideeffetc, ref, task fetch added

* tasks earch fix

* HLM-4062: fixed testcases

* Updated referral-management api specs contract

* HLM-4062: updated application.properties and code refactor

* HLM-4062: added changes for searchresponse type

* HLM-4062: change to boundary code

* HLM-4062: reverted some changes

* hlm-4062: updated referral-management

* HLM-4062: updated pom.xml

* bug fix hlm-4062: individual count was not correct

* HLM-4062: fixed offset not working for household member and project beneficiary

* HLM-4062: updated total count for ProjectTask, SideEffect, Referral

* HLM-4062: HLM-4822: fixed ProjectTaskApiControllerTest.java

* dev to master - 28-02-24 (#654)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-4062: added count api changes for household

* HLM-4062: Updated findbyid references

* HLM-4062: Updated pom.xml of household

* Hlm 3376 reviewcomments (#524)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-3376: added comments as per review comments

* HLM-3376 : added changes as per code review comments, each column's name included in query

* HLM-3376: query column names

* Hlm 4062 count api (#547)

* hlm-4062: updated household

* HLM-4062: added  count api support using cte for household

* HLM-4062: updated HouseholdRepository.java

* updated householdrowmapper.java

* HLM-4062:code refactor, removed useCTE parameter

* Project beneficiary tag cherrypick (#539)

* added downsync dummy api

* added downsync dummy api with res

* HLM-4062: added count api changes for household

* HLM-4062: Updated findbyid references

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-4062: Updated pom.xml of household

* Hlm 3376 reviewcomments (#524)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-3376: added comments as per review comments

* HLM-3376 : added changes as per code review comments, each column's name included in query

* HLM-3376: query column names

* Dev (#537)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-4062: added count api changes for household

* HLM-4062: Updated findbyid references

* HLM-4062: Updated pom.xml of household

* Hlm 3376 reviewcomments (#524)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-3376: added comments as per review comments

* HLM-3376 : added changes as per code review comments, each column's name included in query

* HLM-3376: query column names

---------

Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>
Co-authored-by: kanishq-egov <138671649+kanishq-egov@users.noreply.github.com>

* Added project beneficiary tag field

* renamed project beneficiary tag to voucher tag

* Added project beneficiary tag field

* renamed project beneficiary tag to voucher tag

* rebased project-persister.yml from configs

* updated pom.xml: update common model version to 1.0.10

* updated db script, added unique constraint to tag column

* updated referral-management.yml

* updated db script

* project beneficiary voucher tag uniqueness validator and search support

* updated PbVoucherTagUniqueValidator.java

* Added and updated for unique field voucher tag create and update scenario

* project beneficiary bug fix

* removed unused import

* project beneficiary : voucherTag renamed to tag

* Hlm 4062 count api (#547) (#548)

* hlm-4062: updated household

* HLM-4062: added  count api support using cte for household

* HLM-4062: updated HouseholdRepository.java

* updated householdrowmapper.java

* HLM-4062:code refactor, removed useCTE parameter

Co-authored-by: kanishq-egov <138671649+kanishq-egov@users.noreply.github.com>

* referral management project beneficiary validation fix

* deleted persister and indexer file from project module resource folder

---------

Co-authored-by: kavi_elrey <25226238+kavi-egov@users.noreply.github.com>
Co-authored-by: Vishal <sarasani.vishalreddy@egovernments.org>

* HH member clientrefid (#551)

* adding clientRefId, Models version change, migration file

* adding clientRefId for HouseholdMemberSearch as List

* updated migration

* adding Notnull for clientrefId

---------

Co-authored-by: Vishal <sarasani.vishalreddy@egovernments.org>

* Downsync smc referral module (#556)

* added downsync dummy api

* added downsync dummy api with res

* HLM-4062: added count api changes for household

* HLM-4062: Updated findbyid references

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-4062: Updated pom.xml of household

* Hlm 3376 reviewcomments (#524)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-3376: added comments as per review comments

* HLM-3376 : added changes as per code review comments, each column's name included in query

* HLM-3376: query column names

* Dev (#537)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-4062: added count api changes for household

* HLM-4062: Updated findbyid references

* HLM-4062: Updated pom.xml of household

* Hlm 3376 reviewcomments (#524)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-3376: added comments as per review comments

* HLM-3376 : added changes as per code review comments, each column's name included in query

* HLM-3376: query column names

---------

Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>
Co-authored-by: kanishq-egov <138671649+kanishq-egov@users.noreply.github.com>

* Added project beneficiary tag field

* renamed project beneficiary tag to voucher tag

* Hlm 4062 count api (#547) (#548)

* hlm-4062: updated household

* HLM-4062: added  count api support using cte for household

* HLM-4062: updated HouseholdRepository.java

* updated householdrowmapper.java

* HLM-4062:code refactor, removed useCTE parameter

Co-authored-by: kanishq-egov <138671649+kanishq-egov@users.noreply.github.com>

* Project beneficiary tag cherrypick (#549)

* Added project beneficiary tag field

* renamed project beneficiary tag to voucher tag

* rebased project-persister.yml from configs

* updated pom.xml: update common model version to 1.0.10

* updated db script, added unique constraint to tag column

* updated referral-management.yml

* updated db script

* project beneficiary voucher tag uniqueness validator and search support

* updated PbVoucherTagUniqueValidator.java

* Added and updated for unique field voucher tag create and update scenario

* project beneficiary bug fix

* removed unused import

* project beneficiary : voucherTag renamed to tag

* referral management project beneficiary validation fix

---------

Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>
Co-authored-by: Vishal <sarasani.vishalreddy@egovernments.org>

* dummy api with same pagination response

* dummy api with same pagination response

* dummy api with same pagination response

* downsync data test

* data integrated till beneficiary

* Update CHANGELOG.md

* Delete health-services/project/src/main/resources/project-persistor.yml

* skip on empty result added

* skip on empty result added

* beneficary searhc based on individual clientref id added

* sideeffetc, ref, task fetch added

* tasks earch fix

* referral search fix

---------

Co-authored-by: kavi_elrey <25226238+kavi-egov@users.noreply.github.com>
Co-authored-by: Vishal <sarasani.vishalreddy@egovernments.org>

* Dev downsync fix smc (#561)

* household model reverse

* Update CHANGELOG.md

* Added changes for includeDeleted for downsync

* not null added

---------

Co-authored-by: kavi_elrey <25226238+kavi-egov@users.noreply.github.com>
Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>

* Dev master conflict fix (#562)

* HLM-3069: updated build.config.yml

* HLM-3069: updated build-config.yml renamed adrm to referralmanagement

* HLM-3372: increased stock version from 1.1.0 to 1.1.1-beta and project version from 1.1.0 to 1.1.1-beta

* referralmanagement version 1.0.0-beta, added changelog, localsetup

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* HLM-3069: null project beneficiary validation error fix

* HLM-3069: added comments and splitted validation condition

* Dev to master (#550)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-4062: added count api changes for household

* HLM-4062: Updated findbyid references

* HLM-4062: Updated pom.xml of household

* Hlm 3376 reviewcomments (#524)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-3376: added comments as per review comments

* HLM-3376 : added changes as per code review comments, each column's name included in query

* HLM-3376: query column names

* Hlm 4062 count api (#547)

* hlm-4062: updated household

* HLM-4062: added  count api support using cte for household

* HLM-4062: updated HouseholdRepository.java

* updated householdrowmapper.java

* HLM-4062:code refactor, removed useCTE parameter

---------

Co-authored-by: kavi_elrey@1993 <25226238+kavi-egov@users.noreply.github.com>

---------

Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>
Co-authored-by: kanishq-egov <138671649+kanishq-egov@users.noreply.github.com>

* Dev downsync fix smc (#563)

* household model reverse

* Update CHANGELOG.md

* Added changes for includeDeleted for downsync

* not null added

---------

Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>

* Dev master conflict fix (#565)

* HLM-3069: updated build.config.yml

* HLM-3069: updated build-config.yml renamed adrm to referralmanagement

* HLM-3372: increased stock version from 1.1.0 to 1.1.1-beta and project version from 1.1.0 to 1.1.1-beta

* referralmanagement version 1.0.0-beta, added changelog, localsetup

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* HLM-3069: null project beneficiary validation error fix

* HLM-3069: added comments and splitted validation condition

* Dev to master (#550)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-4062: added count api changes for household

* HLM-4062: Updated findbyid references

* HLM-4062: Updated pom.xml of household

* Hlm 3376 reviewcomments (#524)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-3376: added comments as per review comments

* HLM-3376 : added changes as per code review comments, each column's name included in query

* HLM-3376: query column names

* Hlm 4062 count api (#547)

* hlm-4062: updated household

* HLM-4062: added  count api support using cte for household

* HLM-4062: updated HouseholdRepository.java

* updated householdrowmapper.java

* HLM-4062:code refactor, removed useCTE parameter

---------

Co-authored-by: kavi_elrey@1993 <25226238+kavi-egov@users.noreply.github.com>

---------

Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>
Co-authored-by: kanishq-egov <138671649+kanishq-egov@users.noreply.github.com>

* Dev downsync fix smc (#566)

* household model reverse

* Update CHANGELOG.md

* Added changes for includeDeleted for downsync

* not null added

---------

Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>

* Added fix for testcases for householdmember (#570)

Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>

* updated the version, and added the changelog (#571)

* updated the version, and added the changelog

* updated ReferralManagement CHANGELOG

* Update CHANGELOG.md

---------

Co-authored-by: kavi_elrey@1993 <25226238+kavi-egov@users.noreply.github.com>

* HLM-4062: removed pagination from fields excluding household api call

* HLM-4062: missed in implementation (#574)

* HLM-4062: missed in implementation

* HLM-4062: default max is set to 1000 for not null limit value and 0 for offset value

* project beneficiary tag update failed fix HLM-4444

* HLM-4444: added code review comments

* sownsync bug fix for limit

---------

Co-authored-by: kavi_elrey <25226238+kavi-egov@users.noreply.github.com>

* HLM-4444: project beneficiary update fix (#575)

* Update CHANGELOG.md

* updated changelog with dates (#577)

* updated stock module changelog (#578)

* Hlm 4501 smc referral flow (#602)

* HLM-4501: Added changes for HFReferral flow

* updated comments for common models

* updated comments for common models removed ini file

This reverts commit c1e226f961042f1162bb9ece8d2e1c01b62d220c.

* HLM-4501: updated topics and hfreferal constants

* HLM-4501: updated HFReferralService.java

* HLM-4501: Added changes in project id validator

* HLM-4501: updated HFReferralService.java

* HLM-4501: fixed hfreferral changes

* HLM-4501: added project facility id validator for hf_referral

* HLM-4501: missing link for validator added

* HLM-4501: updated HfrProjectFacilityIdValidator for NPE

* HLM-4501 : updated hf referral symtoms character length to 256

* HLM-4501: updated additionalFields field value size from 2 to 1

* Hlm 3372 enhance inventory flow backend fixes (#623)

* HLM-3372: added changes required to fix quantity, Sender Receiver enum

* HLM-3372: Sender and Receiver id validator

* HLM-3372: updated all reference for SenderType and Receiver Type enum

* HLM-3372: stock model updated, removed size annotations from referenceidtype enum field

* HLM-3372: Min validation added for integer type of quantity

* HLM-3372: test cases updated

* HLM-5004 Added max value and decimal condition for quantity in stock, added component and order annotation for SSenderIdReceiverIdEqualsValidator

* HLM-5004 Custom JsonDeserializer validator IntegerValidator added in health-services-models

* hlm-5004 added custom exception and a custom exception handler to handle the integer validator exception

* hlm-5004 optimized imports and added code comments

* hlm-5004 CustomIntegerSerializer added and unnecessary validators removed

* hlm-5004 Registered the CustomIntegerDeserializer with objectMapper for Integer class

* hlm-5004 Removed line of code that was removing all the invalid entities from the list in SSenderIdReceiverIdEqualsValidator

* hlm-5004 changes in test configurations and optimized imports

* hlm-5004 added row version validator for stock delete

* hlm-5004 dateOfEntry field was handled in StockRowMapper to return null if no value is present and description was added to stock contact for transactionReason

* updated pom.xml for health campaign models

* Revert "updated pom.xml for health campaign models"

This reverts commit 035c78720c610916000c8de76fa87e7904774b59.

---------

Co-authored-by: syed-egov <syed.owais@egovernments.org>

* Hlm 4501 smc referral flow code comments (#636)

* Dev to master : beneficiary tag bug fix, downsync pagination fix (#576)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-4062: added count api changes for household

* HLM-4062: Updated findbyid references

* HLM-4062: Updated pom.xml of household

* Hlm 3376 reviewcomments (#524)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-3376: added comments as per review comments

* HLM-3376 : added changes as per code review comments, each column's name included in query

* HLM-3376: query column names

* Hlm 4062 count api (#547)

* hlm-4062: updated household

* HLM-4062: added  count api support using cte for household

* HLM-4062: updated HouseholdRepository.java

* updated householdrowmapper.java

* HLM-4062:code refactor, removed useCTE parameter

* Project beneficiary tag cherrypick (#539)

* added downsync dummy api

* added downsync dummy api with res

* HLM-4062: added count api changes for household

* HLM-4062: Updated findbyid references

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-4062: Updated pom.xml of household

* Hlm 3376 reviewcomments (#524)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-3376: added comments as per review comments

* HLM-3376 : added changes as per code review comments, each column's name included in query

* HLM-3376: query column names

* Dev (#537)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-4062: added count api changes for household

* HLM-4062: Updated findbyid references

* HLM-4062: Updated pom.xml of household

* Hlm 3376 reviewcomments (#524)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-3376: added comments as per review comments

* HLM-3376 : added changes as per code review comments, each column's name included in query

* HLM-3376: query column names

---------

Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>
Co-authored-by: kanishq-egov <138671649+kanishq-egov@users.noreply.github.com>

* Added project beneficiary tag field

* renamed project beneficiary tag to voucher tag

* Added project beneficiary tag field

* renamed project beneficiary tag to voucher tag

* rebased project-persister.yml from configs

* updated pom.xml: update common model version to 1.0.10

* updated db script, added unique constraint to tag column

* updated referral-management.yml

* updated db script

* project beneficiary voucher tag uniqueness validator and search support

* updated PbVoucherTagUniqueValidator.java

* Added and updated for unique field voucher tag create and update scenario

* project beneficiary bug fix

* removed unused import

* project beneficiary : voucherTag renamed to tag

* Hlm 4062 count api (#547) (#548)

* hlm-4062: updated household

* HLM-4062: added  count api support using cte for household

* HLM-4062: updated HouseholdRepository.java

* updated householdrowmapper.java

* HLM-4062:code refactor, removed useCTE parameter

Co-authored-by: kanishq-egov <138671649+kanishq-egov@users.noreply.github.com>

* referral management project beneficiary validation fix

* deleted persister and indexer file from project module resource folder

---------

Co-authored-by: kavi_elrey <25226238+kavi-egov@users.noreply.github.com>
Co-authored-by: Vishal <sarasani.vishalreddy@egovernments.org>

* HH member clientrefid (#551)

* adding clientRefId, Models version change, migration file

* adding clientRefId for HouseholdMemberSearch as List

* updated migration

* adding Notnull for clientrefId

---------

Co-authored-by: Vishal <sarasani.vishalreddy@egovernments.org>

* Downsync smc referral module (#556)

* added downsync dummy api

* added downsync dummy api with res

* HLM-4062: added count api changes for household

* HLM-4062: Updated findbyid references

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-4062: Updated pom.xml of household

* Hlm 3376 reviewcomments (#524)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-3376: added comments as per review comments

* HLM-3376 : added changes as per code review comments, each column's name included in query

* HLM-3376: query column names

* Dev (#537)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-4062: added count api changes for household

* HLM-4062: Updated findbyid references

* HLM-4062: Updated pom.xml of household

* Hlm 3376 reviewcomments (#524)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-3376: added comments as per review comments

* HLM-3376 : added changes as per code review comments, each column's name included in query

* HLM-3376: query column names

---------

Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>
Co-authored-by: kanishq-egov <138671649+kanishq-egov@users.noreply.github.com>

* Added project beneficiary tag field

* renamed project beneficiary tag to voucher tag

* Hlm 4062 count api (#547) (#548)

* hlm-4062: updated household

* HLM-4062: added  count api support using cte for household

* HLM-4062: updated HouseholdRepository.java

* updated householdrowmapper.java

* HLM-4062:code refactor, removed useCTE parameter

Co-authored-by: kanishq-egov <138671649+kanishq-egov@users.noreply.github.com>

* Project beneficiary tag cherrypick (#549)

* Added project beneficiary tag field

* renamed project beneficiary tag to voucher tag

* rebased project-persister.yml from configs

* updated pom.xml: update common model version to 1.0.10

* updated db script, added unique constraint to tag column

* updated referral-management.yml

* updated db script

* project beneficiary voucher tag uniqueness validator and search support

* updated PbVoucherTagUniqueValidator.java

* Added and updated for unique field voucher tag create and update scenario

* project beneficiary bug fix

* removed unused import

* project beneficiary : voucherTag renamed to tag

* referral management project beneficiary validation fix

---------

Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>
Co-authored-by: Vishal <sarasani.vishalreddy@egovernments.org>

* dummy api with same pagination response

* dummy api with same pagination response

* dummy api with same pagination response

* downsync data test

* data integrated till beneficiary

* Update CHANGELOG.md

* Delete health-services/project/src/main/resources/project-persistor.yml

* skip on empty result added

* skip on empty result added

* beneficary searhc based on individual clientref id added

* sideeffetc, ref, task fetch added

* tasks earch fix

* referral search fix

---------

Co-authored-by: kavi_elrey <25226238+kavi-egov@users.noreply.github.com>
Co-authored-by: Vishal <sarasani.vishalreddy@egovernments.org>

* Dev downsync fix smc (#561)

* household model reverse

* Update CHANGELOG.md

* Added changes for includeDeleted for downsync

* not null added

---------

Co-authored-by: kavi_elrey <25226238+kavi-egov@users.noreply.github.com>
Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>

* Dev master conflict fix (#562)

* HLM-3069: updated build.config.yml

* HLM-3069: updated build-config.yml renamed adrm to referralmanagement

* HLM-3372: increased stock version from 1.1.0 to 1.1.1-beta and project version from 1.1.0 to 1.1.1-beta

* referralmanagement version 1.0.0-beta, added changelog, localsetup

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* HLM-3069: null project beneficiary validation error fix

* HLM-3069: added comments and splitted validation condition

* Dev to master (#550)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-4062: added count api changes for household

* HLM-4062: Updated findbyid references

* HLM-4062: Updated pom.xml of household

* Hlm 3376 reviewcomments (#524)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-3376: added comments as per review comments

* HLM-3376 : added changes as per code review comments, each column's name included in query

* HLM-3376: query column names

* Hlm 4062 count api (#547)

* hlm-4062: updated household

* HLM-4062: added  count api support using cte for household

* HLM-4062: updated HouseholdRepository.java

* updated householdrowmapper.java

* HLM-4062:code refactor, removed useCTE parameter

---------

Co-authored-by: kavi_elrey@1993 <25226238+kavi-egov@users.noreply.github.com>

---------

Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>
Co-authored-by: kanishq-egov <138671649+kanishq-egov@users.noreply.github.com>

* Dev downsync fix smc (#563)

* household model reverse

* Update CHANGELOG.md

* Added changes for includeDeleted for downsync

* not null added

---------

Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>

* Dev master conflict fix (#565)

* HLM-3069: updated build.config.yml

* HLM-3069: updated build-config.yml renamed adrm to referralmanagement

* HLM-3372: increased stock version from 1.1.0 to 1.1.1-beta and project version from 1.1.0 to 1.1.1-beta

* referralmanagement version 1.0.0-beta, added changelog, localsetup

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* HLM-3069: null project beneficiary validation error fix

* HLM-3069: added comments and splitted validation condition

* Dev to master (#550)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-4062: added count api changes for household

* HLM-4062: Updated findbyid references

* HLM-4062: Updated pom.xml of household

* Hlm 3376 reviewcomments (#524)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: removed not used validators

* code refactor and code comments

* hlm-3376: added test cases

* hlm-3376: referralmanagement context in test cases

* hlm-3376: changed parameters for find by id

* HLM-3372: typo fix

* hlm-3376: persister changes, removed invalid parameters

* hlm-3372: added changes as per code review, removed unused properties

* hlm-3376: recipient validator for faciliy not working fix

* HLM-3376: throwing exception on invalid recipient type

* HLM-3376: added comments as per review comments

* HLM-3376 : added changes as per code review comments, each column's name included in query

* HLM-3376: query column names

* Hlm 4062 count api (#547)

* hlm-4062: updated household

* HLM-4062: added  count api support using cte for household

* HLM-4062: updated HouseholdRepository.java

* updated householdrowmapper.java

* HLM-4062:code refactor, removed useCTE parameter

---------

Co-authored-by: kavi_elrey@1993 <25226238+kavi-egov@users.noreply.github.com>

---------

Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>
Co-authored-by: kanishq-egov <138671649+kanishq-egov@users.noreply.github.com>

* Dev downsync fix smc (#566)

* household model reverse

* Update CHANGELOG.md

* Added changes for includeDeleted for downsync

* not null added

---------

Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>

* Added fix for testcases for householdmember (#570)

Co-authored-by: kanishq-egov <kanishq.bhatnagar@egovernments.org>

* updated the version, and added the changelog (#571)

* updated the version, and added the changelog

* updated ReferralManagement CHANGELOG

* Update CHANGELOG.md

---------

Co-authored-by: kavi_elrey@1993 <25226238+kavi-egov@users.noreply.github.com>

* HLM-4062: removed pagination from fields excluding household api call

* HLM-4062: missed in implementation (#574)

* HLM-4062: missed in implementation

* HLM-4062: default max is set to 1000 for not null limit value and 0 for offset value

* project beneficiary tag update failed fix HLM-4444

* HLM-4444: added code review comments

* sownsync bug fix for limit

---------

Co-authored-by: kavi_elrey <25226238+kavi-egov@users.noreply.github.com>

* HLM-4444: project beneficiary update fix (#575)

* Update CHANGELOG.md

* updated changelog with dates (#577)

* updated stock module changelog (#578)

---------

Co-authored-by: kavi_elrey@1993 <25226238+kavi-egov@users.noreply.github.com>
Co-authored-by: Vishal <sarasani.vishalreddy@egovernments.org>
Co-authored-by: bhanu prakash <109132521+bhanuprakash-egov@users.noreply.github.com>
Co-authored-by: Naveen J <83631045+naveen-egov@users.noreply.github.com>
Co-authored-by: talele08 <talele08@users.noreply.github.com>

* Referral and Side effect sequence diagram

* HLM-4501: Added changes for HFReferral flow

* updated comments for common models

* updated comments for common models removed ini file

This reverts commit c1e226f961042f1162bb9ece8d2e1c01b62d220c.

* HLM-4501: updated topics and hfreferal constants

* HLM-4501: updated HFReferralService.java

* HLM-4501: Added changes in project id validator

* HLM-4501: updated HFReferralService.java

* HLM-4501: fixed hfreferral changes

* HLM-4501: added project facility id validator for hf_referral

* HLM-4501: missing link for validator added

* HLM-4501: updated HfrProjectFacilityIdValidator for NPE

* HLM-4501 : updated hf referral symtoms character length to 256

* HLM-4501: updated additionalFields field value size from 2 to 1

* HLM-4501: added code comments for all hf referral related classes

* HLM-4501: hf-referral sequence diagram

---------

Co-authored-by: kavi_elrey@1993 <25226238+kavi-egov@users.noreply.github.com>
Co-authored-by: Vishal <sarasani.vishalreddy@egovernments.org>
Co-authored-by: bhanu prakash <109132521+bhanuprakash-egov@users.noreply.github.com>
Co-authored-by: Naveen J <83631045+naveen-egov@users.noreply.github.com>
Co-authored-by: talele08 <talele08@users.noreply.github.com>

* HLM-4496, HLM-4207 attendance module (#616)

* HLM-4496: Added attendance module in HCM

* HLM-4496: updated attendance directory, removed target folder and imi file

* buil config added for hlm-4496 in feature branch

* HLM-4207: offline enablement in attendance log

* HLM-4207: added db migration script

* HLM-4207: updated db migration script

* HLM-4207: updated incorrect statements

* HLM-4207: bulk api support, without redis cache

* HLM-4207: updated Attendancelog consumer for bulk api

* HLM-4207: consumer fix

* HLM-4207: cache support added for attendance log create and update

* HLM-4207: added health-individual endpoint

* HLM-4207: added radis host

* HLM-4207: updated qualified for objectmapper in attendance module

* HLM-4496,HLM-4207: updated application.properties for redis config

* HLM-4207: updated kafka listener topics

* HLM-4207: changed kafka config

* HLM-4894 adding hrms related flag to Individual object, adding another ApiOperation

* HLM-4894 adding hrms related flag to Individual object, adding another ApiOperation

* HLM-4207, HLM-4986, HLM-4987 : bug fix

* HLM-4894 adding changes related to linking of HRMS Employee with Individual

* HLM-4894 adding changes related to linking of HRMS Employee with Individual

* HLM-4207: added clientreferenceid search, null check for document id

* HLM-4894 reverting changes related to linking of HRMS Employee with Individual

* HLM-4894 reverting changes related to linking of HRMS Employee with Individual from libraries, common-models

* HLM-4207: code re-format

* HLM-4894 adding changes for managing attendees while enrollment

* HLM-4207: updated attendance search, register id or clientreference id are mandatory

* hlm-5009 staffId in ProjectStaffSearch changed to list from string

* HLM-4894 updating build config

* HLM-4207: clientReferenceIds is changed to clientReferenceId for Attendance Log search criteria

* HLM-4207: removed staff validation for search without register id

* HLM-4894 adding changes for project staff validation

* HLM-4894 adding @Qualifier annotation for object mapper

* HLM-4894 fixing hrms url

* HLM-4771: added changes for updating the registers on project date update

* HLM-4771: project update changes

* HLM-4771: updated the project start date update validation, can not update start date if it is already started

* HLM-4771: updated attendance register consumer and service with comments

* HLM-4771: updated the tenant id

* HLM-4894 updating environment variables.

* HLM-4894 updating code changes

* HLM-4894 adding code changes

* HLM-4894 adding code changes

* HLM-4894 adding code changes

* HLM-4771: updated the project validators, validation for start and end date of project

* HLM-4894 adding useruuid as search param in individual search

* HLM-4894 adding useruuid as search param in individual search

* HLM-4894 adding useruuid as search param in individual search

* HLM-4894 adding changes for registry creation when supervisor enrolls

* HLM-4496, HLM-4894: first staff enrollment on attendance register creation is optional

* HLM-4894 adding changes attendee enrollment

* HLM-4894 adding changes for making staffId as list of staffId in ProjectStaffSearch

* HLM-4894 adding changes for making staffId as list of staffId in ProjectStaffSearch

* HLM-4894 adding changes for making staffId as list of staffId in ProjectStaffSearch

* HLM-4894 removing staff-bulk-create-topic

* HLM-4894 removing staff-bulk-create-topic

* HLM-4894 removing staff-bulk-create-topic

* HLM-4894 removing staff-bulk-create-topic

* HLM-4894 changing health-attendance consumer group-id

* HLM-4894 adding changes for projectstaff consumer

* HLM-4894 adding changes for projectstaff consumer

* HLM-4894 adding changes for projectstaff consumer

* HLM-4894 adding changes for projectstaff consumer

* HLM-4894 adding changes for projectstaff consumer

* HLM-5045: added changes, project start date and end date difference should at least be 1 day.

* HLM-4894 adding comments

* HLM-4894 adding additional Details during attendance register creation

* HLM-4894 adding additional Details during attendance register creation

* hlm-4496 : bug fix on adding staff on updation of register

* HLM-4894 increasing limit to 1000

* Added changelog for individual, health-services-models, project, stock

* HLM-4496 : remove attendance module as it is moved to DIGIT-Works repository.

* HLM-5076: added changes related to project module

* updated individual user uuid search field for hlm-4496, hlm-4207

* changed common models build to 1.0.19-SNAPSHOT

---------

Co-authored-by: Priyanka-eGov <priyanka@egovernments.org>
Co-authored-by: syed-egov <syed.owais@egovernments.org>
Co-authored-by: kavi_elrey@1993 <25226238+kavi-egov@users.noreply.github.com>

* Hlm 4496 individual UUID search (#656)

* HLM-4496: updated changedlog for individual, health-services-models, project, referralmanagement

* HLM-4496: Added size annotations on individual search userUuid field

* hlm-4496: Revert of application.properties changes

* updated pom.xml version for individual, project, referralmanagement, stock (#657)

---------

Co-authored-by: kavi_elrey@1993 <25226238+kavi-egov@users.noreply.github.com>
Co-authored-by: Vishal <sarasani.vishalreddy@egovernments.org>
Co-authored-by: bhanu prakash <109132521+bhanuprakash-egov@users.noreply.github.com>
Co-authored-by: Naveen J <83631045+naveen-egov@users.noreply.github.com>
Co-authored-by: talele08 <talele08@users.noreply.github.com>
Co-authored-by: syed-egov <syed.owais@egovernments.org>
Co-authored-by: Priyanka-eGov <priyanka@egovernments.org>

* Dev to master - March 04, 2024 (#664)

* HLM-3376: review comments commit

* HLM-3069: side effect code comments, code refactor

* HLM-3376: code review comments and code refactoring

* updated the common-models version to 1.0.10, and updated in dependent service

* HLM-3376 : Added additional field in side effect, referral.

* HLM-3376: missing column fix

* HLM-3372: constants type changed

* HLM-3376: remo…
kavi-egov pushed a commit that referenced this pull request May 29, 2024
* Updated the error logging logic and other utils

* added validation toast after file check (#533)

* Removed other unwanted logs ::cleaned up the code

* campaign search by type fix (#538)

* upload draft fixes

* campaign type search fix

---------

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* Added basic Loggers to  know the API Behaviours

* Added     In Progress to show in mycamapign screen

* updated version (#541)

* Hlm 5855 (#544)

* upload draft fixes

* campaign type search fix

* fixes

---------

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* Feat : added today's date logic in search

* Revert kafka changes

* Added campaignsIncludesDates in schema

* Refactored

* Feat : added today's date logic in search (#546)

* Feat : added today's date logic in search

* Revert kafka changes

* Added campaignsIncludesDates in schema

* Refactored

* formatted and corrected few logs

* Added localisation on create of boundary data

* HLM-5830 refreshing page is retaining values (#547)

* target validation (#548)

Co-authored-by: nitiman7765 <nitishkumar75500@gmail.com>

* selecting boudaries fixes

* Feat : added campaign mapping check

* summary date format fix (#550)

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* Update campaignUtils.ts

* HLM 5848 (#553)

* summary date format fix

* product error fix, draft calls fix

---------

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* added upcoming tab in my campaign (#555)

* summary date format fix

* product error fix, draft calls fix

* added upcoming tab in my campaign

---------

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* fixed selection from the draft issue (#556)

* Updated the loggers logic

* validate upload data in summary (#557)

* summary date format fix

* product error fix, draft calls fix

* added upcoming tab in my campaign

* validate upload data in summary

---------

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* Feat : added codes and mapping check (#559)

* added log level environment config

* fixed HLM-5879 toast message (#561)

* Feat : user mapping for all boundaries (#562)

* no of cycle and deivery drafted changes (#564)

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* changes for boundary bulk localization HLM-5874 (#560)

Co-authored-by: nitiman7765 <nitishkumar75500@gmail.com>

* made toast message time longer (#566)

* Fixed the project mapping issue during campaign create

* retaining api message (#567)

* HLM 5791 (#569)

* no of cycle and deivery drafted changes

* fixes

---------

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* add localisation code for boundaries (#570)

* no of cycle and deivery drafted changes

* fixes

* add localisation code for boundaries

* fixes

* fixes

---------

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* made the delivery conditions as dynamic

* fixed message in target upload (#572)

* fixed HLM-5871 selection of children (#571)

* fixed HLM-5871 selection of children

* corrected includeAllChildren

* Update SelectingBoundaries.js

* Added health master

* Feat : added validations and keys reorder

* Differenttab (#574)

* changes for boundary bulk localization HLM-5874

* localized boundary tab on which split happens

* config

---------

Co-authored-by: nitiman7765 <nitishkumar75500@gmail.com>

* changed filters to true (#575)

* Patch 1 (#578)

* changes for boundary bulk localization HLM-5874

* localized generateDifferentTabsOnBasisOf

---------

Co-authored-by: nitiman7765 <nitishkumar75500@gmail.com>

* Bhavya filter (#577)

* changed filters to true

* fixed includeAllChildren for the lowest

* Update micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/components/SelectingBoundaries.js

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: Jagankumar <53823168+jagankumar-egov@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Project type object key updated for condition

* API Error localisation change, Gender localisation in summary (#579)

* no of cycle and deivery drafted changes

* fixes

* add localisation code for boundaries

* fixes

* fixes

* Value localise in summary screen, api error change

---------

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* HLM 5791 (#581)

* no of cycle and deivery drafted changes

* fixes

* add localisation code for boundaries

* fixes

* fixes

* Value localise in summary screen, api error change

* fixes

---------

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* Fixed the boundary filtered logic for different types of data injestions (#583)

* making generate api to fetch filters from campaign id

commit ca425591b1d1ec91a05facb6e2bdf9b5100e9570
Merge: 3ba4c5ddac b491428
Author: Jagankumar <53823168+jagankumar-egov@users.noreply.github.com>
Date:   Wed May 15 16:13:32 2024 +0530

    Merge branch 'campaign' into boundary-upload-bulk

commit 3ba4c5ddac8a9d13145892bfd7c772a8853d6e7b
Author: nitiman7765 <nitishkumar75500@gmail.com>
Date:   Tue May 14 12:24:53 2024 +0530

    COMMIT

commit f775e17aa68cffa622a038b22119082486f064fe
Author: nitiman7765 <nitishkumar75500@gmail.com>
Date:   Mon May 13 18:36:28 2024 +0530

    changes for boundary bulk localization HLM-5874

* Fixed the boundary filtered logic for different types of data injestions

* updated comments

* Readme config (#582)

* Feat : initialised readme

* Feat : added readme

* Feat : added readMe Config for target

* Feat : added localisation for sheetName

* Feat : updated columnwidth in boundary

---------

Co-authored-by: Jagankumar <53823168+jagankumar-egov@users.noreply.github.com>

* Bhavya check (#585)

* changes

* Update UploadData.js

* Generate API call fix (#584)

* no of cycle and deivery drafted changes

* fixes

* add localisation code for boundaries

* fixes

* fixes

* Value localise in summary screen, api error change

* fixes

* genarate api call fix

* font size change for summary

* login css change

---------

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* Capital error (#586)

* Feat : initialised readme

* Feat : added readme

* Feat : added readMe Config for target

* Feat : added localisation for sheetName

* Feat : updated columnwidth in boundary

* Feat : capital name in error

* Target (#587)

* changes for boundary bulk localization HLM-5874

* refactored localization logic

---------

Co-authored-by: nitiman7765 <nitishkumar75500@gmail.com>

* generate api fixes, user generate fixes (#588)

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* Updated the status in camapign API

* added info card (#589)

* changes in card (#593)

* Corrected the project type condition logic

* generate api call fix (#595)

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* Update campaignMappingUtils.ts

* Update genericApis.ts

* Fixed the conditions logic for delivery

* Update genericUtils.ts (#599)

* Update genericUtils.ts

* Update constants.ts

* HLM 5872 (#600)

* generate api fix, user generate file fix

* remove console

---------

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* updated the condition logic according to the parsing logic

* HLM 5872 (#601)

* generate api fix, user generate file fix

* remove console

* downlaod pop up fixes

---------

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* addded toast for extra parent (#603)

* HLM 5872 (#604)

* generate api fix, user generate file fix

* remove console

* downlaod pop up fixes

* localisation update

---------

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* updated info css and fetching according to type (#605)

* Target nitish (#607)

* upated target validaton

* updated target vaidation

* Update utilities/project-factory/src/server/utils/validators/campaignValidators.ts

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update utilities/project-factory/src/server/utils/validators/campaignValidators.ts

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update utilities/project-factory/src/server/utils/validators/campaignValidators.ts

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: Jagankumar <53823168+jagankumar-egov@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* upated target validaton

* updated target vaidation

* added one condition for target

* added some chage in condition for valdiate target

* Feat : added boundary code mandatory

* download with filename fixes (#610)

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* fixed localistion (#611)

* Update campaignValidators.ts

* Update campaignValidators.ts

* core/css version update & revert filedownload changes (#614)

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* Update campaignValidators.ts

* HLM-5908 Genrate issue fix (#616)

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* change && to and (#620)

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* toast back issue fix (#621)

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* toast error fix (#622)

* toast back issue fix

* version update

---------

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* localization logic update

* Update campaignValidators.ts

* Update campaignValidators.ts

* core/css version update & revert filedownload changes (#614)

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* Update campaignValidators.ts

* HLM-5908 Genrate issue fix (#616)

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* change && to and (#620)

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* toast back issue fix (#621)

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* toast error fix (#622)

* toast back issue fix

* version update

---------

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* fixed random error (#626)

* download file in summary screen fix (#627)

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* fix rerender (#628)

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* Fixed the boundary localisation issue in user and facility generation, Added few logs

* Added few logs in boundary generation

* Update genericApis.ts

* generate fix (#629)

* fix rerender

* generate api and download error fix

---------

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* localisation fetch logic updated and made singleton class

* remove filter from boudary (#632)

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* Removed filter validation in the generate API

* toast message fix (#635)

* Cleaned up few file structures

* updated the loggers

* Updated the campaign cycles conditions for App Integration

* Service layer (#631)

* Feat : service layer implementation

* Feat : service layer implementation

* Feat : refactor

* updated

---------

Co-authored-by: Jagankumar <53823168+jagankumar-egov@users.noreply.github.com>

* Changed imports of kafka

* Feat : updated kafka name (#637)

* Generate API response time reduced and optimized

* Update campaignValidators.ts (#639)

* page size fix to 10 (#638)

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* summary to back screen redirection fix

* summary to back screen redirection fix (#640)

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* preview params fix

* formatted the code and removed few loggers

* auto redirection fix & auto uploaded deleted file fix (#642)

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* Generationlogic (#630)

* changes for boundary bulk localization HLM-5874

* commit for bulk boundary

* commiting the changes fot boundary code generation

* upated target validaton

* updated target vaidation

* commmit

* code generation

* updary boundary bulk upload logic

* generate fix (#629)

* fix rerender

* generate api and download error fix

---------

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* localisation fetch logic updated and made singleton class

* updated logic for update boundary data

* remove filter from boudary (#632)

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* Removed filter validation in the generate API

* toast message fix (#635)

* Cleaned up few file structures

* updated the loggers

* Updated the campaign cycles conditions for App Integration

* Service layer (#631)

* Feat : service layer implementation

* Feat : service layer implementation

* Feat : refactor

* updated

---------

Co-authored-by: Jagankumar <53823168+jagankumar-egov@users.noreply.github.com>

* Changed imports of kafka

* Feat : updated kafka name (#637)

* Generate API response time reduced and optimized

* Update campaignValidators.ts (#639)

* page size fix to 10 (#638)

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* summary to back screen redirection fix

* preview params fix

* commit suggested by jagan

---------

Co-authored-by: nitiman7765 <nitishkumar75500@gmail.com>
Co-authored-by: nabeelmd-eGov <94039229+nabeelmd-eGov@users.noreply.github.com>
Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>
Co-authored-by: Jagankumar <53823168+jagankumar-egov@users.noreply.github.com>
Co-authored-by: Bhavya-egov <137176879+Bhavya-egov@users.noreply.github.com>
Co-authored-by: ashish-egov <137176738+ashish-egov@users.noreply.github.com>
Co-authored-by: ashish-egov <ashish.tiwari@egovernments.org>

* Updates the delivery rules logic for gender

* * info message for status creating (#644)

* success message if user cred sheet
* send id with key resourceid
* Send variant in sku also

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* Feat : added boundary validation (#643)

Co-authored-by: Jagankumar <53823168+jagankumar-egov@users.noreply.github.com>

* Update campaignValidators.ts (#645)

* added delay in download (#646)

* Update campaignValidators.ts (#647)

* fixes (#649)

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* fixed header validation (#648)

* change in filter recursive (#650)

* Update genericUtils.ts (#652)

* fix (#651)

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* updated lowest level hierarchy validation for target HLM -5948 (#654)

* Update campaignValidators.ts (#655)

* fixes-> cyclenumber issue, hover issue, dropdown height issue,

* css

* fixes-> cyclenumber issue, hover issue, dropdown height issue, (#656)

* fixes-> cyclenumber issue, hover issue, dropdown height issue,

* css

---------

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* Update campaignUtils.ts

* fixed HLM-5970

* Feat : added boundary validation at data level

* fixes

* local add

* Added boundary validation

* Refactor

* fixed HLM-5935 and HLM-5749

* Refactor

* Feat : updated table

* change campaignid in payload

* Feat : added campaignId

* Update campaignApis.ts

* Update campaignValidators.ts

* refactored

* Refactor

* assigned campaignId

* Refactor

* updated createRequest Schema

* Feat : invalid Status Persist

* status fix

* version-fix

* Update CODEOWNERS

* core version updated and css fix for language dropdown

* refactor (#676)

* Uat signoff (#678)

* change in filter recursive

* lowest level

* added validation related to target sheet headers

* HLM-5916

* download button fixes in summary (#682)

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* Hlm 5927 (#687)

* change in filter recursive

* lowest level

* added validation for boundary codes to be invalid other than that selected from UI in target upload

* Added Delivery and cycle config for LLIN and SMC both (#688)

* no of cycle and deivery drafted changes

* fixes

* add localisation code for boundaries

* fixes

* fixes

* Value localise in summary screen, api error change

* fixes

* genarate api call fix

* font size change for summary

* login css change

* HLM-5718: SMC delivery config enhancement

* config update

* added config for in between

* fix config for llin

* added mdms integration

---------

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* Fixed HLM-5988_warning message (#689)

Co-authored-by: nabeelmd-eGov <94039229+nabeelmd-eGov@users.noreply.github.com>

* download filename fixes (#693)

* download button fixes in summary

* download filename with custom name changes added

---------

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* download filename fixes (#694)

* download button fixes in summary

* download filename with custom name changes added

* config fix for llin

---------

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* successful toast message is fixed (#695)

* successful toast message is fixed

* Update UploadData.js

* HLM-5991: Alert Pop UP CR (#696)

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* HLM-5718 changes (#703)

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* Localization cache (#706)

* change in filter recursive

* lowest level

* refactored  localization cache logic

* Update README.md (#707)

* Update README.md

* Update README.md

* Update utilities/project-factory/README.md

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update README.md

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* HLM-5985_made lowest level changes (#708)

* HLM-5985_made lowest level changes

* resolved codeRabbit comments

* Create LOCALSETUP.md (#709)

* Create LOCALSETUP.md

* Refactored config

* Update LOCALSETUP.md

* Update utilities/project-factory/LOCALSETUP.md

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update utilities/project-factory/LOCALSETUP.md

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update utilities/project-factory/LOCALSETUP.md

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update utilities/project-factory/LOCALSETUP.md

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update LOCALSETUP.md

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* updated the localisation module config

* Refactor config (#713)

* Refactor config

* Update utilities/project-factory/src/server/validators/campaignValidators.ts

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update utilities/project-factory/src/server/validators/campaignValidators.ts

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update utilities/project-factory/src/server/validators/campaignValidators.ts

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update postman_collection.json (#714)

* Update postman_collection.json

* Update postman_collection.json

* Delete utilities/project-factory/project_factory_swagger.yml (#715)

* Feat : removed campaignId validation for boundary upload (#718)

* updated the delay for boundary relationship

* added logger for request TODO TEST

will be reverted

* Revert "added logger for request TODO TEST"

This reverts commit d5c2bf5.

* Schema validation (#719)

* Feat : removed campaignId validation for boundary upload

* Feat : added schema validation

* Fixed mdms host

* updated the logger messages

* updated the loggers

* delivery new changes, toast fix, error fix (#716)

* delivery new changes, toast fix, error fix

* new fixes

* fixes

* change text component to field component

* added hierarchy

* fix

* fix

* fix

* fix

* passing hierarchy from props

---------

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* Schema validation2 (#721)

* Feat : removed campaignId validation for boundary upload

* Feat : added schema validation

* Fixed mdms host

* Feat : added boundary validation

* Feat : optimized product search

* Fix : project mapping fixed (#722)

* Fixed project search (#723)

* smc fixes (#724)

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* Feat : added boundary confirmation (#727)

* Fix: fixed processing boundary

* Refactor

* fixed HLM-6109 (#729)

* gate fixes validation, ui ux (#731)

Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>

* integrated panelcard component (#732)

* integrated panelcard component

* Update micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/pages/employee/Response.js

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: Jagankumar <53823168+jagankumar-egov@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update genericUtils.ts (#733)

* updated the folder structure

* Create CHANGELOG.md (#717)

* updated the versions

---------

Co-authored-by: Bhavya-egov <137176879+Bhavya-egov@users.noreply.github.com>
Co-authored-by: nabeelmd-eGov <94039229+nabeelmd-eGov@users.noreply.github.com>
Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.com>
Co-authored-by: ashish-egov <ashish.tiwari@egovernments.org>
Co-authored-by: ashish-egov <137176738+ashish-egov@users.noreply.github.com>
Co-authored-by: nitish-egov <137176807+nitish-egov@users.noreply.github.com>
Co-authored-by: nitiman7765 <nitishkumar75500@gmail.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: admin1 <nitish@egovernments.org>
Co-authored-by: Bhavya-egov <bhavya.mangal@egovernments.org>
Co-authored-by: Swathi-eGov <137176788+Swathi-eGov@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants