Class: FHIR::R4::Extension

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

Constant Summary collapse

MULTIPLE_TYPES =
{
  'value' => ['base64Binary', 'boolean', 'canonical', 'code', 'date', 'dateTime', 'decimal', 'id', 'instant', 'integer', 'markdown', 'oid', 'positiveInt', 'string', 'time', 'unsignedInt', 'uri', 'url', 'uuid', 'Address', 'Age', 'Annotation', 'Attachment', 'CodeableConcept', 'Coding', 'ContactPoint', 'Count', 'Distance', 'Duration', 'HumanName', 'Identifier', 'Money', 'Period', 'Quantity', 'Range', 'Ratio', 'Reference', 'SampledData', 'Signature', 'Timing', 'ContactDetail', 'Contributor', 'DataRequirement', 'Expression', 'ParameterDefinition', 'RelatedArtifact', 'TriggerDefinition', 'UsageContext', '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},
  '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},
  '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},
  '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},
  'valueContributor' => {'type'=>'Contributor', '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},
  '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

PRIMITIVES, RESOURCES, 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

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 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 ]



69
70
71
# File 'lib/fhir_models/r4/generated/types/Extension.rb', line 69

def extension
  @extension
end

#idObject

0-1 string



68
69
70
# File 'lib/fhir_models/r4/generated/types/Extension.rb', line 68

def id
  @id
end

#urlObject

1-1 uri



70
71
72
# File 'lib/fhir_models/r4/generated/types/Extension.rb', line 70

def url
  @url
end

#valueAddressObject

0-1 Address



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

def valueAddress
  @valueAddress
end

#valueAgeObject

0-1 Age



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

def valueAge
  @valueAge
end

#valueAnnotationObject

0-1 Annotation



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

def valueAnnotation
  @valueAnnotation
end

#valueAttachmentObject

0-1 Attachment



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

def valueAttachment
  @valueAttachment
end

#valueBase64BinaryObject

0-1 base64Binary



71
72
73
# File 'lib/fhir_models/r4/generated/types/Extension.rb', line 71

def valueBase64Binary
  @valueBase64Binary
end

#valueBooleanObject

0-1 boolean



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

def valueBoolean
  @valueBoolean
end

#valueCanonicalObject

0-1 canonical



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

def valueCanonical
  @valueCanonical
end

#valueCodeObject

0-1 code



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

def valueCode
  @valueCode
end

#valueCodeableConceptObject

0-1 CodeableConcept



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

def valueCodeableConcept
  @valueCodeableConcept
end

#valueCodingObject

0-1 Coding



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

def valueCoding
  @valueCoding
end

#valueContactDetailObject

0-1 ContactDetail



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

def valueContactDetail
  @valueContactDetail
end

#valueContactPointObject

0-1 ContactPoint



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

def valueContactPoint
  @valueContactPoint
end

#valueContributorObject

0-1 Contributor



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

def valueContributor
  @valueContributor
end

#valueCountObject

0-1 Count



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

def valueCount
  @valueCount
end

#valueDataRequirementObject

0-1 DataRequirement



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

def valueDataRequirement
  @valueDataRequirement
end

#valueDateObject

0-1 date



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

def valueDate
  @valueDate
end

#valueDateTimeObject

0-1 dateTime



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

def valueDateTime
  @valueDateTime
end

#valueDecimalObject

0-1 decimal



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

def valueDecimal
  @valueDecimal
end

#valueDistanceObject

0-1 Distance



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

def valueDistance
  @valueDistance
end

#valueDosageObject

0-1 Dosage



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

def valueDosage
  @valueDosage
end

#valueDurationObject

0-1 Duration



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

def valueDuration
  @valueDuration
end

#valueExpressionObject

0-1 Expression



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

def valueExpression
  @valueExpression
end

#valueHumanNameObject

0-1 HumanName



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

def valueHumanName
  @valueHumanName
end

#valueIdObject

0-1 id



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

def valueId
  @valueId
end

#valueIdentifierObject

0-1 Identifier



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

def valueIdentifier
  @valueIdentifier
end

#valueInstantObject

0-1 instant



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

def valueInstant
  @valueInstant
end

#valueIntegerObject

0-1 integer



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

def valueInteger
  @valueInteger
end

#valueMarkdownObject

0-1 markdown



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

def valueMarkdown
  @valueMarkdown
end

#valueMetaObject

0-1 Meta



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

def valueMeta
  @valueMeta
end

#valueMoneyObject

0-1 Money



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

def valueMoney
  @valueMoney
end

#valueOidObject

0-1 oid



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

def valueOid
  @valueOid
end

#valueParameterDefinitionObject

0-1 ParameterDefinition



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

def valueParameterDefinition
  @valueParameterDefinition
end

#valuePeriodObject

0-1 Period



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

def valuePeriod
  @valuePeriod
end

#valuePositiveIntObject

0-1 positiveInt



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

def valuePositiveInt
  @valuePositiveInt
end

#valueQuantityObject

0-1 Quantity



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

def valueQuantity
  @valueQuantity
end

#valueRangeObject

0-1 Range



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

def valueRange
  @valueRange
end

#valueRatioObject

0-1 Ratio



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

def valueRatio
  @valueRatio
end

#valueReferenceObject

0-1 Reference()



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

def valueReference
  @valueReference
end

#valueRelatedArtifactObject

0-1 RelatedArtifact



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

def valueRelatedArtifact
  @valueRelatedArtifact
end

#valueSampledDataObject

0-1 SampledData



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

def valueSampledData
  @valueSampledData
end

#valueSignatureObject

0-1 Signature



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

def valueSignature
  @valueSignature
end

#valueStringObject

0-1 string



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

def valueString
  @valueString
end

#valueTimeObject

0-1 time



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

def valueTime
  @valueTime
end

#valueTimingObject

0-1 Timing



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

def valueTiming
  @valueTiming
end

#valueTriggerDefinitionObject

0-1 TriggerDefinition



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

def valueTriggerDefinition
  @valueTriggerDefinition
end

#valueUnsignedIntObject

0-1 unsignedInt



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

def valueUnsignedInt
  @valueUnsignedInt
end

#valueUriObject

0-1 uri



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

def valueUri
  @valueUri
end

#valueUrlObject

0-1 url



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

def valueUrl
  @valueUrl
end

#valueUsageContextObject

0-1 UsageContext



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

def valueUsageContext
  @valueUsageContext
end

#valueUuidObject

0-1 uuid



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

def valueUuid
  @valueUuid
end