public enum ItemType extends Enum<ItemType>
| Enum Constant and Description |
|---|
ATTACHMENT
Question with binary content such as an image, PDF, etc.
|
BOOLEAN
Question with a yes/no answer (valueBoolean).
|
CHOICE
Question 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).
|
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
|
OPENCHOICE
Answer 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).
|
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 which 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).
|
| Modifier and Type | Method and Description |
|---|---|
static ItemType |
fromCode(String codeString) |
String |
getDefinition() |
String |
getDisplay() |
String |
getSystem() |
String |
toCode() |
static ItemType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ItemType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ItemType GROUP
public static final ItemType DISPLAY
public static final ItemType QUESTION
public static final ItemType DATETIME
public static final ItemType TIME
public static final ItemType STRING
public static final ItemType TEXT
public static final ItemType URL
public static final ItemType CHOICE
public static final ItemType OPENCHOICE
public static final ItemType ATTACHMENT
public static final ItemType REFERENCE
public static final ItemType QUANTITY
public static ItemType[] values()
for (ItemType c : ItemType.values()) System.out.println(c);
public static ItemType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static ItemType fromCode(String codeString) throws org.hl7.fhir.exceptions.FHIRException
org.hl7.fhir.exceptions.FHIRExceptionpublic String getDefinition()
public String getDisplay()
Copyright © 2014–2021 Health Level 7. All rights reserved.