Options for OpenMRS drug management

If anyone else want to fix it locally. here is the codes line to be fixed

{{ setting | omrs.display }}

replace it with

{{ setting | omrsDisplay }}

$scope.search = function(term) {
    return DrugService.getDrugs({ q: term });
}

replace it with

$scope.search = function(term) {
    return DrugService.getDrugs({ q: term }).then(function(result){
        return result;
    });
}

also

'typeahead="drug as drug.display for drug in search($viewValue) | filter:$viewValue" ' +

replace it with

'typeahead="drug as drug.display for drug in search($viewValue)" ' +