QuestionnaireItem class

QuestionnaireItem A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection.

Annotations
  • @freezed

Constructors

QuestionnaireItem({@JsonKey(name: 'id') String? fhirId, @JsonKey(name: 'extension') List<FhirExtension>? extension_, List<FhirExtension>? modifierExtension, String? linkId, @JsonKey(name: '_linkId') Element? linkIdElement, FhirUri? definition, @JsonKey(name: '_definition') Element? definitionElement, List<Coding>? code, String? prefix, @JsonKey(name: '_prefix') Element? prefixElement, String? text, @JsonKey(name: '_text') Element? textElement, FhirCode? type, @JsonKey(name: '_type') Element? typeElement, List<QuestionnaireEnableWhen>? enableWhen, FhirCode? enableBehavior, @JsonKey(name: '_enableBehavior') Element? enableBehaviorElement, FhirCode? disabledDisplay, @JsonKey(name: '_disabledDisplay') Element? disabledDisplayElement, @JsonKey(name: 'required') FhirBoolean? required_, @JsonKey(name: '_required') Element? requiredElement, FhirBoolean? repeats, @JsonKey(name: '_repeats') Element? repeatsElement, FhirBoolean? readOnly, @JsonKey(name: '_readOnly') Element? readOnlyElement, FhirInteger? maxLength, @JsonKey(name: '_maxLength') Element? maxLengthElement, FhirCode? answerConstraint, @JsonKey(name: '_answerConstraint') Element? answerConstraintElement, FhirCanonical? answerValueSet, List<QuestionnaireAnswerOption>? answerOption, List<QuestionnaireInitial>? initial, List<QuestionnaireItem>? item})
QuestionnaireItem A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection.
const
factory
QuestionnaireItem.fromJson(Map<String, dynamic> json)
Factory constructor, accepts Map<String, dynamic> as an argument
factory
QuestionnaireItem.fromJsonString(String source)
Acts like a constructor, returns a QuestionnaireItem, accepts a String as an argument, mostly because I got tired of typing it out
factory
QuestionnaireItem.fromYaml(dynamic yaml)
Factory constructor that accepts a String in YAML format as an argument
factory

Properties

answerConstraint FhirCode?
answerConstraint For items that have a defined set of allowed answers (via answerOption or answerValueSet), indicates whether values other than those specified can be selected.
no setterinherited
answerConstraintElement Element?
answerConstraintElement ("_answerConstraint") Extensions for answerConstraint
no setterinherited
answerOption List<QuestionnaireAnswerOption>?
answerOption One of the permitted answers for the question.
no setterinherited
answerValueSet FhirCanonical?
answerValueSet A reference to a value set containing a list of values representing permitted answers for a question.
no setterinherited
code List<Coding>?
code A terminology code that corresponds to this group or question (e.g. a code from LOINC, which defines many questions and answers).
no setterinherited
copyWith → $QuestionnaireItemCopyWith<QuestionnaireItem>
no setterinherited
definition FhirUri?
definition This element is a URI that refers to an ElementDefinition or to an ObservationDefinition that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in Comments, below.
no setterinherited
definitionElement Element?
definitionElement ("_definition") Extensions for definition
no setterinherited
disabledDisplay FhirCode?
disabledDisplay Indicates if and how items that are disabled (because enableWhen evaluates to 'false') should be displayed.
no setterinherited
disabledDisplayElement Element?
disabledDisplayElement ("_disabledDisplay") Extensions for disabledDisplay
no setterinherited
enableBehavior FhirCode?
enableBehavior Controls how multiple enableWhen values are interpreted - whether all or any must be true.
no setterinherited
enableBehaviorElement Element?
enableBehaviorElement ("_enableBehavior") Extensions for enableBehavior
no setterinherited
enableWhen List<QuestionnaireEnableWhen>?
enableWhen A constraint indicating that this item should only be enabled (displayed/allow answers to be captured) when the specified condition is true.
no setterinherited
extension_ List<FhirExtension>?
extension_ ("extension") May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
no setterinherited
fhirId String?
id Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
initial List<QuestionnaireInitial>?
initial One or more values that should be pre-populated in the answer when initially rendering the questionnaire for user input.
no setterinherited
item List<QuestionnaireItem>?
item Text, questions and other groups to be nested beneath a question or group.
no setterinherited
linkId String?
linkId An identifier that is unique within the Questionnaire allowing linkage to the equivalent item in a QuestionnaireResponse resource.
no setterinherited
linkIdElement Element?
linkIdElement ("_linkId") Extensions for linkId
no setterinherited
maxLength FhirInteger?
maxLength The maximum number of characters that are permitted in the answer to be considered a "valid" QuestionnaireResponse.
no setterinherited
maxLengthElement Element?
maxLengthElement ("_maxLength") Extensions for maxLength
no setterinherited
modifierExtension List<FhirExtension>?
modifierExtension May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
no setterinherited
prefix String?
prefix A short label for a particular group, question or set of display text within the questionnaire used for reference by the individual completing the questionnaire.
no setterinherited
prefixElement Element?
prefixElement ("_prefix") Extensions for prefix
no setterinherited
readOnly FhirBoolean?
readOnly An indication, when true, that the value cannot be changed by a human respondent to the Questionnaire.
no setterinherited
readOnlyElement Element?
readOnlyElement ("_readOnly") Extensions for readOnly
no setterinherited
repeats FhirBoolean?
repeats An indication, if true, that a QuestionnaireResponse for this item may include multiple answers associated with a single instance of this item (for question-type items) or multiple repetitions of the item (for group-type items).
no setterinherited
repeatsElement Element?
repeatsElement ("_repeats") Extensions for repeats
no setterinherited
required_ FhirBoolean?
required_ ("required") An indication, if true, that the item must be present in a "completed" QuestionnaireResponse. If false, the item may be skipped when answering the questionnaire.
no setterinherited
requiredElement Element?
requiredElement ("_required") Extensions for required
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String?
text The name of a section, the text of a question or text content for a display item.
no setterinherited
textElement Element?
textElement ("_text") Extensions for text
no setterinherited
type FhirCode?
type The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, Coding, etc.).
no setterinherited
typeElement Element?
typeElement ("_type") Extensions for type
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toJsonString() String
Another convenience method because more and more I'm transmitting FHIR data as a String and not a Map
toString() String
A string representation of this object.
inherited
toYaml() String
Produces a Yaml formatted String version of the object

Operators

operator ==(Object other) bool
The equality operator.
inherited