Can you be more specific? An excerpt from a specific Service Manual would be appreciated. There also must be an appropriate explanation, more than the cryptic " bad oil" designation, so a refetenced excerpt on that subject would be instructive to see.
P1521 is a code for wrong viscosity oil. Not "bad oil" but wrong oil. The PCM uses several sensors to determine if the correct viscosity oil was used. Oil psi, temp, RPM are all factors(probably others). Any of those sensors give fits and it will set the P1521 code along with whichever sensor is actually causing the problem, in this case the oil pressure sensor. The MDS system is pretty sensitive to viscosity which is why this parameter is monitored.
Now, that being said, oil viscosity can change with time. The dealer started diagnosing with the right steps, change the oil first wait for code(s) to come back. They had to charge for that work in the event that the OP's mechanic inadvertently caused the problem. It can happen, I don't care how "good" a mechanic is, they're human too. OP was going to get reimbursed if OP took it back because OP's mechanic wasn't at fault since the code came back and replacing the sensor fixed the problem. By taking it to another dealer mid-diagnostic Dewildt now thinks OP is hiding something from them. Of course they cannot reimburse for the oil change now since the service was actually performed but they didn't get to close the file on the warranty claim so they won't get reimbursed from FCA.
This is 100% a miscommunication misunderstanding between someone that isn't mechanically savvy(OP) and someone that's just savvy enough to be dangerous(service manager).
Congratulations OP, you've reached the 3rd grade level. You can plug in a doohicky and read what it says
Work on understanding what those codes actually mean and how a diagnostic plan works. A "dealer diagnostic scan" is only part of the diagnostics. In this case changing the oil was a test. Live and learn.