<xs:element name="IncomeAndSourcesID" type="hmis:string32"><xs:annotation><xs:documentation xml:lang="en">Reference to the IncomeAndSources' unique ID</xs:documentation></xs:annotation></xs:element>
<xs:element name="ProjectEntryID" type="hmis:string32"><xs:annotation><xs:documentation xml:lang="en">Key reference to the Enrollment</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: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:complexType name="incomeAndSources"><xs:sequence><xs:element name="IncomeAndSourcesID" type="hmis:string32"><xs:annotation><xs:documentation xml:lang="en">Reference to the IncomeAndSources' unique ID</xs:documentation></xs:annotation></xs:element><xs:element name="ProjectEntryID" type="hmis:string32"><xs:annotation><xs:documentation xml:lang="en">Key reference to the Enrollment</xs:documentation></xs:annotation></xs:element><xs:element name="IncomeFromAnySource" type="hmis:fiveValDKRefused"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.2.</xs:documentation></xs:annotation></xs:element><xs:element name="TotalMonthlyIncome" type="hmis:money"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.18.</xs:documentation></xs:annotation></xs:element><xs:element name="Earned" type="hmis:noYesOnly"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.3.</xs:documentation></xs:annotation></xs:element><xs:element name="EarnedAmount" type="hmis:money" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.3A.</xs:documentation></xs:annotation></xs:element><xs:element name="Unemployment" type="hmis:noYesOnly"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.4.</xs:documentation></xs:annotation></xs:element><xs:element name="UnemploymentAmount" type="hmis:money" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.4B.</xs:documentation></xs:annotation></xs:element><xs:element name="SSI" type="hmis:noYesOnly"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.5.</xs:documentation></xs:annotation></xs:element><xs:element name="SSIAmount" type="hmis:money" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.5C.</xs:documentation></xs:annotation></xs:element><xs:element name="SSDI" type="hmis:noYesOnly"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.6.</xs:documentation></xs:annotation></xs:element><xs:element name="SSDIAmount" type="hmis:money" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.6D.</xs:documentation></xs:annotation></xs:element><xs:element name="VADisabilityService" type="hmis:noYesOnly"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.7.</xs:documentation></xs:annotation></xs:element><xs:element name="VADisabilityServiceAmount" type="hmis:money" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.7E.</xs:documentation></xs:annotation></xs:element><xs:element name="VADisabilityNonService" type="hmis:noYesOnly"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.8.</xs:documentation></xs:annotation></xs:element><xs:element name="VADisabilityNonServiceAmount" type="hmis:money" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.8F.</xs:documentation></xs:annotation></xs:element><xs:element name="PrivateDisability" type="hmis:noYesOnly"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.9.</xs:documentation></xs:annotation></xs:element><xs:element name="PrivateDisabilityAmount" type="hmis:money" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.9G.</xs:documentation></xs:annotation></xs:element><xs:element name="WorkersComp" type="hmis:noYesOnly"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.10.</xs:documentation></xs:annotation></xs:element><xs:element name="WorkersCompAmount" type="hmis:money" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.10H.</xs:documentation></xs:annotation></xs:element><xs:element name="TANF" type="hmis:noYesOnly"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.11.</xs:documentation></xs:annotation></xs:element><xs:element name="TANFAmount" type="hmis:money" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.11I.</xs:documentation></xs:annotation></xs:element><xs:element name="GA" type="hmis:noYesOnly"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.12.</xs:documentation></xs:annotation></xs:element><xs:element name="GAAmount" type="hmis:money" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.12J.</xs:documentation></xs:annotation></xs:element><xs:element name="SocSecRetirement" type="hmis:noYesOnly"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.13.</xs:documentation></xs:annotation></xs:element><xs:element name="SocSecRetirementAmount" type="hmis:money" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.13K.</xs:documentation></xs:annotation></xs:element><xs:element name="Pension" type="hmis:noYesOnly"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.14.</xs:documentation></xs:annotation></xs:element><xs:element name="PensionAmount" type="hmis:money" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.14L.</xs:documentation></xs:annotation></xs:element><xs:element name="ChildSupport" type="hmis:noYesOnly"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.15.</xs:documentation></xs:annotation></xs:element><xs:element name="ChildSupportAmount" type="hmis:money" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.15M.</xs:documentation></xs:annotation></xs:element><xs:element name="Alimony" type="hmis:noYesOnly"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.16.</xs:documentation></xs:annotation></xs:element><xs:element name="AlimonyAmount" type="hmis:money" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.16N.</xs:documentation></xs:annotation></xs:element><xs:element name="OtherSource" type="hmis:noYesOnly"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.17.</xs:documentation></xs:annotation></xs:element><xs:element name="OtherSourceAmount" type="hmis:money" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.17O.</xs:documentation></xs:annotation></xs:element><xs:element name="OtherSourceIdentify" type="hmis:string50" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, Section 4.2.17O.</xs:documentation></xs:annotation></xs:element></xs:sequence><xs:attribute ref="hmis:dataCollectionStage" use="required"/><xs:attribute ref="hmis:informationDate" use="required"/><xs:attributeGroup ref="hmis:baseMetaData"/><!--Testing if Earned is 1, before allowing use of EarnedAmount--><xs:assert test="if (hmis:Earned/text()='1') then boolean(hmis:EarnedAmount) else (if (not(Earned/text()='1')) then (not(boolean(hmis:EarnedAmount))) else false())"/><!--Testing if Unemployment is 1, before allowing use of UnemploymentAmount--><xs:assert test="if (hmis:Unemployment/text()='1') then boolean(hmis:UnemploymentAmount) else (if (not(Unemployment/text()='1')) then (not(boolean(hmis:UnemploymentAmount))) else false())"/><!--Testing if SSI is 1, before allowing use of SSIAmount--><xs:assert test="if (hmis:SSI/text()='1') then boolean(hmis:SSIAmount) else (if (not(SSI/text()='1')) then (not(boolean(hmis:SSIAmount))) else false())"/><!--Testing if SSDI is 1, before allowing use of SSDIAmount--><xs:assert test="if (hmis:SSDI/text()='1') then boolean(hmis:SSDIAmount) else (if (not(SSDI/text()='1')) then (not(boolean(hmis:SSDIAmount))) else false())"/><!--Testing if VADisabilityService is 1, before allowing use of VADisabilityServiceAmount--><xs:assert test="if (hmis:VADisabilityService/text()='1') then boolean(hmis:VADisabilityServiceAmount) else (if (not(VADisabilityService/text()='1')) then (not(boolean(hmis:VADisabilityServiceAmount))) else false())"/><!--Testing if PrivateDisability is 1, before allowing use of PrivateDisabilityAmount--><xs:assert test="if (hmis:PrivateDisability/text()='1') then boolean(hmis:PrivateDisabilityAmount) else (if (not(PrivateDisability/text()='1')) then (not(boolean(hmis:PrivateDisabilityAmount))) else false())"/><!--Testing if WorkersComp is 1, before allowing use of WorkersCompAmount--><xs:assert test="if (hmis:WorkersComp/text()='1') then boolean(hmis:WorkersCompAmount) else (if (not(WorkersComp/text()='1')) then (not(boolean(hmis:WorkersCompAmount))) else false())"/><!--Testing if TANF is 1, before allowing use of TANFAmount--><xs:assert test="if (hmis:TANF/text()='1') then boolean(hmis:TANFAmount) else (if (not(TANF/text()='1')) then (not(boolean(hmis:TANFAmount))) else false())"/><!--Testing if GA is 1, before allowing use of GAAmount--><xs:assert test="if (hmis:GA/text()='1') then boolean(hmis:GAAmount) else (if (not(GA/text()='1')) then (not(boolean(hmis:GAAmount))) else false())"/><!--Testing if SocSecRetirement is 1, before allowing use of SocSecRetirementAmount--><xs:assert test="if (hmis:SocSecRetirement/text()='1') then boolean(hmis:SocSecRetirementAmount) else (if (not(SocSecRetirement/text()='1')) then (not(boolean(hmis:SocSecRetirementAmount))) else false())"/><!--Testing if Pension is 1, before allowing use of PensionAmount--><xs:assert test="if (hmis:Pension/text()='1') then boolean(hmis:PensionAmount) else (if (not(Pension/text()='1')) then (not(boolean(hmis:PensionAmount))) else false())"/><!--Testing if ChildSupport is 1, before allowing use of ChildSupportAmount--><xs:assert test="if (hmis:ChildSupport/text()='1') then boolean(hmis:ChildSupportAmount) else (if (not(ChildSupport/text()='1')) then (not(boolean(hmis:ChildSupportAmount))) else false())"/><!--Testing if Alimony is 1, before allowing use of AlimonyAmount--><xs:assert test="if (hmis:Alimony/text()='1') then boolean(hmis:AlimonyAmount) else (if (not(Alimony/text()='1')) then (not(boolean(hmis:AlimonyAmount))) else false())"/><!--Testing if OtherSource is 1, before allowing use of OtherSourceAmount--><xs:assert test="if (hmis:OtherSource/text()='1') then boolean(hmis:OtherSourceAmount) else (if (not(OtherSource/text()='1')) then (not(boolean(hmis:OtherSourceAmount))) else false())"/><!--Testing if OtherSource is 1, before allowing use of OtherSourceIdentify--><xs:assert test="if (hmis:OtherSource/text()='1') then boolean(hmis:OtherSourceIdentify) else (if (not(OtherSource/text()='1')) then (not(boolean(hmis:OtherSourceIdentify))) else false())"/></xs:complexType>