Class: FHIR::DSTU2::Conformance

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

Defined Under Namespace

Classes: Contact, Document, Implementation, Messaging, Rest, Software

Constant Summary collapse

SEARCH_PARAMS =
['date', 'description', 'event', 'fhirversion', 'format', 'mode', 'name', 'profile', 'publisher', 'resource', 'security', 'software', 'status', 'supported-profile', 'url', 'version']
METADATA =
{
  'id' => {'type'=>'id', 'path'=>'Conformance.id', 'min'=>0, 'max'=>1},
  'meta' => {'type'=>'Meta', 'path'=>'Conformance.meta', 'min'=>0, 'max'=>1},
  'implicitRules' => {'type'=>'uri', 'path'=>'Conformance.implicitRules', 'min'=>0, 'max'=>1},
  'language' => {'type'=>'code', 'path'=>'Conformance.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
  'text' => {'type'=>'Narrative', 'path'=>'Conformance.text', 'min'=>0, 'max'=>1},
  'contained' => {'type'=>'Resource', 'path'=>'Conformance.contained', 'min'=>0, 'max'=>Float::INFINITY},
  'extension' => {'type'=>'Extension', 'path'=>'Conformance.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Conformance.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'url' => {'type'=>'uri', 'path'=>'Conformance.url', 'min'=>0, 'max'=>1},
  'version' => {'type'=>'string', 'path'=>'Conformance.version', 'min'=>0, 'max'=>1},
  'name' => {'type'=>'string', 'path'=>'Conformance.name', 'min'=>0, 'max'=>1},
  'status' => {'valid_codes'=>{'http://hl7.org/fhir/conformance-resource-status'=>['draft', 'active', 'retired']}, 'type'=>'code', 'path'=>'Conformance.status', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/conformance-resource-status'}},
  'experimental' => {'type'=>'boolean', 'path'=>'Conformance.experimental', 'min'=>0, 'max'=>1},
  'publisher' => {'type'=>'string', 'path'=>'Conformance.publisher', 'min'=>0, 'max'=>1},
  'contact' => {'type'=>'Conformance::Contact', 'path'=>'Conformance.contact', 'min'=>0, 'max'=>Float::INFINITY},
  'date' => {'type'=>'dateTime', 'path'=>'Conformance.date', 'min'=>1, 'max'=>1},
  'description' => {'type'=>'string', 'path'=>'Conformance.description', 'min'=>0, 'max'=>1},
  'requirements' => {'type'=>'string', 'path'=>'Conformance.requirements', 'min'=>0, 'max'=>1},
  'copyright' => {'type'=>'string', 'path'=>'Conformance.copyright', 'min'=>0, 'max'=>1},
  'kind' => {'valid_codes'=>{'http://hl7.org/fhir/conformance-statement-kind'=>['instance', 'capability', 'requirements']}, 'type'=>'code', 'path'=>'Conformance.kind', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/conformance-statement-kind'}},
  'software' => {'type'=>'Conformance::Software', 'path'=>'Conformance.software', 'min'=>0, 'max'=>1},
  'implementation' => {'type'=>'Conformance::Implementation', 'path'=>'Conformance.implementation', 'min'=>0, 'max'=>1},
  'fhirVersion' => {'type'=>'id', 'path'=>'Conformance.fhirVersion', 'min'=>1, 'max'=>1},
  'acceptUnknown' => {'valid_codes'=>{'http://hl7.org/fhir/unknown-content-code'=>['no', 'extensions', 'elements', 'both']}, 'type'=>'code', 'path'=>'Conformance.acceptUnknown', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/unknown-content-code'}},
  'format' => {'type'=>'code', 'path'=>'Conformance.format', 'min'=>1, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'required', 'uri'=>'http://www.rfc-editor.org/bcp/bcp13.txt'}},
  'profile' => {'type'=>'Reference', 'path'=>'Conformance.profile', 'min'=>0, 'max'=>Float::INFINITY},
  'rest' => {'type'=>'Conformance::Rest', 'path'=>'Conformance.rest', 'min'=>0, 'max'=>Float::INFINITY},
  'messaging' => {'type'=>'Conformance::Messaging', 'path'=>'Conformance.messaging', 'min'=>0, 'max'=>Float::INFINITY},
  'document' => {'type'=>'Conformance::Document', 'path'=>'Conformance.document', 'min'=>0, 'max'=>Float::INFINITY}
}

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::DSTU2::Model

Dynamic Method Handling

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

Instance Attribute Details

#acceptUnknownObject

1-1 code



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

def acceptUnknown
  @acceptUnknown
end

#contactObject

0-* [ Conformance::Contact ]



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

def contact
  @contact
end

#containedObject

0-* [ Resource ]



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

def contained
  @contained
end

0-1 string



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

def copyright
  @copyright
end

#dateObject

1-1 dateTime



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

def date
  @date
end

#descriptionObject

0-1 string



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

def description
  @description
end

#documentObject

0-* [ Conformance::Document ]



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

def document
  @document
end

#experimentalObject

0-1 boolean



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

def experimental
  @experimental
end

#extensionObject

0-* [ Extension ]



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

def extension
  @extension
end

#fhirVersionObject

1-1 id



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

def fhirVersion
  @fhirVersion
end

#formatObject

1-* [ code ]



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

def format
  @format
end

#idObject

0-1 id



407
408
409
# File 'lib/fhir_dstu2_models/fhir/resources/Conformance.rb', line 407

def id
  @id
end

#implementationObject

0-1 Conformance::Implementation



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

def implementation
  @implementation
end

#implicitRulesObject

0-1 uri



409
410
411
# File 'lib/fhir_dstu2_models/fhir/resources/Conformance.rb', line 409

def implicitRules
  @implicitRules
end

#kindObject

1-1 code



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

def kind
  @kind
end

#languageObject

0-1 code



410
411
412
# File 'lib/fhir_dstu2_models/fhir/resources/Conformance.rb', line 410

def language
  @language
end

#messagingObject

0-* [ Conformance::Messaging ]



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

def messaging
  @messaging
end

#metaObject

0-1 Meta



408
409
410
# File 'lib/fhir_dstu2_models/fhir/resources/Conformance.rb', line 408

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



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

def modifierExtension
  @modifierExtension
end

#nameObject

0-1 string



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

def name
  @name
end

#profileObject

0-* [ Reference() ]



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

def profile
  @profile
end

#publisherObject

0-1 string



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

def publisher
  @publisher
end

#requirementsObject

0-1 string



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

def requirements
  @requirements
end

#restObject

0-* [ Conformance::Rest ]



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

def rest
  @rest
end

#softwareObject

0-1 Conformance::Software



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

def software
  @software
end

#statusObject

0-1 code



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

def status
  @status
end

#textObject

0-1 Narrative



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

def text
  @text
end

#urlObject

0-1 uri



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

def url
  @url
end

#versionObject

0-1 string



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

def version
  @version
end

Instance Method Details

#resourceTypeObject



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

def resourceType
  'Conformance'
end