StructureMapSource constructor

const StructureMapSource({
  1. @JsonKey(name: 'id') String? fhirId,
  2. @JsonKey(name: 'extension') List<FhirExtension>? extension_,
  3. List<FhirExtension>? modifierExtension,
  4. FhirId? context,
  5. @JsonKey(name: '_context') Element? contextElement,
  6. FhirInteger? min,
  7. @JsonKey(name: '_min') Element? minElement,
  8. String? max,
  9. @JsonKey(name: '_max') Element? maxElement,
  10. String? type,
  11. @JsonKey(name: '_type') Element? typeElement,
  12. String? defaultValue,
  13. @JsonKey(name: '_defaultValue') Element? defaultValueElement,
  14. String? element,
  15. @JsonKey(name: '_element') Element? elementElement,
  16. FhirCode? listMode,
  17. @JsonKey(name: '_listMode') Element? listModeElement,
  18. FhirId? variable,
  19. @JsonKey(name: '_variable') Element? variableElement,
  20. String? condition,
  21. @JsonKey(name: '_condition') Element? conditionElement,
  22. String? check,
  23. @JsonKey(name: '_check') Element? checkElement,
  24. String? logMessage,
  25. @JsonKey(name: '_logMessage') Element? logMessageElement,
})

StructureMapSource A Map of relationships between 2 structures that can be used to transform data.

id Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

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.

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).

context Type or variable this rule applies to.

contextElement ("_context") Extensions for context

min Specified minimum cardinality for the element. This is optional; if present, it acts an implicit check on the input content.

minElement ("_min") Extensions for min

max Specified maximum cardinality for the element - a number or a "". This is optional; if present, it acts an implicit check on the input content ( just serves as documentation; it's the default value).

maxElement ("_max") Extensions for max

type Specified type for the element. This works as a condition on the mapping - use for polymorphic elements.

typeElement ("_type") Extensions for type

defaultValue A value to use if there is no existing value in the source object.

defaultValueElement ("_defaultValue") Extensions for defaultValue

element Optional field for this source.

elementElement ("_element") Extensions for element

listMode How to handle the list mode for this element.

listModeElement ("_listMode") Extensions for listMode

variable Named context for field, if a field is specified.

variableElement ("_variable") Extensions for variable

condition FHIRPath expression - must be true or the rule does not apply.

conditionElement ("_condition") Extensions for condition

check FHIRPath expression - must be true or the mapping engine throws an error instead of completing.

checkElement ("_check") Extensions for check

logMessage A FHIRPath expression which specifies a message to put in the transform log when content matching the source rule is found.

logMessageElement ("_logMessage") Extensions for logMessage

Implementation

const factory StructureMapSource({
  /// [id] Unique id for the element within a resource (for internal
  ///  references). This may be any string value that does not contain spaces.
  @JsonKey(name: 'id') String? fhirId,

  /// [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.
  @JsonKey(name: 'extension') List<FhirExtension>? extension_,

  /// [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).
  List<FhirExtension>? modifierExtension,

  /// [context] Type or variable this rule applies to.
  FhirId? context,

  /// [contextElement] ("_context") Extensions for context
  @JsonKey(name: '_context') Element? contextElement,

  /// [min] Specified minimum cardinality for the element. This is optional;
  ///  if present, it acts an implicit check on the input content.
  FhirInteger? min,

  /// [minElement] ("_min") Extensions for min
  @JsonKey(name: '_min') Element? minElement,

  /// [max] Specified maximum cardinality for the element - a number or a
  ///  "*". This is optional; if present, it acts an implicit check on the
  ///  input content (* just serves as documentation; it's the default value).
  String? max,

  /// [maxElement] ("_max") Extensions for max
  @JsonKey(name: '_max') Element? maxElement,

  /// [type] Specified type for the element. This works as a condition on the
  ///  mapping - use for polymorphic elements.
  String? type,

  /// [typeElement] ("_type") Extensions for type
  @JsonKey(name: '_type') Element? typeElement,

  /// [defaultValue] A value to use if there is no existing value in the
  ///  source object.
  String? defaultValue,

  /// [defaultValueElement] ("_defaultValue") Extensions for defaultValue
  @JsonKey(name: '_defaultValue') Element? defaultValueElement,

  /// [element] Optional field for this source.
  String? element,

  /// [elementElement] ("_element") Extensions for element
  @JsonKey(name: '_element') Element? elementElement,

  /// [listMode] How to handle the list mode for this element.
  FhirCode? listMode,

  /// [listModeElement] ("_listMode") Extensions for listMode
  @JsonKey(name: '_listMode') Element? listModeElement,

  /// [variable] Named context for field, if a field is specified.
  FhirId? variable,

  /// [variableElement] ("_variable") Extensions for variable
  @JsonKey(name: '_variable') Element? variableElement,

  /// [condition] FHIRPath expression  - must be true or the rule does not
  ///  apply.
  String? condition,

  /// [conditionElement] ("_condition") Extensions for condition
  @JsonKey(name: '_condition') Element? conditionElement,

  /// [check] FHIRPath expression  - must be true or the mapping engine
  ///  throws an error instead of completing.
  String? check,

  /// [checkElement] ("_check") Extensions for check
  @JsonKey(name: '_check') Element? checkElement,

  /// [logMessage] A FHIRPath expression which specifies a message to put in
  ///  the transform log when content matching the source rule is found.
  String? logMessage,

  /// [logMessageElement] ("_logMessage") Extensions for logMessage
  @JsonKey(name: '_logMessage') Element? logMessageElement,
}) = _StructureMapSource;