Skip to content

Commit

Permalink
Merge pull request #1045 from alan-francis/main
Browse files Browse the repository at this point in the history
feat: update endpoints with '/' for CCDA inserts in db
  • Loading branch information
alan-francis authored Jan 15, 2025
2 parents f6ce224 + 4a721e0 commit 1e92674
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ BEGIN
END IF;

--2.1) Call the function with the defined parameters to upsert interaction FHIR request info.
IF trim(register_interaction_http_request.interaction_key) IN ('/Bundle', '/Bundle/', '/Bundle/$validate', '/api/expect/fhir/bundle', '/Hl7/v2', '/Hl7/v2/', '/flatfile/csv/Bundle', '/flatfile/csv/Bundle/', '/flatfile/csv/Bundle/$validate', '/ccda/Bundle')
IF trim(register_interaction_http_request.interaction_key) IN ('/Bundle', '/Bundle/', '/Bundle/$validate', '/api/expect/fhir/bundle', '/Hl7/v2', '/Hl7/v2/', '/flatfile/csv/Bundle', '/flatfile/csv/Bundle/', '/flatfile/csv/Bundle/$validate', '/ccda/Bundle', '/ccda/Bundle/')
AND v_nature_denorm NOT IN ('Original HL7 Payload', 'Original CSV Zip Archive', 'Original Flat File CSV', 'CSV Validation Result', 'Converted to FHIR') THEN

PERFORM techbd_udi_ingress.sat_interaction_fhir_request_upserted(
Expand Down Expand Up @@ -515,7 +515,7 @@ BEGIN

--RECURSIVE FUNCTION CALL
/*----------------------------- FHIR Bundle inserts into sat_interaction_http_request ----------------------*/
IF trim(register_interaction_http_request.interaction_key) IN ('/Bundle', '/Bundle/', '/Hl7/v2', '/Hl7/v2/', '/flatfile/csv/Bundle', '/flatfile/csv/Bundle/', '/flatfile/csv/Bundle/$validate', '/ccda/Bundle') THEN
IF trim(register_interaction_http_request.interaction_key) IN ('/Bundle', '/Bundle/', '/Hl7/v2', '/Hl7/v2/', '/flatfile/csv/Bundle', '/flatfile/csv/Bundle/', '/flatfile/csv/Bundle/$validate', '/ccda/Bundle', '/ccda/Bundle/') THEN
IF (v_nature_denorm = 'org.techbd.service.http.Interactions$RequestResponseEncountered') THEN --Check previous nature
v_from_state := 'NONE';
v_to_state := 'ACCEPT_FHIR_BUNDLE';
Expand Down

0 comments on commit 1e92674

Please sign in to comment.