Class TestScript
TestScript is a resource that specifies a suite of tests against a FHIR server implementation to determine compliance against the FHIR specification.
Implements
Inherited Members
Namespace: fhirCsR2.Models
Assembly: fhirCsR2.dll
Syntax
public class TestScript : DomainResource, IFhirJsonSerializable
Properties
| Improve this Doc View Source_Copyright
Extension container element for Copyright
Declaration
public Element _Copyright { get; set; }
Property Value
Type | Description |
---|---|
Element |
_Date
Extension container element for Date
Declaration
public Element _Date { get; set; }
Property Value
Type | Description |
---|---|
Element |
_Description
Extension container element for Description
Declaration
public Element _Description { get; set; }
Property Value
Type | Description |
---|---|
Element |
_Experimental
Extension container element for Experimental
Declaration
public Element _Experimental { get; set; }
Property Value
Type | Description |
---|---|
Element |
_Multiserver
Extension container element for Multiserver
Declaration
public Element _Multiserver { get; set; }
Property Value
Type | Description |
---|---|
Element |
_Name
Extension container element for Name
Declaration
public Element _Name { get; set; }
Property Value
Type | Description |
---|---|
Element |
_Publisher
Extension container element for Publisher
Declaration
public Element _Publisher { get; set; }
Property Value
Type | Description |
---|---|
Element |
_Requirements
Extension container element for Requirements
Declaration
public Element _Requirements { get; set; }
Property Value
Type | Description |
---|---|
Element |
_Status
Extension container element for Status
Declaration
public Element _Status { get; set; }
Property Value
Type | Description |
---|---|
Element |
_Url
Extension container element for Url
Declaration
public Element _Url { get; set; }
Property Value
Type | Description |
---|---|
Element |
_Version
Extension container element for Version
Declaration
public Element _Version { get; set; }
Property Value
Type | Description |
---|---|
Element |
Contact
Contacts to assist a user in finding and communicating with the publisher.
Declaration
public List<TestScriptContact> Contact { get; set; }
Property Value
Type | Description |
---|---|
fhir |
Copyright
A copyright statement relating to the Test Script and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the details of the constraints and mappings.
Declaration
public string Copyright { get; set; }
Property Value
Type | Description |
---|---|
System. |
Date
The date this version of the test tcript was published. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the test cases change.
Declaration
public string Date { get; set; }
Property Value
Type | Description |
---|---|
System. |
Description
A free text natural language description of the TestScript and its use.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System. |
Experimental
Allows filtering of TestScripts that are appropriate for use vs. not.
Declaration
public bool? Experimental { get; set; }
Property Value
Type | Description |
---|---|
System. |
Fixture
Fixture in the test script - by reference (uri). All fixtures are required for the test script to execute.
Declaration
public List<TestScriptFixture> Fixture { get; set; }
Property Value
Type | Description |
---|---|
fhir |
Identifier
Identifier for the TestScript assigned for external purposes outside the context of FHIR.
Declaration
public Identifier Identifier { get; set; }
Property Value
Type | Description |
---|---|
Identifier |
Metadata
The required capability must exist and are assumed to function correctly on the FHIR server being tested.
Declaration
public TestScriptMetadata Metadata { get; set; }
Property Value
Type | Description |
---|---|
Test |
Multiserver
If the tests apply to more than one FHIR server (e.g. cross-server interoperability tests) then multiserver=true. Defaults to false if value is unspecified.
Declaration
public bool? Multiserver { get; set; }
Property Value
Type | Description |
---|---|
System. |
Name
A free text natural language name identifying the TestScript.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System. |
Profile
Reference to the profile to be used for validation.
Declaration
public List<Reference> Profile { get; set; }
Property Value
Type | Description |
---|---|
fhir |
Publisher
Helps establish the "authority/credibility" of the Test Script. May also allow for contact.
Declaration
public string Publisher { get; set; }
Property Value
Type | Description |
---|---|
System. |
Requirements
Explains why this Test Script is needed and why it's been constrained as it has.
Declaration
public string Requirements { get; set; }
Property Value
Type | Description |
---|---|
System. |
ResourceType
Resource Type Name
Declaration
public override string ResourceType { get; }
Property Value
Type | Description |
---|---|
System. |
Overrides
| Improve this Doc View SourceSetup
A series of required setup operations before tests are executed.
Declaration
public TestScriptSetup Setup { get; set; }
Property Value
Type | Description |
---|---|
Test |
Status
Allows filtering of TestScripts that are appropriate for use vs. not.
Declaration
public string Status { get; set; }
Property Value
Type | Description |
---|---|
System. |
Teardown
A series of operations required to clean up after the all the tests are executed (successfully or otherwise).
Declaration
public TestScriptTeardown Teardown { get; set; }
Property Value
Type | Description |
---|---|
Test |
Test
A test in this script.
Declaration
public List<TestScriptTest> Test { get; set; }
Property Value
Type | Description |
---|---|
fhir |
Url
An absolute URL that is used to identify this Test Script. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this Test Script is (or will be) published.
Declaration
public string Url { get; set; }
Property Value
Type | Description |
---|---|
System. |
UseContext
Assist in searching for appropriate content.
Declaration
public List<CodeableConcept> UseContext { get; set; }
Property Value
Type | Description |
---|---|
fhir |
Variable
Variable is set based either on element value in response body or on header field value in the response headers.
Declaration
public List<TestScriptVariable> Variable { get; set; }
Property Value
Type | Description |
---|---|
fhir |
Version
There may be multiple resource versions of the TestScript that have this same identifier. The resource version id will change for technical reasons, whereas the stated version number needs to be under the author's control.
Declaration
public string Version { 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 |