Class: FHIR::CompartmentDefinition

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

Defined Under Namespace

Classes: Resource

Constant Summary collapse

SEARCH_PARAMS =
['context', 'context-quantity', 'context-type', 'date', 'description', 'name', 'publisher', 'status', 'url', 'version', 'code', 'resource']
METADATA =
{
  'id' => {'type'=>'id', 'path'=>'CompartmentDefinition.id', 'min'=>0, 'max'=>1},
  'meta' => {'type'=>'Meta', 'path'=>'CompartmentDefinition.meta', 'min'=>0, 'max'=>1},
  'implicitRules' => {'type'=>'uri', 'path'=>'CompartmentDefinition.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'=>'CompartmentDefinition.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'preferred', 'uri'=>'http://hl7.org/fhir/ValueSet/languages'}},
  'text' => {'type'=>'Narrative', 'path'=>'CompartmentDefinition.text', 'min'=>0, 'max'=>1},
  'contained' => {'type'=>'Resource', 'path'=>'CompartmentDefinition.contained', 'min'=>0, 'max'=>Float::INFINITY},
  'extension' => {'type'=>'Extension', 'path'=>'CompartmentDefinition.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'CompartmentDefinition.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'url' => {'type'=>'uri', 'path'=>'CompartmentDefinition.url', 'min'=>1, 'max'=>1},
  'version' => {'type'=>'string', 'path'=>'CompartmentDefinition.version', 'min'=>0, 'max'=>1},
  'name' => {'type'=>'string', 'path'=>'CompartmentDefinition.name', 'min'=>1, 'max'=>1},
  'status' => {'valid_codes'=>{'http://hl7.org/fhir/publication-status'=>['draft', 'active', 'retired', 'unknown']}, 'type'=>'code', 'path'=>'CompartmentDefinition.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/publication-status|4.0.0'}},
  'experimental' => {'type'=>'boolean', 'path'=>'CompartmentDefinition.experimental', 'min'=>0, 'max'=>1},
  'date' => {'type'=>'dateTime', 'path'=>'CompartmentDefinition.date', 'min'=>0, 'max'=>1},
  'publisher' => {'type'=>'string', 'path'=>'CompartmentDefinition.publisher', 'min'=>0, 'max'=>1},
  'contact' => {'type'=>'ContactDetail', 'path'=>'CompartmentDefinition.contact', 'min'=>0, 'max'=>Float::INFINITY},
  'description' => {'type'=>'markdown', 'path'=>'CompartmentDefinition.description', 'min'=>0, 'max'=>1},
  'useContext' => {'type'=>'UsageContext', 'path'=>'CompartmentDefinition.useContext', 'min'=>0, 'max'=>Float::INFINITY},
  'purpose' => {'type'=>'markdown', 'path'=>'CompartmentDefinition.purpose', 'min'=>0, 'max'=>1},
  'code' => {'valid_codes'=>{'http://hl7.org/fhir/compartment-type'=>['Patient', 'Encounter', 'RelatedPerson', 'Practitioner', 'Device']}, 'type'=>'code', 'path'=>'CompartmentDefinition.code', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/compartment-type|4.0.0'}},
  'search' => {'type'=>'boolean', 'path'=>'CompartmentDefinition.search', 'min'=>1, 'max'=>1},
  'resource' => {'type'=>'CompartmentDefinition::Resource', 'path'=>'CompartmentDefinition.resource', '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, #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

#codeObject

1-1 code



74
75
76
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 74

def code
  @code
end

#contactObject

0-* [ ContactDetail ]



70
71
72
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 70

def contact
  @contact
end

#containedObject

0-* [ Resource ]



60
61
62
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 60

def contained
  @contained
end

#dateObject

0-1 dateTime



68
69
70
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 68

def date
  @date
end

#descriptionObject

0-1 markdown



71
72
73
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 71

def description
  @description
end

#experimentalObject

0-1 boolean



67
68
69
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 67

def experimental
  @experimental
end

#extensionObject

0-* [ Extension ]



61
62
63
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 61

def extension
  @extension
end

#idObject

0-1 id



55
56
57
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 55

def id
  @id
end

#implicitRulesObject

0-1 uri



57
58
59
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 57

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



58
59
60
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 58

def language
  @language
end

#metaObject

0-1 Meta



56
57
58
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 56

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



62
63
64
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 62

def modifierExtension
  @modifierExtension
end

#nameObject

1-1 string



65
66
67
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 65

def name
  @name
end

#publisherObject

0-1 string



69
70
71
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 69

def publisher
  @publisher
end

#purposeObject

0-1 markdown



73
74
75
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 73

def purpose
  @purpose
end

#resourceObject

0-* [ CompartmentDefinition::Resource ]



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

def resource
  @resource
end

#searchObject

1-1 boolean



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

def search
  @search
end

#statusObject

1-1 code



66
67
68
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 66

def status
  @status
end

#textObject

0-1 Narrative



59
60
61
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 59

def text
  @text
end

#urlObject

1-1 uri



63
64
65
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 63

def url
  @url
end

#useContextObject

0-* [ UsageContext ]



72
73
74
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 72

def useContext
  @useContext
end

#versionObject

0-1 string



64
65
66
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 64

def version
  @version
end

Instance Method Details

#resourceTypeObject



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

def resourceType
  'CompartmentDefinition'
end