QuestionnaireItem class

QuestionnaireItem A structured set of questions intended to guide the

Annotations
  • @freezed

Constructors

QuestionnaireItem({@JsonKey(name: 'id') FhirId? fhirId, @JsonKey(name: 'extension') List<FhirExtension>? extension_, List<FhirExtension>? modifierExtension, required 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, required FhirCode type, @JsonKey(name: '_type') Element? typeElement, List<QuestionnaireEnableWhen>? enableWhen, FhirCode? enableBehavior, @JsonKey(name: '_enableBehavior') Element? enableBehaviorElement, @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, 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

answerOption List<QuestionnaireAnswerOption>?
answerOption One of the permitted answers for a "choice" or "open-choice" question.
no setterinherited
answerValueSet FhirCanonical?
answerValueSet A reference to a value set containing a list of codes representing permitted answers for a "choice" or "open-choice" 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
no setterinherited
definitionElement Element?
definitionElement Extensions for definition
no setterinherited
enableBehavior FhirCode?
enableBehavior Controls how multiple enableWhen values are interpreted
no setterinherited
enableBehaviorElement Element?
enableBehaviorElement 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_ 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 manageable, 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 FhirId?
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 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 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 manageable, 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 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 Extensions for readOnly
no setterinherited
repeats FhirBoolean?
repeats An indication, if true, that the item may occur multiple times in the response, collecting multiple answers for questions or multiple sets of answers for groups.
no setterinherited
repeatsElement Element?
repeatsElement Extensions for repeats
no setterinherited
required_ FhirBoolean?
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 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 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, coded choice, etc.).
no setterinherited
typeElement Element?
typeElement 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