Create a class for code system query
Add code system query state updater