<xs:element name="MedicalAssistanceID" type="hmis:string32"><xs:annotation><xs:documentation xml:lang="en">Reference to the MedicalAssistance's 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:HIVAIDSAssistance/text()='0') then boolean(hmis:NoHIVAIDSAssistanceReason)
else (if (not(hmis:HIVAIDSAssistance/text()='0')) then (not(boolean(hmis:NoHIVAIDSAssistanceReason)))
else false())
if (hmis:ADAP/text()='0') then boolean(hmis:NoADAPReason) else (if (not(hmis:ADAP/text()='0'))
then (not(boolean(hmis:NoADAPReason))) else false())
Source
<xs:complexType name="medicalAssistance"><xs:sequence><xs:element name="MedicalAssistanceID" type="hmis:string32"><xs:annotation><xs:documentation xml:lang="en">Reference to the MedicalAssistance's 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="HIVAIDSAssistance" type="hmis:noYesDoesntKnowRefused"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section 4.39.2.</xs:documentation></xs:annotation></xs:element><xs:element name="NoHIVAIDSAssistanceReason" type="hmis:reasonNotInsuredOrAssisted" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section 4.39.2A.</xs:documentation></xs:annotation></xs:element><xs:element name="ADAP" type="hmis:noYesDoesntKnowRefused"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section 4.39.3.</xs:documentation></xs:annotation></xs:element><xs:element name="NoADAPReason" type="hmis:reasonNotInsuredOrAssisted" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section 4.39.3B.</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 HIVAIDSAssistance is 0, before allowing use of NoHIVAIDSAssistanceReason--><xs:assert test="if (hmis:HIVAIDSAssistance/text()='0') then boolean(hmis:NoHIVAIDSAssistanceReason) else (if (not(hmis:HIVAIDSAssistance/text()='0')) then (not(boolean(hmis:NoHIVAIDSAssistanceReason))) else false())"/><!--Testing if ADAP is 0, before allowing use of NoADAPReason--><xs:assert test="if (hmis:ADAP/text()='0') then boolean(hmis:NoADAPReason) else (if (not(hmis:ADAP/text()='0')) then (not(boolean(hmis:NoADAPReason))) else false())"/></xs:complexType>