Skip to content

Commit

Permalink
Merge pull request #339 from DBCG/bug-ra-parientlist-group
Browse files Browse the repository at this point in the history
Fix R4 implementation of getting a patient list from a Group with one…
  • Loading branch information
Rob Reynolds authored Sep 14, 2021
2 parents ee2dc6a + d5a8408 commit 2d467d0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,9 @@ private List<Reference> getPatientListFromGroup(String subjectGroupRef){
patientList.addAll(getPatientListFromGroup(member.getEntity().getReference()));
} else if (member.getEntity().fhirType().equals("Patient")) {
patientList.add(member.getEntity());
} else {
} else if (member.getEntity().fhirType().equals("Reference")) {
patientList.add(member.getEntity());
}else {
logger.info(String.format("Group member was not a patient, so skipping. \n%s", member.getEntity().getReference()));
}
});
Expand Down

0 comments on commit 2d467d0

Please sign in to comment.