Reference

Panel column expressions

Every panel column is a FHIRPath expression over the FHIR resource behind the row, plus a few date functions Awell adds to standard FHIRPath.

Every column in a panel is a FHIRPath expression, set in the column's FHIR Path field, that reads a value from the FHIR resource behind the row.

Reading the patient from a task row

A Task, Appointment or CarePlan has no patient element, so a path starting patient. is always blank. Follow the reference instead, such as for.resolve().birthDate on a Task row.

Date functions

Awell adds these functions to standard FHIRPath. No other non-standard functions are available.

FunctionWhat it returns
subtractDates(date1, date2, unit)date1 - date2 as a whole number in unit, truncated toward zero. Without a valid unit the result is in milliseconds. Returns 0 when either date is missing.
addToDate(date, quantity, unit)date shifted by quantity of unit. quantity may be negative.
addSeconds(date, seconds)date shifted by seconds
toDateFormat(date)The date as yyyy-MM-dd, without the time
toMilliseconds(date)The date as milliseconds since the Unix epoch

unit is one of 'years', 'months', 'days', 'hours', 'minutes' or 'seconds', in quotes.

A missing date gives an age of 0, which sorts like a real value. Guard the date with exists():

iif(birthDate.exists(), subtractDates(now(), birthDate, 'years'))

The result of addToDate or addSeconds can't be passed into another of these functions.

Awell data in FHIR extensions

A data point a care flow collected:

extension('https://awellhealth.com/fhir/StructureDefinition/awell-data-points').extension('<data_point_key>').valueString

The care flow ID behind a task:

extension('https://awellhealth.com/fhir/StructureDefinition/awell-task').extension('pathway-id').valueString

Next steps

Next: Build a panel, to check a column against real data before keeping it.

On this page