Class: FHIR::Signature
- 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
-
#blob ⇒ Object
0-1 base64Binary.
-
#contentType ⇒ Object
0-1 code.
-
#extension ⇒ Object
0-* [ Extension ].
-
#id ⇒ Object
0-1 string.
-
#onBehalfOfReference ⇒ Object
0-1 Reference(Practitioner|RelatedPerson|Patient|Device|Organization).
-
#onBehalfOfUri ⇒ Object
0-1 uri.
-
#type ⇒ Object
1-* [ Coding ].
-
#when ⇒ Object
1-1 instant.
-
#whoReference ⇒ Object
1-1 Reference(Practitioner|RelatedPerson|Patient|Device|Organization).
-
#whoUri ⇒ Object
1-1 uri.
Method Summary
Methods included from Xml
from_xml, is_valid?, #to_xml, validate
Methods included from Json
Methods included from Hashable
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
#blob ⇒ Object
0-1 base64Binary
34 35 36 |
# File 'lib/fhir/types/Signature.rb', line 34 def blob @blob end |
#contentType ⇒ Object
0-1 code
33 34 35 |
# File 'lib/fhir/types/Signature.rb', line 33 def contentType @contentType end |
#extension ⇒ Object
0-* [ Extension ]
26 27 28 |
# File 'lib/fhir/types/Signature.rb', line 26 def extension @extension end |
#id ⇒ Object
0-1 string
25 26 27 |
# File 'lib/fhir/types/Signature.rb', line 25 def id @id end |
#onBehalfOfReference ⇒ Object
0-1 Reference(Practitioner|RelatedPerson|Patient|Device|Organization)
32 33 34 |
# File 'lib/fhir/types/Signature.rb', line 32 def onBehalfOfReference @onBehalfOfReference end |
#onBehalfOfUri ⇒ Object
0-1 uri
31 32 33 |
# File 'lib/fhir/types/Signature.rb', line 31 def onBehalfOfUri @onBehalfOfUri end |
#type ⇒ Object
1-* [ Coding ]
27 28 29 |
# File 'lib/fhir/types/Signature.rb', line 27 def type @type end |
#when ⇒ Object
1-1 instant
28 29 30 |
# File 'lib/fhir/types/Signature.rb', line 28 def when @when end |
#whoReference ⇒ Object
1-1 Reference(Practitioner|RelatedPerson|Patient|Device|Organization)
30 31 32 |
# File 'lib/fhir/types/Signature.rb', line 30 def whoReference @whoReference end |
#whoUri ⇒ Object
1-1 uri
29 30 31 |
# File 'lib/fhir/types/Signature.rb', line 29 def whoUri @whoUri end |