Sha256: 088b3895e0827f1238b55dab3adb9e971ede91ee20fbeb95c6e662e02a1b39b0
Contents?: true
Size: 1.02 KB
Versions: 9
Compression:
Stored size: 1.02 KB
Contents
require 'json' require_relative './version' module UDSPlusTestKit class ValidatePatientTest < Inferno::Test id :uds_plus_validate_patient_test title 'Validate UDS+ Patient Data' description %( Test takes the Patient 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['Patient'] ||= [] 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-patient' 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