OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

saf message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [saf] RelatedSymptoms proposed schema


Could you do this… (see yellow highlited)?

 

    <xsd:complexType name="Symptom_Type">

        <xsd:sequence>

            <xsd:element name="SymptomId" type="xsd:anyURI"/>

            <xsd:element name="SymptomType" type="xsd:anyURI"/>

            <xsd:element name="CreationDate" type="xsd:dateTime"/>

            <xsd:element name="Confidence" type="sym:ConfidenceType"/>

            <xsd:element name="Reporter" type="xsd:anyURI"/>

            <xsd:element name="Subject" type="xsd:anyURI"/>

            <xsd:element name="ExpirationDate" type="xsd:dateTime" minOccurs="0" maxOccurs="1"/>

            <xsd:element name="IssuedPrescription" type="xsd:anyURI" minOccurs="0" maxOccurs="unbounded"/>

            <!-- removed: <xsd:element name="ProbableCause" type="xsd:anyURI" minOccurs="0" maxOccurs="unbounded"/> -->

            <xsd:element name="RelatedSymptoms" type="sym:RelatedSymptomType" minOccurs="0" maxOccurs="unbounded" />

            <xsd:element name="Content" type="sym:ContentType" minOccurs="0" maxOccurs="1"/>

        </xsd:sequence>

    </xsd:complexType>

 

    <xsd:simpleType name="RelationshipType">

        <xsd:restriction base="xsd:string">

            <xsd:enumeration value="Causal"/>

            <xsd:enumeration value="Supersedes"/>

            <xsd:enumeration value="Repetition"/>

            <xsd:enumeration value="Other"/>

        </xsd:restriction>

    </xsd:simpleType>

   

    <xsd:complexType name="RelatedSymptomType">

      <xsd:attribute name="Relationship" type="sym:RelationshipType" />

      <xsd:sequence>

      <xsd:element name="RelatedSymptomId" type="xsd:anyURI"/>

</xsd:sequence>

    </xsd:complexType>

 

 

From: Stavros.Isaiadis@uk.fujitsu.com [mailto:Stavros.Isaiadis@uk.fujitsu.com]
Sent: Monday, February 14, 2011 11:10 AM
To: saf@lists.oasis-open.org
Subject: [saf] RelatedSymptoms proposed schema

 

Hi all,

 

Since we seem to have reached consensus for adding a "RelatedSymptoms" field to Symptom, here is a portion of the proposed schema for the relevant type and the updated Symptom schema:

 

    <xsd:complexType name="Symptom_Type">

        <xsd:sequence>

            <xsd:element name="SymptomId" type="xsd:anyURI"/>

            <xsd:element name="SymptomType" type="xsd:anyURI"/>

            <xsd:element name="CreationDate" type="xsd:dateTime"/>

            <xsd:element name="Confidence" type="sym:ConfidenceType"/>

            <xsd:element name="Reporter" type="xsd:anyURI"/>

            <xsd:element name="Subject" type="xsd:anyURI"/>

            <xsd:element name="ExpirationDate" type="xsd:dateTime" minOccurs="0" maxOccurs="1"/>

            <xsd:element name="IssuedPrescription" type="xsd:anyURI" minOccurs="0" maxOccurs="unbounded"/>

            <!-- removed: <xsd:element name="ProbableCause" type="xsd:anyURI" minOccurs="0" maxOccurs="unbounded"/> -->

            <xsd:element name="RelatedSymptoms" type="sym:RelatedSymptomsType" minOccurs="0" maxOccurs="1" />

            <xsd:element name="Content" type="sym:ContentType" minOccurs="0" maxOccurs="1"/>

        </xsd:sequence>

    </xsd:complexType>

 

    <xsd:simpleType name="RelationshipType">

        <xsd:restriction base="xsd:string">

            <xsd:enumeration value="Causal"/>

            <xsd:enumeration value="Supersedes"/>

            <xsd:enumeration value="Repetition"/>

            <xsd:enumeration value="Other"/>

        </xsd:restriction>

    </xsd:simpleType>

   

    <xsd:complexType name="RelatedSymptomsType">

        <xsd:sequence>

            <xsd:element ref="sym:RelatedSymptomType" minOccurs="0" maxOccurs="unbounded"/>

        </xsd:sequence>

    </xsd:complexType>

 

    <xsd:complexType name="RelatedSymptomType">

      <xsd:attribute name="Relationship" type="sym:RelationshipType" />

      <xsd:sequence>

      <xsd:element name="RelatedSymptomId" type="xsd:anyURI"/>

</xsd:sequence>

    </xsd:complexType>

 

 

What do you think? Also, can someone verify that this is valid (Vivian?). I think we can build along these lines the specification.

 

One last thing: we will have to rethink the whole "IssuedPrescriptions" concept cause some aspects are a bit fuzzy right now...

 

Cheers,

 

Stavros

 

______________________________________________________________________
                                        
 Fujitsu Laboratories of Europe Limited
 Hayes Park Central, Hayes End Road, Hayes, Middlesex, UB4 8FE
 Registered No. 4153469
 
 This e-mail and any attachments are for the sole use of addressee(s) and
 may contain information which is privileged and confidential. Unauthorised
 use or copying for disclosure is strictly prohibited. The fact that this
 e-mail has been scanned by Trendmicro Interscan does not guarantee that 
 it has not been intercepted or amended nor that it is virus-free.

 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]