Text this: Legal frameworks to ensure patient safety