Class: FHIR::TestScript

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

Defined Under Namespace

Classes: Destination, Fixture, Metadata, Origin, Setup, Teardown, Test, Variable

Constant Summary collapse

SEARCH_PARAMS =
['context', 'context-quantity', 'context-type', 'date', 'description', 'identifier', 'jurisdiction', 'name', 'publisher', 'status', 'testscript-capability', 'title', 'url', 'version']
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' => {'valid_codes'=>{'urn:ietf:bcp:47'=>['ar', 'bn', 'cs', 'da', 'de', 'de-AT', 'de-CH', 'de-DE', 'el', 'en', 'en-AU', 'en-CA', 'en-GB', 'en-IN', 'en-NZ', 'en-SG', 'en-US', 'es', 'es-AR', 'es-ES', 'es-UY', 'fi', 'fr', 'fr-BE', 'fr-CH', 'fr-FR', 'fy', 'fy-NL', 'hi', 'hr', 'it', 'it-CH', 'it-IT', 'ja', 'ko', 'nl', 'nl-BE', 'nl-NL', 'no', 'no-NO', 'pa', 'pl', 'pt', 'pt-BR', 'ru', 'ru-RU', 'sr', 'sr-RS', 'sv', 'sv-SE', 'te', 'zh', 'zh-CN', 'zh-HK', 'zh-SG', 'zh-TW']}, 'type'=>'code', 'path'=>'TestScript.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'preferred', 'uri'=>'http://hl7.org/fhir/ValueSet/languages'}},
  '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},
  'identifier' => {'type'=>'Identifier', 'path'=>'TestScript.identifier', 'min'=>0, 'max'=>1},
  'version' => {'type'=>'string', 'path'=>'TestScript.version', 'min'=>0, 'max'=>1},
  'name' => {'type'=>'string', 'path'=>'TestScript.name', 'min'=>1, 'max'=>1},
  'title' => {'type'=>'string', 'path'=>'TestScript.title', 'min'=>0, 'max'=>1},
  'status' => {'valid_codes'=>{'http://hl7.org/fhir/publication-status'=>['draft', 'active', 'retired', 'unknown']}, 'type'=>'code', 'path'=>'TestScript.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/publication-status|4.0.0'}},
  'experimental' => {'type'=>'boolean', 'path'=>'TestScript.experimental', 'min'=>0, 'max'=>1},
  'date' => {'type'=>'dateTime', 'path'=>'TestScript.date', 'min'=>0, 'max'=>1},
  'publisher' => {'type'=>'string', 'path'=>'TestScript.publisher', 'min'=>0, 'max'=>1},
  'contact' => {'type'=>'ContactDetail', 'path'=>'TestScript.contact', 'min'=>0, 'max'=>Float::INFINITY},
  'description' => {'type'=>'markdown', 'path'=>'TestScript.description', 'min'=>0, 'max'=>1},
  'useContext' => {'type'=>'UsageContext', 'path'=>'TestScript.useContext', 'min'=>0, 'max'=>Float::INFINITY},
  'jurisdiction' => {'type'=>'CodeableConcept', 'path'=>'TestScript.jurisdiction', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/jurisdiction'}},
  'purpose' => {'type'=>'markdown', 'path'=>'TestScript.purpose', 'min'=>0, 'max'=>1},
  'copyright' => {'type'=>'markdown', 'path'=>'TestScript.copyright', 'min'=>0, 'max'=>1},
  'origin' => {'type'=>'TestScript::Origin', 'path'=>'TestScript.origin', 'min'=>0, 'max'=>Float::INFINITY},
  'destination' => {'type'=>'TestScript::Destination', 'path'=>'TestScript.destination', 'min'=>0, 'max'=>Float::INFINITY},
  'metadata' => {'type'=>'TestScript::Metadata', 'path'=>'TestScript.metadata', 'min'=>0, 'max'=>1},
  'fixture' => {'type'=>'TestScript::Fixture', 'path'=>'TestScript.fixture', 'min'=>0, 'max'=>Float::INFINITY},
  'profile' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], '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, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #to_reference, #valid?, #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

#contactObject

0-* [ ContactDetail ]



470
471
472
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 470

def contact
  @contact
end

#containedObject

0-* [ Resource ]



458
459
460
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 458

def contained
  @contained
end

0-1 markdown



475
476
477
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 475

def copyright
  @copyright
end

#dateObject

0-1 dateTime



468
469
470
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 468

def date
  @date
end

#descriptionObject

0-1 markdown



471
472
473
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 471

def description
  @description
end

#destinationObject

0-* [ TestScript::Destination ]



477
478
479
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 477

def destination
  @destination
end

#experimentalObject

0-1 boolean



467
468
469
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 467

def experimental
  @experimental
end

#extensionObject

0-* [ Extension ]



459
460
461
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 459

def extension
  @extension
end

#fixtureObject

0-* [ TestScript::Fixture ]



479
480
481
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 479

def fixture
  @fixture
end

#idObject

0-1 id



453
454
455
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 453

def id
  @id
end

#identifierObject

0-1 Identifier



462
463
464
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 462

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



455
456
457
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 455

def implicitRules
  @implicitRules
end

#jurisdictionObject

0-* [ CodeableConcept ]



473
474
475
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 473

def jurisdiction
  @jurisdiction
end

#languageObject

0-1 code



456
457
458
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 456

def language
  @language
end

#metaObject

0-1 Meta



454
455
456
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 454

def meta
  @meta
end

#metadataObject

0-1 TestScript::Metadata



478
479
480
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 478

def 
  @metadata
end

#modifierExtensionObject

0-* [ Extension ]



460
461
462
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 460

def modifierExtension
  @modifierExtension
end

#nameObject

1-1 string



464
465
466
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 464

def name
  @name
end

#originObject

0-* [ TestScript::Origin ]



476
477
478
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 476

def origin
  @origin
end

#profileObject

0-* [ Reference(Resource) ]



480
481
482
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 480

def profile
  @profile
end

#publisherObject

0-1 string



469
470
471
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 469

def publisher
  @publisher
end

#purposeObject

0-1 markdown



474
475
476
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 474

def purpose
  @purpose
end

#setupObject

0-1 TestScript::Setup



482
483
484
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 482

def setup
  @setup
end

#statusObject

1-1 code



466
467
468
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 466

def status
  @status
end

#teardownObject

0-1 TestScript::Teardown



484
485
486
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 484

def teardown
  @teardown
end

#testObject

0-* [ TestScript::Test ]



483
484
485
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 483

def test
  @test
end

#textObject

0-1 Narrative



457
458
459
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 457

def text
  @text
end

#titleObject

0-1 string



465
466
467
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 465

def title
  @title
end

#urlObject

1-1 uri



461
462
463
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 461

def url
  @url
end

#useContextObject

0-* [ UsageContext ]



472
473
474
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 472

def useContext
  @useContext
end

#variableObject

0-* [ TestScript::Variable ]



481
482
483
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 481

def variable
  @variable
end

#versionObject

0-1 string



463
464
465
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 463

def version
  @version
end

Instance Method Details

#resourceTypeObject



486
487
488
# File 'lib/fhir_models/fhir/resources/TestScript.rb', line 486

def resourceType
  'TestScript'
end