<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	xmlns:xdwc="http://tdi.texas.gov/DWCForms"
	xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
	targetNamespace="http://tdi.texas.gov/DWCForms"
>

	<!-- simpleType definitions -->

	<!-- Three digit string -->
	<xsd:simpleType name="typeNumber3">
		<xsd:restriction base="xsd:string">
			<xsd:pattern value="[0-9]{3}" />
		</xsd:restriction>
	</xsd:simpleType>

	<!-- Used for US area codes -->
	<xsd:simpleType name="typePhone3">
		<xsd:restriction base="xsd:string">
			<xsd:pattern value="[1-9][0-9]{2}" />
		</xsd:restriction>
	</xsd:simpleType>

	<!-- Used for US phone numbers -->
	<xsd:simpleType name="typePhone7">
		<xsd:restriction base="xsd:string">
			<!-- required for US phones -->
			<xsd:pattern value="[1-9][0-9]{6}" />
			<!-- used for non-US phones only -->
			<xsd:pattern value="[0-9]+" />
		</xsd:restriction>
	</xsd:simpleType>

	<!-- Used for US phone numbers Extensions -->
	<xsd:simpleType name="typePhoneExtension">
		<xsd:restriction base="xsd:string">
			<xsd:pattern value="[0-9]*" />
			<xsd:maxLength value="10" />
		</xsd:restriction>
	</xsd:simpleType>

	<!-- Federal Employer ID Number (US). -->
	<xsd:simpleType name="typeFEIN">
		<xsd:restriction base="xsd:string">
			<xsd:pattern value="[0-9]{9}" />
		</xsd:restriction>
	</xsd:simpleType>

	<!-- Six-Digit NAICS Code -->
	<xsd:simpleType name="typeNAICS">
		<xsd:restriction base="xsd:string">
			<xsd:pattern value="[0-9]{6}" />
		</xsd:restriction>
	</xsd:simpleType>

	<!-- Date string of yyyy-mm-dd -->
	<xsd:simpleType name="typeDate">
		<xsd:restriction base="xsd:string">
			<!-- date format: yyyy-mm-dd -->
			<xsd:pattern value="[1-2][0-9]{3}\-[0-1][0-9]\-[0-3][0-9]" />
		</xsd:restriction>
	</xsd:simpleType>

	<!-- Filing Reason Code Annual or Terminated or Closed  or Other -->
	<xsd:simpleType name="typeFilingReasonType">
		<xsd:restriction base="xsd:string">
			<xsd:pattern value="Annual|Terminated|Closed|Other" />
		</xsd:restriction>
	</xsd:simpleType>

	<!-- Email Address -->
	<xsd:simpleType name="typeEmail">
		<xsd:restriction base="xsd:string">
			<xsd:pattern value="[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,20}" />
		</xsd:restriction>
	</xsd:simpleType>


	<!-- Race Code
			W  -	White
			B  -	Black
			WH -	White - not of Hispanic origin
			BH -	Black - not of Hispanic origin
			H  -	Hispanic
			A  -	Asian
			NR -	Not Reported
			AI -	American Indian/Alaskan Native
			NH -	Native Hawaiian/Pacific Islander
			O  -	Other
	-->
	<xsd:simpleType name="typeRaceCode">
		<xsd:restriction base="xsd:string">
			<xsd:enumeration value="W" />
			<xsd:enumeration value="B" />
			<xsd:enumeration value="WH" />
			<xsd:enumeration value="BH" />
			<xsd:enumeration value="H" />
			<xsd:enumeration value="A" />
			<xsd:enumeration value="NR" />
			<xsd:enumeration value="AI" />
			<xsd:enumeration value="NH" />
			<xsd:enumeration value="O" />
		</xsd:restriction>
	</xsd:simpleType>

	<!-- Location Where the injury or illiness happened
			PB: Primary business location 
			OJ: On-site job location
			TR: Traveling between jobs
			TL: Telecommuting
	-->
	<xsd:simpleType name="typeInjuryLocationCode">
		<xsd:restriction base="xsd:string">
			<xsd:enumeration value="PB" />
			<xsd:enumeration value="OJ" />
			<xsd:enumeration value="TR" />
			<xsd:enumeration value="TL" />
		</xsd:restriction>
	</xsd:simpleType>

	<!-- Return-to-work date type.
			ADT: Actual Date 
			EDT: Expected Date 
	-->
	<xsd:simpleType name="typeWorkReturnedDateType">
		<xsd:restriction base="xsd:string">
			<xsd:enumeration value="ADT" />
			<xsd:enumeration value="EDT" />
		</xsd:restriction>
	</xsd:simpleType>


	<!-- Integer cannot be lower than 0 or greater than 120  -->
	<xsd:simpleType name="typeInteger120">
		<xsd:restriction base="xsd:integer">
			<xsd:minInclusive value="0" />
			<xsd:maxInclusive value="120" />
		</xsd:restriction>
	</xsd:simpleType>

	<!-- Generic complexType definitions -->

	<!-- USA Phone number -->
	<xsd:complexType name="typePhone">
		<xsd:sequence>
			<!-- AreaCode required for US phones -->
			<xsd:element name="AreaCode" type="xdwc:typePhone3" minOccurs="1" maxOccurs="1" />
			<!-- US phone number. 7-digits for US. -->
			<xsd:element name="Number" type="xdwc:typePhone7" minOccurs="1" maxOccurs="1" />
			<!-- Optional extension.  Digits only. -->
			<xsd:element name="Extension" type="xdwc:typePhoneExtension" minOccurs="0" maxOccurs="1" />
		</xsd:sequence>
	</xsd:complexType>

	<!-- USA Address -->
	<xsd:complexType name="typeAddress">
		<xsd:sequence>
			<!-- US Address. Line always required. Maximum 130 characters -->
			<xsd:element name="Line" minOccurs="1" maxOccurs="1">
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:minLength value="1"></xsd:minLength>
						<xsd:maxLength value="130"></xsd:maxLength>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<!-- US City is always required. Maximum 50 characters -->
			<xsd:element name="City" minOccurs="1" maxOccurs="1">
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:minLength value="1"></xsd:minLength>
						<xsd:maxLength value="50"></xsd:maxLength>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<!-- US State -->
			<xsd:element name="State" minOccurs="1" maxOccurs="1" >
				<!-- Two alpha characters -->
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:pattern value="[a-zA-Z]{2}" />
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			
			<!-- 5 or 9-digit ZIP required for US addresses (no punctuation) -->
			<xsd:element name="Zip"  minOccurs="1" maxOccurs="1" >
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:pattern value="[0-9]{5}" />
						<xsd:pattern value="[0-9]{5}[0-9]{4}" />
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>

	<!-- Point Of Contact -->
	<xsd:complexType name="typePOC">
		<xsd:sequence>
			<!-- Contact Info. -->
			<!-- Contact Name is always required. Maximum 155 characters -->
			<xsd:element name="Name" minOccurs="1" maxOccurs="1">
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:minLength value="1"></xsd:minLength>
						<xsd:maxLength value="155"></xsd:maxLength>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>

			<xsd:element name="Phone" type="xdwc:typePhone" minOccurs="1" maxOccurs="1" />

			<!-- Contact EMail is always required. Maximum 100 characters -->
			<xsd:element name="EMail" type="xdwc:typeEmail" minOccurs="1" maxOccurs="1" />
				
			<!-- Contact Title is optional. Maximum 50 characters -->
			<xsd:element name="Title" minOccurs="0" maxOccurs="1">
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:minLength value="1"></xsd:minLength>
						<xsd:maxLength value="50"></xsd:maxLength>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>

	<!-- Point Of Contact -->
	<xsd:complexType name="typeFORM7POC">
		<xsd:sequence>
			<!-- Contact Info. -->
			<!-- Contact Name is always required. Maximum 155 characters -->
			<xsd:element name="Name" minOccurs="1" maxOccurs="1">
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:minLength value="1"></xsd:minLength>
						<xsd:maxLength value="155"></xsd:maxLength>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>

			<xsd:element name="Phone" type="xdwc:typePhone" minOccurs="1" maxOccurs="1" />

			<!-- Contact Title is optional. Maximum 50 characters -->
			<xsd:element name="Title" minOccurs="0" maxOccurs="1">
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:minLength value="1"></xsd:minLength>
						<xsd:maxLength value="50"></xsd:maxLength>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>

			<!-- Optional field. -->
			<!-- <ContactSignedDt>2001-11-27</ContactSignedDt> -->
			<xsd:element name="ContactSignedDt" type="xdwc:typeDate" minOccurs="0" maxOccurs="1" />

		</xsd:sequence>
	</xsd:complexType>

	<!-- Effective Dates -->
	<xsd:complexType name="typeDateRange">
		<xsd:sequence>
			<xsd:element name="FromDate" type="xdwc:typeDate" minOccurs="1" maxOccurs="1" />
			<xsd:element name="ToDate" type="xdwc:typeDate" minOccurs="1" maxOccurs="1" />
		</xsd:sequence>
	</xsd:complexType>

	<xsd:complexType name="typeCode">
		<xsd:sequence>
			<!-- Six-Digit NAICS Code -->
			<xsd:element name="SequenceNumber" minOccurs="1" maxOccurs="1" >
				<xsd:simpleType>
				<xsd:restriction base="xsd:integer">
					<xsd:minInclusive value="1" />
					<xsd:maxInclusive value="5" />
				</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>

			<xsd:element name="NAICSCode" type="xdwc:typeNAICS" minOccurs="1" maxOccurs="1" />
			<!-- Highest number of employees in month of report.-->
			<xsd:element name="MonthHighestEmployeeCount" type="xsd:integer" minOccurs="1"
				maxOccurs="1" />
		</xsd:sequence>
	</xsd:complexType>

	<xsd:complexType name="typeNAICSCodes">
		<xsd:sequence>
			<!-- Minimum 1 and Max 5 Codes, required field(s). -->
			<xsd:element name="Code" type="xdwc:typeCode" minOccurs="1" maxOccurs="5" />
		</xsd:sequence>
	</xsd:complexType>

	<!-- Body parts affected -->
	<xsd:complexType name="typeBodyParts">
		<xsd:sequence>
			<!-- Integer cannot be lower than 0 or greater than 120 -->
			<!-- Restrict body part selection: min.= 1, max.= 10 -->
			<xsd:element name="BodyPart" type="xdwc:typeInteger120" minOccurs="1" maxOccurs="10" />
		</xsd:sequence>
	</xsd:complexType>

	<!-- ***************** ELEMENT DEFINITIONS *************  -->
	<!-- Start Bulk DWC007 Form -->
	<xsd:element name="BulkDWC007">
		<xsd:complexType>
			<xsd:sequence>
				<!-- Non-Subscriber Info -->
				<xsd:element name="DWC007" type="xdwc:typeBulkDWC007" minOccurs="1"
					maxOccurs="unbounded" />
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>

	<!-- Bulk DWC007 FORM FILING INFO -->
	<xsd:complexType name="typeBulkDWC007">
		<xsd:sequence>
			<!-- Required field. Primary Employer Information -->
			<xsd:element name="Employer" type="xdwc:typeDWC007Employer" minOccurs="1" maxOccurs="1" />
			<!-- Required field. Additional Business Locations  -->
			<xsd:element name="InjuredEmployee" type="xdwc:typeInjuredEmployee" minOccurs="1"
				maxOccurs="unbounded" />
		</xsd:sequence>
	</xsd:complexType>

	<!-- DWC007 Form Employer details-->
	<xsd:complexType name="typeDWC007Employer">
		<xsd:sequence>

			<!-- Employer Type. N- Non-subscribing employer, S- Subscribing employer -->
			<!-- Required field. -->
			<!--  <EmployerType>N/S</EmployerType> -->
			<xsd:element name="EmployerType" minOccurs="1" maxOccurs="1" >
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:enumeration value="N" />
						<xsd:enumeration value="S" />
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>

			<!-- Box 1. Employer Business Name. Maximum 100 characters. -->
			<!-- Required field. -->
			<!-- <Name>El Toro Group</Name>  -->
			<xsd:element name="Name" minOccurs="1" maxOccurs="1">
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:minLength value="1"></xsd:minLength>
						<xsd:maxLength value="100"></xsd:maxLength>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>

			<!-- Box 2. Reporting period (month and year) yyyy-mm format -->
			<!-- Required field. -->
			<!-- <ReportingPeriod>2024-11</ReportingPeriod> -->
			<xsd:element name="ReportingPeriod" minOccurs="1"
				maxOccurs="1" >
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<!-- Year Month format: yyyy-mm -->
						<xsd:pattern value="[1-2][0-9]{3}\-[0-1][0-9]" />
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			
			<!-- Box 3. 'Number of injured employees included in this report. -->
			<!-- Required field. Number. No spaces or dashes. -->
			<!-- Include full-time, part-time, temporary, and permanent employees -->
			<!-- <InjuredEmployeeCount>10</InjuredEmployeeCount>  -->
			<xsd:element name="InjuredEmployeeCount" type="xsd:integer" minOccurs="1" maxOccurs="1" />

			<!-- Box 4. Employer Business Mailing Address.  US Address: Street or PO Box, City,
			State, 5 or 9-digit ZIP required for US addresses (no punctuation)   -->
			<!-- Required field. All fields under Address are Required fields. -->
			<!-- USPS Standaridized address -->
			<!-- <MailingAddress>
					<Line>600 Main St.</Line>
					<City>Tampa</City>
					<State>FL</State>
					<Zip>33559</Zip>
				</MailingAddress>
			-->
			<xsd:element name="MailingAddress" type="xdwc:typeAddress" minOccurs="1" maxOccurs="1" />

			<!-- Box 5. Six-Digit North American Industry Classification System (NAICS) codes. -->
			<!-- Required field.  Minimum 1 and Max 5 Codes, required field(s). -->
			<!-- Note: Validation: Adding MonthHighestEmployeeCounts  need to match with
			InjuredEmplyeeCount? -->
			<!--  
				<NAICSCodes>
					<Code>
						<SequenceNumber>1</SequenceNumber>
						<NAICSCode>722511</NAICSCode>
						<MonthHighestEmployeeCount>3</MonthHighestEmployeeCount>
					</Code>
					<Code>
						<SequenceNumber>2</SequenceNumber>
						<NAICSCode>722512</NAICSCode>
						<MonthHighestEmployeeCount>2</MonthHighestEmployeeCount>
					</Code>
					<Code>
						<SequenceNumber>3</SequenceNumber>
						<NAICSCode>722513</NAICSCode>
						<MonthHighestEmployeeCount>3</MonthHighestEmployeeCount>
					</Code>				
					<Code>
						<SequenceNumber>4</SequenceNumber>
						<NAICSCode>722514</NAICSCode>
						<MonthHighestEmployeeCount>1</MonthHighestEmployeeCount>
					</Code>				
					<Code>
						<SequenceNumber>1</SequenceNumber>
						<NAICSCode>722515</NAICSCode>
						<MonthHighestEmployeeCount>1</MonthHighestEmployeeCount>
					</Code>
				</NAICSCodes>
			
			<xsd:element name="NAICSCodes" type="xdwc:typeNAICSCodes" minOccurs="1" maxOccurs="1" />-->

			<!--  Box 6. Employer Business Mailing Address. US Address: Street or PO Box, City,
			State, 5 or 9-digit ZIP required for US addresses (no punctuation)   -->
			<!-- Required field. All fields under Address are Required fields. -->
			<!-- USPS Standaridized address -->
			<!-- <PhysicalAddress>
					<Line>600 Main St.</Line>
					<City>Tampa</City>
					<State>FL</State>
					<Zip>33559</Zip>
				</PhysicalAddress>
			-->
			<xsd:element name="PhysicalAddress" type="xdwc:typeAddress" minOccurs="1" maxOccurs="1" />

			<!-- Box 7. Business Employer phone number. 3-digit US Phone Area Code, 7-digit US Phone
			number, Optional Extension field -->
			<!-- Required field -->
			<!--  
				<BusinessPhone>
					<AreaCode>512</AreaCode>
					<Number>2345432</Number>
					<Extension></Extension>
				</BusinessPhone>
			-->
			<xsd:element name="BusinessPhone" type="xdwc:typePhone" minOccurs="1" maxOccurs="1" />

			<!-- Box 8. Federal Employer ID Number. -->
			<!-- Required field. 9 digit number. No spaces or dashes. -->
			<!-- <FEIN>987654321</FEIN> -->
			<xsd:element name="FEIN" type="xdwc:typeFEIN" minOccurs="1" maxOccurs="1" />

			<!-- Contact Information -->
			<!-- Required field. All fields under Contact are Required fields. -->
			<!-- Box 9. Contact name (first, last). Contact persion from the Employer. -->
			<!-- Box 10. Contact phone number. 3-digit US Phone Area Code, 7-digit US Phone number,
			Optional Extension field -->
			<!-- Contact email. Note: This field is not in Paper form. -->
			<!-- Box 11. Title. Note: This field is not in DWC007 and sping application. -->
			<!-- Box 12. Signature of person completing the form. -->
			<!--  Note: This field is not in DWC005 and sping application. Note: person can be
			different person from who uploaded the XML file -->
			<!-- captures user’s name and applies data to ‘Created By’  -->
			<!-- Box 13. Date Of Signature. System date, Note: This field is not in DWC005 and
			spring application. -->
			<!-- captures system date and applies data ‘Created On’ -->
			<!-- Required field. -->
			<!-- 
				<Contact>
					<Name>John Winson</Name>
					<Phone>
						<AreaCode>512</AreaCode>
						<Number>2345432</Number>
						<Extension></Extension>
					</Phone>
					<EMail>johnwinson@eltoro.com</EMail>
					<Title>CEO</Title>
				</Contact>
			-->
			<xsd:element name="Contact" type="xdwc:typeFORM7POC" minOccurs="1" maxOccurs="1" />
		</xsd:sequence>
	</xsd:complexType>

	<!-- DWC007 Form Injured Worker details-->
	<xsd:complexType name="typeInjuredEmployee">
		<xsd:sequence>

			<!-- Box 14. Employee Name (first, middle, last)  -->
			<!-- Required field. Maximum 50 characterts -->
			<!-- <FirstName>Neo</FirstName> -->
			<xsd:element name="FirstName" minOccurs="1" maxOccurs="1">
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:minLength value="1"></xsd:minLength>
						<xsd:maxLength value="50"></xsd:maxLength>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<!-- Optional field. Maximum 50 characterts -->
			<!-- <MiddleName>Haris</MiddleName> -->
			<xsd:element name="MiddleName" minOccurs="0">
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:minLength value="1"></xsd:minLength>
						<xsd:maxLength value="50"></xsd:maxLength>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<!-- Required field. Maximum 50 characterts -->
			<!-- <LastName>John</LastName> -->
			<xsd:element name="LastName" minOccurs="1" maxOccurs="1">
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:minLength value="1"></xsd:minLength>
						<xsd:maxLength value="50"></xsd:maxLength>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>

			<!-- Box 15. Social Security Number 9 digit number Note: Restrict to digit-->
			<!-- Required field. -->
			<!-- <SSN>121110238</SSN> -->
			<xsd:element name="SSN" minOccurs="1" maxOccurs="1" >
				<xsd:simpleType >
					<xsd:restriction base="xsd:string">
						<!--<xsd:length value="9"></xsd:length>-->
						<xsd:pattern value="[0-9]{9}" />
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<!-- Box 16.  Date Of Birth. yyyy-mm-dd format -->
			<!-- Required field. -->
			<!-- <DateOfBirth>2001-11-27</DateOfBirth> -->
			<xsd:element name="DateOfBirth" type="xdwc:typeDate" minOccurs="1" maxOccurs="1" />

			<!-- Box 17. Date Of hire. yyyy-mm-dd format -->
			<!-- Required field. -->
			<!-- <DateOfHire>2001-12-30</DateOfHire> -->
			<xsd:element name="DateOfHire" type="xdwc:typeDate" minOccurs="1" maxOccurs="1" />

			<!-- Box 18. Sex (M/F). M: Male, F: Female-->
			<!-- Required field. -->
			<!-- <Sex>M/F</Sex> -->
			<xsd:element name="Sex" minOccurs="1" maxOccurs="1" >
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:enumeration value="M" />
						<xsd:enumeration value="F" />
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>

			<!-- Box 19. Occupation  -->
			<!-- Required field. -->
			<!-- <Occupation>Supervisor</Occupation> -->
			<xsd:element name="Occupation" minOccurs="1" maxOccurs="1">
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:minLength value="1"></xsd:minLength>
						<xsd:maxLength value="100"></xsd:maxLength>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>

			<!-- Box 20. Hourly wage. NNN.NN format  -->
			<!-- Required field. -->
			<!-- <HourlyWage>025.50</HourlyWage> -->
			<xsd:element name="HourlyWage"  minOccurs="1" maxOccurs="1" >
				<xsd:simpleType >
					<xsd:restriction base="xsd:decimal">
						<xsd:pattern value="[0-9][0-9][0-9].[0-9][0-9]" />
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<!-- Box 21. Six-Digit North American Industry Classification System (NAICS) code. -->
			<!-- Must be one of the NACIS codes entered under Employer's NAICSCodes section -->
			<!-- Required field. -->
			<!-- <NAICSCode>722511</NAICSCode> -->
			<xsd:element name="NAICSCode" type="xdwc:typeNAICS" minOccurs="1" maxOccurs="1" />

			<!-- Box 22. Race Code
					W  -	White
					B  -	Black
					WH -	White - not of Hispanic origin
					BH -	Black - not of Hispanic origin
					H  -	Hispanic
					A  -	Asian
					NR -	Not Reported
					AI -	American Indian/Alaskan Native
					NH -	Native Hawaiian/Pacific Islander
					O  -	Other
			-->
			<!-- Required field. -->
			<!-- <RaceCode>W/B/WH/BH/H/A/NR/AI/NH/O</RaceCode> -->
			<xsd:element name="RaceCode" type="xdwc:typeRaceCode" minOccurs="1" maxOccurs="1" />

			<!-- Box 22. Required if Race Code entered as "O" -->
			<!-- Box 22. Maximum 100 characters length -->
			<!-- Optional field.  -->
			<!-- <RaceOtherText>Specify details If Race Code entered as "O"</RaceOtherText> -->
			<xsd:element name="RaceOtherText" minOccurs="0" maxOccurs="1">
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:minLength value="1"></xsd:minLength>
						<xsd:maxLength value="100"></xsd:maxLength>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>

			<!-- Box 23. Address where the work-related injury or illness happened(street or PO Box,
			city, state, Zip code) -->
			<!-- Required field. -->
			<!--        
				<Address>100 Main Street Austin TX 78744</Address>
			-->
			<xsd:element name="Address" minOccurs="1" maxOccurs="1" >
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:minLength value="1"></xsd:minLength>
						<xsd:maxLength value="250"></xsd:maxLength>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>

			<!-- Box 24. Location where the injury or illiness happened
					PB: Primary business location 
					OJ: On-site job location
					TR: Traveling between jobs
					TL: Telecommuting
			-->
			<!-- Required field. -->
			<!-- <InjuryLocationCode>PB/OJ/TR/TL</InjuryLocationCode> -->
			<xsd:element name="InjuryLocationCode" type="xdwc:typeInjuryLocationCode" minOccurs="1"
				maxOccurs="1" />

			<!-- Box 25.  Date Of Injury or Illiness. yyyy-mm-dd format -->
			<!-- Required field. -->
			<!-- <DateOfInjury>2024-05-01</DateOfInjury> -->
			<xsd:element name="DateOfInjury" type="xdwc:typeDate" minOccurs="1" maxOccurs="1" />

			<!-- Box 26. Date reported by Employee. yyyy-mm-dd format -->
			<!-- Required field. -->
			<!-- <DateReported>2001-05-01</DateReported> -->
			<xsd:element name="DateReported" type="xdwc:typeDate" minOccurs="1" maxOccurs="1" />

			<!-- Box 27. Return-to-work date. yyyy-mm-dd format -->
			<!-- Required field. -->
			<!-- <DateWorkReturned>2001-05-01</DateWorkReturned> -->
			<xsd:element name="DateWorkReturned" type="xdwc:typeDate" minOccurs="1" maxOccurs="1" />

			<!-- Box 27. Return-to-work date type.
					ADT: Actual Date 
					EDT: Expected Date 
			-->
			<!-- Required field. -->
			<!--<WorkReturnedDateType>ADT/EDT</WorkReturnedDateType> -->
			<xsd:element name="WorkReturnedDateType" type="xdwc:typeWorkReturnedDateType"
				minOccurs="1" maxOccurs="1" />


			<!-- Box 28. Reported cause of injury
					1: Chemicals
					2: Hot Object or Substances
					3: Temperature Extremes
					4: Fire or Flame
					5: Steam or Hot Fluids
					6: Dust, Gases, Fumes or Vapors
					7: Welding Operations
					8: Radiation
					9: Contact With, Not Otherwise Classified
					10: Machine or Machinery
					11: Cold Objects or Substances
					12: Object Handled
					13: Caught In, Under, or Between, Not Otherwise Classified
					14: Abnormal Air Pressure
					15: Broken Glass
					16: Hand Tool, Utensil; Not Powered
					17: Object Being Lifted or Handled
					18: Powered Hand Tool, Appliance
					19: Cut, Puncture, Scrape, Not Otherwise Classified
					20: Collapsing Materials (Slides of Earth) - either man made or natural
					25: From Different Level (Elevation) - off wall, catwalk, bridge, etc.
					26: From Ladder or Scaffolding
					27: From Liquid or Grease Spills
					28: Into Openings - shafts, excavations, floor openings, etc.
					29: On Same Level
					30: Slipped, Did Not Fall
					31: Fall, Slip, Trip, Not Otherwise Classified
					32: On Ice or Snow
					33: On Stairs
					40: Crash of Water Vehicle
					41: Crash of Rail Vehicle
					45: Collision or Sideswipe with Another Vehicle - both vehicles in motion
					46: Collision with a Fixed Object - standing vehicle or stationary object
					47: Crash of Airplane
					48: Vehicle Upset - overturned or jackknifed
					50: Motor Vehicle, Not Otherwise Classified
					52: Continual Noise
					53: Twisting
					54: Jumping
					55: Holding or Carrying
					56: Lifting
					57: Pushing or Pulling
					58: Reaching
					59: Using Tool or Machinery
					60: Strain or Injury By, Not Otherwise Classified
					61: Wielding or Throwing
					65: Moving Parts of Machine
					66: Object Being Lifted or Handled
					67: Sanding, Scraping, Cleaning Operation
					68: Stationary Object
					69: Stepping on Sharp Object
					70: Striking Against or Stepping On, Not Otherwise Classified
					74: Fellow Worker, Patient
					75: Falling or Flying Object
					76: Hand Tool or Machine in Use
					77: Motor Vehicle
					78: Moving Parts of Machine
					79: Object Being Lifted or Handled
					80: Object Handled by Others
					81: Struck or Injured, Not Otherwise Classified - includes kicked, stabbed, bit, etc.
					82: Absorption, Ingestion or Inhalation, Not Otherwise Classified
					84: Electrical Current
					85: Animal or Insect
					86: Explosion or Flare Back
					87: Foreign Matter (Body) in Eye(s)
					88: Natural Disasters (Earthquake, Hurricane, Tornado, etc.)
					89: Person in Act of a Crime - robbery or criminal assault
					90: Other Than Physical Cause of Injury
					91: Mold
					94: Repetitive Motion - callous, blister, etc.
					95: Rubbed or Abraded, Not Otherwise Classified
					97: Repetitive Motion - carpal tunnel syndrome
					98: Cumulative, Not Otherwise Classified - all other
					99: Other - Miscellaneous, Not Otherwise Classified
					96: Terrorism
					83: Pandemic Includes disease epidemic that has spread across a large region
			-->
			<!-- Required field. -->
			<!-- Note: Restrict to these numbers in XML or from 0 to 120? -->
			<!--<InjuryCauseCode>1</InjuryCauseCode> -->
			<xsd:element name="InjuryCauseCode" type="xdwc:typeInteger120" minOccurs="1"
				maxOccurs="1" />

			<!-- 
				Box 29. Nature of injury or illness
					1:  No Physical Injury
					2:  Amputation
					3:  Angina Pectoris - chest pain
					4:  Burn
					7:  Concussion - brain, cerebral
					10:  Contusion-bruise-intact skin surface, hematoma
					13:  Crushing
					16:  Dislocation
					19:  Electric Shock - electrocution
					22:  Enucleation - removal of organ or tumor
					25:  Foreign Body
					28:  Fracture - breaking of bone or cartilage
					30:  Freezing
					31:  Hearing Loss or Impairment
					32:  Heat Prostration
					34:  Hernia
					36:  Infection
					37:  Inflammation
					40:  Laceration
					41:  Myocardial Infarction
					42:  Poisoning
					43:  Puncture
					46:  Rupture
					47:  Severance
					49:  Sprain
					52:  Strain
					53:  Syncope - swooning, fainting, passing out
					54:  Asphyxiation - strangulation, drowning
					55:  Vascular
					58:  Vision Loss
					59:  All Other Specific Injuries, Not Otherwise Classified
					60:  Dust Disease Not Otherwise Classified (All other Pneumoconiosis)
					61:  Asbestosis
					62:  Black Lung
					63:  Byssinosis
					64:  Silicosis
					65:  Respiratory Disorders (Gases, Fumes, Chemicals)
					66:  Poisoning - Chemical (Other than Metals)
					67:  Poisoning - Metal - man-made
					68:  Dermatitis
					69:  Mental Disorder
					70:  Radiation
					71:  All Other Occupational Disease Injury Not Otherwise Classified
					72:  Loss of Hearing
					73:  Contagious Disease
					74:  Cancer
					75:  AIDS
					76:  VDT-Related Disease
					77:  Mental Stress
					78:  Carpal Tunnel Syndrome
					79:  Hepatitis C
					80:  All Other Cumulative Injuries, Not Otherwise Classified
					90:  Multiple Physical Injuries Only
					91:  Multiple Injuries, both physical & psychological
					0:  Not Reported
					83:  COVID-19 Coronavirus disease 2019 (COVID-19) is a respiratory disease caused by a coronavirus
					38:  Adverse reaction to a vaccination or inoculation			
			-->
			<!-- Required field. -->
			<!-- Note: Restrict to these numbers in XML or from 0 to 120? -->
			<!-- <InjuryNatureTypeCode>1</InjuryNatureTypeCode> -->
			<xsd:element name="InjuryNatureTypeCode" type="xdwc:typeInteger120" minOccurs="1"
				maxOccurs="1" />

			<!-- 
				Box 30. Equipment involved in the injury, if any. Free text
				Max 150 characters
			-->
			<!-- Optional field. -->
			<!--<InjurySource>Blade,
			Knife, Ladder</InjurySource>  -->
			<xsd:element name="InjurySource" minOccurs="0" maxOccurs="1">
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:minLength value="1"></xsd:minLength>
						<xsd:maxLength value="150"></xsd:maxLength>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>

			<!-- 31. Body parts affected*” (restrict body part selection: min.= 1, max.= 10).  -->
			<!-- 
					10:  Multiple Head Injury
					11:  Skull
					12:  Brain
					13:  Ear(s) - includes: hearing, inside eardrum
					14:  Eye(s) - includes: optic nerves, vision, eyelids
					15:  Nose-includes:nasal passage, sinus, sense of smell
					16:  Teeth
					17:  Mouth - includes: lips, tongue, throat, taste
					18:  Soft Tissue
					19:  Facial Bones - includes jaw
					20:  Multiple Neck Injury
					21:  Vertebrae - includes spinal column bone
					22:  Disc - includes spinal column cartilage
					23:  Spinal Cord - includes: nerve tissue
					24:  Larynx - includes: cartilage and vocal cords
					25:  Soft Tissue - other than larynx or trachea
					26:  Trachea
					30:  Multiple Upper Extremities
					31:  Upper Arm-Humerus and corresponding muscles
					32:  Elbow - radial head
					33:  Lower Arm - forearm - radius, ulna
					34:  Wrist - carpals and corresponding muscles
					35:  Hand - metacarpals and corresponding muscles
					36:  Finger(s) - other than thumb
					37:  Thumb
					38:  Shoulder(s) - Armpit, Rotator Cuff, Trapezius, Clavicle, Scapula
					39:  Wrist(s) and Hands(s)
					40:  Multiple Trunk
					41:  Upper Back Area (Thoracic Area)
					42:  Low Back Area (Lumbar Area & Lumbo-Sacral)
					43:  Disc-spinal column cartilage
					44:  Chest - including Ribs, Sternum and soft tissue
					45:  Sacrum and Coccyx - final nine vertebrae - fused
					46:  Pelvis
					47:  Spinal Cord-nerve tissue
					48:  Internal Organs - other than heart and lungs
					49:  Heart
					60:  Lungs
					61:  Abdomen Including Groin
					62:  Buttocks - soft tissue
					63:  Lumbar/Sacral Vertebrae (Vertebrae Not Otherwise Classified Trunk)
					50:  Multiple Lower Extremities
					51:  Hip
					52:  Upper Leg - femur and corresponding muscles
					53:  Knee - patella
					54:  Lower Leg-tibia, fibula & corresponding muscles
					55:  Ankle - tarsals
					56:  Foot - metatarsals, heel, Achilles tendon
					57:  Toe(s)
					58:  Great Toe
					64:  Artificial Appliance - braces, etc.
					65:  Insufficient Info to Properly Id-Unclassified
					66:  No Physical Injury - mental disorder
					90:  Multiple Body Parts
					91:  Body Systems & Multiple Body Systems
					99:  Whole Body Part
					0:  Not Reported
			-->
			<!-- Note: Body parts after 10 count will be ignored or filing to be rejected? -->
			<!--
				<BodyParts>
					<BodyPart>10</BodyPart>
					<BodyPart>90</BodyPart>
					<BodyPart>91</BodyPart>
					<BodyPart>99</BodyPart>
					<BodyPart>50</BodyPart>
					<BodyPart>51</BodyPart>
					<BodyPart>52</BodyPart>
					<BodyPart>53</BodyPart>
					<BodyPart>54</BodyPart>
					<BodyPart>55</BodyPart>
				</BodyParts> 
			-->
			<!-- Required field. -->
			<xsd:element name="BodyParts" type="xdwc:typeBodyParts" minOccurs="1" maxOccurs="1" />

			<!-- Box 32. Numeric value -->
			<!-- Required field. -->
			<!-- <DaysAbsent>3</DaysAbsent> -->
			<xsd:element name="DaysAbsent" type="xsd:integer" minOccurs="1" maxOccurs="1" />

			<!-- Box 33. First Date Absent. yyyy-mm-dd format -->
			<!-- Required field. -->
			<!-- <DateFirstAbsent>2024-05-01</DateFirstAbsent> -->
			<xsd:element name="DateFirstAbsent" type="xdwc:typeDate" minOccurs="1" maxOccurs="1" />

			<!-- 
				Box 34. Work-related illness?
				Y: Work related Illness or N
			-->
			<!-- Required field. -->
			<!-- <WorkRelatedIllness>Y/N</WorkRelatedIllness> -->
			<xsd:element name="WorkRelatedIllness" minOccurs="1"
				maxOccurs="1">
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:enumeration value="Y" />
						<xsd:enumeration value="N" />
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>

			<!-- 
				Box 35. Death?
					Y: Death or N
			-->
			<!-- Required field. -->
			<!-- <Death>Y/N</Death> -->
			<xsd:element name="Death" minOccurs="1" maxOccurs="1">
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:enumeration value="Y" />
						<xsd:enumeration value="N" />
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>

			<!-- Box 35. Date Of Death. yyyy-mm-dd format -->
			<!-- Required field if Death is "Y" -->
			<!-- <DateOfDeath>2024-05-01</DateOfDeath> -->
			<xsd:element name="DateOfDeath" type="xdwc:typeDate" minOccurs="0" maxOccurs="1" />

			<!-- 
				Box 36. Describe what happened. Free text, Max 500 characters 
				(Example: Fell off ladder and broke arm while painting house.)
			-->
			<!-- Required field. -->
			<!-- <InjuryDetails>broke arm while painting house</InjuryDetails> -->
			<xsd:element name="InjuryDetails" minOccurs="1" maxOccurs="1">
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:minLength value="1"></xsd:minLength>
						<xsd:maxLength value="500"></xsd:maxLength>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>

		</xsd:sequence>
	</xsd:complexType>

	<!-- End Bulk DWC007 Form -->


	<!-- Bulk DWC005   -->

	<xsd:element name="BulkDWC005">
		<xsd:complexType>
			<xsd:sequence>
				<!-- Non-Subscriber Info -->
				<xsd:element name="DWC005" type="xdwc:typeBulkDWC005" minOccurs="1"
					maxOccurs="unbounded" />
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>

	<!-- Bulk DWC005 data format -->
	<!-- Non-Subscriber Info -->
	<xsd:complexType name="typeBulkDWC005">
		<xsd:sequence>
			<!-- Required field. Primary Employer Information -->
			<xsd:element name="Employer" type="xdwc:typeEmployer" minOccurs="1" maxOccurs="1" />
			<!-- Required field. Filing Reason details -->
			<xsd:element name="FilingReason" type="xdwc:typeFilingReason" minOccurs="1"
				maxOccurs="1" />
			<!-- Optional field. Additional Business Locations  -->
			<xsd:element name="Location" type="xdwc:typeLocation" minOccurs="0"
				maxOccurs="unbounded" />
		</xsd:sequence>
	</xsd:complexType>

	<!-- For Filing Reason details. -->
	<xsd:complexType name="typeFilingReason">
		<xsd:sequence>
			<!-- Required field. The filing reason selected is effective from yyyy-mm-dd to
			yyyy-mm-dd. -->
			<xsd:element name="EffectiveDates" type="xdwc:typeDateRange" minOccurs="1" maxOccurs="1" />

			<!-- Required field. Value will be Annual or Terminated or Closed or Other-->
			<xsd:element name="FilingReasonType" type="xdwc:typeFilingReasonType" minOccurs="1"
				maxOccurs="1" />

			<!-- Required if FilingReasonType value is Terminated  -->
			<xsd:element name="Terminated" type="xdwc:typeTerminated" minOccurs="0" maxOccurs="1" />

			<!-- Required if FilingReasonType value is Closed -->
			<xsd:element name="Closed" type="xdwc:typeDate" minOccurs="0" maxOccurs="1" />
		</xsd:sequence>
	</xsd:complexType>

	<xsd:complexType name="typeTerminated">
		<xsd:sequence>
			<!-- Required field. -->
			<xsd:element name="PolicyInfo" type="xdwc:typePolicyInfo" minOccurs="1" maxOccurs="1" />
		</xsd:sequence>
	</xsd:complexType>

	<!-- If PolicyInfo present, then all elements are required -->
	<xsd:complexType name="typePolicyInfo">
		<xsd:sequence>
			<!--  Policy Termination Effective date in the format yyyy-mm-dd -->
			<xsd:element name="PolicyTerminationDate" type="xdwc:typeDate" minOccurs="1"
				maxOccurs="1" />
			<!-- Policy Number -->
			<xsd:element name="Policy" type="xsd:string" minOccurs="1" maxOccurs="1" />
			<!-- Carrier Name -->
			<xsd:element name="Carrier" type="xsd:string" minOccurs="1" maxOccurs="1" />
			<!-- Date insurer informed of termination (yyyy-mm-dd) -->
			<xsd:element name="DateInformed" type="xdwc:typeDate" minOccurs="1" maxOccurs="1" />
			<!-- Date employees were (will be) notified of termination (yyyy-mm-dd) -->
			<xsd:element name="DateNotified" type="xdwc:typeDate" minOccurs="1" maxOccurs="1" />
		</xsd:sequence>
	</xsd:complexType>

	<!-- Employer details-->
	<xsd:complexType name="typeEmployer">
		<xsd:sequence>
			<!-- Employer Business Name -->
			<xsd:element name="Name" type="xsd:string" minOccurs="1" maxOccurs="1" />
			<!-- Federal Employer ID Number -->
			<xsd:element name="FEIN" type="xdwc:typeFEIN" minOccurs="1" maxOccurs="1" />
			<!-- Employer Business Mailing Address -->
			<xsd:element name="Address" type="xdwc:typeAddress" minOccurs="1" maxOccurs="1" />
			<!-- Six-Digit NAICS Code -->
			<xsd:element name="NAICSCode" type="xdwc:typeNAICS" minOccurs="1" maxOccurs="1" />
			<!-- Contact Information -->
			<xsd:element name="Contact" type="xdwc:typePOC" minOccurs="1" maxOccurs="1" />
		</xsd:sequence>
	</xsd:complexType>

	<!-- Additional Business Locations -->
	<xsd:complexType name="typeLocation">
		<xsd:sequence>
			<!-- EffectiveDat is in the format yyyy-mm-dd  -->
			<xsd:element name="EffectiveDate" type="xdwc:typeDate" minOccurs="1" maxOccurs="1" />
			<!-- Business/Location Name -->
			<xsd:element name="Name" type="xsd:string" minOccurs="1" maxOccurs="1" />
			<!-- Business/Location FEIN -->
			<xsd:element name="FEIN" type="xdwc:typeFEIN" minOccurs="1" maxOccurs="1" />
			<!-- Business/Location Address -->
			<xsd:element name="Address" type="xdwc:typeAddress" minOccurs="1" maxOccurs="1" />
		</xsd:sequence>
	</xsd:complexType>
</xsd:schema>