Class: FHIR::DSTU2::Communication

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

Defined Under Namespace

Classes: Payload

Constant Summary collapse

SEARCH_PARAMS =
['category', 'encounter', 'identifier', 'medium', 'patient', 'received', 'recipient', 'request', 'sender', 'sent', 'status', 'subject', 'category', 'encounter', 'identifier', 'medium', 'patient', 'priority', 'recipient', 'requested', 'requester', 'sender', 'status', 'subject', 'time']
METADATA =
{
  'id' => {'type'=>'id', 'path'=>'Communication.id', 'min'=>0, 'max'=>1},
  'meta' => {'type'=>'Meta', 'path'=>'Communication.meta', 'min'=>0, 'max'=>1},
  'implicitRules' => {'type'=>'uri', 'path'=>'Communication.implicitRules', 'min'=>0, 'max'=>1},
  'language' => {'type'=>'code', 'path'=>'Communication.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
  'text' => {'type'=>'Narrative', 'path'=>'Communication.text', 'min'=>0, 'max'=>1},
  'contained' => {'type'=>'Resource', 'path'=>'Communication.contained', 'min'=>0, 'max'=>Float::INFINITY},
  'extension' => {'type'=>'Extension', 'path'=>'Communication.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Communication.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'identifier' => {'type'=>'Identifier', 'path'=>'Communication.identifier', 'min'=>0, 'max'=>Float::INFINITY},
  'category' => {'type'=>'CodeableConcept', 'path'=>'Communication.category', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>nil}},
  'sender' => {'type'=>'Reference', 'path'=>'Communication.sender', 'min'=>0, 'max'=>1},
  'recipient' => {'type'=>'Reference', 'path'=>'Communication.recipient', 'min'=>0, 'max'=>Float::INFINITY},
  'payload' => {'type'=>'Communication::Payload', 'path'=>'Communication.payload', 'min'=>0, 'max'=>Float::INFINITY},
  'medium' => {'valid_codes'=>{'http://hl7.org/fhir/v3/ParticipationMode'=>['ELECTRONIC', 'PHYSICAL', 'REMOTE', 'VERBAL', 'DICTATE', 'FACE', 'PHONE', 'VIDEOCONF', 'WRITTEN', 'FAXWRIT', 'HANDWRIT', 'MAILWRIT', 'ONLINEWRIT', 'EMAILWRIT', 'TYPEWRIT']}, 'type'=>'CodeableConcept', 'path'=>'Communication.medium', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/v3-ParticipationMode'}},
  'status' => {'valid_codes'=>{'http://hl7.org/fhir/communication-status'=>['in-progress', 'completed', 'suspended', 'rejected', 'failed']}, 'type'=>'code', 'path'=>'Communication.status', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/communication-status'}},
  'encounter' => {'type'=>'Reference', 'path'=>'Communication.encounter', 'min'=>0, 'max'=>1},
  'sent' => {'type'=>'dateTime', 'path'=>'Communication.sent', 'min'=>0, 'max'=>1},
  'received' => {'type'=>'dateTime', 'path'=>'Communication.received', 'min'=>0, 'max'=>1},
  'reason' => {'type'=>'CodeableConcept', 'path'=>'Communication.reason', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>nil}},
  'subject' => {'type'=>'Reference', 'path'=>'Communication.subject', 'min'=>0, 'max'=>1},
  'requestDetail' => {'type'=>'Reference', 'path'=>'Communication.requestDetail', 'min'=>0, 'max'=>1}
}

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, #each_element, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #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

#categoryObject

0-1 CodeableConcept



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

def category
  @category
end

#containedObject

0-* [ Resource ]



63
64
65
# File 'lib/fhir_dstu2_models/fhir/resources/Communication.rb', line 63

def contained
  @contained
end

#encounterObject

0-1 Reference()



73
74
75
# File 'lib/fhir_dstu2_models/fhir/resources/Communication.rb', line 73

def encounter
  @encounter
end

#extensionObject

0-* [ Extension ]



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

def extension
  @extension
end

#idObject

0-1 id



58
59
60
# File 'lib/fhir_dstu2_models/fhir/resources/Communication.rb', line 58

def id
  @id
end

#identifierObject

0-* [ Identifier ]



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

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



60
61
62
# File 'lib/fhir_dstu2_models/fhir/resources/Communication.rb', line 60

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



61
62
63
# File 'lib/fhir_dstu2_models/fhir/resources/Communication.rb', line 61

def language
  @language
end

#mediumObject

0-* [ CodeableConcept ]



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

def medium
  @medium
end

#metaObject

0-1 Meta



59
60
61
# File 'lib/fhir_dstu2_models/fhir/resources/Communication.rb', line 59

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



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

def modifierExtension
  @modifierExtension
end

#payloadObject

0-* [ Communication::Payload ]



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

def payload
  @payload
end

#reasonObject

0-* [ CodeableConcept ]



76
77
78
# File 'lib/fhir_dstu2_models/fhir/resources/Communication.rb', line 76

def reason
  @reason
end

#receivedObject

0-1 dateTime



75
76
77
# File 'lib/fhir_dstu2_models/fhir/resources/Communication.rb', line 75

def received
  @received
end

#recipientObject

0-* [ Reference() ]



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

def recipient
  @recipient
end

#requestDetailObject

0-1 Reference()



78
79
80
# File 'lib/fhir_dstu2_models/fhir/resources/Communication.rb', line 78

def requestDetail
  @requestDetail
end

#senderObject

0-1 Reference()



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

def sender
  @sender
end

#sentObject

0-1 dateTime



74
75
76
# File 'lib/fhir_dstu2_models/fhir/resources/Communication.rb', line 74

def sent
  @sent
end

#statusObject

0-1 code



72
73
74
# File 'lib/fhir_dstu2_models/fhir/resources/Communication.rb', line 72

def status
  @status
end

#subjectObject

0-1 Reference()



77
78
79
# File 'lib/fhir_dstu2_models/fhir/resources/Communication.rb', line 77

def subject
  @subject
end

#textObject

0-1 Narrative



62
63
64
# File 'lib/fhir_dstu2_models/fhir/resources/Communication.rb', line 62

def text
  @text
end

Instance Method Details

#resourceTypeObject



80
81
82
# File 'lib/fhir_dstu2_models/fhir/resources/Communication.rb', line 80

def resourceType
  'Communication'
end