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
FetchResourceRequestConfig-
FetchTerminologyCallbackTo 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
FetchTerminologyRequestConfig-
FhirContextRepresents a contextual FHIR resource reference passed during app launch.
IdentifierParameter-
InputParametersInput parameters for the $populate operation
IssuesParameter-
OutputParametersOutput parameters for the $populate operation
PopulateQuestionnaireParams-
PopulateResult-
QuestionnaireRefParameter-
ResponseParameter-

Functions

FunctionDescription
isCanonicalParameterRe-exports type predicate and population functions for SDC operations. Use these exports to access type guards and population logic from a single entry point.
isContextParameterRe-exports type predicate and population functions for SDC operations. Use these exports to access type guards and population logic from a single entry point.
isInputParametersRe-exports type predicate and population functions for SDC operations. Use these exports to access type guards and population logic from a single entry point.
isOutputParametersRe-exports type predicate and population functions for SDC operations. Use these exports to access type guards and population logic from a single entry point.
isSubjectParameterRe-exports type predicate and population functions for SDC operations. Use these exports to access type guards and population logic from a single entry point.
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.