diff --git a/app/medication/edit/route.js b/app/medication/edit/route.js
index <HASH>..<HASH> 100644
--- a/app/medication/edit/route.js
+++ b/app/medication/edit/route.js
@@ -30,8 +30,7 @@ export default AbstractEditRoute.extend(FulfillRequest, InventoryLocations, Pati
     setupController: function(controller, model) {
         this._super(controller, model);
         var inventoryQuery = {
-            startkey:  ['Medication','inventory_'],
-            endkey: ['Medication','inventory_\uffff'],
+            key:  'Medication',            
             include_docs: true,
         };
         var inventoryItem = model.get('inventoryItem'),
diff --git a/app/procedures/edit/route.js b/app/procedures/edit/route.js
index <HASH>..<HASH> 100644
--- a/app/procedures/edit/route.js
+++ b/app/procedures/edit/route.js
@@ -9,8 +9,7 @@ export default AbstractEditRoute.extend(ChargeRoute, {
     setupController: function(controller, model) {
         this._super(controller, model);
         var medicationQuery = {
-            startkey:  ['Medication','inventory_'],
-            endkey: ['Medication','inventory_\uffff'],
+            key:  'Medication',
             include_docs: true,
         };
         this.controllerFor('pouchdb').queryMainDB(medicationQuery, 'inventory_by_type').then(function(result) {
Updated inventory_by_type view