Package org.hl7.fhir.dstu2.model
Class TestScript
java.lang.Object
org.hl7.fhir.dstu2.model.Base
org.hl7.fhir.dstu2.model.BaseResource
org.hl7.fhir.dstu2.model.Resource
org.hl7.fhir.dstu2.model.DomainResource
org.hl7.fhir.dstu2.model.TestScript
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement
,Serializable
,org.hl7.fhir.instance.model.api.IAnyResource
,org.hl7.fhir.instance.model.api.IBase
,org.hl7.fhir.instance.model.api.IBaseHasExtensions
,org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions
,org.hl7.fhir.instance.model.api.IBaseResource
,org.hl7.fhir.instance.model.api.IDomainResource
TestScript is a resource that specifies a suite of tests against a FHIR
server implementation to determine compliance against the FHIR specification.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static class
static enum
static class
static enum
static class
static enum
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected List
<TestScript.TestScriptContactComponent> Contacts to assist a user in finding and communicating with the publisher.protected StringType
A copyright statement relating to the Test Script and/or its contents.protected DateTimeType
The date this version of the test tcript was published.protected StringType
A free text natural language description of the TestScript and its use.protected BooleanType
This TestScript was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.protected List
<TestScript.TestScriptFixtureComponent> Fixture in the test script - by reference (uri).protected Identifier
Identifier for the TestScript assigned for external purposes outside the context of FHIR.protected TestScript.TestScriptMetadataComponent
The required capability must exist and are assumed to function correctly on the FHIR server being tested.protected BooleanType
If the tests apply to more than one FHIR server (e.g.protected StringType
A free text natural language name identifying the TestScript.Reference to the profile to be used for validation.The actual objects that are the target of the reference (Reference to the profile to be used for validation.)protected StringType
The name of the individual or organization that published the Test Script.protected StringType
Explains why this Test Script is needed and why it's been constrained as it has.protected TestScript.TestScriptSetupComponent
A series of required setup operations before tests are executed.static final String
static final String
static final String
static final String
static final String
static final String
static final String
The status of the TestScript.protected TestScript.TestScriptTeardownComponent
A series of operations required to clean up after the all the tests are executed (successfully or otherwise).protected List
<TestScript.TestScriptTestComponent> A test in this script.protected UriType
An absolute URL that is used to identify this Test Script.protected List
<CodeableConcept> The content was developed with a focus and intent of supporting the contexts that are listed.protected List
<TestScript.TestScriptVariableComponent> Variable is set based either on element value in response body or on header field value in the response headers.protected StringType
The identifier that is used to identify this version of the TestScript.Fields inherited from class org.hl7.fhir.dstu2.model.DomainResource
contained, extension, modifierExtension, text
Fields inherited from class org.hl7.fhir.dstu2.model.Resource
id, implicitRules, language, meta
Fields inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
RES_ID, RES_LAST_UPDATED, RES_PROFILE, RES_SECURITY, RES_TAG, SP_RES_ID, SP_RES_LAST_UPDATED, SP_RES_PROFILE, SP_RES_SECURITY, SP_RES_TAG
Fields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
INCLUDE_ALL, WILDCARD_ALL_SET
-
Constructor Summary
ConstructorDescriptionTestScript
(UriType url, StringType name, Enumeration<Enumerations.ConformanceResourceStatus> status) -
Method Summary
Modifier and TypeMethodDescriptionaddTest()
copy()
boolean
equalsDeep
(Base other) boolean
equalsShallow
(Base other) fhirType()
getDate()
boolean
boolean
getName()
getSetup()
getTest()
getUrl()
boolean
boolean
boolean
boolean
hasDate()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
hasName()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
hasSetup()
boolean
boolean
boolean
boolean
hasTest()
boolean
hasUrl()
boolean
boolean
boolean
boolean
boolean
boolean
isEmpty()
protected void
listChildren
(List<Property> childrenList) setCopyright
(String value) setCopyrightElement
(StringType value) setDateElement
(DateTimeType value) setDescription
(String value) setDescriptionElement
(StringType value) setExperimental
(boolean value) setIdentifier
(Identifier value) setMultiserver
(boolean value) setMultiserverElement
(BooleanType value) setNameElement
(StringType value) void
setProperty
(String name, Base value) setPublisher
(String value) setPublisherElement
(StringType value) setRequirements
(String value) setRequirementsElement
(StringType value) setUrlElement
(UriType value) setVersion
(String value) setVersionElement
(StringType value) protected TestScript
Methods inherited from class org.hl7.fhir.dstu2.model.DomainResource
addContained, addExtension, addExtension, addModifierExtension, addModifierExtension, copyValues, getContained, getExtension, getExtensionByUrl, getModifierExtension, getText, hasContained, hasExtension, hasExtension, hasModifierExtension, hasText, setText
Methods inherited from class org.hl7.fhir.dstu2.model.Resource
copyValues, getId, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta
Methods inherited from class org.hl7.fhir.dstu2.model.BaseResource
getStructureFhirVersionEnum, setId
Methods inherited from class org.hl7.fhir.dstu2.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, primitiveValue, setUserData, setUserDataINN
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getId, getIdElement, getLanguageElement, getUserData, setId, setUserData
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, hasFormatComment
Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
getMeta, getStructureFhirVersionEnum, isDeleted, setId
-
Field Details
-
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. -
version
The identifier that is used to identify this version of the TestScript. This is an arbitrary value managed by the TestScript author manually. -
name
A free text natural language name identifying the TestScript. -
status
The status of the TestScript. -
identifier
Identifier for the TestScript assigned for external purposes outside the context of FHIR. -
experimental
This TestScript was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage. -
publisher
The name of the individual or organization that published the Test Script. -
contact
Contacts to assist a user in finding and communicating with the publisher. -
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. -
description
A free text natural language description of the TestScript and its use. -
useContext
The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of Test Scripts. -
requirements
Explains why this Test Script is needed and why it's been constrained as it has. -
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. -
metadata
The required capability must exist and are assumed to function correctly on the FHIR server being tested. -
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. -
fixture
Fixture in the test script - by reference (uri). All fixtures are required for the test script to execute. -
profile
Reference to the profile to be used for validation. -
profileTarget
The actual objects that are the target of the reference (Reference to the profile to be used for validation.) -
variable
Variable is set based either on element value in response body or on header field value in the response headers. -
setup
A series of required setup operations before tests are executed. -
test
A test in this script. -
teardown
A series of operations required to clean up after the all the tests are executed (successfully or otherwise). -
SP_IDENTIFIER
- See Also:
-
SP_TESTSCRIPTTESTCAPABILITY
- See Also:
-
SP_TESTSCRIPTSETUPCAPABILITY
- See Also:
-
SP_NAME
- See Also:
-
SP_DESCRIPTION
- See Also:
-
SP_TESTSCRIPTCAPABILITY
- See Also:
-
SP_URL
- See Also:
-
-
Constructor Details
-
TestScript
public TestScript() -
TestScript
public TestScript(UriType url, StringType name, Enumeration<Enumerations.ConformanceResourceStatus> status)
-
-
Method Details
-
getUrlElement
- Returns:
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.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
-
hasUrlElement
-
hasUrl
-
setUrlElement
- Parameters:
value
-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.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
-
getUrl
- Returns:
- 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.
-
setUrl
- Parameters:
value
- 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.
-
getVersionElement
- Returns:
version
(The identifier that is used to identify this version of the TestScript. This is an arbitrary value managed by the TestScript author manually.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
-
hasVersionElement
-
hasVersion
-
setVersionElement
- Parameters:
value
-version
(The identifier that is used to identify this version of the TestScript. This is an arbitrary value managed by the TestScript author manually.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
-
getVersion
- Returns:
- The identifier that is used to identify this version of the TestScript. This is an arbitrary value managed by the TestScript author manually.
-
setVersion
- Parameters:
value
- The identifier that is used to identify this version of the TestScript. This is an arbitrary value managed by the TestScript author manually.
-
getNameElement
- Returns:
name
(A free text natural language name identifying the TestScript.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
-
hasNameElement
-
hasName
-
setNameElement
- Parameters:
value
-name
(A free text natural language name identifying the TestScript.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
-
getName
- Returns:
- A free text natural language name identifying the TestScript.
-
setName
- Parameters:
value
- A free text natural language name identifying the TestScript.
-
getStatusElement
- Returns:
status
(The status of the TestScript.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
-
hasStatusElement
-
hasStatus
-
setStatusElement
- Parameters:
value
-status
(The status of the TestScript.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
-
getStatus
- Returns:
- The status of the TestScript.
-
setStatus
- Parameters:
value
- The status of the TestScript.
-
getIdentifier
- Returns:
identifier
(Identifier for the TestScript assigned for external purposes outside the context of FHIR.)
-
hasIdentifier
-
setIdentifier
- Parameters:
value
-identifier
(Identifier for the TestScript assigned for external purposes outside the context of FHIR.)
-
getExperimentalElement
- Returns:
experimental
(This TestScript was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value
-
hasExperimentalElement
-
hasExperimental
-
setExperimentalElement
- Parameters:
value
-experimental
(This TestScript was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value
-
getExperimental
- Returns:
- This TestScript was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.
-
setExperimental
- Parameters:
value
- This TestScript was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.
-
getPublisherElement
- Returns:
publisher
(The name of the individual or organization that published the Test Script.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value
-
hasPublisherElement
-
hasPublisher
-
setPublisherElement
- Parameters:
value
-publisher
(The name of the individual or organization that published the Test Script.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value
-
getPublisher
- Returns:
- The name of the individual or organization that published the Test Script.
-
setPublisher
- Parameters:
value
- The name of the individual or organization that published the Test Script.
-
getContact
- Returns:
contact
(Contacts to assist a user in finding and communicating with the publisher.)
-
hasContact
-
addContact
- Returns:
contact
(Contacts to assist a user in finding and communicating with the publisher.)
-
addContact
-
getDateElement
- Returns:
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.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
-
hasDateElement
-
hasDate
-
setDateElement
- Parameters:
value
-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.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
-
getDate
- Returns:
- 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.
-
setDate
- Parameters:
value
- 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.
-
getDescriptionElement
- Returns:
description
(A free text natural language description of the TestScript and its use.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
-
hasDescriptionElement
-
hasDescription
-
setDescriptionElement
- Parameters:
value
-description
(A free text natural language description of the TestScript and its use.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
-
getDescription
- Returns:
- A free text natural language description of the TestScript and its use.
-
setDescription
- Parameters:
value
- A free text natural language description of the TestScript and its use.
-
getUseContext
- Returns:
useContext
(The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of Test Scripts.)
-
hasUseContext
-
addUseContext
- Returns:
useContext
(The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of Test Scripts.)
-
addUseContext
-
getRequirementsElement
- Returns:
requirements
(Explains why this Test Script is needed and why it's been constrained as it has.). This is the underlying object with id, value and extensions. The accessor "getRequirements" gives direct access to the value
-
hasRequirementsElement
-
hasRequirements
-
setRequirementsElement
- Parameters:
value
-requirements
(Explains why this Test Script is needed and why it's been constrained as it has.). This is the underlying object with id, value and extensions. The accessor "getRequirements" gives direct access to the value
-
getRequirements
- Returns:
- Explains why this Test Script is needed and why it's been constrained as it has.
-
setRequirements
- Parameters:
value
- Explains why this Test Script is needed and why it's been constrained as it has.
-
getCopyrightElement
- Returns:
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.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value
-
hasCopyrightElement
-
hasCopyright
-
setCopyrightElement
- Parameters:
value
-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.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value
-
getCopyright
- Returns:
- 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.
-
setCopyright
- Parameters:
value
- 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.
-
getMetadata
- Returns:
metadata
(The required capability must exist and are assumed to function correctly on the FHIR server being tested.)
-
hasMetadata
-
setMetadata
- Parameters:
value
-metadata
(The required capability must exist and are assumed to function correctly on the FHIR server being tested.)
-
getMultiserverElement
- Returns:
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.). This is the underlying object with id, value and extensions. The accessor "getMultiserver" gives direct access to the value
-
hasMultiserverElement
-
hasMultiserver
-
setMultiserverElement
- Parameters:
value
-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.). This is the underlying object with id, value and extensions. The accessor "getMultiserver" gives direct access to the value
-
getMultiserver
- Returns:
- 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.
-
setMultiserver
- Parameters:
value
- 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.
-
getFixture
- Returns:
fixture
(Fixture in the test script - by reference (uri). All fixtures are required for the test script to execute.)
-
hasFixture
-
addFixture
- Returns:
fixture
(Fixture in the test script - by reference (uri). All fixtures are required for the test script to execute.)
-
addFixture
-
getProfile
- Returns:
profile
(Reference to the profile to be used for validation.)
-
hasProfile
-
addProfile
- Returns:
profile
(Reference to the profile to be used for validation.)
-
addProfile
-
getProfileTarget
- Returns:
profile
(The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. Reference to the profile to be used for validation.)
-
getVariable
- Returns:
variable
(Variable is set based either on element value in response body or on header field value in the response headers.)
-
hasVariable
-
addVariable
- Returns:
variable
(Variable is set based either on element value in response body or on header field value in the response headers.)
-
addVariable
-
getSetup
- Returns:
setup
(A series of required setup operations before tests are executed.)
-
hasSetup
-
setSetup
- Parameters:
value
-setup
(A series of required setup operations before tests are executed.)
-
getTest
- Returns:
test
(A test in this script.)
-
hasTest
-
addTest
- Returns:
test
(A test in this script.)
-
addTest
-
getTeardown
- Returns:
teardown
(A series of operations required to clean up after the all the tests are executed (successfully or otherwise).)
-
hasTeardown
-
setTeardown
- Parameters:
value
-teardown
(A series of operations required to clean up after the all the tests are executed (successfully or otherwise).)
-
listChildren
- Overrides:
listChildren
in classDomainResource
-
setProperty
- Overrides:
setProperty
in classDomainResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
- Overrides:
addChild
in classDomainResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
fhirType
- Specified by:
fhirType
in interfaceorg.hl7.fhir.instance.model.api.IBase
- Overrides:
fhirType
in classDomainResource
-
copy
- Specified by:
copy
in classDomainResource
-
typedCopy
-
equalsDeep
- Overrides:
equalsDeep
in classDomainResource
-
equalsShallow
- Overrides:
equalsShallow
in classDomainResource
-
isEmpty
- Specified by:
isEmpty
in interfaceorg.hl7.fhir.instance.model.api.IBase
- Overrides:
isEmpty
in classDomainResource
-
getResourceType
- Specified by:
getResourceType
in classResource
-