Class: FHIR::R4B::ElementDefinition::Example

Inherits:
Model
  • Object
show all
Includes:
Hashable, Json, Xml
Defined in:
lib/fhir_models/r4b/generated/types/ElementDefinition.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', 'CodeableReference', 'Coding', 'ContactPoint', 'Count', 'Distance', 'Duration', 'HumanName', 'Identifier', 'Money', 'Period', 'Quantity', 'Range', 'Ratio', 'RatioRange', 'Reference', 'SampledData', 'Signature', 'Timing', 'ContactDetail', 'Contributor', 'DataRequirement', 'Expression', 'ParameterDefinition', 'RelatedArtifact', 'TriggerDefinition', 'UsageContext', 'Dosage']
}
METADATA =
{
  'id' => {'type'=>'string', 'path'=>'Example.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'Example.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'label' => {'type'=>'string', 'path'=>'Example.label', 'min'=>1, 'max'=>1},
  'valueBase64Binary' => {'type'=>'base64Binary', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueBoolean' => {'type'=>'boolean', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueCanonical' => {'type'=>'canonical', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueCode' => {'type'=>'code', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueDate' => {'type'=>'date', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueDateTime' => {'type'=>'dateTime', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueDecimal' => {'type'=>'decimal', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueId' => {'type'=>'id', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueInstant' => {'type'=>'instant', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueInteger' => {'type'=>'integer', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueMarkdown' => {'type'=>'markdown', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueOid' => {'type'=>'oid', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valuePositiveInt' => {'type'=>'positiveInt', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueString' => {'type'=>'string', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueTime' => {'type'=>'time', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueUnsignedInt' => {'type'=>'unsignedInt', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueUri' => {'type'=>'uri', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueUrl' => {'type'=>'url', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueUuid' => {'type'=>'uuid', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueAddress' => {'type'=>'Address', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueAge' => {'type'=>'Age', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueAnnotation' => {'type'=>'Annotation', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueAttachment' => {'type'=>'Attachment', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueCodeableConcept' => {'type'=>'CodeableConcept', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueCodeableReference' => {'type'=>'CodeableReference', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueCoding' => {'type'=>'Coding', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueContactPoint' => {'type'=>'ContactPoint', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueCount' => {'type'=>'Count', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueDistance' => {'type'=>'Distance', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueDuration' => {'type'=>'Duration', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueHumanName' => {'type'=>'HumanName', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueIdentifier' => {'type'=>'Identifier', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueMoney' => {'type'=>'Money', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valuePeriod' => {'type'=>'Period', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueQuantity' => {'type'=>'Quantity', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueRange' => {'type'=>'Range', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueRatio' => {'type'=>'Ratio', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueRatioRange' => {'type'=>'RatioRange', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueReference' => {'type'=>'Reference', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueSampledData' => {'type'=>'SampledData', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueSignature' => {'type'=>'Signature', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueTiming' => {'type'=>'Timing', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueContactDetail' => {'type'=>'ContactDetail', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueContributor' => {'type'=>'Contributor', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueDataRequirement' => {'type'=>'DataRequirement', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueExpression' => {'type'=>'Expression', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueParameterDefinition' => {'type'=>'ParameterDefinition', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueRelatedArtifact' => {'type'=>'RelatedArtifact', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueTriggerDefinition' => {'type'=>'TriggerDefinition', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueUsageContext' => {'type'=>'UsageContext', 'path'=>'Example.value[x]', 'min'=>1, 'max'=>1},
  'valueDosage' => {'type'=>'Dosage', 'path'=>'Example.value[x]', 'min'=>1, '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::R4B

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::R4B

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



373
374
375
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 373

def extension
  @extension
end

#idObject

0-1 string



372
373
374
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 372

def id
  @id
end

#labelObject

1-1 string



374
375
376
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 374

def label
  @label
end

#valueAddressObject

1-1 Address



394
395
396
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 394

def valueAddress
  @valueAddress
end

#valueAgeObject

1-1 Age



395
396
397
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 395

def valueAge
  @valueAge
end

#valueAnnotationObject

1-1 Annotation



396
397
398
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 396

def valueAnnotation
  @valueAnnotation
end

#valueAttachmentObject

1-1 Attachment



397
398
399
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 397

def valueAttachment
  @valueAttachment
end

#valueBase64BinaryObject

1-1 base64Binary



375
376
377
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 375

def valueBase64Binary
  @valueBase64Binary
end

#valueBooleanObject

1-1 boolean



376
377
378
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 376

def valueBoolean
  @valueBoolean
end

#valueCanonicalObject

1-1 canonical



377
378
379
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 377

def valueCanonical
  @valueCanonical
end

#valueCodeObject

1-1 code



378
379
380
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 378

def valueCode
  @valueCode
end

#valueCodeableConceptObject

1-1 CodeableConcept



398
399
400
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 398

def valueCodeableConcept
  @valueCodeableConcept
end

#valueCodeableReferenceObject

1-1 CodeableReference



399
400
401
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 399

def valueCodeableReference
  @valueCodeableReference
end

#valueCodingObject

1-1 Coding



400
401
402
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 400

def valueCoding
  @valueCoding
end

#valueContactDetailObject

1-1 ContactDetail



417
418
419
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 417

def valueContactDetail
  @valueContactDetail
end

#valueContactPointObject

1-1 ContactPoint



401
402
403
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 401

def valueContactPoint
  @valueContactPoint
end

#valueContributorObject

1-1 Contributor



418
419
420
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 418

def valueContributor
  @valueContributor
end

#valueCountObject

1-1 Count



402
403
404
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 402

def valueCount
  @valueCount
end

#valueDataRequirementObject

1-1 DataRequirement



419
420
421
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 419

def valueDataRequirement
  @valueDataRequirement
end

#valueDateObject

1-1 date



379
380
381
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 379

def valueDate
  @valueDate
end

#valueDateTimeObject

1-1 dateTime



380
381
382
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 380

def valueDateTime
  @valueDateTime
end

#valueDecimalObject

1-1 decimal



381
382
383
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 381

def valueDecimal
  @valueDecimal
end

#valueDistanceObject

1-1 Distance



403
404
405
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 403

def valueDistance
  @valueDistance
end

#valueDosageObject

1-1 Dosage



425
426
427
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 425

def valueDosage
  @valueDosage
end

#valueDurationObject

1-1 Duration



404
405
406
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 404

def valueDuration
  @valueDuration
end

#valueExpressionObject

1-1 Expression



420
421
422
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 420

def valueExpression
  @valueExpression
end

#valueHumanNameObject

1-1 HumanName



405
406
407
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 405

def valueHumanName
  @valueHumanName
end

#valueIdObject

1-1 id



382
383
384
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 382

def valueId
  @valueId
end

#valueIdentifierObject

1-1 Identifier



406
407
408
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 406

def valueIdentifier
  @valueIdentifier
end

#valueInstantObject

1-1 instant



383
384
385
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 383

def valueInstant
  @valueInstant
end

#valueIntegerObject

1-1 integer



384
385
386
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 384

def valueInteger
  @valueInteger
end

#valueMarkdownObject

1-1 markdown



385
386
387
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 385

def valueMarkdown
  @valueMarkdown
end

#valueMoneyObject

1-1 Money



407
408
409
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 407

def valueMoney
  @valueMoney
end

#valueOidObject

1-1 oid



386
387
388
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 386

def valueOid
  @valueOid
end

#valueParameterDefinitionObject

1-1 ParameterDefinition



421
422
423
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 421

def valueParameterDefinition
  @valueParameterDefinition
end

#valuePeriodObject

1-1 Period



408
409
410
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 408

def valuePeriod
  @valuePeriod
end

#valuePositiveIntObject

1-1 positiveInt



387
388
389
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 387

def valuePositiveInt
  @valuePositiveInt
end

#valueQuantityObject

1-1 Quantity



409
410
411
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 409

def valueQuantity
  @valueQuantity
end

#valueRangeObject

1-1 Range



410
411
412
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 410

def valueRange
  @valueRange
end

#valueRatioObject

1-1 Ratio



411
412
413
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 411

def valueRatio
  @valueRatio
end

#valueRatioRangeObject

1-1 RatioRange



412
413
414
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 412

def valueRatioRange
  @valueRatioRange
end

#valueReferenceObject

1-1 Reference()



413
414
415
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 413

def valueReference
  @valueReference
end

#valueRelatedArtifactObject

1-1 RelatedArtifact



422
423
424
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 422

def valueRelatedArtifact
  @valueRelatedArtifact
end

#valueSampledDataObject

1-1 SampledData



414
415
416
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 414

def valueSampledData
  @valueSampledData
end

#valueSignatureObject

1-1 Signature



415
416
417
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 415

def valueSignature
  @valueSignature
end

#valueStringObject

1-1 string



388
389
390
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 388

def valueString
  @valueString
end

#valueTimeObject

1-1 time



389
390
391
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 389

def valueTime
  @valueTime
end

#valueTimingObject

1-1 Timing



416
417
418
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 416

def valueTiming
  @valueTiming
end

#valueTriggerDefinitionObject

1-1 TriggerDefinition



423
424
425
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 423

def valueTriggerDefinition
  @valueTriggerDefinition
end

#valueUnsignedIntObject

1-1 unsignedInt



390
391
392
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 390

def valueUnsignedInt
  @valueUnsignedInt
end

#valueUriObject

1-1 uri



391
392
393
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 391

def valueUri
  @valueUri
end

#valueUrlObject

1-1 url



392
393
394
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 392

def valueUrl
  @valueUrl
end

#valueUsageContextObject

1-1 UsageContext



424
425
426
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 424

def valueUsageContext
  @valueUsageContext
end

#valueUuidObject

1-1 uuid



393
394
395
# File 'lib/fhir_models/r4b/generated/types/ElementDefinition.rb', line 393

def valueUuid
  @valueUuid
end