   encounterObject: Ember.Object.create({ type: 'encounter' })
 
   computeInstaCount: (->
-    pats = Ember.$.post("/InstaCount/patient",  JSON.stringify(@get('query')?.serialize()||{}))
+    pats = Ember.$.post("/InstaCount/patient",  JSON.stringify(@get('model.query')?.serialize()||{}))
 
     pats.fail (=>
       @set('instaPatient', 0)

      @set('instaPatient', val)
    )

    encounters = Ember.$.post("/InstaCount/encounter",  JSON.stringify(@get('query')?.serialize()||{}))

    encounters.fail (=>
      @set('instaEncounter', 0)

    )


    conds = Ember.$.post("/InstaCount/condition",  JSON.stringify(@get('model.query')?.serialize()||{}))

    conds.fail (=>
      @set('instaCondition', 0)
