Hi, welcome to HCM.
Most of patients are anxious for HSG
. If you want to pain killer then there is no harm in taking it. It will reduce the pain , which is anyway very minimum in nature.
12th day is appropriate for HSG. No special precaution is necessary after procedure. No restrictions for intercourse at all. Just be relax at time of procedure.