On 28/03/2012 03:01, pablo pazos wrote:
>
>
> Consider this ER scenario: a BP value could be recorded each 30" or 
> so, and the system could be used 1. for many patients, 2. by many 
> users, 3. on the same machine.

this is most likely a 1-event-per-Observation scenario. I realise it is 
not always obvious when to use which recording approach! But the other 
design aspect of a COMPOSITION is that it is a 'single health system 
event for the patient'. Here it sounds like 1 nursing observation every 
30 mins. Therefore we would expect 1 COMPOSITION for each one, each 
containing one OBSERVATION, containing one EVENT.

>
> The problem is when an item is commited, it should be as a part of a 
> COMPOSITION (?), so if a nurse want to record a second take of a BP 
> she is monitoring, and of course she wants to see the current recorded 
> values for that series, another COMPOSITION should be created only for 
> that value (or not?).

if I understand correctly, you want to generate a time-based plot for 
e.g. last few hours' measurements. In that case, use an AQL query to get 
all the Observations based on BP (or whatever archetype) in a certain 
time frame. You can get just the systolic and diastolic values if you want.

e.g.

SELECT obs/path/to/*systolic*/value/magnitude, 
obs/path/to/*diastolic*/value/magnitude
FROM e EHR [ehr_id = $ehr_id] CONTAINS comp 
COMPOSITION[openEHR-EHR-COMPOSITION.nursing_obs.v1] obs 
OBSERVATION[openEHR-EHR-OBSERVATION.bp_measurement.v1]
WHERE comp/context/start_time > current_time() - P24h
*
* I would have to double check if I have the syntax completely right 
(and I put fake paths in the SELECT part), but this will return a table 
of systolic and diastolic pressure values (Reals) from BP measurements 
inside nursing observations, for the last 24h. The real paths are below:



- thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.openehr.org/pipermail/openehr-technical_lists.openehr.org/attachments/20120328/6b54aaed/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cadggeac.png
Type: image/png
Size: 18491 bytes
Desc: not available
URL: 
<http://lists.openehr.org/pipermail/openehr-technical_lists.openehr.org/attachments/20120328/6b54aaed/attachment-0001.png>

Reply via email to