UsageContext constructor

const UsageContext({
  1. @JsonKey(name: 'id') String? fhirId,
  2. @JsonKey(name: 'extension') List<FhirExtension>? extension_,
  3. required Coding code,
  4. CodeableConcept? valueCodeableConcept,
  5. Quantity? valueQuantity,
  6. Range? valueRange,
  7. Reference? valueReference,
})

UsageContext Specifies clinical/business/etc. metadata that can be used to retrieve, index and/or categorize an artifact. This metadata can either be specific to the applicable population (e.g., age category, DRG) or the specific context of care (e.g., venue, care setting, provider of care).

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.

code A code that identifies the type of context being specified by this usage context.

valueCodeableConcept A value that defines the context specified in this context of use. The interpretation of the value is defined by the code.

valueQuantity A value that defines the context specified in this context of use. The interpretation of the value is defined by the code.

valueRange A value that defines the context specified in this context of use. The interpretation of the value is defined by the code.

valueReference A value that defines the context specified in this context of use. The interpretation of the value is defined by the code.

Implementation

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

  /// [code] A code that identifies the type of context being specified by
  ///  this usage context.
  required Coding code,

  /// [valueCodeableConcept] A value that defines the context specified in
  ///  this context of use. The interpretation of the value is defined by the
  ///  code.
  CodeableConcept? valueCodeableConcept,

  /// [valueQuantity] A value that defines the context specified in this
  ///  context of use. The interpretation of the value is defined by the code.
  Quantity? valueQuantity,

  /// [valueRange] A value that defines the context specified in this context
  ///  of use. The interpretation of the value is defined by the code.
  Range? valueRange,

  /// [valueReference] A value that defines the context specified in this
  ///  context of use. The interpretation of the value is defined by the code.
  Reference? valueReference,
}) = _UsageContext;