This is something that should be easy enough with existing systems on a starship. If someone loses as limb, lung, or kidney, the remaining opposite body part can be duplicated in reverse and attached, for example, by scanning a patient's left leg and replicating it as a mirror-image copy to replace a lost right leg, instead of using an artificial one. If the transporter could make a second Riker, why not?