Class QuestionnaireResponse.GroupQuestion
- java.lang.Object
-
- ca.uhn.fhir.model.api.BaseElement
-
- ca.uhn.fhir.model.api.BaseIdentifiableElement
-
- ca.uhn.fhir.model.dstu2.resource.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
public static class QuestionnaireResponse.GroupQuestion extends ca.uhn.fhir.model.api.BaseIdentifiableElement implements ca.uhn.fhir.model.api.IResourceBlock
Block class for child element: QuestionnaireResponse.group.question ()Definition: Set of questions within this group. The order of questions within the group is relevant
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GroupQuestion()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QuestionnaireResponse.GroupQuestionAnsweraddAnswer()Adds and returns a new value for answer ()QuestionnaireResponse.GroupQuestionaddAnswer(QuestionnaireResponse.GroupQuestionAnswer theValue)Adds a given new value for answer ()<T extends ca.uhn.fhir.model.api.IElement>
List<T>getAllPopulatedChildElementsOfType(Class<T> theType)List<QuestionnaireResponse.GroupQuestionAnswer>getAnswer()Gets the value(s) for answer ().QuestionnaireResponse.GroupQuestionAnswergetAnswerFirstRep()Gets the first repetition for answer (), creating it if it does not already exist.StringgetLinkId()Gets the value(s) for linkId ().ca.uhn.fhir.model.primitive.StringDtgetLinkIdElement()Gets the value(s) for linkId ().StringgetText()Gets the value(s) for text ().ca.uhn.fhir.model.primitive.StringDtgetTextElement()Gets the value(s) for text ().booleanisEmpty()QuestionnaireResponse.GroupQuestionsetAnswer(List<QuestionnaireResponse.GroupQuestionAnswer> theValue)Sets the value(s) for answer ()QuestionnaireResponse.GroupQuestionsetLinkId(ca.uhn.fhir.model.primitive.StringDt theValue)Sets the value(s) for linkId ()QuestionnaireResponse.GroupQuestionsetLinkId(String theString)Sets the value for linkId ()QuestionnaireResponse.GroupQuestionsetText(ca.uhn.fhir.model.primitive.StringDt theValue)Sets the value(s) for text ()QuestionnaireResponse.GroupQuestionsetText(String theString)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
-
-
-
-
Constructor Detail
-
GroupQuestion
public GroupQuestion()
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin 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:
getAllPopulatedChildElementsOfTypein interfaceca.uhn.fhir.model.api.ICompositeElement
-
getLinkIdElement
public ca.uhn.fhir.model.primitive.StringDt 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
public String 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
public QuestionnaireResponse.GroupQuestion setLinkId(ca.uhn.fhir.model.primitive.StringDt theValue)
Sets the value(s) for linkId ()Definition: Identifies the question from the Questionnaire that corresponds to this question in the QuestionnaireResponse resource.
-
setLinkId
public QuestionnaireResponse.GroupQuestion setLinkId(String theString)
Sets the value for linkId ()Definition: Identifies the question from the Questionnaire that corresponds to this question in the QuestionnaireResponse resource.
-
getTextElement
public ca.uhn.fhir.model.primitive.StringDt 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
public String 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
public QuestionnaireResponse.GroupQuestion setText(ca.uhn.fhir.model.primitive.StringDt theValue)
Sets the value(s) for text ()Definition: The actual question as shown to the user to prompt them for an answer.
-
setText
public QuestionnaireResponse.GroupQuestion setText(String theString)
Sets the value for text ()Definition: The actual question as shown to the user to prompt them for an answer.
-
getAnswer
public List<QuestionnaireResponse.GroupQuestionAnswer> 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
public QuestionnaireResponse.GroupQuestionAnswer 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
public QuestionnaireResponse.GroupQuestionAnswer getAnswerFirstRep()
Gets the first repetition for answer (), creating it if it does not already exist.Definition: The respondent's answer(s) to the question
-
-