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
@@ -5,19 +5,19 @@ module FHIR
|
|
5
5
|
include FHIR::DSTU2::Json
|
6
6
|
include FHIR::DSTU2::Xml
|
7
7
|
|
8
|
-
SEARCH_PARAMS =
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
8
|
+
SEARCH_PARAMS =
|
9
|
+
METADATA = {
|
10
|
+
'id' => { 'type' => 'id', 'path' => 'Attachment.id', 'min' => 0, 'max' => 1 },
|
11
|
+
'extension' => { 'type' => 'Extension', 'path' => 'Attachment.extension', 'min' => 0, 'max' => Float::INFINITY },
|
12
|
+
'contentType' => { 'type' => 'code', 'path' => 'Attachment.contentType', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://www.rfc-editor.org/bcp/bcp13.txt' } },
|
13
|
+
'language' => { 'type' => 'code', 'path' => 'Attachment.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
|
14
|
+
'data' => { 'type' => 'base64Binary', 'path' => 'Attachment.data', 'min' => 0, 'max' => 1 },
|
15
|
+
'url' => { 'type' => 'uri', 'path' => 'Attachment.url', 'min' => 0, 'max' => 1 },
|
16
|
+
'size' => { 'type' => 'unsignedInt', 'path' => 'Attachment.size', 'min' => 0, 'max' => 1 },
|
17
|
+
'hash' => { 'type' => 'base64Binary', 'path' => 'Attachment.hash', 'min' => 0, 'max' => 1 },
|
18
|
+
'title' => { 'type' => 'string', 'path' => 'Attachment.title', 'min' => 0, 'max' => 1 },
|
19
|
+
'creation' => { 'type' => 'dateTime', 'path' => 'Attachment.creation', 'min' => 0, 'max' => 1 }
|
20
|
+
}
|
21
21
|
|
22
22
|
attr_accessor :id # 0-1 id
|
23
23
|
attr_accessor :extension # 0-* [ Extension ]
|
@@ -31,4 +31,4 @@ module FHIR
|
|
31
31
|
attr_accessor :creation # 0-1 dateTime
|
32
32
|
end
|
33
33
|
end
|
34
|
-
end
|
34
|
+
end
|
@@ -5,16 +5,16 @@ module FHIR
|
|
5
5
|
include FHIR::DSTU2::Json
|
6
6
|
include FHIR::DSTU2::Xml
|
7
7
|
|
8
|
-
SEARCH_PARAMS =
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
SEARCH_PARAMS =
|
9
|
+
METADATA = {
|
10
|
+
'id' => { 'type' => 'id', 'path' => 'BackboneElement.id', 'min' => 0, 'max' => 1 },
|
11
|
+
'extension' => { 'type' => 'Extension', 'path' => 'BackboneElement.extension', 'min' => 0, 'max' => Float::INFINITY },
|
12
|
+
'modifierExtension' => { 'type' => 'Extension', 'path' => 'BackboneElement.modifierExtension', 'min' => 0, 'max' => Float::INFINITY }
|
13
|
+
}
|
14
14
|
|
15
15
|
attr_accessor :id # 0-1 id
|
16
16
|
attr_accessor :extension # 0-* [ Extension ]
|
17
17
|
attr_accessor :modifierExtension # 0-* [ Extension ]
|
18
18
|
end
|
19
19
|
end
|
20
|
-
end
|
20
|
+
end
|
@@ -5,13 +5,13 @@ module FHIR
|
|
5
5
|
include FHIR::DSTU2::Json
|
6
6
|
include FHIR::DSTU2::Xml
|
7
7
|
|
8
|
-
SEARCH_PARAMS =
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
8
|
+
SEARCH_PARAMS =
|
9
|
+
METADATA = {
|
10
|
+
'id' => { 'type' => 'id', 'path' => 'CodeableConcept.id', 'min' => 0, 'max' => 1 },
|
11
|
+
'extension' => { 'type' => 'Extension', 'path' => 'CodeableConcept.extension', 'min' => 0, 'max' => Float::INFINITY },
|
12
|
+
'coding' => { 'type' => 'Coding', 'path' => 'CodeableConcept.coding', 'min' => 0, 'max' => Float::INFINITY },
|
13
|
+
'text' => { 'type' => 'string', 'path' => 'CodeableConcept.text', 'min' => 0, 'max' => 1 }
|
14
|
+
}
|
15
15
|
|
16
16
|
attr_accessor :id # 0-1 id
|
17
17
|
attr_accessor :extension # 0-* [ Extension ]
|
@@ -19,4 +19,4 @@ module FHIR
|
|
19
19
|
attr_accessor :text # 0-1 string
|
20
20
|
end
|
21
21
|
end
|
22
|
-
end
|
22
|
+
end
|
@@ -5,16 +5,16 @@ module FHIR
|
|
5
5
|
include FHIR::DSTU2::Json
|
6
6
|
include FHIR::DSTU2::Xml
|
7
7
|
|
8
|
-
SEARCH_PARAMS =
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
8
|
+
SEARCH_PARAMS =
|
9
|
+
METADATA = {
|
10
|
+
'id' => { 'type' => 'id', 'path' => 'Coding.id', 'min' => 0, 'max' => 1 },
|
11
|
+
'extension' => { 'type' => 'Extension', 'path' => 'Coding.extension', 'min' => 0, 'max' => Float::INFINITY },
|
12
|
+
'system' => { 'type' => 'uri', 'path' => 'Coding.system', 'min' => 0, 'max' => 1 },
|
13
|
+
'version' => { 'type' => 'string', 'path' => 'Coding.version', 'min' => 0, 'max' => 1 },
|
14
|
+
'code' => { 'type' => 'code', 'path' => 'Coding.code', 'min' => 0, 'max' => 1 },
|
15
|
+
'display' => { 'type' => 'string', 'path' => 'Coding.display', 'min' => 0, 'max' => 1 },
|
16
|
+
'userSelected' => { 'type' => 'boolean', 'path' => 'Coding.userSelected', 'min' => 0, 'max' => 1 }
|
17
|
+
}
|
18
18
|
|
19
19
|
attr_accessor :id # 0-1 id
|
20
20
|
attr_accessor :extension # 0-* [ Extension ]
|
@@ -25,4 +25,4 @@ module FHIR
|
|
25
25
|
attr_accessor :userSelected # 0-1 boolean
|
26
26
|
end
|
27
27
|
end
|
28
|
-
end
|
28
|
+
end
|
@@ -5,16 +5,16 @@ module FHIR
|
|
5
5
|
include FHIR::DSTU2::Json
|
6
6
|
include FHIR::DSTU2::Xml
|
7
7
|
|
8
|
-
SEARCH_PARAMS =
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
8
|
+
SEARCH_PARAMS =
|
9
|
+
METADATA = {
|
10
|
+
'id' => { 'type' => 'id', 'path' => 'ContactPoint.id', 'min' => 0, 'max' => 1 },
|
11
|
+
'extension' => { 'type' => 'Extension', 'path' => 'ContactPoint.extension', 'min' => 0, 'max' => Float::INFINITY },
|
12
|
+
'system' => { 'valid_codes' => { 'http://hl7.org/fhir/contact-point-system' => ['phone', 'fax', 'email', 'pager', 'other'] }, 'type' => 'code', 'path' => 'ContactPoint.system', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/contact-point-system' } },
|
13
|
+
'value' => { 'type' => 'string', 'path' => 'ContactPoint.value', 'min' => 0, 'max' => 1 },
|
14
|
+
'use' => { 'valid_codes' => { 'http://hl7.org/fhir/contact-point-use' => ['home', 'work', 'temp', 'old', 'mobile'] }, 'type' => 'code', 'path' => 'ContactPoint.use', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/contact-point-use' } },
|
15
|
+
'rank' => { 'type' => 'positiveInt', 'path' => 'ContactPoint.rank', 'min' => 0, 'max' => 1 },
|
16
|
+
'period' => { 'type' => 'Period', 'path' => 'ContactPoint.period', 'min' => 0, 'max' => 1 }
|
17
|
+
}
|
18
18
|
|
19
19
|
attr_accessor :id # 0-1 id
|
20
20
|
attr_accessor :extension # 0-* [ Extension ]
|
@@ -25,4 +25,4 @@ module FHIR
|
|
25
25
|
attr_accessor :period # 0-1 Period
|
26
26
|
end
|
27
27
|
end
|
28
|
-
end
|
28
|
+
end
|
@@ -7,12 +7,12 @@ module FHIR
|
|
7
7
|
|
8
8
|
SEARCH_PARAMS = ['code', 'context', 'date', 'description', 'identifier', 'name', 'publisher', 'status', 'stringency', 'url', 'version']
|
9
9
|
METADATA = {
|
10
|
-
'id' => {'type'=>'id', 'path'=>'Element.id', 'min'=>0, 'max'=>1},
|
11
|
-
'extension' => {'type'=>'Extension', 'path'=>'Element.extension', 'min'=>0, 'max'=>Float::INFINITY}
|
10
|
+
'id' => { 'type' => 'id', 'path' => 'Element.id', 'min' => 0, 'max' => 1 },
|
11
|
+
'extension' => { 'type' => 'Extension', 'path' => 'Element.extension', 'min' => 0, 'max' => Float::INFINITY }
|
12
12
|
}
|
13
13
|
|
14
14
|
attr_accessor :id # 0-1 id
|
15
15
|
attr_accessor :extension # 0-* [ Extension ]
|
16
16
|
end
|
17
17
|
end
|
18
|
-
end
|
18
|
+
end
|