Sha256: f91a76b6d336d5accfa34f93076ee1186d163fad324917f61ffd75df8cf35cba

Contents?: true

Size: 1.29 KB

Versions: 7

Compression:

Stored size: 1.29 KB

Contents

module FHIR
  class Annotation < FHIR::Model
    include FHIR::Hashable
    include FHIR::Json
    include FHIR::Xml

    MULTIPLE_TYPES = {
      'author' => ['Reference', 'string']
    }
    SEARCH_PARAMS = 
    METADATA = {
      'id' => {'type'=>'string', 'path'=>'Annotation.id', 'min'=>0, 'max'=>1},
      'extension' => {'type'=>'Extension', 'path'=>'Annotation.extension', 'min'=>0, 'max'=>Float::INFINITY},
      'authorReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'], 'type'=>'Reference', 'path'=>'Annotation.author[x]', 'min'=>0, 'max'=>1},
      'authorString' => {'type'=>'string', 'path'=>'Annotation.author[x]', 'min'=>0, 'max'=>1},
      'time' => {'type'=>'dateTime', 'path'=>'Annotation.time', 'min'=>0, 'max'=>1},
      'text' => {'type'=>'string', 'path'=>'Annotation.text', 'min'=>1, 'max'=>1}
    }

    attr_accessor :id              # 0-1 string
    attr_accessor :extension       # 0-* [ Extension ]
    attr_accessor :authorReference # 0-1 Reference(Practitioner|Patient|RelatedPerson)
    attr_accessor :authorString    # 0-1 string
    attr_accessor :time            # 0-1 dateTime
    attr_accessor :text            # 1-1 string
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fhir_models-3.0.4 lib/fhir_models/fhir/types/Annotation.rb
fhir_models-3.0.3 lib/fhir_models/fhir/types/Annotation.rb
fhir_models-3.0.2 lib/fhir_models/fhir/types/Annotation.rb
fhir_models-3.0.1 lib/fhir_models/fhir/types/Annotation.rb
fhir_models-1.8.3 lib/fhir_models/fhir/types/Annotation.rb
fhir_models-1.8.2 lib/fhir_models/fhir/types/Annotation.rb
fhir_models-1.8.1 lib/fhir_models/fhir/types/Annotation.rb