Software as a medical device