These are 4 cases from the medical point of view, otherwise as per Fiqh, these all constitute only 1 case in which due to some problem/disease, the sperm and ovum of the husband and wife are being combined in the laboratory using IVF. Thus, if nothing prohibited is being done, it will not be impermissible. There is limited permissibility for the nudity involved in gaining the semen and the ovum and about using masturbation as has been discussed earlier. However, it is still undesirable and refraining from it is best.