Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ public String createBeneficiary(
+ "\"healthCareWorkerID\":\"Short\",\"communityID\":\"Integer\",\"districtID\":\"Integer\",\"stateID\":\"Integer\","
+ "\"pinCode\":\"String\",\"blockID\":\"Integer\",\"districtBranchID\":\"Integer\",\"createdBy\":\"String\","
+ "\"addressLine1\":\"String\"},\"benPhoneMaps\":{\"parentBenRegID\":\"Long\",\"phoneNo\":\"String\","
+ "\"phoneTypeID\":\"Integer\",\"benRelationshipID\":\"Integer\",\"deleted\":\"Boolean\",\"createdBy\":\"String\"}}") @RequestBody BeneficiaryModel beneficiaryModel,
+ "\"phoneTypeID\":\"Integer\",\"benRelationshipID\":\"Integer\",\"deleted\":\"Boolean\",\"createdBy\":\"String\"},"
+ "\"faceEmbedding\":[\"Float\"]}") @RequestBody BeneficiaryModel beneficiaryModel,
HttpServletRequest httpRequest) {
OutputResponse response = new OutputResponse();

Expand Down
20 changes: 20 additions & 0 deletions src/main/java/com/iemr/common/data/beneficiary/Beneficiary.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ public class Beneficiary

private String titleName;

private List<Float> faceEmbedding;

@JsonIgnore

private Title m_title;
Expand Down Expand Up @@ -769,6 +771,23 @@ public Beneficiary(Long BeneficiaryRegID, String BeneficiaryID, String FirstName
this.benPhoneMaps = phoneMap;
}

public Beneficiary(Long BeneficiaryRegID, String BeneficiaryID, String FirstName, String MiddleName,
String LastName, Gender m_gender, Timestamp DOB, List<Float> faceEmbedding) {
this.beneficiaryRegID = BeneficiaryRegID;
this.beneficiaryID = BeneficiaryID;
this.firstName = FirstName;
this.middleName = MiddleName;
this.lastName = LastName;
this.m_gender = m_gender;
this.dOB = DOB;
if (DOB != null) {
this.age = Integer
.parseInt(formatYear.format(new Date(Calendar.getInstance().getTime().getTime() - DOB.getTime())))
- START_YEAR_1970;
}
this.faceEmbedding = faceEmbedding;
}

public Beneficiary(Long BeneficiaryRegID, String BeneficiaryID, String FirstName, String MiddleName,
String LastName, Gender m_gender, Timestamp DOB)
{
Expand Down Expand Up @@ -903,3 +922,4 @@ public Beneficiary()
// }

}

Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ public class BeneficiaryModel implements Comparable<BeneficiaryModel> {
private Boolean isD2D;

// END OF new column added for data sync
// new column added for face recognition
@Expose
private List<Float> faceEmbedding;
// END OF new column added for face recognition

// ABHA address
List<AbhaAddressDTO> abhaDetails;
Expand Down Expand Up @@ -376,3 +380,4 @@ public int compareTo(BeneficiaryModel ben) {
return this.beneficiaryRegID.compareTo(ben.beneficiaryRegID);
}
}