Class 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)

    • 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.
      • 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 interface Visitable
        Specified by:
        accept in class AbstractVisitable
        Parameters:
        elementName - the name of the element in the context of this visit
        elementIndex - the index of the element in a list or -1 if it is not contained within a List
        visitor - the visitor to use
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object