Function: populateQuestionnaire()
populateQuestionnaire(
params
):Promise
<object
>
Performs an in-app population of the provided questionnaire. By in-app, it means that a callback function is provided to fetch resources instead of it calling to a $populate service. This function helps to you create a nice set of populate input parameters from the provided params. If you already have them, use https://github.com/aehrc/smart-forms/blob/main/packages/sdc-populate/src/SDCPopulateQuestionnaireOperation/utils/populate.ts#L842 instead.
Parameters
Parameter | Type | Description |
---|---|---|
params | PopulateQuestionnaireParams | Refer to PopulateQuestionnaireParams interface |
Returns
Promise
<object
>
populateSuccess - A boolean indicating if the population was successful
populateResult - An object containing populated response and issues if any
populateResult
populateResult:
PopulateResult
|null
populateSuccess
populateSuccess:
boolean