Sha256: 0f15181c0826f35b1b8b1dbfb7b98c0535456b5e103683c3ac3cf129b4fdec37

Contents?: true

Size: 1.15 KB

Versions: 7

Compression:

Stored size: 1.15 KB

Contents

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

    SEARCH_PARAMS = ["contenttype"]
    METADATA = {
      'id' => {'type'=>'id', 'path'=>'Binary.id', 'min'=>0, 'max'=>1},
      'meta' => {'type'=>'Meta', 'path'=>'Binary.meta', 'min'=>0, 'max'=>1},
      'implicitRules' => {'type'=>'uri', 'path'=>'Binary.implicitRules', 'min'=>0, 'max'=>1},
      'language' => {'type'=>'code', 'path'=>'Binary.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/languages'}},
      'contentType' => {'type'=>'code', 'path'=>'Binary.contentType', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://www.rfc-editor.org/bcp/bcp13.txt'}},
      'content' => {'type'=>'base64Binary', 'path'=>'Binary.content', 'min'=>1, 'max'=>1}
    }

    attr_accessor :id            # 0-1 id
    attr_accessor :meta          # 0-1 Meta
    attr_accessor :implicitRules # 0-1 uri
    attr_accessor :language      # 0-1 code
    attr_accessor :contentType   # 1-1 code
    attr_accessor :content       # 1-1 base64Binary

    def resourceType
      'Binary'
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fhir_models-1.6.8 lib/fhir_models/fhir/resources/Binary.rb
fhir_models-1.6.7 lib/fhir_models/fhir/resources/Binary.rb
fhir_models-1.6.6 lib/fhir_models/fhir/resources/Binary.rb
fhir_models-1.6.4 lib/fhir_models/fhir/resources/Binary.rb
fhir_models-1.6.3 lib/fhir/resources/Binary.rb
fhir_models-1.6.2 lib/fhir/resources/Binary.rb
fhir_models-1.6.1 lib/fhir/resources/Binary.rb