class Crucible::Tests::ConnectathonGenomicsTrackTest
Public Class Methods
new(client1, client2=nil)
click to toggle source
Calls superclass method
Crucible::Tests::BaseTest::new
# File lib/tests/suites/connectathon_genomics_track_test.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_genomics_track_test.rb, line 9 def description 'Genomic data are of increasing importance to clinical care and secondary analysis. FHIR Genomics consists of the Sequence resource and several profiles built on top of existing FHIR resources.' end
id()
click to toggle source
# File lib/tests/suites/connectathon_genomics_track_test.rb, line 5 def id 'ConnectathonGenomicsTrackTest' end
setup()
click to toggle source
# File lib/tests/suites/connectathon_genomics_track_test.rb, line 19 def setup @resources = Crucible::Generator::Resources.new @records = {} patient = @resources.load_fixture("patient/patient-register-create.xml") practitioner = @resources.load_fixture("practitioner/practitioner-register-create.xml") create_object(patient, :patient) create_object(practitioner, :practitioner) end
teardown()
click to toggle source
# File lib/tests/suites/connectathon_genomics_track_test.rb, line 30 def teardown @records.each_value do |value| @client.destroy(value.class, value.id) end end
Private Instance Methods
create_object(obj, obj_sym)
click to toggle source
# File lib/tests/suites/connectathon_genomics_track_test.rb, line 243 def create_object(obj, obj_sym) reply = @client.create obj assert_response_ok(reply) obj.id = reply.id @records[obj_sym] = obj warning { assert_valid_resource_content_type_present(reply) } warning { assert_valid_content_location_present(reply) } end