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 @@ -7,6 +7,7 @@
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
* License for the specific language governing rights and limitations
*
* under the License.
*
* Copyright (C) OpenMRS, LLC. All Rights Reserved.
Expand All @@ -22,6 +23,7 @@
import java.util.Map;
import java.util.StringTokenizer;
import java.util.WeakHashMap;
import java.util.function.BiFunction;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
Expand Down Expand Up @@ -205,10 +207,16 @@ public int compare(Concept left, Concept right) {
model.put("orderStopReasons", orderStopReasons);
model.put("personAttributeTypes", Context.getPersonService().getAllPersonAttributeTypes());
model.put("shortcuts", shortcuts);
model.put("drugType",getAllDrugTypes());//returning the drug types
}
return new ModelAndView(formView, "model", model);
}

private BiFunction<? super String, ? super Object, ? extends Object> getAllDrugTypes() {
// TODO Auto-generated method stub
return null;
}

public class Shortcut {

private String label;
Expand Down