     )
 
 
-    conds = Ember.$.post("/InstaCount/condition",  JSON.stringify(@get('query')?.serialize()||{}))
+    conds = Ember.$.post("/InstaCount/condition",  JSON.stringify(@get('model.query')?.serialize()||{}))
 
     conds.fail (=>
       @set('instaCondition', 0)

      @set('instaPatient', val)
    )

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

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

  ).observes('model.query').on('init')

  instaPatient: ( ->
    @get('model.query')
  ).property('computeInstaCount')

  instaEncounter: ( ->
