lib/subscriptions_test_kit/suites/subscriptions_r5_backport_r4_server/handshake_heartbeat/heartbeat_conformance_test.rb
Ruby parses JSON data
SHA-25600a1409db876053b9c8f81c9d159f420b0380938d1513b69b6b5f8285b5059e7
MaleculeH₂(DbOs)
Evidence
10:13… ption %(
11 When a Subscription is created for a REST Hook channel type, the server Server may send notifications of type
12 heartbeat at any time. This test verifies that the incoming heartbeat request is a conformant
13 [R4 Topic-Based Subscription Notification Bundle](https://hl7.org/fhir/uv/subscriptions-backport/STU1.1/StructureDefinition-backport-subscription-notification-r4.html).
14
15 Note that all Subscriptions and the associated Heartbeat notifications received during previously-run tests
⋯4 lines
49:29… st| request.status == 201 }
50 .uniq(&:response_body)
51 .map { |request| JSON.parse(request.response_body) }
52 .select { |subscription| heartbeat_period?(subscription['channel']['extension']) }
53 …