Changed the script to put a particular GUID in the database for the Allergy Defined Type. Added a CONST to DefinedType using that GUID. Changed ActivitySelect to take advantage of that CONST GUID instead of using the name (which can be easily changed) to get the Defined Type. Changed Confirm to unselect the person if there are no more Groups selected on the person when the Delete button is clicked.