Skip to content

Commit

Permalink
fix: add ccda contents under FHIR data quality tab tech-by-design#1011
Browse files Browse the repository at this point in the history
  • Loading branch information
megin1989 committed Feb 6, 2025
1 parent a12e0aa commit 948de13
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 22 deletions.
Binary file modified hub-prime/lib/techbd-udi-jooq-ingress.auto.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion hub-prime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</parent>
<groupId>org.techbd</groupId>
<artifactId>hub-prime</artifactId>
<version>0.459.0</version>
<version>0.550.0</version>
<packaging>war</packaging>
<name>Tech by Design Hub (Prime)</name>
<description>Tech by Design Hub (Primary)</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,25 +172,7 @@ FROM techbd_udi_ingress.interaction_http_request intr_observe
WHERE intr_observe.start_time IS NOT NULL AND intr_observe.finish_time IS NOT null
ORDER BY duration_millisecs DESC;

/*****************************************
This view extracts diagnostic information from JSON payloads of HTTP requests stored in
'sat_interaction_http_request'. It transforms and presents fields such as 'tenant_id', 'uri',
'session_id', 'severity', 'message', 'line', 'column', 'diagnostics', 'encounteredAt',
and 'elaboration' for further analysis or reporting.
******************************************************************************************/
DROP VIEW IF EXISTS techbd_udi_ingress.fhir_session_diagnostics CASCADE;
CREATE OR REPLACE VIEW techbd_udi_ingress.fhir_session_diagnostics
AS SELECT tenant_id,
uri,
session_id,
severity,
message,
line,
"column",
diagnostics,
to_timestamp(intr_diagno.encountered_at::double precision) AS encounteredat,
elaboration
FROM techbd_udi_ingress.sat_interaction_fhir_session_diagnostic intr_diagno;


/*******************************************************************************************************************************
* Function to register an HTTP interaction request, handling potential unique constraint violations
Expand Down Expand Up @@ -4338,7 +4320,7 @@ as
COUNT(*) as issue_count
from
techbd_udi_ingress.sat_interaction_fhir_session_diagnostic
where severity in ('warning','ERROR','WARING','error')
where severity in ('warning','ERROR','WARING','error','FATAL','fatal')
and message != ''
group by
encountered_date,
Expand Down Expand Up @@ -4384,7 +4366,7 @@ select
elaboration
from
techbd_udi_ingress.sat_interaction_fhir_session_diagnostic intr_diagno
where severity in ('warning','ERROR','WARING','error')
where severity in ('warning','ERROR','WARING','error','FATAL','fatal')
and message != '';

DROP FUNCTION IF EXISTS techbd_udi_ingress.sat_interaction_ccda_request_upserted(text, text, text, text, text, text, jsonb, text, timestamptz, text, text, jsonb, text, text, text);
Expand Down

0 comments on commit 948de13

Please sign in to comment.