Class: FHIR::TestScript
- Defined in:
- lib/fhir/resources/TestScript.rb
Defined Under Namespace
Classes: Contact, Destination, Fixture, Metadata, Origin, Rule, Ruleset, Setup, Teardown, Test, Variable
Constant Summary collapse
- SEARCH_PARAMS =
["date", "description", "identifier", "name", "publisher", "testscript-capability", "url", "use-context"]
- 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'=>'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}, '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', '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'=>'markdown', 'path'=>'TestScript.description', 'min'=>0, 'max'=>1}, 'useContext' => {'valid_codes'=>{'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'], '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'=>['004', '008', '012', '016', '020', '024', '028', '031', '032', '036', '040', '044', '048', '050', '051', '052', '056', '060', '064', '068', '070', '072', '076', '084', '090', '092', '096', '100', '104', '108', '112', '116', '120', '124', '132', '136', '140', '144', '148', '152', '156', '170', '174', '175', '178', '180', '184', '188', '191', '192', '196', '203', '204', '208', '212', '214', '218', '222', '226', '231', '232', '233', '234', '238', '242', '246', '248', '250', '254', '258', '262', '266', '268', '270', '275', '276', '288', '292', '296', '300', '304', '308', '312', '316', '320', '324', '328', '332', '336', '340', '344', '348', '352', '356', '360', '364', '368', '372', '376', '380', '384', '388', '392', '398', '400', '404', '408', '410', '414', '417', '418', '422', '426', '428', '430', '434', '438', '440', '442', '446', '450', '454', '458', '462', '466', '470', '474', '478', '480', '484', '492', '496', '498', '499', '500', '504', '508', '512', '516', '520', '524', '528', '531', '533', '534', '535', '540', '548', '554', '558', '562', '566', '570', '574', '578', '580', '583', '584', '585', '586', '591', '598', '600', '604', '608', '612', '616', '620', '624', '626', '630', '634', '638', '642', '643', '646', '652', '654', '659', '660', '662', '663', '666', '670', '674', '678', '680', '682', '686', '688', '690', '694', '702', '703', '704', '705', '706', '710', '716', '724', '728', '729', '732', '740', '744', '748', '752', '756', '760', '762', '764', '768', '772', '776', '780', '784', '788', '792', '795', '796', '798', '800', '804', '807', '818', '826', '830', '831', '832', '833', '834', '840', '850', '854', '858', '860', '862', '876', '882', '887', '894']}, 'type'=>'CodeableConcept', 'path'=>'TestScript.useContext', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/use-context'}}, 'requirements' => {'type'=>'markdown', 'path'=>'TestScript.requirements', 'min'=>0, 'max'=>1}, 'copyright' => {'type'=>'string', '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
-
#contact ⇒ Object
0-* [ TestScript::Contact ].
-
#contained ⇒ Object
0-* [ Resource ].
-
#copyright ⇒ Object
0-1 string.
-
#date ⇒ Object
0-1 dateTime.
-
#description ⇒ Object
0-1 markdown.
-
#destination ⇒ Object
0-* [ TestScript::Destination ].
-
#experimental ⇒ Object
0-1 boolean.
-
#extension ⇒ Object
0-* [ Extension ].
-
#fixture ⇒ Object
0-* [ TestScript::Fixture ].
-
#id ⇒ Object
0-1 id.
-
#identifier ⇒ Object
0-1 Identifier.
-
#implicitRules ⇒ Object
0-1 uri.
-
#language ⇒ Object
0-1 code.
-
#meta ⇒ Object
0-1 Meta.
-
#metadata ⇒ Object
0-1 TestScript::Metadata.
-
#modifierExtension ⇒ Object
0-* [ Extension ].
-
#name ⇒ Object
1-1 string.
-
#origin ⇒ Object
0-* [ TestScript::Origin ].
-
#profile ⇒ Object
0-* [ Reference(Resource) ].
-
#publisher ⇒ Object
0-1 string.
-
#requirements ⇒ Object
0-1 markdown.
-
#rule ⇒ Object
0-* [ TestScript::Rule ].
-
#ruleset ⇒ Object
0-* [ TestScript::Ruleset ].
-
#setup ⇒ Object
0-1 TestScript::Setup.
-
#status ⇒ Object
1-1 code.
-
#teardown ⇒ Object
0-1 TestScript::Teardown.
-
#test ⇒ Object
0-* [ TestScript::Test ].
-
#text ⇒ Object
0-1 Narrative.
-
#url ⇒ Object
1-1 uri.
-
#useContext ⇒ Object
0-* [ CodeableConcept ].
-
#variable ⇒ Object
0-* [ TestScript::Variable ].
-
#version ⇒ Object
0-1 string.
Instance Method Summary collapse
Methods included from Xml
from_xml, is_valid?, #to_xml, validate
Methods included from Json
Methods included from Hashable
Methods inherited from Model
#attribute_mismatch, #compare_attribute, #equals?, #initialize, #is_valid?, #method_missing, #mismatch, #to_reference, #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
#contact ⇒ Object
0-* [ TestScript::Contact ]
676 677 678 |
# File 'lib/fhir/resources/TestScript.rb', line 676 def contact @contact end |
#contained ⇒ Object
0-* [ Resource ]
666 667 668 |
# File 'lib/fhir/resources/TestScript.rb', line 666 def contained @contained end |
#copyright ⇒ Object
0-1 string
681 682 683 |
# File 'lib/fhir/resources/TestScript.rb', line 681 def copyright @copyright end |
#date ⇒ Object
0-1 dateTime
677 678 679 |
# File 'lib/fhir/resources/TestScript.rb', line 677 def date @date end |
#description ⇒ Object
0-1 markdown
678 679 680 |
# File 'lib/fhir/resources/TestScript.rb', line 678 def description @description end |
#destination ⇒ Object
0-* [ TestScript::Destination ]
683 684 685 |
# File 'lib/fhir/resources/TestScript.rb', line 683 def destination @destination end |
#experimental ⇒ Object
0-1 boolean
674 675 676 |
# File 'lib/fhir/resources/TestScript.rb', line 674 def experimental @experimental end |
#extension ⇒ Object
0-* [ Extension ]
667 668 669 |
# File 'lib/fhir/resources/TestScript.rb', line 667 def extension @extension end |
#fixture ⇒ Object
0-* [ TestScript::Fixture ]
685 686 687 |
# File 'lib/fhir/resources/TestScript.rb', line 685 def fixture @fixture end |
#id ⇒ Object
0-1 id
661 662 663 |
# File 'lib/fhir/resources/TestScript.rb', line 661 def id @id end |
#identifier ⇒ Object
0-1 Identifier
673 674 675 |
# File 'lib/fhir/resources/TestScript.rb', line 673 def identifier @identifier end |
#implicitRules ⇒ Object
0-1 uri
663 664 665 |
# File 'lib/fhir/resources/TestScript.rb', line 663 def implicitRules @implicitRules end |
#language ⇒ Object
0-1 code
664 665 666 |
# File 'lib/fhir/resources/TestScript.rb', line 664 def language @language end |
#meta ⇒ Object
0-1 Meta
662 663 664 |
# File 'lib/fhir/resources/TestScript.rb', line 662 def @meta end |
#metadata ⇒ Object
0-1 TestScript::Metadata
684 685 686 |
# File 'lib/fhir/resources/TestScript.rb', line 684 def @metadata end |
#modifierExtension ⇒ Object
0-* [ Extension ]
668 669 670 |
# File 'lib/fhir/resources/TestScript.rb', line 668 def modifierExtension @modifierExtension end |
#name ⇒ Object
1-1 string
671 672 673 |
# File 'lib/fhir/resources/TestScript.rb', line 671 def name @name end |
#origin ⇒ Object
0-* [ TestScript::Origin ]
682 683 684 |
# File 'lib/fhir/resources/TestScript.rb', line 682 def origin @origin end |
#profile ⇒ Object
0-* [ Reference(Resource) ]
686 687 688 |
# File 'lib/fhir/resources/TestScript.rb', line 686 def profile @profile end |
#publisher ⇒ Object
0-1 string
675 676 677 |
# File 'lib/fhir/resources/TestScript.rb', line 675 def publisher @publisher end |
#requirements ⇒ Object
0-1 markdown
680 681 682 |
# File 'lib/fhir/resources/TestScript.rb', line 680 def requirements @requirements end |
#rule ⇒ Object
0-* [ TestScript::Rule ]
688 689 690 |
# File 'lib/fhir/resources/TestScript.rb', line 688 def rule @rule end |
#ruleset ⇒ Object
0-* [ TestScript::Ruleset ]
689 690 691 |
# File 'lib/fhir/resources/TestScript.rb', line 689 def ruleset @ruleset end |
#setup ⇒ Object
0-1 TestScript::Setup
690 691 692 |
# File 'lib/fhir/resources/TestScript.rb', line 690 def setup @setup end |
#status ⇒ Object
1-1 code
672 673 674 |
# File 'lib/fhir/resources/TestScript.rb', line 672 def status @status end |
#teardown ⇒ Object
0-1 TestScript::Teardown
692 693 694 |
# File 'lib/fhir/resources/TestScript.rb', line 692 def teardown @teardown end |
#test ⇒ Object
0-* [ TestScript::Test ]
691 692 693 |
# File 'lib/fhir/resources/TestScript.rb', line 691 def test @test end |
#text ⇒ Object
0-1 Narrative
665 666 667 |
# File 'lib/fhir/resources/TestScript.rb', line 665 def text @text end |
#url ⇒ Object
1-1 uri
669 670 671 |
# File 'lib/fhir/resources/TestScript.rb', line 669 def url @url end |
#useContext ⇒ Object
0-* [ CodeableConcept ]
679 680 681 |
# File 'lib/fhir/resources/TestScript.rb', line 679 def useContext @useContext end |
#variable ⇒ Object
0-* [ TestScript::Variable ]
687 688 689 |
# File 'lib/fhir/resources/TestScript.rb', line 687 def variable @variable end |
#version ⇒ Object
0-1 string
670 671 672 |
# File 'lib/fhir/resources/TestScript.rb', line 670 def version @version end |
Instance Method Details
#resourceType ⇒ Object
694 695 696 |
# File 'lib/fhir/resources/TestScript.rb', line 694 def resourceType 'TestScript' end |