ncs_mdes 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,6 +1,15 @@
1
1
  NCS Navigator MDES Module history
2
2
  =================================
3
3
 
4
+ 0.8.0
5
+ -----
6
+
7
+ - Synthesize category codes for MDES 2.0 disposition codes. (#12)
8
+ - Add DispositionCode#category_code for reading category codes. (#12)
9
+ - Add DispositionCode#success? to partition activities into
10
+ successfully and unsuccesfully completed (e.g. canceled) sets.
11
+ (#16)
12
+
4
13
  0.7.0
5
14
  -----
6
15
 
data/README.md CHANGED
@@ -2,10 +2,12 @@ NCS Navigator MDES Module
2
2
  =========================
3
3
 
4
4
  This gem provides a consistent computable interface to the National
5
- Children's Study Master Data Element Specification. All of the data it
6
- exposes is derived at runtime from the documents provided by the
5
+ Children's Study Master Data Element Specification. Most of the data
6
+ it exposes is derived at runtime from the documents provided by the
7
7
  National Children's Study Program Office, which are embedded in the
8
- distribution package.
8
+ distribution package. The balance of the data is also derived from NCS
9
+ PO documentation, but is preprocessed to reduce the footprint of this
10
+ library.
9
11
 
10
12
  Use
11
13
  ---
@@ -13,7 +15,7 @@ Use
13
15
  require 'ncs_navigator/mdes'
14
16
  require 'pp'
15
17
 
16
- mdes = NcsNavigator::Mdes('1.2')
18
+ mdes = NcsNavigator::Mdes('3.0')
17
19
  pp mdes.transmission_tables.collect(&:name)
18
20
 
19
21
  For more details see the API documentation, starting with
@@ -29,29 +31,29 @@ poking at the MDES. It is called `mdes-console`:
29
31
 
30
32
  $ mdes-console
31
33
  Documents are expected to be in the default location.
32
- $mdes12 is a Specification for 1.2
33
- $mdes20 is a Specification for 2.0
34
- ruby-1.8.7-p334 :001 >
34
+ $mdesNM is a Specification for N.M.
35
+ Available specifications are $mdes12, $mdes20, $mdes21, $mdes22, and $mdes30.
36
+ ruby-1.9.3-p125 :001 >
35
37
 
36
38
  It is based on ruby's IRB. Use it to examine the loaded MDES data
37
39
  without a lot of edit-save-run cycles:
38
40
 
39
- ruby-1.8.7-p334 :001 > $mdes20.transmission_tables.first.name
41
+ ruby-1.9.3-p125 :001 > $mdes20.transmission_tables.first.name
40
42
  => "study_center"
41
43
 
42
44
  E.g., find all the variables of a particular XML schema type:
43
45
 
44
- ruby-1.8.7-p334 :002 > $mdes20.transmission_tables.collect { |t| t.variables }.flatten.select { |v| v.type.base_type == :decimal }.collect(&:name)
46
+ ruby-1.9.3-p125 :002 > $mdes20.transmission_tables.collect { |t| t.variables }.flatten.select { |v| v.type.base_type == :decimal }.collect(&:name)
45
47
  => ["correction_factor_temp", "current_temp", "maximum_temp", "minimum_temp", "precision_term_temp", "trh_temp", "salts_moist", "s_33rh_reading", "s_75rh_reading", "s_33rh_reading_calib", "s_75rh_reading_calib", "precision_term_temp", "rf_temp", "correction_factor_temp", "sample_receipt_temp"]
46
48
 
47
49
  Or the labels for a particular code list:
48
50
 
49
- ruby-1.8.7-p334 :003 > $mdes20.types.find { |t| t.name == 'confirm_type_cl7' }.code_list.collect(&:label)
51
+ ruby-1.9.3-p125 :003 > $mdes20.types.find { |t| t.name == 'confirm_type_cl7' }.code_list.collect(&:label)
50
52
  => ["Yes", "No", "Refused", "Don't Know", "Legitimate Skip", "Missing in Error"]
51
53
 
52
54
  Or the number of code lists that include "Yes" as an option:
53
55
 
54
- ruby-1.8.7-p334 :004 > $mdes20.types.select { |t| t.code_list && t.code_list.collect(&:label).include?('Yes') }.size
56
+ ruby-1.9.3-p125 :004 > $mdes20.types.select { |t| t.code_list && t.code_list.collect(&:label).include?('Yes') }.size
55
57
  => 23
56
58
 
57
59
  Develop
data/ci-exec.sh CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/bin/bash -xe
2
2
 
3
- BUNDLER_VERSION=1.1.rc
3
+ BUNDLER_VERSION=1.1.5
4
4
  GEMSET=ncs_mdes
5
5
 
6
6
  if [ -z $CI_RUBY ]; then