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.
- checksums.yaml +4 -4
- data/.codeclimate.yml +1 -1
- data/.github/workflows/ruby.yml +2 -1
- data/.rubocop.yml +7 -1
- data/.rubocop_todo.yml +56 -161
- data/.ruby-version +1 -0
- data/.simplecov +1 -5
- data/.tool-versions +1 -0
- data/Gemfile.lock +37 -35
- data/Guardfile +1 -1
- data/fhir_dstu2_models.gemspec +2 -1
- data/lib/fhir_dstu2_models/bootstrap/definitions.rb +18 -4
- data/lib/fhir_dstu2_models/bootstrap/field.rb +2 -2
- data/lib/fhir_dstu2_models/bootstrap/generator.rb +6 -4
- data/lib/fhir_dstu2_models/bootstrap/hashable.rb +6 -5
- data/lib/fhir_dstu2_models/bootstrap/json.rb +2 -2
- data/lib/fhir_dstu2_models/bootstrap/model.rb +45 -32
- data/lib/fhir_dstu2_models/bootstrap/preprocess.rb +19 -11
- data/lib/fhir_dstu2_models/bootstrap/xml.rb +9 -7
- data/lib/fhir_dstu2_models/deprecate.rb +1 -0
- data/lib/fhir_dstu2_models/fhir/metadata.rb +19 -21
- data/lib/fhir_dstu2_models/fhir/resources/Account.rb +20 -20
- data/lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb +34 -34
- data/lib/fhir_dstu2_models/fhir/resources/Appointment.rb +28 -28
- data/lib/fhir_dstu2_models/fhir/resources/AppointmentResponse.rb +17 -17
- data/lib/fhir_dstu2_models/fhir/resources/AuditEvent.rb +66 -66
- data/lib/fhir_dstu2_models/fhir/resources/Basic.rb +14 -14
- data/lib/fhir_dstu2_models/fhir/resources/Binary.rb +7 -7
- data/lib/fhir_dstu2_models/fhir/resources/BodySite.rb +15 -15
- data/lib/fhir_dstu2_models/fhir/resources/Bundle.rb +45 -45
- data/lib/fhir_dstu2_models/fhir/resources/CarePlan.rb +63 -63
- data/lib/fhir_dstu2_models/fhir/resources/Claim.rb +118 -118
- data/lib/fhir_dstu2_models/fhir/resources/ClaimResponse.rb +122 -124
- data/lib/fhir_dstu2_models/fhir/resources/ClinicalImpression.rb +42 -42
- data/lib/fhir_dstu2_models/fhir/resources/Communication.rb +28 -28
- data/lib/fhir_dstu2_models/fhir/resources/CommunicationRequest.rb +30 -30
- data/lib/fhir_dstu2_models/fhir/resources/Composition.rb +46 -46
- data/lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb +53 -53
- data/lib/fhir_dstu2_models/fhir/resources/Condition.rb +44 -44
- data/lib/fhir_dstu2_models/fhir/resources/Conformance.rb +138 -138
- data/lib/fhir_dstu2_models/fhir/resources/Contract.rb +98 -98
- data/lib/fhir_dstu2_models/fhir/resources/Coverage.rb +23 -23
- data/lib/fhir_dstu2_models/fhir/resources/DataElement.rb +35 -35
- data/lib/fhir_dstu2_models/fhir/resources/DetectedIssue.rb +25 -25
- data/lib/fhir_dstu2_models/fhir/resources/Device.rb +25 -25
- data/lib/fhir_dstu2_models/fhir/resources/DeviceComponent.rb +25 -25
- data/lib/fhir_dstu2_models/fhir/resources/DeviceMetric.rb +25 -25
- data/lib/fhir_dstu2_models/fhir/resources/DeviceUseRequest.rb +25 -25
- data/lib/fhir_dstu2_models/fhir/resources/DeviceUseStatement.rb +21 -21
- data/lib/fhir_dstu2_models/fhir/resources/DiagnosticOrder.rb +36 -36
- data/lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb +32 -32
- data/lib/fhir_dstu2_models/fhir/resources/DocumentManifest.rb +31 -31
- data/lib/fhir_dstu2_models/fhir/resources/DocumentReference.rb +51 -51
- data/lib/fhir_dstu2_models/fhir/resources/DomainResource.rb +12 -12
- data/lib/fhir_dstu2_models/fhir/resources/EligibilityRequest.rb +16 -16
- data/lib/fhir_dstu2_models/fhir/resources/EligibilityResponse.rb +19 -19
- data/lib/fhir_dstu2_models/fhir/resources/Encounter.rb +59 -59
- data/lib/fhir_dstu2_models/fhir/resources/EnrollmentRequest.rb +19 -19
- data/lib/fhir_dstu2_models/fhir/resources/EnrollmentResponse.rb +19 -19
- data/lib/fhir_dstu2_models/fhir/resources/EpisodeOfCare.rb +31 -31
- data/lib/fhir_dstu2_models/fhir/resources/ExplanationOfBenefit.rb +19 -19
- data/lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb +39 -39
- data/lib/fhir_dstu2_models/fhir/resources/Flag.rb +17 -17
- data/lib/fhir_dstu2_models/fhir/resources/Goal.rb +30 -30
- data/lib/fhir_dstu2_models/fhir/resources/Group.rb +33 -33
- data/lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb +48 -48
- data/lib/fhir_dstu2_models/fhir/resources/ImagingObjectSelection.rb +41 -41
- data/lib/fhir_dstu2_models/fhir/resources/ImagingStudy.rb +48 -48
- data/lib/fhir_dstu2_models/fhir/resources/Immunization.rb +52 -52
- data/lib/fhir_dstu2_models/fhir/resources/ImmunizationRecommendation.rb +35 -35
- data/lib/fhir_dstu2_models/fhir/resources/ImplementationGuide.rb +67 -67
- data/lib/fhir_dstu2_models/fhir/resources/List.rb +29 -29
- data/lib/fhir_dstu2_models/fhir/resources/Location.rb +27 -27
- data/lib/fhir_dstu2_models/fhir/resources/Media.rb +21 -21
- data/lib/fhir_dstu2_models/fhir/resources/Medication.rb +40 -40
- data/lib/fhir_dstu2_models/fhir/resources/MedicationAdministration.rb +36 -36
- data/lib/fhir_dstu2_models/fhir/resources/MedicationDispense.rb +49 -49
- data/lib/fhir_dstu2_models/fhir/resources/MedicationOrder.rb +57 -57
- data/lib/fhir_dstu2_models/fhir/resources/MedicationStatement.rb +41 -41
- data/lib/fhir_dstu2_models/fhir/resources/MessageHeader.rb +40 -40
- data/lib/fhir_dstu2_models/fhir/resources/NamingSystem.rb +34 -34
- data/lib/fhir_dstu2_models/fhir/resources/NutritionOrder.rb +67 -67
- data/lib/fhir_dstu2_models/fhir/resources/Observation.rb +68 -68
- data/lib/fhir_dstu2_models/fhir/resources/OperationDefinition.rb +51 -51
- data/lib/fhir_dstu2_models/fhir/resources/OperationOutcome.rb +21 -21
- data/lib/fhir_dstu2_models/fhir/resources/Order.rb +23 -23
- data/lib/fhir_dstu2_models/fhir/resources/OrderResponse.rb +16 -16
- data/lib/fhir_dstu2_models/fhir/resources/Organization.rb +24 -24
- data/lib/fhir_dstu2_models/fhir/resources/Parameters.rb +48 -48
- data/lib/fhir_dstu2_models/fhir/resources/Patient.rb +54 -54
- data/lib/fhir_dstu2_models/fhir/resources/PaymentNotice.rb +19 -19
- data/lib/fhir_dstu2_models/fhir/resources/PaymentReconciliation.rb +39 -39
- data/lib/fhir_dstu2_models/fhir/resources/Person.rb +24 -24
- data/lib/fhir_dstu2_models/fhir/resources/Practitioner.rb +36 -36
- data/lib/fhir_dstu2_models/fhir/resources/Procedure.rb +42 -42
- data/lib/fhir_dstu2_models/fhir/resources/ProcedureRequest.rb +27 -27
- data/lib/fhir_dstu2_models/fhir/resources/ProcessRequest.rb +29 -29
- data/lib/fhir_dstu2_models/fhir/resources/ProcessResponse.rb +27 -27
- data/lib/fhir_dstu2_models/fhir/resources/Provenance.rb +39 -39
- data/lib/fhir_dstu2_models/fhir/resources/Questionnaire.rb +40 -40
- data/lib/fhir_dstu2_models/fhir/resources/QuestionnaireResponse.rb +50 -50
- data/lib/fhir_dstu2_models/fhir/resources/ReferralRequest.rb +25 -25
- data/lib/fhir_dstu2_models/fhir/resources/RelatedPerson.rb +19 -19
- data/lib/fhir_dstu2_models/fhir/resources/Resource.rb +5 -5
- data/lib/fhir_dstu2_models/fhir/resources/RiskAssessment.rb +30 -30
- data/lib/fhir_dstu2_models/fhir/resources/Schedule.rb +14 -14
- data/lib/fhir_dstu2_models/fhir/resources/SearchParameter.rb +29 -29
- data/lib/fhir_dstu2_models/fhir/resources/Slot.rb +17 -17
- data/lib/fhir_dstu2_models/fhir/resources/Specimen.rb +45 -45
- data/lib/fhir_dstu2_models/fhir/resources/StructureDefinition.rb +54 -54
- data/lib/fhir_dstu2_models/fhir/resources/Subscription.rb +24 -24
- data/lib/fhir_dstu2_models/fhir/resources/Substance.rb +26 -26
- data/lib/fhir_dstu2_models/fhir/resources/SupplyDelivery.rb +20 -20
- data/lib/fhir_dstu2_models/fhir/resources/SupplyRequest.rb +25 -25
- data/lib/fhir_dstu2_models/fhir/resources/TestScript.rb +140 -140
- data/lib/fhir_dstu2_models/fhir/resources/ValueSet.rb +108 -108
- data/lib/fhir_dstu2_models/fhir/resources/VisionPrescription.rb +35 -35
- data/lib/fhir_dstu2_models/fhir/types/Address.rb +16 -16
- data/lib/fhir_dstu2_models/fhir/types/Annotation.rb +10 -10
- data/lib/fhir_dstu2_models/fhir/types/Attachment.rb +14 -14
- data/lib/fhir_dstu2_models/fhir/types/BackboneElement.rb +7 -7
- data/lib/fhir_dstu2_models/fhir/types/CodeableConcept.rb +8 -8
- data/lib/fhir_dstu2_models/fhir/types/Coding.rb +11 -11
- data/lib/fhir_dstu2_models/fhir/types/ContactPoint.rb +11 -11
- data/lib/fhir_dstu2_models/fhir/types/Element.rb +3 -3
- data/lib/fhir_dstu2_models/fhir/types/ElementDefinition.rb +263 -263
- data/lib/fhir_dstu2_models/fhir/types/Extension.rb +40 -40
- data/lib/fhir_dstu2_models/fhir/types/HumanName.rb +13 -13
- data/lib/fhir_dstu2_models/fhir/types/Identifier.rb +12 -12
- data/lib/fhir_dstu2_models/fhir/types/Meta.rb +11 -11
- data/lib/fhir_dstu2_models/fhir/types/Narrative.rb +8 -8
- data/lib/fhir_dstu2_models/fhir/types/Period.rb +8 -8
- data/lib/fhir_dstu2_models/fhir/types/Quantity.rb +11 -11
- data/lib/fhir_dstu2_models/fhir/types/Range.rb +8 -8
- data/lib/fhir_dstu2_models/fhir/types/Ratio.rb +8 -8
- data/lib/fhir_dstu2_models/fhir/types/Reference.rb +5 -5
- data/lib/fhir_dstu2_models/fhir/types/SampledData.rb +13 -13
- data/lib/fhir_dstu2_models/fhir/types/Signature.rb +12 -12
- data/lib/fhir_dstu2_models/fhir/types/Timing.rb +24 -24
- data/lib/fhir_dstu2_models/fhir.rb +7 -6
- data/lib/fhir_dstu2_models/fhir_ext/element_definition.rb +3 -0
- data/lib/fhir_dstu2_models/fhir_ext/structure_definition.rb +19 -14
- data/lib/fhir_dstu2_models/fhir_ext/structure_definition_compare.rb +10 -0
- data/lib/fhir_dstu2_models/fhir_ext/structure_definition_finding.rb +2 -2
- data/lib/fhir_dstu2_models/fluentpath/evaluate.rb +18 -11
- data/lib/fhir_dstu2_models/fluentpath/expression.rb +3 -5
- data/lib/fhir_dstu2_models/fluentpath/parse.rb +7 -4
- data/lib/fhir_dstu2_models/version.rb +1 -1
- metadata +11 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0be1b49ac621ec849dd0db6cbf4ff91962f0256e8e419013fda3243bff62404
|
4
|
+
data.tar.gz: 30e1ee9b46c0fd00effdfbcd84b566d67ab119f5f2a30fd996b892b31f52b357
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50355cc06988c0b145d47d03370b0c1849bc0500d92058f0484f2313eae336d870cbc6c0cae561f5d964d9a61f45397083b8d2102662e91291902b6530bdd74c
|
7
|
+
data.tar.gz: b4dde574e2f26cff34219915c1a9b3d251d9216fc6987870af7899d22676a7ad3a17cdc7632fbf1b451d7c9721dce189f910620b44a9fd4f39cbc96983d61ac3
|
data/.codeclimate.yml
CHANGED
data/.github/workflows/ruby.yml
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
inherit_from: .rubocop_todo.yml
|
2
2
|
AllCops:
|
3
|
-
TargetRubyVersion:
|
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
|
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:
|
95
|
-
#
|
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:
|
18
|
+
Max: 533
|
104
19
|
|
105
20
|
# Offense count: 10
|
106
|
-
# Configuration parameters: CountComments, ExcludedMethods.
|
107
|
-
#
|
21
|
+
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
|
22
|
+
# IgnoredMethods: refine
|
108
23
|
Metrics/BlockLength:
|
109
|
-
Max:
|
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:
|
36
|
+
# Offense count: 36
|
37
|
+
# Configuration parameters: IgnoredMethods.
|
122
38
|
Metrics/CyclomaticComplexity:
|
123
|
-
Max:
|
39
|
+
Max: 156
|
124
40
|
|
125
|
-
# Offense count:
|
126
|
-
# Configuration parameters: CountComments, ExcludedMethods.
|
41
|
+
# Offense count: 49
|
42
|
+
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
|
127
43
|
Metrics/MethodLength:
|
128
|
-
Max:
|
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:
|
49
|
+
Max: 523
|
134
50
|
|
135
|
-
# Offense count:
|
51
|
+
# Offense count: 31
|
52
|
+
# Configuration parameters: IgnoredMethods.
|
136
53
|
Metrics/PerceivedComplexity:
|
137
|
-
Max:
|
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:
|
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:
|
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:
|
76
|
+
# Offense count: 1
|
159
77
|
# Cop supports --auto-correct.
|
160
|
-
# Configuration parameters:
|
161
|
-
|
78
|
+
# Configuration parameters: EnforcedStyle.
|
79
|
+
# SupportedStyles: nested, compact
|
80
|
+
Style/ClassAndModuleChildren:
|
162
81
|
Exclude:
|
163
|
-
- '
|
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:
|
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/
|
194
|
+
Style/RedundantSelfAssignment:
|
272
195
|
Exclude:
|
273
|
-
- 'lib/fhir_dstu2_models/
|
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:
|
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:
|
302
|
-
|
303
|
-
Style/SafeNavigation:
|
206
|
+
# Configuration parameters: AllowModifier.
|
207
|
+
Style/SoleNestedConditional:
|
304
208
|
Exclude:
|
305
|
-
- 'lib/fhir_dstu2_models/
|
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(
|
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.
|
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.
|
17
|
-
concurrent-ruby (1.1
|
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.
|
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.
|
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.
|
45
|
-
rb-fsevent (~> 0.
|
46
|
-
rb-inotify (~> 0.9, >= 0.9.
|
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.
|
50
|
-
mime-types (3.
|
47
|
+
method_source (1.0.0)
|
48
|
+
mime-types (3.5.2)
|
51
49
|
mime-types-data (~> 3.2015)
|
52
|
-
mime-types-data (3.
|
53
|
-
mini_portile2 (2.
|
50
|
+
mime-types-data (3.2024.0507)
|
51
|
+
mini_portile2 (2.8.6)
|
54
52
|
nenv (0.3.0)
|
55
|
-
nokogiri (1.
|
56
|
-
mini_portile2 (~> 2.
|
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.
|
65
|
-
parser (3.
|
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.
|
69
|
-
coderay (~> 1.1
|
70
|
-
method_source (~>
|
71
|
-
racc (1.
|
72
|
-
rainbow (3.
|
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.
|
75
|
-
rb-inotify (0.10.
|
73
|
+
rb-fsevent (0.11.2)
|
74
|
+
rb-inotify (0.10.1)
|
76
75
|
ffi (~> 1.0)
|
77
|
-
|
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 (
|
92
|
-
jaro_winkler (~> 1.5.1)
|
91
|
+
rubocop (1.23.0)
|
93
92
|
parallel (~> 1.10)
|
94
|
-
parser (>=
|
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, <
|
99
|
-
|
100
|
-
|
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 (
|
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
|
127
|
+
rubocop (= 1.23.0)
|
126
128
|
simplecov
|
127
129
|
test-unit
|
128
130
|
|
129
131
|
RUBY VERSION
|
130
|
-
ruby
|
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
|
-
#
|
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'
|
data/fhir_dstu2_models.gemspec
CHANGED
@@ -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
|
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
|