I was looking for something similar a while back. This one looked promising, could you try it and see how it goes?
Pain Diary (PFA) ((SECUSO) Record condition, intensity, location, nature and time of your pain.)
https://f-droid.org/packages/org.secuso.privacyfriendlypaindiary/
Medication and exercise might need to be separate from this