Module: USCoreTestKit::Client::Generator::Naming
- Defined in:
- lib/us_core_test_kit/client/generator/naming.rb
Constant Summary collapse
- ID_SPECIAL_CASE =
{ # v3.1.1 profile naming mismatches 'condition' => 'condition-encounter-diagnosis', 'head-circumference' => 'head-circumference-percentile', 'bodyheight' => 'body-height', 'bodytemp' => 'body-temperature', 'bp' => 'blood-pressure', 'bodyweight' => 'body-weight', 'heartrate' => 'heart-rate', 'resprate' => 'respiratory-rate' }.freeze
Class Method Summary collapse
Class Method Details
.instance_id_for_profile_identifier(profile_identifier) ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/us_core_test_kit/client/generator/naming.rb', line 18 def instance_id_for_profile_identifier(profile_identifier) suffix = profile_identifier.underscore.dasherize if ID_SPECIAL_CASE.key?(suffix) suffix = ID_SPECIAL_CASE[suffix] end "us-core-client-tests-#{suffix}" end |