TestScriptAssert class
TestScriptAssert A structured set of tests against a FHIR server or
- Annotations
-
- @freezed
Constructors
-
TestScriptAssert({@JsonKey(name: 'id') FhirId? fhirId, @JsonKey(name: 'extension') List<
FhirExtension> ? extension_, List<FhirExtension> ? modifierExtension, String? label, @JsonKey(name: '_label') Element? labelElement, String? description, @JsonKey(name: '_description') Element? descriptionElement, FhirCode? direction, @JsonKey(name: '_direction') Element? directionElement, String? compareToSourceId, @JsonKey(name: '_compareToSourceId') Element? compareToSourceIdElement, String? compareToSourceExpression, @JsonKey(name: '_compareToSourceExpression') Element? compareToSourceExpressionElement, String? compareToSourcePath, @JsonKey(name: '_compareToSourcePath') Element? compareToSourcePathElement, FhirCode? contentType, @JsonKey(name: '_contentType') Element? contentTypeElement, String? expression, @JsonKey(name: '_expression') Element? expressionElement, String? headerField, @JsonKey(name: '_headerField') Element? headerFieldElement, String? minimumId, @JsonKey(name: '_minimumId') Element? minimumIdElement, @JsonKey(name: 'operator') FhirCode? operator_, @JsonKey(name: '_operator') Element? operatorElement, String? path, @JsonKey(name: '_path') Element? pathElement, FhirCode? requestMethod, @JsonKey(name: '_requestMethod') Element? requestMethodElement, String? requestURL, @JsonKey(name: '_requestURL') Element? requestURLElement, FhirCode? resource, @JsonKey(name: '_resource') Element? resourceElement, FhirCode? response, @JsonKey(name: '_response') Element? responseElement, String? responseCode, @JsonKey(name: '_responseCode') Element? responseCodeElement, FhirId? sourceId, @JsonKey(name: '_sourceId') Element? sourceIdElement, FhirId? validateProfileId, @JsonKey(name: '_validateProfileId') Element? validateProfileIdElement, String? value, @JsonKey(name: '_value') Element? valueElement, FhirBoolean? warningOnly, @JsonKey(name: '_warningOnly') Element? warningOnlyElement}) -
TestScriptAssert A structured set of tests against a FHIR server or
client implementation to determine compliance against the FHIR
specification.
constfactory
-
TestScriptAssert.fromJson(Map<
String, dynamic> json) -
Factory constructor, accepts Map<String, dynamic> as an argument
factory
- TestScriptAssert.fromJsonString(String source)
-
Acts like a constructor, returns a TestScriptAssert, accepts a
String as an argument, mostly because I got tired of typing it out
factory
- TestScriptAssert.fromYaml(dynamic yaml)
-
Factory constructor that accepts a String in YAML format as an argument
factory
Properties
- compareToSourceExpression → String?
-
compareToSourceExpression The FHIRPath expression to evaluate against
the source fixture. When compareToSourceId is defined, either
compareToSourceExpression or compareToSourcePath must be defined, but not
both.
no setterinherited
- compareToSourceExpressionElement → Element?
-
no setterinherited
- compareToSourceId → String?
-
compareToSourceId Id of the source fixture used as the contents to be
evaluated by either the "source/expression" or "sourceId/path"
definition.
no setterinherited
- compareToSourceIdElement → Element?
-
compareToSourceIdElement Extensions for compareToSourceId
no setterinherited
- compareToSourcePath → String?
-
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.
no setterinherited
- compareToSourcePathElement → Element?
-
compareToSourcePathElement Extensions for compareToSourcePath
no setterinherited
- contentType → FhirCode?
-
contentType The mime-type contents to compare against the request or
response message 'Content-Type' header.
no setterinherited
- contentTypeElement → Element?
-
contentTypeElement Extensions for contentType
no setterinherited
-
copyWith
→ $TestScriptAssertCopyWith<
TestScriptAssert> -
no setterinherited
- description → String?
-
description The description would be used by test engines for tracking
and reporting purposes.
no setterinherited
- descriptionElement → Element?
-
descriptionElement Extensions for description
no setterinherited
- direction → FhirCode?
-
direction The direction to use for the assertion.
no setterinherited
- directionElement → Element?
-
directionElement Extensions for direction
no setterinherited
- expression → String?
-
expression The FHIRPath expression to be evaluated against the request
or response message contents - HTTP headers and payload.
no setterinherited
- expressionElement → Element?
-
expressionElement Extensions for expression
no setterinherited
-
extension_
→ List<
FhirExtension> ? -
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.
no setterinherited
- fhirId → FhirId?
-
id Unique id for the element within a resource (for internal
references). This may be any string value that does not contain spaces.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- headerField → String?
-
headerField The HTTP header field name e.g. 'Location'.
no setterinherited
- headerFieldElement → Element?
-
headerFieldElement Extensions for headerField
no setterinherited
- label → String?
-
label The label would be used for tracking/logging purposes by test
engines.
no setterinherited
- labelElement → Element?
-
labelElement Extensions for label
no setterinherited
- minimumId → String?
-
minimumId The ID of a fixture. Asserts that the response contains at a
minimum the fixture specified by minimumId.
no setterinherited
- minimumIdElement → Element?
-
minimumIdElement Extensions for minimumId
no setterinherited
-
modifierExtension
→ List<
FhirExtension> ? -
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).
no setterinherited
-
navigationLinks Whether or not the test execution performs validation
on the bundle navigation links.
no setterinherited
-
navigationLinksElement Extensions for navigationLinks
no setterinherited
- operator_ → FhirCode?
-
operator
The operator type defines the conditional behavior of the assert. If not defined, the default is equals.no setterinherited - operatorElement → Element?
-
operatorElement Extensions for operator
no setterinherited
- path → String?
-
path The XPath or JSONPath expression to be evaluated against the
fixture representing the response received from server.
no setterinherited
- pathElement → Element?
-
pathElement Extensions for path
no setterinherited
- requestMethod → FhirCode?
-
requestMethod The request method or HTTP operation code to compare
against that used by the client system under test.
no setterinherited
- requestMethodElement → Element?
-
requestMethodElement Extensions for requestMethod
no setterinherited
- requestURL → String?
-
requestURL The value to use in a comparison against the request URL
path string.
no setterinherited
- requestURLElement → Element?
-
requestURLElement Extensions for requestURL
no setterinherited
- resource → FhirCode?
-
resource The type of the resource. See
http://build.fhir.org/resourcelist.html.
no setterinherited
- resourceElement → Element?
-
resourceElement Extensions for resource
no setterinherited
- response → FhirCode?
-
response okay | created | noContent | notModified | bad | forbidden |
notFound | methodNotAllowed | conflict | gone | preconditionFailed |
unprocessable.
no setterinherited
- responseCode → String?
-
responseCode The value of the HTTP response code to be tested.
no setterinherited
- responseCodeElement → Element?
-
responseCodeElement Extensions for responseCode
no setterinherited
- responseElement → Element?
-
responseElement Extensions for response
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceId → FhirId?
-
sourceId Fixture to evaluate the XPath/JSONPath expression or the
headerField against.
no setterinherited
- sourceIdElement → Element?
-
sourceIdElement Extensions for sourceId
no setterinherited
- validateProfileId → FhirId?
-
validateProfileId The ID of the Profile to validate against.
no setterinherited
- validateProfileIdElement → Element?
-
validateProfileIdElement Extensions for validateProfileId
no setterinherited
- value → String?
-
value The value to compare to.
no setterinherited
- valueElement → Element?
-
valueElement Extensions for value
no setterinherited
- warningOnly → FhirBoolean?
-
warningOnly Whether or not the test execution will produce a warning
only on error for this assert.
no setterinherited
- warningOnlyElement → Element?
-
warningOnlyElement Extensions for warningOnly
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toJsonString(
) → String - Another convenience method because more and more I'm transmitting FHIR data as a String and not a Map
-
toString(
) → String -
A string representation of this object.
inherited
-
toYaml(
) → String - Produces a Yaml formatted String version of the object
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited