Skip to content

Commit

Permalink
fixes criteria to exclude patients (#1689)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamloup-enquizit authored and achapm committed Aug 13, 2024
1 parent 14c6cf4 commit a73892d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import org.springframework.stereotype.Component;

@Component
public class ProviderOptionResolver extends SQLBasedOptionResolver {
class ProviderOptionResolver extends SQLBasedOptionResolver {

private static final String QUERY = """
with [user]([value], [name], [quickCode]) AS (
Expand All @@ -23,7 +23,7 @@ public class ProviderOptionResolver extends SQLBasedOptionResolver {
[quick_code].entity_uid = [provider].person_uid
and [quick_code].type_cd='QEC'
where [provider].cd='PRV'
and [provider].electronic_ind is null or [provider].electronic_ind <> 'Y'
and ([provider].electronic_ind is null or [provider].electronic_ind <> 'Y')
)
select
[value],
Expand All @@ -38,7 +38,7 @@ public class ProviderOptionResolver extends SQLBasedOptionResolver {
fetch next :limit rows only
""";

public ProviderOptionResolver(final NamedParameterJdbcTemplate template) {
ProviderOptionResolver(final NamedParameterJdbcTemplate template) {
super(QUERY, template);
}
}

0 comments on commit a73892d

Please sign in to comment.