PrivateurlTestScript.url Element
FHIR Specification
uriPrivate OptionalidentifierTestScript.identifier Element
FHIR Specification
IdentifierPrivate OptionalversionTestScript.version Element
FHIR Specification
stringPrivatenameTestScript.name Element
FHIR Specification
stringPrivate OptionaltitleTestScript.title Element
FHIR Specification
stringPrivate ReadonlypublicationFHIR CodeSystem: PublicationStatus
PrivatestatusTestScript.status Element
FHIR Specification
codeCodeSystem Enumeration: PublicationStatusEnum
Private OptionalexperimentalTestScript.experimental Element
FHIR Specification
booleanPrivate OptionaldateTestScript.date Element
FHIR Specification
dateTimePrivate OptionalpublisherTestScript.publisher Element
FHIR Specification
stringPrivate OptionalcontactTestScript.contact Element
FHIR Specification
ContactDetailPrivate OptionaldescriptionTestScript.description Element
FHIR Specification
markdownPrivate OptionaluseTestScript.useContext Element
FHIR Specification
UsageContextPrivate OptionaljurisdictionTestScript.jurisdiction Element
FHIR Specification
CodeableConceptPrivate OptionalpurposeTestScript.purpose Element
FHIR Specification
markdownPrivate OptionalcopyrightTestScript.copyright Element
FHIR Specification
markdownPrivate OptionaloriginTestScript.origin Element
FHIR Specification
BackboneElementPrivate OptionaldestinationTestScript.destination Element
FHIR Specification
BackboneElementPrivate OptionalmetadataTestScript.metadata Element
FHIR Specification
BackboneElementPrivate OptionalfixtureTestScript.fixture Element
Private OptionalprofileTestScript.profile Element
FHIR Specification
Reference
Private OptionalvariableTestScript.variable Element
FHIR Specification
BackboneElementPrivate OptionalsetupTestScript.setup Element
Private OptionaltestTestScript.test Element
Private OptionalteardownTestScript.teardown Element
StaticparseParse the provided TestScript JSON to instantiate the TestScript data model.
JSON representing FHIR TestScript
OptionaloptSourceField: stringOptional data source field (e.g. <complexTypeName>.<complexTypeFieldName>); defaults to TestScript
TestScript data model or undefined for TestScript
JsonError if the provided JSON is not a valid JSON object
the url property value as a UriType object if defined; else an empty UriType object
Assigns the provided PrimitiveType value to the url property.
the url value
this
InvalidTypeError for invalid data types
PrimitiveTypeError for invalid primitive types
true if the url property exists and has a value; false otherwise
the url property value as a fhirUri if defined; else null
Assigns the provided primitive value to the url property.
the url value
this
PrimitiveTypeError for invalid primitive types
true if the url property exists and has a value; false otherwise
the identifier property value as a Identifier object if defined; else an empty Identifier object
Assigns the provided Identifier object value to the identifier property.
the identifier object value
this
InvalidTypeError for invalid data types
true if the identifier property exists and has a value; false otherwise
the version property value as a StringType object if defined; else an empty StringType object
Assigns the provided PrimitiveType value to the version property.
the version value
this
InvalidTypeError for invalid data types
PrimitiveTypeError for invalid primitive types
true if the version property exists and has a value; false otherwise
the version property value as a fhirString if defined; else undefined
Assigns the provided primitive value to the version property.
the version value
this
PrimitiveTypeError for invalid primitive types
true if the version property exists and has a value; false otherwise
the name property value as a StringType object if defined; else an empty StringType object
Assigns the provided PrimitiveType value to the name property.
the name value
this
InvalidTypeError for invalid data types
PrimitiveTypeError for invalid primitive types
true if the name property exists and has a value; false otherwise
the name property value as a fhirString if defined; else null
Assigns the provided primitive value to the name property.
the name value
this
PrimitiveTypeError for invalid primitive types
true if the name property exists and has a value; false otherwise
the title property value as a StringType object if defined; else an empty StringType object
Assigns the provided PrimitiveType value to the title property.
the title value
this
InvalidTypeError for invalid data types
PrimitiveTypeError for invalid primitive types
true if the title property exists and has a value; false otherwise
the title property value as a fhirString if defined; else undefined
Assigns the provided primitive value to the title property.
the title value
this
PrimitiveTypeError for invalid primitive types
true if the title property exists and has a value; false otherwise
the status property value as a EnumCodeType if defined; else null
CodeSystem Enumeration: PublicationStatusEnum
Assigns the provided EnumCodeType value to the status property.
the status value
this
InvalidCodeError for invalid code value
InvalidTypeError for invalid data types
CodeSystem Enumeration: PublicationStatusEnum
true if the status property exists and has a value; false otherwise
the status property value as a CodeType if defined; else null
CodeSystem Enumeration: PublicationStatusEnum
Assigns the provided PrimitiveType value to the status property.
the status value
this
InvalidCodeError for invalid code value
InvalidTypeError for invalid data types
CodeSystem Enumeration: PublicationStatusEnum
true if the status property exists and has a value; false otherwise
the status property value as a fhirCode if defined; else null
CodeSystem Enumeration: PublicationStatusEnum
Assigns the provided primitive value to the status property.
the status value
this
InvalidCodeError for invalid code value
PrimitiveTypeError for invalid primitive types
CodeSystem Enumeration: PublicationStatusEnum
true if the status property exists and has a value; false otherwise
the experimental property value as a BooleanType object if defined; else an empty BooleanType object
Assigns the provided PrimitiveType value to the experimental property.
the experimental value
this
InvalidTypeError for invalid data types
PrimitiveTypeError for invalid primitive types
true if the experimental property exists and has a value; false otherwise
the experimental property value as a fhirBoolean if defined; else undefined
Assigns the provided primitive value to the experimental property.
the experimental value
this
PrimitiveTypeError for invalid primitive types
true if the experimental property exists and has a value; false otherwise
the date property value as a DateTimeType object if defined; else an empty DateTimeType object
Assigns the provided PrimitiveType value to the date property.
the date value
this
InvalidTypeError for invalid data types
PrimitiveTypeError for invalid primitive types
true if the date property exists and has a value; false otherwise
the date property value as a fhirDateTime if defined; else undefined
Assigns the provided primitive value to the date property.
the date value
this
PrimitiveTypeError for invalid primitive types
true if the date property exists and has a value; false otherwise
the publisher property value as a StringType object if defined; else an empty StringType object
Assigns the provided PrimitiveType value to the publisher property.
the publisher value
this
InvalidTypeError for invalid data types
PrimitiveTypeError for invalid primitive types
true if the publisher property exists and has a value; false otherwise
the publisher property value as a fhirString if defined; else undefined
Assigns the provided primitive value to the publisher property.
the publisher value
this
PrimitiveTypeError for invalid primitive types
true if the publisher property exists and has a value; false otherwise
the contact property value as a ContactDetail array
Assigns the provided ContactDetail array value to the contact property.
the contact array value
this
InvalidTypeError for invalid data types
Add the provided ContactDetail value to the contact array property.
the contact value
this
InvalidTypeError for invalid data types
true if the contact property exists and has a value; false otherwise
the description property value as a MarkdownType object if defined; else an empty MarkdownType object
Assigns the provided PrimitiveType value to the description property.
the description value
this
InvalidTypeError for invalid data types
PrimitiveTypeError for invalid primitive types
true if the description property exists and has a value; false otherwise
the description property value as a fhirMarkdown if defined; else undefined
Assigns the provided primitive value to the description property.
the description value
this
PrimitiveTypeError for invalid primitive types
true if the description property exists and has a value; false otherwise
the useContext property value as a UsageContext array
Assigns the provided UsageContext array value to the useContext property.
the useContext array value
this
InvalidTypeError for invalid data types
Add the provided UsageContext value to the useContext array property.
the useContext value
this
InvalidTypeError for invalid data types
true if the useContext property exists and has a value; false otherwise
the jurisdiction property value as a CodeableConcept array
Assigns the provided CodeableConcept array value to the jurisdiction property.
the jurisdiction array value
this
InvalidTypeError for invalid data types
Add the provided CodeableConcept value to the jurisdiction array property.
the jurisdiction value
this
InvalidTypeError for invalid data types
true if the jurisdiction property exists and has a value; false otherwise
the purpose property value as a MarkdownType object if defined; else an empty MarkdownType object
Assigns the provided PrimitiveType value to the purpose property.
the purpose value
this
InvalidTypeError for invalid data types
PrimitiveTypeError for invalid primitive types
true if the purpose property exists and has a value; false otherwise
the purpose property value as a fhirMarkdown if defined; else undefined
Assigns the provided primitive value to the purpose property.
the purpose value
this
PrimitiveTypeError for invalid primitive types
true if the purpose property exists and has a value; false otherwise
the copyright property value as a MarkdownType object if defined; else an empty MarkdownType object
Assigns the provided PrimitiveType value to the copyright property.
the copyright value
this
InvalidTypeError for invalid data types
PrimitiveTypeError for invalid primitive types
true if the copyright property exists and has a value; false otherwise
the copyright property value as a fhirMarkdown if defined; else undefined
Assigns the provided primitive value to the copyright property.
the copyright value
this
PrimitiveTypeError for invalid primitive types
true if the copyright property exists and has a value; false otherwise
the origin property value as a TestScriptOriginComponent array
Assigns the provided TestScriptOriginComponent array value to the origin property.
the origin array value
this
InvalidTypeError for invalid data types
Add the provided TestScriptOriginComponent value to the origin array property.
the origin value
this
InvalidTypeError for invalid data types
true if the origin property exists and has a value; false otherwise
the destination property value as a TestScriptDestinationComponent array
Assigns the provided TestScriptDestinationComponent array value to the destination property.
the destination array value
this
InvalidTypeError for invalid data types
Add the provided TestScriptDestinationComponent value to the destination array property.
the destination value
this
InvalidTypeError for invalid data types
true if the destination property exists and has a value; false otherwise
the metadata property value as a TestScriptMetadataComponent object if defined; else an empty TestScriptMetadataComponent object
Assigns the provided Metadata object value to the metadata property.
the metadata object value
this
InvalidTypeError for invalid data types
true if the metadata property exists and has a value; false otherwise
the fixture property value as a TestScriptFixtureComponent array
Assigns the provided TestScriptFixtureComponent array value to the fixture property.
the fixture array value
this
InvalidTypeError for invalid data types
Add the provided TestScriptFixtureComponent value to the fixture array property.
the fixture value
this
InvalidTypeError for invalid data types
true if the fixture property exists and has a value; false otherwise
the profile property value as a Reference array
Assigns the provided Reference array value to the profile property.
the profile array value
this
InvalidTypeError for invalid data type or reference value
Add the provided Reference value to the profile array property.
the profile value
this
InvalidTypeError for invalid data type or reference value
true if the profile property exists and has a value; false otherwise
the variable property value as a TestScriptVariableComponent array
Assigns the provided TestScriptVariableComponent array value to the variable property.
the variable array value
this
InvalidTypeError for invalid data types
Add the provided TestScriptVariableComponent value to the variable array property.
the variable value
this
InvalidTypeError for invalid data types
true if the variable property exists and has a value; false otherwise
the setup property value as a TestScriptSetupComponent object if defined; else an empty TestScriptSetupComponent object
Assigns the provided Setup object value to the setup property.
the setup object value
this
InvalidTypeError for invalid data types
true if the setup property exists and has a value; false otherwise
the test property value as a TestScriptTestComponent array
Assigns the provided TestScriptTestComponent array value to the test property.
the test array value
this
InvalidTypeError for invalid data types
Add the provided TestScriptTestComponent value to the test array property.
the test value
this
InvalidTypeError for invalid data types
true if the test property exists and has a value; false otherwise
the teardown property value as a TestScriptTeardownComponent object if defined; else an empty TestScriptTeardownComponent object
Assigns the provided Teardown object value to the teardown property.
the teardown object value
this
InvalidTypeError for invalid data types
true if the teardown property exists and has a value; false otherwise
the FHIR type defined in the FHIR standard
true if the instance is empty; false otherwise
true if and only if the data model has required fields (min cardinality > 0)
and at least one of those required fields in the instance is empty; false otherwise
Creates a copy of the current instance.
the a new instance copied from the current instance
the JSON value or undefined if the instance is empty
the text property value as a Narrative
Assigns the provided value to the text property.
the text value
this
true if the text property exists and has a value; false otherwise
the contained property value as a Resource array
Assigns the provided Resource array value to the contained property.
the contained array value
this
Add the provided Resource value to the contained array property.
the contained value
this
true if the contained property exists and has a value; false otherwise
the array of extension values
Assigns the provided array of Extension values to the extension property.
array of Extensions
this
Determines if the extension property exists.
Optionalurl: stringthe url that identifies a specific Extension
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
Returns the Extension having the provided url.
the url that identifies a specific Extension
the Extension having the provided url
AssertionError for invalid url
Adds the provided Extension to the extension property array.
the Extension value to add to the extension property array
this
Removes the Extension having the provided url from the extension property array.
the url that identifies a specific Extension to remove
AssertionError for invalid url
the array of modifierExtension values
Assigns the provided array of Extension values to the modifierExtension property.
array of Extensions
this
Determines if the modifierExtension property exists.
Optionalurl: stringthe url that identifies a specific Extension
true if an Extension has 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 modifierExtension property exists and has any values.
AssertionError for invalid url
Returns the Extension having the provided url.
the url that identifies a specific Extension
the Extension having the provided url
AssertionError for invalid url
Adds the provided Extension to the modifierExtension property array.
the Extension value to add to the modifierExtension property array
this
Removes the Extension having the provided url from the modifierExtension property array.
the url that identifies a specific Extension to remove
AssertionError for invalid url
the FHIR resource type as defined by the FHIR specification
the id property value as a PrimitiveType
Assigns the provided PrimitiveType value to the id property.
the id value
this
true if the id property exists and has a value; false otherwise
the id property value as a primitive value
Assigns the provided primitive value to the id property.
the id value
this
PrimitiveTypeError for invalid primitive types
true if the id property exists and has a value; false otherwise
the meta property value as a Meta
Assigns the provided value to the meta property.
the meta value
this
true if the meta property exists and has a value; false otherwise
the implicitRules property value as a PrimitiveType
Assigns the provided PrimitiveType value to the implicitRules property.
the implicitRules value
this
true if the implicitRules property exists and has a value; false otherwise
the implicitRules property value as a primitive value
Assigns the provided primitive value to the implicitRules property.
the implicitRules value
this
PrimitiveTypeError for invalid primitive types
true if the system property exists and has a value; false otherwise
the language property value as a PrimitiveType
Assigns the provided PrimitiveType value to the language property.
the language value
this
true if the language property exists and has a value; false otherwise
the language property value as a primitive value
Assigns the provided primitive value to the language property.
the language value
this
PrimitiveTypeError for invalid primitive types
true if the language property exists and has a value; false otherwise
true if the instance is a FHIR resource; false otherwise
true if the instance is a FHIR complex or primitive datatype; false otherwise
true if the instance is a FHIR complex datatype; false otherwise
true if the instance is a FHIR primitive datatype; false otherwise
true if the instance is a FHIR primitive boolean datatype; false otherwise
true if the instance is a FHIR primitive string-based datatype; false otherwise
true if the instance is a FHIR primitive number-based datatype; false otherwise
true if the instance is a FHIR primitive bigint-based datatype; false otherwise
true if the instance is a FHIR primitive datetime-based datatype; false otherwise
ProtectedcopyProtectedCopies the current instance's elements into the provided object.
the copied instance
PrivateinitInitialize the contact property
PrivateinitInitialize the useContext property
PrivateinitInitialize the jurisdiction property
PrivateinitInitialize the origin property
PrivateinitInitialize the destination property
PrivateinitInitialize the fixture property
PrivateinitInitialize the profile property
PrivateinitInitialize the variable property
PrivateinitInitialize the test property
TestScript Class
Remarks
A structured set of tests against a FHIR server or client implementation to determine compliance against the FHIR specification.
FHIR Specification
See
FHIR TestScript