Maybe it depends on what is foreign and what isnt? I have a knee replacement and have not ever been told anything like that.
I could see if maybe it was something internal like heart and valves,stents etc.
The only problems I have encountered is getting thru security at the court house without setting off the alarms.