Class: FHIR::Contract::ContentDefinition

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

Constant Summary collapse

METADATA =
{
  'id' => {'type'=>'string', 'path'=>'ContentDefinition.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'ContentDefinition.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'ContentDefinition.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'type' => {'valid_codes'=>{'http://hl7.org/fhir/contract-definition-type'=>['temp']}, 'type'=>'CodeableConcept', 'path'=>'ContentDefinition.type', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/contract-definition-type'}},
  'subType' => {'valid_codes'=>{'http://hl7.org/fhir/contract-definition-subtype'=>['temp']}, 'type'=>'CodeableConcept', 'path'=>'ContentDefinition.subType', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/contract-definition-subtype'}},
  'publisher' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'ContentDefinition.publisher', 'min'=>0, 'max'=>1},
  'publicationDate' => {'type'=>'dateTime', 'path'=>'ContentDefinition.publicationDate', 'min'=>0, 'max'=>1},
  'publicationStatus' => {'valid_codes'=>{'http://hl7.org/fhir/contract-publicationstatus'=>['amended', 'appended', 'cancelled', 'disputed', 'entered-in-error', 'executable', 'executed', 'negotiable', 'offered', 'policy', 'rejected', 'renewed', 'revoked', 'resolved', 'terminated']}, 'type'=>'code', 'path'=>'ContentDefinition.publicationStatus', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/contract-publicationstatus|4.0.0'}},
  'copyright' => {'type'=>'markdown', 'path'=>'ContentDefinition.copyright', 'min'=>0, 'max'=>1}
}

Instance Attribute Summary collapse

Method Summary

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

0-1 markdown



83
84
85
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 83

def copyright
  @copyright
end

#extensionObject

0-* [ Extension ]



76
77
78
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 76

def extension
  @extension
end

#idObject

0-1 string



75
76
77
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 75

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



77
78
79
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 77

def modifierExtension
  @modifierExtension
end

#publicationDateObject

0-1 dateTime



81
82
83
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 81

def publicationDate
  @publicationDate
end

#publicationStatusObject

1-1 code



82
83
84
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 82

def publicationStatus
  @publicationStatus
end

#publisherObject

0-1 Reference(Practitioner|PractitionerRole|Organization)



80
81
82
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 80

def publisher
  @publisher
end

#subTypeObject

0-1 CodeableConcept



79
80
81
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 79

def subType
  @subType
end

#typeObject

1-1 CodeableConcept



78
79
80
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 78

def type
  @type
end