With each one of our four kids, I saw them put a little bracelet on their arms that were pre-printed with the same 'code' as mine. When we left the hospital each time, the bracelets were checked to make sure we had the right baby!
Would seem a simple enough procedure wouldn't it? Too simple for some I suppose.