Skip to content

Commit

Permalink
fix: display FHIR data and CSV data under scn tab tech-by-design#1000
Browse files Browse the repository at this point in the history
  • Loading branch information
megin1989 committed Jan 6, 2025
1 parent 8d99207 commit cbeba58
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
Binary file modified hub-prime/lib/techbd-udi-jooq-ingress.auto.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion support/service/frictionless-validator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,4 @@ The CSV file names in this project follow a strict naming convention to ensure c
- `QE_ADMIN_DATA_partner1-test-20241128-testcase1.csv`
- `SCREENING_PROFILE_DATA_partner1-test-20241128-testcase1.csv`
- `SCREENING_OBSERVATION_DATA_partner1-test-20241128-testcase1.csv`
- `DEMOGRAPHIC_DATA_partner1-test-20241128-testcase1.csv`
- `DEMOGRAPHIC_DATA_partner1-test-20241128-testcase1.csv`
Original file line number Diff line number Diff line change
Expand Up @@ -3490,8 +3490,9 @@ BEGIN
max(sihr.created_at)::TIMESTAMP AS recently_created_at
FROM techbd_udi_ingress.sat_interaction_fhir_request sihr
WHERE
sihr.uri = ANY (ARRAY['/Bundle/', '/Bundle'])
AND sihr.created_at BETWEEN start_date AND end_date
sihr.uri = ANY (ARRAY['/Bundle/', '/Bundle', '/flatfile/csv/Bundle', '/flatfile/csv/Bundle/'])
AND sihr.created_at >= TO_TIMESTAMP(start_date::text, 'YYYY-MM-DD')
AND sihr.created_at < TO_TIMESTAMP(end_date::text, 'YYYY-MM-DD') + INTERVAL '1 day'
AND sihr.tenant_id <> 'N/A'
AND sihr.organization_id <> ''
GROUP BY sihr.organization_id
Expand Down Expand Up @@ -3536,7 +3537,7 @@ BEGIN
max(sihr.created_at) AS recently_created_at
FROM techbd_udi_ingress.sat_interaction_fhir_request sihr
WHERE
sihr.uri = ANY (ARRAY['/Bundle/', '/Bundle'])
sihr.uri = ANY (ARRAY['/Bundle', '/Bundle/','/flatfile/csv/Bundle', '/flatfile/csv/Bundle/'])
AND sihr.created_at >= TO_TIMESTAMP(start_date::text, 'YYYY-MM-DD')
AND sihr.created_at < TO_TIMESTAMP(end_date::text, 'YYYY-MM-DD') + INTERVAL '1 day'
AND sihr.tenant_id <> 'N/A'
Expand Down Expand Up @@ -3693,7 +3694,7 @@ BEGIN
techbd_udi_ingress.sat_interaction_fhir_request sihr
WHERE
sihr.nature = ''Forwarded HTTP Response Error''
AND sihr.uri = ANY (ARRAY[''/Bundle/'', ''/Bundle''])
AND sihr.uri = ANY (ARRAY[''/Bundle/'', ''/Bundle'', ''/flatfile/csv/Bundle'', ''/flatfile/csv/Bundle/''])
AND sihr.created_at >= TO_TIMESTAMP($1::text, ''YYYY-MM-DD'')
AND sihr.created_at < TO_TIMESTAMP($2::text, ''YYYY-MM-DD'') + INTERVAL ''1 day''
AND sihr.tenant_id_lower = $3
Expand Down Expand Up @@ -3766,8 +3767,9 @@ BEGIN
FROM
techbd_udi_ingress.sat_interaction_fhir_request sihr
WHERE
sihr.uri = ANY (ARRAY[''/Bundle/'', ''/Bundle''])
AND sihr.created_at BETWEEN $2 AND $3 -- Parameters shifted by one
sihr.uri = ANY (ARRAY[''/Bundle/'', ''/Bundle'',''/flatfile/csv/Bundle'', ''/flatfile/csv/Bundle/''])
AND sihr.created_at >= TO_TIMESTAMP($2::text, ''YYYY-MM-DD'')
AND sihr.created_at < TO_TIMESTAMP($3::text, ''YYYY-MM-DD'') + INTERVAL ''1 day'' -- Parameters shifted by one
AND sihr.tenant_id <> ''N/A''
AND sihr.organization_id = $1 -- Organization ID filter
GROUP BY
Expand Down

0 comments on commit cbeba58

Please sign in to comment.