fhir_dstu2_models 1.1.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +1 -1
  3. data/.github/workflows/ruby.yml +2 -1
  4. data/.rubocop.yml +7 -1
  5. data/.rubocop_todo.yml +56 -161
  6. data/.ruby-version +1 -0
  7. data/.simplecov +1 -5
  8. data/.tool-versions +1 -0
  9. data/Gemfile.lock +37 -35
  10. data/Guardfile +1 -1
  11. data/fhir_dstu2_models.gemspec +2 -1
  12. data/lib/fhir_dstu2_models/bootstrap/definitions.rb +18 -4
  13. data/lib/fhir_dstu2_models/bootstrap/field.rb +2 -2
  14. data/lib/fhir_dstu2_models/bootstrap/generator.rb +6 -4
  15. data/lib/fhir_dstu2_models/bootstrap/hashable.rb +6 -5
  16. data/lib/fhir_dstu2_models/bootstrap/json.rb +2 -2
  17. data/lib/fhir_dstu2_models/bootstrap/model.rb +45 -32
  18. data/lib/fhir_dstu2_models/bootstrap/preprocess.rb +19 -11
  19. data/lib/fhir_dstu2_models/bootstrap/xml.rb +9 -7
  20. data/lib/fhir_dstu2_models/deprecate.rb +1 -0
  21. data/lib/fhir_dstu2_models/fhir/metadata.rb +19 -21
  22. data/lib/fhir_dstu2_models/fhir/resources/Account.rb +20 -20
  23. data/lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb +34 -34
  24. data/lib/fhir_dstu2_models/fhir/resources/Appointment.rb +28 -28
  25. data/lib/fhir_dstu2_models/fhir/resources/AppointmentResponse.rb +17 -17
  26. data/lib/fhir_dstu2_models/fhir/resources/AuditEvent.rb +66 -66
  27. data/lib/fhir_dstu2_models/fhir/resources/Basic.rb +14 -14
  28. data/lib/fhir_dstu2_models/fhir/resources/Binary.rb +7 -7
  29. data/lib/fhir_dstu2_models/fhir/resources/BodySite.rb +15 -15
  30. data/lib/fhir_dstu2_models/fhir/resources/Bundle.rb +45 -45
  31. data/lib/fhir_dstu2_models/fhir/resources/CarePlan.rb +63 -63
  32. data/lib/fhir_dstu2_models/fhir/resources/Claim.rb +118 -118
  33. data/lib/fhir_dstu2_models/fhir/resources/ClaimResponse.rb +122 -124
  34. data/lib/fhir_dstu2_models/fhir/resources/ClinicalImpression.rb +42 -42
  35. data/lib/fhir_dstu2_models/fhir/resources/Communication.rb +28 -28
  36. data/lib/fhir_dstu2_models/fhir/resources/CommunicationRequest.rb +30 -30
  37. data/lib/fhir_dstu2_models/fhir/resources/Composition.rb +46 -46
  38. data/lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb +53 -53
  39. data/lib/fhir_dstu2_models/fhir/resources/Condition.rb +44 -44
  40. data/lib/fhir_dstu2_models/fhir/resources/Conformance.rb +138 -138
  41. data/lib/fhir_dstu2_models/fhir/resources/Contract.rb +98 -98
  42. data/lib/fhir_dstu2_models/fhir/resources/Coverage.rb +23 -23
  43. data/lib/fhir_dstu2_models/fhir/resources/DataElement.rb +35 -35
  44. data/lib/fhir_dstu2_models/fhir/resources/DetectedIssue.rb +25 -25
  45. data/lib/fhir_dstu2_models/fhir/resources/Device.rb +25 -25
  46. data/lib/fhir_dstu2_models/fhir/resources/DeviceComponent.rb +25 -25
  47. data/lib/fhir_dstu2_models/fhir/resources/DeviceMetric.rb +25 -25
  48. data/lib/fhir_dstu2_models/fhir/resources/DeviceUseRequest.rb +25 -25
  49. data/lib/fhir_dstu2_models/fhir/resources/DeviceUseStatement.rb +21 -21
  50. data/lib/fhir_dstu2_models/fhir/resources/DiagnosticOrder.rb +36 -36
  51. data/lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb +32 -32
  52. data/lib/fhir_dstu2_models/fhir/resources/DocumentManifest.rb +31 -31
  53. data/lib/fhir_dstu2_models/fhir/resources/DocumentReference.rb +51 -51
  54. data/lib/fhir_dstu2_models/fhir/resources/DomainResource.rb +12 -12
  55. data/lib/fhir_dstu2_models/fhir/resources/EligibilityRequest.rb +16 -16
  56. data/lib/fhir_dstu2_models/fhir/resources/EligibilityResponse.rb +19 -19
  57. data/lib/fhir_dstu2_models/fhir/resources/Encounter.rb +59 -59
  58. data/lib/fhir_dstu2_models/fhir/resources/EnrollmentRequest.rb +19 -19
  59. data/lib/fhir_dstu2_models/fhir/resources/EnrollmentResponse.rb +19 -19
  60. data/lib/fhir_dstu2_models/fhir/resources/EpisodeOfCare.rb +31 -31
  61. data/lib/fhir_dstu2_models/fhir/resources/ExplanationOfBenefit.rb +19 -19
  62. data/lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb +39 -39
  63. data/lib/fhir_dstu2_models/fhir/resources/Flag.rb +17 -17
  64. data/lib/fhir_dstu2_models/fhir/resources/Goal.rb +30 -30
  65. data/lib/fhir_dstu2_models/fhir/resources/Group.rb +33 -33
  66. data/lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb +48 -48
  67. data/lib/fhir_dstu2_models/fhir/resources/ImagingObjectSelection.rb +41 -41
  68. data/lib/fhir_dstu2_models/fhir/resources/ImagingStudy.rb +48 -48
  69. data/lib/fhir_dstu2_models/fhir/resources/Immunization.rb +52 -52
  70. data/lib/fhir_dstu2_models/fhir/resources/ImmunizationRecommendation.rb +35 -35
  71. data/lib/fhir_dstu2_models/fhir/resources/ImplementationGuide.rb +67 -67
  72. data/lib/fhir_dstu2_models/fhir/resources/List.rb +29 -29
  73. data/lib/fhir_dstu2_models/fhir/resources/Location.rb +27 -27
  74. data/lib/fhir_dstu2_models/fhir/resources/Media.rb +21 -21
  75. data/lib/fhir_dstu2_models/fhir/resources/Medication.rb +40 -40
  76. data/lib/fhir_dstu2_models/fhir/resources/MedicationAdministration.rb +36 -36
  77. data/lib/fhir_dstu2_models/fhir/resources/MedicationDispense.rb +49 -49
  78. data/lib/fhir_dstu2_models/fhir/resources/MedicationOrder.rb +57 -57
  79. data/lib/fhir_dstu2_models/fhir/resources/MedicationStatement.rb +41 -41
  80. data/lib/fhir_dstu2_models/fhir/resources/MessageHeader.rb +40 -40
  81. data/lib/fhir_dstu2_models/fhir/resources/NamingSystem.rb +34 -34
  82. data/lib/fhir_dstu2_models/fhir/resources/NutritionOrder.rb +67 -67
  83. data/lib/fhir_dstu2_models/fhir/resources/Observation.rb +68 -68
  84. data/lib/fhir_dstu2_models/fhir/resources/OperationDefinition.rb +51 -51
  85. data/lib/fhir_dstu2_models/fhir/resources/OperationOutcome.rb +21 -21
  86. data/lib/fhir_dstu2_models/fhir/resources/Order.rb +23 -23
  87. data/lib/fhir_dstu2_models/fhir/resources/OrderResponse.rb +16 -16
  88. data/lib/fhir_dstu2_models/fhir/resources/Organization.rb +24 -24
  89. data/lib/fhir_dstu2_models/fhir/resources/Parameters.rb +48 -48
  90. data/lib/fhir_dstu2_models/fhir/resources/Patient.rb +54 -54
  91. data/lib/fhir_dstu2_models/fhir/resources/PaymentNotice.rb +19 -19
  92. data/lib/fhir_dstu2_models/fhir/resources/PaymentReconciliation.rb +39 -39
  93. data/lib/fhir_dstu2_models/fhir/resources/Person.rb +24 -24
  94. data/lib/fhir_dstu2_models/fhir/resources/Practitioner.rb +36 -36
  95. data/lib/fhir_dstu2_models/fhir/resources/Procedure.rb +42 -42
  96. data/lib/fhir_dstu2_models/fhir/resources/ProcedureRequest.rb +27 -27
  97. data/lib/fhir_dstu2_models/fhir/resources/ProcessRequest.rb +29 -29
  98. data/lib/fhir_dstu2_models/fhir/resources/ProcessResponse.rb +27 -27
  99. data/lib/fhir_dstu2_models/fhir/resources/Provenance.rb +39 -39
  100. data/lib/fhir_dstu2_models/fhir/resources/Questionnaire.rb +40 -40
  101. data/lib/fhir_dstu2_models/fhir/resources/QuestionnaireResponse.rb +50 -50
  102. data/lib/fhir_dstu2_models/fhir/resources/ReferralRequest.rb +25 -25
  103. data/lib/fhir_dstu2_models/fhir/resources/RelatedPerson.rb +19 -19
  104. data/lib/fhir_dstu2_models/fhir/resources/Resource.rb +5 -5
  105. data/lib/fhir_dstu2_models/fhir/resources/RiskAssessment.rb +30 -30
  106. data/lib/fhir_dstu2_models/fhir/resources/Schedule.rb +14 -14
  107. data/lib/fhir_dstu2_models/fhir/resources/SearchParameter.rb +29 -29
  108. data/lib/fhir_dstu2_models/fhir/resources/Slot.rb +17 -17
  109. data/lib/fhir_dstu2_models/fhir/resources/Specimen.rb +45 -45
  110. data/lib/fhir_dstu2_models/fhir/resources/StructureDefinition.rb +54 -54
  111. data/lib/fhir_dstu2_models/fhir/resources/Subscription.rb +24 -24
  112. data/lib/fhir_dstu2_models/fhir/resources/Substance.rb +26 -26
  113. data/lib/fhir_dstu2_models/fhir/resources/SupplyDelivery.rb +20 -20
  114. data/lib/fhir_dstu2_models/fhir/resources/SupplyRequest.rb +25 -25
  115. data/lib/fhir_dstu2_models/fhir/resources/TestScript.rb +140 -140
  116. data/lib/fhir_dstu2_models/fhir/resources/ValueSet.rb +108 -108
  117. data/lib/fhir_dstu2_models/fhir/resources/VisionPrescription.rb +35 -35
  118. data/lib/fhir_dstu2_models/fhir/types/Address.rb +16 -16
  119. data/lib/fhir_dstu2_models/fhir/types/Annotation.rb +10 -10
  120. data/lib/fhir_dstu2_models/fhir/types/Attachment.rb +14 -14
  121. data/lib/fhir_dstu2_models/fhir/types/BackboneElement.rb +7 -7
  122. data/lib/fhir_dstu2_models/fhir/types/CodeableConcept.rb +8 -8
  123. data/lib/fhir_dstu2_models/fhir/types/Coding.rb +11 -11
  124. data/lib/fhir_dstu2_models/fhir/types/ContactPoint.rb +11 -11
  125. data/lib/fhir_dstu2_models/fhir/types/Element.rb +3 -3
  126. data/lib/fhir_dstu2_models/fhir/types/ElementDefinition.rb +263 -263
  127. data/lib/fhir_dstu2_models/fhir/types/Extension.rb +40 -40
  128. data/lib/fhir_dstu2_models/fhir/types/HumanName.rb +13 -13
  129. data/lib/fhir_dstu2_models/fhir/types/Identifier.rb +12 -12
  130. data/lib/fhir_dstu2_models/fhir/types/Meta.rb +11 -11
  131. data/lib/fhir_dstu2_models/fhir/types/Narrative.rb +8 -8
  132. data/lib/fhir_dstu2_models/fhir/types/Period.rb +8 -8
  133. data/lib/fhir_dstu2_models/fhir/types/Quantity.rb +11 -11
  134. data/lib/fhir_dstu2_models/fhir/types/Range.rb +8 -8
  135. data/lib/fhir_dstu2_models/fhir/types/Ratio.rb +8 -8
  136. data/lib/fhir_dstu2_models/fhir/types/Reference.rb +5 -5
  137. data/lib/fhir_dstu2_models/fhir/types/SampledData.rb +13 -13
  138. data/lib/fhir_dstu2_models/fhir/types/Signature.rb +12 -12
  139. data/lib/fhir_dstu2_models/fhir/types/Timing.rb +24 -24
  140. data/lib/fhir_dstu2_models/fhir.rb +7 -6
  141. data/lib/fhir_dstu2_models/fhir_ext/element_definition.rb +3 -0
  142. data/lib/fhir_dstu2_models/fhir_ext/structure_definition.rb +19 -14
  143. data/lib/fhir_dstu2_models/fhir_ext/structure_definition_compare.rb +10 -0
  144. data/lib/fhir_dstu2_models/fhir_ext/structure_definition_finding.rb +2 -2
  145. data/lib/fhir_dstu2_models/fluentpath/evaluate.rb +18 -11
  146. data/lib/fhir_dstu2_models/fluentpath/expression.rb +3 -5
  147. data/lib/fhir_dstu2_models/fluentpath/parse.rb +7 -4
  148. data/lib/fhir_dstu2_models/version.rb +1 -1
  149. metadata +11 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 462b42211e55bec43f9ad69c1d6c2788c885b245227c46f465e786c36e6cc3d7
4
- data.tar.gz: b8a8daa098f2a9413e11d910f645d72004a60c52a0f30bc506e84e41c9398162
3
+ metadata.gz: b0be1b49ac621ec849dd0db6cbf4ff91962f0256e8e419013fda3243bff62404
4
+ data.tar.gz: 30e1ee9b46c0fd00effdfbcd84b566d67ab119f5f2a30fd996b892b31f52b357
5
5
  SHA512:
6
- metadata.gz: 1b04b32a4cd9b9a1e735d927e3468308b8a5db637b36c58661195c7b836ca47232925aae8b7ce4bb91cc96d16d2d32f89ed8ca136fcaba78e588356ef5754bfd
7
- data.tar.gz: 7a01df6b4c7e339d605232b77167b226a0633d8be26ac9d40817c1dde0027ea9a4d26625fea2656ea357617eb6cdf0be1d511e4e151cc624159038fd30bc5ca3
6
+ metadata.gz: 50355cc06988c0b145d47d03370b0c1849bc0500d92058f0484f2313eae336d870cbc6c0cae561f5d964d9a61f45397083b8d2102662e91291902b6530bdd74c
7
+ data.tar.gz: b4dde574e2f26cff34219915c1a9b3d251d9216fc6987870af7899d22676a7ad3a17cdc7632fbf1b451d7c9721dce189f910620b44a9fd4f39cbc96983d61ac3
data/.codeclimate.yml CHANGED
@@ -9,7 +9,7 @@ engines:
9
9
  enabled: true
10
10
  rubocop:
11
11
  enabled: true
12
- channel: rubocop-0-80
12
+ channel: rubocop-1-23-0
13
13
  ratings:
14
14
  paths:
15
15
  - "**.inc"
@@ -11,7 +11,8 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
  strategy:
13
13
  matrix:
14
- ruby-version: ['2.6', '2.7']
14
+ ruby-version: ['3.0', '3.1', '3.2']
15
+
15
16
 
16
17
  steps:
17
18
  - uses: actions/checkout@v2
data/.rubocop.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  inherit_from: .rubocop_todo.yml
2
2
  AllCops:
3
- TargetRubyVersion: 2.7
3
+ TargetRubyVersion: 3.0
4
4
  Exclude:
5
5
  - 'test/**/*'
6
6
  - 'spec/**/*'
@@ -12,6 +12,10 @@ AllCops:
12
12
  - 'bin/*'
13
13
  Layout/LineLength:
14
14
  Enabled: false
15
+ Lint/NonDeterministicRequireOrder:
16
+ Enabled: false
17
+ Style/AccessorGrouping:
18
+ Enabled: false
15
19
  Style/FrozenStringLiteralComment:
16
20
  Enabled: false
17
21
  Style/HashEachMethods:
@@ -20,6 +24,8 @@ Style/HashTransformKeys:
20
24
  Enabled: true
21
25
  Style/HashTransformValues:
22
26
  Enabled: true
27
+ Style/WordArray:
28
+ EnforcedStyle: brackets
23
29
  inherit_mode:
24
30
  merge:
25
31
  - Exclude
data/.rubocop_todo.yml CHANGED
@@ -1,112 +1,27 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2021-03-30 17:40:28 -0400 using RuboCop version 0.80.0.
3
+ # on 2023-12-13 21:05:46 UTC using RuboCop version 1.23.0.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 23
10
- # Cop supports --auto-correct.
11
- # Configuration parameters: IndentationWidth.
12
- Layout/AssignmentIndentation:
13
- Enabled: false
14
-
15
- # Offense count: 55
16
- # Cop supports --auto-correct.
17
- Layout/EmptyLineAfterGuardClause:
18
- Exclude:
19
- - 'lib/fhir_dstu2_models/bootstrap/definitions.rb'
20
- - 'lib/fhir_dstu2_models/bootstrap/generator.rb'
21
- - 'lib/fhir_dstu2_models/bootstrap/hashable.rb'
22
- - 'lib/fhir_dstu2_models/bootstrap/model.rb'
23
- - 'lib/fhir_dstu2_models/bootstrap/preprocess.rb'
24
- - 'lib/fhir_dstu2_models/bootstrap/xml.rb'
25
- - 'lib/fhir_dstu2_models/deprecate.rb'
26
- - 'lib/fhir_dstu2_models/fhir_ext/element_definition.rb'
27
- - 'lib/fhir_dstu2_models/fhir_ext/structure_definition.rb'
28
- - 'lib/fhir_dstu2_models/fhir_ext/structure_definition_compare.rb'
29
- - 'lib/fhir_dstu2_models/fluentpath/evaluate.rb'
30
- - 'lib/fhir_dstu2_models/fluentpath/parse.rb'
31
-
32
- # Offense count: 1
33
- # Cop supports --auto-correct.
34
- Layout/EmptyLines:
35
- Exclude:
36
- - 'lib/fhir_dstu2_models/fhir/resources/ClaimResponse.rb'
37
-
38
- # Offense count: 1
39
- # Cop supports --auto-correct.
40
- # Configuration parameters: EnforcedStyle.
41
- # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
42
- Layout/EmptyLinesAroundClassBody:
43
- Exclude:
44
- - 'lib/fhir_dstu2_models/fhir/resources/ClaimResponse.rb'
45
-
46
- # Offense count: 2
47
- # Cop supports --auto-correct.
48
- # Configuration parameters: EnforcedStyle.
49
- # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
50
- Layout/EmptyLinesAroundModuleBody:
51
- Exclude:
52
- - 'lib/fhir_dstu2_models/fhir/metadata.rb'
53
-
54
- # Offense count: 1
55
- # Cop supports --auto-correct.
56
- Layout/RescueEnsureAlignment:
57
- Exclude:
58
- - 'lib/fhir_dstu2_models/bootstrap/hashable.rb'
59
-
60
- # Offense count: 19223
61
- # Cop supports --auto-correct.
62
- # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
63
- # SupportedStylesForExponentOperator: space, no_space
64
- Layout/SpaceAroundOperators:
65
- Enabled: false
66
-
67
- # Offense count: 10414
68
- # Cop supports --auto-correct.
69
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
70
- # SupportedStyles: space, no_space, compact
71
- # SupportedStylesForEmptyBraces: space, no_space
72
- Layout/SpaceInsideHashLiteralBraces:
73
- Enabled: false
74
-
75
- # Offense count: 120
76
- # Cop supports --auto-correct.
77
- # Configuration parameters: EnforcedStyle.
78
- # SupportedStyles: final_newline, final_blank_line
79
- Layout/TrailingEmptyLines:
80
- Enabled: false
81
-
82
- # Offense count: 23
83
- # Cop supports --auto-correct.
84
- # Configuration parameters: AllowInHeredoc.
85
- Layout/TrailingWhitespace:
86
- Enabled: false
87
-
88
9
  # Offense count: 6
89
10
  # Cop supports --auto-correct.
90
11
  Lint/NonDeterministicRequireOrder:
91
12
  Exclude:
92
13
  - 'lib/fhir_dstu2_models.rb'
93
14
 
94
- # Offense count: 2
95
- # Cop supports --auto-correct.
96
- Lint/ToJSON:
97
- Exclude:
98
- - 'lib/fhir_dstu2_models/bootstrap/json.rb'
99
- - 'lib/fhir_dstu2_models/fhir_ext/structure_definition_finding.rb'
100
-
101
- # Offense count: 41
15
+ # Offense count: 40
16
+ # Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
102
17
  Metrics/AbcSize:
103
- Max: 461
18
+ Max: 533
104
19
 
105
20
  # Offense count: 10
106
- # Configuration parameters: CountComments, ExcludedMethods.
107
- # ExcludedMethods: refine
21
+ # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
22
+ # IgnoredMethods: refine
108
23
  Metrics/BlockLength:
109
- Max: 131
24
+ Max: 133
110
25
 
111
26
  # Offense count: 45
112
27
  # Configuration parameters: CountBlocks.
@@ -114,35 +29,38 @@ Metrics/BlockNesting:
114
29
  Max: 6
115
30
 
116
31
  # Offense count: 7
117
- # Configuration parameters: CountComments.
32
+ # Configuration parameters: CountComments, CountAsOne.
118
33
  Metrics/ClassLength:
119
34
  Max: 470
120
35
 
121
- # Offense count: 30
36
+ # Offense count: 36
37
+ # Configuration parameters: IgnoredMethods.
122
38
  Metrics/CyclomaticComplexity:
123
- Max: 142
39
+ Max: 156
124
40
 
125
- # Offense count: 48
126
- # Configuration parameters: CountComments, ExcludedMethods.
41
+ # Offense count: 49
42
+ # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
127
43
  Metrics/MethodLength:
128
- Max: 463
44
+ Max: 466
129
45
 
130
46
  # Offense count: 2
131
- # Configuration parameters: CountComments.
47
+ # Configuration parameters: CountComments, CountAsOne.
132
48
  Metrics/ModuleLength:
133
- Max: 520
49
+ Max: 523
134
50
 
135
- # Offense count: 28
51
+ # Offense count: 31
52
+ # Configuration parameters: IgnoredMethods.
136
53
  Metrics/PerceivedComplexity:
137
- Max: 145
54
+ Max: 160
138
55
 
139
56
  # Offense count: 118
140
- # Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
57
+ # Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
58
+ # CheckDefinitionPathHierarchyRoots: lib, spec, test, src
141
59
  # AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
142
60
  Naming/FileName:
143
61
  Enabled: false
144
62
 
145
- # Offense count: 96
63
+ # Offense count: 1380
146
64
  # Configuration parameters: EnforcedStyle, IgnoredPatterns.
147
65
  # SupportedStyles: snake_case, camelCase
148
66
  Naming/MethodName:
@@ -150,23 +68,18 @@ Naming/MethodName:
150
68
 
151
69
  # Offense count: 4
152
70
  # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
153
- # AllowedNames: io, id, to, by, on, in, at, ip, db, os, pp
71
+ # AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
154
72
  Naming/MethodParameterName:
155
73
  Exclude:
156
74
  - 'lib/fhir_dstu2_models/fhir_ext/structure_definition_compare.rb'
157
75
 
158
- # Offense count: 2
76
+ # Offense count: 1
159
77
  # Cop supports --auto-correct.
160
- # Configuration parameters: PreferredName.
161
- Naming/RescuedExceptionsVariableName:
78
+ # Configuration parameters: EnforcedStyle.
79
+ # SupportedStyles: nested, compact
80
+ Style/ClassAndModuleChildren:
162
81
  Exclude:
163
- - 'lib/fhir_dstu2_models/bootstrap/hashable.rb'
164
-
165
- # Offense count: 1
166
- # Configuration parameters: .
167
- # SupportedStyles: inline, group
168
- Style/AccessModifierDeclarations:
169
- EnforcedStyle: inline
82
+ - '.simplecov'
170
83
 
171
84
  # Offense count: 19
172
85
  Style/ClassVars:
@@ -175,7 +88,13 @@ Style/ClassVars:
175
88
  - 'lib/fhir_dstu2_models/fluentpath/evaluate.rb'
176
89
  - 'lib/fhir_dstu2_models/fluentpath/parse.rb'
177
90
 
91
+ # Offense count: 1
92
+ Style/CombinableLoops:
93
+ Exclude:
94
+ - 'lib/fhir_dstu2_models/fhir_ext/structure_definition_compare.rb'
95
+
178
96
  # Offense count: 6
97
+ # Cop supports --auto-correct.
179
98
  Style/CommentedKeyword:
180
99
  Exclude:
181
100
  - 'lib/fhir_dstu2_models/bootstrap/hashable.rb'
@@ -190,9 +109,16 @@ Style/ConditionalAssignment:
190
109
  - 'lib/fhir_dstu2_models/fluentpath/evaluate.rb'
191
110
 
192
111
  # Offense count: 358
112
+ # Configuration parameters: AllowedConstants.
193
113
  Style/Documentation:
194
114
  Enabled: false
195
115
 
116
+ # Offense count: 1
117
+ # Cop supports --auto-correct.
118
+ Style/GlobalStdStream:
119
+ Exclude:
120
+ - 'lib/fhir_dstu2_models/fhir.rb'
121
+
196
122
  # Offense count: 16
197
123
  # Configuration parameters: MinBodyLength.
198
124
  Style/GuardClause:
@@ -228,21 +154,11 @@ Style/LambdaCall:
228
154
  Exclude:
229
155
  - 'lib/fhir_dstu2_models/fhir_ext/structure_definition.rb'
230
156
 
231
- # Offense count: 1
232
- Style/MethodMissingSuper:
233
- Exclude:
234
- - 'lib/fhir_dstu2_models/bootstrap/model.rb'
235
-
236
157
  # Offense count: 1
237
158
  Style/MissingRespondToMissing:
238
159
  Exclude:
239
160
  - 'lib/fhir_dstu2_models/bootstrap/model.rb'
240
161
 
241
- # Offense count: 3
242
- Style/MultipleComparison:
243
- Exclude:
244
- - 'lib/fhir_dstu2_models/bootstrap/definitions.rb'
245
-
246
162
  # Offense count: 494
247
163
  # Cop supports --auto-correct.
248
164
  # Configuration parameters: EnforcedStyle.
@@ -252,14 +168,21 @@ Style/MutableConstant:
252
168
 
253
169
  # Offense count: 3
254
170
  # Cop supports --auto-correct.
255
- # Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
171
+ # Configuration parameters: EnforcedStyle, IgnoredMethods.
256
172
  # SupportedStyles: predicate, comparison
257
173
  Style/NumericPredicate:
258
174
  Exclude:
259
- - 'spec/**/*'
260
175
  - 'lib/fhir_dstu2_models/fhir_ext/structure_definition_compare.rb'
261
176
  - 'lib/fhir_dstu2_models/fluentpath/evaluate.rb'
262
177
 
178
+ # Offense count: 2
179
+ # Configuration parameters: AllowedMethods.
180
+ # AllowedMethods: respond_to_missing?
181
+ Style/OptionalBooleanParameter:
182
+ Exclude:
183
+ - 'lib/fhir_dstu2_models/bootstrap/generator.rb'
184
+ - 'lib/fhir_dstu2_models/bootstrap/template.rb'
185
+
263
186
  # Offense count: 1
264
187
  # Cop supports --auto-correct.
265
188
  Style/OrAssignment:
@@ -268,9 +191,9 @@ Style/OrAssignment:
268
191
 
269
192
  # Offense count: 1
270
193
  # Cop supports --auto-correct.
271
- Style/RedundantBegin:
194
+ Style/RedundantSelfAssignment:
272
195
  Exclude:
273
- - 'lib/fhir_dstu2_models/fluentpath/expression.rb'
196
+ - 'lib/fhir_dstu2_models/fhir_ext/element_definition.rb'
274
197
 
275
198
  # Offense count: 6
276
199
  # Cop supports --auto-correct.
@@ -278,33 +201,12 @@ Style/RescueModifier:
278
201
  Exclude:
279
202
  - 'lib/fhir_dstu2_models/fluentpath/evaluate.rb'
280
203
 
281
- # Offense count: 18
282
- # Cop supports --auto-correct.
283
- # Configuration parameters: EnforcedStyle.
284
- # SupportedStyles: implicit, explicit
285
- Style/RescueStandardError:
286
- Exclude:
287
- - 'lib/fhir_dstu2_models/bootstrap/definitions.rb'
288
- - 'lib/fhir_dstu2_models/bootstrap/hashable.rb'
289
- - 'lib/fhir_dstu2_models/bootstrap/json.rb'
290
- - 'lib/fhir_dstu2_models/bootstrap/model.rb'
291
- - 'lib/fhir_dstu2_models/bootstrap/xml.rb'
292
- - 'lib/fhir_dstu2_models/fhir.rb'
293
- - 'lib/fhir_dstu2_models/fhir_ext/structure_definition.rb'
294
- - 'lib/fhir_dstu2_models/fhir_ext/structure_definition_finding.rb'
295
- - 'lib/fhir_dstu2_models/fluentpath/evaluate.rb'
296
- - 'lib/fhir_dstu2_models/fluentpath/expression.rb'
297
- - 'lib/fhir_dstu2_models/fluentpath/parse.rb'
298
-
299
- # Offense count: 4
204
+ # Offense count: 1
300
205
  # Cop supports --auto-correct.
301
- # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
302
- # AllowedMethods: present?, blank?, presence, try, try!
303
- Style/SafeNavigation:
206
+ # Configuration parameters: AllowModifier.
207
+ Style/SoleNestedConditional:
304
208
  Exclude:
305
- - 'lib/fhir_dstu2_models/bootstrap/definitions.rb'
306
- - 'lib/fhir_dstu2_models/bootstrap/xml.rb'
307
- - 'lib/fhir_dstu2_models/fhir_ext/structure_definition.rb'
209
+ - 'lib/fhir_dstu2_models/fhir_ext/structure_definition_compare.rb'
308
210
 
309
211
  # Offense count: 1
310
212
  # Cop supports --auto-correct.
@@ -328,10 +230,3 @@ Style/WhileUntilModifier:
328
230
  Exclude:
329
231
  - 'lib/fhir_dstu2_models/fluentpath/evaluate.rb'
330
232
 
331
- # Offense count: 624
332
- # Cop supports --auto-correct.
333
- # Configuration parameters: WordRegex.
334
- # SupportedStyles: percent, brackets
335
- Style/WordArray:
336
- EnforcedStyle: percent
337
- MinSize: 6402
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.1.2
data/.simplecov CHANGED
@@ -1,14 +1,10 @@
1
1
  require 'simplecov'
2
2
  SimpleCov.command_name 'Unit Tests'
3
- SimpleCov.start do
4
- add_filter "test/"
5
- add_group "Library", "lib"
6
- end
7
3
 
8
4
  class SimpleCov::Formatter::QualityFormatter
9
5
  def format(result)
10
6
  SimpleCov::Formatter::HTMLFormatter.new.format(result)
11
- File.open("coverage/covered_percent", "w") do |f|
7
+ File.open('coverage/covered_percent', 'w') do |f|
12
8
  f.puts result.source_files.covered_percent.to_f
13
9
  end
14
10
  end
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 3.1.2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fhir_dstu2_models (1.1.1)
4
+ fhir_dstu2_models (1.2.0)
5
5
  bcp47 (>= 0.3)
6
6
  date_time_precision (>= 0.8)
7
7
  mime-types (>= 3.0)
@@ -13,12 +13,12 @@ GEM
13
13
  ast (2.4.2)
14
14
  bcp47 (0.3.3)
15
15
  i18n
16
- coderay (1.1.2)
17
- concurrent-ruby (1.1.9)
16
+ coderay (1.1.3)
17
+ concurrent-ruby (1.3.1)
18
18
  date_time_precision (0.8.1)
19
19
  diff-lcs (1.3)
20
20
  docile (1.1.5)
21
- ffi (1.11.1)
21
+ ffi (1.16.3)
22
22
  formatador (0.2.5)
23
23
  guard (2.15.0)
24
24
  formatador (>= 0.2.4)
@@ -37,23 +37,21 @@ GEM
37
37
  guard-test (2.0.8)
38
38
  guard-compat (~> 1.2)
39
39
  test-unit (~> 3.0)
40
- i18n (1.8.10)
40
+ i18n (1.14.5)
41
41
  concurrent-ruby (~> 1.0)
42
- jaro_winkler (1.5.4)
43
42
  json (2.3.1)
44
- listen (3.1.5)
45
- rb-fsevent (~> 0.9, >= 0.9.4)
46
- rb-inotify (~> 0.9, >= 0.9.7)
47
- ruby_dep (~> 1.2)
43
+ listen (3.8.0)
44
+ rb-fsevent (~> 0.10, >= 0.10.3)
45
+ rb-inotify (~> 0.9, >= 0.9.10)
48
46
  lumberjack (1.0.13)
49
- method_source (0.9.2)
50
- mime-types (3.3.1)
47
+ method_source (1.0.0)
48
+ mime-types (3.5.2)
51
49
  mime-types-data (~> 3.2015)
52
- mime-types-data (3.2021.0901)
53
- mini_portile2 (2.5.3)
50
+ mime-types-data (3.2024.0507)
51
+ mini_portile2 (2.8.6)
54
52
  nenv (0.3.0)
55
- nokogiri (1.11.7)
56
- mini_portile2 (~> 2.5.0)
53
+ nokogiri (1.16.5)
54
+ mini_portile2 (~> 2.8.2)
57
55
  racc (~> 1.4)
58
56
  nokogiri-diff (0.2.0)
59
57
  nokogiri (~> 1.5)
@@ -61,20 +59,22 @@ GEM
61
59
  notiffany (0.1.3)
62
60
  nenv (~> 0.1)
63
61
  shellany (~> 0.0)
64
- parallel (1.20.1)
65
- parser (3.0.0.0)
62
+ parallel (1.23.0)
63
+ parser (3.2.2.4)
66
64
  ast (~> 2.4.1)
65
+ racc
67
66
  power_assert (1.1.5)
68
- pry (0.12.2)
69
- coderay (~> 1.1.0)
70
- method_source (~> 0.9.0)
71
- racc (1.5.2)
72
- rainbow (3.0.0)
67
+ pry (0.14.2)
68
+ coderay (~> 1.1)
69
+ method_source (~> 1.0)
70
+ racc (1.8.0)
71
+ rainbow (3.1.1)
73
72
  rake (12.3.3)
74
- rb-fsevent (0.10.3)
75
- rb-inotify (0.10.0)
73
+ rb-fsevent (0.11.2)
74
+ rb-inotify (0.10.1)
76
75
  ffi (~> 1.0)
77
- rexml (3.2.5)
76
+ regexp_parser (2.8.3)
77
+ rexml (3.2.6)
78
78
  rspec (3.8.0)
79
79
  rspec-core (~> 3.8.0)
80
80
  rspec-expectations (~> 3.8.0)
@@ -88,16 +88,18 @@ GEM
88
88
  diff-lcs (>= 1.2.0, < 2.0)
89
89
  rspec-support (~> 3.8.0)
90
90
  rspec-support (3.8.2)
91
- rubocop (0.80.0)
92
- jaro_winkler (~> 1.5.1)
91
+ rubocop (1.23.0)
93
92
  parallel (~> 1.10)
94
- parser (>= 2.7.0.1)
93
+ parser (>= 3.0.0.0)
95
94
  rainbow (>= 2.2.2, < 4.0)
95
+ regexp_parser (>= 1.8, < 3.0)
96
96
  rexml
97
+ rubocop-ast (>= 1.12.0, < 2.0)
97
98
  ruby-progressbar (~> 1.7)
98
- unicode-display_width (>= 1.4.0, < 1.7)
99
- ruby-progressbar (1.11.0)
100
- ruby_dep (1.5.0)
99
+ unicode-display_width (>= 1.4.0, < 3.0)
100
+ rubocop-ast (1.30.0)
101
+ parser (>= 3.2.1.0)
102
+ ruby-progressbar (1.13.0)
101
103
  shellany (0.0.1)
102
104
  simplecov (0.13.0)
103
105
  docile (~> 1.1.0)
@@ -108,7 +110,7 @@ GEM
108
110
  test-unit (3.3.3)
109
111
  power_assert
110
112
  thor (0.20.3)
111
- unicode-display_width (1.6.1)
113
+ unicode-display_width (2.5.0)
112
114
 
113
115
  PLATFORMS
114
116
  ruby
@@ -122,12 +124,12 @@ DEPENDENCIES
122
124
  pry
123
125
  rake
124
126
  rspec
125
- rubocop (= 0.80)
127
+ rubocop (= 1.23.0)
126
128
  simplecov
127
129
  test-unit
128
130
 
129
131
  RUBY VERSION
130
- ruby 2.7.2p137
132
+ ruby 3.1.2p20
131
133
 
132
134
  BUNDLED WITH
133
135
  2.2.17
data/Guardfile CHANGED
@@ -15,7 +15,7 @@
15
15
  #
16
16
  # and, you'll have to watch "config/Guardfile" instead of "Guardfile"
17
17
 
18
- # Note: The cmd option is now required due to the increasing number of ways
18
+ # NOTE: The cmd option is now required due to the increasing number of ways
19
19
  # rspec may be run, below are examples of the most common uses.
20
20
  # * bundler: 'bundle exec rspec'
21
21
  # * bundler binstubs: 'bin/rspec'
@@ -21,6 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  spec.require_paths = ['lib']
23
23
 
24
+ spec.required_ruby_version = '>= 3.0.0'
24
25
  spec.add_dependency 'nokogiri', '>= 1.11.4'
25
26
  spec.add_dependency 'date_time_precision', '>= 0.8'
26
27
  spec.add_dependency 'bcp47', '>= 0.3'
@@ -33,7 +34,7 @@ Gem::Specification.new do |spec|
33
34
  spec.add_development_dependency 'rspec'
34
35
  spec.add_development_dependency 'simplecov'
35
36
  spec.add_development_dependency 'nokogiri-diff'
36
- spec.add_development_dependency 'rubocop', '0.80'
37
+ spec.add_development_dependency 'rubocop', '1.23.0'
37
38
  spec.add_development_dependency 'guard-rspec'
38
39
  spec.add_development_dependency 'guard-test'
39
40
  end