
Package org.hl7.fhir.r5.tools
Class TestCases
java.lang.Object
org.hl7.fhir.r5.model.Base
org.hl7.fhir.r5.model.BaseResource
org.hl7.fhir.r5.model.Resource
org.hl7.fhir.r5.tools.TestCases
- 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.IBaseDatatype,org.hl7.fhir.instance.model.api.IBaseResource,org.hl7.fhir.instance.model.api.ICompositeType
A standard format for test cases used throughout the FHIR ecosystem
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classNested classes/interfaces inherited from class org.hl7.fhir.r5.model.Base
Base.ProfileSource, Base.ValidationInfo, Base.ValidationMode, Base.ValidationReason -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected MarkdownTypeGeneral description of these teats.protected List<TestCases.TestCasesModeComponent> A mode that can be passed to a runner running these these tests, that affects test content and influences how the tests are executed or evaulated (or even if they run)protected StringTypeA natural language name identifying the tests.protected UrlTypeURL of documentation that explains how a runner would read these tests, and use them to actually test out a tool.protected List<TestCases.TestCasesSuiteComponent> A suite of tests that all share a common set up, and can be executed as a groupprotected UriTypeAn absolute URI that is used to identify test tests.protected StringTypeThe identifier that is used to identify this version of these tests.Fields inherited from class org.hl7.fhir.r5.model.Resource
id, implicitRules, language, metaFields 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_TAGFields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
INCLUDE_ALL, WILDCARD_ALL_SET -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()voidcopyValues(TestCases dst) booleanequalsDeep(Base other_) booleanequalsShallow(Base other_) fhirType()getName()getNamedProperty(int _hash, String _name, boolean _checkValid) Base[]getProperty(int hash, String name, boolean checkValid) String[]getTypesForProperty(int hash, String name) getUrl()booleanbooleanbooleanhasMode()booleanhasName()booleanbooleanbooleanbooleanhasSuite()booleanhasUrl()booleanbooleanbooleanbooleanisEmpty()protected voidlistChildren(List<Property> children) makeProperty(int hash, String name) setDescription(String value) setModeList(List<TestCases.TestCasesModeComponent> theMode) setNameElement(StringType value) setProperty(int hash, String name, Base value) setProperty(String name, Base value) setRunnerElement(UrlType value) setSuiteList(List<TestCases.TestCasesSuiteComponent> theSuite) setUrlElement(UriType value) setVersion(String value) setVersionElement(StringType value) protected TestCasesMethods inherited from class org.hl7.fhir.r5.model.Resource
copyValues, getFHIRPublicationVersion, getId, getIdBase, getIdElement, getIdPart, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguage, getLanguageElement, getMeta, getSourcePackage, getWebPath, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, hasSourcePackage, hasWebPath, removeChild, setId, setIdBase, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta, setSourcePackage, setWebPathMethods inherited from class org.hl7.fhir.r5.model.BaseResource
getStructureFhirVersionEnum, isResource, setIdMethods inherited from class org.hl7.fhir.r5.model.Base
addDefinition, addFormatCommentsPost, addFormatCommentsPre, addValidationMessage, canHavePrimitiveValue, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, copyFormatComments, copyUserData, copyValues, dateTimeValue, equals, executeFunction, getChildByName, getChildValueByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, getValidationInfo, getValidationMessages, getXhtml, hasFormatComment, hasFormatCommentPost, hasFormatCommentPre, hasPrimitiveValue, hasType, hasUserData, hasValidated, hasValidationInfo, hasValidationMessages, isBooleanPrimitive, isCopyUserData, isDateTime, isMetadataBased, isPrimitive, listChildrenByName, listChildrenByName, primitiveValue, setCopyUserData, setUserData, setUserDataINN, setXhtmlMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getUserData, setUserDataMethods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, hasFormatCommentMethods inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
getStructureFhirVersionEnum, isDeleted, setId
-
Field Details
-
url
An absolute URI that is used to identify test tests. -
version
The identifier that is used to identify this version of these tests. Version must use SemVer -
name
A natural language name identifying the tests. This name should be usable as an identifier for the module by machine processing applications such as code generation. -
description
General description of these teats. -
runner
URL of documentation that explains how a runner would read these tests, and use them to actually test out a tool. -
modeList
A mode that can be passed to a runner running these these tests, that affects test content and influences how the tests are executed or evaulated (or even if they run) -
suiteList
A suite of tests that all share a common set up, and can be executed as a group
-
-
Constructor Details
-
TestCases
public TestCases()Constructor -
TestCases
Constructor
-
-
Method Details
-
getUrlElement
- Returns:
url(An absolute URI that is used to identify test tests.). 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 URI that is used to identify test tests.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
-
getUrl
- Returns:
- An absolute URI that is used to identify test tests.
-
setUrl
- Parameters:
value- An absolute URI that is used to identify test tests.
-
getVersionElement
- Returns:
version(The identifier that is used to identify this version of these tests. Version must use SemVer). 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 these tests. Version must use SemVer). 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 these tests. Version must use SemVer
-
setVersion
- Parameters:
value- The identifier that is used to identify this version of these tests. Version must use SemVer
-
getNameElement
- Returns:
name(A natural language name identifying the tests. This name should be usable as an identifier for the module by machine processing applications such as code generation.). 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 natural language name identifying the tests. This name should be usable as an identifier for the module by machine processing applications such as code generation.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
-
getName
- Returns:
- A natural language name identifying the tests. This name should be usable as an identifier for the module by machine processing applications such as code generation.
-
setName
- Parameters:
value- A natural language name identifying the tests. This name should be usable as an identifier for the module by machine processing applications such as code generation.
-
getDescriptionElement
- Returns:
description(General description of these teats.). 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(General description of these teats.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
-
getDescription
- Returns:
- General description of these teats.
-
setDescription
- Parameters:
value- General description of these teats.
-
getRunnerElement
- Returns:
runner(URL of documentation that explains how a runner would read these tests, and use them to actually test out a tool.). This is the underlying object with id, value and extensions. The accessor "getRunner" gives direct access to the value
-
hasRunnerElement
-
hasRunner
-
setRunnerElement
- Parameters:
value-runner(URL of documentation that explains how a runner would read these tests, and use them to actually test out a tool.). This is the underlying object with id, value and extensions. The accessor "getRunner" gives direct access to the value
-
getRunner
- Returns:
- URL of documentation that explains how a runner would read these tests, and use them to actually test out a tool.
-
setRunner
- Parameters:
value- URL of documentation that explains how a runner would read these tests, and use them to actually test out a tool.
-
getModeList
- Returns:
-
(A mode that can be passed to a runner running these these tests, that affects test content and influences how the tests are executed or evaulated (or even if they run))
invalid reference
#mode
-
setModeList
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasMode
-
addMode
-
getSuiteList
- Returns:
-
(A suite of tests that all share a common set up, and can be executed as a group)
invalid reference
#suite
-
setSuiteList
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasSuite
-
addSuite
-
listChildren
- Overrides:
listChildrenin classResource
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getNamedPropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getPropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
setPropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
- Overrides:
setPropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
- Overrides:
makePropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getTypesForPropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
-
fhirType
-
copy
-
copyValues
-
typedCopy
-
equalsDeep
- Overrides:
equalsDeepin classResource
-
equalsShallow
- Overrides:
equalsShallowin classResource
-
isEmpty
-
getResourceType
- Specified by:
getResourceTypein classResource
-
getCustomResourceName
-