Skip to content

Commit a352eb6

Browse files
committed
test scenario update
1 parent 97809c3 commit a352eb6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

service/src/main/java/uk/nhs/adaptors/gp2gp/ehr/utils/BloodPressureValidator.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
import java.util.Collection;
44
import java.util.List;
55

6+
import lombok.extern.slf4j.Slf4j;
67
import org.hl7.fhir.dstu3.model.Coding;
78
import org.hl7.fhir.dstu3.model.Observation;
89
import org.springframework.stereotype.Component;
10+
import uk.nhs.adaptors.gp2gp.common.task.TaskType;
911

1012
@Component
13+
@Slf4j
1114
public class BloodPressureValidator {
1215
static final String BLOOD_PRESSURE_READING_CODE = "163020007";
1316
static final String ARTERIAL_BLOOD_PRESSURE_CODE = "386534000";
@@ -32,7 +35,9 @@ public boolean isValidBloodPressure(Observation observation) {
3235
if (CodeableConceptMappingUtils.hasCode(observation.getCode(), List.of(
3336
BLOOD_PRESSURE_READING_CODE, ARTERIAL_BLOOD_PRESSURE_CODE, BLOOD_PRESSURE_CODE
3437
))) {
38+
LOGGER.info("Observation has code");
3539
if (hasBloodPressureCode(observation, List.of(SYSTOLIC_ARTERIAL_PRESSURE, SYSTOLIC_BLOOD_PRESSURE))) {
40+
LOGGER.info("Observation component has code");
3641
return hasBloodPressureCode(observation, List.of(DIASTOLIC_ARTERIAL_PRESSURE, DIASTOLIC_BLOOD_PRESSURE));
3742
}
3843
return false;

0 commit comments

Comments
 (0)