class Crucible::Tests::ConnectathonPatchTrackTest
Public Class Methods
new(client1, client2=nil)
click to toggle source
Calls superclass method
Crucible::Tests::BaseTest::new
# File lib/tests/suites/connectathon_patch_track.rb, line 13 def initialize(client1, client2=nil) super(client1, client2) @tags.append('connectathon') @category = {id: 'connectathon', title: 'Connectathon'} end
Public Instance Methods
description()
click to toggle source
# File lib/tests/suites/connectathon_patch_track.rb, line 9 def description 'Connectathon PATCH Test.' end
id()
click to toggle source
# File lib/tests/suites/connectathon_patch_track.rb, line 5 def id 'ConnectathonPatchTrackTest' end
resource_format(f)
click to toggle source
# File lib/tests/suites/connectathon_patch_track.rb, line 119 def resource_format(f) "FHIR::Formats::ResourceFormat::RESOURCE_#{f}".constantize end
setup()
click to toggle source
# File lib/tests/suites/connectathon_patch_track.rb, line 19 def setup @medication_order = Crucible::Generator::Resources.new.medicationorder_simple @medication_order.id = nil # clear the identifier, in case the server checks for duplicates @medication_order.identifier = nil # clear the identifier, in case the server checks for duplicates reply = @client.create(@medication_order) assert_response_ok(reply) @medication_order_id = reply.id end
teardown()
click to toggle source
# File lib/tests/suites/connectathon_patch_track.rb, line 30 def teardown @client.destroy(FHIR::MedicationRequest, @medication_order_id) unless @medication_order_id.nil? end