  For the purpose of treatment of various cancer and medical research, the
synchrotron based medical machine under the Korea Heavy Ion Medical Accelerator
(KHIMA) project have been conducted and is going to treat the patient at the
beginning of 2018. The KHIMA synchrotron is designed to accelerate and extract
the carbon ion (proton) beam with various energy range, 110 up to 430 MeV/u (60
up to 230 MeV). A lattice design and beam optics studies for the High Energy
Beam Transport (HEBT) line at the KHIMA accelerator system have been carried
out with WinAgile and the MAD-X codes. Because the magnetic eld errors and the
mis-alignments introduce to the deviations from the design parameters, these
error sources should be treated explicitly and the sensitivity of the machine's
lattice to di erent individual error sources is considered. Various types of
errors which are static and dynamic one have been taken into account and have
been consequentially corrected with a dedicated correction algorithm by using
the MAD-X program. As a result, the tolerances for the diverse error
contributions have been speci ed for the dedicated lattice components in the
whole HEBT lines.
