Class: SubscriptionsTestKit::SubscriptionsR5BackportR4Server::RejectSubscriptionsTest

Inherits:
Inferno::Test
  • Object
show all
Includes:
SubscriptionCreation
Defined in:
lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/subscription_rejection/reject_subscriptions_test.rb

Instance Method Summary collapse

Methods included from SubscriptionCreation

#get_new_subscription_value, #json_parse, #no_error_verification, #send_subscription, #send_unsupported_subscription, #subscription_payload_type

Instance Method Details

#unsupported_subscriptionsObject



80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# File 'lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/subscription_rejection/reject_subscriptions_test.rb', line 80

def unsupported_subscriptions
  [
    {
      'unsupported_title' => 'cross-version extensions',
      'field_path' => ['_criteria'],
      'field_value' => { 'extension' => [{
        url: 'http://hl7.org/fhir/5.0/subscriptions-backport/StructureDefinition/backport-filter-criteria',
        valueString: 'Encounter?patient=Patient/123'
      }] }
    },
    {
      'unsupported_title' => 'unsupported `SubscriptionTopic`',
      'field_path' => ['criteria'],
      'field_value' => unsupported_subscription_topic
    },
    {
      'unsupported_title' => 'unsupported filter criteria',
      'field_path' => ['_criteria'],
      'field_value' => if unsupported_subscription_filter.nil?
                         unsupported_subscription_filter
                       else
                         { 'extension' => [{
                           url: 'http://hl7.org/fhir/uv/subscriptions-backport/StructureDefinition/backport-filter-criteria',
                           valueString: unsupported_subscription_filter
                         }] }
                       end
    },
    {
      'unsupported_title' => 'unsupported channel type',
      'field_path' => ['channel', 'type'],
      'field_value' => unsupported_subscription_channel_type
    },
    {
      'unsupported_title' => 'unsupported channel URL',
      'field_path' => ['channel', 'endpoint'],
      'field_value' => unsupported_subscription_channel_endpoint
    },
    {
      'unsupported_title' => 'unsupported channel type',
      'field_path' => ['channel', 'type'],
      'field_value' => unsupported_subscription_channel_type
    },
    {
      'unsupported_title' => 'unsupported payload type',
      'field_path' => ['channel', 'payload'],
      'field_value' => unsupported_subscription_payload_type
    }
  ]
end