Class TestScript

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 TestScript extends DomainResource
TestScript is a resource that specifies a suite of tests against a FHIR server implementation to determine compliance against the FHIR specification.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getUrlElement

      Returns:
      url (An absolute URL that is used to identify this Test Script. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this Test Script is (or will be) published.). 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 URL that is used to identify this Test Script. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this Test Script is (or will be) published.). 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 URL that is used to identify this Test Script. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this Test Script is (or will be) published.
    • setUrl

      public TestScript setUrl(String value)
      Parameters:
      value - An absolute URL that is used to identify this Test Script. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this Test Script is (or will be) published.
    • getVersionElement

      Returns:
      version (The identifier that is used to identify this version of the TestScript. This is an arbitrary value managed by the TestScript author manually.). 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 the TestScript. This is an arbitrary value managed by the TestScript author manually.). 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 the TestScript. This is an arbitrary value managed by the TestScript author manually.
    • setVersion

      public TestScript setVersion(String value)
      Parameters:
      value - The identifier that is used to identify this version of the TestScript. This is an arbitrary value managed by the TestScript author manually.
    • getNameElement

      Returns:
      name (A free text natural language name identifying the 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

      Parameters:
      value - name (A free text natural language name identifying the 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 TestScript.
    • setName

      public TestScript setName(String value)
      Parameters:
      value - A free text natural language name identifying the TestScript.
    • getStatusElement

      Returns:
      status (The status of the TestScript.). 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

      Parameters:
      value - status (The status of the TestScript.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
    • getStatus

      Returns:
      The status of the TestScript.
    • setStatus

      Parameters:
      value - The status of the TestScript.
    • getIdentifier

      Returns:
      identifier (Identifier for the TestScript assigned for external purposes outside the context of FHIR.)
    • hasIdentifier

      public boolean hasIdentifier()
    • setIdentifier

      Parameters:
      value - identifier (Identifier for the TestScript assigned for external purposes outside the context of FHIR.)
    • getExperimentalElement

      Returns:
      experimental (This TestScript was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value
    • hasExperimentalElement

      public boolean hasExperimentalElement()
    • hasExperimental

      public boolean hasExperimental()
    • setExperimentalElement

      Parameters:
      value - experimental (This TestScript was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value
    • getExperimental

      public boolean getExperimental()
      Returns:
      This TestScript was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.
    • setExperimental

      public TestScript setExperimental(boolean value)
      Parameters:
      value - This TestScript was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.
    • getPublisherElement

      Returns:
      publisher (The name of the individual or organization that published the Test Script.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value
    • hasPublisherElement

      public boolean hasPublisherElement()
    • hasPublisher

      public boolean hasPublisher()
    • setPublisherElement

      Parameters:
      value - publisher (The name of the individual or organization that published the Test Script.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value
    • getPublisher

      public String getPublisher()
      Returns:
      The name of the individual or organization that published the Test Script.
    • setPublisher

      public TestScript setPublisher(String value)
      Parameters:
      value - The name of the individual or organization that published the Test Script.
    • getContact

      Returns:
      contact (Contacts to assist a user in finding and communicating with the publisher.)
    • hasContact

      public boolean hasContact()
    • addContact

      Returns:
      contact (Contacts to assist a user in finding and communicating with the publisher.)
    • addContact

    • getDateElement

      Returns:
      date (The date this version of the test tcript was published. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the test cases change.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
    • hasDateElement

      public boolean hasDateElement()
    • hasDate

      public boolean hasDate()
    • setDateElement

      Parameters:
      value - date (The date this version of the test tcript was published. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the test cases change.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
    • getDate

      public Date getDate()
      Returns:
      The date this version of the test tcript was published. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the test cases change.
    • setDate

      public TestScript setDate(Date value)
      Parameters:
      value - The date this version of the test tcript was published. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the test cases change.
    • getDescriptionElement

      Returns:
      description (A free text natural language description of the TestScript and its use.). 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 (A free text natural language description of the TestScript and its use.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
    • getDescription

      Returns:
      A free text natural language description of the TestScript and its use.
    • setDescription

      Parameters:
      value - A free text natural language description of the TestScript and its use.
    • getUseContext

      Returns:
      useContext (The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of Test Scripts.)
    • hasUseContext

      public boolean hasUseContext()
    • addUseContext

      Returns:
      useContext (The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of Test Scripts.)
    • addUseContext

    • getRequirementsElement

      Returns:
      requirements (Explains why this Test Script is needed and why it's been constrained as it has.). This is the underlying object with id, value and extensions. The accessor "getRequirements" gives direct access to the value
    • hasRequirementsElement

      public boolean hasRequirementsElement()
    • hasRequirements

      public boolean hasRequirements()
    • setRequirementsElement

      Parameters:
      value - requirements (Explains why this Test Script is needed and why it's been constrained as it has.). This is the underlying object with id, value and extensions. The accessor "getRequirements" gives direct access to the value
    • getRequirements

      Returns:
      Explains why this Test Script is needed and why it's been constrained as it has.
    • setRequirements

      Parameters:
      value - Explains why this Test Script is needed and why it's been constrained as it has.
    • getCopyrightElement

      Returns:
      copyright (A copyright statement relating to the Test Script and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the details of the constraints and mappings.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value
    • hasCopyrightElement

      public boolean hasCopyrightElement()
    • hasCopyright

      public boolean hasCopyright()
    • setCopyrightElement

      Parameters:
      value - copyright (A copyright statement relating to the Test Script and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the details of the constraints and mappings.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value
    • getCopyright

      public String getCopyright()
      Returns:
      A copyright statement relating to the Test Script and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the details of the constraints and mappings.
    • setCopyright

      public TestScript setCopyright(String value)
      Parameters:
      value - A copyright statement relating to the Test Script and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the details of the constraints and mappings.
    • getMetadata

      Returns:
      metadata (The required capability must exist and are assumed to function correctly on the FHIR server being tested.)
    • hasMetadata

      public boolean hasMetadata()
    • setMetadata

      Parameters:
      value - metadata (The required capability must exist and are assumed to function correctly on the FHIR server being tested.)
    • getMultiserverElement

      Returns:
      multiserver (If the tests apply to more than one FHIR server (e.g. cross-server interoperability tests) then multiserver=true. Defaults to false if value is unspecified.). This is the underlying object with id, value and extensions. The accessor "getMultiserver" gives direct access to the value
    • hasMultiserverElement

      public boolean hasMultiserverElement()
    • hasMultiserver

      public boolean hasMultiserver()
    • setMultiserverElement

      Parameters:
      value - multiserver (If the tests apply to more than one FHIR server (e.g. cross-server interoperability tests) then multiserver=true. Defaults to false if value is unspecified.). This is the underlying object with id, value and extensions. The accessor "getMultiserver" gives direct access to the value
    • getMultiserver

      public boolean getMultiserver()
      Returns:
      If the tests apply to more than one FHIR server (e.g. cross-server interoperability tests) then multiserver=true. Defaults to false if value is unspecified.
    • setMultiserver

      public TestScript setMultiserver(boolean value)
      Parameters:
      value - If the tests apply to more than one FHIR server (e.g. cross-server interoperability tests) then multiserver=true. Defaults to false if value is unspecified.
    • getFixture

      Returns:
      fixture (Fixture in the test script - by reference (uri). All fixtures are required for the test script to execute.)
    • hasFixture

      public boolean hasFixture()
    • addFixture

      Returns:
      fixture (Fixture in the test script - by reference (uri). All fixtures are required for the test script to execute.)
    • addFixture

    • getProfile

      Returns:
      profile (Reference to the profile to be used for validation.)
    • hasProfile

      public boolean hasProfile()
    • addProfile

      Returns:
      profile (Reference to the profile to be used for validation.)
    • addProfile

    • getProfileTarget

      Returns:
      profile (The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. Reference to the profile to be used for validation.)
    • getVariable

      Returns:
      variable (Variable is set based either on element value in response body or on header field value in the response headers.)
    • hasVariable

      public boolean hasVariable()
    • addVariable

      Returns:
      variable (Variable is set based either on element value in response body or on header field value in the response headers.)
    • addVariable

    • getSetup

      Returns:
      setup (A series of required setup operations before tests are executed.)
    • hasSetup

      public boolean hasSetup()
    • setSetup

      Parameters:
      value - setup (A series of required setup operations before tests are executed.)
    • getTest

      Returns:
      test (A test in this script.)
    • hasTest

      public boolean hasTest()
    • addTest

      Returns:
      test (A test in this script.)
    • addTest

    • getTeardown

      Returns:
      teardown (A series of operations required to clean up after the all the tests are executed (successfully or otherwise).)
    • hasTeardown

      public boolean hasTeardown()
    • setTeardown

      Parameters:
      value - teardown (A series of operations required to clean up after the all the tests are executed (successfully or otherwise).)
    • listChildren

      protected void listChildren(List<Property> childrenList)
      Overrides:
      listChildren in class DomainResource
    • setProperty

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

      public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      addChild in class DomainResource
      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 DomainResource
    • copy

      public TestScript copy()
      Specified by:
      copy in class DomainResource
    • typedCopy

      protected TestScript typedCopy()
    • equalsDeep

      public boolean equalsDeep(Base other)
      Overrides:
      equalsDeep in class DomainResource
    • equalsShallow

      public boolean equalsShallow(Base other)
      Overrides:
      equalsShallow in class DomainResource
    • isEmpty

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

      Specified by:
      getResourceType in class Resource