Class: Inferno::Terminology::Tasks::DownloadFHIRTerminology

Inherits:
Object
  • Object
show all
Defined in:
lib/inferno/terminology/tasks/download_fhir_terminology.rb

Instance Method Summary collapse

Instance Method Details

#download_fhir_expansionsObject



28
29
30
# File 'lib/inferno/terminology/tasks/download_fhir_terminology.rb', line 28

def download_fhir_expansions
  FHIRPackageManager.get_package('hl7.fhir.r4.expansions#4.0.1', PACKAGE_DIR, ['ValueSet', 'CodeSystem'])
end

#download_fhir_r4Object



13
14
15
# File 'lib/inferno/terminology/tasks/download_fhir_terminology.rb', line 13

def download_fhir_r4
  FHIRPackageManager.get_package('hl7.fhir.r4.core#4.0.1', PACKAGE_DIR, ['ValueSet', 'CodeSystem'])
end

#download_us_coreObject



17
18
19
20
21
22
23
24
25
26
# File 'lib/inferno/terminology/tasks/download_fhir_terminology.rb', line 17

def download_us_core
  FHIRPackageManager.get_package('hl7.fhir.us.core#3.1.1', PACKAGE_DIR, ['ValueSet', 'CodeSystem'])
  FHIRPackageManager.get_package('hl7.fhir.us.core#4.0.0', PACKAGE_DIR, ['ValueSet', 'CodeSystem'])
  FHIRPackageManager.get_package('hl7.fhir.us.core#5.0.1', PACKAGE_DIR, ['ValueSet', 'CodeSystem'])
  FHIRPackageManager.get_package('hl7.fhir.us.core#6.1.0', PACKAGE_DIR, ['ValueSet', 'CodeSystem'])
  FHIRPackageManager.get_package('hl7.fhir.us.core#7.0.0', PACKAGE_DIR, ['ValueSet', 'CodeSystem'])
  FHIRPackageManager.get_package(
    'us.nlm.vsac#0.18.0', File.join(PACKAGE_DIR, 'vsac'), ['ValueSet', 'CodeSystem']
  )
end

#runObject



5
6
7
8
9
10
11
# File 'lib/inferno/terminology/tasks/download_fhir_terminology.rb', line 5

def run
  FileUtils.mkdir_p PACKAGE_DIR

  download_fhir_r4
  download_fhir_expansions
  download_us_core
end