A female worker who took time off after suffering a miscarriage has been abruptly sacked by her employer.