Class TestScriptVariable
Variable is set based either on element value in response body or on header field value in the response headers.
Implements
Inherited Members
Namespace: fhirCsR2.Models
Assembly: fhirCsR2.dll
Syntax
public class TestScriptVariable : BackboneElement, IFhirJsonSerializable
Properties
| Improve this Doc View Source_HeaderField
Extension container element for HeaderField
Declaration
public Element _HeaderField { get; set; }
Property Value
Type | Description |
---|---|
Element |
_Name
Extension container element for Name
Declaration
public Element _Name { get; set; }
Property Value
Type | Description |
---|---|
Element |
_Path
Extension container element for Path
Declaration
public Element _Path { get; set; }
Property Value
Type | Description |
---|---|
Element |
_SourceId
Extension container element for SourceId
Declaration
public Element _SourceId { get; set; }
Property Value
Type | Description |
---|---|
Element |
HeaderField
Will be used to grab the HTTP header field value from the headers that sourceId is pointing to.
Declaration
public string HeaderField { get; set; }
Property Value
Type | Description |
---|---|
System. |
Name
Descriptive name for this variable.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System. |
Path
XPath or JSONPath against the fixture body. When variables are defined, either headerField must be specified or path, but not both.
Declaration
public string Path { get; set; }
Property Value
Type | Description |
---|---|
System. |
SourceId
Fixture to evaluate the XPath/JSONPath expression or the headerField against within this variable.
Declaration
public string SourceId { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
| Improve this Doc View SourceDeserializeJson(ref Utf8JsonReader, JsonSerializerOptions)
Deserialize a JSON object
Declaration
public void DeserializeJson(ref Utf8JsonReader reader, JsonSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
Utf8Json |
reader | |
Json |
options |
DeserializeJsonProperty(ref Utf8JsonReader, JsonSerializerOptions, String)
Deserialize a JSON property
Declaration
public void DeserializeJsonProperty(ref Utf8JsonReader reader, JsonSerializerOptions options, string propertyName)
Parameters
Type | Name | Description |
---|---|---|
Utf8Json |
reader | |
Json |
options | |
System. |
propertyName |
SerializeJson(Utf8JsonWriter, JsonSerializerOptions, Boolean)
Serialize to a JSON object
Declaration
public void SerializeJson(Utf8JsonWriter writer, JsonSerializerOptions options, bool includeStartObject = true)
Parameters
Type | Name | Description |
---|---|---|
Utf8Json |
writer | |
Json |
options | |
System. |
includeStartObject |