diff --git a/src/resources/export.sql b/src/resources/export.sql index 8c358c1..5fb9778 100644 --- a/src/resources/export.sql +++ b/src/resources/export.sql @@ -36,7 +36,7 @@ FROM ( JOIN lkr_meldung lm ON (lm.id = lme.lkr_meldung AND lme.typ <> '-1') WHERE lme.xml_daten LIKE '%ICD_Version%' AND SUBSTRING_INDEX(SUBSTRING_INDEX(EXTRACTVALUE(lme.xml_daten, '//Diagnosedatum'), ' ', 1), '.', -1) = :year - AND (lme.xml_daten LIKE '%%') + AND (lme.xml_daten LIKE '%%' OR lme.xml_daten LIKE '%%') ) o1 LEFT OUTER JOIN ( diff --git a/src/resources/query.sql b/src/resources/query.sql index c5c480f..ec3bb8b 100644 --- a/src/resources/query.sql +++ b/src/resources/query.sql @@ -121,7 +121,7 @@ FROM ( JOIN lkr_meldung lm ON (lm.id = lme.lkr_meldung AND lme.typ <> '-1') WHERE lme.xml_daten LIKE '%ICD_Version%' AND SUBSTRING_INDEX(SUBSTRING_INDEX(EXTRACTVALUE(lme.xml_daten, '//Diagnosedatum'), ' ', 1), '.', -1) = :year - AND (lme.xml_daten LIKE '%%') + AND (lme.xml_daten LIKE '%%' OR lme.xml_daten LIKE '%%') ) o1 LEFT OUTER JOIN (