BundleResponseUsCore constructor

BundleResponseUsCore({
  1. String? id,
  2. String? status,
  3. FhirUri? location,
  4. String? etag,
  5. Instant? lastModified,
  6. Resource? outcome,
})

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

status The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code.

location The location header created by processing this operation, populated if the operation returns a location.

etag The Etag for the resource, if the operation for the entry produced a versioned resource (see Resource Metadata and Versioning and Managing Resource Contention).

lastModified The date/time that the resource was modified on the server.

outcome An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction.

Implementation

factory BundleResponseUsCore({
  /// [id] Unique id for the element within a resource (for internal
  ///  references). This may be any string value that does not contain spaces.
  String? id,

  /// [status] The status code returned by processing this entry. The status
  /// SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the
  ///  standard HTTP description associated with the status code.
  String? status,

  /// [location] The location header created by processing this operation,
  ///  populated if the operation returns a location.
  FhirUri? location,

  /// [etag] The Etag for the resource, if the operation for the entry produced
  /// a versioned resource (see [Resource Metadata and
  /// Versioning](http.html#versioning) and [Managing Resource
  ///  Contention](http.html#concurrency)).
  String? etag,

  /// [lastModified] The date/time that the resource was modified on the
  ///  server.
  Instant? lastModified,

  /// [outcome] An OperationOutcome containing hints and warnings produced as
  ///  part of processing this entry in a batch or transaction.
  Resource? outcome,
}) =>
    BundleResponseUsCore._(BundleResponse(
      id: id,
      status: status,
      location: location,
      etag: etag,
      lastModified: lastModified,
      outcome: outcome,
    ));