Data Model Libraries
    Preparing search index...

    Class TestScriptSetupActionOperationComponent

    TestScriptSetupActionOperationComponent Class

    FHIR Specification

    • Short: The setup operation to perform
    • Definition: The operation to perform.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    Methods

    parse getType setType hasType getResourceElement setResourceElement hasResourceElement getResource setResource hasResource getLabelElement setLabelElement hasLabelElement getLabel setLabel hasLabel getDescriptionElement setDescriptionElement hasDescriptionElement getDescription setDescription hasDescription getAcceptElement setAcceptElement hasAcceptElement getAccept setAccept hasAccept getContentTypeElement setContentTypeElement hasContentTypeElement getContentType setContentType hasContentType getDestinationElement setDestinationElement hasDestinationElement getDestination setDestination hasDestination getEncodeRequestUrlElement setEncodeRequestUrlElement hasEncodeRequestUrlElement getEncodeRequestUrl setEncodeRequestUrl hasEncodeRequestUrl getMethodEnumType setMethodEnumType hasMethodEnumType getMethodElement setMethodElement hasMethodElement getMethod setMethod hasMethod getOriginElement setOriginElement hasOriginElement getOrigin setOrigin hasOrigin getParamsElement setParamsElement hasParamsElement getParams setParams hasParams getRequestHeader setRequestHeader addRequestHeader hasRequestHeader getRequestIdElement setRequestIdElement hasRequestIdElement getRequestId setRequestId hasRequestId getResponseIdElement setResponseIdElement hasResponseIdElement getResponseId setResponseId hasResponseId getSourceIdElement setSourceIdElement hasSourceIdElement getSourceId setSourceId hasSourceId getTargetIdElement setTargetIdElement hasTargetIdElement getTargetId setTargetId hasTargetId getUrlElement setUrlElement hasUrlElement getUrl setUrl hasUrl fhirType isEmpty isRequiredFieldsEmpty copy toJSON getModifierExtension setModifierExtension hasModifierExtension getModifierExtensionByUrl addModifierExtension removeModifierExtension getId setId hasId getExtension setExtension hasExtension getExtensionByUrl addExtension removeExtension isResource isDataType isComplexDataType isPrimitive isBooleanPrimitive isStringPrimitive isNumberPrimitive isBigIntPrimitive isDateTimePrimitive copyValues initRequestHeader

    Constructors

    Properties

    type_?: Coding

    TestScript.setup.action.operation.type Element

    FHIR Specification

    • Short: The operation code type that will be executed
    • Definition: Server interaction or operation type.
    • Comment: See the list of server interactions.
    • FHIR Type: Coding
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false
    resource?: UriType

    TestScript.setup.action.operation.resource Element

    FHIR Specification

    • Short: Resource type
    • Definition: The type of the FHIR resource. See the resource list. Data type of uri is needed when non-HL7 artifacts are identified.
    • Comment: If "url" element is specified, then "targetId", "params", and "resource" elements will be ignored as "url" element will have everything needed for constructing the request url. If "params" element is specified, then "targetId" element is ignored. For FHIR operations that require a resource (e.g. "read" and "vread" operations), the "resource" element must be specified when "params" element is specified. If "url" and "params" elements are absent, then the request url will be constructed from "targetId" fixture if present. For "read" operation, the resource and id values will be extracted from "targetId" fixture and used to construct the url. For "vread" and "history" operations, the versionId value will also be used.
    • FHIR Type: uri
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false
    label?: StringType

    TestScript.setup.action.operation.label Element

    FHIR Specification

    • Short: Tracking/logging operation label
    • Definition: The label would be used for tracking/logging purposes by test engines.
    • Comment: This has no impact on the verification itself.
    • FHIR Type: string
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false
    description?: StringType

    TestScript.setup.action.operation.description Element

    FHIR Specification

    • Short: Tracking/reporting operation description
    • Definition: The description would be used by test engines for tracking and reporting purposes.
    • Comment: This has no impact on the verification itself.
    • FHIR Type: string
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false
    accept?: CodeType

    TestScript.setup.action.operation.accept Element

    FHIR Specification

    • Short: Mime type to accept in the payload of the response, with charset etc
    • Definition: The mime-type to use for RESTful operation in the 'Accept' header.
    • Comment: If this is specified, then test engine shall set the 'Accept' header to the corresponding value. If you'd like to explicitly set the 'Accept' to some other value then use the 'requestHeader' element.
    • FHIR Type: code
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false
    contentType?: CodeType

    TestScript.setup.action.operation.contentType Element

    FHIR Specification

    • Short: Mime type of the request payload contents, with charset etc
    • Definition: The mime-type to use for RESTful operation in the 'Content-Type' header.
    • Comment: If this is specified, then test engine shall set the 'Content-Type' header to the corresponding value. If you'd like to explicitly set the 'Content-Type' to some other value then use the 'requestHeader' element.
    • FHIR Type: code
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false
    destination?: IntegerType

    TestScript.setup.action.operation.destination Element

    FHIR Specification

    • Short: Server responding to the request
    • Definition: The server where the request message is destined for. Must be one of the server numbers listed in TestScript.destination section.
    • Comment: If multiple TestScript.destination elements are defined and operation.destination is undefined, test engine will report an error as it cannot determine what destination to use for the exchange.
    • FHIR Type: integer
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false
    encodeRequestUrl: null | BooleanType

    TestScript.setup.action.operation.encodeRequestUrl Element

    FHIR Specification

    • Short: Whether or not to send the request url in encoded format
    • Definition: 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.
    • FHIR Type: boolean
    • Cardinality: 1..1
    • isModifier: false
    • isSummary: false
    httpOperationsEnum: HttpOperationsEnum

    FHIR CodeSystem: HttpOperations

    method?: EnumCodeType

    TestScript.setup.action.operation.method Element

    FHIR Specification

    • Short: delete | get | options | patch | post | put | head
    • Definition: The HTTP method the test engine MUST use for this operation regardless of any other operation details.
    • Comment: The primary purpose of the explicit HTTP method is support of HTTP POST method invocation of the FHIR search. Other uses will include support of negative testing.
    • FHIR Type: code
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false

    CodeSystem Enumeration: HttpOperationsEnum

    origin?: IntegerType

    TestScript.setup.action.operation.origin Element

    FHIR Specification

    • Short: Server initiating the request
    • Definition: The server where the request message originates from. Must be one of the server numbers listed in TestScript.origin section.
    • Comment: If absent, test engine will send the message. When present, test engine will not send the request message but will wait for the request message to be sent from this origin server.
    • FHIR Type: integer
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false
    params?: StringType

    TestScript.setup.action.operation.params Element

    FHIR Specification

    • Short: Explicitly defined path parameters
    • Definition: Path plus parameters after [type]. Used to set parts of the request URL explicitly.
    • Comment: If "url" element is specified, then "targetId", "params", and "resource" elements will be ignored as "url" element will have everything needed for constructing the request url. If "params" element is specified, then "targetId" element is ignored. For FHIR operations that require a resource (e.g. "read" and "vread" operations), the "resource" element must be specified when "params" element is specified. If "url" and "params" elements are absent, then the request url will be constructed from "targetId" fixture if present. For "read" operation, the resource and id values will be extracted from "targetId" fixture and used to construct the url. For "vread" and "history" operations, the versionId value will also be used. Test engines would append whatever is specified for "params" to the URL after the resource type without tampering with the string (beyond encoding the URL for HTTP). The "params" element does not correspond exactly to "search parameters". Nor is it the "path". It corresponds to the part of the URL that comes after the [type] (when "resource" element is specified); e.g. It corresponds to "/[id]/_history/[vid] {?_format=[mime-type]}" in the following operation: GET [base]/[type]/[id]/_history/[vid] {?_format=[mime-type]} Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before sending the request.
    • FHIR Type: string
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false

    TestScript.setup.action.operation.requestHeader Element

    FHIR Specification

    • Short: Each operation can have one or more header elements
    • Definition: Header elements would be used to set HTTP headers.
    • Comment: This gives control to test-script writers to set headers explicitly based on test requirements. It will allow for testing using: - "If-Modified-Since" and "If-None-Match" headers. "If-Match" header. See Conditional Create using "If-None-Exist". See Invalid "Content-Type" header for negative testing. - etc.
    • FHIR Type: BackboneElement
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: false
    requestId?: IdType

    TestScript.setup.action.operation.requestId Element

    FHIR Specification

    • Short: Fixture Id of mapped request
    • Definition: The fixture id (maybe new) to map to the request.
    • Comment: If a requestId is supplied, then the resulting request (both headers and body) is mapped to the fixture ID (which may be entirely new and previously undeclared) designated by "requestId". If requestId is not specified, it is the test engine's responsibility to store the request and use it as the requestId in subsequent assertions when assertion path and/or headerField is specified, direction is equal to request, and the requestId in not specified.
    • FHIR Type: id
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false
    responseId?: IdType

    TestScript.setup.action.operation.responseId Element

    FHIR Specification

    • Short: Fixture Id of mapped response
    • Definition: The fixture id (maybe new) to map to the response.
    • Comment: If a responseId is supplied, and the server responds, then the resulting response (both headers and body) is mapped to the fixture ID (which may be entirely new and previously undeclared) designated by "responseId". If responseId is not specified, it is the test engine's responsibility to store the response and use it as the responseId in subsequent assertions when assertion path and/or headerField is specified and the responseId is not specified.
    • FHIR Type: id
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false
    sourceId?: IdType

    TestScript.setup.action.operation.sourceId Element

    FHIR Specification

    • Short: Fixture Id of body for PUT and POST requests
    • Definition: The id of the fixture used as the body of a PUT or POST request.
    • FHIR Type: id
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false
    targetId?: IdType

    TestScript.setup.action.operation.targetId Element

    FHIR Specification

    • Short: Id of fixture used for extracting the [id], [type], and [vid] for GET requests
    • Definition: Id of fixture used for extracting the [id], [type], and [vid] for GET requests.
    • Comment: If "url" element is specified, then "targetId", "params", and "resource" elements will be ignored as "url" element will have everything needed for constructing the request url. If "params" element is specified, then "targetId" element is ignored. For FHIR operations that require a resource (e.g. "read" and "vread" operations), the "resource" element must be specified when "params" element is specified. If "url" and "params" elements are absent, then the request url will be constructed from "targetId" fixture if present. For "read" operation, the resource and id values will be extracted from "targetId" fixture and used to construct the url. For "vread" and "history" operations, the versionId value will also be used.
    • FHIR Type: id
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false

    TestScript.setup.action.operation.url Element

    FHIR Specification

    • Short: Request URL
    • Definition: Complete request URL.
    • Comment: Used to set the request URL explicitly. If "url" element is defined, then "targetId", "resource", and "params" elements will be ignored. Test engines would use whatever is specified in "url" without tampering with the string (beyond encoding the URL for HTTP). Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before sending the request.
    • FHIR Type: string
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: false

    Methods

    • Parse the provided TestScriptSetupActionOperationComponent JSON to instantiate the TestScriptSetupActionOperationComponent data model.

      Parameters

      • sourceJson: Value

        JSON representing FHIR TestScriptSetupActionOperationComponent

      • OptionaloptSourceField: string

        Optional data source field (e.g. <complexTypeName>.<complexTypeFieldName>); defaults to TestScriptSetupActionOperationComponent

      Returns undefined | TestScriptSetupActionOperationComponent

      TestScriptSetupActionOperationComponent data model or undefined for TestScriptSetupActionOperationComponent

      JsonError if the provided JSON is not a valid JSON object

    • Determines if the modifierExtension property exists.

      Parameters

      • Optionalurl: string

        the url that identifies a specific Extension

      Returns boolean

      true if an Extension has the provided url; false otherwise

      If the url is provided, determines if an Extension having the provided url exists. If the url is not provided, determines if the modifierExtension property exists and has any values.

      AssertionError for invalid url

    • Returns undefined | string

      the id property value

    • Assigns the provided value to the id property.

      Parameters

      • value: undefined | string

        the id value

      Returns this

      this

      PrimitiveTypeError for invalid value

    • Returns boolean

      true if id exists and has a value; false otherwise

    • Determines if the extension property exists.

      Parameters

      • Optionalurl: string

        the url that identifies a specific Extension

      Returns boolean

      true if an Extension has the provided url; false otherwise

      If the url is provided, determines if an Extension having the provided url exists. If the url is not provided, determines if the extension property exists and has any values.

      AssertionError for invalid url

    • Determines if the extension property exists.

      Parameters

      • url: string

        the url that identifies a specific Extension

      Returns undefined | IExtension

      an Extension having the provided url

      If the url is provided, determines if an Extension having the provided url exists. If the url is not provided, determines if the extension property exists and has any values.

      AssertionError for invalid url

    • Adds the provided Extension to the extension property array.

      Parameters

      • extension: undefined | IExtension

        the Extension value to add to the extension property array

      Returns this

      this

    • Removes the Extension having the provided url from the extension property array.

      Parameters

      • url: string

        the url that identifies a specific Extension to remove

      Returns void

      AssertionError for invalid url

    • Returns boolean

      true if the instance is a FHIR complex or primitive datatype; false otherwise