Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ public DoseUnit getDoseUnit() {
}

public enum DoseUnit {
mg
mg,
mcg,
ml
}

public String getDrugName() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private List<DosageRule> getExtendedRules() {
}

private File[] getExtendedRuleFiles() {
File folder = new File(getRulesEngineExtensionPath());
File folder = new File(OpenmrsUtil.getApplicationDataDirectory(), getRulesEngineExtensionPath());
File[] listOfFiles = folder.listFiles(new FilenameFilter() {
public boolean accept(File dir, String filename) {
return filename.endsWith(".groovy");
Expand All @@ -96,8 +96,7 @@ public boolean accept(File dir, String filename) {
}

private String getRulesEngineExtensionPath() {
String ruleFilePath = OpenmrsUtil.getApplicationDataDirectory() +
"bahmni_config" + File.separator + "openmrs" + File.separator +
String ruleFilePath = "bahmni_config" + File.separator + "openmrs" + File.separator +
rulesEngineExtensionPath;
return ruleFilePath;
}
Expand Down