Code to make patients