Class: Inferno::Terminology::Tasks::DownloadFHIRTerminology
- Inherits:
-
Object
- Object
- Inferno::Terminology::Tasks::DownloadFHIRTerminology
- Defined in:
- lib/inferno/terminology/tasks/download_fhir_terminology.rb
Instance Method Summary collapse
- #download_fhir_expansions ⇒ Object
- #download_fhir_r4 ⇒ Object
- #download_us_core ⇒ Object
- #run ⇒ Object
Instance Method Details
#download_fhir_expansions ⇒ Object
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_r4 ⇒ Object
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_core ⇒ Object
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 |
#run ⇒ Object
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 |