How does that Biofilter gadget work?
The Biofilter is a good clue as to how the transport patterns work. The filter looks for elements of the pattern which aren’t found in normal beings/equipment, or those of known viruses and bacteria. It can simply erase those parts of the pattern, and those parts of the matter stream won’t beam back in. In “Unnatural Selection” [TNG], Pulaski is restored from an aged state by the use of the Biofilter. If Pulaski’s altered DNA could be tagged as unwanted, the pattern could be tweaked to restore the DNA (its pretty much all the same molecules anyway, just shuffle some base-pairs around). As for her recovering instantly… well, it’s a TV show. ….