Class: FHIR::DSTU2::Provenance::Agent

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

Defined Under Namespace

Classes: RelatedAgent

Constant Summary collapse

METADATA =
{
  'id' => { 'type' => 'id', 'path' => 'Agent.id', 'min' => 0, 'max' => 1 },
  'extension' => { 'type' => 'Extension', 'path' => 'Agent.extension', 'min' => 0, 'max' => Float::INFINITY },
  'modifierExtension' => { 'type' => 'Extension', 'path' => 'Agent.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
  'role' => { 'valid_codes' => { 'http://hl7.org/fhir/provenance-participant-role' => ['enterer', 'performer', 'author', 'verifier', 'legal', 'attester', 'informant', 'custodian', 'assembler', 'composer'] }, 'type' => 'Coding', 'path' => 'Agent.role', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'extensible', 'uri' => 'http://hl7.org/fhir/ValueSet/provenance-agent-role' } },
  'actor' => { 'type' => 'Reference', 'path' => 'Agent.actor', 'min' => 0, 'max' => 1 },
  'userId' => { 'type' => 'Identifier', 'path' => 'Agent.userId', 'min' => 0, 'max' => 1 },
  'relatedAgent' => { 'type' => 'Provenance::Agent::RelatedAgent', 'path' => 'Agent.relatedAgent', 'min' => 0, 'max' => Float::INFINITY }
}

Instance Attribute Summary collapse

Method Summary

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, #each_element, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #respond_to_missing?, #to_reference, #valid?, #validate, #validate_profile

Constructor Details

This class inherits a constructor from FHIR::DSTU2::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FHIR::DSTU2::Model

Instance Attribute Details

#actorObject

0-1 Reference()



69
70
71
# File 'lib/fhir_dstu2_models/fhir/resources/Provenance.rb', line 69

def actor
  @actor
end

#extensionObject

0-* [ Extension ]



66
67
68
# File 'lib/fhir_dstu2_models/fhir/resources/Provenance.rb', line 66

def extension
  @extension
end

#idObject

0-1 id



65
66
67
# File 'lib/fhir_dstu2_models/fhir/resources/Provenance.rb', line 65

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



67
68
69
# File 'lib/fhir_dstu2_models/fhir/resources/Provenance.rb', line 67

def modifierExtension
  @modifierExtension
end

#relatedAgentObject

0-* [ Provenance::Agent::RelatedAgent ]



71
72
73
# File 'lib/fhir_dstu2_models/fhir/resources/Provenance.rb', line 71

def relatedAgent
  @relatedAgent
end

#roleObject

1-1 Coding



68
69
70
# File 'lib/fhir_dstu2_models/fhir/resources/Provenance.rb', line 68

def role
  @role
end

#userIdObject

0-1 Identifier



70
71
72
# File 'lib/fhir_dstu2_models/fhir/resources/Provenance.rb', line 70

def userId
  @userId
end