Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ public class CustomAppLoaderFactory implements AppFrameworkFactory {
private String patientEncountersPageUrl = "";
private String patientVisitsPageUrl = "";

private String mentalHealthAssessmentLabel = "";

private String patientVisitsPageWithSpecificVisitUrl = "";

public enum ReportCategory { OVERVIEW, DAILY, DATA_EXPORT, DATA_QUALITY, MONITORING };
Expand Down Expand Up @@ -1949,8 +1951,14 @@ private void enableMentalHealthForm() {
definitionUiResource = definitionUiResource + "&returnUrl=/" + WebConstants.CONTEXT_PATH + "/" + patientVisitsPageWithSpecificVisitUrl;
}

if (config.getCountry().equals(ConfigDescriptor.Country.LIBERIA)) {
mentalHealthAssessmentLabel = "pih.task.mentalHealthFU.label";
} else {
mentalHealthAssessmentLabel = "pih.task.mentalHealth.label";
}

extensions.add(visitAction(CustomAppLoaderConstants.Extensions.MENTAL_HEALTH_VISIT_ACTION,
"pih.task.mentalHealth.label",
mentalHealthAssessmentLabel,
"fas fa-fw fa-user",
"link",
enterStandardHtmlFormLink(definitionUiResource),
Expand Down