Skip to content

Commit

Permalink
Use default validator env var (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
dehall authored May 3, 2024
1 parent 9477217 commit 86bd34a
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 21 deletions.
6 changes: 1 addition & 5 deletions .env.development
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
V311_FHIR_RESOURCE_VALIDATOR_URL=http://localhost/hl7validatorapi
V400_FHIR_RESOURCE_VALIDATOR_URL=http://localhost/hl7validatorapi
V501_FHIR_RESOURCE_VALIDATOR_URL=http://localhost/hl7validatorapi
V610_FHIR_RESOURCE_VALIDATOR_URL=http://localhost/hl7validatorapi
V700_BALLOT_FHIR_RESOURCE_VALIDATOR_URL=http://localhost/hl7validatorapi
FHIR_RESOURCE_VALIDATOR_URL=http://localhost/hl7validatorapi
INFERNO_HOST=http://localhost:4567
REDIS_URL=redis://localhost:6379/0
6 changes: 1 addition & 5 deletions .env.production
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
REDIS_URL=redis://redis:6379/0
INFERNO_HOST=http://localhost
V311_FHIR_RESOURCE_VALIDATOR_URL=http://hl7_validator_service:3500
V400_FHIR_RESOURCE_VALIDATOR_URL=http://hl7_validator_service:3500
V501_FHIR_RESOURCE_VALIDATOR_URL=http://hl7_validator_service:3500
V610_FHIR_RESOURCE_VALIDATOR_URL=http://hl7_validator_service:3500
V700_BALLOT_FHIR_RESOURCE_VALIDATOR_URL=http://hl7_validator_service:3500
FHIR_RESOURCE_VALIDATOR_URL=http://hl7_validator_service:3500
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ services:
volumes:
- ./data:/opt/inferno/data
depends_on:
- validator_service
- hl7_validator_service
# - validator_service
worker:
build:
context: ./
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions lib/us_core_test_kit/generator/suite_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ def title
"US Core #{ig_metadata.ig_version}"
end

def validator_env_name
"#{ig_metadata.reformatted_version.upcase}_FHIR_RESOURCE_VALIDATOR_URL"
end

def ig_identifier
version = ig_metadata.ig_version[1..] # Remove leading 'v'
"hl7.fhir.us.core##{version}"
Expand Down
1 change: 0 additions & 1 deletion lib/us_core_test_kit/generator/templates/suite.rb.erb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ module USCoreTestKit
id :<%= suite_id %>

fhir_resource_validator do
url ENV.fetch('<%= validator_env_name %>', 'http://hl7_validator_service:3500')
igs '<%= ig_identifier %>'
message_filters = VALIDATION_MESSAGE_FILTERS + VERSION_SPECIFIC_MESSAGE_FILTERS

Expand Down

0 comments on commit 86bd34a

Please sign in to comment.