Retiree receiving Social security & pension worked for 2 months in 2017 as a contract employee/received 1099. How do medical expense write offs work for this situation?

Step mom has social security, pension and IRA income but worked for a couple months making 3K as a contract employee. She received 1099 from gov't, (test coordinator at public schools). She has medical deducted from her state of mich pension and she also has out of pocket expenses during the entire year. Trying to figure out how medical write off would apply for this situation? THANK YOU!!!!!!!!!!