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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
build()
void
setExpander
(ValueSetExpander expander) void
setPrebuiltQuestionnaire
(Questionnaire prebuiltQuestionnaire) void
setProfile
(StructureDefinition profile) void
setQuestionnaire
(Questionnaire questionnaire) void
setQuestionnaireId
(String questionnaireId) void
setReference
(Resource resource) void
setResponse
(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
-