Capsule-type medical device and medical system