class Crucible::Tests::DataAccessFrameworkProfilesTest
Public Class Methods
new(client1, client2=nil)
click to toggle source
Calls superclass method
Crucible::Tests::BaseTest::new
# File lib/tests/suites/daf_profiles_test.rb, line 13 def initialize(client1, client2=nil) super(client1, client2) @tags.append('argonaut') @tags.append('connectathon') @category = {id: 'core_functionality', title: 'Core Functionality'} end
Public Instance Methods
description()
click to toggle source
# File lib/tests/suites/daf_profiles_test.rb, line 9 def description 'Test support for the U.S. Data Access Framework (DAF) Implementation Guide' end
id()
click to toggle source
# File lib/tests/suites/daf_profiles_test.rb, line 5 def id 'DataAccessFrameworkProfilesTest' end
setup()
click to toggle source
# File lib/tests/suites/daf_profiles_test.rb, line 20 def setup @server_side_resources = {} @resources = Crucible::Generator::Resources.new @daf_conformance = @resources.daf_conformance # Try to create a DAF patient on the server. # This will facilitate SEARCH testing, if it succeeds. # Do not assert that the creation worked, because CREATE is *not* # required by DAF. This is a read-only test. @daf_patient = Crucible::Tests::DAFResourceGenerator.daf_patient reply = @client.create(@daf_patient) @daf_patient.id = reply.id if !reply.id.nil? # assert_response_created(reply) end
teardown()
click to toggle source
# File lib/tests/suites/daf_profiles_test.rb, line 35 def teardown # delete resources @client.destroy(FHIR::Patient, @daf_patient.id) if @daf_patient && !@daf_patient.id.nil? end