Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ function usePopulate(spinner: RendererSpinner, onStopSpinner: () => void): void
}

setIsPopulated(true);

populateQuestionnaire({
questionnaire: sourceQuestionnaire,
fetchResourceCallback: fetchResourceCallback,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export interface PopulateResult {
* @property fhirContext - An array of contextual resources within a launch. See https://build.fhir.org/ig/HL7/smart-app-launch/scopes-and-launch-context.html#fhircontext-exp
* @property fetchTerminologyCallback - A callback function to fetch terminology resources, optional
* @property fetchTerminologyRequestConfig - Any request configuration to be passed to the fetchTerminologyCallback i.e. headers, auth etc., optional
* @property timeoutMs - Timeout in milliseconds for the $populate operation, default is 10000ms (10 seconds)
* @property timeoutMs - Timeout in milliseconds for the $populate operation, default is 30000ms (30 seconds)
*
* @author Sean Fong
*/
Expand Down Expand Up @@ -103,7 +103,7 @@ export async function populateQuestionnaire(params: PopulateQuestionnaireParams)
fhirContext,
fetchTerminologyCallback,
fetchTerminologyRequestConfig,
timeoutMs = 10000
timeoutMs = 30000
} = params;

const { inputParameters } = await initialiseInputParameters(
Expand Down
Loading