Sha256: edf21d40d52854d0d5c96f9082026163914781239595dee9b18fd9be886f4dfe
Contents?: true
Size: 1.07 KB
Versions: 4
Compression:
Stored size: 1.07 KB
Contents
require 'json' require_relative './version' module UDSPlusTestKit class ValidateMedicationRequestTest < Inferno::Test id :uds_plus_validate_medication_request_test title 'Validate UDS+ Medication Request Data' description %( Test takes the Medication Request 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['MedicationRequest'] ||= [] 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-medicationrequest' 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