<?xml-stylesheet type="text/xsl" href="//www.nemsis.org/media/nemsis_v3/release-3.5.0/Schematron/utilities/html/schematronHtml.xsl"?>
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" queryBinding="xslt2" id="EMSDataSet" schemaVersion="3.5.0.211008CP3_SDCounty260715" see="https://nemsis.org/technical-resources/version-3/version-3-schematron/">
  <sch:title>ISO Schematron file for SD County. Updated by IT Admin on 07/15/2026</sch:title>
  <sch:ns prefix="nem" uri="http://www.nemsis.org" />
  <sch:ns prefix="xsi" uri="http://www.w3.org/2001/XMLSchema-instance" />
  <!-- "Initialize" variables used by nemsisDiagnostic. -->
  <sch:let name="nemsisElements" value="()" />
  <sch:let name="nemsisElementsMissing" value="''" />
  <sch:let name="nemsisElementsMissingContext" value="()" />
  <!---->
	<sch:pattern>
		<sch:title>itDisposition.038 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport">
			<sch:let name="nemsisElements" value="nem:itDisposition.038" />
			<sch:assert id="Rule_1942" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.038'][nem:eCustomResults.01 = ('S37-51959','S37-51913','S37-51916','S37-51966','S37-51622','S37-51843','S37-51815','S37-50088','S37-51822','S37-51846','S37-51817','S37-51825','S37-51975','S37-50528','S37-51293','S37-50176','S37-51836','S37-51844','S37-51814','S37-51827','S37-51525','S37-51832','S37-50208','000','S37-51842','S37-51823','S37-51278','S37-50383','S37-50757','S37-50826','S37-50689','S37-51708','S37-51829','S37-50987','S37-51837','S37-51845','S37-51839','S37-50921','S37-51714','S37-51826','S37-51847','S37-51831','S37-51854','S37-51841','S37-51828','S37-51712','S37-50365','S37-51830','S37-51816','S37-51834','S37-51833','S37-50675','S37-50618','S37-51529','S37-51978','S37-52019','S37-50759','S37-51997')])) and (nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.038'] and nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.038'][nem:eCustomResults.01 != '']))">For TPV submissions - Transporting Agency name must be completed with a LEMSIS value</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>eDisposition.27 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.27" />
      <sch:assert id="Rule_1970" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eDisposition.27) or nem:eDisposition.27 = '' or (not(nem:eDisposition.27 = ('4227001', '4227005', '4227007', '4227009', '4227011')))) and (nem:eDisposition.27 and nem:eDisposition.27 != ''))">For TPV Submissions - Unit Notified Disposition must be completed with the LEMSIS value/code</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eTimes.07 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eTimes">
      <sch:let name="nemsisElements" value="nem:eTimes.07" />
      <sch:assert id="Rule_1972" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((../nem:eScene/nem:eScene.07 = '9923001' and ../nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and ../nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and ../nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208') and (nem:eTimes.07 != '' and nem:eTimes.02 != '' and xs:dateTime(nem:eTimes.07) &lt; xs:dateTime(nem:eTimes.02) or nem:eTimes.07 != '' and nem:eTimes.03 != '' and xs:dateTime(nem:eTimes.07) &lt; xs:dateTime(nem:eTimes.03) or nem:eTimes.07 != '' and nem:eTimes.05 != '' and xs:dateTime(nem:eTimes.07) &lt; xs:dateTime(nem:eTimes.05) or nem:eTimes.07 != '' and nem:eTimes.06 != '' and xs:dateTime(nem:eTimes.07) &lt; xs:dateTime(nem:eTimes.06) or nem:eTimes.07 != '' and nem:eTimes.08 != '' and xs:dateTime(nem:eTimes.07) &gt; xs:dateTime(nem:eTimes.08) or nem:eTimes.07 != '' and nem:eTimes.09 != '' and xs:dateTime(nem:eTimes.07) &gt; xs:dateTime(nem:eTimes.09) or nem:eTimes.07 != '' and nem:eTimes.11 != '' and xs:dateTime(nem:eTimes.07) &gt; xs:dateTime(nem:eTimes.11) or nem:eTimes.07 != '' and nem:eTimes.12 != '' and xs:dateTime(nem:eTimes.07) &gt; xs:dateTime(nem:eTimes.12) or nem:eTimes.07 != '' and nem:eTimes.13 != '' and xs:dateTime(nem:eTimes.07) &gt; xs:dateTime(nem:eTimes.13) or nem:eTimes.07 != '' and nem:eTimes.14 != '' and xs:dateTime(nem:eTimes.07) &gt; xs:dateTime(nem:eTimes.14) or nem:eTimes.07 != '' and nem:eTimes.15 != '' and xs:dateTime(nem:eTimes.07) &gt; xs:dateTime(nem:eTimes.15) or nem:eTimes.07 != '' and nem:eTimes.16 != '' and xs:dateTime(nem:eTimes.07) &gt; xs:dateTime(nem:eTimes.16)))">Arrived at Patient appears to be out of sequence with other recorded date/time value(s).</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eTimes.14 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eTimes">
      <sch:let name="nemsisElements" value="nem:eTimes.14" />
      <sch:assert id="Rule_1974" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eTimes.14) or nem:eTimes.14 = '') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227009', '4227005', '4227007'))">Document Unit Cancelled Date/Time </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eProtocols.01 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eProtocols/nem:eProtocols.ProtocolGroup">
      <sch:let name="nemsisElements" value="nem:eProtocols.01" />
      <sch:assert id="Rule_1975" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eProtocols.01) or nem:eProtocols.01 = '') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229013'))">Protocols Used Not Documented</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.20 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.20" />
      <sch:assert id="Rule_2031" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eArrest.20) or nem:eArrest.20 = '') and nem:eArrest.01 = ('3001003') and (not(nem:eArrest.20[@NV]) or (not(nem:eArrest.20[@NV=('7701001', '7701003')]))))">Who First Initiated CPR is a required field when Cardiac Arrest occurred PTA.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->

  <sch:pattern>
    <sch:title>eDispatch.01 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDispatch">
      <sch:let name="nemsisElements" value="nem:eDispatch.01" />
      <sch:assert id="Rule_2033" role="[FATAL]" diagnostics="nemsisDiagnostic" test="not((not(nem:eDispatch.01) or nem:eDispatch.01 = '' or (not(nem:eDispatch.01 = ('2301001', '2301083', '2301003', '2301085', '2301005', '2301007', '2301009', '2301011', '2301013', '2301015', '2301017', '2301019', '2301021', '2301023', '2301025', '2301027', '2301081', '2301029', '2301031', '2301033', '2301035', '2301037', '2301039', '2301041', '2301043', '2301045', '2301047', '2301087', '2301049', '2301051', '2301053', '2301055', '2301057', '2301059', '2301061', '2301063', '2301065', '2301067', '2301069', '2301071', '2301073', '2301077', '2301079', '2301075', '2301089', '2301091')))) and (nem:eDispatch.01 and nem:eDispatch.01 != ''))">For TPV submissions - Dispatch Reason must complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.19 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition">
      <sch:let name="nemsisElements" value="nem:eDisposition.19" />
      <sch:assert id="Rule_2037" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eDisposition.19) or nem:eDisposition.19 = '') and nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005', '4228007') and nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229013'))">Document the final patient acuity </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eExam.25 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eExam/nem:eExam.AssessmentGroup/nem:eExam.ChestGroup">
      <sch:let name="nemsisElements" value="nem:eExam.25" />
      <sch:assert id="Rule_2042" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../../nem:eExam.AssessmentGroup[((nem:eExam.ChestGroup/nem:eExam.25 and nem:eExam.ChestGroup/nem:eExam.25 != ''))]) &lt; 1 and ../../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005') and ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.052'][nem:eCustomResults.01 != 'itExam.052.101'])">Document the patient's Chest status under the assessment.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eExam.23 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eExam/nem:eExam.AssessmentGroup/nem:eExam.LungGroup">
      <sch:let name="nemsisElements" value="nem:eExam.23" />
      <sch:assert id="Rule_2045" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../../nem:eExam.AssessmentGroup[((nem:eExam.LungGroup/nem:eExam.23 and nem:eExam.LungGroup/nem:eExam.23 != ''))]) &lt; 1 and ../../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005') and ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.052'][nem:eCustomResults.01 != 'itExam.052.101'])">Document the patient's Lung status under the assessment.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eHistory.01 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eHistory">
      <sch:let name="nemsisElements" value="nem:eHistory.01" />
      <sch:assert id="Rule_2047" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((not(nem:eHistory.01) or nem:eHistory.01 = '' or count(nem:eHistory.01[text() = ('3101009','3101033','3101001','3101003','3101035','3101005','3101007','3101011','3101013','3101015','3101017','3101019','3101021','3101023','3101025','3101027','3101029','3101031')]) + ../count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eHistory.01'][nem:eCustomResults.01 = ('it3101.101','it3101.104','it3101.100','it3101.106')]) = 0) and (nem:eHistory.01 and nem:eHistory.01 != '')) or ((not(nem:eHistory.01[@NV]) or (not(nem:eHistory.01[@NV=('7701001','7701003')]))) and (nem:eHistory.01[@NV])))">For TPV submissions -Barriers to Patient Care must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eHistory.17 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eHistory">
      <sch:let name="nemsisElements" value="nem:eHistory.17" />
      <sch:assert id="Rule_2048" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eHistory.17) or nem:eHistory.17 = '' or count(nem:eHistory.17[text() = ('3117001', '3117003', '3117005', '3117007', '3117009', '3117013')]) = 0) and (nem:eHistory.17 and nem:eHistory.17 != '')) or ((not(nem:eHistory.17[@NV]) or (not(nem:eHistory.17[@NV=('7701001', '7701003')]))) and (nem:eHistory.17[@NV])) or ((not(nem:eHistory.17[@PN]) or (not(nem:eHistory.17[@PN=('8801015', '8801019', '8801023')]))) and (nem:eHistory.17[@PN]))))">For TPV submissions -Alcohol Drug Use Indicators must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eInjury.07 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eInjury">
      <sch:let name="nemsisElements" value="nem:eInjury.07" />
      <sch:assert id="Rule_2049" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eInjury.07) or nem:eInjury.07 = '' or count(nem:eInjury.07[text() = ('2907001', '2907007', '2907009', '2907029', '2907027', '2907031', '2907003', '2907005', '2907015', '2907017', '2907019', '2907021', '2907023', '2907033')]) + ../count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eInjury.07'][nem:eCustomResults.01 = ('it2907.106', 'it2907.105', 'it2907.113', 'it2907.107', 'it2907.115', 'it2907.114', 'it2907.116', 'it2907.120', 'it2907.121', 'it2907.119', 'it2907.122', 'it2907.118', 'it2907.123', 'it2907.130', 'it2907.128', 'it2907.127', 'it2907.129', 'it2907.131', 'it2907.132', 'it2907.134', 'it2907.133')]) = 0) and (nem:eInjury.07 and nem:eInjury.07 != '')) or ((not(nem:eInjury.07[@NV]) or (not(nem:eInjury.07[@NV=('7701001', '7701003', '7701005')]))) and (nem:eInjury.07[@NV]))))">For TPV submissions - Use Of Safety Equipment must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eMedications.03 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eMedications/nem:eMedications.MedicationGroup">
			<sch:let name="nemsisElements" value="nem:eMedications.03" />
			<sch:assert id="Rule_2051" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((not(nem:eMedications.03) or nem:eMedications.03 = '')   and (not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itMedications.014']) or ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itMedications.014'][nem:eCustomResults.01 = ''])) and ((nem:eMedications.01 and nem:eMedications.01 != '') or (nem:eMedications.09 and nem:eMedications.09 != '') or (nem:eMedications.10 and nem:eMedications.10 != '') or (nem:eMedications.DosageGroup/nem:eMedications.05 and nem:eMedications.DosageGroup/nem:eMedications.05 != '') or (nem:eMedications.DosageGroup/nem:eMedications.06 and nem:eMedications.DosageGroup/nem:eMedications.06 != '') or (nem:eMedications.07 and nem:eMedications.07 != '') or (nem:eMedications.08 and nem:eMedications.08 != '') or (nem:eMedications.11 and nem:eMedications.11 != '') or (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itMedications.002'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itMedications.002'][nem:eCustomResults.01 != '']) or (nem:eMedications.04 and nem:eMedications.04 != '')))">Please complete the Medication Administered field</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>eMedications.04 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eMedications/nem:eMedications.MedicationGroup">
      <sch:let name="nemsisElements" value="nem:eMedications.04" />
      <sch:assert id="Rule_2052" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eMedications.04) or nem:eMedications.04 = '' or (not(nem:eMedications.04 = ('9927001', '9927005', '9927009', '9927015', '9927017', '9927021', '9927023', '9927069', '9927025', '9927027', '9927031', '9927035', '9927037', '9927047', '9927049', '9927053', '9927061', '9927067', '9927071', '9927065', '9927063')) and not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eMedications.04'][nem:eCustomResults.01 = ('it9927.123')]))) and (nem:eMedications.04 and nem:eMedications.04 != ''))">For TPV submissions -Medication Administered Route must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eMedications.05 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eMedications/nem:eMedications.MedicationGroup/nem:eMedications.DosageGroup">
      <sch:let name="nemsisElements" value="nem:eMedications.05" />
      <sch:assert id="Rule_2053" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eMedications.05) or nem:eMedications.05 = '') and (not(nem:eMedications.05[@NV])) and (../nem:eMedications.03 and ../nem:eMedications.03 != '') and ../nem:eMedications.02 != '9923003' and nem:eMedications.06 != '3706007')">Medication Dosage is a required field on all Medications. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eMedications.06 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eMedications/nem:eMedications.MedicationGroup/nem:eMedications.DosageGroup">
      <sch:let name="nemsisElements" value="nem:eMedications.06" />
      <sch:assert id="Rule_2054" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eMedications.06) or nem:eMedications.06 = '') and (nem:eMedications.05 and nem:eMedications.05 != ''))">Medication Dosage Units is a required field on all Medications. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eMedications.06 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eMedications/nem:eMedications.MedicationGroup/nem:eMedications.DosageGroup">
      <sch:let name="nemsisElements" value="nem:eMedications.06" />
      <sch:assert id="Rule_2056" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eMedications.06) or nem:eMedications.06 = '' or (not(nem:eMedications.06 = ('3706001', '3706003', '3706007', '3706009', '3706015', '3706017', '3706019', '3706021', '3706023', '3706025', '3706027', '3706029', '3706031', '3706035', '3706037', '3706039', '3706041', '3706045', '3706043', '3706047', '3706049', '3706051', '3706053')) and not(../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eMedications.06'][nem:eCustomResults.01 = ('it3706.109', 'it3706.111')]))) and (nem:eMedications.06 and nem:eMedications.06 != '')) or ((not(nem:eMedications.06[@NV]) or (not(nem:eMedications.06[@NV=('7701001', '7701003')]))) and (nem:eMedications.06[@NV]))))">For TPV submissions -Medication Dosage Units must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eOther.05 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther/nem:eOther.EMSCrewMemberGroup">
      <sch:let name="nemsisElements" value="nem:eOther.05" />
      <sch:assert id="Rule_2058" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eOther.05) or nem:eOther.05 = '') and (nem:eOther.03 and nem:eOther.03 != '') and (not(nem:eOther.05[@NV])))">Please complete Suspected Exposure field</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eOther.13 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther/nem:eOther.SignatureGroup">
      <sch:let name="nemsisElements" value="nem:eOther.13" />
      <sch:assert id="Rule_2060" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eOther.13) or nem:eOther.13 = '') and nem:eOther.12 = ('4512015', '4512017') and (not(nem:eOther.15) or nem:eOther.15 = '' or (not(nem:eOther.15 = ('4515003', '4515005', '4515007', '4515009', '4515011', '4515013', '4515015', '4515017', '4515019', '4515021', '4515023', '4515025', '4515001', '4515035', '4515037', '4515039', '4515027')) and not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eOther.15'][nem:eCustomResults.01 = ('eOther.15.100')]))))">Document the reason the patient's or patient's parent/guardian/representative's signature was obtained. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eOther.19 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther/nem:eOther.SignatureGroup">
      <sch:let name="nemsisElements" value="nem:eOther.19" />
      <sch:assert id="Rule_2061" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((not(nem:eOther.19) or nem:eOther.19 = '') and (not(nem:eOther.15) or nem:eOther.15 = '' or (not(nem:eOther.15 = ('4515003', '4515005', '4515007', '4515009', '4515011', '4515013', '4515015', '4515017', '4515019', '4515021', '4515023', '4515025', '4515027', '4515001', '4515035', '4515037', '4515039')) and not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eOther.15'][nem:eCustomResults.01 = ('eOther.15.100')]))) and nem:eOther.15 != '4515021') and ((nem:eOther.13 and nem:eOther.13 != '') or (nem:eOther.12 and nem:eOther.12 != '')))">Document the date and time the signature was obtained. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eOther.15 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther/nem:eOther.SignatureGroup">
      <sch:let name="nemsisElements" value="nem:eOther.15" />
      <sch:assert id="Rule_2064" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eOther.15) or nem:eOther.15 = '' or (not(nem:eOther.15 = ('4515031', '4515033', '4515001', '4515003', '4515019', '4515005', '4515007', '4515009', '4515011', '4515013', '4515015', '4515017', '4515021', '4515023', '4515025', '4515027', '4515035', '4515037', '4515039')) and not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eOther.15'][nem:eCustomResults.01 = ('eOther.15.100')]))) and (nem:eOther.15 and nem:eOther.15 != ''))">For TPV submissions - Signature Status must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eProcedures.01 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eProcedures/nem:eProcedures.ProcedureGroup">
      <sch:let name="nemsisElements" value="nem:eProcedures.01" />
      <sch:assert id="Rule_2067" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eProcedures.01) or nem:eProcedures.01 = '') and (nem:eProcedures.03 and nem:eProcedures.03 != '') and nem:eProcedures.02 != '9923003')">Time Procedure Performed is a required field when Procedure is not blank. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eProcedures.09 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eProcedures/nem:eProcedures.ProcedureGroup">
      <sch:let name="nemsisElements" value="nem:eProcedures.09" />
      <sch:assert id="Rule_2069" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eProcedures.09) or nem:eProcedures.09 = '') and (not(nem:eProcedures.09[@NV])) and (nem:eProcedures.03 and nem:eProcedures.03 != '') and nem:eProcedures.02 != '9923003')">Document the crew member who performed the procedure.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eProcedures.02 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eProcedures/nem:eProcedures.ProcedureGroup">
      <sch:let name="nemsisElements" value="nem:eProcedures.02" />
      <sch:assert id="Rule_2070" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eProcedures.02) or nem:eProcedures.02 = '') and (not(nem:eProcedures.02[@NV])) and (nem:eProcedures.03 and nem:eProcedures.03 != ''))">Complete the Prior to Arrival field</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eProcedures.13 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eProcedures/nem:eProcedures.ProcedureGroup">
      <sch:let name="nemsisElements" value="nem:eProcedures.13" />
      <sch:assert id="Rule_2072" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eProcedures.02 != '9923003') and (nem:eProcedures.03 = '392230005' or nem:eProcedures.03 = '430824005') and ((not(nem:eProcedures.13) or nem:eProcedures.13 = '') or (nem:eProcedures.13[@NV] and nem:eProcedures.13[@NV=('7701001', '7701003')])))">Vascular Access Location Not Documented</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eProcedures.10 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eProcedures/nem:eProcedures.ProcedureGroup">
      <sch:let name="nemsisElements" value="nem:eProcedures.10" />
      <sch:assert id="Rule_2073" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eProcedures.10) or nem:eProcedures.10 = '') and (not(nem:eProcedures.10[@NV])) and (nem:eProcedures.03 and nem:eProcedures.03 != '') and nem:eProcedures.02 != '9923003')">Complete the Role/Type of Person Performing the Procedure field</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eDisposition.27 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
			<sch:let name="nemsisElements" value="nem:eDisposition.27" />
			<sch:assert id="Rule_2077" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eDisposition.27) or nem:eDisposition.27 = ''))">Unit's Disposition is a mandatory field. </sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
		<sch:title>eDisposition.28 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
			<sch:let name="nemsisElements" value="nem:eDisposition.28" />
			<sch:assert id="Rule_2078" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eDisposition.27 = '4227001'   and ../../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2026-06-01T00:00:00')) and ((not(nem:eDisposition.28) or nem:eDisposition.28 = '') or (not(nem:eDisposition.28) or nem:eDisposition.28 = '' or (not(nem:eDisposition.28 = ('4228001','4228003','4228005','4228007','4228009'))))) and ((nem:eDisposition.28[@NV] and nem:eDisposition.28[@NV=('7701001','7701003')]) or (not(nem:eDisposition.28[@NV]))))">This Unit's Patient Evaluation/Care will flag when Unit Disposition = Patient Contact Made</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>eDisposition.28 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.28" />
      <sch:assert id="Rule_2079" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(nem:eDisposition.27 = ('4227005', '4227009') and (nem:eDisposition.28 and nem:eDisposition.28 != ''))">This Unit's Patient Evaluation/Care must be blank or NV when Unit Disposition = Canceled Prior to Arrival at Scene, Canceled On Scene No Pt Founds</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.28 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.28" />
      <sch:assert id="Rule_2080" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(nem:eDisposition.27 = '4227007' and (nem:eDisposition.28 and nem:eDisposition.28 != '') and (not(nem:eDisposition.28[@NV]) or (not(nem:eDisposition.28[@NV=('7701001', '7701003')]))))">This Unit's Patient Eval/Care Disposition must be Blank or a NV when Unit Disposition = Cancelled on Scene, No Patient Contact</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.29 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.29" />
      <sch:assert id="Rule_2084" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(nem:eDisposition.27 = '4227005' and (nem:eDisposition.29 and nem:eDisposition.29 != '') and (not(nem:eDisposition.29[@NV]) or (not(nem:eDisposition.29[@NV=('7701001', '7701003')]))))">Crew Disposition must be Blank or a NV when Unit Disposition = Cancelled Prior to Arrival </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.29 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.29" />
      <sch:assert id="Rule_2085" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(nem:eDisposition.27 = '4227007' and (nem:eDisposition.29 and nem:eDisposition.29 != '') and (not(nem:eDisposition.29) or nem:eDisposition.29 = '' or (not(nem:eDisposition.29 = ('4229009')))) and (not(nem:eDisposition.29[@NV]) or (not(nem:eDisposition.29[@NV=('7701001', '7701003')]))))">Crew Disposition ) must be Support services Provided, Blank or a NV when Unit Disposition = Cancelled on Scene, No Patient Contact</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.29 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.29" />
      <sch:assert id="Rule_2086" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(nem:eDisposition.27 = '4227009' and (nem:eDisposition.29 and nem:eDisposition.29 != '') and (not(nem:eDisposition.29) or nem:eDisposition.29 = '' or (not(nem:eDisposition.29 = ('4229009')))) and (not(nem:eDisposition.29[@NV]) or (not(nem:eDisposition.29[@NV=('7701003', '7701001')]))))">Crew Disposition must be Support Services Provided,  blank or a NV when Unit Disposition = Cancelled On Scene No Pt Found </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.29 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.29" />
      <sch:assert id="Rule_2087" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(nem:eDisposition.27 = '4227011' and (not(nem:eDisposition.29) or nem:eDisposition.29 = '' or (not(nem:eDisposition.29 = ('4229009')))) and (not(nem:eDisposition.29[@NV]) or (not(nem:eDisposition.29[@NV=('7701001', '7701003')]))))">Crew Disposition must be Incident Support Services Provided or a NV, when Unit Disposition = Non-Patient (i.e. Lift Assist, Organ Transport)</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.30 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.30" />
      <sch:assert id="Rule_2088" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(nem:eDisposition.27 = '4227005' and (nem:eDisposition.30 and nem:eDisposition.30 != '') and (not(nem:eDisposition.30[@NV]) or (not(nem:eDisposition.30[@NV=('7701001', '7701003')]))))">This Crew's Transport Disposition must be blank or a NV when Unit Disposition  = Cancelled Prior to Arrival at Scene</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.30 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.30" />
      <sch:assert id="Rule_2089" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eDisposition.29 = '4229001') and ((not(nem:eDisposition.30) or nem:eDisposition.30 = '') or (not(nem:eDisposition.30) or nem:eDisposition.30 = '' or (not(nem:eDisposition.30 = ('4230001', '4230003', '4230007', '4230009', '4230013'))))) and ((nem:eDisposition.30[@NV] and nem:eDisposition.30[@NV=('7701001', '7701003')]) or (not(nem:eDisposition.30[@NV]))))">This Unit's Transport Disp can only be select values when when Crew Disp = Initiated and Continued Primary Care</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.30 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.30" />
      <sch:assert id="Rule_2090" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(nem:eDisposition.27 = '4227009' and (nem:eDisposition.30 and nem:eDisposition.30 != '') and (not(nem:eDisposition.30[@NV]) or (not(nem:eDisposition.30[@NV=('7701001', '7701003')]))))">Transport Disposition must be blank or a NV when Unit Disposition = Cancelled on Scene, No Patient Found
</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.30 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.30" />
      <sch:assert id="Rule_2091" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(nem:eDisposition.27 = '4227007' and (nem:eDisposition.30 and nem:eDisposition.30 != '') and (not(nem:eDisposition.30[@NV]) or (not(nem:eDisposition.30[@NV=('7701001', '7701003')]))))">Transport Disposition must be blank or a NV when Unit Disposition = Cancelled on Scene, No Patient Contact</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.30 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.30" />
      <sch:assert id="Rule_2092" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(nem:eDisposition.27 = '4227011' and (not(nem:eDisposition.30) or nem:eDisposition.30 = '' or (not(nem:eDisposition.30 = ('4230011', '4230013')))) and (not(nem:eDisposition.30[@NV]) or (not(nem:eDisposition.30[@NV=('7701003')]))))">Transport Disposition must be Non-Patient Transport or Not Recorded when Unit Disposition= Non- Patient</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eDisposition.30 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
			<sch:let name="nemsisElements" value="nem:eDisposition.30" />
			<sch:assert id="Rule_2093" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eDisposition.29 = '4229003'  ) and ((not(nem:eDisposition.30) or nem:eDisposition.30 = '') or (not(nem:eDisposition.30) or nem:eDisposition.30 = '' or (not(nem:eDisposition.30 = ('4230005','4230007','4230003','4230013','4230009'))))) and ((nem:eDisposition.30[@NV] and nem:eDisposition.30[@NV=('7701001','7701003')]) or (not(nem:eDisposition.30[@NV]))))">This Unit's Transport Disp can only be select values when when Crew Disp = Initiated Primary Care and Transferred to Another EMS Crew</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>eDisposition.30 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.30" />
      <sch:assert id="Rule_2094" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eDisposition.29 = '4229005') and ((nem:eDisposition.30[@NV] and nem:eDisposition.30[@NV=('7701001', '7701003')]) or (not(nem:eDisposition.30[@NV]))) and ((not(nem:eDisposition.30) or nem:eDisposition.30 = '' or (not(nem:eDisposition.30 = ('4230003', '4230005', '4230007', '4230013', '4230009')))) or (not(nem:eDisposition.30) or nem:eDisposition.30 = '')))">This Unit's Transport Disp can only be select values when  when Crew Disposition  = Provided Care Supporting Primary EMS Crew</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.30 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.30" />
      <sch:assert id="Rule_2095" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eDisposition.29 = '4229007' and ../../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2024-06-19T00:00:00-06:00')) and ((not(nem:eDisposition.30) or nem:eDisposition.30 = '') or (not(nem:eDisposition.30) or nem:eDisposition.30 = '' or (not(nem:eDisposition.30 = ('4230003', '4230001', '4230007', '4230009'))))) and ((nem:eDisposition.30[@NV] and nem:eDisposition.30[@NV=('7701001', '7701003')]) or (not(nem:eDisposition.30[@NV]))))">This Unit's Transport Disp can only be select values when Crew Disp = Assumed Primary Care from Another EMS Crew</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.30 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.30" />
      <sch:assert id="Rule_2096" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eDisposition.29 = '4229009') and ((not(nem:eDisposition.30) or nem:eDisposition.30 = '' or (not(nem:eDisposition.30 = ('4230011', '4230013', '4230005', '4230007', '4230009')))) or (not(nem:eDisposition.30) or nem:eDisposition.30 = '')) and ((nem:eDisposition.30[@NV] and nem:eDisposition.30[@NV=('7701001', '7701003')]) or (not(nem:eDisposition.30[@NV]))))">This Unit's Transport Disp can only be select values when  Crew Disposition = Incident Support Services Provided</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.30 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.30" />
      <sch:assert id="Rule_2097" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eDisposition.29 = '4229011') and ((not(nem:eDisposition.30) or nem:eDisposition.30 = '' or (not(nem:eDisposition.30 = ('4230013')))) or (not(nem:eDisposition.30) or nem:eDisposition.30 = '')) and ((nem:eDisposition.30[@NV] and nem:eDisposition.30[@NV=('7701001', '7701003')]) or (not(nem:eDisposition.30[@NV]))))">Transport Disposition can only be can only be select values when when Crew Disp = Back in Service No Care or Support Services Required</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.30 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.30" />
      <sch:assert id="Rule_2098" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eDisposition.29 = '4229013') and ((not(nem:eDisposition.30) or nem:eDisposition.30 = '' or (not(nem:eDisposition.30 = ('4230009')))) or (not(nem:eDisposition.30) or nem:eDisposition.30 = '')) and ((nem:eDisposition.30[@NV] and nem:eDisposition.30[@NV=('7701001', '7701003')]) or (not(nem:eDisposition.30[@NV]))))">Transport Disposition can only be select values when when Crew Disp = Back In Service Care or Support Services Refused</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.31 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.31" />
      <sch:assert id="Rule_2099" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((not(nem:eDisposition.31) or nem:eDisposition.31 = '') and nem:eDisposition.28 != '4228009') and (nem:eDisposition.28 = ('4228003','4228007','4228005') or nem:eDisposition.29 = ('4229013') or nem:eDisposition.30 = ('4230009')))">Release for Refusal/Release will flag when Pt Eval/Care Disp,  Crew Disp or Transport Disp contain a Refused option</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.29 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.29" />
      <sch:assert id="Rule_2103" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eDisposition.28 = ('4228001')) and ((not(nem:eDisposition.29) or nem:eDisposition.29 = '') or (not(nem:eDisposition.29) or nem:eDisposition.29 = '' or (not(nem:eDisposition.29 = ('4229001', '4229003', '4229005', '4229007'))))))">This Unit's Crew Disposition will flag when Pt Evaluation/Care Disposition  =  Pt Evaluated and Care Provided</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.29 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.29" />
      <sch:assert id="Rule_2104" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eDisposition.28 = ('4228003', '4228007')) and ((not(nem:eDisposition.29) or nem:eDisposition.29 = '') or (not(nem:eDisposition.29) or nem:eDisposition.29 = '' or (not(nem:eDisposition.29 = ('4229013'))))))">This Unit's Crew Disposition will flag when Pt Evaluation/Care Disposition =  Pt Evaluated and Refused Care OR Pt Refused Evaluation and/or Care</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.29 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.29" />
      <sch:assert id="Rule_2105" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eDisposition.28 = ('4228005')) and ((not(nem:eDisposition.29) or nem:eDisposition.29 = '') or (not(nem:eDisposition.29) or nem:eDisposition.29 = '' or (not(nem:eDisposition.29 = ('4229011'))))))">This Unit's Crew Disposition will flag when Pt Evaluation/Care Disposition = Pt Evaluated No Care Required</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.29 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.29" />
      <sch:assert id="Rule_2106" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eDisposition.28 = ('4228009')) and ((not(nem:eDisposition.29) or nem:eDisposition.29 = '') or (not(nem:eDisposition.29) or nem:eDisposition.29 = '' or (not(nem:eDisposition.29 = ('4229009'))))))">This Unit's Crew Disposition will flag when Pt Evaluation/Care Disposition = Support Services Provided</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.28 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.28" />
      <sch:assert id="Rule_2107" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eDisposition.27 = ('4227011')) and ((not(nem:eDisposition.28) or nem:eDisposition.28 = '') or (not(nem:eDisposition.28) or nem:eDisposition.28 = '' or (not(nem:eDisposition.28 = ('4228009'))))))">This Unit's Patient Evaluation/Care must be Support Services Provided when Unit Disposition = Non-Pt incidents</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.16 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition">
      <sch:let name="nemsisElements" value="nem:eDisposition.16" />
      <sch:assert id="Rule_2108" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.30 = ('4230001', '4230003', '4230011')) and (((not(nem:eDisposition.16) or nem:eDisposition.16 = '') and (not(nem:eDisposition.16[@NV]))) or ((nem:eDisposition.16[@NV] and nem:eDisposition.16[@NV = '7701001']) and (not(nem:eDisposition.16) or nem:eDisposition.16 = ''))))">EMS Transport Method Not Documented</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eProtocols.ProtocolGroup related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eProtocols">
      <sch:let name="nemsisElements" value="nem:eProtocols.ProtocolGroup" />
      <sch:assert id="Rule_2109" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eProtocols.ProtocolGroup) = 0 and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229013') and ../nem:eScene/nem:eScene.07 = '9923001')">Document the fields in the Protocol Grid </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eScene.01 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eScene">
      <sch:let name="nemsisElements" value="nem:eScene.01" />
      <sch:assert id="Rule_2110" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((../nem:eTimes/nem:eTimes.06 and ../nem:eTimes/nem:eTimes.06 != '') and (not(nem:eScene.01) or nem:eScene.01 = '') and (not(nem:eScene.01[@NV])))">Complete the First EMS Unit on Scene field</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eTimes.06 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eTimes">
      <sch:let name="nemsisElements" value="nem:eTimes.06" />
      <sch:assert id="Rule_2111" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eTimes.06) or nem:eTimes.06 = '') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001', '4227007', '4227009', '4227011'))">Unit Arrived on Scene Time is a required field.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eTimes.09 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eTimes">
      <sch:let name="nemsisElements" value="nem:eTimes.09" />
      <sch:assert id="Rule_2112" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eTimes.09) or nem:eTimes.09 = '') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.30 = ('4230001', '4230003', '4230007', '4230011'))">En Route to Facility Time is a required field when patient is escorted and transported. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eScene.09 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eScene">
      <sch:let name="nemsisElements" value="nem:eScene.09" />
      <sch:assert id="Rule_2113" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eScene.09) or nem:eScene.09 = '') and (../nem:eTimes/nem:eTimes.06 and ../nem:eTimes/nem:eTimes.06 != ''))">Incident Location Type is a required field.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eHistory.01 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eHistory">
      <sch:let name="nemsisElements" value="nem:eHistory.01" />
      <sch:assert id="Rule_2114" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eHistory.01) or nem:eHistory.01 = '') and (not(nem:eHistory.01[@NV])) and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005', '4228007') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229013', '4229011') and ../nem:eScene/nem:eScene.07 = '9923001')">Barriers to Patient Care is a required field.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.17 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition">
      <sch:let name="nemsisElements" value="nem:eDisposition.17" />
      <sch:assert id="Rule_2115" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eDisposition.17) or nem:eDisposition.17 = '') and nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.30 = ('4230001', '4230003', '4230011'))">Transport Mode from Scene is a required field.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.20 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition">
      <sch:let name="nemsisElements" value="nem:eDisposition.20" />
      <sch:assert id="Rule_2116" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((not(nem:eDisposition.20) or nem:eDisposition.20 = '') and ../nem:eScene/nem:eScene.07 = '9923001') and ((nem:eDisposition.DestinationGroup/nem:eDisposition.01 and nem:eDisposition.DestinationGroup/nem:eDisposition.01 != '') or nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.30 = ('4230001', '4230003', '4230011')))">Reason for Choosing Destination is a required field when Patient is transported.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.21 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition">
      <sch:let name="nemsisElements" value="nem:eDisposition.21" />
      <sch:assert id="Rule_2117" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eDisposition.21) or nem:eDisposition.21 = '') and (../nem:eTimes/nem:eTimes.11 and ../nem:eTimes/nem:eTimes.11 != ''))">Type of Destination is a required field.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eSituation.PatientComplaintGroup related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:eSituation.PatientComplaintGroup" />
      <sch:assert id="Rule_2118" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eSituation.PatientComplaintGroup[((nem:eSituation.04 and nem:eSituation.04 != ''))]) &lt; 1 and count(nem:eSituation.PatientComplaintGroup[((nem:eSituation.04[@NV]))]) &lt; 1 and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005', '4228007') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013') and ../nem:eScene/nem:eScene.07 = '9923001')">Chief Complaint is a required field.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eNarrative.01 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eNarrative">
      <sch:let name="nemsisElements" value="nem:eNarrative.01" />
      <sch:assert id="Rule_2119" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eNarrative.01) or nem:eNarrative.01 = '') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../nem:eScene/nem:eScene.07 = '9923001')">Patient Care Report Narrative is a required field. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eExam.01 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eExam">
      <sch:let name="nemsisElements" value="nem:eExam.01" />
      <sch:assert id="Rule_2120" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eExam.01) or nem:eExam.01 = '') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005', '4228007') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229013', '4229011') and ../nem:eScene/nem:eScene.07 = '9923001')">Enter Estimated Body Weight on Kilograms</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eTimes.07 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eTimes">
      <sch:let name="nemsisElements" value="nem:eTimes.07" />
      <sch:assert id="Rule_2121" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eTimes.07) or nem:eTimes.07 = '') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../nem:eScene/nem:eScene.07 = '9923001' and ../nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and ../nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and ../nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the time the crew arrived at patient.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itDisposition.038 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition">
      <sch:let name="nemsisElements" value="nem:itDisposition.038" />
      <sch:assert id="Rule_2123" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.038']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.038'][nem:eCustomResults.01 = '']) and nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.30 = ('4230005', '4230007'))">Please document the transporting agency.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itDisposition.017 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition">
      <sch:let name="nemsisElements" value="nem:itDisposition.017" />
      <sch:assert id="Rule_2124" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.017']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.017'][nem:eCustomResults.01 = '']) and nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.30 = ('4230005', '4230007'))">Please document the Transporting Agency Unit #.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itDisposition.047 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition">
      <sch:let name="nemsisElements" value="nem:itDisposition.047" />
      <sch:assert id="Rule_2125" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.047']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.047'][nem:eCustomResults.01 = ''])) and (((../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.007'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.007'][nem:eCustomResults.01 != ''])) or (nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228007') and nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229013', '4229011'))))">Please document the name of the Base Hospital contacted. No BH Contacted option is available.   </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eTimes.12 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eTimes">
			<sch:let name="nemsisElements" value="nem:eTimes.12" />
			<sch:assert id="Rule_2126" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eTimes.12) or nem:eTimes.12 = '') and (nem:eTimes.11 and nem:eTimes.11 != '') and (not(../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29) or ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = '' or (not(../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229003')))) and count(../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.31[text() = '4231017']) = 0 )">Document the time the care of the patient was transferred to the receiving facility staff. </sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>eTimes.11 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eTimes">
      <sch:let name="nemsisElements" value="nem:eTimes.11" />
      <sch:assert id="Rule_2127" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eTimes.11) or nem:eTimes.11 = '') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.30 = ('4230001', '4230003') and ../nem:eScene/nem:eScene.07 = '9923001')">Document the time the patient arrived at the destination. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.01 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.DestinationGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.01" />
      <sch:assert id="Rule_2128" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((../nem:eDisposition.21 = ('4221003', '4221005') or ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eDisposition.21'][nem:eCustomResults.01 = ('it4221.110')]) and (not(nem:eDisposition.01[@NV])) and (not(nem:eDisposition.01) or nem:eDisposition.01 = ''))">Document the name of the receiving facility.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.01 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.DestinationGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.01" />
      <sch:assert id="Rule_2129" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eDisposition.01) or nem:eDisposition.01 = '') and (not(../../nem:eArrest/nem:eArrest.18) or ../../nem:eArrest/nem:eArrest.18 = '' or (not(../../nem:eArrest/nem:eArrest.18 = ('3018003', '3018011')) and not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eArrest.18'][nem:eCustomResults.01 = ('it3018.100')]))) and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.014'][nem:eCustomResults.01 = 'itArrest.014.100'] and ../../nem:eArrest/nem:eArrest.02 = ('3002013', '3002011', '3002009', '3002007', '3002005', '3002003', '3002001') and ../nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.30 = ('4230001', '4230003', '4230007'))">The "Destination/Receiving Hospital Name" field must be documented. Not values will not be accepted.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eProcedures.11 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eProcedures/nem:eProcedures.ProcedureGroup">
			<sch:let name="nemsisElements" value="nem:eProcedures.11" />
			<sch:assert id="Rule_2130" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eProcedures.11) or nem:eProcedures.11 = '') and (nem:eProcedures.03 and nem:eProcedures.03 != '') and nem:eProcedures.02 != '9923003' and (not(../../nem:eDisposition/nem:eDisposition.32) or ../../nem:eDisposition/nem:eDisposition.32 = '' or (not(../../nem:eDisposition/nem:eDisposition.32 = ('4232009')))) and (not(nem:eProcedures.03) or nem:eProcedures.03 = '' or (not(nem:eProcedures.03 = ('268400002','428803005','426220008','46825001','425543005','250863006')) and not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eProcedures.03'][nem:eCustomResults.01 = ('itSNOMED.006')])))  )">Document the authorization criteria for each procedure performed.  </sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>eHistory.06 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eHistory">
      <sch:let name="nemsisElements" value="nem:eHistory.06" />
      <sch:assert id="Rule_2133" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eHistory.06[normalize-space(text()) != '']) + count(nem:eHistory.06[@*]) = 0 and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005', '4228007') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229013', '4229011') and ../nem:eScene/nem:eScene.07 = '9923001')">Document the patient's medication allergies.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eHistory.08 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eHistory">
      <sch:let name="nemsisElements" value="nem:eHistory.08" />
      <sch:assert id="Rule_2134" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eHistory.08) or nem:eHistory.08 = '') and (not(nem:eHistory.08[@NV])) and (not(nem:eHistory.08[@PN])) and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005', '4228007') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013') and ../nem:eScene/nem:eScene.07 = '9923001')">Document the patient's medical history. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eSituation.14 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation/nem:eSituation.WorkRelatedGroup">
      <sch:let name="nemsisElements" value="nem:eSituation.14" />
      <sch:assert id="Rule_2136" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eSituation.14) or nem:eSituation.14 = '') and (not(nem:eSituation.14[@NV])) and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005', '4228007') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013') and ../../nem:eScene/nem:eScene.07 = '9923001')">Document if this injury/illness is work related.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eHistory.CurrentMedsGroup related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eHistory">
      <sch:let name="nemsisElements" value="nem:eHistory.CurrentMedsGroup" />
      <sch:assert id="Rule_2137" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eHistory.CurrentMedsGroup) = 0 and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = '4227001' and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005', '4228007') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013') and ../nem:eScene/nem:eScene.07 = '9923001')">Document the patient's current medication.  Null Values are available.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eExam.AssessmentGroup related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eExam">
      <sch:let name="nemsisElements" value="nem:eExam.AssessmentGroup" />
      <sch:assert id="Rule_2138" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eExam.AssessmentGroup) = 0 and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013') and ../nem:eScene/nem:eScene.07 = '9923001')">Secondary Assessment: Document the pertinent secondary exam</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.17 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.17" />
      <sch:assert id="Rule_2139" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((not(nem:eArrest.17) or nem:eArrest.17 = '') and nem:eArrest.01 = ('3001005', '3001003')) and (../nem:eDisposition/nem:eDisposition.21 = ('4221003') or (../nem:eDisposition/nem:eDisposition.DestinationGroup/nem:eDisposition.01 and ../nem:eDisposition/nem:eDisposition.DestinationGroup/nem:eDisposition.01 != '')))">Document the cardiac rhythm upon arrival at the E.D.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eOther.SignatureGroup related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther">
      <sch:let name="nemsisElements" value="nem:eOther.SignatureGroup" />
      <sch:assert id="Rule_2140" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eOther.SignatureGroup[(nem:eOther.12 = '4512003')]) &lt; 1)">A crew member signature is required for all patient transports.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eOther.SignatureGroup related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eOther">
			<sch:let name="nemsisElements" value="nem:eOther.SignatureGroup" />
			<sch:assert id="Rule_2141" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eOther.SignatureGroup[nem:eOther.12 = '4512005' and count(nem:eOther.13[text() = '4513007']) != 0]) &lt; 1 and (not(../nem:eDisposition/nem:eDisposition.21) or ../nem:eDisposition/nem:eDisposition.21 = '' or (not(../nem:eDisposition/nem:eDisposition.21 = ('4221017','4221015','4221001')))) and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001','4229007') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.30 = ('4230001','4230003') and count(../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.31[text() = '4231017']) = 0 )">A signature from the receiving facility staff must be obtained for every transport.</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>itOther.020 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther">
      <sch:let name="nemsisElements" value="nem:itOther.020" />
      <sch:assert id="Rule_2142" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.020'][nem:eCustomResults.01 = ('itOther.020.100', 'itOther.020.101')])) and (count(../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.31[text() = ('4231001')]) != 0))">Document the AMA Type/What aspects of assessment and interventions the patient/authorized decision maker refused</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itOther.021 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther">
      <sch:let name="nemsisElements" value="nem:itOther.021" />
      <sch:assert id="Rule_2143" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.021'][nem:eCustomResults.01 = ('itOther.021.100', 'itOther.021.101')])) and (count(../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.31[text() = ('4231001')]) != 0))">Document it the AMA signer is unimpaired by alcohol or drugs</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itOther.022 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther">
      <sch:let name="nemsisElements" value="nem:itOther.022" />
      <sch:assert id="Rule_2144" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.022'][nem:eCustomResults.01 = ('itOther.022.100', 'itOther.022.101')])) and (count(../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.31[text() = ('4231001')]) != 0))">Document if signer is capable </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itOther.023 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther">
      <sch:let name="nemsisElements" value="nem:itOther.023" />
      <sch:assert id="Rule_2145" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.023'][nem:eCustomResults.01 = ('itOther.023.100', 'itOther.023.101')])) and (count(../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.31[text() = ('4231001')]) != 0))">Document if the AMA signer was advised to re-contact 9-1-1 as needed</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itOther.024 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther">
      <sch:let name="nemsisElements" value="nem:itOther.024" />
      <sch:assert id="Rule_2146" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.024'][nem:eCustomResults.01 = ('itOther.024.100', 'itOther.024.101')])) and (count(../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.31[text() = ('4231001')]) != 0))">Document if the AMA signer was advised of potential risks and complications</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itOther.025 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther">
      <sch:let name="nemsisElements" value="nem:itOther.025" />
      <sch:assert id="Rule_2147" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.025'][nem:eCustomResults.01 = ('itOther.025.100', 'itOther.025.101')])) and (count(../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.31[text() = ('4231001')]) != 0))">Document if the AMA signer is at least 18 yrs. old or an emancipated minor.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itOther.017 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther">
      <sch:let name="nemsisElements" value="nem:itOther.017" />
      <sch:assert id="Rule_2149" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.017'][nem:eCustomResults.01 = ('itOther.017.100', 'itOther.017.101', 'itOther.017.102', 'itOther.017.103')])) and (count(../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.31[text() = ('4231001')]) != 0))">Document the reason for the AMA.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itOther.018 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther">
      <sch:let name="nemsisElements" value="nem:itOther.018" />
      <sch:assert id="Rule_2150" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.018'][nem:eCustomResults.01 = ('itOther.018.100', 'itOther.018.101', 'itOther.018.102', 'itOther.018.103', 'itOther.018.104', 'itOther.018.105')])) and (count(../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.31[text() = ('4231001')]) != 0))">Document the reason for the AMA.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itOther.019 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther">
      <sch:let name="nemsisElements" value="nem:itOther.019" />
      <sch:assert id="Rule_2151" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((count(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.019'][nem:eCustomResults.01 = ('itOther.019.100', 'itOther.019.101', 'itOther.019.102', 'itOther.019.103', 'itOther.019.104', 'itOther.019.105', 'itOther.019.106')]) = 0) and (count(../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.31[text() = ('4231001')]) != 0))">Document who is with patient  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eOther.SignatureGroup related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther">
      <sch:let name="nemsisElements" value="nem:eOther.SignatureGroup" />
      <sch:assert id="Rule_2152" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eOther.SignatureGroup[(nem:eOther.12 = '4512015')]) &lt; 1 and count(nem:eOther.SignatureGroup[(nem:eOther.12 = '4512017')]) &lt; 1 and (count(../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.31[text() = ('4231001', '4231005', '4231007')]) != 0))">AMA Signature: Patient or  guardian/representative  signature is required when an AMA or Release is requested.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eSituation.13 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:eSituation.13" />
      <sch:assert id="Rule_2153" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eSituation.13) or nem:eSituation.13 = '') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229013'))">Document the final patient acuity </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>ePatient.17 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:ePatient">
      <sch:let name="nemsisElements" value="nem:ePatient.17" />
      <sch:assert id="Rule_2154" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:ePatient.17) or nem:ePatient.17 = '') and (not(nem:ePatient.17[@NV])) and (not(nem:ePatient.17[@PN])) and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005', '4228007') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013') and ../nem:eScene/nem:eScene.07 = '9923001')">Please enter patients DOB.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eHistory.17 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eHistory">
      <sch:let name="nemsisElements" value="nem:eHistory.17" />
      <sch:assert id="Rule_2156" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eHistory.17) or nem:eHistory.17 = '') and (not(nem:eHistory.17[@NV])) and (not(nem:eHistory.17[@PN])) and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005', '4228007') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013') and ../nem:eScene/nem:eScene.07 = '9923001')">Document if this injury/illness is related to alcohol/drug use.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eSituation.11 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eSituation">
			<sch:let name="nemsisElements" value="nem:eSituation.11" />
			<sch:assert id="Rule_2157" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eSituation.11) or nem:eSituation.11 = '') and (not(nem:eSituation.11[@NV]) or (not(nem:eSituation.11[@NV=('7701003')]))) and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001','4228003','4228005') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001','4229003','4229007','4229011','4229013') and ../nem:eScene/nem:eScene.07 != '9923003')">Providers Primary Impression is a required field.  </sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>itDisposition.007 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition">
      <sch:let name="nemsisElements" value="nem:itDisposition.007" />
      <sch:assert id="Rule_2158" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.047'][nem:eCustomResults.01 = ('12- Sharp Grossmont Hospital', '19- Scripps Mercy Hospital San Diego', '22 - Palomar Medical Center', '30- Scripps Memorial Hospital La Jolla', '31- Sharp Memorial Hospital', '32- Tri-City Medical Center', '35- UCSD Medical Center')] and (not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.007']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.007'][nem:eCustomResults.01 = '']))">Please document the date of Base Hospital contact.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.002 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.002" />
      <sch:assert id="Rule_2160" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../nem:eVitals.VitalGroup[((../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.002'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.002'][nem:eCustomResults.01 != '']))]) &lt; 1 and nem:eVitals.02 != '9923003' and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013'))">Document the patient's airway status in the primary assessment. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.15 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.15" />
      <sch:assert id="Rule_2161" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../nem:eVitals.VitalGroup[((nem:eVitals.15 and nem:eVitals.15 != ''))]) &lt; 1 and nem:eVitals.02 != '9923003' and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013'))">Document the Breathing/Respiratory Effort in the Primary Assessment. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.19 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.GlasgowScoreGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.19" />
      <sch:assert id="Rule_2162" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../../nem:eVitals.VitalGroup[((nem:eVitals.GlasgowScoreGroup/nem:eVitals.19 and nem:eVitals.GlasgowScoreGroup/nem:eVitals.19 != ''))]) &lt; 1 and (not(nem:eVitals.19[@NV])) and (not(nem:eVitals.19[@PN])) and ../nem:eVitals.02 != '9923003' and ../../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005') and ../../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013'))">Document the Eye component of the Glasgow Coma Score.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.20 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.GlasgowScoreGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.20" />
      <sch:assert id="Rule_2163" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../../nem:eVitals.VitalGroup[((nem:eVitals.GlasgowScoreGroup/nem:eVitals.20 and nem:eVitals.GlasgowScoreGroup/nem:eVitals.20 != ''))]) &lt; 1 and (not(../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.112'][nem:eCustomResults.01 = ('itDisposition.112.104', 'itDisposition.112.103', 'itDisposition.112.126', 'itDisposition.112.105', 'itDisposition.112.119')])) and (not(nem:eVitals.20[@NV])) and (not(nem:eVitals.20[@PN])) and ../nem:eVitals.02 != '9923003' and ../../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005') and ../../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013'))">Document the Verbal portion of the Glasgow Coma Scale.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.21 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.GlasgowScoreGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.21" />
      <sch:assert id="Rule_2164" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../../nem:eVitals.VitalGroup[((nem:eVitals.GlasgowScoreGroup/nem:eVitals.21 and nem:eVitals.GlasgowScoreGroup/nem:eVitals.21 != ''))]) &lt; 1 and (not(nem:eVitals.21[@NV])) and (not(nem:eVitals.21[@PN])) and ../nem:eVitals.02 != '9923003' and ../../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005') and ../../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013'))">Document the Motor component of the Glasgow Coma Scale.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.26 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.26" />
      <sch:assert id="Rule_2165" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../nem:eVitals.VitalGroup[((nem:eVitals.26 and nem:eVitals.26 != ''))]) &lt; 1 and nem:eVitals.02 != '9923003' and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013'))">Document the Level of Responsiveness (AVPU) for each patient treated/evaluated.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.VitalGroup related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals">
      <sch:let name="nemsisElements" value="nem:eVitals.VitalGroup" />
      <sch:assert id="Rule_2167" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eVitals.VitalGroup[(nem:eVitals.02 != '9923003')]) &lt; 1 and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229011', '4229013', '4229007') and ../nem:eScene/nem:eScene.07 = '9923001')">Vital signs are required for each patient contact per unit.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eExam.03 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eExam/nem:eExam.AssessmentGroup">
      <sch:let name="nemsisElements" value="nem:eExam.03" />
      <sch:assert id="Rule_2168" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eExam.03) or nem:eExam.03 = '') and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.052'][nem:eCustomResults.01 != 'itExam.052.101'] and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005', '4228007') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013') and ../../nem:eScene/nem:eScene.07 = '9923001')">Time of Assessment is a necessary field on each Assessment. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.18 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.18" />
      <sch:assert id="Rule_2169" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((not(nem:eVitals.18[@NV]) or nem:eVitals.18[@NV != '7701001']) and (not(nem:eVitals.18) or nem:eVitals.18 = '') and nem:eVitals.02 != '9923003' and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005', '4228007') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013') and ../../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2024-02-09T00:00:00-06:00')) and (../../nem:eSituation/nem:eSituation.11 = ('R41.82', 'R55', 'R53.1', 'G40.909') or ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.088'][nem:eCustomResults.01 = 'itExam.088.100']))">Blood Glucose Level is required</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eExam.04 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eExam/nem:eExam.AssessmentGroup">
      <sch:let name="nemsisElements" value="nem:eExam.04" />
      <sch:assert id="Rule_2170" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(
  (
    count(../nem:eExam.AssessmentGroup[((nem:eExam.04 and nem:eExam.04 != ''))]) +
    count(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eExam.04'][nem:eCustomResults.01 != ''])
  ) &lt; 1
  and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.052'][nem:eCustomResults.01 != 'itExam.052.101']
  and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001')
  and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005')
  and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013')
)">Document the patient's skin assessment under the assessment.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eExam.20 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eExam/nem:eExam.AssessmentGroup">
      <sch:let name="nemsisElements" value="nem:eExam.20" />
      <sch:assert id="Rule_2171" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.112'][nem:eCustomResults.01 = ('itDisposition.112.104', 'itDisposition.112.103', 'itDisposition.112.126', 'itDisposition.112.105', 'itDisposition.112.119')])) and count(../nem:eExam.AssessmentGroup[((nem:eExam.20 and nem:eExam.20 != ''))]) &lt; 1 and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.052'][nem:eCustomResults.01 != 'itExam.052.101'] and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013'))">Document the patient's Neuro status under the assessment.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eExam.05 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eExam/nem:eExam.AssessmentGroup">
      <sch:let name="nemsisElements" value="nem:eExam.05" />
      <sch:assert id="Rule_2172" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../nem:eExam.AssessmentGroup[((nem:eExam.05 and nem:eExam.05 != ''))]) &lt; 1 and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.052'][nem:eCustomResults.01 != 'itExam.052.101'] and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013'))">Document the patient's head assessment.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eExam.06 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eExam/nem:eExam.AssessmentGroup">
      <sch:let name="nemsisElements" value="nem:eExam.06" />
      <sch:assert id="Rule_2173" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../nem:eExam.AssessmentGroup[((nem:eExam.06 and nem:eExam.06 != ''))]) &lt; 1 and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.052'][nem:eCustomResults.01 != 'itExam.052.101'] and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013'))">Document the patient's Face status under the assessment.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eExam.EyeGroup related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eExam/nem:eExam.AssessmentGroup">
      <sch:let name="nemsisElements" value="nem:eExam.EyeGroup" />
      <sch:assert id="Rule_2174" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../nem:eExam.AssessmentGroup[(count(nem:eExam.EyeGroup/nem:*[@* or string-length(normalize-space(.)) &gt; 0]) != 0)]) &lt; 1 and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.052'][nem:eCustomResults.01 != 'itExam.052.101'] and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001','4228003','4228005') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001','4229003','4229007','4229011','4229013'))">Document the patient's eye assessment.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eExam.07 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eExam/nem:eExam.AssessmentGroup">
			<sch:let name="nemsisElements" value="nem:eExam.07" />
			<sch:assert id="Rule_2175" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../nem:eExam.AssessmentGroup[(nem:eExam.07 and nem:eExam.07 != '')]) &lt; 1 and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.052'][nem:eCustomResults.01 != 'itExam.052.101'] and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001','4228003','4228005') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001','4229003','4229007','4229011','4229013')  )">Document the patient's neck assessment under the assessment.  </sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>eExam.19 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eExam/nem:eExam.AssessmentGroup">
      <sch:let name="nemsisElements" value="nem:eExam.19" />
      <sch:assert id="Rule_2176" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../nem:eExam.AssessmentGroup[((nem:eExam.19 and nem:eExam.19 != ''))]) &lt; 1 and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.052'][nem:eCustomResults.01 != 'itExam.052.101'] and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013'))">Document the patient's mental status assessment under the assessment.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eExam.LungGroup related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eExam/nem:eExam.AssessmentGroup">
      <sch:let name="nemsisElements" value="nem:eExam.LungGroup" />
      <sch:assert id="Rule_2177" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../nem:eExam.AssessmentGroup[(count(nem:eExam.LungGroup/nem:*[@* or string-length(normalize-space(.)) &gt; 0]) != 0)]) &lt; 1 and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.052'][nem:eCustomResults.01 != 'itExam.052.101'] and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001','4228003','4228005') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001','4229003','4229007','4229011','4229013'))">Document the patient's Lung assessment.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eExam.ChestGroup related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eExam/nem:eExam.AssessmentGroup">
      <sch:let name="nemsisElements" value="nem:eExam.ChestGroup" />
      <sch:assert id="Rule_2178" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../nem:eExam.AssessmentGroup[(count(nem:eExam.ChestGroup/nem:*[@* or string-length(normalize-space(.)) &gt; 0]) != 0)]) &lt; 1 and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.052'][nem:eCustomResults.01 != 'itExam.052.101'] and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001','4228003','4228005') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001','4229003','4229007','4229011','4229013'))">Document the patient's Chest  assessment.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eExam.09 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eExam/nem:eExam.AssessmentGroup">
      <sch:let name="nemsisElements" value="nem:eExam.09" />
      <sch:assert id="Rule_2179" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../nem:eExam.AssessmentGroup[((nem:eExam.09 and nem:eExam.09 != ''))]) &lt; 1 and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.052'][nem:eCustomResults.01 != 'itExam.052.101'] and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013') and ../../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2024-08-17T00:00:00'))">Document the patient's Heart status under the assessment.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eExam.AbdomenGroup related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eExam/nem:eExam.AssessmentGroup">
      <sch:let name="nemsisElements" value="nem:eExam.AbdomenGroup" />
      <sch:assert id="Rule_2180" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../nem:eExam.AssessmentGroup[(count(nem:eExam.AbdomenGroup/nem:*[@* or string-length(normalize-space(.)) &gt; 0]) != 0)]) &lt; 1 and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.052'][nem:eCustomResults.01 != 'itExam.052.101'] and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001','4228003','4228005') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001','4229003','4229007','4229011','4229013'))">Document the patient's abdomen assessment. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
    <sch:pattern>
    <sch:title>eExam.12 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eExam/nem:eExam.AssessmentGroup">
      <sch:let name="nemsisElements" value="nem:eExam.12" />
      <sch:assert id="Rule_2181" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((count(../nem:eExam.AssessmentGroup[((nem:eExam.12 and nem:eExam.12 != ''))]) + count(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eExam.12'][nem:eCustomResults.01 != ''])) &lt; 1 and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.052'][nem:eCustomResults.01 != 'itExam.052.101'] and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013'))">Document the patient's Pelvis/GU status under the assessment.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
	<sch:pattern>
		<sch:title>eExam.SpineGroup related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eExam/nem:eExam.AssessmentGroup">
			<sch:let name="nemsisElements" value="nem:eExam.SpineGroup" />
			<sch:assert id="Rule_2182" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../nem:eExam.AssessmentGroup[(count(nem:eExam.SpineGroup/nem:*[@* or string-length(normalize-space(.)) &gt; 0]) != 0)]) &lt; 1 and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.052'][nem:eCustomResults.01 != 'itExam.052.101'] and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001','4228003','4228005') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001','4229003','4229007','4229011','4229013'))">Document the patient's spine assessment.</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
	<sch:pattern>
		<sch:title>eExam.ExtremityGroup related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eExam/nem:eExam.AssessmentGroup">
			<sch:let name="nemsisElements" value="nem:eExam.ExtremityGroup" />
			<sch:assert id="Rule_2183" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../nem:eExam.AssessmentGroup[(count(nem:eExam.ExtremityGroup/nem:*[@* or string-length(normalize-space(.)) &gt; 0]) != 0)]) &lt; 1 and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.052'][nem:eCustomResults.01 != 'itExam.052.101'] and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001','4228003','4228005') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001','4229003','4229007','4229011','4229013'))">Document the patient's extremity assessment.</sch:assert>
		</sch:rule>
	</sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>ePatient.02 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:ePatient/nem:ePatient.PatientNameGroup">
      <sch:let name="nemsisElements" value="nem:ePatient.02" />
      <sch:assert id="Rule_2184" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:ePatient.02) or nem:ePatient.02 = '') and (not(nem:ePatient.02[@NV])) and (not(nem:ePatient.02[@PN])) and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005', '4228007') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013') and ../../nem:eScene/nem:eScene.07 = '9923001')">Please document the patient's Last Name.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>ePatient.02 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:ePatient/nem:ePatient.PatientNameGroup">
      <sch:let name="nemsisElements" value="nem:ePatient.02" />
      <sch:assert id="Rule_2185" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:ePatient.02) or nem:ePatient.02 = '') and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.014'][nem:eCustomResults.01 = 'itArrest.014.100'] and ../../nem:eArrest/nem:eArrest.02 = ('3002013', '3002009', '3002011', '3002007', '3002003', '3002005', '3002001') and ../../nem:eArrest/nem:eArrest.18 = ('3018001', '3018003', '3018011', '3018005', '3018009', '3018007') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005', '4228007') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013') and ../../nem:eScene/nem:eScene.07 = '9923001' and ../../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2024-11-19T00:00:00'))">The "Last Name" field must be documented. Not values will not be accepted by CARES</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>ePatient.03 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:ePatient/nem:ePatient.PatientNameGroup">
      <sch:let name="nemsisElements" value="nem:ePatient.03" />
      <sch:assert id="Rule_2186" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:ePatient.03) or nem:ePatient.03 = '') and (not(nem:ePatient.03[@NV])) and (not(nem:ePatient.03[@PN])) and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005', '4228007') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013') and ../../nem:eScene/nem:eScene.07 = '9923001')">Please document the patient's First Name.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>ePatient.03 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:ePatient/nem:ePatient.PatientNameGroup">
      <sch:let name="nemsisElements" value="nem:ePatient.03" />
      <sch:assert id="Rule_2187" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:ePatient.03) or nem:ePatient.03 = '') and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.014'][nem:eCustomResults.01 = 'itArrest.014.100'] and ../../nem:eArrest/nem:eArrest.02 = ('3002013', '3002009', '3002011', '3002007', '3002003', '3002005', '3002001') and ../../nem:eArrest/nem:eArrest.18 = ('3018001', '3018003', '3018011', '3018005', '3018009', '3018007') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005', '4228007') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013') and ../../nem:eScene/nem:eScene.07 = '9923001' and ../../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2024-11-19T00:00:00'))">The "First Name" field must be documented. Not values will not be accepted by CARES</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>ePatient.15 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:ePatient/nem:ePatient.AgeGroup">
      <sch:let name="nemsisElements" value="nem:ePatient.15" />
      <sch:assert id="Rule_2188" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((not(nem:ePatient.15) or nem:ePatient.15 = '') and (not(nem:ePatient.15[@NV])) and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005', '4228007') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013') and ../../nem:eScene/nem:eScene.07 = '9923001') and (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.014'][nem:eCustomResults.01 != 'itArrest.014.100'] or (not(../../nem:eArrest/nem:eArrest.02) or ../../nem:eArrest/nem:eArrest.02 = '' or (not(../../nem:eArrest/nem:eArrest.02 = ('3002001', '3002003', '3002005', '3002007', '3002011', '3002013', '3002009')))) or (not(../../nem:eArrest/nem:eArrest.18) or ../../nem:eArrest/nem:eArrest.18 = '' or (not(../../nem:eArrest/nem:eArrest.18 = ('3018001', '3018003', '3018011', '3018005', '3018009', '3018007'))))))">Age is a required field.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>ePatient.13 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:ePatient">
      <sch:let name="nemsisElements" value="nem:ePatient.13" />
      <sch:assert id="Rule_2189" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((not(nem:ePatient.13) or nem:ePatient.13 = '') and (not(nem:ePatient.13[@NV])) and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005', '4228007') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013') and ../nem:eScene/nem:eScene.07 = '9923001' and ../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2024-10-01T00:00:00')) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.014'][nem:eCustomResults.01 != 'itArrest.014.100'] or (not(../nem:eArrest/nem:eArrest.02) or ../nem:eArrest/nem:eArrest.02 = '' or (not(../nem:eArrest/nem:eArrest.02 = ('3002001', '3002003', '3002005', '3002007', '3002009', '3002013', '3002011')))) or (not(../nem:eArrest/nem:eArrest.18) or ../nem:eArrest/nem:eArrest.18 = '' or (not(../nem:eArrest/nem:eArrest.18 = ('3018001', '3018003', '3018011', '3018005', '3018009', '3018007'))))))">Gender is a required field.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>ePatient.13 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:ePatient">
      <sch:let name="nemsisElements" value="nem:ePatient.13" />
      <sch:assert id="Rule_2190" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:ePatient.13) or nem:ePatient.13 = '') and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.014'][nem:eCustomResults.01 = 'itArrest.014.100'] and ../nem:eArrest/nem:eArrest.02 = ('3002013', '3002009', '3002011', '3002007', '3002003', '3002005', '3002001') and ../nem:eArrest/nem:eArrest.18 = ('3018001', '3018003', '3018011', '3018005', '3018009', '3018007') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005', '4228007') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013') and ../nem:eScene/nem:eScene.07 = '9923001' and ../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2024-10-01T00:00:00'))">The "Gender" field must be documented. Not values will not be accepted by CARES</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itExam.088 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eExam">
      <sch:let name="nemsisElements" value="nem:itExam.088" />
      <sch:assert id="Rule_2191" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.088']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.088'][nem:eCustomResults.01 = '']) and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005', '4228007') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013') and ../nem:eScene/nem:eScene.07 != '9923003')">Is this a possible stroke incident?</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itDisposition.041 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition">
      <sch:let name="nemsisElements" value="nem:itDisposition.041" />
      <sch:assert id="Rule_2192" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.041']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.041'][nem:eCustomResults.01 = '']) and nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005', '4228007') and nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013') and ../nem:eScene/nem:eScene.07 != '9923003')">Select if this patient is a possible STEMI</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itDisposition.087 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition">
      <sch:let name="nemsisElements" value="nem:itDisposition.087" />
      <sch:assert id="Rule_2193" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.087']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.087'][nem:eCustomResults.01 = '']) and nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229007') and nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.30 = ('4230001', '4230003') and ../nem:eScene/nem:eScene.07 = '9923001' and ../nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and ../nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and ../nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Please enter closest hospital</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itTimes.015 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eTimes">
      <sch:let name="nemsisElements" value="nem:itTimes.015" />
      <sch:assert id="Rule_2194" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itTimes.015']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itTimes.015'][nem:eCustomResults.01 = '']) and ../nem:eDisposition/nem:eDisposition.32 = ('4232009'))">Please complete CCT Date/Time Arrived at Initial Hospital</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>itDisposition.088 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport">
			<sch:let name="nemsisElements" value="nem:itDisposition.088" />
			<sch:assert id="Rule_2195" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.088']) or nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.088'][nem:eCustomResults.01 = '']) and (nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.088'][not(nem:eCustomResults.01[@NV])]) and nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001','4229007') and nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.30 = ('4230001','4230003') and nem:eScene/nem:eScene.07 = '9923001' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50921' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50689' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50365' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51842' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51843' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50757' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50675' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50987' )">Please enter a Requested Hospital.</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>eDisposition.27 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.27" />
      <sch:assert id="Rule_2196" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eDisposition.27) or nem:eDisposition.27 = '' or (not(nem:eDisposition.27 = ('4227001', '4227005', '4227007', '4227009', '4227011')))) and (nem:eDisposition.27 and nem:eDisposition.27 != ''))">For TPV submissions - Unit Disposition  must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.28 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.28" />
      <sch:assert id="Rule_2197" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eDisposition.28) or nem:eDisposition.28 = '' or (not(nem:eDisposition.28 = ('4228001', '4228003', '4228005', '4228007', '4228009')))) and (nem:eDisposition.28 and nem:eDisposition.28 != '')) or ((not(nem:eDisposition.28[@NV]) or (not(nem:eDisposition.28[@NV=('7701001', '7701003')]))) and (nem:eDisposition.28[@NV]))))">For TPV submissions - Patient Evaluation/Care Disposition  must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.019 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.019" />
      <sch:assert id="Rule_2198" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../nem:eVitals.VitalGroup[((../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.019'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.019'][nem:eCustomResults.01 != '']))]) &lt; 1 and nem:eVitals.02 != '9923003' and (nem:eVitals.HeartRateGroup/nem:eVitals.10 and nem:eVitals.HeartRateGroup/nem:eVitals.10 != '') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005', '4228007') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013'))">Document pulse quality.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eScene.06 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eScene">
			<sch:let name="nemsisElements" value="nem:eScene.06" />
			<sch:assert id="Rule_2199" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001')) and ((not(nem:eScene.06) or nem:eScene.06 = '') or nem:eScene.06 = '2707003'))">Document the Number of Patients at Scene</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>eOther.SignatureGroup related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther">
      <sch:let name="nemsisElements" value="nem:eOther.SignatureGroup" />
      <sch:assert id="Rule_2200" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eOther.SignatureGroup[nem:eOther.12 = '4512015']) &lt; 1 and count(nem:eOther.SignatureGroup[nem:eOther.12 = '4512017']) &lt; 1 and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001','4228003','4228005','4228007') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001','4229007','4229011','4229013','4229005') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.30 = ('4230001','4230003') and ../nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and ../nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Signature: Patient or  guardian/representative must be obtained.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.01 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.01" />
      <sch:assert id="Rule_2201" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eArrest.01) or nem:eArrest.01 = '' or (not(nem:eArrest.01 = ('3001001', '3001005', '3001003')) and not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eArrest.01'][nem:eCustomResults.01 = ('it3001.100')]))) and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005', '4228007') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013') and ../nem:eScene/nem:eScene.07 != '9923003' and ../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2024-08-24T00:00:00'))">Please complete the Cardiac Arrest field with an option other than Not Recorded or N/A.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eSituation.02 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eSituation">
			<sch:let name="nemsisElements" value="nem:eSituation.02" />
			<sch:assert id="Rule_2202" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eSituation.02) or nem:eSituation.02 = '' or (not(nem:eSituation.02 = ('9922001','9922005')))) and (nem:eSituation.02 and nem:eSituation.02 != '')) or ((not(nem:eSituation.02[@NV]) or (not(nem:eSituation.02[@NV=('7701001','7701003')]))) and (nem:eSituation.02[@NV]))))">For TPV submissions - Possible Injury must be complete with a LEMSIS value/code.</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>eVitals.27 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.PainScaleGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.27" />
      <sch:assert id="Rule_2203" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../../nem:eVitals.VitalGroup[((nem:eVitals.PainScaleGroup/nem:eVitals.27 and nem:eVitals.PainScaleGroup/nem:eVitals.27 != ''))]) &lt; 1 and count(../../nem:eVitals.VitalGroup[((nem:eVitals.PainScaleGroup/nem:eVitals.27[@NV] and nem:eVitals.PainScaleGroup/nem:eVitals.27[@NV=('7701001', '7701003')]))]) &lt; 1 and count(../../nem:eVitals.VitalGroup[((nem:eVitals.PainScaleGroup/nem:eVitals.27[@PN]))]) &lt; 1 and ../nem:eVitals.02 != '9923003' and ../../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005') and ../../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013'))">Document the level of pain experienced by the patient</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itPatient.025 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:ePatient">
      <sch:let name="nemsisElements" value="nem:itPatient.025" />
      <sch:assert id="Rule_2204" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itPatient.025']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itPatient.025'][nem:eCustomResults.01 = '']) and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005', '4228007') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013'))">Document if Patient is Homeless or not</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eSituation.09 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eSituation">
			<sch:let name="nemsisElements" value="nem:eSituation.09" />
			<sch:assert id="Rule_2205" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eSituation.09) or nem:eSituation.09 = '') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001','4228003','4228005') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001','4229003','4229007','4229011','4229013') and (not(nem:eSituation.09[@NV]) or (not(nem:eSituation.09[@NV=('7701003')]))) and ../nem:eScene/nem:eScene.07 = '9923001')">Primary Symptom is a required field.</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
		<sch:title>eDisposition.27 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
			<sch:let name="nemsisElements" value="nem:eDisposition.27" />
			<sch:assert id="Rule_2209" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eDisposition.27 = ('4227005')  ) and ((../../nem:eTimes/nem:eTimes.06 and ../../nem:eTimes/nem:eTimes.06 != '') or (../../nem:eTimes/nem:eTimes.07 and ../../nem:eTimes/nem:eTimes.07 != '') or (../../nem:eTimes/nem:eTimes.08 and ../../nem:eTimes/nem:eTimes.08 != '') or (../../nem:eTimes/nem:eTimes.09 and ../../nem:eTimes/nem:eTimes.09 != '') or (../../nem:eTimes/nem:eTimes.11 and ../../nem:eTimes/nem:eTimes.11 != '') or (../../nem:eTimes/nem:eTimes.12 and ../../nem:eTimes/nem:eTimes.12 != '')))">Cancelled Prior to Arrival at Scene incidents should NOT have times entered for Arrived on Scene/at Patient, Transfer of Care, Unit Left Scene, Arrived at Dest, or Dest TOC.</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>eTimes.08 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eTimes">
      <sch:let name="nemsisElements" value="nem:eTimes.08" />
      <sch:assert id="Rule_2210" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eTimes.08) or nem:eTimes.08 = '') and (not(nem:eTimes.08[@NV])) and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229003'))">Document the time patient care was transferred to another field provider or law enforcement.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eCrew.01 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eCrew/nem:eCrew.CrewGroup">
      <sch:let name="nemsisElements" value="nem:eCrew.01" />
      <sch:assert id="Rule_2217" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 != '')) and (((not(nem:eCrew.01) or nem:eCrew.01 = '') and (not(nem:eCrew.01[@NV]))) or ((not(nem:eCrew.01[@NV]) or (not(nem:eCrew.01[@NV=('7701001', '7701003')]))) and (not(nem:eCrew.01) or nem:eCrew.01 = ''))))">Enter Crew Member ID </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eCrew.CrewGroup related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eCrew">
      <sch:let name="nemsisElements" value="nem:eCrew.CrewGroup" />
      <sch:assert id="Rule_2218" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eCrew.CrewGroup) &lt; 2)">Please add at least 2 crew members to the incident.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eTimes.05 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eTimes">
      <sch:let name="nemsisElements" value="nem:eTimes.05" />
      <sch:assert id="Rule_2220" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(nem:eTimes.05 != '' and nem:eTimes.01 != '' and xs:dateTime(nem:eTimes.05) &lt; xs:dateTime(nem:eTimes.01) or nem:eTimes.05 != '' and nem:eTimes.02 != '' and xs:dateTime(nem:eTimes.05) &lt; xs:dateTime(nem:eTimes.02) or nem:eTimes.05 != '' and nem:eTimes.03 != '' and xs:dateTime(nem:eTimes.05) &lt; xs:dateTime(nem:eTimes.03) or nem:eTimes.05 != '' and nem:eTimes.04 != '' and xs:dateTime(nem:eTimes.05) &lt; xs:dateTime(nem:eTimes.04) or nem:eTimes.05 != '' and nem:eTimes.06 != '' and xs:dateTime(nem:eTimes.05) &gt; xs:dateTime(nem:eTimes.06) or nem:eTimes.05 != '' and nem:eTimes.07 != '' and xs:dateTime(nem:eTimes.05) &gt; xs:dateTime(nem:eTimes.07) or nem:eTimes.05 != '' and nem:eTimes.08 != '' and xs:dateTime(nem:eTimes.05) &gt; xs:dateTime(nem:eTimes.08) or nem:eTimes.05 != '' and nem:eTimes.09 != '' and xs:dateTime(nem:eTimes.05) &gt; xs:dateTime(nem:eTimes.09) or nem:eTimes.05 != '' and nem:eTimes.10 != '' and xs:dateTime(nem:eTimes.05) &gt; xs:dateTime(nem:eTimes.10) or nem:eTimes.05 != '' and nem:eTimes.11 != '' and xs:dateTime(nem:eTimes.05) &gt; xs:dateTime(nem:eTimes.11) or nem:eTimes.05 != '' and nem:eTimes.12 != '' and xs:dateTime(nem:eTimes.05) &gt; xs:dateTime(nem:eTimes.12) or nem:eTimes.05 != '' and nem:eTimes.13 != '' and xs:dateTime(nem:eTimes.05) &gt; xs:dateTime(nem:eTimes.13) or nem:eTimes.05 != '' and nem:eTimes.14 != '' and xs:dateTime(nem:eTimes.05) &gt; xs:dateTime(nem:eTimes.14) or nem:eTimes.05 != '' and nem:eTimes.15 != '' and xs:dateTime(nem:eTimes.05) &gt; xs:dateTime(nem:eTimes.15) or nem:eTimes.05 != '' and nem:eTimes.16 != '' and xs:dateTime(nem:eTimes.05) &gt; xs:dateTime(nem:eTimes.16))">Unit En Route appears to be out of sequence with other recorded date/time value(s).</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eTimes.01 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eTimes">
      <sch:let name="nemsisElements" value="nem:eTimes.01" />
      <sch:assert id="Rule_2221" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(nem:eTimes.01 != '' and nem:eTimes.02 != '' and xs:dateTime(nem:eTimes.01) &gt; xs:dateTime(nem:eTimes.02) or nem:eTimes.01 != '' and nem:eTimes.03 != '' and xs:dateTime(nem:eTimes.01) &gt; xs:dateTime(nem:eTimes.03) or nem:eTimes.01 != '' and nem:eTimes.04 != '' and xs:dateTime(nem:eTimes.01) &gt; xs:dateTime(nem:eTimes.04) or nem:eTimes.01 != '' and nem:eTimes.05 != '' and xs:dateTime(nem:eTimes.01) &gt; xs:dateTime(nem:eTimes.05) or nem:eTimes.01 != '' and nem:eTimes.06 != '' and xs:dateTime(nem:eTimes.01) &gt; xs:dateTime(nem:eTimes.06) or nem:eTimes.01 != '' and nem:eTimes.07 != '' and xs:dateTime(nem:eTimes.01) &gt; xs:dateTime(nem:eTimes.07) or nem:eTimes.01 != '' and nem:eTimes.08 != '' and xs:dateTime(nem:eTimes.01) &gt; xs:dateTime(nem:eTimes.08) or nem:eTimes.01 != '' and nem:eTimes.09 != '' and xs:dateTime(nem:eTimes.01) &gt; xs:dateTime(nem:eTimes.09) or nem:eTimes.01 != '' and nem:eTimes.10 != '' and xs:dateTime(nem:eTimes.01) &gt; xs:dateTime(nem:eTimes.10) or nem:eTimes.01 != '' and nem:eTimes.11 != '' and xs:dateTime(nem:eTimes.01) &gt; xs:dateTime(nem:eTimes.11) or nem:eTimes.01 != '' and nem:eTimes.12 != '' and xs:dateTime(nem:eTimes.01) &gt; xs:dateTime(nem:eTimes.12) or nem:eTimes.01 != '' and nem:eTimes.13 != '' and xs:dateTime(nem:eTimes.01) &gt; xs:dateTime(nem:eTimes.13) or nem:eTimes.01 != '' and nem:eTimes.14 != '' and xs:dateTime(nem:eTimes.01) &gt; xs:dateTime(nem:eTimes.14) or nem:eTimes.01 != '' and nem:eTimes.15 != '' and xs:dateTime(nem:eTimes.01) &gt; xs:dateTime(nem:eTimes.15) or nem:eTimes.01 != '' and nem:eTimes.16 != '' and xs:dateTime(nem:eTimes.01) &gt; xs:dateTime(nem:eTimes.16))">PSAP appears to be out of sequence with other recorded date/time value(s).</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eTimes.06 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eTimes">
      <sch:let name="nemsisElements" value="nem:eTimes.06" />
      <sch:assert id="Rule_2222" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(nem:eTimes.06 != '' and nem:eTimes.01 != '' and xs:dateTime(nem:eTimes.06) &lt; xs:dateTime(nem:eTimes.01) or nem:eTimes.06 != '' and nem:eTimes.02 != '' and xs:dateTime(nem:eTimes.06) &lt; xs:dateTime(nem:eTimes.02) or nem:eTimes.06 != '' and nem:eTimes.03 != '' and xs:dateTime(nem:eTimes.06) &lt; xs:dateTime(nem:eTimes.03) or nem:eTimes.06 != '' and nem:eTimes.04 != '' and xs:dateTime(nem:eTimes.06) &lt; xs:dateTime(nem:eTimes.04) or nem:eTimes.06 != '' and nem:eTimes.05 != '' and xs:dateTime(nem:eTimes.06) &lt; xs:dateTime(nem:eTimes.05) or nem:eTimes.06 != '' and nem:eTimes.07 != '' and xs:dateTime(nem:eTimes.06) &gt; xs:dateTime(nem:eTimes.07) or nem:eTimes.06 != '' and nem:eTimes.08 != '' and xs:dateTime(nem:eTimes.06) &gt; xs:dateTime(nem:eTimes.08) or nem:eTimes.06 != '' and nem:eTimes.09 != '' and xs:dateTime(nem:eTimes.06) &gt; xs:dateTime(nem:eTimes.09) or nem:eTimes.06 != '' and nem:eTimes.10 != '' and xs:dateTime(nem:eTimes.06) &gt; xs:dateTime(nem:eTimes.10) or nem:eTimes.06 != '' and nem:eTimes.10 != '' and xs:dateTime(nem:eTimes.06) &gt; xs:dateTime(nem:eTimes.10) or nem:eTimes.06 != '' and nem:eTimes.11 != '' and xs:dateTime(nem:eTimes.06) &gt; xs:dateTime(nem:eTimes.11) or nem:eTimes.06 != '' and nem:eTimes.12 != '' and xs:dateTime(nem:eTimes.06) &gt; xs:dateTime(nem:eTimes.12) or nem:eTimes.06 != '' and nem:eTimes.13 != '' and xs:dateTime(nem:eTimes.06) &gt; xs:dateTime(nem:eTimes.13) or nem:eTimes.06 != '' and nem:eTimes.14 != '' and xs:dateTime(nem:eTimes.06) &gt; xs:dateTime(nem:eTimes.14) or nem:eTimes.06 != '' and nem:eTimes.15 != '' and xs:dateTime(nem:eTimes.06) &gt; xs:dateTime(nem:eTimes.15) or nem:eTimes.06 != '' and nem:eTimes.16 != '' and xs:dateTime(nem:eTimes.06) &gt; xs:dateTime(nem:eTimes.16))">Unit Arrived on Scene appears to be out of sequence with other recorded date/time value(s).</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eTimes.11 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eTimes">
      <sch:let name="nemsisElements" value="nem:eTimes.11" />
      <sch:assert id="Rule_2223" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(nem:eTimes.11 != '' and nem:eTimes.01 != '' and xs:dateTime(nem:eTimes.11) &lt; xs:dateTime(nem:eTimes.01) or nem:eTimes.11 != '' and nem:eTimes.02 != '' and xs:dateTime(nem:eTimes.11) &lt; xs:dateTime(nem:eTimes.02) or nem:eTimes.11 != '' and nem:eTimes.03 != '' and xs:dateTime(nem:eTimes.11) &lt; xs:dateTime(nem:eTimes.03) or nem:eTimes.11 != '' and nem:eTimes.04 != '' and xs:dateTime(nem:eTimes.11) &lt; xs:dateTime(nem:eTimes.04) or nem:eTimes.11 != '' and nem:eTimes.05 != '' and xs:dateTime(nem:eTimes.11) &lt; xs:dateTime(nem:eTimes.05) or nem:eTimes.11 != '' and nem:eTimes.06 != '' and xs:dateTime(nem:eTimes.11) &lt; xs:dateTime(nem:eTimes.06) or nem:eTimes.11 != '' and nem:eTimes.07 != '' and xs:dateTime(nem:eTimes.11) &lt; xs:dateTime(nem:eTimes.07) or nem:eTimes.11 != '' and nem:eTimes.08 != '' and xs:dateTime(nem:eTimes.11) &lt; xs:dateTime(nem:eTimes.08) or nem:eTimes.11 != '' and nem:eTimes.09 != '' and xs:dateTime(nem:eTimes.11) &lt; xs:dateTime(nem:eTimes.09) or nem:eTimes.11 != '' and nem:eTimes.10 != '' and xs:dateTime(nem:eTimes.11) &lt; xs:dateTime(nem:eTimes.10) or nem:eTimes.11 != '' and nem:eTimes.16 != '' and xs:dateTime(nem:eTimes.11) &gt; xs:dateTime(nem:eTimes.16) or nem:eTimes.11 != '' and nem:eTimes.15 != '' and xs:dateTime(nem:eTimes.11) &gt; xs:dateTime(nem:eTimes.15) or nem:eTimes.11 != '' and nem:eTimes.14 != '' and xs:dateTime(nem:eTimes.11) &gt; xs:dateTime(nem:eTimes.14) or nem:eTimes.11 != '' and nem:eTimes.13 != '' and xs:dateTime(nem:eTimes.11) &gt; xs:dateTime(nem:eTimes.13) or nem:eTimes.11 != '' and nem:eTimes.12 != '' and xs:dateTime(nem:eTimes.11) &gt; xs:dateTime(nem:eTimes.12))">Patient Arrived at Destination appears to be out of sequence with other recorded date/time value(s).</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eTimes.13 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eTimes">
      <sch:let name="nemsisElements" value="nem:eTimes.13" />
      <sch:assert id="Rule_2224" role="[FATAL]" diagnostics="nemsisDiagnostic" test="not((not(nem:eTimes.13) or nem:eTimes.13 = ''))">Unit Back in Service Time is a mandatory field.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>ePatient.14 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:ePatient">
      <sch:let name="nemsisElements" value="nem:ePatient.14" />
      <sch:assert id="Rule_2226" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((../nem:eTimes/nem:eTimes.07 and ../nem:eTimes/nem:eTimes.07 != '')) and (((nem:ePatient.14[@NV] and nem:ePatient.14[@NV = '7701001']) and (not(nem:ePatient.14) or nem:ePatient.14 = '')) or ((not(nem:ePatient.14) or nem:ePatient.14 = '') and (not(nem:ePatient.14[@NV])))))">Enter patient's race.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eTimes.12 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eTimes">
      <sch:let name="nemsisElements" value="nem:eTimes.12" />
      <sch:assert id="Rule_2227" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eTimes.11 and nem:eTimes.11 != '') and nem:eTimes.12 != '' and nem:eTimes.11 != '' and xs:dateTime(nem:eTimes.12) &lt; xs:dateTime(nem:eTimes.11))">Destination Patient Transfer of Care Date/Time is before Patient Arrived Date/Time </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.02 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.02" />
      <sch:assert id="Rule_2228" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eVitals.02) or nem:eVitals.02 = '') and (nem:eVitals.01 and nem:eVitals.01 != ''))">Vitals Obtained Prior to this Units EMS Care Not Documented
</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eTimes.03 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eTimes">
      <sch:let name="nemsisElements" value="nem:eTimes.03" />
      <sch:assert id="Rule_2229" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(nem:eTimes.03 != '' and nem:eTimes.05 != '' and xs:dateTime(nem:eTimes.03) &gt; xs:dateTime(nem:eTimes.05) or nem:eTimes.03 != '' and nem:eTimes.06 != '' and xs:dateTime(nem:eTimes.03) &gt; xs:dateTime(nem:eTimes.06) or nem:eTimes.03 != '' and nem:eTimes.07 != '' and xs:dateTime(nem:eTimes.03) &gt; xs:dateTime(nem:eTimes.07) or nem:eTimes.03 != '' and nem:eTimes.08 != '' and xs:dateTime(nem:eTimes.03) &gt; xs:dateTime(nem:eTimes.08) or nem:eTimes.03 != '' and nem:eTimes.09 != '' and xs:dateTime(nem:eTimes.03) &gt; xs:dateTime(nem:eTimes.09) or nem:eTimes.03 != '' and nem:eTimes.11 != '' and xs:dateTime(nem:eTimes.03) &gt; xs:dateTime(nem:eTimes.11) or nem:eTimes.03 != '' and nem:eTimes.12 != '' and xs:dateTime(nem:eTimes.03) &gt; xs:dateTime(nem:eTimes.12) or nem:eTimes.03 != '' and nem:eTimes.14 != '' and xs:dateTime(nem:eTimes.03) &gt; xs:dateTime(nem:eTimes.14))">Unit Notified by Dispatch appears to be out of sequence with other recorded date/time value(s).  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eTimes.09 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eTimes">
      <sch:let name="nemsisElements" value="nem:eTimes.09" />
      <sch:assert id="Rule_2230" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(nem:eTimes.09 != '' and nem:eTimes.02 != '' and xs:dateTime(nem:eTimes.09) &lt; xs:dateTime(nem:eTimes.02) or nem:eTimes.09 != '' and nem:eTimes.03 != '' and xs:dateTime(nem:eTimes.09) &lt; xs:dateTime(nem:eTimes.03) or nem:eTimes.09 != '' and nem:eTimes.05 != '' and xs:dateTime(nem:eTimes.09) &lt; xs:dateTime(nem:eTimes.05) or nem:eTimes.09 != '' and nem:eTimes.06 != '' and xs:dateTime(nem:eTimes.09) &lt; xs:dateTime(nem:eTimes.06) or nem:eTimes.09 != '' and nem:eTimes.07 != '' and xs:dateTime(nem:eTimes.09) &lt; xs:dateTime(nem:eTimes.07) or nem:eTimes.09 != '' and nem:eTimes.08 != '' and xs:dateTime(nem:eTimes.09) &lt; xs:dateTime(nem:eTimes.08) or nem:eTimes.09 != '' and nem:eTimes.11 != '' and xs:dateTime(nem:eTimes.09) &gt; xs:dateTime(nem:eTimes.11) or nem:eTimes.09 != '' and nem:eTimes.12 != '' and xs:dateTime(nem:eTimes.09) &gt; xs:dateTime(nem:eTimes.12) or nem:eTimes.09 != '' and nem:eTimes.14 != '' and xs:dateTime(nem:eTimes.09) &gt; xs:dateTime(nem:eTimes.14))">Unit Left Scene appears to be out of sequence with other recorded date/time value(s). </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eSituation.12 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:eSituation.12" />
      <sch:assert id="Rule_2231" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eSituation.12 and nem:eSituation.12 != '') and (not(nem:eSituation.11) or nem:eSituation.11 = ''))">Providers Secondary Impressions must be blank when Providers Primary Impression is blank. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eRecord.01 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eRecord">
      <sch:let name="nemsisElements" value="nem:eRecord.01" />
      <sch:assert id="Rule_2232" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eRecord.01) or nem:eRecord.01 = ''))">Patient Care Report Number is a mandatory field. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eResponse.13 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eResponse">
      <sch:let name="nemsisElements" value="nem:eResponse.13" />
      <sch:assert id="Rule_2233" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eResponse.13) or nem:eResponse.13 = ''))">EMS Vehicle (Unit) Number is a mandatory field.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eResponse.14 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eResponse">
      <sch:let name="nemsisElements" value="nem:eResponse.14" />
      <sch:assert id="Rule_2234" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eResponse.14) or nem:eResponse.14 = ''))">EMS Unit Call Sign is a mandatory field. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.32 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition">
      <sch:let name="nemsisElements" value="nem:eDisposition.32" />
      <sch:assert id="Rule_2235" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eDisposition.32) or nem:eDisposition.32 = '') and nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005', '4228007') and nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013') and ../nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208' and ../nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826')">Level of Care Provided is a mandatory field. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eResponse.23 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eResponse">
      <sch:let name="nemsisElements" value="nem:eResponse.23" />
      <sch:assert id="Rule_2236" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eResponse.23) or nem:eResponse.23 = ''))">Response Mode to Scene is a mandatory field. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eResponse.03 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eResponse">
      <sch:let name="nemsisElements" value="nem:eResponse.03" />
      <sch:assert id="Rule_2237" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eResponse.03) or nem:eResponse.03 = ''))">Incident Number is a required field. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eTimes.05 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eTimes">
      <sch:let name="nemsisElements" value="nem:eTimes.05" />
      <sch:assert id="Rule_2238" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eTimes.05) or nem:eTimes.05 = ''))">Unit En Route Time is a required field.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>ePatient.16 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:ePatient/nem:ePatient.AgeGroup">
      <sch:let name="nemsisElements" value="nem:ePatient.16" />
      <sch:assert id="Rule_2239" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:ePatient.16) or nem:ePatient.16 = '') and (nem:ePatient.15 and nem:ePatient.15 != '') and ../../nem:eScene/nem:eScene.07 = '9923001')">Age Units is a required field.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.02 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.02" />
      <sch:assert id="Rule_2240" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eArrest.02) or nem:eArrest.02 = '') and nem:eArrest.01 = ('3001005', '3001003'))">Cardiac Arrest Etiology is a required field when Cardiac Arrest.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.04 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.04" />
      <sch:assert id="Rule_2241" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eArrest.04) or nem:eArrest.04 = '') and (not(nem:eArrest.04[@NV])) and nem:eArrest.01 = ('3001005', '3001003'))">Arrest Witnessed By is a required field when Cardiac Arrest. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.03 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.03" />
      <sch:assert id="Rule_2242" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eArrest.03) or nem:eArrest.03 = '') and (not(nem:eArrest.03[@NV])) and nem:eArrest.01 = ('3001005', '3001003'))">Resuscitation Attempted By EMS is a required field when Cardiac Arrest. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.12 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.12" />
      <sch:assert id="Rule_2244" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eArrest.12) or nem:eArrest.12 = '') and (not(nem:eArrest.12[@NV])) and nem:eArrest.01 = ('3001005', '3001003') and ../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2024-10-01T00:00:00'))">Any Return of Spontaneous Circulation is a required field when Cardiac Arrest. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.16 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.16" />
      <sch:assert id="Rule_2245" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eArrest.16) or nem:eArrest.16 = '') and (not(nem:eArrest.16[@NV])) and (nem:eArrest.15 and nem:eArrest.15 != ''))">Reason CPR/Resuscitation Discontinued is a required field when Cardiac Arrest. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eMedications.01 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eMedications/nem:eMedications.MedicationGroup">
      <sch:let name="nemsisElements" value="nem:eMedications.01" />
      <sch:assert id="Rule_2246" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eMedications.01) or nem:eMedications.01 = '') and (nem:eMedications.03 and nem:eMedications.03 != '') and nem:eMedications.02 != '9923003')">Time Medication Administered is a required field on each Medication.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eProcedures.01 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eProcedures/nem:eProcedures.ProcedureGroup">
      <sch:let name="nemsisElements" value="nem:eProcedures.01" />
      <sch:assert id="Rule_2249" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eProcedures.01) or nem:eProcedures.01 = '') and (nem:eProcedures.03 and nem:eProcedures.03 != '') and nem:eProcedures.02 != '9923003')">Time Procedure Performed is a required field when Procedure is not blank. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.07 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.DestinationGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.07" />
      <sch:assert id="Rule_2250" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eDisposition.07) or nem:eDisposition.07 = '') and (../../nem:eTimes/nem:eTimes.11 and ../../nem:eTimes/nem:eTimes.11 != ''))">Destination ZIP Code is a required field when Patient Arrived at Destination is not blank.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eCrew.02 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eCrew/nem:eCrew.CrewGroup">
      <sch:let name="nemsisElements" value="nem:eCrew.02" />
      <sch:assert id="Rule_2251" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eCrew.02) or nem:eCrew.02 = ''))">Crew Member Level is a required field.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.21 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.21" />
      <sch:assert id="Rule_2252" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eArrest.21) or nem:eArrest.21 = '') and (not(nem:eArrest.21[@NV])) and nem:eArrest.01 = ('3001005', '3001003'))">Who First Applied the AED is a necessary field when Cardiac Arrest. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itArrest.106 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:itArrest.106" />
      <sch:assert id="Rule_2253" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.106']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.106'][nem:eCustomResults.01 = '']) and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.105'][nem:eCustomResults.01 = 'itArrest.105.102'])">Who Provided CPR Prior to EMS Arrival is a necessary field when Cardiac Arrest. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eOther.08 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther">
      <sch:let name="nemsisElements" value="nem:eOther.08" />
      <sch:assert id="Rule_2254" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eOther.08) or nem:eOther.08 = ''))">Document the name of the individual completing this report.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eResponse.05 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eResponse/nem:eResponse.ServiceGroup">
      <sch:let name="nemsisElements" value="nem:eResponse.05" />
      <sch:assert id="Rule_2255" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eResponse.05) or nem:eResponse.05 = ''))">Please document the type of service requested</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eTimes.02 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eTimes">
      <sch:let name="nemsisElements" value="nem:eTimes.02" />
      <sch:assert id="Rule_2256" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eTimes.02) or nem:eTimes.02 = ''))">Please document the dispatch notification time.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eMedications.04 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eMedications/nem:eMedications.MedicationGroup">
      <sch:let name="nemsisElements" value="nem:eMedications.04" />
      <sch:assert id="Rule_2257" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eMedications.04) or nem:eMedications.04 = '') and (nem:eMedications.03 and nem:eMedications.03 != '') and nem:eMedications.02 != '9923003')">Document the route used to administer the medication.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eMedications.09 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eMedications/nem:eMedications.MedicationGroup">
      <sch:let name="nemsisElements" value="nem:eMedications.09" />
      <sch:assert id="Rule_2258" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eMedications.09) or nem:eMedications.09 = '') and (nem:eMedications.03 and nem:eMedications.03 != '') and nem:eMedications.02 != '9923003')">Document the name of the crew member who administered a medication.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eMedications.11 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eMedications/nem:eMedications.MedicationGroup">
      <sch:let name="nemsisElements" value="nem:eMedications.11" />
      <sch:assert id="Rule_2259" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eMedications.11) or nem:eMedications.11 = '') and (nem:eMedications.03 and nem:eMedications.03 != '') and nem:eMedications.02 != '9923003')">Document if the medication was a standing order or a base order, or other.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eSituation.05 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation/nem:eSituation.PatientComplaintGroup">
      <sch:let name="nemsisElements" value="nem:eSituation.05" />
      <sch:assert id="Rule_2260" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eSituation.05) or nem:eSituation.05 = '') and (not(nem:eSituation.05[@NV])) and (nem:eSituation.04 and nem:eSituation.04 != '') and ../../nem:eScene/nem:eScene.07 = '9923001')">Document the duration of the chief complaint.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eSituation.06 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation/nem:eSituation.PatientComplaintGroup">
      <sch:let name="nemsisElements" value="nem:eSituation.06" />
      <sch:assert id="Rule_2261" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eSituation.06) or nem:eSituation.06 = '') and (nem:eSituation.05 and nem:eSituation.05 != ''))">Document the time units of the chief complaint.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eInjury.01 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eInjury">
      <sch:let name="nemsisElements" value="nem:eInjury.01" />
      <sch:assert id="Rule_2263" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eInjury.01) or nem:eInjury.01 = '') and ../nem:eSituation/nem:eSituation.02 = ('9922005'))">Document the cause of injury.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eInjury.02 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eInjury">
      <sch:let name="nemsisElements" value="nem:eInjury.02" />
      <sch:assert id="Rule_2264" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eInjury.02) or nem:eInjury.02 = '') and (not(nem:eInjury.02[@NV])) and ../nem:eSituation/nem:eSituation.02 = ('9922005'))">Document the mechanism of injury.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.22 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.22" />
      <sch:assert id="Rule_2266" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eArrest.11 = ('3011009', '3011011', '3011013') and ../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2024-10-01T00:00:00')) and ((../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eArrest.22'][nem:eCustomResults.01 = 'itArrest.013.105'] and count(nem:eArrest.03[text() = '3003009']) = 0) or ((not(nem:eArrest.22) or nem:eArrest.22 = '') and count(nem:eArrest.03[text() = '3003009']) = 0)))">When the "First Monitored Arrest Rhythm" field (eArrest.11) is listed as a shockable rhythm, then the "Who First Defibrillated the Patient" (eArrest.22) must be documented. Not values will not be accepted. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.22 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.22" />
      <sch:assert id="Rule_2267" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eArrest.22) or nem:eArrest.22 = '') and nem:eArrest.01 = ('3001005', '3001003') and count(nem:eArrest.03[text() = '3003009']) = 0 and (not(nem:eArrest.22[@NV]) or nem:eArrest.22[@NV != '7701001']) and ../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2024-10-01T00:00:00'))">The "Who First Defibrillated the Patient" field must be documented when the "Cardiac Arrest" field is equal to "Yes, After EMS Arrival" or "Yes, Prior to EMS Arrival".</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.22 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.22" />
      <sch:assert id="Rule_2268" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eArrest.07 = '3007005' and ../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2024-10-01T00:00:00')) and (nem:eArrest.22 = '3022013' or (nem:eArrest.22[@NV] and nem:eArrest.22[@NV = '7701001'])))">The "Who First Defibrillated the Patient" field should not be "Not Applicable" or "Responding EMS Personnel" when the "AED Use Prior to EMS Arrival" field is equal to "Yes, with Defibrillation".</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eInjury.03 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eInjury">
			<sch:let name="nemsisElements" value="nem:eInjury.03" />
			<sch:assert id="Rule_2270" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eInjury.03) or nem:eInjury.03 = '') and (not(nem:eInjury.03[@NV])) and ../nem:eSituation/nem:eSituation.02 = '9922005')">Document if a patient with a traumatic injury meets trauma triage criteria.  </sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>eInjury.06 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eInjury">
      <sch:let name="nemsisElements" value="nem:eInjury.06" />
      <sch:assert id="Rule_2271" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eInjury.06) or nem:eInjury.06 = '') and (count(nem:eInjury.01[text() = ('V89.9', 'V49.3')]) != 0) and ../nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and ../nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and ../nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the location of the patient in the vehicle. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eInjury.07 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eInjury">
      <sch:let name="nemsisElements" value="nem:eInjury.07" />
      <sch:assert id="Rule_2272" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eInjury.07) or nem:eInjury.07 = '') and (not(nem:eInjury.07[@NV])) and (count(nem:eInjury.01[text() = ('V29.9', 'V19.9', 'W31.9', 'V89.9', 'V03.9', 'W17', 'V19.3', 'V86.99', 'V49.3', 'V80.9', 'V94.9', 'V99', 'W74', 'Y24.9')]) != 0)  and ../nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and ../nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and ../nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the presence occupant/patient safety equipment.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eInjury.08 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eInjury">
      <sch:let name="nemsisElements" value="nem:eInjury.08" />
      <sch:assert id="Rule_2273" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eInjury.08) or nem:eInjury.08 = '') and (count(nem:eInjury.01[text() = ('V89.9', 'V49.3')]) != 0) and ../nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and ../nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and ../nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document airbag deployment.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eInjury.09 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eInjury">
      <sch:let name="nemsisElements" value="nem:eInjury.09" />
      <sch:assert id="Rule_2274" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eInjury.09) or nem:eInjury.09 = '') and (count(nem:eInjury.01[text() = ('W17', 'W01')]) != 0) and ../nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and ../nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and ../nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the height of the fall.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eOther.02 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther">
      <sch:let name="nemsisElements" value="nem:eOther.02" />
      <sch:assert id="Rule_2276" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eOther.02) or nem:eOther.02 = '') and count(../nem:eDisposition/nem:eDisposition.20[text() = '4220021']) != 0)">Document the specific reason a specialty center was the reason for choosing the destination. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eResponse.07 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eResponse">
      <sch:let name="nemsisElements" value="nem:eResponse.07" />
      <sch:assert id="Rule_2278" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eResponse.07) or nem:eResponse.07 = ''))">Document the Role of the Unit.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itStemi.005 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:itStemiGroup">
      <sch:let name="nemsisElements" value="nem:itStemi.005" />
      <sch:assert id="Rule_2280" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itStemi.005']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itStemi.005'][nem:eCustomResults.01 = ''])) and (../nem:eSituation/nem:eSituation.11 = ('I21.3', 'I20.9', 'R41.82', 'R55') or (count(../nem:eSituation/nem:eSituation.12[text() = ('I21.3', 'I20.9', 'R41.82', 'R55')]) != 0)))">Document if the patient met the STEMI triage criteria.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eInjury.04 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eInjury">
			<sch:let name="nemsisElements" value="nem:eInjury.04" />
			<sch:assert id="Rule_2281" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eInjury.04) or nem:eInjury.04 = '') and (not(nem:eInjury.04[@NV])) and ../nem:eSituation/nem:eSituation.02 = '9922005' and (not(nem:eInjury.04[@PN])))">Document if a patient with a traumatic injury meets trauma triage criteria.  </sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>itStemiGroup related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport">
      <sch:let name="nemsisElements" value="nem:itStemiGroup" />
      <sch:assert id="Rule_2282" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.041'][nem:eCustomResults.01 = 'itDisposition.041.100'] and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itStemiGroup']) &lt; 1)">Complete the STEMI Panel</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eSituation.07 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:eSituation.07" />
      <sch:assert id="Rule_2283" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eSituation.07) or nem:eSituation.07 = '') and (not(nem:eSituation.07[@NV])) and nem:eSituation.02 = '9922005')">Must document anatomical location of injury if Possible Injury = Yes.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itExam.065 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eExam">
      <sch:let name="nemsisElements" value="nem:itExam.065" />
      <sch:assert id="Rule_2284" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.065']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.065'][nem:eCustomResults.01 = '']) and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.064'][nem:eCustomResults.01 = ('itExam.064.002')])">Please complete the Cervical Collar Not Utilized field.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eTimes.03 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eTimes">
			<sch:let name="nemsisElements" value="nem:eTimes.03" />
			<sch:assert id="Rule_2286" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eTimes.03) or nem:eTimes.03 = ''))">Unit Notified by Dispatch Date/Time is required</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>eTimes.13 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eTimes">
      <sch:let name="nemsisElements" value="nem:eTimes.13" />
      <sch:assert id="Rule_2287" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(nem:eTimes.13 != '' and nem:eTimes.01 != '' and xs:dateTime(nem:eTimes.13) &lt; xs:dateTime(nem:eTimes.01) or nem:eTimes.13 != '' and nem:eTimes.02 != '' and xs:dateTime(nem:eTimes.13) &lt; xs:dateTime(nem:eTimes.02) or nem:eTimes.13 != '' and nem:eTimes.03 != '' and xs:dateTime(nem:eTimes.13) &lt; xs:dateTime(nem:eTimes.03) or nem:eTimes.13 != '' and nem:eTimes.04 != '' and xs:dateTime(nem:eTimes.13) &lt; xs:dateTime(nem:eTimes.04) or nem:eTimes.13 != '' and nem:eTimes.05 != '' and xs:dateTime(nem:eTimes.13) &lt; xs:dateTime(nem:eTimes.05) or nem:eTimes.13 != '' and nem:eTimes.06 != '' and xs:dateTime(nem:eTimes.13) &lt; xs:dateTime(nem:eTimes.06) or nem:eTimes.13 != '' and nem:eTimes.07 != '' and xs:dateTime(nem:eTimes.13) &lt; xs:dateTime(nem:eTimes.07) or nem:eTimes.13 != '' and nem:eTimes.08 != '' and xs:dateTime(nem:eTimes.13) &lt; xs:dateTime(nem:eTimes.08) or nem:eTimes.13 != '' and nem:eTimes.09 != '' and xs:dateTime(nem:eTimes.13) &lt; xs:dateTime(nem:eTimes.09) or nem:eTimes.13 != '' and nem:eTimes.14 != '' and xs:dateTime(nem:eTimes.13) &lt; xs:dateTime(nem:eTimes.14) or nem:eTimes.13 != '' and nem:eTimes.12 != '' and xs:dateTime(nem:eTimes.13) &lt; xs:dateTime(nem:eTimes.12))">Unit Back In Service (Available) appears to be out of sequence with other recorded date/time value(s).</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itDisposition.003 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition">
      <sch:let name="nemsisElements" value="nem:itDisposition.003" />
      <sch:assert id="Rule_2289" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.003']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.003'][nem:eCustomResults.01 = '']) and (count(nem:eDisposition.20[text() = ('4220003')]) != 0))">Please enter the Bypassed Facility Name.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eProcedures.02 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eProcedures/nem:eProcedures.ProcedureGroup">
      <sch:let name="nemsisElements" value="nem:eProcedures.02" />
      <sch:assert id="Rule_2290" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eProcedures.02) or nem:eProcedures.02 = '') and (not(nem:eProcedures.02[@NV])) and (nem:eProcedures.03 and nem:eProcedures.03 != ''))">Complete the Prior to Arrival field</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eMedications.02 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eMedications/nem:eMedications.MedicationGroup">
      <sch:let name="nemsisElements" value="nem:eMedications.02" />
      <sch:assert id="Rule_2291" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eMedications.02) or nem:eMedications.02 = '') and (not(nem:eMedications.02[@NV])) and (nem:eMedications.03 and nem:eMedications.03 != ''))">Complete the Medication Administered Prior to this Units EMS Care field.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eHistory.05 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eHistory">
      <sch:let name="nemsisElements" value="nem:eHistory.05" />
      <sch:assert id="Rule_2292" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eHistory.05[text() = '3105005']) != 0 and (count(nem:eHistory.05[text() = ('3105001', '3105003', '3105007', '3105009', '3105011')]) != 0))">Please modify answer, cannot have  'None' in combination with a valid advanced directive.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.28 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.PainScaleGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.28" />
      <sch:assert id="Rule_2293" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eVitals.28) or nem:eVitals.28 = '') and (nem:eVitals.27 and nem:eVitals.27 != '') and ../nem:eVitals.02 != '9923003')">Pain scale type must be present if pain scale documented.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.011 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.011" />
      <sch:assert id="Rule_2294" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.011']) or ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.011'][nem:eCustomResults.01 = '']) and (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.010'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.010'][nem:eCustomResults.01 != '']) and nem:eVitals.02 != '9923003')">Please complete Duration Units field.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.04 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.CardiacRhythmGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.04" />
      <sch:assert id="Rule_2295" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((nem:eVitals.03 and nem:eVitals.03 != '') and ../nem:eVitals.02 != '9923003') and (((nem:eVitals.04[@NV] and nem:eVitals.04[@NV = '7701001']) and (not(nem:eVitals.04) or nem:eVitals.04 = '')) or ((not(nem:eVitals.04) or nem:eVitals.04 = '') and (not(nem:eVitals.04[@NV])))))">ECG Type not Documented</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eMedications.07 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eMedications/nem:eMedications.MedicationGroup">
      <sch:let name="nemsisElements" value="nem:eMedications.07" />
      <sch:assert id="Rule_2296" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eMedications.07) or nem:eMedications.07 = '') and (not(nem:eMedications.07[@NV])) and (nem:eMedications.03 and nem:eMedications.03 != '') and nem:eMedications.02 != '9923003')">Response to Medication is a required field on all Medications. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eMedications.10 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eMedications/nem:eMedications.MedicationGroup">
      <sch:let name="nemsisElements" value="nem:eMedications.10" />
      <sch:assert id="Rule_2297" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eMedications.10) or nem:eMedications.10 = '') and (not(nem:eMedications.10[@NV])) and (nem:eMedications.03 and nem:eMedications.03 != '') and nem:eMedications.02 != '9923003')">Complete Role/Type of Person Administering Med field.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eProcedures.08 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eProcedures/nem:eProcedures.ProcedureGroup">
      <sch:let name="nemsisElements" value="nem:eProcedures.08" />
      <sch:assert id="Rule_2298" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eProcedures.08) or nem:eProcedures.08 = '') and (not(nem:eProcedures.08[@NV])) and (nem:eProcedures.03 and nem:eProcedures.03 != '') and (not(nem:eProcedures.03) or nem:eProcedures.03 = '' or (not(nem:eProcedures.03 = ('424287005', '392230005', '430824005', '268400002', '428803005', '425543005', '46825001', '426220008')) and not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eProcedures.03'][nem:eCustomResults.01 = ('itSNOMED.006')]))) and nem:eProcedures.02 != '9923003')">Response to Procedure is a required field on all Procedures. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.01 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.01" />
      <sch:assert id="Rule_2299" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((not(nem:eVitals.01) or nem:eVitals.01 = '') and nem:eVitals.02 != '9923003') and ((nem:eVitals.26 and nem:eVitals.26 != '') or (nem:eVitals.GlasgowScoreGroup/nem:eVitals.19 and nem:eVitals.GlasgowScoreGroup/nem:eVitals.19 != '') or (nem:eVitals.GlasgowScoreGroup/nem:eVitals.20 and nem:eVitals.GlasgowScoreGroup/nem:eVitals.20 != '') or (nem:eVitals.GlasgowScoreGroup/nem:eVitals.21 and nem:eVitals.GlasgowScoreGroup/nem:eVitals.21 != '') or (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.019'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.019'][nem:eCustomResults.01 != '']) or (nem:eVitals.15 and nem:eVitals.15 != '') or (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.002'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.002'][nem:eCustomResults.01 != '']) or (nem:eVitals.BloodPressureGroup/nem:eVitals.06 and nem:eVitals.BloodPressureGroup/nem:eVitals.06 != '') or (nem:eVitals.HeartRateGroup/nem:eVitals.10 and nem:eVitals.HeartRateGroup/nem:eVitals.10 != '') or (nem:eVitals.14 and nem:eVitals.14 != '')))">Document the D/T Vitals were taken.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.29 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.StrokeScaleGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.29" />
      <sch:assert id="Rule_2300" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((count(../../nem:eVitals.VitalGroup[((nem:eVitals.StrokeScaleGroup/nem:eVitals.29 and nem:eVitals.StrokeScaleGroup/nem:eVitals.29 != ''))]) &lt; 1 and count(../../nem:eVitals.VitalGroup[((nem:eVitals.StrokeScaleGroup/nem:eVitals.29[@NV]))]) &lt; 1 and count(../../nem:eVitals.VitalGroup[((nem:eVitals.StrokeScaleGroup/nem:eVitals.29[@PN]))]) &lt; 1 and ../nem:eVitals.02 != '9923003') and (../../../nem:eSituation/nem:eSituation.11 = ('I63.9') or (count(../../../nem:eSituation/nem:eSituation.12[text() = ('I63.9')]) != 0) or count(../../../nem:eOther/nem:eOther.02[text() = '4502007']) != 0))">Document the stroke scale score.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.30 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.StrokeScaleGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.30" />
      <sch:assert id="Rule_2301" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((count(../../nem:eVitals.VitalGroup[((nem:eVitals.StrokeScaleGroup/nem:eVitals.30 and nem:eVitals.StrokeScaleGroup/nem:eVitals.30 != ''))]) &lt; 1 and count(../../nem:eVitals.VitalGroup[((nem:eVitals.StrokeScaleGroup/nem:eVitals.30[@NV]))]) &lt; 1 and (not(nem:eVitals.29[@NV])) and (not(nem:eVitals.29[@PN])) and ../nem:eVitals.02 != '9923003') and (../../../nem:eSituation/nem:eSituation.11 = ('I63.9') or (count(../../../nem:eSituation/nem:eSituation.12[text() = ('I63.9')]) != 0) or count(../../../nem:eOther/nem:eOther.02[text() = '4502007']) != 0))">Document the type of stroke scale used to assess the patient.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.025 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.025" />
      <sch:assert id="Rule_2302" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((count(../nem:eVitals.VitalGroup[((../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.025'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.025'][nem:eCustomResults.01 != '']))]) &lt; 1 and (not(nem:eVitals.StrokeScaleGroup/nem:eVitals.29[@NV])) and (not(nem:eVitals.StrokeScaleGroup/nem:eVitals.29[@PN])) and nem:eVitals.02 != '9923003') and (../../nem:eSituation/nem:eSituation.11 = ('I63.9') or (count(../../nem:eSituation/nem:eSituation.12[text() = ('I63.9')]) != 0) or count(../../nem:eOther/nem:eOther.02[text() = '4502007']) != 0))">Document the Speech assessment on the Stroke scale.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.25 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.TemperatureGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.25" />
      <sch:assert id="Rule_2303" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eVitals.25) or nem:eVitals.25 = '') and (nem:eVitals.24 and nem:eVitals.24 != '') and ../nem:eVitals.02 != '9923003')">Please complete the Temperature Method field.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.24 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.TemperatureGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.24" />
      <sch:assert id="Rule_2304" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../../nem:eVitals.VitalGroup[((nem:eVitals.TemperatureGroup/nem:eVitals.24 and nem:eVitals.TemperatureGroup/nem:eVitals.24 != ''))]) &lt; 1 and count(../../../nem:eProtocols/nem:eProtocols.ProtocolGroup[(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eProtocols.01'][nem:eCustomResults.01 = 'it9914.115']/nem:eCustomResults.03=./@CorrelationID)]) = 1 and ../nem:eVitals.02 != '9923003')">Please complete the Temperature field per Sepsis Protocol</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.32 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.32" />
      <sch:assert id="Rule_2305" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../nem:eVitals.VitalGroup[((not(nem:eVitals.32) or nem:eVitals.32 = ''))]) = 1 and count(../../nem:eProtocols/nem:eProtocols.ProtocolGroup[(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eProtocols.01'][nem:eCustomResults.01 = 'it9914.114'])]) = 1 and nem:eVitals.02 != '9923003')">Please complete the APGAR fields per Newborn Protocol (S-166).</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.027 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.027" />
      <sch:assert id="Rule_2306" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((not(nem:eVitals.StrokeScaleGroup/nem:eVitals.29[@NV])) and (not(nem:eVitals.StrokeScaleGroup/nem:eVitals.29[@PN])) and count(../nem:eVitals.VitalGroup[((../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.027'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.027'][nem:eCustomResults.01 != '']))]) &lt; 1 and nem:eVitals.02 != '9923003') and (../../nem:eSituation/nem:eSituation.11 = ('I63.9') or (count(../../nem:eSituation/nem:eSituation.12[text() = ('I63.9')]) != 0) or count(../../nem:eOther/nem:eOther.02[text() = '4502007']) != 0))">Document the arm drift component of the stroke assessment.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.026 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.026" />
      <sch:assert id="Rule_2307" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((count(../nem:eVitals.VitalGroup[((../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.026'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.026'][nem:eCustomResults.01 != '']))]) &lt; 1 and (not(nem:eVitals.StrokeScaleGroup/nem:eVitals.29[@NV])) and (not(nem:eVitals.StrokeScaleGroup/nem:eVitals.29[@PN])) and nem:eVitals.02 != '9923003') and (../../nem:eSituation/nem:eSituation.11 = ('I63.9') or (count(../../nem:eSituation/nem:eSituation.12[text() = ('I63.9')]) != 0) or count(../../nem:eOther/nem:eOther.02[text() = '4502007']) != 0))">Document the assessment of a facial droop </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>itArrest.011 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport">
			<sch:let name="nemsisElements" value="nem:itArrest.011" />
			<sch:assert id="Rule_2308" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.011']) or nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.011'][nem:eCustomResults.01 = '']) and nem:eArrest/nem:eArrest.02 = '3002011')"> The "Cardiac Arrest Etiology - Other" field must be documented if the "Cardiac Arrest Etiology" field is equal to "Other".</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>eArrest.04 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.04" />
      <sch:assert id="Rule_2309" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eArrest.04[text() = '3004001']) != 0 and nem:eArrest.01 = '3001005')">The "Arrest Witnessed By" field cannot be equal to "Not Witnessed" when the "Cardiac Arrest" field is equal to "Yes, After EMS Arrival".</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.04 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.04" />
      <sch:assert id="Rule_2310" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eArrest.04) or nem:eArrest.04 = '') and nem:eArrest.01 = ('3001005', '3001003'))">The "Arrest Witnessed By" field must be documented when the "Cardiac Arrest" field is equal to "Yes, After EMS Arrival" or "Yes, Prior to EMS Arrival". </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itArrest.012 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:itArrest.012" />
      <sch:assert id="Rule_2311" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.012'][nem:eCustomResults.01 = 'itArrest.012.101'] and nem:eArrest.18 = '3018003' and ../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2024-10-01T00:00:00'))">The "Sustained ROSC (20 Consecutive Minutes)" field should not be "Yes, pulse at end of EMS Care (or ED arrival)" when "End of EMS Cardiac Arrest Event" field is "Expired in the Field".</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itArrest.012 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:itArrest.012" />
      <sch:assert id="Rule_2312" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.012']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.012'][nem:eCustomResults.01 = '']) and nem:eArrest.01 = ('3001005', '3001003') and ../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2024-10-01T00:00:00'))">The "Sustained ROSC (20 consecutive minutes)" field must be documented when the "Cardiac Arrest" field is equal to "Yes, After EMS Arrival" or "Yes, Prior to EMS Arrival".</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itArrest.014 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:itArrest.014" />
      <sch:assert id="Rule_2313" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.014']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.014'][nem:eCustomResults.01 = '']) and nem:eArrest.01 = ('3001005', '3001003') and ../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2024-10-01T00:00:00'))">The "Resuscitation Attempted by 911 Responder" field must be documented when the "Cardiac Arrest" field is equal to "Yes, After EMS Arrival" or "Yes, Prior to EMS Arrival".</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.21 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.21" />
      <sch:assert id="Rule_2314" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eArrest.21) or nem:eArrest.21 = '') and nem:eArrest.07 = ('3007003', '3007005') and nem:eArrest.02 != '3002015')">CARES requires a value in Who First Applied the AED when AED Use Prior to EMS Arrival is "Yes."
</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.18 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.18" />
      <sch:assert id="Rule_2315" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eArrest.18) or nem:eArrest.18 = '') and nem:eArrest.01 = ('3001005', '3001003'))">The "End of EMS Cardiac Arrest Event" field must be documented when the "Cardiac Arrest" field is equal to "Yes, After EMS Arrival" or "Yes, Prior to EMS Arrival".</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itResponse.021 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eResponse">
      <sch:let name="nemsisElements" value="nem:itResponse.021" />
      <sch:assert id="Rule_2316" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itResponse.021']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itResponse.021'][nem:eCustomResults.01 = '']) and ../nem:eArrest/nem:eArrest.01 = ('3001005', '3001003') and ../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2024-08-21T00:00:00'))">The "CARES First Responder" field must be documented when the "Cardiac Arrest" field is equal to "Yes, After EMS Arrival" or "Yes, Prior to EMS Arrival".</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.07 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.07" />
      <sch:assert id="Rule_2317" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eArrest.07) or nem:eArrest.07 = '') and nem:eArrest.01 = ('3001003', '3001005'))">AED Use Prior to EMS Arrival is a required field when Cardiac Arrest. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.11 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.11" />
      <sch:assert id="Rule_2318" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eArrest.01 = ('3001005', '3001003')) and (../nem:eSituation/nem:eSituation.13 != '2813007' or ../nem:eDisposition/nem:eDisposition.19 != '4219007') and ((nem:eArrest.11[@NV] and nem:eArrest.11[@NV=('7701001', '7701003')]) or (not(nem:eArrest.11) or nem:eArrest.11 = '')))">Document the first cardiac rhythm. NV not allowed per CARES.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.14 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.14" />
      <sch:assert id="Rule_2319" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eArrest.14) or nem:eArrest.14 = '') and nem:eArrest.01 = ('3001005', '3001003'))">Time of Cardiac Arrest is a required field when Cardiac Arrest. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eScene.15 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eScene">
      <sch:let name="nemsisElements" value="nem:eScene.15" />
      <sch:assert id="Rule_2320" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((not(nem:eScene.15) or nem:eScene.15 = '') and (not(nem:eScene.15[@NV]))) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.014'][nem:eCustomResults.01 != 'itArrest.014.100'] or (not(../nem:eArrest/nem:eArrest.02) or ../nem:eArrest/nem:eArrest.02 = '' or (not(../nem:eArrest/nem:eArrest.02 = ('3002001', '3002003', '3002005', '3002007', '3002009', '3002011', '3002013')))) or (not(../nem:eArrest/nem:eArrest.18) or ../nem:eArrest/nem:eArrest.18 = '' or (not(../nem:eArrest/nem:eArrest.18 = ('3018001', '3018003', '3018011', '3018005', '3018009', '3018007'))))))">Incident Street Address is a required.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eScene.15 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eScene">
      <sch:let name="nemsisElements" value="nem:eScene.15" />
      <sch:assert id="Rule_2321" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eScene.15) or nem:eScene.15 = '') and nem:eScene.07 = '9923001' and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.014'][nem:eCustomResults.01 = 'itArrest.014.100'] and ../nem:eArrest/nem:eArrest.02 = ('3002013', '3002009', '3002011', '3002005', '3002007', '3002003', '3002001') and ../nem:eArrest/nem:eArrest.18 = ('3018001', '3018003', '3018011', '3018005', '3018009', '3018007'))">The "Incident Street Address" field must be documented. Not values will not be accepted.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eScene.21 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eScene">
      <sch:let name="nemsisElements" value="nem:eScene.21" />
      <sch:assert id="Rule_2322" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((not(nem:eScene.21) or nem:eScene.21 = '') and (not(nem:eScene.21[@NV]))) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.014'][nem:eCustomResults.01 != 'itArrest.014.100'] or (not(../nem:eArrest/nem:eArrest.02) or ../nem:eArrest/nem:eArrest.02 = '' or (not(../nem:eArrest/nem:eArrest.02 = ('3002001', '3002003', '3002005', '3002007', '3002009', '3002011', '3002013')))) or (not(../nem:eArrest/nem:eArrest.18) or ../nem:eArrest/nem:eArrest.18 = '' or (not(../nem:eArrest/nem:eArrest.18 = ('3018001', '3018003', '3018011', '3018005', '3018009', '3018007'))))))">Document the name of the county in which the incident occurred</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eScene.21 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eScene">
      <sch:let name="nemsisElements" value="nem:eScene.21" />
      <sch:assert id="Rule_2323" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eScene.21) or nem:eScene.21 = '') and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.014'][nem:eCustomResults.01 = 'itArrest.014.100'] and ../nem:eArrest/nem:eArrest.02 = ('3002013', '3002009', '3002011', '3002007', '3002003', '3002005', '3002001') and ../nem:eArrest/nem:eArrest.18 = ('3018001', '3018003', '3018011', '3018005', '3018009', '3018007'))">The "Incident County" field must be documented. Not values will not be accepted.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eScene.17 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eScene">
      <sch:let name="nemsisElements" value="nem:eScene.17" />
      <sch:assert id="Rule_2324" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((not(nem:eScene.17) or nem:eScene.17 = '') and (not(nem:eScene.17[@NV]))) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.014'][nem:eCustomResults.01 != 'itArrest.014.100'] or (not(../nem:eArrest/nem:eArrest.02) or ../nem:eArrest/nem:eArrest.02 = '' or (not(../nem:eArrest/nem:eArrest.02 = ('3002001', '3002003', '3002005', '3002007', '3002009', '3002011', '3002013')))) or (not(../nem:eArrest/nem:eArrest.18) or ../nem:eArrest/nem:eArrest.18 = '' or (not(../nem:eArrest/nem:eArrest.18 = ('3018001', '3018003', '3018011', '3018005', '3018009', '3018007'))))))">Document the name of the city in which the incident was located.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eScene.17 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eScene">
      <sch:let name="nemsisElements" value="nem:eScene.17" />
      <sch:assert id="Rule_2325" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eScene.17) or nem:eScene.17 = '') and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.014'][nem:eCustomResults.01 = 'itArrest.014.100'] and ../nem:eArrest/nem:eArrest.02 = ('3002013', '3002009', '3002011', '3002007', '3002003', '3002005', '3002001') and ../nem:eArrest/nem:eArrest.18 = ('3018001', '3018003', '3018011', '3018005', '3018009', '3018007'))">The "Incident City" field must be documented. Not values will not be accepted.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eScene.18 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eScene">
      <sch:let name="nemsisElements" value="nem:eScene.18" />
      <sch:assert id="Rule_2326" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((not(nem:eScene.18) or nem:eScene.18 = '') and (not(nem:eScene.18[@NV]))) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.014'][nem:eCustomResults.01 != 'itArrest.014.100'] or (not(../nem:eArrest/nem:eArrest.02) or ../nem:eArrest/nem:eArrest.02 = '' or (not(../nem:eArrest/nem:eArrest.02 = ('3002001', '3002003', '3002005', '3002007', '3002009', '3002011', '3002013')))) or (not(../nem:eArrest/nem:eArrest.18) or ../nem:eArrest/nem:eArrest.18 = '' or (not(../nem:eArrest/nem:eArrest.18 = ('3018001', '3018003', '3018011', '3018005', '3018009', '3018007'))))))">Document the State of the incident location.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eScene.18 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eScene">
      <sch:let name="nemsisElements" value="nem:eScene.18" />
      <sch:assert id="Rule_2328" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eScene.18) or nem:eScene.18 = '') and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.014'][nem:eCustomResults.01 = 'itArrest.014.100'] and ../nem:eArrest/nem:eArrest.02 = ('3002013', '3002009', '3002011', '3002007', '3002003', '3002005', '3002001') and ../nem:eArrest/nem:eArrest.18 = ('3018001', '3018003', '3018011', '3018005', '3018009', '3018007'))">The "Incident State" field must be documented. Not values will not be accepted.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eScene.19 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eScene">
      <sch:let name="nemsisElements" value="nem:eScene.19" />
      <sch:assert id="Rule_2329" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((not(nem:eScene.19) or nem:eScene.19 = '') and (not(nem:eScene.19[@NV]))) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.014'][nem:eCustomResults.01 != 'itArrest.014.100'] or (not(../nem:eArrest/nem:eArrest.02) or ../nem:eArrest/nem:eArrest.02 = '' or (not(../nem:eArrest/nem:eArrest.02 = ('3002001', '3002003', '3002005', '3002007', '3002009', '3002011', '3002013')))) or (not(../nem:eArrest/nem:eArrest.18) or ../nem:eArrest/nem:eArrest.18 = '' or (not(../nem:eArrest/nem:eArrest.18 = ('3018001', '3018003', '3018011', '3018005', '3018009', '3018007'))))))">Incident ZIP Code is a required field . </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eScene.19 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eScene">
      <sch:let name="nemsisElements" value="nem:eScene.19" />
      <sch:assert id="Rule_2330" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eScene.19) or nem:eScene.19 = '') and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.014'][nem:eCustomResults.01 = 'itArrest.014.100'] and ../nem:eArrest/nem:eArrest.02 = ('3002013', '3002009', '3002011', '3002007', '3002003', '3002005', '3002001') and ../nem:eArrest/nem:eArrest.18 = ('3018001', '3018003', '3018011', '3018005', '3018009', '3018007'))">The "Incident Zip Code" field must be documented. Not values will not be accepted.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>ePatient.15 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:ePatient/nem:ePatient.AgeGroup">
      <sch:let name="nemsisElements" value="nem:ePatient.15" />
      <sch:assert id="Rule_2331" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.014'][nem:eCustomResults.01 = 'itArrest.014.100'] and ../../nem:eArrest/nem:eArrest.02 = ('3002013', '3002009', '3002011', '3002007', '3002003', '3002005', '3002001') and ../../nem:eArrest/nem:eArrest.18 = ('3018001', '3018003', '3018011', '3018005', '3018009', '3018007') and ../../nem:eScene/nem:eScene.07 = '9923001') and ((((not(../nem:ePatient.17) or ../nem:ePatient.17 = '') and (not(../nem:ePatient.17[@PN]) or (not(../nem:ePatient.17[@PN=('8801019', '8801023')])))) and ((not(nem:ePatient.15) or nem:ePatient.15 = '') or (not(nem:ePatient.16) or nem:ePatient.16 = ''))) or ((nem:ePatient.15[@NV] and nem:ePatient.15[@NV=('7701001', '7701003')]) and (../nem:ePatient.17[@NV] and ../nem:ePatient.17[@NV=('7701001', '7701003', '7701005')]) and (nem:ePatient.16[@NV] and nem:ePatient.16[@NV=('7701001', '7701003')]))))">Either the "Date of Birth" or both the "Age" and "Age Units" fields must be documented. Not values will not be accepted.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.19 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.19" />
      <sch:assert id="Rule_2332" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(nem:eArrest.19 != '' and ../nem:eTimes/nem:eTimes.13 != '' and xs:dateTime(nem:eArrest.19) &gt; xs:dateTime(../nem:eTimes/nem:eTimes.13))">Date of first CPR cannot be after Unit Back in Service</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itOutcome.011 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOutcome">
      <sch:let name="nemsisElements" value="nem:itOutcome.011" />
      <sch:assert id="Rule_2334" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOutcome.011']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOutcome.011'][nem:eCustomResults.01 = '']) and (count(../nem:eDisposition/nem:eDisposition.20[text() = ('4220003')]) != 0))">Enter a Bypass Issue Type</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itHistory.017 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eHistory">
      <sch:let name="nemsisElements" value="nem:itHistory.017" />
      <sch:assert id="Rule_2335" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itHistory.017']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itHistory.017'][nem:eCustomResults.01 = '']) and count(nem:eHistory.05[text() = '3105007']) != 0)">Please enter an Other Advance Directive</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itDisposition.089 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport">
      <sch:let name="nemsisElements" value="nem:itDisposition.089" />
      <sch:assert id="Rule_2337" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eDisposition/nem:eDisposition.21 = ('4221013','4221007','4221021','4221025') or nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eDisposition.21'][nem:eCustomResults.01 = ('it4221.119')]) and (not(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.089']) or nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.089'][nem:eCustomResults.01 = '']) and nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2025-01-30T00:00:00'))">Please enter the Sub Acute Facility name</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eScene.07 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eScene">
			<sch:let name="nemsisElements" value="nem:eScene.07" />
			<sch:assert id="Rule_2338" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eScene.07) or nem:eScene.07 = '') and nem:eScene.06 = '2707001')">Please complete the MCI field</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>itInjury.010 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eInjury">
      <sch:let name="nemsisElements" value="nem:itInjury.010" />
      <sch:assert id="Rule_2339" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(../nem:eSituation/nem:eSituation.02 = '9922005' and (not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itInjury.010']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itInjury.010'][nem:eCustomResults.01 = '']))">Please enter the level of trauma/injury</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.046 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.046" />
      <sch:assert id="Rule_2340" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.046']) or ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.046'][nem:eCustomResults.01 = '']) and (nem:eVitals.01 and nem:eVitals.01 != '') and nem:eVitals.02 != '9923003')">Document the name of the crew member who performed vital signs </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itExam.090 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eExam/nem:eExam.AssessmentGroup">
      <sch:let name="nemsisElements" value="nem:itExam.090" />
      <sch:assert id="Rule_2341" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.090']) or ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.090'][nem:eCustomResults.01 = '']) and (nem:eExam.03 and nem:eExam.03 != '') and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.052'][nem:eCustomResults.01 != 'itExam.052.101'])">Document the name of the crew member who performed Assessment </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eResponse.24 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eResponse">
      <sch:let name="nemsisElements" value="nem:eResponse.24" />
      <sch:assert id="Rule_2342" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eResponse.24) or nem:eResponse.24 = '') and (not(nem:eResponse.24[@NV])) and (nem:eResponse.23 and nem:eResponse.23 != ''))">Additional Response Mode Descriptors to Scene is a required field. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eSituation.08 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:eSituation.08" />
      <sch:assert id="Rule_2343" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eSituation.08) or nem:eSituation.08 = '') and (not(nem:eSituation.08[@NV])) and nem:eSituation.02 = '9922005')">Must document organ system  if Possible Injury = Yes.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.18 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition">
      <sch:let name="nemsisElements" value="nem:eDisposition.18" />
      <sch:assert id="Rule_2344" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eDisposition.18) or nem:eDisposition.18 = '') and (not(nem:eDisposition.18[@NV])) and nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.30 = ('4230001','4230003'))">Additional Transport Mode Descriptors from Scene is a required field. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eOther.18 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther/nem:eOther.SignatureGroup">
      <sch:let name="nemsisElements" value="nem:eOther.18" />
      <sch:assert id="Rule_2345" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eOther.15 != '4515021') and (((not(nem:eOther.18) or nem:eOther.18 = '') and nem:eOther.15 = ('4515031', '4515033')) or ((not(nem:eOther.18) or nem:eOther.18 = '') and nem:eOther.12 = ('4512003', '4512005'))))">Please complete the signature</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eOther.15 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther/nem:eOther.SignatureGroup">
      <sch:let name="nemsisElements" value="nem:eOther.15" />
      <sch:assert id="Rule_2346" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eOther.15) or nem:eOther.15 = '') and nem:eOther.12 = ('4512017', '4512015'))">Signature Status must be filled in</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eOther.20 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther/nem:eOther.SignatureGroup">
      <sch:let name="nemsisElements" value="nem:eOther.20" />
      <sch:assert id="Rule_2347" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eOther.20) or nem:eOther.20 = '') and (nem:eOther.18 and nem:eOther.18 != ''))">Signature: Enter the last name of the person signing</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eOther.21 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther/nem:eOther.SignatureGroup">
      <sch:let name="nemsisElements" value="nem:eOther.21" />
      <sch:assert id="Rule_2348" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eOther.21) or nem:eOther.21 = '') and (nem:eOther.18 and nem:eOther.18 != ''))">Signature: Enter the first name of the person signing</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eSituation.03 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation/nem:eSituation.PatientComplaintGroup">
      <sch:let name="nemsisElements" value="nem:eSituation.03" />
      <sch:assert id="Rule_2349" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eSituation.03) or nem:eSituation.03 = '') and (not(nem:eSituation.03[@NV])) and (nem:eSituation.04 and nem:eSituation.04 != ''))">Please complete the Complaint Type field</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eScene.22 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eScene">
      <sch:let name="nemsisElements" value="nem:eScene.22" />
      <sch:assert id="Rule_2350" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eScene.22) or nem:eScene.22 = ''))">Please complete the Incident Country field</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eResponse.08 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eResponse">
      <sch:let name="nemsisElements" value="nem:eResponse.08" />
      <sch:assert id="Rule_2351" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eResponse.08) or nem:eResponse.08 = '') and (not(nem:eResponse.08[@NV])))">Please complete the Type of Dispatch Delay field</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eResponse.09 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eResponse">
      <sch:let name="nemsisElements" value="nem:eResponse.09" />
      <sch:assert id="Rule_2352" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eResponse.09) or nem:eResponse.09 = '') and (not(nem:eResponse.09[@NV])))">Please complete the Type of Response Delay field</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eResponse.10 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eResponse">
      <sch:let name="nemsisElements" value="nem:eResponse.10" />
      <sch:assert id="Rule_2353" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eResponse.10) or nem:eResponse.10 = '') and (not(nem:eResponse.10[@NV])))">Please complete the Type of Scene Delay field</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eResponse.11 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eResponse">
      <sch:let name="nemsisElements" value="nem:eResponse.11" />
      <sch:assert id="Rule_2354" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eResponse.11) or nem:eResponse.11 = '') and (not(nem:eResponse.11[@NV])))">Please complete the Type of Transport Delay field</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eResponse.12 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eResponse">
      <sch:let name="nemsisElements" value="nem:eResponse.12" />
      <sch:assert id="Rule_2355" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eResponse.12) or nem:eResponse.12 = '') and (not(nem:eResponse.12[@NV])))">Please complete the Type of Turn-Around Delay field</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>ePatient.10 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:ePatient">
      <sch:let name="nemsisElements" value="nem:ePatient.10" />
      <sch:assert id="Rule_2356" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:ePatient.10) or nem:ePatient.10 = '') and (nem:ePatient.08 and nem:ePatient.08 != ''))">Please complete the Patient's Home Country field</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eSituation.17 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:eSituation.17" />
      <sch:assert id="Rule_2357" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((not(nem:eSituation.17) or nem:eSituation.17 = '') and (not(nem:eSituation.17[@NV]))) and ((nem:eSituation.09 and nem:eSituation.09 != '') or (nem:eSituation.02 and nem:eSituation.02 != '')))">Please complete the Patient Activity field</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.22 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.GlasgowScoreGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.22" />
      <sch:assert id="Rule_2358" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eVitals.22) or nem:eVitals.22 = '') and (not(nem:eVitals.22[@NV])) and ../nem:eVitals.02 != '9923003')">Please complete the Glasgow Coma Score-Qualifier field</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.31 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.31" />
      <sch:assert id="Rule_2359" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eVitals.31) or nem:eVitals.31 = '') and (not(nem:eVitals.31[@NV])) and (not(nem:eVitals.31[@PN])) and ../../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2024-09-09T00:00:00'))">Please complete the Reperfusion Checklist field</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itDevice.008 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDevice/nem:eDevice.DeviceGroup">
      <sch:let name="nemsisElements" value="nem:itDevice.008" />
      <sch:assert id="Rule_2360" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDevice.008']/nem:eCustomResults.03=./@CorrelationID) or ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDevice.008'][nem:eCustomResults.01 = '']/nem:eCustomResults.03=./@CorrelationID) and (not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDevice.008']/nem:eCustomResults.03=./@CorrelationID) or ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDevice.008'][not(nem:eCustomResults.01[@NV])]/nem:eCustomResults.03=./@CorrelationID) and (nem:eDevice.02 and nem:eDevice.02 != ''))">Please complete the Medical Device Administered Prior to EMS Care field</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itExam.052 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eExam/nem:eExam.AssessmentGroup">
      <sch:let name="nemsisElements" value="nem:itExam.052" />
      <sch:assert id="Rule_2361" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.052']) or ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.052'][nem:eCustomResults.01 = '']) and (nem:eExam.03 and nem:eExam.03 != ''))">Complete the field Exam Administered Prior to this EMS Units Care  (itExam.052)</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eResponse.19 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eResponse">
      <sch:let name="nemsisElements" value="nem:eResponse.19" />
      <sch:assert id="Rule_2362" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eResponse.19) or nem:eResponse.19 = ''))">Please complete the Beginning Odometer Reading of Responding Vehicle field</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eResponse.22 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eResponse">
      <sch:let name="nemsisElements" value="nem:eResponse.22" />
      <sch:assert id="Rule_2363" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eResponse.22) or nem:eResponse.22 = ''))">Please complete the Ending Odometer Reading of Responding Vehicle field</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eOther.12 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther/nem:eOther.SignatureGroup">
      <sch:let name="nemsisElements" value="nem:eOther.12" />
      <sch:assert id="Rule_2364" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eOther.12) or nem:eOther.12 = '') and (nem:eOther.20 and nem:eOther.20 != ''))">Please complete the Type of Person Signing field</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eOther.13 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther/nem:eOther.SignatureGroup">
      <sch:let name="nemsisElements" value="nem:eOther.13" />
      <sch:assert id="Rule_2365" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eOther.13) or nem:eOther.13 = '') and nem:eOther.12 = ('4512005', '4512015', '4512017'))">Please complete the Signature Reason field</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eTimes.02 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eTimes">
      <sch:let name="nemsisElements" value="nem:eTimes.02" />
      <sch:assert id="Rule_2366" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(nem:eTimes.02 != '' and nem:eTimes.03 != '' and xs:dateTime(nem:eTimes.02) &gt; xs:dateTime(nem:eTimes.03) or nem:eTimes.02 != '' and nem:eTimes.05 != '' and xs:dateTime(nem:eTimes.02) &gt; xs:dateTime(nem:eTimes.05) or nem:eTimes.02 != '' and nem:eTimes.06 != '' and xs:dateTime(nem:eTimes.02) &gt; xs:dateTime(nem:eTimes.06) or nem:eTimes.02 != '' and nem:eTimes.07 != '' and xs:dateTime(nem:eTimes.02) &gt; xs:dateTime(nem:eTimes.07) or nem:eTimes.02 != '' and nem:eTimes.08 != '' and xs:dateTime(nem:eTimes.02) &gt; xs:dateTime(nem:eTimes.08) or nem:eTimes.02 != '' and nem:eTimes.09 != '' and xs:dateTime(nem:eTimes.02) &gt; xs:dateTime(nem:eTimes.09) or nem:eTimes.02 != '' and nem:eTimes.11 != '' and xs:dateTime(nem:eTimes.02) &gt; xs:dateTime(nem:eTimes.11) or nem:eTimes.02 != '' and nem:eTimes.12 != '' and xs:dateTime(nem:eTimes.02) &gt; xs:dateTime(nem:eTimes.12) or nem:eTimes.02 != '' and nem:eTimes.14 != '' and xs:dateTime(nem:eTimes.02) &gt; xs:dateTime(nem:eTimes.14))">Dispatch Notified Date/Time appears to be out of sequence with other recorded date/time value(s).  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDispatch.01 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDispatch">
      <sch:let name="nemsisElements" value="nem:eDispatch.01" />
      <sch:assert id="Rule_2367" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eDispatch.01) or nem:eDispatch.01 = ''))">Complaint Reported by Dispatch is a mandatory field. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eProcedures.03 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eProcedures/nem:eProcedures.ProcedureGroup">
			<sch:let name="nemsisElements" value="nem:eProcedures.03" />
			<sch:assert id="Rule_2377" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((not(nem:eProcedures.03) or nem:eProcedures.03 = '')  ) and ((nem:eProcedures.01 and nem:eProcedures.01 != '') or (nem:eProcedures.09 and nem:eProcedures.09 != '') or (nem:eProcedures.10 and nem:eProcedures.10 != '') or nem:eProcedures.02 = '9923001' or (nem:eProcedures.11 and nem:eProcedures.11 != '') or (nem:eProcedures.08 and nem:eProcedures.08 != '') or (nem:eProcedures.05 and nem:eProcedures.05 != '') or (nem:eProcedures.06 and nem:eProcedures.06 != '') or (nem:eProcedures.07 and nem:eProcedures.07 != '') or (nem:eProcedures.04 and nem:eProcedures.04 != '') or (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.006'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.006'][nem:eCustomResults.01 != '']) or (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.034'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.034'][nem:eCustomResults.01 != '']) or (nem:eProcedures.13 and nem:eProcedures.13 != '') or (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.045'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.045'][nem:eCustomResults.01 != '']) or (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.048'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.048'][nem:eCustomResults.01 != '']) or (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.047'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.047'][nem:eCustomResults.01 != '']) or (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.050'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.050'][nem:eCustomResults.01 != '']) or (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.005'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.005'][nem:eCustomResults.01 != '']) or (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.049'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.049'][nem:eCustomResults.01 != '']) or (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.005'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.005'][nem:eCustomResults.01 != ''])))">Please complete the Procedure field</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>eOther.04 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther/nem:eOther.EMSCrewMemberGroup">
      <sch:let name="nemsisElements" value="nem:eOther.04" />
      <sch:assert id="Rule_2381" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eOther.04) or nem:eOther.04 = '') and (nem:eOther.03 and nem:eOther.03 != ''))">Please complete PPE Crew ID field</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eOther.05 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther/nem:eOther.EMSCrewMemberGroup">
      <sch:let name="nemsisElements" value="nem:eOther.05" />
      <sch:assert id="Rule_2382" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eOther.05) or nem:eOther.05 = '') and (nem:eOther.03 and nem:eOther.03 != '') and (not(nem:eOther.05[@NV])))">Please complete Suspected Exposure field</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eOther.06 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther/nem:eOther.EMSCrewMemberGroup">
      <sch:let name="nemsisElements" value="nem:eOther.06" />
      <sch:assert id="Rule_2383" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eOther.06) or nem:eOther.06 = '') and (nem:eOther.03 and nem:eOther.03 != '') and (not(nem:eOther.06[@NV])))">Please complete the Type of Exposure field</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
<sch:pattern>
		<sch:title>eSituation.11 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eSituation">
			<sch:let name="nemsisElements" value="nem:eSituation.11" />
			<sch:assert id="Rule_2386" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((not(nem:eSituation.11) or nem:eSituation.11 = '' or (not(nem:eSituation.11 = ('T75.4','T78.2','T78.40','Z00.00','Z38.2','J00','J68.9','J70.5','J80','J81.0','J96.9','J98.01','R68.13','T58.0','T71.9','T75.1XXA','F10.92','F19','G24.0','R41.0','Z77.9','I46.8','T14.90','T30.0','R53.1','I46.9','I95.9','F99','I10','I20.9','I21.3','I49.9','R00.2','R07.89','T63','T67.0','T68','K59.1','K92.0','K92.1','N39.9','R10.84','R11.2','G40.901','G40.909','I63.9','R42','R51','R55','N93.9','O60','O80','O99.0','A41.9','E13.64','E13.65','G89.1','H57.9','H93.90','M79.60','R04.0','R50.9','R41.82','R99','O60.0','O60.00')))) and (nem:eSituation.11 and nem:eSituation.11 != '')) or ((not(nem:eSituation.11[@NV]) or (not(nem:eSituation.11[@NV=('7701003')]))) and (nem:eSituation.11[@NV])))">For TPV submissions - Provider Impression must be complete with a LEMSIS value/code.</sch:assert>
		</sch:rule>
	</sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.02 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.DestinationGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.02" />
      <sch:assert id="Rule_2387" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eDisposition.01 and nem:eDisposition.01 != '') and (not(nem:eDisposition.02) or nem:eDisposition.02 = ''))">Document the code of the receiving facility.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eProtocols.01 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eProtocols/nem:eProtocols.ProtocolGroup">
      <sch:let name="nemsisElements" value="nem:eProtocols.01" />
      <sch:assert id="Rule_2388" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eProtocols.01) or nem:eProtocols.01 = '' or (not(nem:eProtocols.01 = ('9914165', '9914073', '9914177', '9914179', '9914109', '9914005', '9914111', '9914113', '9914085', '9914117', '9914145', '9914011', '9914079', '9914023', '9914067', '9914091', '9914159', '9914135', '9914065', '9914223', '9914207', '9914191', '9914071', '9914047', '9914197', '9914063', '9914189', '9914075', '9914201', '9914219')) and not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eProtocols.01'][nem:eCustomResults.01 = ('it9914.112', 'it9914.104', 'it9914.108', 'it9914.115', 'it9914.114', 'it9914.120', 'it9914.346')]))) and (nem:eProtocols.01 and nem:eProtocols.01 != '') and ../../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2024-08-27T00:00:00'))">For TPV submissions - Protocol Used  must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eMedications.03 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eMedications/nem:eMedications.MedicationGroup">
			<sch:let name="nemsisElements" value="nem:eMedications.03" />
			<sch:assert id="Rule_2389" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((../../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../../nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2021-06-30T00:00:00')) and (((not(nem:eMedications.03) or nem:eMedications.03 = '' or (not(nem:eMedications.03 = ('630208','836374','1041527','272','296','703','1191','1223','1901','237648','260258','237653','3322','3498','317361','328316','4337','4832','4850','330468','6387','6585','6960','7052','7242','4917','125464','26225','7806','34345','36676','1233778','35629','1008041','689716','202991','227199','203856','2108213','1010607','10691','1661398','284656','161','435','1908','1190614','1795477','809819','847630','237159','6902','6130','7824')))) and (nem:eMedications.03 and nem:eMedications.03 != '')) or ((not(nem:eMedications.03[@NV]) or (not(nem:eMedications.03[@NV=('7701001','7701003')]))) and (nem:eMedications.03[@NV])) or ((not(nem:eMedications.03[@PN]) or (not(nem:eMedications.03[@PN=('8801001','8801003','8801007','8801009','8801019','8801023','8801027')]))) and (nem:eMedications.03[@PN]))))">For TPV submissions - Medications must be complete with a LEMSIS value/code.</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>itDisposition.047 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition">
      <sch:let name="nemsisElements" value="nem:itDisposition.047" />
      <sch:assert id="Rule_2390" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.047']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.047'] = '' or (not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.047'][nem:eCustomResults.01 = ('12- Sharp Grossmont Hospital', '19- Scripps Mercy Hospital San Diego', '22 - Palomar Medical Center', '30- Scripps Memorial Hospital La Jolla', '31- Sharp Memorial Hospital', '32- Tri-City Medical Center', '35- UCSD Medical Center', 'No Base Hospital Contact Made')]))) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.047'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.047'][nem:eCustomResults.01 != '']))">For TPV  submissions - 
Base Hospital Contacted name must be completed with a LEMSIS value.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itExam.088 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eExam">
      <sch:let name="nemsisElements" value="nem:itExam.088" />
      <sch:assert id="Rule_2391" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.088'][nem:eCustomResults.01 = ('itExam.088.101', 'itExam.088.100', 'itExam.088.104')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.088'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.088'][nem:eCustomResults.01 != '']) and ../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2024-08-24T00:00:00'))">8/23/24 - Sunset rule to remove "BLS Responder N/A" option For TPV submissions - Possible Stroke/TIA must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itDisposition.041 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition">
      <sch:let name="nemsisElements" value="nem:itDisposition.041" />
      <sch:assert id="Rule_2392" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.041'][nem:eCustomResults.01 = ('itDisposition.041.101', 'itDisposition.041.100', 'itDisposition.041.103')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.041'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.041'][nem:eCustomResults.01 != '']) and contains(../nem:eRecord/nem:eRecord.SoftwareApplicationGroup/nem:eRecord.02, 'W.A.T.E.R.') and ../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2024-08-24T00:00:00'))">For TPV submissions - Possible STEMI must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itInjury.010 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eInjury">
      <sch:let name="nemsisElements" value="nem:itInjury.010" />
      <sch:assert id="Rule_2393" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itInjury.010'][nem:eCustomResults.01 = ('itInjury.010.102', 'itInjury.010.103', 'itInjury.010.100')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itInjury.010'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itInjury.010'][nem:eCustomResults.01 != '']))">For TPV submissions - Trauma Severity Level must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eScene.07 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eScene">
      <sch:let name="nemsisElements" value="nem:eScene.07" />
      <sch:assert id="Rule_2394" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eScene.07) or nem:eScene.07 = '' or (not(nem:eScene.07 = ('9923001', '9923003')))) and (nem:eScene.07 and nem:eScene.07 != ''))">For TPV submissions - MCI must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eInjury.01 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eInjury">
			<sch:let name="nemsisElements" value="nem:eInjury.01" />
			<sch:assert id="Rule_2395" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((../nem:eSituation/nem:eSituation.02 = '9922005') and (((not(nem:eInjury.01) or nem:eInjury.01 = '' or count(nem:eInjury.01[text() = ('T50.90','T63','T71.1','T71.16','T71.9','T74.2','T75.0','T75.4','T76.9','V00.8','V03.9','V09.9','V19.3','V19.9','V29.9','V49.3','V80.9','V86.99','V89.9','V94.9','V95.9','V99','W01','W17','W22.8','W31.9','W40.9','W50','W55','W74','W88','X00','X00.1','T30','X30','X31','X99.9','Y28.9','Y00','Y24.9','Y33','V29.881','V45','V05.9','V00.842','V81.3')]) = 0) and (nem:eInjury.01 and nem:eInjury.01 != '')) or ((not(nem:eInjury.01[@NV]) or (not(nem:eInjury.01[@NV=('7701001','7701003')]))) and (nem:eInjury.01[@NV]))))">For TPV submissions - Cause of Injury must be complete with a LEMSIS value/code.</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>eInjury.02 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eInjury">
      <sch:let name="nemsisElements" value="nem:eInjury.02" />
      <sch:assert id="Rule_2396" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((../nem:eSituation/nem:eSituation.02 = '9922005') and (((not(nem:eInjury.02) or nem:eInjury.02 = '' or count(nem:eInjury.02[text() = ('2902001', '2902003', '2902005', '2902007')]) = 0) and (nem:eInjury.02 and nem:eInjury.02 != '')) or ((not(nem:eInjury.02[@NV]) or (not(nem:eInjury.02[@NV=('7701001', '7701003', '7701005')]))) and (nem:eInjury.02[@NV]))))">For TPV submissions - Mechanism of Injury must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eInjury.03 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eInjury">
			<sch:let name="nemsisElements" value="nem:eInjury.03" />
			<sch:assert id="Rule_2397" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((../nem:eSituation/nem:eSituation.02 = '9922005' and ../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2025-05-08T00:00:00')) and (((not(nem:eInjury.03) or nem:eInjury.03 = '' or count(nem:eInjury.03[text() = ('2903023','2903001','2903005','2903003','2903041','2903015','2903017','2903035','2903009','2903021','2903013','2903039','2903019')]) + ../count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eInjury.03'][nem:eCustomResults.01 = ('it2903.112','it2903.109','it2903.122','it2903.111','it2903.118')]) = 0) and (nem:eInjury.03 and nem:eInjury.03 != '')) or ((not(nem:eInjury.03[@NV]) or (not(nem:eInjury.03[@NV=('7701001','7701003')]))) and (nem:eInjury.03[@NV]))))">For TPV submissions - Trauma Center Criteria must be complete with a LEMSIS value/code.</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
		<sch:title>eInjury.04 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eInjury">
			<sch:let name="nemsisElements" value="nem:eInjury.04" />
			<sch:assert id="Rule_2398" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((../nem:eSituation/nem:eSituation.02 = '9922005') and (((not(nem:eInjury.04) or nem:eInjury.04 = '' or count(nem:eInjury.04[text() = ('2904029','2904007','2904009','2904011','2904013','2904027','2904031','2904001','2904035','2904019','2904023','2904033','2904021','2904037','2904039')]) + ../count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eInjury.04'][nem:eCustomResults.01 = ('it2904.005','it2904.012','it2904.009','it2904.008','it2904.006','it2904.007','it2904.018')]) = 0) and (nem:eInjury.04 and nem:eInjury.04 != '')) or ((not(nem:eInjury.04[@NV]) or (not(nem:eInjury.04[@NV=('7701001','7701003')]))) and (nem:eInjury.04[@NV]))))">For TPV submissions - Trauma Center Criteria Cont. must be complete with a LEMSIS value/code.</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>ePatient.13 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:ePatient">
      <sch:let name="nemsisElements" value="nem:ePatient.13" />
      <sch:assert id="Rule_2399" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:ePatient.13) or nem:ePatient.13 = '' or (not(nem:ePatient.13 = ('9906001', '9906003', '9906005', '9906007', '9906009')))) and (nem:ePatient.13 and nem:ePatient.13 != '')) or ((not(nem:ePatient.13[@NV]) or (not(nem:ePatient.13[@NV=('7701001', '7701003')]))) and (nem:ePatient.13[@NV]))))">For TPV submissions - Gender  must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eSituation.13 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:eSituation.13" />
      <sch:assert id="Rule_2400" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eSituation.13) or nem:eSituation.13 = '' or (not(nem:eSituation.13 = ('2813005', '2813003', '2813001', '2813007')))) and (nem:eSituation.13 and nem:eSituation.13 != '')) or ((not(nem:eSituation.13[@NV]) or (not(nem:eSituation.13[@NV=('7701001', '7701003')]))) and (nem:eSituation.13[@NV]))))">For TPV submissions - Acuity must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eResponse.07 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eResponse">
      <sch:let name="nemsisElements" value="nem:eResponse.07" />
      <sch:assert id="Rule_2402" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eResponse.07) or nem:eResponse.07 = '' or (not(nem:eResponse.07 = ('2207015', '2207017', '2207011', '2207019', '2207013', '2207021', '2207023')) and not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eResponse.07'][nem:eCustomResults.01 = ('it2207.100', 'it2207.101', 'it2207.114', 'it2207.115', 'it2207.113', 'it2207.004')]))) and (nem:eResponse.07 and nem:eResponse.07 != ''))">For TPV submissions - Primary Role of the Unit must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itResponse.115 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eResponse">
      <sch:let name="nemsisElements" value="nem:itResponse.115" />
      <sch:assert id="Rule_2403" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itResponse.115'][nem:eCustomResults.01 = ('itResponse.115.107', 'itResponse.115.102')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itResponse.115'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itResponse.115'][nem:eCustomResults.01 != '']) and ../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2024-08-23T00:00:00'))">For TPV submissions - Level of Care of this Unit must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eResponse.05 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eResponse/nem:eResponse.ServiceGroup">
			<sch:let name="nemsisElements" value="nem:eResponse.05" />
			<sch:assert id="Rule_2404" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eResponse.05) or nem:eResponse.05 = '' or (not(nem:eResponse.05 = ('2205001','2205005','2205007','2205011','2205023','2205013','2205021','2205025','2205015','2205017','2205019','2205009')))) and (nem:eResponse.05 and nem:eResponse.05 != '')  )">For TPV submissions - Type of Service Requested must be complete with a LEMSIS value/code.</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>ePatient.14 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:ePatient">
      <sch:let name="nemsisElements" value="nem:ePatient.14" />
      <sch:assert id="Rule_2405" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:ePatient.14) or nem:ePatient.14 = '' or count(nem:ePatient.14[text() = ('2514001', '2514003', '2514005', '2514007', '2514009', '2514011')]) + ../count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'ePatient.14'][nem:eCustomResults.01 = ('it2514.001')]) = 0) and (nem:ePatient.14 and nem:ePatient.14 != '')) or ((not(nem:ePatient.14[@NV]) or (not(nem:ePatient.14[@NV=('7701003')]))) and (nem:ePatient.14[@NV]))))">For TPV submissions - Race must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eScene.01 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eScene">
      <sch:let name="nemsisElements" value="nem:eScene.01" />
      <sch:assert id="Rule_2407" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eScene.01) or nem:eScene.01 = '' or (not(nem:eScene.01 = ('9923001', '9923003')))) and (nem:eScene.01 and nem:eScene.01 != '')) or ((not(nem:eScene.01[@NV]) or (not(nem:eScene.01[@NV=('7701001')]))) and (nem:eScene.01[@NV]))))">For TPV submissions - First EMS Unit on Scene must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eScene.09 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eScene">
      <sch:let name="nemsisElements" value="nem:eScene.09" />
      <sch:assert id="Rule_2408" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eScene.09) or nem:eScene.09 = '' or (not(nem:eScene.09 = ('Y92.00', 'Y92.41', 'Y92.29', 'Y92.51', 'Y92.12', 'Y92.13', 'Y92.14', 'Y92.16', 'Y92.196', 'Y92.219', 'Y92.23', 'Y92.248', 'Y92.318', 'Y92.520', 'Y92.531', 'Y92.532', 'Y92.69', 'Y92.7', 'Y92.82', 'Y92.832', 'Y92.838', 'Y92.85', 'Y92.9')))) and (nem:eScene.09 and nem:eScene.09 != '')) or ((not(nem:eScene.09[@NV]) or (not(nem:eScene.09[@NV=('7701001', '7701003')]))) and (nem:eScene.09[@NV]))))">For TPV submissions - Scene Incident Location Type must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eResponse.10 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eResponse">
      <sch:let name="nemsisElements" value="nem:eResponse.10" />
      <sch:assert id="Rule_2409" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eResponse.10) or nem:eResponse.10 = '' or count(nem:eResponse.10[text() = ('2210001', '2210003', '2210005', '2210007', '2210009', '2210011', '2210013', '2210015', '2210039', '2210017', '2210019', '2210021', '2210023', '2210025', '2210029', '2210027', '2210031', '2210033', '2210035', '2210037')]) = 0) and (nem:eResponse.10 and nem:eResponse.10 != '')) or ((not(nem:eResponse.10[@NV]) or (not(nem:eResponse.10[@NV=('7701001', '7701003')]))) and (nem:eResponse.10[@NV]))))">For TPV submissions - Type of Scene Delay  must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eSituation.09 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:eSituation.09" />
      <sch:assert id="Rule_2410" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eSituation.09) or nem:eSituation.09 = '' or (not(nem:eSituation.09 = ('G47.00', 'G81.9', 'G82.2', 'G83.10', 'H53.14', 'H53.9', 'H54.7', 'H57.10', 'H91.90', 'H92.09', 'J02', 'K08.8', 'K59.00', 'K92.0', 'L29.9', 'L50', 'M54.02', 'M54.9', 'G50.1', 'M79.6', 'N48.3', 'N93.9', 'R00.2', 'R04.0', 'R04.2', 'R05', 'R06.01', 'R06.02', 'R06.1', 'R06.2', 'R06.3', 'R06.4', 'R06.6', 'R06.81', 'R07.1', 'R07.89', 'R07.9', 'R09.2', 'R09.81', 'R10.1', 'R10.13', 'R10.2', 'R10.3', 'R10.33', 'R10.84', 'R11.0', 'R11.10', 'R12', 'R13.10', 'R14.0', 'R17', 'R19.7', 'R20.0', 'R21', 'R22', 'R23.0', 'R23.1', 'R23.2', 'R25.1', 'R25.2', 'R26.2', 'R29.6', 'R29.810', 'R30.0', 'R31', 'R32', 'R33.9', 'R35.8', 'R40.0', 'R40.20', 'R41.0', 'R41.82', 'R42', 'R44.0', 'R44.1', 'R45.1', 'R45.6', 'R45.7', 'R45.82', 'R45.850', 'R45.851', 'R46.2', 'R47.01', 'R47.81', 'R50.9', 'R51', 'R53.1', 'R53.81', 'R53.83', 'R55', 'R56.9', 'R58', 'R60.9', 'R61', 'R63.0', 'R63.3', 'R63.5', 'R68.11', 'R68.84', 'R99', 'Z00.00', 'Z00.129', 'R68.83')))) and (nem:eSituation.09 and nem:eSituation.09 != '')) or ((nem:eSituation.09[@NV]) and (not(nem:eSituation.09[@NV]) or nem:eSituation.09[@NV != '7701003']))))">For TPV submissions - Primary Symptom must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eSituation.07 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:eSituation.07" />
      <sch:assert id="Rule_2411" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eSituation.07) or nem:eSituation.07 = '' or (not(nem:eSituation.07 = ('2807001', '2807003', '2807005', '2807007', '2807009', '2807011', '2807013', '2807015', '2807017')))) and (nem:eSituation.07 and nem:eSituation.07 != '')) or ((not(nem:eSituation.07[@NV]) or (not(nem:eSituation.07[@NV=('7701001', '7701003')]))) and (nem:eSituation.07[@NV]))))">For TPV submissions - Chief Complaint Anatomic Location must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eSituation.14 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation/nem:eSituation.WorkRelatedGroup">
      <sch:let name="nemsisElements" value="nem:eSituation.14" />
      <sch:assert id="Rule_2413" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eSituation.14) or nem:eSituation.14 = '' or (not(nem:eSituation.14 = ('9922001', '9922003', '9922005')))) and (nem:eSituation.14 and nem:eSituation.14 != '')) or ((not(nem:eSituation.14[@NV]) or (not(nem:eSituation.14[@NV=('7701001', '7701003', '7701005')]))) and (nem:eSituation.14[@NV]))))">For TPV submissions -  Work Related Illness/Injury must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.02 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.02" />
      <sch:assert id="Rule_2415" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eArrest.02) or nem:eArrest.02 = '' or (not(nem:eArrest.02 = ('3002001', '3002003', '3002005', '3002007', '3002009', '3002011', '3002013', '3002015')))) and (nem:eArrest.02 and nem:eArrest.02 != '')) or ((not(nem:eArrest.02[@NV]) or (not(nem:eArrest.02[@NV=('7701001', '7701003')]))) and (nem:eArrest.02[@NV]))))">For TPV submissions - Cardiac Arrest Etiology must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.04 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.04" />
      <sch:assert id="Rule_2416" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eArrest.04) or nem:eArrest.04 = '' or count(nem:eArrest.04[text() = ('3004001', '3004003', '3004005', '3004007')]) = 0) and (nem:eArrest.04 and nem:eArrest.04 != '')) or ((not(nem:eArrest.04[@NV]) or (not(nem:eArrest.04[@NV=('7701001', '7701003')]))) and (nem:eArrest.04[@NV]))))">For TPV submissions - Cardiac Arrest Witnessed By must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itArrest.106 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:itArrest.106" />
      <sch:assert id="Rule_2418" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((count(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.106'][nem:eCustomResults.01 = ('itArrest.106.101', 'itArrest.106.102', 'itArrest.106.103', 'itArrest.106.104', 'itArrest.106.105')]) = 0) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.106'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.106'][nem:eCustomResults.01 != '']))">For TPV submissions - Cardiac Arrest Who Provided CPR Prior To EMS Arrival must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.09 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.09" />
      <sch:assert id="Rule_2419" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eArrest.09) or nem:eArrest.09 = '' or count(nem:eArrest.09[text() = ('3009001', '3009003', '3009007', '3009013', '3009015', '3009017', '3009019', '3009005')]) = 0) and (nem:eArrest.09 and nem:eArrest.09 != '')) or ((not(nem:eArrest.09[@NV]) or (not(nem:eArrest.09[@NV=('7701001', '7701003')]))) and (nem:eArrest.09[@NV]))))">For TPV submissions - Type Of CPR Provided must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.07 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.07" />
      <sch:assert id="Rule_2420" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2024-10-01T00:00:00')) and (((not(nem:eArrest.07) or nem:eArrest.07 = '' or (not(nem:eArrest.07 = ('3007001', '3007003', '3007005')))) and (nem:eArrest.07 and nem:eArrest.07 != '')) or ((not(nem:eArrest.07[@NV]) or (not(nem:eArrest.07[@NV=('7701001', '7701003')]))) and (nem:eArrest.07[@NV]))))">For TPV submissions - AED Use Prior To EMS Arrival must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.11 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.11" />
      <sch:assert id="Rule_2421" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eArrest.11) or nem:eArrest.11 = '' or (not(nem:eArrest.11 = ('3011001', '3011005', '3011007', '3011009', '3011011', '3011013')))) and (nem:eArrest.11 and nem:eArrest.11 != '')) or ((not(nem:eArrest.11[@NV]) or (not(nem:eArrest.11[@NV=('7701001', '7701003')]))) and (nem:eArrest.11[@NV]))))">For TPV submissions - First Monitored Arrest Rhythm Of Patient must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.12 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.12" />
      <sch:assert id="Rule_2423" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eArrest.12) or nem:eArrest.12 = '' or count(nem:eArrest.12[text() = ('3012001', '3012003', '3012005', '3012007')]) = 0) and (nem:eArrest.12 and nem:eArrest.12 != '')) or ((not(nem:eArrest.12[@NV]) or (not(nem:eArrest.12[@NV=('7701001', '7701003')]))) and (nem:eArrest.12[@NV]))))">For TPV submissions - Any Return Of Spontaneous Circulation must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itArrest.012 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:itArrest.012" />
      <sch:assert id="Rule_2424" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.012'][nem:eCustomResults.01 = ('itArrest.012.100', 'itArrest.012.102', 'itArrest.012.101')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.012'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itArrest.012'][nem:eCustomResults.01 != '']) and ../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2024-10-01T00:00:00'))">For TPV submissions - Sustained ROSC must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.03 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.03" />
      <sch:assert id="Rule_2425" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eArrest.03) or nem:eArrest.03 = '' or count(nem:eArrest.03[text() = ('3003001', '3003003', '3003005', '3003007', '3003009', '3003011')]) = 0) and (nem:eArrest.03 and nem:eArrest.03 != '')) or ((not(nem:eArrest.03[@NV]) or (not(nem:eArrest.03[@NV=('7701001', '7701003')]))) and (nem:eArrest.03[@NV]))))">For TPV submissions -Resuscitation Attempted By EMS must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.17 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.17" />
      <sch:assert id="Rule_2426" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eArrest.17) or nem:eArrest.17 = '' or count(nem:eArrest.17[text() = ('9901061', '9901063', '9901059', '9901065', '9901067', '9901071', '9901069', '9901001', '9901005', '9901003', '9901007', '9901009', '9901011', '9901013', '9901015', '9901017', '9901019', '9901021', '9901023', '9901025', '9901027', '9901029', '9901031', '9901033', '9901035', '9901037', '9901039', '9901041', '9901043', '9901045', '9901047', '9901049', '9901051', '9901053', '9901055', '9901057')]) = 0) and (nem:eArrest.17 and nem:eArrest.17 != '')) or ((not(nem:eArrest.17[@NV]) or (not(nem:eArrest.17[@NV=('7701001', '7701003')]))) and (nem:eArrest.17[@NV]))))">For TPV submissions -Rhythm On Arrival At Destination must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.16 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.16" />
      <sch:assert id="Rule_2427" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eArrest.16) or nem:eArrest.16 = '' or (not(nem:eArrest.16 = ('3016001', '3016003', '3016005', '3016007', '3016009', '3016011')))) and (nem:eArrest.16 and nem:eArrest.16 != '')) or ((not(nem:eArrest.16[@NV]) or (not(nem:eArrest.16[@NV=('7701001', '7701003')]))) and (nem:eArrest.16[@NV]))))">For TPV submissions -Reason CPR/Resuscitation Discontinued must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.18 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.18" />
      <sch:assert id="Rule_2428" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eArrest.18) or nem:eArrest.18 = '' or (not(nem:eArrest.18 = ('3018001', '3018003', '3018011', '3018005', '3018009', '3018007')) and not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eArrest.18'][nem:eCustomResults.01 = ('it3018.100')]))) and (nem:eArrest.18 and nem:eArrest.18 != ''))">For TPV submissions -Cardiac Arrest End Of EMS Event must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itStemi.002 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:itStemiGroup">
      <sch:let name="nemsisElements" value="nem:itStemi.002" />
      <sch:assert id="Rule_2429" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itStemi.002'][nem:eCustomResults.01 = ('itStemi.002.001', 'itStemi.002.002')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itStemi.002'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itStemi.002'][nem:eCustomResults.01 != '']))">For TPV submissions - STEMI 12 Lead EKG Transmitted For Interpretation must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itStemi.005 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:itStemiGroup">
      <sch:let name="nemsisElements" value="nem:itStemi.005" />
      <sch:assert id="Rule_2430" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itStemi.005'][nem:eCustomResults.01 = ('itStemi.005.001', 'itStemi.005.002')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itStemi.005'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itStemi.005'][nem:eCustomResults.01 != '']))">For TPV submissions - Stemi Triage Criteria must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.16 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition">
      <sch:let name="nemsisElements" value="nem:eDisposition.16" />
      <sch:assert id="Rule_2431" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eDisposition.16) or nem:eDisposition.16 = '' or (not(nem:eDisposition.16 = ('4216003', '4216005', '4216007', '4216009', '4216013', '4216011', '4216015', '4216017')))) and (nem:eDisposition.16 and nem:eDisposition.16 != '')) or ((not(nem:eDisposition.16[@NV]) or (not(nem:eDisposition.16[@NV=('7701001', '7701003')]))) and (nem:eDisposition.16[@NV]))))">For TPV submissions - EMS Transport Method must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.21 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition">
      <sch:let name="nemsisElements" value="nem:eDisposition.21" />
      <sch:assert id="Rule_2432" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eDisposition.21) or nem:eDisposition.21 = '' or (not(nem:eDisposition.21 = ('4221003', '4221005', '4221017', '4221015', '4221019', '4221013', '4221007', '4221021', '4221025', '4221001')) and not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eDisposition.21'][nem:eCustomResults.01 = ('it4221.110', 'it4221.119')]))) and (nem:eDisposition.21 and nem:eDisposition.21 != '')) or ((not(nem:eDisposition.21[@NV]) or (not(nem:eDisposition.21[@NV=('7701001', '7701003')]))) and (nem:eDisposition.21[@NV]))))">For TPV submissions - Type Of Destination must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eDisposition.22 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eDisposition">
			<sch:let name="nemsisElements" value="nem:eDisposition.22" />
			<sch:assert id="Rule_2433" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eDisposition.22) or nem:eDisposition.22 = '' or (not(nem:eDisposition.22 = ('4222001','4222003','4222005','4222007','4222009','4222011','4222013','4222015','4222017','4222019','4222021','4222023','4222025','4222031','4222033','4222035','4222037','4222027','4222029','4222045','4222041','4222039','4222043','4222047','4222049','4222051','4222053')))) and (nem:eDisposition.22 and nem:eDisposition.22 != '')) or ((not(nem:eDisposition.22[@NV]) or (not(nem:eDisposition.22[@NV=('7701001','7701003')]))) and (nem:eDisposition.22[@NV]))))">For TPV submissions -Hospital In-Patient Destination must be complete with a LEMSIS value/code.</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>eDisposition.23 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition">
      <sch:let name="nemsisElements" value="nem:eDisposition.23" />
      <sch:assert id="Rule_2434" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eDisposition.23) or nem:eDisposition.23 = '' or count(nem:eDisposition.23[text() = ('9908001','9908003','9908035','9908031','9908033','9908005','9908007','9908009','9908011','9908019','9908039','9908021','9908023','9908025','9908027','9908029')]) = 0) and (nem:eDisposition.23 and nem:eDisposition.23 != '')) or ((not(nem:eDisposition.23[@NV]) or (not(nem:eDisposition.23[@NV=('7701001','7701003')]))) and (nem:eDisposition.23[@NV]))))">For TPV submissions -Hospital Capability must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>ePayment.01 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:ePayment">
      <sch:let name="nemsisElements" value="nem:ePayment.01" />
      <sch:assert id="Rule_2435" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:ePayment.01) or nem:ePayment.01 = '' or (not(nem:ePayment.01 = ('2601019', '2601017', '2601001', '2601003', '2601005', '2601021', '2601007', '2601009', '2601023', '2601015', '2601011', '2601013')))) and (nem:ePayment.01 and nem:ePayment.01 != '')) or ((not(nem:ePayment.01[@NV]) or (not(nem:ePayment.01[@NV=('7701001', '7701003')]))) and (nem:ePayment.01[@NV]))))">For TPV submissions -Primary Method Of Payment  must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itOther.020 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther">
      <sch:let name="nemsisElements" value="nem:itOther.020" />
      <sch:assert id="Rule_2436" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.020'][nem:eCustomResults.01 = ('itOther.020.100', 'itOther.020.101')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.020'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.020'][nem:eCustomResults.01 != ''])) or ((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.020'][nem:eCustomResults.01[@NV]]) or (not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.020'][nem:eCustomResults.01[@NV = ('7701001')]]))) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.020'][nem:eCustomResults.01[@NV]]))))">For TPV submissions-  Is Patient (or DDM) Oriented To Person Place Time And Event must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itOther.021 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther">
      <sch:let name="nemsisElements" value="nem:itOther.021" />
      <sch:assert id="Rule_2437" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.021'][nem:eCustomResults.01 = ('itOther.021.100', 'itOther.021.101')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.021'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.021'][nem:eCustomResults.01 != ''])) or ((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.021'][nem:eCustomResults.01[@NV]]) or (not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.021'][nem:eCustomResults.01[@NV = ('7701001')]]))) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.021'][nem:eCustomResults.01[@NV]]))))">For TPV submissions- AMA Is Patient (or DDM) Unimpaired By Drugs Or Alcohol must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itOther.022 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther">
      <sch:let name="nemsisElements" value="nem:itOther.022" />
      <sch:assert id="Rule_2438" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.022'][nem:eCustomResults.01 = ('itOther.022.100', 'itOther.022.101')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.022'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.022'][nem:eCustomResults.01 != ''])) or ((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.022'][nem:eCustomResults.01[@NV]]) or (not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.022'][nem:eCustomResults.01[@NV = ('7701001')]]))) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.022'][nem:eCustomResults.01[@NV]]))))">For TPV submissions- AMA Is Patient (or DDM) Competent To Refuse Care must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itOther.023 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther">
      <sch:let name="nemsisElements" value="nem:itOther.023" />
      <sch:assert id="Rule_2439" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.023'][nem:eCustomResults.01 = ('itOther.023.100', 'itOther.023.101')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.023'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.023'][nem:eCustomResults.01 != ''])) or ((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.023'][nem:eCustomResults.01[@NV]]) or (not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.023'][nem:eCustomResults.01[@NV = ('7701001')]]))) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.023'][nem:eCustomResults.01[@NV]]))))">For TPV submissions- AMA Has Patient (or DDM) Been Advised That 911 Can Be Reassessed  must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itOther.024 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther">
      <sch:let name="nemsisElements" value="nem:itOther.024" />
      <sch:assert id="Rule_2440" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.024'][nem:eCustomResults.01 = ('itOther.024.100', 'itOther.024.101')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.024'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.024'][nem:eCustomResults.01 != ''])) or ((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.024'][nem:eCustomResults.01[@NV]]) or (not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.024'][nem:eCustomResults.01[@NV = ('7701001')]]))) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.024'][nem:eCustomResults.01[@NV]]))))">For TPV submissions- AMA Have The Risks And Complications Of Refusal Been Discussed must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itOther.025 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther">
      <sch:let name="nemsisElements" value="nem:itOther.025" />
      <sch:assert id="Rule_2441" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.025'][nem:eCustomResults.01 = ('itOther.025.100', 'itOther.025.101')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.025'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.025'][nem:eCustomResults.01 != ''])) or ((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.025'][nem:eCustomResults.01[@NV]]) or (not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.025'][nem:eCustomResults.01[@NV = ('7701001')]]))) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.025'][nem:eCustomResults.01[@NV]]))))">For TPV submissions- AMA Is The Patient 18 Years Of Age Or Emancipated must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itOther.017 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther">
      <sch:let name="nemsisElements" value="nem:itOther.017" />
      <sch:assert id="Rule_2442" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.017'][nem:eCustomResults.01 = ('itOther.017.100', 'itOther.017.101', 'itOther.017.102', 'itOther.017.103')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.017'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.017'][nem:eCustomResults.01 != '']))">For TPV submissions- AMA Patient (or DDM) Reason For AMA must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itOther.018 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther">
      <sch:let name="nemsisElements" value="nem:itOther.018" />
      <sch:assert id="Rule_2443" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.018'][nem:eCustomResults.01 = ('itOther.018.100', 'itOther.018.101', 'itOther.018.102', 'itOther.018.103', 'itOther.018.104', 'itOther.018.105')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.018'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.018'][nem:eCustomResults.01 != '']))">For TPV submissions- AMA Patient (or DDM) Alternative Plan must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itOther.019 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther">
      <sch:let name="nemsisElements" value="nem:itOther.019" />
      <sch:assert id="Rule_2444" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((count(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.019'][nem:eCustomResults.01 = ('itOther.019.100', 'itOther.019.101', 'itOther.019.102', 'itOther.019.103', 'itOther.019.104', 'itOther.019.105', 'itOther.019.106')]) = 0) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.019'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOther.019'][nem:eCustomResults.01 != '']))">For TPV submissions- AMA Who (family - friends) With Patient Now List must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>ePatient.16 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:ePatient/nem:ePatient.AgeGroup">
      <sch:let name="nemsisElements" value="nem:ePatient.16" />
      <sch:assert id="Rule_2445" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:ePatient.16) or nem:ePatient.16 = '' or (not(nem:ePatient.16 = ('2516009', '2516007', '2516001', '2516005', '2516003')))) and (nem:ePatient.16 and nem:ePatient.16 != '')) or ((not(nem:ePatient.16[@NV]) or (not(nem:ePatient.16[@NV=('7701001', '7701003')]))) and (nem:ePatient.16[@NV]))))">For TPV submissions- Patient Age Units must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itSituation.012 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:itSituation.012" />
      <sch:assert id="Rule_2446" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.012'][nem:eCustomResults.01 = ('itSituation.012.101', 'itSituation.012.103')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.012'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.012'][nem:eCustomResults.01 != '']))">For TPV submissions- Guardian Present must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eExam.02 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eExam">
      <sch:let name="nemsisElements" value="nem:eExam.02" />
      <sch:assert id="Rule_2447" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eExam.02) or nem:eExam.02 = '' or (not(nem:eExam.02 = ('3502001', '3502003', '3502005', '3502007', '3502009', '3502011', '3502013', '3502015', '3502017')) and not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eExam.02'][nem:eCustomResults.01 = ('it3502.002')]))) and (nem:eExam.02 and nem:eExam.02 != '')) or ((not(nem:eExam.02[@NV]) or (not(nem:eExam.02[@NV=('7701001', '7701003', '7701005')]))) and (nem:eExam.02[@NV])) or ((not(nem:eExam.02[@PN]) or (not(nem:eExam.02[@PN=('8801019', '8801023')]))) and (nem:eExam.02[@PN]))))">For TPV submissions- Patient Length Based Color must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eScene.08 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eScene">
      <sch:let name="nemsisElements" value="nem:eScene.08" />
      <sch:assert id="Rule_2448" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eScene.08) or nem:eScene.08 = '' or (not(nem:eScene.08 = ('2708009', '2708005', '2708001', '2708003')))) and (nem:eScene.08 and nem:eScene.08 != '')) or ((not(nem:eScene.08[@NV]) or (not(nem:eScene.08[@NV=('7701001', '7701003')]))) and (nem:eScene.08[@NV]))))">For TPV submissions- Scene Triage Classification For MCI Patient must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eHistory.05 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eHistory">
      <sch:let name="nemsisElements" value="nem:eHistory.05" />
      <sch:assert id="Rule_2449" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eHistory.05) or nem:eHistory.05 = '' or count(nem:eHistory.05[text() = ('3105001', '3105003', '3105005', '3105007', '3105009', '3105011')]) = 0) and (nem:eHistory.05 and nem:eHistory.05 != '')) or ((not(nem:eHistory.05[@NV]) or (not(nem:eHistory.05[@NV=('7701001', '7701003', '7701005')]))) and (nem:eHistory.05[@NV]))))">For TPV submissions- Advance Directives must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eSituation.08 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:eSituation.08" />
      <sch:assert id="Rule_2450" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eSituation.08) or nem:eSituation.08 = '' or (not(nem:eSituation.08 = ('2808001', '2808003', '2808005', '2808007', '2808009', '2808011', '2808013', '2808015', '2808019', '2808021', '2808017')))) and (nem:eSituation.08 and nem:eSituation.08 != '')) or ((not(nem:eSituation.08[@NV]) or (not(nem:eSituation.08[@NV=('7701001', '7701003')]))) and (nem:eSituation.08[@NV]))))">For TPV submissions- Chief Complaint Organ System must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eSituation.12 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:eSituation.12" />
      <sch:assert id="Rule_2451" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eSituation.12) or nem:eSituation.12 = '' or count(nem:eSituation.12[text() = ('I46.9', 'I95.9', 'F99', 'I10', 'I20.9', 'I21.3', 'I49.9', 'R00.2', 'R07.89', 'T63', 'T67.0', 'T68', 'K59.1', 'K92.0', 'K92.1', 'N39.9', 'R10.84', 'R11.2', 'G40.901', 'G40.909', 'I63.9', 'R41.82', 'R42', 'R51', 'R55', 'N93.9', 'O60', 'O80', 'O99.0', 'A41.9', 'E13.64', 'E13.65', 'G89.1', 'H57.9', 'H93.90', 'M79.60', 'R04.0', 'R50.9', 'R99', 'T75.4', 'T78.2', 'T78.40', 'Z00.00', 'Z38.2', 'J00', 'J68.9', 'J70.5', 'J80', 'J81.0', 'J96.9', 'J98.01', 'R68.13', 'T58.0', 'T71.9', 'T75.1XXA', 'F10.92', 'F19', 'G24.0', 'R41.0', 'Z77.9', 'I46.8', 'T14.90', 'T30.0', 'R53.1')]) = 0) and (nem:eSituation.12 and nem:eSituation.12 != '')) or ((not(nem:eSituation.12[@NV]) or (not(nem:eSituation.12[@NV=('7701003')]))) and (nem:eSituation.12[@NV]))))">For TPV submissions - Secondary Impression must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eSituation.10 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:eSituation.10" />
      <sch:assert id="Rule_2452" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eSituation.10) or nem:eSituation.10 = '' or count(nem:eSituation.10[text() = ('R19.7', 'R20.0', 'R21', 'R22', 'R23.0', 'R23.1', 'R23.2', 'R25.1', 'R25.2', 'R26.2', 'R29.6', 'R29.810', 'R30.0', 'R31', 'R32', 'R33.9', 'R35.8', 'R40.0', 'R40.20', 'R41.0', 'R41.82', 'R42', 'R44.0', 'R44.1', 'R45.1', 'R45.6', 'R45.7', 'R45.82', 'R45.850', 'R45.851', 'R46.2', 'R47.01', 'R50.9', 'R47.81', 'R51', 'R53.1', 'R53.81', 'R53.83', 'R55', 'R56.9', 'R58', 'R60.9', 'R61', 'R63.0', 'R63.3', 'R63.5', 'R68.11', 'R68.83', 'R68.84', 'R99', 'Z00.00', 'Z00.129', 'G47.00', 'G81.9', 'G82.2', 'G83.10', 'H53.14', 'H53.9', 'H54.7', 'H57.10', 'H91.90', 'H92.09', 'J02', 'K08.8', 'K59.00', 'K92.0', 'L29.9', 'L50', 'M54.02', 'M54.9', 'G50.1', 'M79.6', 'N48.3', 'N93.9', 'R00.2', 'R04.0', 'R04.2', 'R05', 'R06.01', 'R06.02', 'R06.1', 'R06.2', 'R06.3', 'R06.4', 'R06.6', 'R06.81', 'R07.1', 'R07.89', 'R07.9', 'R09.2', 'R09.81', 'R10.1', 'R10.13', 'R10.2', 'R10.3', 'R10.33', 'R10.84', 'R11.0', 'R11.10', 'R12', 'R13.10', 'R14.0', 'R17')]) = 0) and (nem:eSituation.10 and nem:eSituation.10 != '')) or ((not(nem:eSituation.10[@NV]) or (not(nem:eSituation.10[@NV=('7701003')]))) and (nem:eSituation.10[@NV]))))">For TPV submissions - Other Associated Symptoms must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eHistory.18 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eHistory">
      <sch:let name="nemsisElements" value="nem:eHistory.18" />
      <sch:assert id="Rule_2453" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eHistory.18) or nem:eHistory.18 = '' or (not(nem:eHistory.18 = ('3118001', '3118003', '3118005', '3118007', '3118009', '3118011')))) and (nem:eHistory.18 and nem:eHistory.18 != '')) or ((not(nem:eHistory.18[@PN]) or (not(nem:eHistory.18[@PN=('8801019', '8801023')]))) and (nem:eHistory.18[@PN]))))">For TPV submissions -Pregnancy must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.002 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.002" />
      <sch:assert id="Rule_2455" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.002'][nem:eCustomResults.01 = ('itVitals.002.111', 'itVitals.002.108', 'itVitals.002.109', 'itVitals.002.110')])) and (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.002'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.002'][nem:eCustomResults.01 != '']))">For TPV submissions - Airway (must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.02 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.02" />
      <sch:assert id="Rule_2456" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eVitals.02) or nem:eVitals.02 = '' or (not(nem:eVitals.02 = ('9923001', '9923003')))) and (nem:eVitals.02 and nem:eVitals.02 != '')) or ((not(nem:eVitals.02[@NV]) or (not(nem:eVitals.02[@NV=('7701001', '7701003')]))) and (nem:eVitals.02[@NV]))))">For TPV submissions -Obtained Prior to this Units EMS Care must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.15 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.15" />
      <sch:assert id="Rule_2457" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eVitals.15) or nem:eVitals.15 = '' or (not(nem:eVitals.15 = ('3315007', '3315001', '3315003', '3315005', '3315009', '3315011', '3315013')))) and (nem:eVitals.15 and nem:eVitals.15 != ''))">For TPV submissions - Respiratory Effort must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.019 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.019" />
      <sch:assert id="Rule_2458" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((count(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.019'][nem:eCustomResults.01 = ('itVitals.019.104', 'itVitals.019.101', 'itVitals.019.103', 'itVitals.019.102', 'itVitals.019.105', 'itVitals.019.100')]) = 0) and (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.019']))">For TPV submissions - Pulse Quality must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.19 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.GlasgowScoreGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.19" />
      <sch:assert id="Rule_2459" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eVitals.19) or nem:eVitals.19 = '' or (not(nem:eVitals.19 = ('4', '3', '2', '1')))) and (nem:eVitals.19 and nem:eVitals.19 != '')) or ((not(nem:eVitals.19[@NV]) or (not(nem:eVitals.19[@NV=('7701001', '7701003')]))) and (nem:eVitals.19[@NV])) or ((not(nem:eVitals.19[@PN]) or (not(nem:eVitals.19[@PN=('8801019', '8801023')]))) and (nem:eVitals.19[@PN]))))">For TPV submissions - GCS-Eye must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.20 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.GlasgowScoreGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.20" />
      <sch:assert id="Rule_2460" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eVitals.20) or nem:eVitals.20 = '' or (not(nem:eVitals.20 = ('5', '4', '3', '2', '1')))) and (nem:eVitals.20 and nem:eVitals.20 != '')) or ((not(nem:eVitals.20[@NV]) or (not(nem:eVitals.20[@NV=('7701001', '7701003')]))) and (nem:eVitals.20[@NV])) or ((not(nem:eVitals.20[@PN]) or (not(nem:eVitals.20[@PN=('8801019', '8801023')]))) and (nem:eVitals.20[@PN]))))">For TPV submissions - GCS-Verbal must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.21 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.GlasgowScoreGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.21" />
      <sch:assert id="Rule_2461" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eVitals.21) or nem:eVitals.21 = '' or (not(nem:eVitals.21 = ('6', '5', '4', '3', '2', '1')))) and (nem:eVitals.21 and nem:eVitals.21 != '')) or ((not(nem:eVitals.21[@PN]) or (not(nem:eVitals.21[@PN=('8801019', '8801023')]))) and (nem:eVitals.21[@PN])) or ((not(nem:eVitals.21[@NV]) or (not(nem:eVitals.21[@NV=('7701001', '7701003')]))) and (nem:eVitals.21[@NV]))))">For TPV submissions - GCS-Motor must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.22 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.GlasgowScoreGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.22" />
      <sch:assert id="Rule_2462" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eVitals.22) or nem:eVitals.22 = '' or count(nem:eVitals.22[text() = ('3322001', '3322003', '3322007', '3322009')]) + ../../../count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eVitals.22'][nem:eCustomResults.01 = ('it3322.100')]) = 0) and (nem:eVitals.22 and nem:eVitals.22 != '')) or ((not(nem:eVitals.22[@NV]) or (not(nem:eVitals.22[@NV=('7701001', '7701003')]))) and (nem:eVitals.22[@NV]))))">For TPV submissions - GCS-Qualifier must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.26 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.26" />
      <sch:assert id="Rule_2463" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eVitals.26) or nem:eVitals.26 = '' or (not(nem:eVitals.26 = ('3326001', '3326003', '3326005', '3326007')))) and (nem:eVitals.26 and nem:eVitals.26 != '')) or ((not(nem:eVitals.26[@NV]) or (not(nem:eVitals.26[@NV=('7701003', '7701001')]))) and (nem:eVitals.26[@NV]))))">For TPV submissions - Level of Responsiveness (AVPU)  must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.11 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.HeartRateGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.11" />
      <sch:assert id="Rule_2464" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eVitals.11) or nem:eVitals.11 = '' or (not(nem:eVitals.11 = ('3311001', '3311003', '3311005', '3311007', '3311009', '3311011')))) and (nem:eVitals.11 and nem:eVitals.11 != ''))">For TPV submissions - Method of Heart Rate Measurement  must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.08 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.BloodPressureGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.08" />
      <sch:assert id="Rule_2465" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eVitals.08) or nem:eVitals.08 = '' or (not(nem:eVitals.08 = ('3308001', '3308005', '3308007', '3308009', '3308003', '3308011')))) and (nem:eVitals.08 and nem:eVitals.08 != '')) or ((not(nem:eVitals.08[@NV]) or (not(nem:eVitals.08[@NV=('7701001', '7701003')]))) and (nem:eVitals.08[@NV]))))">For TPV submissions - Method of Blood Pressure Measurement must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.03 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.CardiacRhythmGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.03" />
      <sch:assert id="Rule_2466" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eVitals.03) or nem:eVitals.03 = '' or count(nem:eVitals.03[text() = ('9901047', '9901049', '9901045', '9901007', '9901001', '9901005', '9901003', '9901009', '9901011', '9901013', '9901015', '9901017', '9901019', '9901021', '9901023', '9901025', '9901027', '9901029', '9901031', '9901033', '9901035', '9901037', '9901039', '9901041', '9901043', '9901051', '9901053', '9901055', '9901057', '9901059', '9901061', '9901063', '9901065', '9901067', '9901071', '9901069', '9901030', '9901058')]) = 0) and (nem:eVitals.03 and nem:eVitals.03 != '')) or ((not(nem:eVitals.03[@NV]) or (not(nem:eVitals.03[@NV=('7701001', '7701003')]))) and (nem:eVitals.03[@NV])) or ((not(nem:eVitals.03[@PN]) or (not(nem:eVitals.03[@PN=('8801019', '8801023')]))) and (nem:eVitals.03[@PN]))))">For TPV submissions - Cardiac Rhythm / Electrocardiography (EKG) must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.04 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.CardiacRhythmGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.04" />
      <sch:assert id="Rule_2467" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eVitals.04) or nem:eVitals.04 = '' or (not(nem:eVitals.04 = ('3304001','3304003','3304005','3304007','3304015','3304000','3304011')))) and (nem:eVitals.04 and nem:eVitals.04 != '')) or ((not(nem:eVitals.04[@NV]) or (not(nem:eVitals.04[@NV=('7701001','7701003')]))) and (nem:eVitals.04[@NV]))))">For TPV submissions -EKG Type must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.27 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.PainScaleGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.27" />
      <sch:assert id="Rule_2468" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((nem:eVitals.27 != '' and number(nem:eVitals.27) &lt; 0) and (nem:eVitals.27 and nem:eVitals.27 != '')) or ((not(nem:eVitals.27[@NV]) or (not(nem:eVitals.27[@NV=('7701001', '7701003')]))) and (nem:eVitals.27[@NV])) or ((not(nem:eVitals.27[@PN]) or (not(nem:eVitals.27[@PN=('8801019', '8801023')]))) and (nem:eVitals.27[@PN])) or ((nem:eVitals.27 != '' and number(nem:eVitals.27) &gt; 10) and (nem:eVitals.27 and nem:eVitals.27 != ''))))">For TPV submissions -Pain Scale Score must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.006 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.006" />
      <sch:assert id="Rule_2469" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.006'][nem:eCustomResults.01 = ('itVitals.006.100', 'itVitals.006.101', 'itVitals.006.102', 'itVitals.006.103', 'itVitals.006.105', 'itVitals.006.104', 'itVitals.006.108', 'itVitals.006.109', 'itVitals.006.106', 'itVitals.006.107')])) and (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.006'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.006'][nem:eCustomResults.01 != '']))">For TPV submissions -Provoked must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.007 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.007" />
      <sch:assert id="Rule_2470" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.007'][nem:eCustomResults.01 = ('itVitals.007.110', 'itVitals.007.111', 'itVitals.007.103', 'itVitals.007.101', 'itVitals.007.107', 'itVitals.007.108', 'itVitals.007.106', 'itVitals.007.105', 'itVitals.007.104', 'itVitals.007.109', 'itVitals.007.100', 'itVitals.007.102')])) and (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.007'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.007'][nem:eCustomResults.01 != '']))">For TPV submissions -Quality must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.008 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.008" />
      <sch:assert id="Rule_2471" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.008'][nem:eCustomResults.01 = ('itVitals.008.105', 'itVitals.008.106', 'itVitals.008.116', 'itVitals.008.125', 'itVitals.008.123', 'itVitals.008.120', 'itVitals.008.124', 'itVitals.008.122', 'itVitals.008.102', 'itVitals.008.107', 'itVitals.008.103', 'itVitals.008.108', 'itVitals.008.100', 'itVitals.008.119', 'itVitals.008.118', 'itVitals.008.114', 'itVitals.008.117', 'itVitals.008.112', 'itVitals.008.109', 'itVitals.008.101', 'itVitals.008.110', 'itVitals.008.111', 'itVitals.008.115', 'itVitals.008.113', 'itVitals.008.104')])) and (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.008'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.008'][nem:eCustomResults.01 != '']))">For TPV submissions -Region must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.009 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.009" />
      <sch:assert id="Rule_2472" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.009'][nem:eCustomResults.01 = ('itVitals.009.119', 'itVitals.009.118', 'itVitals.009.102', 'itVitals.009.110', 'itVitals.009.107', 'itVitals.009.103', 'itVitals.009.108', 'itVitals.009.100', 'itVitals.009.114', 'itVitals.009.112', 'itVitals.009.111', 'itVitals.009.117', 'itVitals.009.109', 'itVitals.009.101', 'itVitals.009.115', 'itVitals.009.113', 'itVitals.009.104', 'itVitals.009.105', 'itVitals.009.106', 'itVitals.009.116')])) and (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.009'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.009'][nem:eCustomResults.01 != '']))">For TPV submissions -Radiation must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.011 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.011" />
      <sch:assert id="Rule_2473" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.011'][nem:eCustomResults.01 = ('itVitals.011.102', 'itVitals.011.101', 'itVitals.011.100', 'itVitals.011.103')])) and (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.011'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.011'][nem:eCustomResults.01 != '']))">For TPV submissions -Duration Units must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.25 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.TemperatureGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.25" />
      <sch:assert id="Rule_2474" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eVitals.25) or nem:eVitals.25 = '' or (not(nem:eVitals.25 = ('3325001', '3325003', '3325007', '3325009', '3325017', '3325011', '3325013', '3325015')))) and (nem:eVitals.25 and nem:eVitals.25 != ''))">For TPV submissions -Temperature Method must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.23 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.GlasgowScoreGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.23" />
      <sch:assert id="Rule_2475" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eVitals.23 and nem:eVitals.23 != '') and (not(nem:eVitals.19) or nem:eVitals.19 = '') and (not(nem:eVitals.20) or nem:eVitals.20 = '') and (not(nem:eVitals.21) or nem:eVitals.21 = '') and ../nem:eVitals.02 != '9923003')">Total GCS is entered and GCS components (Eye, Verbal, Motor) are blank.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.33 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.33" />
      <sch:assert id="Rule_2476" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eVitals.33 and nem:eVitals.33 != '') and (not(nem:eVitals.14) or nem:eVitals.14 = '') and (not(nem:eVitals.GlasgowScoreGroup/nem:eVitals.23) or nem:eVitals.GlasgowScoreGroup/nem:eVitals.23 = '') and (not(nem:eVitals.BloodPressureGroup/nem:eVitals.06) or nem:eVitals.BloodPressureGroup/nem:eVitals.06 = ''))">Total RTS is entered and RTS components (Resp Rate, SBP, GCS) are blank.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eMedications.10 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eMedications/nem:eMedications.MedicationGroup">
      <sch:let name="nemsisElements" value="nem:eMedications.10" />
      <sch:assert id="Rule_2477" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eMedications.10) or nem:eMedications.10 = '' or (not(nem:eMedications.10 = ('9905001', '9905025', '9905041', '9905029', '9905043', '9905045', '9905005', '9905007', '9905033', '9905003')))) and (nem:eMedications.10 and nem:eMedications.10 != '')) or ((not(nem:eMedications.10[@NV]) or (not(nem:eMedications.10[@NV=('7701001', '7701003')]))) and (nem:eMedications.10[@NV]))))">For TPV submissions -Role/Type of Person Administering Medication  must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eMedications.04 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eMedications/nem:eMedications.MedicationGroup">
      <sch:let name="nemsisElements" value="nem:eMedications.04" />
      <sch:assert id="Rule_2478" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eMedications.04) or nem:eMedications.04 = '' or (not(nem:eMedications.04 = ('9927001', '9927005', '9927009', '9927015', '9927017', '9927021', '9927023', '9927069', '9927025', '9927027', '9927031', '9927035', '9927037', '9927047', '9927049', '9927053', '9927061', '9927067', '9927071', '9927065', '9927063')) and not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eMedications.04'][nem:eCustomResults.01 = ('it9927.123')]))) and (nem:eMedications.04 and nem:eMedications.04 != ''))">For TPV submissions -Medication Administered Route must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eMedications.11 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eMedications/nem:eMedications.MedicationGroup">
      <sch:let name="nemsisElements" value="nem:eMedications.11" />
      <sch:assert id="Rule_2480" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eMedications.11) or nem:eMedications.11 = '' or (not(nem:eMedications.11 = ('9918005', '9918003', '9918001', '9918007')))) and (nem:eMedications.11 and nem:eMedications.11 != ''))">For TPV submissions -Medication Order must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eProcedures.10 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eProcedures/nem:eProcedures.ProcedureGroup">
      <sch:let name="nemsisElements" value="nem:eProcedures.10" />
      <sch:assert id="Rule_2481" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eProcedures.10) or nem:eProcedures.10 = '' or (not(nem:eProcedures.10 = ('9905001', '9905033', '9905025', '9905041', '9905029', '9905045', '9905043', '9905005', '9905007', '9905003')))) and (nem:eProcedures.10 and nem:eProcedures.10 != '')) or ((not(nem:eProcedures.10[@NV]) or (not(nem:eProcedures.10[@NV=('7701001', '7701003')]))) and (nem:eProcedures.10[@NV]))))">For TPV submissions -Role/Type of Person Performing the Procedure must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eProcedures.11 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eProcedures/nem:eProcedures.ProcedureGroup">
      <sch:let name="nemsisElements" value="nem:eProcedures.11" />
      <sch:assert id="Rule_2482" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eProcedures.11) or nem:eProcedures.11 = '' or (not(nem:eProcedures.11 = ('9918005', '9918003', '9918007', '9918001')))) and (nem:eProcedures.11 and nem:eProcedures.11 != ''))">For TPV submissions -Procedure Authorization must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eCrew.02 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eCrew/nem:eCrew.CrewGroup">
      <sch:let name="nemsisElements" value="nem:eCrew.02" />
      <sch:assert id="Rule_2483" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eCrew.02) or nem:eCrew.02 = '' or (not(nem:eCrew.02 = ('9925043', '9925027', '9925031', '9925007', '9925005', '9925001')))) and (nem:eCrew.02 and nem:eCrew.02 != '')) or ((not(nem:eCrew.02[@NV]) or (not(nem:eCrew.02[@NV=('7701001', '7701003', '7701005')]))) and (nem:eCrew.02[@NV]))))">For TPV submissions - Crew Member Level must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itProcedures.006 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eProcedures/nem:eProcedures.ProcedureGroup">
      <sch:let name="nemsisElements" value="nem:itProcedures.006" />
      <sch:assert id="Rule_2484" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.006'][nem:eCustomResults.01 = ('itProcedures.006.153', 'itProcedures.006.154', 'itProcedures.006.150', 'itProcedures.006.143', 'itProcedures.006.148', 'itProcedures.006.149', 'itProcedures.006.146', 'itProcedures.006.158', 'itProcedures.006.159', 'itProcedures.006.145', 'itProcedures.006.155', 'itProcedures.006.156', 'itProcedures.006.147', 'itProcedures.006.160', 'itProcedures.006.157', 'itProcedures.006.117', 'itProcedures.006.118', 'itProcedures.006.144', 'itProcedures.006.151', 'itProcedures.006.152', 'itProcedures.006.124', 'itProcedures.006.100', 'itProcedures.006.101', 'itProcedures.006.125', 'itProcedures.006.126', 'itProcedures.006.127', 'itProcedures.006.128', 'itProcedures.006.129', 'itProcedures.006.102', 'itProcedures.006.103', 'itProcedures.006.130', 'itProcedures.006.131', 'itProcedures.006.132', 'itProcedures.006.105', 'itProcedures.006.104', 'itProcedures.006.107', 'itProcedures.006.106', 'itProcedures.006.133', 'itProcedures.006.134', 'itProcedures.006.109', 'itProcedures.006.108', 'itProcedures.006.135', 'itProcedures.006.110', 'itProcedures.006.111', 'itProcedures.006.136', 'itProcedures.006.122', 'itProcedures.006.123', 'itProcedures.006.112', 'itProcedures.006.113', 'itProcedures.006.137', 'itProcedures.006.138', 'itProcedures.006.139', 'itProcedures.006.114', 'itProcedures.006.140', 'itProcedures.006.115', 'itProcedures.006.116', 'itProcedures.006.141', 'itProcedures.006.142', 'itProcedures.006.119', 'itProcedures.006.120', 'itProcedures.006.121')])) and (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.006'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.006'][nem:eCustomResults.01 != '']))">For TPV submissions -Procedure Location must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eProcedures.13 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eProcedures/nem:eProcedures.ProcedureGroup">
      <sch:let name="nemsisElements" value="nem:eProcedures.13" />
      <sch:assert id="Rule_2485" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eProcedures.13) or nem:eProcedures.13 = '' or (not(nem:eProcedures.13 = ('3913001', '3913003', '3913005', '3913007', '3913009', '3913011', '3913015', '3913013', '3913017', '3913019', '3913021', '3913023', '3913025', '3913027', '3913037', '3913039', '3913041', '3913045', '3913051', '3913053', '3913057', '3913055', '3913075', '3913077', '3913059', '3913061', '3913063', '3913071', '3913073', '3913079', '3913081')))) and (nem:eProcedures.13 and nem:eProcedures.13 != '')) or ((not(nem:eProcedures.13[@NV]) or (not(nem:eProcedures.13[@NV=('7701001', '7701003', '7701005')]))) and (nem:eProcedures.13[@NV]))))">For TPV submissions -Vascular Access Location must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eAirway.06 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
      <sch:let name="nemsisElements" value="nem:eAirway.06" />
      <sch:assert id="Rule_2486" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eAirway.06) or nem:eAirway.06 = '' or (not(nem:eAirway.06 = ('4006001', '4006003', '4006005', '4006007', '4006009')))) and (nem:eAirway.06 and nem:eAirway.06 != '')) or ((not(nem:eAirway.06[@NV]) or (not(nem:eAirway.06[@NV=('7701001', '7701003', '7701005')]))) and (nem:eAirway.06[@NV]))))">For TPV submissions - Type of Individual Confirming Airway Device Placement must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itAirway.013 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
      <sch:let name="nemsisElements" value="nem:itAirway.013" />
      <sch:assert id="Rule_2487" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.013'][nem:eCustomResults.01 = ('itAirway.013.100', 'itAirway.013.101')])) and (../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.013'] and ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.013'][nem:eCustomResults.01 != '']))">For TPV submissions - Preoxygenation Done must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itAirway.005 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
      <sch:let name="nemsisElements" value="nem:itAirway.005" />
      <sch:assert id="Rule_2488" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.005'][nem:eCustomResults.01 = ('itAirway.005.100', 'itAirway.005.101', 'itAirway.005.102')])) and (../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.005'] and ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.005'][nem:eCustomResults.01 != '']))">For TPV submissions - Airway Measured At must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eAirway.04 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
      <sch:let name="nemsisElements" value="nem:eAirway.04" />
      <sch:assert id="Rule_2489" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((not(nem:eAirway.04) or nem:eAirway.04 = '' or count(nem:eAirway.04[text() = ('4004001','4004007','4004009','4004015','4004017','4004019','4004021')]) = 0) and (nem:eAirway.04 and nem:eAirway.04 != '')) or ((not(nem:eAirway.04[@NV]) or (not(nem:eAirway.04[@NV=('7701001','7701003','7701005')]))) and (nem:eAirway.04[@NV])))">For TPV submissions - Airway Device Placement Confirmed Method must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itAirway.017 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
      <sch:let name="nemsisElements" value="nem:itAirway.017" />
      <sch:assert id="Rule_2490" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((count(../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.017'][nem:eCustomResults.01 = ('itAirway.017.101', 'itAirway.017.102', 'itAirway.017.103', 'itAirway.017.104', 'itAirway.017.105', 'itAirway.017.106', 'itAirway.017.107', 'itAirway.017.108', 'itAirway.017.109', 'itAirway.017.110', 'itAirway.017.111', 'itAirway.017.112')]) = 0) and (../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.017'] and ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.017'][nem:eCustomResults.01 != ''])) or ((not(../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.017'][nem:eCustomResults.01[@NV]]) or (not(../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.017'][nem:eCustomResults.01[@NV = ('7701001', '7701003', '7701005')]]))) and (../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.017'][nem:eCustomResults.01[@NV]]))))">For TPV submissions - Airway Complications Encountered must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itAirway.018 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
      <sch:let name="nemsisElements" value="nem:itAirway.018" />
      <sch:assert id="Rule_2491" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((count(../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.018'][nem:eCustomResults.01 = ('itAirway.018.101', 'itAirway.018.102', 'itAirway.018.103', 'itAirway.018.104', 'itAirway.018.106', 'itAirway.018.105', 'itAirway.018.107', 'itAirway.018.108', 'itAirway.018.109', 'itAirway.018.110')]) = 0) and (../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.018'] and ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.018'][nem:eCustomResults.01 != '']))">For TPV submissions - Suspected Reasons for Failed/Changed Airway Management must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itExam.064 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eExam">
      <sch:let name="nemsisElements" value="nem:itExam.064" />
      <sch:assert id="Rule_2492" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.064'][nem:eCustomResults.01 = ('itExam.064.002', 'itExam.064.001')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.064'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.064'][nem:eCustomResults.01 != '']))">For TPV submissions - Cervical Collar Applied must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eExam.21 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eExam">
      <sch:let name="nemsisElements" value="nem:eExam.21" />
      <sch:assert id="Rule_2493" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eExam.21) or nem:eExam.21 = '' or (not(nem:eExam.21 = ('3521001', '3521003', '3521005')))) and (nem:eExam.21 and nem:eExam.21 != '')) or ((not(nem:eExam.21[@PN]) or (not(nem:eExam.21[@PN=('8801023')]))) and (nem:eExam.21[@PN]))))">For TPV submissions - Stroke/CVA Symptoms Resolved must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
    <sch:pattern>
    <sch:title>eVitals.30 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.StrokeScaleGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.30" />
      <sch:assert id="Rule_2494" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(not(nem:eVitals.30 = ('3330027')) and not(nem:eVitals.30[@NV=('7701003')]) and (not(../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eVitals.30'][nem:eCustomResults.01 = ('it3330.104')])) and ../../../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../../../nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2021-07-01T00:00:00-06:00'))">For TPV submissions - Stroke Scale Type must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.29 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.StrokeScaleGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.29" />
      <sch:assert id="Rule_2496" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eVitals.29) or nem:eVitals.29 = '' or (not(nem:eVitals.29 = ('3329001', '3329003', '3329005')))) and (nem:eVitals.29 and nem:eVitals.29 != '')) or ((not(nem:eVitals.29[@NV]) or (not(nem:eVitals.29[@NV=('7701001', '7701003')]))) and (nem:eVitals.29[@NV])) or ((not(nem:eVitals.29[@PN]) or (not(nem:eVitals.29[@PN=('8801019', '8801023')]))) and (nem:eVitals.29[@PN]))))">For TPV submissions - Stroke Scale Result must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eMedications.03 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eMedications/nem:eMedications.MedicationGroup">
      <sch:let name="nemsisElements" value="nem:eMedications.03" />
      <sch:assert id="Rule_2497" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eMedications.03 and nem:eMedications.03 != '') and nem:eMedications.03 = '1010607' and ../../nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50088' and ../../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2023-10-02T00:00:00-06:00'))">Agency is not authorized to administer Buprenorphine / Naloxone (Suboxone) (added 7/1/2023) - unselect this medication to unflag</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.025 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.025" />
      <sch:assert id="Rule_2498" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.025'][nem:eCustomResults.01 = ('itVitals.025.102', 'itVitals.025.101', 'itVitals.025.104')])) and (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.025'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.025'][nem:eCustomResults.01 != '']))">For TPV submissions - Stroke Scale Speech must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.026 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.026" />
      <sch:assert id="Rule_2499" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.026'][nem:eCustomResults.01 = ('itVitals.026.103', 'itVitals.026.100', 'itVitals.026.101', 'itVitals.026.107')])) and (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.026'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.026'][nem:eCustomResults.01 != '']))">For TPV submissions - Stroke Scale Facial Droop must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.027 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.027" />
      <sch:assert id="Rule_2500" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.027'][nem:eCustomResults.01 = ('itVitals.027.100', 'itVitals.027.103', 'itVitals.027.104', 'itVitals.027.105', 'itVitals.027.101', 'itVitals.027.110')])) and (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.027'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.027'][nem:eCustomResults.01 != '']))">For TPV submissions - Stroke Scale Arm Drift must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.044 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.044" />
      <sch:assert id="Rule_2501" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.044'][nem:eCustomResults.01 = ('itVitals.044.100', 'itVitals.044.101')])) and (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.044'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.044'][nem:eCustomResults.01 != '']))">For TPV submissions - Stroke System Triage must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.17 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition">
      <sch:let name="nemsisElements" value="nem:eDisposition.17" />
      <sch:assert id="Rule_2502" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eDisposition.17) or nem:eDisposition.17 = '' or (not(nem:eDisposition.17 = ('4217001', '4217003', '4217005', '4217007')))) and (nem:eDisposition.17 and nem:eDisposition.17 != '')) or ((not(nem:eDisposition.17[@NV]) or (not(nem:eDisposition.17[@NV=('7701001', '7701003')]))) and (nem:eDisposition.17[@NV]))))">For TPV submissions - Transport Mode from Scene must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.18 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition">
      <sch:let name="nemsisElements" value="nem:eDisposition.18" />
      <sch:assert id="Rule_2503" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eDisposition.18) or nem:eDisposition.18 = '' or count(nem:eDisposition.18[text() = ('4218015', '4218011', '4218001', '4218003', '4218005', '4218013', '4218009', '4218017', '4218007', '4218019')]) = 0) and (nem:eDisposition.18 and nem:eDisposition.18 != '')) or ((not(nem:eDisposition.18[@NV]) or (not(nem:eDisposition.18[@NV=('7701001', '7701003')]))) and (nem:eDisposition.18[@NV]))))">For TPV submissions - Additional Transport Mode Descriptors must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eDisposition.19 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eDisposition">
			<sch:let name="nemsisElements" value="nem:eDisposition.19" />
			<sch:assert id="Rule_2504" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eDisposition.19) or nem:eDisposition.19 = '' or (not(nem:eDisposition.19 = ('4219005','4219003','4219001','4219007','4219009','4219011')))) and (nem:eDisposition.19 and nem:eDisposition.19 != '')) or ((not(nem:eDisposition.19[@NV]) or (not(nem:eDisposition.19[@NV=('7701001','7701003')]))) and (nem:eDisposition.19[@NV]))))">For TPV submissions - Final Patient Acuity must be complete with a LEMSIS value/code.</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>eDisposition.20 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition">
      <sch:let name="nemsisElements" value="nem:eDisposition.20" />
      <sch:assert id="Rule_2505" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eDisposition.20) or nem:eDisposition.20 = '' or count(nem:eDisposition.20[text() = ('4220003', '4220021', '4220015', '4220005', '4220001', '4220011', '4220019', '4220009', '4220013', '4220007')]) = 0) and (nem:eDisposition.20 and nem:eDisposition.20 != '')) or ((not(nem:eDisposition.20[@NV]) or (not(nem:eDisposition.20[@NV=('7701001', '7701003')]))) and (nem:eDisposition.20[@NV]))))">For TPV submissions - Reason for Choosing Destination must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itOutcome.011 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOutcome">
      <sch:let name="nemsisElements" value="nem:itOutcome.011" />
      <sch:assert id="Rule_2506" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOutcome.011'][nem:eCustomResults.01 = ('itOutcome.011.104', 'itOutcome.011.107', 'itOutcome.011.102', 'itOutcome.011.103', 'itOutcome.011.100', 'itOutcome.011.105', 'itOutcome.011.108', 'itOutcome.011.109')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOutcome.011'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itOutcome.011'][nem:eCustomResults.01 != '']))">For TPV submissions - ED Diversion Reason/Bypass Issue Type must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eOther.13 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther/nem:eOther.SignatureGroup">
      <sch:let name="nemsisElements" value="nem:eOther.13" />
      <sch:assert id="Rule_2507" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eOther.13) or nem:eOther.13 = '' or count(nem:eOther.13[text() = ('4513015', '4513011', '4513013', '4513001', '4513023', '4513017', '4513019', '4513003', '4513009', '4513021', '4513005', '4513007')]) + ../../count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eOther.13'][nem:eCustomResults.01 = ('it4513.103', 'it4513.104', 'it4513.105', 'it4513.110', 'it4513.123')]) = 0) and (nem:eOther.13 and nem:eOther.13 != ''))">For TPV submissions - Signature Reason must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itControlledSubstances.009 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport">
      <sch:let name="nemsisElements" value="nem:itControlledSubstances.009" />
      <sch:assert id="Rule_2509" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009']) or nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = ''] or (not(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = ('4337', '11177', '7052', '330468')]))) and (nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'] and nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 != '']) and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">For TPV submissions - Controlled Substance Medication Name must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eOther.14 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther/nem:eOther.SignatureGroup">
      <sch:let name="nemsisElements" value="nem:eOther.14" />
      <sch:assert id="Rule_2510" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eOther.14) or nem:eOther.14 = '' or (not(nem:eOther.14 = ('4514001', '4514003', '4514005', '4514007', '4514009', '4514011', '4514013', '4514015', '4514017', '4514019', '4514021', '4514023', '4514025', '4514027', '4514029', '4514031', '4514035', '4514033', '4514037', '4514039', '4514041', '4514043', '4514045', '4514047', '4514049', '4514051')))) and (nem:eOther.14 and nem:eOther.14 != ''))">For TPV submissions - Type Of Patient Representative must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eOther.12 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther/nem:eOther.SignatureGroup">
      <sch:let name="nemsisElements" value="nem:eOther.12" />
      <sch:assert id="Rule_2511" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eOther.12) or nem:eOther.12 = '' or (not(nem:eOther.12 = ('4512001', '4512003', '4512005', '4512007', '4512009', '4512011', '4512013', '4512015', '4512017', '4512019')))) and (nem:eOther.12 and nem:eOther.12 != ''))">For TPV submissions -Type of Person Signing must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eOther.05 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther/nem:eOther.EMSCrewMemberGroup">
      <sch:let name="nemsisElements" value="nem:eOther.05" />
      <sch:assert id="Rule_2512" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eOther.05) or nem:eOther.05 = '' or (not(nem:eOther.05 = ('9923001', '9923003')))) and (nem:eOther.05 and nem:eOther.05 != '')) or ((not(nem:eOther.05[@NV]) or (not(nem:eOther.05[@NV=('7701001', '7701003')]))) and (nem:eOther.05[@NV]))))">For TPV submissions -Suspected EMS Work Related Exposure, Injury, or Death must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eOther.06 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther/nem:eOther.EMSCrewMemberGroup">
      <sch:let name="nemsisElements" value="nem:eOther.06" />
      <sch:assert id="Rule_2514" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eOther.06) or nem:eOther.06 = '' or count(nem:eOther.06[text() = ('4506001', '4506003', '4506005', '4506007', '4506009', '4506011', '4506013', '4506015', '4506017', '4506019', '4506021', '4506023', '4506025', '4506027', '4506029')]) = 0) and (nem:eOther.06 and nem:eOther.06 != '')) or ((not(nem:eOther.06[@NV]) or (not(nem:eOther.06[@NV=('7701001', '7701003', '7701005')]))) and (nem:eOther.06[@NV]))))">For TPV submissions - Type of Work-Related Injury, Death or Suspected Exposure must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itControlledSubstancesGroup related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport">
      <sch:let name="nemsisElements" value="nem:itControlledSubstancesGroup" />
      <sch:assert id="Rule_2516" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '4337' and nem:eMedications.02 = '9923001')]) &gt; 0 and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstancesGroup'][(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = '4337'])]) &lt; 1 and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the controlled substance given (Fentanyl) on the Controlled Substance Given/Wasted Panel/Grid.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itControlledSubstancesGroup related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport">
      <sch:let name="nemsisElements" value="nem:itControlledSubstancesGroup" />
      <sch:assert id="Rule_2517" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '6960' and nem:eMedications.02 = '9923001')]) &gt; 0 and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstancesGroup'][(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = '11177'])]) &lt; 1 and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the controlled substance given (Midazolam/Versed) on the Controlled Substance Given/Wasted Panel/Grid.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itControlledSubstancesGroup related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport">
      <sch:let name="nemsisElements" value="nem:itControlledSubstancesGroup" />
      <sch:assert id="Rule_2518" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '7052' and nem:eMedications.02 = '9923001')]) &gt; 0 and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstancesGroup'][(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = '7052'])]) &lt; 1 and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the controlled substance given (Morphine) on the Controlled Substance Given/Wasted Panel/Grid. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>itControlledSubstancesGroup related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport">
			<sch:let name="nemsisElements" value="nem:itControlledSubstancesGroup" />
			<sch:assert id="Rule_2519" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eMedications/nem:eMedications.MedicationGroup[nem:eMedications.03 = ('330468','6130') and nem:eMedications.02 = '9923001']) &gt; 0 and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstancesGroup'][../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = '330468']]) &lt; 1 and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the controlled substance given (Ketamine) on the Controlled Substance Given/Wasted Panel/Grid.</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>itControlledSubstances.007 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport">
      <sch:let name="nemsisElements" value="nem:itControlledSubstances.007" />
      <sch:assert id="Rule_2520" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '4337' and nem:eMedications.02 = '9923001')]) &gt; 0 and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstancesGroup'][((../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.007'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.007'][nem:eCustomResults.01 != '']) and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = '4337'])]) &lt; 1 and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the ID of 1st crew members when Fentanyl is administered.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itControlledSubstances.008 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport">
      <sch:let name="nemsisElements" value="nem:itControlledSubstances.008" />
      <sch:assert id="Rule_2521" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '4337' and nem:eMedications.02 = '9923001')]) &gt; 0 and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstancesGroup'][((../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.008'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.008'][nem:eCustomResults.01 != '']) and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = '4337'])]) &lt; 1 and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the ID of 2nd crew members when Fentanyl is administered.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eProtocols.02 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eProtocols/nem:eProtocols.ProtocolGroup">
      <sch:let name="nemsisElements" value="nem:eProtocols.02" />
      <sch:assert id="Rule_2522" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eProtocols.02) or nem:eProtocols.02 = '') and (nem:eProtocols.01 = ('9914073', '9914177', '9914179', '9914109', '9914005', '9914111', '9914113', '9914085', '9914117', '9914145', '9914011', '9914079', '9914023', '9914067', '9914091', '9914159', '9914135', '9914065', '9914223', '9914207', '9914191', '9914071', '9914047', '9914197', '9914063', '9914189', '9914075', '9914201', '9914219') or ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eProtocols.01'][nem:eCustomResults.01 = ('it9914.112', 'it9914.104', 'it9914.108', 'it9914.115', 'it9914.114', 'it9914.120', 'it9914.346')]) and ../../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2024-08-27T00:00:00'))">Protocol Age Category Not Documented</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itControlledSubstances.007 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport">
      <sch:let name="nemsisElements" value="nem:itControlledSubstances.007" />
      <sch:assert id="Rule_2523" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '7052' and nem:eMedications.02 = '9923001')]) &gt; 0 and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstancesGroup'][((../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.007'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.007'][nem:eCustomResults.01 != '']) and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = '7052'])]) &lt; 1 and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the ID of 1st crew members when Morphine is administered.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itControlledSubstances.008 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport">
      <sch:let name="nemsisElements" value="nem:itControlledSubstances.008" />
      <sch:assert id="Rule_2524" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '7052' and nem:eMedications.02 = '9923001')]) &gt; 0 and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstancesGroup'][((../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.008'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.008'][nem:eCustomResults.01 != '']) and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = '7052'])]) &lt; 1 and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the ID of 2nd crew members when Morphine is administered.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itControlledSubstances.007 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport">
      <sch:let name="nemsisElements" value="nem:itControlledSubstances.007" />
      <sch:assert id="Rule_2525" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '6960' and nem:eMedications.02 = '9923001')]) &gt; 0 and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstancesGroup'][((../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.007'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.007'][nem:eCustomResults.01 != '']) and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = '11177'])]) &lt; 1 and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the ID of 1st crew members when Midazolam/Versed is administered.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itControlledSubstances.008 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport">
      <sch:let name="nemsisElements" value="nem:itControlledSubstances.008" />
      <sch:assert id="Rule_2526" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '6960' and nem:eMedications.02 = '9923001')]) &gt; 0 and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstancesGroup'][((../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.008'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.008'][nem:eCustomResults.01 != '']) and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = '11177'])]) &lt; 1 and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the ID of 2nd crew members when Midazolam/Versed is administered.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>itControlledSubstances.007 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport">
			<sch:let name="nemsisElements" value="nem:itControlledSubstances.007" />
			<sch:assert id="Rule_2527" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eMedications/nem:eMedications.MedicationGroup[nem:eMedications.03 = ('330468','6130') and nem:eMedications.02 = '9923001']) &gt; 0 and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstancesGroup'][(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.007'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.007'][nem:eCustomResults.01 != '']) and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = '330468']]) &lt; 1 and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the ID of 1st crew members when Ketamine is administered.  </sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
		<sch:title>itControlledSubstances.008 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport">
			<sch:let name="nemsisElements" value="nem:itControlledSubstances.008" />
			<sch:assert id="Rule_2528" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eMedications/nem:eMedications.MedicationGroup[nem:eMedications.03 = ('330468','6130') and nem:eMedications.02 = '9923001']) &gt; 0 and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstancesGroup'][(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.008'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.008'][nem:eCustomResults.01 != '']) and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = '330468']]) &lt; 1 and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the ID of 2nd crew members when Ketamine is administered.  </sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>itControlledSubstances.012 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport">
      <sch:let name="nemsisElements" value="nem:itControlledSubstances.012" />
      <sch:assert id="Rule_2529" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '4337' and nem:eMedications.02 = '9923001')]) &gt; 0 and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstancesGroup'][((../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.012'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.012'][nem:eCustomResults.01 != '']) and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = '4337'])]) &lt; 1 and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the amount of Fentanyl wasted. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>itControlledSubstances.012 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport">
			<sch:let name="nemsisElements" value="nem:itControlledSubstances.012" />
			<sch:assert id="Rule_2530" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eMedications/nem:eMedications.MedicationGroup[nem:eMedications.03 = ('330468','6130') and nem:eMedications.02 = '9923001']) &gt; 0 and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstancesGroup'][(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.012'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.012'][nem:eCustomResults.01 != '']) and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = '330468']]) &lt; 1 and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the amount of Ketamine wasted. </sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>itControlledSubstances.012 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport">
      <sch:let name="nemsisElements" value="nem:itControlledSubstances.012" />
      <sch:assert id="Rule_2531" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '6960' and nem:eMedications.02 = '9923001')]) &gt; 0 and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstancesGroup'][((../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.012'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.012'][nem:eCustomResults.01 != '']) and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = '11177'])]) &lt; 1 and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the amount of Midazolam/Versed wasted. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itControlledSubstances.012 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport">
      <sch:let name="nemsisElements" value="nem:itControlledSubstances.012" />
      <sch:assert id="Rule_2532" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '7052' and nem:eMedications.02 = '9923001')]) &gt; 0 and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstancesGroup'][((../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.012'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.012'][nem:eCustomResults.01 != '']) and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = '7052'])]) &lt; 1 and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the amount of the controlled substance Morphine wasted. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itControlledSubstances.009 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport">
      <sch:let name="nemsisElements" value="nem:itControlledSubstances.009" />
      <sch:assert id="Rule_2533" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '4337' and nem:eMedications.02 = '9923001')]) &gt; 0 and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstancesGroup'][(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = '4337'])]) &lt; 1 and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the name (Fentanyl) of the controlled substance given. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itControlledSubstances.009 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport">
      <sch:let name="nemsisElements" value="nem:itControlledSubstances.009" />
      <sch:assert id="Rule_2534" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '6960' and nem:eMedications.02 = '9923001')]) &gt; 0 and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstancesGroup'][(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = '11177'])]) &lt; 1 and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the name (Midazolam/Versed) of the controlled substance given. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itControlledSubstances.009 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport">
      <sch:let name="nemsisElements" value="nem:itControlledSubstances.009" />
      <sch:assert id="Rule_2535" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '7052' and nem:eMedications.02 = '9923001')]) &gt; 0 and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstancesGroup'][(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = '7052'])]) &lt; 1 and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the name (Morphine) of the controlled substance given.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eTimes.12 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eTimes">
      <sch:let name="nemsisElements" value="nem:eTimes.12" />
      <sch:assert id="Rule_2536" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(nem:eTimes.11 != '' and nem:eTimes.12 != '' and (abs(days-from-duration(xs:dateTime(nem:eTimes.11) - xs:dateTime(nem:eTimes.12))) * 1440) + (abs(hours-from-duration(xs:dateTime(nem:eTimes.11) - xs:dateTime(nem:eTimes.12))) * 60) + (abs(minutes-from-duration(xs:dateTime(nem:eTimes.11) - xs:dateTime(nem:eTimes.12)))) &lt; 1)">The amount of time entered between Pt Arrive at Destination and Destination Transfer of Care cannot be less than 1 minute</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>itControlledSubstances.009 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport">
			<sch:let name="nemsisElements" value="nem:itControlledSubstances.009" />
			<sch:assert id="Rule_2537" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eMedications/nem:eMedications.MedicationGroup[nem:eMedications.03 = ('330468','6130') and nem:eMedications.02 = '9923001']) &gt; 0 and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstancesGroup'][../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = '330468']]) &lt; 1 and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the name (Ketamine) of the controlled substance given.</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>itControlledSubstances.011 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport">
      <sch:let name="nemsisElements" value="nem:itControlledSubstances.011" />
      <sch:assert id="Rule_2538" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '4337' and nem:eMedications.02 = '9923001')]) &gt; 0 and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstancesGroup'][((../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.011'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.011'][nem:eCustomResults.01 != '']) and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = '4337'])]) &lt; 1 and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the amount of  Fentanyl given. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itControlledSubstances.011 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport">
      <sch:let name="nemsisElements" value="nem:itControlledSubstances.011" />
      <sch:assert id="Rule_2539" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '6960' and nem:eMedications.02 = '9923001')]) &gt; 0 and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstancesGroup'][((../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.011'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.011'][nem:eCustomResults.01 != '']) and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = '11177'])]) &lt; 1 and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the amount of Midazolam/Versed given. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itControlledSubstances.011 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport">
      <sch:let name="nemsisElements" value="nem:itControlledSubstances.011" />
      <sch:assert id="Rule_2540" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '7052' and nem:eMedications.02 = '9923001')]) &gt; 0 and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstancesGroup'][((../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.011'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.011'][nem:eCustomResults.01 != '']) and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = '7052'])]) &lt; 1 and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the amount of Morphine given. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>itControlledSubstances.011 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport">
			<sch:let name="nemsisElements" value="nem:itControlledSubstances.011" />
			<sch:assert id="Rule_2541" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eMedications/nem:eMedications.MedicationGroup[nem:eMedications.03 = ('330468','6130') and nem:eMedications.02 = '9923001']) &gt; 0 and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstancesGroup'][(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.011'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.011'][nem:eCustomResults.01 != '']) and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = '330468']]) &lt; 1 and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the amount of Ketamine given. </sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>itExam.053 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eExam">
      <sch:let name="nemsisElements" value="nem:itExam.053" />
      <sch:assert id="Rule_2542" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((not(../nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.StrokeScaleGroup/nem:eVitals.29[@NV])) and (not(../nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.StrokeScaleGroup/nem:eVitals.29[@PN])) and ../nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.02 != '9923003' and (not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.053']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.053'][nem:eCustomResults.01 = ''])) and (../nem:eSituation/nem:eSituation.11 = ('I63.9') or (count(../nem:eSituation/nem:eSituation.12[text() = ('I63.9')]) != 0) or count(../nem:eOther/nem:eOther.02[text() = '4502007']) != 0))">Document the assessment of Balance</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itExam.058 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eExam">
      <sch:let name="nemsisElements" value="nem:itExam.058" />
      <sch:assert id="Rule_2543" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((not(../nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.StrokeScaleGroup/nem:eVitals.29[@NV])) and (not(../nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.StrokeScaleGroup/nem:eVitals.29[@PN])) and ../nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.02 != '9923003' and (not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.058']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.058'][nem:eCustomResults.01 = ''])) and (../nem:eSituation/nem:eSituation.11 = ('I63.9') or (count(../nem:eSituation/nem:eSituation.12[text() = ('I63.9')]) != 0) or count(../nem:eOther/nem:eOther.02[text() = '4502007']) != 0))">Document the assessment of Eyes</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eExam.21 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eExam">
      <sch:let name="nemsisElements" value="nem:eExam.21" />
      <sch:assert id="Rule_2544" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((not(nem:eExam.21) or nem:eExam.21 = '') and (not(nem:eExam.21[@PN]) or nem:eExam.21[@PN != '8801023'])) and (../nem:eSituation/nem:eSituation.11 = ('I63.9') or (count(../nem:eSituation/nem:eSituation.12[text() = ('I63.9')]) != 0) or count(../nem:eOther/nem:eOther.02[text() = '4502007']) != 0))">Document Stroke/CVA Symptoms Resolved</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eSituation.18 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:eSituation.18" />
      <sch:assert id="Rule_2545" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((not(nem:eSituation.18) or nem:eSituation.18 = '') and (not(nem:eSituation.18[@PN]))) and (nem:eSituation.11 = ('I63.9') or (count(nem:eSituation.12[text() = ('I63.9')]) != 0) or count(../nem:eOther/nem:eOther.02[text() = '4502007']) != 0 or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.088'][nem:eCustomResults.01 = 'itExam.088.100']))">Document Date/Time patient last known well/normal</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itExam.053 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eExam">
      <sch:let name="nemsisElements" value="nem:itExam.053" />
      <sch:assert id="Rule_2546" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.053'][nem:eCustomResults.01 = ('itExam.053.100', 'itExam.053.101', 'itExam.053.102', 'itExam.053.103', 'itExam.053.104')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.053'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.053'][nem:eCustomResults.01 != '']))">For TPV submissions - Stroke Scale Balance must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itExam.058 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eExam">
      <sch:let name="nemsisElements" value="nem:itExam.058" />
      <sch:assert id="Rule_2547" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.058'][nem:eCustomResults.01 = ('itExam.058.100', 'itExam.058.101', 'itExam.058.102', 'itExam.058.103')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.058'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.058'][nem:eCustomResults.01 != '']))">For TPV submissions - Stroke Scale Eyes must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eProcedures.07 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eProcedures/nem:eProcedures.ProcedureGroup">
			<sch:let name="nemsisElements" value="nem:eProcedures.07" />
			<sch:assert id="Rule_2548" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((not(nem:eProcedures.07) or nem:eProcedures.07 = '') and (not(nem:eProcedures.03) or nem:eProcedures.03 = '' or (not(nem:eProcedures.03 = ('268400002','428803005','425543005','426220008','46825001','250863006')) and not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eProcedures.03'][nem:eCustomResults.01 = ('itSNOMED.006')]))) and (nem:eProcedures.03 and nem:eProcedures.03 != '') and nem:eProcedures.02 != '9923003'  ) and ((nem:eProcedures.07[@NV] and nem:eProcedures.07[@NV = '7701003']) or (not(nem:eProcedures.07[@NV]))))">Procedure Complication is a required field when pertinent to the intervention performed.  </sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>ePatient.22 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:ePatient">
      <sch:let name="nemsisElements" value="nem:ePatient.22" />
      <sch:assert id="Rule_2549" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:ePatient.22) or nem:ePatient.22 = '') and (not(nem:ePatient.22[@NV])) and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itPatient.025'][nem:eCustomResults.01 = 'itPatient.025.001'])">Document if Patient  Homeless situation is Sheltered or Unsheltered</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.14 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.14" />
      <sch:assert id="Rule_2550" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(nem:eArrest.14 != '' and ../nem:eTimes/nem:eTimes.12 != '' and xs:dateTime(nem:eArrest.14) &gt; xs:dateTime(../nem:eTimes/nem:eTimes.12))">Date/Time of Cardiac Arrest must be before TOC D/T</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.23 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition">
      <sch:let name="nemsisElements" value="nem:eDisposition.23" />
      <sch:assert id="Rule_2551" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eDisposition.23) or nem:eDisposition.23 = '') and (nem:eDisposition.DestinationGroup/nem:eDisposition.01 and nem:eDisposition.DestinationGroup/nem:eDisposition.01 != '') and (nem:eDisposition.21 = ('4221003','4221005') or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eDisposition.21'][nem:eCustomResults.01 = ('it4221.110')]))">Please enter the Destination Hospital Capability</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itPatient.025 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:ePatient">
      <sch:let name="nemsisElements" value="nem:itPatient.025" />
      <sch:assert id="Rule_2552" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itPatient.025'][nem:eCustomResults.01 = ('itPatient.025.002', 'itPatient.025.001', 'itPatient.025.003')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itPatient.025'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itPatient.025'][nem:eCustomResults.01 != '']))">For TPV submissions - Is Patient Homeless field must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>ePatient.22 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:ePatient">
      <sch:let name="nemsisElements" value="nem:ePatient.22" />
      <sch:assert id="Rule_2553" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'ePatient.22'][nem:eCustomResults.01 = ('itPatient.028.103', 'itPatient.028.104')])) and (nem:ePatient.22 and nem:ePatient.22 != '')) or ((not(nem:ePatient.22[@NV]) or (not(nem:ePatient.22[@NV=('7701003')]))) and (nem:ePatient.22[@NV]))))">For TPV submissions - Homeless Sheltered/Unsheltered must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eMedications.08 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eMedications/nem:eMedications.MedicationGroup">
      <sch:let name="nemsisElements" value="nem:eMedications.08" />
      <sch:assert id="Rule_2554" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eMedications.08) or nem:eMedications.08 = '') and (nem:eMedications.03 and nem:eMedications.03 != '') and nem:eMedications.02 = '9923001')">Medication Complication Not Documented</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itControlledSubstances.005 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport">
      <sch:let name="nemsisElements" value="nem:itControlledSubstances.005" />
      <sch:assert id="Rule_2555" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '4337' and nem:eMedications.02 = '9923001')]) &gt; 0 and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstancesGroup'][((../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.005'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.005'][nem:eCustomResults.01 != '']) and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = '4337'])]) &lt; 1 and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the Signature of 1st crew member when Fentanyl is administered.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itControlledSubstances.005 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport">
      <sch:let name="nemsisElements" value="nem:itControlledSubstances.005" />
      <sch:assert id="Rule_2556" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '7052' and nem:eMedications.02 = '9923001')]) &gt; 0 and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstancesGroup'][((../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.005'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.005'][nem:eCustomResults.01 != '']) and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = '7052'])]) &lt; 1 and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the Signature of 1st crew member when Morphine is administered.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itControlledSubstances.005 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport">
      <sch:let name="nemsisElements" value="nem:itControlledSubstances.005" />
      <sch:assert id="Rule_2557" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '6960' and nem:eMedications.02 = '9923001')]) &gt; 0 and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstancesGroup'][((../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.005'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.005'][nem:eCustomResults.01 != '']) and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = '11177'])]) &lt; 1 and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the Signature of 1st crew member when Midazolam/Versed is administered.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>itControlledSubstances.005 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport">
			<sch:let name="nemsisElements" value="nem:itControlledSubstances.005" />
			<sch:assert id="Rule_2558" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eMedications/nem:eMedications.MedicationGroup[nem:eMedications.03 = ('330468','6130') and nem:eMedications.02 = '9923001']) &gt; 0 and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstancesGroup'][(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.005'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.005'][nem:eCustomResults.01 != '']) and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = '330468']]) &lt; 1 and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the Signature of 1st crew member when Ketamine is administered.  </sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
		<sch:title>itControlledSubstances.006 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport">
			<sch:let name="nemsisElements" value="nem:itControlledSubstances.006" />
			<sch:assert id="Rule_2559" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eMedications/nem:eMedications.MedicationGroup[nem:eMedications.03 = ('330468','6130') and nem:eMedications.02 = '9923001']) &gt; 0 and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstancesGroup'][(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.006'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.006'][nem:eCustomResults.01 != '']) and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = '330468']]) &lt; 1 and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the Signature of 2nd crew member when Ketamine is administered.  </sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>itControlledSubstances.006 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport">
      <sch:let name="nemsisElements" value="nem:itControlledSubstances.006" />
      <sch:assert id="Rule_2560" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '6960' and nem:eMedications.02 = '9923001')]) &gt; 0 and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstancesGroup'][((../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.006'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.006'][nem:eCustomResults.01 != '']) and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = '11177'])]) &lt; 1 and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the Signature of 2nd crew member when Midazolam/Versed is administered.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itControlledSubstances.006 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport">
      <sch:let name="nemsisElements" value="nem:itControlledSubstances.006" />
      <sch:assert id="Rule_2561" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '7052' and nem:eMedications.02 = '9923001')]) &gt; 0 and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstancesGroup'][((../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.006'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.006'][nem:eCustomResults.01 != '']) and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = '7052'])]) &lt; 1 and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the Signature of 2nd crew member when Morphine is administered.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itControlledSubstances.006 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport">
      <sch:let name="nemsisElements" value="nem:itControlledSubstances.006" />
      <sch:assert id="Rule_2562" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '4337' and nem:eMedications.02 = '9923001')]) &gt; 0 and count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstancesGroup'][((../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.006'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.006'][nem:eCustomResults.01 != '']) and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itControlledSubstances.009'][nem:eCustomResults.01 = '4337'])]) &lt; 1 and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-51966' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50826' and nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50208')">Document the Signature of 2nd crew member when Fentanyl is administered.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>itAirway.018 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport">
			<sch:let name="nemsisElements" value="nem:itAirway.018" />
			<sch:assert id="Rule_2563" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eProcedures/nem:eProcedures.ProcedureGroup[../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eProcedures.03'][nem:eCustomResults.01 = 'itSNOMED.001'] and nem:eProcedures.06 = '9923001' and nem:eProcedures.02 = '9923001']) &gt; 0 and count(nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup[(not(../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.018']) or ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.018'][nem:eCustomResults.01 = '']) and nem:eAirway.03 = '4003009' and ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.016'][nem:eCustomResults.01 = 'itAirway.016.100']]) &gt; 0 and nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2026-05-01T00:00:00'))">Please enter the Reason for Failed King Airway</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
		<sch:title>itAirway.018 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport">
			<sch:let name="nemsisElements" value="nem:itAirway.018" />
			<sch:assert id="Rule_2564" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eProcedures/nem:eProcedures.ProcedureGroup[nem:eProcedures.03 = '232674004' and nem:eProcedures.06 = '9923001' and nem:eProcedures.02 = '9923001']) &gt; 0 and count(nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup[(not(../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.018']) or ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.018'][nem:eCustomResults.01 = '']) and nem:eAirway.03 = '4003003' and ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.016'][nem:eCustomResults.01 = 'itAirway.016.100']]) &gt; 0 and nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2026-05-01T00:00:00'))">Please enter the Reason for Failed Intubation Endotracheal Airway</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
	<sch:pattern>
		<sch:title>itAirway.018 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport">
			<sch:let name="nemsisElements" value="nem:itAirway.018" />
			<sch:assert id="Rule_2565" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eProcedures/nem:eProcedures.ProcedureGroup[nem:eProcedures.03 = '232685002' and nem:eProcedures.06 = '9923001' and nem:eProcedures.02 = '9923001']) &gt; 0 and count(nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup[(not(../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.018']) or ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.018'][nem:eCustomResults.01 = '']) and nem:eAirway.03 = '4003015' and ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.016'][nem:eCustomResults.01 = 'itAirway.016.100']]) &gt; 0 and nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2026-05-01T00:00:00'))">Please enter the Reason for Failed Intubation Existing Tracheostomy Stoma Airway</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
	<sch:pattern>
		<sch:title>itAirway.018 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport">
			<sch:let name="nemsisElements" value="nem:itAirway.018" />
			<sch:assert id="Rule_2566" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eProcedures/nem:eProcedures.ProcedureGroup[nem:eProcedures.03 = '360111004' and nem:eProcedures.06 = '9923001' and nem:eProcedures.02 = '9923001']) &gt; 0 and count(nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup[(not(../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.018']) or ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.018'][nem:eCustomResults.01 = '']) and nem:eAirway.03 = '4003001' and ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.016'][nem:eCustomResults.01 = 'itAirway.016.100']]) &gt; 0 and nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2026-05-01T00:00:00'))">Please enter the Reason for Failed Cricothyroidotomy tube Airway</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
		<sch:title>eAirway.03 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
			<sch:let name="nemsisElements" value="nem:eAirway.03" />
			<sch:assert id="Rule_2567" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../nem:eAirway.ConfirmationGroup[nem:eAirway.03 = '4003009' and ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.016'][nem:eCustomResults.01 = 'itAirway.016.100']]) &lt; 1 and count(../../../nem:eProcedures/nem:eProcedures.ProcedureGroup[../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eProcedures.03'][nem:eCustomResults.01 = 'itSNOMED.001'] and nem:eProcedures.02 = '9923001' and nem:eProcedures.06 = '9923001']) &gt; 0 and ../../../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../../../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2026-05-01T00:00:00'))">Please enter King Airway as the Airway being Confirmed</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
	<sch:pattern>
		<sch:title>eAirway.03 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
			<sch:let name="nemsisElements" value="nem:eAirway.03" />
			<sch:assert id="Rule_2568" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../nem:eAirway.ConfirmationGroup[nem:eAirway.03 = '4003003' and ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.016'][nem:eCustomResults.01 = 'itAirway.016.100']]) &lt; 1 and count(../../../nem:eProcedures/nem:eProcedures.ProcedureGroup[nem:eProcedures.03 = '232674004' and nem:eProcedures.02 = '9923001' and nem:eProcedures.06 = '9923001']) &gt; 0 and ../../../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../../../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2026-05-01T00:00:00'))">Please enter Endotracheal Tube as the Airway being Confirmed</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
	<sch:pattern>
		<sch:title>eAirway.03 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
			<sch:let name="nemsisElements" value="nem:eAirway.03" />
			<sch:assert id="Rule_2569" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../nem:eAirway.ConfirmationGroup[nem:eAirway.03 = '4003015' and ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.016'][nem:eCustomResults.01 = 'itAirway.016.100']]) &lt; 1 and count(../../../nem:eProcedures/nem:eProcedures.ProcedureGroup[nem:eProcedures.03 = '232685002' and nem:eProcedures.02 = '9923001' and nem:eProcedures.06 = '9923001']) &gt; 0 and ../../../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../../../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2026-05-01T00:00:00'))">Please enter Intubation Existing Tracheostomy Stoma as the Airway being Confirmed </sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
	<sch:pattern>
		<sch:title>eAirway.03 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
			<sch:let name="nemsisElements" value="nem:eAirway.03" />
			<sch:assert id="Rule_2570" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../nem:eAirway.ConfirmationGroup[nem:eAirway.03 = '4003001' and ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.016'][nem:eCustomResults.01 = 'itAirway.016.100']]) &lt; 1 and count(../../../nem:eProcedures/nem:eProcedures.ProcedureGroup[nem:eProcedures.03 = '360111004' and nem:eProcedures.02 = '9923001' and nem:eProcedures.06 = '9923001']) &gt; 0 and ../../../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../../../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2026-05-01T00:00:00'))">Please enter Cricothyrotomy tube as the Airway being Confirmed </sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>eArrest.20 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.20" />
      <sch:assert id="Rule_2572" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eArrest.20) or nem:eArrest.20 = '') and nem:eArrest.01 = ('3001005', '3001003') and (not(nem:eArrest.20[@NV])))">The "Who Initiated CPR" field must be documented when the "Cardiac Arrest" field is equal to "Yes, After EMS Arrival" or "Yes, Prior to EMS Arrival".</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itAirway.016 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport">
      <sch:let name="nemsisElements" value="nem:itAirway.016" />
      <sch:assert id="Rule_2573" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.016']/nem:eCustomResults.03=nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup/@CorrelationID) or nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.016'][nem:eCustomResults.01 = '']/nem:eCustomResults.03=nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup/@CorrelationID) and (nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup/nem:eAirway.02 and nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup/nem:eAirway.02 != '') and (nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup/nem:eAirway.03 and nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup/nem:eAirway.03 != ''))">Please complete the Airway Confirmation Administered Prior to EMS Care field</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eAirway.03 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
      <sch:let name="nemsisElements" value="nem:eAirway.03" />
      <sch:assert id="Rule_2574" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../../../nem:eProcedures/nem:eProcedures.ProcedureGroup[(nem:eProcedures.03 = '232674004' and nem:eProcedures.06 = '9923003' and nem:eProcedures.02 = '9923001')]) &gt; 0 and count(../nem:eAirway.ConfirmationGroup[(nem:eAirway.03 = '4003003')]) &lt; 1)">Document the Airway Device Being Confirmed as Intubation Endotracheal</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eAirway.02 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
      <sch:let name="nemsisElements" value="nem:eAirway.02" />
      <sch:assert id="Rule_2575" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../../../nem:eProcedures/nem:eProcedures.ProcedureGroup[(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eProcedures.03'][nem:eCustomResults.01 = 'itSNOMED.001']/nem:eCustomResults.03=./@CorrelationID and nem:eProcedures.06 = '9923003' and nem:eProcedures.02 = '9923001')]) &gt; 0 and count(../nem:eAirway.ConfirmationGroup[((nem:eAirway.02 and nem:eAirway.02 != '') and ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.016'][nem:eCustomResults.01 = 'itAirway.016.100']/nem:eCustomResults.03=./@CorrelationID and nem:eAirway.03 = '4003009')]) &lt; 1)">Document the time when the placement of the King Airway was confirmed.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eAirway.02 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
      <sch:let name="nemsisElements" value="nem:eAirway.02" />
      <sch:assert id="Rule_2576" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../../../nem:eProcedures/nem:eProcedures.ProcedureGroup[(nem:eProcedures.03 = '232685002' and nem:eProcedures.06 = '9923003' and nem:eProcedures.02 = '9923001')]) &gt; 0 and count(../nem:eAirway.ConfirmationGroup[((nem:eAirway.02 and nem:eAirway.02 != '') and ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.016'][nem:eCustomResults.01 = 'itAirway.016.100']/nem:eCustomResults.03=./@CorrelationID and nem:eAirway.03 = '4003015')]) &lt; 1)">Document the time when the placement of the Intubation Existing Tracheostomy Stoma airway was confirmed.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eAirway.02 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
      <sch:let name="nemsisElements" value="nem:eAirway.02" />
      <sch:assert id="Rule_2577" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../../../nem:eProcedures/nem:eProcedures.ProcedureGroup[(nem:eProcedures.03 = '232674004' and nem:eProcedures.06 = '9923003' and nem:eProcedures.02 = '9923001')]) &gt; 0 and count(../nem:eAirway.ConfirmationGroup[((nem:eAirway.02 and nem:eAirway.02 != '') and ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.016'][nem:eCustomResults.01 = 'itAirway.016.100']/nem:eCustomResults.03=./@CorrelationID and nem:eAirway.03 = '4003003')]) &lt; 1)">Document the time when the placement of the Intubation Endotracheal airway was confirmed.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eAirway.02 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
			<sch:let name="nemsisElements" value="nem:eAirway.02" />
			<sch:assert id="Rule_2578" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../../../nem:eProcedures/nem:eProcedures.ProcedureGroup[nem:eProcedures.03 = ('398142004','360111004') and nem:eProcedures.06 = '9923003' and nem:eProcedures.02 = '9923001']) &gt; 0 and count(../nem:eAirway.ConfirmationGroup[(nem:eAirway.02 and nem:eAirway.02 != '') and ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.016'][nem:eCustomResults.01 = 'itAirway.016.100'] and nem:eAirway.03 = '4003001']) &lt; 1)">Document the time when the placement of the Cricothyroidotomy Tube airway was confirmed.  </sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>eAirway.03 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
      <sch:let name="nemsisElements" value="nem:eAirway.03" />
      <sch:assert id="Rule_2579" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../../../nem:eProcedures/nem:eProcedures.ProcedureGroup[(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eProcedures.03'][nem:eCustomResults.01 = 'itSNOMED.001']/nem:eCustomResults.03=./@CorrelationID and nem:eProcedures.06 = '9923003' and nem:eProcedures.02 = '9923001')]) &gt; 0 and count(../nem:eAirway.ConfirmationGroup[(nem:eAirway.03 = '4003009')]) &lt; 1)">Document the Airway Device Being Confirmed - King Airway</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eAirway.03 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
			<sch:let name="nemsisElements" value="nem:eAirway.03" />
			<sch:assert id="Rule_2580" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../../../nem:eProcedures/nem:eProcedures.ProcedureGroup[nem:eProcedures.03 = ('398142004','360111004') and nem:eProcedures.06 = '9923003' and nem:eProcedures.02 = '9923001']) &gt; 0 and count(../nem:eAirway.ConfirmationGroup[nem:eAirway.03 = '4003001']) &lt; 1 )">Document the Airway Device Being Confirmed as Airway - Cricothyroidotomy tube</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>eAirway.03 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
      <sch:let name="nemsisElements" value="nem:eAirway.03" />
      <sch:assert id="Rule_2581" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../../../nem:eProcedures/nem:eProcedures.ProcedureGroup[(nem:eProcedures.03 = '232685002' and nem:eProcedures.06 = '9923003' and nem:eProcedures.02 = '9923001')]) &gt; 0 and count(../nem:eAirway.ConfirmationGroup[(nem:eAirway.03 = '4003015')]) &lt; 1)">Document the Airway Device Being Confirmed as Airway - Intubation Existing Tracheostomy Stoma</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eAirway.07 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
      <sch:let name="nemsisElements" value="nem:eAirway.07" />
      <sch:assert id="Rule_2583" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eAirway.07) or nem:eAirway.07 = '') and (nem:eAirway.02 and nem:eAirway.02 != '') and (nem:eAirway.03 and nem:eAirway.03 != ''))">Document the crew member who confirmed the placement of the ALS airway.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itAirway.010 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
      <sch:let name="nemsisElements" value="nem:itAirway.010" />
      <sch:assert id="Rule_2584" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.010']) or ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.010'][nem:eCustomResults.01 = '']) and (nem:eAirway.02 and nem:eAirway.02 != '') and (nem:eAirway.03 and nem:eAirway.03 != ''))">Document the presence/absence of gastric sounds after placement of the ALS airway.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eAirway.06 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
      <sch:let name="nemsisElements" value="nem:eAirway.06" />
      <sch:assert id="Rule_2585" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eAirway.06) or nem:eAirway.06 = '') and (nem:eAirway.02 and nem:eAirway.02 != '') and (nem:eAirway.03 and nem:eAirway.03 != ''))">Document the type of individual who confirmed the ALS airway placement. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itAirway.013 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
      <sch:let name="nemsisElements" value="nem:itAirway.013" />
      <sch:assert id="Rule_2586" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.013']) or ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.013'][nem:eCustomResults.01 = '']) and (nem:eAirway.02 and nem:eAirway.02 != '') and (nem:eAirway.03 and nem:eAirway.03 != '') and (not(nem:eAirway.06) or nem:eAirway.06 = '' or (not(nem:eAirway.06 = ('4006007', '4006009')))))">Document the patient was pre-oxygenated prior to airway placement attempts.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eAirway.04 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
      <sch:let name="nemsisElements" value="nem:eAirway.04" />
      <sch:assert id="Rule_2587" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eAirway.04) or nem:eAirway.04 = '') and (nem:eAirway.02 and nem:eAirway.02 != '') and (nem:eAirway.03 and nem:eAirway.03 != ''))">Document the ALS airway confirmation method. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eAirway.05 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
      <sch:let name="nemsisElements" value="nem:eAirway.05" />
      <sch:assert id="Rule_2588" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eAirway.05) or nem:eAirway.05 = '') and (nem:eAirway.02 and nem:eAirway.02 != '') and nem:eAirway.03 = '4003003')">Document the ETT depth.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itAirway.006 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
      <sch:let name="nemsisElements" value="nem:itAirway.006" />
      <sch:assert id="Rule_2589" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.006']) or ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.006'][nem:eCustomResults.01 = '']) and (nem:eAirway.02 and nem:eAirway.02 != '') and (nem:eAirway.03 and nem:eAirway.03 != ''))">Document breath sounds-right after an ALS airway placement.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itAirway.005 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
      <sch:let name="nemsisElements" value="nem:itAirway.005" />
      <sch:assert id="Rule_2590" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.005']) or ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.005'][nem:eCustomResults.01 = '']) and (nem:eAirway.02 and nem:eAirway.02 != '') and nem:eAirway.03 = '4003003')">Document the location from which the ETT was measured after placement.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itAirway.004 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
      <sch:let name="nemsisElements" value="nem:itAirway.004" />
      <sch:assert id="Rule_2591" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.004']) or ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.004'][nem:eCustomResults.01 = '']) and (nem:eAirway.02 and nem:eAirway.02 != '') and (nem:eAirway.03 and nem:eAirway.03 != ''))">Document the breath sounds-left after an ALS airway placement.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itStemi.002 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:itStemiGroup">
      <sch:let name="nemsisElements" value="nem:itStemi.002" />
      <sch:assert id="Rule_2595" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itStemi.002']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itStemi.002'][nem:eCustomResults.01 = ''])) and (../nem:eSituation/nem:eSituation.11 = ('I21.3', 'I20.9') or (count(../nem:eSituation/nem:eSituation.12[text() = ('I21.3', 'I20.9')]) != 0)))">Document if the 12-lead EKG was directly transmitted to the Base or Receiving hospital </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eHistory.18 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eHistory">
      <sch:let name="nemsisElements" value="nem:eHistory.18" />
      <sch:assert id="Rule_2596" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((../nem:ePatient/nem:ePatient.13 = ('9906001', '9906007') and ../nem:ePatient/nem:ePatient.AgeGroup/nem:ePatient.16 = '2516009' and (../nem:ePatient/nem:ePatient.AgeGroup/nem:ePatient.15 != '' and number(../nem:ePatient/nem:ePatient.AgeGroup/nem:ePatient.15) &gt; 9) and (../nem:ePatient/nem:ePatient.AgeGroup/nem:ePatient.15 != '' and number(../nem:ePatient/nem:ePatient.AgeGroup/nem:ePatient.15) &lt; 55) and ../nem:eSituation/nem:eSituation.11 = ('I46.9', 'I95.9', 'F99', 'I10', 'I20.9', 'I21.3', 'I49.9', 'R00.2', 'R07.89', 'T63', 'T67.0', 'T68', 'K59.1', 'K92.0', 'K92.1', 'N39.9', 'R10.84', 'R11.2', 'G40.901', 'G40.909', 'I63.9', 'R41.82', 'R42', 'R51', 'R55', 'N93.9', 'O60', 'O80', 'O99.0', 'A41.9', 'E13.64', 'E13.65', 'M79.60', 'R50.9', 'T75.4', 'T78.2', 'T78.40', 'J00', 'J68.9', 'J70.5', 'J80', 'J81.0', 'J96.9', 'J98.01', 'T58.0', 'T75.1XXA', 'F10.92', 'F19', 'G24.0', 'R41.0', 'Z77.9', 'I46.8', 'T14.90', 'T30.0', 'R53.1')) and (((not(nem:eHistory.18) or nem:eHistory.18 = '') and (not(nem:eHistory.18[@PN]) or (not(nem:eHistory.18[@PN=('8801019', '8801023')])))) or ((nem:eHistory.18[@PN] and nem:eHistory.18[@PN=('8801019', '8801023')]) and (nem:eHistory.18 and nem:eHistory.18 != ''))))">Pregnancy Not Documented</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.006 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.006" />
      <sch:assert id="Rule_2597" role="[WARNING]" diagnostics="nemsisDiagnostic" test="not((nem:eVitals.PainScaleGroup/nem:eVitals.27 != '' and number(nem:eVitals.PainScaleGroup/nem:eVitals.27) &gt; 0) and ../../nem:eSituation/nem:eSituation.02 != '9922005' and nem:eVitals.02 != '9923003' and count(../nem:eVitals.VitalGroup[((../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.006'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.006'][nem:eCustomResults.01 != '']))]) &lt; 1)">Please complete the Provoked field.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.007 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.007" />
      <sch:assert id="Rule_2598" role="[WARNING]" diagnostics="nemsisDiagnostic" test="not((nem:eVitals.PainScaleGroup/nem:eVitals.27 != '' and number(nem:eVitals.PainScaleGroup/nem:eVitals.27) &gt; 0) and ../../nem:eSituation/nem:eSituation.02 != '9922005' and nem:eVitals.02 != '9923003' and count(../nem:eVitals.VitalGroup[((../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.007'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.007'][nem:eCustomResults.01 != '']))]) &lt; 1)">Please complete the Quality field.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.008 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.008" />
      <sch:assert id="Rule_2599" role="[WARNING]" diagnostics="nemsisDiagnostic" test="not((nem:eVitals.PainScaleGroup/nem:eVitals.27 != '' and number(nem:eVitals.PainScaleGroup/nem:eVitals.27) &gt; 0) and ../../nem:eSituation/nem:eSituation.02 != '9922005' and nem:eVitals.02 != '9923003' and count(../nem:eVitals.VitalGroup[((../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.008'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.008'][nem:eCustomResults.01 != '']))]) &lt; 1)">Please complete the Region field.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.009 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.009" />
      <sch:assert id="Rule_2600" role="[WARNING]" diagnostics="nemsisDiagnostic" test="not((nem:eVitals.PainScaleGroup/nem:eVitals.27 != '' and number(nem:eVitals.PainScaleGroup/nem:eVitals.27) &gt; 0) and ../../nem:eSituation/nem:eSituation.02 != '9922005' and nem:eVitals.02 != '9923003' and count(../nem:eVitals.VitalGroup[((../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.009'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.009'][nem:eCustomResults.01 != '']))]) &lt; 1)">Please complete the Radiation field.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.010 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.010" />
      <sch:assert id="Rule_2601" role="[WARNING]" diagnostics="nemsisDiagnostic" test="not((nem:eVitals.PainScaleGroup/nem:eVitals.27 != '' and number(nem:eVitals.PainScaleGroup/nem:eVitals.27) &gt; 0) and ../../nem:eSituation/nem:eSituation.02 != '9922005' and nem:eVitals.02 != '9923003' and count(../nem:eVitals.VitalGroup[((../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.010'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.010'][nem:eCustomResults.01 != '']))]) &lt; 1)">Please complete the Duration field.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eProcedures.01 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eProcedures/nem:eProcedures.ProcedureGroup">
      <sch:let name="nemsisElements" value="nem:eProcedures.01" />
      <sch:assert id="Rule_2602" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eProcedures.02 != '9923003') and (nem:eProcedures.01 != '' and ../../nem:eTimes/nem:eTimes.06 != '' and xs:dateTime(nem:eProcedures.01) &lt; xs:dateTime(../../nem:eTimes/nem:eTimes.06) or nem:eProcedures.01 != '' and ../../nem:eTimes/nem:eTimes.08 != '' and xs:dateTime(nem:eProcedures.01) &gt; xs:dateTime(../../nem:eTimes/nem:eTimes.08)))">Procedure D/T must be after Arrive on Scene DT and before TOC D/T  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDevice.02 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDevice/nem:eDevice.DeviceGroup">
      <sch:let name="nemsisElements" value="nem:eDevice.02" />
      <sch:assert id="Rule_2603" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDevice.008'][nem:eCustomResults.01 = 'itDevice.008.100']/nem:eCustomResults.03=./@CorrelationID) and (nem:eDevice.02 != '' and ../../nem:eTimes/nem:eTimes.06 != '' and xs:dateTime(nem:eDevice.02) &lt; xs:dateTime(../../nem:eTimes/nem:eTimes.06) or nem:eDevice.02 != '' and ../../nem:eTimes/nem:eTimes.13 != '' and xs:dateTime(nem:eDevice.02) &gt; xs:dateTime(../../nem:eTimes/nem:eTimes.13)))">D/T of Event (per Medical Device) must be after Arrive On Scene D/T and before Unit Available D/T if transported</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.01 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.01" />
      <sch:assert id="Rule_2604" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eVitals.02 != '9923003') and (nem:eVitals.01 != '' and ../../nem:eTimes/nem:eTimes.06 != '' and xs:dateTime(nem:eVitals.01) &lt; xs:dateTime(../../nem:eTimes/nem:eTimes.06) or nem:eVitals.01 != '' and ../../nem:eTimes/nem:eTimes.08 != '' and xs:dateTime(nem:eVitals.01) &gt; xs:dateTime(../../nem:eTimes/nem:eTimes.08)))">Vitals D/T must be after Arrive On Scene D/T and before TOC D/T</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eAirway.02 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
      <sch:let name="nemsisElements" value="nem:eAirway.02" />
      <sch:assert id="Rule_2605" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.016'][nem:eCustomResults.01 != 'itAirway.016.101']) and (nem:eAirway.02 != '' and ../../../nem:eTimes/nem:eTimes.06 != '' and xs:dateTime(nem:eAirway.02) &lt; xs:dateTime(../../../nem:eTimes/nem:eTimes.06) or nem:eAirway.02 != '' and ../../../nem:eTimes/nem:eTimes.13 != '' and xs:dateTime(nem:eAirway.02) &gt; xs:dateTime(../../../nem:eTimes/nem:eTimes.13)))">D/T Airway Device Placement Confirmation must be after Arrive at Pt D/T and before Unit Back in Service D/T if transported</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eMedications.01 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eMedications/nem:eMedications.MedicationGroup">
      <sch:let name="nemsisElements" value="nem:eMedications.01" />
      <sch:assert id="Rule_2606" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eMedications.02 != '9923003') and (nem:eMedications.01 != '' and ../../nem:eTimes/nem:eTimes.06 != '' and xs:dateTime(nem:eMedications.01) &lt; xs:dateTime(../../nem:eTimes/nem:eTimes.06) or nem:eMedications.01 != '' and ../../nem:eTimes/nem:eTimes.08 != '' and xs:dateTime(nem:eMedications.01) &gt; xs:dateTime(../../nem:eTimes/nem:eTimes.08)))">Medication D/T must be after Arrive On Scene D/T and before TOC D/T</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eCrew.03 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eCrew/nem:eCrew.CrewGroup">
      <sch:let name="nemsisElements" value="nem:eCrew.03" />
      <sch:assert id="Rule_2609" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((not(nem:eCrew.03) or nem:eCrew.03 = '') and (not(nem:eCrew.03[@NV]) or (not(nem:eCrew.03[@NV=('7701001', '7701003', '7701005')])))) and ((nem:eCrew.01 and nem:eCrew.01 != '') or (nem:eCrew.01[@NV])))">Please enter Crew Response Role</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itAirway.011 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
      <sch:let name="nemsisElements" value="nem:itAirway.011" />
      <sch:assert id="Rule_2610" role="[WARNING]" diagnostics="nemsisDiagnostic" test="not((not(../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.011']) or ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.011'][nem:eCustomResults.01 = '']) and (nem:eAirway.02 and nem:eAirway.02 != '') and (nem:eAirway.03 and nem:eAirway.03 != ''))">Document the presence of tube misting after an ETT placement.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eSituation.01 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:eSituation.01" />
      <sch:assert id="Rule_2611" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(((nem:eSituation.09 and nem:eSituation.09 != '')) and (((not(nem:eSituation.01) or nem:eSituation.01 = '') and (not(nem:eSituation.01[@NV]))) or ((nem:eSituation.01[@NV] and nem:eSituation.01[@NV = '7701001']) and (not(nem:eSituation.01) or nem:eSituation.01 = ''))))">Document Estimated Date/Time of Symptom Onset</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itAirway.008 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
      <sch:let name="nemsisElements" value="nem:itAirway.008" />
      <sch:assert id="Rule_2612" role="[WARNING]" diagnostics="nemsisDiagnostic" test="not((not(../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.008']) or ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.008'][nem:eCustomResults.01 = '']) and (nem:eAirway.02 and nem:eAirway.02 != '') and (nem:eAirway.03 and nem:eAirway.03 != ''))">Document chest rise after ALS airway insertion. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itObstetrics.008 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport">
      <sch:let name="nemsisElements" value="nem:itObstetrics.008" />
      <sch:assert id="Rule_2613" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itObstetrics.008']) or nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itObstetrics.008'][nem:eCustomResults.01 = '']) and nem:eHistory/nem:eHistory.18 = ('3118005', '3118007', '3118009'))">Enter Estimated Date of Delivery if Pregnancy = Yes </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eResponse.10 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eResponse">
      <sch:let name="nemsisElements" value="nem:eResponse.10" />
      <sch:assert id="Rule_2614" role="[WARNING]" diagnostics="nemsisDiagnostic" test="not(../nem:eTimes/nem:eTimes.09 != '' and ../nem:eTimes/nem:eTimes.06 != '' and (abs(days-from-duration(xs:dateTime(../nem:eTimes/nem:eTimes.09) - xs:dateTime(../nem:eTimes/nem:eTimes.06))) * 1440) + (abs(hours-from-duration(xs:dateTime(../nem:eTimes/nem:eTimes.09) - xs:dateTime(../nem:eTimes/nem:eTimes.06))) * 60) + (abs(minutes-from-duration(xs:dateTime(../nem:eTimes/nem:eTimes.09) - xs:dateTime(../nem:eTimes/nem:eTimes.06)))) &gt; 20 and (not(nem:eResponse.10) or nem:eResponse.10 = ''))">Enter reason for scene delay when on scene for greater than 20 minutes.
</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.05 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.CardiacRhythmGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.05" />
      <sch:assert id="Rule_2615" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eVitals.05) or nem:eVitals.05 = '') and nem:eVitals.04 = ('3304003', '3304007') and ../nem:eVitals.02 != '9923003' and (not(nem:eVitals.05[@NV])))">For 4 Lead and 12 Lead EKGs please enter Method of Interpretation.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.03 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.CardiacRhythmGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.03" />
      <sch:assert id="Rule_2616" role="[FATAL]" diagnostics="nemsisDiagnostic" test="not((not(nem:eVitals.03) or nem:eVitals.03 = '') and nem:eVitals.04 = ('3304003', '3304007') and ../nem:eVitals.02 != '9923003' and (not(nem:eVitals.03[@NV])) and (not(nem:eVitals.03[@PN])))">For 4 Lead and 12 Lead EKGs please enter Cardiac Rhythm / Electrocardiography (EKG)</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.091 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.091" />
      <sch:assert id="Rule_2618" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.091'][nem:eCustomResults.01 = ('itVitals.091.001', 'itVitals.091.002')])) and (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.091'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.091'][nem:eCustomResults.01 != '']))">For TPV submissions - Facial Palsy must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.091 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.091" />
      <sch:assert id="Rule_2619" role="[FATAL]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.091']) or ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.091'][nem:eCustomResults.01 = '']) and nem:eVitals.StrokeScaleGroup/nem:eVitals.29 = '3329005')">Please complete the Facial Palsy field</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.092 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.092" />
      <sch:assert id="Rule_2620" role="[FATAL]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.092']) or ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.092'][nem:eCustomResults.01 = '']) and nem:eVitals.StrokeScaleGroup/nem:eVitals.29 = '3329005')">Please complete the  Arm Weakness field</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.093 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.093" />
      <sch:assert id="Rule_2621" role="[FATAL]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.093']) or ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.093'][nem:eCustomResults.01 = '']) and nem:eVitals.StrokeScaleGroup/nem:eVitals.29 = '3329005')">Please complete the Speech Changes field</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.094 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.094" />
      <sch:assert id="Rule_2622" role="[FATAL]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.094']) or ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.094'][nem:eCustomResults.01 = '']) and nem:eVitals.StrokeScaleGroup/nem:eVitals.29 = '3329005')">Please complete the Eye Deviation Changes field</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.095 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.095" />
      <sch:assert id="Rule_2623" role="[FATAL]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.095']) or ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.095'][nem:eCustomResults.01 = '']) and nem:eVitals.StrokeScaleGroup/nem:eVitals.29 = '3329005')">Please complete the Denial/Neglect field</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.092 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.092" />
      <sch:assert id="Rule_2624" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.092'][nem:eCustomResults.01 = ('itVitals.092.001', 'itVitals.092.002', 'itVitals.092.003')])) and (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.092'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.092'][nem:eCustomResults.01 != '']))">For TPV submissions - Arm Weakness must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.093 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.093" />
      <sch:assert id="Rule_2625" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.093'][nem:eCustomResults.01 = ('itVitals.093.001', 'itVitals.093.002', 'itVitals.093.003')])) and (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.093'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.093'][nem:eCustomResults.01 != '']))">For TPV submissions - Speech Changes must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.094 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.094" />
      <sch:assert id="Rule_2626" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.094'][nem:eCustomResults.01 = ('itVitals.094.001', 'itVitals.094.002', 'itVitals.094.003')])) and (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.094'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.094'][nem:eCustomResults.01 != '']))">For TPV submissions - Eye Deviation must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.095 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.095" />
      <sch:assert id="Rule_2627" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.095'][nem:eCustomResults.01 = ('itVitals.095.001', 'itVitals.095.002', 'itVitals.095.003')])) and (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.095'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.095'][nem:eCustomResults.01 != '']))">For TPV submissions - Denial/Neglect must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itVitals.044 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:itVitals.044" />
      <sch:assert id="Rule_2628" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((count(../nem:eVitals.VitalGroup[((../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.044'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.044'][nem:eCustomResults.01 != '']))]) &lt; 1 and (not(nem:eVitals.StrokeScaleGroup/nem:eVitals.29[@NV])) and (not(nem:eVitals.StrokeScaleGroup/nem:eVitals.29[@PN])) and nem:eVitals.02 != '9923003') and (../../nem:eSituation/nem:eSituation.11 = ('I63.9') or (count(../../nem:eSituation/nem:eSituation.12[text() = ('I63.9')]) != 0) or count(../../nem:eOther/nem:eOther.02[text() = '4502007']) != 0))">Complete the the Stroke System Triage field.
</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eProcedures.03 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eProcedures/nem:eProcedures.ProcedureGroup">
			<sch:let name="nemsisElements" value="nem:eProcedures.03" />
			<sch:assert id="Rule_2631" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((../../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../../nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2023-07-01T00:00:00')) and (((not(nem:eProcedures.03) or nem:eProcedures.03 = '' or (not(nem:eProcedures.03 = ('425058005','18590009','26906007','252465000','406164000','386423001','426498007','398041008','427054008','79321009','182556001','302488007','230040009','261352009','250980009','20655006','128968000','397849009','431949004','225116006','86768006','243142003','410652009','229309006','233573008','706172005','360064003','268400002','428803005','972002','243140006','425447009','360111004','232674004','232685002','182692007','232673005','232664002','7443007','448907002','77938009','258622003','26128008','19821003','89666000','429283006','86265008','22206003','55628002','236973005','431774007','241726007','446661000124101','409530006','425543005','49999004','232707004','225358003','439926003','23690002','372045002','441893003','430824005','392230005','424287005','444063009','386237008','422797001','57395004','182777000','87750000','182705007','235425002','405640005','426220008','45851008','46825001','225285007','710925007','47545007','398142004','673005','425696007','713535007','250863006','33747003','116859006','233169004','229585002','425074000')) and not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eProcedures.03'][nem:eCustomResults.01 = ('itSNOMED.033','itSNOMED.001','itSNOMED.020','itSNOMED.006')]))) and (nem:eProcedures.03 and nem:eProcedures.03 != '')) or ((not(nem:eProcedures.03[@NV]) or (not(nem:eProcedures.03[@NV=('7701001','7701003')]))) and (nem:eProcedures.03[@NV])) or ((not(nem:eProcedures.03[@PN]) or (not(nem:eProcedures.03[@PN=('8801001','8801003','8801019','8801023')]))) and (nem:eProcedures.03[@PN]))))">For TPV submissions - Procedure must be complete with a LEMSIS value/code.</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>eProcedures.05 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eProcedures/nem:eProcedures.ProcedureGroup">
      <sch:let name="nemsisElements" value="nem:eProcedures.05" />
      <sch:assert id="Rule_2632" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eProcedures.05) or nem:eProcedures.05 = '') and (nem:eProcedures.03 = ('232674004', '182705007', '87750000', '128968000', '392230005', '430824005', '232685002', '448907002', '258622003', '26128008', '397849009', '7443007', '250980009', '405640005') or ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eProcedures.03'][nem:eCustomResults.01 = ('itSNOMED.001')]) and nem:eProcedures.02 != '9923003')">Number of Procedure Attempts is a required field.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eProcedures.06 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eProcedures/nem:eProcedures.ProcedureGroup">
      <sch:let name="nemsisElements" value="nem:eProcedures.06" />
      <sch:assert id="Rule_2633" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eProcedures.06) or nem:eProcedures.06 = '') and (nem:eProcedures.03 = ('232674004', '18590009', '250980009', '87750000', '182705007', '128968000', '392230005', '430824005', '372045002', '26906007', '20655006', '232685002', '448907002', '26128008', '22206003', '439926003', '397849009', '360111004', '232707004', '23690002', '405640005') or ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eProcedures.03'][nem:eCustomResults.01 = ('itSNOMED.020', 'itSNOMED.001')]) and nem:eProcedures.02 != '9923003')">Procedure Successful is a required field for selected interventions.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eProcedures.04 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eProcedures/nem:eProcedures.ProcedureGroup">
			<sch:let name="nemsisElements" value="nem:eProcedures.04" />
			<sch:assert id="Rule_2634" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eProcedures.04) or nem:eProcedures.04 = '') and (nem:eProcedures.03 = ('232674004','182692007','7443007','182705007','392230005','430824005','232685002','232673005','405640005','713535007') or ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eProcedures.03'][nem:eCustomResults.01 = ('itSNOMED.001')]) and nem:eProcedures.02 != '9923003'  )">Document the size of the airway or catheter used.  </sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
	<sch:pattern>
		<sch:title>itExam.064 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport">
			<sch:let name="nemsisElements" value="nem:itExam.064" />
			<sch:assert id="Rule_2635" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.064']) or nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.064'][nem:eCustomResults.01 = '']) and count(nem:eProcedures/nem:eProcedures.ProcedureGroup[(nem:eProcedures.03 = ('232674004','405640005','713535007') or ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eProcedures.03'][nem:eCustomResults.01 = ('itSNOMED.001')]) and nem:eProcedures.06 = '9923003']) = 1)">Please complete the Cervical Collar Applied field.</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
	<sch:pattern>
		<sch:title>eAirway.ConfirmationGroup related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup">
			<sch:let name="nemsisElements" value="nem:eAirway.ConfirmationGroup" />
			<sch:assert id="Rule_2636" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((count(nem:eAirway.ConfirmationGroup/nem:*[@* or string-length(normalize-space(.)) &gt; 0]) = 0) and count(../../nem:eProcedures/nem:eProcedures.ProcedureGroup[(nem:eProcedures.03 = ('232674004','232685002','360111004','405640005') or ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eProcedures.03'][nem:eCustomResults.01 = ('itSNOMED.001')])]) &gt; 0 and count(nem:eAirway.ConfirmationGroup[../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.016'][nem:eCustomResults.01 != 'itAirway.016.101']]) &lt; 1   and ../../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2026-05-01T00:00:00'))">Document the airway confirmations when an ALS airway is placed.  </sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
		<sch:title>eVitals.16 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
			<sch:let name="nemsisElements" value="nem:eVitals.16" />
			<sch:assert id="Rule_2638" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eVitals.16) or nem:eVitals.16 = '') and count(../../nem:eProcedures/nem:eProcedures.ProcedureGroup[(nem:eProcedures.03 = ('360111004','232674004','232685002','405640005','398142004','713535007') or ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eProcedures.03'][nem:eCustomResults.01 = ('itSNOMED.001')]) and nem:eProcedures.02 != '9923003']) &gt; 0 and (not(nem:eVitals.16[@NV])) and (not(nem:eVitals.16[@PN])) and nem:eVitals.02 = '9923001'  )">Please enter ETCO2 for documentation of LEAD SD for the Advanced Airway procedure.</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>eAirway.03 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
      <sch:let name="nemsisElements" value="nem:eAirway.03" />
      <sch:assert id="Rule_2639" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eAirway.03) or nem:eAirway.03 = '' or (not(nem:eAirway.03 = ('4003001', '4003003', '4003009', '4003015', '4003013')))) and (nem:eAirway.03 and nem:eAirway.03 != '')) or ((not(nem:eAirway.03[@NV]) or (not(nem:eAirway.03[@NV=('7701001', '7701003', '7701005')]))) and (nem:eAirway.03[@NV]))))">For TPV submissions - Airway Device Being Confirmed must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>itAirway.018 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport">
			<sch:let name="nemsisElements" value="nem:itAirway.018" />
			<sch:assert id="Rule_2640" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eProcedures/nem:eProcedures.ProcedureGroup[nem:eProcedures.03 = '405640005' and nem:eProcedures.06 = '9923001' and nem:eProcedures.02 = '9923001']) &gt; 0 and count(nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup[(not(../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.018']) or ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.018'][nem:eCustomResults.01 = '']) and nem:eAirway.03 = '4003013' and ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.016'][nem:eCustomResults.01 = 'itAirway.016.100']]) &gt; 0 and nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2026-04-30T00:00:00'))">Please enter the Reason for Failed Supraglottic (SGA)/i-gel Airway</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
	<sch:pattern>
		<sch:title>eAirway.03 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
			<sch:let name="nemsisElements" value="nem:eAirway.03" />
			<sch:assert id="Rule_2641" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../../../nem:eProcedures/nem:eProcedures.ProcedureGroup[nem:eProcedures.03 = '405640005' and nem:eProcedures.02 = '9923001' and nem:eProcedures.06 = '9923001']) &gt; 0 and count(../nem:eAirway.ConfirmationGroup[nem:eAirway.03 = '4003013' and ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.016'][nem:eCustomResults.01 = 'itAirway.016.100']]) &lt; 1 and ../../../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../../../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2026-04-30T00:00:00'))">Please enter Supraglottic (SGA)/i-gel as the Airway being Confirmed
</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
	<sch:pattern>
		<sch:title>eAirway.02 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
			<sch:let name="nemsisElements" value="nem:eAirway.02" />
			<sch:assert id="Rule_2642" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../../../nem:eProcedures/nem:eProcedures.ProcedureGroup[nem:eProcedures.03 = ('405640005','713535007') and nem:eProcedures.06 = '9923003' and nem:eProcedures.02 = '9923001']) &gt; 0 and count(../nem:eAirway.ConfirmationGroup[(nem:eAirway.02 and nem:eAirway.02 != '') and ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.016'][nem:eCustomResults.01 = 'itAirway.016.100'] and nem:eAirway.03 = '4003013']) &lt; 1)">Document the time when the placement of the SGA/i-gel airway was confirmed.  </sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>eOther.02 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther">
      <sch:let name="nemsisElements" value="nem:eOther.02" />
      <sch:assert id="Rule_2644" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eOther.02) or nem:eOther.02 = '' or count(nem:eOther.02[text() = ('4502015', '4502007', '4502017', '4502003', '4502011')]) + ../count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eOther.02'][nem:eCustomResults.01 = ('it4502.102', 'it4502.101', 'it4502.111')]) = 0) and (nem:eOther.02 and nem:eOther.02 != ''))">For TPV submissions - Specialty Type must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.05 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.CardiacRhythmGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.05" />
      <sch:assert id="Rule_2645" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eVitals.05) or nem:eVitals.05 = '' or count(nem:eVitals.05[text() = ('3305001', '3305003', '3305007')]) = 0) and (nem:eVitals.05 and nem:eVitals.05 != '')) or ((not(nem:eVitals.05[@NV]) or (not(nem:eVitals.05[@NV=('7701001', '7701003')]))) and (nem:eVitals.05[@NV]))))">For TPV submissions - EKG Interpretation must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eAirway.03 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
			<sch:let name="nemsisElements" value="nem:eAirway.03" />
			<sch:assert id="Rule_2646" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../../../nem:eProcedures/nem:eProcedures.ProcedureGroup[nem:eProcedures.03 = ('405640005','713535007') and nem:eProcedures.02 = '9923001' and nem:eProcedures.06 = '9923003']) &gt; 0 and count(../nem:eAirway.ConfirmationGroup[nem:eAirway.03 = '4003013']) &lt; 1)">Document the Airway Device Being Confirmed as Supraglottic (SGA)/i-gel</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
		<sch:title>eSituation.20 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eSituation">
			<sch:let name="nemsisElements" value="nem:eSituation.20" />
			<sch:assert id="Rule_2658" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eSituation.20) or nem:eSituation.20 = '') and ../nem:eResponse/nem:eResponse.ServiceGroup/nem:eResponse.05 = ('2205005','2205015','2205017','2205019') and ../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2026-03-18T00:00:00'))">Reason for IFT is required when Type of Service Requested = IFT/CCT</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>ePatient.22 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:ePatient">
      <sch:let name="nemsisElements" value="nem:ePatient.22" />
      <sch:assert id="Rule_2659" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itPatient.025'][nem:eCustomResults.01 = ('itPatient.025.002', 'itPatient.025.003')] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'ePatient.22'][nem:eCustomResults.01 = ('itPatient.028.103', 'itPatient.028.104')])">Patient  Homeless situation is Sheltered or Unsheltered and Is Pt Homeless is No or Unknown</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eExam.02 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eExam">
      <sch:let name="nemsisElements" value="nem:eExam.02" />
      <sch:assert id="Rule_2736" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((../nem:eResponse/nem:eResponse.ServiceGroup/nem:eResponse.05 = ('2205001')) and (((not(nem:eExam.02) or nem:eExam.02 = '') and (../nem:ePatient/nem:ePatient.AgeGroup/nem:ePatient.15 != '' and number(../nem:ePatient/nem:ePatient.AgeGroup/nem:ePatient.15) &lt; 15) and ../nem:ePatient/nem:ePatient.AgeGroup/nem:ePatient.16 = ('2516009')) or ((not(nem:eExam.02) or nem:eExam.02 = '') and ../nem:ePatient/nem:ePatient.AgeGroup/nem:ePatient.16 = ('2516007', '2516001', '2516003', '2516005'))))">Please complete the Length Based Tape Measure field for this pediatric patient</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.31 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.31" />
      <sch:assert id="Rule_2737" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(nem:eDisposition.31) &gt; 1)">Select only one option in this field</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itResponse.115 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eResponse">
      <sch:let name="nemsisElements" value="nem:itResponse.115" />
      <sch:assert id="Rule_2738" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2024-08-23T00:00:00')) and (((../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itResponse.115'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itResponse.115'][nem:eCustomResults.01 != '']) and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229005', '4229007', '4229009', '4229011', '4229013')) or ((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itResponse.115']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itResponse.115'][nem:eCustomResults.01 = '']) and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229003'))))">What Level of Care/Service was this Pt Transferred To? should only be entered when transferring patient care</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itSceneGroup related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport">
      <sch:let name="nemsisElements" value="nem:itSceneGroup" />
      <sch:assert id="Rule_2739" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2024-08-23T00:00:00')) and (((nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229007')) and (count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = ('itScene.032', 'itScene.033', 'itScene.034', 'itScene.035', 'itScene.036', 'itScene.037', 'itScene.038', 'itScene.039', 'itScene.040', 'itScene.041', 'itScene.042', 'itScene.043', 'itScene.044', 'itScene.045')]) = 0 or count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSceneGroup']) &gt; 1)) or ((nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229005', '4229009', '4229011', '4229013')) and (count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = ('itScene.032', 'itScene.033', 'itScene.034', 'itScene.035', 'itScene.036', 'itScene.037', 'itScene.038', 'itScene.039', 'itScene.040', 'itScene.041', 'itScene.042', 'itScene.043', 'itScene.044', 'itScene.045')]) != 0 or count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSceneGroup']) &gt; 1))))">Please complete the What Level of Care/Service was this Pt Assumed From? should be entered when assumed patient care (Only one grid entry is allowed)</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.30 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.30" />
      <sch:assert id="Rule_2742" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.007']/nem:eCustomResults.01 != '' and xs:dateTime(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.007']/nem:eCustomResults.01) &gt; xs:dateTime('2023-12-08T00:00:00-06:00') and (not(nem:eDisposition.30) or nem:eDisposition.30 = ''))">Complete the Transport Disposition field</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eDisposition.31 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
			<sch:let name="nemsisElements" value="nem:eDisposition.31" />
			<sch:assert id="Rule_2743" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eDisposition.31) or nem:eDisposition.31 = '') and nem:eDisposition.30 = ('4230009'))">Complete the Reason for Refusal/Release when pt refused transport</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>eVitals.01 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.01" />
      <sch:assert id="Rule_2760" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.30 = ('4230001', '4230003', '4230005', '4230007', '4230009', '4230013') and nem:eVitals.02 != '9923003') and (((not(nem:eVitals.01) or nem:eVitals.01 = '') and (nem:eVitals.01[@NV] and nem:eVitals.01[@NV = '7701001'])) or ((not(nem:eVitals.01) or nem:eVitals.01 = '') and (not(nem:eVitals.01[@NV])))))">Document Vitals Sign Date Time or Select Not Recorded</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.10 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.HeartRateGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.10" />
      <sch:assert id="Rule_2761" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../../nem:eVitals.VitalGroup[((nem:eVitals.HeartRateGroup/nem:eVitals.10 and nem:eVitals.HeartRateGroup/nem:eVitals.10 != ''))]) &lt; 1 and count(../../nem:eVitals.VitalGroup[((nem:eVitals.HeartRateGroup/nem:eVitals.10[@NV]))]) &lt; 1 and count(../../nem:eVitals.VitalGroup[((nem:eVitals.HeartRateGroup/nem:eVitals.10[@PN]))]) &lt; 1 and ../../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.30 = ('4230001', '4230003', '4230005', '4230009', '4230013'))">Document at least one heart rate or enter a Null Value</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.14 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.14" />
      <sch:assert id="Rule_2779" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../nem:eVitals.VitalGroup[((nem:eVitals.14 and nem:eVitals.14 != ''))]) &lt; 1 and count(../nem:eVitals.VitalGroup[((nem:eVitals.14[@NV]))]) &lt; 1 and count(../nem:eVitals.VitalGroup[((nem:eVitals.14[@PN]))]) &lt; 1 and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.30 = ('4230001', '4230003', '4230005', '4230007', '4230009', '4230013'))">Document at least one respiratory rate. NVs available</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itExam.088 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eExam">
      <sch:let name="nemsisElements" value="nem:itExam.088" />
      <sch:assert id="Rule_2787" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.30 = ('4230001', '4230003', '4230005', '4230007', '4230009', '4230013') and (not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.088']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.088'][nem:eCustomResults.01 = '']) and ../nem:eScene/nem:eScene.07 != '9923003')">Is this a possible stroke incident?</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eAirway.01 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup">
      <sch:let name="nemsisElements" value="nem:eAirway.01" />
      <sch:assert id="Rule_2795" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eAirway.01) or nem:eAirway.01 = '' or count(nem:eAirway.01[text() = ('4001001', '4001003', '4001005', '4001007', '4001009', '4001011', '4001013')]) = 0) and (nem:eAirway.01 and nem:eAirway.01 != '')) or ((not(nem:eAirway.01[@NV]) or (not(nem:eAirway.01[@NV=('7701001', '7701003', '7701005')]))) and (nem:eAirway.01[@NV]))))">For TPV submissions - Indications for Invasive Airway must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.01 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.01" />
      <sch:assert id="Rule_2796" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &lt; xs:dateTime('2024-08-24T00:00:00')) and (((not(nem:eArrest.01) or nem:eArrest.01 = '' or (not(nem:eArrest.01 = ('3001001', '3001005', '3001003')) and not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eArrest.01'][nem:eCustomResults.01 = ('it3001.100')]))) and (nem:eArrest.01 and nem:eArrest.01 != '')) or ((not(nem:eArrest.01[@NV]) or (not(nem:eArrest.01[@NV=('7701001', '7701003')]))) and (nem:eArrest.01[@NV]))))">For TPV submissions - Cardiac Arrest must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.20 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.20" />
      <sch:assert id="Rule_2797" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eArrest.20) or nem:eArrest.20 = '' or (not(nem:eArrest.20 = ('3020013', '3020007', '3020003', '3020001', '3020011', '3020005', '3020009')))) and (nem:eArrest.20 and nem:eArrest.20 != '')) or ((not(nem:eArrest.20[@NV]) or (not(nem:eArrest.20[@NV=('7701001', '7701003')]))) and (nem:eArrest.20[@NV]))))">For TPV submissions - Who First Initiated CPR must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.21 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.21" />
      <sch:assert id="Rule_2798" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eArrest.21) or nem:eArrest.21 = '' or (not(nem:eArrest.21 = ('3021013','3021007','3021009','3021003','3021011','3021005','3021001')))) and (nem:eArrest.21 and nem:eArrest.21 != '')) or ((not(nem:eArrest.21[@NV]) or (not(nem:eArrest.21[@NV=('7701001','7701003')]))) and (nem:eArrest.21[@NV]))))">For TPV submissions - Who First Applied the AED must be a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.22 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.22" />
      <sch:assert id="Rule_2799" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eArrest.22) or nem:eArrest.22 = '' or (not(nem:eArrest.22 = ('3022001','3022013','3022003','3022007','3022009','3022011','3022005')))) and (nem:eArrest.22 and nem:eArrest.22 != '')) or ((not(nem:eArrest.22[@NV]) or (not(nem:eArrest.22[@NV=('7701001','7701003')]))) and (nem:eArrest.22[@NV]))))">For TPV submissions - Who First Defibrillated the Patient must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eCrew.03 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eCrew/nem:eCrew.CrewGroup">
      <sch:let name="nemsisElements" value="nem:eCrew.03" />
      <sch:assert id="Rule_2800" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eCrew.03) or nem:eCrew.03 = '' or count(nem:eCrew.03[text() = ('2403001', '2403003', '2403005', '2403007', '2403009', '2403011', '2403013')]) + ../../count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eCrew.03'][nem:eCustomResults.01 = ('it2403.116', 'it2403.111')]) = 0) and (nem:eCrew.03 and nem:eCrew.03 != '')) or ((not(nem:eCrew.03[@NV]) or (not(nem:eCrew.03[@NV=('7701001', '7701003', '7701005')]))) and (nem:eCrew.03[@NV]))))">For TPV submissions - Crew Member Response Role must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDispatch.05 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDispatch">
      <sch:let name="nemsisElements" value="nem:eDispatch.05" />
      <sch:assert id="Rule_2801" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eDispatch.05) or nem:eDispatch.05 = '' or (not(nem:eDispatch.05 = ('2305001', '2305003', '2305005', '2305007')) and not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eDispatch.05'][nem:eCustomResults.01 = ('it2305.119', 'it2305.104', 'it2305.105', 'it2305.106', 'it2305.109', 'it2305.111')]))) and (nem:eDispatch.05 and nem:eDispatch.05 != ''))">For TPV submissions - Dispatch Priority (Patient Acuity) must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.14 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition">
      <sch:let name="nemsisElements" value="nem:eDisposition.14" />
      <sch:assert id="Rule_2802" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eDisposition.14) or nem:eDisposition.14 = '' or count(nem:eDisposition.14[text() = ('4214017', '4214013', '4214003', '4214001', '4214009', '4214011', '4214005', '4214007', '4214015', '4214019')]) = 0) and (nem:eDisposition.14 and nem:eDisposition.14 != ''))">For TPV submissions - Position of Patient During Transport must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eDisposition.24 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.HospitalTeamActivationGroup">
			<sch:let name="nemsisElements" value="nem:eDisposition.24" />
			<sch:assert id="Rule_2803" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eDisposition.24) or nem:eDisposition.24 = '' or (not(nem:eDisposition.24 = ('4224003','4224005','4224009','4224011','4224013','4224015')) and not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eDisposition.24'][nem:eCustomResults.01 = ('it4224.141')]))) and (nem:eDisposition.24 and nem:eDisposition.24 != '')) or ((not(nem:eDisposition.24[@NV]) or (not(nem:eDisposition.24[@NV=('7701001','7701003')]))) and (nem:eDisposition.24[@NV]))))">For TPV submissions - Destination Team Pre-Arrival Alert or Activation must be complete with a LEMSIS value/code.</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>eDisposition.29 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.29" />
      <sch:assert id="Rule_2804" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eDisposition.29) or nem:eDisposition.29 = '' or (not(nem:eDisposition.29 = ('4229001', '4229003', '4229005', '4229007', '4229009', '4229011', '4229013')))) and (nem:eDisposition.29 and nem:eDisposition.29 != '')) or ((not(nem:eDisposition.29[@NV]) or (not(nem:eDisposition.29[@NV=('7701001', '7701003')]))) and (nem:eDisposition.29[@NV]))))">For TPV submissions - Crew Disposition must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.30 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.30" />
      <sch:assert id="Rule_2805" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eDisposition.30) or nem:eDisposition.30 = '' or (not(nem:eDisposition.30 = ('4230001', '4230003', '4230005', '4230007', '4230009', '4230011', '4230013')))) and (nem:eDisposition.30 and nem:eDisposition.30 != '')) or ((not(nem:eDisposition.30[@NV]) or (not(nem:eDisposition.30[@NV=('7701001', '7701003')]))) and (nem:eDisposition.30[@NV]))))">For TPV submissions -Transport Disposition must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eDisposition.31 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
			<sch:let name="nemsisElements" value="nem:eDisposition.31" />
			<sch:assert id="Rule_2806" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eDisposition.31) or nem:eDisposition.31 = '' or count(nem:eDisposition.31[text() = ('4231001','4231005','4231007','4231015','4231017')]) = 0) and (nem:eDisposition.31 and nem:eDisposition.31 != '')  )">For TPV submissions - Reason for Refusal/Release must be complete with a LEMSIS value/code.</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>eDisposition.32 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition">
      <sch:let name="nemsisElements" value="nem:eDisposition.32" />
      <sch:assert id="Rule_2807" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eDisposition.32) or nem:eDisposition.32 = '' or (not(nem:eDisposition.32 = ('4232001', '4232003', '4232005', '4232009', '4232011', '4232013')))) and (nem:eDisposition.32 and nem:eDisposition.32 != '')) or ((not(nem:eDisposition.32[@NV]) or (not(nem:eDisposition.32[@NV=('7701001', '7701003')]))) and (nem:eDisposition.32[@NV]))))">For TPV submissions -Level of Care Provided  must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eInjury.06 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eInjury">
      <sch:let name="nemsisElements" value="nem:eInjury.06" />
      <sch:assert id="Rule_2808" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eInjury.06) or nem:eInjury.06 = '' or (not(nem:eInjury.06 = ('2906001', '2906003', '2906005', '2906007', '2906009', '2906011', '2906013', '2906015', '2906017', '2906019', '2906021', '2906023', '2906025', '2906027', '2906029')))) and (nem:eInjury.06 and nem:eInjury.06 != ''))">For TPV submissions -Location of Patient in Vehicle must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eInjury.08 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eInjury">
      <sch:let name="nemsisElements" value="nem:eInjury.08" />
      <sch:assert id="Rule_2809" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eInjury.08) or nem:eInjury.08 = '' or count(nem:eInjury.08[text() = ('2908001', '2908005', '2908003', '2908007', '2908009')]) = 0) and (nem:eInjury.08 and nem:eInjury.08 != ''))">For TPV submissions Airbag Deployment must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eMedications.07 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eMedications/nem:eMedications.MedicationGroup">
      <sch:let name="nemsisElements" value="nem:eMedications.07" />
      <sch:assert id="Rule_2810" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eMedications.07) or nem:eMedications.07 = '' or (not(nem:eMedications.07 = ('9916001', '9916003', '9916005')))) and (nem:eMedications.07 and nem:eMedications.07 != '')) or ((not(nem:eMedications.07[@NV]) or (not(nem:eMedications.07[@NV=('7701001', '7701003')]))) and (nem:eMedications.07[@NV]))))">For TPV submissions - Response to Medications must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eMedications.08 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eMedications/nem:eMedications.MedicationGroup">
      <sch:let name="nemsisElements" value="nem:eMedications.08" />
      <sch:assert id="Rule_2811" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eMedications.08) or nem:eMedications.08 = '' or count(nem:eMedications.08[text() = ('3708031', '3708033', '3708001', '3708003', '3708005', '3708007', '3708009', '3708011', '3708013', '3708015', '3708017', '3708019', '3708021', '3708023', '3708043', '3708029', '3708035', '3708037', '3708039', '3708045', '3708041')]) = 0) and (nem:eMedications.08 and nem:eMedications.08 != '')) or ((not(nem:eMedications.08[@NV]) or (not(nem:eMedications.08[@NV=('7701001', '7701003')]))) and (nem:eMedications.08[@NV]))))">For TPV submissions -Medication Complication must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eOther.03 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eOther/nem:eOther.EMSCrewMemberGroup">
      <sch:let name="nemsisElements" value="nem:eOther.03" />
      <sch:assert id="Rule_2812" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eOther.03) or nem:eOther.03 = '' or count(nem:eOther.03[text() = ('4503001', '4503003', '4503005', '4503007', '4503009', '4503011', '4503013', '4503015', '4503017', '4503019', '4503021', '4503023')]) + ../../count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eOther.03'][nem:eCustomResults.01 = ('it4503.102')]) = 0) and (nem:eOther.03 and nem:eOther.03 != ''))">For TPV submissions - Personal Protective Equipment must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eProcedures.07 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eProcedures/nem:eProcedures.ProcedureGroup">
      <sch:let name="nemsisElements" value="nem:eProcedures.07" />
      <sch:assert id="Rule_2813" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eProcedures.07) or nem:eProcedures.07 = '' or count(nem:eProcedures.07[text() = ('3907001', '3907003', '3907005', '3907047', '3907007', '3907009', '3907011', '3907017', '3907019', '3907015', '3907021', '3907023', '3907025', '3907027', '3907031', '3907033', '3907035', '3907039', '3907041', '3907043', '3907045', '3907049', '3907051')]) = 0) and (nem:eProcedures.07 and nem:eProcedures.07 != '')) or ((not(nem:eProcedures.07[@NV]) or (not(nem:eProcedures.07[@NV=('7701001', '7701003')]))) and (nem:eProcedures.07[@NV]))))">For TPV submissions -Procedure Complication must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eProcedures.08 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eProcedures/nem:eProcedures.ProcedureGroup">
      <sch:let name="nemsisElements" value="nem:eProcedures.08" />
      <sch:assert id="Rule_2814" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eProcedures.08) or nem:eProcedures.08 = '' or (not(nem:eProcedures.08 = ('9916001', '9916003', '9916005')))) and (nem:eProcedures.08 and nem:eProcedures.08 != '')) or ((not(nem:eProcedures.08[@NV]) or (not(nem:eProcedures.08[@NV=('7701001', '7701003')]))) and (nem:eProcedures.08[@NV]))))">For TPV submissions -Procedure Response must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eProtocols.02 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eProtocols/nem:eProtocols.ProtocolGroup">
      <sch:let name="nemsisElements" value="nem:eProtocols.02" />
      <sch:assert id="Rule_2815" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eProtocols.02) or nem:eProtocols.02 = '' or (not(nem:eProtocols.02 = ('3602001', '3602003', '3602005')))) and (nem:eProtocols.02 and nem:eProtocols.02 != '')) or ((not(nem:eProtocols.02[@NV]) or (not(nem:eProtocols.02[@NV=('7701001', '7701003')]))) and (nem:eProtocols.02[@NV]))))">For TPV submissions -Protocols Age Category must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eResponse.23 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eResponse">
      <sch:let name="nemsisElements" value="nem:eResponse.23" />
      <sch:assert id="Rule_2816" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eResponse.23) or nem:eResponse.23 = '' or (not(nem:eResponse.23 = ('2223001', '2223003', '2223005', '2223007')))) and (nem:eResponse.23 and nem:eResponse.23 != ''))">For TPV submissions -Response Mode to Scene must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eResponse.24 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eResponse">
      <sch:let name="nemsisElements" value="nem:eResponse.24" />
      <sch:assert id="Rule_2817" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eResponse.24) or nem:eResponse.24 = '' or count(nem:eResponse.24[text() = ('2224015', '2224019', '2224001', '2224003', '2224005', '2224023', '2224021', '2224017', '2224007', '2224009', '2224011', '2224013')]) = 0) and (nem:eResponse.24 and nem:eResponse.24 != '')) or ((not(nem:eResponse.24[@NV]) or (not(nem:eResponse.24[@NV=('7701003', '7701001')]))) and (nem:eResponse.24[@NV]))))">For TPV submissions - Additional Response Mode Descriptors must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eScene.04 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eScene/nem:eScene.ResponderGroup">
      <sch:let name="nemsisElements" value="nem:eScene.04" />
      <sch:assert id="Rule_2818" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eScene.04) or nem:eScene.04 = '' or (not(nem:eScene.04 = ('2704001', '2704003', '2704005', '2704007', '2704009', '2704011', '2704013', '2704015', '2704017', '2704019')) and not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eScene.04'][nem:eCustomResults.01 = ('it2704.001')]))) and (nem:eScene.04 and nem:eScene.04 != ''))">For TPV submissions - Type of Other Service at Scene must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eSituation.03 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation/nem:eSituation.PatientComplaintGroup">
      <sch:let name="nemsisElements" value="nem:eSituation.03" />
      <sch:assert id="Rule_2819" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eSituation.03) or nem:eSituation.03 = '' or (not(nem:eSituation.03 = ('2803001', '2803003', '2803005')))) and (nem:eSituation.03 and nem:eSituation.03 != '')) or ((not(nem:eSituation.03[@NV]) or (not(nem:eSituation.03[@NV=('7701001', '7701003', '7701005')]))) and (nem:eSituation.03[@NV]))))">For TPV submissions - Compliant Type must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eSituation.20 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:eSituation.20" />
      <sch:assert id="Rule_2820" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eSituation.20) or nem:eSituation.20 = '' or (not(nem:eSituation.20 = ('2820001', '2820003', '2820005', '2820007', '2820009', '2820011', '2820013', '2820015', '2820017', '2820019', '2820021', '2820025', '2820023', '2820027', '2820029', '2820031')))) and (nem:eSituation.20 and nem:eSituation.20 != '')) or ((not(nem:eSituation.20[@NV]) or (not(nem:eSituation.20[@NV=('7701001', '7701003')]))) and (nem:eSituation.20[@NV]))))">For TPV submissions - Reason for Interfacility Transfer/Medical Transport must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eVitals.28 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup/nem:eVitals.PainScaleGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.28" />
      <sch:assert id="Rule_2821" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(nem:eVitals.28) or nem:eVitals.28 = '' or (not(nem:eVitals.28 = ('3328001', '3328003', '3328005', '3328007')))) and (nem:eVitals.28 and nem:eVitals.28 != '')) or ((not(nem:eVitals.28[@NV]) or (not(nem:eVitals.28[@NV=('7701003', '7701001', '7701005')]))) and (nem:eVitals.28[@NV]))))">For TPV submissions - Pain Scale Type must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itAirway.006 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
      <sch:let name="nemsisElements" value="nem:itAirway.006" />
      <sch:assert id="Rule_2822" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.006'][nem:eCustomResults.01 = ('itAirway.006.100', 'itAirway.006.101')])) and (../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.006'] and ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.006'][nem:eCustomResults.01 != '']))">For TPV submissions - Breath Sounds-Right must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itAirway.008 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
      <sch:let name="nemsisElements" value="nem:itAirway.008" />
      <sch:assert id="Rule_2823" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.008'][nem:eCustomResults.01 = ('itAirway.008.100', 'itAirway.008.101')])) and (../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.008'] and ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.008'][nem:eCustomResults.01 != '']))">For TPV submissions - Chest Rise - Right must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itAirway.007 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
      <sch:let name="nemsisElements" value="nem:itAirway.007" />
      <sch:assert id="Rule_2824" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.007'][nem:eCustomResults.01 = ('itAirway.007.100', 'itAirway.007.101')])) and (../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.007'] and ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.007'][nem:eCustomResults.01 != '']))">For TPV submissions - Chest Rise-Left must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itAirway.010 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
      <sch:let name="nemsisElements" value="nem:itAirway.010" />
      <sch:assert id="Rule_2825" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.010'][nem:eCustomResults.01 = ('itAirway.010.100', 'itAirway.010.101')])) and (../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.010'] and ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.010'][nem:eCustomResults.01 != '']))">For TPV submissions - Gastric Sounds must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itAirway.011 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup/nem:eAirway.ConfirmationGroup">
      <sch:let name="nemsisElements" value="nem:itAirway.011" />
      <sch:assert id="Rule_2826" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.011'][nem:eCustomResults.01 = ('itAirway.011.100', 'itAirway.011.101')])) and (../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.011'] and ../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.011'][nem:eCustomResults.01 != '']))">For TPV submissions - Tube Misting must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>ePatient.22 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:ePatient">
      <sch:let name="nemsisElements" value="nem:ePatient.22" />
      <sch:assert id="Rule_2828" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'ePatient.22'][nem:eCustomResults.01 = ('itPatient.028.103', 'itPatient.028.104')])) and (nem:ePatient.22 and nem:ePatient.22 != '')) or ((not(nem:ePatient.22[@NV]) or (not(nem:ePatient.22[@NV=('7701003')]))) and (nem:ePatient.22[@NV]))))">For TPV submissions - Alternate Home Residence must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itProcedures.045 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eProcedures/nem:eProcedures.ProcedureGroup">
      <sch:let name="nemsisElements" value="nem:itProcedures.045" />
      <sch:assert id="Rule_2829" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.045'][nem:eCustomResults.01 = ('itProcedures.045.101', 'itProcedures.045.100')])) and (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.045'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.045'][nem:eCustomResults.01 != '']))">For TPV submissions - Circulation Prior to Procedure must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itProcedures.046 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eProcedures/nem:eProcedures.ProcedureGroup">
      <sch:let name="nemsisElements" value="nem:itProcedures.046" />
      <sch:assert id="Rule_2830" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.046'][nem:eCustomResults.01 = ('itProcedures.046.101', 'itProcedures.046.100')])) and (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.046'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.046'][nem:eCustomResults.01 != '']))">For TPV submissions - Sensation Prior to Procedure must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itProcedures.047 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eProcedures/nem:eProcedures.ProcedureGroup">
      <sch:let name="nemsisElements" value="nem:itProcedures.047" />
      <sch:assert id="Rule_2831" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.047'][nem:eCustomResults.01 = ('itProcedures.047.100', 'itProcedures.047.101')])) and (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.047'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.047'][nem:eCustomResults.01 != '']))">For TPV submissions - Motor Prior to Procedure must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itProcedures.048 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eProcedures/nem:eProcedures.ProcedureGroup">
      <sch:let name="nemsisElements" value="nem:itProcedures.048" />
      <sch:assert id="Rule_2832" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.048'][nem:eCustomResults.01 = ('itProcedures.048.100', 'itProcedures.048.101')])) and (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.048'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.048'][nem:eCustomResults.01 != '']))">For TPV submissions - Circulation After Procedure must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itProcedures.049 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eProcedures/nem:eProcedures.ProcedureGroup">
      <sch:let name="nemsisElements" value="nem:itProcedures.049" />
      <sch:assert id="Rule_2833" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.049'][nem:eCustomResults.01 = ('itProcedures.049.100', 'itProcedures.049.101')])) and (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.049'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.049'][nem:eCustomResults.01 != '']))">For TPV submissions - Sensation After Procedure must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itProcedures.050 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eProcedures/nem:eProcedures.ProcedureGroup">
      <sch:let name="nemsisElements" value="nem:itProcedures.050" />
      <sch:assert id="Rule_2834" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.050'][nem:eCustomResults.01 = ('itProcedures.050.100', 'itProcedures.050.101')])) and (../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.050'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itProcedures.050'][nem:eCustomResults.01 != '']))">For TPV submissions - Motor After Procedure must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itSituation.040 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:itSituation.040" />
      <sch:assert id="Rule_2835" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.040'][nem:eCustomResults.01 = ('itSituation.040.100', 'itSituation.040.101', 'itSituation.040.102')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.040'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.040'][nem:eCustomResults.01 != '']))">For TPV submissions - COWS - Gooseflesh Skin must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itSituation.030 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:itSituation.030" />
      <sch:assert id="Rule_2836" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.030'][nem:eCustomResults.01 = ('itSituation.030.100', 'itSituation.030.101', 'itSituation.030.102', 'itSituation.030.103')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.030'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.030'][nem:eCustomResults.01 != '']))">For TPV submissions - COWS-Resting Pulse Rate (BPM)  must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itSituation.039 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:itSituation.039" />
      <sch:assert id="Rule_2837" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.039'][nem:eCustomResults.01 = ('itSituation.039.100', 'itSituation.039.101', 'itSituation.039.102', 'itSituation.039.103')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.039'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.039'][nem:eCustomResults.01 != '']))">For TPV submissions - COWS - Anxiety or Irritability must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itSituation.038 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:itSituation.038" />
      <sch:assert id="Rule_2838" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.038'][nem:eCustomResults.01 = ('itSituation.038.100', 'itSituation.038.101', 'itSituation.038.102', 'itSituation.038.103')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.038'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.038'][nem:eCustomResults.01 != '']))">For TPV submissions - COWS - Yawning observation during assessment must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itSituation.031 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:itSituation.031" />
      <sch:assert id="Rule_2839" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.031'][nem:eCustomResults.01 = ('itSituation.031.101', 'itSituation.031.102', 'itSituation.031.103', 'itSituation.031.104', 'itSituation.031.100')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.031'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.031'][nem:eCustomResults.01 != '']))">For TPV submissions - COWS-Sweating must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itSituation.037 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:itSituation.037" />
      <sch:assert id="Rule_2840" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.037'][nem:eCustomResults.01 = ('itSituation.037.100', 'itSituation.037.101', 'itSituation.037.102', 'itSituation.037.103')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.037'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.037'][nem:eCustomResults.01 != '']))">For TPV submissions - COWS - Tremor observation of outstretched hands assessment must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itSituation.036 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:itSituation.036" />
      <sch:assert id="Rule_2841" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.036'][nem:eCustomResults.01 = ('itSituation.036.100', 'itSituation.036.101', 'itSituation.036.102', 'itSituation.036.103', 'itSituation.036.104')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.036'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.036'][nem:eCustomResults.01 != '']))">For TPV submissions - COWS - GI Upset must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itSituation.032 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:itSituation.032" />
      <sch:assert id="Rule_2842" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.032'][nem:eCustomResults.01 = ('itSituation.032.100', 'itSituation.032.101', 'itSituation.032.102', 'itSituation.032.103')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.032'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.032'][nem:eCustomResults.01 != '']))">For TPV submissions - COWS-Restless observation during assessment must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itSituation.035 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:itSituation.035" />
      <sch:assert id="Rule_2843" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.035'][nem:eCustomResults.01 = ('itSituation.035.100', 'itSituation.035.101', 'itSituation.035.102', 'itSituation.035.103')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.035'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.035'][nem:eCustomResults.01 != '']))">For TPV submissions - COWS - Runny Nose or Tearing must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itSituation.034 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:itSituation.034" />
      <sch:assert id="Rule_2844" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.034'][nem:eCustomResults.01 = ('itSituation.034.100', 'itSituation.034.101', 'itSituation.034.102', 'itSituation.034.103')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.034'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.034'][nem:eCustomResults.01 != '']))">For TPV submissions - COWS - Bone or Joint Aches must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itSituation.033 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:itSituation.033" />
      <sch:assert id="Rule_2845" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.033'][nem:eCustomResults.01 = ('itSituation.033.100', 'itSituation.033.101', 'itSituation.033.102', 'itSituation.033.103')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.033'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.033'][nem:eCustomResults.01 != '']))">For TPV submissions - COWS-Pupil Size must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eMedications.03 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eMedications/nem:eMedications.MedicationGroup">
      <sch:let name="nemsisElements" value="nem:eMedications.03" />
      <sch:assert id="Rule_2847" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((../../nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50088' and ../../nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50176' and nem:eMedications.03 = '1010607') and (../../nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != 'S37-50383' or ../../nem:eResponse/nem:eResponse.14 != 'RA131') and (../../nem:eResponse/nem:eResponse.AgencyGroup/nem:eResponse.01 != '432' or ../../nem:eResponse/nem:eResponse.14 != '123'))">Agency or Unit is not authorized to administer Buprenorphine / Naloxone (Suboxone) - unselect this medication to unflag</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itSituation.030 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:itSituation.030" />
      <sch:assert id="Rule_2849" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '1010607')]) &gt; 0 and (not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.030']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.030'][nem:eCustomResults.01 = '']))">Complete the COWS - Resting Pulse Rate (BPM)  for this Buprenorphine  Administration</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itSituation.032 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:itSituation.032" />
      <sch:assert id="Rule_2851" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '1010607')]) &gt; 0 and (not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.032']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.032'][nem:eCustomResults.01 = '']))">Complete COWS - Restless observation during assessment for this Buprenorphine  Administration</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itSituation.033 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:itSituation.033" />
      <sch:assert id="Rule_2853" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '1010607')]) &gt; 0 and (not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.033']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.033'][nem:eCustomResults.01 = '']))">Complete the COWS - Pupil Size for this Buprenorphine  Administration</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itSituation.034 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:itSituation.034" />
      <sch:assert id="Rule_2854" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '1010607')]) &gt; 0 and (not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.034']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.034'][nem:eCustomResults.01 = '']))">Complete the COWS - Bone or Joint Aches  for this Buprenorphine  Administration</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itSituation.035 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:itSituation.035" />
      <sch:assert id="Rule_2855" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '1010607')]) &gt; 0 and (not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.035']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.035'][nem:eCustomResults.01 = '']))">Complete the COWS - Runny Nose or Tearing for this Buprenorphine  Administration</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itSituation.036 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:itSituation.036" />
      <sch:assert id="Rule_2856" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '1010607')]) &gt; 0 and (not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.036']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.036'][nem:eCustomResults.01 = '']))">Complete theCOWS - GI Upset
 for this Buprenorphine  Administration</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itSituation.037 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:itSituation.037" />
      <sch:assert id="Rule_2857" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '1010607')]) &gt; 0 and (not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.037']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.037'][nem:eCustomResults.01 = '']))">Complete the COWS - Tremor observation of outstretched hands for this Buprenorphine  Administration</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itSituation.038 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:itSituation.038" />
      <sch:assert id="Rule_2858" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '1010607')]) &gt; 0 and (not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.038']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.038'][nem:eCustomResults.01 = '']))">Complete the COWS - Yawning observation during assessment for this Buprenorphine  Administration</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itSituation.039 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:itSituation.039" />
      <sch:assert id="Rule_2859" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '1010607')]) &gt; 0 and (not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.039']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.039'][nem:eCustomResults.01 = '']))">Complete the COWS - Anxiety or Irritability for this Buprenorphine  Administration</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itSituation.040 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:itSituation.040" />
      <sch:assert id="Rule_2860" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '1010607')]) &gt; 0 and (not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.040']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.040'][nem:eCustomResults.01 = '']))">Complete the COWS - Gooseflesh Skin for this Buprenorphine  Administration</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itSituation.031 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation">
      <sch:let name="nemsisElements" value="nem:itSituation.031" />
      <sch:assert id="Rule_2861" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '1010607')]) &gt; 0 and (not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.031']) or ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.031'][nem:eCustomResults.01 = '']))">Complete the COWS - Sweating  for this Buprenorphine  Administration</sch:assert>
    </sch:rule>
  </sch:pattern>
  <sch:pattern>
    <sch:title>eVitals.18 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eVitals/nem:eVitals.VitalGroup">
      <sch:let name="nemsisElements" value="nem:eVitals.18" />
      <sch:assert id="Rule_2866" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((count(../nem:eVitals.VitalGroup[((nem:eVitals.18 and nem:eVitals.18 != ''))]) &lt; 1 and count(../nem:eVitals.VitalGroup[((../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.018'] and ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itVitals.018'][nem:eCustomResults.01 != '']))]) &lt; 1 and count(../nem:eVitals.VitalGroup[((nem:eVitals.18[@NV]))]) &lt; 1 and count(../nem:eVitals.VitalGroup[((nem:eVitals.18[@PN]))]) &lt; 1 and ../../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../../nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2024-02-09T00:00:00-06:00') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005') and ../../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229005', '4229007', '4229011', '4229013') and ../../nem:eResponse/nem:eResponse.ServiceGroup/nem:eResponse.05 = ('2205001') and nem:eVitals.02 != '9923003') and (../../nem:eSituation/nem:eSituation.11 = ('R41.82', 'G40.909', 'R53.1') or ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.088'][nem:eCustomResults.01 = 'itExam.088.100']))">At least one Blood Glucose Level is required</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>ePatient.15 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:ePatient/nem:ePatient.AgeGroup">
      <sch:let name="nemsisElements" value="nem:ePatient.15" />
      <sch:assert id="Rule_2877" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:ePatient.15 != '' and number(nem:ePatient.15) &gt; 120) and (nem:ePatient.15 and nem:ePatient.15 != ''))">PT age cannot be greater than 120 years. </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>ePatient.06 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:ePatient">
      <sch:let name="nemsisElements" value="nem:ePatient.06" />
      <sch:assert id="Rule_2878" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:ePatient.06[@PN] and nem:ePatient.06[@PN = '8801023']) and (nem:ePatient.09 and nem:ePatient.09 != ''))">Pt City cannot be NV when Zip Code is entered</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itSituation.042 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eSituation/nem:itSituation.ClinicalOpiateWithdrawalGroup">
      <sch:let name="nemsisElements" value="nem:itSituation.042" />
      <sch:assert id="Rule_2890" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../../nem:eMedications/nem:eMedications.MedicationGroup[(nem:eMedications.03 = '1010607')]) &gt; 0 and (not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.042']) or ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itSituation.042'][nem:eCustomResults.01 = '']) and ../../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../../nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2024-05-04T00:00:00-06:00'))">Complete the Date/Time COWS Score Recorded for this Buprenorphine Administration</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eScene.ResponderGroup related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eScene">
      <sch:let name="nemsisElements" value="nem:eScene.ResponderGroup" />
      <sch:assert id="Rule_2908" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(../nem:eArrest/nem:eArrest.02 != '3002015' and (count(../nem:eArrest/nem:eArrest.03[text() = ('3003001', '3003003', '3003005')]) != 0) and count(nem:eScene.ResponderGroup[((nem:eScene.03 and nem:eScene.03 != '') and nem:eScene.24 = ('9923003'))]) = 0 and ../nem:eArrest/nem:eArrest.22 = ('3022007', '3022011', '3022009'))">You must document the Other EMS or Public Safety Agency at Scene that was first to defibrillate the patient.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eScene.ResponderGroup related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eScene">
      <sch:let name="nemsisElements" value="nem:eScene.ResponderGroup" />
      <sch:assert id="Rule_2909" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(../nem:eArrest/nem:eArrest.02 != '3002015' and (count(../nem:eArrest/nem:eArrest.03[text() = ('3003001', '3003003', '3003005')]) != 0) and count(nem:eScene.ResponderGroup[((nem:eScene.03 and nem:eScene.03 != '') and nem:eScene.24 = ('9923003'))]) = 0 and ../nem:eArrest/nem:eArrest.21 = ('3021007', '3021011', '3021009'))">You must document the Other EMS or Public Safety Agency at Scene that first applied the AED.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eScene.ResponderGroup related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eScene">
      <sch:let name="nemsisElements" value="nem:eScene.ResponderGroup" />
      <sch:assert id="Rule_2910" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(../nem:eArrest/nem:eArrest.02 != '3002015' and (count(../nem:eArrest/nem:eArrest.03[text() = ('3003001', '3003003', '3003005')]) != 0) and count(nem:eScene.ResponderGroup[((nem:eScene.03 and nem:eScene.03 != '') and nem:eScene.24 = ('9923003'))]) = 0 and ../nem:eArrest/nem:eArrest.20 = ('3020007', '3020011', '3020009'))">You must document the Other EMS or Public Safety Agency at Scene that was first to provide CPR.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eDisposition.30 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
      <sch:let name="nemsisElements" value="nem:eDisposition.30" />
      <sch:assert id="Rule_2912" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eDisposition.29 = '4229007' and ../../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../../nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2024-06-19T00:00:00-06:00')) and (((not(nem:eDisposition.30) or nem:eDisposition.30 = '')) or (((not(nem:eDisposition.30) or nem:eDisposition.30 = '' or (not(nem:eDisposition.30 = ('4230003', '4230001', '4230007', '4230009'))))) and ((not(../nem:eDisposition.19) or ../nem:eDisposition.19 = '' or (not(../nem:eDisposition.19 = ('4219007', '4219009')))) or (not(../nem:eDisposition.19) or ../nem:eDisposition.19 = '')))) and ((nem:eDisposition.30[@NV] and nem:eDisposition.30[@NV=('7701001', '7701003')]) or (not(nem:eDisposition.30[@NV]))))">This Unit's Transport Disp can only be select values when Crew Disp = Assumed Primary Care from Another EMS Crew.  No Transport allowed when Final Acuity = Black</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eScene.02 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eScene/nem:eScene.ResponderGroup">
			<sch:let name="nemsisElements" value="nem:eScene.02" />
			<sch:assert id="Rule_2957" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eScene.02) or nem:eScene.02 = '' or (not(nem:eScene.02 = ('Advantage Ambulance, Inc. - 351','AirCare Ambulance - 309','All Town Ambulance - 235','Alpine Fire Protection District - 523','American Medical Response (AMR) - 530','Barona Fire Department - 503','Bonita/Sunnyside Fire Protection District - 545','BORSTAR - 600','Brougham Ambulance','Camp Pendleton Fire - 701','Campo Reservation Fire Protection District - 332','Care Medical Transportation, Inc - 568','Carlsbad Fire Department - 550','Chula Vista Fire Department - 760','Coronado Fire Department - 535','Customs and Border Protection-OFO San Diego - 650','Del Mar Fire Department - 558','El Cajon Fire Department - 554','Encinitas Fire Department - 555','Escondido Fire Department - 586','Express Ambulance - 314','Falck Mobile Health Corp. (SD City Op Area) - 221','Federal Fire - 594','Imperial Beach Fire Department - 552','Journey Ambulance - 367','La Jolla Reservation - 360','La Mesa Fire Department - 524','Lakeside Fire Protection District - 528','Lemon Grove Fire Department - 564','LIFEwest - 330','Maxcare Ambulance - 321','Mercy Air - 584','Mercy Medical Transportation - 572','Mesa Grande Reservation - 361','Miramar Fire Department - 718','NASSCO Fire Department - 610','National City Fire Department - 720','NMRTC Camp Pendleton Ambulance Services - 380','North County Fire Protection District - 541','Oceanside Fire Department - 540','Other Agency Not Listed - Enter Agency Name','Pala Reservation Fire Department - 703','Pauma Reservation Fire - 313','Poway Fire Department - 551','Premier Ambulance (240)','Rancho Santa Fe Fire Protection District - 547','REACH Air - 762','Responsive Medical Services - 234','Rincon Fire Department -724','San Diego Ambulance Services - 370','San Diego County Fire Authority - 726','San Diego Fire and Rescue - 506','San Marcos Fire Department - 571','San Miguel Fire - 516','San Pasqual Reservation Fire Department - 349','Santa Ysabel Fire Department - 347','Santee Fire Department - 529','Solana Beach Fire Department - 561','Sycuan Fire Department - 508','Symons Ambulance/Symbiosis - 320','Valley Center Fire Protection District - 582','Viejas Reservation Fire Department - 702','Vista Fire Department - 542','Intertribal Ambulance Services','Advantage Ambulance','AirCare Ambulance','Alpine Fire Protection District','American Medical Response','Barona Fire Department','Bonita/Sunnyside Fire Protection District','Camp Pendleton Fire','Campo Reservation Fire Protection District','Care Medical Transportation','Carlsbad Fire Department','Chula Vista Fire Department','Coronado Fire Department','Del Mar Fire Department','El Cajon Fire Department','Encinitas Fire Department','Escondido Fire Department','Express Ambulance','Falck Mobile Health Corp.','Federal Fire','Imperial Beach Fire Department','Journey Ambulance','La Jolla Reservation Fire','La Mesa Fire Department','Lakeside Fire Protection District','Lemon Grove Fire Department','Maxcare Ambulance','Mercy Air','Mercy Medical Transportation','Mesa Grande Reservation','Miramar Fire Department','NASSCO Fire Department','National City Fire Department','North County Fire Protection District','Oceanside Fire Department','Pala Reservation Fire Department','Pauma Reservation Fire','Poway Fire Department','Premier Ambulance','Rancho Santa Fe Fire Protection District','REACH Air','Responsive Medical Services','Rincon Fire Department','San Diego Ambulance Services','San Diego County Fire','San Diego Fire-Rescue','San Marcos Fire Department','San Miguel Fire &amp; Rescue','San Pasqual Reservation Fire Department','Santa Ysabel Fire Department','Santee Fire Department','Solana Beach Fire Department','Sycuan Fire Department','Symbiosis','Valley Center Fire Protection District','Viejas Reservation Fire Department','Vista Fire Department')))) and (nem:eScene.02 and nem:eScene.02 != ''))">For TPV submissions - Other EMS or Public Safety Agency name must be completed with a LEMSIS value</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>itExam.088 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eExam">
      <sch:let name="nemsisElements" value="nem:itExam.088" />
      <sch:assert id="Rule_2963" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.088'][nem:eCustomResults.01 = ('itExam.088.101', 'itExam.088.100')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.088'] and ../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itExam.088'][nem:eCustomResults.01 != '']) and  ../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2024-08-24T00:00:00'))">For TPV submissions - Possible Stroke/TIA must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>itDisposition.041 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eDisposition">
      <sch:let name="nemsisElements" value="nem:itDisposition.041" />
      <sch:assert id="Rule_2964" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.041'][nem:eCustomResults.01 = ('itDisposition.041.101', 'itDisposition.041.100')])) and (../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.041']) and ../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2024-08-24T00:00:00'))">For TPV submissions - Possible STEMI must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eArrest.01 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eArrest">
			<sch:let name="nemsisElements" value="nem:eArrest.01" />
			<sch:assert id="Rule_2965" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eArrest.01) or nem:eArrest.01 = '') and (not(nem:eArrest.01[@NV])) and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001','4228003','4228005','4228007') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001','4229003','4229007','4229011','4229013') and ../nem:eScene/nem:eScene.07 != '9923003' and (../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2024-08-24T00:00:00') or (not(../nem:eTimes/nem:eTimes.03) or ../nem:eTimes/nem:eTimes.03 = '')))">Please complete the Cardiac Arrest field.</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>eArrest.01 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.01" />
      <sch:assert id="Rule_2966" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2024-08-24T00:00:00')) and (((not(nem:eArrest.01) or nem:eArrest.01 = '' or (not(nem:eArrest.01 = ('3001001', '3001005', '3001003')))) and (nem:eArrest.01 and nem:eArrest.01 != '')) or ((not(nem:eArrest.01[@NV]) or (not(nem:eArrest.01[@NV=('7701001', '7701003')]))) and (nem:eArrest.01[@NV]))))">For TPV submissions - Cardiac Arrest must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eProtocols.01 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eProtocols/nem:eProtocols.ProtocolGroup">
      <sch:let name="nemsisElements" value="nem:eProtocols.01" />
      <sch:assert id="Rule_2967" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eProtocols.01) or nem:eProtocols.01 = '' or (not(nem:eProtocols.01 = ('9914165', '9914109', '9914005', '9914111', '9914113', '9914085', '9914117', '9914145', '9914011', '9914079', '9914023', '9914067', '9914091', '9914159', '9914135', '9914065', '9914223', '9914207', '9914191', '9914071', '9914047', '9914197', '9914063', '9914189', '9914075', '9914201', '9914219')) and not(../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eProtocols.01'][nem:eCustomResults.01 = ('it9914.112', 'it9914.104', 'it9914.108', 'it9914.115', 'it9914.114', 'it9914.120', 'it9914.346')]))) and (nem:eProtocols.01 and nem:eProtocols.01 != '') and ../../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../../nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2024-08-27T00:00:00'))">For TPV submissions - Protocol Used  must be complete with a LEMSIS value/code.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eProtocols.02 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eProtocols/nem:eProtocols.ProtocolGroup">
      <sch:let name="nemsisElements" value="nem:eProtocols.02" />
      <sch:assert id="Rule_2968" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eProtocols.02) or nem:eProtocols.02 = '') and (nem:eProtocols.01 = ('9914109', '9914005', '9914111', '9914113', '9914085', '9914117', '9914145', '9914011', '9914079', '9914023', '9914067', '9914091', '9914159', '9914135', '9914065', '9914223', '9914207', '9914191', '9914071', '9914047', '9914197', '9914063', '9914189', '9914075', '9914201', '9914219') or ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eProtocols.01'][nem:eCustomResults.01 = ('it9914.112', 'it9914.104', 'it9914.108', 'it9914.115', 'it9914.114', 'it9914.120', 'it9914.346')]) and ../../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../../nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2024-08-27T00:00:00'))">Protocol Age Category Not Documented</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <!---->
  <sch:pattern>
    <sch:title>eScene.ResponderGroup related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eScene">
      <sch:let name="nemsisElements" value="nem:eScene.ResponderGroup" />
      <sch:assert id="Rule_2974" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(../nem:eArrest/nem:eArrest.02 != '3002015' and (count(../nem:eArrest/nem:eArrest.03[text() = ('3003001', '3003003', '3003005')]) != 0) and count(nem:eScene.ResponderGroup[(nem:eScene.24 = ('9923003'))]) &gt; 1 and ../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2024-10-01T00:00:00'))">Only document "Yes" for the First Other Agency at Scene to Provide Patient Care.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eScene.ResponderGroup related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eScene">
      <sch:let name="nemsisElements" value="nem:eScene.ResponderGroup" />
      <sch:assert id="Rule_2975" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(../nem:eArrest/nem:eArrest.02 != '3002015' and (count(../nem:eArrest/nem:eArrest.03[text() = ('3003001', '3003003', '3003005')]) != 0) and count(nem:eScene.ResponderGroup[((nem:eScene.03 and nem:eScene.03 != ''))]) &gt; 0 and count(nem:eScene.ResponderGroup[(nem:eScene.24 = ('9923003'))]) = 0 and ../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2024-10-01T00:00:00'))">If First Responder provided care, document "Yes" for the First Other EMS or Public Safety Agency at Scene to Provide Patient Care.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.22 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.22" />
      <sch:assert id="Rule_2981" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eArrest.02 != '3002015' and (not(nem:eArrest.22) or nem:eArrest.22 = '') and ../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2024-10-01T00:00:00')) and ((count(nem:eArrest.03[text() = ('3003001')]) != 0) or nem:eArrest.07 = ('3007005') or count(../nem:eProcedures/nem:eProcedures.ProcedureGroup[(nem:eProcedures.03 = ('426220008') and (not(nem:eProcedures.03[@PN])))]) &gt; 0))">CARES requires a value in Who Defibrillated the Patient when Resuscitation Attempted by EMS is "Attempted Defibrillation."</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.12 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.12" />
      <sch:assert id="Rule_2982" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eArrest.12) or nem:eArrest.12 = '') and nem:eArrest.02 != '3002015' and (count(nem:eArrest.03[text() = ('3003001', '3003003', '3003005')]) != 0) and ../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2024-10-01T00:00:00'))">You must document a value for Any Return of Spontaneous Circulation on CARES cases. Not values, pertinent negative and nil are not accepted.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.12 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.12" />
      <sch:assert id="Rule_2983" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(nem:eArrest.02 != '3002015' and (count(nem:eArrest.03[text() = ('3003001', '3003003', '3003005')]) != 0) and count(nem:eArrest.12[text() = '3012001']) != 0 and (count(nem:eArrest.12[text() = ('3012003', '3012005', '3012007')]) != 0) and ../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2024-10-01T00:00:00'))">In cases of ROSC, do not document "No" for Any Return of Spontaneous Circulation.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>eArrest.03 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:eArrest">
      <sch:let name="nemsisElements" value="nem:eArrest.03" />
      <sch:assert id="Rule_2984" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(nem:eArrest.02 != '3002015' and (count(nem:eArrest.03[text() = ('3003001', '3003003', '3003005')]) != 0) and (count(nem:eArrest.03[text() = ('3003007', '3003009', '3003011')]) != 0) and ../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2024-10-01T00:00:00'))">Do not combine both Resuscitation Attempted and Not Attempted options.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>ePatient.13 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:ePatient">
      <sch:let name="nemsisElements" value="nem:ePatient.13" />
      <sch:assert id="Rule_2985" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(../nem:eArrest/nem:eArrest.02 != '3002015' and (count(../nem:eArrest/nem:eArrest.03[text() = ('3003001', '3003003', '3003005')]) != 0) and (not(nem:ePatient.13) or nem:ePatient.13 = '') and ../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2024-10-01T00:00:00'))">CARES requires Patient Gender.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>ePatient.13 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:ePatient">
      <sch:let name="nemsisElements" value="nem:ePatient.13" />
      <sch:assert id="Rule_2986" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:ePatient.13) or nem:ePatient.13 = '') and (not(nem:ePatient.13[@NV])) and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = ('4227001') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001', '4228003', '4228005', '4228007') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001', '4229003', '4229007', '4229011', '4229013') and ../nem:eScene/nem:eScene.07 = '9923001' and ../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2024-10-01T00:00:00'))">Gender is a required field.  </sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>ePatient.02 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:ePatient/nem:ePatient.PatientNameGroup">
      <sch:let name="nemsisElements" value="nem:ePatient.02" />
      <sch:assert id="Rule_2992" role="[WARNING]" diagnostics="nemsisDiagnostic" test="not((../../nem:eArrest/nem:eArrest.02 != '3002015' and (count(../../nem:eArrest/nem:eArrest.03[text() = ('3003001', '3003003', '3003005')]) != 0) and ../../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../../nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2024-11-19T00:00:00')) and ((nem:ePatient.02[@PN]) or (nem:ePatient.02[@NV])))">Patient Last Name was documented with a NV or PN. The record will import in CARES with a generic last name "Doe".
</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>ePatient.03 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:ePatient/nem:ePatient.PatientNameGroup">
      <sch:let name="nemsisElements" value="nem:ePatient.03" />
      <sch:assert id="Rule_2993" role="[WARNING]" diagnostics="nemsisDiagnostic" test="not((../../nem:eArrest/nem:eArrest.02 != '3002015' and (count(../../nem:eArrest/nem:eArrest.03[text() = ('3003001', '3003003', '3003005')]) != 0) and ../../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../../nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2024-11-19T00:00:00')) and ((nem:ePatient.03[@PN]) or (nem:ePatient.03[@NV])))">Patient First Name was documented with a NV or PN. The record will import in CARES with a generic first name "John/Jane".

</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>ePatient.02 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:ePatient/nem:ePatient.PatientNameGroup">
      <sch:let name="nemsisElements" value="nem:ePatient.02" />
      <sch:assert id="Rule_2994" role="[WARNING]" diagnostics="nemsisDiagnostic" test="not(../../nem:eArrest/nem:eArrest.02 != '3002015' and (count(../../nem:eArrest/nem:eArrest.03[text() = ('3003001', '3003003', '3003005')]) != 0) and (not(nem:ePatient.02) or nem:ePatient.02 = '') and (not(nem:ePatient.02[@NV])) and (not(nem:ePatient.02[@PN])) and ../../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../../nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2024-11-19T00:00:00'))">Patient Last Name was not documented. The record will import in CARES with the generic last name "Doe".</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
    <sch:title>ePatient.03 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport/nem:ePatient/nem:ePatient.PatientNameGroup">
      <sch:let name="nemsisElements" value="nem:ePatient.03" />
      <sch:assert id="Rule_2995" role="[WARNING]" diagnostics="nemsisDiagnostic" test="not(../../nem:eArrest/nem:eArrest.02 != '3002015' and (count(../../nem:eArrest/nem:eArrest.03[text() = ('3003001', '3003003', '3003005')]) != 0) and (not(nem:ePatient.03) or nem:ePatient.03 = '') and (not(nem:ePatient.03[@NV])) and (not(nem:ePatient.03[@PN])) and ../../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../../nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2024-11-19T00:00:00'))">Patient First Name was not documented. The record will import in CARES with the generic first name "John/Jane".</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eArrest.11 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eArrest">
			<sch:let name="nemsisElements" value="nem:eArrest.11" />
			<sch:assert id="Rule_3007" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(nem:eArrest.02 != '3002015' and (count(nem:eArrest.03[text() = ('3003001','3003003','3003005')]) != 0) and (not(nem:eArrest.11) or nem:eArrest.11 = '') and ../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2025-01-08T00:00:00'))">CARES requires a value in First Arrest Rhythm when resuscitation is attempted.
</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <sch:pattern>
    <sch:title>itDisposition.089 related rule.</sch:title>
    <sch:rule context="nem:PatientCareReport">
      <sch:let name="nemsisElements" value="nem:itDisposition.089" />
      <sch:assert id="Rule_3020" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eDisposition/nem:eDisposition.21 = ('4221013','4221007','4221021','4221025') or nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eDisposition.21'][nem:eCustomResults.01 = ('it4221.119')]) and (not(nem:eDisposition/nem:eDisposition.DestinationGroup/nem:eDisposition.01) or nem:eDisposition/nem:eDisposition.DestinationGroup/nem:eDisposition.01 = '') and (not(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.089']) or nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itDisposition.089'][nem:eCustomResults.01 = '']) and nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2025-01-30T00:00:00'))">Please enter the Sub Acute Facility name</sch:assert>
    </sch:rule>
  </sch:pattern>
  <!---->
  <sch:pattern>
		<sch:title>eInjury.03 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eInjury">
			<sch:let name="nemsisElements" value="nem:eInjury.03" />
			<sch:assert id="Rule_3057" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((../nem:eSituation/nem:eSituation.02 = '9922005' and ../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2025-05-08T00:00:00')) and (((not(nem:eInjury.03) or nem:eInjury.03 = '' or count(nem:eInjury.03[text() = ('2903023','2903001','2903005','2903003','2903041','2903015','2903017','2903035','2903009','2903021','2903013','2903039','2903019','2903033')]) + ../count(nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eInjury.03'][nem:eCustomResults.01 = ('it2903.112','it2903.109','it2903.122','it2903.111','it2903.118')]) = 0) and (nem:eInjury.03 and nem:eInjury.03 != '')) or ((not(nem:eInjury.03[@NV]) or (not(nem:eInjury.03[@NV=('7701001','7701003')]))) and (nem:eInjury.03[@NV]))))">For TPV submissions - Trauma Center Criteria must be complete with a LEMSIS value/code.</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
	<sch:pattern>
		<sch:title>eDisposition.01 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.DestinationGroup">
			<sch:let name="nemsisElements" value="nem:eDisposition.01" />
			<sch:assert id="Rule_3059" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((../nem:eDisposition.21 = ('4221003','4221005') or ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eDisposition.21'][nem:eCustomResults.01 = ('it4221.110')]) and (not(nem:eDisposition.01) or nem:eDisposition.01 = '')   and ../../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../../nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2025-05-22T00:00:00') and ../nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.30 = ('4230001','4230003'))">Document the name of the receiving facility.  </sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
	<sch:pattern>
		<sch:title>eSituation.20 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eSituation">
			<sch:let name="nemsisElements" value="nem:eSituation.20" />
			<sch:assert id="Rule_3502" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eSituation.20) or nem:eSituation.20 = '') and (not(nem:eSituation.20[@NV])) and ../nem:eResponse/nem:eResponse.ServiceGroup/nem:eResponse.05 = ('2205005','2205015','2205017','2205019','2205007') and (../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2026-03-18T00:00:00') or (not(../nem:eTimes/nem:eTimes.03) or ../nem:eTimes/nem:eTimes.03 = '')))">Reason for IFT/Medical Transport is required when Type of Service Requested = "...Transfer" or "Routine Medical Transport"</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
	<sch:pattern>
		<sch:title>eAirway.ConfirmationGroup related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup">
			<sch:let name="nemsisElements" value="nem:eAirway.ConfirmationGroup" />
			<sch:assert id="Rule_3511" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((count(nem:eAirway.ConfirmationGroup/nem:*[@* or string-length(normalize-space(.)) &gt; 0]) = 0) and count(../../nem:eProcedures/nem:eProcedures.ProcedureGroup[(nem:eProcedures.03 = ('232674004','232685002','360111004','405640005','398142004','713535007') or ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eProcedures.03'][nem:eCustomResults.01 = ('itSNOMED.001')]) and nem:eProcedures.06 = '9923003']) &gt; 0 and count(nem:eAirway.ConfirmationGroup[../../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'itAirway.016'][nem:eCustomResults.01 != 'itAirway.016.101']]) &lt; 1 and ../../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../../nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2026-05-01T00:00:00'))">Document the airway confirmations when an ALS airway is placed.</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
	<sch:pattern>
		<sch:title>eAirway.09 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eAirway/nem:eAirway.AirwayGroup">
			<sch:let name="nemsisElements" value="nem:eAirway.09" />
			<sch:assert id="Rule_3512" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not(count(../../nem:eProcedures/nem:eProcedures.ProcedureGroup[(nem:eProcedures.03 = ('360111004','232674004','232685002','405640005','713535007','398142004') or ../../nem:eCustomResults/nem:eCustomResults.ResultsGroup[nem:eCustomResults.02 = 'eProcedures.03'][nem:eCustomResults.01 = ('itSNOMED.001')]) and nem:eProcedures.06 = '9923001' and nem:eProcedures.02 = '9923001']) &gt; 0 and (not(nem:eAirway.09) or nem:eAirway.09 = '') and ../../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../../nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2026-05-01T00:00:00'))">Please enter the Suspected Reason for Failed Airway Management</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
	<sch:pattern>
		<sch:title>eSituation.02 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eSituation">
			<sch:let name="nemsisElements" value="nem:eSituation.02" />
			<sch:assert id="Rule_3515" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((not(nem:eSituation.02) or nem:eSituation.02 = '') and (not(nem:eSituation.02[@NV])) and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = '4227001' and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001','4228003','4228005','4228007') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001','4229003','4229007','4229011','4229013') and ../nem:eScene/nem:eScene.07 != '9923003')">Please complete the Possible Injury field.</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
	<sch:pattern>
		<sch:title>eSituation.02 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eSituation">
			<sch:let name="nemsisElements" value="nem:eSituation.02" />
			<sch:assert id="Rule_3516" role="[WARNING]" diagnostics="nemsisDiagnostic" test="not(nem:eSituation.02 != '9922005' and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.27 = '4227001' and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.28 = ('4228001','4228003','4228005','4228007') and ../nem:eDisposition/nem:eDisposition.IncidentDispositionGroup/nem:eDisposition.29 = ('4229001','4229003','4229007','4229011','4229013') and ../nem:eScene/nem:eScene.07 != '9923003' and nem:eSituation.11 = ('T30.0','I46.8','T14.90','T75.4'))">Possible Injury should be "Yes" when an impression is injury-related.</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
	<sch:pattern>
		<sch:title>eDisposition.28 related rule.</sch:title>
		<sch:rule context="nem:PatientCareReport/nem:eDisposition/nem:eDisposition.IncidentDispositionGroup">
			<sch:let name="nemsisElements" value="nem:eDisposition.28" />
			<sch:assert id="Rule_3529" role="[ERROR]" diagnostics="nemsisDiagnostic" test="not((nem:eDisposition.27 = '4227001' and ../../nem:eTimes/nem:eTimes.03 != '' and xs:dateTime(../../nem:eTimes/nem:eTimes.03) &gt; xs:dateTime('2026-06-01T00:00:00')) and ((not(nem:eDisposition.28) or nem:eDisposition.28 = '') or (not(nem:eDisposition.28) or nem:eDisposition.28 = '' or (not(nem:eDisposition.28 = ('4228001','4228003','4228005','4228007'))))) and ((nem:eDisposition.28[@NV] and nem:eDisposition.28[@NV=('7701001','7701003')]) or (not(nem:eDisposition.28[@NV]))))">Document This Unit's Patient Evaluation/Care (Support Services is NOT a valid option for Patient Contact)</sch:assert>
		</sch:rule>
	</sch:pattern>
	<!---->
  <!-- DIAGNOSTICS -->
  <sch:diagnostics>
    <?DSDL_INCLUDE_START includes/diagnostic_nemsisDiagnostic.xml?>
    <sch:diagnostic id="nemsisDiagnostic" xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <!-- This is the NEMSIS national diagnostic. It must exist in every NEMSIS Schematron document, 
       and it should be referenced by every assert and report. It provides nationally-
       standardized, structured data to communicate which data elements are of interest in a 
       failed assert or successful report. -->
      <nemsisDiagnostic xmlns="http://www.nemsis.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <!-- Elements that uniquely identify the record where the problem happened. -->
        <record>
          <xsl:copy-of select="ancestor-or-self::*:StateDataSet/*:sState/*:sState.01" />
          <xsl:copy-of select="ancestor-or-self::*:DemographicReport/*:dAgency/(*:dAgency.01 | *:dAgency.02 | *:dAgency.04)" />
          <xsl:copy-of select="ancestor-or-self::*:Header/*:DemographicGroup/*" />
          <xsl:copy-of select="ancestor-or-self::*:PatientCareReport/*:eRecord/*:eRecord.01" />
          <xsl:if test="ancestor-or-self::*[@UUID]">
            <UUID>
              <xsl:value-of select="ancestor-or-self::*[@UUID][1]/@UUID" />
            </UUID>
          </xsl:if>
        </record>
        <!-- Elements that the user may want to revisit to resolve the problem, along with their values. -->
        <elements>
          <xsl:for-each select="$nemsisElements">
            <xsl:element name="element">
              <xsl:attribute name="location">
                <xsl:apply-templates select="." mode="schematron-get-full-path" />
              </xsl:attribute>
              <xsl:for-each select="@*">
                <xsl:attribute name="{name()}">
                  <xsl:value-of select="." />
                </xsl:attribute>
              </xsl:for-each>
              <xsl:if test="not(*)">
                <xsl:value-of select="." />
              </xsl:if>
            </xsl:element>
          </xsl:for-each>
        </elements>
        <!-- Elements that were missing, that the user may want to visit to resolve the problem. -->
        <elementsMissing>
          <xsl:variable name="default_context" select="." />
          <xsl:for-each select="tokenize($nemsisElementsMissing, ' ')">
            <xsl:variable name="parent" select="$nemsisElementsMissingContext[contains(local-name(), substring-before(current(), '.'))][1]" />
            <element>
              <xsl:attribute name="parentLocation">
                <xsl:choose>
                  <xsl:when test="$parent">
                    <xsl:apply-templates select="$parent" mode="schematron-get-full-path" />
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:apply-templates select="$default_context" mode="schematron-get-full-path" />
                  </xsl:otherwise>
                </xsl:choose>
              </xsl:attribute>
              <xsl:attribute name="name">
                <xsl:value-of select="." />
              </xsl:attribute>
            </element>
          </xsl:for-each>
        </elementsMissing>
      </nemsisDiagnostic>
    </sch:diagnostic>
    <?DSDL_INCLUDE_END includes/diagnostic_nemsisDiagnostic.xml?>
  </sch:diagnostics>
</sch:schema>