Class: FHIR::DSTU2::CommunicationRequest

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

Defined Under Namespace

Classes: Payload

Constant Summary collapse

MULTIPLE_TYPES =
{
  'scheduled' => ['dateTime', 'Period']
}
SEARCH_PARAMS =
['category', 'encounter', 'identifier', 'medium', 'patient', 'priority', 'recipient', 'requested', 'requester', 'sender', 'status', 'subject', 'time']
METADATA =
{
  'id' => { 'type' => 'id', 'path' => 'CommunicationRequest.id', 'min' => 0, 'max' => 1 },
  'meta' => { 'type' => 'Meta', 'path' => 'CommunicationRequest.meta', 'min' => 0, 'max' => 1 },
  'implicitRules' => { 'type' => 'uri', 'path' => 'CommunicationRequest.implicitRules', 'min' => 0, 'max' => 1 },
  'language' => { 'type' => 'code', 'path' => 'CommunicationRequest.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
  'text' => { 'type' => 'Narrative', 'path' => 'CommunicationRequest.text', 'min' => 0, 'max' => 1 },
  'contained' => { 'type' => 'Resource', 'path' => 'CommunicationRequest.contained', 'min' => 0, 'max' => Float::INFINITY },
  'extension' => { 'type' => 'Extension', 'path' => 'CommunicationRequest.extension', 'min' => 0, 'max' => Float::INFINITY },
  'modifierExtension' => { 'type' => 'Extension', 'path' => 'CommunicationRequest.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
  'identifier' => { 'type' => 'Identifier', 'path' => 'CommunicationRequest.identifier', 'min' => 0, 'max' => Float::INFINITY },
  'category' => { 'type' => 'CodeableConcept', 'path' => 'CommunicationRequest.category', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => nil } },
  'sender' => { 'type' => 'Reference', 'path' => 'CommunicationRequest.sender', 'min' => 0, 'max' => 1 },
  'recipient' => { 'type' => 'Reference', 'path' => 'CommunicationRequest.recipient', 'min' => 0, 'max' => Float::INFINITY },
  'payload' => { 'type' => 'CommunicationRequest::Payload', 'path' => 'CommunicationRequest.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' => 'CommunicationRequest.medium', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/v3-ParticipationMode' } },
  'requester' => { 'type' => 'Reference', 'path' => 'CommunicationRequest.requester', 'min' => 0, 'max' => 1 },
  'status' => { 'valid_codes' => { 'http://hl7.org/fhir/communication-request-status' => ['proposed', 'planned', 'requested', 'received', 'accepted', 'in-progress', 'completed', 'suspended', 'rejected', 'failed'] }, 'type' => 'code', 'path' => 'CommunicationRequest.status', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/communication-request-status' } },
  'encounter' => { 'type' => 'Reference', 'path' => 'CommunicationRequest.encounter', 'min' => 0, 'max' => 1 },
  'scheduledDateTime' => { 'type' => 'dateTime', 'path' => 'CommunicationRequest.scheduled[x]', 'min' => 0, 'max' => 1 },
  'scheduledPeriod' => { 'type' => 'Period', 'path' => 'CommunicationRequest.scheduled[x]', 'min' => 0, 'max' => 1 },
  'reason' => { 'type' => 'CodeableConcept', 'path' => 'CommunicationRequest.reason', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'example', 'uri' => nil } },
  'requestedOn' => { 'type' => 'dateTime', 'path' => 'CommunicationRequest.requestedOn', 'min' => 0, 'max' => 1 },
  'subject' => { 'type' => 'Reference', 'path' => 'CommunicationRequest.subject', 'min' => 0, 'max' => 1 },
  'priority' => { 'valid_codes' => { 'http://hl7.org/fhir/diagnostic-order-priority' => ['routine', 'urgent', 'stat', 'asap'] }, 'type' => 'CodeableConcept', 'path' => 'CommunicationRequest.priority', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/diagnostic-order-priority' } }
}

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?, #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

#categoryObject

0-1 CodeableConcept



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

def category
  @category
end

#containedObject

0-* [ Resource ]



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

def contained
  @contained
end

#encounterObject

0-1 Reference()



79
80
81
# File 'lib/fhir_dstu2_models/fhir/resources/CommunicationRequest.rb', line 79

def encounter
  @encounter
end

#extensionObject

0-* [ Extension ]



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

def extension
  @extension
end

#idObject

0-1 id



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

def id
  @id
end

#identifierObject

0-* [ Identifier ]



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

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



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

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



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

def language
  @language
end

#mediumObject

0-* [ CodeableConcept ]



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

def medium
  @medium
end

#metaObject

0-1 Meta



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

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



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

def modifierExtension
  @modifierExtension
end

#payloadObject

0-* [ CommunicationRequest::Payload ]



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

def payload
  @payload
end

#priorityObject

0-1 CodeableConcept



85
86
87
# File 'lib/fhir_dstu2_models/fhir/resources/CommunicationRequest.rb', line 85

def priority
  @priority
end

#reasonObject

0-* [ CodeableConcept ]



82
83
84
# File 'lib/fhir_dstu2_models/fhir/resources/CommunicationRequest.rb', line 82

def reason
  @reason
end

#recipientObject

0-* [ Reference() ]



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

def recipient
  @recipient
end

#requestedOnObject

0-1 dateTime



83
84
85
# File 'lib/fhir_dstu2_models/fhir/resources/CommunicationRequest.rb', line 83

def requestedOn
  @requestedOn
end

#requesterObject

0-1 Reference()



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

def requester
  @requester
end

#scheduledDateTimeObject

0-1 dateTime



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

def scheduledDateTime
  @scheduledDateTime
end

#scheduledPeriodObject

0-1 Period



81
82
83
# File 'lib/fhir_dstu2_models/fhir/resources/CommunicationRequest.rb', line 81

def scheduledPeriod
  @scheduledPeriod
end

#senderObject

0-1 Reference()



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

def sender
  @sender
end

#statusObject

0-1 code



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

def status
  @status
end

#subjectObject

0-1 Reference()



84
85
86
# File 'lib/fhir_dstu2_models/fhir/resources/CommunicationRequest.rb', line 84

def subject
  @subject
end

#textObject

0-1 Narrative



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

def text
  @text
end

Instance Method Details

#resourceTypeObject



87
88
89
# File 'lib/fhir_dstu2_models/fhir/resources/CommunicationRequest.rb', line 87

def resourceType
  'CommunicationRequest'
end