Class Questionnaire.GroupQuestion
- All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeElement
,ca.uhn.fhir.model.api.IElement
,ca.uhn.fhir.model.api.IIdentifiableElement
,ca.uhn.fhir.model.api.IResourceBlock
,ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions
,Serializable
,org.hl7.fhir.instance.model.api.IBase
- Enclosing class:
Questionnaire
Definition: Set of questions within this group. The order of questions within the group is relevant
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds and returns a new value for concept ()addConcept
(CodingDt theValue) Adds a given new value for concept ()addGroup()
Adds and returns a new value for group ()addGroup
(Questionnaire.Group theValue) Adds a given new value for group ()Adds and returns a new value for option ()Adds a given new value for option ()<T extends ca.uhn.fhir.model.api.IElement>
List<T> getAllPopulatedChildElementsOfType
(Class<T> theType) Gets the value(s) for concept ().Gets the first repetition for concept (), creating it if it does not already exist.getGroup()
Gets the value(s) for group ().Gets the first repetition for group (), creating it if it does not already exist.Gets the value(s) for linkId ().ca.uhn.fhir.model.primitive.StringDt
Gets the value(s) for linkId ().Gets the value(s) for option ().Gets the first repetition for option (), creating it if it does not already exist.Gets the value(s) for options ().Gets the value(s) for repeats ().ca.uhn.fhir.model.primitive.BooleanDt
Gets the value(s) for repeats ().Gets the value(s) for required ().ca.uhn.fhir.model.primitive.BooleanDt
Gets the value(s) for required ().getText()
Gets the value(s) for text ().ca.uhn.fhir.model.primitive.StringDt
Gets the value(s) for text ().getType()
Gets the value(s) for type ().ca.uhn.fhir.model.primitive.BoundCodeDt
<AnswerFormatEnum> Gets the value(s) for type ().boolean
isEmpty()
setConcept
(List<CodingDt> theValue) Sets the value(s) for concept ()setGroup
(List<Questionnaire.Group> theValue) Sets the value(s) for group ()setLinkId
(ca.uhn.fhir.model.primitive.StringDt theValue) Sets the value(s) for linkId ()Sets the value for linkId ()Sets the value(s) for option ()setOptions
(ResourceReferenceDt theValue) Sets the value(s) for options ()setRepeats
(boolean theBoolean) Sets the value for repeats ()setRepeats
(ca.uhn.fhir.model.primitive.BooleanDt theValue) Sets the value(s) for repeats ()setRequired
(boolean theBoolean) Sets the value for required ()setRequired
(ca.uhn.fhir.model.primitive.BooleanDt theValue) Sets the value(s) for required ()setText
(ca.uhn.fhir.model.primitive.StringDt theValue) Sets the value(s) for text ()Sets the value for text ()setType
(AnswerFormatEnum theValue) Sets the value(s) for type ()setType
(ca.uhn.fhir.model.primitive.BoundCodeDt<AnswerFormatEnum> theValue) Sets the value(s) for type ()Methods inherited from class ca.uhn.fhir.model.api.BaseIdentifiableElement
getElementSpecificId, getId, setElementSpecificId, setId, setId
Methods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, isBaseEmpty, setUserData
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
Methods inherited from interface ca.uhn.fhir.model.api.IIdentifiableElement
getElementSpecificId, getId, setElementSpecificId, setId, setId
-
Constructor Details
-
GroupQuestion
public GroupQuestion()
-
-
Method Details
-
isEmpty
- Specified by:
isEmpty
in interfaceorg.hl7.fhir.instance.model.api.IBase
-
getAllPopulatedChildElementsOfType
public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) - Specified by:
getAllPopulatedChildElementsOfType
in interfaceca.uhn.fhir.model.api.ICompositeElement
-
getLinkIdElement
Gets the value(s) for linkId (). creating it if it does not exist. Will not returnnull
.Definition: An identifier that is unique within the questionnaire allowing linkage to the equivalent group in a [[[QuestionnaireResponse]]] resource.
-
getLinkId
Gets the value(s) for linkId (). creating it if it does not exist. This method may returnnull
.Definition: An identifier that is unique within the questionnaire allowing linkage to the equivalent group in a [[[QuestionnaireResponse]]] resource.
-
setLinkId
Sets the value(s) for linkId ()Definition: An identifier that is unique within the questionnaire allowing linkage to the equivalent group in a [[[QuestionnaireResponse]]] resource.
-
setLinkId
Sets the value for linkId ()Definition: An identifier that is unique within the questionnaire allowing linkage to the equivalent group in a [[[QuestionnaireResponse]]] resource.
-
getConcept
Gets the value(s) for concept (). creating it if it does not exist. Will not returnnull
.Definition: Identifies a how this question is known in a particular terminology such as LOINC.
-
setConcept
Sets the value(s) for concept ()Definition: Identifies a how this question is known in a particular terminology such as LOINC.
-
addConcept
Adds and returns a new value for concept ()Definition: Identifies a how this question is known in a particular terminology such as LOINC.
-
addConcept
Adds a given new value for concept ()Definition: Identifies a how this question is known in a particular terminology such as LOINC.
- Parameters:
theValue
- The concept to add (must not benull
)
-
getConceptFirstRep
Gets the first repetition for concept (), creating it if it does not already exist.Definition: Identifies a how this question is known in a particular terminology such as LOINC.
-
getTextElement
Gets the value(s) for text (). creating it if it does not exist. Will not returnnull
.Definition: The actual question as shown to the user to prompt them for an answer.
-
getText
Gets the value(s) for text (). creating it if it does not exist. This method may returnnull
.Definition: The actual question as shown to the user to prompt them for an answer.
-
setText
Sets the value(s) for text ()Definition: The actual question as shown to the user to prompt them for an answer.
-
setText
Sets the value for text ()Definition: The actual question as shown to the user to prompt them for an answer.
-
getTypeElement
Gets the value(s) for type (). creating it if it does not exist. Will not returnnull
.Definition: The expected format of the answer, e.g. the type of input (string, integer) or whether a (multiple) choice is expected
-
getType
Gets the value(s) for type (). creating it if it does not exist. This method may returnnull
.Definition: The expected format of the answer, e.g. the type of input (string, integer) or whether a (multiple) choice is expected
-
setType
public Questionnaire.GroupQuestion setType(ca.uhn.fhir.model.primitive.BoundCodeDt<AnswerFormatEnum> theValue) Sets the value(s) for type ()Definition: The expected format of the answer, e.g. the type of input (string, integer) or whether a (multiple) choice is expected
-
setType
Sets the value(s) for type ()Definition: The expected format of the answer, e.g. the type of input (string, integer) or whether a (multiple) choice is expected
-
getRequiredElement
Gets the value(s) for required (). creating it if it does not exist. Will not returnnull
.Definition: If true, indicates that the question must be answered and have required groups within it also present. If false, the question and any contained groups may be skipped when answering the questionnaire.
-
getRequired
Gets the value(s) for required (). creating it if it does not exist. This method may returnnull
.Definition: If true, indicates that the question must be answered and have required groups within it also present. If false, the question and any contained groups may be skipped when answering the questionnaire.
-
setRequired
Sets the value(s) for required ()Definition: If true, indicates that the question must be answered and have required groups within it also present. If false, the question and any contained groups may be skipped when answering the questionnaire.
-
setRequired
Sets the value for required ()Definition: If true, indicates that the question must be answered and have required groups within it also present. If false, the question and any contained groups may be skipped when answering the questionnaire.
-
getRepeatsElement
Gets the value(s) for repeats (). creating it if it does not exist. Will not returnnull
.Definition: If true, the question may have more than one answer.
-
getRepeats
Gets the value(s) for repeats (). creating it if it does not exist. This method may returnnull
.Definition: If true, the question may have more than one answer.
-
setRepeats
Sets the value(s) for repeats ()Definition: If true, the question may have more than one answer.
-
setRepeats
Sets the value for repeats ()Definition: If true, the question may have more than one answer.
-
getOptions
Gets the value(s) for options (). creating it if it does not exist. Will not returnnull
.Definition: Reference to a value set containing a list of codes representing permitted answers for the question
-
setOptions
Sets the value(s) for options ()Definition: Reference to a value set containing a list of codes representing permitted answers for the question
-
getOption
Gets the value(s) for option (). creating it if it does not exist. Will not returnnull
.Definition: For a \"choice\" question, identifies one of the permitted answers for the question.
-
setOption
Sets the value(s) for option ()Definition: For a \"choice\" question, identifies one of the permitted answers for the question.
-
addOption
Adds and returns a new value for option ()Definition: For a \"choice\" question, identifies one of the permitted answers for the question.
-
addOption
Adds a given new value for option ()Definition: For a \"choice\" question, identifies one of the permitted answers for the question.
- Parameters:
theValue
- The option to add (must not benull
)
-
getOptionFirstRep
Gets the first repetition for option (), creating it if it does not already exist.Definition: For a \"choice\" question, identifies one of the permitted answers for the question.
-
getGroup
Gets the value(s) for group (). creating it if it does not exist. Will not returnnull
.Definition: Nested group, containing nested question for this question. The order of groups within the question is relevant
-
setGroup
Sets the value(s) for group ()Definition: Nested group, containing nested question for this question. The order of groups within the question is relevant
-
addGroup
Adds and returns a new value for group ()Definition: Nested group, containing nested question for this question. The order of groups within the question is relevant
-
addGroup
Adds a given new value for group ()Definition: Nested group, containing nested question for this question. The order of groups within the question is relevant
- Parameters:
theValue
- The group to add (must not benull
)
-
getGroupFirstRep
Gets the first repetition for group (), creating it if it does not already exist.Definition: Nested group, containing nested question for this question. The order of groups within the question is relevant
-