
Package org.hl7.fhir.r5.utils
Class QuestionnaireBuilder
java.lang.Object
org.hl7.fhir.r5.utils.QuestionnaireBuilder
This class takes a profile, and builds a questionnaire from it
If you then convert this questionnaire to a form using the
XMLTools form builder, and then take the QuestionnaireResponse
this creates, you can use QuestionnaireInstanceConvert to
build an instance the conforms to the profile
FHIR context:
conceptLocator, codeSystems, valueSets, maps, client, profiles
You don"t have to provide any of these, but
the more you provide, the better the conversion will be
- Author:
- Grahame
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuild()voidsetExpander(ValueSetExpander expander) voidsetPrebuiltQuestionnaire(Questionnaire prebuiltQuestionnaire) voidsetProfile(StructureDefinition profile) voidsetQuestionnaire(Questionnaire questionnaire) voidsetQuestionnaireId(String questionnaireId) voidsetReference(Resource resource) voidsetResponse(QuestionnaireResponse response)
-
Constructor Details
-
QuestionnaireBuilder
-
-
Method Details
-
getReference
-
setReference
-
getProfile
-
setProfile
-
getQuestionnaire
-
setQuestionnaire
-
getResponse
-
setResponse
-
getQuestionnaireId
-
setQuestionnaireId
-
getPrebuiltQuestionnaire
-
setPrebuiltQuestionnaire
-
getExpander
-
setExpander
-
build
- Throws:
org.hl7.fhir.exceptions.FHIRException
-