I have defined an expression (i.e. Summary) and have been trying to display this "Summary" in the response card but unsuccessful. In fact, I kept getting a string "Object object" in place of the "${Summary}" in the response card (see attached screenshot). Can you please show me how you can display the content of the Summary in the response card? Thank you all very much.
{
"id": "aspire_medication_service_v1",
"hook": "medication-prescribe",
"title": "ASPIRE - MEDICATION SERVICE",
"description": "ASPIRE CDS Service that provides guidance to the prescriber if the patient is at least 65 years of age and is on FRIDs medication.",
"_config": {
"cards": [{
"conditionExpression": "InPopulation",
"card": {
"summary": "Summary: ${Summary}",
"indicator": "info",
"detail": "Returned Recommendation: ${Recommendation}",
"source": {
"label": "CDS Connect: Fall Prevention Risk Factor - Medication Service",
},
"suggestions": "${On Fall Risk Increasing Drugs (FRIDs)}",
"selectionBehavior" : "at-most-one",
"extension": {
"grade": "${RecommendationGrade}",
"rationale": "${Rationale}"
},
"error":"Error: ${Error}"
}
}],
"cql": {
"library": {
"id": "ASPIREMedicationService",
"version": "1"
}
}
}
}
define "Report Active FRIDS":
"Fall Risk Increasing Drugs Within 180 Days" FRIDS
return {
Type: 'Statement',
Name: ConceptText(FRIDS.medication as FHIR.CodeableConcept),
Start: MedicationStatementDate(FRIDS),
End: DateTimeText((FRIDS.effective as FHIR.Period)."end"),
Status: FRIDS.status.value
}
sort by Start desc, End desc