Class: FHIR::R5::Device
- 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
Instance Attribute Summary collapse
-
#availabilityStatus ⇒ Object
0-1 CodeableConcept.
-
#biologicalSourceEvent ⇒ Object
0-1 Identifier.
-
#category ⇒ Object
0-* [ CodeableConcept ].
-
#conformsTo ⇒ Object
0-* [ Device::ConformsTo ].
-
#contact ⇒ Object
0-* [ ContactPoint ].
-
#contained ⇒ Object
0-* [ Resource ].
-
#cycle ⇒ Object
0-1 Count.
-
#definition ⇒ Object
0-1 CodeableReference.
-
#displayName ⇒ Object
0-1 string.
-
#duration ⇒ Object
0-1 Duration.
-
#endpoint ⇒ Object
0-* [ Reference(Endpoint) ].
-
#expirationDate ⇒ Object
0-1 dateTime.
-
#extension ⇒ Object
0-* [ Extension ].
-
#gateway ⇒ Object
0-* [ CodeableReference ].
-
#id ⇒ Object
0-1 id.
-
#identifier ⇒ Object
0-* [ Identifier ].
-
#implicitRules ⇒ Object
0-1 uri.
-
#language ⇒ Object
0-1 code.
-
#location ⇒ Object
0-1 Reference(Location).
-
#lotNumber ⇒ Object
0-1 string.
-
#manufactureDate ⇒ Object
0-1 dateTime.
-
#manufacturer ⇒ Object
0-1 string.
-
#meta ⇒ Object
0-1 Meta.
-
#mode ⇒ Object
0-1 CodeableConcept.
-
#modelNumber ⇒ Object
0-1 string.
-
#modifierExtension ⇒ Object
0-* [ Extension ].
-
#name ⇒ Object
0-* [ Device::Name ].
-
#note ⇒ Object
0-* [ Annotation ].
-
#owner ⇒ Object
0-1 Reference(Organization).
-
#parent ⇒ Object
0-1 Reference(Device).
-
#partNumber ⇒ Object
0-1 string.
-
#property ⇒ Object
0-* [ Device::Property ].
-
#safety ⇒ Object
0-* [ CodeableConcept ].
-
#serialNumber ⇒ Object
0-1 string.
-
#status ⇒ Object
0-1 code.
-
#text ⇒ Object
0-1 Narrative.
-
#type ⇒ Object
0-* [ CodeableConcept ].
-
#udiCarrier ⇒ Object
0-* [ Device::UdiCarrier ].
-
#url ⇒ Object
0-1 uri.
-
#version ⇒ Object
0-* [ Device::Version ].
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
Methods included from ClassXml
#from_xml, #valid?, #validate, #xml_node_to_hash
Methods included from InstanceXml
Methods included from ClassJson
Methods included from InstanceJson
Methods included from Hashable
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
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
#availabilityStatus ⇒ Object
0-1 CodeableConcept
196 197 198 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 196 def availabilityStatus @availabilityStatus end |
#biologicalSourceEvent ⇒ Object
0-1 Identifier
197 198 199 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 197 def biologicalSourceEvent @biologicalSourceEvent end |
#category ⇒ Object
0-* [ CodeableConcept ]
206 207 208 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 206 def category @category end |
#conformsTo ⇒ Object
0-* [ Device::ConformsTo ]
209 210 211 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 209 def conformsTo @conformsTo end |
#contact ⇒ Object
0-* [ ContactPoint ]
215 216 217 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 215 def contact @contact end |
#contained ⇒ Object
0-* [ Resource ]
188 189 190 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 188 def contained @contained end |
#cycle ⇒ Object
0-1 Count
212 213 214 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 212 def cycle @cycle end |
#definition ⇒ Object
0-1 CodeableReference
193 194 195 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 193 def definition @definition end |
#displayName ⇒ Object
0-1 string
192 193 194 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 192 def displayName @displayName end |
#duration ⇒ Object
0-1 Duration
213 214 215 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 213 def duration @duration end |
#endpoint ⇒ Object
0-* [ Reference(Endpoint) ]
218 219 220 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 218 def endpoint @endpoint end |
#expirationDate ⇒ Object
0-1 dateTime
200 201 202 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 200 def expirationDate @expirationDate end |
#extension ⇒ Object
0-* [ Extension ]
189 190 191 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 189 def extension @extension end |
#gateway ⇒ Object
0-* [ CodeableReference ]
219 220 221 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 219 def gateway @gateway end |
#id ⇒ Object
0-1 id
183 184 185 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 183 def id @id end |
#identifier ⇒ Object
0-* [ Identifier ]
191 192 193 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 191 def identifier @identifier end |
#implicitRules ⇒ Object
0-1 uri
185 186 187 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 185 def implicitRules @implicitRules end |
#language ⇒ Object
0-1 code
186 187 188 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 186 def language @language end |
#location ⇒ Object
0-1 Reference(Location)
216 217 218 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 216 def location @location end |
#lotNumber ⇒ Object
0-1 string
201 202 203 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 201 def lotNumber @lotNumber end |
#manufactureDate ⇒ Object
0-1 dateTime
199 200 201 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 199 def manufactureDate @manufactureDate end |
#manufacturer ⇒ Object
0-1 string
198 199 200 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 198 def manufacturer @manufacturer end |
#meta ⇒ Object
0-1 Meta
184 185 186 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 184 def @meta end |
#mode ⇒ Object
0-1 CodeableConcept
211 212 213 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 211 def mode @mode end |
#modelNumber ⇒ Object
0-1 string
204 205 206 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 204 def modelNumber @modelNumber end |
#modifierExtension ⇒ Object
0-* [ Extension ]
190 191 192 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 190 def modifierExtension @modifierExtension end |
#name ⇒ Object
0-* [ Device::Name ]
203 204 205 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 203 def name @name end |
#note ⇒ Object
0-* [ Annotation ]
220 221 222 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 220 def note @note end |
#owner ⇒ Object
0-1 Reference(Organization)
214 215 216 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 214 def owner @owner end |
#parent ⇒ Object
0-1 Reference(Device)
222 223 224 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 222 def parent @parent end |
#partNumber ⇒ Object
0-1 string
205 206 207 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 205 def partNumber @partNumber end |
#property ⇒ Object
0-* [ Device::Property ]
210 211 212 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 210 def property @property end |
#safety ⇒ Object
0-* [ CodeableConcept ]
221 222 223 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 221 def safety @safety end |
#serialNumber ⇒ Object
0-1 string
202 203 204 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 202 def serialNumber @serialNumber end |
#status ⇒ Object
0-1 code
195 196 197 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 195 def status @status end |
#text ⇒ Object
0-1 Narrative
187 188 189 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 187 def text @text end |
#type ⇒ Object
0-* [ CodeableConcept ]
207 208 209 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 207 def type @type end |
#udiCarrier ⇒ Object
0-* [ Device::UdiCarrier ]
194 195 196 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 194 def udiCarrier @udiCarrier end |
#url ⇒ Object
0-1 uri
217 218 219 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 217 def url @url end |
#version ⇒ Object
0-* [ Device::Version ]
208 209 210 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 208 def version @version end |
Instance Method Details
#resourceType ⇒ Object
224 225 226 |
# File 'lib/fhir_models/r5/generated/resources/Device.rb', line 224 def resourceType 'Device' end |