Class: FHIR::Sequence::Variant

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

Constant Summary collapse

METADATA =
{
  'id' => {'type'=>'string', 'path'=>'Variant.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'Variant.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Variant.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'start' => {'type'=>'integer', 'path'=>'Variant.start', 'min'=>0, 'max'=>1},
  'end' => {'type'=>'integer', 'path'=>'Variant.end', 'min'=>0, 'max'=>1},
  'observedAllele' => {'type'=>'string', 'path'=>'Variant.observedAllele', 'min'=>0, 'max'=>1},
  'referenceAllele' => {'type'=>'string', 'path'=>'Variant.referenceAllele', 'min'=>0, 'max'=>1},
  'cigar' => {'type'=>'string', 'path'=>'Variant.cigar', 'min'=>0, 'max'=>1},
  'variantPointer' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Observation'], 'type'=>'Reference', 'path'=>'Variant.variantPointer', '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

#cigarObject

0-1 string



90
91
92
# File 'lib/fhir/resources/Sequence.rb', line 90

def cigar
  @cigar
end

#endObject

0-1 integer



87
88
89
# File 'lib/fhir/resources/Sequence.rb', line 87

def end
  @end
end

#extensionObject

0-* [ Extension ]



84
85
86
# File 'lib/fhir/resources/Sequence.rb', line 84

def extension
  @extension
end

#idObject

0-1 string



83
84
85
# File 'lib/fhir/resources/Sequence.rb', line 83

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



85
86
87
# File 'lib/fhir/resources/Sequence.rb', line 85

def modifierExtension
  @modifierExtension
end

#observedAlleleObject

0-1 string



88
89
90
# File 'lib/fhir/resources/Sequence.rb', line 88

def observedAllele
  @observedAllele
end

#referenceAlleleObject

0-1 string



89
90
91
# File 'lib/fhir/resources/Sequence.rb', line 89

def referenceAllele
  @referenceAllele
end

#startObject

0-1 integer



86
87
88
# File 'lib/fhir/resources/Sequence.rb', line 86

def start
  @start
end

#variantPointerObject

0-1 Reference(Observation)



91
92
93
# File 'lib/fhir/resources/Sequence.rb', line 91

def variantPointer
  @variantPointer
end