health-data-standards 4.3.3 → 4.3.4

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: 3ee25ec8e1b54cfe31ac67c1c048b69dc19d6a300942bf28d9c80a46a1ffc382
4
- data.tar.gz: '09d296d157fa5c6e71c4eaeadee8ebdabace2ab33992e897202ffab078bec574'
3
+ metadata.gz: 94248ea15c9b05f41ce129fe2e2b85b679deb47956ff48736336b3aaf705fe00
4
+ data.tar.gz: 7c2e79bee112cdb4a7f069d545de5b3ca42b331c783246ff3432e8655d587487
5
5
  SHA512:
6
- metadata.gz: 6a867932e3c103af9e841fa3eb02a96f433c4cf690be8539625c82f5165533d5c124d5850cc8cac929cc0622bd5050f53c45771dbc7edf18aaaa519cb18a6252
7
- data.tar.gz: 9209a65e29719ef247b0877f00b65abd10198ca20e17b5b7685a6239544e71976f6aa234044c5889cc5e1746c04fea32e000ccd80d153cd32b84d7e16df89a2e
6
+ metadata.gz: b707b88c5b975282248871fd77415ff37236aadad224223ab4d31aa45568d9c93f4f1ae197508026ae825253e36a0f3cf31bb827784dc7b54ef3c2440a5055f4
7
+ data.tar.gz: a6d955752b9e29ab1ccfc247e206176318b195d2f148b351f11bc663da6274e3f71c33759ad6cb23fc3d925184b44f641e5194ae00d70018e5d1a71a145d6548
@@ -18,6 +18,7 @@ class Entry
18
18
  field :time, type: Integer
19
19
  field :start_time, type: Integer
20
20
  field :end_time, type: Integer
21
+ field :author_datetime, type: Integer
21
22
  field :status_code, type: Hash
22
23
  field :mood_code, type: String, default: "EVN"
23
24
  field :negationInd, as: :negation_ind, type: Boolean
@@ -36,6 +36,8 @@ module HQMF
36
36
  'ANATOMICAL_LOCATION_SITE' => {title:'Anatomical Location Site', coded_entry_method: :anatomical_location, field_type: :value},
37
37
  # ANATOMICAL_STRUCTURE is no longer used.
38
38
  'ANATOMICAL_STRUCTURE' => {title:'Anatomical Structure', coded_entry_method: :anatomical_structure, code: '91723000', code_system:'2.16.840.1.113883.6.96', template_id: '2.16.840.1.113883.3.560.1.1000.2', field_type: :value},
39
+ # AUTHOR DATETIME
40
+ 'AUTHOR_DATETIME' => {title:'Author Date/Time', coded_entry_method: :author_datetime, field_type: :timestamp},
39
41
  # Added in QDM 5.4
40
42
  'CATEGORY' => {title:'Category', coded_entry_method: :category, field_type: :value},
41
43
  'CAUSE' => {title:'Cause', coded_entry_method: :cause_of_death, code: '42752001', code_system:'2.16.840.1.113883.6.96', template_id: '2.16.840.1.113883.3.560.1.1017.2', field_type: :value},
@@ -42,8 +42,9 @@ module HQMF2CQL
42
42
  cql_define_function[:function_name] = entry.at_xpath("*/cda:measureObservationDefinition/cda:value/cda:expression").values.first.match('\\"([A-Za-z0-9 ]+)\\"')[1]
43
43
  # The criteria_reference_id is the id of the measurePopulationCriteria that should be used for this observation function
44
44
  measure_population_id = entry.at_xpath("*/cda:measureObservationDefinition/cda:component/cda:criteriaReference/cda:id").attributes['root'].value
45
- # Get the name of the parameter to the observation function within the measurePopulationCriteria section
46
- cql_define_function[:parameter] = @doc.at_xpath("cda:QualityMeasureDocument/cda:component/cda:populationCriteriaSection/cda:component/cda:measurePopulationCriteria/cda:id[@root = \"#{measure_population_id}\"]/../cda:precondition/cda:criteriaReference/cda:id").attributes['extension'].value.match('\\"([A-Za-z0-9 ]+)\\"')[1]
45
+ measure_population_name = entry.at_xpath("*/cda:measureObservationDefinition/cda:component/cda:criteriaReference/cda:id").attributes['extension'].value
46
+ # Get the name of the parameter to the observation function within the relevant population criteria section
47
+ cql_define_function[:parameter] = @doc.at_xpath("cda:QualityMeasureDocument/cda:component/cda:populationCriteriaSection/cda:component/cda:#{measure_population_name}Criteria/cda:id[@root = \"#{measure_population_id}\"]/../cda:precondition/cda:criteriaReference/cda:id").attributes['extension'].value.match('\\"([A-Za-z0-9 ]+)\\"')[1]
47
48
 
48
49
  @observations << cql_define_function
49
50
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: health-data-standards
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.3
4
+ version: 4.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - The MITRE Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-22 00:00:00.000000000 Z
11
+ date: 2019-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -70,16 +70,16 @@ dependencies:
70
70
  name: activesupport
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 4.2.0
75
+ version: 4.2.8
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 4.2.0
82
+ version: 4.2.8
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: protected_attributes
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 1.8.3
131
+ version: 1.10.3
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 1.8.3
138
+ version: 1.10.3
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: mongo
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -965,7 +965,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
965
965
  version: '0'
966
966
  requirements: []
967
967
  rubyforge_project:
968
- rubygems_version: 2.7.8
968
+ rubygems_version: 2.7.9
969
969
  signing_key:
970
970
  specification_version: 4
971
971
  summary: A library for generating and consuming various healthcare related formats.