TestScriptOperation constructor

const TestScriptOperation({
  1. @JsonKey(name: 'id') FhirId? fhirId,
  2. @JsonKey(name: 'extension') List<FhirExtension>? extension_,
  3. List<FhirExtension>? modifierExtension,
  4. Coding? type,
  5. FhirCode? resource,
  6. @JsonKey(name: '_resource') Element? resourceElement,
  7. String? label,
  8. @JsonKey(name: '_label') Element? labelElement,
  9. String? description,
  10. @JsonKey(name: '_description') Element? descriptionElement,
  11. FhirCode? accept,
  12. @JsonKey(name: '_accept') Element? acceptElement,
  13. FhirCode? contentType,
  14. @JsonKey(name: '_contentType') Element? contentTypeElement,
  15. FhirInteger? destination,
  16. @JsonKey(name: '_destination') Element? destinationElement,
  17. FhirBoolean? encodeRequestUrl,
  18. @JsonKey(name: '_encodeRequestUrl') Element? encodeRequestUrlElement,
  19. FhirCode? method,
  20. @JsonKey(name: '_method') Element? methodElement,
  21. FhirInteger? origin,
  22. @JsonKey(name: '_origin') Element? originElement,
  23. String? params,
  24. @JsonKey(name: '_params') Element? paramsElement,
  25. List<TestScriptRequestHeader>? requestHeader,
  26. FhirId? requestId,
  27. @JsonKey(name: '_requestId') Element? requestIdElement,
  28. FhirId? responseId,
  29. @JsonKey(name: '_responseId') Element? responseIdElement,
  30. FhirId? sourceId,
  31. @JsonKey(name: '_sourceId') Element? sourceIdElement,
  32. FhirId? targetId,
  33. @JsonKey(name: '_targetId') Element? targetIdElement,
  34. String? url,
  35. @JsonKey(name: '_url') Element? urlElement,
})

TestScriptOperation A structured set of tests against a FHIR server or client implementation to determine compliance against the FHIR specification.

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

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

type Server interaction or operation type.

resource The type of the resource. See http://build.fhir.org/resourcelist.html.

resourceElement Extensions for resource

label The label would be used for tracking/logging purposes by test engines.

labelElement Extensions for label

description The description would be used by test engines for tracking and reporting purposes.

descriptionElement Extensions for description

accept The mime-type to use for RESTful operation in the 'Accept' header.

acceptElement Extensions for accept

contentType The mime-type to use for RESTful operation in the 'Content-Type' header.

contentTypeElement Extensions for contentType

destination The server where the request message is destined for. Must be one of the server numbers listed in TestScript.destination section.

destinationElement Extensions for destination

encodeRequestUrl Whether or not to implicitly send the request url in encoded format. The default is true to match the standard RESTful client behavior. Set to false when communicating with a server that does not support encoded url paths.

encodeRequestUrlElement Extensions for encodeRequestUrl

method The HTTP method the test engine MUST use for this operation regardless of any other operation details.

methodElement Extensions for method

origin The server where the request message originates from. Must be one of the server numbers listed in TestScript.origin section.

originElement Extensions for origin

params Path plus parameters after type. Used to set parts of the request URL explicitly.

paramsElement Extensions for params

requestHeader Header elements would be used to set HTTP headers.

requestId The fixture id (maybe new) to map to the request.

requestIdElement Extensions for requestId

responseId The fixture id (maybe new) to map to the response.

responseIdElement Extensions for responseId

sourceId The id of the fixture used as the body of a PUT or POST request.

sourceIdElement Extensions for sourceId

targetId Id of fixture used for extracting the id, type, and vid for GET requests.

targetIdElement Extensions for targetId

url Complete request URL.

urlElement Extensions for url

Implementation

const factory TestScriptOperation({
  /// [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') FhirId? fhirId,

  /// [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 manageable, 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 manageable, 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,

  /// [type] Server interaction or operation type.
  Coding? type,

  /// [resource] The type of the resource.  See
  ///  http://build.fhir.org/resourcelist.html.
  FhirCode? resource,

  /// [resourceElement] Extensions for resource
  @JsonKey(name: '_resource') Element? resourceElement,

  /// [label] The label would be used for tracking/logging purposes by test
  ///  engines.
  String? label,

  /// [labelElement] Extensions for label
  @JsonKey(name: '_label') Element? labelElement,

  /// [description] The description would be used by test engines for tracking
  ///  and reporting purposes.
  String? description,

  /// [descriptionElement] Extensions for description
  @JsonKey(name: '_description') Element? descriptionElement,

  /// [accept] The mime-type to use for RESTful operation in the 'Accept'
  ///  header.
  FhirCode? accept,

  /// [acceptElement] Extensions for accept
  @JsonKey(name: '_accept') Element? acceptElement,

  /// [contentType] The mime-type to use for RESTful operation in the
  ///  'Content-Type' header.
  FhirCode? contentType,

  /// [contentTypeElement] Extensions for contentType
  @JsonKey(name: '_contentType') Element? contentTypeElement,

  /// [destination] The server where the request message is destined for.  Must
  ///  be one of the server numbers listed in TestScript.destination section.
  FhirInteger? destination,

  /// [destinationElement] Extensions for destination
  @JsonKey(name: '_destination') Element? destinationElement,

  /// [encodeRequestUrl] Whether or not to implicitly send the request url in
  /// encoded format. The default is true to match the standard RESTful client
  /// behavior. Set to false when communicating with a server that does not
  ///  support encoded url paths.
  FhirBoolean? encodeRequestUrl,

  /// [encodeRequestUrlElement] Extensions for encodeRequestUrl
  @JsonKey(name: '_encodeRequestUrl') Element? encodeRequestUrlElement,

  /// [method] The HTTP method the test engine MUST use for this operation
  ///  regardless of any other operation details.
  FhirCode? method,

  /// [methodElement] Extensions for method
  @JsonKey(name: '_method') Element? methodElement,

  /// [origin] The server where the request message originates from.  Must be
  ///  one of the server numbers listed in TestScript.origin section.
  FhirInteger? origin,

  /// [originElement] Extensions for origin
  @JsonKey(name: '_origin') Element? originElement,

  /// [params] Path plus parameters after [type].  Used to set parts of the
  ///  request URL explicitly.
  String? params,

  /// [paramsElement] Extensions for params
  @JsonKey(name: '_params') Element? paramsElement,

  /// [requestHeader] Header elements would be used to set HTTP headers.
  List<TestScriptRequestHeader>? requestHeader,

  /// [requestId] The fixture id (maybe new) to map to the request.
  FhirId? requestId,

  /// [requestIdElement] Extensions for requestId
  @JsonKey(name: '_requestId') Element? requestIdElement,

  /// [responseId] The fixture id (maybe new) to map to the response.
  FhirId? responseId,

  /// [responseIdElement] Extensions for responseId
  @JsonKey(name: '_responseId') Element? responseIdElement,

  /// [sourceId] The id of the fixture used as the body of a PUT or POST
  ///  request.
  FhirId? sourceId,

  /// [sourceIdElement] Extensions for sourceId
  @JsonKey(name: '_sourceId') Element? sourceIdElement,

  /// [targetId] Id of fixture used for extracting the [id],  [type], and [vid]
  ///  for GET requests.
  FhirId? targetId,

  /// [targetIdElement] Extensions for targetId
  @JsonKey(name: '_targetId') Element? targetIdElement,

  /// [url] Complete request URL.
  String? url,

  /// [urlElement] Extensions for url
  @JsonKey(name: '_url') Element? urlElement,
}) = _TestScriptOperation;