Package org.hl7.fhir.r4.model
Class Questionnaire.QuestionnaireItemComponent
- java.lang.Object
-
- org.hl7.fhir.r4.model.Base
-
- org.hl7.fhir.r4.model.Element
-
- org.hl7.fhir.r4.model.BackboneElement
-
- org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemComponent
-
- 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.QuestionnaireItemComponent extends BackboneElement implements org.hl7.fhir.instance.model.api.IBaseBackboneElement
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Questionnaire.QuestionnaireItemAnswerOptionComponent>answerOptionOne of the permitted answers for a "choice" or "open-choice" question.protected CanonicalTypeanswerValueSetA reference to a value set containing a list of codes representing permitted answers for a "choice" or "open-choice" question.protected List<Coding>codeA terminology code that corresponds to this group or question (e.g.protected UriTypedefinitionThis element is a URI that refers to an [[[ElementDefinition]]] that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource.protected Enumeration<Questionnaire.EnableWhenBehavior>enableBehaviorControls how multiple enableWhen values are interpreted - whether all or any must be true.protected List<Questionnaire.QuestionnaireItemEnableWhenComponent>enableWhenA constraint indicating that this item should only be enabled (displayed/allow answers to be captured) when the specified condition is true.protected List<Questionnaire.QuestionnaireItemInitialComponent>initialOne or more values that should be pre-populated in the answer when initially rendering the questionnaire for user input.protected List<Questionnaire.QuestionnaireItemComponent>itemText, questions and other groups to be nested beneath a question or group.protected StringTypelinkIdAn identifier that is unique within the Questionnaire allowing linkage to the equivalent item in a QuestionnaireResponse resource.protected IntegerTypemaxLengthThe maximum number of characters that are permitted in the answer to be considered a "valid" QuestionnaireResponse.protected StringTypeprefixA short label for a particular group, question or set of display text within the questionnaire used for reference by the individual completing the questionnaire.protected BooleanTypereadOnlyAn indication, when true, that the value cannot be changed by a human respondent to the Questionnaire.protected BooleanTyperepeatsAn indication, if true, that the item may occur multiple times in the response, collecting multiple answers for questions or multiple sets of answers for groups.protected BooleanTyperequiredAn indication, if true, that the item must be present in a "completed" QuestionnaireResponse.protected StringTypetextThe name of a section, the text of a question or text content for a display item.protected Enumeration<Questionnaire.QuestionnaireItemType>typeThe type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, coded choice, etc.).-
Fields inherited from class org.hl7.fhir.r4.model.BackboneElement
modifierExtension
-
-
Constructor Summary
Constructors Constructor Description QuestionnaireItemComponent()ConstructorQuestionnaireItemComponent(StringType linkId, Enumeration<Questionnaire.QuestionnaireItemType> type)Constructor
-
Method Summary
-
Methods inherited from class org.hl7.fhir.r4.model.BackboneElement
addModifierExtension, addModifierExtension, checkNoModifiers, copyValues, getModifierExtension, getModifierExtensionFirstRep, hasModifierExtension, setModifierExtension
-
Methods inherited from class org.hl7.fhir.r4.model.Element
addExtension, addExtension, addExtension, copyValues, getExtension, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, isDisallowExtensions, noExtensions, removeExtension, setDisallowExtensions, setExtension, setId, setIdBase, setIdElement
-
Methods inherited from class org.hl7.fhir.r4.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCanonical, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExpression, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMarketingStatus, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPopulation, castToPositiveInt, castToProdCharacteristic, castToProductShelfLife, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToSubstanceAmount, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUrl, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isDateTime, isMetadataBased, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
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
getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseElement
getUserData, setUserData
-
-
-
-
Field Detail
-
linkId
protected StringType linkId
An identifier that is unique within the Questionnaire allowing linkage to the equivalent item in a QuestionnaireResponse resource.
-
definition
protected UriType definition
This element is a URI that refers to an [[[ElementDefinition]]] that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in Comments, below. If this element is present then the following element values MAY be derived from the Element Definition if the corresponding elements of this Questionnaire resource instance have no value: code (ElementDefinition.code) type (ElementDefinition.type) required (ElementDefinition.min) repeats (ElementDefinition.max) maxLength (ElementDefinition.maxLength) answerValueSet (ElementDefinition.binding) options (ElementDefinition.binding).
-
code
protected List<Coding> code
A terminology code that corresponds to this group or question (e.g. a code from LOINC, which defines many questions and answers).
-
prefix
protected StringType prefix
A short label for a particular group, question or set of display text within the questionnaire used for reference by the individual completing the questionnaire.
-
text
protected StringType text
The name of a section, the text of a question or text content for a display item.
-
type
protected Enumeration<Questionnaire.QuestionnaireItemType> type
The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, coded choice, etc.).
-
enableWhen
protected List<Questionnaire.QuestionnaireItemEnableWhenComponent> enableWhen
A constraint indicating that this item should only be enabled (displayed/allow answers to be captured) when the specified condition is true.
-
enableBehavior
protected Enumeration<Questionnaire.EnableWhenBehavior> enableBehavior
Controls how multiple enableWhen values are interpreted - whether all or any must be true.
-
required
protected BooleanType required
An indication, if true, that the item must be present in a "completed" QuestionnaireResponse. If false, the item may be skipped when answering the questionnaire.
-
repeats
protected BooleanType repeats
An indication, if true, that the item may occur multiple times in the response, collecting multiple answers for questions or multiple sets of answers for groups.
-
readOnly
protected BooleanType readOnly
An indication, when true, that the value cannot be changed by a human respondent to the Questionnaire.
-
maxLength
protected IntegerType maxLength
The maximum number of characters that are permitted in the answer to be considered a "valid" QuestionnaireResponse.
-
answerValueSet
protected CanonicalType answerValueSet
A reference to a value set containing a list of codes representing permitted answers for a "choice" or "open-choice" question.
-
answerOption
protected List<Questionnaire.QuestionnaireItemAnswerOptionComponent> answerOption
One of the permitted answers for a "choice" or "open-choice" question.
-
initial
protected List<Questionnaire.QuestionnaireItemInitialComponent> initial
One or more values that should be pre-populated in the answer when initially rendering the questionnaire for user input.
-
item
protected List<Questionnaire.QuestionnaireItemComponent> item
Text, questions and other groups to be nested beneath a question or group.
-
-
Constructor Detail
-
QuestionnaireItemComponent
public QuestionnaireItemComponent()
Constructor
-
QuestionnaireItemComponent
public QuestionnaireItemComponent(StringType linkId, Enumeration<Questionnaire.QuestionnaireItemType> type)
Constructor
-
-
Method Detail
-
getLinkIdElement
public StringType getLinkIdElement()
- Returns:
linkId(An identifier that is unique within the Questionnaire allowing linkage to the equivalent item 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
public Questionnaire.QuestionnaireItemComponent setLinkIdElement(StringType value)
- Parameters:
value-linkId(An identifier that is unique within the Questionnaire allowing linkage to the equivalent item 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 item in a QuestionnaireResponse resource.
-
setLinkId
public Questionnaire.QuestionnaireItemComponent setLinkId(String value)
- Parameters:
value- An identifier that is unique within the Questionnaire allowing linkage to the equivalent item in a QuestionnaireResponse resource.
-
getDefinitionElement
public UriType getDefinitionElement()
- Returns:
definition(This element is a URI that refers to an [[[ElementDefinition]]] that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in Comments, below. If this element is present then the following element values MAY be derived from the Element Definition if the corresponding elements of this Questionnaire resource instance have no value: code (ElementDefinition.code) type (ElementDefinition.type) required (ElementDefinition.min) repeats (ElementDefinition.max) maxLength (ElementDefinition.maxLength) answerValueSet (ElementDefinition.binding) options (ElementDefinition.binding).). This is the underlying object with id, value and extensions. The accessor "getDefinition" gives direct access to the value
-
hasDefinitionElement
public boolean hasDefinitionElement()
-
hasDefinition
public boolean hasDefinition()
-
setDefinitionElement
public Questionnaire.QuestionnaireItemComponent setDefinitionElement(UriType value)
- Parameters:
value-definition(This element is a URI that refers to an [[[ElementDefinition]]] that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in Comments, below. If this element is present then the following element values MAY be derived from the Element Definition if the corresponding elements of this Questionnaire resource instance have no value: code (ElementDefinition.code) type (ElementDefinition.type) required (ElementDefinition.min) repeats (ElementDefinition.max) maxLength (ElementDefinition.maxLength) answerValueSet (ElementDefinition.binding) options (ElementDefinition.binding).). This is the underlying object with id, value and extensions. The accessor "getDefinition" gives direct access to the value
-
getDefinition
public String getDefinition()
- Returns:
- This element is a URI that refers to an [[[ElementDefinition]]] that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in Comments, below. If this element is present then the following element values MAY be derived from the Element Definition if the corresponding elements of this Questionnaire resource instance have no value: code (ElementDefinition.code) type (ElementDefinition.type) required (ElementDefinition.min) repeats (ElementDefinition.max) maxLength (ElementDefinition.maxLength) answerValueSet (ElementDefinition.binding) options (ElementDefinition.binding).
-
setDefinition
public Questionnaire.QuestionnaireItemComponent setDefinition(String value)
- Parameters:
value- This element is a URI that refers to an [[[ElementDefinition]]] that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in Comments, below. If this element is present then the following element values MAY be derived from the Element Definition if the corresponding elements of this Questionnaire resource instance have no value: code (ElementDefinition.code) type (ElementDefinition.type) required (ElementDefinition.min) repeats (ElementDefinition.max) maxLength (ElementDefinition.maxLength) answerValueSet (ElementDefinition.binding) options (ElementDefinition.binding).
-
getCode
public List<Coding> getCode()
- Returns:
code(A terminology code that corresponds to this group or question (e.g. a code from LOINC, which defines many questions and answers).)
-
setCode
public Questionnaire.QuestionnaireItemComponent setCode(List<Coding> theCode)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasCode
public boolean hasCode()
-
addCode
public Questionnaire.QuestionnaireItemComponent addCode(Coding t)
-
getCodeFirstRep
public Coding getCodeFirstRep()
- Returns:
- The first repetition of repeating field
code, creating it if it does not already exist
-
getPrefixElement
public StringType getPrefixElement()
- Returns:
prefix(A short label for a particular group, question or set of display text within the questionnaire used for reference by the individual completing the questionnaire.). This is the underlying object with id, value and extensions. The accessor "getPrefix" gives direct access to the value
-
hasPrefixElement
public boolean hasPrefixElement()
-
hasPrefix
public boolean hasPrefix()
-
setPrefixElement
public Questionnaire.QuestionnaireItemComponent setPrefixElement(StringType value)
- Parameters:
value-prefix(A short label for a particular group, question or set of display text within the questionnaire used for reference by the individual completing the questionnaire.). This is the underlying object with id, value and extensions. The accessor "getPrefix" gives direct access to the value
-
getPrefix
public String getPrefix()
- Returns:
- A short label for a particular group, question or set of display text within the questionnaire used for reference by the individual completing the questionnaire.
-
setPrefix
public Questionnaire.QuestionnaireItemComponent setPrefix(String value)
- Parameters:
value- A short label for a particular group, question or set of display text within the questionnaire used for reference by the individual completing the questionnaire.
-
getTextElement
public StringType getTextElement()
- Returns:
text(The name of a section, the text of a question or text content for a display item.). 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
public Questionnaire.QuestionnaireItemComponent setTextElement(StringType value)
- Parameters:
value-text(The name of a section, the text of a question or text content for a display item.). 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 name of a section, the text of a question or text content for a display item.
-
setText
public Questionnaire.QuestionnaireItemComponent setText(String value)
- Parameters:
value- The name of a section, the text of a question or text content for a display item.
-
getTypeElement
public Enumeration<Questionnaire.QuestionnaireItemType> getTypeElement()
- Returns:
type(The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, coded choice, etc.).). 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
public Questionnaire.QuestionnaireItemComponent setTypeElement(Enumeration<Questionnaire.QuestionnaireItemType> value)
- Parameters:
value-type(The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, coded choice, etc.).). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
-
getType
public Questionnaire.QuestionnaireItemType getType()
- Returns:
- The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, coded choice, etc.).
-
setType
public Questionnaire.QuestionnaireItemComponent setType(Questionnaire.QuestionnaireItemType value)
- Parameters:
value- The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, coded choice, etc.).
-
getEnableWhen
public List<Questionnaire.QuestionnaireItemEnableWhenComponent> getEnableWhen()
- Returns:
enableWhen(A constraint indicating that this item should only be enabled (displayed/allow answers to be captured) when the specified condition is true.)
-
setEnableWhen
public Questionnaire.QuestionnaireItemComponent setEnableWhen(List<Questionnaire.QuestionnaireItemEnableWhenComponent> theEnableWhen)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasEnableWhen
public boolean hasEnableWhen()
-
addEnableWhen
public Questionnaire.QuestionnaireItemEnableWhenComponent addEnableWhen()
-
addEnableWhen
public Questionnaire.QuestionnaireItemComponent addEnableWhen(Questionnaire.QuestionnaireItemEnableWhenComponent t)
-
getEnableWhenFirstRep
public Questionnaire.QuestionnaireItemEnableWhenComponent getEnableWhenFirstRep()
- Returns:
- The first repetition of repeating field
enableWhen, creating it if it does not already exist
-
getEnableBehaviorElement
public Enumeration<Questionnaire.EnableWhenBehavior> getEnableBehaviorElement()
- Returns:
enableBehavior(Controls how multiple enableWhen values are interpreted - whether all or any must be true.). This is the underlying object with id, value and extensions. The accessor "getEnableBehavior" gives direct access to the value
-
hasEnableBehaviorElement
public boolean hasEnableBehaviorElement()
-
hasEnableBehavior
public boolean hasEnableBehavior()
-
setEnableBehaviorElement
public Questionnaire.QuestionnaireItemComponent setEnableBehaviorElement(Enumeration<Questionnaire.EnableWhenBehavior> value)
- Parameters:
value-enableBehavior(Controls how multiple enableWhen values are interpreted - whether all or any must be true.). This is the underlying object with id, value and extensions. The accessor "getEnableBehavior" gives direct access to the value
-
getEnableBehavior
public Questionnaire.EnableWhenBehavior getEnableBehavior()
- Returns:
- Controls how multiple enableWhen values are interpreted - whether all or any must be true.
-
setEnableBehavior
public Questionnaire.QuestionnaireItemComponent setEnableBehavior(Questionnaire.EnableWhenBehavior value)
- Parameters:
value- Controls how multiple enableWhen values are interpreted - whether all or any must be true.
-
getRequiredElement
public BooleanType getRequiredElement()
- Returns:
required(An indication, if true, that the item must be present in a "completed" QuestionnaireResponse. If false, the item 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
public Questionnaire.QuestionnaireItemComponent setRequiredElement(BooleanType value)
- Parameters:
value-required(An indication, if true, that the item must be present in a "completed" QuestionnaireResponse. If false, the item 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:
- An indication, if true, that the item must be present in a "completed" QuestionnaireResponse. If false, the item may be skipped when answering the questionnaire.
-
setRequired
public Questionnaire.QuestionnaireItemComponent setRequired(boolean value)
- Parameters:
value- An indication, if true, that the item must be present in a "completed" QuestionnaireResponse. If false, the item may be skipped when answering the questionnaire.
-
getRepeatsElement
public BooleanType getRepeatsElement()
- Returns:
repeats(An indication, if true, that the item may occur multiple times in the response, collecting multiple answers for questions or multiple sets of answers for groups.). 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
public Questionnaire.QuestionnaireItemComponent setRepeatsElement(BooleanType value)
- Parameters:
value-repeats(An indication, if true, that the item may occur multiple times in the response, collecting multiple answers for questions or multiple sets of answers for groups.). This is the underlying object with id, value and extensions. The accessor "getRepeats" gives direct access to the value
-
getRepeats
public boolean getRepeats()
- Returns:
- An indication, if true, that the item may occur multiple times in the response, collecting multiple answers for questions or multiple sets of answers for groups.
-
setRepeats
public Questionnaire.QuestionnaireItemComponent setRepeats(boolean value)
- Parameters:
value- An indication, if true, that the item may occur multiple times in the response, collecting multiple answers for questions or multiple sets of answers for groups.
-
getReadOnlyElement
public BooleanType getReadOnlyElement()
- Returns:
readOnly(An indication, when true, that the value cannot be changed by a human respondent to the Questionnaire.). This is the underlying object with id, value and extensions. The accessor "getReadOnly" gives direct access to the value
-
hasReadOnlyElement
public boolean hasReadOnlyElement()
-
hasReadOnly
public boolean hasReadOnly()
-
setReadOnlyElement
public Questionnaire.QuestionnaireItemComponent setReadOnlyElement(BooleanType value)
- Parameters:
value-readOnly(An indication, when true, that the value cannot be changed by a human respondent to the Questionnaire.). This is the underlying object with id, value and extensions. The accessor "getReadOnly" gives direct access to the value
-
getReadOnly
public boolean getReadOnly()
- Returns:
- An indication, when true, that the value cannot be changed by a human respondent to the Questionnaire.
-
setReadOnly
public Questionnaire.QuestionnaireItemComponent setReadOnly(boolean value)
- Parameters:
value- An indication, when true, that the value cannot be changed by a human respondent to the Questionnaire.
-
getMaxLengthElement
public IntegerType getMaxLengthElement()
- Returns:
maxLength(The maximum number of characters that are permitted in the answer to be considered a "valid" QuestionnaireResponse.). This is the underlying object with id, value and extensions. The accessor "getMaxLength" gives direct access to the value
-
hasMaxLengthElement
public boolean hasMaxLengthElement()
-
hasMaxLength
public boolean hasMaxLength()
-
setMaxLengthElement
public Questionnaire.QuestionnaireItemComponent setMaxLengthElement(IntegerType value)
- Parameters:
value-maxLength(The maximum number of characters that are permitted in the answer to be considered a "valid" QuestionnaireResponse.). This is the underlying object with id, value and extensions. The accessor "getMaxLength" gives direct access to the value
-
getMaxLength
public int getMaxLength()
- Returns:
- The maximum number of characters that are permitted in the answer to be considered a "valid" QuestionnaireResponse.
-
setMaxLength
public Questionnaire.QuestionnaireItemComponent setMaxLength(int value)
- Parameters:
value- The maximum number of characters that are permitted in the answer to be considered a "valid" QuestionnaireResponse.
-
getAnswerValueSetElement
public CanonicalType getAnswerValueSetElement()
- Returns:
answerValueSet(A reference to a value set containing a list of codes representing permitted answers for a "choice" or "open-choice" question.). This is the underlying object with id, value and extensions. The accessor "getAnswerValueSet" gives direct access to the value
-
hasAnswerValueSetElement
public boolean hasAnswerValueSetElement()
-
hasAnswerValueSet
public boolean hasAnswerValueSet()
-
setAnswerValueSetElement
public Questionnaire.QuestionnaireItemComponent setAnswerValueSetElement(CanonicalType value)
- Parameters:
value-answerValueSet(A reference to a value set containing a list of codes representing permitted answers for a "choice" or "open-choice" question.). This is the underlying object with id, value and extensions. The accessor "getAnswerValueSet" gives direct access to the value
-
getAnswerValueSet
public String getAnswerValueSet()
- Returns:
- A reference to a value set containing a list of codes representing permitted answers for a "choice" or "open-choice" question.
-
setAnswerValueSet
public Questionnaire.QuestionnaireItemComponent setAnswerValueSet(String value)
- Parameters:
value- A reference to a value set containing a list of codes representing permitted answers for a "choice" or "open-choice" question.
-
getAnswerOption
public List<Questionnaire.QuestionnaireItemAnswerOptionComponent> getAnswerOption()
- Returns:
answerOption(One of the permitted answers for a "choice" or "open-choice" question.)
-
setAnswerOption
public Questionnaire.QuestionnaireItemComponent setAnswerOption(List<Questionnaire.QuestionnaireItemAnswerOptionComponent> theAnswerOption)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasAnswerOption
public boolean hasAnswerOption()
-
addAnswerOption
public Questionnaire.QuestionnaireItemAnswerOptionComponent addAnswerOption()
-
addAnswerOption
public Questionnaire.QuestionnaireItemComponent addAnswerOption(Questionnaire.QuestionnaireItemAnswerOptionComponent t)
-
getAnswerOptionFirstRep
public Questionnaire.QuestionnaireItemAnswerOptionComponent getAnswerOptionFirstRep()
- Returns:
- The first repetition of repeating field
answerOption, creating it if it does not already exist
-
getInitial
public List<Questionnaire.QuestionnaireItemInitialComponent> getInitial()
- Returns:
initial(One or more values that should be pre-populated in the answer when initially rendering the questionnaire for user input.)
-
setInitial
public Questionnaire.QuestionnaireItemComponent setInitial(List<Questionnaire.QuestionnaireItemInitialComponent> theInitial)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasInitial
public boolean hasInitial()
-
addInitial
public Questionnaire.QuestionnaireItemInitialComponent addInitial()
-
addInitial
public Questionnaire.QuestionnaireItemComponent addInitial(Questionnaire.QuestionnaireItemInitialComponent t)
-
getInitialFirstRep
public Questionnaire.QuestionnaireItemInitialComponent getInitialFirstRep()
- Returns:
- The first repetition of repeating field
initial, creating it if it does not already exist
-
getItem
public List<Questionnaire.QuestionnaireItemComponent> getItem()
- Returns:
item(Text, questions and other groups to be nested beneath a question or group.)
-
setItem
public Questionnaire.QuestionnaireItemComponent setItem(List<Questionnaire.QuestionnaireItemComponent> theItem)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasItem
public boolean hasItem()
-
addItem
public Questionnaire.QuestionnaireItemComponent addItem()
-
addItem
public Questionnaire.QuestionnaireItemComponent addItem(Questionnaire.QuestionnaireItemComponent t)
-
getItemFirstRep
public Questionnaire.QuestionnaireItemComponent getItemFirstRep()
- Returns:
- The first repetition of repeating field
item, creating it if it does not already exist
-
listChildren
protected void listChildren(List<Property> children)
- Overrides:
listChildrenin classBackboneElement
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getNamedPropertyin classBackboneElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getPropertyin classBackboneElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classBackboneElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classBackboneElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
makePropertyin classBackboneElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getTypesForPropertyin classBackboneElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
addChildin classBackboneElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
copy
public Questionnaire.QuestionnaireItemComponent copy()
- Specified by:
copyin classBackboneElement
-
copyValues
public void copyValues(Questionnaire.QuestionnaireItemComponent dst)
-
equalsDeep
public boolean equalsDeep(Base other_)
- Overrides:
equalsDeepin classBackboneElement
-
equalsShallow
public boolean equalsShallow(Base other_)
- Overrides:
equalsShallowin classBackboneElement
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
isEmptyin classBackboneElement
-
fhirType
public String fhirType()
- Specified by:
fhirTypein interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
fhirTypein classBackboneElement
-
-