Commit 0e398bd4 authored by Tony Schaller's avatar Tony Schaller

Fix PatientGender comparision

git-svn-id: https://svn.code.sf.net/p/ehealthconnector/code/trunk@1713 e99adb7c-5e35-42fd-8d1b-cdb378af05e8
parent 47ecdcb7
......@@ -1399,9 +1399,9 @@ public class V3PixPdqAdapter implements MpiAdapterInterface<V3PdqQuery, V3PdqQue
// Gender
if (patient.getGender() != null) {
String gender = "";
if ("male".equals(patient.getGender())) {
if (patient.getGender() == AdministrativeGender.MALE) {
gender = "M";
} else if ("female".equals(patient.getGender())) {
} else if (patient.getGender() == AdministrativeGender.FEMALE) {
gender = "F";
} else {
gender = "U";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment