Class QuestionnaireItemType
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.type.Element
-
- com.ibm.fhir.model.type.String
-
- com.ibm.fhir.model.type.Code
-
- com.ibm.fhir.model.type.code.QuestionnaireItemType
-
- All Implemented Interfaces:
Visitable
@Generated("com.ibm.fhir.tools.CodeGenerator") public class QuestionnaireItemType extends Code
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQuestionnaireItemType.Builderstatic classQuestionnaireItemType.ValueSet
-
Field Summary
Fields Modifier and Type Field Description static QuestionnaireItemTypeATTACHMENTAttachmentstatic QuestionnaireItemTypeBOOLEANBooleanstatic QuestionnaireItemTypeCHOICEChoicestatic QuestionnaireItemTypeDATEDatestatic QuestionnaireItemTypeDATE_TIMEDate Timestatic QuestionnaireItemTypeDECIMALDecimalstatic QuestionnaireItemTypeDISPLAYDisplaystatic QuestionnaireItemTypeGROUPGroupstatic QuestionnaireItemTypeINTEGERIntegerstatic QuestionnaireItemTypeOPEN_CHOICEOpen Choicestatic QuestionnaireItemTypeQUANTITYQuantitystatic QuestionnaireItemTypeQUESTIONQuestionstatic QuestionnaireItemTypeREFERENCEReferencestatic QuestionnaireItemTypeSTRINGStringstatic QuestionnaireItemTypeTEXTTextstatic QuestionnaireItemTypeTIMETimestatic QuestionnaireItemTypeURLUrl
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static QuestionnaireItemType.Builderbuilder()static Codecode(String value)Inherited factory method for creating QuestionnaireItemType objects from a passed string value.booleanequals(Object obj)QuestionnaireItemType.ValueSetgetValueAsEnumConstant()inthashCode()static QuestionnaireItemTypeof(QuestionnaireItemType.ValueSet value)Factory method for creating QuestionnaireItemType objects from a passed enum value.static QuestionnaireItemTypeof(String value)Factory method for creating QuestionnaireItemType objects from a passed string value.static Stringstring(String value)Inherited factory method for creating QuestionnaireItemType objects from a passed string value.QuestionnaireItemType.BuildertoBuilder()Create a new Builder from the contents of this Element-
Methods inherited from class com.ibm.fhir.model.type.String
getValue, hasChildren
-
Methods inherited from class com.ibm.fhir.model.type.Element
as, getExtension, getId, is
-
-
-
-
Field Detail
-
GROUP
public static final QuestionnaireItemType GROUP
GroupAn item with no direct answer but should have at least one child item.
-
DISPLAY
public static final QuestionnaireItemType DISPLAY
DisplayText for display that will not capture an answer or have child items.
-
QUESTION
public static final QuestionnaireItemType QUESTION
QuestionAn item that defines a specific answer to be captured, and which may have child items. (the answer provided in the QuestionnaireResponse should be of the defined datatype).
-
BOOLEAN
public static final QuestionnaireItemType BOOLEAN
BooleanQuestion with a yes/no answer (valueBoolean).
-
DECIMAL
public static final QuestionnaireItemType DECIMAL
DecimalQuestion with is a real number answer (valueDecimal).
-
INTEGER
public static final QuestionnaireItemType INTEGER
IntegerQuestion with an integer answer (valueInteger).
-
DATE
public static final QuestionnaireItemType DATE
DateQuestion with a date answer (valueDate).
-
DATE_TIME
public static final QuestionnaireItemType DATE_TIME
Date TimeQuestion with a date and time answer (valueDateTime).
-
TIME
public static final QuestionnaireItemType TIME
TimeQuestion with a time (hour:minute:second) answer independent of date. (valueTime).
-
STRING
public static final QuestionnaireItemType STRING
StringQuestion with a short (few words to short sentence) free-text entry answer (valueString).
-
TEXT
public static final QuestionnaireItemType TEXT
TextQuestion with a long (potentially multi-paragraph) free-text entry answer (valueString).
-
URL
public static final QuestionnaireItemType URL
UrlQuestion with a URL (website, FTP site, etc.) answer (valueUri).
-
CHOICE
public static final QuestionnaireItemType CHOICE
ChoiceQuestion with a Coding drawn from a list of possible answers (specified in either the answerOption property, or via the valueset referenced in the answerValueSet property) as an answer (valueCoding).
-
OPEN_CHOICE
public static final QuestionnaireItemType OPEN_CHOICE
Open ChoiceAnswer is a Coding drawn from a list of possible answers (as with the choice type) or a free-text entry in a string (valueCoding or valueString).
-
ATTACHMENT
public static final QuestionnaireItemType ATTACHMENT
AttachmentQuestion with binary content such as an image, PDF, etc. as an answer (valueAttachment).
-
REFERENCE
public static final QuestionnaireItemType REFERENCE
ReferenceQuestion with a reference to another resource (practitioner, organization, etc.) as an answer (valueReference).
-
QUANTITY
public static final QuestionnaireItemType QUANTITY
QuantityQuestion with a combination of a numeric value and unit, potentially with a comparator (<, >, etc.) as an answer. (valueQuantity) There is an extension 'http://hl7.org/fhir/StructureDefinition/questionnaire-unit' that can be used to define what unit should be captured (or the unit that has a ucum conversion from the provided unit).
-
-
Method Detail
-
getValueAsEnumConstant
public QuestionnaireItemType.ValueSet getValueAsEnumConstant()
-
of
public static QuestionnaireItemType of(QuestionnaireItemType.ValueSet value)
Factory method for creating QuestionnaireItemType objects from a passed enum value.
-
of
public static QuestionnaireItemType of(String value)
Factory method for creating QuestionnaireItemType objects from a passed string value.- Parameters:
value- A string that matches one of the allowed code values- Throws:
IllegalArgumentException- If the passed string cannot be parsed into an allowed code value
-
string
public static String string(String value)
Inherited factory method for creating QuestionnaireItemType objects from a passed string value.- Parameters:
value- A string that matches one of the allowed code values- Throws:
IllegalArgumentException- If the passed string cannot be parsed into an allowed code value
-
code
public static Code code(String value)
Inherited factory method for creating QuestionnaireItemType objects from a passed string value.- Parameters:
value- A string that matches one of the allowed code values- Throws:
IllegalArgumentException- If the passed string cannot be parsed into an allowed code value
-
toBuilder
public QuestionnaireItemType.Builder toBuilder()
Description copied from class:ElementCreate a new Builder from the contents of this Element
-
builder
public static QuestionnaireItemType.Builder builder()
-
-