Skip to main content

Function: getSectionHeading()

getSectionHeading(questionnaire, targetLinkId, tabs): string | null

Returns the section heading text for a given linkId in a questionnaire, used to label tab sections.

Parameters

ParameterTypeDescription
questionnaireQuestionnaireThe FHIR Questionnaire to search through.
targetLinkIdstringThe linkId of the target item.
tabsTabsTab definitions used to match section headings.

Returns

string | null

The section heading text if found, otherwise null.