James Frew will carry out building services work on behalf of Barr Construction.
Located on Girvan Road at the edge of the town, the hospital will comprise in and out patient accommodation, a rehabilitation suite, casualty facility, ambulance stations, pharmacy, café and support accommodation.
The building has been designed to incorporate low zero carbon technologies such as a wind turbine and rainwater recovery systems.
James Frew will be providing the mechanical services installation, including a highly efficient biomass boiler plant, ventilation, medical gas, water services and sanitary ware.
Mananging director Richard Frew said: "The community hospital is a real model for future facilities. It has embraced eco-friendly technologies as far as possible providing a highly efficient and cost aware environment.”