mapResourceToLabeledCSV

fun mapResourceToLabeledCSV(resource: Resource, fhirPathExpression: String, label: String): String

Transforms a resource into label if the fhirPathExpression is evaluated to true.

Example: To retrieve the icon for household member who is a child, evaluate their age to be less than 5years, if 'true' return 'CHILD' (to be serialized to ServiceMemberIcon)