Implemented hiding/showing complexity in hospital creation screen based on deployment setting and hospital marker tweaking

Based on the deployment setting flags in the config file, certain fields in the hospital creation screen are shown/hidden. This is done in order to hide complexity whenever needed. Also implemented marker function which shows different colored markers based on the hospital status.
I was not able to find anything other than stable.id, hence i coded it as,  stype = db(query).select(stable.id)  Could you please direct me to an instance where this is done. I'll refer to it and change it as required.