You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried using link_ae_inpatient to join some ecds data with sus data. I have an incident-specific patient identifier that I would like to keep in the linked dataset, so I used the record_id = argument.
Error in data.table::fifelse(is.na(NULL), NULL, NULL) :
attempt to set an attribute on NULL
This seems to be because within the function code, line 474 (copied below) is expecting list ae to be 7-element long, but in this case we include also record_id, so it's an 8-element list.
But it would be good for this line of code to be robust enough to cover scenarios with and without record_id = argument in the link_ae_inpatient lists.
The text was updated successfully, but these errors were encountered:
I tried using
link_ae_inpatient
to join some ecds data with sus data. I have an incident-specific patient identifier that I would like to keep in the linked dataset, so I used therecord_id =
argument.This results in the following error:
This seems to be because within the function code, line 474 (copied below) is expecting list
ae
to be 7-element long, but in this case we include alsorecord_id
, so it's an 8-element list.ids
returns:So then in the for loop that follows (copied below),
fifelse(is.na(departure_date.ae), ...
doesn't finddeparture_date.ae
and the function breaks.I patched this in my code by changing line 474 to the following:
But it would be good for this line of code to be robust enough to cover scenarios with and without
record_id =
argument in thelink_ae_inpatient
lists.The text was updated successfully, but these errors were encountered: