Medical implant device for total temporomandibular joint replacement by customized joint prosthesis comprising (A) an artificial condyle component for fastening to the mandible, said artificial condyle component including a condylar head (ball) having an articular surface, area for fixation to mandible ramus and (B) an artificial mandibular fossa component for fastening to the temporal bone, said artificial mandibular fossa component having socket f foss for ball, area for fixation to skull ,said artificial mandibular fossa component being operable to engage said condylar head in an articulating manner.