Class: DaVinciCRDTestKit::ClientFHIRApiValidationTest

Inherits:
Inferno::Test
  • Object
show all
Defined in:
lib/davinci_crd_test_kit/client_tests/client_fhir_api_validation_test.rb

Instance Method Summary collapse

Instance Method Details

#profile_urlObject



27
28
29
# File 'lib/davinci_crd_test_kit/client_tests/client_fhir_api_validation_test.rb', line 27

def profile_url
  structure_definition_map[resource_type]
end

#resource_typeObject



10
11
12
# File 'lib/davinci_crd_test_kit/client_tests/client_fhir_api_validation_test.rb', line 10

def resource_type
  config.options[:resource_type]
end

#structure_definition_mapObject



14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/davinci_crd_test_kit/client_tests/client_fhir_api_validation_test.rb', line 14

def structure_definition_map
  {
    'Practitioner' => 'http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-practitioner',
    'PractitionerRole' => 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitionerrole',
    'Patient' => 'http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-patient',
    'Encounter' => 'http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-encounter',
    'Coverage' => 'http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-coverage',
    'Device' => 'http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-device',
    'Location' => 'http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-location',
    'Organization' => 'http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-organization'
  }.freeze
end