Skip to content

Automating EICU/ Antibiotics: tsuspicion calculation in seconds not in minutes #3

@MedNoun

Description

@MedNoun

In the following line of code, the difference is calculated between the offsets difference and 24*3600 which seems to be a comparison to 24 hours.

ABX_BC_pid_offset.loc[(ABX_BC_pid_offset['drugorderoffset'] < ABX_BC_pid_offset['culturetakenoffset']) & (ABX_BC_pid_offset['culturetakenoffset'] - ABX_BC_pid_offset['drugorderoffset'] <= 24 * 3600), 'tSuspicion'] = pd.DataFrame([ABX_BC_pid_offset['culturetakenoffset'], ABX_BC_pid_offset['drugorderoffset']]).min()

From what I understood, the data is from the eicu database. And according to its documentation, the time is calculated in minutes. so it should be 24*60.
If not could you please clarify?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions