Wow, never thought this could be a polemic issue.
Anyway, Thomas, the archetype I found this was this one:
https://svn.connectingforhealth.nhs.uk/svn/public/nhscontentmodels/TESTING/TestRelease03/archetypes/adl/openehr/ehr/entry/observation/openEHR-EHR-OBSERVATION.Coagulation_studies.v1.adl

Cheers
Tony


On Mon, Feb 9, 2009 at 2:12 PM, Thomas Beale <
thomas.beale at oceaninformatics.com> wrote:

>
> Hi Tony,
>
> I just tested this in the latest ADL workbench, and it passes there as
> well, because we erroneously don't check the length of the string, even
> though we do have the invariant set correctly (but of course it isn't being
> executed in production copies of the system) - see
> http://www.openehr.org/svn/ref_impl_eiffel/BRANCHES/specialisation/libraries/openehr/src/am/openehr_profile/data_types/quantity/c_quantity_item.e
>
> I will correct this in the parser. Which archetype did you find this on?
>
> - thomas beale
>
> Tony Fran?a wrote:
>
> Hi all.
>  I?m working in the archetype validation alghoritm of the zilics models
> (more on this thread -->
> http://www.openehr.org/mailarchives/ref_impl_java/msg00975.html).
> I ran into a little problem, and I?d like to hear your thoughts.
>
>  The specification for the C_QUANTITY_ITEM class states that the "units"
> field is valid when:
> units_valid: units /= Void and not units.is_empty, in other (java) words:
> units != null && units.size() > 0
>
>  Ocean?s Archetype editor lets you create a Quantity Item as a Qualified
> real, without any units.
> The ADL it generates for such an item is like:
>
>  ELEMENT[at0005] occurrences matches {0..1} matches { -- INR
>  value matches {
>  C_DV_QUANTITY <
>  property = <[openehr::380]>
>  list = <
>  ["1"] = <
>  units = <"">
>  magnitude = <|>=0.0|>
>  precision = <|0|>
>  >
>  >
>  >
>  }
> }
>
>  For such an archetype, validation fails because the parsed Archetype
> object will have a CQuantityItem object having units = [empty list]
>
>  So, which one is wrong? The archetype or the validation alghorithm?
> Should I just avoid creating archetypes with Quantity items with no units?
> If so, should Archetype editor prevent the user from creating such an item?
>
>  Cheers!
> Tony L?mpada
>
> ------------------------------
> _______________________________________________
> openEHR-technical mailing listopenEHR-technical at 
> openehr.orghttp://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-technical
>
>
>
> --
>   *Thomas Beale
> Chief Technology Officer, Ocean Informatics<http://www.oceaninformatics.com/>
> *
>
> Chair Architectural Review Board, *open*EHR 
> Foundation<http://www.openehr.org/>
> Honorary Research Fellow, University College 
> London<http://www.chime.ucl.ac.uk/>
> *
> *
>
> _______________________________________________
> openEHR-technical mailing list
> openEHR-technical at openehr.org
> http://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-technical
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.openehr.org/mailman/private/openehr-technical_lists.openehr.org/attachments/20090210/ee599147/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OceanC_small.png
Type: image/png
Size: 4972 bytes
Desc: not available
URL: 
<http://lists.openehr.org/mailman/private/openehr-technical_lists.openehr.org/attachments/20090210/ee599147/attachment.png>

Reply via email to