medical_helper 0.0.1
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 +7 -0
- data/lib/medical_helper.rb +25 -0
- metadata +43 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b042eeaccd5885772550763b0d2420f1c69559c8
|
4
|
+
data.tar.gz: '019fdb943d7729fbe9386410fa6536f6100cb8aa'
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: '09764ef79bbf62171893d95ec489cf2068318d3b8fc673f28fe327437c5cb3578224ea79cb884422c3c6bc9f80dd4db1d75e52553bff162fb3d26bf1e3c811c2'
|
7
|
+
data.tar.gz: e263842c1684bbf8dea894ac368569063e66e99e5af9642c8c4ce803403320cc2c0d62b1a1c7bf81ee05aae15df720c2902612bd648689986fce431771b65e81
|
@@ -0,0 +1,25 @@
|
|
1
|
+
class Check
|
2
|
+
def self.runcheck(key_word)
|
3
|
+
if ['Head', 'Spine', 'Leg'].any? {|array| array.include? key_word }
|
4
|
+
return 'Pain Killers'
|
5
|
+
elsif ['Chest Infection', 'Flu'].any? {|array| array.include? key_word }
|
6
|
+
return 'Antibiotics'
|
7
|
+
elsif ['Tonsillitis', 'Sore Throat'].any? {|array| array.include? key_word }
|
8
|
+
return 'Antibiotics'
|
9
|
+
elsif ['Eye Infection', 'Sore Eye'].any? {|array| array.include? key_word }
|
10
|
+
return 'Antibiotics'
|
11
|
+
elsif ['Headache', 'Migraine'].any? {|array| array.include? key_word }
|
12
|
+
return 'Antibiotics then if condition persists return to doctors surgery'
|
13
|
+
elsif ['Chicken Pox', 'Measles'].any? {|array| array.include? key_word }
|
14
|
+
return 'Antibiotics. Also avoid contact with other people for 10 days to avoid spreading infection'
|
15
|
+
elsif ['Back Problems', 'Back Ache'].any? {|array| array.include? key_word }
|
16
|
+
return 'Antibiotics. If pain persists ask for reccommended chiropractors '
|
17
|
+
elsif ['High Blood Pressure'].any? {|array| array.include? key_word }
|
18
|
+
return 'Prescribe wafarin tablets for blood pressure'
|
19
|
+
elsif ['Anxiety', 'Bipolar Disorder', 'Depression'].any? {|array| array.include? key_word }
|
20
|
+
return 'Refer patient to phsychologist'
|
21
|
+
else
|
22
|
+
return 'Invalid input'
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
metadata
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: medical_helper
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- alice5q
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-04-20 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: A simple gem
|
14
|
+
email: obrien.alice@ymail.com
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- lib/medical_helper.rb
|
20
|
+
homepage: http://rubygems.org/gems/medical_helper
|
21
|
+
licenses: []
|
22
|
+
metadata: {}
|
23
|
+
post_install_message:
|
24
|
+
rdoc_options: []
|
25
|
+
require_paths:
|
26
|
+
- lib
|
27
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
28
|
+
requirements:
|
29
|
+
- - ">="
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: '0'
|
32
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
33
|
+
requirements:
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '0'
|
37
|
+
requirements: []
|
38
|
+
rubyforge_project:
|
39
|
+
rubygems_version: 2.6.8
|
40
|
+
signing_key:
|
41
|
+
specification_version: 4
|
42
|
+
summary: Returns suggestions of prescriptions for various health conditions
|
43
|
+
test_files: []
|