tx_property_of | R Documentation |
Takes a Coding column as its input. Returns a Column that contains the values of properties for this coding with specified names and types. The type of the result column depends on the types of the properties. Primitive FHIR types are mapped to their corresponding SQL primitives. Complex types are mapped to their corresponding structs.
tx_property_of(
coding,
property_code,
property_type = "string",
accept_language = NULL
)
coding |
A Column containing a struct representation of a Coding. |
property_code |
The code of the property to retrieve. |
property_type |
The type of the property to retrieve. |
accept_language |
The optional language preferences for the returned property values. Overrides the parameter 'accept_language' in 'PathlingContext.create'. |
The Column containing the result of the operation (array of property values).
PropertyType
Pathling documentation - Retrieving properties
Other terminology functions:
tx_display()
,
tx_member_of()
,
tx_subsumed_by()
,
tx_subsumes()
,
tx_translate()
## Not run:
# Get the (first) value of the `inactive` property of the first coding of the Condition resource.
pc %>% pathling_example_resource('Condition') %>%
sparklyr::mutate(id,
is_inavtive = (!!tx_property_of(code[['coding']][[0]],
"inactive",PropertyType$BOOLEAN))[[0]],
.keep='none'
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.