Illegal? Child pornography?

Zav • single 🔓Jamaican shorty fresh out of Florida🐊🌴
I'm pretty late with sharing this but actually a while back when I was 14 my mom had found out that I was skipping school having unprotected sex behind her back. So she had went the extra measures to take me out of public school so I won't ever see this guy again. Anyway long story short she took me to a children's advocacy center and they asked me questions and recorded my response after I told them my story about why I was there. Anyway I went into another room where there were women dressed in scrubs they gave me a blanket and laid me on one of those thing's that you lay on when you go to a doctor so they checked my vagina, swabbed it and had me take a pregnancy test. They also took all kinds of pictures of the inside of my vagina... I haven't really thought about it much since it happened till now... Was that illegal? Or was that something that always has to get done. You guys tell me what you think.