Finance and Insurance Service (FAIS)
1.0.0-comment - ballot International flag

This page is part of the IHE ITI Finance and Insurance Services (v1.0.0-comment: Publication Ballot 1) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version. For a full list of available versions, see the Directory of published versions

Binary: Testing Feature File for ITI YY8

    
Feature: Test ITI-YY8 Transaction: Cancel Claim
  Background:
    * url 'http://localhost/fhir'

  Rule: Cancel Claim Request and Response Messages initiated from a Claims Requestor to a Claims Manager

    Scenario: Cancel Claim without referenced content

      Given path 'Claim/ex-claim-3/$cancel'
      When method get
      Then status 200
      And match $.resourceType = "ClaimResponse"
      And match $ contains status
      And match $ contains request
      And match $ contains outcome

    Scenario: Cancel Claim with referenced content in a bundle

      Given path 'Claim/ex-claim-3/$cancel'
      When method get
      Then status 200
      And match $.resourceType == "Bundle"
      And match $.type == "collection"
      And match contains $.entry[?(@.resourceType == 'ClaimResponse' && @.status && @.request && @.outcome)]