import { Extension } from './Extension.js';
import { FhirPrimitive } from './FhirPrimitive.js';
import { TestScript_Setup_Action_Assert_Requirement } from './TestScript_Setup_Action_Assert_Requirement.js';
export interface TestScript_Setup_Action_Assert {
    /**
     * @description Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
     * @short Unique id for inter-element referencing
     */
    id?: string;
    /**
     * @description 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.
     * @comment There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
     * @short Additional content defined by implementations
     */
    extension?: Extension[];
    /**
     * @description 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 andor 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).
     * @comment There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
     * @short Extensions that cannot be ignored even if unrecognized
     */
    modifierExtension?: Extension[];
    /**
     * @description The label would be used for trackinglogging purposes by test engines.
     * @comment This has no impact on the verification itself.
     * @short Trackinglogging assertion label
     */
    label?: FhirPrimitive<string>;
    /**
     * @description The description would be used by test engines for tracking and reporting purposes.
     * @comment This has no impact on the verification itself.
     * @short Trackingreporting assertion description
     */
    description?: FhirPrimitive<string>;
    /**
     * @description The direction to use for the assertion.
     * @comment If the direction is specified as "response" (the default), then the processing of this assert is against the received response message. If the direction is specified as "request", then the processing of this assert is against the sent request message.
     * @short response | request
     */
    direction?: FhirPrimitive<string>;
    /**
     * @description Id of the source fixture used as the contents to be evaluated by either the "sourceexpression" or "sourceIdpath" definition.
     * @short Id of the source fixture to be evaluated
     */
    compareToSourceId?: FhirPrimitive<string>;
    /**
     * @description 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.
     * @comment Thefhirpath expression to be evaluated against the expected fixture to compare to. Ignored if "assert.value" is used. The evaluation will be done before the assertion is evaluated.
     * @short The FHIRPath expression to evaluate against the source fixture
     */
    compareToSourceExpression?: FhirPrimitive<string>;
    /**
     * @description XPath or JSONPath expression to evaluate against the source fixture. When compareToSourceId is defined, either compareToSourceExpression or compareToSourcePath must be defined, but not both.
     * @comment The XPath or JSONPath expression to be evaluated against the expected fixture to compare to. Ignored if "assert.value" is used. The evaluation will be done before the assertion is evaluated.
     * @short XPath or JSONPath expression to evaluate against the source fixture
     */
    compareToSourcePath?: FhirPrimitive<string>;
    /**
     * @description The mime-type contents to compare against the request or response message 'Content-Type' header.
     * @comment If this is specified, then test engine shall confirm that the content-type of the last operation's headers is set to this value.  If "assert.sourceId" element is specified, then the evaluation will be done against the headers mapped to that sourceId (and not the last operation's headers).  If you'd like to have more control over the string, then use 'assert.headerField' instead.
     * @short Mime type to compare against the 'Content-Type' header
     */
    contentType?: FhirPrimitive<string>;
    /**
     * @description The default manual completion outcome applied to this assertion.
     * @comment Manual completion is used to pause the test engine execution and evaluation allowing an external review of the defined assert condition. The defaultManualCompletion defines the default manual completion outcome applied if one of the enumerated values is not applied.
     * @short fail | pass | skip | stop
     */
    defaultManualCompletion?: FhirPrimitive<string>;
    /**
     * @description The FHIRPath expression to be evaluated against the request or response message contents - HTTP headers and payload.
     * @comment If both "expression" and a "fixtureId" are specified, then the expression will be evaluated against the request or response body mapped to the fixtureId. If "expression" is specified and a "fixtureId" is not, then the expression will be evaluated against the response body of the last operation. Test engines are to store the request and response body and headers of the last operation at all times for subsequent assertions.
  
  The FHIRPath expression can be evaluated as either a path to a specific value or as a boolean expression against the given FHIR resource. When the FHIRPath is a boolean expression, the assert.value element is not used. See [Testing FHIR Use Expressions](testing.html#expressions).
     * @short The FHIRPath expression to be evaluated
     */
    expression?: FhirPrimitive<string>;
    /**
     * @description The HTTP header field name e.g. 'Location'.
     * @comment If "headerField" is specified then "value" must be specified.  If "sourceId" is not specified, then "headerField" will be evaluated against the last operation's response headers.  Test engines are to keep track of the last operation's response body and response headers.
     * @short HTTP header field name
     */
    headerField?: FhirPrimitive<string>;
    /**
     * @description The ID of a fixture. Asserts that the response contains at a minimum the fixture specified by minimumId.
     * @comment Asserts that the response contains all the elementcontent in another fixture pointed to by minimumId. This can be a statically defined fixture or one that is dynamically set via responseId.
  
  See [Testing FHIR Use minimumId](testing.html##minimumId) for a more complete description of the test engine's comparison logic.
     * @short Fixture Id of minimum content resource
     */
    minimumId?: FhirPrimitive<string>;
    /**
     * @description Whether or not the test execution performs validation on the bundle navigation links.
     * @comment Asserts that the Bundle contains first, last, and next links.
     * @short Perform validation on navigation links?
     */
    navigationLinks?: FhirPrimitive<boolean>;
    /**
     * @description The operator type defines the conditional behavior of the assert.
     * @comment Operators are useful for both positive and negative testing. If operator is not specified, then the default conditional behavior is implemented as defined in [Testing FHIR Assertions](testing.html#assertion-table).
     * @short equals | notEquals | in | notIn | greaterThan | lessThan | empty | notEmpty | contains | notContains | eval | manualEval
     */
    operator?: FhirPrimitive<string>;
    /**
     * @description The XPath or JSONPath expression to be evaluated against the fixture representing the response received from server.
     * @comment If both "path" and a "fixtureId" are specified, then the path will be evaluated against the request or response body mapped to the fixtureId.  If "path" is specified and a "fixtureId" is not, then the path will be evaluated against the response body of the last operation.  Test engines are to store the request and response body and headers of the last operation at all times for subsequent assertions.
     * @short XPath or JSONPath expression
     */
    path?: FhirPrimitive<string>;
    /**
     * @description The request method or HTTP operation code to compare against that used by the client system under test.
     * @comment If "requestMethod" is specified then it will be used in place of "value". The "requestMethod" will evaluate against the last operation's request HTTP operation.
     * @short delete | get | options | patch | post | put | head
     */
    requestMethod?: FhirPrimitive<string>;
    /**
     * @description The value to use in a comparison against the request URL path string.
     * @comment If "requestURL" is specified then it will be used in place of "value". The "requestURL" will evaluate against the last operation's full request URL path string.
     * @short Request URL comparison value
     */
    requestURL?: FhirPrimitive<string>;
    /**
     * @description The type of the resource.  See the [resource list](resourcelist.html).
     * @comment This will be expected resource type in response body e.g. in read, vread, search, etc.  See the [Resource List](resourcelist.html) for complete list of resource types; e.g. <assert > <resourceType value="Patient" <assert>.
     * @short Resource type
     */
    resource?: FhirPrimitive<string>;
    /**
     * @description 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.
     * @comment This is a shorter way of achieving similar verifications via "assert.responseCode".  If you need more control, then use "assert.responseCode"  e.g. <assert>  <contentType value="json" >  <response value="okay"> <assert>.
     * @short 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
     */
    response?: FhirPrimitive<string>;
    /**
     * @description The value of the HTTP response code to be tested.
     * @comment To be used with "operator" attribute value. Asserts that the response code equals this value if "operator" is not specified.   If the operator is "in" or "notIn" then the responseCode would be a comma-separated list of values e.g. "200,201". Otherwise, it's expected to be a numeric value.   If "fixture" is not specified, then the "responseBodyId" value of the last operation is assumed.
     * @short HTTP response code to test
     */
    responseCode?: FhirPrimitive<string>;
    /**
     * @description Fixture to evaluate the XPathJSONPath expression or the headerField  against.
     * @comment This can be a statically defined fixture (at the top of the testscript) or a dynamically set fixture created by responseId of the action.operation element.
     * @short Fixture Id of source expression or headerField
     */
    sourceId?: FhirPrimitive<string>;
    /**
     * @description Whether or not the current test execution will stop on failure for this assert.
     * @comment If this element is specified and it is true, then assertion failures should not stop the current test execution from proceeding.
     * @short If this assert fails, will the current test execution stop?
     */
    stopTestOnFail: FhirPrimitive<boolean>;
    /**
     * @description The ID of the Profile to validate against.
     * @comment The ID of a Profile fixture. Asserts that the response is valid according to the Profile specified by validateProfileId.
     * @short Profile Id of validation profile reference
     */
    validateProfileId?: FhirPrimitive<string>;
    /**
     * @description The value to compare to.
     * @comment The string-representation of a number, string, or boolean that is expected.  Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before comparing this value to the actual value.
     * @short The value to compare to
     */
    value?: FhirPrimitive<string>;
    /**
     * @description Whether or not the test execution will produce a warning only on error for this assert.
     * @comment If this element is specified and it is true, then assertion failures can be logged by test engine but should not stop the test script execution from proceeding.  There are likely cases where the spec is not clear on what should happen. If the spec says something is optional (maybe a response header for example), but a server doesn’t do it, we could choose to issue a warning.
     * @short Will this assert produce a warning only on error?
     */
    warningOnly: FhirPrimitive<boolean>;
    /**
     * @backbone Nested BackboneElement: requirement [0..*]
     */
    requirement?: TestScript_Setup_Action_Assert_Requirement[];
}
//# sourceMappingURL=TestScript_Setup_Action_Assert.d.ts.map