You can use the Block Contact function to stop a number from messaging you in future.
If it is a business that is contacting you, reply with the message "STOP".
If the number is a personal cell number:
Open up the Patient Card.
Go to Edit Contact Info.
Go to the Block Contact tab.
Check the Block Contact box and click Save.