Class: FHIR::Subscription::Channel

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

Constant Summary collapse

METADATA =
{
  'id' => {'type'=>'string', '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|4.0.0'}},
  'endpoint' => {'type'=>'url', 'path'=>'Channel.endpoint', 'min'=>0, 'max'=>1},
  'payload' => {'type'=>'code', 'path'=>'Channel.payload', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/mimetypes|4.0.0'}},
  'header' => {'type'=>'string', 'path'=>'Channel.header', '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, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #to_reference, #valid?, #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

#endpointObject

0-1 url



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

def endpoint
  @endpoint
end

#extensionObject

0-* [ Extension ]



42
43
44
# File 'lib/fhir_models/fhir/resources/Subscription.rb', line 42

def extension
  @extension
end

#headerObject

0-* [ string ]



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

def header
  @header
end

#idObject

0-1 string



41
42
43
# File 'lib/fhir_models/fhir/resources/Subscription.rb', line 41

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



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

def modifierExtension
  @modifierExtension
end

#payloadObject

0-1 code



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

def payload
  @payload
end

#typeObject

1-1 code



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

def type
  @type
end