Converts a Column containing codes into a Column that contains a LOINC Coding struct.
tx_to_loinc_coding(coding_column, version = NULL)A Column containing a Coding struct.
The Coding struct Column can be used as an input to terminology functions such as
tx_member_of and tx_translate. Please note that inside
sparklyr verbs such as mutate the functions calls need to be preceded with
!!, e.g: !!tx_to_coding(CODE, SNOMED_URI).
Other terminology helpers:
tx_to_coding(),
tx_to_ecl_value_set(),
tx_to_snomed_coding()
if (FALSE) { # \dontrun{
condition_df <- pathling_spark(pc) %>% sparklyr::copy_to(conditions)
# Convert codes to LOINC codings.
# Equivalent to: tx_to_coding(CODE, "http://loinc.org")
condition_df %>% sparklyr::mutate(loincCoding = !!tx_to_loinc_coding(CODE), .keep = 'none')
} # }