Class: FHIR::Media

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

Constant Summary collapse

SEARCH_PARAMS =
["created", "identifier", "operator", "patient", "subject", "subtype", "type", "view"]
METADATA =
{
  'id' => {'type'=>'id', 'path'=>'Media.id', 'min'=>0, 'max'=>1},
  'meta' => {'type'=>'Meta', 'path'=>'Media.meta', 'min'=>0, 'max'=>1},
  'implicitRules' => {'type'=>'uri', 'path'=>'Media.implicitRules', 'min'=>0, 'max'=>1},
  'language' => {'type'=>'code', 'path'=>'Media.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/languages'}},
  'text' => {'type'=>'Narrative', 'path'=>'Media.text', 'min'=>0, 'max'=>1},
  'contained' => {'type'=>'Resource', 'path'=>'Media.contained', 'min'=>0, 'max'=>Float::INFINITY},
  'extension' => {'type'=>'Extension', 'path'=>'Media.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Media.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'identifier' => {'type'=>'Identifier', 'path'=>'Media.identifier', 'min'=>0, 'max'=>Float::INFINITY},
  'type' => {'valid_codes'=>{'http://hl7.org/fhir/digital-media-type'=>['photo', 'video', 'audio', 'photo', 'video', 'audio']}, 'type'=>'code', 'path'=>'Media.type', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/digital-media-type'}},
  'subtype' => {'valid_codes'=>{'http://nema.org/dicom/dicm'=>['AR', 'BMD', 'BDUS', 'EPS', 'CR', 'CT', 'DX', 'ECG', 'ES', 'XC', 'GM', 'HD', 'IO', 'IVOCT', 'IVUS', 'KER', 'LEN', 'MR', 'MG', 'NM', 'OAM', 'OCT', 'OPM', 'OP', 'OPR', 'OPT', 'OPV', 'OSS', 'PX', 'PT', 'RF', 'RG', 'SM', 'SRF', 'US', 'VA', 'XA'], 'http://hl7.org/fhir/media-subtype'=>['diagram', 'fax', 'scan', 'retina', 'fingerprint', 'iris', 'palm', 'face', 'diagram', 'fax', 'scan', 'retina', 'fingerprint', 'iris', 'palm', 'face'], 'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'Media.subtype', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/digital-media-subtype'}},
  'view' => {'valid_codes'=>{'http://snomed.info/sct'=>['260421001', '260422008', '260424009', '260425005', '260426006', '260427002', '260428007', '260430009', '260431008', '260432001', '260434000', '260435004', '260436003', '260437007', '260438002', '260439005', '260440007', '260441006', '260442004', '260443009', '260444003', '260445002', '260446001', '260447005', '260450008', '260451007', '260452000', '260453005', '260454004', '260455003', '260458001', '260459009', '260460004', '260461000', '260463002', '260464008', '260465009', '260466005', '260467001', '260468006', '260469003', '260470002', '260471003', '260472005', '260473000', '260475007', '260476008', '260477004', '260478009', '260479001', '260481004', '260482006', '260483001', '260484007', '260485008', '260486009', '260487000', '260489002', '260490006', '260491005', '260492003', '260493008', '260494002', '260496000', '260497009', '260499007', '260500003', '260501004', '260502006', '260503001', '260504007', '260506009', '272455005', '272456006', '272457002', '272458007', '272459004', '272460009', '272461008', '272462001', '272464000', '272465004', '272466003', '272467007', '272468002', '272469005', '272470006', '272472003', '272473008', '272474002', '272475001', '272476000', '272478004', '272479007', '272480005', '272481009', '272482002', '272483007', '272484001', '278255003', '278267001', '278318001', '398996004', '399000008', '399001007', '399002000', '399003005', '399004004', '399005003', '399006002', '399011000', '399012007', '399013002', '399022001', '399024000', '399025004', '399026003', '399028002', '399033003', '399037002', '399038007', '399059000', '399061009', '399065000', '399067008', '399071006', '399073009', '399074003', '399075002', '399080006', '399082003', '399083008', '399089007', '399098005', '399099002', '399101009', '399103007', '399108003', '399110001', '399113004', '399118008', '399125001', '399127009', '399129007', '399130002', '399132005', '399135007', '399136008', '399138009', '399142007', '399146005', '399148006', '399152006', '399156009', '399157000', '399159002', '399160007', '399161006', '399162004', '399163009', '399168000', '399169008', '399171008', '399173006', '399179005', '399181007', '399182000', '399184004', '399188001', '399192008', '399196006', '399198007', '399199004', '399201002', '399206007', '399212002', '399215000', '399218003', '399225005', '399227002', '399234000', '399236003', '399237007', '399241006', '399242004', '399243009', '399245002', '399246001', '399247005', '399251007', '399255003', '399260004', '399263002', '399265009', '399268006', '399270002', '399272005', '399273000', '399277004', '399278009', '399280003', '399281004', '399284007', '399285008', '399288005', '399290006', '399292003', '399296000', '399297009', '399300004', '399303002', '399308006', '399311007', '399312000', '399313005', '399316002', '399318001', '399320003', '399321004', '399325008', '399327000', '399330007', '399332004', '399335002', '399341009', '399342002', '399344001', '399348003', '399349006', '399351005', '399352003', '399355001', '399356000', '399358004', '399360002', '399361003', '399362005', '399365007', '399368009', '399370000', '399372008', '408723005', '408724004', '408725003', '408726002', '422534007', '422568001', '422670003', '422795009', '422861003', '422954003', '422996004', '423091003', '423720000', '424086005', '424655003', '424811006', '424962005', '425030002', '425035007', '425042007', '425157002', '425188003', '441505008', '441555000', '441672003', '441753009', '442361004', '442441009', '442580003', '442581004', '442593008', '442594002', '442640004', '442653001', '442667005']}, 'type'=>'CodeableConcept', 'path'=>'Media.view', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/media-view'}},
  'subject' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/Group', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Specimen'], 'type'=>'Reference', 'path'=>'Media.subject', 'min'=>0, 'max'=>1},
  'operator' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner'], 'type'=>'Reference', 'path'=>'Media.operator', 'min'=>0, 'max'=>1},
  'deviceName' => {'type'=>'string', 'path'=>'Media.deviceName', 'min'=>0, 'max'=>1},
  'height' => {'type'=>'positiveInt', 'path'=>'Media.height', 'min'=>0, 'max'=>1},
  'width' => {'type'=>'positiveInt', 'path'=>'Media.width', 'min'=>0, 'max'=>1},
  'frames' => {'type'=>'positiveInt', 'path'=>'Media.frames', 'min'=>0, 'max'=>1},
  'duration' => {'type'=>'unsignedInt', 'path'=>'Media.duration', 'min'=>0, 'max'=>1},
  'content' => {'type'=>'Attachment', 'path'=>'Media.content', 'min'=>1, 'max'=>1}
}

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#containedObject

0-* [ Resource ]



36
37
38
# File 'lib/fhir/resources/Media.rb', line 36

def contained
  @contained
end

#contentObject

1-1 Attachment



50
51
52
# File 'lib/fhir/resources/Media.rb', line 50

def content
  @content
end

#deviceNameObject

0-1 string



45
46
47
# File 'lib/fhir/resources/Media.rb', line 45

def deviceName
  @deviceName
end

#durationObject

0-1 unsignedInt



49
50
51
# File 'lib/fhir/resources/Media.rb', line 49

def duration
  @duration
end

#extensionObject

0-* [ Extension ]



37
38
39
# File 'lib/fhir/resources/Media.rb', line 37

def extension
  @extension
end

#framesObject

0-1 positiveInt



48
49
50
# File 'lib/fhir/resources/Media.rb', line 48

def frames
  @frames
end

#heightObject

0-1 positiveInt



46
47
48
# File 'lib/fhir/resources/Media.rb', line 46

def height
  @height
end

#idObject

0-1 id



31
32
33
# File 'lib/fhir/resources/Media.rb', line 31

def id
  @id
end

#identifierObject

0-* [ Identifier ]



39
40
41
# File 'lib/fhir/resources/Media.rb', line 39

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



33
34
35
# File 'lib/fhir/resources/Media.rb', line 33

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



34
35
36
# File 'lib/fhir/resources/Media.rb', line 34

def language
  @language
end

#metaObject

0-1 Meta



32
33
34
# File 'lib/fhir/resources/Media.rb', line 32

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



38
39
40
# File 'lib/fhir/resources/Media.rb', line 38

def modifierExtension
  @modifierExtension
end

#operatorObject

0-1 Reference(Practitioner)



44
45
46
# File 'lib/fhir/resources/Media.rb', line 44

def operator
  @operator
end

#subjectObject

0-1 Reference(Patient|Practitioner|Group|Device|Specimen)



43
44
45
# File 'lib/fhir/resources/Media.rb', line 43

def subject
  @subject
end

#subtypeObject

0-1 CodeableConcept



41
42
43
# File 'lib/fhir/resources/Media.rb', line 41

def subtype
  @subtype
end

#textObject

0-1 Narrative



35
36
37
# File 'lib/fhir/resources/Media.rb', line 35

def text
  @text
end

#typeObject

1-1 code



40
41
42
# File 'lib/fhir/resources/Media.rb', line 40

def type
  @type
end

#viewObject

0-1 CodeableConcept



42
43
44
# File 'lib/fhir/resources/Media.rb', line 42

def view
  @view
end

#widthObject

0-1 positiveInt



47
48
49
# File 'lib/fhir/resources/Media.rb', line 47

def width
  @width
end

Instance Method Details

#resourceTypeObject



52
53
54
# File 'lib/fhir/resources/Media.rb', line 52

def resourceType
  'Media'
end