Class: FHIR::DSTU2::DataElement

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

Defined Under Namespace

Classes: Contact, Mapping

Constant Summary collapse

SEARCH_PARAMS =
['code', 'context', 'date', 'description', 'identifier', 'name', 'publisher', 'status', 'stringency', 'url', 'version']
METADATA =
{
  'id' => {'type'=>'id', 'path'=>'DataElement.id', 'min'=>0, 'max'=>1},
  'meta' => {'type'=>'Meta', 'path'=>'DataElement.meta', 'min'=>0, 'max'=>1},
  'implicitRules' => {'type'=>'uri', 'path'=>'DataElement.implicitRules', 'min'=>0, 'max'=>1},
  'language' => {'type'=>'code', 'path'=>'DataElement.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
  'text' => {'type'=>'Narrative', 'path'=>'DataElement.text', 'min'=>0, 'max'=>1},
  'contained' => {'type'=>'Resource', 'path'=>'DataElement.contained', 'min'=>0, 'max'=>Float::INFINITY},
  'extension' => {'type'=>'Extension', 'path'=>'DataElement.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'DataElement.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'url' => {'type'=>'uri', 'path'=>'DataElement.url', 'min'=>0, 'max'=>1},
  'identifier' => {'type'=>'Identifier', 'path'=>'DataElement.identifier', 'min'=>0, 'max'=>Float::INFINITY},
  'version' => {'type'=>'string', 'path'=>'DataElement.version', 'min'=>0, 'max'=>1},
  'name' => {'type'=>'string', 'path'=>'DataElement.name', 'min'=>0, 'max'=>1},
  'status' => {'valid_codes'=>{'http://hl7.org/fhir/conformance-resource-status'=>['draft', 'active', 'retired']}, 'type'=>'code', 'path'=>'DataElement.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/conformance-resource-status'}},
  'experimental' => {'type'=>'boolean', 'path'=>'DataElement.experimental', 'min'=>0, 'max'=>1},
  'publisher' => {'type'=>'string', 'path'=>'DataElement.publisher', 'min'=>0, 'max'=>1},
  'contact' => {'type'=>'DataElement::Contact', 'path'=>'DataElement.contact', 'min'=>0, 'max'=>Float::INFINITY},
  'date' => {'type'=>'dateTime', 'path'=>'DataElement.date', 'min'=>0, 'max'=>1},
  'useContext' => {'valid_codes'=>{'urn:iso:std:iso:3166'=>[], 'http://unstats.un.org/unsd/methods/m49/m49.htm'=>[], 'https://www.usps.com/'=>['AK', 'AL', 'AR', 'AS', 'AZ', 'CA', 'CO', 'CT', 'DC', 'DE', 'FL', 'FM', 'GA', 'GU', 'HI', 'IA', 'ID', 'IL', 'IN', 'KS', 'KY', 'LA', 'MA', 'MD', 'ME', 'MH', 'MI', 'MN', 'MO', 'MP', 'MS', 'MT', 'NC', 'ND', 'NE', 'NH', 'NJ', 'NM', 'NV', 'NY', 'OH', 'OK', 'OR', 'PA', 'PR', 'PW', 'RI', 'SC', 'SD', 'TN', 'TX', 'UM', 'UT', 'VA', 'VI', 'VT', 'WA', 'WI', 'WV', 'WY'], 'http://hl7.org/fhir/practitioner-specialty'=>['cardio', 'dent', 'dietary', 'midw', 'sysarch']}, 'type'=>'CodeableConcept', 'path'=>'DataElement.useContext', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/use-context'}},
  'copyright' => {'type'=>'string', 'path'=>'DataElement.copyright', 'min'=>0, 'max'=>1},
  'stringency' => {'valid_codes'=>{'http://hl7.org/fhir/dataelement-stringency'=>['comparable', 'fully-specified', 'equivalent', 'convertable', 'scaleable', 'flexible']}, 'type'=>'code', 'path'=>'DataElement.stringency', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/dataelement-stringency'}},
  'mapping' => {'type'=>'DataElement::Mapping', 'path'=>'DataElement.mapping', 'min'=>0, 'max'=>Float::INFINITY},
  'element' => {'type'=>'ElementDefinition', 'path'=>'DataElement.element', 'min'=>1, 'max'=>Float::INFINITY}
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Xml

from_xml, #to_xml, valid?, validate

Methods included from Deprecate

#deprecate

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?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #to_reference, #valid?, #validate, #validate_profile

Constructor Details

This class inherits a constructor from FHIR::DSTU2::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FHIR::DSTU2::Model

Instance Attribute Details

#contactObject

0-* [ DataElement::Contact ]



93
94
95
# File 'lib/fhir_dstu2_models/fhir/resources/DataElement.rb', line 93

def contact
  @contact
end

#containedObject

0-* [ Resource ]



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

def contained
  @contained
end

0-1 string



96
97
98
# File 'lib/fhir_dstu2_models/fhir/resources/DataElement.rb', line 96

def copyright
  @copyright
end

#dateObject

0-1 dateTime



94
95
96
# File 'lib/fhir_dstu2_models/fhir/resources/DataElement.rb', line 94

def date
  @date
end

#elementObject

1-* [ ElementDefinition ]



99
100
101
# File 'lib/fhir_dstu2_models/fhir/resources/DataElement.rb', line 99

def element
  @element
end

#experimentalObject

0-1 boolean



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

def experimental
  @experimental
end

#extensionObject

0-* [ Extension ]



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

def extension
  @extension
end

#idObject

0-1 id



78
79
80
# File 'lib/fhir_dstu2_models/fhir/resources/DataElement.rb', line 78

def id
  @id
end

#identifierObject

0-* [ Identifier ]



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

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



80
81
82
# File 'lib/fhir_dstu2_models/fhir/resources/DataElement.rb', line 80

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



81
82
83
# File 'lib/fhir_dstu2_models/fhir/resources/DataElement.rb', line 81

def language
  @language
end

#mappingObject

0-* [ DataElement::Mapping ]



98
99
100
# File 'lib/fhir_dstu2_models/fhir/resources/DataElement.rb', line 98

def mapping
  @mapping
end

#metaObject

0-1 Meta



79
80
81
# File 'lib/fhir_dstu2_models/fhir/resources/DataElement.rb', line 79

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



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

def modifierExtension
  @modifierExtension
end

#nameObject

0-1 string



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

def name
  @name
end

#publisherObject

0-1 string



92
93
94
# File 'lib/fhir_dstu2_models/fhir/resources/DataElement.rb', line 92

def publisher
  @publisher
end

#statusObject

1-1 code



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

def status
  @status
end

#stringencyObject

0-1 code



97
98
99
# File 'lib/fhir_dstu2_models/fhir/resources/DataElement.rb', line 97

def stringency
  @stringency
end

#textObject

0-1 Narrative



82
83
84
# File 'lib/fhir_dstu2_models/fhir/resources/DataElement.rb', line 82

def text
  @text
end

#urlObject

0-1 uri



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

def url
  @url
end

#useContextObject

0-* [ CodeableConcept ]



95
96
97
# File 'lib/fhir_dstu2_models/fhir/resources/DataElement.rb', line 95

def useContext
  @useContext
end

#versionObject

0-1 string



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

def version
  @version
end

Instance Method Details

#resourceTypeObject



101
102
103
# File 'lib/fhir_dstu2_models/fhir/resources/DataElement.rb', line 101

def resourceType
  'DataElement'
end