Skip to main content

@aehrc/sdc-populate

Interfaces

InterfaceDescription
CustomContextResultParameter-
FetchResourceCallbackTo define a method to fetch resources from the FHIR server with a given query string Method should be able to handle both absolute urls and query strings
IdentifierParameter-
InputParametersInput parameters for the $populate operation
IssuesParameter-
OutputParametersOutput parameters for the $populate operation
PopulateQuestionnaireParams-
PopulateResult-
QuestionnaireRefParameter-
ResponseParameter-

Functions

FunctionDescription
isCanonicalParameter-
isContextParameter-
isInputParametersChecks if the parameters passed satisfies the conditions of populateInputParameters.
isOutputParameters-
isSubjectParameter-
populateExecutes the SDC Populate Questionnaire operation - $populate. Input and output specific parameters conformant to the SDC populate specification. Can be deployed as a $populate microservice.
populateQuestionnairePerforms 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.