A magnetic chicane based on four electromagnetic dipoles is going to be realized by INFN-LNS to be used as an Energy Selection System (ESS) for laser driven proton beams up to 300 MeV and C6+ up to 70 MeV/u. The system will provide, as output, ion beams with a contrallable energy spread varying from 5% up to 20% according to the aperture slit size. Moreover, it has a very wide acceptance in order to ensure a very high transmission efficiency and, in principle, it has been designed to be used also as an active energy modulator. This system is the core element of the ELIMED (ELI-Beamlines MEDical and Multidisciplinary applications) beam transport, dosimetry and irradiation line that will be developed by INFN-LNS (It) and installed at the ELI-Beamlines facility in Prague (Cz). ELIMED will be the first user's open transport beam-line where a controlled laser-driven ion beam will be used for multidisciplinary research. The definition of well specified characteristics, both in terms of performance and field quality, of the magnetic chicane is crucial for the system realization, for the accurate study of the beam dynamics and for the proper matching with the Permanent Magnet Quadrupoles (PMQs) used as a collection system already designed. Here, the design of the magnetic chicane is described in details together with the adopted solutions in order to realize a robust system form the magnetic point of view. Moreover, the first preliminary transport simulations are also described showing the good performance of the whole beam line (PMQs+ESS).