A woman pretending to be a nurse, administering drugs to hundreds of patients including children, has been sentenced to seven years in jail.