BundleRequestUsCore constructor

BundleRequestUsCore({
  1. String? id,
  2. Code? method,
  3. FhirUri? url,
  4. String? ifNoneMatch,
  5. Instant? ifModifiedSince,
  6. String? ifMatch,
  7. String? ifNoneExist,
})

BundleRequestUsCore A container for a collection of resources.

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

method In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred.

url The URL for this entry, relative to the root (the address to which the request is posted).

ifNoneMatch If the ETag values match, return a 304 Not Modified status. See the API documentation for "Conditional Read".

ifModifiedSince Only perform the operation if the last updated date matches. See the API documentation for "Conditional Read".

ifMatch Only perform the operation if the Etag value matches. For more information, see the API section "Managing Resource Contention".

ifNoneExist Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for "Conditional Create". This is just the query portion of the URL - what follows the "?" (not including the "?").

Implementation

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

  /// [method] In a transaction or batch, this is the HTTP action to be
  /// executed for this entry. In a history bundle, this indicates the HTTP
  ///  action that occurred.
  Code? method,

  /// [url] The URL for this entry, relative to the root (the address to which
  ///  the request is posted).
  FhirUri? url,

  /// [ifNoneMatch] If the ETag values match, return a 304 Not Modified status.
  ///  See the API documentation for ["Conditional Read"](http.html#cread).
  String? ifNoneMatch,

  /// [ifModifiedSince] Only perform the operation if the last updated date
  /// matches. See the API documentation for ["Conditional
  ///  Read"](http.html#cread).
  Instant? ifModifiedSince,

  /// [ifMatch] Only perform the operation if the Etag value matches. For more
  /// information, see the API section ["Managing Resource
  ///  Contention"](http.html#concurrency).
  String? ifMatch,

  /// [ifNoneExist] Instruct the server not to perform the create if a
  /// specified resource already exists. For further information, see the API
  /// documentation for ["Conditional Create"](http.html#ccreate). This is just
  /// the query portion of the URL - what follows the "?" (not including the
  ///  "?").
  String? ifNoneExist,
}) =>
    BundleRequestUsCore._(BundleRequest(
      id: id,
      method: method,
      url: url,
      ifNoneMatch: ifNoneMatch,
      ifModifiedSince: ifModifiedSince,
      ifMatch: ifMatch,
      ifNoneExist: ifNoneExist,
    ));