What is the ideal management of vivax and falciparum malaria? When is the requirement for hospitalisation of patient?

Or should he/she be cured on OPD basis?