Package org.hl7.fhir.dstu2.model
Class Questionnaire.QuestionComponent
- java.lang.Object
-
- org.hl7.fhir.dstu2.model.Base
-
- org.hl7.fhir.dstu2.model.Element
-
- org.hl7.fhir.dstu2.model.BackboneElement
-
- org.hl7.fhir.dstu2.model.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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Coding>conceptIdentifies a how this question is known in a particular terminology such as LOINC.protected List<Questionnaire.GroupComponent>groupNested group, containing nested question for this question.protected StringTypelinkIdAn identifier that is unique within the questionnaire allowing linkage to the equivalent group in a [[[QuestionnaireResponse]]] resource.protected List<Coding>optionFor a "choice" question, identifies one of the permitted answers for the question.protected ReferenceoptionsReference to a value set containing a list of codes representing permitted answers for the question.protected ValueSetoptionsTargetThe 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 BooleanTyperepeatsIf true, the question may have more than one answer.protected BooleanTyperequiredIf true, indicates that the question must be answered and have required groups within it also present.protected StringTypetextThe actual question as shown to the user to prompt them for an answer.protected Enumeration<Questionnaire.AnswerFormat>typeThe expected format of the answer, e.g.-
Fields inherited from class org.hl7.fhir.dstu2.model.BackboneElement
modifierExtension
-
-
Constructor Summary
Constructors Constructor Description QuestionComponent()
-
Method Summary
-
Methods inherited from class org.hl7.fhir.dstu2.model.BackboneElement
addModifierExtension, addModifierExtension, copyValues, getModifierExtension, hasModifierExtension
-
Methods inherited from class org.hl7.fhir.dstu2.model.Element
addExtension, addExtension, copyValues, getExtension, getExtensionsByUrl, getExtensionString, getId, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, setId, setIdElement
-
Methods inherited from class org.hl7.fhir.dstu2.model.Base
castToAddress, 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, 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 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
protected Enumeration<Questionnaire.AnswerFormat> 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
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.)
-
option
protected List<Coding> option
For a "choice" question, identifies one of the permitted answers for the question.
-
group
protected List<Questionnaire.GroupComponent> group
Nested group, containing nested question for this question. The order of groups within the question is relevant.
-
-
Constructor Detail
-
QuestionComponent
public QuestionComponent()
-
-
Method Detail
-
getLinkIdElement
public StringType 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
public Questionnaire.QuestionComponent setLinkIdElement(StringType value)
- 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
public Questionnaire.QuestionComponent setLinkId(String value)
- 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
public Questionnaire.QuestionComponent addConcept(Coding t)
-
getTextElement
public StringType 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
public Questionnaire.QuestionComponent setTextElement(StringType value)
- 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
public Questionnaire.QuestionComponent setText(String value)
- Parameters:
value- The actual question as shown to the user to prompt them for an answer.
-
getTypeElement
public Enumeration<Questionnaire.AnswerFormat> 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
public Questionnaire.QuestionComponent setTypeElement(Enumeration<Questionnaire.AnswerFormat> value)
- 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
public Questionnaire.AnswerFormat getType()
- Returns:
- The expected format of the answer, e.g. the type of input (string, integer) or whether a (multiple) choice is expected.
-
setType
public Questionnaire.QuestionComponent setType(Questionnaire.AnswerFormat value)
- Parameters:
value- The expected format of the answer, e.g. the type of input (string, integer) or whether a (multiple) choice is expected.
-
getRequiredElement
public BooleanType 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
public Questionnaire.QuestionComponent setRequiredElement(BooleanType value)
- 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
public Questionnaire.QuestionComponent setRequired(boolean value)
- 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
public BooleanType 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
public Questionnaire.QuestionComponent setRepeatsElement(BooleanType value)
- 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
public Questionnaire.QuestionComponent setRepeats(boolean value)
- Parameters:
value- If true, the question may have more than one answer.
-
getOptions
public Reference getOptions()
- Returns:
options(Reference to a value set containing a list of codes representing permitted answers for the question.)
-
hasOptions
public boolean hasOptions()
-
setOptions
public Questionnaire.QuestionComponent setOptions(Reference value)
- Parameters:
value-options(Reference to a value set containing a list of codes representing permitted answers for the question.)
-
getOptionsTarget
public ValueSet getOptionsTarget()
- Returns:
optionsThe 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
public Questionnaire.QuestionComponent setOptionsTarget(ValueSet value)
- Parameters:
value-optionsThe 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
public Questionnaire.QuestionComponent addOption(Coding t)
-
getGroup
public List<Questionnaire.GroupComponent> 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
public Questionnaire.GroupComponent addGroup()
- Returns:
group(Nested group, containing nested question for this question. The order of groups within the question is relevant.)
-
addGroup
public Questionnaire.QuestionComponent addGroup(Questionnaire.GroupComponent t)
-
listChildren
protected void listChildren(List<Property> childrenList)
- Overrides:
listChildrenin classBackboneElement
-
setProperty
public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin 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.QuestionComponent copy()
- Specified by:
copyin classBackboneElement
-
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
-
-