Skip to main content

@aehrc/sdc-template-extract

Interfaces

InterfaceDescription
CustomDebugInfoParameter-
ExtractResult-
FetchQuestionnaireCallbackTo 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
FetchQuestionnaireRequestConfig-
FetchQuestionnaireResolver-
FhirPatchParameterEntry-
FhirPatchParametersInterface representing a https://build.fhir.org/fhirpatch.html
InAppExtractOutput-
InputParametersInput parameters for the $extract operation
IssuesParameter-
OutputParametersOutput parameters for the $extract operation
ReturnParameter-
TemplateExtractDebugInfo-
TemplateExtractPathJsObject-
TemplateExtractValueEvaluationResult of evaluating a valueExpression from the templateExtractValue extension. e.g. "item.where(linkId = 'family').answer.value.first()""Doe"

Type Aliases

Type AliasDescription
QuestionnaireOrCallback-
TemplateExtractPathJsObjectTuple-

Functions

FunctionDescription
canBeTemplateExtractedChecks whether a Questionnaire or any of its items contains a valid sdc-questionnaire-templateExtract extension with a required template slice. Array.prototype.some() is short-circuiting, so it will return true as soon as it finds a valid extension.
createInputParametersCreate input parameters to be passed to sdc-template-extract extract(). Questionnaire parameter is optional. Refer to https://build.fhir.org/ig/HL7/sdc/OperationDefinition-QuestionnaireResponse-extract.html.
extract-
extractResultIsOperationOutcome-
inAppExtractAn abstraction layer over the SDC extract() function, which implements the $extract operation.
logTemplateExtractPathMapFullLogs a summary table of all extractable context and value paths from a given template. Useful for debugging or inspecting the structure of a TemplateExtractPath map.
logTemplateExtractPathMapJsObjectFull-
logTemplateExtractPathMapJsObjectResults-
logTemplateExtractPathMapResultsLogs a simplified table showing only the entry path, evaluated context result, and the evaluated value result for each extractable template path.
objIsTemplateExtractDebugInfo-
parametersIsFhirPatch-