Advertisement
Guest User

ProblemReport.xsd

a guest
Mar 9th, 2011
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 7.39 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <xs:schema xmlns:ha1="http://localhost/ProblemReport.xsd" xmlns:types="http://localhost/dropdownvalues.xsd" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://localhost/ProblemReport.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  3.     <xs:import schemaLocation="dropdownvalues.xsd" namespace="http://localhost/dropdownvalues.xsd" />
  4.     <xs:element name="ProblemReport">
  5.         <xs:complexType>
  6.             <xs:sequence>
  7.                 <xs:element name="InjuredPartyDetails">
  8.                     <xs:complexType>
  9.                         <xs:sequence>
  10.                             <xs:element name="ProblemType" type="types:ProblemType">
  11.                             </xs:element>
  12.                             <xs:element name="ProblemDate" type="xs:date">
  13.                             </xs:element>
  14.                             <xs:element name="ProblemTime" type="xs:time">
  15.                             </xs:element>
  16.                             <xs:element name="Forename">
  17.                                 <xs:simpleType>
  18.                                     <xs:restriction base="xs:string">
  19.                                         <xs:maxLength value="255" />
  20.                                     </xs:restriction>
  21.                                 </xs:simpleType>
  22.                             </xs:element>
  23.                             <xs:element name="Surname">
  24.                                 <xs:simpleType>
  25.                                     <xs:restriction base="xs:string">
  26.                                         <xs:maxLength value="255" />
  27.                                     </xs:restriction>
  28.                                 </xs:simpleType>
  29.                             </xs:element>
  30.                             <xs:element name="Age" type="types:AgeType">
  31.                             </xs:element>
  32.                             <xs:element name="Gender" type="types:GenderType">
  33.                             </xs:element>
  34.                             <xs:element name="Nationality" type="types:NationalityType">
  35.                             </xs:element>
  36.                             <xs:element name="EmploymentStatus" type="types:EmploymentStatusType">
  37.                             </xs:element>
  38.                             <xs:element name="ReturnedToWork" type="types:YesNoOptionType">
  39.                             </xs:element>
  40.                             <xs:element name="Occupation" type="types:OccupationDetailsType">
  41.                             </xs:element>
  42.                             <xs:element name="OccupationOther" minOccurs="0">
  43.                                 <xs:simpleType>
  44.                                     <xs:restriction base="xs:string">
  45.                                         <xs:maxLength value="30" />
  46.                                     </xs:restriction>
  47.                                 </xs:simpleType>
  48.                             </xs:element>
  49.                             <xs:element name="AnticipatedPeriodOfAbsence" type="types:UnableToWorkType">
  50.                             </xs:element>
  51.                         </xs:sequence>
  52.                     </xs:complexType>
  53.                 </xs:element>
  54.                 <xs:element name="ProblemDetails">
  55.                     <xs:complexType>
  56.                         <xs:sequence>
  57.                             <xs:element name="ID_NUMBER">
  58.                                 <xs:simpleType>
  59.                                     <xs:restriction base="xs:int">
  60.                                         <xs:minInclusive value="1" />
  61.                                     </xs:restriction>
  62.                                 </xs:simpleType>
  63.                             </xs:element>
  64.                             <xs:element name="ImpactOnVictim" type="types:ImpactOnVictimType" minOccurs="0">
  65.                             </xs:element>
  66.                             <xs:element name="ProblemDescription">
  67.                                 <xs:simpleType>
  68.                                     <xs:restriction base="xs:string">
  69.                                         <xs:maxLength value="2000" />
  70.                                     </xs:restriction>
  71.                                 </xs:simpleType>
  72.                             </xs:element>
  73.                         </xs:sequence>
  74.                     </xs:complexType>
  75.                 </xs:element>
  76.                 <xs:element name="InjuryDetails">
  77.                     <xs:complexType>
  78.                         <xs:sequence>
  79.                             <xs:element name="WorkplaceEnvironment" type="types:WorkplaceDetailsType">
  80.                             </xs:element>
  81.                             <xs:element name="WorkplaceEnvironmentOther" minOccurs="0">
  82.                                 <xs:simpleType>
  83.                                     <xs:restriction base="xs:string">
  84.                                         <xs:maxLength value="60" />
  85.                                     </xs:restriction>
  86.                                 </xs:simpleType>
  87.                             </xs:element>
  88.                             <xs:element name="ProblemTrigger" type="types:ProblemTriggerType">
  89.                             </xs:element>
  90.                             <xs:element name="ProblemTriggerOther" minOccurs="0">
  91.                                 <xs:simpleType>
  92.                                     <xs:restriction base="xs:string">
  93.                                         <xs:maxLength value="60" />
  94.                                     </xs:restriction>
  95.                                 </xs:simpleType>
  96.                             </xs:element>
  97.                             <xs:element name="InjuryReason" type="types:InjuryReasonType">
  98.                             </xs:element>
  99.                             <xs:element name="InjuryReasonOther" minOccurs="0">
  100.                                 <xs:simpleType>
  101.                                     <xs:restriction base="xs:string">
  102.                                         <xs:maxLength value="60" />
  103.                                     </xs:restriction>
  104.                                 </xs:simpleType>
  105.                             </xs:element>
  106.                             <xs:element name="InjuryType" type="types:InjuryTypeType">
  107.                             </xs:element>
  108.                             <xs:element name="InjuryTypeOther" minOccurs="0">
  109.                                 <xs:simpleType>
  110.                                     <xs:restriction base="xs:string">
  111.                                         <xs:maxLength value="60" />
  112.                                     </xs:restriction>
  113.                                 </xs:simpleType>
  114.                             </xs:element>
  115.                             <xs:element name="BodyPartInjury" type="types:BodyPartType">
  116.                             </xs:element>
  117.                             <xs:element name="BodyPartOther" minOccurs="0">
  118.                                 <xs:simpleType>
  119.                                     <xs:restriction base="xs:string">
  120.                                         <xs:maxLength value="30" />
  121.                                     </xs:restriction>
  122.                                 </xs:simpleType>
  123.                             </xs:element>
  124.                         </xs:sequence>
  125.                     </xs:complexType>
  126.                 </xs:element>
  127.             </xs:sequence>
  128.         </xs:complexType>
  129.     </xs:element>
  130. </xs:schema>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement