View raw Markdown
type: sdc-pagesource: sdc/input/pagecontent/StructureDefinition-sdc-questionnaire-templateExtract-intro.md

SDC: StructureDefinition-sdc-questionnaire-templateExtract-intro

Using this extension marks the point in a questionnaire at which a new resource will be created using the template-based extraction process.

<a name="scope"></a>

Scope and Usage

When defined at the root of a questionnaire, the resource will be created even if there are no answers, and then iteratively processing the template properties will populate any further properties not covered by the base template.

When defined on a repeating item, a new resource will be created for each iteration of the item in the QuestionnaireResponse answers, if there is no answer in the QuestionnaireResponse, then no resource is created.

Before this extension is processed, any sdc-questionnaire-allocateId extensions will be processed.

Additional details on the use of this extension can be found on the Data Extraction page.

Populating the transaction bundle entry

After the resource is created, and all the properties have been extracted from the item answers in the QuestionnaireResponse, the bundle.entry properties can be populated: