Gelatin Extracted Medicine
If chemical composition is changed, a haram thing loses its traits and transform into something different. Now, it can be consumed.