Sha256: 9e5e6b625d4df4e249b48078534da83b841c6eed0f45b0997214e30a69660a22
Contents?: true
Size: 1.02 KB
Versions: 9
Compression:
Stored size: 1.02 KB
Contents
require 'json' require_relative './version' module UDSPlusTestKit class ValidateProcedureTest < Inferno::Test id :uds_plus_validate_procedure_test title 'Validate UDS+ Procedure Data' description %( Test takes the Procedure resources identified by the import manifest, and validates whether they conform to their UDS+ Structure Definitions. ) def data_scratch scratch[:data_resources] ||= {} end def data_to_test data_scratch['Procedure'] ||= [] end run do omit_if data_to_test.empty?, "No data of this type was identified." profile_definition = 'http://hl7.org/fhir/us/uds-plus/StructureDefinition/uds-plus-procedure' profile_with_version = "#{profile_definition}|#{UDS_PLUS_VERSION}" data_to_test.each do |resource| assert_valid_resource(resource: resource, profile_url: profile_with_version) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems