View raw Markdown
type: fhirpath-functionfunction: joincategory: Additional String Functionssection: 5.7.7source: fhirpath/functions.json

FHIRPath Function: join

{:.stu}

The join function takes a collection of strings and joins them into a single string, optionally using the given separator. {:.stu}

If the input is empty, the result is empty. {:.stu}

If no separator is specified, the strings are directly concatenated. {:.stu}

The following example illustrates the behavior of the .join operator: {:.stu}

('A' | 'B' | 'C').join() // 'ABC'
('A' | 'B' | 'C').join(',') // 'A,B,C'

{:.stu}

Summary

Description

Combines the elements in the input collection into a single string, separated by separator. If no separator is specified, the elements are concatenated directly.

Arguments

Type Mapping

Example

{'a', 'b', 'c'}.join(',') // 'a,b,c'
{'a', 'b', 'c'}.join() // 'abc'