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
clinical_feature_*() functions produce hard to read error messages.
When chaining several functions the message become very long and truncates the useful part.
Current behaviour
> clinical_feature_last(
+ TherapyEpisode(conSQLite, "4d611fc8886c23ab047ad5f74e5080d7"),
+ observation_code = "doesnotexist",
+ hours = 24
+ )
Error in .clinical_investigation_code_validate(conn = x@conn, observation_code = observation_code, :
Some `observation_code` were not found in the database: 'doesnotexist'
chaining:
> clinical_feature_last(
+ TherapyEpisode(conSQLite, "4d611fc8886c23ab047ad5f74e5080d7"),
+ observation_code = "doesnotexist",
+ hours = 24
+ ) %>%
+ clinical_feature_last(
+ TherapyEpisode(conSQLite, "4d611fc8886c23ab047ad5f74e5080d7"),
+ observation_code = "8310-5",
+ hours = 24
+ )
Error in h(simpleError(msg, call)) :
error in evaluating the argument 'x' in selecting a method for function 'clinical_feature_last': Some `observation_code` were not found in the database: 'doesnotexist'
Desired behaviour
> clinical_feature_last(
+ TherapyEpisode(conSQLite, "4d611fc8886c23ab047ad5f74e5080d7"),
+ observation_code = "doesnotexist",
+ hours = 24
+ )
Error: Some `observation_code` were not found in the database: 'doesnotexist'
chaining:
> clinical_feature_last(
+ TherapyEpisode(conSQLite, "4d611fc8886c23ab047ad5f74e5080d7"),
+ observation_code = "doesnotexist",
+ hours = 24
+ ) %>%
+ clinical_feature_last(
+ TherapyEpisode(conSQLite, "4d611fc8886c23ab047ad5f74e5080d7"),
+ observation_code = "8310-5",
+ hours = 24
+ )
Error: Some `observation_code` were not found in the database: 'doesnotexist'
The text was updated successfully, but these errors were encountered:
clinical_feature_*()
functions produce hard to read error messages.When chaining several functions the message become very long and truncates the useful part.
Current behaviour
chaining:
Desired behaviour
chaining:
The text was updated successfully, but these errors were encountered: