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
3 changes: 1 addition & 2 deletions nirc_ehr/resources/queries/dbo/q_clinremarks.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ SELECT anmEvt.ANIMAL_EVENT_ID
WHEN (trim(anmEvt.STAFF_ID.STAFF_FIRST_NAME) IS NULL OR trim(anmEvt.STAFF_ID.STAFF_LAST_NAME) IS NULL) THEN 'unknown'
ELSE (trim(anmEvt.STAFF_ID.STAFF_FIRST_NAME)
|| '|' || trim(anmEvt.STAFF_ID.STAFF_LAST_NAME)) END) AS performedby,
anmEvt.DIAGNOSIS AS vetreview,
anmCmt.TEXT AS remark,
('Note: ' || COALESCE(anmCmt.TEXT, 'None') || '; Diagnosis: ' || COALESCE(anmEvt.DIAGNOSIS, 'None')) AS remark,
'Clinical' AS category,
CASE WHEN anmEvt.ATTACHMENT_PATH IS NOT NULL THEN
('C:\Program Files\Labkey\labkey\files\NIRC\EHR\@files\attachments'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ protected List<String> getMoreActionButtonConfigs()
{
List<String> configs = super.getMoreActionButtonConfigs();
configs.remove("REVIEW");
configs.remove("DISCARD");
return configs;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,12 @@ protected List<String> getButtonConfigs()

return ret;
}

@Override
protected List<String> getMoreActionButtonConfigs()
{
List<String> configs = super.getMoreActionButtonConfigs();
configs.remove("DISCARD");
return configs;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,12 @@ protected List<String> getButtonConfigs()

return ret;
}

@Override
protected List<String> getMoreActionButtonConfigs()
{
List<String> configs = super.getMoreActionButtonConfigs();
configs.remove("DISCARD");
return configs;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,12 @@ protected List<String> getButtonConfigs()

return ret;
}

@Override
protected List<String> getMoreActionButtonConfigs()
{
List<String> configs = super.getMoreActionButtonConfigs();
configs.remove("DISCARD");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would love to have constants for this and other actions. However, I know this is long-standing and widespread to use hard-coded strings.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that could be a future EHR improvement

return configs;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,12 @@ protected List<String> getButtonConfigs()

return ret;
}

@Override
protected List<String> getMoreActionButtonConfigs()
{
List<String> configs = super.getMoreActionButtonConfigs();
configs.remove("DISCARD");
return configs;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,12 @@ else if (isVetTech)
}
return defaultButtons;
}

@Override
protected List<String> getMoreActionButtonConfigs()
{
List<String> configs = super.getMoreActionButtonConfigs();
configs.remove("DISCARD");
return configs;
}
}