Class: FHIR::CompartmentDefinition
- 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
-
#code ⇒ Object
1-1 code.
-
#contact ⇒ Object
0-* [ ContactDetail ].
-
#contained ⇒ Object
0-* [ Resource ].
-
#date ⇒ Object
0-1 dateTime.
-
#description ⇒ Object
0-1 markdown.
-
#experimental ⇒ Object
0-1 boolean.
-
#extension ⇒ Object
0-* [ Extension ].
-
#id ⇒ Object
0-1 id.
-
#implicitRules ⇒ Object
0-1 uri.
-
#language ⇒ Object
0-1 code.
-
#meta ⇒ Object
0-1 Meta.
-
#modifierExtension ⇒ Object
0-* [ Extension ].
-
#name ⇒ Object
1-1 string.
-
#publisher ⇒ Object
0-1 string.
-
#purpose ⇒ Object
0-1 markdown.
-
#resource ⇒ Object
0-* [ CompartmentDefinition::Resource ].
-
#search ⇒ Object
1-1 boolean.
-
#status ⇒ Object
1-1 code.
-
#text ⇒ Object
0-1 Narrative.
-
#url ⇒ Object
1-1 uri.
-
#useContext ⇒ Object
0-* [ UsageContext ].
-
#version ⇒ Object
0-1 string.
Instance Method Summary collapse
Methods included from Xml
from_xml, #to_xml, valid?, validate
Methods included from Deprecate
Methods included from Json
Methods included from Hashable
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
#code ⇒ Object
1-1 code
74 75 76 |
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 74 def code @code end |
#contact ⇒ Object
0-* [ ContactDetail ]
70 71 72 |
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 70 def contact @contact end |
#contained ⇒ Object
0-* [ Resource ]
60 61 62 |
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 60 def contained @contained end |
#date ⇒ Object
0-1 dateTime
68 69 70 |
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 68 def date @date end |
#description ⇒ Object
0-1 markdown
71 72 73 |
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 71 def description @description end |
#experimental ⇒ Object
0-1 boolean
67 68 69 |
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 67 def experimental @experimental end |
#extension ⇒ Object
0-* [ Extension ]
61 62 63 |
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 61 def extension @extension end |
#id ⇒ Object
0-1 id
55 56 57 |
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 55 def id @id end |
#implicitRules ⇒ Object
0-1 uri
57 58 59 |
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 57 def implicitRules @implicitRules end |
#language ⇒ Object
0-1 code
58 59 60 |
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 58 def language @language end |
#meta ⇒ Object
0-1 Meta
56 57 58 |
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 56 def @meta end |
#modifierExtension ⇒ Object
0-* [ Extension ]
62 63 64 |
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 62 def modifierExtension @modifierExtension end |
#name ⇒ Object
1-1 string
65 66 67 |
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 65 def name @name end |
#publisher ⇒ Object
0-1 string
69 70 71 |
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 69 def publisher @publisher end |
#purpose ⇒ Object
0-1 markdown
73 74 75 |
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 73 def purpose @purpose end |
#resource ⇒ Object
0-* [ CompartmentDefinition::Resource ]
76 77 78 |
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 76 def resource @resource end |
#search ⇒ Object
1-1 boolean
75 76 77 |
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 75 def search @search end |
#status ⇒ Object
1-1 code
66 67 68 |
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 66 def status @status end |
#text ⇒ Object
0-1 Narrative
59 60 61 |
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 59 def text @text end |
#url ⇒ Object
1-1 uri
63 64 65 |
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 63 def url @url end |
#useContext ⇒ Object
0-* [ UsageContext ]
72 73 74 |
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 72 def useContext @useContext end |
#version ⇒ Object
0-1 string
64 65 66 |
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 64 def version @version end |
Instance Method Details
#resourceType ⇒ Object
78 79 80 |
# File 'lib/fhir_models/fhir/resources/CompartmentDefinition.rb', line 78 def resourceType 'CompartmentDefinition' end |