Class: FHIR::R5::Extension

Inherits:
Model show all
Includes:
Hashable, Json, Xml
Defined in:
lib/fhir_models/r5/generated/types/Extension.rb

Constant Summary collapse

MULTIPLE_TYPES =
{
  'value' => ['base64Binary', 'boolean', 'canonical', 'code', 'date', 'dateTime', 'decimal', 'id', 'instant', 'integer', 'integer64', 'markdown', 'oid', 'positiveInt', 'string', 'time', 'unsignedInt', 'uri', 'url', 'uuid', 'Address', 'Age', 'Annotation', 'Attachment', 'CodeableConcept', 'CodeableReference', 'Coding', 'ContactPoint', 'Count', 'Distance', 'Duration', 'HumanName', 'Identifier', 'Money', 'Period', 'Quantity', 'Range', 'Ratio', 'RatioRange', 'Reference', 'SampledData', 'Signature', 'Timing', 'ContactDetail', 'DataRequirement', 'Expression', 'ParameterDefinition', 'RelatedArtifact', 'TriggerDefinition', 'UsageContext', 'Availability', 'ExtendedContactDetail', 'Dosage', 'Meta']
}
SEARCH_PARAMS =
[]
METADATA =
{
  'id' => {'type'=>'string', 'path'=>'Extension.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'Extension.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'url' => {'type'=>'uri', 'path'=>'Extension.url', 'min'=>1, 'max'=>1},
  'valueBase64Binary' => {'type'=>'base64Binary', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueBoolean' => {'type'=>'boolean', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueCanonical' => {'type'=>'canonical', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueCode' => {'type'=>'code', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueDate' => {'type'=>'date', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueDateTime' => {'type'=>'dateTime', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueDecimal' => {'type'=>'decimal', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueId' => {'type'=>'id', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueInstant' => {'type'=>'instant', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueInteger' => {'type'=>'integer', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueInteger64' => {'type'=>'integer64', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueMarkdown' => {'type'=>'markdown', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueOid' => {'type'=>'oid', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valuePositiveInt' => {'type'=>'positiveInt', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueString' => {'type'=>'string', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueTime' => {'type'=>'time', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueUnsignedInt' => {'type'=>'unsignedInt', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueUri' => {'type'=>'uri', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueUrl' => {'type'=>'url', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueUuid' => {'type'=>'uuid', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueAddress' => {'type'=>'Address', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueAge' => {'type'=>'Age', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueAnnotation' => {'type'=>'Annotation', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueAttachment' => {'type'=>'Attachment', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueCodeableConcept' => {'type'=>'CodeableConcept', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueCodeableReference' => {'type'=>'CodeableReference', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueCoding' => {'type'=>'Coding', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueContactPoint' => {'type'=>'ContactPoint', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueCount' => {'type'=>'Count', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueDistance' => {'type'=>'Distance', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueDuration' => {'type'=>'Duration', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueHumanName' => {'type'=>'HumanName', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueIdentifier' => {'type'=>'Identifier', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueMoney' => {'type'=>'Money', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valuePeriod' => {'type'=>'Period', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueQuantity' => {'type'=>'Quantity', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueRange' => {'type'=>'Range', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueRatio' => {'type'=>'Ratio', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueRatioRange' => {'type'=>'RatioRange', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueReference' => {'type'=>'Reference', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueSampledData' => {'type'=>'SampledData', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueSignature' => {'type'=>'Signature', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueTiming' => {'type'=>'Timing', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueContactDetail' => {'type'=>'ContactDetail', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueDataRequirement' => {'type'=>'DataRequirement', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueExpression' => {'type'=>'Expression', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueParameterDefinition' => {'type'=>'ParameterDefinition', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueRelatedArtifact' => {'type'=>'RelatedArtifact', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueTriggerDefinition' => {'type'=>'TriggerDefinition', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueUsageContext' => {'type'=>'UsageContext', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueAvailability' => {'type'=>'Availability', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueExtendedContactDetail' => {'type'=>'ExtendedContactDetail', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueDosage' => {'type'=>'Dosage', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1},
  'valueMeta' => {'type'=>'Meta', 'path'=>'Extension.value[x]', 'min'=>0, 'max'=>1}
}

Constants included from FHIR::R4

FHIR::R4::PRIMITIVES, FHIR::R4::RESOURCES, FHIR::R4::TYPES

Constants included from FHIR

Account, ActivityDefinition, Address, AdverseEvent, Age, AllergyIntolerance, Annotation, Appointment, AppointmentResponse, Attachment, AuditEvent, BackboneElement, Basic, Binary, BiologicallyDerivedProduct, BodyStructure, Bundle, CapabilityStatement, CarePlan, CareTeam, CatalogEntry, ChargeItem, ChargeItemDefinition, Claim, ClaimResponse, ClinicalImpression, CodeSystem, CodeableConcept, Coding, Communication, CommunicationRequest, CompartmentDefinition, Composition, ConceptMap, Condition, Consent, ContactDetail, ContactPoint, Contract, Contributor, Count, Coverage, CoverageEligibilityRequest, CoverageEligibilityResponse, DataRequirement, Definitions, DetectedIssue, Device, DeviceDefinition, DeviceMetric, DeviceRequest, DeviceUseStatement, DiagnosticReport, Distance, DocumentManifest, DocumentReference, DomainResource, Dosage, Duration, EffectEvidenceSynthesis, Element, ElementDefinition, Encounter, Endpoint, EnrollmentRequest, EnrollmentResponse, EpisodeOfCare, EventDefinition, Evidence, EvidenceVariable, ExampleScenario, ExplanationOfBenefit, Expression, Extension, FamilyMemberHistory, Flag, Goal, GraphDefinition, Group, GuidanceResponse, HealthcareService, HumanName, Identifier, ImagingStudy, Immunization, ImmunizationEvaluation, ImmunizationRecommendation, ImplementationGuide, InsurancePlan, Invoice, Library, Linkage, List, Location, MarketingStatus, Measure, MeasureReport, Media, Medication, MedicationAdministration, MedicationDispense, MedicationKnowledge, MedicationRequest, MedicationStatement, MedicinalProduct, MedicinalProductAuthorization, MedicinalProductContraindication, MedicinalProductIndication, MedicinalProductIngredient, MedicinalProductInteraction, MedicinalProductManufactured, MedicinalProductPackaged, MedicinalProductPharmaceutical, MedicinalProductUndesirableEffect, MessageDefinition, MessageHeader, Meta, MolecularSequence, Money, NamingSystem, Narrative, NutritionOrder, Observation, ObservationDefinition, OperationDefinition, OperationOutcome, Organization, OrganizationAffiliation, PRIMITIVES, ParameterDefinition, Parameters, Patient, PaymentNotice, PaymentReconciliation, Period, Person, PlanDefinition, Population, Practitioner, PractitionerRole, Procedure, ProdCharacteristic, ProductShelfLife, Provenance, Quantity, Questionnaire, QuestionnaireResponse, FHIR::RESOURCES, FHIR::Range, FHIR::Ratio, FHIR::Reference, FHIR::RelatedArtifact, FHIR::RelatedPerson, FHIR::RequestGroup, FHIR::ResearchDefinition, FHIR::ResearchElementDefinition, FHIR::ResearchStudy, FHIR::ResearchSubject, FHIR::Resource, FHIR::RiskAssessment, FHIR::RiskEvidenceSynthesis, SampledData, Schedule, SearchParameter, ServiceRequest, Signature, Slot, Specimen, SpecimenDefinition, StructureDefinition, StructureDefinitionCompare, StructureMap, Subscription, Substance, SubstanceAmount, SubstanceNucleicAcid, SubstancePolymer, SubstanceProtein, SubstanceReferenceInformation, SubstanceSourceMaterial, SubstanceSpecification, SupplyDelivery, SupplyRequest, TYPES, Task, TerminologyCapabilities, TestReport, TestScript, Timing, TriggerDefinition, UsageContext, ValueSet, VerificationResult, VisionPrescription

Constants included from FHIR::R5

PRIMITIVES, RESOURCES, TYPES

Instance Attribute Summary collapse

Method Summary

Methods included from FHIR::R4

#fhir_version_string, #versioned_fhir_module

Methods included from FHIR

default_logger, fhir_version_string, logger, logger=, primitive?, versioned_fhir_module

Methods included from ClassMethods

#from_contents

Methods included from ClassXml

#from_xml, #valid?, #validate, #xml_node_to_hash

Methods included from InstanceXml

#hash_to_xml_node, #to_xml

Methods included from ClassJson

#from_json

Methods included from InstanceJson

#to_json

Methods included from Hashable

#from_hash, #to_hash

Methods included from FHIR::R5

#fhir_version_string, #versioned_fhir_module

Methods inherited from Model

#==, #attribute_mismatch, #compare_attribute, #each_element, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #respond_to_missing?, #to_reference, #valid?, #validate, #validate_profile

Methods included from Deprecate

#deprecate

Constructor Details

This class inherits a constructor from FHIR::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FHIR::Model

Instance Attribute Details

#extensionObject

0-* [ Extension ]



73
74
75
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 73

def extension
  @extension
end

#idObject

0-1 string



72
73
74
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 72

def id
  @id
end

#urlObject

1-1 uri



74
75
76
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 74

def url
  @url
end

#valueAddressObject

0-1 Address



95
96
97
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 95

def valueAddress
  @valueAddress
end

#valueAgeObject

0-1 Age



96
97
98
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 96

def valueAge
  @valueAge
end

#valueAnnotationObject

0-1 Annotation



97
98
99
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 97

def valueAnnotation
  @valueAnnotation
end

#valueAttachmentObject

0-1 Attachment



98
99
100
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 98

def valueAttachment
  @valueAttachment
end

#valueAvailabilityObject

0-1 Availability



125
126
127
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 125

def valueAvailability
  @valueAvailability
end

#valueBase64BinaryObject

0-1 base64Binary



75
76
77
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 75

def valueBase64Binary
  @valueBase64Binary
end

#valueBooleanObject

0-1 boolean



76
77
78
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 76

def valueBoolean
  @valueBoolean
end

#valueCanonicalObject

0-1 canonical



77
78
79
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 77

def valueCanonical
  @valueCanonical
end

#valueCodeObject

0-1 code



78
79
80
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 78

def valueCode
  @valueCode
end

#valueCodeableConceptObject

0-1 CodeableConcept



99
100
101
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 99

def valueCodeableConcept
  @valueCodeableConcept
end

#valueCodeableReferenceObject

0-1 CodeableReference



100
101
102
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 100

def valueCodeableReference
  @valueCodeableReference
end

#valueCodingObject

0-1 Coding



101
102
103
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 101

def valueCoding
  @valueCoding
end

#valueContactDetailObject

0-1 ContactDetail



118
119
120
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 118

def valueContactDetail
  @valueContactDetail
end

#valueContactPointObject

0-1 ContactPoint



102
103
104
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 102

def valueContactPoint
  @valueContactPoint
end

#valueCountObject

0-1 Count



103
104
105
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 103

def valueCount
  @valueCount
end

#valueDataRequirementObject

0-1 DataRequirement



119
120
121
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 119

def valueDataRequirement
  @valueDataRequirement
end

#valueDateObject

0-1 date



79
80
81
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 79

def valueDate
  @valueDate
end

#valueDateTimeObject

0-1 dateTime



80
81
82
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 80

def valueDateTime
  @valueDateTime
end

#valueDecimalObject

0-1 decimal



81
82
83
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 81

def valueDecimal
  @valueDecimal
end

#valueDistanceObject

0-1 Distance



104
105
106
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 104

def valueDistance
  @valueDistance
end

#valueDosageObject

0-1 Dosage



127
128
129
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 127

def valueDosage
  @valueDosage
end

#valueDurationObject

0-1 Duration



105
106
107
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 105

def valueDuration
  @valueDuration
end

#valueExpressionObject

0-1 Expression



120
121
122
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 120

def valueExpression
  @valueExpression
end

#valueExtendedContactDetailObject

0-1 ExtendedContactDetail



126
127
128
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 126

def valueExtendedContactDetail
  @valueExtendedContactDetail
end

#valueHumanNameObject

0-1 HumanName



106
107
108
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 106

def valueHumanName
  @valueHumanName
end

#valueIdObject

0-1 id



82
83
84
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 82

def valueId
  @valueId
end

#valueIdentifierObject

0-1 Identifier



107
108
109
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 107

def valueIdentifier
  @valueIdentifier
end

#valueInstantObject

0-1 instant



83
84
85
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 83

def valueInstant
  @valueInstant
end

#valueIntegerObject

0-1 integer



84
85
86
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 84

def valueInteger
  @valueInteger
end

#valueInteger64Object

0-1 integer64



85
86
87
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 85

def valueInteger64
  @valueInteger64
end

#valueMarkdownObject

0-1 markdown



86
87
88
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 86

def valueMarkdown
  @valueMarkdown
end

#valueMetaObject

0-1 Meta



128
129
130
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 128

def valueMeta
  @valueMeta
end

#valueMoneyObject

0-1 Money



108
109
110
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 108

def valueMoney
  @valueMoney
end

#valueOidObject

0-1 oid



87
88
89
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 87

def valueOid
  @valueOid
end

#valueParameterDefinitionObject

0-1 ParameterDefinition



121
122
123
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 121

def valueParameterDefinition
  @valueParameterDefinition
end

#valuePeriodObject

0-1 Period



109
110
111
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 109

def valuePeriod
  @valuePeriod
end

#valuePositiveIntObject

0-1 positiveInt



88
89
90
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 88

def valuePositiveInt
  @valuePositiveInt
end

#valueQuantityObject

0-1 Quantity



110
111
112
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 110

def valueQuantity
  @valueQuantity
end

#valueRangeObject

0-1 Range



111
112
113
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 111

def valueRange
  @valueRange
end

#valueRatioObject

0-1 Ratio



112
113
114
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 112

def valueRatio
  @valueRatio
end

#valueRatioRangeObject

0-1 RatioRange



113
114
115
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 113

def valueRatioRange
  @valueRatioRange
end

#valueReferenceObject

0-1 Reference()



114
115
116
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 114

def valueReference
  @valueReference
end

#valueRelatedArtifactObject

0-1 RelatedArtifact



122
123
124
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 122

def valueRelatedArtifact
  @valueRelatedArtifact
end

#valueSampledDataObject

0-1 SampledData



115
116
117
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 115

def valueSampledData
  @valueSampledData
end

#valueSignatureObject

0-1 Signature



116
117
118
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 116

def valueSignature
  @valueSignature
end

#valueStringObject

0-1 string



89
90
91
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 89

def valueString
  @valueString
end

#valueTimeObject

0-1 time



90
91
92
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 90

def valueTime
  @valueTime
end

#valueTimingObject

0-1 Timing



117
118
119
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 117

def valueTiming
  @valueTiming
end

#valueTriggerDefinitionObject

0-1 TriggerDefinition



123
124
125
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 123

def valueTriggerDefinition
  @valueTriggerDefinition
end

#valueUnsignedIntObject

0-1 unsignedInt



91
92
93
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 91

def valueUnsignedInt
  @valueUnsignedInt
end

#valueUriObject

0-1 uri



92
93
94
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 92

def valueUri
  @valueUri
end

#valueUrlObject

0-1 url



93
94
95
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 93

def valueUrl
  @valueUrl
end

#valueUsageContextObject

0-1 UsageContext



124
125
126
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 124

def valueUsageContext
  @valueUsageContext
end

#valueUuidObject

0-1 uuid



94
95
96
# File 'lib/fhir_models/r5/generated/types/Extension.rb', line 94

def valueUuid
  @valueUuid
end