[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: 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
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]