We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7c8797 commit b285410Copy full SHA for b285410
1 file changed
backend/src/routes/doctorOrders.js
@@ -385,7 +385,7 @@ const isRemsDrug = order => {
385
const getEtasuUrl = order => {
386
let baseUrl;
387
388
- if (env.USE_INTERMEDIARY) {
+ if (getConfig().useIntermediary) {
389
baseUrl = env.INTERMEDIARY_FHIR_URL;
390
} else {
391
const remsDrug = medicationRequestToRemsAdmins.find(entry => {
@@ -419,7 +419,7 @@ const getGuidanceResponse = async order => {
419
420
// Make the etasu call with the case number if it exists, if not call with patient and medication
421
let body = {};
422
- if (order.caseNumber && !env.USE_INTERMEDIARY) {
+ if (order.caseNumber && !getConfig().useIntermediary) {
423
body = {
424
resourceType: 'Parameters',
425
parameter: [
0 commit comments