fhir-mongoid-models 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/CODEOWNERS +1 -1
- data/.github/workflows/build.yml +27 -2
- data/app/models/cqm/measure.rb +7 -1
- data/app/models/fhir/coverage_cost_to_beneficiary.rb +4 -4
- data/app/models/fhir/dosage_dose_and_rate.rb +8 -8
- data/app/models/fhir/medication_administration_dosage.rb +4 -4
- data/app/models/fhir/medication_knowledge_administration_guidelines_patient_characteristics.rb +4 -4
- data/app/models/fhir/medication_knowledge_drug_characteristic.rb +4 -4
- data/app/models/fhir/nutrition_order_enteral_formula_administration.rb +4 -4
- data/app/models/fhir/resource.rb +3 -3
- data/app/models/fhir/specimen_definition_type_tested_container.rb +4 -4
- data/fhir-mongoid-models.gemspec +1 -1
- data/lib/ext/fhir/library.rb +15 -5
- data/package-lock.json +303 -27
- data/package.json +2 -2
- metadata +3 -5
- data/.github/workflows/rubygems-publish.yml +0 -64
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a3c8a6ef29ab9b50d9d3ad2c002f97ee25ddb301da4def9b2430ece7ff421951
|
4
|
+
data.tar.gz: '00949d1576c72a8ecb14f03f43b3b1650f386a519184b0930c0acdd3695ba0c9'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ea803b4251f0277e15665cf65b91c68067b86952646f330327256543eace0893d08a92707f49e9e5e5d7ca058f7f8718c9727c27926f0fef8a9bc62ab4483de
|
7
|
+
data.tar.gz: e3dc3a51ad3acded1908b1bcdc955ea3f7de028c3152dd08d5e0b7d4fb0a446c2bcc9f6a01588d6ec7f13301c5fdeccaff7e8fcd64dfc0f0f6b3367403feb13b
|
data/.github/CODEOWNERS
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
# Code owners:
|
2
|
-
* @AndrewBird81 @adongare @jkotanchik-SB @serhii-ilin
|
2
|
+
* @AndrewBird81 @adongare @jkotanchik-SB @serhii-ilin
|
data/.github/workflows/build.yml
CHANGED
@@ -3,6 +3,8 @@ name: Build
|
|
3
3
|
on:
|
4
4
|
push:
|
5
5
|
branches: [main, develop]
|
6
|
+
tags:
|
7
|
+
- "v*"
|
6
8
|
pull_request:
|
7
9
|
branches: [main, develop]
|
8
10
|
|
@@ -19,10 +21,10 @@ jobs:
|
|
19
21
|
|
20
22
|
steps:
|
21
23
|
- uses: actions/checkout@v2
|
22
|
-
- name: Set up Ruby 2.
|
24
|
+
- name: Set up Ruby 2.7.2
|
23
25
|
uses: actions/setup-ruby@v1
|
24
26
|
with:
|
25
|
-
ruby-version: 2.
|
27
|
+
ruby-version: 2.7.2
|
26
28
|
|
27
29
|
- name: Install bundler & bundle-audit
|
28
30
|
run: |
|
@@ -52,3 +54,26 @@ jobs:
|
|
52
54
|
with:
|
53
55
|
file: coverage/lcov.info
|
54
56
|
fail_ci_if_error: true
|
57
|
+
|
58
|
+
|
59
|
+
- name: Release Gem
|
60
|
+
if: contains(github.ref, 'refs/tags/v')
|
61
|
+
run: |
|
62
|
+
echo "Setting up gem credentials..."
|
63
|
+
set +x
|
64
|
+
mkdir -p ~/.gem
|
65
|
+
|
66
|
+
cat << EOF > ~/.gem/credentials
|
67
|
+
---
|
68
|
+
:github: Bearer ${GITHUB_TOKEN}
|
69
|
+
:rubygems_api_key: ${RUBYGEMS_API_KEY}
|
70
|
+
EOF
|
71
|
+
|
72
|
+
chmod 0600 ~/.gem/credentials
|
73
|
+
set -x
|
74
|
+
|
75
|
+
echo "Running gem release task..."
|
76
|
+
bundle exec rake release
|
77
|
+
env:
|
78
|
+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
79
|
+
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
|
data/app/models/cqm/measure.rb
CHANGED
@@ -44,8 +44,10 @@ module CQM
|
|
44
44
|
|
45
45
|
embeds_many :population_sets, class_name: 'CQM::PopulationSet'
|
46
46
|
|
47
|
-
# TODO: Reconsider after MAT-1628
|
48
47
|
field :measure_period, type: Hash
|
48
|
+
# Order is important, store as an array to preserve the order
|
49
|
+
# MongoDB doesn't allow URIs as keys in a Hash
|
50
|
+
field :code_systems_by_name, type: Array
|
49
51
|
|
50
52
|
def as_json(*args)
|
51
53
|
result = Hash.new
|
@@ -94,6 +96,9 @@ module CQM
|
|
94
96
|
unless self.measure_period.nil?
|
95
97
|
result['measure_period'] = self.measure_period
|
96
98
|
end
|
99
|
+
unless self.code_systems_by_name.nil?
|
100
|
+
result['code_systems_by_name'] = self.code_systems_by_name
|
101
|
+
end
|
97
102
|
result['created_at'] = self.created_at unless self.created_at.nil?
|
98
103
|
result['updated_at'] = self.updated_at unless self.updated_at.nil?
|
99
104
|
|
@@ -117,6 +122,7 @@ module CQM
|
|
117
122
|
result['source_data_criteria'] = json_hash['source_data_criteria'].map { |var| CQM::DataElement.transform_json(var) } unless json_hash['source_data_criteria'].nil?
|
118
123
|
result['population_sets'] = json_hash['population_sets'].map { |var| CQM::PopulationSet.transform_json(var) } unless json_hash['population_sets'].nil?
|
119
124
|
result['measure_period'] = json_hash['measure_period'] unless json_hash['measure_period'].nil?
|
125
|
+
result['code_systems_by_name'] = json_hash['code_systems_by_name'] unless json_hash['code_systems_by_name'].nil?
|
120
126
|
result['created_at'] = json_hash['created_at'] unless json_hash['created_at'].nil?
|
121
127
|
result['updated_at'] = json_hash['updated_at'] unless json_hash['updated_at'].nil?
|
122
128
|
result
|
@@ -3,7 +3,7 @@ module FHIR
|
|
3
3
|
class CoverageCostToBeneficiary < BackboneElement
|
4
4
|
include Mongoid::Document
|
5
5
|
embeds_one :type, class_name: 'FHIR::CodeableConcept'
|
6
|
-
embeds_one :
|
6
|
+
embeds_one :valueQuantity, class_name: 'FHIR::SimpleQuantity'
|
7
7
|
embeds_one :valueMoney, class_name: 'FHIR::Money'
|
8
8
|
embeds_many :exception, class_name: 'FHIR::CoverageCostToBeneficiaryException'
|
9
9
|
|
@@ -12,8 +12,8 @@ module FHIR
|
|
12
12
|
unless self.type.nil?
|
13
13
|
result['type'] = self.type.as_json(*args)
|
14
14
|
end
|
15
|
-
unless self.
|
16
|
-
result['
|
15
|
+
unless self.valueQuantity.nil?
|
16
|
+
result['valueQuantity'] = self.valueQuantity.as_json(*args)
|
17
17
|
end
|
18
18
|
unless self.valueMoney.nil?
|
19
19
|
result['valueMoney'] = self.valueMoney.as_json(*args)
|
@@ -33,7 +33,7 @@ module FHIR
|
|
33
33
|
|
34
34
|
result = self.superclass.transform_json(json_hash, target)
|
35
35
|
result['type'] = CodeableConcept.transform_json(json_hash['type']) unless json_hash['type'].nil?
|
36
|
-
result['
|
36
|
+
result['valueQuantity'] = SimpleQuantity.transform_json(json_hash['valueQuantity']) unless json_hash['valueQuantity'].nil?
|
37
37
|
result['valueMoney'] = Money.transform_json(json_hash['valueMoney']) unless json_hash['valueMoney'].nil?
|
38
38
|
result['exception'] = json_hash['exception'].map { |var| CoverageCostToBeneficiaryException.transform_json(var) } unless json_hash['exception'].nil?
|
39
39
|
|
@@ -4,10 +4,10 @@ module FHIR
|
|
4
4
|
include Mongoid::Document
|
5
5
|
embeds_one :type, class_name: 'FHIR::CodeableConcept'
|
6
6
|
embeds_one :doseRange, class_name: 'FHIR::Range'
|
7
|
-
embeds_one :
|
7
|
+
embeds_one :doseQuantity, class_name: 'FHIR::SimpleQuantity'
|
8
8
|
embeds_one :rateRatio, class_name: 'FHIR::Ratio'
|
9
9
|
embeds_one :rateRange, class_name: 'FHIR::Range'
|
10
|
-
embeds_one :
|
10
|
+
embeds_one :rateQuantity, class_name: 'FHIR::SimpleQuantity'
|
11
11
|
|
12
12
|
def as_json(*args)
|
13
13
|
result = super
|
@@ -17,8 +17,8 @@ module FHIR
|
|
17
17
|
unless self.doseRange.nil?
|
18
18
|
result['doseRange'] = self.doseRange.as_json(*args)
|
19
19
|
end
|
20
|
-
unless self.
|
21
|
-
result['
|
20
|
+
unless self.doseQuantity.nil?
|
21
|
+
result['doseQuantity'] = self.doseQuantity.as_json(*args)
|
22
22
|
end
|
23
23
|
unless self.rateRatio.nil?
|
24
24
|
result['rateRatio'] = self.rateRatio.as_json(*args)
|
@@ -26,8 +26,8 @@ module FHIR
|
|
26
26
|
unless self.rateRange.nil?
|
27
27
|
result['rateRange'] = self.rateRange.as_json(*args)
|
28
28
|
end
|
29
|
-
unless self.
|
30
|
-
result['
|
29
|
+
unless self.rateQuantity.nil?
|
30
|
+
result['rateQuantity'] = self.rateQuantity.as_json(*args)
|
31
31
|
end
|
32
32
|
result.delete('id')
|
33
33
|
unless self.fhirId.nil?
|
@@ -42,10 +42,10 @@ module FHIR
|
|
42
42
|
result = self.superclass.transform_json(json_hash, target)
|
43
43
|
result['type'] = CodeableConcept.transform_json(json_hash['type']) unless json_hash['type'].nil?
|
44
44
|
result['doseRange'] = Range.transform_json(json_hash['doseRange']) unless json_hash['doseRange'].nil?
|
45
|
-
result['
|
45
|
+
result['doseQuantity'] = SimpleQuantity.transform_json(json_hash['doseQuantity']) unless json_hash['doseQuantity'].nil?
|
46
46
|
result['rateRatio'] = Ratio.transform_json(json_hash['rateRatio']) unless json_hash['rateRatio'].nil?
|
47
47
|
result['rateRange'] = Range.transform_json(json_hash['rateRange']) unless json_hash['rateRange'].nil?
|
48
|
-
result['
|
48
|
+
result['rateQuantity'] = SimpleQuantity.transform_json(json_hash['rateQuantity']) unless json_hash['rateQuantity'].nil?
|
49
49
|
|
50
50
|
result
|
51
51
|
end
|
@@ -8,7 +8,7 @@ module FHIR
|
|
8
8
|
embeds_one :method, class_name: 'FHIR::CodeableConcept'
|
9
9
|
embeds_one :dose, class_name: 'FHIR::SimpleQuantity'
|
10
10
|
embeds_one :rateRatio, class_name: 'FHIR::Ratio'
|
11
|
-
embeds_one :
|
11
|
+
embeds_one :rateQuantity, class_name: 'FHIR::SimpleQuantity'
|
12
12
|
|
13
13
|
def as_json(*args)
|
14
14
|
result = super
|
@@ -32,8 +32,8 @@ module FHIR
|
|
32
32
|
unless self.rateRatio.nil?
|
33
33
|
result['rateRatio'] = self.rateRatio.as_json(*args)
|
34
34
|
end
|
35
|
-
unless self.
|
36
|
-
result['
|
35
|
+
unless self.rateQuantity.nil?
|
36
|
+
result['rateQuantity'] = self.rateQuantity.as_json(*args)
|
37
37
|
end
|
38
38
|
result.delete('id')
|
39
39
|
unless self.fhirId.nil?
|
@@ -52,7 +52,7 @@ module FHIR
|
|
52
52
|
result['method'] = CodeableConcept.transform_json(json_hash['method']) unless json_hash['method'].nil?
|
53
53
|
result['dose'] = SimpleQuantity.transform_json(json_hash['dose']) unless json_hash['dose'].nil?
|
54
54
|
result['rateRatio'] = Ratio.transform_json(json_hash['rateRatio']) unless json_hash['rateRatio'].nil?
|
55
|
-
result['
|
55
|
+
result['rateQuantity'] = SimpleQuantity.transform_json(json_hash['rateQuantity']) unless json_hash['rateQuantity'].nil?
|
56
56
|
|
57
57
|
result
|
58
58
|
end
|
data/app/models/fhir/medication_knowledge_administration_guidelines_patient_characteristics.rb
CHANGED
@@ -3,7 +3,7 @@ module FHIR
|
|
3
3
|
class MedicationKnowledgeAdministrationGuidelinesPatientCharacteristics < BackboneElement
|
4
4
|
include Mongoid::Document
|
5
5
|
embeds_one :characteristicCodeableConcept, class_name: 'FHIR::CodeableConcept'
|
6
|
-
embeds_one :
|
6
|
+
embeds_one :characteristicQuantity, class_name: 'FHIR::SimpleQuantity'
|
7
7
|
embeds_many :value, class_name: 'FHIR::PrimitiveString'
|
8
8
|
|
9
9
|
def as_json(*args)
|
@@ -11,8 +11,8 @@ module FHIR
|
|
11
11
|
unless self.characteristicCodeableConcept.nil?
|
12
12
|
result['characteristicCodeableConcept'] = self.characteristicCodeableConcept.as_json(*args)
|
13
13
|
end
|
14
|
-
unless self.
|
15
|
-
result['
|
14
|
+
unless self.characteristicQuantity.nil?
|
15
|
+
result['characteristicQuantity'] = self.characteristicQuantity.as_json(*args)
|
16
16
|
end
|
17
17
|
unless self.value.nil? || !self.value.any?
|
18
18
|
result['value'] = self.value.compact().map{ |x| x.value }
|
@@ -31,7 +31,7 @@ module FHIR
|
|
31
31
|
|
32
32
|
result = self.superclass.transform_json(json_hash, target)
|
33
33
|
result['characteristicCodeableConcept'] = CodeableConcept.transform_json(json_hash['characteristicCodeableConcept']) unless json_hash['characteristicCodeableConcept'].nil?
|
34
|
-
result['
|
34
|
+
result['characteristicQuantity'] = SimpleQuantity.transform_json(json_hash['characteristicQuantity']) unless json_hash['characteristicQuantity'].nil?
|
35
35
|
result['value'] = json_hash['value'].each_with_index.map do |var, i|
|
36
36
|
extension_hash = json_hash['_value'] && json_hash['_value'][i]
|
37
37
|
PrimitiveString.transform_json(var, extension_hash)
|
@@ -5,7 +5,7 @@ module FHIR
|
|
5
5
|
embeds_one :type, class_name: 'FHIR::CodeableConcept'
|
6
6
|
embeds_one :valueCodeableConcept, class_name: 'FHIR::CodeableConcept'
|
7
7
|
embeds_one :valueString, class_name: 'FHIR::PrimitiveString'
|
8
|
-
embeds_one :
|
8
|
+
embeds_one :valueQuantity, class_name: 'FHIR::SimpleQuantity'
|
9
9
|
embeds_one :valueBase64Binary, class_name: 'FHIR::PrimitiveBase64Binary'
|
10
10
|
|
11
11
|
def as_json(*args)
|
@@ -21,8 +21,8 @@ module FHIR
|
|
21
21
|
serialized = Extension.serializePrimitiveExtension(self.valueString)
|
22
22
|
result['_valueString'] = serialized unless serialized.nil?
|
23
23
|
end
|
24
|
-
unless self.
|
25
|
-
result['
|
24
|
+
unless self.valueQuantity.nil?
|
25
|
+
result['valueQuantity'] = self.valueQuantity.as_json(*args)
|
26
26
|
end
|
27
27
|
unless self.valueBase64Binary.nil?
|
28
28
|
result['valueBase64Binary'] = self.valueBase64Binary.value
|
@@ -43,7 +43,7 @@ module FHIR
|
|
43
43
|
result['type'] = CodeableConcept.transform_json(json_hash['type']) unless json_hash['type'].nil?
|
44
44
|
result['valueCodeableConcept'] = CodeableConcept.transform_json(json_hash['valueCodeableConcept']) unless json_hash['valueCodeableConcept'].nil?
|
45
45
|
result['valueString'] = PrimitiveString.transform_json(json_hash['valueString'], json_hash['_valueString']) unless json_hash['valueString'].nil?
|
46
|
-
result['
|
46
|
+
result['valueQuantity'] = SimpleQuantity.transform_json(json_hash['valueQuantity']) unless json_hash['valueQuantity'].nil?
|
47
47
|
result['valueBase64Binary'] = PrimitiveBase64Binary.transform_json(json_hash['valueBase64Binary'], json_hash['_valueBase64Binary']) unless json_hash['valueBase64Binary'].nil?
|
48
48
|
|
49
49
|
result
|
@@ -4,7 +4,7 @@ module FHIR
|
|
4
4
|
include Mongoid::Document
|
5
5
|
embeds_one :schedule, class_name: 'FHIR::Timing'
|
6
6
|
embeds_one :quantity, class_name: 'FHIR::SimpleQuantity'
|
7
|
-
embeds_one :
|
7
|
+
embeds_one :rateQuantity, class_name: 'FHIR::SimpleQuantity'
|
8
8
|
embeds_one :rateRatio, class_name: 'FHIR::Ratio'
|
9
9
|
|
10
10
|
def as_json(*args)
|
@@ -15,8 +15,8 @@ module FHIR
|
|
15
15
|
unless self.quantity.nil?
|
16
16
|
result['quantity'] = self.quantity.as_json(*args)
|
17
17
|
end
|
18
|
-
unless self.
|
19
|
-
result['
|
18
|
+
unless self.rateQuantity.nil?
|
19
|
+
result['rateQuantity'] = self.rateQuantity.as_json(*args)
|
20
20
|
end
|
21
21
|
unless self.rateRatio.nil?
|
22
22
|
result['rateRatio'] = self.rateRatio.as_json(*args)
|
@@ -34,7 +34,7 @@ module FHIR
|
|
34
34
|
result = self.superclass.transform_json(json_hash, target)
|
35
35
|
result['schedule'] = Timing.transform_json(json_hash['schedule']) unless json_hash['schedule'].nil?
|
36
36
|
result['quantity'] = SimpleQuantity.transform_json(json_hash['quantity']) unless json_hash['quantity'].nil?
|
37
|
-
result['
|
37
|
+
result['rateQuantity'] = SimpleQuantity.transform_json(json_hash['rateQuantity']) unless json_hash['rateQuantity'].nil?
|
38
38
|
result['rateRatio'] = Ratio.transform_json(json_hash['rateRatio']) unless json_hash['rateRatio'].nil?
|
39
39
|
|
40
40
|
result
|
data/app/models/fhir/resource.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module FHIR
|
2
2
|
# fhir/resource.rb
|
3
|
-
class Resource
|
3
|
+
class Resource < Type
|
4
4
|
include Mongoid::Document
|
5
5
|
field :id, type: String
|
6
6
|
embeds_one :meta, class_name: 'FHIR::Meta'
|
@@ -15,7 +15,7 @@ module FHIR
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def as_json(*args)
|
18
|
-
result =
|
18
|
+
result = super
|
19
19
|
unless self.id.nil?
|
20
20
|
result['id'] = self.id
|
21
21
|
end
|
@@ -51,7 +51,7 @@ module FHIR
|
|
51
51
|
return Object.const_get('FHIR::' + json_hash['resourceType']).transform_json(json_hash)
|
52
52
|
end
|
53
53
|
|
54
|
-
result = target
|
54
|
+
result = self.superclass.transform_json(json_hash, target)
|
55
55
|
result['fhirId'] = json_hash['id'] unless json_hash['id'].nil?
|
56
56
|
result['meta'] = Meta.transform_json(json_hash['meta']) unless json_hash['meta'].nil?
|
57
57
|
result['implicitRules'] = PrimitiveUri.transform_json(json_hash['implicitRules'], json_hash['_implicitRules']) unless json_hash['implicitRules'].nil?
|
@@ -7,7 +7,7 @@ module FHIR
|
|
7
7
|
embeds_one :cap, class_name: 'FHIR::CodeableConcept'
|
8
8
|
embeds_one :description, class_name: 'FHIR::PrimitiveString'
|
9
9
|
embeds_one :capacity, class_name: 'FHIR::SimpleQuantity'
|
10
|
-
embeds_one :
|
10
|
+
embeds_one :minimumVolumeQuantity, class_name: 'FHIR::SimpleQuantity'
|
11
11
|
embeds_one :minimumVolumeString, class_name: 'FHIR::PrimitiveString'
|
12
12
|
embeds_many :additive, class_name: 'FHIR::SpecimenDefinitionTypeTestedContainerAdditive'
|
13
13
|
embeds_one :preparation, class_name: 'FHIR::PrimitiveString'
|
@@ -31,8 +31,8 @@ module FHIR
|
|
31
31
|
unless self.capacity.nil?
|
32
32
|
result['capacity'] = self.capacity.as_json(*args)
|
33
33
|
end
|
34
|
-
unless self.
|
35
|
-
result['
|
34
|
+
unless self.minimumVolumeQuantity.nil?
|
35
|
+
result['minimumVolumeQuantity'] = self.minimumVolumeQuantity.as_json(*args)
|
36
36
|
end
|
37
37
|
unless self.minimumVolumeString.nil?
|
38
38
|
result['minimumVolumeString'] = self.minimumVolumeString.value
|
@@ -63,7 +63,7 @@ module FHIR
|
|
63
63
|
result['cap'] = CodeableConcept.transform_json(json_hash['cap']) unless json_hash['cap'].nil?
|
64
64
|
result['description'] = PrimitiveString.transform_json(json_hash['description'], json_hash['_description']) unless json_hash['description'].nil?
|
65
65
|
result['capacity'] = SimpleQuantity.transform_json(json_hash['capacity']) unless json_hash['capacity'].nil?
|
66
|
-
result['
|
66
|
+
result['minimumVolumeQuantity'] = SimpleQuantity.transform_json(json_hash['minimumVolumeQuantity']) unless json_hash['minimumVolumeQuantity'].nil?
|
67
67
|
result['minimumVolumeString'] = PrimitiveString.transform_json(json_hash['minimumVolumeString'], json_hash['_minimumVolumeString']) unless json_hash['minimumVolumeString'].nil?
|
68
68
|
result['additive'] = json_hash['additive'].map { |var| SpecimenDefinitionTypeTestedContainerAdditive.transform_json(var) } unless json_hash['additive'].nil?
|
69
69
|
result['preparation'] = PrimitiveString.transform_json(json_hash['preparation'], json_hash['_preparation']) unless json_hash['preparation'].nil?
|
data/fhir-mongoid-models.gemspec
CHANGED
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |spec|
|
5
5
|
spec.name = 'fhir-mongoid-models'
|
6
|
-
spec.version = '0.0.
|
6
|
+
spec.version = '0.0.4'
|
7
7
|
spec.authors = ['Andrew Bird', 'Ashok Dongare', 'Joseph Kotanchik', 'Serhii Ilin', 'Matthew Gifford', 'Daniel Mee']
|
8
8
|
spec.email = %w[andrew.bird@semanticbits.com ashok.dongare@semanticbits.com joseph.kotanchik@semanticbits.com serhii.ilin@semanticbits.com matthew.gifford@semanticbits.com daniel.mee@semanticbits.com]
|
9
9
|
|
data/lib/ext/fhir/library.rb
CHANGED
@@ -2,14 +2,24 @@
|
|
2
2
|
module FHIR
|
3
3
|
class Library < DomainResource
|
4
4
|
|
5
|
-
def create_data_elements(
|
5
|
+
def create_data_elements(value_sets)
|
6
6
|
dataRequirement.map do |data_req|
|
7
7
|
type = data_req.type.value
|
8
|
-
oid =
|
9
|
-
|
10
|
-
|
8
|
+
oid, title =
|
9
|
+
# for ValueSets
|
10
|
+
if data_req.codeFilter&.first&.valueSet?
|
11
|
+
oid = data_req.codeFilter.first&.valueSet&.value&.match(/([0-2])((\.0)|(\.[1-9][0-9]*))*$/).to_s
|
12
|
+
value_set = value_sets.find{ |vs| vs.fhirId == oid }
|
13
|
+
title = value_set&.name&.value
|
14
|
+
[oid, title]
|
15
|
+
# for DRCs
|
16
|
+
elsif data_req.codeFilter&.first&.code?
|
17
|
+
title = data_req.codeFilter.first.code.first.display.value
|
18
|
+
value_set = value_sets.find{ |vs| vs.name.value == title }
|
19
|
+
oid = value_set.fhirId
|
20
|
+
[oid, title]
|
21
|
+
end
|
11
22
|
description = "#{type}: #{title}"
|
12
|
-
|
13
23
|
CQM::DataElement.new(
|
14
24
|
codeListId: oid,
|
15
25
|
valueSetTitle: title,
|
data/package-lock.json
CHANGED
@@ -4,16 +4,114 @@
|
|
4
4
|
"lockfileVersion": 1,
|
5
5
|
"requires": true,
|
6
6
|
"dependencies": {
|
7
|
+
"@dabh/diagnostics": {
|
8
|
+
"version": "2.0.2",
|
9
|
+
"resolved": "https://registry.npmjs.org/@dabh/diagnostics/-/diagnostics-2.0.2.tgz",
|
10
|
+
"integrity": "sha512-+A1YivoVDNNVCdfozHSR8v/jyuuLTMXwjWuxPFlFlUapXoGc+Gj9mDlTDDfrwl7rXCl2tNZ0kE8sIBO6YOn96Q==",
|
11
|
+
"dev": true,
|
12
|
+
"requires": {
|
13
|
+
"colorspace": "1.1.x",
|
14
|
+
"enabled": "2.0.x",
|
15
|
+
"kuler": "^2.0.0"
|
16
|
+
}
|
17
|
+
},
|
18
|
+
"async": {
|
19
|
+
"version": "3.2.0",
|
20
|
+
"resolved": "https://registry.npmjs.org/async/-/async-3.2.0.tgz",
|
21
|
+
"integrity": "sha512-TR2mEZFVOj2pLStYxLht7TyfuRzaydfpxr3k9RpHIzMgw7A64dzsdqCxH1WJyQdoe8T10nDXd9wnEigmiuHIZw==",
|
22
|
+
"dev": true
|
23
|
+
},
|
24
|
+
"color": {
|
25
|
+
"version": "3.0.0",
|
26
|
+
"resolved": "https://registry.npmjs.org/color/-/color-3.0.0.tgz",
|
27
|
+
"integrity": "sha512-jCpd5+s0s0t7p3pHQKpnJ0TpQKKdleP71LWcA0aqiljpiuAkOSUFN/dyH8ZwF0hRmFlrIuRhufds1QyEP9EB+w==",
|
28
|
+
"dev": true,
|
29
|
+
"requires": {
|
30
|
+
"color-convert": "^1.9.1",
|
31
|
+
"color-string": "^1.5.2"
|
32
|
+
}
|
33
|
+
},
|
34
|
+
"color-convert": {
|
35
|
+
"version": "1.9.3",
|
36
|
+
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
|
37
|
+
"integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
|
38
|
+
"dev": true,
|
39
|
+
"requires": {
|
40
|
+
"color-name": "1.1.3"
|
41
|
+
}
|
42
|
+
},
|
43
|
+
"color-name": {
|
44
|
+
"version": "1.1.3",
|
45
|
+
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
|
46
|
+
"integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=",
|
47
|
+
"dev": true
|
48
|
+
},
|
49
|
+
"color-string": {
|
50
|
+
"version": "1.5.5",
|
51
|
+
"resolved": "https://registry.npmjs.org/color-string/-/color-string-1.5.5.tgz",
|
52
|
+
"integrity": "sha512-jgIoum0OfQfq9Whcfc2z/VhCNcmQjWbey6qBX0vqt7YICflUmBCh9E9CiQD5GSJ+Uehixm3NUwHVhqUAWRivZg==",
|
53
|
+
"dev": true,
|
54
|
+
"requires": {
|
55
|
+
"color-name": "^1.0.0",
|
56
|
+
"simple-swizzle": "^0.2.2"
|
57
|
+
}
|
58
|
+
},
|
59
|
+
"colors": {
|
60
|
+
"version": "1.4.0",
|
61
|
+
"resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz",
|
62
|
+
"integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==",
|
63
|
+
"dev": true
|
64
|
+
},
|
65
|
+
"colorspace": {
|
66
|
+
"version": "1.1.2",
|
67
|
+
"resolved": "https://registry.npmjs.org/colorspace/-/colorspace-1.1.2.tgz",
|
68
|
+
"integrity": "sha512-vt+OoIP2d76xLhjwbBaucYlNSpPsrJWPlBTtwCpQKIu6/CSMutyzX93O/Do0qzpH3YoHEes8YEFXyZ797rEhzQ==",
|
69
|
+
"dev": true,
|
70
|
+
"requires": {
|
71
|
+
"color": "3.0.x",
|
72
|
+
"text-hex": "1.0.x"
|
73
|
+
}
|
74
|
+
},
|
7
75
|
"commander": {
|
8
|
-
"version": "
|
9
|
-
"resolved": "https://registry.npmjs.org/commander/-/commander-
|
10
|
-
"integrity": "sha512-
|
76
|
+
"version": "7.1.0",
|
77
|
+
"resolved": "https://registry.npmjs.org/commander/-/commander-7.1.0.tgz",
|
78
|
+
"integrity": "sha512-pRxBna3MJe6HKnBGsDyMv8ETbptw3axEdYHoqNh7gu5oDcew8fs0xnivZGm06Ogk8zGAJ9VX+OPEr2GXEQK4dg==",
|
79
|
+
"dev": true
|
80
|
+
},
|
81
|
+
"core-util-is": {
|
82
|
+
"version": "1.0.2",
|
83
|
+
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
|
84
|
+
"integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=",
|
85
|
+
"dev": true
|
86
|
+
},
|
87
|
+
"enabled": {
|
88
|
+
"version": "2.0.0",
|
89
|
+
"resolved": "https://registry.npmjs.org/enabled/-/enabled-2.0.0.tgz",
|
90
|
+
"integrity": "sha512-AKrN98kuwOzMIdAizXGI86UFBoo26CL21UM763y1h/GMSJ4/OHU9k2YlsmBpyScFo/wbLzWQJBMCW4+IO3/+OQ==",
|
91
|
+
"dev": true
|
92
|
+
},
|
93
|
+
"fast-safe-stringify": {
|
94
|
+
"version": "2.0.7",
|
95
|
+
"resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.0.7.tgz",
|
96
|
+
"integrity": "sha512-Utm6CdzT+6xsDk2m8S6uL8VHxNwI6Jub+e9NYTcAms28T84pTa25GJQV9j0CY0N1rM8hK4x6grpF2BQf+2qwVA==",
|
97
|
+
"dev": true
|
98
|
+
},
|
99
|
+
"fecha": {
|
100
|
+
"version": "4.2.0",
|
101
|
+
"resolved": "https://registry.npmjs.org/fecha/-/fecha-4.2.0.tgz",
|
102
|
+
"integrity": "sha512-aN3pcx/DSmtyoovUudctc8+6Hl4T+hI9GBBHLjA76jdZl7+b1sgh5g4k+u/GL3dTy1/pnYzKp69FpJ0OicE3Wg==",
|
103
|
+
"dev": true
|
104
|
+
},
|
105
|
+
"fn.name": {
|
106
|
+
"version": "1.1.0",
|
107
|
+
"resolved": "https://registry.npmjs.org/fn.name/-/fn.name-1.1.0.tgz",
|
108
|
+
"integrity": "sha512-GRnmB5gPyJpAhTQdSZTSp9uaPSvl09KoYcMQtsB9rQoOmzs9dH6ffeccH+Z+cv6P68Hu5bC6JjRh4Ah/mHSNRw==",
|
11
109
|
"dev": true
|
12
110
|
},
|
13
111
|
"handlebars": {
|
14
|
-
"version": "4.7.
|
15
|
-
"resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.
|
16
|
-
"integrity": "sha512-
|
112
|
+
"version": "4.7.7",
|
113
|
+
"resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz",
|
114
|
+
"integrity": "sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==",
|
17
115
|
"dev": true,
|
18
116
|
"requires": {
|
19
117
|
"minimist": "^1.2.5",
|
@@ -23,12 +121,55 @@
|
|
23
121
|
"wordwrap": "^1.0.0"
|
24
122
|
}
|
25
123
|
},
|
124
|
+
"inherits": {
|
125
|
+
"version": "2.0.4",
|
126
|
+
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
127
|
+
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
|
128
|
+
"dev": true
|
129
|
+
},
|
130
|
+
"is-arrayish": {
|
131
|
+
"version": "0.3.2",
|
132
|
+
"resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz",
|
133
|
+
"integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==",
|
134
|
+
"dev": true
|
135
|
+
},
|
136
|
+
"is-stream": {
|
137
|
+
"version": "2.0.0",
|
138
|
+
"resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz",
|
139
|
+
"integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==",
|
140
|
+
"dev": true
|
141
|
+
},
|
142
|
+
"isarray": {
|
143
|
+
"version": "1.0.0",
|
144
|
+
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
|
145
|
+
"integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=",
|
146
|
+
"dev": true
|
147
|
+
},
|
148
|
+
"kuler": {
|
149
|
+
"version": "2.0.0",
|
150
|
+
"resolved": "https://registry.npmjs.org/kuler/-/kuler-2.0.0.tgz",
|
151
|
+
"integrity": "sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A==",
|
152
|
+
"dev": true
|
153
|
+
},
|
26
154
|
"lodash": {
|
27
|
-
"version": "4.17.
|
28
|
-
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.
|
29
|
-
"integrity": "sha512-
|
155
|
+
"version": "4.17.21",
|
156
|
+
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
157
|
+
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
|
30
158
|
"dev": true
|
31
159
|
},
|
160
|
+
"logform": {
|
161
|
+
"version": "2.2.0",
|
162
|
+
"resolved": "https://registry.npmjs.org/logform/-/logform-2.2.0.tgz",
|
163
|
+
"integrity": "sha512-N0qPlqfypFx7UHNn4B3lzS/b0uLqt2hmuoa+PpuXNYgozdJYAyauF5Ky0BWVjrxDlMWiT3qN4zPq3vVAfZy7Yg==",
|
164
|
+
"dev": true,
|
165
|
+
"requires": {
|
166
|
+
"colors": "^1.2.1",
|
167
|
+
"fast-safe-stringify": "^2.0.4",
|
168
|
+
"fecha": "^4.2.0",
|
169
|
+
"ms": "^2.1.1",
|
170
|
+
"triple-beam": "^1.3.0"
|
171
|
+
}
|
172
|
+
},
|
32
173
|
"minimist": {
|
33
174
|
"version": "1.2.5",
|
34
175
|
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
|
@@ -36,21 +177,67 @@
|
|
36
177
|
"dev": true
|
37
178
|
},
|
38
179
|
"model-info-parser": {
|
39
|
-
"version": "
|
40
|
-
"resolved": "https://registry.npmjs.org/model-info-parser/-/model-info-parser-
|
41
|
-
"integrity": "sha512
|
180
|
+
"version": "1.0.7",
|
181
|
+
"resolved": "https://registry.npmjs.org/model-info-parser/-/model-info-parser-1.0.7.tgz",
|
182
|
+
"integrity": "sha512-OE2k7vow+4krvXwd2CWGnu4NMxYJUxFel2fNbBQwPLSMpf+NwCPw/PwqbxqVFFdpJS3OX4nqJ+KjhhzGJFGf/g==",
|
42
183
|
"dev": true,
|
43
184
|
"requires": {
|
44
|
-
"commander": "^
|
185
|
+
"commander": "^7.0.0",
|
45
186
|
"handlebars": "^4.7.6",
|
46
|
-
"lodash": "^4.17.
|
187
|
+
"lodash": "^4.17.21",
|
188
|
+
"reflect-metadata": "^0.1.13",
|
189
|
+
"winston": "^3.3.3",
|
47
190
|
"xml2js": "^0.4.23"
|
48
191
|
}
|
49
192
|
},
|
193
|
+
"ms": {
|
194
|
+
"version": "2.1.3",
|
195
|
+
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
196
|
+
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
|
197
|
+
"dev": true
|
198
|
+
},
|
50
199
|
"neo-async": {
|
51
|
-
"version": "2.6.
|
52
|
-
"resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.
|
53
|
-
"integrity": "sha512-
|
200
|
+
"version": "2.6.2",
|
201
|
+
"resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz",
|
202
|
+
"integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==",
|
203
|
+
"dev": true
|
204
|
+
},
|
205
|
+
"one-time": {
|
206
|
+
"version": "1.0.0",
|
207
|
+
"resolved": "https://registry.npmjs.org/one-time/-/one-time-1.0.0.tgz",
|
208
|
+
"integrity": "sha512-5DXOiRKwuSEcQ/l0kGCF6Q3jcADFv5tSmRaJck/OqkVFcOzutB134KRSfF0xDrL39MNnqxbHBbUUcjZIhTgb2g==",
|
209
|
+
"dev": true,
|
210
|
+
"requires": {
|
211
|
+
"fn.name": "1.x.x"
|
212
|
+
}
|
213
|
+
},
|
214
|
+
"process-nextick-args": {
|
215
|
+
"version": "2.0.1",
|
216
|
+
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
|
217
|
+
"integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==",
|
218
|
+
"dev": true
|
219
|
+
},
|
220
|
+
"readable-stream": {
|
221
|
+
"version": "3.6.0",
|
222
|
+
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz",
|
223
|
+
"integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==",
|
224
|
+
"dev": true,
|
225
|
+
"requires": {
|
226
|
+
"inherits": "^2.0.3",
|
227
|
+
"string_decoder": "^1.1.1",
|
228
|
+
"util-deprecate": "^1.0.1"
|
229
|
+
}
|
230
|
+
},
|
231
|
+
"reflect-metadata": {
|
232
|
+
"version": "0.1.13",
|
233
|
+
"resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.13.tgz",
|
234
|
+
"integrity": "sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg==",
|
235
|
+
"dev": true
|
236
|
+
},
|
237
|
+
"safe-buffer": {
|
238
|
+
"version": "5.2.1",
|
239
|
+
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
240
|
+
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
|
54
241
|
"dev": true
|
55
242
|
},
|
56
243
|
"sax": {
|
@@ -59,28 +246,117 @@
|
|
59
246
|
"integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==",
|
60
247
|
"dev": true
|
61
248
|
},
|
249
|
+
"simple-swizzle": {
|
250
|
+
"version": "0.2.2",
|
251
|
+
"resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz",
|
252
|
+
"integrity": "sha1-pNprY1/8zMoz9w0Xy5JZLeleVXo=",
|
253
|
+
"dev": true,
|
254
|
+
"requires": {
|
255
|
+
"is-arrayish": "^0.3.1"
|
256
|
+
}
|
257
|
+
},
|
62
258
|
"source-map": {
|
63
259
|
"version": "0.6.1",
|
64
260
|
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
|
65
261
|
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
|
66
262
|
"dev": true
|
67
263
|
},
|
264
|
+
"stack-trace": {
|
265
|
+
"version": "0.0.10",
|
266
|
+
"resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.10.tgz",
|
267
|
+
"integrity": "sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA=",
|
268
|
+
"dev": true
|
269
|
+
},
|
270
|
+
"string_decoder": {
|
271
|
+
"version": "1.3.0",
|
272
|
+
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
|
273
|
+
"integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
|
274
|
+
"dev": true,
|
275
|
+
"requires": {
|
276
|
+
"safe-buffer": "~5.2.0"
|
277
|
+
}
|
278
|
+
},
|
279
|
+
"text-hex": {
|
280
|
+
"version": "1.0.0",
|
281
|
+
"resolved": "https://registry.npmjs.org/text-hex/-/text-hex-1.0.0.tgz",
|
282
|
+
"integrity": "sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg==",
|
283
|
+
"dev": true
|
284
|
+
},
|
285
|
+
"triple-beam": {
|
286
|
+
"version": "1.3.0",
|
287
|
+
"resolved": "https://registry.npmjs.org/triple-beam/-/triple-beam-1.3.0.tgz",
|
288
|
+
"integrity": "sha512-XrHUvV5HpdLmIj4uVMxHggLbFSZYIn7HEWsqePZcI50pco+MPqJ50wMGY794X7AOOhxOBAjbkqfAbEe/QMp2Lw==",
|
289
|
+
"dev": true
|
290
|
+
},
|
68
291
|
"uglify-js": {
|
69
|
-
"version": "3.
|
70
|
-
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.
|
71
|
-
"integrity": "sha512-
|
292
|
+
"version": "3.13.1",
|
293
|
+
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.13.1.tgz",
|
294
|
+
"integrity": "sha512-EWhx3fHy3M9JbaeTnO+rEqzCe1wtyQClv6q3YWq0voOj4E+bMZBErVS1GAHPDiRGONYq34M1/d8KuQMgvi6Gjw==",
|
295
|
+
"dev": true,
|
296
|
+
"optional": true
|
297
|
+
},
|
298
|
+
"util-deprecate": {
|
299
|
+
"version": "1.0.2",
|
300
|
+
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
|
301
|
+
"integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
|
302
|
+
"dev": true
|
303
|
+
},
|
304
|
+
"winston": {
|
305
|
+
"version": "3.3.3",
|
306
|
+
"resolved": "https://registry.npmjs.org/winston/-/winston-3.3.3.tgz",
|
307
|
+
"integrity": "sha512-oEXTISQnC8VlSAKf1KYSSd7J6IWuRPQqDdo8eoRNaYKLvwSb5+79Z3Yi1lrl6KDpU6/VWaxpakDAtb1oQ4n9aw==",
|
72
308
|
"dev": true,
|
73
|
-
"optional": true,
|
74
309
|
"requires": {
|
75
|
-
"
|
310
|
+
"@dabh/diagnostics": "^2.0.2",
|
311
|
+
"async": "^3.1.0",
|
312
|
+
"is-stream": "^2.0.0",
|
313
|
+
"logform": "^2.2.0",
|
314
|
+
"one-time": "^1.0.0",
|
315
|
+
"readable-stream": "^3.4.0",
|
316
|
+
"stack-trace": "0.0.x",
|
317
|
+
"triple-beam": "^1.3.0",
|
318
|
+
"winston-transport": "^4.4.0"
|
319
|
+
}
|
320
|
+
},
|
321
|
+
"winston-transport": {
|
322
|
+
"version": "4.4.0",
|
323
|
+
"resolved": "https://registry.npmjs.org/winston-transport/-/winston-transport-4.4.0.tgz",
|
324
|
+
"integrity": "sha512-Lc7/p3GtqtqPBYYtS6KCN3c77/2QCev51DvcJKbkFPQNoj1sinkGwLGFDxkXY9J6p9+EPnYs+D90uwbnaiURTw==",
|
325
|
+
"dev": true,
|
326
|
+
"requires": {
|
327
|
+
"readable-stream": "^2.3.7",
|
328
|
+
"triple-beam": "^1.2.0"
|
76
329
|
},
|
77
330
|
"dependencies": {
|
78
|
-
"
|
79
|
-
"version": "2.
|
80
|
-
"resolved": "https://registry.npmjs.org/
|
81
|
-
"integrity": "sha512-
|
331
|
+
"readable-stream": {
|
332
|
+
"version": "2.3.7",
|
333
|
+
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz",
|
334
|
+
"integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==",
|
335
|
+
"dev": true,
|
336
|
+
"requires": {
|
337
|
+
"core-util-is": "~1.0.0",
|
338
|
+
"inherits": "~2.0.3",
|
339
|
+
"isarray": "~1.0.0",
|
340
|
+
"process-nextick-args": "~2.0.0",
|
341
|
+
"safe-buffer": "~5.1.1",
|
342
|
+
"string_decoder": "~1.1.1",
|
343
|
+
"util-deprecate": "~1.0.1"
|
344
|
+
}
|
345
|
+
},
|
346
|
+
"safe-buffer": {
|
347
|
+
"version": "5.1.2",
|
348
|
+
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
|
349
|
+
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
|
350
|
+
"dev": true
|
351
|
+
},
|
352
|
+
"string_decoder": {
|
353
|
+
"version": "1.1.1",
|
354
|
+
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
|
355
|
+
"integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
|
82
356
|
"dev": true,
|
83
|
-
"
|
357
|
+
"requires": {
|
358
|
+
"safe-buffer": "~5.1.0"
|
359
|
+
}
|
84
360
|
}
|
85
361
|
}
|
86
362
|
},
|
data/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "fhir-mongoid-models",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.4",
|
4
4
|
"description": "This is a library containing Ruby Mongoid models that conform to the FHIR specification. Its code is generated using the model-info-parser utility",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -14,7 +14,7 @@
|
|
14
14
|
"license": "CC0-1.0",
|
15
15
|
"dependencies": {},
|
16
16
|
"devDependencies": {
|
17
|
-
"model-info-parser": "^
|
17
|
+
"model-info-parser": "^1.0.7"
|
18
18
|
},
|
19
19
|
"contributors": [
|
20
20
|
"Andrew Bird <andrew.bird@semanticbits.com>",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fhir-mongoid-models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Bird
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: exe
|
15
15
|
cert_chain: []
|
16
|
-
date:
|
16
|
+
date: 2021-03-23 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: bundler
|
@@ -129,7 +129,6 @@ files:
|
|
129
129
|
- ".editorconfig"
|
130
130
|
- ".github/CODEOWNERS"
|
131
131
|
- ".github/workflows/build.yml"
|
132
|
-
- ".github/workflows/rubygems-publish.yml"
|
133
132
|
- ".gitignore"
|
134
133
|
- ".rspec"
|
135
134
|
- ".rubocop.yml"
|
@@ -1105,8 +1104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1105
1104
|
- !ruby/object:Gem::Version
|
1106
1105
|
version: '0'
|
1107
1106
|
requirements: []
|
1108
|
-
|
1109
|
-
rubygems_version: 2.6.14.4
|
1107
|
+
rubygems_version: 3.1.4
|
1110
1108
|
signing_key:
|
1111
1109
|
specification_version: 4
|
1112
1110
|
summary: Mongo models that correspond to the FHIR specification.
|
@@ -1,64 +0,0 @@
|
|
1
|
-
name: Publish Gem
|
2
|
-
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
branches:
|
6
|
-
- "*"
|
7
|
-
tags:
|
8
|
-
- v*
|
9
|
-
jobs:
|
10
|
-
build:
|
11
|
-
|
12
|
-
runs-on: ubuntu-latest
|
13
|
-
|
14
|
-
services:
|
15
|
-
mongodb:
|
16
|
-
image: mongo:3.4.23
|
17
|
-
ports:
|
18
|
-
- 27017:27017
|
19
|
-
|
20
|
-
steps:
|
21
|
-
- uses: actions/checkout@v2
|
22
|
-
|
23
|
-
- name: Set up Ruby 2.4
|
24
|
-
uses: actions/setup-ruby@v1
|
25
|
-
with:
|
26
|
-
ruby-version: 2.4
|
27
|
-
|
28
|
-
- name: Install bundler & bundle-audit
|
29
|
-
run: |
|
30
|
-
gem install bundler -v 2.1.4
|
31
|
-
gem install bundle-audit
|
32
|
-
|
33
|
-
- name: Install ruby gems
|
34
|
-
run: bundle install --jobs 4 --retry 3
|
35
|
-
|
36
|
-
- name: Build and test with Rake
|
37
|
-
env:
|
38
|
-
RAILS_ENV: test
|
39
|
-
run: |
|
40
|
-
bundle exec rubocop
|
41
|
-
bundle exec bundle-audit update && bundle exec bundle-audit check
|
42
|
-
bundle exec rake
|
43
|
-
|
44
|
-
- name: Release Gem
|
45
|
-
if: contains(github.ref, 'refs/tags/v')
|
46
|
-
run: |
|
47
|
-
echo "Setting up gem credentials..."
|
48
|
-
set +x
|
49
|
-
mkdir -p ~/.gem
|
50
|
-
|
51
|
-
cat << EOF > ~/.gem/credentials
|
52
|
-
---
|
53
|
-
:github: Bearer ${GITHUB_TOKEN}
|
54
|
-
:rubygems_api_key: ${RUBYGEMS_API_KEY}
|
55
|
-
EOF
|
56
|
-
|
57
|
-
chmod 0600 ~/.gem/credentials
|
58
|
-
set -x
|
59
|
-
|
60
|
-
echo "Running gem release task..."
|
61
|
-
bundle exec rake release
|
62
|
-
env:
|
63
|
-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
64
|
-
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
|