Enum ItemType

java.lang.Object
java.lang.Enum<ItemType>
org.hl7.fhir.r4.model.codesystems.ItemType
All Implemented Interfaces:
Serializable, Comparable<ItemType>

public enum ItemType extends Enum<ItemType>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Question with binary content such as an image, PDF, etc.
    Question with a yes/no answer (valueBoolean).
    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).
    Question with a date answer (valueDate).
    Question with a date and time answer (valueDateTime).
    Question with is a real number answer (valueDecimal).
    Text for display that will not capture an answer or have child items.
    An item with no direct answer but should have at least one child item.
    Question with an integer answer (valueInteger).
    added to help the parsers
    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).
    Question with a combination of a numeric value and unit, potentially with a comparator (invalid input: '<', >, etc.) as an answer.
    An item that defines a specific answer to be captured, and which may have child items.
    Question with a reference to another resource (practitioner, organization, etc.) as an answer (valueReference).
    Question with a short (few words to short sentence) free-text entry answer (valueString).
    Question with a long (potentially multi-paragraph) free-text entry answer (valueString).
    Question with a time (hour:minute:second) answer independent of date.
    Question with a URL (website, FTP site, etc.) answer (valueUri).
  • Method Summary

    Modifier and Type
    Method
    Description
    static ItemType
    fromCode(String codeString)
     
     
     
     
     
    static ItemType
    Returns the enum constant of this type with the specified name.
    static ItemType[]
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • GROUP

      public static final ItemType GROUP
      An item with no direct answer but should have at least one child item.
    • DISPLAY

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

      public static final ItemType 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 ItemType BOOLEAN
      Question with a yes/no answer (valueBoolean).
    • DECIMAL

      public static final ItemType DECIMAL
      Question with is a real number answer (valueDecimal).
    • INTEGER

      public static final ItemType INTEGER
      Question with an integer answer (valueInteger).
    • DATE

      public static final ItemType DATE
      Question with a date answer (valueDate).
    • DATETIME

      public static final ItemType DATETIME
      Question with a date and time answer (valueDateTime).
    • TIME

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

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

      public static final ItemType TEXT
      Question with a long (potentially multi-paragraph) free-text entry answer (valueString).
    • URL

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

      public static final ItemType 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).
    • OPENCHOICE

      public static final ItemType OPENCHOICE
      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 ItemType ATTACHMENT
      Question with binary content such as an image, PDF, etc. as an answer (valueAttachment).
    • REFERENCE

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

      public static final ItemType QUANTITY
      Question with a combination of a numeric value and unit, potentially with a comparator (invalid input: '<', >, 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).
    • NULL

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

    • values

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

      public String toCode()
    • getSystem

      public String getSystem()
    • getDefinition

    • getDisplay

      public String getDisplay()