Class Questionnaire.QuestionComponent

All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement, Serializable, org.hl7.fhir.instance.model.api.IBase, org.hl7.fhir.instance.model.api.IBaseBackboneElement, org.hl7.fhir.instance.model.api.IBaseElement, org.hl7.fhir.instance.model.api.IBaseHasExtensions, org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions
Enclosing class:
Questionnaire

public static class Questionnaire.QuestionComponent extends BackboneElement implements org.hl7.fhir.instance.model.api.IBaseBackboneElement
See Also:
  • Field Details

    • linkId

      protected StringType linkId
      An identifier that is unique within the questionnaire allowing linkage to the equivalent group in a [[[QuestionnaireResponse]]] resource.
    • concept

      protected List<Coding> concept
      Identifies a how this question is known in a particular terminology such as LOINC.
    • text

      protected StringType text
      The actual question as shown to the user to prompt them for an answer.
    • type

      The expected format of the answer, e.g. the type of input (string, integer) or whether a (multiple) choice is expected.
    • required

      protected BooleanType required
      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.
    • repeats

      protected BooleanType repeats
      If true, the question may have more than one answer.
    • options

      protected Reference options
      Reference to a value set containing a list of codes representing permitted answers for the question.
    • optionsTarget

      The actual object that is the target of the reference (Reference to a value set containing a list of codes representing permitted answers for the question.)
    • option

      protected List<Coding> option
      For a "choice" question, identifies one of the permitted answers for the question.
    • group

      Nested group, containing nested question for this question. The order of groups within the question is relevant.
  • Constructor Details

  • Method Details

    • getLinkIdElement

      Returns:
      linkId (An identifier that is unique within the questionnaire allowing linkage to the equivalent group in a [[[QuestionnaireResponse]]] resource.). This is the underlying object with id, value and extensions. The accessor "getLinkId" gives direct access to the value
    • hasLinkIdElement

      public boolean hasLinkIdElement()
    • hasLinkId

      public boolean hasLinkId()
    • setLinkIdElement

      Parameters:
      value - linkId (An identifier that is unique within the questionnaire allowing linkage to the equivalent group in a [[[QuestionnaireResponse]]] resource.). This is the underlying object with id, value and extensions. The accessor "getLinkId" gives direct access to the value
    • getLinkId

      public String getLinkId()
      Returns:
      An identifier that is unique within the questionnaire allowing linkage to the equivalent group in a [[[QuestionnaireResponse]]] resource.
    • setLinkId

      Parameters:
      value - An identifier that is unique within the questionnaire allowing linkage to the equivalent group in a [[[QuestionnaireResponse]]] resource.
    • getConcept

      public List<Coding> getConcept()
      Returns:
      concept (Identifies a how this question is known in a particular terminology such as LOINC.)
    • hasConcept

      public boolean hasConcept()
    • addConcept

      public Coding addConcept()
      Returns:
      concept (Identifies a how this question is known in a particular terminology such as LOINC.)
    • addConcept

    • getTextElement

      Returns:
      text (The actual question as shown to the user to prompt them for an answer.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value
    • hasTextElement

      public boolean hasTextElement()
    • hasText

      public boolean hasText()
    • setTextElement

      Parameters:
      value - text (The actual question as shown to the user to prompt them for an answer.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value
    • getText

      public String getText()
      Returns:
      The actual question as shown to the user to prompt them for an answer.
    • setText

      Parameters:
      value - The actual question as shown to the user to prompt them for an answer.
    • getTypeElement

      Returns:
      type (The expected format of the answer, e.g. the type of input (string, integer) or whether a (multiple) choice is expected.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
    • hasTypeElement

      public boolean hasTypeElement()
    • hasType

      public boolean hasType()
    • setTypeElement

      Parameters:
      value - type (The expected format of the answer, e.g. the type of input (string, integer) or whether a (multiple) choice is expected.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
    • getType

      Returns:
      The expected format of the answer, e.g. the type of input (string, integer) or whether a (multiple) choice is expected.
    • setType

      Parameters:
      value - The expected format of the answer, e.g. the type of input (string, integer) or whether a (multiple) choice is expected.
    • getRequiredElement

      Returns:
      required (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.). This is the underlying object with id, value and extensions. The accessor "getRequired" gives direct access to the value
    • hasRequiredElement

      public boolean hasRequiredElement()
    • hasRequired

      public boolean hasRequired()
    • setRequiredElement

      Parameters:
      value - required (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.). This is the underlying object with id, value and extensions. The accessor "getRequired" gives direct access to the value
    • getRequired

      public boolean getRequired()
      Returns:
      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

      Parameters:
      value - 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

      Returns:
      repeats (If true, the question may have more than one answer.). This is the underlying object with id, value and extensions. The accessor "getRepeats" gives direct access to the value
    • hasRepeatsElement

      public boolean hasRepeatsElement()
    • hasRepeats

      public boolean hasRepeats()
    • setRepeatsElement

      Parameters:
      value - repeats (If true, the question may have more than one answer.). This is the underlying object with id, value and extensions. The accessor "getRepeats" gives direct access to the value
    • getRepeats

      public boolean getRepeats()
      Returns:
      If true, the question may have more than one answer.
    • setRepeats

      Parameters:
      value - If true, the question may have more than one answer.
    • getOptions

      Returns:
      options (Reference to a value set containing a list of codes representing permitted answers for the question.)
    • hasOptions

      public boolean hasOptions()
    • setOptions

      Parameters:
      value - options (Reference to a value set containing a list of codes representing permitted answers for the question.)
    • getOptionsTarget

      Returns:
      options The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Reference to a value set containing a list of codes representing permitted answers for the question.)
    • setOptionsTarget

      Parameters:
      value - options The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Reference to a value set containing a list of codes representing permitted answers for the question.)
    • getOption

      public List<Coding> getOption()
      Returns:
      option (For a "choice" question, identifies one of the permitted answers for the question.)
    • hasOption

      public boolean hasOption()
    • addOption

      public Coding addOption()
      Returns:
      option (For a "choice" question, identifies one of the permitted answers for the question.)
    • addOption

    • getGroup

      Returns:
      group (Nested group, containing nested question for this question. The order of groups within the question is relevant.)
    • hasGroup

      public boolean hasGroup()
    • addGroup

      Returns:
      group (Nested group, containing nested question for this question. The order of groups within the question is relevant.)
    • addGroup

    • listChildren

      protected void listChildren(List<Property> childrenList)
      Overrides:
      listChildren in class BackboneElement
    • setProperty

      public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty in class BackboneElement
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • addChild

      public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      addChild in class BackboneElement
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • copy

      Specified by:
      copy in class BackboneElement
    • equalsDeep

      public boolean equalsDeep(Base other)
      Overrides:
      equalsDeep in class BackboneElement
    • equalsShallow

      public boolean equalsShallow(Base other)
      Overrides:
      equalsShallow in class BackboneElement
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      isEmpty in class BackboneElement
    • fhirType

      public String fhirType()
      Specified by:
      fhirType in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      fhirType in class BackboneElement