<xs:element name="ExitRHYID" type="hmis:string32"><xs:annotation><xs:documentation xml:lang="en">Reference to the ExitRHY' unique ID</xs:documentation></xs:annotation></xs:element>
<xs:element name="ExitID" 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 June 2017 HMIS Data Dictionary v1.2, Section 5.7.
Asserts
Test
XPath default namespace
Annotation
if (hmis:ProjectCompletionStatus/text()='3') then boolean(hmis:EarlyExitReason) else
(if (not(hmis:ProjectCompletionStatus/text()='3')) then (not(boolean(hmis:EarlyExitReason)))
else false())
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())
if (hmis:CounselingReceived/text()='1') then boolean(hmis:SessionCountAtExit) else
(if (not(hmis:CounselingReceived/text()='1')) then (not(boolean(hmis:SessionCountAtExit)))
else false())
if (not(hmis:CounselingReceived/text()='1')) then (not(boolean(hmis:IndividualCounseling)))
else true()
if (not(hmis:CounselingReceived/text()='1')) then (not(boolean(hmis:FamilyCounseling)))
else true()
if (not(hmis:CounselingReceived/text()='1')) then (not(boolean(hmis:GroupCounseling)))
else true()
Source
<xs:complexType name="exitRHY"><xs:sequence><xs:element name="ExitRHYID" type="hmis:string32"><xs:annotation><xs:documentation xml:lang="en">Reference to the ExitRHY' unique ID</xs:documentation></xs:annotation></xs:element><xs:element name="ExitID" type="hmis:string32"><xs:annotation><xs:documentation xml:lang="en">Key reference to the Enrollment</xs:documentation></xs:annotation></xs:element><xs:element name="ProjectCompletionStatus" type="hmis:projectCompletionStatus"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section R17.1.</xs:documentation></xs:annotation></xs:element><xs:element name="EarlyExitReason" type="hmis:earlyExitReason" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section R17.A.</xs:documentation></xs:annotation></xs:element><xs:element name="ExchangeForSex" type="hmis:noYesDoesntKnowRefused"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section R15.1.</xs:documentation></xs:annotation></xs:element><xs:element name="ExchangeForSexPastThreeMonths" type="hmis:noYesDoesntKnowRefused" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section R15.A</xs:documentation></xs:annotation></xs:element><xs:element name="CountOfExchangeForSex" type="hmis:countOfExchangeForSex" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section R15.B.</xs:documentation></xs:annotation></xs:element><xs:element name="AskedOrForcedToExchangeForSex" type="hmis:askedOrForcedToExchangeForSex" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section R15.C.</xs:documentation></xs:annotation></xs:element><xs:element name="AskedOrForcedToExchangeForSexPastThreeMonths" type="hmis:noYesDoesntKnowRefused" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section R15.D.</xs:documentation></xs:annotation></xs:element><xs:element name="WorkPlaceViolenceThreats" type="hmis:noYesDoesntKnowRefused"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section R16.1.</xs:documentation></xs:annotation></xs:element><xs:element name="WorkplacePromiseDifference" type="hmis:noYesDoesntKnowRefused" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section R16.2.</xs:documentation></xs:annotation></xs:element><xs:element name="CoercedToContinueWork" type="hmis:noYesDoesntKnowRefused" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section R16.A.</xs:documentation></xs:annotation></xs:element><xs:element name="LaborExploitPastThreeMonths" type="hmis:noYesDoesntKnowRefused" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section R16.B.</xs:documentation></xs:annotation></xs:element><xs:element name="CounselingReceived" type="hmis:noYes"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section R18.1.</xs:documentation></xs:annotation></xs:element><xs:element name="IndividualCounseling" type="hmis:noYes" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section R18.A.</xs:documentation></xs:annotation></xs:element><xs:element name="FamilyCounseling" type="hmis:noYes" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section R18.A.</xs:documentation></xs:annotation></xs:element><xs:element name="GroupCounseling" type="hmis:noYes" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section R18.A.</xs:documentation></xs:annotation></xs:element><xs:element name="SessionCountAtExit" type="xs:unsignedInt" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section R18.B.</xs:documentation></xs:annotation></xs:element><xs:element name="SessionsInPlan" type="xs:unsignedInt"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section R18.2.</xs:documentation></xs:annotation></xs:element><xs:element name="PostExitCounselingPlan" type="hmis:noYes"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section R18.3.</xs:documentation></xs:annotation></xs:element><xs:element name="DestinationSafeClient" type="hmis:noYesDoesntKnowRefused"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section R19.1.</xs:documentation></xs:annotation></xs:element><xs:element name="DestinationSafeWorker" type="hmis:noYesWorkerDoesntKnow"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section R19.2.</xs:documentation></xs:annotation></xs:element><xs:element name="PosAdultConnections" type="hmis:noYesWorkerDoesntKnow"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section R19.3.</xs:documentation></xs:annotation></xs:element><xs:element name="PosPeerConnections" type="hmis:noYesWorkerDoesntKnow"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section R19.4.</xs:documentation></xs:annotation></xs:element><xs:element name="PosCommunityConnections" type="hmis:noYesWorkerDoesntKnow"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section R19.5.</xs:documentation></xs:annotation></xs:element></xs:sequence><xs:attributeGroup ref="hmis:baseMetaData"/><!--Testing if ProjectCompletionStatus is 3, before allowing use of EarlyExitReason--><xs:assert test="if (hmis:ProjectCompletionStatus/text()='3') then boolean(hmis:EarlyExitReason) else (if (not(hmis:ProjectCompletionStatus/text()='3')) then (not(boolean(hmis:EarlyExitReason))) else false())"/><!--Testing if WorkPlaceViolenceThreats or WorkplacePromiseDifference is 1, before allowing use of CoercedToContinueWork--><xs:assert test="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())"/><!--Testing if WorkPlaceViolenceThreats or WorkplacePromiseDifference is 1, before allowing use of LaborExploitPastThreeMonths--><xs:assert test="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())"/><!--Testing if ExchangeForSex is 1, before allowing use of ExchangeForSexPastThreeMonths--><xs:assert test="if (hmis:ExchangeForSex/text()='1') then boolean(hmis:ExchangeForSexPastThreeMonths) else (if (not(hmis:ExchangeForSex/text()='1')) then (not(boolean(hmis:ExchangeForSexPastThreeMonths))) else false())"/><!--Testing if ExchangeForSex is 1, before allowing use of CountOfExchangeForSex--><xs:assert test="if (hmis:ExchangeForSex/text()='1') then boolean(hmis:CountOfExchangeForSex) else (if (not(hmis:ExchangeForSex/text()='1')) then (not(boolean(hmis:CountOfExchangeForSex))) else false())"/><!--Testing if ExchangeForSex is 1, before allowing use of AskedOrForcedToExchangeForSex--><xs:assert test="if (hmis:ExchangeForSex/text()='1') then boolean(hmis:AskedOrForcedToExchangeForSex) else (if (not(hmis:ExchangeForSex/text()='1')) then (not(boolean(hmis:AskedOrForcedToExchangeForSex))) else false())"/><!--Testing if AskedOrForcedToExchangeForSex is 1, before allowing use of AskedOrForcedToExchangeForSexPastThreeMonths--><xs:assert test="if (hmis:AskedOrForcedToExchangeForSex/text()='1') then boolean(hmis:AskedOrForcedToExchangeForSexPastThreeMonths) else (if (not(hmis:AskedOrForcedToExchangeForSex/text()='1')) then (not(boolean(hmis:AskedOrForcedToExchangeForSexPastThreeMonths))) else false())"/><!--Testing if CounselingReceived is 1, before allowing use of SessionCountAtExit--><xs:assert test="if (hmis:CounselingReceived/text()='1') then boolean(hmis:SessionCountAtExit) else (if (not(hmis:CounselingReceived/text()='1')) then (not(boolean(hmis:SessionCountAtExit))) else false())"/><!--Testing if CounselingReceived is 1, before allowing use of IndividualCounseling--><xs:assert test="if (not(hmis:CounselingReceived/text()='1')) then (not(boolean(hmis:IndividualCounseling))) else true()"/><!--Testing if CounselingReceived is 1, before allowing use of FamilyCounseling--><xs:assert test="if (not(hmis:CounselingReceived/text()='1')) then (not(boolean(hmis:FamilyCounseling))) else true()"/><!--Testing if CounselingReceived is 1, before allowing use of GroupCounseling--><xs:assert test="if (not(hmis:CounselingReceived/text()='1')) then (not(boolean(hmis:GroupCounseling))) else true()"/></xs:complexType>