Errors

Test
count(//hl7:ClinicalDocument/hl7:participant[@typeCode='INF']/hl7:functionCode[@code='PCP'])=1 and count(//hl7:ClinicalDocument/hl7:participant[@typeCode='INF']/hl7:functionCode[@displayName='Médecin traitant'])=1 and count(//hl7:ClinicalDocument/hl7:participant[@typeCode='INF']/hl7:functionCode[@codeSystem='2.16.840.1.113883.5.88'])=1E - 1
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): [VSM] Un participant pour le médecin traitant est obligatoire avec typeCode='INF' et functionCode@code='PCP', functionCode@displayName='Médecin traitant' et functionCode@codeSystem='2.16.840.1.113883.5.88'.
Test
string(@value) = ('1')E - 2
Location
/ds:Signature/ds:Object[2]/ClinicalDocument/versionNumber
Description
(VSM-2013): The value for value SHALL be '1'. Found: "3"

Warnings

Test
not(.)W - 1
Location
/ds:Signature/ds:Object[2]/ClinicalDocument/componentOf/encompassingEncounter/code
Description
(CI-SISComponentOf)/d561296e14-true-d561512e0: this element 'code' is not defined, or not defined with this content. This may concern the templateId, code or id. Expected in this context: hl7:id | hl7:code[concat(@code, @codeSystem) = doc('schematron/COMMON/VALUESETS/voc-1.2.250.1.213.1.1.4.2.291-DYNAMIC.xml')//valueSet[1]/conceptList/concept/concat(@code, @codeSystem)] | hl7:effectiveTime | hl7:dischargeDispositionCode | hl7:responsibleParty[hl7:assignedEntity] | hl7:encounterParticipant[@typeCode][hl7:assignedEntity] | hl7:location[hl7:healthCareFacility[hl7:code[not(@nullFlavor)]]] (rule-reference: d561296e14-true-d561512e0)

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.2.250.1.213.1.1.1.13']]R - 1
Location
/ds:Signature
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.2.250.1.213.1.1.1.13']]: Instance is expected to have the following element: %%2
Test
string(@classCode) = ('DOCCLIN') or not(@classCode)R - 2
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): The value for classCode SHALL be 'DOCCLIN'. Found: ""
Test
string(@moodCode) = ('EVN') or not(@moodCode)R - 3
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): The value for moodCode SHALL be 'EVN'. Found: ""
Test
count(*:participant[@typeCode='INF']/*:functionCode[@code='PCP']) =1 and count(*:participant[@typeCode='INF']/*:functionCode[@codeSystem='2.16.840.1.113883.5.88']) =1R - 4
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): Un participant pour le médecin traitant est obligatoire avec typeCode='INF' et functionCode@code='PCP' et functionCode@codeSystem='2.16.840.1.113883.5.88'.
Test
(*:documentationOf/*:serviceEvent/*:code[@code='34117-2']) and (*:documentationOf/*:serviceEvent/*:code[@codeSystem='2.16.840.1.113883.6.1']) and (*:documentationOf/*:serviceEvent/*:code[@codeSystemName='LOINC'])R - 5
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): L'acte documenté doit être documentationOf/serviceEvent/code@code='34117-2', @codeSystem='2.16.840.1.113883.6.1' et @codeSystemName='LOINC'.
Test
count(hl7:realmCode[@code = 'FR']) >= 1R - 6
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:realmCode[@code = 'FR'] is mandatory [min 1x].
Test
count(hl7:realmCode[@code = 'FR']) <= 1R - 7
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:realmCode[@code = 'FR'] appears too often [max 1x].
Test
count(hl7:typeId[@root = '2.16.840.1.113883.1.3'][@extension = 'POCD_HD000040']) >= 1R - 8
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): 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
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): 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 - 10
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): 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 - 11
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): 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 - 12
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): 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 - 13
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:templateId[@root = '1.2.250.1.213.1.1.1.1'] appears too often [max 1x].
Test
count(hl7:templateId[@root = '1.2.250.1.213.1.1.1.13']) >= 1R - 14
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:templateId[@root = '1.2.250.1.213.1.1.1.13'] is mandatory [min 1x].
Test
count(hl7:templateId[@root = '1.2.250.1.213.1.1.1.13']) <= 1R - 15
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:templateId[@root = '1.2.250.1.213.1.1.1.13'] appears too often [max 1x].
Test
count(hl7:id[not(@nullFlavor)]) >= 1R - 16
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:id[not(@nullFlavor)] is mandatory [min 1x].
Test
count(hl7:id[not(@nullFlavor)]) <= 1R - 17
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:id[not(@nullFlavor)] appears too often [max 1x].
Test
count(hl7:code[(@code = 'SYNTH' and @codeSystem = '1.2.250.1.213.1.1.4.12')]) >= 1R - 18
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:code[(@code = 'SYNTH' and @codeSystem = '1.2.250.1.213.1.1.4.12')] is mandatory [min 1x].
Test
count(hl7:code[(@code = 'SYNTH' and @codeSystem = '1.2.250.1.213.1.1.4.12')]) <= 1R - 19
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:code[(@code = 'SYNTH' and @codeSystem = '1.2.250.1.213.1.1.4.12')] appears too often [max 1x].
Test
count(hl7:title[not(@nullFlavor)]) >= 1R - 20
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:title[not(@nullFlavor)] is mandatory [min 1x].
Test
count(hl7:title[not(@nullFlavor)]) <= 1R - 21
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:title[not(@nullFlavor)] appears too often [max 1x].
Test
count(hl7:effectiveTime[not(@nullFlavor)]) >= 1R - 22
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:effectiveTime[not(@nullFlavor)] is mandatory [min 1x].
Test
count(hl7:effectiveTime[not(@nullFlavor)]) <= 1R - 23
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:effectiveTime[not(@nullFlavor)] appears too often [max 1x].
Test
count(hl7:confidentialityCode[not(@nullFlavor)]) >= 1R - 24
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:confidentialityCode[not(@nullFlavor)] is mandatory [min 1x].
Test
count(hl7:confidentialityCode[not(@nullFlavor)]) <= 1R - 25
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:confidentialityCode[not(@nullFlavor)] appears too often [max 1x].
Test
count(hl7:languageCode[@code = 'fr-FR']) >= 1R - 26
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:languageCode[@code = 'fr-FR'] is mandatory [min 1x].
Test
count(hl7:languageCode[@code = 'fr-FR']) <= 1R - 27
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:languageCode[@code = 'fr-FR'] appears too often [max 1x].
Test
count(hl7:setId) <= 1R - 28
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:setId appears too often [max 1x].
Test
count(hl7:versionNumber) <= 1R - 29
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:versionNumber appears too often [max 1x].
Test
count(hl7:author[not(@nullFlavor)][hl7:assignedAuthor]) >= 1R - 30
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:author[not(@nullFlavor)][hl7:assignedAuthor] is mandatory [min 1x].
Test
count(hl7:componentOf[not(@nullFlavor)][hl7:encompassingEncounter]) >= 1R - 31
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:componentOf[not(@nullFlavor)][hl7:encompassingEncounter] is mandatory [min 1x].
Test
count(hl7:componentOf[not(@nullFlavor)][hl7:encompassingEncounter]) <= 1R - 32
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:componentOf[not(@nullFlavor)][hl7:encompassingEncounter] appears too often [max 1x].
Test
count(hl7:custodian[not(@nullFlavor)][hl7:assignedCustodian]) >= 1R - 33
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:custodian[not(@nullFlavor)][hl7:assignedCustodian] is mandatory [min 1x].
Test
count(hl7:custodian[not(@nullFlavor)][hl7:assignedCustodian]) <= 1R - 34
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:custodian[not(@nullFlavor)][hl7:assignedCustodian] appears too often [max 1x].
Test
count(hl7:dataEnterer) <= 1R - 35
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:dataEnterer appears too often [max 1x].
Test
count(hl7:documentationOf[not(@nullFlavor)][hl7:serviceEvent]) >= 1R - 36
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:documentationOf[not(@nullFlavor)][hl7:serviceEvent] is mandatory [min 1x].
Test
count(hl7:inFulfillmentOf[hl7:order]) <= 1R - 37
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:inFulfillmentOf[hl7:order] appears too often [max 1x].
Test
count(hl7:legalAuthenticator[hl7:signatureCode[@code = 'S']]) >= 1R - 38
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:legalAuthenticator[hl7:signatureCode[@code = 'S']] is mandatory [min 1x].
Test
count(hl7:legalAuthenticator[hl7:signatureCode[@code = 'S']]) <= 1R - 39
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:legalAuthenticator[hl7:signatureCode[@code = 'S']] appears too often [max 1x].
Test
count(hl7:recordTarget[not(@nullFlavor)]) >= 1R - 40
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:recordTarget[not(@nullFlavor)] is mandatory [min 1x].
Test
count(hl7:recordTarget[not(@nullFlavor)]) <= 1R - 41
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:recordTarget[not(@nullFlavor)] appears too often [max 1x].
Test
count(hl7:relatedDocument[@typeCode = 'RPLC'][hl7:parentDocument]) <= 1R - 42
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:relatedDocument[@typeCode = 'RPLC'][hl7:parentDocument] appears too often [max 1x].
Test
count(hl7:component[not(@nullFlavor)][hl7:structuredBody]) >= 1R - 43
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:component[not(@nullFlavor)][hl7:structuredBody] is mandatory [min 1x].
Test
count(hl7:component[not(@nullFlavor)][hl7:structuredBody]) <= 1R - 44
Location
/ds:Signature/ds:Object[2]/ClinicalDocument
Description
(VSM-2013): element hl7:component[not(@nullFlavor)][hl7:structuredBody] appears too often [max 1x].
Test
empty(@xsi:type) or resolve-QName(@xsi:type, .) = QName('urn:hl7-org:v3', 'CS')R - 45
Location
/ds:Signature/ds:Object[2]/ClinicalDocument/realmCode
Description
(VSM-2013): If an @xsi:type instruction is present it SHALL be valued "{urn:hl7-org:v3}:CS". Found "{}:"
Test
string(@code) = ('FR')R - 46
Location
/ds:Signature/ds:Object[2]/ClinicalDocument/realmCode
Description
(VSM-2013): The value for code SHALL be 'FR'. Found: "FR"
Test
empty(@xsi:type) or resolve-QName(@xsi:type, .) = QName('urn:hl7-org:v3', 'II')R - 47
Location
/ds:Signature/ds:Object[2]/ClinicalDocument/typeId
Description
(VSM-2013): If an @xsi:type instruction is present it SHALL be valued "{urn:hl7-org:v3}:II". Found "{}:"
Test
string(@root) = ('2.16.840.1.113883.1.3')R - 48
Location
/ds:Signature/ds:Object[2]/ClinicalDocument/typeId
Description
(VSM-2013): The value for root SHALL be '2.16.840.1.113883.1.3'. Found: "2.16.840.1.113883.1.3"
Test
string(@extension) = ('POCD_HD000040')R - 49
Location
/ds:Signature/ds:Object[2]/ClinicalDocument/typeId
Description
(VSM-2013): The value for extension SHALL be 'POCD_HD000040'. Found: "POCD_HD000040"
Test
not(@extension) or string-length(@extension)>0R - 50
Location
/ds:Signature/ds:Object[2]/ClinicalDocument/typeId
Description
(VSM-2013): Attribute @extension SHALL be of data type 'st' - 'POCD_HD000040'
Only the first 50 reports are displayed