split out query model and view from measure model and patient view respectively