public static class Questionnaire.QuestionComponent extends BackboneElement implements org.hl7.fhir.instance.model.api.IBaseBackboneElement
| Modifier and Type | Field and Description |
|---|---|
protected List<Coding> |
concept
Identifies a how this question is known in a particular terminology such as LOINC.
|
protected List<Questionnaire.GroupComponent> |
group
Nested group, containing nested question for this question.
|
protected StringType |
linkId
An identifier that is unique within the questionnaire allowing linkage to the equivalent group in a [[[QuestionnaireResponse]]] resource.
|
protected List<Coding> |
option
For a "choice" question, identifies one of the permitted answers for the question.
|
protected Reference |
options
Reference to a value set containing a list of codes representing permitted answers for the question.
|
protected ValueSet |
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.)
|
protected BooleanType |
repeats
If true, the question may have more than one answer.
|
protected BooleanType |
required
If true, indicates that the question must be answered and have required groups within it also present.
|
protected StringType |
text
The actual question as shown to the user to prompt them for an answer.
|
protected Enumeration<Questionnaire.AnswerFormat> |
type
The expected format of the answer, e.g.
|
modifierExtension| Constructor and Description |
|---|
QuestionComponent() |
addModifierExtension, addModifierExtension, copyValues, getModifierExtension, hasModifierExtensionaddExtension, addExtension, copyValues, getExtension, getExtensionsByUrl, getExtensionString, getId, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, setId, setIdElementcastToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, primitiveValue, setUserData, setUserDataINNclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFormatCommentsPost, getFormatCommentsPre, hasFormatCommentprotected StringType linkId
protected List<Coding> concept
protected StringType text
protected Enumeration<Questionnaire.AnswerFormat> type
protected BooleanType required
protected BooleanType repeats
protected Reference options
protected ValueSet optionsTarget
protected List<Coding> option
protected List<Questionnaire.GroupComponent> group
public QuestionComponent()
public StringType getLinkIdElement()
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 valuepublic boolean hasLinkIdElement()
public boolean hasLinkId()
public Questionnaire.QuestionComponent setLinkIdElement(StringType value)
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 valuepublic String getLinkId()
public Questionnaire.QuestionComponent setLinkId(String value)
value - An identifier that is unique within the questionnaire allowing linkage to the equivalent group in a [[[QuestionnaireResponse]]] resource.public List<Coding> getConcept()
concept (Identifies a how this question is known in a particular terminology such as LOINC.)public boolean hasConcept()
public Coding addConcept()
concept (Identifies a how this question is known in a particular terminology such as LOINC.)public Questionnaire.QuestionComponent addConcept(Coding t)
public StringType getTextElement()
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 valuepublic boolean hasTextElement()
public boolean hasText()
public Questionnaire.QuestionComponent setTextElement(StringType value)
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 valuepublic String getText()
public Questionnaire.QuestionComponent setText(String value)
value - The actual question as shown to the user to prompt them for an answer.public Enumeration<Questionnaire.AnswerFormat> getTypeElement()
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 valuepublic boolean hasTypeElement()
public boolean hasType()
public Questionnaire.QuestionComponent setTypeElement(Enumeration<Questionnaire.AnswerFormat> value)
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 valuepublic Questionnaire.AnswerFormat getType()
public Questionnaire.QuestionComponent setType(Questionnaire.AnswerFormat value)
value - The expected format of the answer, e.g. the type of input (string, integer) or whether a (multiple) choice is expected.public BooleanType getRequiredElement()
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 valuepublic boolean hasRequiredElement()
public boolean hasRequired()
public Questionnaire.QuestionComponent setRequiredElement(BooleanType value)
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 valuepublic boolean getRequired()
public Questionnaire.QuestionComponent setRequired(boolean value)
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.public BooleanType getRepeatsElement()
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 valuepublic boolean hasRepeatsElement()
public boolean hasRepeats()
public Questionnaire.QuestionComponent setRepeatsElement(BooleanType value)
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 valuepublic boolean getRepeats()
public Questionnaire.QuestionComponent setRepeats(boolean value)
value - If true, the question may have more than one answer.public Reference getOptions()
options (Reference to a value set containing a list of codes representing permitted answers for the question.)public boolean hasOptions()
public Questionnaire.QuestionComponent setOptions(Reference value)
value - options (Reference to a value set containing a list of codes representing permitted answers for the 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. (Reference to a value set containing a list of codes representing permitted answers for the question.)public Questionnaire.QuestionComponent 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. (Reference to a value set containing a list of codes representing permitted answers for the question.)public List<Coding> getOption()
option (For a "choice" question, identifies one of the permitted answers for the question.)public boolean hasOption()
public Coding addOption()
option (For a "choice" question, identifies one of the permitted answers for the question.)public Questionnaire.QuestionComponent addOption(Coding t)
public List<Questionnaire.GroupComponent> getGroup()
group (Nested group, containing nested question for this question. The order of groups within the question is relevant.)public boolean hasGroup()
public Questionnaire.GroupComponent addGroup()
group (Nested group, containing nested question for this question. The order of groups within the question is relevant.)public Questionnaire.QuestionComponent addGroup(Questionnaire.GroupComponent t)
protected void listChildren(List<Property> childrenList)
listChildren in class BackboneElementpublic void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
setProperty 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.QuestionComponent 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.