<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="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:HIVAIDSAssistance/text()='0') then boolean(hmis:NoHIVAIDSAssistanceReason)
else (if (not(hmis:HIVAIDSAssistance/text()='0')) then (not(boolean(hmis:NoHIVAIDSAssistanceReason)))
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="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="HIVAIDSAssistance" type="hmis:fiveValDKRefused"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, 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 August 2016 HMIS Data Dictionary, Section 4.39.2A.</xs:documentation></xs:annotation></xs:element><xs:element name="ADAP" type="hmis:fiveValDKRefused"><xs:annotation><xs:documentation xml:lang="en">See August 2016 HMIS Data Dictionary, 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 August 2016 HMIS Data Dictionary, 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())"/></xs:complexType>