Class: FHIR::R5::AuditEvent

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

Defined Under Namespace

Classes: Agent, Entity, Outcome, Source

Constant Summary collapse

MULTIPLE_TYPES =
{
  'occurred' => ['Period', 'dateTime']
}
SEARCH_PARAMS =
['action', 'agent', 'agent-role', 'based-on', 'category', 'code', 'date', 'encounter', 'entity', 'entity-role', 'outcome', 'patient', 'policy', 'purpose', 'source']
METADATA =
{
  'id' => {'type'=>'id', 'path'=>'AuditEvent.id', 'min'=>0, 'max'=>1},
  'meta' => {'type'=>'Meta', 'path'=>'AuditEvent.meta', 'min'=>0, 'max'=>1},
  'implicitRules' => {'type'=>'uri', 'path'=>'AuditEvent.implicitRules', 'min'=>0, 'max'=>1},
  'language' => {'type'=>'code', 'path'=>'AuditEvent.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'=>'AuditEvent.text', 'min'=>0, 'max'=>1},
  'contained' => {'type'=>'Resource', 'path'=>'AuditEvent.contained', 'min'=>0, 'max'=>Float::INFINITY},
  'extension' => {'type'=>'Extension', 'path'=>'AuditEvent.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'AuditEvent.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'category' => {'valid_codes'=>{'http://dicom.nema.org/resources/ontology/DCM'=>['110100', '110101', '110102', '110103', '110104', '110105', '110106', '110107', '110108', '110109', '110110', '110111', '110112', '110113', '110114'], 'http://terminology.hl7.org/CodeSystem/audit-event-type'=>['rest', 'hl7-v2', 'hl7-v3', 'document', 'object']}, 'type'=>'CodeableConcept', 'path'=>'AuditEvent.category', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/audit-event-type'}},
  'code' => {'valid_codes'=>{'http://dicom.nema.org/resources/ontology/DCM'=>['110120', '110121', '110122', '110123', '110124', '110125', '110126', '110127', '110128', '110129', '110130', '110131', '110132', '110133', '110134', '110135', '110136', '110137', '110138', '110139', '110140', '110141', '110142', '110143', '110144', '110145', '110146', '110147'], 'http://hl7.org/fhir/restful-interaction'=>['read', 'vread', 'update', 'patch', 'delete', 'history', 'history-instance', 'history-type', 'history-system', 'create', 'search', 'search-type', 'search-system', 'search-compartment', 'capabilities', 'transaction', 'batch', 'operation']}, 'type'=>'CodeableConcept', 'path'=>'AuditEvent.code', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/audit-event-sub-type'}},
  'action' => {'valid_codes'=>{'http://hl7.org/fhir/audit-event-action'=>['C', 'R', 'U', 'D', 'E']}, 'type'=>'code', 'path'=>'AuditEvent.action', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/audit-event-action'}},
  'severity' => {'valid_codes'=>{'http://hl7.org/fhir/audit-event-severity'=>['emergency', 'alert', 'critical', 'error', 'warning', 'notice', 'informational', 'debug']}, 'type'=>'code', 'path'=>'AuditEvent.severity', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/audit-event-severity'}},
  'occurredPeriod' => {'type'=>'Period', 'path'=>'AuditEvent.occurred[x]', 'min'=>0, 'max'=>1},
  'occurredDateTime' => {'type'=>'dateTime', 'path'=>'AuditEvent.occurred[x]', 'min'=>0, 'max'=>1},
  'recorded' => {'type'=>'instant', 'path'=>'AuditEvent.recorded', 'min'=>1, 'max'=>1},
  'outcome' => {'type'=>'AuditEvent::Outcome', 'path'=>'AuditEvent.outcome', 'min'=>0, 'max'=>1},
  'authorization' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/v3-ActReason'=>['HMARKT', 'HOPERAT', 'CAREMGT', 'DONAT', 'FRAUD', 'GOV', 'HACCRED', 'HCOMPL', 'HDECD', 'HDIRECT', 'HDM', 'HLEGAL', 'HOUTCOMS', 'HPRGRP', 'HQUALIMP', 'HSYSADMIN', 'LABELING', 'METAMGT', 'MEMADMIN', 'MILCDM', 'PATADMIN', 'PATSFTY', 'PERFMSR', 'RECORDMGT', 'SYSDEV', 'HTEST', 'TRAIN', 'HPAYMT', 'CLMATTCH', 'COVAUTH', 'COVERAGE', 'ELIGDTRM', 'ELIGVER', 'ENROLLM', 'MILDCRG', 'REMITADV', 'HRESCH', 'BIORCH', 'CLINTRCH', 'CLINTRCHNPC', 'CLINTRCHPC', 'PRECLINTRCH', 'DSRCH', 'POARCH', 'TRANSRCH', 'PATRQT', 'FAMRQT', 'PWATRNY', 'SUPNWK', 'PUBHLTH', 'DISASTER', 'THREAT', 'TREAT', 'CLINTRL', 'COC', 'ETREAT', 'BTG', 'ERTREAT', 'POPHLTH']}, 'type'=>'CodeableConcept', 'path'=>'AuditEvent.authorization', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://terminology.hl7.org/ValueSet/v3-PurposeOfUse'}},
  'basedOn' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/CarePlan', 'http://hl7.org/fhir/StructureDefinition/DeviceRequest', 'http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation', 'http://hl7.org/fhir/StructureDefinition/MedicationRequest', 'http://hl7.org/fhir/StructureDefinition/NutritionOrder', 'http://hl7.org/fhir/StructureDefinition/ServiceRequest', 'http://hl7.org/fhir/StructureDefinition/Task'], 'type'=>'Reference', 'path'=>'AuditEvent.basedOn', 'min'=>0, 'max'=>Float::INFINITY},
  'patient' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient'], 'type'=>'Reference', 'path'=>'AuditEvent.patient', 'min'=>0, 'max'=>1},
  'encounter' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Encounter'], 'type'=>'Reference', 'path'=>'AuditEvent.encounter', 'min'=>0, 'max'=>1},
  'agent' => {'type'=>'AuditEvent::Agent', 'path'=>'AuditEvent.agent', 'min'=>1, 'max'=>Float::INFINITY},
  'source' => {'type'=>'AuditEvent::Source', 'path'=>'AuditEvent.source', 'min'=>1, 'max'=>1},
  'entity' => {'type'=>'AuditEvent::Entity', 'path'=>'AuditEvent.entity', '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

#actionObject

0-1 code



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

def action
  @action
end

#agentObject

1-* [ AuditEvent::Agent ]



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

def agent
  @agent
end

#authorizationObject

0-* [ CodeableConcept ]



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

def authorization
  @authorization
end

#basedOnObject

0-* [ Reference(CarePlan|DeviceRequest|ImmunizationRecommendation|MedicationRequest|NutritionOrder|ServiceRequest|Task) ]



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

def basedOn
  @basedOn
end

#categoryObject

0-* [ CodeableConcept ]



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

def category
  @category
end

#codeObject

1-1 CodeableConcept



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

def code
  @code
end

#containedObject

0-* [ Resource ]



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

def contained
  @contained
end

#encounterObject

0-1 Reference(Encounter)



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

def encounter
  @encounter
end

#entityObject

0-* [ AuditEvent::Entity ]



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

def entity
  @entity
end

#extensionObject

0-* [ Extension ]



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

def extension
  @extension
end

#idObject

0-1 id



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

def id
  @id
end

#implicitRulesObject

0-1 uri



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

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



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

def language
  @language
end

#metaObject

0-1 Meta



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

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



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

def modifierExtension
  @modifierExtension
end

#occurredDateTimeObject

0-1 dateTime



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

def occurredDateTime
  @occurredDateTime
end

#occurredPeriodObject

0-1 Period



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

def occurredPeriod
  @occurredPeriod
end

#outcomeObject

0-1 AuditEvent::Outcome



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

def outcome
  @outcome
end

#patientObject

0-1 Reference(Patient)



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

def patient
  @patient
end

#recordedObject

1-1 instant



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

def recorded
  @recorded
end

#severityObject

0-1 code



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

def severity
  @severity
end

#sourceObject

1-1 AuditEvent::Source



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

def source
  @source
end

#textObject

0-1 Narrative



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

def text
  @text
end

Instance Method Details

#resourceTypeObject



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

def resourceType
  'AuditEvent'
end