Function: populate()
populate(
parameters
,fetchResourceCallback
,fetchResourceRequestConfig
,terminologyCallback
?,terminologyRequestConfig
?):Promise
<OutputParameters
|OperationOutcome
>
Executes the SDC Populate Questionnaire operation - $populate. Input and output specific parameters conformant to the SDC populate specification. Can be deployed as a $populate microservice.
This function expects a nice set of populate input parameters to go. If you do you not have them, use https://github.com/aehrc/smart-forms/blob/main/packages/sdc-populate/src/inAppPopulation/utils/populateQuestionnaire.ts#L82 instead.
Parameters
Parameter | Type |
---|---|
parameters | InputParameters |
fetchResourceCallback | FetchResourceCallback |
fetchResourceRequestConfig | any |
terminologyCallback ? | FetchResourceCallback |
terminologyRequestConfig ? | any |
Returns
Promise
<OutputParameters
| OperationOutcome
>
See
https://hl7.org/fhir/uv/sdc/OperationDefinition-Questionnaire-populate.html Added custom output parameters populationContextResults for visual and debugging purposes.