← Back to team overview

mlhim-specs-dev team mailing list archive

[Branch ~mlhim-specs-dev/mlhim-specs/main] Rev 247: ccd.xsd, datatypes.xsd and common.xsd are completed in move to elements vs. attributes.

 

------------------------------------------------------------
revno: 247
committer: Timothy W. Cook <timothywayne.cook@xxxxxxxxx>
branch nick: mlhim-specs
timestamp: Mon 2012-05-28 14:17:03 -0300
message:
  ccd.xsd, datatypes.xsd and common.xsd are completed in move to elements vs. attributes.
modified:
  schemas/common.xsd


--
lp:mlhim-specs
https://code.launchpad.net/~mlhim-specs-dev/mlhim-specs/main

Your team MLHIM Specifications Developers is subscribed to branch lp:mlhim-specs.
To unsubscribe from this branch go to https://code.launchpad.net/~mlhim-specs-dev/mlhim-specs/main/+edit-subscription
=== modified file 'schemas/common.xsd'
--- schemas/common.xsd	2012-05-27 11:38:45 +0000
+++ schemas/common.xsd	2012-05-28 17:17:03 +0000
@@ -6,11 +6,13 @@
   <xs:complexType name="FeederAudit">
     <xs:complexContent>
       <xs:extension base="xs:simpleAnyType">
-        <xs:attribute name="originating_system_audit" type="mlhim2:FeederAuditDetails" use="required"/>
-        <xs:attribute name="originating_system_ids" type="mlhim2:DvIdentifier" minOccurs="1" maxOccurs="unbounded"/>
-        <xs:attribute name="feeder_system_audit" type="mlhim2:FeederAuditDetails"/>
-        <xs:attribute name="feeder_system_ids" type="mlhim2:DvIdentifier" minOccurs="1" maxOccurs="unbounded"/>
-       <xs:attribute name="original_content" type="mlhim2_0:DvParsable" use="required"/>
+      <xs:sequence>
+        <xs:element name="originating_system_audit" type="mlhim2:FeederAuditDetails" use="required"/>
+        <xs:element name="originating_system_ids" type="mlhim2:DvIdentifier" minOccurs="1" maxOccurs="unbounded"/>
+        <xs:element name="feeder_system_audit" type="mlhim2:FeederAuditDetails"/>
+        <xs:element name="feeder_system_ids" type="mlhim2:DvIdentifier" minOccurs="1" maxOccurs="unbounded"/>
+       <xs:element name="original_content" type="mlhim2_0:DvParsable" use="required"/>
+      </xs:sequence> 
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
@@ -18,12 +20,14 @@
   <xs:complexType name="FeederAuditDetails">
     <xs:complexContent>
       <xs:extension base="xs:simpleAnyType">
-        <xs:attribute name="system_id" type="mlhim2:DvIdentifier"/>
-        <xs:attribute name="provider" type="mlhim2:PartyIdentified"/>
-        <xs:attribute name="location" type="mlhim2:Slot"/>
-        <xs:attribute name="time" type="mlhim2_0:DvDateTime"/>
-        <xs:attribute name="subject" type="mlhim2:PartyProxy"/>
-        <xs:attribute name="version_id" type="xs:string"/>
+      <xs:sequence>
+        <xs:element name="system_id" type="mlhim2:DvIdentifier"/>
+        <xs:element name="provider" type="mlhim2:PartyIdentified"/>
+        <xs:element name="location" type="mlhim2:Slot"/>
+        <xs:element name="time" type="mlhim2_0:DvDateTime"/>
+        <xs:element name="subject" type="mlhim2:PartyProxy"/>
+        <xs:element name="version_id" type="xs:string"/>
+      </xs:sequence> 
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
@@ -31,7 +35,7 @@
   <xs:complexType abstract="true" name="Locatable">
     <xs:complexContent>
       <xs:extension base="xs:simpleAnyType">
-        <xs:attribute name="feeder_audit" type="mlhim2:FeederAudit"/>
+        <xs:element name="feeder_audit" type="mlhim2:FeederAudit"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
@@ -39,12 +43,12 @@
   <xs:complexType name="Attestation">
     <xs:complexContent>
       <xs:extension base="mlhim2:Locatable">
-        <xs:attribute name="attested_view" type="mlhim2:DvMedia"/>
-        <xs:attribute name="proof" type="mlhim2:DvParsable"/>
-        <xs:attribute name="reason" type="mlhim2:DvCodedString"/>
-        <xs:attribute name="committer" type="mlhim2:PartyProxy" use="required"/>
-        <xs:attribute name="time_commmitted" type="mlhim2:DvDateTime" use="required"/>
-        <xs:attribute name="is_pending" type="xs:boolean"/>
+        <xs:element name="attested_view" type="mlhim2:DvMedia"/>
+        <xs:element name="proof" type="mlhim2:DvParsable"/>
+        <xs:element name="reason" type="mlhim2:DvCodedString"/>
+        <xs:element name="committer" type="mlhim2:PartyProxy" use="required"/>
+        <xs:element name="time_commmitted" type="mlhim2:DvDateTime" use="required"/>
+        <xs:element name="is_pending" type="xs:boolean"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
@@ -52,11 +56,13 @@
   <xs:complexType name="Participation">
     <xs:complexContent>
       <xs:extension base="xs:simpleAnyType">
-        <xs:attribute name="performer" type="mlhim2:PartyProxy" use="required"/>
-        <xs:attribute name="function" type="mlhim2_0:DvCodedString" use="required"/>
-        <xs:attribute name="mode" type="mlhim2_0:DvCodedString" use="required"/>
-        <xs:attribute name="start_time" type="mlhim2:DvDateTime"/>
-        <xs:attribute name="end_time" type="mlhim2:DvDateTime"/>
+      <xs:sequence>
+        <xs:element name="performer" type="mlhim2:PartyProxy" use="required"/>
+        <xs:element name="function" type="mlhim2_0:DvCodedString" use="required"/>
+        <xs:element name="mode" type="mlhim2_0:DvCodedString" use="required"/>
+        <xs:element name="start_time" type="mlhim2:DvDateTime"/>
+        <xs:element name="end_time" type="mlhim2:DvDateTime"/>
+      </xs:sequence>  
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
@@ -65,7 +71,9 @@
   <xs:complexType abstract="true" name="PartyProxy">
     <xs:complexContent>
       <xs:extension base="mlhim2:Locatable">
-        <xs:attribute name="external_ref" type="mlhim2DvURI"/>
+      <xs:sequence>
+        <xs:element name="external_ref" type="mlhim2DvURI"/>
+      </xs:sequence>  
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
@@ -73,8 +81,10 @@
   <xs:complexType name="PartyIdentified">
     <xs:complexContent>
       <xs:extension base="mlhim2:PartyProxy">
-        <xs:attribute name="party_name" type="xs:string"/>
-        <xs:attribute name="identities" type="mlhim2_0:DvIdentifier"/>
+      <xs:sequence>
+        <xs:element name="party_name" type="xs:string"/>
+        <xs:element name="identities" type="mlhim2:DvIdentifier"/>
+      </xs:sequence>  
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
@@ -88,8 +98,10 @@
   <xs:complexType abstract="true" name="ExceptionalValue">
     <xs:complexContent>
       <xs:extension base="xs:simpleAnyType">
-        <xs:attribute name="ev_name" fixed="Exceptional Value" type="xs:string"/>
-        <xs:attribute name="ev_meaning" fixed="The value is somehow outside the bounds of what was expected." type="xs:string"/>
+      <xs:sequence>
+        <xs:element name="ev_name" fixed="Exceptional Value" type="xs:string"/>
+        <xs:element name="ev_meaning" fixed="The value is somehow outside the bounds of what was expected." type="xs:string"/>
+      </xs:sequence>  
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
@@ -97,12 +109,14 @@
   <xs:complexType name="NI">
     <xs:complexContent>
       <xs:restriction base="ExceptionalValue">
-        <xs:attribute name="ev_name" fixed="No Information" type="xs:string"/>
-        <xs:attribute name="ev_meaning" fixed="The value is exceptional (missing, omitted, incomplete,
+      <xs:sequence>
+        <xs:element name="ev_name" fixed="No Information" type="xs:string"/>
+        <xs:element name="ev_meaning" fixed="The value is exceptional (missing, omitted, incomplete,
 improper). No information as to the reason for being an
 exceptional value is provided. This is the most general
 exceptional value. It is also the default exceptional value
 " type="xs:string"/>
+      </xs:sequence>
       </xs:restriction>
     </xs:complexContent>
   </xs:complexType>
@@ -110,8 +124,9 @@
   <xs:complexType name="MSK">
     <xs:complexContent>
       <xs:restriction base="mlhim2:NI">
-        <xs:attribute name="ev_name" fixed="Masked" type="xs:string"/>
-        <xs:attribute name="ev_meaning" fixed="There is information on this item available but it has not been
+      <xs:sequence>
+        <xs:element name="ev_name" fixed="Masked" type="xs:string"/>
+        <xs:element name="ev_meaning" fixed="There is information on this item available but it has not been
 provided by the sender due to security, privacy or other
 reasons. There may be an alternate mechanism for gaining
 access to this information.
@@ -122,6 +137,7 @@
 circumstances where it is necessary to inform the receiver
 that the information does exist without providing any detail
 " type="xs:string"/>
+      </xs:sequence>
       </xs:restriction>
     </xs:complexContent>
   </xs:complexType>
@@ -129,8 +145,10 @@
   <xs:complexType name="INV">
     <xs:complexContent>
       <xs:restriction base="mlhim2:NI">
-        <xs:attribute name="ev_name" fixed="Invalid" type="xs:string"/>
-        <xs:attribute name="ev_meaning" fixed="The value as represented in the instance is not a member of the set of permitted data values in the constrained  value domain of a variable." type="xs:string"/>
+      <xs:sequence>
+        <xs:element name="ev_name" fixed="Invalid" type="xs:string"/>
+        <xs:element name="ev_meaning" fixed="The value as represented in the instance is not a member of the set of permitted data values in the constrained  value domain of a variable." type="xs:string"/>
+      </xs:sequence>
       </xs:restriction>
     </xs:complexContent>
   </xs:complexType>
@@ -138,8 +156,10 @@
   <xs:complexType name="DER">
     <xs:complexContent>
       <xs:restriction base="mlhim2:INV">
-        <xs:attribute name="ev_name" fixed="Derived" type="xs:string"/>
-        <xs:attribute name="ev_meaning" fixed="An actual value may exist, but it must be derived from the provided information; usually an expression is provided directly." type="xs:string"/>
+      <xs:sequence>
+        <xs:element name="ev_name" fixed="Derived" type="xs:string"/>
+        <xs:element name="ev_meaning" fixed="An actual value may exist, but it must be derived from the provided information; usually an expression is provided directly." type="xs:string"/>
+      </xs:sequence>
       </xs:restriction>
     </xs:complexContent>
   </xs:complexType>
@@ -147,8 +167,10 @@
   <xs:complexType name="UNC">
     <xs:complexContent>
       <xs:restriction base="mlhim2:INV">
-        <xs:attribute name="ev_name" fixed="Unencoded" type="xs:string"/>
-        <xs:attribute name="ev_meaning" fixed="No attempt has been made to encode the information correctly but the raw source information is represented, usually in free text" type="xs:string"/>
+      <xs:sequence>
+        <xs:element name="ev_name" fixed="Unencoded" type="xs:string"/>
+        <xs:element name="ev_meaning" fixed="No attempt has been made to encode the information correctly but the raw source information is represented, usually in free text" type="xs:string"/>
+      </xs:sequence>
       </xs:restriction>
     </xs:complexContent>
   </xs:complexType>
@@ -156,8 +178,10 @@
   <xs:complexType name="OTH">
     <xs:complexContent>
       <xs:restriction base="mlhim2:INV">
-        <xs:attribute name="ev_name" fixed="Other" type="xs:string"/>
-        <xs:attribute name="ev_meaning" fixed="The actual value is not a member of the permitted data values in the variable. (e.g., when the value of the variable is not  by the coding system)	" type="xs:string"/>
+      <xs:sequence>
+        <xs:element name="ev_name" fixed="Other" type="xs:string"/>
+        <xs:element name="ev_meaning" fixed="The actual value is not a member of the permitted data values in the variable. (e.g., when the value of the variable is not  by the coding system)	" type="xs:string"/>
+      </xs:sequence>
       </xs:restriction>
     </xs:complexContent>
   </xs:complexType>
@@ -165,8 +189,10 @@
   <xs:complexType name="NINF">
     <xs:complexContent>
       <xs:restriction base="mlhim2:OTH">
-        <xs:attribute name="ev_name" fixed="Negative Infinity" type="xs:string"/>
-        <xs:attribute name="ev_meaning" fixed="Negative infinity of numbers" type="xs:string"/>
+      <xs:sequence>
+        <xs:element name="ev_name" fixed="Negative Infinity" type="xs:string"/>
+        <xs:element name="ev_meaning" fixed="Negative infinity of numbers" type="xs:string"/>
+      </xs:sequence>
       </xs:restriction>
     </xs:complexContent>
   </xs:complexType>
@@ -174,8 +200,10 @@
   <xs:complexType name="PINF">
     <xs:complexContent>
       <xs:restriction base="mlhim2:OTH">
-        <xs:attribute name="ev_name" fixed="Positive Infinity" type="xs:string"/>
-        <xs:attribute name="ev_meaning" fixed="Positive infinity of numbers" type="xs:string"/>
+      <xs:sequence>
+        <xs:element name="ev_name" fixed="Positive Infinity" type="xs:string"/>
+        <xs:element name="ev_meaning" fixed="Positive infinity of numbers" type="xs:string"/>
+      </xs:sequence>
       </xs:restriction>
     </xs:complexContent>
   </xs:complexType>
@@ -183,8 +211,10 @@
   <xs:complexType name="UNK">
     <xs:complexContent>
       <xs:restriction base="mlhim2:NI">
-        <xs:attribute name="ev_name" fixed="Unknown" type="xs:string"/>
-        <xs:attribute name="ev_meaning" fixed="A proper value is applicable, but not known" type="xs:string"/>
+      <xs:sequence>
+        <xs:element name="ev_name" fixed="Unknown" type="xs:string"/>
+        <xs:element name="ev_meaning" fixed="A proper value is applicable, but not known" type="xs:string"/>
+      </xs:sequence>
       </xs:restriction>
     </xs:complexContent>
   </xs:complexType>
@@ -192,8 +222,10 @@
   <xs:complexType name="ASKR">
     <xs:complexContent>
       <xs:restriction base="mlhim2:UNK">
-        <xs:attribute name="ev_name" fixed="Asked and Refused" type="xs:string"/>
-        <xs:attribute name="ev_meaning" fixed="Information was sought but refused to be provided (e.g., patient was asked but refused to answer)" type="xs:string"/>
+      <xs:sequence>
+        <xs:element name="ev_name" fixed="Asked and Refused" type="xs:string"/>
+        <xs:element name="ev_meaning" fixed="Information was sought but refused to be provided (e.g., patient was asked but refused to answer)" type="xs:string"/>
+      </xs:sequence>
       </xs:restriction>
     </xs:complexContent>
   </xs:complexType>
@@ -201,8 +233,10 @@
   <xs:complexType name="NASK">
     <xs:complexContent>
       <xs:restriction base="mlhim2:UNK">
-        <xs:attribute name="ev_name" fixed="Not Asked" type="xs:string"/>
-        <xs:attribute name="ev_meaning" fixed="This information has not been sought (e.g., patient was not asked)." type="xs:string"/>
+      <xs:sequence>
+        <xs:element name="ev_name" fixed="Not Asked" type="xs:string"/>
+        <xs:element name="ev_meaning" fixed="This information has not been sought (e.g., patient was not asked)." type="xs:string"/>
+      </xs:sequence>
       </xs:restriction>
     </xs:complexContent>
   </xs:complexType>
@@ -210,8 +244,10 @@
   <xs:complexType name="QS">
     <xs:complexContent>
       <xs:restriction base="mlhim2:UNK">
-        <xs:attribute name="ev_name" fixed="Sufficient Quantity" type="xs:string"/>
-        <xs:attribute name="ev_meaning" fixed="The specific quantity is not known, but is known to non-zero and it is not specified because it makes up the bulk of the material; 'Add 10mg of ingredient X, 50mg of ingredient Y and sufficient quantity of water to 100mL.'" type="xs:string"/>
+      <xs:sequence>
+        <xs:element name="ev_name" fixed="Sufficient Quantity" type="xs:string"/>
+        <xs:element name="ev_meaning" fixed="The specific quantity is not known, but is known to non-zero and it is not specified because it makes up the bulk of the material; 'Add 10mg of ingredient X, 50mg of ingredient Y and sufficient quantity of water to 100mL.'" type="xs:string"/>
+      </xs:sequence>
       </xs:restriction>
     </xs:complexContent>
   </xs:complexType>
@@ -219,8 +255,10 @@
   <xs:complexType name="TRC">
     <xs:complexContent>
       <xs:restriction base="mlhim2:UNK">
-        <xs:attribute name="ev_name" fixed="Trace" type="xs:string"/>
-        <xs:attribute name="ev_meaning" fixed="The content is greater or less than zero but too small to be quantified." type="xs:string"/>
+      <xs:sequence>
+        <xs:element name="ev_name" fixed="Trace" type="xs:string"/>
+        <xs:element name="ev_meaning" fixed="The content is greater or less than zero but too small to be quantified." type="xs:string"/>
+      </xs:sequence>
       </xs:restriction>
     </xs:complexContent>
   </xs:complexType>
@@ -228,8 +266,10 @@
   <xs:complexType name="ASKU">
     <xs:complexContent>
       <xs:restriction base="mlhim2:UNK">
-        <xs:attribute name="ev_name" fixed="Asked but Unknown" type="xs:string"/>
-        <xs:attribute name="ev_meaning" fixed="Information was sought but not found (e.g., patient was asked but did not know)." type="xs:string"/>
+      <xs:sequence>
+        <xs:element name="ev_name" fixed="Asked but Unknown" type="xs:string"/>
+        <xs:element name="ev_meaning" fixed="Information was sought but not found (e.g., patient was asked but did not know)." type="xs:string"/>
+      </xs:sequence>
       </xs:restriction>
     </xs:complexContent>
   </xs:complexType>
@@ -237,8 +277,10 @@
   <xs:complexType name="NAV">
     <xs:complexContent>
       <xs:restriction base="mlhim2:ASKU">
-        <xs:attribute name="ev_name" fixed="Not Available" type="xs:string"/>
-        <xs:attribute name="ev_meaning" fixed="Information is unavailable at this time but is expected that it will be available later." type="xs:string"/>
+      <xs:sequence>
+        <xs:element name="ev_name" fixed="Not Available" type="xs:string"/>
+        <xs:element name="ev_meaning" fixed="Information is unavailable at this time but is expected that it will be available later." type="xs:string"/>
+      </xs:sequence>
       </xs:restriction>
     </xs:complexContent>
   </xs:complexType>
@@ -246,8 +288,10 @@
   <xs:complexType name="NA">
     <xs:complexContent>
       <xs:restriction base="mlhim2:NI">
-        <xs:attribute name="ev_name" fixed="Not Applicable" type="xs:string"/>
-        <xs:attribute name="ev_meaning" fixed="No proper value is applicable in this context e.g.,the number of cigarrettes smoked per day by a non-smoker subject." type="xs:string"/>
+      <xs:sequence>
+        <xs:element name="ev_name" fixed="Not Applicable" type="xs:string"/>
+        <xs:element name="ev_meaning" fixed="No proper value is applicable in this context e.g.,the number of cigarrettes smoked per day by a non-smoker subject." type="xs:string"/>
+      </xs:sequence>
       </xs:restriction>
     </xs:complexContent>
   </xs:complexType>
@@ -255,8 +299,10 @@
   <xs:complexType name="LA">
     <xs:complexContent>
       <xs:restriction base="mlhim2:ExceptionalValue">
-        <xs:attribute name="ev_name" default="Locally Added" type="xs:string"/>
-        <xs:attribute name="ev_meaning" default="Must be changed locally to be meaningful." type="xs:string"/>
+      <xs:sequence>
+        <xs:element name="ev_name" default="Locally Added" type="xs:string"/>
+        <xs:element name="ev_meaning" default="Must be changed locally to be meaningful." type="xs:string"/>
+      </xs:sequence>
       </xs:restriction>
     </xs:complexContent>
   </xs:complexType>