Package ca.uhn.fhir.model.dstu2.valueset
Enum AnswerFormatEnum
- java.lang.Object
-
- java.lang.Enum<AnswerFormatEnum>
-
- ca.uhn.fhir.model.dstu2.valueset.AnswerFormatEnum
-
- All Implemented Interfaces:
Serializable,Comparable<AnswerFormatEnum>
public enum AnswerFormatEnum extends Enum<AnswerFormatEnum>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATTACHMENTDisplay: Attachment
Code Value: attachment Answer is binary content such as a image, PDF, etc.BOOLEANDisplay: Boolean
Code Value: boolean Answer is a yes/no answer.CHOICEDisplay: Choice
Code Value: choice Answer is a Coding drawn from a list of options.DATEDisplay: Date
Code Value: date Answer is a date.DATE_TIMEDisplay: Date Time
Code Value: dateTime Answer is a date and time.DECIMALDisplay: Decimal
Code Value: decimal Answer is a floating point number.INSTANTDisplay: Instant
Code Value: instant Answer is a system timestamp.INTEGERDisplay: Integer
Code Value: integer Answer is an integer.OPEN_CHOICEDisplay: Open Choice
Code Value: open-choice Answer is a Coding drawn from a list of options or a free-text entry.QUANTITYDisplay: Quantity
Code Value: quantity Answer is a combination of a numeric value and unit, potentially with a comparator (<, >, etc.).REFERENCEDisplay: Reference
Code Value: reference Answer is a reference to another resource (practitioner, organization, etc.).STRINGDisplay: String
Code Value: string Answer is a short (few words to short sentence) free-text entry.TEXTDisplay: Text
Code Value: text Answer is a long (potentially multi-paragraph) free-text entry (still captured as a string).TIMEDisplay: Time
Code Value: time Answer is a time (hour/minute/second) independent of date.URLDisplay: Url
Code Value: url Answer is a url (website, FTP site, etc.).
-
Field Summary
Fields Modifier and Type Field Description static ca.uhn.fhir.model.api.IValueSetEnumBinder<AnswerFormatEnum>VALUESET_BINDERConverts codes to their respective enumerated valuesstatic StringVALUESET_IDENTIFIERIdentifier for this Value Set:static StringVALUESET_NAMEName for this Value Set: AnswerFormat
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AnswerFormatEnumforCode(String theCode)Returns the enumerated value associated with this codeStringgetCode()Returns the code associated with this enumerated valueStringgetSystem()Returns the code system associated with this enumerated valuestatic AnswerFormatEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static AnswerFormatEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOOLEAN
public static final AnswerFormatEnum BOOLEAN
Display: Boolean
Code Value: boolean Answer is a yes/no answer.
-
DECIMAL
public static final AnswerFormatEnum DECIMAL
Display: Decimal
Code Value: decimal Answer is a floating point number.
-
INTEGER
public static final AnswerFormatEnum INTEGER
Display: Integer
Code Value: integer Answer is an integer.
-
DATE
public static final AnswerFormatEnum DATE
Display: Date
Code Value: date Answer is a date.
-
DATE_TIME
public static final AnswerFormatEnum DATE_TIME
Display: Date Time
Code Value: dateTime Answer is a date and time.
-
INSTANT
public static final AnswerFormatEnum INSTANT
Display: Instant
Code Value: instant Answer is a system timestamp.
-
TIME
public static final AnswerFormatEnum TIME
Display: Time
Code Value: time Answer is a time (hour/minute/second) independent of date.
-
STRING
public static final AnswerFormatEnum STRING
Display: String
Code Value: string Answer is a short (few words to short sentence) free-text entry.
-
TEXT
public static final AnswerFormatEnum TEXT
Display: Text
Code Value: text Answer is a long (potentially multi-paragraph) free-text entry (still captured as a string).
-
URL
public static final AnswerFormatEnum URL
Display: Url
Code Value: url Answer is a url (website, FTP site, etc.).
-
CHOICE
public static final AnswerFormatEnum CHOICE
Display: Choice
Code Value: choice Answer is a Coding drawn from a list of options.
-
OPEN_CHOICE
public static final AnswerFormatEnum OPEN_CHOICE
Display: Open Choice
Code Value: open-choice Answer is a Coding drawn from a list of options or a free-text entry.
-
ATTACHMENT
public static final AnswerFormatEnum ATTACHMENT
Display: Attachment
Code Value: attachment Answer is binary content such as a image, PDF, etc.
-
REFERENCE
public static final AnswerFormatEnum REFERENCE
Display: Reference
Code Value: reference Answer is a reference to another resource (practitioner, organization, etc.).
-
QUANTITY
public static final AnswerFormatEnum QUANTITY
Display: Quantity
Code Value: quantity Answer is a combination of a numeric value and unit, potentially with a comparator (<, >, etc.).
-
-
Field Detail
-
VALUESET_IDENTIFIER
public static final String VALUESET_IDENTIFIER
Identifier for this Value Set:- See Also:
- Constant Field Values
-
VALUESET_NAME
public static final String VALUESET_NAME
Name for this Value Set: AnswerFormat- See Also:
- Constant Field Values
-
VALUESET_BINDER
public static final ca.uhn.fhir.model.api.IValueSetEnumBinder<AnswerFormatEnum> VALUESET_BINDER
Converts codes to their respective enumerated values
-
-
Method Detail
-
values
public static AnswerFormatEnum[] 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 (AnswerFormatEnum c : AnswerFormatEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AnswerFormatEnum 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
-
forCode
public static AnswerFormatEnum forCode(String theCode)
Returns the enumerated value associated with this code
-
-