TestScriptOperation class
TestScriptOperation The operation to perform.
- Inheritance
-
- Object
- FhirBase
- Element
- DataType
- BackboneElement
- TestScriptOperation
- Available extensions
Constructors
-
TestScriptOperation({FhirString? id, List<
FhirExtension> ? extension_, List<FhirExtension> ? modifierExtension, Coding? type, FhirUri? resource, FhirString? label, FhirString? description, FhirCode? accept, FhirCode? contentType, FhirInteger? destination, required FhirBoolean encodeRequestUrl, TestScriptRequestMethodCode? method, FhirInteger? origin, FhirString? params, List<TestScriptRequestHeader> ? requestHeader, FhirId? requestId, FhirId? responseId, FhirId? sourceId, FhirId? targetId, FhirString? url, bool? disallowExtensions = false}) -
Primary constructor for
TestScriptOperation
const
-
TestScriptOperation.fromJson(Map<
String, dynamic> json) -
Factory constructor that accepts Map<String, dynamic> as an argument
factory
- TestScriptOperation.fromJsonString(String source)
-
Factory constructor for
TestScriptOperation
that takes in a String
Convenience method to avoid the json Encoding/Decoding normally required
to get data from a String
factory
- TestScriptOperation.fromYaml(dynamic yaml)
-
Deserialize TestScriptOperation
from a String or
YamlMap
objectfactory
Properties
- accept → FhirCode?
-
accept
The mime-type to use for RESTful operation in the 'Accept' header.
final
- contentType → FhirCode?
-
contentType
The mime-type to use for RESTful operation in the 'Content-Type'
header.
final
-
copyWith
→ $TestScriptOperationCopyWith<
TestScriptOperation> -
Copy function for TestScriptOperation
Returns a copy of the current instance with the provided fields modified.
If a field is not provided, it will retain its original value.
If a null is provided, this will clearn the field, unless the
field is required, in which case it will keep its current value.
no setteroverride
-
copyWith
→ $TestScriptOperationCopyWith<
TestScriptOperation> -
Available on TestScriptOperation, provided by the TestScriptOperationCopyWithExtension extension
no setter - description → FhirString?
-
description
The description would be used by test engines for tracking and
reporting purposes.
final
- destination → FhirInteger?
-
destination
The server where the request message is destined for. Must be one of
the server numbers listed in TestScript.destination section.
final
- disallowExtensions → bool?
-
This is used in the FHIRPath engine to record that no extensions are
allowed for this item in the context in which it is used.
to do: enforce this....
finalinherited
- encodeRequestUrl → FhirBoolean
-
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.
final
-
extension_
→ List<
FhirExtension> ? -
List of extensions for additional information.
finalinherited
- fhirType → String
-
Returns the FHIR type of the object.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasId → bool
-
Getter for checking if the element has an id.
no setterinherited
- hasPrimitiveValue → bool
-
Checks if the object has a primitive value.
no setterinherited
- id → FhirString?
-
Unique id for the element within a resource.
finalinherited
- isMetadataBased → bool
-
All Elements are metadata based.
no setterinherited
- isPrimitive → bool
-
Checks if the object is primitive.
no setterinherited
- label → FhirString?
-
label
The label would be used for tracking/logging purposes by test engines.
final
- method → TestScriptRequestMethodCode?
-
method
The HTTP method the test engine MUST use for this operation regardless
of any other operation details.
final
-
modifierExtension
→ List<
FhirExtension> ? -
List of modifier extensions for additional, non-core information
finalinherited
- origin → FhirInteger?
-
origin
The server where the request message originates from. Must be one of
the server numbers listed in TestScript.origin section.
final
- params → FhirString?
-
params
Path plus parameters after type. Used to set parts of the request URL
explicitly.
final
- primitiveValue → String?
-
Retrieves the primitive value of the object.
no setterinherited
-
requestHeader
→ List<
TestScriptRequestHeader> ? -
requestHeader
Header elements would be used to set HTTP headers.
final
- requestId → FhirId?
-
requestId
The fixture id (maybe new) to map to the request.
final
- resource → FhirUri?
-
resource
The type of the FHIR resource. See the resource
list. Data type of uri is needed when non-HL7
artifacts are identified.
final
- responseId → FhirId?
-
responseId
The fixture id (maybe new) to map to the response.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceId → FhirId?
-
sourceId
The id of the fixture used as the body of a PUT or POST request.
final
- targetId → FhirId?
-
targetId
Id of fixture used for extracting the id, type, and
vid
for GET requests.final - type → Coding?
-
type
Server interaction or operation type.
final
- url → FhirString?
-
url
Complete request URL.
final
Methods
-
addExtension(
FhirExtension ext) → void -
Method to add an extension.
inherited
-
addModifierExtension(
FhirExtension ext) → void -
Adds a modifier extension
inherited
-
clone(
) → TestScriptOperation -
Subclasses must implement the clone method.
override
-
compareDeepStrings(
String? s1, String? s2, bool allowNull) → bool -
Checks if the object is equal to another object.
inherited
-
equalsDeep(
FhirBase? o) → bool -
Performs a deep comparison between two instances.
override
-
equalsShallow(
Element other) → bool -
Method to compare shallow equality of two elements.
inherited
-
getChildByName(
String name) → FhirBase? -
Retrieves a single field value by its name.
override
-
getChildrenByName(
String fieldName, [bool checkValid = false]) → List< FhirBase> -
Retrieves all matching child fields by name.
Optionally validates the name.
override
-
getExtensionFirstRep(
) → FhirExtension -
Getter for the first extension.
inherited
-
getExtensionsByUrl(
String url) → List< FhirExtension> -
Getter for the first extension by url.
inherited
-
getModifierExtensionFirstRep(
) → FhirExtension -
Gets the first repetition of modifier extensions
inherited
-
getModifierExtensionsByUrl(
String url) → List< FhirExtension> -
Retrieves all modifier extensions by URL
inherited
-
hasExtension(
) → bool -
Extension handling methods.
inherited
-
hasExtensionByUrl(
String url) → bool -
Method to check if an extension exists by url.
inherited
-
hasModifierExtension(
) → bool -
Method to check if there are any modifier extensions
inherited
-
hasType(
List< String> names) → bool -
Checks if the object has a given type.
inherited
-
hasValues(
) → bool -
Checks if the object has values.
inherited
-
isAs<
T extends FhirBase> () → T? -
Returns an Object cast as a Type if it is that type.
inherited
-
isEmpty(
) → bool -
Checks if the object is empty.
inherited
-
listChildrenNames(
) → List< String> -
Lists the JSON keys for the object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prettyPrint(
) → String -
Converts the object to a pretty JSON string.
inherited
-
removeExtension(
String url) → void -
Method to remove an extension by url.
inherited
-
removeModifierExtension(
String url) → void -
Removes modifier extensions by URL
inherited
-
toJson(
) → Map< String, dynamic> -
Converts the object to a JSON representation.
override
-
toJsonString(
) → String -
Converts the object to a JSON string.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toYaml(
) → String -
Converts the object to a YAML string.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited