Class: FHIR::R5::AdverseEvent
- Defined in:
- lib/fhir_models/r5/generated/resources/AdverseEvent.rb
Defined Under Namespace
Classes: ContributingFactor, MitigatingAction, Participant, PreventiveAction, SupportingInfo, SuspectEntity
Constant Summary collapse
- MULTIPLE_TYPES =
{ 'occurrence' => ['dateTime', 'Period', 'Timing'] }
- SEARCH_PARAMS =
['actuality', 'category', 'code', 'date', 'identifier', 'location', 'patient', 'recorder', 'resultingeffect', 'seriousness', 'status', 'study', 'subject', 'substance']
- METADATA =
{ 'id' => {'type'=>'id', 'path'=>'AdverseEvent.id', 'min'=>0, 'max'=>1}, 'meta' => {'type'=>'Meta', 'path'=>'AdverseEvent.meta', 'min'=>0, 'max'=>1}, 'implicitRules' => {'type'=>'uri', 'path'=>'AdverseEvent.implicitRules', 'min'=>0, 'max'=>1}, 'language' => {'type'=>'code', 'path'=>'AdverseEvent.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'=>'AdverseEvent.text', 'min'=>0, 'max'=>1}, 'contained' => {'type'=>'Resource', 'path'=>'AdverseEvent.contained', 'min'=>0, 'max'=>Float::INFINITY}, 'extension' => {'type'=>'Extension', 'path'=>'AdverseEvent.extension', 'min'=>0, 'max'=>Float::INFINITY}, 'modifierExtension' => {'type'=>'Extension', 'path'=>'AdverseEvent.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY}, 'identifier' => {'type'=>'Identifier', 'path'=>'AdverseEvent.identifier', 'min'=>0, 'max'=>Float::INFINITY}, 'status' => {'valid_codes'=>{'http://hl7.org/fhir/event-status'=>['in-progress', 'completed', 'entered-in-error', 'unknown']}, 'type'=>'code', 'path'=>'AdverseEvent.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/adverse-event-status'}}, 'actuality' => {'valid_codes'=>{'http://hl7.org/fhir/adverse-event-actuality'=>['actual', 'potential']}, 'type'=>'code', 'path'=>'AdverseEvent.actuality', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/adverse-event-actuality'}}, 'category' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/adverse-event-category'=>['wrong-patient', 'procedure-mishap', 'medication-mishap', 'device', 'unsafe-physical-environment', 'hospital-aquired-infection', 'wrong-body-site']}, 'type'=>'CodeableConcept', 'path'=>'AdverseEvent.category', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/adverse-event-category'}}, 'code' => {'valid_codes'=>{'http://snomed.info/sct'=>['370894009', '5331006', '13234002', '49380000', '52136000', '370895005', '370896006', '370897002', '370898007', '370899004', '370900009', '370901008', '370902001', '370903006', '370904000', '370905004', '370906003', '370907007', '370908002', '370909005', '370910000', '370911001', '370912008', '370913003', '370914009', '370915005', '370916006', '370917002', '370918007', '370919004', '370920005', '370921009', '370922002', '370923007', '370924001', '370925000', '370926004', '370927008', '397866006', '398226000', '405644001', '415169009', '424522003', '426106009', '427513009', '844579007', '1912002']}, 'type'=>'CodeableConcept', 'path'=>'AdverseEvent.code', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/adverse-event-type'}}, 'subject' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Group', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'http://hl7.org/fhir/StructureDefinition/ResearchSubject'], 'type'=>'Reference', 'path'=>'AdverseEvent.subject', 'min'=>1, 'max'=>1}, 'encounter' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Encounter'], 'type'=>'Reference', 'path'=>'AdverseEvent.encounter', 'min'=>0, 'max'=>1}, 'occurrenceDateTime' => {'type'=>'dateTime', 'path'=>'AdverseEvent.occurrence[x]', 'min'=>0, 'max'=>1}, 'occurrencePeriod' => {'type'=>'Period', 'path'=>'AdverseEvent.occurrence[x]', 'min'=>0, 'max'=>1}, 'occurrenceTiming' => {'type'=>'Timing', 'path'=>'AdverseEvent.occurrence[x]', 'min'=>0, 'max'=>1}, 'detected' => {'type'=>'dateTime', 'path'=>'AdverseEvent.detected', 'min'=>0, 'max'=>1}, 'recordedDate' => {'type'=>'dateTime', 'path'=>'AdverseEvent.recordedDate', 'min'=>0, 'max'=>1}, 'resultingEffect' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Condition', 'http://hl7.org/fhir/StructureDefinition/Observation'], 'type'=>'Reference', 'path'=>'AdverseEvent.resultingEffect', 'min'=>0, 'max'=>Float::INFINITY}, 'location' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Location'], 'type'=>'Reference', 'path'=>'AdverseEvent.location', 'min'=>0, 'max'=>1}, 'seriousness' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/adverse-event-seriousness'=>['non-serious', 'serious']}, 'type'=>'CodeableConcept', 'path'=>'AdverseEvent.seriousness', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/adverse-event-seriousness'}}, 'outcome' => {'valid_codes'=>{'http://snomed.info/sct'=>['397882007', '398056004', '405531001', '405532008', '405535005']}, 'type'=>'CodeableConcept', 'path'=>'AdverseEvent.outcome', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/adverse-event-outcome'}}, 'recorder' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'http://hl7.org/fhir/StructureDefinition/ResearchSubject'], 'type'=>'Reference', 'path'=>'AdverseEvent.recorder', 'min'=>0, 'max'=>1}, 'participant' => {'type'=>'AdverseEvent::Participant', 'path'=>'AdverseEvent.participant', 'min'=>0, 'max'=>Float::INFINITY}, 'study' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/ResearchStudy'], 'type'=>'Reference', 'path'=>'AdverseEvent.study', 'min'=>0, 'max'=>Float::INFINITY}, 'expectedInResearchStudy' => {'type'=>'boolean', 'path'=>'AdverseEvent.expectedInResearchStudy', 'min'=>0, 'max'=>1}, 'suspectEntity' => {'type'=>'AdverseEvent::SuspectEntity', 'path'=>'AdverseEvent.suspectEntity', 'min'=>0, 'max'=>Float::INFINITY}, 'contributingFactor' => {'type'=>'AdverseEvent::ContributingFactor', 'path'=>'AdverseEvent.contributingFactor', 'min'=>0, 'max'=>Float::INFINITY}, 'preventiveAction' => {'type'=>'AdverseEvent::PreventiveAction', 'path'=>'AdverseEvent.preventiveAction', 'min'=>0, 'max'=>Float::INFINITY}, 'mitigatingAction' => {'type'=>'AdverseEvent::MitigatingAction', 'path'=>'AdverseEvent.mitigatingAction', 'min'=>0, 'max'=>Float::INFINITY}, 'supportingInfo' => {'type'=>'AdverseEvent::SupportingInfo', 'path'=>'AdverseEvent.supportingInfo', 'min'=>0, 'max'=>Float::INFINITY}, 'note' => {'type'=>'Annotation', 'path'=>'AdverseEvent.note', '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
Instance Attribute Summary collapse
-
#actuality ⇒ Object
1-1 code.
-
#category ⇒ Object
0-* [ CodeableConcept ].
-
#code ⇒ Object
0-1 CodeableConcept.
-
#contained ⇒ Object
0-* [ Resource ].
-
#contributingFactor ⇒ Object
0-* [ AdverseEvent::ContributingFactor ].
-
#detected ⇒ Object
0-1 dateTime.
-
#encounter ⇒ Object
0-1 Reference(Encounter).
-
#expectedInResearchStudy ⇒ Object
0-1 boolean.
-
#extension ⇒ Object
0-* [ Extension ].
-
#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).
-
#meta ⇒ Object
0-1 Meta.
-
#mitigatingAction ⇒ Object
0-* [ AdverseEvent::MitigatingAction ].
-
#modifierExtension ⇒ Object
0-* [ Extension ].
-
#note ⇒ Object
0-* [ Annotation ].
-
#occurrenceDateTime ⇒ Object
0-1 dateTime.
-
#occurrencePeriod ⇒ Object
0-1 Period.
-
#occurrenceTiming ⇒ Object
0-1 Timing.
-
#outcome ⇒ Object
0-* [ CodeableConcept ].
-
#participant ⇒ Object
0-* [ AdverseEvent::Participant ].
-
#preventiveAction ⇒ Object
0-* [ AdverseEvent::PreventiveAction ].
-
#recordedDate ⇒ Object
0-1 dateTime.
-
#recorder ⇒ Object
0-1 Reference(Patient|Practitioner|PractitionerRole|RelatedPerson|ResearchSubject).
-
#resultingEffect ⇒ Object
0-* [ Reference(Condition|Observation) ].
-
#seriousness ⇒ Object
0-1 CodeableConcept.
-
#status ⇒ Object
1-1 code.
-
#study ⇒ Object
0-* [ Reference(ResearchStudy) ].
-
#subject ⇒ Object
1-1 Reference(Patient|Group|Practitioner|RelatedPerson|ResearchSubject).
-
#supportingInfo ⇒ Object
0-* [ AdverseEvent::SupportingInfo ].
-
#suspectEntity ⇒ Object
0-* [ AdverseEvent::SuspectEntity ].
-
#text ⇒ Object
0-1 Narrative.
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
#actuality ⇒ Object
1-1 code
218 219 220 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 218 def actuality @actuality end |
#category ⇒ Object
0-* [ CodeableConcept ]
219 220 221 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 219 def category @category end |
#code ⇒ Object
0-1 CodeableConcept
220 221 222 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 220 def code @code end |
#contained ⇒ Object
0-* [ Resource ]
213 214 215 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 213 def contained @contained end |
#contributingFactor ⇒ Object
0-* [ AdverseEvent::ContributingFactor ]
237 238 239 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 237 def contributingFactor @contributingFactor end |
#detected ⇒ Object
0-1 dateTime
226 227 228 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 226 def detected @detected end |
#encounter ⇒ Object
0-1 Reference(Encounter)
222 223 224 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 222 def encounter @encounter end |
#expectedInResearchStudy ⇒ Object
0-1 boolean
235 236 237 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 235 def expectedInResearchStudy @expectedInResearchStudy end |
#extension ⇒ Object
0-* [ Extension ]
214 215 216 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 214 def extension @extension end |
#id ⇒ Object
0-1 id
208 209 210 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 208 def id @id end |
#identifier ⇒ Object
0-* [ Identifier ]
216 217 218 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 216 def identifier @identifier end |
#implicitRules ⇒ Object
0-1 uri
210 211 212 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 210 def implicitRules @implicitRules end |
#language ⇒ Object
0-1 code
211 212 213 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 211 def language @language end |
#location ⇒ Object
0-1 Reference(Location)
229 230 231 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 229 def location @location end |
#meta ⇒ Object
0-1 Meta
209 210 211 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 209 def @meta end |
#mitigatingAction ⇒ Object
0-* [ AdverseEvent::MitigatingAction ]
239 240 241 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 239 def mitigatingAction @mitigatingAction end |
#modifierExtension ⇒ Object
0-* [ Extension ]
215 216 217 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 215 def modifierExtension @modifierExtension end |
#note ⇒ Object
0-* [ Annotation ]
241 242 243 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 241 def note @note end |
#occurrenceDateTime ⇒ Object
0-1 dateTime
223 224 225 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 223 def occurrenceDateTime @occurrenceDateTime end |
#occurrencePeriod ⇒ Object
0-1 Period
224 225 226 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 224 def occurrencePeriod @occurrencePeriod end |
#occurrenceTiming ⇒ Object
0-1 Timing
225 226 227 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 225 def occurrenceTiming @occurrenceTiming end |
#outcome ⇒ Object
0-* [ CodeableConcept ]
231 232 233 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 231 def outcome @outcome end |
#participant ⇒ Object
0-* [ AdverseEvent::Participant ]
233 234 235 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 233 def participant @participant end |
#preventiveAction ⇒ Object
0-* [ AdverseEvent::PreventiveAction ]
238 239 240 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 238 def preventiveAction @preventiveAction end |
#recordedDate ⇒ Object
0-1 dateTime
227 228 229 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 227 def recordedDate @recordedDate end |
#recorder ⇒ Object
0-1 Reference(Patient|Practitioner|PractitionerRole|RelatedPerson|ResearchSubject)
232 233 234 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 232 def recorder @recorder end |
#resultingEffect ⇒ Object
0-* [ Reference(Condition|Observation) ]
228 229 230 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 228 def resultingEffect @resultingEffect end |
#seriousness ⇒ Object
0-1 CodeableConcept
230 231 232 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 230 def seriousness @seriousness end |
#status ⇒ Object
1-1 code
217 218 219 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 217 def status @status end |
#study ⇒ Object
0-* [ Reference(ResearchStudy) ]
234 235 236 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 234 def study @study end |
#subject ⇒ Object
1-1 Reference(Patient|Group|Practitioner|RelatedPerson|ResearchSubject)
221 222 223 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 221 def subject @subject end |
#supportingInfo ⇒ Object
0-* [ AdverseEvent::SupportingInfo ]
240 241 242 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 240 def supportingInfo @supportingInfo end |
#suspectEntity ⇒ Object
0-* [ AdverseEvent::SuspectEntity ]
236 237 238 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 236 def suspectEntity @suspectEntity end |
#text ⇒ Object
0-1 Narrative
212 213 214 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 212 def text @text end |
Instance Method Details
#resourceType ⇒ Object
243 244 245 |
# File 'lib/fhir_models/r5/generated/resources/AdverseEvent.rb', line 243 def resourceType 'AdverseEvent' end |