Class: FHIR::DSTU2::Signature

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

Constant Summary collapse

MULTIPLE_TYPES =
{
  'who' => ['uri', 'Reference']
}
SEARCH_PARAMS =
METADATA = {
  'id' => {'type'=>'id', 'path'=>'Signature.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'Signature.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'type' => {'valid_codes'=>{'http://hl7.org/fhir/valueset-signature-type'=>['1.2.840.10065.1.12.1.1', '1.2.840.10065.1.12.1.2', '1.2.840.10065.1.12.1.3', '1.2.840.10065.1.12.1.4', '1.2.840.10065.1.12.1.5', '1.2.840.10065.1.12.1.6', '1.2.840.10065.1.12.1.7', '1.2.840.10065.1.12.1.8', '1.2.840.10065.1.12.1.9', '1.2.840.10065.1.12.1.10', '1.2.840.10065.1.12.1.11', '1.2.840.10065.1.12.1.12', '1.2.840.10065.1.12.1.13', '1.2.840.10065.1.12.1.14', '1.2.840.10065.1.12.1.15', '1.2.840.10065.1.12.1.16', '1.2.840.10065.1.12.1.17']}, 'type'=>'Coding', 'path'=>'Signature.type', 'min'=>1, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'preferred', 'uri'=>'http://hl7.org/fhir/ValueSet/signature-type'}},
  'when' => {'type'=>'instant', 'path'=>'Signature.when', 'min'=>1, 'max'=>1},
  'whoUri' => {'type'=>'uri', 'path'=>'Signature.who[x]', 'min'=>1, 'max'=>1},
  'whoReference' => {'type'=>'Reference', 'path'=>'Signature.who[x]', 'min'=>1, 'max'=>1},
  'contentType' => {'type'=>'code', 'path'=>'Signature.contentType', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://www.rfc-editor.org/bcp/bcp13.txt'}},
  'blob' => {'type'=>'base64Binary', 'path'=>'Signature.blob', 'min'=>1, '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, #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

#blobObject

1-1 base64Binary



30
31
32
# File 'lib/fhir_dstu2_models/fhir/types/Signature.rb', line 30

def blob
  @blob
end

#contentTypeObject

1-1 code



29
30
31
# File 'lib/fhir_dstu2_models/fhir/types/Signature.rb', line 29

def contentType
  @contentType
end

#extensionObject

0-* [ Extension ]



24
25
26
# File 'lib/fhir_dstu2_models/fhir/types/Signature.rb', line 24

def extension
  @extension
end

#idObject

0-1 id



23
24
25
# File 'lib/fhir_dstu2_models/fhir/types/Signature.rb', line 23

def id
  @id
end

#typeObject

1-* [ Coding ]



25
26
27
# File 'lib/fhir_dstu2_models/fhir/types/Signature.rb', line 25

def type
  @type
end

#whenObject

1-1 instant



26
27
28
# File 'lib/fhir_dstu2_models/fhir/types/Signature.rb', line 26

def when
  @when
end

#whoReferenceObject

1-1 Reference()



28
29
30
# File 'lib/fhir_dstu2_models/fhir/types/Signature.rb', line 28

def whoReference
  @whoReference
end

#whoUriObject

1-1 uri



27
28
29
# File 'lib/fhir_dstu2_models/fhir/types/Signature.rb', line 27

def whoUri
  @whoUri
end