his_emr_api_radiology 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8214d31d1276a6d3c5d3ebaa34c14cda0255504ab82f6d81cd48622e0b2f4dcc
4
- data.tar.gz: a60decd48b485bbb51f91b71334bb650c3047095ef3334c94f5545c0bdcf59c6
3
+ metadata.gz: f7c1d1c155a1a1285d2458c15fbae855ee83aca7e49030ed2d04010b16616c5b
4
+ data.tar.gz: 6b8052933808edee6b2578062b17007a6bff6804aea58967cc43ab2b88675a11
5
5
  SHA512:
6
- metadata.gz: bae8fd55d81ef2197be5ec7f8b8d89016db0a97011c029cb006ed3c6feaa8da02729aa011226e549f49fdb5fcec1f42dc23d66c3b76b75e6bf2900cc277eeae9
7
- data.tar.gz: ed43d77c897d905553cf23819ea1bcfaa64944ac675ecc3048f570a63adbc4a5517fb5358933b58c166b73b84914f00a4e3acad0f4d7424f14b516dd218372c1
6
+ metadata.gz: 22df182d9fb059179f2dee8badb3b29c6a369e59fe96a8661a18c052c773c142a519cf1458b41b7750cb6e5f3061f2805f054dd21da27be3fbd8260cebe1f60f
7
+ data.tar.gz: 6efed6e276de1c8e99359740e2e58a508792158536606b78603d14b1b0dc90aede8d28c12fff7e439438c862eb7290c94bf875c164e4ae0baf895fe945ddd57b
@@ -6,10 +6,10 @@ class Radiology::RadiologyPropertiesController < ::ApplicationController
6
6
  file = File.read path
7
7
  hash = JSON.parse file
8
8
  if value == 'true'
9
- hash['encounters']['radiology orders']['available'] = true
9
+ hash['encounters']['radiology examination']['available'] = true
10
10
  hash['encounters']['view radiology results']['available'] = true
11
11
  else
12
- hash['encounters']['radiology orders']['available'] = false
12
+ hash['encounters']['radiology examination']['available'] = false
13
13
  hash['encounters']['view radiology results']['available'] = false
14
14
  end
15
15
  File.open path , "w" do |f|
@@ -15,7 +15,7 @@ module Radiology
15
15
  end
16
16
 
17
17
 
18
- sample_file_path = "/var/www/BHT-EMR-API/config/sample.msi"
18
+ sample_file_path = "#{Rails.root}/config/sample.msi"
19
19
  save_file_path = "/tmp/#{patient_details[:accession_number] }_#{patient_details[:patient_name].gsub(' ', '_')}_scheduled_radiology.msi"
20
20
 
21
21
  # using eval() might decrease performance, not sure if there's a better way to do this.
@@ -29,7 +29,7 @@ module Radiology
29
29
 
30
30
  # send created msi file to ftp server
31
31
  def send_scheduled_msi(file_path)
32
- main_config = YAML.load_file('/var/www/BHT-EMR-API/config/application.yml')
32
+ main_config = YAML.load_file("#{Rails.root}/config/application.yml")
33
33
  # connect with FTP server
34
34
  # NOTE: main_config[:ftp_host], main_config[:ftp_user_name], main_config[:ftp_pw] is in application.yml file.
35
35
  Net::FTP.open(main_config['ftp_host']) do |ftp|
@@ -1,3 +1,3 @@
1
1
  module Radiology
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: his_emr_api_radiology
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - petros
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-10 00:00:00.000000000 Z
11
+ date: 2021-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -249,7 +249,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
249
249
  - !ruby/object:Gem::Version
250
250
  version: '0'
251
251
  requirements: []
252
- rubygems_version: 3.2.16
252
+ rubygems_version: 3.2.20
253
253
  signing_key:
254
254
  specification_version: 4
255
255
  summary: Radiology extension for the HIS-EMR-API