health-data-standards 4.0.3 → 4.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/health-data-standards.rb +1 -0
- data/lib/health-data-standards/models/medication.rb +2 -0
- data/lib/health-data-standards/models/participation.rb +2 -0
- data/lib/health-data-standards/models/record.rb +2 -1
- data/lib/health-data-standards/util/hqmfr2cql_template_oid_map.json +4 -0
- data/lib/hqmf-model/data_criteria.json +10 -1
- data/lib/hqmf-parser/2.0/value_set_helper.rb +2 -2
- data/lib/hqmf-parser/cql/value_set_helper.rb +2 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e986ca8fb8187ca5675b726b14ace665dc37602e
|
4
|
+
data.tar.gz: 0554c810d31a9fe08f307ef5bf3839bca27a0732
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 259ff486a7223086f233561d241c7e78ee8a6b3ce54748f4f6671445b6f7a7ef96d31a274a7b648b529830a84925966c36efd8f626a1832bba09abe00472b156
|
7
|
+
data.tar.gz: 292426fea978d25f61cc0f17c2e9289a749f60e4726e03787d94014897e8e8e2b5a953dfef50a5198bb536ae261259ca516b46d9b35ca1b8ad5e9efa2a8e266f
|
@@ -84,6 +84,7 @@ require_relative 'health-data-standards/models/care_goal'
|
|
84
84
|
require_relative 'health-data-standards/models/encounter_principal_diagnosis'
|
85
85
|
require_relative 'health-data-standards/models/assessment'
|
86
86
|
require_relative 'health-data-standards/models/adverse_event'
|
87
|
+
require_relative 'health-data-standards/models/participation'
|
87
88
|
|
88
89
|
require_relative 'health-data-standards/models/qrda/id'
|
89
90
|
require_relative 'health-data-standards/models/qrda/device'
|
@@ -1,10 +1,12 @@
|
|
1
1
|
class Medication < Entry
|
2
|
+
# administrationTiming is the same as QDM5.3 frequency in Bonnie
|
2
3
|
field :administrationTiming, as: :administration_timing, type: Hash
|
3
4
|
field :freeTextSig, type: String
|
4
5
|
# QDM 5.0 disambiguates dose to be dosage and suppy. 'dose' here represents the QDM 5.0 'dosage'.
|
5
6
|
# Bonnie displays this as 'dosage'.
|
6
7
|
field :dose, type: Hash
|
7
8
|
field :supply, type: Hash
|
9
|
+
field :refills, type: Hash
|
8
10
|
field :typeOfMedication, as: :type_of_medication, type: Hash
|
9
11
|
field :statusOfMedication, as: :status_of_medication, type: Hash
|
10
12
|
embeds_many :fulfillmentHistory, class_name: 'FulfillmentHistory'
|
@@ -53,10 +53,11 @@ class Record
|
|
53
53
|
embeds_many :advance_directives, class_name: "Entry"
|
54
54
|
embeds_many :insurance_providers
|
55
55
|
embeds_many :functional_statuses
|
56
|
+
embeds_many :participations
|
56
57
|
|
57
58
|
Sections = [:allergies, :care_goals, :conditions, :encounters, :immunizations, :medical_equipment,
|
58
59
|
:medications, :procedures, :results, :communications, :family_history, :social_history, :vital_signs, :support, :advance_directives,
|
59
|
-
:insurance_providers, :functional_statuses, :care_experiences, :assessments, :adverse_events]
|
60
|
+
:insurance_providers, :functional_statuses, :care_experiences, :assessments, :adverse_events, :participations]
|
60
61
|
|
61
62
|
embeds_many :provider_performances
|
62
63
|
embeds_many :addresses, as: :locatable
|
@@ -1042,5 +1042,14 @@
|
|
1042
1042
|
"sub_category":"",
|
1043
1043
|
"hard_status":false,
|
1044
1044
|
"patient_api_function":"allergies",
|
1045
|
-
"not_supported":false}
|
1045
|
+
"not_supported":false},
|
1046
|
+
"participation":{
|
1047
|
+
"title":"participation",
|
1048
|
+
"category":"participations",
|
1049
|
+
"definition":"participation",
|
1050
|
+
"status":"",
|
1051
|
+
"sub_category":"",
|
1052
|
+
"hard_status":false,
|
1053
|
+
"patient_api_function":"participations",
|
1054
|
+
"not_supported":false}
|
1046
1055
|
}
|
@@ -92,8 +92,8 @@ module HQMF2
|
|
92
92
|
'2.16.840.1.113883.10.20.28.3.117' => { valueset_path: './*/cda:code', result_path: './*/cda:value' },
|
93
93
|
'2.16.840.1.113883.10.20.28.3.118' => { valueset_path: './*/cda:code', result_path: nil },
|
94
94
|
'2.16.840.1.113883.10.20.28.3.119' => { valueset_path: "./*/cda:participation[@typeCode='CSM']/cda:role[@classCode='MANU']/cda:playingEntity[@classCode='MMAT']/cda:code", result_path: nil },
|
95
|
-
'2.16.840.1.113883.10.20.28.3.120' => { valueset_path: "./*/cda:participation[@typeCode='CSM']/cda:role[@classCode='MANU']/cda:playingEntity[@classCode='MMAT']/cda:code", result_path: nil }
|
96
|
-
|
95
|
+
'2.16.840.1.113883.10.20.28.3.120' => { valueset_path: "./*/cda:participation[@typeCode='CSM']/cda:role[@classCode='MANU']/cda:playingEntity[@classCode='MMAT']/cda:code", result_path: nil },
|
96
|
+
'2.16.840.1.113883.10.20.28.3.130' => { valueset_path: './*/cda:value', result_path: nil }
|
97
97
|
}
|
98
98
|
# rubocop:enable Metrics/LineLength
|
99
99
|
|
@@ -92,7 +92,8 @@ module HQMF2CQL
|
|
92
92
|
'2.16.840.1.113883.10.20.28.4.117' => { valueset_path: './*/cda:code', result_path: './*/cda:value' },
|
93
93
|
'2.16.840.1.113883.10.20.28.4.118' => { valueset_path: './*/cda:code', result_path: nil },
|
94
94
|
'2.16.840.1.113883.10.20.28.4.119' => { valueset_path: "./*/cda:participation[@typeCode='CSM']/cda:role[@classCode='MANU']/cda:playingEntity[@classCode='MMAT']/cda:code", result_path: nil },
|
95
|
-
'2.16.840.1.113883.10.20.28.4.120' => { valueset_path: "./*/cda:participation[@typeCode='CSM']/cda:role[@classCode='MANU']/cda:playingEntity[@classCode='MMAT']/cda:code", result_path: nil }
|
95
|
+
'2.16.840.1.113883.10.20.28.4.120' => { valueset_path: "./*/cda:participation[@typeCode='CSM']/cda:role[@classCode='MANU']/cda:playingEntity[@classCode='MMAT']/cda:code", result_path: nil },
|
96
|
+
'2.16.840.1.113883.10.20.28.4.130' => { valueset_path: './*/cda:value', result_path: nil }
|
96
97
|
}
|
97
98
|
# rubocop:enable Metrics/LineLength
|
98
99
|
|
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.0.
|
4
|
+
version: 4.0.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: 2018-
|
11
|
+
date: 2018-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -341,6 +341,7 @@ files:
|
|
341
341
|
- lib/health-data-standards/models/metadata/pedigree.rb
|
342
342
|
- lib/health-data-standards/models/order_information.rb
|
343
343
|
- lib/health-data-standards/models/organization.rb
|
344
|
+
- lib/health-data-standards/models/participation.rb
|
344
345
|
- lib/health-data-standards/models/patient_preference.rb
|
345
346
|
- lib/health-data-standards/models/person.rb
|
346
347
|
- lib/health-data-standards/models/personable.rb
|