Adam,
As previously requested, provide us an example (one will do) of an archetype
failing, we can then work out why.

Heath

> -----Original Message-----
> From: openehr-technical-bounces at openehr.org [mailto:openehr-technical-
> bounces at openehr.org] On Behalf Of Adam Flinton
> Sent: Monday, 10 November 2008 1:37 AM
> To: Rong Chen
> Cc: Java OpenEHR; For openEHR technical discussions
> Subject: Re: Is originalAuthor required?
> 
> Rong Chen wrote:
> > Hi Adam, Heath
> >
> > The attribute in question, original_author is an attribute of Class
> > RESOURCE_DESCRIPTION from rm.common.resource package. According to the
> > specs (common_im.pdf), the type is Hash<String,String> NOT a string
> > and the invariant on it is "Original_author_valid: original_author /=
> > Void and then not original_author.is_empty".
> >
> > The Java implementation (see below) of this invariant is, I believe,
> > faithful interpretation of the specs.
> >
> >     if (originalAuthor == null || originalAuthor.size() == 0 ) {
> >         throw new IllegalArgumentException("null or empty
> > originalAuthor");
> >     }
> >
> > The thing I am not sure here is the XML schema. If the schema is not
> > compliant with the RM specs, perhaps the schema should be updated so
> > the parsing code generated from schema can catch errors like this,
> > thoughts?
> >
> Any idea then which is right?
> 
> I can chuck you our ADL > XML ant task so you can look at all the
> various errors against a given set of our ADL held on the openEHR svn.
> 
> 
> Adam
> 
> ***********************************************************************
> This  message  may  contain  confidential and  privileged  information.
> If you  are not the  intended recipient  you should not  disclose, copy
> or distribute information in this e-mail or take any action in reliance
> on its contents.  To do so is strictly  prohibited and may be unlawful.
> Please  inform  the  sender that  this  message has  gone astray before
> deleting it.  Thank you.
> 
> 2008 marks the 60th anniversary of the NHS.  It's an opportunity to pay
> tribute to the NHS staff and volunteers who help shape the service, and
> celebrate their achievements.
> 
> If you work for the NHS  and  would like  an NHSmail  email account, go
> to: www.connectingforhealth.nhs.uk/nhsmail
> ***********************************************************************
> 
> _______________________________________________
> openEHR-technical mailing list
> openEHR-technical at openehr.org
> http://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-technical
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 3498 bytes
Desc: not available
URL: 
<http://lists.openehr.org/mailman/private/openehr-technical_lists.openehr.org/attachments/20081112/09270902/attachment.dat>

Reply via email to