health-data-standards 4.3.0 → 4.3.1
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: d83eb6d500f3b7d034ff83d68338f1e3500c0bad94cc43213cd1b1912016faf3
|
4
|
+
data.tar.gz: 87be123a0f1426e4ec12f68f0f1c475722e884a5bbcba64fe976ca1fa17443b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ef01e4118e7abab76e13a10b0d0377751aef2ab55daf1f0d681c7f4fee8f964e85ecfaec876b3b0a9dc9481e34a393f28f0445a8b293b30d3640134a465988e
|
7
|
+
data.tar.gz: bcc4fcf3624b882837bcbb29b51c7a60f6132eae1880d4ac7d14e8b6cef947c74d76f97a1871445fff9a19447edfbb4e8e62949054ca7609d0212e0cb9d92645
|
@@ -40,7 +40,11 @@ module HQMF2CQL
|
|
40
40
|
# The at_xpath(...).values returns an array of a single element.
|
41
41
|
# The match returns an array and since we don't want the double quotes we take the second element
|
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
|
+
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]
|
47
|
+
|
44
48
|
@observations << cql_define_function
|
45
49
|
end
|
46
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.
|
4
|
+
version: 4.3.1
|
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: 2018-
|
11
|
+
date: 2018-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|