A Laue lens is an ensemble of crystals capable of focusing, through diffraction in transmission geometry, a fraction of the photons emitted by an X- or gamma-ray source onto a small area of a detector. The present study allows obtaining a thorough understanding about the effect of each system parameter on the efficiency, the resolution, and the field of view of the lens. In this way, the structure and the size of the crystals can be set to achieve a compact lens capable of providing a high-resolution image of the radioactivity distribution lying inside a restricted region of the patient's body. As an application, a Laue lens optimized at 140.5 keV, the gamma-line emitted by 99mTc, has been designed. The lens is composed by 10 rings of Ge cr...