QuestionnaireItemType
public enum QuestionnaireItemType: String
Distinguishes groups from questions and display text and indicates data type for questions
URL: http://hl7.org/fhir/item-type ValueSet: http://hl7.org/fhir/ValueSet/item-type
-
An item with no direct answer but should have at least one child item.
Declaration
Swift
case group = "group"
-
Text for display that will not capture an answer or have child items.
Declaration
Swift
case display = "display"
-
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)
Declaration
Swift
case question = "question"
-
Question with a yes/no answer (valueBoolean)
Declaration
Swift
case boolean = "boolean"
-
Question with is a real number answer (valueDecimal)
Declaration
Swift
case decimal = "decimal"
-
Question with an integer answer (valueInteger)
Declaration
Swift
case integer = "integer"
-
Question with a date answer (valueDate)
Declaration
Swift
case date = "date"
-
Question with a date and time answer (valueDateTime)
Declaration
Swift
case dateTime = "dateTime"
-
Question with a time (hour:minute:second) answer independent of date. (valueTime)
Declaration
Swift
case time = "time"
-
Question with a short (few words to short sentence) free-text entry answer (valueString)
Declaration
Swift
case string = "string"
-
Question with a long (potentially multi-paragraph) free-text entry answer (valueString)
Declaration
Swift
case text = "text"
-
Question with a URL (website, FTP site, etc.) answer (valueUri)
Declaration
Swift
case url = "url"
-
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)
Declaration
Swift
case choice = "choice"
-
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)
Declaration
Swift
case openChoice = "open-choice"
-
Question with binary content such as a image, PDF, etc. as an answer (valueAttachment)
Declaration
Swift
case attachment = "attachment"
-
Question with a reference to another resource (practitioner, organization, etc.) as an answer (valueReference)
Declaration
Swift
case reference = "reference"
-
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)
Declaration
Swift
case quantity = "quantity"