Subject:Base type definition does not have any attributes Author:Dan Uhlar Date:14 Dec 2007 02:57 PM
I am working with 3rd Party Schema (HL7.org V3).
When I validate via Stylus Studio i receive the following...
Validating FICR_MT600101UV01.xsd...
... Base type definition does not have any attributes
... Recurse: There is not a complete functional mapping between the particles
I actually receive 33 of the Recurse errors for each one of the HL7 messages that I attempt to validate.
The base type error references this type...
<xs:complexType name="CV">
<xs:annotation>
<xs:documentation>
Coded data, consists of a code, display name, code system,
and original text. Used when a single code value must be sent.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:restriction base="CE">
<xs:sequence>
<xs:element name="originalText" type="ED" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>
The text or phrase used as the basis for the coding.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="translation" type="CD" minOccurs="0" maxOccurs="0"/>
</xs:sequence>
<xs:attribute name="code" type="cs" use="optional">
<xs:annotation>
<xs:documentation>
The plain code symbol defined by the code system.
For example, "784.0" is the code symbol of the ICD-9
code "784.0" for headache.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="codeSystem" type="uid" use="optional">
<xs:annotation>
<xs:documentation>
Specifies the code system that defines the code.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="codeSystemName" type="st" use="optional">
<xs:annotation>
<xs:documentation>
A common name of the coding system.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="codeSystemVersion" type="st" use="optional">
<xs:annotation>
<xs:documentation>
If applicable, a version descriptor defined
specifically for the given code system.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="displayName" type="st" use="optional">
<xs:annotation>
<xs:documentation>
A name or title for the code, under which the sending
system shows the code value to its users.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
The Recurse error references this type:
<xs:complexType mixed="true" name="adxp.country">
<xs:complexContent>
<xs:restriction base="ADXP">
<xs:attribute name="partType" type="AddressPartType" fixed="CNT"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
These errors also disallow the use of the XSLT Mapper in Stylus Studio.
Because I do not own this schema I cannot modify it. Is there a way to "get around"/resolve these issues externally?
Subject:Base type definition does not have any attributes Author:(Deleted User) Date:17 Dec 2007 03:35 AM
Hi Dan,
the snippet you posted doesn't help understanding what's wrong (the complex type adxp.country derives from ADXP, but the other declaration is for type CV, derived from CE). Could you send the (zipped) whole set of schemas to stylus-field-report@progress.com?