extract
suspend fun extract(questionnaire: <ERROR CLASS>, questionnaireResponse: <ERROR CLASS>, structureMapExtractionContext: StructureMapExtractionContext? = null): <ERROR CLASS>
Content copied to clipboard
Extract a FHIR resource from the questionnaire and questionnaireResponse.
This method supports both Definition-based and StructureMap-based extraction.
StructureMap-based extraction will be invoked if the Questionnaire declares a targetStructureMap extension otherwise Definition-based extraction is used. StructureMap-based extraction will fail and an empty Bundle will be returned if the structureMapProvider is not passed.
Return
Bundle containing the extracted Resources or empty Bundle if the extraction fails. An exception might also be thrown in a few cases
Parameters
structure Map Provider
The IWorkerContext may be used along with StructureMapUtilities to parse the script and convert it into StructureMap.