Class 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

public class TestCases extends Resource implements org.hl7.fhir.instance.model.api.ICompositeType
A standard format for test cases used throughout the FHIR ecosystem
See Also:
  • Field Details

    • url

      protected UriType url
      An absolute URI that is used to identify test tests.
    • version

      protected StringType version
      The identifier that is used to identify this version of these tests. Version must use SemVer
    • name

      protected StringType 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

      protected UrlType 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

  • 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

      public boolean hasUrlElement()
    • hasUrl

      public boolean 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

      public String getUrl()
      Returns:
      An absolute URI that is used to identify test tests.
    • setUrl

      public TestCases setUrl(String value)
      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

      public boolean hasVersionElement()
    • hasVersion

      public boolean 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

      public String getVersion()
      Returns:
      The identifier that is used to identify this version of these tests. Version must use SemVer
    • setVersion

      public TestCases setVersion(String value)
      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

      public boolean hasNameElement()
    • hasName

      public boolean 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

      public String 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

      public TestCases setName(String value)
      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

      public boolean hasDescriptionElement()
    • hasDescription

      public boolean 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

      public boolean hasRunnerElement()
    • hasRunner

      public boolean 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

      public String getRunner()
      Returns:
      URL of documentation that explains how a runner would read these tests, and use them to actually test out a tool.
    • setRunner

      public TestCases setRunner(String value)
      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:
      invalid reference
      #mode
      (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))
    • setModeList

      Returns:
      Returns a reference to this for easy method chaining
    • hasMode

      public boolean hasMode()
    • addMode

    • getSuiteList

      Returns:
      invalid reference
      #suite
      (A suite of tests that all share a common set up, and can be executed as a group)
    • setSuiteList

      Returns:
      Returns a reference to this for easy method chaining
    • hasSuite

      public boolean hasSuite()
    • addSuite

    • listChildren

      protected void listChildren(List<Property> children)
      Overrides:
      listChildren in class Resource
    • getNamedProperty

      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getNamedProperty in class Resource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • getProperty

      public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getProperty in class Resource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • setProperty

      public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty in class Resource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • setProperty

      public Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty in class Resource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • makeProperty

      public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      makeProperty in class Resource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • getTypesForProperty

      public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getTypesForProperty in class Resource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • addChild

      public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      addChild in class Resource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • fhirType

      public String fhirType()
      Specified by:
      fhirType in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      fhirType in class Resource
      Returns:
      the FHIR type name of the instance (not the java class name)
    • copy

      public TestCases copy()
      Specified by:
      copy in class Resource
    • copyValues

      public void copyValues(TestCases dst)
    • typedCopy

      protected TestCases typedCopy()
    • equalsDeep

      public boolean equalsDeep(Base other_)
      Overrides:
      equalsDeep in class Resource
    • equalsShallow

      public boolean equalsShallow(Base other_)
      Overrides:
      equalsShallow in class Resource
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      isEmpty in class Resource
    • getResourceType

      Specified by:
      getResourceType in class Resource
    • getCustomResourceName