In medicinal chemistry, is there a rule for which aromatic heterocycles are stable?
I've heard that heterocycles with 3+ adjacent nitrogens for example are unstable. However looking in ChEMBL at the molecules currently in human clinical trials, there are a fair number of 1,2,3-triazoles and tetrazoles, so clearly that rule is not absolute. For six-membered rings, 1,2,3,4-tetrazine and 1,2,3-triazine don't seem to be used, but neither is 1,2,4,5-tetrazine which doesn't have 3 adjacent nitrogens. Mixing nitrogen and oxygen, 1,2,5-oxadiazole and 1,3,4-oxadiazole are very rare but do show up a couple of times, but 1,2,3-oxadiazole isn't used.
I'm wondering if there is a general rule about which heterocycles would be stable, including ones with fused rings and a fairly large number of adjacent heteroatoms? For example (in smiles notation) how about c1nnnc2c1cccc2 or c1cccc2n1nnc2 or n1cccc2n1ncc2?
Or how about something even more unusual, like a pyridinone/pyrone with some extra nitrogens? c1(=O)[nH]nncc1



