Thanks for the query to H.C.M. Forum.
Two complaints are there, pain under the left side rib , worse due to standing and walking i.e. mild exertion increases pain .
2nd complaint is blood & mucus from vagina .
Both complaints are not related to each other , however tension may be the reason of blood with mucus.
In my opinion please consult a physician and get his opinion as physical examination is very important.
Pain may be due to consolidation in lung ( lower lobe), Pleura