The functionCode of the CDA author is contrained to the value set 2.16.840.1.113818.104.22.16867 (ParticipationFunction).
Not sure which one is the normative, but both gives the code system "2.16.840.1.113883.5.88".
In the Schematron, two asserts of the same rule are interesting:
An assert checks that the value is part of the value set "2.16.722.214.171.124.127.3.10.1.1.3" (DocumentEntry.authorRole), which only uses the code system "2.16.7126.96.36.199.127.3.10.6".
- Another assert checks that the code system is "2.16.840.1.113883.6.96"
- Art-Decor says that the value set is ParticipationFunction, the Schematron uses DocumentEntry.authorRole.
- The Schematron asserts that the code system is both "2.16.840.1.113883.6.96" and "2.16.7188.8.131.52.127.3.10.6".
I've no idea where the mistake is here, if those are typos or a specification issue.
Comments: This is a mix of versions. The current Art-Decor CDA-CH version is V 2.1 (2020) and is currently in ballot.
The schematron rules for V2.1 you can find here: http://ehealthsuisse.art-decor.org/index.php?prefix=hl7chcda- They are not updated yet for issue 6 which you noticed. we can make an intermediate
development schematron (or publication) if you need to have one. For sure we will publish them then also at the end of the ballot.
The gitlab schematron rules you mention are probably based from the version before (2020).