ElementDefinitionConstraint constructor

const ElementDefinitionConstraint({
  1. @JsonKey(name: 'id') String? fhirId,
  2. @JsonKey(name: 'extension') List<FhirExtension>? extension_,
  3. List<FhirExtension>? modifierExtension,
  4. FhirId? key,
  5. @JsonKey(name: '_key') Element? keyElement,
  6. FhirMarkdown? requirements,
  7. @JsonKey(name: '_requirements') Element? requirementsElement,
  8. ElementDefinitionConstraintSeverity? severity,
  9. @JsonKey(name: '_severity') Element? severityElement,
  10. FhirBoolean? suppress,
  11. @JsonKey(name: '_suppress') Element? suppressElement,
  12. String? human,
  13. @JsonKey(name: '_human') Element? humanElement,
  14. String? expression,
  15. @JsonKey(name: '_expression') Element? expressionElement,
  16. FhirCanonical? source,
})

ElementDefinitionConstraint Captures constraints on each element within the resource, profile, or extension.

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

key Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality.

keyElement ("_key") Extensions for key

requirements Description of why this constraint is necessary or appropriate.

requirementsElement ("_requirements") Extensions for requirements

severity Identifies the impact constraint violation has on the conformance of the instance.

severityElement ("_severity") Extensions for severity

suppress If true, indicates that the warning or best practice guideline should be suppressed.

suppressElement ("_suppress") Extensions for suppress

human Text that can be used to describe the constraint in messages identifying that the constraint has been violated.

humanElement ("_human") Extensions for human

expression A FHIRPath expression of constraint that can be executed to see if this constraint is met.

expressionElement ("_expression") Extensions for expression

source A reference to the original source of the constraint, for traceability purposes.

Implementation

const factory ElementDefinitionConstraint({
  /// [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,

  /// [key] Allows identification of which elements have their cardinalities
  ///  impacted by the constraint.  Will not be referenced for constraints
  ///  that do not affect cardinality.
  FhirId? key,

  /// [keyElement] ("_key") Extensions for key
  @JsonKey(name: '_key') Element? keyElement,

  /// [requirements] Description of why this constraint is necessary or
  ///  appropriate.
  FhirMarkdown? requirements,

  /// [requirementsElement] ("_requirements") Extensions for requirements
  @JsonKey(name: '_requirements') Element? requirementsElement,

  /// [severity] Identifies the impact constraint violation has on the
  ///  conformance of the instance.
  ElementDefinitionConstraintSeverity? severity,

  /// [severityElement] ("_severity") Extensions for severity
  @JsonKey(name: '_severity') Element? severityElement,

  /// [suppress] If true, indicates that the warning or best practice
  ///  guideline should be suppressed.
  FhirBoolean? suppress,

  /// [suppressElement] ("_suppress") Extensions for suppress
  @JsonKey(name: '_suppress') Element? suppressElement,

  /// [human] Text that can be used to describe the constraint in messages
  ///  identifying that the constraint has been violated.
  String? human,

  /// [humanElement] ("_human") Extensions for human
  @JsonKey(name: '_human') Element? humanElement,

  /// [expression] A [FHIRPath](fhirpath.html) expression of constraint that
  ///  can be executed to see if this constraint is met.
  String? expression,

  /// [expressionElement] ("_expression") Extensions for expression
  @JsonKey(name: '_expression') Element? expressionElement,

  /// [source] A reference to the original source of the constraint, for
  ///  traceability purposes.
  FhirCanonical? source,
}) = _ElementDefinitionConstraint;