We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b31b937 commit 69315e3Copy full SHA for 69315e3
erpnext-openmrs/src/main/java/com/ozonehis/eip/erpnext/openmrs/routes/PatientRouting.java
@@ -31,7 +31,8 @@ public class PatientRouting extends RouteBuilder {
31
32
Predicate isPatientSyncEnabled() {
33
return exchange -> isPatientSyncEnabled
34
- || Boolean.TRUE.equals(exchange.getIn().getHeader(HEADER_ENABLE_PATIENT_SYNC, Boolean.class));
+ || exchange.getMessage().getHeader(HEADER_ENABLE_PATIENT_SYNC, false, Boolean.class)
35
+ || "u".equals(exchange.getMessage().getHeader(HEADER_FHIR_EVENT_TYPE, String.class));
36
}
37
38
@Override
0 commit comments