<xs:element name="PathStatusID" type="hmis:string32"><xs:annotation><xs:documentation xml:lang="en">Reference to the PathStatus' unique ID</xs:documentation></xs:annotation></xs:element>
<xs:element name="EnrollmentID" 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:ClientEnrolledInPATH/text()='0') then boolean(hmis:ReasonNotEnrolled) else
(if (not(hmis:ClientEnrolledInPATH/text()='0')) then (not(boolean(hmis:ReasonNotEnrolled)))
else false())
Source
<xs:complexType name="pathStatus"><xs:sequence><xs:element name="PathStatusID" type="hmis:string32"><xs:annotation><xs:documentation xml:lang="en">Reference to the PathStatus' unique ID</xs:documentation></xs:annotation></xs:element><xs:element name="EnrollmentID" type="hmis:string32"><xs:annotation><xs:documentation xml:lang="en">Key reference to the Enrollment</xs:documentation></xs:annotation></xs:element><xs:element name="DateOfStatus" type="xs:date"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section 4.20.1.</xs:documentation></xs:annotation></xs:element><xs:element name="ClientEnrolledInPATH" type="hmis:noYes"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section 4.20.2.</xs:documentation></xs:annotation></xs:element><xs:element name="ReasonNotEnrolled" type="hmis:reasonNotEnrolled" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section 4.20.2A.</xs:documentation></xs:annotation></xs:element></xs:sequence><xs:attributeGroup ref="hmis:baseMetaData"/><!--Testing if ClientEnrolledInPATH is 0, before allowing use of ReasonNotEnrolled--><xs:assert test="if (hmis:ClientEnrolledInPATH/text()='0') then boolean(hmis:ReasonNotEnrolled) else (if (not(hmis:ClientEnrolledInPATH/text()='0')) then (not(boolean(hmis:ReasonNotEnrolled))) else false())"/></xs:complexType>