scandihealth / lpr3-docs

https://scandihealth.github.io/lpr3-docs/
MIT License
11 stars 7 forks source link

Error in schematron validation logic: DKEpisodeOfCareAct id #68

Closed RolandPedersenSSE closed 6 years ago

RolandPedersenSSE commented 6 years ago

There is an error in the schematron validation logic in relation to /:ClinicalDocument/:component/:structuredBody/:component/:section/:entry/:act/:id for DKEpisodeOfCareAct .

The error message states that The value of @root must be the same as /setId/@root but still fails if the rule is followed. The test states that: @root != /setId/@root which is in direct contrast with the error message

The error appears both if the values are equal and when they are different

Art-decor: DK Episode Of Care Act Test output

    Text: (DKEpisodeOfCareAct): The value of @root must be the same as /setId/@root
    Test: @root != /setId/@root
    See:
    Location: /*:ClinicalDocument/*:component/*:structuredBody/*:component/*:section/*:entry/*:act/*:id

Example:

<setId assigningAuthorityName="Region Midtjylland" 
    root="c1dee9f6-ef9d-452d-a4b3-ec358f550826"/>
...
<act classCode="PCPR" moodCode="EVN">
    <templateId root="1.2.208.176.7.1.10.80"/>
    <templateId root="2.16.840.1.113883.10.12.301"/>
    <id extension="a6750254-6557-476f-b038-06b5d6d0b2e1" 
        root="c1dee9f6-ef9d-452d-a4b3-ec358f550826"/>
...
cjonigkeit-csc commented 6 years ago

This has been fixed a long time ago. See the schematron files and DK EpisodeOfCare.

RolandPedersenSSE commented 6 years ago

Okay. We have used this schematron file that you also link to from this page

This answer is also related to the following issues:

64 #65 #66 #67

jonigkeit commented 6 years ago

@RolandPedersenSSE please close this issue if you have no further comments.

RolandPedersenSSE commented 6 years ago

why is the link to the schematron files not updated on the this page ?

TueCN commented 6 years ago

RESOLUTION The link to schematron files found on https://scandihealth.github.io/lpr3-docs/links/index.html has been updated to point to the latest unstable schematron files found on https://github.com/scandihealth/lpr3-cda/raw/unstable/schematron.unstable.zip. Use at own risk.