An implantable medical device for implantation in a hip joint of a human patient is provided. The medical device comprises: at least one artificial hip joint surface adapted to replace at least the surface of at least one of the caput femur and acetabulum. At least one artificial hip joint surface comprises: a positioning hole with at least one opening in said at least one artificial hip joint surface. The hole is adapted to be placed and dimensioned such that the medical device is adapted to be fitted using a positioning shaft and at least partly surround the shaft, for positioning the at least one artificial hip joint surface in a desired position in the hip joint. The hole is adapted to be fitted using the positioning shaft, when the shaft is stabilized and placed in at least one of the femoral bone and the pelvic bone for positioning said medical device inside the hip joint.