Enum ItemType

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ATTACHMENT
      Question with binary content such as a image, PDF, etc.
      BOOLEAN
      Question with a yes/no answer
      CHOICE
      Question with a Coding drawn from a list of options as an answer
      DATE
      Question with adate answer
      DATETIME
      Question with a date and time answer
      DECIMAL
      Question with is a real number answer
      DISPLAY
      Text for display that will not capture an answer or have descendants
      GROUP
      An item with no direct answer but which has descendant items that are questions
      INSTANT
      Question with a system timestamp answer
      INTEGER
      Question with an integer answer
      NULL
      added to help the parsers
      OPENCHOICE
      Answer is a Coding drawn from a list of options or a free-text entry captured as Coding.display
      QUANTITY
      Question with a combination of a numeric value and unit, potentially with a comparator (<, >, etc.) as an answer.
      QUESTION
      An item that defines a specific answer to be captured (and may have descendant items)
      REFERENCE
      Question with a reference to another resource (practitioner, organization, etc.) as an answer
      STRING
      Question with a short (few words to short sentence) free-text entry answer
      TEXT
      Question with a long (potentially multi-paragraph) free-text entry (still captured as a string) answer
      TIME
      Question with a time (hour/minute/second) answer independent of date.
      URL
      Question with a url (website, FTP site, etc.) answer
    • Enum Constant Detail

      • GROUP

        public static final ItemType GROUP
        An item with no direct answer but which has descendant items that are questions
      • DISPLAY

        public static final ItemType DISPLAY
        Text for display that will not capture an answer or have descendants
      • QUESTION

        public static final ItemType QUESTION
        An item that defines a specific answer to be captured (and may have descendant items)
      • BOOLEAN

        public static final ItemType BOOLEAN
        Question with a yes/no answer
      • DECIMAL

        public static final ItemType DECIMAL
        Question with is a real number answer
      • INTEGER

        public static final ItemType INTEGER
        Question with an integer answer
      • DATE

        public static final ItemType DATE
        Question with adate answer
      • DATETIME

        public static final ItemType DATETIME
        Question with a date and time answer
      • INSTANT

        public static final ItemType INSTANT
        Question with a system timestamp answer
      • TIME

        public static final ItemType TIME
        Question with a time (hour/minute/second) answer independent of date.
      • STRING

        public static final ItemType STRING
        Question with a short (few words to short sentence) free-text entry answer
      • TEXT

        public static final ItemType TEXT
        Question with a long (potentially multi-paragraph) free-text entry (still captured as a string) answer
      • URL

        public static final ItemType URL
        Question with a url (website, FTP site, etc.) answer
      • CHOICE

        public static final ItemType CHOICE
        Question with a Coding drawn from a list of options as an answer
      • OPENCHOICE

        public static final ItemType OPENCHOICE
        Answer is a Coding drawn from a list of options or a free-text entry captured as Coding.display
      • ATTACHMENT

        public static final ItemType ATTACHMENT
        Question with binary content such as a image, PDF, etc. as an answer
      • REFERENCE

        public static final ItemType REFERENCE
        Question with a reference to another resource (practitioner, organization, etc.) as an answer
      • QUANTITY

        public static final ItemType QUANTITY
        Question with a combination of a numeric value and unit, potentially with a comparator (<, >, etc.) as an answer.
      • NULL

        public static final ItemType NULL
        added to help the parsers
    • Method Detail

      • values

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

        public static ItemType 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
      • fromCode

        public static ItemType fromCode​(String codeString)
                                 throws org.hl7.fhir.exceptions.FHIRException
        Throws:
        org.hl7.fhir.exceptions.FHIRException