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
@@ -7,33 +7,33 @@ module FHIR
|
|
7
7
|
|
8
8
|
SEARCH_PARAMS = ['code', 'context', 'date', 'description', 'expansion', 'identifier', 'name', 'publisher', 'reference', 'status', 'system', 'url', 'version']
|
9
9
|
METADATA = {
|
10
|
-
'id' => {'type'=>'id', 'path'=>'ValueSet.id', 'min'=>0, 'max'=>1},
|
11
|
-
'meta' => {'type'=>'Meta', 'path'=>'ValueSet.meta', 'min'=>0, 'max'=>1},
|
12
|
-
'implicitRules' => {'type'=>'uri', 'path'=>'ValueSet.implicitRules', 'min'=>0, 'max'=>1},
|
13
|
-
'language' => {'type'=>'code', 'path'=>'ValueSet.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
|
14
|
-
'text' => {'type'=>'Narrative', 'path'=>'ValueSet.text', 'min'=>0, 'max'=>1},
|
15
|
-
'contained' => {'type'=>'Resource', 'path'=>'ValueSet.contained', 'min'=>0, 'max'=>Float::INFINITY},
|
16
|
-
'extension' => {'type'=>'Extension', 'path'=>'ValueSet.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
17
|
-
'modifierExtension' => {'type'=>'Extension', 'path'=>'ValueSet.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
18
|
-
'url' => {'type'=>'uri', 'path'=>'ValueSet.url', 'min'=>0, 'max'=>1},
|
19
|
-
'identifier' => {'type'=>'Identifier', 'path'=>'ValueSet.identifier', 'min'=>0, 'max'=>1},
|
20
|
-
'version' => {'type'=>'string', 'path'=>'ValueSet.version', 'min'=>0, 'max'=>1},
|
21
|
-
'name' => {'type'=>'string', 'path'=>'ValueSet.name', 'min'=>0, 'max'=>1},
|
22
|
-
'status' => {'valid_codes'=>{'http://hl7.org/fhir/conformance-resource-status'=>['draft', 'active', 'retired']}, 'type'=>'code', 'path'=>'ValueSet.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/conformance-resource-status'}},
|
23
|
-
'experimental' => {'type'=>'boolean', 'path'=>'ValueSet.experimental', 'min'=>0, 'max'=>1},
|
24
|
-
'publisher' => {'type'=>'string', 'path'=>'ValueSet.publisher', 'min'=>0, 'max'=>1},
|
25
|
-
'contact' => {'type'=>'ValueSet::Contact', 'path'=>'ValueSet.contact', 'min'=>0, 'max'=>Float::INFINITY},
|
26
|
-
'date' => {'type'=>'dateTime', 'path'=>'ValueSet.date', 'min'=>0, 'max'=>1},
|
27
|
-
'lockedDate' => {'type'=>'date', 'path'=>'ValueSet.lockedDate', 'min'=>0, 'max'=>1},
|
28
|
-
'description' => {'type'=>'string', 'path'=>'ValueSet.description', 'min'=>0, 'max'=>1},
|
29
|
-
'useContext' => {'valid_codes'=>{'urn:iso:std:iso:3166'=>[], 'http://unstats.un.org/unsd/methods/m49/m49.htm'=>[], 'https://www.usps.com/'=>['AK', 'AL', 'AR', 'AS', 'AZ', 'CA', 'CO', 'CT', 'DC', 'DE', 'FL', 'FM', 'GA', 'GU', 'HI', 'IA', 'ID', 'IL', 'IN', 'KS', 'KY', 'LA', 'MA', 'MD', 'ME', 'MH', 'MI', 'MN', 'MO', 'MP', 'MS', 'MT', 'NC', 'ND', 'NE', 'NH', 'NJ', 'NM', 'NV', 'NY', 'OH', 'OK', 'OR', 'PA', 'PR', 'PW', 'RI', 'SC', 'SD', 'TN', 'TX', 'UM', 'UT', 'VA', 'VI', 'VT', 'WA', 'WI', 'WV', 'WY'], 'http://hl7.org/fhir/practitioner-specialty'=>['cardio', 'dent', 'dietary', 'midw', 'sysarch']}, 'type'=>'CodeableConcept', 'path'=>'ValueSet.useContext', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/use-context'}},
|
30
|
-
'immutable' => {'type'=>'boolean', 'path'=>'ValueSet.immutable', 'min'=>0, 'max'=>1},
|
31
|
-
'requirements' => {'type'=>'string', 'path'=>'ValueSet.requirements', 'min'=>0, 'max'=>1},
|
32
|
-
'copyright' => {'type'=>'string', 'path'=>'ValueSet.copyright', 'min'=>0, 'max'=>1},
|
33
|
-
'extensible' => {'type'=>'boolean', 'path'=>'ValueSet.extensible', 'min'=>0, 'max'=>1},
|
34
|
-
'codeSystem' => {'type'=>'ValueSet::CodeSystem', 'path'=>'ValueSet.codeSystem', 'min'=>0, 'max'=>1},
|
35
|
-
'compose' => {'type'=>'ValueSet::Compose', 'path'=>'ValueSet.compose', 'min'=>0, 'max'=>1},
|
36
|
-
'expansion' => {'type'=>'ValueSet::Expansion', 'path'=>'ValueSet.expansion', 'min'=>0, 'max'=>1}
|
10
|
+
'id' => { 'type' => 'id', 'path' => 'ValueSet.id', 'min' => 0, 'max' => 1 },
|
11
|
+
'meta' => { 'type' => 'Meta', 'path' => 'ValueSet.meta', 'min' => 0, 'max' => 1 },
|
12
|
+
'implicitRules' => { 'type' => 'uri', 'path' => 'ValueSet.implicitRules', 'min' => 0, 'max' => 1 },
|
13
|
+
'language' => { 'type' => 'code', 'path' => 'ValueSet.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
|
14
|
+
'text' => { 'type' => 'Narrative', 'path' => 'ValueSet.text', 'min' => 0, 'max' => 1 },
|
15
|
+
'contained' => { 'type' => 'Resource', 'path' => 'ValueSet.contained', 'min' => 0, 'max' => Float::INFINITY },
|
16
|
+
'extension' => { 'type' => 'Extension', 'path' => 'ValueSet.extension', 'min' => 0, 'max' => Float::INFINITY },
|
17
|
+
'modifierExtension' => { 'type' => 'Extension', 'path' => 'ValueSet.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
|
18
|
+
'url' => { 'type' => 'uri', 'path' => 'ValueSet.url', 'min' => 0, 'max' => 1 },
|
19
|
+
'identifier' => { 'type' => 'Identifier', 'path' => 'ValueSet.identifier', 'min' => 0, 'max' => 1 },
|
20
|
+
'version' => { 'type' => 'string', 'path' => 'ValueSet.version', 'min' => 0, 'max' => 1 },
|
21
|
+
'name' => { 'type' => 'string', 'path' => 'ValueSet.name', 'min' => 0, 'max' => 1 },
|
22
|
+
'status' => { 'valid_codes' => { 'http://hl7.org/fhir/conformance-resource-status' => ['draft', 'active', 'retired'] }, 'type' => 'code', 'path' => 'ValueSet.status', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/conformance-resource-status' } },
|
23
|
+
'experimental' => { 'type' => 'boolean', 'path' => 'ValueSet.experimental', 'min' => 0, 'max' => 1 },
|
24
|
+
'publisher' => { 'type' => 'string', 'path' => 'ValueSet.publisher', 'min' => 0, 'max' => 1 },
|
25
|
+
'contact' => { 'type' => 'ValueSet::Contact', 'path' => 'ValueSet.contact', 'min' => 0, 'max' => Float::INFINITY },
|
26
|
+
'date' => { 'type' => 'dateTime', 'path' => 'ValueSet.date', 'min' => 0, 'max' => 1 },
|
27
|
+
'lockedDate' => { 'type' => 'date', 'path' => 'ValueSet.lockedDate', 'min' => 0, 'max' => 1 },
|
28
|
+
'description' => { 'type' => 'string', 'path' => 'ValueSet.description', 'min' => 0, 'max' => 1 },
|
29
|
+
'useContext' => { 'valid_codes' => { 'urn:iso:std:iso:3166' => [], 'http://unstats.un.org/unsd/methods/m49/m49.htm' => [], 'https://www.usps.com/' => ['AK', 'AL', 'AR', 'AS', 'AZ', 'CA', 'CO', 'CT', 'DC', 'DE', 'FL', 'FM', 'GA', 'GU', 'HI', 'IA', 'ID', 'IL', 'IN', 'KS', 'KY', 'LA', 'MA', 'MD', 'ME', 'MH', 'MI', 'MN', 'MO', 'MP', 'MS', 'MT', 'NC', 'ND', 'NE', 'NH', 'NJ', 'NM', 'NV', 'NY', 'OH', 'OK', 'OR', 'PA', 'PR', 'PW', 'RI', 'SC', 'SD', 'TN', 'TX', 'UM', 'UT', 'VA', 'VI', 'VT', 'WA', 'WI', 'WV', 'WY'], 'http://hl7.org/fhir/practitioner-specialty' => ['cardio', 'dent', 'dietary', 'midw', 'sysarch'] }, 'type' => 'CodeableConcept', 'path' => 'ValueSet.useContext', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'extensible', 'uri' => 'http://hl7.org/fhir/ValueSet/use-context' } },
|
30
|
+
'immutable' => { 'type' => 'boolean', 'path' => 'ValueSet.immutable', 'min' => 0, 'max' => 1 },
|
31
|
+
'requirements' => { 'type' => 'string', 'path' => 'ValueSet.requirements', 'min' => 0, 'max' => 1 },
|
32
|
+
'copyright' => { 'type' => 'string', 'path' => 'ValueSet.copyright', 'min' => 0, 'max' => 1 },
|
33
|
+
'extensible' => { 'type' => 'boolean', 'path' => 'ValueSet.extensible', 'min' => 0, 'max' => 1 },
|
34
|
+
'codeSystem' => { 'type' => 'ValueSet::CodeSystem', 'path' => 'ValueSet.codeSystem', 'min' => 0, 'max' => 1 },
|
35
|
+
'compose' => { 'type' => 'ValueSet::Compose', 'path' => 'ValueSet.compose', 'min' => 0, 'max' => 1 },
|
36
|
+
'expansion' => { 'type' => 'ValueSet::Expansion', 'path' => 'ValueSet.expansion', 'min' => 0, 'max' => 1 }
|
37
37
|
}
|
38
38
|
|
39
39
|
class Contact < FHIR::DSTU2::Model
|
@@ -42,11 +42,11 @@ module FHIR
|
|
42
42
|
include FHIR::DSTU2::Xml
|
43
43
|
|
44
44
|
METADATA = {
|
45
|
-
'id' => {'type'=>'id', 'path'=>'Contact.id', 'min'=>0, 'max'=>1},
|
46
|
-
'extension' => {'type'=>'Extension', 'path'=>'Contact.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
47
|
-
'modifierExtension' => {'type'=>'Extension', 'path'=>'Contact.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
48
|
-
'name' => {'type'=>'string', 'path'=>'Contact.name', 'min'=>0, 'max'=>1},
|
49
|
-
'telecom' => {'type'=>'ContactPoint', 'path'=>'Contact.telecom', 'min'=>0, 'max'=>Float::INFINITY}
|
45
|
+
'id' => { 'type' => 'id', 'path' => 'Contact.id', 'min' => 0, 'max' => 1 },
|
46
|
+
'extension' => { 'type' => 'Extension', 'path' => 'Contact.extension', 'min' => 0, 'max' => Float::INFINITY },
|
47
|
+
'modifierExtension' => { 'type' => 'Extension', 'path' => 'Contact.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
|
48
|
+
'name' => { 'type' => 'string', 'path' => 'Contact.name', 'min' => 0, 'max' => 1 },
|
49
|
+
'telecom' => { 'type' => 'ContactPoint', 'path' => 'Contact.telecom', 'min' => 0, 'max' => Float::INFINITY }
|
50
50
|
}
|
51
51
|
|
52
52
|
attr_accessor :id # 0-1 id
|
@@ -62,13 +62,13 @@ module FHIR
|
|
62
62
|
include FHIR::DSTU2::Xml
|
63
63
|
|
64
64
|
METADATA = {
|
65
|
-
'id' => {'type'=>'id', 'path'=>'CodeSystem.id', 'min'=>0, 'max'=>1},
|
66
|
-
'extension' => {'type'=>'Extension', 'path'=>'CodeSystem.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
67
|
-
'modifierExtension' => {'type'=>'Extension', 'path'=>'CodeSystem.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
68
|
-
'system' => {'type'=>'uri', 'path'=>'CodeSystem.system', 'min'=>1, 'max'=>1},
|
69
|
-
'version' => {'type'=>'string', 'path'=>'CodeSystem.version', 'min'=>0, 'max'=>1},
|
70
|
-
'caseSensitive' => {'type'=>'boolean', 'path'=>'CodeSystem.caseSensitive', 'min'=>0, 'max'=>1},
|
71
|
-
'concept' => {'type'=>'ValueSet::CodeSystem::Concept', 'path'=>'CodeSystem.concept', 'min'=>1, 'max'=>Float::INFINITY}
|
65
|
+
'id' => { 'type' => 'id', 'path' => 'CodeSystem.id', 'min' => 0, 'max' => 1 },
|
66
|
+
'extension' => { 'type' => 'Extension', 'path' => 'CodeSystem.extension', 'min' => 0, 'max' => Float::INFINITY },
|
67
|
+
'modifierExtension' => { 'type' => 'Extension', 'path' => 'CodeSystem.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
|
68
|
+
'system' => { 'type' => 'uri', 'path' => 'CodeSystem.system', 'min' => 1, 'max' => 1 },
|
69
|
+
'version' => { 'type' => 'string', 'path' => 'CodeSystem.version', 'min' => 0, 'max' => 1 },
|
70
|
+
'caseSensitive' => { 'type' => 'boolean', 'path' => 'CodeSystem.caseSensitive', 'min' => 0, 'max' => 1 },
|
71
|
+
'concept' => { 'type' => 'ValueSet::CodeSystem::Concept', 'path' => 'CodeSystem.concept', 'min' => 1, 'max' => Float::INFINITY }
|
72
72
|
}
|
73
73
|
|
74
74
|
class Concept < FHIR::DSTU2::Model
|
@@ -77,15 +77,15 @@ module FHIR
|
|
77
77
|
include FHIR::DSTU2::Xml
|
78
78
|
|
79
79
|
METADATA = {
|
80
|
-
'id' => {'type'=>'id', 'path'=>'Concept.id', 'min'=>0, 'max'=>1},
|
81
|
-
'extension' => {'type'=>'Extension', 'path'=>'Concept.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
82
|
-
'modifierExtension' => {'type'=>'Extension', 'path'=>'Concept.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
83
|
-
'code' => {'type'=>'code', 'path'=>'Concept.code', 'min'=>1, 'max'=>1},
|
84
|
-
'abstract' => {'type'=>'boolean', 'path'=>'Concept.abstract', 'min'=>0, 'max'=>1},
|
85
|
-
'display' => {'type'=>'string', 'path'=>'Concept.display', 'min'=>0, 'max'=>1},
|
86
|
-
'definition' => {'type'=>'string', 'path'=>'Concept.definition', 'min'=>0, 'max'=>1},
|
87
|
-
'designation' => {'type'=>'ValueSet::CodeSystem::Concept::Designation', 'path'=>'Concept.designation', 'min'=>0, 'max'=>Float::INFINITY},
|
88
|
-
'concept' => {'type'=>'ValueSet::CodeSystem::Concept', 'path'=>'Concept.concept', 'min'=>0, 'max'=>Float::INFINITY}
|
80
|
+
'id' => { 'type' => 'id', 'path' => 'Concept.id', 'min' => 0, 'max' => 1 },
|
81
|
+
'extension' => { 'type' => 'Extension', 'path' => 'Concept.extension', 'min' => 0, 'max' => Float::INFINITY },
|
82
|
+
'modifierExtension' => { 'type' => 'Extension', 'path' => 'Concept.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
|
83
|
+
'code' => { 'type' => 'code', 'path' => 'Concept.code', 'min' => 1, 'max' => 1 },
|
84
|
+
'abstract' => { 'type' => 'boolean', 'path' => 'Concept.abstract', 'min' => 0, 'max' => 1 },
|
85
|
+
'display' => { 'type' => 'string', 'path' => 'Concept.display', 'min' => 0, 'max' => 1 },
|
86
|
+
'definition' => { 'type' => 'string', 'path' => 'Concept.definition', 'min' => 0, 'max' => 1 },
|
87
|
+
'designation' => { 'type' => 'ValueSet::CodeSystem::Concept::Designation', 'path' => 'Concept.designation', 'min' => 0, 'max' => Float::INFINITY },
|
88
|
+
'concept' => { 'type' => 'ValueSet::CodeSystem::Concept', 'path' => 'Concept.concept', 'min' => 0, 'max' => Float::INFINITY }
|
89
89
|
}
|
90
90
|
|
91
91
|
class Designation < FHIR::DSTU2::Model
|
@@ -94,12 +94,12 @@ module FHIR
|
|
94
94
|
include FHIR::DSTU2::Xml
|
95
95
|
|
96
96
|
METADATA = {
|
97
|
-
'id' => {'type'=>'id', 'path'=>'Designation.id', 'min'=>0, 'max'=>1},
|
98
|
-
'extension' => {'type'=>'Extension', 'path'=>'Designation.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
99
|
-
'modifierExtension' => {'type'=>'Extension', 'path'=>'Designation.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
100
|
-
'language' => {'type'=>'code', 'path'=>'Designation.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
|
101
|
-
'use' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'Coding', 'path'=>'Designation.use', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/designation-use'}},
|
102
|
-
'value' => {'type'=>'string', 'path'=>'Designation.value', 'min'=>1, 'max'=>1}
|
97
|
+
'id' => { 'type' => 'id', 'path' => 'Designation.id', 'min' => 0, 'max' => 1 },
|
98
|
+
'extension' => { 'type' => 'Extension', 'path' => 'Designation.extension', 'min' => 0, 'max' => Float::INFINITY },
|
99
|
+
'modifierExtension' => { 'type' => 'Extension', 'path' => 'Designation.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
|
100
|
+
'language' => { 'type' => 'code', 'path' => 'Designation.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
|
101
|
+
'use' => { 'valid_codes' => { 'http://snomed.info/sct' => [] }, 'type' => 'Coding', 'path' => 'Designation.use', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'extensible', 'uri' => 'http://hl7.org/fhir/ValueSet/designation-use' } },
|
102
|
+
'value' => { 'type' => 'string', 'path' => 'Designation.value', 'min' => 1, 'max' => 1 }
|
103
103
|
}
|
104
104
|
|
105
105
|
attr_accessor :id # 0-1 id
|
@@ -136,12 +136,12 @@ module FHIR
|
|
136
136
|
include FHIR::DSTU2::Xml
|
137
137
|
|
138
138
|
METADATA = {
|
139
|
-
'id' => {'type'=>'id', 'path'=>'Compose.id', 'min'=>0, 'max'=>1},
|
140
|
-
'extension' => {'type'=>'Extension', 'path'=>'Compose.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
141
|
-
'modifierExtension' => {'type'=>'Extension', 'path'=>'Compose.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
142
|
-
'import' => {'type'=>'uri', 'path'=>'Compose.import', 'min'=>0, 'max'=>Float::INFINITY},
|
143
|
-
'include' => {'type'=>'ValueSet::Compose::Include', 'path'=>'Compose.include', 'min'=>0, 'max'=>Float::INFINITY},
|
144
|
-
'exclude' => {'type'=>'ValueSet::Compose::Include', 'path'=>'Compose.exclude', 'min'=>0, 'max'=>Float::INFINITY}
|
139
|
+
'id' => { 'type' => 'id', 'path' => 'Compose.id', 'min' => 0, 'max' => 1 },
|
140
|
+
'extension' => { 'type' => 'Extension', 'path' => 'Compose.extension', 'min' => 0, 'max' => Float::INFINITY },
|
141
|
+
'modifierExtension' => { 'type' => 'Extension', 'path' => 'Compose.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
|
142
|
+
'import' => { 'type' => 'uri', 'path' => 'Compose.import', 'min' => 0, 'max' => Float::INFINITY },
|
143
|
+
'include' => { 'type' => 'ValueSet::Compose::Include', 'path' => 'Compose.include', 'min' => 0, 'max' => Float::INFINITY },
|
144
|
+
'exclude' => { 'type' => 'ValueSet::Compose::Include', 'path' => 'Compose.exclude', 'min' => 0, 'max' => Float::INFINITY }
|
145
145
|
}
|
146
146
|
|
147
147
|
class Include < FHIR::DSTU2::Model
|
@@ -150,13 +150,13 @@ module FHIR
|
|
150
150
|
include FHIR::DSTU2::Xml
|
151
151
|
|
152
152
|
METADATA = {
|
153
|
-
'id' => {'type'=>'id', 'path'=>'Include.id', 'min'=>0, 'max'=>1},
|
154
|
-
'extension' => {'type'=>'Extension', 'path'=>'Include.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
155
|
-
'modifierExtension' => {'type'=>'Extension', 'path'=>'Include.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
156
|
-
'system' => {'type'=>'uri', 'path'=>'Include.system', 'min'=>1, 'max'=>1},
|
157
|
-
'version' => {'type'=>'string', 'path'=>'Include.version', 'min'=>0, 'max'=>1},
|
158
|
-
'concept' => {'type'=>'ValueSet::Compose::Include::Concept', 'path'=>'Include.concept', 'min'=>0, 'max'=>Float::INFINITY},
|
159
|
-
'filter' => {'type'=>'ValueSet::Compose::Include::Filter', 'path'=>'Include.filter', 'min'=>0, 'max'=>Float::INFINITY}
|
153
|
+
'id' => { 'type' => 'id', 'path' => 'Include.id', 'min' => 0, 'max' => 1 },
|
154
|
+
'extension' => { 'type' => 'Extension', 'path' => 'Include.extension', 'min' => 0, 'max' => Float::INFINITY },
|
155
|
+
'modifierExtension' => { 'type' => 'Extension', 'path' => 'Include.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
|
156
|
+
'system' => { 'type' => 'uri', 'path' => 'Include.system', 'min' => 1, 'max' => 1 },
|
157
|
+
'version' => { 'type' => 'string', 'path' => 'Include.version', 'min' => 0, 'max' => 1 },
|
158
|
+
'concept' => { 'type' => 'ValueSet::Compose::Include::Concept', 'path' => 'Include.concept', 'min' => 0, 'max' => Float::INFINITY },
|
159
|
+
'filter' => { 'type' => 'ValueSet::Compose::Include::Filter', 'path' => 'Include.filter', 'min' => 0, 'max' => Float::INFINITY }
|
160
160
|
}
|
161
161
|
|
162
162
|
class Concept < FHIR::DSTU2::Model
|
@@ -165,12 +165,12 @@ module FHIR
|
|
165
165
|
include FHIR::DSTU2::Xml
|
166
166
|
|
167
167
|
METADATA = {
|
168
|
-
'id' => {'type'=>'id', 'path'=>'Concept.id', 'min'=>0, 'max'=>1},
|
169
|
-
'extension' => {'type'=>'Extension', 'path'=>'Concept.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
170
|
-
'modifierExtension' => {'type'=>'Extension', 'path'=>'Concept.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
171
|
-
'code' => {'type'=>'code', 'path'=>'Concept.code', 'min'=>1, 'max'=>1},
|
172
|
-
'display' => {'type'=>'string', 'path'=>'Concept.display', 'min'=>0, 'max'=>1},
|
173
|
-
'designation' => {'type'=>'ValueSet::CodeSystem::Concept::Designation', 'path'=>'Concept.designation', 'min'=>0, 'max'=>Float::INFINITY}
|
168
|
+
'id' => { 'type' => 'id', 'path' => 'Concept.id', 'min' => 0, 'max' => 1 },
|
169
|
+
'extension' => { 'type' => 'Extension', 'path' => 'Concept.extension', 'min' => 0, 'max' => Float::INFINITY },
|
170
|
+
'modifierExtension' => { 'type' => 'Extension', 'path' => 'Concept.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
|
171
|
+
'code' => { 'type' => 'code', 'path' => 'Concept.code', 'min' => 1, 'max' => 1 },
|
172
|
+
'display' => { 'type' => 'string', 'path' => 'Concept.display', 'min' => 0, 'max' => 1 },
|
173
|
+
'designation' => { 'type' => 'ValueSet::CodeSystem::Concept::Designation', 'path' => 'Concept.designation', 'min' => 0, 'max' => Float::INFINITY }
|
174
174
|
}
|
175
175
|
|
176
176
|
attr_accessor :id # 0-1 id
|
@@ -187,12 +187,12 @@ module FHIR
|
|
187
187
|
include FHIR::DSTU2::Xml
|
188
188
|
|
189
189
|
METADATA = {
|
190
|
-
'id' => {'type'=>'id', 'path'=>'Filter.id', 'min'=>0, 'max'=>1},
|
191
|
-
'extension' => {'type'=>'Extension', 'path'=>'Filter.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
192
|
-
'modifierExtension' => {'type'=>'Extension', 'path'=>'Filter.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
193
|
-
'property' => {'type'=>'code', 'path'=>'Filter.property', 'min'=>1, 'max'=>1},
|
194
|
-
'op' => {'valid_codes'=>{'http://hl7.org/fhir/filter-operator'=>['=', 'is-a', 'is-not-a', 'regex', 'in', 'not-in']}, 'type'=>'code', 'path'=>'Filter.op', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/filter-operator'}},
|
195
|
-
'value' => {'type'=>'code', 'path'=>'Filter.value', 'min'=>1, 'max'=>1}
|
190
|
+
'id' => { 'type' => 'id', 'path' => 'Filter.id', 'min' => 0, 'max' => 1 },
|
191
|
+
'extension' => { 'type' => 'Extension', 'path' => 'Filter.extension', 'min' => 0, 'max' => Float::INFINITY },
|
192
|
+
'modifierExtension' => { 'type' => 'Extension', 'path' => 'Filter.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
|
193
|
+
'property' => { 'type' => 'code', 'path' => 'Filter.property', 'min' => 1, 'max' => 1 },
|
194
|
+
'op' => { 'valid_codes' => { 'http://hl7.org/fhir/filter-operator' => ['=', 'is-a', 'is-not-a', 'regex', 'in', 'not-in'] }, 'type' => 'code', 'path' => 'Filter.op', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/filter-operator' } },
|
195
|
+
'value' => { 'type' => 'code', 'path' => 'Filter.value', 'min' => 1, 'max' => 1 }
|
196
196
|
}
|
197
197
|
|
198
198
|
attr_accessor :id # 0-1 id
|
@@ -226,15 +226,15 @@ module FHIR
|
|
226
226
|
include FHIR::DSTU2::Xml
|
227
227
|
|
228
228
|
METADATA = {
|
229
|
-
'id' => {'type'=>'id', 'path'=>'Expansion.id', 'min'=>0, 'max'=>1},
|
230
|
-
'extension' => {'type'=>'Extension', 'path'=>'Expansion.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
231
|
-
'modifierExtension' => {'type'=>'Extension', 'path'=>'Expansion.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
232
|
-
'identifier' => {'type'=>'uri', 'path'=>'Expansion.identifier', 'min'=>1, 'max'=>1},
|
233
|
-
'timestamp' => {'type'=>'dateTime', 'path'=>'Expansion.timestamp', 'min'=>1, 'max'=>1},
|
234
|
-
'total' => {'type'=>'integer', 'path'=>'Expansion.total', 'min'=>0, 'max'=>1},
|
235
|
-
'offset' => {'type'=>'integer', 'path'=>'Expansion.offset', 'min'=>0, 'max'=>1},
|
236
|
-
'parameter' => {'type'=>'ValueSet::Expansion::Parameter', 'path'=>'Expansion.parameter', 'min'=>0, 'max'=>Float::INFINITY},
|
237
|
-
'contains' => {'type'=>'ValueSet::Expansion::Contains', 'path'=>'Expansion.contains', 'min'=>0, 'max'=>Float::INFINITY}
|
229
|
+
'id' => { 'type' => 'id', 'path' => 'Expansion.id', 'min' => 0, 'max' => 1 },
|
230
|
+
'extension' => { 'type' => 'Extension', 'path' => 'Expansion.extension', 'min' => 0, 'max' => Float::INFINITY },
|
231
|
+
'modifierExtension' => { 'type' => 'Extension', 'path' => 'Expansion.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
|
232
|
+
'identifier' => { 'type' => 'uri', 'path' => 'Expansion.identifier', 'min' => 1, 'max' => 1 },
|
233
|
+
'timestamp' => { 'type' => 'dateTime', 'path' => 'Expansion.timestamp', 'min' => 1, 'max' => 1 },
|
234
|
+
'total' => { 'type' => 'integer', 'path' => 'Expansion.total', 'min' => 0, 'max' => 1 },
|
235
|
+
'offset' => { 'type' => 'integer', 'path' => 'Expansion.offset', 'min' => 0, 'max' => 1 },
|
236
|
+
'parameter' => { 'type' => 'ValueSet::Expansion::Parameter', 'path' => 'Expansion.parameter', 'min' => 0, 'max' => Float::INFINITY },
|
237
|
+
'contains' => { 'type' => 'ValueSet::Expansion::Contains', 'path' => 'Expansion.contains', 'min' => 0, 'max' => Float::INFINITY }
|
238
238
|
}
|
239
239
|
|
240
240
|
class Parameter < FHIR::DSTU2::Model
|
@@ -246,16 +246,16 @@ module FHIR
|
|
246
246
|
'value' => ['string', 'boolean', 'integer', 'decimal', 'uri', 'code']
|
247
247
|
}
|
248
248
|
METADATA = {
|
249
|
-
'id' => {'type'=>'id', 'path'=>'Parameter.id', 'min'=>0, 'max'=>1},
|
250
|
-
'extension' => {'type'=>'Extension', 'path'=>'Parameter.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
251
|
-
'modifierExtension' => {'type'=>'Extension', 'path'=>'Parameter.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
252
|
-
'name' => {'type'=>'string', 'path'=>'Parameter.name', 'min'=>1, 'max'=>1},
|
253
|
-
'valueString' => {'type'=>'string', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
|
254
|
-
'valueBoolean' => {'type'=>'boolean', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
|
255
|
-
'valueInteger' => {'type'=>'integer', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
|
256
|
-
'valueDecimal' => {'type'=>'decimal', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
|
257
|
-
'valueUri' => {'type'=>'uri', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1},
|
258
|
-
'valueCode' => {'type'=>'code', 'path'=>'Parameter.value[x]', 'min'=>0, 'max'=>1}
|
249
|
+
'id' => { 'type' => 'id', 'path' => 'Parameter.id', 'min' => 0, 'max' => 1 },
|
250
|
+
'extension' => { 'type' => 'Extension', 'path' => 'Parameter.extension', 'min' => 0, 'max' => Float::INFINITY },
|
251
|
+
'modifierExtension' => { 'type' => 'Extension', 'path' => 'Parameter.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
|
252
|
+
'name' => { 'type' => 'string', 'path' => 'Parameter.name', 'min' => 1, 'max' => 1 },
|
253
|
+
'valueString' => { 'type' => 'string', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
|
254
|
+
'valueBoolean' => { 'type' => 'boolean', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
|
255
|
+
'valueInteger' => { 'type' => 'integer', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
|
256
|
+
'valueDecimal' => { 'type' => 'decimal', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
|
257
|
+
'valueUri' => { 'type' => 'uri', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 },
|
258
|
+
'valueCode' => { 'type' => 'code', 'path' => 'Parameter.value[x]', 'min' => 0, 'max' => 1 }
|
259
259
|
}
|
260
260
|
|
261
261
|
attr_accessor :id # 0-1 id
|
@@ -276,15 +276,15 @@ module FHIR
|
|
276
276
|
include FHIR::DSTU2::Xml
|
277
277
|
|
278
278
|
METADATA = {
|
279
|
-
'id' => {'type'=>'id', 'path'=>'Contains.id', 'min'=>0, 'max'=>1},
|
280
|
-
'extension' => {'type'=>'Extension', 'path'=>'Contains.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
281
|
-
'modifierExtension' => {'type'=>'Extension', 'path'=>'Contains.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
282
|
-
'system' => {'type'=>'uri', 'path'=>'Contains.system', 'min'=>0, 'max'=>1},
|
283
|
-
'abstract' => {'type'=>'boolean', 'path'=>'Contains.abstract', 'min'=>0, 'max'=>1},
|
284
|
-
'version' => {'type'=>'string', 'path'=>'Contains.version', 'min'=>0, 'max'=>1},
|
285
|
-
'code' => {'type'=>'code', 'path'=>'Contains.code', 'min'=>0, 'max'=>1},
|
286
|
-
'display' => {'type'=>'string', 'path'=>'Contains.display', 'min'=>0, 'max'=>1},
|
287
|
-
'contains' => {'type'=>'ValueSet::Expansion::Contains', 'path'=>'Contains.contains', 'min'=>0, 'max'=>Float::INFINITY}
|
279
|
+
'id' => { 'type' => 'id', 'path' => 'Contains.id', 'min' => 0, 'max' => 1 },
|
280
|
+
'extension' => { 'type' => 'Extension', 'path' => 'Contains.extension', 'min' => 0, 'max' => Float::INFINITY },
|
281
|
+
'modifierExtension' => { 'type' => 'Extension', 'path' => 'Contains.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
|
282
|
+
'system' => { 'type' => 'uri', 'path' => 'Contains.system', 'min' => 0, 'max' => 1 },
|
283
|
+
'abstract' => { 'type' => 'boolean', 'path' => 'Contains.abstract', 'min' => 0, 'max' => 1 },
|
284
|
+
'version' => { 'type' => 'string', 'path' => 'Contains.version', 'min' => 0, 'max' => 1 },
|
285
|
+
'code' => { 'type' => 'code', 'path' => 'Contains.code', 'min' => 0, 'max' => 1 },
|
286
|
+
'display' => { 'type' => 'string', 'path' => 'Contains.display', 'min' => 0, 'max' => 1 },
|
287
|
+
'contains' => { 'type' => 'ValueSet::Expansion::Contains', 'path' => 'Contains.contains', 'min' => 0, 'max' => Float::INFINITY }
|
288
288
|
}
|
289
289
|
|
290
290
|
attr_accessor :id # 0-1 id
|
@@ -342,4 +342,4 @@ module FHIR
|
|
342
342
|
end
|
343
343
|
end
|
344
344
|
end
|
345
|
-
end
|
345
|
+
end
|
@@ -10,22 +10,22 @@ module FHIR
|
|
10
10
|
}
|
11
11
|
SEARCH_PARAMS = ['datewritten', 'encounter', 'identifier', 'patient', 'prescriber']
|
12
12
|
METADATA = {
|
13
|
-
'id' => {'type'=>'id', 'path'=>'VisionPrescription.id', 'min'=>0, 'max'=>1},
|
14
|
-
'meta' => {'type'=>'Meta', 'path'=>'VisionPrescription.meta', 'min'=>0, 'max'=>1},
|
15
|
-
'implicitRules' => {'type'=>'uri', 'path'=>'VisionPrescription.implicitRules', 'min'=>0, 'max'=>1},
|
16
|
-
'language' => {'type'=>'code', 'path'=>'VisionPrescription.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
|
17
|
-
'text' => {'type'=>'Narrative', 'path'=>'VisionPrescription.text', 'min'=>0, 'max'=>1},
|
18
|
-
'contained' => {'type'=>'Resource', 'path'=>'VisionPrescription.contained', 'min'=>0, 'max'=>Float::INFINITY},
|
19
|
-
'extension' => {'type'=>'Extension', 'path'=>'VisionPrescription.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
20
|
-
'modifierExtension' => {'type'=>'Extension', 'path'=>'VisionPrescription.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
21
|
-
'identifier' => {'type'=>'Identifier', 'path'=>'VisionPrescription.identifier', 'min'=>0, 'max'=>Float::INFINITY},
|
22
|
-
'dateWritten' => {'type'=>'dateTime', 'path'=>'VisionPrescription.dateWritten', 'min'=>0, 'max'=>1},
|
23
|
-
'patient' => {'type'=>'Reference', 'path'=>'VisionPrescription.patient', 'min'=>0, 'max'=>1},
|
24
|
-
'prescriber' => {'type'=>'Reference', 'path'=>'VisionPrescription.prescriber', 'min'=>0, 'max'=>1},
|
25
|
-
'encounter' => {'type'=>'Reference', 'path'=>'VisionPrescription.encounter', 'min'=>0, 'max'=>1},
|
26
|
-
'reasonCodeableConcept' => {'type'=>'CodeableConcept', 'path'=>'VisionPrescription.reason[x]', 'min'=>0, 'max'=>1},
|
27
|
-
'reasonReference' => {'type'=>'Reference', 'path'=>'VisionPrescription.reason[x]', 'min'=>0, 'max'=>1},
|
28
|
-
'dispense' => {'type'=>'VisionPrescription::Dispense', 'path'=>'VisionPrescription.dispense', 'min'=>0, 'max'=>Float::INFINITY}
|
13
|
+
'id' => { 'type' => 'id', 'path' => 'VisionPrescription.id', 'min' => 0, 'max' => 1 },
|
14
|
+
'meta' => { 'type' => 'Meta', 'path' => 'VisionPrescription.meta', 'min' => 0, 'max' => 1 },
|
15
|
+
'implicitRules' => { 'type' => 'uri', 'path' => 'VisionPrescription.implicitRules', 'min' => 0, 'max' => 1 },
|
16
|
+
'language' => { 'type' => 'code', 'path' => 'VisionPrescription.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
|
17
|
+
'text' => { 'type' => 'Narrative', 'path' => 'VisionPrescription.text', 'min' => 0, 'max' => 1 },
|
18
|
+
'contained' => { 'type' => 'Resource', 'path' => 'VisionPrescription.contained', 'min' => 0, 'max' => Float::INFINITY },
|
19
|
+
'extension' => { 'type' => 'Extension', 'path' => 'VisionPrescription.extension', 'min' => 0, 'max' => Float::INFINITY },
|
20
|
+
'modifierExtension' => { 'type' => 'Extension', 'path' => 'VisionPrescription.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
|
21
|
+
'identifier' => { 'type' => 'Identifier', 'path' => 'VisionPrescription.identifier', 'min' => 0, 'max' => Float::INFINITY },
|
22
|
+
'dateWritten' => { 'type' => 'dateTime', 'path' => 'VisionPrescription.dateWritten', 'min' => 0, 'max' => 1 },
|
23
|
+
'patient' => { 'type' => 'Reference', 'path' => 'VisionPrescription.patient', 'min' => 0, 'max' => 1 },
|
24
|
+
'prescriber' => { 'type' => 'Reference', 'path' => 'VisionPrescription.prescriber', 'min' => 0, 'max' => 1 },
|
25
|
+
'encounter' => { 'type' => 'Reference', 'path' => 'VisionPrescription.encounter', 'min' => 0, 'max' => 1 },
|
26
|
+
'reasonCodeableConcept' => { 'type' => 'CodeableConcept', 'path' => 'VisionPrescription.reason[x]', 'min' => 0, 'max' => 1 },
|
27
|
+
'reasonReference' => { 'type' => 'Reference', 'path' => 'VisionPrescription.reason[x]', 'min' => 0, 'max' => 1 },
|
28
|
+
'dispense' => { 'type' => 'VisionPrescription::Dispense', 'path' => 'VisionPrescription.dispense', 'min' => 0, 'max' => Float::INFINITY }
|
29
29
|
}
|
30
30
|
|
31
31
|
class Dispense < FHIR::DSTU2::Model
|
@@ -34,24 +34,24 @@ module FHIR
|
|
34
34
|
include FHIR::DSTU2::Xml
|
35
35
|
|
36
36
|
METADATA = {
|
37
|
-
'id' => {'type'=>'id', 'path'=>'Dispense.id', 'min'=>0, 'max'=>1},
|
38
|
-
'extension' => {'type'=>'Extension', 'path'=>'Dispense.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
39
|
-
'modifierExtension' => {'type'=>'Extension', 'path'=>'Dispense.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
40
|
-
'product' => {'valid_codes'=>{'http://hl7.org/fhir/ex-visionprescriptionproduct'=>['lens', 'contact']}, 'type'=>'Coding', 'path'=>'Dispense.product', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/vision-product'}},
|
41
|
-
'eye' => {'valid_codes'=>{'http://hl7.org/fhir/vision-eye-codes'=>['right', 'left']}, 'type'=>'code', 'path'=>'Dispense.eye', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/vision-eye-codes'}},
|
42
|
-
'sphere' => {'type'=>'decimal', 'path'=>'Dispense.sphere', 'min'=>0, 'max'=>1},
|
43
|
-
'cylinder' => {'type'=>'decimal', 'path'=>'Dispense.cylinder', 'min'=>0, 'max'=>1},
|
44
|
-
'axis' => {'type'=>'integer', 'path'=>'Dispense.axis', 'min'=>0, 'max'=>1},
|
45
|
-
'prism' => {'type'=>'decimal', 'path'=>'Dispense.prism', 'min'=>0, 'max'=>1},
|
46
|
-
'base' => {'valid_codes'=>{'http://hl7.org/fhir/vision-base-codes'=>['up', 'down', 'in', 'out']}, 'type'=>'code', 'path'=>'Dispense.base', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/vision-base-codes'}},
|
47
|
-
'add' => {'type'=>'decimal', 'path'=>'Dispense.add', 'min'=>0, 'max'=>1},
|
48
|
-
'power' => {'type'=>'decimal', 'path'=>'Dispense.power', 'min'=>0, 'max'=>1},
|
49
|
-
'backCurve' => {'type'=>'decimal', 'path'=>'Dispense.backCurve', 'min'=>0, 'max'=>1},
|
50
|
-
'diameter' => {'type'=>'decimal', 'path'=>'Dispense.diameter', 'min'=>0, 'max'=>1},
|
51
|
-
'duration' => {'type'=>'Quantity', 'path'=>'Dispense.duration', 'min'=>0, 'max'=>1},
|
52
|
-
'color' => {'type'=>'string', 'path'=>'Dispense.color', 'min'=>0, 'max'=>1},
|
53
|
-
'brand' => {'type'=>'string', 'path'=>'Dispense.brand', 'min'=>0, 'max'=>1},
|
54
|
-
'notes' => {'type'=>'string', 'path'=>'Dispense.notes', 'min'=>0, 'max'=>1}
|
37
|
+
'id' => { 'type' => 'id', 'path' => 'Dispense.id', 'min' => 0, 'max' => 1 },
|
38
|
+
'extension' => { 'type' => 'Extension', 'path' => 'Dispense.extension', 'min' => 0, 'max' => Float::INFINITY },
|
39
|
+
'modifierExtension' => { 'type' => 'Extension', 'path' => 'Dispense.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
|
40
|
+
'product' => { 'valid_codes' => { 'http://hl7.org/fhir/ex-visionprescriptionproduct' => ['lens', 'contact'] }, 'type' => 'Coding', 'path' => 'Dispense.product', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/vision-product' } },
|
41
|
+
'eye' => { 'valid_codes' => { 'http://hl7.org/fhir/vision-eye-codes' => ['right', 'left'] }, 'type' => 'code', 'path' => 'Dispense.eye', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/vision-eye-codes' } },
|
42
|
+
'sphere' => { 'type' => 'decimal', 'path' => 'Dispense.sphere', 'min' => 0, 'max' => 1 },
|
43
|
+
'cylinder' => { 'type' => 'decimal', 'path' => 'Dispense.cylinder', 'min' => 0, 'max' => 1 },
|
44
|
+
'axis' => { 'type' => 'integer', 'path' => 'Dispense.axis', 'min' => 0, 'max' => 1 },
|
45
|
+
'prism' => { 'type' => 'decimal', 'path' => 'Dispense.prism', 'min' => 0, 'max' => 1 },
|
46
|
+
'base' => { 'valid_codes' => { 'http://hl7.org/fhir/vision-base-codes' => ['up', 'down', 'in', 'out'] }, 'type' => 'code', 'path' => 'Dispense.base', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/vision-base-codes' } },
|
47
|
+
'add' => { 'type' => 'decimal', 'path' => 'Dispense.add', 'min' => 0, 'max' => 1 },
|
48
|
+
'power' => { 'type' => 'decimal', 'path' => 'Dispense.power', 'min' => 0, 'max' => 1 },
|
49
|
+
'backCurve' => { 'type' => 'decimal', 'path' => 'Dispense.backCurve', 'min' => 0, 'max' => 1 },
|
50
|
+
'diameter' => { 'type' => 'decimal', 'path' => 'Dispense.diameter', 'min' => 0, 'max' => 1 },
|
51
|
+
'duration' => { 'type' => 'Quantity', 'path' => 'Dispense.duration', 'min' => 0, 'max' => 1 },
|
52
|
+
'color' => { 'type' => 'string', 'path' => 'Dispense.color', 'min' => 0, 'max' => 1 },
|
53
|
+
'brand' => { 'type' => 'string', 'path' => 'Dispense.brand', 'min' => 0, 'max' => 1 },
|
54
|
+
'notes' => { 'type' => 'string', 'path' => 'Dispense.notes', 'min' => 0, 'max' => 1 }
|
55
55
|
}
|
56
56
|
|
57
57
|
attr_accessor :id # 0-1 id
|
@@ -96,4 +96,4 @@ module FHIR
|
|
96
96
|
end
|
97
97
|
end
|
98
98
|
end
|
99
|
-
end
|
99
|
+
end
|
@@ -5,21 +5,21 @@ 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
|
-
|
21
|
-
|
22
|
-
|
8
|
+
SEARCH_PARAMS =
|
9
|
+
METADATA = {
|
10
|
+
'id' => { 'type' => 'id', 'path' => 'Address.id', 'min' => 0, 'max' => 1 },
|
11
|
+
'extension' => { 'type' => 'Extension', 'path' => 'Address.extension', 'min' => 0, 'max' => Float::INFINITY },
|
12
|
+
'use' => { 'valid_codes' => { 'http://hl7.org/fhir/address-use' => ['home', 'work', 'temp', 'old'] }, 'type' => 'code', 'path' => 'Address.use', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/address-use' } },
|
13
|
+
'type' => { 'valid_codes' => { 'http://hl7.org/fhir/address-type' => ['postal', 'physical', 'both'] }, 'type' => 'code', 'path' => 'Address.type', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/address-type' } },
|
14
|
+
'text' => { 'type' => 'string', 'path' => 'Address.text', 'min' => 0, 'max' => 1 },
|
15
|
+
'line' => { 'type' => 'string', 'path' => 'Address.line', 'min' => 0, 'max' => Float::INFINITY },
|
16
|
+
'city' => { 'type' => 'string', 'path' => 'Address.city', 'min' => 0, 'max' => 1 },
|
17
|
+
'district' => { 'type' => 'string', 'path' => 'Address.district', 'min' => 0, 'max' => 1 },
|
18
|
+
'state' => { 'type' => 'string', 'path' => 'Address.state', 'min' => 0, 'max' => 1 },
|
19
|
+
'postalCode' => { 'type' => 'string', 'path' => 'Address.postalCode', 'min' => 0, 'max' => 1 },
|
20
|
+
'country' => { 'type' => 'string', 'path' => 'Address.country', 'min' => 0, 'max' => 1 },
|
21
|
+
'period' => { 'type' => 'Period', 'path' => 'Address.period', 'min' => 0, 'max' => 1 }
|
22
|
+
}
|
23
23
|
|
24
24
|
attr_accessor :id # 0-1 id
|
25
25
|
attr_accessor :extension # 0-* [ Extension ]
|
@@ -35,4 +35,4 @@ module FHIR
|
|
35
35
|
attr_accessor :period # 0-1 Period
|
36
36
|
end
|
37
37
|
end
|
38
|
-
end
|
38
|
+
end
|
@@ -8,15 +8,15 @@ module FHIR
|
|
8
8
|
MULTIPLE_TYPES = {
|
9
9
|
'author' => ['Reference', 'string']
|
10
10
|
}
|
11
|
-
SEARCH_PARAMS =
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
11
|
+
SEARCH_PARAMS =
|
12
|
+
METADATA = {
|
13
|
+
'id' => { 'type' => 'id', 'path' => 'Annotation.id', 'min' => 0, 'max' => 1 },
|
14
|
+
'extension' => { 'type' => 'Extension', 'path' => 'Annotation.extension', 'min' => 0, 'max' => Float::INFINITY },
|
15
|
+
'authorReference' => { 'type' => 'Reference', 'path' => 'Annotation.author[x]', 'min' => 0, 'max' => 1 },
|
16
|
+
'authorString' => { 'type' => 'string', 'path' => 'Annotation.author[x]', 'min' => 0, 'max' => 1 },
|
17
|
+
'time' => { 'type' => 'dateTime', 'path' => 'Annotation.time', 'min' => 0, 'max' => 1 },
|
18
|
+
'text' => { 'type' => 'string', 'path' => 'Annotation.text', 'min' => 1, 'max' => 1 }
|
19
|
+
}
|
20
20
|
|
21
21
|
attr_accessor :id # 0-1 id
|
22
22
|
attr_accessor :extension # 0-* [ Extension ]
|
@@ -26,4 +26,4 @@ module FHIR
|
|
26
26
|
attr_accessor :text # 1-1 string
|
27
27
|
end
|
28
28
|
end
|
29
|
-
end
|
29
|
+
end
|