They used diagnosis codes to identify patients with inflammatory types of arthritis ??? defined in this study as RA and ankylosing spondylitis, a type of arthritis that primarily affects the spine and pelvis ??? as well as those with hypothyroidism and cardiovascular disease, or CVD, including heart attack and stroke.