Class TestReport
- java.lang.Object
-
- org.hl7.fhir.r4.model.Base
-
- org.hl7.fhir.r4.model.BaseResource
-
- org.hl7.fhir.r4.model.Resource
-
- org.hl7.fhir.r4.model.DomainResource
-
- org.hl7.fhir.r4.model.TestReport
-
- 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
public class TestReport extends DomainResource
A summary of information based on the results of executing a TestScript.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTestReport.SetupActionAssertComponentstatic classTestReport.SetupActionComponentstatic classTestReport.SetupActionOperationComponentstatic classTestReport.TeardownActionComponentstatic classTestReport.TestActionComponentstatic classTestReport.TestReportActionResultstatic classTestReport.TestReportActionResultEnumFactorystatic classTestReport.TestReportParticipantComponentstatic classTestReport.TestReportParticipantTypestatic classTestReport.TestReportParticipantTypeEnumFactorystatic classTestReport.TestReportResultstatic classTestReport.TestReportResultEnumFactorystatic classTestReport.TestReportSetupComponentstatic classTestReport.TestReportStatusstatic classTestReport.TestReportStatusEnumFactorystatic classTestReport.TestReportTeardownComponentstatic classTestReport.TestReportTestComponent
-
Field Summary
Fields Modifier and Type Field Description protected IdentifieridentifierIdentifier for the TestScript assigned for external purposes outside the context of FHIR.static ca.uhn.fhir.rest.gclient.TokenClientParamIDENTIFIERFluent Client search parameter constant for identifierstatic ca.uhn.fhir.model.api.IncludeINCLUDE_TESTSCRIPTConstant for fluent queries to be used to add include statements.protected DateTimeTypeissuedWhen the TestScript was executed and this TestReport was generated.static ca.uhn.fhir.rest.gclient.DateClientParamISSUEDFluent Client search parameter constant for issuedprotected StringTypenameA free text natural language name identifying the executed TestScript.protected List<TestReport.TestReportParticipantComponent>participantA participant in the test execution, either the execution engine, a client, or a server.static ca.uhn.fhir.rest.gclient.UriClientParamPARTICIPANTFluent Client search parameter constant for participantprotected Enumeration<TestReport.TestReportResult>resultThe overall result from the execution of the TestScript.static ca.uhn.fhir.rest.gclient.TokenClientParamRESULTFluent Client search parameter constant for resultprotected DecimalTypescoreThe final score (percentage of tests passed) resulting from the execution of the TestScript.protected TestReport.TestReportSetupComponentsetupThe results of the series of required setup operations before the tests were executed.static StringSP_IDENTIFIERSearch parameter: identifierstatic StringSP_ISSUEDSearch parameter: issuedstatic StringSP_PARTICIPANTSearch parameter: participantstatic StringSP_RESULTSearch parameter: resultstatic StringSP_TESTERSearch parameter: testerstatic StringSP_TESTSCRIPTSearch parameter: testscriptprotected Enumeration<TestReport.TestReportStatus>statusThe current state of this test report.protected TestReport.TestReportTeardownComponentteardownThe results of the series of operations required to clean up after all the tests were executed (successfully or otherwise).protected List<TestReport.TestReportTestComponent>testA test executed from the test script.protected StringTypetesterName of the tester producing this report (Organization or individual).static ca.uhn.fhir.rest.gclient.StringClientParamTESTERFluent Client search parameter constant for testerprotected ReferencetestScriptIdeally this is an absolute URL that is used to identify the version-specific TestScript that was executed, matching the `TestScript.url`.static ca.uhn.fhir.rest.gclient.ReferenceClientParamTESTSCRIPTFluent Client search parameter constant for testscriptprotected TestScripttestScriptTargetThe actual object that is the target of the reference (Ideally this is an absolute URL that is used to identify the version-specific TestScript that was executed, matching the `TestScript.url`.)-
Fields inherited from class org.hl7.fhir.r4.model.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.r4.model.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description TestReport()ConstructorTestReport(Enumeration<TestReport.TestReportStatus> status, Reference testScript, Enumeration<TestReport.TestReportResult> result)Constructor
-
Method Summary
-
Methods inherited from class org.hl7.fhir.r4.model.DomainResource
addContained, addExtension, addExtension, addExtension, addModifierExtension, addModifierExtension, checkNoModifiers, copyValues, getContained, getExtension, getExtensionByUrl, getExtensionsByUrl, getModifierExtension, getModifierExtensionsByUrl, getText, hasContained, hasExtension, hasExtension, hasModifierExtension, hasText, setContained, setExtension, setModifierExtension, setText
-
Methods inherited from class org.hl7.fhir.r4.model.Resource
copyValues, getId, getIdBase, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdBase, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta
-
Methods inherited from class org.hl7.fhir.r4.model.BaseResource
getStructureFhirVersionEnum, isResource, setId
-
Methods inherited from class org.hl7.fhir.r4.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCanonical, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExpression, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMarketingStatus, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPopulation, castToPositiveInt, castToProdCharacteristic, castToProductShelfLife, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToSubstanceAmount, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUrl, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isDateTime, isMetadataBased, isPrimitive, listChildrenByName, 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
-
-
-
-
Field Detail
-
identifier
protected Identifier identifier
Identifier for the TestScript assigned for external purposes outside the context of FHIR.
-
name
protected StringType name
A free text natural language name identifying the executed TestScript.
-
status
protected Enumeration<TestReport.TestReportStatus> status
The current state of this test report.
-
testScript
protected Reference testScript
Ideally this is an absolute URL that is used to identify the version-specific TestScript that was executed, matching the `TestScript.url`.
-
testScriptTarget
protected TestScript testScriptTarget
The actual object that is the target of the reference (Ideally this is an absolute URL that is used to identify the version-specific TestScript that was executed, matching the `TestScript.url`.)
-
result
protected Enumeration<TestReport.TestReportResult> result
The overall result from the execution of the TestScript.
-
score
protected DecimalType score
The final score (percentage of tests passed) resulting from the execution of the TestScript.
-
tester
protected StringType tester
Name of the tester producing this report (Organization or individual).
-
issued
protected DateTimeType issued
When the TestScript was executed and this TestReport was generated.
-
participant
protected List<TestReport.TestReportParticipantComponent> participant
A participant in the test execution, either the execution engine, a client, or a server.
-
setup
protected TestReport.TestReportSetupComponent setup
The results of the series of required setup operations before the tests were executed.
-
test
protected List<TestReport.TestReportTestComponent> test
A test executed from the test script.
-
teardown
protected TestReport.TestReportTeardownComponent teardown
The results of the series of operations required to clean up after all the tests were executed (successfully or otherwise).
-
SP_RESULT
public static final String SP_RESULT
Search parameter: resultDescription: The result disposition of the test execution
Type: token
Path: TestReport.result
- See Also:
- Constant Field Values
-
RESULT
public static final ca.uhn.fhir.rest.gclient.TokenClientParam RESULT
Fluent Client search parameter constant for resultDescription: The result disposition of the test execution
Type: token
Path: TestReport.result
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
Search parameter: identifierDescription: An external identifier for the test report
Type: token
Path: TestReport.identifier
- See Also:
- Constant Field Values
-
IDENTIFIER
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
Fluent Client search parameter constant for identifierDescription: An external identifier for the test report
Type: token
Path: TestReport.identifier
-
SP_TESTER
public static final String SP_TESTER
Search parameter: testerDescription: The name of the testing organization
Type: string
Path: TestReport.tester
- See Also:
- Constant Field Values
-
TESTER
public static final ca.uhn.fhir.rest.gclient.StringClientParam TESTER
Fluent Client search parameter constant for testerDescription: The name of the testing organization
Type: string
Path: TestReport.tester
-
SP_TESTSCRIPT
public static final String SP_TESTSCRIPT
Search parameter: testscriptDescription: The test script executed to produce this report
Type: reference
Path: TestReport.testScript
- See Also:
- Constant Field Values
-
TESTSCRIPT
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam TESTSCRIPT
Fluent Client search parameter constant for testscriptDescription: The test script executed to produce this report
Type: reference
Path: TestReport.testScript
-
INCLUDE_TESTSCRIPT
public static final ca.uhn.fhir.model.api.Include INCLUDE_TESTSCRIPT
Constant for fluent queries to be used to add include statements. Specifies the path value of "TestReport:testscript".
-
SP_ISSUED
public static final String SP_ISSUED
Search parameter: issuedDescription: The test report generation date
Type: date
Path: TestReport.issued
- See Also:
- Constant Field Values
-
ISSUED
public static final ca.uhn.fhir.rest.gclient.DateClientParam ISSUED
Fluent Client search parameter constant for issuedDescription: The test report generation date
Type: date
Path: TestReport.issued
-
SP_PARTICIPANT
public static final String SP_PARTICIPANT
Search parameter: participantDescription: The reference to a participant in the test execution
Type: uri
Path: TestReport.participant.uri
- See Also:
- Constant Field Values
-
PARTICIPANT
public static final ca.uhn.fhir.rest.gclient.UriClientParam PARTICIPANT
Fluent Client search parameter constant for participantDescription: The reference to a participant in the test execution
Type: uri
Path: TestReport.participant.uri
-
-
Constructor Detail
-
TestReport
public TestReport()
Constructor
-
TestReport
public TestReport(Enumeration<TestReport.TestReportStatus> status, Reference testScript, Enumeration<TestReport.TestReportResult> result)
Constructor
-
-
Method Detail
-
getIdentifier
public Identifier getIdentifier()
- Returns:
identifier(Identifier for the TestScript assigned for external purposes outside the context of FHIR.)
-
hasIdentifier
public boolean hasIdentifier()
-
setIdentifier
public TestReport setIdentifier(Identifier value)
- Parameters:
value-identifier(Identifier for the TestScript assigned for external purposes outside the context of FHIR.)
-
getNameElement
public StringType getNameElement()
- Returns:
name(A free text natural language name identifying the executed TestScript.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
-
hasNameElement
public boolean hasNameElement()
-
hasName
public boolean hasName()
-
setNameElement
public TestReport setNameElement(StringType value)
- Parameters:
value-name(A free text natural language name identifying the executed TestScript.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
-
getName
public String getName()
- Returns:
- A free text natural language name identifying the executed TestScript.
-
setName
public TestReport setName(String value)
- Parameters:
value- A free text natural language name identifying the executed TestScript.
-
getStatusElement
public Enumeration<TestReport.TestReportStatus> getStatusElement()
- Returns:
status(The current state of this test report.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
-
hasStatusElement
public boolean hasStatusElement()
-
hasStatus
public boolean hasStatus()
-
setStatusElement
public TestReport setStatusElement(Enumeration<TestReport.TestReportStatus> value)
- Parameters:
value-status(The current state of this test report.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
-
getStatus
public TestReport.TestReportStatus getStatus()
- Returns:
- The current state of this test report.
-
setStatus
public TestReport setStatus(TestReport.TestReportStatus value)
- Parameters:
value- The current state of this test report.
-
getTestScript
public Reference getTestScript()
- Returns:
testScript(Ideally this is an absolute URL that is used to identify the version-specific TestScript that was executed, matching the `TestScript.url`.)
-
hasTestScript
public boolean hasTestScript()
-
setTestScript
public TestReport setTestScript(Reference value)
- Parameters:
value-testScript(Ideally this is an absolute URL that is used to identify the version-specific TestScript that was executed, matching the `TestScript.url`.)
-
getTestScriptTarget
public TestScript getTestScriptTarget()
- Returns:
testScriptThe actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Ideally this is an absolute URL that is used to identify the version-specific TestScript that was executed, matching the `TestScript.url`.)
-
setTestScriptTarget
public TestReport setTestScriptTarget(TestScript value)
- Parameters:
value-testScriptThe actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Ideally this is an absolute URL that is used to identify the version-specific TestScript that was executed, matching the `TestScript.url`.)
-
getResultElement
public Enumeration<TestReport.TestReportResult> getResultElement()
- Returns:
result(The overall result from the execution of the TestScript.). This is the underlying object with id, value and extensions. The accessor "getResult" gives direct access to the value
-
hasResultElement
public boolean hasResultElement()
-
hasResult
public boolean hasResult()
-
setResultElement
public TestReport setResultElement(Enumeration<TestReport.TestReportResult> value)
- Parameters:
value-result(The overall result from the execution of the TestScript.). This is the underlying object with id, value and extensions. The accessor "getResult" gives direct access to the value
-
getResult
public TestReport.TestReportResult getResult()
- Returns:
- The overall result from the execution of the TestScript.
-
setResult
public TestReport setResult(TestReport.TestReportResult value)
- Parameters:
value- The overall result from the execution of the TestScript.
-
getScoreElement
public DecimalType getScoreElement()
- Returns:
score(The final score (percentage of tests passed) resulting from the execution of the TestScript.). This is the underlying object with id, value and extensions. The accessor "getScore" gives direct access to the value
-
hasScoreElement
public boolean hasScoreElement()
-
hasScore
public boolean hasScore()
-
setScoreElement
public TestReport setScoreElement(DecimalType value)
- Parameters:
value-score(The final score (percentage of tests passed) resulting from the execution of the TestScript.). This is the underlying object with id, value and extensions. The accessor "getScore" gives direct access to the value
-
getScore
public BigDecimal getScore()
- Returns:
- The final score (percentage of tests passed) resulting from the execution of the TestScript.
-
setScore
public TestReport setScore(BigDecimal value)
- Parameters:
value- The final score (percentage of tests passed) resulting from the execution of the TestScript.
-
setScore
public TestReport setScore(long value)
- Parameters:
value- The final score (percentage of tests passed) resulting from the execution of the TestScript.
-
setScore
public TestReport setScore(double value)
- Parameters:
value- The final score (percentage of tests passed) resulting from the execution of the TestScript.
-
getTesterElement
public StringType getTesterElement()
- Returns:
tester(Name of the tester producing this report (Organization or individual).). This is the underlying object with id, value and extensions. The accessor "getTester" gives direct access to the value
-
hasTesterElement
public boolean hasTesterElement()
-
hasTester
public boolean hasTester()
-
setTesterElement
public TestReport setTesterElement(StringType value)
- Parameters:
value-tester(Name of the tester producing this report (Organization or individual).). This is the underlying object with id, value and extensions. The accessor "getTester" gives direct access to the value
-
getTester
public String getTester()
- Returns:
- Name of the tester producing this report (Organization or individual).
-
setTester
public TestReport setTester(String value)
- Parameters:
value- Name of the tester producing this report (Organization or individual).
-
getIssuedElement
public DateTimeType getIssuedElement()
- Returns:
issued(When the TestScript was executed and this TestReport was generated.). This is the underlying object with id, value and extensions. The accessor "getIssued" gives direct access to the value
-
hasIssuedElement
public boolean hasIssuedElement()
-
hasIssued
public boolean hasIssued()
-
setIssuedElement
public TestReport setIssuedElement(DateTimeType value)
- Parameters:
value-issued(When the TestScript was executed and this TestReport was generated.). This is the underlying object with id, value and extensions. The accessor "getIssued" gives direct access to the value
-
getIssued
public Date getIssued()
- Returns:
- When the TestScript was executed and this TestReport was generated.
-
setIssued
public TestReport setIssued(Date value)
- Parameters:
value- When the TestScript was executed and this TestReport was generated.
-
getParticipant
public List<TestReport.TestReportParticipantComponent> getParticipant()
- Returns:
participant(A participant in the test execution, either the execution engine, a client, or a server.)
-
setParticipant
public TestReport setParticipant(List<TestReport.TestReportParticipantComponent> theParticipant)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasParticipant
public boolean hasParticipant()
-
addParticipant
public TestReport.TestReportParticipantComponent addParticipant()
-
addParticipant
public TestReport addParticipant(TestReport.TestReportParticipantComponent t)
-
getParticipantFirstRep
public TestReport.TestReportParticipantComponent getParticipantFirstRep()
- Returns:
- The first repetition of repeating field
participant, creating it if it does not already exist
-
getSetup
public TestReport.TestReportSetupComponent getSetup()
- Returns:
setup(The results of the series of required setup operations before the tests were executed.)
-
hasSetup
public boolean hasSetup()
-
setSetup
public TestReport setSetup(TestReport.TestReportSetupComponent value)
- Parameters:
value-setup(The results of the series of required setup operations before the tests were executed.)
-
getTest
public List<TestReport.TestReportTestComponent> getTest()
- Returns:
test(A test executed from the test script.)
-
setTest
public TestReport setTest(List<TestReport.TestReportTestComponent> theTest)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasTest
public boolean hasTest()
-
addTest
public TestReport.TestReportTestComponent addTest()
-
addTest
public TestReport addTest(TestReport.TestReportTestComponent t)
-
getTestFirstRep
public TestReport.TestReportTestComponent getTestFirstRep()
- Returns:
- The first repetition of repeating field
test, creating it if it does not already exist
-
getTeardown
public TestReport.TestReportTeardownComponent getTeardown()
- Returns:
teardown(The results of the series of operations required to clean up after all the tests were executed (successfully or otherwise).)
-
hasTeardown
public boolean hasTeardown()
-
setTeardown
public TestReport setTeardown(TestReport.TestReportTeardownComponent value)
- Parameters:
value-teardown(The results of the series of operations required to clean up after all the tests were executed (successfully or otherwise).)
-
listChildren
protected void listChildren(List<Property> children)
- Overrides:
listChildrenin classDomainResource
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getNamedPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
makePropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getTypesForPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
addChildin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
fhirType
public String fhirType()
- Specified by:
fhirTypein interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
fhirTypein classDomainResource
-
copy
public TestReport copy()
- Specified by:
copyin classDomainResource
-
copyValues
public void copyValues(TestReport dst)
-
typedCopy
protected TestReport typedCopy()
-
equalsDeep
public boolean equalsDeep(Base other_)
- Overrides:
equalsDeepin classDomainResource
-
equalsShallow
public boolean equalsShallow(Base other_)
- Overrides:
equalsShallowin classDomainResource
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
isEmptyin classDomainResource
-
getResourceType
public ResourceType getResourceType()
- Specified by:
getResourceTypein classResource
-
-