Sha256: f2217ff2b8b09004f4773de1aadf9c03283b72d2b2ef195f151c709881b55b1f
Contents?: true
Size: 1.02 KB
Versions: 4
Compression:
Stored size: 1.02 KB
Contents
require 'json' require_relative './version' module UDSPlusTestKit class ValidateDiagnosisTest < Inferno::Test id :uds_plus_validate_diagnosis_test title 'Validate UDS+ Diagnosis Data' description %( Test takes the Diagnosis 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['Condition'] ||= [] end run do omit_if data_to_test.empty?, "No data of this type was identified." profile_definition = 'http://fhir.org/guides/hrsa/uds-plus/StructureDefinition/uds-plus-diagnosis' 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
4 entries across 4 versions & 1 rubygems