Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ VITE_HOOK_TO_SEND = patient-view
VITE_URL_FILTER = http://localhost:3000/*
VITE_USE_INTERMEDIARY = false
VITE_INTERMEDIARY = http://localhost:3003
VITE_DISABLE_MEDICATION_STATUS = false
2 changes: 1 addition & 1 deletion src/containers/RequestBuilder.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const RequestBuilder = props => {
return Object.keys(state.request).length === 0;
};

const disableGetMedicationStatus = isOrderNotSelected() || state.loading;
const disableGetMedicationStatus = isOrderNotSelected() || state.loading || globalState.disableMedicationStatus;
const disableGetEtasu = isOrderNotSelected() || state.loading;
const getMedicationStatus = () => {
setState(prevState => ({
Expand Down
5 changes: 5 additions & 0 deletions src/util/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ const headerDefinitions = {
type: 'input',
default: env.get('VITE_INTERMEDIARY').asString()
},
disableMedicationStatus: {
display: 'Disable Medication Status',
type: 'check',
default: false
},

hookToSend: {
display: 'Send hook on patient select',
Expand Down