<xs:element name="HealthInsuranceID" type="hmis:string32"><xs:annotation><xs:documentation xml:lang="en">Reference to the HealthInsurance'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:IndianHealthServices/text()='0') then boolean(hmis:NoIndianHealthServicesReason)
else (if (not(hmis:IndianHealthServices/text()='0')) then (not(boolean(hmis:NoIndianHealthServicesReason)))
else false())
if (hmis:OtherInsurance/text()='1') then boolean(hmis:OtherInsuranceIdentify) else
(if (not(hmis:OtherInsurance/text()='1')) then (not(boolean(hmis:OtherInsuranceIdentify)))
else false())
if (hmis:Medicaid/text()='0') then boolean(hmis:NoMedicaidReason) else (if (not(hmis:Medicaid/text()='0'))
then (not(boolean(hmis:NoMedicaidReason))) else false())
if (hmis:Medicare/text()='0') then boolean(hmis:NoMedicareReason) else (if (not(hmis:Medicare/text()='0'))
then (not(boolean(hmis:NoMedicareReason))) else false())
if (hmis:SCHIP/text()='0') then boolean(hmis:NoSCHIPReason) else (if (not(hmis:SCHIP/text()='0'))
then (not(boolean(hmis:NoSCHIPReason))) else false())
if (hmis:VAMedicalServices/text()='0') then boolean(hmis:NoVAMedReason) else (if (not(hmis:VAMedicalServices/text()='0'))
then (not(boolean(hmis:NoVAMedReason))) else false())
if (hmis:EmployerProvided/text()='0') then boolean(hmis:NoEmployerProvidedReason)
else (if (not(hmis:EmployerProvided/text()='0')) then (not(boolean(hmis:NoEmployerProvidedReason)))
else false())
if (hmis:COBRA/text()='0') then boolean(hmis:NoCOBRAReason) else (if (not(hmis:COBRA/text()='0'))
then (not(boolean(hmis:NoCOBRAReason))) else false())
if (hmis:PrivatePay/text()='0') then boolean(hmis:NoPrivatePayReason) else (if (not(hmis:PrivatePay/text()='0'))
then (not(boolean(hmis:NoPrivatePayReason))) else false())
if (hmis:StateHealthIns/text()='0') then boolean(hmis:NoStateHealthInsReason) else
(if (not(hmis:StateHealthIns/text()='0')) then (not(boolean(hmis:NoStateHealthInsReason)))
else false())
Source
<xs:complexType name="healthInsurance"><xs:sequence><xs:element name="HealthInsuranceID" type="hmis:string32"><xs:annotation><xs:documentation xml:lang="en">Reference to the HealthInsurance'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="InsuranceFromAnySource" type="hmis:noYesDoesntKnowRefused" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section 4.4.2.</xs:documentation></xs:annotation></xs:element><xs:element name="Medicaid" type="hmis:noYes" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section 4.4.3.</xs:documentation></xs:annotation></xs:element><xs:element name="NoMedicaidReason" type="reasonNotInsuredOrAssisted" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section 4.4.3A.</xs:documentation></xs:annotation></xs:element><xs:element name="Medicare" type="hmis:noYes" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section 4.4.4.</xs:documentation></xs:annotation></xs:element><xs:element name="NoMedicareReason" type="hmis:reasonNotInsuredOrAssisted" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section 4.4.4A.</xs:documentation></xs:annotation></xs:element><xs:element name="SCHIP" type="hmis:noYes" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section 4.4.5.</xs:documentation></xs:annotation></xs:element><xs:element name="NoSCHIPReason" type="hmis:reasonNotInsuredOrAssisted" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section 4.4.5A.</xs:documentation></xs:annotation></xs:element><xs:element name="VAMedicalServices" type="hmis:noYes" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section 4.4.6.</xs:documentation></xs:annotation></xs:element><xs:element name="NoVAMedReason" type="hmis:reasonNotInsuredOrAssisted" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section 4.4.6A.</xs:documentation></xs:annotation></xs:element><xs:element name="EmployerProvided" type="hmis:noYes" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section 4.4.7.</xs:documentation></xs:annotation></xs:element><xs:element name="NoEmployerProvidedReason" type="hmis:reasonNotInsuredOrAssisted" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section 4.4.7A.</xs:documentation></xs:annotation></xs:element><xs:element name="COBRA" type="hmis:noYes" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section 4.4.8.</xs:documentation></xs:annotation></xs:element><xs:element name="NoCOBRAReason" type="hmis:reasonNotInsuredOrAssisted" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section 4.4.8A.</xs:documentation></xs:annotation></xs:element><xs:element name="PrivatePay" type="hmis:noYes" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section 4.4.9.</xs:documentation></xs:annotation></xs:element><xs:element name="NoPrivatePayReason" type="hmis:reasonNotInsuredOrAssisted" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section 4.4.9A.</xs:documentation></xs:annotation></xs:element><xs:element name="StateHealthIns" type="hmis:noYes" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section 4.4.10.</xs:documentation></xs:annotation></xs:element><xs:element name="NoStateHealthInsReason" type="hmis:reasonNotInsuredOrAssisted" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section 4.4.10A.</xs:documentation></xs:annotation></xs:element><xs:element name="IndianHealthServices" type="hmis:noYes" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section 4.4.11.</xs:documentation></xs:annotation></xs:element><xs:element name="NoIndianHealthServicesReason" type="hmis:reasonNotInsuredOrAssisted" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section 4.4.11A.</xs:documentation></xs:annotation></xs:element><xs:element name="OtherInsurance" type="hmis:noYes" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section 4.4.12.</xs:documentation></xs:annotation></xs:element><xs:element name="OtherInsuranceIdentify" type="hmis:string50" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">See June 2017 HMIS Data Dictionary v1.2, Section 4.4.12A.</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 IndianHealthServices is 0, before allowing use of NoIndianHealthServicesReason--><xs:assert test="if (hmis:IndianHealthServices/text()='0') then boolean(hmis:NoIndianHealthServicesReason) else (if (not(hmis:IndianHealthServices/text()='0')) then (not(boolean(hmis:NoIndianHealthServicesReason))) else false())"/><!--Testing if OtherInsurance is 1, before allowing use of OtherInsuranceIdentify--><xs:assert test="if (hmis:OtherInsurance/text()='1') then boolean(hmis:OtherInsuranceIdentify) else (if (not(hmis:OtherInsurance/text()='1')) then (not(boolean(hmis:OtherInsuranceIdentify))) else false())"/><!--Testing if Medicaid is 0, before allowing use of NoMedicaidReason--><xs:assert test="if (hmis:Medicaid/text()='0') then boolean(hmis:NoMedicaidReason) else (if (not(hmis:Medicaid/text()='0')) then (not(boolean(hmis:NoMedicaidReason))) else false())"/><!--Testing if Medicare is 0, before allowing use of NoMedicareReason--><xs:assert test="if (hmis:Medicare/text()='0') then boolean(hmis:NoMedicareReason) else (if (not(hmis:Medicare/text()='0')) then (not(boolean(hmis:NoMedicareReason))) else false())"/><!--Testing if SCHIP is 0, before allowing use of NoSCHIPReason--><xs:assert test="if (hmis:SCHIP/text()='0') then boolean(hmis:NoSCHIPReason) else (if (not(hmis:SCHIP/text()='0')) then (not(boolean(hmis:NoSCHIPReason))) else false())"/><!--Testing if VAMedicalServices is 0, before allowing use of NoVAMedReason--><xs:assert test="if (hmis:VAMedicalServices/text()='0') then boolean(hmis:NoVAMedReason) else (if (not(hmis:VAMedicalServices/text()='0')) then (not(boolean(hmis:NoVAMedReason))) else false())"/><!--Testing if EmployerProvided is 0, before allowing use of NoVAMedReason--><xs:assert test="if (hmis:EmployerProvided/text()='0') then boolean(hmis:NoEmployerProvidedReason) else (if (not(hmis:EmployerProvided/text()='0')) then (not(boolean(hmis:NoEmployerProvidedReason))) else false())"/><!--Testing if COBRA is 0, before allowing use of NoCOBRAReason--><xs:assert test="if (hmis:COBRA/text()='0') then boolean(hmis:NoCOBRAReason) else (if (not(hmis:COBRA/text()='0')) then (not(boolean(hmis:NoCOBRAReason))) else false())"/><!--Testing if PrivatePay is 0, before allowing use of NoPrivatePayReason--><xs:assert test="if (hmis:PrivatePay/text()='0') then boolean(hmis:NoPrivatePayReason) else (if (not(hmis:PrivatePay/text()='0')) then (not(boolean(hmis:NoPrivatePayReason))) else false())"/><!--Testing if StateHealthIns is 0, before allowing use of NoStateHealthInsReason--><xs:assert test="if (hmis:StateHealthIns/text()='0') then boolean(hmis:NoStateHealthInsReason) else (if (not(hmis:StateHealthIns/text()='0')) then (not(boolean(hmis:NoStateHealthInsReason))) else false())"/></xs:complexType>