<xs:element name="ExportID" type="hmis:string32"><xs:annotation><xs:documentation xml:lang="en">Reference to the Export's unique ID</xs:documentation></xs:annotation></xs:element>
<xs:element name="ExportDate" type="xs:dateTime"><xs:annotation><xs:documentation xml:lang="en">Time the export was performed.</xs:documentation></xs:annotation></xs:element>
<xs:element name="ExportPeriod" type="hmis:dateRangeCapped"><xs:annotation><xs:documentation xml:lang="en">The date range bounding the data set being transmitted. Used with ExportPeriodType to clarify what the date range represents.</xs:documentation></xs:annotation></xs:element>
Exported data sets with an ExportPeriodType of ‘updated’ will include all records with a dateCreated, dateUpdated, or a dateDeleted that falls between the Export.StartDate and the Export.EndDate.
enumeration
effective
Exported data sets with an ExportPeriod type of ‘effective’ will include all enrollment data, along with associated client and project descriptor data, where the informationDate (or other effective date such as Project.EntryDate, Project.ExitDate, ContactDate, etc.) falls between the Export.StartDate and the Export.EndDate.
enumeration
reportingPeriod
‘reportingPeriod’ exports include all records needed for reporting on clients and enrollments active in the export period. This will include all records in Enrollments (regardless of informationDate, dateCreated, dateUpdated, etc.), client files, and project descriptor files associated with a ProjectEntryID where: ProjectEntryDate is on or before the Export.EndDate; Project.ExitDate is null OR Project.ExitDate is on or after the Export.StartDate; ProjectID is associated with a project selected by a user for export OR the user did not choose to filter the export by Project; A CoCCode associated with the ProjectEntryID matches a CoCCode selected by a user for export OR the user did not choose to filter the export by CoCCode.
enumeration
other
The ‘other’ type of ExportPeriodType is used to identify exports in which records were selected based upon parameters mutually agreed upon by the sender and recipient of the XML data."
Source
<xs:element name="ExportPeriodType" type="hmis:exportPeriodType"><xs:annotation><xs:documentation xml:lang="en">Pick one of the types to specify the definition of export period being used in ExportPeriod.</xs:documentation></xs:annotation></xs:element>
The data contained in this file is meant to be synchronized with an existing data set.
enumeration
fullRefresh
The data contained in this file is meant to replace an existing data set for the export period.
enumeration
other
The data contained in this file were selected based upon parameters mutually agreed upon by the sender and recipient of the XML data.
Source
<xs:element name="ExportDirective" type="hmis:exportDirective"><xs:annotation><xs:documentation xml:lang="en">Select one of the ExportDirective choices to instruct the target as to how the data being transmitted should be handled.</xs:documentation></xs:annotation></xs:element>
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
See August 2016 HMIS Data Dictionary, Section 5.7.
Asserts
Test
XPath default namespace
Annotation
if (hmis:TCellCountAvailable) then boolean(hmis:DisabilityType/text()='8') else true()
if (hmis:TCellCountAvailable/text()='1') then boolean(hmis:TCellCount) else (if (not(hmis:TCellCountAvailable/text()='1'))
then (not(boolean(hmis:TCellCount))) else false())
if (hmis:TCellCount) then boolean(hmis:TCellSource) else (if (not(hmis:TCellCount))
then (not(boolean(hmis:TCellSource))) else false())
if (hmis:ViralLoadAvailable) then boolean(hmis:DisabilityType/text()='8') else true()
if (hmis:ViralLoadAvailable/text()='1') then boolean(hmis:ViralLoad) else (if (not(hmis:ViralLoadAvailable/text()='1'))
then (not(boolean(hmis:ViralLoad))) else false())
if (hmis:ViralLoad) then boolean(hmis:ViralLoadSource) else (if (not(hmis:ViralLoad))
then (not(boolean(hmis:ViralLoadSource))) else false())
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
See August 2016 HMIS Data Dictionary, Section 5.7.
Asserts
Test
XPath default namespace
Annotation
if (hmis:DomesticViolenceVictim/text()='1') then boolean(hmis:CurrentlyFleeing) else
(if (not(hmis:DomesticViolenceVictim/text()='1')) then (not(boolean(hmis:CurrentlyFleeing)))
else false())
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
See August 2016 HMIS Data Dictionary, Section 5.7.
Asserts
Test
XPath default namespace
Annotation
if (hmis:TimesHomelessPastThreeYears/text()='1' or hmis:TimesHomelessPastThreeYears/text()='2'
or hmis:TimesHomelessPastThreeYears/text()='3' or hmis:TimesHomelessPastThreeYears/text()='4')
then boolean(hmis:MonthsHomelessPastThreeYears) else (if (not(hmis:TimesHomelessPastThreeYears/text()='1'
or hmis:TimesHomelessPastThreeYears/text()='2' or hmis:TimesHomelessPastThreeYears/text()='3'
or hmis:TimesHomelessPastThreeYears/text()='4')) then (not(boolean(hmis:MonthsHomelessPastThreeYears)))
else false())
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
See August 2016 HMIS Data Dictionary, Section 5.7.
Asserts
Test
XPath default namespace
Annotation
if (hmis:Destination/text()='17') then boolean(hmis:OtherDestination) else (if (not(hmis:Destination/text()='17'))
then (not(boolean(hmis:OtherDestination))) else false())
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
See August 2016 HMIS Data Dictionary, Section 5.7.
Asserts
Test
XPath default namespace
Annotation
if (hmis:IndianHealthServices/text()='0') then boolean(hmis:NoIndianHealthServicesReason)
else (if (not(hmis:IndianHealthServices/text()='0')) then (not(boolean(hmis:NoIndianHealthServicesReason)))
else false())
if (hmis:OtherInsurance/text()='1') then boolean(hmis:OtherInsuranceIdentify) else
(if (not(hmis:OtherInsurance/text()='1')) then (not(boolean(hmis:OtherInsuranceIdentify)))
else false())
if (hmis:Medicaid/text()='0') then boolean(hmis:NoMedicaidReason) else (if (not(hmis:Medicaid/text()='0'))
then (not(boolean(hmis:NoMedicaidReason))) else false())
if (hmis:Medicare/text()='0') then boolean(hmis:NoMedicareReason) else (if (not(hmis:Medicare/text()='0'))
then (not(boolean(hmis:NoMedicareReason))) else false())
if (hmis:SCHIP/text()='0') then boolean(hmis:NoSCHIPReason) else (if (not(hmis:SCHIP/text()='0'))
then (not(boolean(hmis:NoSCHIPReason))) else false())
if (hmis:VAMedicalServices/text()='0') then boolean(hmis:NoVAMedReason) else (if (not(hmis:VAMedicalServices/text()='0'))
then (not(boolean(hmis:NoVAMedReason))) else false())
if (hmis:EmployerProvided/text()='0') then boolean(hmis:NoEmployerProvidedReason)
else (if (not(hmis:EmployerProvided/text()='0')) then (not(boolean(hmis:NoEmployerProvidedReason)))
else false())
if (hmis:COBRA/text()='0') then boolean(hmis:NoCOBRAReason) else (if (not(hmis:COBRA/text()='0'))
then (not(boolean(hmis:NoCOBRAReason))) else false())
if (hmis:PrivatePay/text()='0') then boolean(hmis:NoPrivatePayReason) else (if (not(hmis:PrivatePay/text()='0'))
then (not(boolean(hmis:NoPrivatePayReason))) else false())
if (hmis:StateHealthIns/text()='0') then boolean(hmis:NoStateHealthInsReason) else
(if (not(hmis:StateHealthIns/text()='0')) then (not(boolean(hmis:NoStateHealthInsReason)))
else false())
Source
<xs:element name="HealthInsurance" type="hmis:healthInsurance"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.4</xs:documentation></xs:annotation></xs:element>
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
See August 2016 HMIS Data Dictionary, Section 5.7.
Asserts
Test
XPath default namespace
Annotation
if (hmis:Earned/text()='1') then boolean(hmis:EarnedAmount) else (if (not(Earned/text()='1'))
then (not(boolean(hmis:EarnedAmount))) else false())
if (hmis:Unemployment/text()='1') then boolean(hmis:UnemploymentAmount) else (if (not(Unemployment/text()='1'))
then (not(boolean(hmis:UnemploymentAmount))) else false())
if (hmis:SSI/text()='1') then boolean(hmis:SSIAmount) else (if (not(SSI/text()='1'))
then (not(boolean(hmis:SSIAmount))) else false())
if (hmis:SSDI/text()='1') then boolean(hmis:SSDIAmount) else (if (not(SSDI/text()='1'))
then (not(boolean(hmis:SSDIAmount))) else false())
if (hmis:VADisabilityService/text()='1') then boolean(hmis:VADisabilityServiceAmount)
else (if (not(VADisabilityService/text()='1')) then (not(boolean(hmis:VADisabilityServiceAmount)))
else false())
if (hmis:PrivateDisability/text()='1') then boolean(hmis:PrivateDisabilityAmount)
else (if (not(PrivateDisability/text()='1')) then (not(boolean(hmis:PrivateDisabilityAmount)))
else false())
if (hmis:WorkersComp/text()='1') then boolean(hmis:WorkersCompAmount) else (if (not(WorkersComp/text()='1'))
then (not(boolean(hmis:WorkersCompAmount))) else false())
if (hmis:TANF/text()='1') then boolean(hmis:TANFAmount) else (if (not(TANF/text()='1'))
then (not(boolean(hmis:TANFAmount))) else false())
if (hmis:GA/text()='1') then boolean(hmis:GAAmount) else (if (not(GA/text()='1'))
then (not(boolean(hmis:GAAmount))) else false())
if (hmis:SocSecRetirement/text()='1') then boolean(hmis:SocSecRetirementAmount) else
(if (not(SocSecRetirement/text()='1')) then (not(boolean(hmis:SocSecRetirementAmount)))
else false())
if (hmis:Pension/text()='1') then boolean(hmis:PensionAmount) else (if (not(Pension/text()='1'))
then (not(boolean(hmis:PensionAmount))) else false())
if (hmis:ChildSupport/text()='1') then boolean(hmis:ChildSupportAmount) else (if (not(ChildSupport/text()='1'))
then (not(boolean(hmis:ChildSupportAmount))) else false())
if (hmis:Alimony/text()='1') then boolean(hmis:AlimonyAmount) else (if (not(Alimony/text()='1'))
then (not(boolean(hmis:AlimonyAmount))) else false())
if (hmis:OtherSource/text()='1') then boolean(hmis:OtherSourceAmount) else (if (not(OtherSource/text()='1'))
then (not(boolean(hmis:OtherSourceAmount))) else false())
if (hmis:OtherSource/text()='1') then boolean(hmis:OtherSourceIdentify) else (if (not(OtherSource/text()='1'))
then (not(boolean(hmis:OtherSourceIdentify))) else false())
Source
<xs:element name="IncomeAndSources" type="hmis:incomeAndSources"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2</xs:documentation></xs:annotation></xs:element>
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
See August 2016 HMIS Data Dictionary, Section 5.7.
Asserts
Test
XPath default namespace
Annotation
if (hmis:HIVAIDSAssistance/text()='0') then boolean(hmis:NoHIVAIDSAssistanceReason)
else (if (not(hmis:HIVAIDSAssistance/text()='0')) then (not(boolean(hmis:NoHIVAIDSAssistanceReason)))
else false())
Source
<xs:element name="MedicalAssistance" type="hmis:medicalAssistance"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.39</xs:documentation></xs:annotation></xs:element>
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
See August 2016 HMIS Data Dictionary, Section 5.7.
Asserts
Test
XPath default namespace
Annotation
if (hmis:ClientEnrolledInPATH/text()='0') then boolean(hmis:ReasonNotEnrolled) else
(if (not(hmis:ClientEnrolledInPATH/text()='0')) then (not(boolean(hmis:ReasonNotEnrolled)))
else false())
Source
<xs:element name="PATHStatus" type="hmis:pathStatus"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.20</xs:documentation></xs:annotation></xs:element>
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
See August 2016 HMIS Data Dictionary, Section 5.7.
Asserts
Test
XPath default namespace
Annotation
if (hmis:FYSBYouth/text()='0') then boolean(hmis:ReasonNoServices) else (if (not(hmis:FYSBYouth/text()='0'))
then (not(boolean(hmis:ReasonNoServices))) else false())
Source
<xs:element name="RHYBCPStatus" type="hmis:rhyBCPStatus"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.22</xs:documentation></xs:annotation></xs:element>
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
See August 2016 HMIS Data Dictionary, Section 5.7.
Asserts
Test
XPath default namespace
Annotation
if (not (hmis:RecordType/text() ='144' and hmis:TypeProvided/text() ='6')) then not
(boolean(hmis:OtherTypeProvided)) else boolean(hmis:OtherTypeProvided)
if (not (hmis:RecordType/text() ='144' and (hmis:TypeProvided/text() ='3' or hmis:TypeProvided/text()
='4' or hmis:TypeProvided/text() ='5'))) then not (boolean(hmis:SubTypeProvided))
else boolean(hmis:TypeProvided)
if (not (hmis:RecordType/text() ='151') and not (hmis:RecordType/text() ='152')) then
(not (boolean(hmis:FAAmount))) else boolean(hmis:FAAmount)
Source
<xs:element name="ServiceFAReferral" type="hmis:serviceFAReferral"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.14-4.16</xs:documentation></xs:annotation></xs:element>
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
If the intended record is to be deleted, this metadata allows you to both indicate the record should be deleted within the target system, as well as indicate the specific time it was deleted.
See August 2016 HMIS Data Dictionary, Section 5.7.
Asserts
Test
XPath default namespace
Annotation
if (hmis:WorkPlaceViolenceThreats/text()='1' or hmis:WorkplacePromiseDifference/text()='1')
then boolean(hmis:CoercedToContinueWork) else (if (not(hmis:WorkPlaceViolenceThreats/text()='1'
or hmis:WorkplacePromiseDifference/text()='1')) then (not(boolean(hmis:CoercedToContinueWork)))
else false())
if (hmis:WorkPlaceViolenceThreats/text()='1' or hmis:WorkplacePromiseDifference/text()='1')
then boolean(hmis:LaborExploitPastThreeMonths) else (if (not(hmis:WorkPlaceViolenceThreats/text()='1'
or hmis:WorkplacePromiseDifference/text()='1')) then (not(boolean(hmis:LaborExploitPastThreeMonths)))
else false())
if (hmis:ExchangeForSex/text()='1') then boolean(hmis:ExchangeForSexPastThreeMonths)
else (if (not(hmis:ExchangeForSex/text()='1')) then (not(boolean(hmis:ExchangeForSexPastThreeMonths)))
else false())
if (hmis:ExchangeForSex/text()='1') then boolean(hmis:CountOfExchangeForSex) else
(if (not(hmis:ExchangeForSex/text()='1')) then (not(boolean(hmis:CountOfExchangeForSex)))
else false())
if (hmis:ExchangeForSex/text()='1') then boolean(hmis:AskedOrForcedToExchangeForSex)
else (if (not(hmis:ExchangeForSex/text()='1')) then (not(boolean(hmis:AskedOrForcedToExchangeForSex)))
else false())
if (hmis:AskedOrForcedToExchangeForSex/text()='1') then boolean(hmis:AskedOrForcedToExchangeForSexPastThreeMonths)
else (if (not(hmis:AskedOrForcedToExchangeForSex/text()='1')) then (not(boolean(hmis:AskedOrForcedToExchangeForSexPastThreeMonths)))
else false())
Source
<xs:element name="EntryRHY" type="hmis:entryRHY"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.33.</xs:documentation></xs:annotation></xs:element>
every $id in hmis:Client/hmis:PersonalID satisfies (fn:count(hmis:ClientVeteranInfo[hmis:PersonalID
= $id]) le 1)
every $id in hmis:Client/hmis:PersonalID satisfies (fn:count(hmis:Enrollment[hmis:PersonalID
= $id]) ge 1)
every $id in hmis:CoC/hmis:CoCCode satisfies (fn:count(hmis:EnrollmentCoC[hmis:CoCCode
= $id]) ge 0)
every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:ConnectionWithSOAR[hmis:ProjectEntryID
= $id]) ge 0)
every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:Contact[hmis:ProjectEntryID
= $id]) ge 0)
every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:DateOfEngagement[hmis:ProjectEntryID
= $id]) le 1)
every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:Disabilities[hmis:ProjectEntryID
= $id]) ge 0)
every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:DomesticViolence[hmis:ProjectEntryID
= $id]) ge 0)
every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:Employment[hmis:ProjectEntryID
= $id]) ge 0)
every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:EnrollmentCoC[hmis:ProjectEntryID
= $id]) ge 0)
every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:EntryRHY[hmis:ProjectEntryID
= $id]) le 1)
every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:EntrySSVF[hmis:ProjectEntryID
= $id]) le 1)
every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:Exit[hmis:ProjectEntryID
= $id]) le 1)
every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:HealthInsurance[hmis:ProjectEntryID
= $id]) ge 0)
every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:HealthStatus[hmis:ProjectEntryID
= $id]) ge 0)
every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:IncomeAndSources[hmis:ProjectEntryID
= $id]) ge 0)
every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:MedicalAssistance[hmis:ProjectEntryID
= $id]) ge 0)
every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:NonCashBenefits[hmis:ProjectEntryID
= $id]) ge 0)
every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:PathStatus[hmis:ProjectEntryID
= $id]) le 1)
every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:EntryRHSP[hmis:ProjectEntryID
= $id]) le 1)
every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:ResidentialMoveInDate[hmis:ProjectEntryID
= $id]) le 1)
every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:RHYBCPStatus[hmis:ProjectEntryID
= $id]) le 1)
every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:ServiceFAReferral[hmis:ProjectEntryID
= $id]) ge 0)
every $id in hmis:Exit/hmis:ExitID satisfies (fn:count(hmis:ExitHousingAssessment[hmis:ExitID
= $id]) le 1)
every $id in hmis:Exit/hmis:ExitID satisfies (fn:count(hmis:ExitRHY[hmis:ExitID =
$id]) le 1)
every $id in hmis:Exit/hmis:ExitID satisfies (fn:count(hmis:FamilyReunification[hmis:ExitID
= $id]) le 1)
every $id in hmis:Exit/hmis:ExitID satisfies (fn:count(hmis:HousingAssessmentDisposition[hmis:ExitID
= $id]) le 1)
every $id in hmis:Organization/hmis:OrganizationID satisfies (fn:count(hmis:Project[hmis:OrganizationID
= $id]) ge 0)
every $id in hmis:Project/hmis:ProjectID satisfies (fn:count(hmis:Affiliation[hmis:ProjectID
= $id]) ge 0)
every $id in hmis:Project/hmis:ProjectID satisfies (fn:count(hmis:CoC[hmis:ProjectID
= $id]) ge 1)
every $id in hmis:Project/hmis:ProjectID satisfies (fn:count(hmis:Funder[hmis:ProjectID
= $id]) ge 1)
every $id in hmis:Enrollment/hmis:HouseholdID satisfies (fn:count(hmis:Enrollment/hmis:RelationshipToHoH[text()=
'1'][../hmis:HouseholdID = $id] ) eq 1)
Source
<xs:complexType name="export"><xs:sequence><xs:element name="ExportID" type="hmis:string32"><xs:annotation><xs:documentation xml:lang="en">Reference to the Export's unique ID</xs:documentation></xs:annotation></xs:element><xs:element name="ExportDate" type="xs:dateTime"><xs:annotation><xs:documentation xml:lang="en">Time the export was performed.</xs:documentation></xs:annotation></xs:element><xs:element name="ExportPeriod" type="hmis:dateRangeCapped"><xs:annotation><xs:documentation xml:lang="en">The date range bounding the data set being transmitted. Used with ExportPeriodType to clarify what the date range represents.</xs:documentation></xs:annotation></xs:element><xs:element name="ExportPeriodType" type="hmis:exportPeriodType"><xs:annotation><xs:documentation xml:lang="en">Pick one of the types to specify the definition of export period being used in ExportPeriod.</xs:documentation></xs:annotation></xs:element><xs:element name="ExportDirective" type="hmis:exportDirective"><xs:annotation><xs:documentation xml:lang="en">Select one of the ExportDirective choices to instruct the target as to how the data being transmitted should be handled.</xs:documentation></xs:annotation></xs:element><xs:choice maxOccurs="unbounded"><xs:element name="Affiliation" type="hmis:affiliation"/><xs:element name="Client" type="hmis:client"/><xs:element name="ConnectionWithSOAR" type="hmis:connectionWithSOAR"/><xs:element name="DateOfEngagement" type="hmis:dateOfEngagement"/><xs:element name="Disabilities" type="hmis:disabilities"/><xs:element name="DomesticViolence" type="hmis:domesticViolence"/><xs:element name="Education" type="hmis:education"/><xs:element name="Employment" type="hmis:employment"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.26</xs:documentation></xs:annotation></xs:element><xs:element name="Enrollment" type="hmis:enrollment"/><xs:element name="EnrollmentCoC" type="hmis:enrollmentCoC"/><xs:element name="Exit" type="hmis:exit"/><xs:element name="ExitHousingAssessment" type="hmis:exitHousingAssessment"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.19</xs:documentation></xs:annotation></xs:element><xs:element name="ExitRHY" type="hmis:exitRHY"/><xs:element name="Funder" type="hmis:funder"/><xs:element name="HealthInsurance" type="hmis:healthInsurance"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.4</xs:documentation></xs:annotation></xs:element><xs:element name="HealthStatus" type="hmis:healthStatus"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.27</xs:documentation></xs:annotation></xs:element><xs:element name="HousingAssessmentDisposition" type="hmis:housingAssessmentDisposition"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.18</xs:documentation></xs:annotation></xs:element><xs:element name="IncomeAndSources" type="hmis:incomeAndSources"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2</xs:documentation></xs:annotation></xs:element><xs:element name="Inventory" type="hmis:inventory"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 2.7.</xs:documentation></xs:annotation></xs:element><xs:element name="MedicalAssistance" type="hmis:medicalAssistance"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.39</xs:documentation></xs:annotation></xs:element><xs:element name="NonCashBenefits" type="hmis:nonCashBenefits"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.3</xs:documentation></xs:annotation></xs:element><xs:element name="Organization" type="hmis:organization"/><xs:element name="PATHStatus" type="hmis:pathStatus"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.20</xs:documentation></xs:annotation></xs:element><xs:element name="EntrySSVF" type="hmis:entrySSVF"/><xs:element name="Project" type="hmis:project"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 2.</xs:documentation></xs:annotation></xs:element><xs:element name="CoC" type="hmis:coc"><xs:annotation><xs:documentation xml:lang="en"/></xs:annotation></xs:element><xs:element name="ResidentialMoveInDate" type="hmis:residentialMoveInDate"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.17</xs:documentation></xs:annotation></xs:element><xs:element name="RHYBCPStatus" type="hmis:rhyBCPStatus"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.22</xs:documentation></xs:annotation></xs:element><xs:element name="ServiceFAReferral" type="hmis:serviceFAReferral"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.14-4.16</xs:documentation></xs:annotation></xs:element><xs:element name="Site" type="hmis:site"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 2.8.</xs:documentation></xs:annotation></xs:element><xs:element name="ClientVeteranInfo" type="hmis:clientVeteranInfo"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.41</xs:documentation></xs:annotation></xs:element><xs:element name="EntryRHSP" type="hmis:entryRHSP"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.40.1.</xs:documentation></xs:annotation></xs:element><xs:element name="EntryRHY" type="hmis:entryRHY"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.33.</xs:documentation></xs:annotation></xs:element></xs:choice></xs:sequence><!--Cardinality Checking--><xs:assert test="every $id in hmis:Client/hmis:PersonalID satisfies (fn:count(hmis:ClientVeteranInfo[hmis:PersonalID = $id]) le 1)"/><xs:assert test="every $id in hmis:Client/hmis:PersonalID satisfies (fn:count(hmis:Enrollment[hmis:PersonalID = $id]) ge 1)"/><xs:assert test="every $id in hmis:CoC/hmis:CoCCode satisfies (fn:count(hmis:EnrollmentCoC[hmis:CoCCode = $id]) ge 0)"/><xs:assert test="every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:ConnectionWithSOAR[hmis:ProjectEntryID = $id]) ge 0)"/><xs:assert test="every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:Contact[hmis:ProjectEntryID = $id]) ge 0)"/><xs:assert test="every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:DateOfEngagement[hmis:ProjectEntryID = $id]) le 1)"/><xs:assert test="every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:Disabilities[hmis:ProjectEntryID = $id]) ge 0)"/><xs:assert test="every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:DomesticViolence[hmis:ProjectEntryID = $id]) ge 0)"/><xs:assert test="every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:Employment[hmis:ProjectEntryID = $id]) ge 0)"/><xs:assert test="every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:EnrollmentCoC[hmis:ProjectEntryID = $id]) ge 0)"/><xs:assert test="every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:EntryRHY[hmis:ProjectEntryID = $id]) le 1)"/><xs:assert test="every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:EntrySSVF[hmis:ProjectEntryID = $id]) le 1)"/><xs:assert test="every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:Exit[hmis:ProjectEntryID = $id]) le 1)"/><xs:assert test="every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:HealthInsurance[hmis:ProjectEntryID = $id]) ge 0)"/><xs:assert test="every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:HealthStatus[hmis:ProjectEntryID = $id]) ge 0)"/><xs:assert test="every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:IncomeAndSources[hmis:ProjectEntryID = $id]) ge 0)"/><xs:assert test="every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:MedicalAssistance[hmis:ProjectEntryID = $id]) ge 0)"/><xs:assert test="every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:NonCashBenefits[hmis:ProjectEntryID = $id]) ge 0)"/><xs:assert test="every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:PathStatus[hmis:ProjectEntryID = $id]) le 1)"/><xs:assert test="every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:EntryRHSP[hmis:ProjectEntryID = $id]) le 1)"/><xs:assert test="every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:ResidentialMoveInDate[hmis:ProjectEntryID = $id]) le 1)"/><xs:assert test="every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:RHYBCPStatus[hmis:ProjectEntryID = $id]) le 1)"/><xs:assert test="every $id in hmis:Enrollment/hmis:ProjectEntryID satisfies (fn:count(hmis:ServiceFAReferral[hmis:ProjectEntryID = $id]) ge 0)"/><xs:assert test="every $id in hmis:Exit/hmis:ExitID satisfies (fn:count(hmis:ExitHousingAssessment[hmis:ExitID = $id]) le 1)"/><xs:assert test="every $id in hmis:Exit/hmis:ExitID satisfies (fn:count(hmis:ExitRHY[hmis:ExitID = $id]) le 1)"/><xs:assert test="every $id in hmis:Exit/hmis:ExitID satisfies (fn:count(hmis:FamilyReunification[hmis:ExitID = $id]) le 1)"/><xs:assert test="every $id in hmis:Exit/hmis:ExitID satisfies (fn:count(hmis:HousingAssessmentDisposition[hmis:ExitID = $id]) le 1)"/><xs:assert test="every $id in hmis:Organization/hmis:OrganizationID satisfies (fn:count(hmis:Project[hmis:OrganizationID = $id]) ge 0)"/><xs:assert test="every $id in hmis:Project/hmis:ProjectID satisfies (fn:count(hmis:Affiliation[hmis:ProjectID = $id]) ge 0)"/><xs:assert test="every $id in hmis:Project/hmis:ProjectID satisfies (fn:count(hmis:CoC[hmis:ProjectID = $id]) ge 1)"/><xs:assert test="every $id in hmis:Project/hmis:ProjectID satisfies (fn:count(hmis:Funder[hmis:ProjectID = $id]) ge 1)"/><!-- Checking that there is only one Head of Household per Household enrolled --><xs:assert test="every $id in hmis:Enrollment/hmis:HouseholdID satisfies (fn:count(hmis:Enrollment/hmis:RelationshipToHoH[text()= '1'][../hmis:HouseholdID = $id] ) eq 1)"/></xs:complexType>