refactored vitalSign
authorThomas Gambet <tgambet@w3.org>
Thu, 15 Jul 2010 12:10:33 -0400
changeset 4 135afb07b9fa
parent 3 eac565419677
child 5 b70efe65b168
refactored vitalSign
syntheticPatients/indivo-schemas/vitals.xsd
--- a/syntheticPatients/indivo-schemas/vitals.xsd	Wed Jul 14 17:18:12 2010 -0400
+++ b/syntheticPatients/indivo-schemas/vitals.xsd	Thu Jul 15 12:10:33 2010 -0400
@@ -4,20 +4,16 @@
 
   <xs:include schemaLocation="codes.xsd" />
 
-  <xs:element name="VitalSign">
-    <xs:complexType>
-      <xs:sequence>
-        <xs:element name="dateMeasured" type="xs:dateTime" minOccurs="1" maxOccurs="1" />
-        <xs:element name="name" type="indivo:CodedValue" minOccurs="1" maxOccurs="1" />
-        <xs:element name="value" type="xs:decimal" minOccurs="1" maxOccurs="1" />
-        <xs:element name="unit" type="indivo:CodedValue" minOccurs="1" maxOccurs="1" />
-
-        <xs:element name="site" type="xs:string" minOccurs="0" maxOccurs="1" />
-
-        <xs:element name="position" type="xs:string" minOccurs="0" maxOccurs="1" />
-
-        <xs:element name="comments" type="xs:string" minOccurs="0" maxOccurs="1" />
-      </xs:sequence>
-    </xs:complexType>
-  </xs:element>
+  <xs:element name="VitalSign" type="indivo:VitalSignType"/>
+  <xs:complexType name="VitalSignType">
+  	<xs:sequence>
+  		<xs:element minOccurs="1" maxOccurs="1" name="dateMeasured" type="xs:dateTime"/>
+  		<xs:element minOccurs="1" maxOccurs="1" name="name" type="indivo:CodedValue"/>
+  		<xs:element minOccurs="1" maxOccurs="1" name="value" type="xs:decimal"/>
+  		<xs:element minOccurs="1" maxOccurs="1" name="unit" type="indivo:CodedValue"/>
+  		<xs:element minOccurs="0" maxOccurs="1" name="site" type="xs:string"/>
+  		<xs:element minOccurs="0" maxOccurs="1" name="position" type="xs:string"/>
+  		<xs:element minOccurs="0" maxOccurs="1" name="comments" type="xs:string"/>
+  	</xs:sequence>
+  </xs:complexType>
 </xs:schema>