class CancerPathologyDataSharingTestKit::ContentBundleValidationTest
def add_to_scratch(bundles_array)
def add_to_scratch(bundles_array) scratch[:cpds_resources] ||= {} scratch[:cpds_exchange_bundles] ||= [] bundles_array.each do |report| bundle = FHIR.from_contents(report.to_json) assert_resource_type('Bundle', resource: bundle) bundle_id = bundle.id scratch[:cpds_exchange_bundles] << bundle scratch[:cpds_resources][bundle_id] = parse_bundle(bundle) end end
def resource_type
def resource_type 'Bundle' end