health-data-standards 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -346,10 +346,11 @@ module HealthDataStandards
346
346
  xml.Given(patient.first)
347
347
  xml.Family(patient.last)
348
348
  end
349
- end
349
+ end
350
350
  xml.DateOfBirth do
351
- xml.ExactDateTime(convert_to_ccr_time_string(patient.birthdate))
351
+ xml.ExactDateTime(convert_to_ccr_time_string(patient.birthdate))
352
352
  end
353
+
353
354
  if (patient.gender)
354
355
  xml.Gender do
355
356
  if (patient.gender.upcase == "M")
@@ -360,7 +361,7 @@ module HealthDataStandards
360
361
  xml.Text("Undifferentiated")
361
362
  end
362
363
  end
363
- end
364
+ end
364
365
  end
365
366
  xml.Source
366
367
  end
@@ -46,7 +46,7 @@ module HealthDataStandards
46
46
  brandName = product.at_xpath("./ccr:BrandName")
47
47
  productNameText = productName.at_xpath("./ccr:Text")
48
48
  brandNameText = brandName.at_xpath("./ccr:Text") if brandName
49
- entry.description = productNameText.content
49
+ entry.description = productNameText.content if productNameText
50
50
  process_product_codes(productName, entry) # we throw any codes found within the productName and brandName into the same entry
51
51
  process_product_codes(brandName, entry) if brandName
52
52
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: health-data-standards
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-10 00:00:00.000000000Z
12
+ date: 2012-06-04 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: erubis
16
- requirement: &2158260600 !ruby/object:Gem::Requirement
16
+ requirement: &2152735440 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '2.6'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2158260600
24
+ version_requirements: *2152735440
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: mongoid
27
- requirement: &2158246720 !ruby/object:Gem::Requirement
27
+ requirement: &2152734960 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.4.2
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2158246720
35
+ version_requirements: *2152734960
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: uuid
38
- requirement: &2158246160 !ruby/object:Gem::Requirement
38
+ requirement: &2152734480 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 2.3.4
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2158246160
46
+ version_requirements: *2152734480
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: builder
49
- requirement: &2158245480 !ruby/object:Gem::Requirement
49
+ requirement: &2152733800 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 3.0.0
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *2158245480
57
+ version_requirements: *2152733800
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: nokogiri
60
- requirement: &2158244200 !ruby/object:Gem::Requirement
60
+ requirement: &2152733140 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: 1.4.7
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *2158244200
68
+ version_requirements: *2152733140
69
69
  description: A library for generating and consuming various healthcare related formats.
70
70
  This includes HITSP C32, ASTM CCR and PQRI.
71
71
  email: talk@projectpophealth.org