Package org.hl7.fhir.dstu2.model
Enum Questionnaire.AnswerFormat
- java.lang.Object
-
- java.lang.Enum<Questionnaire.AnswerFormat>
-
- org.hl7.fhir.dstu2.model.Questionnaire.AnswerFormat
-
- All Implemented Interfaces:
Serializable,Comparable<Questionnaire.AnswerFormat>
- Enclosing class:
- Questionnaire
public static enum Questionnaire.AnswerFormat extends Enum<Questionnaire.AnswerFormat>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATTACHMENTAnswer is binary content such as a image, PDF, etc.BOOLEANAnswer is a yes/no answer.CHOICEAnswer is a Coding drawn from a list of options.DATEAnswer is a date.DATETIMEAnswer is a date and time.DECIMALAnswer is a floating point number.INSTANTAnswer is a system timestamp.INTEGERAnswer is an integer.NULLadded to help the parsersOPENCHOICEAnswer is a Coding drawn from a list of options or a free-text entry.QUANTITYAnswer is a combination of a numeric value and unit, potentially with a comparator (<, >, etc.).REFERENCEAnswer is a reference to another resource (practitioner, organization, etc.).STRINGAnswer is a short (few words to short sentence) free-text entry.TEXTAnswer is a long (potentially multi-paragraph) free-text entry (still captured as a string).TIMEAnswer is a time (hour/minute/second) independent of date.URLAnswer is a url (website, FTP site, etc.).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Questionnaire.AnswerFormatfromCode(String codeString)StringgetDefinition()StringgetDisplay()StringgetSystem()StringtoCode()static Questionnaire.AnswerFormatvalueOf(String name)Returns the enum constant of this type with the specified name.static Questionnaire.AnswerFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOOLEAN
public static final Questionnaire.AnswerFormat BOOLEAN
Answer is a yes/no answer.
-
DECIMAL
public static final Questionnaire.AnswerFormat DECIMAL
Answer is a floating point number.
-
INTEGER
public static final Questionnaire.AnswerFormat INTEGER
Answer is an integer.
-
DATE
public static final Questionnaire.AnswerFormat DATE
Answer is a date.
-
DATETIME
public static final Questionnaire.AnswerFormat DATETIME
Answer is a date and time.
-
INSTANT
public static final Questionnaire.AnswerFormat INSTANT
Answer is a system timestamp.
-
TIME
public static final Questionnaire.AnswerFormat TIME
Answer is a time (hour/minute/second) independent of date.
-
STRING
public static final Questionnaire.AnswerFormat STRING
Answer is a short (few words to short sentence) free-text entry.
-
TEXT
public static final Questionnaire.AnswerFormat TEXT
Answer is a long (potentially multi-paragraph) free-text entry (still captured as a string).
-
URL
public static final Questionnaire.AnswerFormat URL
Answer is a url (website, FTP site, etc.).
-
CHOICE
public static final Questionnaire.AnswerFormat CHOICE
Answer is a Coding drawn from a list of options.
-
OPENCHOICE
public static final Questionnaire.AnswerFormat OPENCHOICE
Answer is a Coding drawn from a list of options or a free-text entry.
-
ATTACHMENT
public static final Questionnaire.AnswerFormat ATTACHMENT
Answer is binary content such as a image, PDF, etc.
-
REFERENCE
public static final Questionnaire.AnswerFormat REFERENCE
Answer is a reference to another resource (practitioner, organization, etc.).
-
QUANTITY
public static final Questionnaire.AnswerFormat QUANTITY
Answer is a combination of a numeric value and unit, potentially with a comparator (<, >, etc.).
-
NULL
public static final Questionnaire.AnswerFormat NULL
added to help the parsers
-
-
Method Detail
-
values
public static Questionnaire.AnswerFormat[] 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.AnswerFormat c : Questionnaire.AnswerFormat.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.AnswerFormat 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.AnswerFormat fromCode(String codeString) throws org.hl7.fhir.exceptions.FHIRException
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getDefinition
public String getDefinition()
-
getDisplay
public String getDisplay()
-
-