Skip to content

Commit

Permalink
Merge pull request tech-by-design#289 from megin1989/main
Browse files Browse the repository at this point in the history
fix: query changes in interaction dashboard need attention tech-by-design#239
  • Loading branch information
ratheesh-kr authored Aug 8, 2024
2 parents 37e34a4 + 896882c commit 45efed8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file modified hub-prime/lib/techbd-udi-jooq-ingress.auto.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1135,13 +1135,13 @@ WITH combined_counts AS (
ON hintr.hub_interaction_id = sihr.hub_interaction_id
WHERE
sihr.created_at >= CURRENT_DATE - INTERVAL '7 days'
AND LOWER(sihr.nature->>'tenant_id') IN ('healthelink', 'healtheconnections', 'healthix', 'grrhio', 'hixny')
AND LOWER(sihr.nature->>'tenant_id') IN ('healthelink', 'healtheconn', 'healthix', 'grrhio', 'hixny')
GROUP BY LOWER(sihr.nature->>'tenant_id')
)
SELECT
SUM(cross_roads_scn) AS total_cross_roads_scn,
SUM(CASE WHEN qe_name = 'healthelink' THEN qe_total_submissions ELSE 0 END) AS healthelink_total_submissions,
SUM(CASE WHEN qe_name = 'healtheconnections' THEN qe_total_submissions ELSE 0 END) AS healtheconnections_total_submissions,
SUM(CASE WHEN qe_name = 'healtheconn' THEN qe_total_submissions ELSE 0 END) AS healtheconnections_total_submissions,
SUM(CASE WHEN qe_name = 'healthix' THEN qe_total_submissions ELSE 0 END) AS healthix_total_submissions,
SUM(CASE WHEN qe_name = 'grrhio' THEN qe_total_submissions ELSE 0 END) AS grrhio_total_submissions,
SUM(CASE WHEN qe_name = 'hixny' THEN qe_total_submissions ELSE 0 END) AS hixny_total_submissions,
Expand All @@ -1151,4 +1151,4 @@ SELECT
FROM
combined_counts
WHERE
qe_name IN ('healthelink', 'healtheconnections', 'healthix', 'grrhio', 'hixny');
qe_name IN ('healthelink', 'healtheconn', 'healthix', 'grrhio', 'hixny');

0 comments on commit 45efed8

Please sign in to comment.