Sha256: 72bf2e7fbc0c7ff34bbb664f0a40fb47bca5fa0fdf34574c4a1ab7db4214a918
Contents?: true
Size: 1.06 KB
Versions: 7
Compression:
Stored size: 1.06 KB
Contents
require 'json' require_relative './version' module UDSPlusTestKit class ValidateRelatedPersonTest < Inferno::Test id :uds_plus_validate_related_person_test title 'Validate UDS+ Related Person Data' description %( Test takes the Related Person 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['RelatedPerson'] ||= [] 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/de-identified-uds-plus-relatedperson' 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
7 entries across 7 versions & 1 rubygems