Coding constructor

const Coding({
  1. @JsonKey(name: 'id') String? fhirId,
  2. @JsonKey(name: 'extension') List<FhirExtension>? extension_,
  3. FhirUri? system,
  4. @JsonKey(name: '_system') Element? systemElement,
  5. String? version,
  6. @JsonKey(name: '_version') Element? versionElement,
  7. FhirCode? code,
  8. @JsonKey(name: '_code') Element? codeElement,
  9. String? display,
  10. @JsonKey(name: '_display') Element? displayElement,
  11. FhirBoolean? userSelected,
  12. @JsonKey(name: '_userSelected') Element? userSelectedElement,
})

Coding A reference to a code defined by a terminology system.

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.

system The identification of the code system that defines the meaning of the symbol in the code.

systemElement ("_system") Extensions for system

version The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.

versionElement ("_version") Extensions for version

code A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).

codeElement ("_code") Extensions for code

display A representation of the meaning of the code in the system, following the rules of the system.

displayElement ("_display") Extensions for display

userSelected Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).

userSelectedElement ("_userSelected") Extensions for userSelected

Implementation

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

  /// [system] The identification of the code system that defines the meaning
  ///  of the symbol in the code.
  FhirUri? system,

  /// [systemElement] ("_system") Extensions for system
  @JsonKey(name: '_system') Element? systemElement,

  /// [version] The version of the code system which was used when choosing
  ///  this code. Note that a well-maintained code system does not need the
  ///  version reported, because the meaning of codes is consistent across
  ///  versions. However this cannot consistently be assured, and when the
  ///  meaning is not guaranteed to be consistent, the version SHOULD be
  ///  exchanged.
  String? version,

  /// [versionElement] ("_version") Extensions for version
  @JsonKey(name: '_version') Element? versionElement,

  /// [code] A symbol in syntax defined by the system. The symbol may be a
  ///  predefined code or an expression in a syntax defined by the coding
  ///  system (e.g. post-coordination).
  FhirCode? code,

  /// [codeElement] ("_code") Extensions for code
  @JsonKey(name: '_code') Element? codeElement,

  /// [display] A representation of the meaning of the code in the system,
  ///  following the rules of the system.
  String? display,

  /// [displayElement] ("_display") Extensions for display
  @JsonKey(name: '_display') Element? displayElement,

  /// [userSelected] Indicates that this coding was chosen by a user directly
  ///  - e.g. off a pick list of available items (codes or displays).
  FhirBoolean? userSelected,

  /// [userSelectedElement] ("_userSelected") Extensions for userSelected
  @JsonKey(name: '_userSelected') Element? userSelectedElement,
}) = _Coding;