goodFilter=<?xml version="1.0" encoding="UTF-8"?><filter:filter xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" vhimVersion="Test_Vhim_X_00"><filterId>testFilterId</filterId><clientName>testClientName</clientName><clientRequestInitiationTime>2011-01-01T10:00:00</clientRequestInitiationTime><patients><resolvedIdentifiers><assigningAuthority>AA1</assigningAuthority><assigningFacility>DNS   -605</assigningFacility><identity>testId-1</identity></resolvedIdentifiers></patients><entryPointFilter queryName="intoleranceQuery"><domainEntryPoint>IntoleranceCondition</domainEntryPoint><startDate>2006-01-01</startDate><endDate>2006-12-31</endDate><recordIdentifiers><identity>100</identity></recordIdentifiers><xpathQuery><xpath>TestXpath</xpath><parameter name="parameter1"><value>TestValue1</value></parameter><parameter name="parameter2"><value>TestValue2</value></parameter></xpathQuery></entryPointFilter><entryPointFilter queryName="IC-statusHistory"><domainEntryPoint>IntoleranceCondition</domainEntryPoint><recordIdentifiers><identity>200</identity></recordIdentifiers><xpathQuery><xpath>intoleranceConditions[status='Status']</xpath></xpathQuery></entryPointFilter><correlationFilter queryName="combinedQuery"><xpathQuery><xpath>TestCorrelationXpath</xpath><parameter name="parameter3"><value>TestValue3</value></parameter></xpathQuery></correlationFilter></filter:filter>
badFilter=<?xml version="1.0" encoding="UTF-8"?> <filter xmlns="filters1000" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" vhimVersion="Test_Vhim_X_00"> <filterId>testFilterId</filterId> <startDate>1967-08-13T01:30:45</startDate> <endDate>1967-08-13T01:30:45</endDate> <record>100</record> <record>200</record> <xpathQuery> <qualifiedXpath xpathType="Domain"> <xpath>String</xpath> <entryPoint>String</entryPoint> </qualifiedXpath> </xpathQuery> <entryPoint>String</entryPoint> </filter>
badReferencedFilter=<?xml version="1.0" encoding="UTF-8"?> <filter xmlns="filters1000" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" vhimVersion="Test_Vhim_X_00"> <subject> <vpid>Subject 1</vpid> </subject> <xpathQuery xpathType="VDM"> <referencedXpath> <filterId>bogusReferencedParameterizedXpath</filterId> <parameter name="description"> <value>Hives</value> </parameter> <parameter name="author"> <value>Author 1</value> </parameter> </referencedXpath> </xpathQuery> <entryPoint>IntoleranceCondition</entryPoint> </filter>
goodFilterUnresolvedSubject=<?xml version="1.0" encoding="UTF-8"?><filter:filter vhimVersion="Test_Vhim_X_00" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><filterId>testFilterId</filterId><patients><resolvedIdentifiers><assigningAuthority>AA1</assigningAuthority><assigningFacility>VA0</assigningFacility><identity>101111MYTEST1</identity></resolvedIdentifiers></patients><entryPointFilter queryName="intoleranceQuery"><domainEntryPoint>IntoleranceCondition</domainEntryPoint><startDate>2006-01-01</startDate><endDate>2006-12-31</endDate><recordIdentifiers><identity>100</identity></recordIdentifiers><recordIdentifiers><identity>200</identity></recordIdentifiers><xpathQuery><xpath>TestXpath</xpath><parameter name="parameter1"><value>TestValue1</value></parameter><parameter name="parameter2"><value>TestValue2</value></parameter></xpathQuery></entryPointFilter><entryPointFilter queryName="IC-statusHistory"><domainEntryPoint>IntoleranceCondition</domainEntryPoint><xpathQuery><xpath>intoleranceConditions[status='Status']</xpath></xpathQuery></entryPointFilter><correlationFilter queryName="combinedQuery"><xpathQuery><xpath>TestCorrelationXpath</xpath><parameter name="parameter3"><value>TestValue3</value></parameter></xpathQuery></correlationFilter></filter:filter>
goodFilterUnresolvedNationalId=<?xml version="1.0" encoding="UTF-8"?><filter:filter vhimVersion="Test_Vhim_X_00" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><filterId>testFilterId</filterId><patients><NationalId>TestNationalId</NationalId><excludeIdentifiers><assigningAuthority>USVHA</assigningAuthority><assigningFacility>DNS   -992</assigningFacility><identity>7204809</identity></excludeIdentifiers><excludeIdentifiers><assigningAuthority>USVHA</assigningAuthority><assigningFacility>DNS   -613</assigningFacility><identity>20077</identity></excludeIdentifiers></patients><entryPointFilter queryName="intoleranceQuery"><domainEntryPoint>IntoleranceCondition</domainEntryPoint></entryPointFilter></filter:filter>
goodFilterUnresolvedNationalId_1=<?xml version="1.0" encoding="UTF-8"?><filter:filter vhimVersion="Test_Vhim_X_00" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><filterId>testFilterId</filterId><patients><NationalId>TestNationalId</NationalId><excludeIdentifiers><assigningAuthority>USVHA</assigningAuthority></excludeIdentifiers></patients><entryPointFilter queryName="intoleranceQuery"><domainEntryPoint>IntoleranceCondition</domainEntryPoint></entryPointFilter></filter:filter>
goodFilterUnresolvedNationalId_2=<?xml version="1.0" encoding="UTF-8"?><filter:filter vhimVersion="Test_Vhim_X_00" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><filterId>testFilterId</filterId><patients><NationalId>TestNationalId</NationalId><excludeIdentifiers><assigningAuthority>USVHA</assigningAuthority><assigningFacility>DNS   -992</assigningFacility></excludeIdentifiers><excludeIdentifiers><assigningAuthority>USDOD</assigningAuthority></excludeIdentifiers></patients><entryPointFilter queryName="intoleranceQuery"><domainEntryPoint>IntoleranceCondition</domainEntryPoint></entryPointFilter></filter:filter>
badFilterPatientNotFound=<?xml version="1.0" encoding="UTF-8"?> <filter:filter vhimVersion="Test_Vhim_X_00" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <filterId>testFilterId</filterId> <subject> <unResolvedPatientId> <entityIdentifier>10111NOTFOUND</entityIdentifier> <assigningFacUniversalId>VA0</assigningFacUniversalId> </unResolvedPatientId> </subject> <entryPointFilter queryName="intoleranceQuery"> <domainEntryPoint>IntoleranceCondition</domainEntryPoint> <startDate>2006-01-01T12:34:56</startDate> <endDate>2006-12-31T23:59:59</endDate> <record>100</record> <record>200</record> <xpathQuery> <xpath>TestXpath</xpath> <parameter name="parameter1"> <value>TestValue1</value> </parameter> <parameter name="parameter2"> <value>TestValue2</value> </parameter> </xpathQuery> </entryPointFilter> <entryPointFilter queryName="IC-statusHistory"> <domainEntryPoint>IntoleranceCondition</domainEntryPoint> <xpathQuery> <xpath>intoleranceConditions[status='Status']</xpath> </xpathQuery> </entryPointFilter> <correlationFilter queryName="combinedQuery"> <xpathQuery> <xpath>TestCorrelationXpath</xpath> <parameter name="parameter3"> <value>TestValue3</value> </parameter> </xpathQuery> </correlationFilter> </filter:filter>
RDIGoodFilter=<?xml version="1.0" encoding="UTF-8"?><filter:filter vhimVersion="Vhim_4_00" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><filterId>RDI_IC_RX_SINGLE_PATIENT_FILTER</filterId><patients><resolvedIdentifiers><assigningAuthority>AA1</assigningAuthority><assigningFacility>DNS   -605</assigningFacility><identity>RDICannedFilterPrasadTest-Patient1</identity></resolvedIdentifiers></patients><entryPointFilter queryName="IC-Standardized"><domainEntryPoint>IntoleranceCondition</domainEntryPoint><xpathQuery><xpath>intoleranceConditions[((gmrAllergyAgent[(code!='') and (codingSystem = '99VHA_ERT' or contains(.,'99VA'))]) or (drugClass/code[(code!='') and (codingSystem = '99VHA_ERT' or contains(.,'99VA'))]) or (drugIngredient/code[(code!='') and (codingSystem = '99VHA_ERT' or contains(.,'99VA'))])) and (status = 'F')]</xpath></xpathQuery></entryPointFilter><entryPointFilter queryName="OMP-Standardized"><domainEntryPoint>OutpatientMedicationPromise</domainEntryPoint><xpathQuery><xpath>outpatientMedicationPromises[pharmacyRequest/orderedMedication/medicationCode[(code!='') and (codingSystem = '99VHA_ERT' or contains(.,'99VA'))]]</xpath></xpathQuery></entryPointFilter></filter:filter>
RDIBadFilter=<?xml version="1.0" encoding="UTF-8"?><filter:filter vhimVersion="Vhim_4_00" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><filterId>RDI_IC_RX_SINGLE_PATIENT_FILTER_XX</filterId><patients><resolvedIdentifiers><assigningAuthority>AA1</assigningAuthority><assigningFacility>DNS   -605</assigningFacility><identity>RDICannedFilterPrasadTest-Patient1</identity></resolvedIdentifiers></patients><entryPointFilter queryName="IC-Standardized"><domainEntryPoint>IntoleranceCondition</domainEntryPoint><xpathQuery><xpath>intoleranceConditions[((gmrAllergyAgent[(code!='') and (codingSystem = '99VHA_ERT' or contains(.,'99VA'))]) or (drugClass/code[(code!='') and (codingSystem = '99VHA_ERT' or contains(.,'99VA'))]) or (drugIngredient/code[(code!='') and (codingSystem = '99VHA_ERT' or contains(.,'99VA'))])) and (status = 'F')]</xpath></xpathQuery></entryPointFilter><entryPointFilter queryName="OMP-Standardized"><domainEntryPoint>OutpatientMedicationPromise</domainEntryPoint><xpathQuery><xpath>outpatientMedicationPromises[pharmacyRequest/orderedMedication/medicationCode[(code!='') and (codingSystem = '99VHA_ERT' or contains(.,'99VA'))]]</xpath></xpathQuery></entryPointFilter></filter:filter>
Filter100Schema=<?xml version="1.0" encoding="UTF-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:vhimversion="Vhimversion" xmlns:filter="Filter" targetNamespace="Filter"><!--imports for all non target name spaces--><!-- global definition --><xs:element name="filter" type="filter:Filter"/><!--type definitions--><xs:complexType name="Filter"><xs:sequence><xs:element name="filterId" type="filter:FilterId"/><xs:element name="patients" type="filter:patient" maxOccurs="unbounded"/><xs:element name="entryPointFilter" type="filter:EntryFilter" maxOccurs="unbounded"/><xs:element name="correlationFilter" type="filter:CorrelationFilter" minOccurs="0" maxOccurs="unbounded"/><xs:element name="aggregationFilter" type="filter:CorrelationFilter" minOccurs="0" maxOccurs="unbounded"/></xs:sequence><xs:attribute name="vhimVersion" type="xs:string" use="required"/></xs:complexType><xs:complexType name="patient"><xs:choice><xs:element name="resolvedIdentifiers" type="filter:PersonIdentifier" maxOccurs="unbounded"/><xs:sequence><xs:element name="NationalId" type="xs:string"/><xs:element name="excludeIdentifiers" type="filter:ExcludeIdentifier" minOccurs="0" maxOccurs="unbounded"/></xs:sequence></xs:choice></xs:complexType><xs:complexType name="PersonIdentifier"><xs:sequence><xs:element name="assigningAuthority" type="xs:string"/><xs:element name="assigningFacility" type="xs:string"/><xs:element name="identity" type="xs:string"/></xs:sequence></xs:complexType><xs:complexType name="ExcludeIdentifier"><xs:sequence><xs:element name="assigningAuthority" type="xs:string"/><xs:choice minOccurs="0"><xs:sequence><xs:element name="assigningFacility" type="xs:string"/><xs:choice minOccurs="0"><xs:element name="identity" type="xs:string"/></xs:choice></xs:sequence></xs:choice></xs:sequence></xs:complexType><xs:complexType name="EntityIdentifier"><xs:sequence><xs:element name="identity" type="xs:string" minOccurs="0"/><xs:element name="namespaceId" type="xs:string" default="VHA" minOccurs="0"/><xs:element name="universalId" type="xs:string" minOccurs="0"/><xs:element name="universalIdType" type="xs:string" minOccurs="0"/></xs:sequence></xs:complexType><xs:complexType name="EntryFilter"><xs:sequence><xs:element name="domainEntryPoint" type="xs:string"/><xs:element name="startDate" type="filter:DateParameter" minOccurs="0"/><xs:element name="endDate" type="filter:DateParameter" minOccurs="0"/><xs:element name="recordIdentifiers" type="filter:EntityIdentifier" minOccurs="0" maxOccurs="unbounded"/><xs:element name="xpathQuery" type="filter:XpathQuery" minOccurs="0"/></xs:sequence><xs:attribute name="queryName" type="xs:ID" use="required"/></xs:complexType><xs:complexType name="CorrelationFilter"><xs:sequence><xs:element name="xpathQuery" type="filter:XpathQuery"/></xs:sequence><xs:attribute name="queryName" use="required"/></xs:complexType><xs:complexType name="XpathQuery"><xs:sequence><xs:element name="xpath" type="filter:XPath"/><xs:element name="parameter" type="filter:Parameter" minOccurs="0" maxOccurs="unbounded"/></xs:sequence></xs:complexType><xs:simpleType name="DateParameter"><xs:restriction base="xs:date"/></xs:simpleType><xs:complexType name="Parameter"><xs:all><xs:element name="value"><xs:simpleType><xs:restriction base="xs:string"/></xs:simpleType></xs:element></xs:all><xs:attribute name="name" use="required"/><xs:attribute name="type"/></xs:complexType><xs:simpleType name="XPath"><xs:restriction base="xs:string"/></xs:simpleType><xs:simpleType name="FilterId"><xs:restriction base="xs:string"/></xs:simpleType></xs:schema>
badFilterEmptyResolved_Ids=<?xml version="1.0" encoding="UTF-8"?><filter:filter vhimVersion="Test_Vhim_X_00" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><filterId>testFilterId</filterId><patients><resolvedIdentifiers><assigningAuthority> </assigningAuthority><assigningFacility>   </assigningFacility><identity></identity></resolvedIdentifiers><resolvedIdentifiers><assigningAuthority> </assigningAuthority><assigningFacility></assigningFacility><identity></identity></resolvedIdentifiers></patients><entryPointFilter queryName="intoleranceQuery"><domainEntryPoint>IntoleranceCondition</domainEntryPoint></entryPointFilter></filter:filter>
badFilterInvalidDateFormat=<?xml version="1.0" encoding="UTF-8"?><filter:filter vhimVersion="Test_Vhim_X_00" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><filterId>testFilterId</filterId><patients><resolvedIdentifiers><assigningAuthority>AA1</assigningAuthority><assigningFacility>DNS   -605</assigningFacility><identity>testId-1</identity></resolvedIdentifiers></patients><entryPointFilter queryName="intoleranceQuery"><domainEntryPoint>IntoleranceCondition</domainEntryPoint><startDate>01-01T12:34:56</startDate><endDate>2006-12-31</endDate><recordIdentifiers><identity>100</identity></recordIdentifiers><xpathQuery><xpath>TestXpath</xpath><parameter name="parameter1"><value>TestValue1</value></parameter><parameter name="parameter2"><value>TestValue2</value></parameter></xpathQuery></entryPointFilter><entryPointFilter queryName="IC-statusHistory"><domainEntryPoint>IntoleranceCondition</domainEntryPoint><recordIdentifiers><identity>200</identity></recordIdentifiers><xpathQuery><xpath>intoleranceConditions[status='Status']</xpath></xpathQuery></entryPointFilter><correlationFilter queryName="combinedQuery"><xpathQuery><xpath>TestCorrelationXpath</xpath><parameter name="parameter3"><value>TestValue3</value></parameter></xpathQuery></correlationFilter></filter:filter>
chdrAlgyFilter=<?xml version="1.0" encoding="UTF-8"?><filter:filter vhimVersion="Vhim_4_00" xmlns:filter="Filter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><filterId>CHDR_ALLERGY_SINGLE_PATIENT_FILTER</filterId><patients><NationalId>1012121844</NationalId><excludeIdentifiers><assigningAuthority>USDOD</assigningAuthority><assigningFacility>200CH</assigningFacility></excludeIdentifiers><excludeIdentifiers><assigningAuthority>USDOD</assigningAuthority><assigningFacility>200HD</assigningFacility></excludeIdentifiers></patients><entryPointFilter queryName="CHDR_RX_QUERY"><domainEntryPoint>IntoleranceCondition</domainEntryPoint></entryPointFilter></filter:filter>