tx_to_coding | R Documentation |
Converts a Column containing codes into a Column that contains a Coding struct.
tx_to_coding(coding_column, system, version = NULL)
coding_column |
The Column containing the codes. |
system |
The URI of the system the codes belong to. |
version |
The version of the code system. |
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)
.
A Column containing a Coding struct.
Other terminology helpers:
tx_to_ecl_value_set()
,
tx_to_loinc_coding()
,
tx_to_snomed_coding()
## Not run:
condition_df <- pathling_spark(pc) %>% sparklyr::copy_to(conditions)
# Convert codes to ICD-10 codings.
condition_df %>% sparklyr::mutate(
icdCoding = !!tx_to_coding(CODE, "http://hl7.org/fhir/sid/icd-10"), .keep = 'none'
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.