Class: FHIR::R5::DeviceDefinition

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

Defined Under Namespace

Classes: ChargeItem, Classification, ConformsTo, CorrectiveAction, DeviceName, Guideline, HasPart, Link, Material, Packaging, Property, RegulatoryIdentifier, UdiDeviceIdentifier, Version

Constant Summary collapse

SEARCH_PARAMS =
['device-name', 'identifier', 'manufacturer', 'organization', 'specification', 'specification-version', 'type']
METADATA =
{
  'id' => {'type'=>'id', 'path'=>'DeviceDefinition.id', 'min'=>0, 'max'=>1},
  'meta' => {'type'=>'Meta', 'path'=>'DeviceDefinition.meta', 'min'=>0, 'max'=>1},
  'implicitRules' => {'type'=>'uri', 'path'=>'DeviceDefinition.implicitRules', 'min'=>0, 'max'=>1},
  'language' => {'type'=>'code', 'path'=>'DeviceDefinition.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'additional'=>[{'purpose'=>'starter', 'valueSet'=>'http://hl7.org/fhir/ValueSet/languages'}], 'uri'=>'http://hl7.org/fhir/ValueSet/all-languages'}},
  'text' => {'type'=>'Narrative', 'path'=>'DeviceDefinition.text', 'min'=>0, 'max'=>1},
  'contained' => {'type'=>'Resource', 'path'=>'DeviceDefinition.contained', 'min'=>0, 'max'=>Float::INFINITY},
  'extension' => {'type'=>'Extension', 'path'=>'DeviceDefinition.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'DeviceDefinition.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'description' => {'type'=>'markdown', 'path'=>'DeviceDefinition.description', 'min'=>0, 'max'=>1},
  'identifier' => {'type'=>'Identifier', 'path'=>'DeviceDefinition.identifier', 'min'=>0, 'max'=>Float::INFINITY},
  'udiDeviceIdentifier' => {'type'=>'DeviceDefinition::UdiDeviceIdentifier', 'path'=>'DeviceDefinition.udiDeviceIdentifier', 'min'=>0, 'max'=>Float::INFINITY},
  'regulatoryIdentifier' => {'type'=>'DeviceDefinition::RegulatoryIdentifier', 'path'=>'DeviceDefinition.regulatoryIdentifier', 'min'=>0, 'max'=>Float::INFINITY},
  'partNumber' => {'type'=>'string', 'path'=>'DeviceDefinition.partNumber', 'min'=>0, 'max'=>1},
  'manufacturer' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'DeviceDefinition.manufacturer', 'min'=>0, 'max'=>1},
  'deviceName' => {'type'=>'DeviceDefinition::DeviceName', 'path'=>'DeviceDefinition.deviceName', 'min'=>0, 'max'=>Float::INFINITY},
  'modelNumber' => {'type'=>'string', 'path'=>'DeviceDefinition.modelNumber', 'min'=>0, 'max'=>1},
  'classification' => {'type'=>'DeviceDefinition::Classification', 'path'=>'DeviceDefinition.classification', 'min'=>0, 'max'=>Float::INFINITY},
  'conformsTo' => {'type'=>'DeviceDefinition::ConformsTo', 'path'=>'DeviceDefinition.conformsTo', 'min'=>0, 'max'=>Float::INFINITY},
  'hasPart' => {'type'=>'DeviceDefinition::HasPart', 'path'=>'DeviceDefinition.hasPart', 'min'=>0, 'max'=>Float::INFINITY},
  'packaging' => {'type'=>'DeviceDefinition::Packaging', 'path'=>'DeviceDefinition.packaging', 'min'=>0, 'max'=>Float::INFINITY},
  'version' => {'type'=>'DeviceDefinition::Version', 'path'=>'DeviceDefinition.version', 'min'=>0, 'max'=>Float::INFINITY},
  'safety' => {'valid_codes'=>{'urn:oid:2.16.840.1.113883.3.26.1.1'=>['C106046', 'C106045', 'C106047', 'C113844', 'C101673', 'C106038']}, 'type'=>'CodeableConcept', 'path'=>'DeviceDefinition.safety', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/device-safety'}},
  'shelfLifeStorage' => {'type'=>'ProductShelfLife', 'path'=>'DeviceDefinition.shelfLifeStorage', 'min'=>0, 'max'=>Float::INFINITY},
  'languageCode' => {'type'=>'CodeableConcept', 'path'=>'DeviceDefinition.languageCode', 'min'=>0, 'max'=>Float::INFINITY},
  'property' => {'type'=>'DeviceDefinition::Property', 'path'=>'DeviceDefinition.property', 'min'=>0, 'max'=>Float::INFINITY},
  'owner' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'DeviceDefinition.owner', 'min'=>0, 'max'=>1},
  'contact' => {'type'=>'ContactPoint', 'path'=>'DeviceDefinition.contact', 'min'=>0, 'max'=>Float::INFINITY},
  'link' => {'type'=>'DeviceDefinition::Link', 'path'=>'DeviceDefinition.link', 'min'=>0, 'max'=>Float::INFINITY},
  'note' => {'type'=>'Annotation', 'path'=>'DeviceDefinition.note', 'min'=>0, 'max'=>Float::INFINITY},
  'material' => {'type'=>'DeviceDefinition::Material', 'path'=>'DeviceDefinition.material', 'min'=>0, 'max'=>Float::INFINITY},
  'productionIdentifierInUDI' => {'valid_codes'=>{'http://hl7.org/fhir/device-productidentifierinudi'=>['lot-number', 'manufactured-date', 'serial-number', 'expiration-date', 'biological-source', 'software-version']}, 'type'=>'code', 'path'=>'DeviceDefinition.productionIdentifierInUDI', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/device-productidentifierinudi'}},
  'guideline' => {'type'=>'DeviceDefinition::Guideline', 'path'=>'DeviceDefinition.guideline', 'min'=>0, 'max'=>1},
  'correctiveAction' => {'type'=>'DeviceDefinition::CorrectiveAction', 'path'=>'DeviceDefinition.correctiveAction', 'min'=>0, 'max'=>1},
  'chargeItem' => {'type'=>'DeviceDefinition::ChargeItem', 'path'=>'DeviceDefinition.chargeItem', 'min'=>0, 'max'=>Float::INFINITY}
}

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

Instance Method Summary collapse

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

#chargeItemObject

0-* [ DeviceDefinition::ChargeItem ]



454
455
456
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 454

def chargeItem
  @chargeItem
end

#classificationObject

0-* [ DeviceDefinition::Classification ]



437
438
439
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 437

def classification
  @classification
end

#conformsToObject

0-* [ DeviceDefinition::ConformsTo ]



438
439
440
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 438

def conformsTo
  @conformsTo
end

#contactObject

0-* [ ContactPoint ]



447
448
449
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 447

def contact
  @contact
end

#containedObject

0-* [ Resource ]



426
427
428
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 426

def contained
  @contained
end

#correctiveActionObject

0-1 DeviceDefinition::CorrectiveAction



453
454
455
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 453

def correctiveAction
  @correctiveAction
end

#descriptionObject

0-1 markdown



429
430
431
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 429

def description
  @description
end

#deviceNameObject

0-* [ DeviceDefinition::DeviceName ]



435
436
437
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 435

def deviceName
  @deviceName
end

#extensionObject

0-* [ Extension ]



427
428
429
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 427

def extension
  @extension
end

#guidelineObject

0-1 DeviceDefinition::Guideline



452
453
454
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 452

def guideline
  @guideline
end

#hasPartObject

0-* [ DeviceDefinition::HasPart ]



439
440
441
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 439

def hasPart
  @hasPart
end

#idObject

0-1 id



421
422
423
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 421

def id
  @id
end

#identifierObject

0-* [ Identifier ]



430
431
432
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 430

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



423
424
425
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 423

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



424
425
426
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 424

def language
  @language
end

#languageCodeObject

0-* [ CodeableConcept ]



444
445
446
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 444

def languageCode
  @languageCode
end

0-* [ DeviceDefinition::Link ]



448
449
450
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 448

def link
  @link
end

#manufacturerObject

0-1 Reference(Organization)



434
435
436
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 434

def manufacturer
  @manufacturer
end

#materialObject

0-* [ DeviceDefinition::Material ]



450
451
452
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 450

def material
  @material
end

#metaObject

0-1 Meta



422
423
424
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 422

def meta
  @meta
end

#modelNumberObject

0-1 string



436
437
438
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 436

def modelNumber
  @modelNumber
end

#modifierExtensionObject

0-* [ Extension ]



428
429
430
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 428

def modifierExtension
  @modifierExtension
end

#noteObject

0-* [ Annotation ]



449
450
451
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 449

def note
  @note
end

#ownerObject

0-1 Reference(Organization)



446
447
448
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 446

def owner
  @owner
end

#packagingObject

0-* [ DeviceDefinition::Packaging ]



440
441
442
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 440

def packaging
  @packaging
end

#partNumberObject

0-1 string



433
434
435
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 433

def partNumber
  @partNumber
end

#productionIdentifierInUDIObject

0-* [ code ]



451
452
453
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 451

def productionIdentifierInUDI
  @productionIdentifierInUDI
end

#propertyObject

0-* [ DeviceDefinition::Property ]



445
446
447
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 445

def property
  @property
end

#regulatoryIdentifierObject

0-* [ DeviceDefinition::RegulatoryIdentifier ]



432
433
434
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 432

def regulatoryIdentifier
  @regulatoryIdentifier
end

#safetyObject

0-* [ CodeableConcept ]



442
443
444
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 442

def safety
  @safety
end

#shelfLifeStorageObject

0-* [ ProductShelfLife ]



443
444
445
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 443

def shelfLifeStorage
  @shelfLifeStorage
end

#textObject

0-1 Narrative



425
426
427
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 425

def text
  @text
end

#udiDeviceIdentifierObject

0-* [ DeviceDefinition::UdiDeviceIdentifier ]



431
432
433
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 431

def udiDeviceIdentifier
  @udiDeviceIdentifier
end

#versionObject

0-* [ DeviceDefinition::Version ]



441
442
443
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 441

def version
  @version
end

Instance Method Details

#resourceTypeObject



456
457
458
# File 'lib/fhir_models/r5/generated/resources/DeviceDefinition.rb', line 456

def resourceType
  'DeviceDefinition'
end