Thank you for your query.
If the pain increases while deep breathing it may be a case of pleuritis
tablets thrice daily for 5 days.
If the pain happens while at rest and there is pain near the heart and the shoulder area then you need to consult a cardiologist
If you have any further queries you are free to consult me.Hope this answers your query.
Wishing you a speedy recovery.Have a nice day.