<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://www.theIMO.com/schema" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:imo="http://www.theIMO.com/schema" elementFormDefault="qualified">
	<!-- Following stuff is report specific -->
	<xs:include schemaLocation="IMODocument_r1.xsd"/>
	<xs:element name="IMODocBody">
		<xs:annotation>
			<xs:documentation>IMO Automated Document Body</xs:documentation>
		</xs:annotation>
		<xs:complexType name="TroubleReportRecord">
			<xs:sequence maxOccurs="unbounded">
				<xs:element name="TroubleTicket">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="LastUpdateDate" type="xs:string">
								<xs:annotation>
									<xs:documentation>Last Update Date</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="TicketNumber" type="xs:string">
								<xs:annotation>
									<xs:documentation>Meter Trouble Ticket Number</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="MeterID" type="xs:string">
								<xs:annotation>
									<xs:documentation>Meter ID</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="ZoneID" type="xs:string">
								<xs:annotation>
									<xs:documentation>Zone ID Number</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="DefectDate" type="xs:string">
								<xs:annotation>
									<xs:documentation>Trade date for which the MTR was detected</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="Comments" type="xs:string">
								<xs:annotation>
									<xs:documentation>Comments added by MSP or IMO</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="AttachmentsFlag" type="xs:string">
								<xs:annotation>
									<xs:documentation>Attachment Flag</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="IssueDate" type="xs:string">
								<xs:annotation>
									<xs:documentation>Date the MTR was issued</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="ExpectedAckDate" type="xs:string">
								<xs:annotation>
									<xs:documentation>Expected Acknowledgment Date</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="ActualAckDate" type="xs:string">
								<xs:annotation>
									<xs:documentation>Actual Acknowledgment Date</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="ExpectedResDate" type="xs:string">
								<xs:annotation>
									<xs:documentation>Expected Resolution Date</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="ActualResDate" type="xs:string">
								<xs:annotation>
									<xs:documentation>Actual Resolution Date</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="ClosureDate" type="xs:string">
								<xs:annotation>
									<xs:documentation>Date the MTR was closed by the IMO</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="MTRState" type="xs:string">
								<xs:annotation>
									<xs:documentation>MTR State</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="MeterMPID" type="xs:string">
								<xs:annotation>
									<xs:documentation>Meter MP ID related to MTR</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="MeterSPID" type="xs:string">
								<xs:annotation>
									<xs:documentation>Meter SP ID related to MTR</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="UserName" type="xs:string">
								<xs:annotation>
									<xs:documentation>User Name</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="ResDetails" type="xs:string">
								<xs:annotation>
									<xs:documentation>Resolution Details</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="CreationDate" type="xs:string">
								<xs:annotation>
									<xs:documentation>Created Date</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="FirstName" type="xs:string">
								<xs:annotation>
									<xs:documentation>First Name of Creator</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="LastName" type="xs:string">
								<xs:annotation>
									<xs:documentation>Last Name of Creator</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="AckSubmissionFlag" type="xs:string">
								<xs:annotation>
									<xs:documentation>Acknowledgment Submission Flag 0 or 1</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="MeterAdjAttachmentsFlag" type="xs:string">
								<xs:annotation>
									<xs:documentation>Attachment Flag Yes or No for Meter Data Adjustment</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="RestorationFlag" type="xs:string">
								<xs:annotation>
									<xs:documentation>Restoration flag Yes or No</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="ResAttachmentsFlag" type="xs:string">
								<xs:annotation>
									<xs:documentation>Resolution Attachments Flag</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="AttachmentsFlag2" type="xs:string">
								<xs:annotation>
									<xs:documentation>Attachments Flag2</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="CommentsbyMSPorIMO" type="xs:string">
								<xs:annotation>
									<xs:documentation>Comments by MSP or IMO</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="ResSubmissionFlag" type="xs:string">
								<xs:annotation>
									<xs:documentation>Resolution Submission Flag 0 or 1</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="RestorationDueDate" type="xs:string">
								<xs:annotation>
									<xs:documentation>Restoration Due Date</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="ActualRestorationDate" type="xs:string">
								<xs:annotation>
									<xs:documentation>Restoration Actual Date</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="RestorationFlag" type="xs:string">
								<xs:annotation>
									<xs:documentation>Restoration Flag</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="MeterType" type="xs:string">
								<xs:annotation>
									<xs:documentation>Meter Type</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="ReportsSendFlag" type="xs:string">
								<xs:annotation>
									<xs:documentation>Reports Send Flag</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="ParticipantOrgName" type="xs:string">
								<xs:annotation>
									<xs:documentation>Participant Organization Name</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="OrgContact" type="xs:string">
								<xs:annotation>
									<xs:documentation>Organization Contact</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="ErrorCode" type="xs:string">
								<xs:annotation>
									<xs:documentation>Error Code Number</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="ErrorType" type="xs:string">
								<xs:annotation>
									<xs:documentation>Error Type</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="ChannelNum" type="xs:string">
								<xs:annotation>
									<xs:documentation>Channel Number</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="CommErrorCodeDesc" type="xs:string">
								<xs:annotation>
									<xs:documentation>Communication Error Code Description</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="ValidErrorCodeDesc" type="xs:string">
								<xs:annotation>
									<xs:documentation>Validation Error Code Description</xs:documentation>
								</xs:annotation>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>

