cql_qdm_patientapi 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/CONTRIBUTING.md +14 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +45 -0
- data/Gemfile.lock +2 -2
- data/app/assets/javascripts/cqlpatient.js.coffee +6 -0
- data/app/assets/javascripts/datatypes/patient_characteristic_ethnicity.js.coffee +23 -0
- data/app/assets/javascripts/datatypes/patient_characteristic_race.js.coffee +23 -0
- data/lib/cql_qdm_patientapi/version.rb +1 -1
- metadata +7 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed60753c3f2f92815e3510b08a0c863090c33da0
|
4
|
+
data.tar.gz: 17aea55260ae7f696b6f671d4b56116ed440c47f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3c37504a4a2df7186a4a0c6edfc0b17f61712da286e53e99badbe7038fac86f62301bd3b18df2d39175e3e07541f47352eb462e4375e403b59b3d8ebc910fac
|
7
|
+
data.tar.gz: 88b40cb1d68c4ed759f51bf767f951dd701c077e28c7255339393b7d29d36d0f4f838e62d3c67fd3d51939e8a2a2dca094746914299c492faf0927c73a18b10d
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# :clipboard: CQL QDM Patient API contribution rules
|
2
|
+
1. All tickets relating to a pull request must link to the pull request.
|
3
|
+
2. All pull requests must link to their parent tickets.
|
4
|
+
3. All pull requests must have accompanying tests. This means:
|
5
|
+
* Automated tests: Automated tests are expected unless they are not feasible. If they are not feasible, this should be explained in the pull request.
|
6
|
+
* A JIRA test should be included if the automated tests are not sufficient
|
7
|
+
- The JIRA test should link to the pull request
|
8
|
+
- The JIRA test should link to the tasks that were resolved by the pull request
|
9
|
+
* A pull request review also includes a review of the accompanying tests tests
|
10
|
+
4. All pull requests must pass a calculation regression test to confirm that calculations do not break with these changes
|
11
|
+
|
12
|
+
:clipboard: For more details see: https://gitlab.mitre.org/bonnie/internal-documentation/wikis/pull-requests
|
13
|
+
|
14
|
+
As a reviewer of a pull request, you are accountable to verifying that the PR contains all items. :punch:
|
@@ -0,0 +1,45 @@
|
|
1
|
+
Pull requests into CQL QDM Patient API require the following. Submitter and reviewer should :white_check_mark: when done. For items that are not-applicable, note it's not-applicable ("N/A") and :white_check_mark:.
|
2
|
+
|
3
|
+
**Submitter:**
|
4
|
+
- [ ] This pull request describes why these changes were made.
|
5
|
+
- [ ] This PR is into the correct branch.
|
6
|
+
- [ ] JIRA ticket for this PR:
|
7
|
+
- [ ] JIRA ticket links to this PR
|
8
|
+
- [ ] Code diff has been done and been reviewed (it **does not** contain: additional white space, not applicable code changes, debug statements, etc.)
|
9
|
+
- [ ] Tests are included and test edge cases
|
10
|
+
- [ ] Tests have been run locally and pass (remember to update Gemfile when applicable)
|
11
|
+
- [ ] Code coverage has not gone down and all code touched or added is covered.
|
12
|
+
* In rare situations, this may not be possible or applicable to a PR. In those situations:
|
13
|
+
1. Note why this could not be done or is not applicable here:
|
14
|
+
2. Add TODOs in the code noting that it requires a test
|
15
|
+
3. Add a JIRA task to add the test and link it here:
|
16
|
+
- [ ] Automated regression test(s) pass
|
17
|
+
|
18
|
+
If JIRA tests were used to supplement or replace automated tests:
|
19
|
+
- [ ] JIRA test links:
|
20
|
+
- [ ] Justification for using JIRA tests:
|
21
|
+
- [ ] JIRA tests have been added to sprint
|
22
|
+
|
23
|
+
|
24
|
+
**Reviewer 1:**
|
25
|
+
|
26
|
+
Name:
|
27
|
+
- [ ] Code is maintainable and reusable, reuses existing code and infrastructure where appropriate, and accomplishes the task’s purpose
|
28
|
+
- [ ] The tests appropriately test the new code, including edge cases
|
29
|
+
- [ ] You have tried to break the code
|
30
|
+
|
31
|
+
If JIRA tests were used to supplement or replace automated tests:
|
32
|
+
- [ ] JIRA tests have been run and pass
|
33
|
+
- [ ] You agree with the justification for use of JIRA tests or have provided input on why you disagree
|
34
|
+
|
35
|
+
|
36
|
+
**Reviewer 2:**
|
37
|
+
|
38
|
+
Name:
|
39
|
+
- [ ] Code is maintainable and reusable, reuses existing code and infrastructure where appropriate, and accomplishes the task’s purpose
|
40
|
+
- [ ] The tests appropriately test the new code, including edge cases
|
41
|
+
- [ ] You have tried to break the code
|
42
|
+
|
43
|
+
If JIRA tests were used to supplement or replace automated tests:
|
44
|
+
- [ ] JIRA tests have been run and pass
|
45
|
+
- [ ] You agree with the justification for use of JIRA tests or have provided input on why you disagree
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cql_qdm_patientapi (1.0.
|
4
|
+
cql_qdm_patientapi (1.0.2)
|
5
5
|
coffee-rails (~> 4.1)
|
6
6
|
rails (~> 4.2)
|
7
7
|
sprockets-rails (~> 2.3)
|
@@ -124,4 +124,4 @@ DEPENDENCIES
|
|
124
124
|
teaspoon-jasmine (= 2.3.4)
|
125
125
|
|
126
126
|
BUNDLED WITH
|
127
|
-
1.16.
|
127
|
+
1.16.1
|
@@ -104,6 +104,12 @@ class CQL_QDM.CQLPatient
|
|
104
104
|
else if /PatientCharacteristicExpired/.test profile
|
105
105
|
# Requested deathdate
|
106
106
|
[new CQL_QDM.PatientCharacteristicExpired(@_patient)]
|
107
|
+
else if /PatientCharacteristicRace/.test profile
|
108
|
+
# Requested race
|
109
|
+
[new CQL_QDM.PatientCharacteristicRace(@_patient)]
|
110
|
+
else if /PatientCharacteristicEthnicity/.test profile
|
111
|
+
# Requested ethnicity
|
112
|
+
[new CQL_QDM.PatientCharacteristicEthnicity(@_patient)]
|
107
113
|
else
|
108
114
|
# Check if there are PatientCharateristic qdm datatypes that can be returned
|
109
115
|
profile = profile.replace(/ *\{[^)]*\} */g, '')
|
@@ -0,0 +1,23 @@
|
|
1
|
+
###
|
2
|
+
@namespace scoping into the CQL_QDM namespace (all classes and
|
3
|
+
their methods will be accessable through the CQL_QDM namespace)
|
4
|
+
###
|
5
|
+
@CQL_QDM ||= {}
|
6
|
+
|
7
|
+
|
8
|
+
###
|
9
|
+
Used to represent a ethnicity.
|
10
|
+
###
|
11
|
+
class CQL_QDM.PatientCharacteristicEthnicity extends CQL_QDM.QDMDatatype
|
12
|
+
###
|
13
|
+
@param {Object} patient - the HDS patient object to use
|
14
|
+
###
|
15
|
+
constructor: (patient) ->
|
16
|
+
@_patient = patient
|
17
|
+
|
18
|
+
|
19
|
+
getCode: ->
|
20
|
+
if @_patient?.has('ethnicity')
|
21
|
+
code: @_patient.get('ethnicity')
|
22
|
+
else
|
23
|
+
null
|
@@ -0,0 +1,23 @@
|
|
1
|
+
###
|
2
|
+
@namespace scoping into the CQL_QDM namespace (all classes and
|
3
|
+
their methods will be accessable through the CQL_QDM namespace)
|
4
|
+
###
|
5
|
+
@CQL_QDM ||= {}
|
6
|
+
|
7
|
+
|
8
|
+
###
|
9
|
+
Used to represent a race.
|
10
|
+
###
|
11
|
+
class CQL_QDM.PatientCharacteristicRace extends CQL_QDM.QDMDatatype
|
12
|
+
###
|
13
|
+
@param {Object} patient - the HDS patient object to use
|
14
|
+
###
|
15
|
+
constructor: (patient) ->
|
16
|
+
@_patient = patient
|
17
|
+
|
18
|
+
|
19
|
+
getCode: ->
|
20
|
+
if @_patient?.has('race')
|
21
|
+
code: @_patient.get('race')
|
22
|
+
else
|
23
|
+
null
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cql_qdm_patientapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The MITRE Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -59,6 +59,8 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
+
- ".github/CONTRIBUTING.md"
|
63
|
+
- ".github/PULL_REQUEST_TEMPLATE.md"
|
62
64
|
- ".gitignore"
|
63
65
|
- ".travis.yml"
|
64
66
|
- Gemfile
|
@@ -88,8 +90,10 @@ files:
|
|
88
90
|
- app/assets/javascripts/datatypes/laboratorytest.js.coffee
|
89
91
|
- app/assets/javascripts/datatypes/medication.js.coffee
|
90
92
|
- app/assets/javascripts/datatypes/patient_characteristic.js.coffee
|
93
|
+
- app/assets/javascripts/datatypes/patient_characteristic_ethnicity.js.coffee
|
91
94
|
- app/assets/javascripts/datatypes/patient_characteristic_expired.js.coffee
|
92
95
|
- app/assets/javascripts/datatypes/patient_characteristic_payer.js.coffee
|
96
|
+
- app/assets/javascripts/datatypes/patient_characteristic_race.js.coffee
|
93
97
|
- app/assets/javascripts/datatypes/patient_characteristic_sex.js.coffee
|
94
98
|
- app/assets/javascripts/datatypes/physicalexam.js.coffee
|
95
99
|
- app/assets/javascripts/datatypes/procedure.js.coffee
|
@@ -126,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
130
|
version: '0'
|
127
131
|
requirements: []
|
128
132
|
rubyforge_project:
|
129
|
-
rubygems_version: 2.6.
|
133
|
+
rubygems_version: 2.6.14
|
130
134
|
signing_key:
|
131
135
|
specification_version: 4
|
132
136
|
summary: QDM CQL execution engine and HDS patient model interface
|