hospital_gem 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/hospital_gem.rb +14 -0
  3. metadata +44 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 159d9d4ab8a073b399393c3c80ba6f54605deb43
4
+ data.tar.gz: d3e8ddbfbb609af7a85bde980218504526a13123
5
+ SHA512:
6
+ metadata.gz: 64379eae0abdd17e380f7a4ff3765eafbb0f26f3830f2472b66db80b28a61acf934189c587f1db008508c101a66d18a23e16da470962a81397b5cb6f08ae7eb7
7
+ data.tar.gz: bb3d7a6ee48b3c54618301eccd042a8483f5f4b4c9cb9be70ce165e1a5de5043be80afbb47412c8c09caf6e8b9cbb63e1da4a0a541078eaec8a44401c62f87bd
@@ -0,0 +1,14 @@
1
+ class Illness
2
+ def self.runcheck(illness)
3
+ if ['Head', 'Spine', 'Brain', 'Heart', 'Cancer', 'Crohn'].any? {|array| array.include? illness }
4
+ return 'High'
5
+ elsif ['Flu', 'Dehydration', 'Broken', 'Fracture', 'STI', 'STD'].any? {|array| array.include? illness }
6
+ return 'Medium'
7
+ elsif[''].any? {|array| array.include? illness }
8
+ return 'Invalid'
9
+ else
10
+ return 'Low'
11
+ end
12
+ end
13
+ end
14
+
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hospital_gem
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Liam English
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-04-22 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Doctor's injury list
14
+ email: liam.english1996@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/hospital_gem.rb
20
+ homepage: http://rubygems.org/gems/hospital_gem
21
+ licenses:
22
+ - MIT
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubyforge_project:
40
+ rubygems_version: 2.6.8
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: To determine the seriousness of a patients injury/illness
44
+ test_files: []