Errors

Test
count(hl7:code[(@code = 'DT-00003' and @codeSystem = '1.3.182.5.9')]) >= 1E - 1
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:code[(@code = 'DT-00003' and @codeSystem = '1.3.182.5.9')] is mandatory [min 1x].
Test
count(hl7:languageCode[@code = 'fr-LU']) >= 1E - 2
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:languageCode[@code = 'fr-LU'] is mandatory [min 1x].
Test
@nullFlavor | * | text()[string-length(normalize-space()) gt 0]E - 3
Location
/ClinicalDocument/custodian/assignedCustodian/representedCustodianOrganization/addr/postalCode
Description
dtr1-1-BIN: there must be a nullFlavor, or content must be non-empty
Test
@nullFlavor | * | text()[string-length(normalize-space()) gt 0]E - 4
Location
/ClinicalDocument/custodian/assignedCustodian/representedCustodianOrganization/addr/city
Description
dtr1-1-BIN: there must be a nullFlavor, or content must be non-empty
Test
@nullFlavor | * | text()[string-length(normalize-space()) gt 0]E - 5
Location
/ClinicalDocument/custodian/assignedCustodian/representedCustodianOrganization/addr/country
Description
dtr1-1-BIN: there must be a nullFlavor, or content must be non-empty
Test
count(distinct-values(doc('/opt/SchematronValidator_prod/bin/schematron/made/_pre_compilation/include/voc-1.3.182.10.33.1-DYNAMIC.xml')/*/valueSet/conceptList/concept[@code = $country]))=1E - 6
Location
/ClinicalDocument/custodian/assignedCustodian/representedCustodianOrganization/addr/country
Description
(DeclarationLabo): The country code shall come from the value set eSanté_CountryCodes
Test
@nullFlavor | * | text()[string-length(normalize-space()) gt 0]E - 7
Location
/ClinicalDocument/legalAuthenticator/assignedEntity/addr/postalCode
Description
dtr1-1-BIN: there must be a nullFlavor, or content must be non-empty
Test
@nullFlavor | * | text()[string-length(normalize-space()) gt 0]E - 8
Location
/ClinicalDocument/legalAuthenticator/assignedEntity/addr/city
Description
dtr1-1-BIN: there must be a nullFlavor, or content must be non-empty
Test
@nullFlavor | * | text()[string-length(normalize-space()) gt 0]E - 9
Location
/ClinicalDocument/legalAuthenticator/assignedEntity/addr/country
Description
dtr1-1-BIN: there must be a nullFlavor, or content must be non-empty
Test
count(distinct-values(doc('/opt/SchematronValidator_prod/bin/schematron/made/_pre_compilation/include/voc-1.3.182.10.33.1-DYNAMIC.xml')/*/valueSet/conceptList/concept[@code = $country]))=1E - 10
Location
/ClinicalDocument/legalAuthenticator/assignedEntity/addr/country
Description
(DeclarationLabo): The country code shall come from the value set eSanté_CountryCodes
Test
count(hl7:code[concat(@code, @codeSystem) = doc('/opt/SchematronValidator_prod/bin/schematron/made/_pre_compilation/include/voc-1.3.182.10.40.1-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem)]) >= 1E - 11
Location
/ClinicalDocument/component/structuredBody/component/section
Description
(MaladieDeclarable): element hl7:code[concat(@code, @codeSystem) = doc('/opt/SchematronValidator_prod/bin/schematron/made/_pre_compilation/include/voc-1.3.182.10.40.1-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem)] is mandatory [min 1x].
Test
@nullFlavor | * | text()[string-length(normalize-space()) gt 0]E - 12
Location
/ClinicalDocument/component/structuredBody/component/section/entry/organizer/component/observation/value
Description
dtr1-1-BIN: there must be a nullFlavor, or content must be non-empty
Test
not(.)E - 13
Location
/ClinicalDocument/code
Description
(DeclarationLabo)/d131e531-true-d2980e0: 'ClinicalDocument' is defined as closed, and this element 'code' is not allowed, or not allowed with this content. This may concern the templateId, code or id. Expected in this context: hl7:realmCode[@code = 'LU'] | hl7:typeId[@root = '2.16.840.1.113883.1.3'][@extension = 'POCD_HD000040'] | hl7:templateId[@root = '2.16.840.1.113883.10.20.30'] | hl7:templateId[@root = '1.3.182.11.12'] | hl7:id[not(@nullFlavor)][not(@extension)] | hl7:code[(@code = 'DT-00003' and @codeSystem = '1.3.182.5.9')] | hl7:effectiveTime[not(@nullFlavor)] | hl7:confidentialityCode[(@code = 'N' and @codeSystem = '2.16.840.1.113883.5.25')] | hl7:languageCode[@code = 'fr-LU'] | hl7:recordTarget[not(@nullFlavor)][hl7:patientRole] | hl7:author[not(@nullFlavor)][hl7:assignedAuthor] | hl7:custodian[not(@nullFlavor)][hl7:assignedCustodian] | hl7:legalAuthenticator[hl7:signatureCode[@code = 'S']] | hl7:participant[hl7:templateId[@root = '1.3.182.11.12.1.1']] | hl7:participant[hl7:templateId[@root = '1.3.6.1.4.1.19376.1.3.3.1.6']] | hl7:componentOf[hl7:encompassingEncounter] | hl7:component[not(@nullFlavor)][hl7:structuredBody] (rule-reference: d131e531-true-d2980e0)
Test
not(.)E - 14
Location
/ClinicalDocument/languageCode
Description
(DeclarationLabo)/d131e531-true-d2980e0: 'ClinicalDocument' is defined as closed, and this element 'languageCode' is not allowed, or not allowed with this content. This may concern the templateId, code or id. Expected in this context: hl7:realmCode[@code = 'LU'] | hl7:typeId[@root = '2.16.840.1.113883.1.3'][@extension = 'POCD_HD000040'] | hl7:templateId[@root = '2.16.840.1.113883.10.20.30'] | hl7:templateId[@root = '1.3.182.11.12'] | hl7:id[not(@nullFlavor)][not(@extension)] | hl7:code[(@code = 'DT-00003' and @codeSystem = '1.3.182.5.9')] | hl7:effectiveTime[not(@nullFlavor)] | hl7:confidentialityCode[(@code = 'N' and @codeSystem = '2.16.840.1.113883.5.25')] | hl7:languageCode[@code = 'fr-LU'] | hl7:recordTarget[not(@nullFlavor)][hl7:patientRole] | hl7:author[not(@nullFlavor)][hl7:assignedAuthor] | hl7:custodian[not(@nullFlavor)][hl7:assignedCustodian] | hl7:legalAuthenticator[hl7:signatureCode[@code = 'S']] | hl7:participant[hl7:templateId[@root = '1.3.182.11.12.1.1']] | hl7:participant[hl7:templateId[@root = '1.3.6.1.4.1.19376.1.3.3.1.6']] | hl7:componentOf[hl7:encompassingEncounter] | hl7:component[not(@nullFlavor)][hl7:structuredBody] (rule-reference: d131e531-true-d2980e0)
Test
not(.)E - 15
Location
/ClinicalDocument/component/structuredBody/component/section/code
Description
(MaladieDeclarable)/d4113e13-true-d4154e0: 'section' is defined as closed, and this element 'code' is not allowed, or not allowed with this content. This may concern the templateId, code or id. Expected in this context: hl7:templateId[@root = '1.3.182.11.12.2'] | hl7:code[concat(@code, @codeSystem) = doc('/opt/SchematronValidator_prod/bin/schematron/made/_pre_compilation/include/voc-1.3.182.10.40.1-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem)] | hl7:entry[hl7:organizer[hl7:templateId[@root = '1.3.182.11.12.3']]] (rule-reference: d4113e13-true-d4154e0)

Reports

Test
descendant-or-self::hl7:ClinicalDocument[hl7:templateId[@root = '2.16.840.1.113883.10.20.30'] and hl7:templateId[@root = '1.3.182.11.12']]R - 1
Location
/ClinicalDocument
Description
descendant-or-self::hl7:ClinicalDocument[hl7:templateId[@root = '2.16.840.1.113883.10.20.30'] and hl7:templateId[@root = '1.3.182.11.12']]: Instance is expected to have the following element: %%2
Test
count(hl7:ClinicalDocument[hl7:templateId[@root = '2.16.840.1.113883.10.20.30'] and hl7:templateId[@root = '1.3.182.11.12']]) >= 1R - 2
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:ClinicalDocument[hl7:templateId[@root = '2.16.840.1.113883.10.20.30'] and hl7:templateId[@root = '1.3.182.11.12']] is mandatory [min 1x].
Test
count(hl7:ClinicalDocument[hl7:templateId[@root = '2.16.840.1.113883.10.20.30'] and hl7:templateId[@root = '1.3.182.11.12']]) <= 1R - 3
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:ClinicalDocument[hl7:templateId[@root = '2.16.840.1.113883.10.20.30'] and hl7:templateId[@root = '1.3.182.11.12']] appears too often [max 1x].
Test
string(@classCode) = ('DOCCLIN') or not(@classCode)R - 4
Location
/ClinicalDocument
Description
(DeclarationLabo): The value for classCode SHALL be 'DOCCLIN'. Found: "DOCCLIN"
Test
string(@moodCode) = ('EVN') or not(@moodCode)R - 5
Location
/ClinicalDocument
Description
(DeclarationLabo): The value for moodCode SHALL be 'EVN'. Found: "EVN"
Test
count(hl7:realmCode[@code = 'LU']) >= 1R - 6
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:realmCode[@code = 'LU'] is mandatory [min 1x].
Test
count(hl7:realmCode[@code = 'LU']) <= 1R - 7
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:realmCode[@code = 'LU'] appears too often [max 1x].
Test
count(hl7:typeId[@root = '2.16.840.1.113883.1.3'][@extension = 'POCD_HD000040']) >= 1R - 8
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:typeId[@root = '2.16.840.1.113883.1.3'][@extension = 'POCD_HD000040'] is mandatory [min 1x].
Test
count(hl7:typeId[@root = '2.16.840.1.113883.1.3'][@extension = 'POCD_HD000040']) <= 1R - 9
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:typeId[@root = '2.16.840.1.113883.1.3'][@extension = 'POCD_HD000040'] appears too often [max 1x].
Test
count(hl7:templateId[@root = '2.16.840.1.113883.10.20.30']) >= 1R - 10
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:templateId[@root = '2.16.840.1.113883.10.20.30'] is mandatory [min 1x].
Test
count(hl7:templateId[@root = '2.16.840.1.113883.10.20.30']) <= 1R - 11
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:templateId[@root = '2.16.840.1.113883.10.20.30'] appears too often [max 1x].
Test
count(hl7:templateId[@root = '1.3.182.11.12']) >= 1R - 12
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:templateId[@root = '1.3.182.11.12'] is mandatory [min 1x].
Test
count(hl7:templateId[@root = '1.3.182.11.12']) <= 1R - 13
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:templateId[@root = '1.3.182.11.12'] appears too often [max 1x].
Test
count(hl7:id[not(@nullFlavor)][not(@extension)]) >= 1R - 14
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:id[not(@nullFlavor)][not(@extension)] is mandatory [min 1x].
Test
count(hl7:id[not(@nullFlavor)][not(@extension)]) <= 1R - 15
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:id[not(@nullFlavor)][not(@extension)] appears too often [max 1x].
Test
count(hl7:code[(@code = 'DT-00003' and @codeSystem = '1.3.182.5.9')]) <= 1R - 16
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:code[(@code = 'DT-00003' and @codeSystem = '1.3.182.5.9')] appears too often [max 1x].
Test
count(hl7:effectiveTime[not(@nullFlavor)]) >= 1R - 17
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:effectiveTime[not(@nullFlavor)] is mandatory [min 1x].
Test
count(hl7:effectiveTime[not(@nullFlavor)]) <= 1R - 18
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:effectiveTime[not(@nullFlavor)] appears too often [max 1x].
Test
count(hl7:confidentialityCode[(@code = 'N' and @codeSystem = '2.16.840.1.113883.5.25')]) >= 1R - 19
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:confidentialityCode[(@code = 'N' and @codeSystem = '2.16.840.1.113883.5.25')] is mandatory [min 1x].
Test
count(hl7:confidentialityCode[(@code = 'N' and @codeSystem = '2.16.840.1.113883.5.25')]) <= 1R - 20
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:confidentialityCode[(@code = 'N' and @codeSystem = '2.16.840.1.113883.5.25')] appears too often [max 1x].
Test
count(hl7:languageCode[@code = 'fr-LU']) <= 1R - 21
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:languageCode[@code = 'fr-LU'] appears too often [max 1x].
Test
count(hl7:recordTarget[not(@nullFlavor)][hl7:patientRole]) >= 1R - 22
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:recordTarget[not(@nullFlavor)][hl7:patientRole] is mandatory [min 1x].
Test
count(hl7:recordTarget[not(@nullFlavor)][hl7:patientRole]) <= 1R - 23
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:recordTarget[not(@nullFlavor)][hl7:patientRole] appears too often [max 1x].
Test
count(hl7:author[not(@nullFlavor)][hl7:assignedAuthor]) >= 1R - 24
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:author[not(@nullFlavor)][hl7:assignedAuthor] is mandatory [min 1x].
Test
count(hl7:author[not(@nullFlavor)][hl7:assignedAuthor]) <= 1R - 25
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:author[not(@nullFlavor)][hl7:assignedAuthor] appears too often [max 1x].
Test
count(hl7:custodian[not(@nullFlavor)][hl7:assignedCustodian]) >= 1R - 26
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:custodian[not(@nullFlavor)][hl7:assignedCustodian] is mandatory [min 1x].
Test
count(hl7:custodian[not(@nullFlavor)][hl7:assignedCustodian]) <= 1R - 27
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:custodian[not(@nullFlavor)][hl7:assignedCustodian] appears too often [max 1x].
Test
count(hl7:legalAuthenticator[hl7:signatureCode[@code = 'S']]) >= 1R - 28
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:legalAuthenticator[hl7:signatureCode[@code = 'S']] is mandatory [min 1x].
Test
count(hl7:legalAuthenticator[hl7:signatureCode[@code = 'S']]) <= 1R - 29
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:legalAuthenticator[hl7:signatureCode[@code = 'S']] appears too often [max 1x].
Test
$elmcount >= 1R - 30
Location
/ClinicalDocument
Description
(DeclarationLabo): choice (hl7:participant[hl7:templateId[@root = '1.3.182.11.12.1.1']] or hl7:participant[hl7:templateId[@root = '1.3.6.1.4.1.19376.1.3.3.1.6']]) does not contain enough elements [min 1x]
Test
$elmcount <= 1R - 31
Location
/ClinicalDocument
Description
(DeclarationLabo): choice (hl7:participant[hl7:templateId[@root = '1.3.182.11.12.1.1']] or hl7:participant[hl7:templateId[@root = '1.3.6.1.4.1.19376.1.3.3.1.6']]) contains too many elements [max 1x]
Test
count(hl7:participant[hl7:templateId[@root = '1.3.182.11.12.1.1']]) <= 1R - 32
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:participant[hl7:templateId[@root = '1.3.182.11.12.1.1']] appears too often [max 1x].
Test
count(hl7:participant[hl7:templateId[@root = '1.3.6.1.4.1.19376.1.3.3.1.6']]) <= 1R - 33
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:participant[hl7:templateId[@root = '1.3.6.1.4.1.19376.1.3.3.1.6']] appears too often [max 1x].
Test
count(hl7:componentOf[hl7:encompassingEncounter]) <= 1R - 34
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:componentOf[hl7:encompassingEncounter] appears too often [max 1x].
Test
count(hl7:component[not(@nullFlavor)][hl7:structuredBody]) >= 1R - 35
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:component[not(@nullFlavor)][hl7:structuredBody] is mandatory [min 1x].
Test
count(hl7:component[not(@nullFlavor)][hl7:structuredBody]) <= 1R - 36
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:component[not(@nullFlavor)][hl7:structuredBody] appears too often [max 1x].
Test
every $elm in descendant-or-self::* satisfies $elm[ not(@nullFlavor) or (@nullFlavor and not(@* except (@xsi:type|@xsi:nil|@classCode|@typeCode|@determinerCode|@moodCode|@nullFlavor|@partType|@integrityCheckAlgorithm[. = 'SHA-1']|@mediaType[. = 'text/plain']|@operator[. = 'I']|@representation[. = 'TXT']|@inclusive[. = 'true']|@unit[. = '1']) | * | text()[string-length(normalize-space()) gt 0])) or (@nullFlavor = ('OTH', 'NA', 'UNC') and not(@* except (@xsi:type|@xsi:nil|@*:valueSet|@*:valueSetVersion|@codeSystem|@extension|@nullFlavor|@partType|@integrityCheckAlgorithm[. = 'SHA-1']|@mediaType[. = 'text/plain']|@operator[. = 'I']|@representation[. = 'TXT']|@inclusive[. = 'true']|@unit[. = '1'])) and (@extension | @codeSystem | *[local-name()='originalText'] | *[local-name()='translation'])) ]R - 37
Location
/ClinicalDocument/realmCode
Description
dtr1-1-ANY: if there is a nullFlavor, there shall be no text or other attribute or element, unless it's nullFlavor='OTH' or 'NA' (@codeSystem, or may have a value), or nullFlavor 'UNC' (@extension or may have a value). Found:
Test
(@nullFlavor and not(@code or @typeCode)) or (not(@nullFlavor) and (@code or @typeCode))R - 38
Location
/ClinicalDocument/realmCode
Description
dtr1-1-CS: @code/@typeCode and @nullFlavor are mutually exclusive
Test
not(@codeSystem) or @codeSystem = '2.16.840.1.113883.5.139'R - 39
Location
/ClinicalDocument/realmCode
Description
dtr1-2-CS: cannot have codeSystem
Test
not(@codeSystemName) or @codeSystemName = 'TimingEvent'R - 40
Location
/ClinicalDocument/realmCode
Description
dtr1-3-CS: cannot have codeSystemName
Test
not(@codeSystemVersion)R - 41
Location
/ClinicalDocument/realmCode
Description
dtr1-4-CS: cannot have codeSystemVersion
Test
not(@displayName)R - 42
Location
/ClinicalDocument/realmCode
Description
dtr1-5-CS: cannot have displayName
Test
not(hl7:originalText)R - 43
Location
/ClinicalDocument/realmCode
Description
dtr1-6-CS: cannot have originalText
Test
not(hl7:qualifier)R - 44
Location
/ClinicalDocument/realmCode
Description
dtr1-7-CS: cannot have qualifier
Test
not(hl7:translation)R - 45
Location
/ClinicalDocument/realmCode
Description
dtr1-8-CS: cannot have translation
Test
(local-name-from-QName(resolve-QName(@xsi:type,.))='CS' and namespace-uri-from-QName(resolve-QName(@xsi:type,.))='urn:hl7-org:v3') or not(@xsi:type)R - 46
Location
/ClinicalDocument/realmCode
Description
(DeclarationLabo): If an @xsi:type instruction is present it SHALL be valued "{urn:hl7-org:v3}:CS". Found "{}:"
Test
string(@code) = ('LU')R - 47
Location
/ClinicalDocument/realmCode
Description
(DeclarationLabo): The value for code SHALL be 'LU'. Found: "LU"
Test
every $elm in descendant-or-self::* satisfies $elm[ not(@nullFlavor) or (@nullFlavor and not(@* except (@xsi:type|@xsi:nil|@classCode|@typeCode|@determinerCode|@moodCode|@nullFlavor|@partType|@integrityCheckAlgorithm[. = 'SHA-1']|@mediaType[. = 'text/plain']|@operator[. = 'I']|@representation[. = 'TXT']|@inclusive[. = 'true']|@unit[. = '1']) | * | text()[string-length(normalize-space()) gt 0])) or (@nullFlavor = ('OTH', 'NA', 'UNC') and not(@* except (@xsi:type|@xsi:nil|@*:valueSet|@*:valueSetVersion|@codeSystem|@extension|@nullFlavor|@partType|@integrityCheckAlgorithm[. = 'SHA-1']|@mediaType[. = 'text/plain']|@operator[. = 'I']|@representation[. = 'TXT']|@inclusive[. = 'true']|@unit[. = '1'])) and (@extension | @codeSystem | *[local-name()='originalText'] | *[local-name()='translation'])) ]R - 48
Location
/ClinicalDocument/typeId
Description
dtr1-1-ANY: if there is a nullFlavor, there shall be no text or other attribute or element, unless it's nullFlavor='OTH' or 'NA' (@codeSystem, or may have a value), or nullFlavor 'UNC' (@extension or may have a value). Found:
Test
@nullFlavor or (not(@nullFlavor) and @root)R - 49
Location
/ClinicalDocument/typeId
Description
dtr1-1-II: @root is required if @nullFlavor is not present
Test
not(@nullFlavor) or (@nullFlavor and not(@root))R - 50
Location
/ClinicalDocument/typeId
Description
dtr1-2-II: @root may not be used if @nullFlavor is present
Only the first 50 reports are displayed