Class TestReport
- java.lang.Object
-
- org.linuxforhealth.fhir.model.visitor.AbstractVisitable
-
- org.linuxforhealth.fhir.model.resource.Resource
-
- org.linuxforhealth.fhir.model.resource.DomainResource
-
- org.linuxforhealth.fhir.model.resource.TestReport
-
- All Implemented Interfaces:
Visitable
@Generated("org.linuxforhealth.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 class
TestReport.Builder
static class
TestReport.Participant
A participant in the test execution, either the execution engine, a client, or a server.static class
TestReport.Setup
The results of the series of required setup operations before the tests were executed.static class
TestReport.Teardown
The results of the series of operations required to clean up after all the tests were executed (successfully or otherwise).static class
TestReport.Test
A test executed from the test script.
-
Field Summary
-
Fields inherited from class org.linuxforhealth.fhir.model.resource.DomainResource
contained, extension, modifierExtension, text
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(java.lang.String elementName, int elementIndex, Visitor visitor)
Accept a Visitor and invoke the appropriate visit methods.static TestReport.Builder
builder()
boolean
equals(java.lang.Object obj)
Identifier
getIdentifier()
Identifier for the TestScript assigned for external purposes outside the context of FHIR.DateTime
getIssued()
When the TestScript was executed and this TestReport was generated.String
getName()
A free text natural language name identifying the executed TestScript.java.util.List<TestReport.Participant>
getParticipant()
A participant in the test execution, either the execution engine, a client, or a server.TestReportResult
getResult()
The overall result from the execution of the TestScript.Decimal
getScore()
The final score (percentage of tests passed) resulting from the execution of the TestScript.TestReport.Setup
getSetup()
The results of the series of required setup operations before the tests were executed.TestReportStatus
getStatus()
The current state of this test report.TestReport.Teardown
getTeardown()
The results of the series of operations required to clean up after all the tests were executed (successfully or otherwise).java.util.List<TestReport.Test>
getTest()
A test executed from the test script.String
getTester()
Name of the tester producing this report (Organization or individual).Reference
getTestScript()
Ideally this is an absolute URL that is used to identify the version-specific TestScript that was executed, matching the `TestScript.url`.boolean
hasChildren()
int
hashCode()
TestReport.Builder
toBuilder()
Create a new Builder from the contents of this Resource-
Methods inherited from class org.linuxforhealth.fhir.model.resource.DomainResource
getContained, getExtension, getModifierExtension, getText
-
Methods inherited from class org.linuxforhealth.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
Identifier
that may be null.
-
getName
public String getName()
A free text natural language name identifying the executed TestScript.- Returns:
- An immutable object of type
String
that may be null.
-
getStatus
public TestReportStatus getStatus()
The current state of this test report.- Returns:
- An immutable object of type
TestReportStatus
that 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
Reference
that is non-null.
-
getResult
public TestReportResult getResult()
The overall result from the execution of the TestScript.- Returns:
- An immutable object of type
TestReportResult
that 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
Decimal
that may be null.
-
getTester
public String getTester()
Name of the tester producing this report (Organization or individual).- Returns:
- An immutable object of type
String
that may be null.
-
getIssued
public DateTime getIssued()
When the TestScript was executed and this TestReport was generated.- Returns:
- An immutable object of type
DateTime
that may be null.
-
getParticipant
public java.util.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.Participant
that 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.Setup
that may be null.
-
getTest
public java.util.List<TestReport.Test> getTest()
A test executed from the test script.- Returns:
- An unmodifiable list containing immutable objects of type
TestReport.Test
that 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.Teardown
that may be null.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildren
in classDomainResource
-
accept
public void accept(java.lang.String elementName, int elementIndex, Visitor visitor)
Description copied from interface:Visitable
Accept 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:
accept
in interfaceVisitable
- Specified by:
accept
in 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
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toBuilder
public TestReport.Builder toBuilder()
Description copied from class:Resource
Create a new Builder from the contents of this Resource- Specified by:
toBuilder
in classDomainResource
-
builder
public static TestReport.Builder builder()
-
-