Michael Engel wrote:

>Hello,
>
>I am currently work on implementing the reference model in java. I have
>noticed an issue that I would like to get resolution on. While looking over
>the RM.DATA_TYPES.BASIC package in RM.DATA_TYPES(Revision 1.8) and comparing
>it to the HTML Model Tree, generated by Eiffel, I noticed something. In the
>model tree there is a data type called CANONICAL_FRAGMENT which is not in
>the 1.8 Revision. The CANONICAL_FRAGMENT has a description of "Abstract
>parent type of all concrete data value types". What is the pupose of the
>CANONICAL_FRAGMENT and what is the class desctiption? Also, what is the
>projected timeframe on updating the documentation to reflect this and any
>other changes?
>  
>
This class just provides routines to read in and output data type 
instances in a standard tagged format, which is now XML (some years ago 
in GeHR, we used another format). It is really only important for 
implementation - not for the standard. However, I strongly recommend 
that we do standardise our XML tagged form of data types instances. This 
will be done formally through the release of a data types XSD soon. For 
the moment, you can use as a guide the comments on the implementation of 
these routines in the Eiffel classes. For example, in DV_QUANTITY, you 
can see:

    make_from_canonical_string(str:STRING) is
            -- make from string of form:
            -- <magnitude>real</magnitude>
            -- <units>string</units>
            -- [<accuracy>real</accuracy>
            -- <accuracy_is_percent>boolean</accuracy_is_percent>]
            -- <precision>integer</precision>

hope this helps.

>Thank you for you time.
>
>Mike Engel
>
>engelme at vvm dot com
>
>P.S. I am very impressed and thankful for all of the work that OpenEHR
>Foundation and Community is giving to the international community.
>
>-
>If you have any questions about using this list,
>please send a message to d.lloyd at openehr.org
>
>
>  
>
deferred class CANONICAL_FRAGMENT

inherit
    XML_TOOLS
        export {NONE} all
    end
   
feature -- Initialization
   
    make_from_canonical_string(str:STRING) is
        require
            String_exists: str /= Void and then valid_canonical_string(str)
        deferred
        end
       
feature -- Status Report

    valid_canonical_string(str: STRING): BOOLEAN is
            -- True if str contains required tags
        deferred
        end

feature -- Output

    as_canonical_string: STRING is
            -- standardised form of string guaranteed to contain all 
information
            -- in data item
        deferred
        ensure
            Result_exists: Result /= Void
        end
   
end


-- 
___________________________________________________________________________________
CTO Ocean Informatics (http://www.OceanInformatics.biz)
Hon. Research Fellow, University College London

openEHR (http://www.openEHR.org)
Archetypes (http://www.oceaninformatics.biz/adl.html)
Community Informatics (http://www.deepthought.com.au/ci/rii/Output/mainTOC.html)


-
If you have any questions about using this list,
please send a message to d.lloyd at openehr.org

Reply via email to