Class: FHIR::Signature

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

Constant Summary collapse

MULTIPLE_TYPES =
{
  'who' => ['uri', 'Reference'],
  'onBehalfOf' => ['uri', 'Reference']
}
SEARCH_PARAMS =
[]
METADATA =
{
  'id' => {'type'=>'string', 'path'=>'Signature.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'Signature.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'type' => {'valid_codes'=>{'urn:iso-astm:E1762-95:2013'=>['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', '1.2.840.10065.1.12.1.18', '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', '1.2.840.10065.1.12.1.18']}, '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_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Signature.who[x]', 'min'=>1, 'max'=>1},
  'onBehalfOfUri' => {'type'=>'uri', 'path'=>'Signature.onBehalfOf[x]', 'min'=>0, 'max'=>1},
  'onBehalfOfReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Signature.onBehalfOf[x]', 'min'=>0, 'max'=>1},
  'contentType' => {'type'=>'code', 'path'=>'Signature.contentType', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://www.rfc-editor.org/bcp/bcp13.txt'}},
  'blob' => {'type'=>'base64Binary', 'path'=>'Signature.blob', 'min'=>0, 'max'=>1}
}

Instance Attribute Summary collapse

Method Summary

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

#blobObject

0-1 base64Binary



34
35
36
# File 'lib/fhir/types/Signature.rb', line 34

def blob
  @blob
end

#contentTypeObject

0-1 code



33
34
35
# File 'lib/fhir/types/Signature.rb', line 33

def contentType
  @contentType
end

#extensionObject

0-* [ Extension ]



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

def extension
  @extension
end

#idObject

0-1 string



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

def id
  @id
end

#onBehalfOfReferenceObject

0-1 Reference(Practitioner|RelatedPerson|Patient|Device|Organization)



32
33
34
# File 'lib/fhir/types/Signature.rb', line 32

def onBehalfOfReference
  @onBehalfOfReference
end

#onBehalfOfUriObject

0-1 uri



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

def onBehalfOfUri
  @onBehalfOfUri
end

#typeObject

1-* [ Coding ]



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

def type
  @type
end

#whenObject

1-1 instant



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

def when
  @when
end

#whoReferenceObject

1-1 Reference(Practitioner|RelatedPerson|Patient|Device|Organization)



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

def whoReference
  @whoReference
end

#whoUriObject

1-1 uri



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

def whoUri
  @whoUri
end