Dear Heather, For frequency, use the Frequency property and the {Qualified real/Time} > Unit. This will display a popup where you choose one unit from the left > column and one from the right. Select ‘1’ from the left and the unit of > your choice (eg wk) from the right – this allows you to say a frequency > like 5/week, where ‘5’ will be the quantity value recorded in the system
I tested this, but feel is is not the most elegant way. The unit part shows up as 1/d, 1/wk, 1/mo (for /day, /week & /month respectively). While recording values you have to select a number and one of the units. So if I have to record 5/week, the composition will have magnitude as '5' and unit as '1/wk'. The UI will need to do some manipulation/mapping to present an elegant view to the user (1/wk >/week). A more elegant method would be a ability to mark units as /d, /wk, /mo etc. regards Dileep V S *Founder* HealtheLife Ventures LLP m: +91 9632888113 a: 103, Innovation Centre, IIIT, Electronics City, Bangalore 560100 w: healthelife.in e: dil...@healthelife.in On Fri, Sep 29, 2017 at 2:57 AM, Heather Leslie < heather.les...@oceanhealthsystems.com> wrote: > Hi Dileep, > > > > For frequency, use the Frequency property and the {Qualified real/Time} > Unit. This will display a popup where you choose one unit from the left > column and one from the right. Select ‘1’ from the left and the unit of > your choice (eg wk) from the right – this allows you to say a frequency > like 5/week, where ‘5’ will be the quantity value recorded in the system > > > > Re Quantity>Time vs Duration – the relevant section of the specs are here: > > - QUANTITY: http://www.openehr.org/releases/RM/latest/docs/data_ > types/data_types.html#_dv_quantity_class > > <http://www.openehr.org/releases/RM/latest/docs/data_types/data_types.html#_dv_quantity_class> > – “Can also be used for time durations, where it is more convenient to > treat these as simply a number of seconds rather than days, months, years.” > - DURATION: http://www.openehr.org/releases/RM/latest/docs/data_ > types/data_types.html#_dv_duration_class > > <http://www.openehr.org/releases/RM/latest/docs/data_types/data_types.html#_dv_duration_class>. > In practice we model duration mostly – for example to record age of a > person or duration of an operation. > > > > I can only recall modelling Time using the Quantity data type in one > archetype – http://www.openehr.org/ckm/#showArchetype_1013.1.44 - for the > specifications of how a stimulus has been set up in an audiometer. I’m > honestly not sure if this is a good use case as it has had no collaborative > review but it definitely seemed not to fit the proper use of duration as a > period of time with respect to a notional point in time. I’m interested in > other’s views as to whether they agree or not. > > > > And others might have other use cases I’m not aware of. > > If someone can document simply and succinctly the difference, with use > cases, I’d be grateful for the clarification too. It’s not easy. > > > > Regards > > > > Heather > > > > *From:* openEHR-technical [mailto:openehr-technical- > boun...@lists.openehr.org] *On Behalf Of *Dileep V S > *Sent:* Friday, 29 September 2017 3:21 AM > *To:* For openEHR technical discussions <openehr-technical@lists. > openehr.org> > *Subject:* Suitable data type to record frequency of something happening > > > > 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. > > > > regards > > Duration and > > Dileep V S > > *Founder* > > *HealtheLife Ventures LLP* > > m: > > +91 9632888113 > > a: > > 103, Innovation Centre, IIIT, Electronics City, Bangalore 560100 > > w: > > healthelife.in e: dil...@healthelife.in > > > > _______________________________________________ > openEHR-technical mailing list > openEHR-technical@lists.openehr.org > http://lists.openehr.org/mailman/listinfo/openehr- > technical_lists.openehr.org >
_______________________________________________ openEHR-technical mailing list openEHR-technical@lists.openehr.org http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org