Class: FHIR::DSTU2::TestScript

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

Defined Under Namespace

Classes: Contact, Fixture, Metadata, Setup, Teardown, Test, Variable

Constant Summary collapse

SEARCH_PARAMS =
['description', 'identifier', 'name', 'testscript-capability', 'testscript-setup-capability', 'testscript-test-capability', 'url']
METADATA =
{
  'id' => { 'type' => 'id', 'path' => 'TestScript.id', 'min' => 0, 'max' => 1 },
  'meta' => { 'type' => 'Meta', 'path' => 'TestScript.meta', 'min' => 0, 'max' => 1 },
  'implicitRules' => { 'type' => 'uri', 'path' => 'TestScript.implicitRules', 'min' => 0, 'max' => 1 },
  'language' => { 'type' => 'code', 'path' => 'TestScript.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
  'text' => { 'type' => 'Narrative', 'path' => 'TestScript.text', 'min' => 0, 'max' => 1 },
  'contained' => { 'type' => 'Resource', 'path' => 'TestScript.contained', 'min' => 0, 'max' => Float::INFINITY },
  'extension' => { 'type' => 'Extension', 'path' => 'TestScript.extension', 'min' => 0, 'max' => Float::INFINITY },
  'modifierExtension' => { 'type' => 'Extension', 'path' => 'TestScript.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
  'url' => { 'type' => 'uri', 'path' => 'TestScript.url', 'min' => 1, 'max' => 1 },
  'version' => { 'type' => 'string', 'path' => 'TestScript.version', 'min' => 0, 'max' => 1 },
  'name' => { 'type' => 'string', 'path' => 'TestScript.name', 'min' => 1, 'max' => 1 },
  'status' => { 'valid_codes' => { 'http://hl7.org/fhir/conformance-resource-status' => ['draft', 'active', 'retired'] }, 'type' => 'code', 'path' => 'TestScript.status', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/conformance-resource-status' } },
  'identifier' => { 'type' => 'Identifier', 'path' => 'TestScript.identifier', 'min' => 0, 'max' => 1 },
  'experimental' => { 'type' => 'boolean', 'path' => 'TestScript.experimental', 'min' => 0, 'max' => 1 },
  'publisher' => { 'type' => 'string', 'path' => 'TestScript.publisher', 'min' => 0, 'max' => 1 },
  'contact' => { 'type' => 'TestScript::Contact', 'path' => 'TestScript.contact', 'min' => 0, 'max' => Float::INFINITY },
  'date' => { 'type' => 'dateTime', 'path' => 'TestScript.date', 'min' => 0, 'max' => 1 },
  'description' => { 'type' => 'string', 'path' => 'TestScript.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' => 'TestScript.useContext', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'extensible', 'uri' => 'http://hl7.org/fhir/ValueSet/use-context' } },
  'requirements' => { 'type' => 'string', 'path' => 'TestScript.requirements', 'min' => 0, 'max' => 1 },
  'copyright' => { 'type' => 'string', 'path' => 'TestScript.copyright', 'min' => 0, 'max' => 1 },
  'metadata' => { 'type' => 'TestScript::Metadata', 'path' => 'TestScript.metadata', 'min' => 0, 'max' => 1 },
  'multiserver' => { 'type' => 'boolean', 'path' => 'TestScript.multiserver', 'min' => 0, 'max' => 1 },
  'fixture' => { 'type' => 'TestScript::Fixture', 'path' => 'TestScript.fixture', 'min' => 0, 'max' => Float::INFINITY },
  'profile' => { 'type' => 'Reference', 'path' => 'TestScript.profile', 'min' => 0, 'max' => Float::INFINITY },
  'variable' => { 'type' => 'TestScript::Variable', 'path' => 'TestScript.variable', 'min' => 0, 'max' => Float::INFINITY },
  'setup' => { 'type' => 'TestScript::Setup', 'path' => 'TestScript.setup', 'min' => 0, 'max' => 1 },
  'test' => { 'type' => 'TestScript::Test', 'path' => 'TestScript.test', 'min' => 0, 'max' => Float::INFINITY },
  'teardown' => { 'type' => 'TestScript::Teardown', 'path' => 'TestScript.teardown', '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

#contactObject

0-* [ TestScript::Contact ]



426
427
428
# File 'lib/fhir_dstu2_models/fhir/resources/TestScript.rb', line 426

def contact
  @contact
end

#containedObject

0-* [ Resource ]



416
417
418
# File 'lib/fhir_dstu2_models/fhir/resources/TestScript.rb', line 416

def contained
  @contained
end

0-1 string



431
432
433
# File 'lib/fhir_dstu2_models/fhir/resources/TestScript.rb', line 431

def copyright
  @copyright
end

#dateObject

0-1 dateTime



427
428
429
# File 'lib/fhir_dstu2_models/fhir/resources/TestScript.rb', line 427

def date
  @date
end

#descriptionObject

0-1 string



428
429
430
# File 'lib/fhir_dstu2_models/fhir/resources/TestScript.rb', line 428

def description
  @description
end

#experimentalObject

0-1 boolean



424
425
426
# File 'lib/fhir_dstu2_models/fhir/resources/TestScript.rb', line 424

def experimental
  @experimental
end

#extensionObject

0-* [ Extension ]



417
418
419
# File 'lib/fhir_dstu2_models/fhir/resources/TestScript.rb', line 417

def extension
  @extension
end

#fixtureObject

0-* [ TestScript::Fixture ]



434
435
436
# File 'lib/fhir_dstu2_models/fhir/resources/TestScript.rb', line 434

def fixture
  @fixture
end

#idObject

0-1 id



411
412
413
# File 'lib/fhir_dstu2_models/fhir/resources/TestScript.rb', line 411

def id
  @id
end

#identifierObject

0-1 Identifier



423
424
425
# File 'lib/fhir_dstu2_models/fhir/resources/TestScript.rb', line 423

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



413
414
415
# File 'lib/fhir_dstu2_models/fhir/resources/TestScript.rb', line 413

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



414
415
416
# File 'lib/fhir_dstu2_models/fhir/resources/TestScript.rb', line 414

def language
  @language
end

#metaObject

0-1 Meta



412
413
414
# File 'lib/fhir_dstu2_models/fhir/resources/TestScript.rb', line 412

def meta
  @meta
end

#metadataObject

0-1 TestScript::Metadata



432
433
434
# File 'lib/fhir_dstu2_models/fhir/resources/TestScript.rb', line 432

def 
  @metadata
end

#modifierExtensionObject

0-* [ Extension ]



418
419
420
# File 'lib/fhir_dstu2_models/fhir/resources/TestScript.rb', line 418

def modifierExtension
  @modifierExtension
end

#multiserverObject

0-1 boolean



433
434
435
# File 'lib/fhir_dstu2_models/fhir/resources/TestScript.rb', line 433

def multiserver
  @multiserver
end

#nameObject

1-1 string



421
422
423
# File 'lib/fhir_dstu2_models/fhir/resources/TestScript.rb', line 421

def name
  @name
end

#profileObject

0-* [ Reference() ]



435
436
437
# File 'lib/fhir_dstu2_models/fhir/resources/TestScript.rb', line 435

def profile
  @profile
end

#publisherObject

0-1 string



425
426
427
# File 'lib/fhir_dstu2_models/fhir/resources/TestScript.rb', line 425

def publisher
  @publisher
end

#requirementsObject

0-1 string



430
431
432
# File 'lib/fhir_dstu2_models/fhir/resources/TestScript.rb', line 430

def requirements
  @requirements
end

#setupObject

0-1 TestScript::Setup



437
438
439
# File 'lib/fhir_dstu2_models/fhir/resources/TestScript.rb', line 437

def setup
  @setup
end

#statusObject

1-1 code



422
423
424
# File 'lib/fhir_dstu2_models/fhir/resources/TestScript.rb', line 422

def status
  @status
end

#teardownObject

0-1 TestScript::Teardown



439
440
441
# File 'lib/fhir_dstu2_models/fhir/resources/TestScript.rb', line 439

def teardown
  @teardown
end

#testObject

0-* [ TestScript::Test ]



438
439
440
# File 'lib/fhir_dstu2_models/fhir/resources/TestScript.rb', line 438

def test
  @test
end

#textObject

0-1 Narrative



415
416
417
# File 'lib/fhir_dstu2_models/fhir/resources/TestScript.rb', line 415

def text
  @text
end

#urlObject

1-1 uri



419
420
421
# File 'lib/fhir_dstu2_models/fhir/resources/TestScript.rb', line 419

def url
  @url
end

#useContextObject

0-* [ CodeableConcept ]



429
430
431
# File 'lib/fhir_dstu2_models/fhir/resources/TestScript.rb', line 429

def useContext
  @useContext
end

#variableObject

0-* [ TestScript::Variable ]



436
437
438
# File 'lib/fhir_dstu2_models/fhir/resources/TestScript.rb', line 436

def variable
  @variable
end

#versionObject

0-1 string



420
421
422
# File 'lib/fhir_dstu2_models/fhir/resources/TestScript.rb', line 420

def version
  @version
end

Instance Method Details

#resourceTypeObject



441
442
443
# File 'lib/fhir_dstu2_models/fhir/resources/TestScript.rb', line 441

def resourceType
  'TestScript'
end