Sha256: a925d4ba4993557d93dcc1f28c89ee159c0c171af98f47361ca5b08967fdc3ab
Contents?: true
Size: 1.01 KB
Versions: 4
Compression:
Stored size: 1.01 KB
Contents
require 'json' require_relative '../version' module UDSPlusTestKit class ValidateManifestTest < Inferno::Test id :uds_plus_validate_manifest_test title 'Validate UDS+ Import Manifest' description %( Test takes the resource generated by the prior test, and validates whether the resource conforms to the UDS+ Import Manifest Structure Definition. ) def manifest_scratch scratch[:manifest_resources] ||= {} end def manifest_resources manifest_scratch[:all] ||= [] end run do omit_if manifest_resources.empty?, "No data of this type was identified." profile_definition = "http://fhir.org/guides/hrsa/uds-plus/StructureDefinition/uds-plus-import-manifest" profile_with_version = "#{profile_definition}|#{UDS_PLUS_VERSION}" assert_valid_resource(resource: manifest_resources.first, profile_url: profile_with_version) end end end
Version data entries
4 entries across 4 versions & 1 rubygems