Skip to content

Commit

Permalink
Update fhir package manager to use package2 url for updated vsac package
Browse files Browse the repository at this point in the history
  • Loading branch information
emichaud998 committed Oct 4, 2024
1 parent 64ea253 commit e83ade1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/inferno/terminology/fhir_package_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module FHIRPackageManager
class << self
REGISTRY_SERVER_URL = 'https://packages.fhir.org'.freeze
US_CORE_7_PACKAGE_URL = 'https://hl7.org/fhir/us/core/STU7/package.tgz'.freeze
VSAC_18_PACKAGE_URL = 'https://packages2.fhir.org/packages/us.nlm.vsac/0.18.0'.freeze
REQUIRED_VSAC_VALUE_SET_URLS = [
'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.836',
'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.1.11.14914',
Expand Down Expand Up @@ -45,8 +46,11 @@ class << self
#
# @param [String] package The FHIR Package
def get_package(package, destination, desired_types = [])
package_url = if package == 'hl7.fhir.us.core#7.0.0'
package_url = case package
when 'hl7.fhir.us.core#7.0.0'
US_CORE_7_PACKAGE_URL
when 'us.nlm.vsac#0.18.0'
VSAC_18_PACKAGE_URL
else
package
.split('#')
Expand Down

0 comments on commit e83ade1

Please sign in to comment.