public static class Questionnaire.QuestionnaireItemComponent extends BackboneElement implements org.hl7.fhir.instance.model.api.IBaseBackboneElement
| Modifier and Type | Field and Description |
|---|---|
protected List<Coding> |
code
A terminology code that corresponds to this group or question (e.g.
|
protected UriType |
definition
A reference to an [[[ElementDefinition]]] that provides the details for the item.
|
protected Enumeration<Questionnaire.EnableWhenBehavior> |
enableBehavior
Controls how multiple enableWhen values are interpreted - whether all or any must be true.
|
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.
|
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.
|
protected List<Questionnaire.QuestionnaireItemComponent> |
item
Text, questions and other groups to be nested beneath a question or group.
|
protected StringType |
linkId
An identifier that is unique within the Questionnaire allowing linkage to the equivalent item in a QuestionnaireResponse resource.
|
protected IntegerType |
maxLength
The maximum number of characters that are permitted in the answer to be considered a "valid" QuestionnaireResponse.
|
protected List<Questionnaire.QuestionnaireItemOptionComponent> |
option
One of the permitted answers for a "choice" or "open-choice" question.
|
protected CanonicalType |
options
A reference to a value set containing a list of codes representing permitted answers for a "choice" or "open-choice" question.
|
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.
|
protected BooleanType |
readOnly
An indication, when true, that the value cannot be changed by a human respondent to the Questionnaire.
|
protected BooleanType |
repeats
An indication, if true, that the item may occur multiple times in the response, collecting multiple answers answers for questions or multiple sets of answers for groups.
|
protected BooleanType |
required
An indication, if true, that the item must be present in a "completed" QuestionnaireResponse.
|
protected StringType |
text
The name of a section, the text of a question or text content for a display item.
|
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.).
|
modifierExtension| Constructor and Description |
|---|
QuestionnaireItemComponent()
Constructor
|
QuestionnaireItemComponent(StringType linkId,
Enumeration<Questionnaire.QuestionnaireItemType> type)
Constructor
|
addModifierExtension, addModifierExtension, checkNoModifiers, copyValues, getModifierExtension, getModifierExtensionFirstRep, hasModifierExtension, setModifierExtensionaddExtension, addExtension, addExtension, copyValues, getExtension, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, isDisallowExtensions, noExtensions, setDisallowExtensions, setExtension, setId, setIdBase, setIdElementcastToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCanonical, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMarketingStatus, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, 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, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isMetadataBased, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINNclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFormatCommentsPost, getFormatCommentsPre, hasFormatCommentprotected StringType linkId
protected UriType definition
protected List<Coding> code
protected StringType prefix
protected StringType text
protected Enumeration<Questionnaire.QuestionnaireItemType> type
protected List<Questionnaire.QuestionnaireItemEnableWhenComponent> enableWhen
protected Enumeration<Questionnaire.EnableWhenBehavior> enableBehavior
protected BooleanType required
protected BooleanType repeats
protected BooleanType readOnly
protected IntegerType maxLength
protected CanonicalType options
protected List<Questionnaire.QuestionnaireItemOptionComponent> option
protected List<Questionnaire.QuestionnaireItemInitialComponent> initial
protected List<Questionnaire.QuestionnaireItemComponent> item
public QuestionnaireItemComponent()
public QuestionnaireItemComponent(StringType linkId, Enumeration<Questionnaire.QuestionnaireItemType> type)
public StringType getLinkIdElement()
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 valuepublic boolean hasLinkIdElement()
public boolean hasLinkId()
public Questionnaire.QuestionnaireItemComponent setLinkIdElement(StringType value)
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 valuepublic String getLinkId()
public Questionnaire.QuestionnaireItemComponent setLinkId(String value)
value - An identifier that is unique within the Questionnaire allowing linkage to the equivalent item in a QuestionnaireResponse resource.public UriType getDefinitionElement()
definition (A reference to an [[[ElementDefinition]]] that provides the details for the item. If a definition is provided, then the following element values can be derived from the definition:
code (ElementDefinition.code)
type (ElementDefinition.type)
required (ElementDefinition.min)
repeats (ElementDefinition.max)
maxLength (ElementDefinition.maxLength)
options (ElementDefinition.binding)
Any information provided in these elements on a Questionnaire Item overrides the information from the definition, and some are require for efficient implementation (e.g. enforcing invariants).). This is the underlying object with id, value and extensions. The accessor "getDefinition" gives direct access to the valuepublic boolean hasDefinitionElement()
public boolean hasDefinition()
public Questionnaire.QuestionnaireItemComponent setDefinitionElement(UriType value)
value - definition (A reference to an [[[ElementDefinition]]] that provides the details for the item. If a definition is provided, then the following element values can be derived from the definition:
code (ElementDefinition.code)
type (ElementDefinition.type)
required (ElementDefinition.min)
repeats (ElementDefinition.max)
maxLength (ElementDefinition.maxLength)
options (ElementDefinition.binding)
Any information provided in these elements on a Questionnaire Item overrides the information from the definition, and some are require for efficient implementation (e.g. enforcing invariants).). This is the underlying object with id, value and extensions. The accessor "getDefinition" gives direct access to the valuepublic String getDefinition()
public Questionnaire.QuestionnaireItemComponent setDefinition(String value)
value - A reference to an [[[ElementDefinition]]] that provides the details for the item. If a definition is provided, then the following element values can be derived from the definition:
code (ElementDefinition.code)
type (ElementDefinition.type)
required (ElementDefinition.min)
repeats (ElementDefinition.max)
maxLength (ElementDefinition.maxLength)
options (ElementDefinition.binding)
Any information provided in these elements on a Questionnaire Item overrides the information from the definition, and some are require for efficient implementation (e.g. enforcing invariants).public List<Coding> getCode()
code (A terminology code that corresponds to this group or question (e.g. a code from LOINC, which defines many questions and answers).)public Questionnaire.QuestionnaireItemComponent setCode(List<Coding> theCode)
this for easy method chainingpublic boolean hasCode()
public Questionnaire.QuestionnaireItemComponent addCode(Coding t)
public Coding getCodeFirstRep()
code, creating it if it does not already existpublic StringType getPrefixElement()
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 valuepublic boolean hasPrefixElement()
public boolean hasPrefix()
public Questionnaire.QuestionnaireItemComponent setPrefixElement(StringType value)
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 valuepublic String getPrefix()
public Questionnaire.QuestionnaireItemComponent setPrefix(String value)
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.public StringType getTextElement()
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 valuepublic boolean hasTextElement()
public boolean hasText()
public Questionnaire.QuestionnaireItemComponent setTextElement(StringType value)
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 valuepublic String getText()
public Questionnaire.QuestionnaireItemComponent setText(String value)
value - The name of a section, the text of a question or text content for a display item.public Enumeration<Questionnaire.QuestionnaireItemType> getTypeElement()
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 valuepublic boolean hasTypeElement()
public boolean hasType()
public Questionnaire.QuestionnaireItemComponent setTypeElement(Enumeration<Questionnaire.QuestionnaireItemType> value)
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 valuepublic Questionnaire.QuestionnaireItemType getType()
public Questionnaire.QuestionnaireItemComponent setType(Questionnaire.QuestionnaireItemType value)
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.).public List<Questionnaire.QuestionnaireItemEnableWhenComponent> getEnableWhen()
enableWhen (A constraint indicating that this item should only be enabled (displayed/allow answers to be captured) when the specified condition is true.)public Questionnaire.QuestionnaireItemComponent setEnableWhen(List<Questionnaire.QuestionnaireItemEnableWhenComponent> theEnableWhen)
this for easy method chainingpublic boolean hasEnableWhen()
public Questionnaire.QuestionnaireItemEnableWhenComponent addEnableWhen()
public Questionnaire.QuestionnaireItemComponent addEnableWhen(Questionnaire.QuestionnaireItemEnableWhenComponent t)
public Questionnaire.QuestionnaireItemEnableWhenComponent getEnableWhenFirstRep()
enableWhen, creating it if it does not already existpublic Enumeration<Questionnaire.EnableWhenBehavior> getEnableBehaviorElement()
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 valuepublic boolean hasEnableBehaviorElement()
public boolean hasEnableBehavior()
public Questionnaire.QuestionnaireItemComponent setEnableBehaviorElement(Enumeration<Questionnaire.EnableWhenBehavior> value)
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 valuepublic Questionnaire.EnableWhenBehavior getEnableBehavior()
public Questionnaire.QuestionnaireItemComponent setEnableBehavior(Questionnaire.EnableWhenBehavior value)
value - Controls how multiple enableWhen values are interpreted - whether all or any must be true.public BooleanType getRequiredElement()
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 valuepublic boolean hasRequiredElement()
public boolean hasRequired()
public Questionnaire.QuestionnaireItemComponent setRequiredElement(BooleanType value)
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 valuepublic boolean getRequired()
public Questionnaire.QuestionnaireItemComponent setRequired(boolean value)
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.public BooleanType getRepeatsElement()
repeats (An indication, if true, that the item may occur multiple times in the response, collecting multiple answers 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 valuepublic boolean hasRepeatsElement()
public boolean hasRepeats()
public Questionnaire.QuestionnaireItemComponent setRepeatsElement(BooleanType value)
value - repeats (An indication, if true, that the item may occur multiple times in the response, collecting multiple answers 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 valuepublic boolean getRepeats()
public Questionnaire.QuestionnaireItemComponent setRepeats(boolean value)
value - An indication, if true, that the item may occur multiple times in the response, collecting multiple answers answers for questions or multiple sets of answers for groups.public BooleanType getReadOnlyElement()
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 valuepublic boolean hasReadOnlyElement()
public boolean hasReadOnly()
public Questionnaire.QuestionnaireItemComponent setReadOnlyElement(BooleanType value)
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 valuepublic boolean getReadOnly()
public Questionnaire.QuestionnaireItemComponent setReadOnly(boolean value)
value - An indication, when true, that the value cannot be changed by a human respondent to the Questionnaire.public IntegerType getMaxLengthElement()
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 valuepublic boolean hasMaxLengthElement()
public boolean hasMaxLength()
public Questionnaire.QuestionnaireItemComponent setMaxLengthElement(IntegerType value)
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 valuepublic int getMaxLength()
public Questionnaire.QuestionnaireItemComponent setMaxLength(int value)
value - The maximum number of characters that are permitted in the answer to be considered a "valid" QuestionnaireResponse.public CanonicalType getOptionsElement()
options (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 "getOptions" gives direct access to the valuepublic boolean hasOptionsElement()
public boolean hasOptions()
public Questionnaire.QuestionnaireItemComponent setOptionsElement(CanonicalType value)
value - options (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 "getOptions" gives direct access to the valuepublic String getOptions()
public Questionnaire.QuestionnaireItemComponent setOptions(String value)
value - A reference to a value set containing a list of codes representing permitted answers for a "choice" or "open-choice" question.public List<Questionnaire.QuestionnaireItemOptionComponent> getOption()
option (One of the permitted answers for a "choice" or "open-choice" question.)public Questionnaire.QuestionnaireItemComponent setOption(List<Questionnaire.QuestionnaireItemOptionComponent> theOption)
this for easy method chainingpublic boolean hasOption()
public Questionnaire.QuestionnaireItemOptionComponent addOption()
public Questionnaire.QuestionnaireItemComponent addOption(Questionnaire.QuestionnaireItemOptionComponent t)
public Questionnaire.QuestionnaireItemOptionComponent getOptionFirstRep()
option, creating it if it does not already existpublic List<Questionnaire.QuestionnaireItemInitialComponent> getInitial()
initial (One or more values that should be pre-populated in the answer when initially rendering the questionnaire for user input.)public Questionnaire.QuestionnaireItemComponent setInitial(List<Questionnaire.QuestionnaireItemInitialComponent> theInitial)
this for easy method chainingpublic boolean hasInitial()
public Questionnaire.QuestionnaireItemInitialComponent addInitial()
public Questionnaire.QuestionnaireItemComponent addInitial(Questionnaire.QuestionnaireItemInitialComponent t)
public Questionnaire.QuestionnaireItemInitialComponent getInitialFirstRep()
initial, creating it if it does not already existpublic List<Questionnaire.QuestionnaireItemComponent> getItem()
item (Text, questions and other groups to be nested beneath a question or group.)public Questionnaire.QuestionnaireItemComponent setItem(List<Questionnaire.QuestionnaireItemComponent> theItem)
this for easy method chainingpublic boolean hasItem()
public Questionnaire.QuestionnaireItemComponent addItem()
public Questionnaire.QuestionnaireItemComponent addItem(Questionnaire.QuestionnaireItemComponent t)
public Questionnaire.QuestionnaireItemComponent getItemFirstRep()
item, creating it if it does not already existprotected void listChildren(List<Property> children)
listChildren in class BackboneElementpublic Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
getNamedProperty in class BackboneElementorg.hl7.fhir.exceptions.FHIRExceptionpublic Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
getProperty in class BackboneElementorg.hl7.fhir.exceptions.FHIRExceptionpublic Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
setProperty in class BackboneElementorg.hl7.fhir.exceptions.FHIRExceptionpublic Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
setProperty in class BackboneElementorg.hl7.fhir.exceptions.FHIRExceptionpublic Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
makeProperty in class BackboneElementorg.hl7.fhir.exceptions.FHIRExceptionpublic String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
getTypesForProperty in class BackboneElementorg.hl7.fhir.exceptions.FHIRExceptionpublic Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
addChild in class BackboneElementorg.hl7.fhir.exceptions.FHIRExceptionpublic Questionnaire.QuestionnaireItemComponent copy()
copy in class BackboneElementpublic boolean equalsDeep(Base other_)
equalsDeep in class BackboneElementpublic boolean equalsShallow(Base other_)
equalsShallow in class BackboneElementpublic boolean isEmpty()
isEmpty in interface org.hl7.fhir.instance.model.api.IBaseisEmpty in class BackboneElementpublic String fhirType()
fhirType in class BackboneElementCopyright © 2014–2018 University Health Network. All rights reserved.