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')] is mandatory [min 1x].
Test
count(hl7:code[(@code = 'DT-00003' and @codeSystem = '1.3.182.5.9')]) <= 1R - 17
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 - 18
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:effectiveTime[not(@nullFlavor)] is mandatory [min 1x].
Test
count(hl7:effectiveTime[not(@nullFlavor)]) <= 1R - 19
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 - 20
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 - 21
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 - 22
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:languageCode[@code = 'fr-LU'] is mandatory [min 1x].
Test
count(hl7:languageCode[@code = 'fr-LU']) <= 1R - 23
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:languageCode[@code = 'fr-LU'] appears too often [max 1x].
Test
count(hl7:recordTarget[not(@nullFlavor)][hl7:patientRole]) >= 1R - 24
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:recordTarget[not(@nullFlavor)][hl7:patientRole] is mandatory [min 1x].
Test
count(hl7:recordTarget[not(@nullFlavor)][hl7:patientRole]) <= 1R - 25
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 - 26
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:author[not(@nullFlavor)][hl7:assignedAuthor] is mandatory [min 1x].
Test
count(hl7:author[not(@nullFlavor)][hl7:assignedAuthor]) <= 1R - 27
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 - 28
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:custodian[not(@nullFlavor)][hl7:assignedCustodian] is mandatory [min 1x].
Test
count(hl7:custodian[not(@nullFlavor)][hl7:assignedCustodian]) <= 1R - 29
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 - 30
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:legalAuthenticator[hl7:signatureCode[@code = 'S']] is mandatory [min 1x].
Test
count(hl7:legalAuthenticator[hl7:signatureCode[@code = 'S']]) <= 1R - 31
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:legalAuthenticator[hl7:signatureCode[@code = 'S']] appears too often [max 1x].
Test
$elmcount >= 1R - 32
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 - 33
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 - 34
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 - 35
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 - 36
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:componentOf[hl7:encompassingEncounter] appears too often [max 1x].
Test
count(hl7:component[not(@nullFlavor)][hl7:structuredBody]) >= 1R - 37
Location
/ClinicalDocument
Description
(DeclarationLabo): element hl7:component[not(@nullFlavor)][hl7:structuredBody] is mandatory [min 1x].
Test
count(hl7:component[not(@nullFlavor)][hl7:structuredBody]) <= 1R - 38
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 - 39
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 - 40
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 - 41
Location
/ClinicalDocument/realmCode
Description
dtr1-2-CS: cannot have codeSystem
Test
not(@codeSystemName) or @codeSystemName = 'TimingEvent'R - 42
Location
/ClinicalDocument/realmCode
Description
dtr1-3-CS: cannot have codeSystemName
Test
not(@codeSystemVersion)R - 43
Location
/ClinicalDocument/realmCode
Description
dtr1-4-CS: cannot have codeSystemVersion
Test
not(@displayName)R - 44
Location
/ClinicalDocument/realmCode
Description
dtr1-5-CS: cannot have displayName
Test
not(hl7:originalText)R - 45
Location
/ClinicalDocument/realmCode
Description
dtr1-6-CS: cannot have originalText
Test
not(hl7:qualifier)R - 46
Location
/ClinicalDocument/realmCode
Description
dtr1-7-CS: cannot have qualifier
Test
not(hl7:translation)R - 47
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 - 48
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 - 49
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 - 50
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:
Only the first 50 reports are displayed