Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .java-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.8
17.0
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ private void addCreatedDateToOtherFields(BeneficiaryModel beneficiaryModel) {
JsonNode otherFieldsNode = objectMapper.readTree(beneficiaryModel.getOtherFields());

// Convert createdDate to a string
String createdDateString = beneficiaryModel.getCreatedDate().toString();
String createdDateString = beneficiaryModel.getCreatedDate().toString();

// Add createdDate to the JSON node
((ObjectNode) otherFieldsNode).put("createdDate", createdDateString);
Expand All @@ -219,10 +219,9 @@ public List<BeneficiaryModel> userExitsCheckWithHealthId_ABHAId(String healthID,
List<BeneficiaryModel> beneficiaryList = new ArrayList<BeneficiaryModel>();
// search patient by ben id, call Identity API
List<BeneficiariesDTO> listBen = null;
if(healthID.contains("@")) {
listBen = identityBeneficiaryService.getBeneficiaryListByHealthID_ABHAAddress(healthID,
auth, is1097);
}else {
if (healthID.contains("@")) {
listBen = identityBeneficiaryService.getBeneficiaryListByHealthID_ABHAAddress(healthID, auth, is1097);
} else {
String healthIdNumber = getHealthId(healthID);
listBen = identityBeneficiaryService.getBeneficiaryListByHealthIDNo_ABHAIDNo(healthIdNumber, auth, is1097);
}
Expand All @@ -232,6 +231,7 @@ public List<BeneficiaryModel> userExitsCheckWithHealthId_ABHAId(String healthID,
}
return beneficiaryList;
}

private String getHealthId(String healthID) {
String healthIdNumber = null;
if (null != healthID) {
Expand All @@ -249,6 +249,7 @@ private String getHealthId(String healthID) {
}
return healthIdNumber;
}

// search patient by healthidNo / ABHA Id No
@Override
public List<BeneficiaryModel> userExitsCheckWithHealthIdNo_ABHAIdNo(String healthIDNo, String auth, Boolean is1097)
Expand Down Expand Up @@ -372,7 +373,8 @@ public List<BeneficiaryModel> getBeneficiaryListFromMapper(List<BeneficiariesDTO
benDetailForOutboundDTOList.forEach(beneficiaryModel -> {

BeneficiaryModel beneficiary = benCompleteMapper.benDetailForOutboundDTOToIBeneficiary(beneficiaryModel);
if (beneficiary.getAge() == 0) {

if (beneficiary.getAge() == null && beneficiary.getActualAge() != null) {
beneficiary.setAge(beneficiary.getActualAge());
}
beneficiary.setBenPhoneMaps(benPhoneMapper.benPhoneMapToResponseByID(beneficiaryModel));
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ spring.jpa.hibernate.ddl-auto=none
spring.jackson.serialization.fail-on-empty-beans=false
spring.jpa.hibernate.show_sql=true
spring.jpa.hibernate.format_sql=true
spring.http.multipart.max-request-size=1000MB
spring.http.multipart.max-file-size=1000MB
spring.servlet.multipart.max-request-size=1000MB
spring.servlet.multipart.max-file-size=1000MB

##sms details for CHO
CHOSmsTemplate= CHO UPTSU SMS
Expand Down