Enum QuestionnaireItemType.ValueSet

    • Enum Constant Detail

      • QUESTION

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

      • TIME

        public static final QuestionnaireItemType.ValueSet TIME
        Time

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

      • STRING

        public static final QuestionnaireItemType.ValueSet STRING
        String

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

      • TEXT

        public static final QuestionnaireItemType.ValueSet TEXT
        Text

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

      • CHOICE

        public static final QuestionnaireItemType.ValueSet 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.ValueSet 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.ValueSet ATTACHMENT
        Attachment

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

      • REFERENCE

        public static final QuestionnaireItemType.ValueSet REFERENCE
        Reference

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

      • QUANTITY

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

      • values

        public static QuestionnaireItemType.ValueSet[] 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 (QuestionnaireItemType.ValueSet c : QuestionnaireItemType.ValueSet.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static QuestionnaireItemType.ValueSet 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 name
        NullPointerException - if the argument is null
      • value

        public String value()
        Returns:
        The java.lang.String value of the code represented by this enum
      • from

        public static QuestionnaireItemType.ValueSet from​(String value)
        Factory method for creating QuestionnaireItemType.ValueSet values 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