Sha256: 32971252ed3e0930f4338cc4ae240cfa233ca51075756acd835f7c0e803e07a4

Contents?: true

Size: 1.69 KB

Versions: 6

Compression:

Stored size: 1.69 KB

Contents

module FHIR
  module STU3
    class RelatedArtifact < FHIR::STU3::Model
      include FHIR::STU3::Hashable
      include FHIR::STU3::Json
      include FHIR::STU3::Xml

      SEARCH_PARAMS = 
      METADATA = {
        'id' => {'type'=>'string', 'path'=>'RelatedArtifact.id', 'min'=>0, 'max'=>1},
        'extension' => {'type'=>'Extension', 'path'=>'RelatedArtifact.extension', 'min'=>0, 'max'=>Float::INFINITY},
        'type' => {'valid_codes'=>{'http://hl7.org/fhir/related-artifact-type'=>['documentation', 'justification', 'citation', 'predecessor', 'successor', 'derived-from', 'depends-on', 'composed-of']}, 'type'=>'code', 'path'=>'RelatedArtifact.type', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/related-artifact-type'}},
        'display' => {'type'=>'string', 'path'=>'RelatedArtifact.display', 'min'=>0, 'max'=>1},
        'citation' => {'type'=>'string', 'path'=>'RelatedArtifact.citation', 'min'=>0, 'max'=>1},
        'url' => {'type'=>'uri', 'path'=>'RelatedArtifact.url', 'min'=>0, 'max'=>1},
        'document' => {'type'=>'Attachment', 'path'=>'RelatedArtifact.document', 'min'=>0, 'max'=>1},
        'resource' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'RelatedArtifact.resource', 'min'=>0, 'max'=>1}
      }

      attr_accessor :id        # 0-1 string
      attr_accessor :extension # 0-* [ Extension ]
      attr_accessor :type      # 1-1 code
      attr_accessor :display   # 0-1 string
      attr_accessor :citation  # 0-1 string
      attr_accessor :url       # 0-1 uri
      attr_accessor :document  # 0-1 Attachment
      attr_accessor :resource  # 0-1 Reference(Resource)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fhir_stu3_models-3.2.0 lib/fhir_stu3_models/fhir/types/RelatedArtifact.rb
fhir_stu3_models-3.1.1 lib/fhir_stu3_models/fhir/types/RelatedArtifact.rb
fhir_stu3_models-3.1.0 lib/fhir_stu3_models/fhir/types/RelatedArtifact.rb
fhir_stu3_models-3.0.2 lib/fhir_stu3_models/fhir/types/RelatedArtifact.rb
fhir_stu3_models-3.0.1 lib/fhir_stu3_models/fhir/types/RelatedArtifact.rb
fhir_stu3_models-3.0.0 lib/fhir_stu3_models/fhir/types/RelatedArtifact.rb