Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finding start and end time for infused drugs from the eICU infusionDrug table #230

Open
lasiadhi opened this issue Aug 22, 2023 · 5 comments

Comments

@lasiadhi
Copy link

In the infusion drug table, we have only one timestamp: infusionOffset (see table schema below). I am wondering how to find the start and end offset time for each infused drug in the table.
image

It is not clear if the given infusionOffset is for the start of the infusion or the end of the infusion. Assuming it is the endoffset time, I am wondering how to calculate the start offset using drugRate, infusionRate, drugAmount, or/and volumeOfFluid, etc. Since a patient can have multiple records of the same drug, it is not clear if it is completed/stopped/in progress before the next drug entry. See the example below for the patientUnitStayID = 242380:

image

Please let me know if you have any idea how to use/read this eICU-infusion drug table to find start and end times. Thank you!

@jraffa
Copy link
Contributor

jraffa commented Aug 23, 2023

Hi @lasiadhi,

I think we need to do some more work understanding this. @obadawi may be able to provide insight here.

For most of the studies we have conducted thus far we have focused on presence/absence of drugs, but knowing dosage/duration is of course important too. Working through your example, I would read it this way (keep in mind, I could be wrong!):

  1. Heparin appears to be started at 59min and ends 22 hours later. There are 10 hours @ 1000 units/hr, 4h @ 1100, 8h @ 1300. After which it goes to zero. The total amount given almost equals the initial drugamount (24800 vs 25000). The infusionrates are all some multiple of the drug rates, and the weighted sum of the infusion rates is pretty close to the total volumeoffluid.
  2. Nitroglycerin starts and stops at the same times (plus a 946 entry) as heparin. The first six hours have 3 hours @ 10mcg/min and 3h @ 20mcg/min, going to zero after that for a period of time. The drug amount is probably in mg (50mg), and these rates over the six hours equates with 54mg. So the infusion has 'run out of drug' and it's not surprising that it is zero. It appears to be restarted at a lower rate, which I presume means a new vial, and stops a while later without running out (it still has 28mg left, if I had to guess). The drugrates and infusionrates are proportional, but it's unclear to me how it corresponds to the volumeoffluid (perhaps NS is documented in another table?).

The precision of the measurements and offsets is largely going to depend on the way the data is collected. If this is charted data, then it's not surprising that everything is done at hourly intervals, and the numbers only roughly work out. If the data is automatically collected, then the durations are probably much more accurate. AFAIK there is no way to determine which is the case, other than exploring the data and drawing your own inferences.

Indeed, the data is difficult to work with. I would recommend focusing on a single hospital and a single drug first, and then trying to generalize to other hospitals and other drugs.

Jesse

@lasiadhi
Copy link
Author

Thank you very much @jraffa for the explanation and for taking the time to do all the calculations! I really appreciate it.

In the Nitroglycerin example, as you mentioned, the patient got 3 hours @ 10mcg/min and 3h @ 20mcg/min. That means the total drug amount given was 5400 mcg within 6 hours. If I am correct, that is equal to 5.4mg (?) (not 54mg). Then I am not sure how to relate that to the 50mg drug amount.

Anyway, I will go through more examples as you recommended. This is very helpful. Thank you, Jesse!

-- Lasith

@lasiadhi
Copy link
Author

lasiadhi commented Sep 6, 2023

Hi @jraffa, @alistairewj , @obadawi and all,

If we revisit the Heparin example above, the infusion starts at 59min and ends at 1379min according to the infusionDrug table. However, if we look at the same patient stay in the medication table (see below), the Heparin drug was started at 19min and ended at 1425min.
Which offset time should be considered more reliable for determining the start and end of this drug? Are there any other concerns related to time offsets in the medication table for infused drugs? Thank you!

image

@obadawi
Copy link
Contributor

obadawi commented Sep 8, 2023 via email

@lasiadhi
Copy link
Author

Thanks, Omar (@obadawi) for the explanation! This is very helpful to understand the big picture here and how these tables are linked to each other. I believe the last Heparin 5000 UNIT/ML order [not cancelled] is not in the infusionDrug table because it was not continuously administered (?). Thanks again! -- Lasith

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants