Class: FHIR::R5::Device

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

Defined Under Namespace

Classes: ConformsTo, Name, Property, UdiCarrier, Version

Constant Summary collapse

SEARCH_PARAMS =
['biological-source-event', 'code', 'code-value-concept', 'definition', 'device-name', 'expiration-date', 'identifier', 'location', 'lot-number', 'manufacture-date', 'manufacturer', 'model', 'organization', 'parent', 'serial-number', 'specification', 'specification-version', 'status', 'type', 'udi-carrier', 'udi-di', 'url', 'version']
METADATA =
{
  'id' => {'type'=>'id', 'path'=>'Device.id', 'min'=>0, 'max'=>1},
  'meta' => {'type'=>'Meta', 'path'=>'Device.meta', 'min'=>0, 'max'=>1},
  'implicitRules' => {'type'=>'uri', 'path'=>'Device.implicitRules', 'min'=>0, 'max'=>1},
  'language' => {'type'=>'code', 'path'=>'Device.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'=>'Device.text', 'min'=>0, 'max'=>1},
  'contained' => {'type'=>'Resource', 'path'=>'Device.contained', 'min'=>0, 'max'=>Float::INFINITY},
  'extension' => {'type'=>'Extension', 'path'=>'Device.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Device.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'identifier' => {'type'=>'Identifier', 'path'=>'Device.identifier', 'min'=>0, 'max'=>Float::INFINITY},
  'displayName' => {'type'=>'string', 'path'=>'Device.displayName', 'min'=>0, 'max'=>1},
  'definition' => {'type'=>'CodeableReference', 'path'=>'Device.definition', 'min'=>0, 'max'=>1},
  'udiCarrier' => {'type'=>'Device::UdiCarrier', 'path'=>'Device.udiCarrier', 'min'=>0, 'max'=>Float::INFINITY},
  'status' => {'valid_codes'=>{'http://hl7.org/fhir/device-status'=>['active', 'inactive', 'entered-in-error']}, 'type'=>'code', 'path'=>'Device.status', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/device-status'}},
  'availabilityStatus' => {'valid_codes'=>{'http://hl7.org/fhir/device-availability-status'=>['lost', 'damaged', 'destroyed', 'available']}, 'type'=>'CodeableConcept', 'path'=>'Device.availabilityStatus', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/device-availability-status'}},
  'biologicalSourceEvent' => {'type'=>'Identifier', 'path'=>'Device.biologicalSourceEvent', 'min'=>0, 'max'=>1},
  'manufacturer' => {'type'=>'string', 'path'=>'Device.manufacturer', 'min'=>0, 'max'=>1},
  'manufactureDate' => {'type'=>'dateTime', 'path'=>'Device.manufactureDate', 'min'=>0, 'max'=>1},
  'expirationDate' => {'type'=>'dateTime', 'path'=>'Device.expirationDate', 'min'=>0, 'max'=>1},
  'lotNumber' => {'type'=>'string', 'path'=>'Device.lotNumber', 'min'=>0, 'max'=>1},
  'serialNumber' => {'type'=>'string', 'path'=>'Device.serialNumber', 'min'=>0, 'max'=>1},
  'name' => {'type'=>'Device::Name', 'path'=>'Device.name', 'min'=>0, 'max'=>Float::INFINITY},
  'modelNumber' => {'type'=>'string', 'path'=>'Device.modelNumber', 'min'=>0, 'max'=>1},
  'partNumber' => {'type'=>'string', 'path'=>'Device.partNumber', 'min'=>0, 'max'=>1},
  'category' => {'valid_codes'=>{'http://hl7.org/fhir/device-category'=>['active', 'communicating', 'dme', 'home-use', 'implantable', 'in-vitro', 'point-of-care', 'single-use', 'reusable', 'software']}, 'type'=>'CodeableConcept', 'path'=>'Device.category', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/device-category'}},
  'type' => {'valid_codes'=>{'urn:iso:std:iso:11073:10101'=>['528391', '528404', '528425', '528402', '528409', '528390', '528457', '528401', '528455', '528403', '528405', '528388', '528397', '528408', '528426', '528392', '528399'], 'urn:oid:2.16.840.1.113883.6.276'=>['38017', '38663', '42347', '46352', '47264', '62163', '62260', '62423', '62414', '64587', '64992']}, 'type'=>'CodeableConcept', 'path'=>'Device.type', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/device-type'}},
  'version' => {'type'=>'Device::Version', 'path'=>'Device.version', 'min'=>0, 'max'=>Float::INFINITY},
  'conformsTo' => {'type'=>'Device::ConformsTo', 'path'=>'Device.conformsTo', 'min'=>0, 'max'=>Float::INFINITY},
  'property' => {'type'=>'Device::Property', 'path'=>'Device.property', 'min'=>0, 'max'=>Float::INFINITY},
  'mode' => {'valid_codes'=>{'http://hl7.org/fhir/device-operation-mode'=>['normal', 'demo', 'service', 'maintenance', 'test']}, 'type'=>'CodeableConcept', 'path'=>'Device.mode', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/device-operation-mode'}},
  'cycle' => {'type'=>'Count', 'path'=>'Device.cycle', 'min'=>0, 'max'=>1},
  'duration' => {'type'=>'Duration', 'path'=>'Device.duration', 'min'=>0, 'max'=>1},
  'owner' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Device.owner', 'min'=>0, 'max'=>1},
  'contact' => {'type'=>'ContactPoint', 'path'=>'Device.contact', 'min'=>0, 'max'=>Float::INFINITY},
  'location' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Location'], 'type'=>'Reference', 'path'=>'Device.location', 'min'=>0, 'max'=>1},
  'url' => {'type'=>'uri', 'path'=>'Device.url', 'min'=>0, 'max'=>1},
  'endpoint' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Endpoint'], 'type'=>'Reference', 'path'=>'Device.endpoint', 'min'=>0, 'max'=>Float::INFINITY},
  'gateway' => {'type'=>'CodeableReference', 'path'=>'Device.gateway', 'min'=>0, 'max'=>Float::INFINITY},
  'note' => {'type'=>'Annotation', 'path'=>'Device.note', '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'=>'Device.safety', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/device-safety'}},
  'parent' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Device'], 'type'=>'Reference', 'path'=>'Device.parent', '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

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

#availabilityStatusObject

0-1 CodeableConcept



196
197
198
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 196

def availabilityStatus
  @availabilityStatus
end

#biologicalSourceEventObject

0-1 Identifier



197
198
199
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 197

def biologicalSourceEvent
  @biologicalSourceEvent
end

#categoryObject

0-* [ CodeableConcept ]



206
207
208
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 206

def category
  @category
end

#conformsToObject

0-* [ Device::ConformsTo ]



209
210
211
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 209

def conformsTo
  @conformsTo
end

#contactObject

0-* [ ContactPoint ]



215
216
217
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 215

def contact
  @contact
end

#containedObject

0-* [ Resource ]



188
189
190
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 188

def contained
  @contained
end

#cycleObject

0-1 Count



212
213
214
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 212

def cycle
  @cycle
end

#definitionObject

0-1 CodeableReference



193
194
195
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 193

def definition
  @definition
end

#displayNameObject

0-1 string



192
193
194
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 192

def displayName
  @displayName
end

#durationObject

0-1 Duration



213
214
215
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 213

def duration
  @duration
end

#endpointObject

0-* [ Reference(Endpoint) ]



218
219
220
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 218

def endpoint
  @endpoint
end

#expirationDateObject

0-1 dateTime



200
201
202
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 200

def expirationDate
  @expirationDate
end

#extensionObject

0-* [ Extension ]



189
190
191
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 189

def extension
  @extension
end

#gatewayObject

0-* [ CodeableReference ]



219
220
221
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 219

def gateway
  @gateway
end

#idObject

0-1 id



183
184
185
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 183

def id
  @id
end

#identifierObject

0-* [ Identifier ]



191
192
193
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 191

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



185
186
187
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 185

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



186
187
188
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 186

def language
  @language
end

#locationObject

0-1 Reference(Location)



216
217
218
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 216

def location
  @location
end

#lotNumberObject

0-1 string



201
202
203
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 201

def lotNumber
  @lotNumber
end

#manufactureDateObject

0-1 dateTime



199
200
201
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 199

def manufactureDate
  @manufactureDate
end

#manufacturerObject

0-1 string



198
199
200
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 198

def manufacturer
  @manufacturer
end

#metaObject

0-1 Meta



184
185
186
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 184

def meta
  @meta
end

#modeObject

0-1 CodeableConcept



211
212
213
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 211

def mode
  @mode
end

#modelNumberObject

0-1 string



204
205
206
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 204

def modelNumber
  @modelNumber
end

#modifierExtensionObject

0-* [ Extension ]



190
191
192
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 190

def modifierExtension
  @modifierExtension
end

#nameObject

0-* [ Device::Name ]



203
204
205
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 203

def name
  @name
end

#noteObject

0-* [ Annotation ]



220
221
222
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 220

def note
  @note
end

#ownerObject

0-1 Reference(Organization)



214
215
216
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 214

def owner
  @owner
end

#parentObject

0-1 Reference(Device)



222
223
224
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 222

def parent
  @parent
end

#partNumberObject

0-1 string



205
206
207
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 205

def partNumber
  @partNumber
end

#propertyObject

0-* [ Device::Property ]



210
211
212
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 210

def property
  @property
end

#safetyObject

0-* [ CodeableConcept ]



221
222
223
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 221

def safety
  @safety
end

#serialNumberObject

0-1 string



202
203
204
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 202

def serialNumber
  @serialNumber
end

#statusObject

0-1 code



195
196
197
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 195

def status
  @status
end

#textObject

0-1 Narrative



187
188
189
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 187

def text
  @text
end

#typeObject

0-* [ CodeableConcept ]



207
208
209
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 207

def type
  @type
end

#udiCarrierObject

0-* [ Device::UdiCarrier ]



194
195
196
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 194

def udiCarrier
  @udiCarrier
end

#urlObject

0-1 uri



217
218
219
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 217

def url
  @url
end

#versionObject

0-* [ Device::Version ]



208
209
210
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 208

def version
  @version
end

Instance Method Details

#resourceTypeObject



224
225
226
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 224

def resourceType
  'Device'
end