Skip to content

Commit

Permalink
Merge pull request tech-by-design#275 from megin1989/main
Browse files Browse the repository at this point in the history
fix: fix qe submission count in need attenstion tech-by-design#239
  • Loading branch information
ratheesh-kr authored Aug 7, 2024
2 parents 17c825d + a7f94a3 commit abf5c6b
Showing 1 changed file with 1 addition and 1 deletion.
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' = 'Original FHIR Payload' THEN 1 END) AS qe_total_submissions,
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' = '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 abf5c6b

Please sign in to comment.