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
– “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.
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:[email protected]] On
Behalf Of Dileep V S
Sent: Friday, 29 September 2017 3:21 AM
To: For openEHR technical discussions <[email protected]>
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
[https://drive.google.com/uc?id=0BxQc41y9yqs6bkE5a1JQQVBjZG8]Duration and
Dileep V S
Founder
HealtheLife Ventures LLP
m:
+91 9632888113
a:
103, Innovation Centre, IIIT, Electronics City, Bangalore 560100
w:
healthelife.in<http://healthelife.in/> e:
[email protected]<mailto:[email protected]>
_______________________________________________
openEHR-technical mailing list
[email protected]
http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org