As reported to the FAA. Reports are unverified, and codes are left as the FAA publishes them.
What was found
BOS - FLT NR 1218 - AFTER TAKEOFF SJU WHEN LANDING GEAR RETRACTED AND AGAIN DURING APPROACH BOS WHEN LANDING GEAR EXTENDED, RT MAIN LANDING GEAR DOOR AMBER LIGHT DID NOT ILLUMINATE WHEN GEAR INTRANSIT. NO OTHER ABNORMAL INDICATIONS AND AIRCRAFT LANDED BOS WITHOUT INCIDENT. REPLACED RT MAIN LANDING GEAR DOOR SWITCH. SYSTEM GROUND CHECKED NORMAL OPERATION. (W)