
Package org.hl7.fhir.dstu3.model
Enum Questionnaire.QuestionnaireItemType
- java.lang.Object
-
- java.lang.Enum<Questionnaire.QuestionnaireItemType>
-
- org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemType
-
- All Implemented Interfaces:
Serializable
,Comparable<Questionnaire.QuestionnaireItemType>
- Enclosing class:
- Questionnaire
public static enum Questionnaire.QuestionnaireItemType extends Enum<Questionnaire.QuestionnaireItemType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATTACHMENT
Question with binary content such as a image, PDF, etc.BOOLEAN
Question with a yes/no answer (valueBoolean)CHOICE
Question with a Coding drawn from a list of options (specified in either the option property, or via the valueset referenced in the options property) as an answer (valueCoding)DATE
Question with a date answer (valueDate)DATETIME
Question with a date and time answer (valueDateTime)DECIMAL
Question with is a real number answer (valueDecimal)DISPLAY
Text for display that will not capture an answer or have child items.GROUP
An item with no direct answer but should have at least one child item.INTEGER
Question with an integer answer (valueInteger)NULL
added to help the parsers with the generic typesOPENCHOICE
Answer is a Coding drawn from a list of options (as with the choice type) or a free-text entry in a string (valueCoding or valueString)QUANTITY
Question with a combination of a numeric value and unit, potentially with a comparator (<, >, etc.) as an answer.QUESTION
An item that defines a specific answer to be captured, and may have child items.REFERENCE
Question with a reference to another resource (practitioner, organization, etc.) as an answer (valueReference)STRING
Question with a short (few words to short sentence) free-text entry answer (valueString)TEXT
Question with a long (potentially multi-paragraph) free-text entry answer (valueString)TIME
Question with a time (hour:minute:second) answer independent of date.URL
Question with a URL (website, FTP site, etc.) answer (valueUri)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Questionnaire.QuestionnaireItemType
fromCode(String codeString)
String
getDefinition()
String
getDisplay()
String
getSystem()
String
toCode()
static Questionnaire.QuestionnaireItemType
valueOf(String name)
Returns the enum constant of this type with the specified name.static Questionnaire.QuestionnaireItemType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GROUP
public static final Questionnaire.QuestionnaireItemType GROUP
An item with no direct answer but should have at least one child item.
-
DISPLAY
public static final Questionnaire.QuestionnaireItemType DISPLAY
Text for display that will not capture an answer or have child items.
-
QUESTION
public static final Questionnaire.QuestionnaireItemType QUESTION
An item that defines a specific answer to be captured, and may have child items. (the answer provided in the QuestionnaireResponse should be of the defined datatype)
-
BOOLEAN
public static final Questionnaire.QuestionnaireItemType BOOLEAN
Question with a yes/no answer (valueBoolean)
-
DECIMAL
public static final Questionnaire.QuestionnaireItemType DECIMAL
Question with is a real number answer (valueDecimal)
-
INTEGER
public static final Questionnaire.QuestionnaireItemType INTEGER
Question with an integer answer (valueInteger)
-
DATE
public static final Questionnaire.QuestionnaireItemType DATE
Question with a date answer (valueDate)
-
DATETIME
public static final Questionnaire.QuestionnaireItemType DATETIME
Question with a date and time answer (valueDateTime)
-
TIME
public static final Questionnaire.QuestionnaireItemType TIME
Question with a time (hour:minute:second) answer independent of date. (valueTime)
-
STRING
public static final Questionnaire.QuestionnaireItemType STRING
Question with a short (few words to short sentence) free-text entry answer (valueString)
-
TEXT
public static final Questionnaire.QuestionnaireItemType TEXT
Question with a long (potentially multi-paragraph) free-text entry answer (valueString)
-
URL
public static final Questionnaire.QuestionnaireItemType URL
Question with a URL (website, FTP site, etc.) answer (valueUri)
-
CHOICE
public static final Questionnaire.QuestionnaireItemType CHOICE
Question with a Coding drawn from a list of options (specified in either the option property, or via the valueset referenced in the options property) as an answer (valueCoding)
-
OPENCHOICE
public static final Questionnaire.QuestionnaireItemType OPENCHOICE
Answer is a Coding drawn from a list of options (as with the choice type) or a free-text entry in a string (valueCoding or valueString)
-
ATTACHMENT
public static final Questionnaire.QuestionnaireItemType ATTACHMENT
Question with binary content such as a image, PDF, etc. as an answer (valueAttachment)
-
REFERENCE
public static final Questionnaire.QuestionnaireItemType REFERENCE
Question with a reference to another resource (practitioner, organization, etc.) as an answer (valueReference)
-
QUANTITY
public static final Questionnaire.QuestionnaireItemType QUANTITY
Question 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 whould be captured (or the a unit that has a ucum conversion from the provided unit)
-
NULL
public static final Questionnaire.QuestionnaireItemType NULL
added to help the parsers with the generic types
-
-
Method Detail
-
values
public static Questionnaire.QuestionnaireItemType[] 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 (Questionnaire.QuestionnaireItemType c : Questionnaire.QuestionnaireItemType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Questionnaire.QuestionnaireItemType 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
-
fromCode
public static Questionnaire.QuestionnaireItemType fromCode(String codeString) throws org.hl7.fhir.exceptions.FHIRException
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getDefinition
public String getDefinition()
-
getDisplay
public String getDisplay()
-
-