eLabReport file schema definition

XML Schema Documentation

Table of Contents

top

Schema Document Properties

Target Namespace http://www.escis.com.au/2013/XML/LabReport
Element and Attribute Namespaces
  • Global element and attribute declarations belong to this schema's target namespace.
  • By default, local element declarations belong to this schema's target namespace.
  • By default, local attribute declarations have no namespace.
Schema Composition
  • This schema imports schema(s) from the following namespace(s):
    • http://www.escis.com.au/2013/XML (at ESdatFileType.xsd)
Documentation The eLabReport header file is a small xml file that contains information about the Lab Report, and the key realted data on the request. In particular the "Project", "SDG/COC Number", "Request" and "Version" will need to match the values provided by the client when submitting their eCoC. If these values are all correct, the laboratory report will match the request. If the Project ID is recognised, but the other values are not, the lab report will still be imported for the project, but will not be matched against a request. Laboratories can choose to auto-generate the Header file from their LIMS (Laboratory Information Management System). This documentation should be referred to during development.

Declared Namespaces

Prefix Namespace
xml http://www.w3.org/XML/1998/namespace
xsi http://www.w3.org/2001/XMLSchema-instance
xs http://www.w3.org/2001/XMLSchema
esdat http://www.escis.com.au/2013/XML
local http://www.escis.com.au/2013/XML/LabReport
Schema Component Representation
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.escis.com.au/2013/XML/LabReport">
<xs:import namespace="http://www.escis.com.au/2013/XML" schemaLocation="ESdatFileType.xsd"/>
...
</xs:schema>
top

Global Definitions

Complex Type: Associated_Files

Super-types: None
Sub-types: None
Name Associated_Files
Abstract no
Documentation A list of all the files that accompany this file. Optional.
XML Instance Representation
<...>
<local:File> local:File </local:File> [0..*] ?
</...>
Schema Component Representation
<xs:complexType name="Associated_Files">
<xs:sequence>
<xs:element name="File" type="local:File" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
top

Complex Type: Contact

Super-types: None
Sub-types: None
Name Contact
Abstract no
Documentation Contact that received the lab report files.
XML Instance Representation
<...
Email="xs:string [1] ?"
Other="xs:string [1] ?"/>
Schema Component Representation
<xs:complexType name="Contact">
<xs:attribute name="Email" type="xs:string" use="required"/>
<xs:attribute name="Other" type="xs:string" use="required"/>
</xs:complexType>
top

Complex Type: Copies_Sent_To

Super-types: None
Sub-types: None
Name Copies_Sent_To
Abstract no
Documentation A list of contacts the files were sent to. Optional.
XML Instance Representation
<...>
<local:Contact> local:Contact </local:Contact> [0..*]
</...>
Schema Component Representation
<xs:complexType name="Copies_Sent_To">
<xs:sequence>
<xs:element name="Contact" type="local:Contact" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
top

Complex Type: eCoC

Super-types: None
Sub-types: None
Name eCoC
Abstract no
XML Instance Representation
<...
SDG_ID="xs:long [0..1] ?"
CoC_Number="xs:string [1] ?">
<local:Lab_Requests> local:Lab_Requests </local:Lab_Requests> [1]
</...>
Schema Component Representation
<xs:complexType name="eCoC">
<xs:sequence>
<xs:element name="Lab_Requests" type="local:Lab_Requests"/>
</xs:sequence>
<xs:attribute name="SDG_ID" type="xs:long" use="optional"/>
<xs:attribute name="CoC_Number" type="xs:string" use="required"/>
</xs:complexType>
top

Complex Type: eCoCs

Super-types: None
Sub-types: None
Name eCoCs
Abstract no
Documentation Collection of eCoCs that originated this Lab Report. At least one eCoC must be included.
XML Instance Representation
<...>
<local:eCoC> local:eCoC </local:eCoC> [1..*] ?
</...>
Schema Component Representation
<xs:complexType name="eCoCs">
<xs:sequence>
<xs:element name="eCoC" type="local:eCoC" maxOccurs="unbounded" minOccurs="1"/>
</xs:sequence>
</xs:complexType>
top

Complex Type: File

Super-types: None
Sub-types: None
Name File
Abstract no
XML Instance Representation
<...
File_Name="xs:string [1] ?"
File_Type="esdat:FileTypeEnum [1] ?"/>
Schema Component Representation
<xs:complexType name="File">
<xs:attribute name="File_Name" type="xs:string" use="required"/>
<xs:attribute name="File_Type" type="esdat:FileTypeEnum" use="required"/>
</xs:complexType>
top

Complex Type: Lab_Request

Super-types: None
Sub-types: None
Name Lab_Request
Abstract no
XML Instance Representation
<...
ID="xs:long [0..1] ?"
Number="xs:long [1] ?"
Version="xs:string [1] ?"/>
Schema Component Representation
<xs:complexType name="Lab_Request">
<xs:attribute name="ID" type="xs:long" use="optional"/>
<xs:attribute name="Number" type="xs:long" use="required"/>
<xs:attribute name="Version" type="xs:string" use="required"/>
</xs:complexType>
top

Complex Type: Lab_Requests

Super-types: None
Sub-types: None
Name Lab_Requests
Abstract no
XML Instance Representation
<...>
<local:Lab_Request> local:Lab_Request </local:Lab_Request> [0..*]
</...>
Schema Component Representation
<xs:complexType name="Lab_Requests">
<xs:sequence>
<xs:element name="Lab_Request" type="local:Lab_Request" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
top

Complex Type: LabReport

Super-types: None
Sub-types: None
Name LabReport
Abstract no
XML Instance Representation
<...
Lab_Report_Number=" xs:string [1] ?"
Date_Reported=" xs:date [1] ?"
Time_Reported=" xs:time [1] ?"
Project_Number=" xs:string [1] ?"
Project_ID=" xs:string [1] ?"
Lab_Name=" xs:string [1] ?"
Lab_Signatory=" xs:string [1] ?">
< local:Associated_Files> local: Associated_Files </ local:Associated_Files> [1] ?
< local:Copies_Sent_To> local: Copies_Sent_To </ local:Copies_Sent_To> [1] ?
< local:eCoCs> local: eCoCs </ local:eCoCs> [1] ?
</...>
Schema Component Representation
< xs:complexType name=" LabReport">
< xs:sequence>
< xs:element name=" Associated_Files" type=" local: Associated_Files "/>
< xs:element name=" Copies_Sent_To" type=" local: Copies_Sent_To "/>
< xs:element name=" eCoCs" type=" local: eCoCs "/>
</ xs:sequence>
< xs:attribute name=" Lab_Report_Number" type=" xs:string " use=" required"/>
< xs:attribute name=" Date_Reported" type=" xs:date " use=" required"/>
< xs:attribute name=" Time_Reported" type=" xs:time " use=" optional"/>
< xs:attribute name=" Project_Number" type=" xs:string " use=" required"/>
< xs:attribute name=" Project_ID" type=" xs:string " use=" required"/>
< xs:attribute name=" Lab_Name" type=" xs:string " use=" required"/>
< xs:attribute name=" Lab_Signatory" type=" xs:string " use=" required"/>
</ xs:complexType>
top

Simple Type: stringTwenty

Super-types: xs:string < stringTwenty (by restriction)
Sub-types: None
Name stringTwenty
Content
  • Base XSD Type: string
  • length <= 20
Schema Component Representation
<xs:simpleType name="stringTwenty">
<xs:restriction base="xs:string">
<xs:maxLength value="20"/>
</xs:restriction>
</xs:simpleType>
top