mapResourcesToLabeledCSV

fun mapResourcesToLabeledCSV(resources: List<Resource>?, fhirPathExpression: String, label: String, matchAllExtraConditions: Boolean? = false, vararg extraConditions: Any? = emptyArray()): String

This function transform the provided resources into a list of label given that the fhirPathExpression for each of the resources is evaluated to true.

Example: To retrieve a list of household member icons, find Patients aged 5yrs and below then return Comma Separated Values of 'CHILD' (to be serialized into ServiceMemberIcon) for each.