detect.overlapping.events | R Documentation |
Merge overlapping admissions so that days are not counted twice.
detect.overlapping.events( daoh.event.dt, patient.id.col.name = "PRIM_HCU.IDencrypted", index.event.id.col.name = "index.event.id", admission.start.col.name = "EVSTDATE", admission.end.col.name = "EVENDATE", daoh.period.start.col.name = "daoh.period.start", daoh.period.end.col.name = "daoh.period.end", merge.event.id.col.name = "merge.event.id" )
daoh.event.dt |
A data.table with patient identifier, index event identifier, and all admission found within the DAOH period of that index event, generated by prune.events.to.period occurred. Will be modified by reference to have a new column grouping overlapping sets of events. |
patient.id.col.name |
Character name of the patient identifier column (Default: 'PRIM_HCU.IDencrypted') |
index.event.id.col.name |
Character name of the index event identifier column (Default: 'index.event.id') |
admission.start.col.name |
Character name of the column containing admission start dates (Default: 'EVSTDATE') |
admission.end.col.name |
Character name of the column containing admission end dates (Default: 'EVENDATE') |
daoh.period.start.col.name |
Character name of the column that will be generated in index.op.dt to contain the start of each DAOH period (Default: 'daoh.period.start') |
daoh.period.end.col.name |
Character name of the column that will be generated in index.op.dt to contain the end of each DAOH period (Default: 'daoh.period.end') |
merge.event.id.col.name |
Character name of the column that will be populated with unique identifiers of overlapping events (Default: 'merge.event.id') |
The modified input daoh.event.dt data.table, with a new column with a unique identifier for each overlapping group of admissions (in column merge.event.id.col.name). The input will be modified by reference, so it's not strictly necessary to use the output.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.