From 31f2d0bf1887a429c3663b8a13ab87ca761b97f1 Mon Sep 17 00:00:00 2001 From: Patrick LaRocque Date: Mon, 12 Aug 2024 14:06:04 -0400 Subject: [PATCH 1/2] Ignore authNumber if using intermediary for ETASU check. --- backend/src/routes/doctorOrders.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/routes/doctorOrders.js b/backend/src/routes/doctorOrders.js index a2e2921..038fd3a 100644 --- a/backend/src/routes/doctorOrders.js +++ b/backend/src/routes/doctorOrders.js @@ -257,7 +257,7 @@ const getGuidanceResponse = async order => { // Make the etasu call with the auth number if it exists, if not call with patient and medication let body = {}; - if (order.authNumber !== '') { + if ((order.authNumber !== '') && (!env.USE_INTERMEDIARY)) { body = { resourceType: 'Parameters', parameter: [ From 5a8fd0af8537db002bb6e399e4e455e929a904a0 Mon Sep 17 00:00:00 2001 From: Patrick LaRocque Date: Mon, 12 Aug 2024 14:22:47 -0400 Subject: [PATCH 2/2] run prettier --- backend/src/routes/doctorOrders.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/routes/doctorOrders.js b/backend/src/routes/doctorOrders.js index 038fd3a..3c8e0a0 100644 --- a/backend/src/routes/doctorOrders.js +++ b/backend/src/routes/doctorOrders.js @@ -257,7 +257,7 @@ const getGuidanceResponse = async order => { // Make the etasu call with the auth number if it exists, if not call with patient and medication let body = {}; - if ((order.authNumber !== '') && (!env.USE_INTERMEDIARY)) { + if (order.authNumber !== '' && !env.USE_INTERMEDIARY) { body = { resourceType: 'Parameters', parameter: [