public static class Questionnaire.QuestionnaireItemComponent extends BackboneElement implements 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 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 Type |
initial
The value that should be defaulted 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 Reference |
options
A reference to a value set containing a list of codes representing permitted answers for a "choice" or "open-choice" question.
|
protected ValueSet |
optionsTarget
The actual object that is the target of the reference (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, copyValues, getModifierExtension, getModifierExtensionFirstRep, hasModifierExtension, setModifierExtensionaddExtension, addExtension, addExtension, copyValues, getExtension, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, setExtension, setId, setIdBase, setIdElementcastToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isMetadataBased, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINNclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFormatCommentsPost, getFormatCommentsPre, hasFormatCommentaddExtension, getExtension, hasExtensionaddModifierExtension, getModifierExtension, hasModifierExtensionprotected 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 BooleanType required
protected BooleanType repeats
protected BooleanType readOnly
protected IntegerType maxLength
protected Reference options
protected ValueSet optionsTarget
protected List<Questionnaire.QuestionnaireItemOptionComponent> option
protected Type 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 inferred 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.). 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 inferred 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.). 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 inferred 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.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 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 Reference getOptions()
options (A reference to a value set containing a list of codes representing permitted answers for a "choice" or "open-choice" question.)public boolean hasOptions()
public Questionnaire.QuestionnaireItemComponent setOptions(Reference value)
value - options (A reference to a value set containing a list of codes representing permitted answers for a "choice" or "open-choice" question.)public ValueSet getOptionsTarget()
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. (A reference to a value set containing a list of codes representing permitted answers for a "choice" or "open-choice" question.)public Questionnaire.QuestionnaireItemComponent setOptionsTarget(ValueSet value)
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. (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 Type getInitial()
initial (The value that should be defaulted when initially rendering the questionnaire for user input.)public BooleanType getInitialBooleanType() throws FHIRException
initial (The value that should be defaulted when initially rendering the questionnaire for user input.)FHIRExceptionpublic boolean hasInitialBooleanType()
public DecimalType getInitialDecimalType() throws FHIRException
initial (The value that should be defaulted when initially rendering the questionnaire for user input.)FHIRExceptionpublic boolean hasInitialDecimalType()
public IntegerType getInitialIntegerType() throws FHIRException
initial (The value that should be defaulted when initially rendering the questionnaire for user input.)FHIRExceptionpublic boolean hasInitialIntegerType()
public DateType getInitialDateType() throws FHIRException
initial (The value that should be defaulted when initially rendering the questionnaire for user input.)FHIRExceptionpublic boolean hasInitialDateType()
public DateTimeType getInitialDateTimeType() throws FHIRException
initial (The value that should be defaulted when initially rendering the questionnaire for user input.)FHIRExceptionpublic boolean hasInitialDateTimeType()
public TimeType getInitialTimeType() throws FHIRException
initial (The value that should be defaulted when initially rendering the questionnaire for user input.)FHIRExceptionpublic boolean hasInitialTimeType()
public StringType getInitialStringType() throws FHIRException
initial (The value that should be defaulted when initially rendering the questionnaire for user input.)FHIRExceptionpublic boolean hasInitialStringType()
public UriType getInitialUriType() throws FHIRException
initial (The value that should be defaulted when initially rendering the questionnaire for user input.)FHIRExceptionpublic boolean hasInitialUriType()
public Attachment getInitialAttachment() throws FHIRException
initial (The value that should be defaulted when initially rendering the questionnaire for user input.)FHIRExceptionpublic boolean hasInitialAttachment()
public Coding getInitialCoding() throws FHIRException
initial (The value that should be defaulted when initially rendering the questionnaire for user input.)FHIRExceptionpublic boolean hasInitialCoding()
public Quantity getInitialQuantity() throws FHIRException
initial (The value that should be defaulted when initially rendering the questionnaire for user input.)FHIRExceptionpublic boolean hasInitialQuantity()
public Reference getInitialReference() throws FHIRException
initial (The value that should be defaulted when initially rendering the questionnaire for user input.)FHIRExceptionpublic boolean hasInitialReference()
public boolean hasInitial()
public Questionnaire.QuestionnaireItemComponent setInitial(Type value)
value - initial (The value that should be defaulted when initially rendering the questionnaire for user input.)public 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> childrenList)
listChildren in class BackboneElementpublic Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException
getProperty in class BackboneElementFHIRExceptionpublic Base setProperty(int hash, String name, Base value) throws FHIRException
setProperty in class BackboneElementFHIRExceptionpublic Base setProperty(String name, Base value) throws FHIRException
setProperty in class BackboneElementFHIRExceptionpublic Base makeProperty(int hash, String name) throws FHIRException
makeProperty in class BackboneElementFHIRExceptionpublic String[] getTypesForProperty(int hash, String name) throws FHIRException
getTypesForProperty in class BackboneElementFHIRExceptionpublic Base addChild(String name) throws FHIRException
addChild in class BackboneElementFHIRExceptionpublic 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 IBaseisEmpty in class BackboneElementpublic String fhirType()
fhirType in class BackboneElementCopyright © 2014–2017 University Health Network. All rights reserved.