Stream: cds hooks
Topic: Thumbnails
Travis Cummings (Dec 07 2017 at 17:22):
I am trying to support a CDS hooks scenario of a information campaign. For example, a flu vaccination campaign. It would be ideal if the card could visually contain the thumbnail and a link to download the PDF. I could place the thumbnail as the source.icon and the PDF as either the source.url or the links[x].url, but this probably isn't scemantically appropriate. Would this usage of the card be too far out-of-bounds?
Travis Cummings (Dec 07 2017 at 17:23):
{
"summary": "Flu Vaccination Flyer",
"indicator": "info",
"detail": "It's flu season! Please help us and pass this flier to your patients.",
"source": {
"label": "CDC...",
"url": "https://example.com/fluvaccination.pdf",
"icon": "https://example.com/fluvaccination_thumbnail.png"
},
"links": [
{
"label": "Flu Vaccination Flyer",
"url": "https://example.com/fluvaccination.pdf",
"type": "absolute"
}
]
}
Kevin Shekleton (Dec 07 2017 at 18:37):
Did you consider leveraging the (Github Flavored) Markdown detail
field to better communicate this?
Last updated: Apr 12 2022 at 19:14 UTC