Translations:SMS handler setup/36/en
For example:
select %s from (select unnest(regexp_matches(%s,'([a-z]+)', 'igx')) as code) as dat left outer join diseases s on upper(dat.code) = upper(s.code) AND NOT del AND (valid_from IS NULL OR valid_from <= CURRENT_DATE) AND (valid_to IS NULL OR valid_to >= CURRENT_DATE)