Reference to the Source's unique ID. If SourceType = 1, this field may not be null and must identify the HUD CoC Code of the HMIS implementation from which data are being exported in the format of two letters, a dash, and 3 numbers. ^[a-zA-Z]{2}-[0-9]{3}$ . If SourceType !=1, this field may be null or used to specify other characteristics, as agreed upon by sender and receiver.
<xs:element name="SourceID" type="hmis:string32" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">Reference to the Source's unique ID. If SourceType = 1, this field may not be null and must identify the HUD CoC Code of the HMIS implementation from which data are being exported in the format of two letters, a dash, and 3 numbers. ^[a-zA-Z]{2}-[0-9]{3}$ . If SourceType !=1, this field may be null or used to specify other characteristics, as agreed upon by sender and receiver.</xs:documentation></xs:annotation></xs:element>
Identifies whether the source database is a continuum-operated HMIS (1), an agency-specific database (2), a data warehouse (3), or other (4). An HMIS implementation operated jointly by more than one continuum should be identified as a data warehouse.
<xs:element name="SourceType" type="hmis:sourceType"><xs:annotation><xs:documentation xml:lang="en">Identifies whether the source database is a continuum-operated HMIS (1), an agency-specific database (2), a data warehouse (3), or other (4). An HMIS implementation operated jointly by more than one continuum should be identified as a data warehouse.</xs:documentation></xs:annotation></xs:element>
If the source database is not an HMIS implementation (if SourceType != 1), this field may not be null and must identify the organization responsible for the database.
<xs:element name="SourceName" type="hmis:string50" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">If the source database is not an HMIS implementation (if SourceType != 1), this field may not be null and must identify the organization responsible for the database.</xs:documentation></xs:annotation></xs:element>
<xs:element name="SoftwareName" type="hmis:string50"><xs:annotation><xs:documentation xml:lang="en">The name of the software provider generating this XML.</xs:documentation></xs:annotation></xs:element>
Version number of the software being used by the software provider.
Diagram
Type
xs:string
Properties
content
simple
Source
<xs:element name="SoftwareVersion" type="xs:string"><xs:annotation><xs:documentation xml:lang="en">Version number of the software being used by the software provider.</xs:documentation></xs:annotation></xs:element>
<xs:element name="SourceContactEmail" type="hmis:email" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">Email address of the person to contact about this XML data.</xs:documentation></xs:annotation></xs:element>
<xs:element name="SourceContactExtension" type="hmis:extension" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">Used with SourceContactPhone to contact the person who can answer questions about this XML.</xs:documentation></xs:annotation></xs:element>
<xs:element name="SourceContactFirst" type="hmis:string50" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">First name of the person to contact about this XML data.</xs:documentation></xs:annotation></xs:element>
<xs:element name="SourceContactLast" type="hmis:string50" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">Last name of the person to contact about this XML data.</xs:documentation></xs:annotation></xs:element>
<xs:element name="SourceContactPhone" type="hmis:phoneNumber" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">Phone number of the person to contact about this XML data; used with SourceContactExtension.</xs:documentation></xs:annotation></xs:element>
An export is a set of data being transmitted for a specific purpose (see ExportType). A single XML file can have many different Exports of different types and date ranges.
if (hmis:SourceType/text()!='1') then boolean(hmis:SourceName) else true()
if (hmis:SourceType/text()='1') then boolean(hmis:SourceID) else true()
Source
<xs:complexType name="source"><xs:sequence><xs:element name="SourceID" type="hmis:string32" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">Reference to the Source's unique ID. If SourceType = 1, this field may not be null and must identify the HUD CoC Code of the HMIS implementation from which data are being exported in the format of two letters, a dash, and 3 numbers. ^[a-zA-Z]{2}-[0-9]{3}$ . If SourceType !=1, this field may be null or used to specify other characteristics, as agreed upon by sender and receiver.</xs:documentation></xs:annotation></xs:element><xs:element name="SourceType" type="hmis:sourceType"><xs:annotation><xs:documentation xml:lang="en">Identifies whether the source database is a continuum-operated HMIS (1), an agency-specific database (2), a data warehouse (3), or other (4). An HMIS implementation operated jointly by more than one continuum should be identified as a data warehouse.</xs:documentation></xs:annotation></xs:element><xs:element name="SourceName" type="hmis:string50" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">If the source database is not an HMIS implementation (if SourceType != 1), this field may not be null and must identify the organization responsible for the database.</xs:documentation></xs:annotation></xs:element><xs:element name="SoftwareName" type="hmis:string50"><xs:annotation><xs:documentation xml:lang="en">The name of the software provider generating this XML.</xs:documentation></xs:annotation></xs:element><xs:element name="SoftwareVersion" type="xs:string"><xs:annotation><xs:documentation xml:lang="en">Version number of the software being used by the software provider.</xs:documentation></xs:annotation></xs:element><xs:element name="SourceContactEmail" type="hmis:email" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">Email address of the person to contact about this XML data.</xs:documentation></xs:annotation></xs:element><xs:element name="SourceContactExtension" type="hmis:extension" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">Used with SourceContactPhone to contact the person who can answer questions about this XML.</xs:documentation></xs:annotation></xs:element><xs:element name="SourceContactFirst" type="hmis:string50" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">First name of the person to contact about this XML data.</xs:documentation></xs:annotation></xs:element><xs:element name="SourceContactLast" type="hmis:string50" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">Last name of the person to contact about this XML data.</xs:documentation></xs:annotation></xs:element><xs:element name="SourceContactPhone" type="hmis:phoneNumber" minOccurs="0"><xs:annotation><xs:documentation xml:lang="en">Phone number of the person to contact about this XML data; used with SourceContactExtension.</xs:documentation></xs:annotation></xs:element><xs:element name="Export" type="hmis:export" minOccurs="0" maxOccurs="unbounded"><xs:annotation><xs:documentation xml:lang="en">An export is a set of data being transmitted for a specific purpose (see ExportType). A single XML file can have many different Exports of different types and date ranges.</xs:documentation></xs:annotation><xs:key name="clientKey"><xs:selector xpath="hmis:Client"/><xs:field xpath="hmis:PersonalID"/></xs:key><xs:key name="cocKey"><xs:selector xpath="hmis:CoC"/><xs:field xpath="hmis:CoCCode"/></xs:key><xs:key name="enrollmentKey"><xs:selector xpath="hmis:Enrollment"/><xs:field xpath="hmis:ProjectEntryID"/></xs:key><xs:key name="exitKey"><xs:selector xpath="hmis:Exit"/><xs:field xpath="hmis:ExitID"/></xs:key><xs:key name="organizationKey"><xs:selector xpath="hmis:Organization"/><xs:field xpath="hmis:OrganizationID"/></xs:key><xs:key name="projectKey"><xs:selector xpath="hmis:Project"/><xs:field xpath="hmis:ProjectID"/></xs:key><xs:keyref name="affiliationProjectKeyRef" refer="projectKey"><xs:selector xpath="hmis:Affiliation"/><xs:field xpath="hmis:ProjectID"/></xs:keyref><xs:keyref name="affiliationResProjectKeyRef" refer="projectKey"><xs:selector xpath="hmis:Affiliation"/><xs:field xpath="hmis:ResProjectID"/></xs:keyref><xs:keyref name="enrollmentClientKeyRef" refer="clientKey"><xs:selector xpath="hmis:Enrollment"/><xs:field xpath="hmis:PersonalID"/></xs:keyref><xs:keyref name="enrollmentCoCCoCKeyRef" refer="cocKey"><xs:selector xpath="hmis:EnrollmentCoC"/><xs:field xpath="hmis:CoCCode"/></xs:keyref><xs:keyref name="enrollmentCoCEnrollmentKeyRef" refer="enrollmentKey"><xs:selector xpath="hmis:EnrollmentCoC"/><xs:field xpath="hmis:ProjectEntryID"/></xs:keyref><xs:keyref name="enrollmentContactKeyRef" refer="enrollmentKey"><xs:selector xpath="hmis:Contact"/><xs:field xpath="hmis:ProjectEntryID"/></xs:keyref><xs:keyref name="enrollmentDateOfEngagementKeyRef" refer="enrollmentKey"><xs:selector xpath="hmis:DateOfEngagement"/><xs:field xpath="hmis:ProjectEntryID"/></xs:keyref><xs:keyref name="enrollmentDisabilitiesKeyRef" refer="enrollmentKey"><xs:selector xpath="hmis:Disabilities"/><xs:field xpath="hmis:ProjectEntryID"/></xs:keyref><xs:keyref name="enrollmentDomesticViolenceKeyRef" refer="enrollmentKey"><xs:selector xpath="hmis:DomesticViolence"/><xs:field xpath="hmis:ProjectEntryID"/></xs:keyref><xs:keyref name="enrollmentEducationKeyRef" refer="enrollmentKey"><xs:selector xpath="hmis:Education"/><xs:field xpath="hmis:ProjectEntryID"/></xs:keyref><xs:keyref name="enrollmentEmploymentKeyRef" refer="enrollmentKey"><xs:selector xpath="hmis:Employment"/><xs:field xpath="hmis:ProjectEntryID"/></xs:keyref><xs:keyref name="enrollmentEnrollmentCoCKeyRef" refer="enrollmentKey"><xs:selector xpath="hmis:EnrollmentCoC"/><xs:field xpath="hmis:ProjectEntryID"/></xs:keyref><xs:keyref name="enrollmentExitKeyRef" refer="enrollmentKey"><xs:selector xpath="hmis:Exit"/><xs:field xpath="hmis:ProjectEntryID"/></xs:keyref><xs:keyref name="enrollmentFormerWardChildWelfareKeyRef" refer="enrollmentKey"><xs:selector xpath="hmis:FormerWardChildWelfare"/><xs:field xpath="hmis:ProjectEntryID"/></xs:keyref><xs:keyref name="enrollmentFormerWardJuvenileJusticeKeyRef" refer="enrollmentKey"><xs:selector xpath="hmis:FormerWardJuvenileJustice"/><xs:field xpath="hmis:ProjectEntryID"/></xs:keyref><xs:keyref name="enrollmentHealthInsuranceKeyRef" refer="enrollmentKey"><xs:selector xpath="hmis:HealthInsurance"/><xs:field xpath="hmis:ProjectEntryID"/></xs:keyref><xs:keyref name="enrollmentHealthStatusKeyRef" refer="enrollmentKey"><xs:selector xpath="hmis:HealthStatus"/><xs:field xpath="hmis:ProjectEntryID"/></xs:keyref><xs:keyref name="enrollmentIncomeAndSourcesKeyRef" refer="enrollmentKey"><xs:selector xpath="hmis:IncomeAndSources"/><xs:field xpath="hmis:ProjectEntryID"/></xs:keyref><xs:keyref name="enrollmentMedicalAssistanceKeyRef" refer="enrollmentKey"><xs:selector xpath="hmis:MedicalAssistance"/><xs:field xpath="hmis:ProjectEntryID"/></xs:keyref><xs:keyref name="enrollmentNonCashBenefitsKeyRef" refer="enrollmentKey"><xs:selector xpath="hmis:NonCashBenefits"/><xs:field xpath="hmis:ProjectEntryID"/></xs:keyref><xs:keyref name="enrollmentPATHStatusKeyRef" refer="enrollmentKey"><xs:selector xpath="hmis:PATHStatus"/><xs:field xpath="hmis:ProjectEntryID"/></xs:keyref><xs:keyref name="enrollmentEntrySSVFKeyRef" refer="enrollmentKey"><xs:selector xpath="hmis:EntrySSVF"/><xs:field xpath="hmis:ProjectEntryID"/></xs:keyref><xs:keyref name="enrollmentReferralSourceKeyRef" refer="enrollmentKey"><xs:selector xpath="hmis:ReferralSource"/><xs:field xpath="hmis:ProjectEntryID"/></xs:keyref><xs:keyref name="enrollmentResidentialMoveInDateKeyRef" refer="enrollmentKey"><xs:selector xpath="hmis:ResidentialMoveInDate"/><xs:field xpath="hmis:ProjectEntryID"/></xs:keyref><xs:keyref name="enrollmentRHYBCPStatusKeyRef" refer="enrollmentKey"><xs:selector xpath="hmis:NonCashBenefits"/><xs:field xpath="hmis:ProjectEntryID"/></xs:keyref><xs:keyref name="enrollmentServiceFAReferralKeyRef" refer="enrollmentKey"><xs:selector xpath="hmis:ServiceFAReferral"/><xs:field xpath="hmis:ProjectEntryID"/></xs:keyref><xs:keyref name="enrollmentSexualOrientationKeyRef" refer="enrollmentKey"><xs:selector xpath="hmis:SexualOrientation"/><xs:field xpath="hmis:ProjectEntryID"/></xs:keyref><xs:keyref name="enrollmentEntryRHSPKeyRef" refer="enrollmentKey"><xs:selector xpath="hmis:EntryRHSP"/><xs:field xpath="hmis:ProjectEntryID"/></xs:keyref><xs:keyref name="enrollmentEntryRHYKeyRef" refer="enrollmentKey"><xs:selector xpath="hmis:EntryRHY"/><xs:field xpath="hmis:ProjectEntryID"/></xs:keyref><xs:keyref name="exitExitHousingAssessmentKeyRef" refer="exitKey"><xs:selector xpath="hmis:ExitHousingAssessment"/><xs:field xpath="hmis:ExitID"/></xs:keyref><xs:keyref name="exitExitRHYKeyRef" refer="exitKey"><xs:selector xpath="hmis:ExitRHY"/><xs:field xpath="hmis:ExitID"/></xs:keyref><xs:keyref name="exitFamilyReunificationKeyRef" refer="exitKey"><xs:selector xpath="hmis:FamilyReunification"/><xs:field xpath="hmis:ExitID"/></xs:keyref><xs:keyref name="exitHousingAssessmentDispositionKeyRef" refer="exitKey"><xs:selector xpath="hmis:HousingAssessmentDisposition"/><xs:field xpath="hmis:ExitID"/></xs:keyref><xs:keyref name="inventoryCoCKeyRef" refer="cocKey"><xs:selector xpath="hmis:Inventory"/><xs:field xpath="hmis:CoCCode"/></xs:keyref><xs:keyref name="projectOrganizationKeyRef" refer="organizationKey"><xs:selector xpath="hmis:Project"/><xs:field xpath="hmis:OrganizationID"/></xs:keyref><xs:keyref name="cocProjectKeyRef" refer="projectKey"><xs:selector xpath="hmis:CoC"/><xs:field xpath="hmis:ProjectID"/></xs:keyref><xs:keyref name="projectEnrollmentKeyRef" refer="projectKey"><xs:selector xpath="hmis:Enrollment"/><xs:field xpath="hmis:ProjectID"/></xs:keyref><xs:keyref name="projectFunderKeyRef" refer="projectKey"><xs:selector xpath="hmis:Funder"/><xs:field xpath="hmis:ProjectID"/></xs:keyref><xs:keyref name="siteCoCKeyRef" refer="cocKey"><xs:selector xpath="hmis:Site"/><xs:field xpath="hmis:CoCCode"/></xs:keyref><xs:keyref name="clientVeteranInfoClientKeyRef" refer="clientKey"><xs:selector xpath="hmis:ClientVeteranInfo"/><xs:field xpath="hmis:PersonalID"/></xs:keyref></xs:element></xs:sequence><!--Testing if the source database is not an HMIS implementation (if SourceType <> 1), then SourceName may not be null.--><xs:assert test="if (hmis:SourceType/text()!='1') then boolean(hmis:SourceName) else true()"/><!--Testing if sourceType = 1, then SourceID may not be null --><xs:assert test="if (hmis:SourceType/text()='1') then boolean(hmis:SourceID) else true()"/></xs:complexType>