Class QuestionnaireItemType

  • All Implemented Interfaces:
    Visitable

    @Generated("com.ibm.fhir.tools.CodeGenerator")
    public class QuestionnaireItemType
    extends Code
    • Field Detail

      • GROUP

        public static final QuestionnaireItemType GROUP
        Group

        An item with no direct answer but should have at least one child item.

      • DISPLAY

        public static final QuestionnaireItemType DISPLAY
        Display

        Text for display that will not capture an answer or have child items.

      • QUESTION

        public static final QuestionnaireItemType QUESTION
        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

        public static final QuestionnaireItemType BOOLEAN
        Boolean

        Question with a yes/no answer (valueBoolean).

      • DECIMAL

        public static final QuestionnaireItemType DECIMAL
        Decimal

        Question with is a real number answer (valueDecimal).

      • INTEGER

        public static final QuestionnaireItemType INTEGER
        Integer

        Question with an integer answer (valueInteger).

      • DATE_TIME

        public static final QuestionnaireItemType DATE_TIME
        Date Time

        Question with a date and time answer (valueDateTime).

      • TIME

        public static final QuestionnaireItemType TIME
        Time

        Question with a time (hour:minute:second) answer independent of date. (valueTime).

      • STRING

        public static final QuestionnaireItemType STRING
        String

        Question with a short (few words to short sentence) free-text entry answer (valueString).

      • TEXT

        public static final QuestionnaireItemType TEXT
        Text

        Question with a long (potentially multi-paragraph) free-text entry answer (valueString).

      • URL

        public static final QuestionnaireItemType URL
        Url

        Question with a URL (website, FTP site, etc.) answer (valueUri).

      • CHOICE

        public static final QuestionnaireItemType CHOICE
        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).

      • OPEN_CHOICE

        public static final QuestionnaireItemType OPEN_CHOICE
        Open Choice

        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).

      • ATTACHMENT

        public static final QuestionnaireItemType ATTACHMENT
        Attachment

        Question with binary content such as an image, PDF, etc. as an answer (valueAttachment).

      • REFERENCE

        public static final QuestionnaireItemType REFERENCE
        Reference

        Question with a reference to another resource (practitioner, organization, etc.) as an answer (valueReference).

      • QUANTITY

        public static final QuestionnaireItemType QUANTITY
        Quantity

        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 should be captured (or the unit that has a ucum conversion from the provided unit).

    • Method Detail

      • of

        public static QuestionnaireItemType of​(String value)
        Factory method for creating QuestionnaireItemType objects from a passed string value.
        Parameters:
        value - A string that matches one of the allowed code values
        Throws:
        IllegalArgumentException - If the passed string cannot be parsed into an allowed code value
      • string

        public static String string​(String value)
        Inherited factory method for creating QuestionnaireItemType objects from a passed string value.
        Parameters:
        value - A string that matches one of the allowed code values
        Throws:
        IllegalArgumentException - If the passed string cannot be parsed into an allowed code value
      • code

        public static Code code​(String value)
        Inherited factory method for creating QuestionnaireItemType objects from a passed string value.
        Parameters:
        value - A string that matches one of the allowed code values
        Throws:
        IllegalArgumentException - If the passed string cannot be parsed into an allowed code value
      • equals

        public boolean equals​(Object obj)
        Overrides:
        equals in class Code
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Code