Module: ONCCertificationG10TestKit::AllResources

Included in:
BulkExportValidationTester
Defined in:
lib/onc_certification_g10_test_kit/all_resources.rb

Overview

For USCDI v4 / US Core v7.0.0, these resource types are added:

  • Location

Constant Summary collapse

ALL_RESOURCES =
[
  'AllergyIntolerance',
  'CarePlan',
  'CareTeam',
  'Condition',
  'Device',
  'DiagnosticReport',
  'DocumentReference',
  'Encounter',
  'Goal',
  'Immunization',
  'MedicationRequest',
  'Observation',
  'Organization',
  'Procedure',
  'Patient',
  'Practitioner',
  'Provenance'
].freeze
V5_ALL_RESOURCES =
(ALL_RESOURCES + ['RelatedPerson', 'ServiceRequest']).freeze
V6_ALL_RESOURCES =
(V5_ALL_RESOURCES + ['Coverage', 'MedicationDispense', 'Specimen']).freeze
V7_ALL_RESOURCES =
(V6_ALL_RESOURCES + ['Location']).freeze

Instance Method Summary collapse

Instance Method Details

#all_required_resourcesObject



64
65
66
67
68
69
70
71
72
# File 'lib/onc_certification_g10_test_kit/all_resources.rb', line 64

def all_required_resources
  return V5_ALL_RESOURCES if using_us_core_5?

  return V6_ALL_RESOURCES if using_us_core_6?

  return V7_ALL_RESOURCES if using_us_core_7?

  ALL_RESOURCES
end