← Prev in month ← Prev in thread

Changes to HAVE Schemas to do Value List stuff

From
Ham, Gary A <>
Date
2007-02-27T19:52:33+00:00
ID
Thread
Changes to HAVE Schemas to do Value List stuff
Replace the current 
TriageCount Element with:

 

 <complexType 
name="TriageCount">
  <sequence>
     
<element name="TriageCode" type="ValueListType"/>  

     <element name="TriageCountQty" 
type="integer"/>
  </sequence> 
 </complexType>

 

 

Added the following 
types:

 

   <simpleType 
name="ValueListUrnType">
        
<restriction base="anyURI"/>
   
</simpleType>

 

   <complexType 
name="ValueListType">
    
  <sequence>
      
  <element name="ValueListUrn" type="ValueListUrnType" 
/>
        <element name="Value" 
type="string" maxOccurs="unbounded"/>
    
  </sequence>
  
 </complexType>

Add the 
following schema as a list to be managed:

 

<?xml 
version="1.0"?>
<schema xmlns = "http://www.w3.org/2001/XMLSchema"
   
targetNamespace = 
"urn:oasis:names:tc:emergency:have:1.1:triagecolorcode"
   xmlns:tc 
= "urn:oasis:names:tc:emergency:have:1.1:triagecolorcode"
   
xmlns:xsd = "http://www.w3.org/2001/XMLSchema"
   
elementFormDefault = "qualified"
   attributeFormDefault = 
"unqualified">

 

  
<simpleType 
name="TriageColorCode"> 
          
<restriction base = 
"string">
                    
<enumeration value = "Red"/> 

                    
<enumeration value = 
"Yellow"/>
                    
<enumeration value = 
"Green"/>
                    
<enumeration value = 
"Black"/>
                  
</restriction>
            
</simpleType>

 

    </simpleType>

 

</schema>

Example 
entry:

 

<TriageCount>

   
<TriageCode>

      
<ValueListUrn>urn:oasis:names:tc:emergency:have:1.1:triagecolorcode</ValueListUrn>

      
<Value>Red</Value>

   
<TriageCode>

   
<TriageCountQty>15</TriageCountQty>

</TriageCount>

 

 

 

Does this 
work????

 

Gary A. Ham 

Senior Research Scientist

Battelle Memorial Institute

540-288-5611 (office)

703-869-6241 
(cell)

"If nobody uses it, it ain't a 
standard."
← Prev in month ← Prev in thread