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

FHIRPath Function: decode

{:.stu}

The decode function takes a singleton encoded string and returns the result of decoding that string according to the given format. The format parameter defines the encoding format. Available formats are listed in the encode function (excluding 'ascii'). {:.stu}

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

If no format is specified, the result is empty. {:.stu}

Summary

Description

The decode function takes a singleton encoded string and returns the result of decoding that string according to the given format. Available formats are hex, base64, and urlbase64.

Arguments

Type Mapping

Example

'74657374'.decode('hex') // returns 'test'