Reports

Test
descendant-or-self::hl7:ClinicalDocument[hl7:templateId[@root = '2.16.840.1.113883.2.8.2.1'] and hl7:templateId[@root = '1.2.250.1.213.1.1.1.1'] and hl7:templateId[@root = '1.3.6.1.4.1.19376.1.3.3']]R - 1
Location
/@xml-stylesheet/xsl:stylesheet
Description
descendant-or-self::hl7:ClinicalDocument[hl7:templateId[@root = '2.16.840.1.113883.2.8.2.1'] and hl7:templateId[@root = '1.2.250.1.213.1.1.1.1'] and hl7:templateId[@root = '1.3.6.1.4.1.19376.1.3.3']]: Instance is expected to have the following element: %%2
Test
string(@classCode) = ('DOCCLIN') or not(@classCode)R - 2
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): The value for classCode SHALL be 'DOCCLIN'. Found: ""
Test
string(@moodCode) = ('EVN') or not(@moodCode)R - 3
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): The value for moodCode SHALL be 'EVN'. Found: ""
Test
count(//hl7:ClinicalDocument/hl7:documentationOf[1]/hl7:serviceEvent/hl7:performer)=1R - 4
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): Le performer est obligatoire dans l'acte principal.
Test
count(//hl7:ClinicalDocument/hl7:documentationOf/hl7:serviceEvent[not(hl7:performer)]/hl7:id)=0R - 5
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): L'id est interdit dans les actes secondaires.
Test
count(//hl7:ClinicalDocument/hl7:documentationOf/hl7:serviceEvent/hl7:performer)=1R - 6
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): Le performer est interdit dans les actes secondaires
Test
count(//hl7:ClinicalDocument/hl7:documentationOf[1]/hl7:serviceEvent/hl7:effectiveTime)=1R - 7
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): EffectiveTime est obligatoire dans l'acte principal.
Test
count(hl7:realmCode[not(@nullFlavor)]) >= 1R - 8
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): element hl7:realmCode[not(@nullFlavor)] is mandatory [min 1x].
Test
count(hl7:realmCode[not(@nullFlavor)]) <= 1R - 9
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): element hl7:realmCode[not(@nullFlavor)] appears too often [max 1x].
Test
count(hl7:typeId[@root = '2.16.840.1.113883.1.3'][@extension = 'POCD_HD000040']) >= 1R - 10
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): 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 - 11
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): 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.2.8.2.1']) >= 1R - 12
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): element hl7:templateId[@root = '2.16.840.1.113883.2.8.2.1'] is mandatory [min 1x].
Test
count(hl7:templateId[@root = '2.16.840.1.113883.2.8.2.1']) <= 1R - 13
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): element hl7:templateId[@root = '2.16.840.1.113883.2.8.2.1'] appears too often [max 1x].
Test
count(hl7:templateId[@root = '1.2.250.1.213.1.1.1.1']) >= 1R - 14
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): element hl7:templateId[@root = '1.2.250.1.213.1.1.1.1'] is mandatory [min 1x].
Test
count(hl7:templateId[@root = '1.2.250.1.213.1.1.1.1']) <= 1R - 15
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): element hl7:templateId[@root = '1.2.250.1.213.1.1.1.1'] appears too often [max 1x].
Test
count(hl7:templateId[@root = '1.3.6.1.4.1.19376.1.3.3']) >= 1R - 16
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): element hl7:templateId[@root = '1.3.6.1.4.1.19376.1.3.3'] is mandatory [min 1x].
Test
count(hl7:templateId[@root = '1.3.6.1.4.1.19376.1.3.3']) <= 1R - 17
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): element hl7:templateId[@root = '1.3.6.1.4.1.19376.1.3.3'] appears too often [max 1x].
Test
count(hl7:id) >= 1R - 18
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): element hl7:id is required [min 1x].
Test
count(hl7:id) <= 1R - 19
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): element hl7:id appears too often [max 1x].
Test
count(hl7:code[(@code = '11502-2' and @codeSystem = '2.16.840.1.113883.6.1')]) >= 1R - 20
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): element hl7:code[(@code = '11502-2' and @codeSystem = '2.16.840.1.113883.6.1')] is mandatory [min 1x].
Test
count(hl7:code[(@code = '11502-2' and @codeSystem = '2.16.840.1.113883.6.1')]) <= 1R - 21
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): element hl7:code[(@code = '11502-2' and @codeSystem = '2.16.840.1.113883.6.1')] appears too often [max 1x].
Test
count(hl7:title[not(@nullFlavor)]) >= 1R - 22
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): element hl7:title[not(@nullFlavor)] is mandatory [min 1x].
Test
count(hl7:title[not(@nullFlavor)]) <= 1R - 23
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): element hl7:title[not(@nullFlavor)] appears too often [max 1x].
Test
count(hl7:effectiveTime[not(@nullFlavor)]) >= 1R - 24
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): element hl7:effectiveTime[not(@nullFlavor)] is mandatory [min 1x].
Test
count(hl7:effectiveTime[not(@nullFlavor)]) <= 1R - 25
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): 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 - 26
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): 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 - 27
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): 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-FR']) >= 1R - 28
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): element hl7:languageCode[@code = 'fr-FR'] is required [min 1x].
Test
count(hl7:languageCode[@code = 'fr-FR']) <= 1R - 29
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): element hl7:languageCode[@code = 'fr-FR'] appears too often [max 1x].
Test
count(hl7:setId) <= 1R - 30
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): element hl7:setId appears too often [max 1x].
Test
count(hl7:versionNumber) <= 1R - 31
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): element hl7:versionNumber appears too often [max 1x].
Test
count(hl7:recordTarget) >= 1R - 32
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): element hl7:recordTarget is required [min 1x].
Test
count(hl7:author[hl7:assignedAuthor]) >= 1R - 33
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): element hl7:author[hl7:assignedAuthor] is required [min 1x].
Test
count(hl7:dataEnterer) <= 1R - 34
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): element hl7:dataEnterer appears too often [max 1x].
Test
count(hl7:custodian[not(@nullFlavor)][hl7:assignedCustodian]) >= 1R - 35
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): element hl7:custodian[not(@nullFlavor)][hl7:assignedCustodian] is mandatory [min 1x].
Test
count(hl7:custodian[not(@nullFlavor)][hl7:assignedCustodian]) <= 1R - 36
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): element hl7:custodian[not(@nullFlavor)][hl7:assignedCustodian] appears too often [max 1x].
Test
count(hl7:legalAuthenticator[hl7:signatureCode[@code = 'S']]) >= 1R - 37
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): element hl7:legalAuthenticator[hl7:signatureCode[@code = 'S']] is required [min 1x].
Test
count(hl7:legalAuthenticator[hl7:signatureCode[@code = 'S']]) <= 1R - 38
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): element hl7:legalAuthenticator[hl7:signatureCode[@code = 'S']] appears too often [max 1x].
Test
count(hl7:componentOf[not(@nullFlavor)][hl7:encompassingEncounter]) >= 1R - 39
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): element hl7:componentOf[not(@nullFlavor)][hl7:encompassingEncounter] is mandatory [min 1x].
Test
count(hl7:componentOf[not(@nullFlavor)][hl7:encompassingEncounter]) <= 1R - 40
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): element hl7:componentOf[not(@nullFlavor)][hl7:encompassingEncounter] appears too often [max 1x].
Test
count(hl7:component[hl7:structuredBody]) >= 1R - 41
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): element hl7:component[hl7:structuredBody] is required [min 1x].
Test
count(hl7:component[hl7:structuredBody]) <= 1R - 42
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument
Description
(CDAClinicalDocumentStructuredBody): element hl7:component[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|@codeSystem[. = '2.16.840.1.113883.5.139']|@codeSystemName[. = 'TimingEvent']|@integrityCheckAlgorithm[. = 'SHA-1']|@inverted[. = 'false']|@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|@codeSystemName|@codeSystemVersion|@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 - 43
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument/c: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 - 44
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument/c: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 - 45
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument/c:realmCode
Description
dtr1-2-CS: cannot have codeSystem
Test
not(@codeSystemName) or @codeSystemName = 'TimingEvent'R - 46
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument/c:realmCode
Description
dtr1-3-CS: cannot have codeSystemName
Test
not(@codeSystemVersion)R - 47
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument/c:realmCode
Description
dtr1-4-CS: cannot have codeSystemVersion
Test
not(@displayName)R - 48
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument/c:realmCode
Description
dtr1-5-CS: cannot have displayName
Test
not(hl7:originalText)R - 49
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument/c:realmCode
Description
dtr1-6-CS: cannot have originalText
Test
not(hl7:qualifier)R - 50
Location
/xsl:stylesheet/data:Contenu/c:ClinicalDocument/c:realmCode
Description
dtr1-7-CS: cannot have qualifier
Only the first 50 reports are displayed