Skip to content

Commit

Permalink
fix: change the views for taken count of techbd count in need attenst…
Browse files Browse the repository at this point in the history
  • Loading branch information
megin1989 committed Aug 8, 2024
1 parent 62d4780 commit 2d749c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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 @@ -958,7 +958,7 @@ CREATE OR REPLACE VIEW techbd_udi_ingress.fhir_needs_attention AS
WITH submission_counts AS (
SELECT
sihr.nature->>'tenant_id' as qe_name,
COUNT(CASE WHEN sihr.nature->>'nature' = 'org.techbd.service.http.Interactions$RequestResponseEncountered' THEN 1 END) AS qe_total_submissions,
COUNT(CASE WHEN sihr.nature->>'nature' = 'Original FHIR Payload' THEN 1 END) AS qe_total_submissions,
COUNT(CASE WHEN sihr.nature->>'nature' = 'Forward HTTP Request' THEN 1 END) AS techbd_total_submissions,
COUNT(CASE WHEN sihr.nature->>'nature' = 'Forwarded HTTP Response' THEN 1 END) AS total_scoring_engine_submissions,
COUNT(CASE WHEN sihr.nature->>'nature' = 'Forwarded HTTP Response' AND sihr.payload ? 'scoredcardResponse' THEN 1 END) AS scoring_engine_submission_passed
Expand Down Expand Up @@ -1124,7 +1124,7 @@ CREATE OR REPLACE VIEW techbd_udi_ingress.fhir_needs_attention_dashbaord AS
WITH submission_counts AS (
SELECT
sihr.nature->>'tenant_id' AS qe_name,
COUNT(CASE WHEN sihr.nature->>'nature' = 'org.techbd.service.http.Interactions$RequestResponseEncountered' THEN 1 END) AS qe_total_submissions,
COUNT(CASE WHEN sihr.nature->>'nature' = 'Original FHIR Payload' THEN 1 END) AS qe_total_submissions,
COUNT(CASE WHEN sihr.nature->>'nature' = 'Forward HTTP Request' THEN 1 END) AS techbd_total_submissions,
COUNT(CASE WHEN sihr.nature->>'nature' = 'Forwarded HTTP Response' THEN 1 END) AS total_scoring_engine_submissions,
COUNT(CASE WHEN sihr.nature->>'nature' = 'Forwarded HTTP Response' AND sihr.payload ? 'scoredcardResponse' THEN 1 END) AS scoring_engine_submission_passed
Expand Down

0 comments on commit 2d749c1

Please sign in to comment.