On 28/09/2017 18:21, Dileep V S wrote:
Hi,
I need to record the frequency of occurrence of an event.Typical
readings will be like 2/day, 5/week, 1/month etc.In archetype editor I
could not find a suitable property to use under quantity. The count
also does not work as it does not have a unit associated. Please
advise the best approach.
Also what is the difference between Duration and Quantity with time
property? Both seem to be doing the same.
Duration in openEHR is represented in ISO8601 string format, and is
usually used for representing 'social time' durations, including with
more than one unit, e.g, '2 years, 3 months and 20 days', '39 weeks 4
days' and so on.
DV_QUANTITY with units of time enables the representation of any time,
but with only a single unit at a time, e.g. 501.3 ns. There is no unit
such as 'month' since months are not regular units, just customary
pseudo-units.
Theoretically there is some overlap, but practically speaking I have
never seen it cause a problem. Conversion between the two forms if
needed is easy enough in any programming environment.
- thomas
_______________________________________________
openEHR-technical mailing list
[email protected]
http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org