Package com.ibm.fhir.model.resource
Class TestReport
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.resource.Resource
-
- com.ibm.fhir.model.resource.DomainResource
-
- com.ibm.fhir.model.resource.TestReport
-
- All Implemented Interfaces:
Visitable
@Generated("com.ibm.fhir.tools.CodeGenerator") public class TestReport extends DomainResource
A summary of information based on the results of executing a TestScript.Maturity level: FMM0 (Trial Use)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTestReport.Builderstatic classTestReport.ParticipantA participant in the test execution, either the execution engine, a client, or a server.static classTestReport.SetupThe results of the series of required setup operations before the tests were executed.static classTestReport.TeardownThe results of the series of operations required to clean up after all the tests were executed (successfully or otherwise).static classTestReport.TestA test executed from the test script.
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.resource.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class com.ibm.fhir.model.resource.Resource
id, implicitRules, language, meta
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static TestReport.Builderbuilder()booleanequals(Object obj)IdentifiergetIdentifier()Identifier for the TestScript assigned for external purposes outside the context of FHIR.DateTimegetIssued()When the TestScript was executed and this TestReport was generated.StringgetName()A free text natural language name identifying the executed TestScript.List<TestReport.Participant>getParticipant()A participant in the test execution, either the execution engine, a client, or a server.TestReportResultgetResult()The overall result from the execution of the TestScript.DecimalgetScore()The final score (percentage of tests passed) resulting from the execution of the TestScript.TestReport.SetupgetSetup()The results of the series of required setup operations before the tests were executed.TestReportStatusgetStatus()The current state of this test report.TestReport.TeardowngetTeardown()The results of the series of operations required to clean up after all the tests were executed (successfully or otherwise).List<TestReport.Test>getTest()A test executed from the test script.StringgetTester()Name of the tester producing this report (Organization or individual).ReferencegetTestScript()Ideally this is an absolute URL that is used to identify the version-specific TestScript that was executed, matching the `TestScript.url`.booleanhasChildren()inthashCode()TestReport.BuildertoBuilder()Create a new Builder from the contents of this Resource-
Methods inherited from class com.ibm.fhir.model.resource.DomainResource
getContained, getExtension, getModifierExtension, getText
-
Methods inherited from class com.ibm.fhir.model.resource.Resource
as, getId, getImplicitRules, getLanguage, getMeta, is
-
-
-
-
Method Detail
-
getIdentifier
public Identifier getIdentifier()
Identifier for the TestScript assigned for external purposes outside the context of FHIR.- Returns:
- An immutable object of type
Identifierthat may be null.
-
getName
public String getName()
A free text natural language name identifying the executed TestScript.- Returns:
- An immutable object of type
Stringthat may be null.
-
getStatus
public TestReportStatus getStatus()
The current state of this test report.- Returns:
- An immutable object of type
TestReportStatusthat is non-null.
-
getTestScript
public Reference getTestScript()
Ideally this is an absolute URL that is used to identify the version-specific TestScript that was executed, matching the `TestScript.url`.- Returns:
- An immutable object of type
Referencethat is non-null.
-
getResult
public TestReportResult getResult()
The overall result from the execution of the TestScript.- Returns:
- An immutable object of type
TestReportResultthat is non-null.
-
getScore
public Decimal getScore()
The final score (percentage of tests passed) resulting from the execution of the TestScript.- Returns:
- An immutable object of type
Decimalthat may be null.
-
getTester
public String getTester()
Name of the tester producing this report (Organization or individual).- Returns:
- An immutable object of type
Stringthat may be null.
-
getIssued
public DateTime getIssued()
When the TestScript was executed and this TestReport was generated.- Returns:
- An immutable object of type
DateTimethat may be null.
-
getParticipant
public List<TestReport.Participant> getParticipant()
A participant in the test execution, either the execution engine, a client, or a server.- Returns:
- An unmodifiable list containing immutable objects of type
TestReport.Participantthat may be empty.
-
getSetup
public TestReport.Setup getSetup()
The results of the series of required setup operations before the tests were executed.- Returns:
- An immutable object of type
TestReport.Setupthat may be null.
-
getTest
public List<TestReport.Test> getTest()
A test executed from the test script.- Returns:
- An unmodifiable list containing immutable objects of type
TestReport.Testthat may be empty.
-
getTeardown
public TestReport.Teardown getTeardown()
The results of the series of operations required to clean up after all the tests were executed (successfully or otherwise).- Returns:
- An immutable object of type
TestReport.Teardownthat may be null.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classDomainResource
-
accept
public void accept(String elementName, int elementIndex, Visitor visitor)
Description copied from interface:VisitableAccept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:if (visitor.preVisit(this)) { visitor.visitStart(elementName, elementIndex, this); if (visitor.visit(elementName, elementIndex, this)) { // visit children } visitor.visitEnd(elementName, elementIndex, this); visitor.postVisit(this); }- Specified by:
acceptin interfaceVisitable- Specified by:
acceptin classAbstractVisitable- Parameters:
elementName- the name of the element in the context of this visitelementIndex- the index of the element in a list or -1 if it is not contained within a Listvisitor- the visitor to use
-
toBuilder
public TestReport.Builder toBuilder()
Description copied from class:ResourceCreate a new Builder from the contents of this Resource- Specified by:
toBuilderin classDomainResource
-
builder
public static TestReport.Builder builder()
-
-