Class: FHIR::DSTU2::ValueSet

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

Defined Under Namespace

Classes: CodeSystem, Compose, Contact, Expansion

Constant Summary collapse

SEARCH_PARAMS =
['code', 'context', 'date', 'description', 'expansion', 'identifier', 'name', 'publisher', 'reference', 'status', 'system', 'url', 'version']
METADATA =
{
  'id' => { 'type' => 'id', 'path' => 'ValueSet.id', 'min' => 0, 'max' => 1 },
  'meta' => { 'type' => 'Meta', 'path' => 'ValueSet.meta', 'min' => 0, 'max' => 1 },
  'implicitRules' => { 'type' => 'uri', 'path' => 'ValueSet.implicitRules', 'min' => 0, 'max' => 1 },
  'language' => { 'type' => 'code', 'path' => 'ValueSet.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
  'text' => { 'type' => 'Narrative', 'path' => 'ValueSet.text', 'min' => 0, 'max' => 1 },
  'contained' => { 'type' => 'Resource', 'path' => 'ValueSet.contained', 'min' => 0, 'max' => Float::INFINITY },
  'extension' => { 'type' => 'Extension', 'path' => 'ValueSet.extension', 'min' => 0, 'max' => Float::INFINITY },
  'modifierExtension' => { 'type' => 'Extension', 'path' => 'ValueSet.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
  'url' => { 'type' => 'uri', 'path' => 'ValueSet.url', 'min' => 0, 'max' => 1 },
  'identifier' => { 'type' => 'Identifier', 'path' => 'ValueSet.identifier', 'min' => 0, 'max' => 1 },
  'version' => { 'type' => 'string', 'path' => 'ValueSet.version', 'min' => 0, 'max' => 1 },
  'name' => { 'type' => 'string', 'path' => 'ValueSet.name', 'min' => 0, 'max' => 1 },
  'status' => { 'valid_codes' => { 'http://hl7.org/fhir/conformance-resource-status' => ['draft', 'active', 'retired'] }, 'type' => 'code', 'path' => 'ValueSet.status', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/conformance-resource-status' } },
  'experimental' => { 'type' => 'boolean', 'path' => 'ValueSet.experimental', 'min' => 0, 'max' => 1 },
  'publisher' => { 'type' => 'string', 'path' => 'ValueSet.publisher', 'min' => 0, 'max' => 1 },
  'contact' => { 'type' => 'ValueSet::Contact', 'path' => 'ValueSet.contact', 'min' => 0, 'max' => Float::INFINITY },
  'date' => { 'type' => 'dateTime', 'path' => 'ValueSet.date', 'min' => 0, 'max' => 1 },
  'lockedDate' => { 'type' => 'date', 'path' => 'ValueSet.lockedDate', 'min' => 0, 'max' => 1 },
  'description' => { 'type' => 'string', 'path' => 'ValueSet.description', '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' => 'ValueSet.useContext', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'extensible', 'uri' => 'http://hl7.org/fhir/ValueSet/use-context' } },
  'immutable' => { 'type' => 'boolean', 'path' => 'ValueSet.immutable', 'min' => 0, 'max' => 1 },
  'requirements' => { 'type' => 'string', 'path' => 'ValueSet.requirements', 'min' => 0, 'max' => 1 },
  'copyright' => { 'type' => 'string', 'path' => 'ValueSet.copyright', 'min' => 0, 'max' => 1 },
  'extensible' => { 'type' => 'boolean', 'path' => 'ValueSet.extensible', 'min' => 0, 'max' => 1 },
  'codeSystem' => { 'type' => 'ValueSet::CodeSystem', 'path' => 'ValueSet.codeSystem', 'min' => 0, 'max' => 1 },
  'compose' => { 'type' => 'ValueSet::Compose', 'path' => 'ValueSet.compose', 'min' => 0, 'max' => 1 },
  'expansion' => { 'type' => 'ValueSet::Expansion', 'path' => 'ValueSet.expansion', 'min' => 0, 'max' => 1 }
}

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, #each_element, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #respond_to_missing?, #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

#codeSystemObject

0-1 ValueSet::CodeSystem



336
337
338
# File 'lib/fhir_dstu2_models/fhir/resources/ValueSet.rb', line 336

def codeSystem
  @codeSystem
end

#composeObject

0-1 ValueSet::Compose



337
338
339
# File 'lib/fhir_dstu2_models/fhir/resources/ValueSet.rb', line 337

def compose
  @compose
end

#contactObject

0-* [ ValueSet::Contact ]



327
328
329
# File 'lib/fhir_dstu2_models/fhir/resources/ValueSet.rb', line 327

def contact
  @contact
end

#containedObject

0-* [ Resource ]



317
318
319
# File 'lib/fhir_dstu2_models/fhir/resources/ValueSet.rb', line 317

def contained
  @contained
end

0-1 string



334
335
336
# File 'lib/fhir_dstu2_models/fhir/resources/ValueSet.rb', line 334

def copyright
  @copyright
end

#dateObject

0-1 dateTime



328
329
330
# File 'lib/fhir_dstu2_models/fhir/resources/ValueSet.rb', line 328

def date
  @date
end

#descriptionObject

0-1 string



330
331
332
# File 'lib/fhir_dstu2_models/fhir/resources/ValueSet.rb', line 330

def description
  @description
end

#expansionObject

0-1 ValueSet::Expansion



338
339
340
# File 'lib/fhir_dstu2_models/fhir/resources/ValueSet.rb', line 338

def expansion
  @expansion
end

#experimentalObject

0-1 boolean



325
326
327
# File 'lib/fhir_dstu2_models/fhir/resources/ValueSet.rb', line 325

def experimental
  @experimental
end

#extensibleObject

0-1 boolean



335
336
337
# File 'lib/fhir_dstu2_models/fhir/resources/ValueSet.rb', line 335

def extensible
  @extensible
end

#extensionObject

0-* [ Extension ]



318
319
320
# File 'lib/fhir_dstu2_models/fhir/resources/ValueSet.rb', line 318

def extension
  @extension
end

#idObject

0-1 id



312
313
314
# File 'lib/fhir_dstu2_models/fhir/resources/ValueSet.rb', line 312

def id
  @id
end

#identifierObject

0-1 Identifier



321
322
323
# File 'lib/fhir_dstu2_models/fhir/resources/ValueSet.rb', line 321

def identifier
  @identifier
end

#immutableObject

0-1 boolean



332
333
334
# File 'lib/fhir_dstu2_models/fhir/resources/ValueSet.rb', line 332

def immutable
  @immutable
end

#implicitRulesObject

0-1 uri



314
315
316
# File 'lib/fhir_dstu2_models/fhir/resources/ValueSet.rb', line 314

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



315
316
317
# File 'lib/fhir_dstu2_models/fhir/resources/ValueSet.rb', line 315

def language
  @language
end

#lockedDateObject

0-1 date



329
330
331
# File 'lib/fhir_dstu2_models/fhir/resources/ValueSet.rb', line 329

def lockedDate
  @lockedDate
end

#metaObject

0-1 Meta



313
314
315
# File 'lib/fhir_dstu2_models/fhir/resources/ValueSet.rb', line 313

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



319
320
321
# File 'lib/fhir_dstu2_models/fhir/resources/ValueSet.rb', line 319

def modifierExtension
  @modifierExtension
end

#nameObject

0-1 string



323
324
325
# File 'lib/fhir_dstu2_models/fhir/resources/ValueSet.rb', line 323

def name
  @name
end

#publisherObject

0-1 string



326
327
328
# File 'lib/fhir_dstu2_models/fhir/resources/ValueSet.rb', line 326

def publisher
  @publisher
end

#requirementsObject

0-1 string



333
334
335
# File 'lib/fhir_dstu2_models/fhir/resources/ValueSet.rb', line 333

def requirements
  @requirements
end

#statusObject

1-1 code



324
325
326
# File 'lib/fhir_dstu2_models/fhir/resources/ValueSet.rb', line 324

def status
  @status
end

#textObject

0-1 Narrative



316
317
318
# File 'lib/fhir_dstu2_models/fhir/resources/ValueSet.rb', line 316

def text
  @text
end

#urlObject

0-1 uri



320
321
322
# File 'lib/fhir_dstu2_models/fhir/resources/ValueSet.rb', line 320

def url
  @url
end

#useContextObject

0-* [ CodeableConcept ]



331
332
333
# File 'lib/fhir_dstu2_models/fhir/resources/ValueSet.rb', line 331

def useContext
  @useContext
end

#versionObject

0-1 string



322
323
324
# File 'lib/fhir_dstu2_models/fhir/resources/ValueSet.rb', line 322

def version
  @version
end

Instance Method Details

#resourceTypeObject



340
341
342
# File 'lib/fhir_dstu2_models/fhir/resources/ValueSet.rb', line 340

def resourceType
  'ValueSet'
end