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:
  • Constructor Details

  • Method Details

    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.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 interface ca.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 return null.

      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 return null.

      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

      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 return null.

      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 return null.

      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

      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 return null.

      Definition: The respondent's answer(s) to the question

    • setAnswer

      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

      Adds a given new value for answer ()

      Definition: The respondent's answer(s) to the question

      Parameters:
      theValue - The answer to add (must not be null)
    • getAnswerFirstRep

      Gets the first repetition for answer (), creating it if it does not already exist.

      Definition: The respondent's answer(s) to the question