Errors

Test
count(hl7:id[not(@nullFlavor)]) >= 1E - 1
Location
/ClinicalDocument/recordTarget/patientRole
Description
(MS_RecordTarget): element hl7:id[not(@nullFlavor)] is mandatory [min 1x].

Reports

Test
descendant-or-self::hl7:ClinicalDocument[hl7:templateId[@root = '1.2.250.1.213.1.1.1.4.2'] and hl7:templateId[@root = '2.16.840.1.113883.10.12.1']]R - 1
Location
/ClinicalDocument
Description
descendant-or-self::hl7:ClinicalDocument[hl7:templateId[@root = '1.2.250.1.213.1.1.1.4.2'] and hl7:templateId[@root = '2.16.840.1.113883.10.12.1']]: Instance is expected to have the following element: %%2
Test
string(@classCode) = ('DOCCLIN') or not(@classCode)R - 2
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): The value for classCode SHALL be 'DOCCLIN'. Found: ""
Test
string(@moodCode) = ('EVN') or not(@moodCode)R - 3
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): The value for moodCode SHALL be 'EVN'. Found: ""
Test
//hl7:ClinicalDocument/hl7:recordTarget/hl7:patientRole/hl7:addr or //hl7:ClinicalDocument/hl7:recordTarget/hl7:patientRole/hl7:telecomR - 4
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): L'adresse postale doit être présente ou le numéro de téléphone ou le courriel.
Test
not(//hl7:ClinicalDocument/hl7:recordTarget/hl7:patientRole/hl7cnsa:nomOrganismeAM) or //hl7:ClinicalDocument/hl7:recordTarget/hl7:patientRole/hl7cnsa:numSecuriteSocialeOuvrantDroitR - 5
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): Si nomOrganismeAM est renseigné alors numSecuriteSocialeOuvrantDroit est obligatoire.
Test
count(//hl7:ClinicalDocument/hl7:author/hl7:assignedAuthor/hl7:id)=1R - 6
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): L'identifiant de l'élément assignedAuthor est unique.
Test
count(//hl7:ClinicalDocument/hl7:custodian/hl7:assignedCustodian/hl7:representedCustodianOrganization/hl7:id)=1R - 7
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): L'identifiant de l'élément assignedCustodian est unique.
Test
//hl7:ClinicalDocument/hl7:recordTarget/hl7:patientRole/hl7:patientR - 8
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): La description du patient est obligatoire
Test
(not(//hl7:ClinicalDocument/hl7:recordTarget/hl7:patientRole/hl7:id/@root='1.2.250.1.213.1.4.8') and not(//hl7:ClinicalDocument/hl7:recordTarget/hl7:patientRole/hl7:id/@root='1.2.250.1.213.1.4.9') and not(//hl7:ClinicalDocument/hl7:recordTarget/hl7:patientRole/hl7:id/@root='1.2.250.1.213.1.4.10') and not(//hl7:ClinicalDocument/hl7:recordTarget/hl7:patientRole/hl7:id/@root='1.2.250.1.213.1.4.11')) and //hl7:ClinicalDocument/hl7:recordTarget/hl7:patientRole/hl7:id/@extension or (//hl7:ClinicalDocument/hl7:recordTarget/hl7:patientRole/hl7:patient/hl7:name/hl7:family/@qualifier and //hl7:ClinicalDocument/hl7:recordTarget/hl7:patientRole/hl7:patient/hl7:name/hl7:given and //hl7:ClinicalDocument/hl7:recordTarget/hl7:patientRole/hl7:patient/hl7:birthTime and //hl7:ClinicalDocument/hl7:recordTarget/hl7:patientRole/hl7:patient/hl7:administrativeGenderCode)R - 9
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): Erreur de conformité CI-SIS : Dans le cadre de l'INS, les traits de l'INS (Nom de naissance, premier prénom, date de naissance et sexe) sont obligatoires
Test
count(hl7:realmCode) <= 1R - 10
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): element hl7:realmCode appears too often [max 1x].
Test
count(hl7:typeId[@root = '2.16.840.1.113883.1.3'][@extension = 'POCD_HD000040']) >= 1R - 11
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): element hl7:typeId[@root = '2.16.840.1.113883.1.3'][@extension = 'POCD_HD000040'] is required [min 1x].
Test
count(hl7:typeId[@root = '2.16.840.1.113883.1.3'][@extension = 'POCD_HD000040']) <= 1R - 12
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): element hl7:typeId[@root = '2.16.840.1.113883.1.3'][@extension = 'POCD_HD000040'] appears too often [max 1x].
Test
count(hl7:templateId[@root = '1.2.250.1.213.1.1.1.4.2']) >= 1R - 13
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): element hl7:templateId[@root = '1.2.250.1.213.1.1.1.4.2'] is mandatory [min 1x].
Test
count(hl7:templateId[@root = '1.2.250.1.213.1.1.1.4.2']) <= 1R - 14
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): element hl7:templateId[@root = '1.2.250.1.213.1.1.1.4.2'] appears too often [max 1x].
Test
count(hl7:templateId[@root = '2.16.840.1.113883.10.12.1']) >= 1R - 15
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): element hl7:templateId[@root = '2.16.840.1.113883.10.12.1'] is required [min 1x].
Test
count(hl7:templateId[@root = '2.16.840.1.113883.10.12.1']) <= 1R - 16
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): element hl7:templateId[@root = '2.16.840.1.113883.10.12.1'] appears too often [max 1x].
Test
count(hl7:id) >= 1R - 17
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): element hl7:id is required [min 1x].
Test
count(hl7:id) <= 1R - 18
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): element hl7:id appears too often [max 1x].
Test
count(hl7:code[(@code = '18825-0' and @codeSystem = '2.16.840.1.113883.4.642.3.240') or @nullFlavor]) >= 1R - 19
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): element hl7:code[(@code = '18825-0' and @codeSystem = '2.16.840.1.113883.4.642.3.240') or @nullFlavor] is required [min 1x].
Test
count(hl7:code[(@code = '18825-0' and @codeSystem = '2.16.840.1.113883.4.642.3.240') or @nullFlavor]) <= 1R - 20
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): element hl7:code[(@code = '18825-0' and @codeSystem = '2.16.840.1.113883.4.642.3.240') or @nullFlavor] appears too often [max 1x].
Test
count(hl7:title) <= 1R - 21
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): element hl7:title appears too often [max 1x].
Test
count(hl7:effectiveTime) >= 1R - 22
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): element hl7:effectiveTime is required [min 1x].
Test
count(hl7:effectiveTime) <= 1R - 23
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): element hl7:effectiveTime appears too often [max 1x].
Test
count(hl7:confidentialityCode[(@code = 'N' and @codeSystem = '2.16.840.1.113883.5.25') or @nullFlavor]) >= 1R - 24
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): element hl7:confidentialityCode[(@code = 'N' and @codeSystem = '2.16.840.1.113883.5.25') or @nullFlavor] is required [min 1x].
Test
count(hl7:confidentialityCode[(@code = 'N' and @codeSystem = '2.16.840.1.113883.5.25') or @nullFlavor]) <= 1R - 25
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): element hl7:confidentialityCode[(@code = 'N' and @codeSystem = '2.16.840.1.113883.5.25') or @nullFlavor] appears too often [max 1x].
Test
count(hl7:languageCode) <= 1R - 26
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): element hl7:languageCode appears too often [max 1x].
Test
count(hl7:setId) <= 1R - 27
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): element hl7:setId appears too often [max 1x].
Test
count(hl7:versionNumber) <= 1R - 28
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): element hl7:versionNumber appears too often [max 1x].
Test
count(hl7:recordTarget) >= 1R - 29
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): element hl7:recordTarget is required [min 1x].
Test
count(hl7:recordTarget) <= 1R - 30
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): element hl7:recordTarget appears too often [max 1x].
Test
count(hl7:author[hl7:assignedAuthor]) >= 1R - 31
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): element hl7:author[hl7:assignedAuthor] is required [min 1x].
Test
count(hl7:author[hl7:assignedAuthor]) <= 1R - 32
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): element hl7:author[hl7:assignedAuthor] appears too often [max 1x].
Test
count(hl7:dataEnterer[hl7:assignedEntity]) <= 1R - 33
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): element hl7:dataEnterer[hl7:assignedEntity] appears too often [max 1x].
Test
count(hl7:custodian[hl7:assignedCustodian]) >= 1R - 34
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): element hl7:custodian[hl7:assignedCustodian] is required [min 1x].
Test
count(hl7:custodian[hl7:assignedCustodian]) <= 1R - 35
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): element hl7:custodian[hl7:assignedCustodian] appears too often [max 1x].
Test
count(hl7:legalAuthenticator[hl7:signatureCode[@code = doc('/opt/SchematronValidator_prod/bin/schematron/cda_asip/ANS-MS/_pre_compilation/include/voc-2.16.840.1.113883.1.11.10282-DYNAMIC.xml')//valueSet[1]/conceptList/*/@code or @nullFlavor]]) <= 1R - 36
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): element hl7:legalAuthenticator[hl7:signatureCode[@code = doc('/opt/SchematronValidator_prod/bin/schematron/cda_asip/ANS-MS/_pre_compilation/include/voc-2.16.840.1.113883.1.11.10282-DYNAMIC.xml')//valueSet[1]/conceptList/*/@code or @nullFlavor]] appears too often [max 1x].
Test
count(hl7:componentOf[hl7:encompassingEncounter]) <= 1R - 37
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): element hl7:componentOf[hl7:encompassingEncounter] appears too often [max 1x].
Test
count(hl7:component[hl7:structuredBody]) >= 1R - 38
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): element hl7:component[hl7:structuredBody] is required [min 1x].
Test
count(hl7:component[hl7:structuredBody]) <= 1R - 39
Location
/ClinicalDocument
Description
(MS_SDO-ClinicalDocument): 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 - 40
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 - 41
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 - 42
Location
/ClinicalDocument/realmCode
Description
dtr1-2-CS: cannot have codeSystem
Test
not(@codeSystemName) or @codeSystemName = 'TimingEvent'R - 43
Location
/ClinicalDocument/realmCode
Description
dtr1-3-CS: cannot have codeSystemName
Test
not(@codeSystemVersion)R - 44
Location
/ClinicalDocument/realmCode
Description
dtr1-4-CS: cannot have codeSystemVersion
Test
not(@displayName)R - 45
Location
/ClinicalDocument/realmCode
Description
dtr1-5-CS: cannot have displayName
Test
not(hl7:originalText)R - 46
Location
/ClinicalDocument/realmCode
Description
dtr1-6-CS: cannot have originalText
Test
not(hl7:qualifier)R - 47
Location
/ClinicalDocument/realmCode
Description
dtr1-7-CS: cannot have qualifier
Test
not(hl7:translation)R - 48
Location
/ClinicalDocument/realmCode
Description
dtr1-8-CS: cannot have translation
Test
empty(@xsi:type) or resolve-QName(@xsi:type, .) = QName('urn:hl7-org:v3', 'CS')R - 49
Location
/ClinicalDocument/realmCode
Description
(MS_SDO-ClinicalDocument): If an @xsi:type instruction is present it SHALL be valued "{urn:hl7-org:v3}:CS". Found "{}:"
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 - 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