<!--  Problem section: 2.16.840.1.113883.10.20.1.11 -->

<!-- errors -->

<pattern id='p-2.16.840.1.113883.10.20.1.11-errors' see='#p-2.16.840.1.113883.10.20.1.11-errors'>
	<title>Problem section - errors validation phase</title>
	<rule context='*[cda:templateId/@root="2.16.840.1.113883.10.20.1.11"]'>
	<assert test="cda:text">The Problem section SHALL contain a narrative block</assert>
	<assert test="cda:code[@code='11450-4'][@codeSystem='2.16.840.1.113883.6.1']">The problem section SHALL contain Section / code. The value for “Section / code” SHALL be “11450-4” “Problem list” 2.16.840.1.113883.6.1 LOINC STATIC.</assert>
	<assert test="cda:title">The problem section SHALL contain Section / title.</assert>
	<report test='.'></report>
	</rule>
</pattern>

<!-- warning -->

<pattern id='p-2.16.840.1.113883.10.20.1.11-warning' see='#p-2.16.840.1.113883.10.20.1.11-warning'>
	<title>Problem section - warning validation phase</title>
	<rule context='*[cda:templateId/@root="2.16.840.1.113883.10.20.1.11"]'>
	<assert test=".//cda:templateId[@root='2.16.840.1.113883.10.20.1.27']">Clinical statements SHOULD include one or more problem acts (templateId 2.16.840.1.113883.10.20.1.27).</assert>
	<assert test="contains(translate(cda:title,'QWERTYUIOPASDFGHJKLZXCVBNM','qwertyuiopasdfghjklzxcvbnm'),'problem')">Section / title SHOULD be valued with a case-insensitive language-insensitive text string containing “problem”.</assert>
	<report test='.'></report>
	</rule>
</pattern>

<!-- manual -->

<pattern id='p-2.16.840.1.113883.10.20.1.11-manual' see='#p-2.16.840.1.113883.10.20.1.11-manual'>
	<title>Problem section - manual validation phase</title>
	<rule context='*[cda:templateId/@root="2.16.840.1.113883.10.20.1.11"]'>
	<report test='.'></report>
	</rule>
</pattern>

