Hello, I am trying to set up the timeline module as it seems to fit perfectly with what I am trying to accomplish.

Basically I am working on an electronic health record for my area of specialty - breast cancer. One of the things that we would like to visualize (and analyze, but that is another matter) is the event timeline of a patient's diagnosis of their breast cancer. To that end I have set up several CCK content types - one is the central patient node, then there are nodes for diagnostic imaging (mammograms, ultra-sounds, etc), pathology (biopsy, surgery, etc), treatment (chemotherapy, radiotherapy, others) and all of these content types have dates that are available for each node.

Some nodes have start and end dates (e.g. a pathology report starts the day that the sample is taken and ends the day that the report is verified and available). Some nodes have fixed timepoints (chemotherapy treatments last minutes and not weeks). All nodes do have a date no matter what.

The way that I have organized the web application based on Drupal is that each patient has their own "node". Every node is identified by the hospital chart number. This allows me to create a view (displayed by a viewfield) that will display the data that is associated with the node titles that match the patient node titles.

What I would like to do is have a timeline that displays on a per node basis the dates (duration events, non-duration events, etc) that are associated with the main patient node. That way it would be easy to visualize the entire timeline that is associated with a patient being diagnosed, treated and followed up for their breast cancer. I have views that properly display the associated nodes for each CCK content type - so the views end is doable.

Any ideas if this is possible within the timeline module ? What is the best direction to take to achieve this?

Comments

xamanu’s picture

Status: Active » Fixed

Hello,

you already wrote everything on how to resolve your problem! If the (list) view is displaying every node you want to see respecting your node references, everything should work with the timeline as well.
You can easily map the date fields within the timeline views settings. If there is no "to"-date provided (or it is the same or before the "From"-date) the timeline would display the event as a non-duration event. Only if a valid To-date is specified you'll get the event displayed as a duration event.
Please make sure that you use the same(!!!) date-field for all of you different node types.

I hope I could help.

(BTW this is not the forum)

sphopkins’s picture

Thanks for the reply. I am never sure the best place to post things - some want it here, some want it in the forums. I will look in the forums for more information but I will also take your reply into consideration.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.