Enum QuestionnaireItemType.ValueSet
- java.lang.Object
-
- java.lang.Enum<QuestionnaireItemType.ValueSet>
-
- com.ibm.fhir.model.type.code.QuestionnaireItemType.ValueSet
-
- All Implemented Interfaces:
Serializable,Comparable<QuestionnaireItemType.ValueSet>
- Enclosing class:
- QuestionnaireItemType
public static enum QuestionnaireItemType.ValueSet extends Enum<QuestionnaireItemType.ValueSet>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATTACHMENTAttachmentBOOLEANBooleanCHOICEChoiceDATEDateDATE_TIMEDate TimeDECIMALDecimalDISPLAYDisplayGROUPGroupINTEGERIntegerOPEN_CHOICEOpen ChoiceQUANTITYQuantityQUESTIONQuestionREFERENCEReferenceSTRINGStringTEXTTextTIMETimeURLUrl
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static QuestionnaireItemType.ValueSetfrom(String value)Factory method for creating QuestionnaireItemType.ValueSet values from a passed string value.Stringvalue()static QuestionnaireItemType.ValueSetvalueOf(String name)Returns the enum constant of this type with the specified name.static QuestionnaireItemType.ValueSet[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GROUP
public static final QuestionnaireItemType.ValueSet GROUP
GroupAn item with no direct answer but should have at least one child item.
-
DISPLAY
public static final QuestionnaireItemType.ValueSet DISPLAY
DisplayText for display that will not capture an answer or have child items.
-
QUESTION
public static final QuestionnaireItemType.ValueSet 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.ValueSet BOOLEAN
BooleanQuestion with a yes/no answer (valueBoolean).
-
DECIMAL
public static final QuestionnaireItemType.ValueSet DECIMAL
DecimalQuestion with is a real number answer (valueDecimal).
-
INTEGER
public static final QuestionnaireItemType.ValueSet INTEGER
IntegerQuestion with an integer answer (valueInteger).
-
DATE
public static final QuestionnaireItemType.ValueSet DATE
DateQuestion with a date answer (valueDate).
-
DATE_TIME
public static final QuestionnaireItemType.ValueSet DATE_TIME
Date TimeQuestion with a date and time answer (valueDateTime).
-
TIME
public static final QuestionnaireItemType.ValueSet TIME
TimeQuestion with a time (hour:minute:second) answer independent of date. (valueTime).
-
STRING
public static final QuestionnaireItemType.ValueSet STRING
StringQuestion with a short (few words to short sentence) free-text entry answer (valueString).
-
TEXT
public static final QuestionnaireItemType.ValueSet TEXT
TextQuestion with a long (potentially multi-paragraph) free-text entry answer (valueString).
-
URL
public static final QuestionnaireItemType.ValueSet URL
UrlQuestion with a URL (website, FTP site, etc.) answer (valueUri).
-
CHOICE
public static final QuestionnaireItemType.ValueSet 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.ValueSet 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.ValueSet ATTACHMENT
AttachmentQuestion with binary content such as an image, PDF, etc. as an answer (valueAttachment).
-
REFERENCE
public static final QuestionnaireItemType.ValueSet REFERENCE
ReferenceQuestion with a reference to another resource (practitioner, organization, etc.) as an answer (valueReference).
-
QUANTITY
public static final QuestionnaireItemType.ValueSet 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
-
values
public static QuestionnaireItemType.ValueSet[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (QuestionnaireItemType.ValueSet c : QuestionnaireItemType.ValueSet.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static QuestionnaireItemType.ValueSet valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
value
public String value()
- Returns:
- The java.lang.String value of the code represented by this enum
-
from
public static QuestionnaireItemType.ValueSet from(String value)
Factory method for creating QuestionnaireItemType.ValueSet values 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
-
-