Strange use of 'offset' as a settable RM attribute

Heath Frankel heath.frankel at
Sun Feb 14 14:02:15 EST 2016

Hi Koray,
This is a constraint on the value that origin function returns rather than indicating it is a settable attribute. This was how Sam defined the events on an apgar score, 1 min, 5 min, etc.



From: Ian McNicoll <ian at<mailto:ian at>>
Sent: Sunday, February 14, 2016 5:10 AM
Subject: Re: Strange use of 'offset' as a settable RM attribute
To: For openEHR technical discussions <openehr-technical at<mailto:openehr-technical at>>

Hi Koray,

I agree - can you create a JIRA PR at ...


Dr Ian McNicoll
mobile +44 (0)775 209 7859<tel:+44%20775%20209%207859>
office +44 (0)1536 414994<tel:+44%201536%20414994>
skype: ianmcnicoll
email: ian at<mailto:ian at>
twitter: @ianmcnicoll

Co-Chair, openEHR Foundation ian.mcnicoll at<mailto:ian.mcnicoll at>
Director, freshEHR Clinical Informatics Ltd.
Director, HANDIHealth CIC
Hon. Senior Research Associate, CHIME, UCL

On 12 February 2016 at 04:29, Koray Atalag <k.atalag at<mailto:k.atalag at>> wrote:

We noted it is possible to set values from AE/TD to a RM attribute named "offset"
In the specs<> (looked at >1.0.1) it is not a regular attribute but a function which returns a computed value using diff HISTORY.origin and EVENT.time
Note that this diff can also be a negative value - which doesn't seem to be supported by AE/TD or in instance data

An example ADL:

POINT_EVENT[at0002] occurrences matches {0..*} matches {        -- Any event
               offset matches {
                              DV_DURATION matches {
                                             value matches {|PT0.125S|}

Isn't this weird?
I would expect this to return a value if a valid ISO8601 time has been entered for both HISTORY.origin and EVENT.time but not set as an attribute directly.



openEHR-technical mailing list
openEHR-technical at<mailto:openEHR-technical at>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the openEHR-technical mailing list