Class: FHIR::STU3::TestScript

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

Defined Under Namespace

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

Constant Summary collapse

SEARCH_PARAMS =
['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', 'pt', 'pt-BR', 'ru', 'ru-RU', 'sr', 'sr-SP', 'sv', 'sv-SE', 'te', 'zh', 'zh-CN', 'zh-HK', 'zh-SG', 'zh-TW']}, 'type'=>'code', 'path'=>'TestScript.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', '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'}},
  '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' => {'valid_codes'=>{'urn:iso:std:iso:3166'=>['AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AN', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AW', 'AX', 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BS', 'BT', 'BU', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CO', 'CR', 'CS', 'CT', 'CU', 'CV', 'CW', 'CX', 'CY', 'CZ', 'DD', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DY', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ES', 'ET', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FQ', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'HV', 'ID', 'IE', 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'JT', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MI', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NC', 'NE', 'NF', 'NG', 'NH', 'NI', 'NL', 'NO', 'NP', 'NQ', 'NR', 'NT', 'NU', 'NZ', 'OM', 'PA', 'PC', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PU', 'PW', 'PY', 'PZ', 'QA', 'RE', 'RH', 'RO', 'RS', 'RU', 'RW', 'SA', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SU', 'SV', 'SX', 'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TP', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UG', 'UM', 'US', 'UY', 'UZ', 'VA', 'VC', 'VD', 'VE', 'VG', 'VI', 'VN', 'VU', 'WF', 'WK', 'WS', 'YD', 'YE', 'YT', 'YU', 'ZA', 'ZM', 'ZR', 'ZW'], 'http://unstats.un.org/unsd/methods/m49/m49.htm'=>['001', '002', '014', '017', '015', '018', '011', '019', '419', '029', '013', '005', '021', '142', '143', '030', '034', '035', '145', '150', '151', '154', '039', '155', '009', '053', '054', '057', '061'], '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'], nil=>[]}, '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},
  'rule' => {'type'=>'TestScript::Rule', 'path'=>'TestScript.rule', 'min'=>0, 'max'=>Float::INFINITY},
  'ruleset' => {'type'=>'TestScript::Ruleset', 'path'=>'TestScript.ruleset', '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?, #to_reference, #valid?, #validate, #validate_profile

Constructor Details

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

Dynamic Method Handling

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

Instance Attribute Details

#contactObject

0-* [ ContactDetail ]



675
676
677
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 675

def contact
  @contact
end

#containedObject

0-* [ Resource ]



663
664
665
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 663

def contained
  @contained
end

0-1 markdown



680
681
682
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 680

def copyright
  @copyright
end

#dateObject

0-1 dateTime



673
674
675
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 673

def date
  @date
end

#descriptionObject

0-1 markdown



676
677
678
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 676

def description
  @description
end

#destinationObject

0-* [ TestScript::Destination ]



682
683
684
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 682

def destination
  @destination
end

#experimentalObject

0-1 boolean



672
673
674
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 672

def experimental
  @experimental
end

#extensionObject

0-* [ Extension ]



664
665
666
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 664

def extension
  @extension
end

#fixtureObject

0-* [ TestScript::Fixture ]



684
685
686
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 684

def fixture
  @fixture
end

#idObject

0-1 id



658
659
660
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 658

def id
  @id
end

#identifierObject

0-1 Identifier



667
668
669
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 667

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



660
661
662
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 660

def implicitRules
  @implicitRules
end

#jurisdictionObject

0-* [ CodeableConcept ]



678
679
680
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 678

def jurisdiction
  @jurisdiction
end

#languageObject

0-1 code



661
662
663
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 661

def language
  @language
end

#metaObject

0-1 Meta



659
660
661
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 659

def meta
  @meta
end

#metadataObject

0-1 TestScript::Metadata



683
684
685
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 683

def 
  @metadata
end

#modifierExtensionObject

0-* [ Extension ]



665
666
667
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 665

def modifierExtension
  @modifierExtension
end

#nameObject

1-1 string



669
670
671
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 669

def name
  @name
end

#originObject

0-* [ TestScript::Origin ]



681
682
683
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 681

def origin
  @origin
end

#profileObject

0-* [ Reference(Resource) ]



685
686
687
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 685

def profile
  @profile
end

#publisherObject

0-1 string



674
675
676
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 674

def publisher
  @publisher
end

#purposeObject

0-1 markdown



679
680
681
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 679

def purpose
  @purpose
end

#ruleObject

0-* [ TestScript::Rule ]



687
688
689
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 687

def rule
  @rule
end

#rulesetObject

0-* [ TestScript::Ruleset ]



688
689
690
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 688

def ruleset
  @ruleset
end

#setupObject

0-1 TestScript::Setup



689
690
691
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 689

def setup
  @setup
end

#statusObject

1-1 code



671
672
673
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 671

def status
  @status
end

#teardownObject

0-1 TestScript::Teardown



691
692
693
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 691

def teardown
  @teardown
end

#testObject

0-* [ TestScript::Test ]



690
691
692
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 690

def test
  @test
end

#textObject

0-1 Narrative



662
663
664
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 662

def text
  @text
end

#titleObject

0-1 string



670
671
672
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 670

def title
  @title
end

#urlObject

1-1 uri



666
667
668
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 666

def url
  @url
end

#useContextObject

0-* [ UsageContext ]



677
678
679
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 677

def useContext
  @useContext
end

#variableObject

0-* [ TestScript::Variable ]



686
687
688
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 686

def variable
  @variable
end

#versionObject

0-1 string



668
669
670
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 668

def version
  @version
end

Instance Method Details

#resourceTypeObject



693
694
695
# File 'lib/fhir_stu3_models/fhir/resources/TestScript.rb', line 693

def resourceType
  'TestScript'
end