Skip to content

Commit d34f02e

Browse files
authored
Merge pull request #159 from mcode/disable_medication_status
add option to disable the medication status
2 parents 474edc2 + 66e7568 commit d34f02e

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ VITE_HOOK_TO_SEND = patient-view
2727
VITE_URL_FILTER = http://localhost:3000/*
2828
VITE_USE_INTERMEDIARY = false
2929
VITE_INTERMEDIARY = http://localhost:3003
30+
VITE_DISABLE_MEDICATION_STATUS = false

src/containers/RequestBuilder.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const RequestBuilder = props => {
5555
return Object.keys(state.request).length === 0;
5656
};
5757

58-
const disableGetMedicationStatus = isOrderNotSelected() || state.loading;
58+
const disableGetMedicationStatus = isOrderNotSelected() || state.loading || globalState.disableMedicationStatus;
5959
const disableGetEtasu = isOrderNotSelected() || state.loading;
6060
const getMedicationStatus = () => {
6161
setState(prevState => ({

src/util/data.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ const headerDefinitions = {
8686
type: 'input',
8787
default: env.get('VITE_INTERMEDIARY').asString()
8888
},
89+
disableMedicationStatus: {
90+
display: 'Disable Medication Status',
91+
type: 'check',
92+
default: false
93+
},
8994

9095
hookToSend: {
9196
display: 'Send hook on patient select',

0 commit comments

Comments
 (0)