Class: FHIR::DSTU2::Subscription::Channel

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

Constant Summary collapse

METADATA =
{
  'id' => { 'type' => 'id', 'path' => 'Channel.id', 'min' => 0, 'max' => 1 },
  'extension' => { 'type' => 'Extension', 'path' => 'Channel.extension', 'min' => 0, 'max' => Float::INFINITY },
  'modifierExtension' => { 'type' => 'Extension', 'path' => 'Channel.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
  'type' => { 'valid_codes' => { 'http://hl7.org/fhir/subscription-channel-type' => ['rest-hook', 'websocket', 'email', 'sms', 'message'] }, 'type' => 'code', 'path' => 'Channel.type', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/subscription-channel-type' } },
  'endpoint' => { 'type' => 'uri', 'path' => 'Channel.endpoint', 'min' => 0, 'max' => 1 },
  'payload' => { 'type' => 'string', 'path' => 'Channel.payload', 'min' => 1, 'max' => 1 },
  'header' => { 'type' => 'string', 'path' => 'Channel.header', 'min' => 0, 'max' => 1 }
}

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

#endpointObject

0-1 uri



47
48
49
# File 'lib/fhir_dstu2_models/fhir/resources/Subscription.rb', line 47

def endpoint
  @endpoint
end

#extensionObject

0-* [ Extension ]



44
45
46
# File 'lib/fhir_dstu2_models/fhir/resources/Subscription.rb', line 44

def extension
  @extension
end

#headerObject

0-1 string



49
50
51
# File 'lib/fhir_dstu2_models/fhir/resources/Subscription.rb', line 49

def header
  @header
end

#idObject

0-1 id



43
44
45
# File 'lib/fhir_dstu2_models/fhir/resources/Subscription.rb', line 43

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



45
46
47
# File 'lib/fhir_dstu2_models/fhir/resources/Subscription.rb', line 45

def modifierExtension
  @modifierExtension
end

#payloadObject

1-1 string



48
49
50
# File 'lib/fhir_dstu2_models/fhir/resources/Subscription.rb', line 48

def payload
  @payload
end

#typeObject

1-1 code



46
47
48
# File 'lib/fhir_dstu2_models/fhir/resources/Subscription.rb', line 46

def type
  @type
end