Awell Health Developer Hub
Developer Hub
← Back to the Marketplace
Transform

Transform

Transform is an extension on Awell's Marketplace with utility functions that allows you to transform data from one type to another.
Data

title: Transform

description: Transform is an extension with utility functions that allows you to transform or parse data to a format of your liking

Transform

Transform is an extension on Awell's Marketplace with utility functions that allows you to transform data from one type to another. These functions are particularly useful e.g. when system A works with IDs that are numbers but system B works with IDs that are strings.

Custom Actions

Parse number to text

Transform or parse a number to text (string).

Parse text to number

Transform or parse text (string) to a number. Will return NaN if the input data is not an actual number.

Parse date to unix timestamp

Transform or parse a date to a unix timestamp.

Parse unix timestamp to unix date

Transform or parse a unix timestamp to a date.

Parse number to text with dictionary

Transform or parse a number to a string using a dictionary. Useful for when you have numeric data points but want to map them to strings based on a dictionary. When the action is called with a number that does not have a corresponding mapping in the provided dictionary, it simply returns the number itself as a string.

The dictionary should be structured in JSON format with string keys mapping to string values. Each key represents a number (as a string), and each value is the corresponding text representation.

Example: ```json { "0": "Male", "1": "Female", "2": "Not known", // … other number mappings … }

Pricing
Free
Custom Actions
Parse date to unix timestamp
Parse number to text
Parse text to number
Parse unix timestamp to date
Parse number to text with dictionary
Author
Awell
Version
1
Support
info@awellhealth.com

Other extensions