not(@value='true' and parent::hl7:observation/hl7:code[@code=('1.20')]) or (parent::hl7:observation/hl7:value[@xsi:type='CD'
and @codeSystem='2.16.756.5.30.1.112.3.1.201812.5'])
Message
Mandate for incapacity must be precised using another value element containing a code
of code system 2.16.756.5.30.1.112.3.1.201812.5.
Schematron assert
role
error
test
not(@value='true' and parent::hl7:observation/hl7:code[@code=('1.21')]) or (parent::hl7:observation/hl7:value[@xsi:type='CD'
and @codeSystem='2.16.756.5.30.1.112.3.1.201812.9'])
Message
Plan de crise conjoint must be precised using another value element containing a code
of code system 2.16.756.5.30.1.112.3.1.201812.9.
Schematron assert
role
error
test
not(@value='true' and parent::hl7:observation/hl7:code[@code=('5.2')]) or (parent::hl7:observation/hl7:value[@xsi:type='CD'
and @codeSystem='2.16.756.5.30.1.112.3.1.201812.2'])
Message
Guardian must be precised using another value element containing a code of code system
2.16.756.5.30.1.112.3.1.201812.2.
Schematron assert
role
error
test
not(@value='true' and parent::hl7:observation/hl7:code[@code=('5.3')]) or (parent::hl7:observation/hl7:value[@xsi:type='CD'
and @codeSystem='2.16.756.5.30.1.112.3.1.201812.3'])
Message
Coercive measures must be precised using another value element containing a code of
code system 2.16.756.5.30.1.112.3.1.201812.3.
Schematron assert
role
error
test
not(@value='true' and parent::hl7:observation/hl7:code[@code=('5.5')]) or (parent::hl7:observation/hl7:value[@xsi:type='CD'
and @codeSystem='2.16.756.5.30.1.112.3.1.201812.4'])
Message
Coercive measures protocol must be precised using another value element containing
a code of code system 2.16.756.5.30.1.112.3.1.201812.4.
The value of @code shall be drawn from value set 2.16.756.5.30.1.1.11.1Standard CDA Body Selection (DYNAMIC)
or
The value of @code shall be drawn from value set 2.16.756.5.30.2.1.1.12Employment Status (DYNAMIC)
Schematron assert
role
error
test
not(@codeSystem=('2.16.756.5.30.1.112.3.1.201812.3', '2.16.756.5.30.1.112.3.1.201812.4',
'2.16.756.5.30.1.112.3.1.201812.5') and @code=('a')) or (parent::hl7:observation/hl7:reference[hl7:templateId/@root='2.16.840.1.113883.10.20.1.36'])
Message
When a question is anserwed by attached, a reference to an externaL document ist required.
Schematron assert
role
error
test
not(@codeSystem='2.16.756.5.30.1.112.3.1.201812.5' and @code=('d')) or (parent::hl7:observation/hl7:value[@xsi:type='ST']/text())
Message
When Mandate for incapacity is anserwed by deposited, a precision must be valued based
on ST datatype.
Schematron assert
role
error
test
not(@codeSystem='2.16.756.5.30.2.1.1.12' and @code=('u')) or (parent::hl7:observation/hl7:value[@xsi:type='IVL_TS']/hl7:low)
Message
When Employment status is anserwed by unemployed, the start date must be valued based
on IVL_TS datatype in the low element.
where [hl7:templateId [@root = '2.16.756.5.30.1.1.10.4.111'] and hl7:templateId [@root
= '2.16.756.5.30.1.1.10.9.31'] and hl7:templateId [@root = '1.3.6.1.4.1.19376.1.5.3.1.1.24.3.5']]
not(hl7:code[@code=('66476-3')]) or (hl7:value[@xsi:type='II' and @root='1.0.3166.2.2.3'
and @extension])
Message
The country of citizenship must be valued based on II datatype and ISO 3166-1 alpha-3
country code (1.0.3166) as the root domain.
Schematron assert
role
error
test
not(hl7:code[@code=('67413-5')]) or (hl7:value[@xsi:type='II' and @root='1.0.3166.2.2.3'
and @extension])
Message
The country of origin must be valued based on II datatype and ISO 3166-1 alpha-3 country
code (1.0.3166) as the root domain.
Schematron assert
role
error
test
not(hl7:code[@code=('21847-9')]) or (hl7:value[@xsi:type='ST' and text()])
Message
The occupation must be valued based on ST datatype.
Schematron assert
role
error
test
not(hl7:code[@code=('11295-3')]) or (hl7:value[@xsi:type='CD' and @codeSystem='2.16.756.5.30.2.1.1.12'
and @code])
Message
The Employment status must be valued based on CD datatype and the Swiss employment
status code (2.16.756.5.30.2.1.1.12) as code system.
Schematron assert
role
error
test
not(hl7:code[@code=('1.13')]) or (hl7:value[@xsi:type='CD' and @codeSystem='2.16.756.5.30.1.112.3.1.201812.8'
and @code])
Message
Residence permit must be valued based on CD datatype and the corresponding DMST code
(2.16.756.5.30.1.112.3.1.201812.8) as code system.
Schematron assert
role
error
test
not(hl7:code[@code=('1.18', '5.1', '5.4')]) or (hl7:value[@xsi:type='CD' and @codeSystem=('2.16.756.5.30.2.1.1.3.1')
and @code])
Message
Minor children in charge, Justice mandate, Outpatient measures, Coercive measures,
Outpatient measures must be valued based on CD datatype and the Swiss Standard CDA
Body Selection code (2.16.756.5.30.2.1.1.3.1) as code system.
Schematron assert
role
error
test
not(hl7:code[@code=('1.18')]) or (hl7:value[@code='N']) or (hl7:value[@code='Y'] and
hl7:value[@xsi:type='ST' and text()])
Message
When Minor children in charge is anserwed by yes, a precision must be valued based
on ST datatype.
Schematron assert
role
error
test
not(hl7:code[@code=('1.20')]) or (hl7:value[@xsi:type='BL'])
Message
Mandate for incapacity must be valued based on BL datatype.
Schematron assert
role
error
test
not(hl7:code[@code=('1.21')]) or (hl7:value[@xsi:type='BL'])
Message
Joint crisis plan must be valued based on BL datatype.
Schematron assert
role
error
test
not(hl7:code[@code=('5.1')]) or (hl7:value[@code='N']) or (hl7:value[@code='Y'] and
hl7:value[@xsi:type='ST' and text()])
Message
When Justice mandate is anserwed by yes, a precision must be valued based on ST datatype.
Schematron assert
role
error
test
not(hl7:code[@code=('5.2')]) or (hl7:value[@xsi:type='BL'])
Message
Guardian must be valued based on BL datatype.
Schematron assert
role
error
test
not(hl7:code[@code=('5.3')]) or (hl7:value[@xsi:type='BL'])
Message
Coercive measures must be valued based on BL datatype.
Schematron assert
role
error
test
not(hl7:code[@code=('5.4')]) or (hl7:value[@code='N']) or (hl7:value[@code='Y'] and
hl7:performer)
Message
When Outpatient measures decision is anserwed by yes, a performer must be provided.
Schematron assert
role
error
test
not(hl7:code[@code=('5.5')]) or (hl7:value[@xsi:type='BL'])
Message
Coercive measures protocol must be valued based on BL datatype.
Schematron assert
role
error
test
not(hl7:code[@code=('3.1','3.2','3.3','3.4','3.5','3.6','3.7','3.8','3.9')]) or (hl7:value[@xsi:type='BL'
and @value='false']) or (hl7:value[@xsi:type='BL' and @value='true'] and hl7:value[@xsi:type='CD'
and @codeSystem='2.16.756.5.30.1.112.3.1.201812.10' and @code])
Message
If one of the social insurances are answered by yes, a precision must be valued based
on CD datatype and the corresponding precision type code of the canton of Vaud (2.16.756.5.30.1.112.3.1.201812.10)
as code system.
Schematron assert
role
error
test
not(hl7:code[@code=('3.9')]) or (hl7:value[@xsi:type='ST' and text()])
Message
The name of other social insurance must be valued based on ST datatype.
Schematron assert
role
error
test
not(hl7:code[@code=('4.3')]) or (hl7:value[@xsi:type='PQ' and @value and @unit='%'])
Message
The occupancy rate must be valued based on PQ datatype using % in the unit.