As hospitals face staffing shortages, artificial intelligence is increasingly being used to automate tasks traditionally done by nurses. However, nursing unions and some healthcare professionals are expressing concerns about the impact on patient care.