Stream: questionnaire
Topic: How to define a hyperlink attributes into an item ?
SAM TSAI (Nov 10 2021 at 19:44):
How to define a hyperlink attributes into an item(display or question ) ?
The intention is to render a link in an item (display or question).
How/where to store those Hyperlink info into the Assessment JSON ?
For example, an assessment need a link:
Welcome to this Health Survey
Please click the following link if more detail info needed.
<<Link to learn more page>>
Q1: What is your age range :
…..
Brian Postlethwaite (Nov 11 2021 at 03:44):
I expect that should be a markdown extension on a display item.
SAM TSAI (Nov 11 2021 at 04:04):
Like this ?
{
"code": [
{
"code": "BTCMed5",
"display": "Assess for medication adherence and risks of taking and stopping medication."
}
],
"text": "Assess for medication adherence and risks of taking and stopping medication.",
"type": "display",
"linkId": "BTCMed5",
"required": false,
"answerOption": [],
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/rendering-markdown",
"value" : "[This is an external link to genome.gov] (https://www.genome.gov/)"
}
],
},
Brian Postlethwaite (Nov 11 2021 at 06:29):
That looks about right, I'd have to test it though.
Last updated: Apr 12 2022 at 19:14 UTC