Class: FHIR::Endpoint

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

Constant Summary collapse

SEARCH_PARAMS =
["identifier", "name", "organization", "payload-type", "status"]
METADATA =
{
  'id' => {'type'=>'id', 'path'=>'Endpoint.id', 'min'=>0, 'max'=>1},
  'meta' => {'type'=>'Meta', 'path'=>'Endpoint.meta', 'min'=>0, 'max'=>1},
  'implicitRules' => {'type'=>'uri', 'path'=>'Endpoint.implicitRules', 'min'=>0, 'max'=>1},
  'language' => {'type'=>'code', 'path'=>'Endpoint.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/languages'}},
  'text' => {'type'=>'Narrative', 'path'=>'Endpoint.text', 'min'=>0, 'max'=>1},
  'contained' => {'type'=>'Resource', 'path'=>'Endpoint.contained', 'min'=>0, 'max'=>Float::INFINITY},
  'extension' => {'type'=>'Extension', 'path'=>'Endpoint.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Endpoint.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'identifier' => {'type'=>'Identifier', 'path'=>'Endpoint.identifier', 'min'=>0, 'max'=>Float::INFINITY},
  'status' => {'valid_codes'=>{'http://hl7.org/fhir/endpoint-status'=>['active', 'suspended', 'error', 'off', 'entered-in-error', 'active', 'suspended', 'error', 'off', 'entered-in-error']}, 'type'=>'code', 'path'=>'Endpoint.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/endpoint-status'}},
  'name' => {'type'=>'string', 'path'=>'Endpoint.name', 'min'=>0, 'max'=>1},
  'managingOrganization' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Endpoint.managingOrganization', 'min'=>0, 'max'=>1},
  'contact' => {'type'=>'ContactPoint', 'path'=>'Endpoint.contact', 'min'=>0, 'max'=>Float::INFINITY},
  'connectionType' => {'valid_codes'=>{'http://hl7.org/fhir/subscription-channel-type'=>['rest-hook', 'websocket', 'email', 'sms', 'message', 'rest-hook', 'websocket', 'email', 'sms', 'message']}, 'type'=>'Coding', 'path'=>'Endpoint.connectionType', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/subscription-channel-type'}},
  'method' => {'local_name'=>'local_method', 'valid_codes'=>{'http://hl7.org/fhir/http-verb'=>['GET', 'POST', 'PUT', 'DELETE', 'GET', 'POST', 'PUT', 'DELETE']}, 'type'=>'Coding', 'path'=>'Endpoint.method', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/http-verb'}},
  'period' => {'type'=>'Period', 'path'=>'Endpoint.period', 'min'=>0, 'max'=>1},
  'address' => {'type'=>'uri', 'path'=>'Endpoint.address', 'min'=>1, 'max'=>1},
  'payloadFormat' => {'type'=>'string', 'path'=>'Endpoint.payloadFormat', 'min'=>1, 'max'=>1},
  'payloadType' => {'type'=>'CodeableConcept', 'path'=>'Endpoint.payloadType', 'min'=>1, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/endpoint-payload-type'}},
  'header' => {'type'=>'string', 'path'=>'Endpoint.header', 'min'=>0, 'max'=>Float::INFINITY},
  'publicKey' => {'type'=>'string', 'path'=>'Endpoint.publicKey', 'min'=>0, 'max'=>1}
}

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#addressObject

1-1 uri



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

def address
  @address
end

#connectionTypeObject

1-1 Coding



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

def connectionType
  @connectionType
end

#contactObject

0-* [ ContactPoint ]



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

def contact
  @contact
end

#containedObject

0-* [ Resource ]



37
38
39
# File 'lib/fhir/resources/Endpoint.rb', line 37

def contained
  @contained
end

#extensionObject

0-* [ Extension ]



38
39
40
# File 'lib/fhir/resources/Endpoint.rb', line 38

def extension
  @extension
end

#headerObject

0-* [ string ]



51
52
53
# File 'lib/fhir/resources/Endpoint.rb', line 51

def header
  @header
end

#idObject

0-1 id



32
33
34
# File 'lib/fhir/resources/Endpoint.rb', line 32

def id
  @id
end

#identifierObject

0-* [ Identifier ]



40
41
42
# File 'lib/fhir/resources/Endpoint.rb', line 40

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



34
35
36
# File 'lib/fhir/resources/Endpoint.rb', line 34

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



35
36
37
# File 'lib/fhir/resources/Endpoint.rb', line 35

def language
  @language
end

#local_methodObject

0-* [ Coding ]



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

def local_method
  @local_method
end

#managingOrganizationObject

0-1 Reference(Organization)



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

def managingOrganization
  @managingOrganization
end

#metaObject

0-1 Meta



33
34
35
# File 'lib/fhir/resources/Endpoint.rb', line 33

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



39
40
41
# File 'lib/fhir/resources/Endpoint.rb', line 39

def modifierExtension
  @modifierExtension
end

#nameObject

0-1 string



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

def name
  @name
end

#payloadFormatObject

1-1 string



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

def payloadFormat
  @payloadFormat
end

#payloadTypeObject

1-* [ CodeableConcept ]



50
51
52
# File 'lib/fhir/resources/Endpoint.rb', line 50

def payloadType
  @payloadType
end

#periodObject

0-1 Period



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

def period
  @period
end

#publicKeyObject

0-1 string



52
53
54
# File 'lib/fhir/resources/Endpoint.rb', line 52

def publicKey
  @publicKey
end

#statusObject

1-1 code



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

def status
  @status
end

#textObject

0-1 Narrative



36
37
38
# File 'lib/fhir/resources/Endpoint.rb', line 36

def text
  @text
end

Instance Method Details

#resourceTypeObject



54
55
56
# File 'lib/fhir/resources/Endpoint.rb', line 54

def resourceType
  'Endpoint'
end