Package org.hl7.fhir.r5.model
Enum Questionnaire.QuestionnaireItemType
java.lang.Object
java.lang.Enum<Questionnaire.QuestionnaireItemType>
org.hl7.fhir.r5.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 ConstantDescriptionQuestion with binary content such as an image, PDF, etc.Question with a yes/no answer (valueBoolean).Question with a Coding - generally drawn from a list of possible answers (valueCoding)Question with a date answer (valueDate).Question with a date and time answer (valueDateTime).Question with is a real number answer (valueDecimal).Text for display that will not capture an answer or have child items.An item with no direct answer but should have at least one child item.Question with an integer answer (valueInteger).added to help the parsers with the generic typesQuestion with a combination of a numeric value and unit as an answer.An item that defines a specific answer to be captured, and which may have child items.Question with a reference to another resource (practitioner, organization, etc.) as an answer (valueReference).Question with a short (few words to short sentence) free-text entry answer (valueString).Question with a long (potentially multi-paragraph) free-text entry answer (valueString).Question with a time (hour:minute:second) answer independent of date.Question with a URL (website, FTP site, etc.) answer (valueUri). -
Method Summary
Modifier and TypeMethodDescriptiontoCode()
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 Details
-
GROUP
An item with no direct answer but should have at least one child item. -
DISPLAY
Text for display that will not capture an answer or have child items. -
QUESTION
An 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
Question with a yes/no answer (valueBoolean). -
DECIMAL
Question with is a real number answer (valueDecimal). There is an extension 'http://hl7.org/fhir/StructureDefinition/questionnaire-unit' that can be used to computably convey the unit of measure associated with the answer for use when performing data extraction to an element of type Quantity. -
INTEGER
Question with an integer answer (valueInteger). There is an extension 'http://hl7.org/fhir/StructureDefinition/questionnaire-unit' that can be used to computably convey the unit of measure associated with the answer for use when performing data extraction to an element of type Quantity. -
DATE
Question with a date answer (valueDate). -
DATETIME
Question with a date and time answer (valueDateTime). -
TIME
Question with a time (hour:minute:second) answer independent of date. (valueTime). -
STRING
Question with a short (few words to short sentence) free-text entry answer (valueString). Strings SHOULD NOT contain carriage return or newline characters. If multi-line answers are needed, use the 'text' type. -
TEXT
Question with a long (potentially multi-paragraph) free-text entry answer (valueString). -
URL
Question with a URL (website, FTP site, etc.) answer (valueUri). -
CODING
Question with a Coding - generally drawn from a list of possible answers (valueCoding) -
ATTACHMENT
Question with binary content such as an image, PDF, etc. as an answer (valueAttachment). -
REFERENCE
Question with a reference to another resource (practitioner, organization, etc.) as an answer (valueReference). -
QUANTITY
Question with a combination of a numeric value and unit as an answer. (valueSimpleQuantity) There are two extensions ('http://hl7.org/fhir/StructureDefinition/questionnaire-unitOption' and 'http://hl7.org/fhir/StructureDefinition/questionnaire-unitValueSet') that can be used to define what unit should be selected for the Quantity.code and Quantity.system. -
NULL
added to help the parsers with the generic types
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
toCode
-
getSystem
-
getDefinition
-
getDisplay
-