TestScriptAssert constructor

const TestScriptAssert({
  1. @JsonKey(name: 'id') String? fhirId,
  2. @JsonKey(name: 'extension') List<FhirExtension>? extension_,
  3. List<FhirExtension>? modifierExtension,
  4. String? label,
  5. @JsonKey(name: '_label') Element? labelElement,
  6. String? description,
  7. @JsonKey(name: '_description') Element? descriptionElement,
  8. FhirCode? direction,
  9. @JsonKey(name: '_direction') Element? directionElement,
  10. String? compareToSourceId,
  11. @JsonKey(name: '_compareToSourceId') Element? compareToSourceIdElement,
  12. String? compareToSourceExpression,
  13. @JsonKey(name: '_compareToSourceExpression') Element? compareToSourceExpressionElement,
  14. String? compareToSourcePath,
  15. @JsonKey(name: '_compareToSourcePath') Element? compareToSourcePathElement,
  16. FhirCode? contentType,
  17. @JsonKey(name: '_contentType') Element? contentTypeElement,
  18. FhirCode? defaultManualCompletion,
  19. @JsonKey(name: '_defaultManualCompletion') Element? defaultManualCompletionElement,
  20. String? expression,
  21. @JsonKey(name: '_expression') Element? expressionElement,
  22. String? headerField,
  23. @JsonKey(name: '_headerField') Element? headerFieldElement,
  24. String? minimumId,
  25. @JsonKey(name: '_minimumId') Element? minimumIdElement,
  26. FhirBoolean? navigationLinks,
  27. @JsonKey(name: '_navigationLinks') Element? navigationLinksElement,
  28. @JsonKey(name: 'operator') FhirCode? operator_,
  29. @JsonKey(name: '_operator') Element? operatorElement,
  30. String? path,
  31. @JsonKey(name: '_path') Element? pathElement,
  32. FhirCode? requestMethod,
  33. @JsonKey(name: '_requestMethod') Element? requestMethodElement,
  34. String? requestURL,
  35. @JsonKey(name: '_requestURL') Element? requestURLElement,
  36. FhirUri? resource,
  37. @JsonKey(name: '_resource') Element? resourceElement,
  38. FhirCode? response,
  39. @JsonKey(name: '_response') Element? responseElement,
  40. String? responseCode,
  41. @JsonKey(name: '_responseCode') Element? responseCodeElement,
  42. FhirId? sourceId,
  43. @JsonKey(name: '_sourceId') Element? sourceIdElement,
  44. FhirBoolean? stopTestOnFail,
  45. @JsonKey(name: '_stopTestOnFail') Element? stopTestOnFailElement,
  46. FhirId? validateProfileId,
  47. @JsonKey(name: '_validateProfileId') Element? validateProfileIdElement,
  48. String? value,
  49. @JsonKey(name: '_value') Element? valueElement,
  50. FhirBoolean? warningOnly,
  51. @JsonKey(name: '_warningOnly') Element? warningOnlyElement,
  52. List<TestScriptRequirement>? requirement,
})

TestScriptAssert 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_ ("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.

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

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

labelElement ("_label") Extensions for label

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

descriptionElement ("_description") Extensions for description

direction The direction to use for the assertion.

directionElement ("_direction") Extensions for direction

compareToSourceId Id of the source fixture used as the contents to be evaluated by either the "source/expression" or "sourceId/path" definition.

compareToSourceIdElement ("_compareToSourceId") Extensions for compareToSourceId

compareToSourceExpression The FHIRPath expression for a specific value to evaluate against the source fixture. When compareToSourceId is defined, either compareToSourceExpression or compareToSourcePath must be defined, but not both.

compareToSourceExpressionElement ("_compareToSourceExpression") Extensions for compareToSourceExpression

compareToSourcePath XPath or JSONPath expression to evaluate against the source fixture. When compareToSourceId is defined, either compareToSourceExpression or compareToSourcePath must be defined, but not both.

compareToSourcePathElement ("_compareToSourcePath") Extensions for compareToSourcePath

contentType The mime-type contents to compare against the request or response message 'Content-Type' header.

contentTypeElement ("_contentType") Extensions for contentType

defaultManualCompletion The default manual completion outcome applied to this assertion.

defaultManualCompletionElement ("_defaultManualCompletion") Extensions for defaultManualCompletion

expression The FHIRPath expression to be evaluated against the request or response message contents - HTTP headers and payload.

expressionElement ("_expression") Extensions for expression

headerField The HTTP header field name e.g. 'Location'.

headerFieldElement ("_headerField") Extensions for headerField

minimumId The ID of a fixture. Asserts that the response contains at a minimum the fixture specified by minimumId.

minimumIdElement ("_minimumId") Extensions for minimumId

navigationLinks Whether or not the test execution performs validation on the bundle navigation links.

navigationLinksElement ("_navigationLinks") Extensions for navigationLinks

operator_ ("operator") The operator type defines the conditional behavior of the assert.

operatorElement ("_operator") Extensions for operator

path The XPath or JSONPath expression to be evaluated against the fixture representing the response received from server.

pathElement ("_path") Extensions for path

requestMethod The request method or HTTP operation code to compare against that used by the client system under test.

requestMethodElement ("_requestMethod") Extensions for requestMethod

requestURL The value to use in a comparison against the request URL path string.

requestURLElement ("_requestURL") Extensions for requestURL

resource The type of the resource. See the resource list.

resourceElement ("_resource") Extensions for resource

response continue | switchingProtocols | okay | created | accepted | nonAuthoritativeInformation | noContent | resetContent | partialContent | multipleChoices | movedPermanently | found | seeOther | notModified | useProxy | temporaryRedirect | permanentRedirect | badRequest | unauthorized | paymentRequired | forbidden | notFound | methodNotAllowed | notAcceptable | proxyAuthenticationRequired | requestTimeout | conflict | gone | lengthRequired | preconditionFailed | contentTooLarge | uriTooLong | unsupportedMediaType | rangeNotSatisfiable | expectationFailed | misdirectedRequest | unprocessableContent | upgradeRequired | internalServerError | notImplemented | badGateway | serviceUnavailable | gatewayTimeout | httpVersionNotSupported.

responseElement ("_response") Extensions for response

responseCode The value of the HTTP response code to be tested.

responseCodeElement ("_responseCode") Extensions for responseCode

sourceId Fixture to evaluate the XPath/JSONPath expression or the headerField against.

sourceIdElement ("_sourceId") Extensions for sourceId

stopTestOnFail Whether or not the current test execution will stop on failure for this assert.

stopTestOnFailElement ("_stopTestOnFail") Extensions for stopTestOnFail

validateProfileId The ID of the Profile to validate against.

validateProfileIdElement ("_validateProfileId") Extensions for validateProfileId

value The value to compare to.

valueElement ("_value") Extensions for value

warningOnly Whether or not the test execution will produce a warning only on error for this assert.

warningOnlyElement ("_warningOnly") Extensions for warningOnly

requirement Links or references providing traceability to the testing requirements for this assert.

Implementation

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

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

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

  /// [labelElement] ("_label") 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] ("_description") Extensions for description
  @JsonKey(name: '_description') Element? descriptionElement,

  /// [direction] The direction to use for the assertion.
  FhirCode? direction,

  /// [directionElement] ("_direction") Extensions for direction
  @JsonKey(name: '_direction') Element? directionElement,

  /// [compareToSourceId] Id of the source fixture used as the contents to be
  ///  evaluated by either the "source/expression" or "sourceId/path"
  ///  definition.
  String? compareToSourceId,

  /// [compareToSourceIdElement] ("_compareToSourceId") Extensions for
  ///  compareToSourceId
  @JsonKey(name: '_compareToSourceId') Element? compareToSourceIdElement,

  /// [compareToSourceExpression] The FHIRPath expression for a specific
  ///  value to evaluate against the source fixture. When compareToSourceId
  ///  is defined, either compareToSourceExpression or compareToSourcePath
  ///  must be defined, but not both.
  String? compareToSourceExpression,

  /// [compareToSourceExpressionElement] ("_compareToSourceExpression")
  ///  Extensions for compareToSourceExpression
  @JsonKey(name: '_compareToSourceExpression')
  Element? compareToSourceExpressionElement,

  /// [compareToSourcePath] XPath or JSONPath expression to evaluate against
  ///  the source fixture. When compareToSourceId is defined, either
  ///  compareToSourceExpression or compareToSourcePath must be defined, but
  ///  not both.
  String? compareToSourcePath,

  /// [compareToSourcePathElement] ("_compareToSourcePath") Extensions for
  ///  compareToSourcePath
  @JsonKey(name: '_compareToSourcePath') Element? compareToSourcePathElement,

  /// [contentType] The mime-type contents to compare against the request or
  ///  response message 'Content-Type' header.
  FhirCode? contentType,

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

  /// [defaultManualCompletion] The default manual completion outcome applied
  ///  to this assertion.
  FhirCode? defaultManualCompletion,

  /// [defaultManualCompletionElement] ("_defaultManualCompletion")
  ///  Extensions for defaultManualCompletion
  @JsonKey(name: '_defaultManualCompletion')
  Element? defaultManualCompletionElement,

  /// [expression] The FHIRPath expression to be evaluated against the
  ///  request or response message contents - HTTP headers and payload.
  String? expression,

  /// [expressionElement] ("_expression") Extensions for expression
  @JsonKey(name: '_expression') Element? expressionElement,

  /// [headerField] The HTTP header field name e.g. 'Location'.
  String? headerField,

  /// [headerFieldElement] ("_headerField") Extensions for headerField
  @JsonKey(name: '_headerField') Element? headerFieldElement,

  /// [minimumId] The ID of a fixture. Asserts that the response contains at
  ///  a minimum the fixture specified by minimumId.
  String? minimumId,

  /// [minimumIdElement] ("_minimumId") Extensions for minimumId
  @JsonKey(name: '_minimumId') Element? minimumIdElement,

  /// [navigationLinks] Whether or not the test execution performs validation
  ///  on the bundle navigation links.
  FhirBoolean? navigationLinks,

  /// [navigationLinksElement] ("_navigationLinks") Extensions for
  ///  navigationLinks
  @JsonKey(name: '_navigationLinks') Element? navigationLinksElement,

  /// [operator_] ("operator") The operator type defines the conditional
  ///  behavior of the assert.
  @JsonKey(name: 'operator') FhirCode? operator_,

  /// [operatorElement] ("_operator") Extensions for operator
  @JsonKey(name: '_operator') Element? operatorElement,

  /// [path] The XPath or JSONPath expression to be evaluated against the
  ///  fixture representing the response received from server.
  String? path,

  /// [pathElement] ("_path") Extensions for path
  @JsonKey(name: '_path') Element? pathElement,

  /// [requestMethod] The request method or HTTP operation code to compare
  ///  against that used by the client system under test.
  FhirCode? requestMethod,

  /// [requestMethodElement] ("_requestMethod") Extensions for requestMethod
  @JsonKey(name: '_requestMethod') Element? requestMethodElement,

  /// [requestURL] The value to use in a comparison against the request URL
  ///  path string.
  String? requestURL,

  /// [requestURLElement] ("_requestURL") Extensions for requestURL
  @JsonKey(name: '_requestURL') Element? requestURLElement,

  /// [resource] The type of the resource.  See the [resource
  ///  list](resourcelist.html).
  FhirUri? resource,

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

  /// [response] continue | switchingProtocols | okay | created | accepted |
  ///  nonAuthoritativeInformation | noContent | resetContent |
  ///  partialContent | multipleChoices | movedPermanently | found | seeOther
  ///  | notModified | useProxy | temporaryRedirect | permanentRedirect |
  ///  badRequest | unauthorized | paymentRequired | forbidden | notFound |
  ///  methodNotAllowed | notAcceptable | proxyAuthenticationRequired |
  ///  requestTimeout | conflict | gone | lengthRequired | preconditionFailed
  ///  | contentTooLarge | uriTooLong | unsupportedMediaType |
  ///  rangeNotSatisfiable | expectationFailed | misdirectedRequest |
  ///  unprocessableContent | upgradeRequired | internalServerError |
  ///  notImplemented | badGateway | serviceUnavailable | gatewayTimeout |
  ///  httpVersionNotSupported.
  FhirCode? response,

  /// [responseElement] ("_response") Extensions for response
  @JsonKey(name: '_response') Element? responseElement,

  /// [responseCode] The value of the HTTP response code to be tested.
  String? responseCode,

  /// [responseCodeElement] ("_responseCode") Extensions for responseCode
  @JsonKey(name: '_responseCode') Element? responseCodeElement,

  /// [sourceId] Fixture to evaluate the XPath/JSONPath expression or the
  ///  headerField  against.
  FhirId? sourceId,

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

  /// [stopTestOnFail] Whether or not the current test execution will stop on
  ///  failure for this assert.
  FhirBoolean? stopTestOnFail,

  /// [stopTestOnFailElement] ("_stopTestOnFail") Extensions for
  ///  stopTestOnFail
  @JsonKey(name: '_stopTestOnFail') Element? stopTestOnFailElement,

  /// [validateProfileId] The ID of the Profile to validate against.
  FhirId? validateProfileId,

  /// [validateProfileIdElement] ("_validateProfileId") Extensions for
  ///  validateProfileId
  @JsonKey(name: '_validateProfileId') Element? validateProfileIdElement,

  /// [value] The value to compare to.
  String? value,

  /// [valueElement] ("_value") Extensions for value
  @JsonKey(name: '_value') Element? valueElement,

  /// [warningOnly] Whether or not the test execution will produce a warning
  ///  only on error for this assert.
  FhirBoolean? warningOnly,

  /// [warningOnlyElement] ("_warningOnly") Extensions for warningOnly
  @JsonKey(name: '_warningOnly') Element? warningOnlyElement,

  /// [requirement] Links or references providing traceability to the testing
  ///  requirements for this assert.
  List<TestScriptRequirement>? requirement,
}) = _TestScriptAssert;