From d5a84084c655a8aa8c883bc7f0e23745a5e16ea6 Mon Sep 17 00:00:00 2001 From: rob-reynolds Date: Mon, 13 Sep 2021 21:29:05 -0600 Subject: [PATCH] Fix R4 implementation of getting a patient list from a Group with one patient --- .../opencds/cqf/r4/providers/MeasureOperationsProvider.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/r4/src/main/java/org/opencds/cqf/r4/providers/MeasureOperationsProvider.java b/r4/src/main/java/org/opencds/cqf/r4/providers/MeasureOperationsProvider.java index 6aab78451..b0c8dfc58 100644 --- a/r4/src/main/java/org/opencds/cqf/r4/providers/MeasureOperationsProvider.java +++ b/r4/src/main/java/org/opencds/cqf/r4/providers/MeasureOperationsProvider.java @@ -472,7 +472,9 @@ private List 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())); } });