Class: FHIR::AuditEvent

Inherits:
Model
  • Object
show all
Includes:
Hashable, Json, Xml
Defined in:
lib/fhir_models/fhir/resources/AuditEvent.rb

Defined Under Namespace

Classes: Agent, Entity, Source

Constant Summary collapse

SEARCH_PARAMS =
['action', 'address', 'agent', 'agent-name', 'agent-role', 'altid', 'date', 'entity', 'entity-name', 'entity-role', 'entity-type', 'outcome', 'patient', 'policy', 'site', 'source', 'subtype', 'type']
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' => {'valid_codes'=>{'urn:ietf:bcp:47'=>['ar', 'bn', 'cs', 'da', 'de', 'de-AT', 'de-CH', 'de-DE', 'el', 'en', 'en-AU', 'en-CA', 'en-GB', 'en-IN', 'en-NZ', 'en-SG', 'en-US', 'es', 'es-AR', 'es-ES', 'es-UY', 'fi', 'fr', 'fr-BE', 'fr-CH', 'fr-FR', 'fy', 'fy-NL', 'hi', 'hr', 'it', 'it-CH', 'it-IT', 'ja', 'ko', 'nl', 'nl-BE', 'nl-NL', 'no', 'no-NO', 'pa', 'pl', 'pt', 'pt-BR', 'ru', 'ru-RU', 'sr', 'sr-RS', 'sv', 'sv-SE', 'te', 'zh', 'zh-CN', 'zh-HK', 'zh-SG', 'zh-TW']}, 'type'=>'code', 'path'=>'AuditEvent.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'preferred', 'uri'=>'http://hl7.org/fhir/ValueSet/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},
  'type' => {'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'], 'http://terminology.hl7.org/CodeSystem/iso-21089-lifecycle'=>['access', 'hold', 'amend', 'archive', 'attest', 'decrypt', 'deidentify', 'deprecate', 'destroy', 'disclose', 'encrypt', 'extract', 'link', 'merge', 'originate', 'pseudonymize', 'reactivate', 'receive', 'reidentify', 'unhold', 'report', 'restore', 'transform', 'transmit', 'unlink', 'unmerge', 'verify']}, 'type'=>'Coding', 'path'=>'AuditEvent.type', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/audit-event-type'}},
  'subtype' => {'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'], 'http://hl7.org/fhir/restful-interaction'=>['read', 'vread', 'update', 'patch', 'delete', 'history', 'history-instance', 'history-type', 'history-system', 'create', 'search', 'search-type', 'search-system', 'capabilities', 'transaction', 'batch', 'operation']}, 'type'=>'Coding', 'path'=>'AuditEvent.subtype', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'extensible', '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'}},
  'period' => {'type'=>'Period', 'path'=>'AuditEvent.period', 'min'=>0, 'max'=>1},
  'recorded' => {'type'=>'instant', 'path'=>'AuditEvent.recorded', 'min'=>1, 'max'=>1},
  'outcome' => {'valid_codes'=>{'http://hl7.org/fhir/audit-event-outcome'=>['0', '4', '8', '12']}, 'type'=>'code', 'path'=>'AuditEvent.outcome', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/audit-event-outcome'}},
  'outcomeDesc' => {'type'=>'string', 'path'=>'AuditEvent.outcomeDesc', 'min'=>0, 'max'=>1},
  'purposeOfEvent' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/v3-ActReason'=>['PurposeOfUse', '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.purposeOfEvent', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://terminology.hl7.org/ValueSet/v3-PurposeOfUse'}},
  '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}
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Xml

from_xml, #to_xml, valid?, validate

Methods included from Deprecate

#deprecate

Methods included from Json

from_json, #to_json

Methods included from Hashable

#from_hash, #to_hash

Methods inherited from Model

#==, #attribute_mismatch, #compare_attribute, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #to_reference, #valid?, #validate, #validate_profile

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



179
180
181
# File 'lib/fhir_models/fhir/resources/AuditEvent.rb', line 179

def action
  @action
end

#agentObject

1-* [ AuditEvent::Agent ]



185
186
187
# File 'lib/fhir_models/fhir/resources/AuditEvent.rb', line 185

def agent
  @agent
end

#containedObject

0-* [ Resource ]



174
175
176
# File 'lib/fhir_models/fhir/resources/AuditEvent.rb', line 174

def contained
  @contained
end

#entityObject

0-* [ AuditEvent::Entity ]



187
188
189
# File 'lib/fhir_models/fhir/resources/AuditEvent.rb', line 187

def entity
  @entity
end

#extensionObject

0-* [ Extension ]



175
176
177
# File 'lib/fhir_models/fhir/resources/AuditEvent.rb', line 175

def extension
  @extension
end

#idObject

0-1 id



169
170
171
# File 'lib/fhir_models/fhir/resources/AuditEvent.rb', line 169

def id
  @id
end

#implicitRulesObject

0-1 uri



171
172
173
# File 'lib/fhir_models/fhir/resources/AuditEvent.rb', line 171

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



172
173
174
# File 'lib/fhir_models/fhir/resources/AuditEvent.rb', line 172

def language
  @language
end

#metaObject

0-1 Meta



170
171
172
# File 'lib/fhir_models/fhir/resources/AuditEvent.rb', line 170

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



176
177
178
# File 'lib/fhir_models/fhir/resources/AuditEvent.rb', line 176

def modifierExtension
  @modifierExtension
end

#outcomeObject

0-1 code



182
183
184
# File 'lib/fhir_models/fhir/resources/AuditEvent.rb', line 182

def outcome
  @outcome
end

#outcomeDescObject

0-1 string



183
184
185
# File 'lib/fhir_models/fhir/resources/AuditEvent.rb', line 183

def outcomeDesc
  @outcomeDesc
end

#periodObject

0-1 Period



180
181
182
# File 'lib/fhir_models/fhir/resources/AuditEvent.rb', line 180

def period
  @period
end

#purposeOfEventObject

0-* [ CodeableConcept ]



184
185
186
# File 'lib/fhir_models/fhir/resources/AuditEvent.rb', line 184

def purposeOfEvent
  @purposeOfEvent
end

#recordedObject

1-1 instant



181
182
183
# File 'lib/fhir_models/fhir/resources/AuditEvent.rb', line 181

def recorded
  @recorded
end

#sourceObject

1-1 AuditEvent::Source



186
187
188
# File 'lib/fhir_models/fhir/resources/AuditEvent.rb', line 186

def source
  @source
end

#subtypeObject

0-* [ Coding ]



178
179
180
# File 'lib/fhir_models/fhir/resources/AuditEvent.rb', line 178

def subtype
  @subtype
end

#textObject

0-1 Narrative



173
174
175
# File 'lib/fhir_models/fhir/resources/AuditEvent.rb', line 173

def text
  @text
end

#typeObject

1-1 Coding



177
178
179
# File 'lib/fhir_models/fhir/resources/AuditEvent.rb', line 177

def type
  @type
end

Instance Method Details

#resourceTypeObject



189
190
191
# File 'lib/fhir_models/fhir/resources/AuditEvent.rb', line 189

def resourceType
  'AuditEvent'
end