Class QuestionnaireResponse.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:
QuestionnaireResponse
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 answer ()Adds a given new value for answer ()<T extends ca.uhn.fhir.model.api.IElement>
List<T> getAllPopulatedChildElementsOfType
(Class<T> theType) Gets the value(s) for answer ().Gets the first repetition for answer (), 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 ().getText()
Gets the value(s) for text ().ca.uhn.fhir.model.primitive.StringDt
Gets the value(s) for text ().boolean
isEmpty()
Sets the value(s) for answer ()setLinkId
(ca.uhn.fhir.model.primitive.StringDt theValue) Sets the value(s) for linkId ()Sets the value for linkId ()setText
(ca.uhn.fhir.model.primitive.StringDt theValue) Sets the value(s) for text ()Sets the value for text ()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: Identifies the question from the Questionnaire that corresponds to this question in the QuestionnaireResponse resource.
-
getLinkId
Gets the value(s) for linkId (). creating it if it does not exist. This method may returnnull
.Definition: Identifies the question from the Questionnaire that corresponds to this question in the QuestionnaireResponse resource.
-
setLinkId
Sets the value(s) for linkId ()Definition: Identifies the question from the Questionnaire that corresponds to this question in the QuestionnaireResponse resource.
-
setLinkId
Sets the value for linkId ()Definition: Identifies the question from the Questionnaire that corresponds to this question in the QuestionnaireResponse resource.
-
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.
-
getAnswer
Gets the value(s) for answer (). creating it if it does not exist. Will not returnnull
.Definition: The respondent's answer(s) to the question
-
setAnswer
public QuestionnaireResponse.GroupQuestion setAnswer(List<QuestionnaireResponse.GroupQuestionAnswer> theValue) Sets the value(s) for answer ()Definition: The respondent's answer(s) to the question
-
addAnswer
Adds and returns a new value for answer ()Definition: The respondent's answer(s) to the question
-
addAnswer
public QuestionnaireResponse.GroupQuestion addAnswer(QuestionnaireResponse.GroupQuestionAnswer theValue) Adds a given new value for answer ()Definition: The respondent's answer(s) to the question
- Parameters:
theValue
- The answer to add (must not benull
)
-
getAnswerFirstRep
Gets the first repetition for answer (), creating it if it does not already exist.Definition: The respondent's answer(s) to the question
-