File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
service/src/main/java/uk/nhs/adaptors/gp2gp/ehr/utils Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 33import java .util .Collection ;
44import java .util .List ;
55
6+ import lombok .extern .slf4j .Slf4j ;
67import org .hl7 .fhir .dstu3 .model .Coding ;
78import org .hl7 .fhir .dstu3 .model .Observation ;
89import org .springframework .stereotype .Component ;
10+ import uk .nhs .adaptors .gp2gp .common .task .TaskType ;
911
1012@ Component
13+ @ Slf4j
1114public 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 ;
You can’t perform that action at this time.
0 commit comments