scandihealth / lpr3-docs

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

Error in schematron validation logic: DKRelatedDocument setId #67

Closed RolandPedersenSSE closed 6 years ago

RolandPedersenSSE commented 6 years ago

There is an error in the schematron validation logic in relation to /:ClinicalDocument/:relatedDocument/:parentDocument/:setId for DKRelatedDocument.

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 RelatedDocument Test output

    Text: (DKRelatedDocument): The value of @root must be the same as /setId/@root
    Test: @root != /setId/@root
    See:
    Location: /*:ClinicalDocument/*:relatedDocument/*:parentDocument/*:setId

Example:

<setId assigningAuthorityName="Region Midtjylland" 
    root="c1dee9f6-ef9d-452d-a4b3-ec358f550826"/>
...
<relatedDocument typeCode="APND">
        <parentDocument classCode="DOCCLIN" moodCode="EVN">
            <id root="c1dee9f6-ef9d-452d-a4b3-ec358f550826" extension="0fdd1ae4-939e-44d2-9f40-79b6e18ea94a"/> 
            <setId root="c1dee9f6-ef9d-452d-a4b3-ec358f550826"/>
            <versionNumber value="2"/>
        </parentDocument>
    </relatedDocument>
cjonigkeit-csc commented 6 years ago

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

jonigkeit commented 6 years ago

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