How to Add CRediT Taxonomy on article's XML

I am interesting to use CRediT texonomy on my journal and require authors to describe their contribution on journal’s template. While learning more about CRediT, I found this link CRediT taxonomy - JATS4R that requiring to add the detail in article XML?

If this possible to apply in OJS 3.1.2-4?, if can be, how it works or what the coding flow?
Thank you