Hi Graham,

If I'm understanding you correctly, you want your Timelines to use units of 
hours for very young patients, then units of days, weeks, years, decades, as 
the patient ages. Yes?

I think a simple answer is for you to write Javascript that will set up the 
Timeline to use the different units depending on the value of (latest_event - 
earliest_event). If the difference is less than a day, use units of hours. Less 
than a week, use units of days, etc.

Just do some browser side analysis of the events before creating the Timeline 
and loading the events. I do this for my project.
Or you could do the analysis on the server, but why bother doing that when the 
browsers have perfectly good computers at their disposal.

Of course, if you have clusters of events that you want to use hot_zones for, 
that'd require additional sw.
Eg, for each event other than birth and death, look to see the number of events 
that are "nearby", then if too many, create a hot_zone that will "zoom in" on 
that section of time. Or look for  "hospital checkin" and "checkout" events and 
expand the time in between.

All of the above seems pretty straight forward to me. None of it requires 
changes to the Timeline library, just client sw.

If you want more help, then I'm available to your company for the standard 
consulting fee.

Regards,

Larry




________________________________
From: Graham Chiu <[email protected]>
To: [email protected]
Sent: Thursday, January 1, 2009 8:15:45 PM
Subject: Date ranges


I've read the wiki on date ranges
http://simile.mit.edu/wiki/Timeline/Date_Ranges

Would it not be possible to pass the date range definition in the data
file instead ( of course that might mean a significant refactoring of
the code base ... )

What I am looking to do is construct timelines for patients who's ages
may vary from hours to decades, and I wish to create a timeline which
fits onto one screen so that scrolling is not necessary ( like the
life of Monet exemplar ).

-- 
Graham Chiu
http://www.synapsedirect.com
Synapse - the use from anywhere EMR.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to