health-data-standards 4.0.3 → 4.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 57a7dd893ee83dd44c77618e3c4e2edfd2af56d2
4
- data.tar.gz: 7b713bfa141dc0b1272086e0c758fc438de79563
3
+ metadata.gz: e986ca8fb8187ca5675b726b14ace665dc37602e
4
+ data.tar.gz: 0554c810d31a9fe08f307ef5bf3839bca27a0732
5
5
  SHA512:
6
- metadata.gz: 61b1f138cc7c76ba8de8e5b46ea8f202412733c961cf5af33c0a738663bdb2dab299ca087ac631459b57086ae448f354e9775095d0afc731c740543de4cbde4c
7
- data.tar.gz: 83c320c9e7b4b4e0f945747e0cc169dbda4be04afa21ac18a7f8aa3b98cc7006f6d667a2f6987988b7b867ae961e945fe580565661fa2e6443d20434f1a3465b
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'
@@ -0,0 +1,2 @@
1
+ class Participation < Entry
2
+ end
@@ -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
@@ -386,5 +386,9 @@
386
386
  "2.16.840.1.113883.10.20.28.4.119": {
387
387
  "definition":"allergy_intolerance",
388
388
  "status":"",
389
+ "negation":false},
390
+ "2.16.840.1.113883.10.20.28.4.130": {
391
+ "definition":"participation",
392
+ "status":"",
389
393
  "negation":false}
390
394
  }
@@ -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.3
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-02-23 00:00:00.000000000 Z
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