CDA-CH-EMED eMedication - Issues
Select object
Results (1 / 1)
Id Issue Status Priority Type Date Assigned To Label
8Code system of the author functionCodeClosedNormalChange Request2020-03-02 10:02:47
Change RequestCode system of the author functionCode
Last Tracking2020-03-02 10:02:47  by  Oliver Egger
Author (cdachresp-template-other-23)
TrackingClosed2020-03-02 10:02:47: Tracking by Oliver Egger
The schematron you are referring is from the old author dfefinition   https://github.com/hl7ch/hl7ch-cda/blob/master/schematrons/HL7.ch/CDA-CH/v2.1/include/2.16.756.
the included version is 2.16.756. Why the old one is still produced during schematron generation I don't know, however the rules are not included
afterwards in the document templates. I added you to the cda-ch art-decor project, so you should be able to add issues.
TrackingOpen2020-02-27 10:15:46: Tracking by Quentin Ligier
Edited byQuentin Ligier (2020-02-27 10:29:48)Quentin Ligier (2020-02-27 10:36:08)
It's an issue in CDA-CH, I can't open an issue in the project but I can see this issue referenced in the template there, so I let it open here.

Template: https://art-decor.org/art-decor/decor-templates--hl7chcda-?section=templates&id=2.16.756.
Schematron asserts: https://github.com/hl7ch/hl7ch-cda/blob/master/schematrons/HL7.ch/CDA-CH/v2.1/include/2.16.756.
Value set: https://github.com/hl7ch/hl7ch-cda/blob/master/schematrons/HL7.ch/CDA-CH/v2.1/include/voc-2.16.756.

Edit: Github has been updated with the v2.1 and I've found the same Schematron asserts and value set, so this issue is still present.
Notifications were disabled for my account, I've missed your edit.
TrackingOpen2020-02-25 14:35:12: Tracking by Quentin Ligier
Edited byQuentin Ligier (2020-02-26 09:51:02)Oliver Egger (2020-02-26 10:21:55)

The functionCode of the CDA author is contrained to the value set 2.16.840.1.113883.1.11.10267 (ParticipationFunction).
CDA-CH: https://art-decor.org/art-decor/decor-valuesets--hl7chcda-?id=2.16.840.1.113883.1.11.10267
CDA-CH-EMED: https://art-decor.org/art-decor/decor-valuesets--cdachemed-?id=2.16.840.1.113883.1.11.10267
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.756." (DocumentEntry.authorRole), which only uses the code system "2.16.756.".
  • 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.756.".

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).

Further explanation:


PreviewCodeHTML colorDisplay NameDescription