<xs:element name="ProjectEntryID" type="hmis:string32"><xs:annotation><xs:documentation xml:lang="en">Reference to the Enrollment's unique ID</xs:documentation></xs:annotation></xs:element>
<xs:element name="PersonalID" type="hmis:string32"><xs:annotation><xs:documentation xml:lang="en">Key reference to the Client's ID</xs:documentation></xs:annotation></xs:element>
<xs:element name="ProjectID" type="hmis:string32"><xs:annotation><xs:documentation xml:lang="en">Key reference to the associated Project's ID</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 (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())
Source
<xs:complexType name="enrollment"><xs:sequence><xs:element name="ProjectEntryID" type="hmis:string32"><xs:annotation><xs:documentation xml:lang="en">Reference to the Enrollment's unique ID</xs:documentation></xs:annotation></xs:element><xs:element name="PersonalID" type="hmis:string32"><xs:annotation><xs:documentation xml:lang="en">Key reference to the Client's ID</xs:documentation></xs:annotation></xs:element><xs:element name="ProjectID" type="hmis:string32"><xs:annotation><xs:documentation xml:lang="en">Key reference to the associated Project's ID</xs:documentation></xs:annotation></xs:element><xs:element name="EntryDate" type="xs:date"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 3.10.</xs:documentation></xs:annotation></xs:element><xs:element name="HouseholdID" type="hmis:string32"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 3.14.</xs:documentation></xs:annotation></xs:element><xs:element name="RelationshipToHoH" type="hmis:relationshipToHoH"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 3.15.</xs:documentation></xs:annotation></xs:element><xs:element name="ResidencePrior" type="hmis:residencePrior" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 3.917.1.</xs:documentation></xs:annotation></xs:element><xs:element name="ResidencePriorLengthOfStay" type="hmis:residencePriorLengthOfStay" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 3.917.2.</xs:documentation></xs:annotation></xs:element><xs:element name="LOSUnderThreshold" type="hmis:noYesOnly" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 3.917.2A/2B.</xs:documentation></xs:annotation></xs:element><xs:element name="PreviousStreetESSH" type="hmis:noYesOnly" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 3.917.2C.</xs:documentation></xs:annotation></xs:element><xs:element name="DateToStreetESSH" type="xs:date" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 3.917.3.</xs:documentation></xs:annotation></xs:element><xs:element name="TimesHomelessPastThreeYears" type="hmis:timesHomelessPastThreeYears" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 3.917.4.</xs:documentation></xs:annotation></xs:element><xs:element name="MonthsHomelessPastThreeYears" type="hmis:monthsHomelessPastThreeYears" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 3.917.5.</xs:documentation></xs:annotation></xs:element><xs:element name="DisablingCondition" type="hmis:fiveValDKRefused"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 3.8.</xs:documentation></xs:annotation></xs:element><xs:element name="HousingStatus" type="hmis:housingStatus" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.1.</xs:documentation></xs:annotation></xs:element></xs:sequence><xs:attributeGroup ref="hmis:baseMetaData"/><!--Testing if TimesHomelessPastThreeYears is 1-4, before allowing use of MonthsHomelessPastThreeYears--><xs:assert test="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())"/></xs:complexType>