Class: FHIR::Provenance::Agent

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

Defined Under Namespace

Classes: RelatedAgent

Constant Summary collapse

METADATA =
{
  'id' => {'type'=>'string', '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', 'enterer', 'performer', 'author', 'verifier', '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_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Organization'], '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, is_valid?, #to_xml, validate

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?, #initialize, #is_valid?, #method_missing, #mismatch, #to_reference, #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

#actorObject

0-1 Reference(Practitioner|RelatedPerson|Patient|Device|Organization)



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

def actor
  @actor
end

#extensionObject

0-* [ Extension ]



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

def extension
  @extension
end

#idObject

0-1 string



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

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



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

def modifierExtension
  @modifierExtension
end

#relatedAgentObject

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



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

def relatedAgent
  @relatedAgent
end

#roleObject

1-1 Coding



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

def role
  @role
end

#userIdObject

0-1 Identifier



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

def userId
  @userId
end