his_emr_api_radiology 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7c1d1c155a1a1285d2458c15fbae855ee83aca7e49030ed2d04010b16616c5b
|
4
|
+
data.tar.gz: 6b8052933808edee6b2578062b17007a6bff6804aea58967cc43ab2b88675a11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
9
|
+
hash['encounters']['radiology examination']['available'] = true
|
10
10
|
hash['encounters']['view radiology results']['available'] = true
|
11
11
|
else
|
12
|
-
hash['encounters']['radiology
|
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 = "/
|
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(
|
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|
|
data/lib/radiology/version.rb
CHANGED
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
|
+
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-
|
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.
|
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
|