Resource Mapper
Maps a QuestionnaireResponse to FHIR resources and vice versa.
The process of converting QuestionnaireResponse s to other FHIR resources is called extraction. The reverse process of converting existing FHIR resources to QuestionnaireResponse s to be used to pre-fill the UI is called population.
This class supports Definition-based extraction , StructureMap-based extraction , and expression-based population .
See the developer guide for more information.
Functions
Link copied to clipboard
suspend fun extract(questionnaire: <ERROR CLASS>, questionnaireResponse: <ERROR CLASS>, structureMapExtractionContext: StructureMapExtractionContext? = null): <ERROR CLASS>
Content copied to clipboard
Extract FHIR resources from a questionnaire and questionnaireResponse.
Link copied to clipboard
suspend fun populate(questionnaire: <ERROR CLASS>, vararg resources: <ERROR CLASS>): <ERROR CLASS>
Content copied to clipboard
Performs Expression-based population and returns a QuestionnaireResponse for the questionnaire that is populated from the resources.