Finance and Insurance Service (FAIS)
1.0.1-current - ci-build International flag

Finance and Insurance Service (FAIS), published by IHE IT Infrastructure Technical Committee. This guide is not an authorized publication; it is the continuous build for version 1.0.1-current built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/IHE/ITI.Finance/ and changes regularly. See the Directory of published versions

Binary: Testing Feature File for ITI 121

    
Feature: Test ITI-121 Transaction: Query Insurance Plan

  Background:
    * url 'http://localhost/fhir'
    * def planresource read('InsurancePlan-ex-insuranceplan-1.json')

  Rule: Search Insurance Plan Request and Response Messages initiated from a Beneficiary Requestor to a Beneficiary Manager

    Scenario: Search for an Insurance Plan

      Given path 'InsurancePlan'
      And request { type: 'medical' }
      When method get
      Then status 200
      And match $.resourceType = 'Bundle'
      And match $.type = 'searchset'
      And match $.entry contains planresource

  Rule: Read Insurance Plan Request and Response Messages initiated from a Beneficiary Requestor to a Beneficiary Manager

    Scenario: Request an Insurance Plan resource 

      Given path 'InsurancePlan/ex-insuranceplan-1'
      When method get
      Then status 200
      And match $.resourceType == 'InsurancePlan'
      And match $.status == "active"
      And match $.name = "National Health Insurance Scheme"