Class: FHIR::CodeSystem
- Defined in:
- lib/fhir_models/fhir/resources/CodeSystem.rb
Defined Under Namespace
Classes: Concept, Filter, Property
Constant Summary collapse
- SEARCH_PARAMS =
['code', 'content-mode', 'date', 'description', 'identifier', 'jurisdiction', 'language', 'name', 'publisher', 'status', 'system', 'title', 'url', 'version']
- METADATA =
{ 'id' => {'type'=>'id', 'path'=>'CodeSystem.id', 'min'=>0, 'max'=>1}, 'meta' => {'type'=>'Meta', 'path'=>'CodeSystem.meta', 'min'=>0, 'max'=>1}, 'implicitRules' => {'type'=>'uri', 'path'=>'CodeSystem.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', 'pt', 'pt-BR', 'ru', 'ru-RU', 'sr', 'sr-SP', 'sv', 'sv-SE', 'te', 'zh', 'zh-CN', 'zh-HK', 'zh-SG', 'zh-TW']}, 'type'=>'code', 'path'=>'CodeSystem.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/languages'}}, 'text' => {'type'=>'Narrative', 'path'=>'CodeSystem.text', 'min'=>0, 'max'=>1}, 'contained' => {'type'=>'Resource', 'path'=>'CodeSystem.contained', 'min'=>0, 'max'=>Float::INFINITY}, 'extension' => {'type'=>'Extension', 'path'=>'CodeSystem.extension', 'min'=>0, 'max'=>Float::INFINITY}, 'modifierExtension' => {'type'=>'Extension', 'path'=>'CodeSystem.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY}, 'url' => {'type'=>'uri', 'path'=>'CodeSystem.url', 'min'=>0, 'max'=>1}, 'identifier' => {'type'=>'Identifier', 'path'=>'CodeSystem.identifier', 'min'=>0, 'max'=>1}, 'version' => {'type'=>'string', 'path'=>'CodeSystem.version', 'min'=>0, 'max'=>1}, 'name' => {'type'=>'string', 'path'=>'CodeSystem.name', 'min'=>0, 'max'=>1}, 'title' => {'type'=>'string', 'path'=>'CodeSystem.title', 'min'=>0, 'max'=>1}, 'status' => {'valid_codes'=>{'http://hl7.org/fhir/publication-status'=>['draft', 'active', 'retired', 'unknown']}, 'type'=>'code', 'path'=>'CodeSystem.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/publication-status'}}, 'experimental' => {'type'=>'boolean', 'path'=>'CodeSystem.experimental', 'min'=>0, 'max'=>1}, 'date' => {'type'=>'dateTime', 'path'=>'CodeSystem.date', 'min'=>0, 'max'=>1}, 'publisher' => {'type'=>'string', 'path'=>'CodeSystem.publisher', 'min'=>0, 'max'=>1}, 'contact' => {'type'=>'ContactDetail', 'path'=>'CodeSystem.contact', 'min'=>0, 'max'=>Float::INFINITY}, 'description' => {'type'=>'markdown', 'path'=>'CodeSystem.description', 'min'=>0, 'max'=>1}, 'useContext' => {'type'=>'UsageContext', 'path'=>'CodeSystem.useContext', 'min'=>0, 'max'=>Float::INFINITY}, 'jurisdiction' => {'valid_codes'=>{'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'=>['001', '002', '014', '017', '015', '018', '011', '019', '419', '029', '013', '005', '021', '142', '143', '030', '034', '035', '145', '150', '151', '154', '039', '155', '009', '053', '054', '057', '061'], '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'], nil=>[]}, 'type'=>'CodeableConcept', 'path'=>'CodeSystem.jurisdiction', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/jurisdiction'}}, 'purpose' => {'type'=>'markdown', 'path'=>'CodeSystem.purpose', 'min'=>0, 'max'=>1}, 'copyright' => {'type'=>'markdown', 'path'=>'CodeSystem.copyright', 'min'=>0, 'max'=>1}, 'caseSensitive' => {'type'=>'boolean', 'path'=>'CodeSystem.caseSensitive', 'min'=>0, 'max'=>1}, 'valueSet' => {'type'=>'uri', 'path'=>'CodeSystem.valueSet', 'min'=>0, 'max'=>1}, 'hierarchyMeaning' => {'valid_codes'=>{'http://hl7.org/fhir/codesystem-hierarchy-meaning'=>['grouped-by', 'is-a', 'part-of', 'classified-with']}, 'type'=>'code', 'path'=>'CodeSystem.hierarchyMeaning', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/codesystem-hierarchy-meaning'}}, 'compositional' => {'type'=>'boolean', 'path'=>'CodeSystem.compositional', 'min'=>0, 'max'=>1}, 'versionNeeded' => {'type'=>'boolean', 'path'=>'CodeSystem.versionNeeded', 'min'=>0, 'max'=>1}, 'content' => {'valid_codes'=>{'http://hl7.org/fhir/codesystem-content-mode'=>['not-present', 'example', 'fragment', 'complete']}, 'type'=>'code', 'path'=>'CodeSystem.content', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/codesystem-content-mode'}}, 'count' => {'type'=>'unsignedInt', 'path'=>'CodeSystem.count', 'min'=>0, 'max'=>1}, 'filter' => {'type'=>'CodeSystem::Filter', 'path'=>'CodeSystem.filter', 'min'=>0, 'max'=>Float::INFINITY}, 'property' => {'type'=>'CodeSystem::Property', 'path'=>'CodeSystem.property', 'min'=>0, 'max'=>Float::INFINITY}, 'concept' => {'type'=>'CodeSystem::Concept', 'path'=>'CodeSystem.concept', 'min'=>0, 'max'=>Float::INFINITY} }
Instance Attribute Summary collapse
-
#caseSensitive ⇒ Object
0-1 boolean.
-
#compositional ⇒ Object
0-1 boolean.
-
#concept ⇒ Object
0-* [ CodeSystem::Concept ].
-
#contact ⇒ Object
0-* [ ContactDetail ].
-
#contained ⇒ Object
0-* [ Resource ].
-
#content ⇒ Object
1-1 code.
-
#copyright ⇒ Object
0-1 markdown.
-
#count ⇒ Object
0-1 unsignedInt.
-
#date ⇒ Object
0-1 dateTime.
-
#description ⇒ Object
0-1 markdown.
-
#experimental ⇒ Object
0-1 boolean.
-
#extension ⇒ Object
0-* [ Extension ].
-
#filter ⇒ Object
0-* [ CodeSystem::Filter ].
-
#hierarchyMeaning ⇒ Object
0-1 code.
-
#id ⇒ Object
0-1 id.
-
#identifier ⇒ Object
0-1 Identifier.
-
#implicitRules ⇒ Object
0-1 uri.
-
#jurisdiction ⇒ Object
0-* [ CodeableConcept ].
-
#language ⇒ Object
0-1 code.
-
#meta ⇒ Object
0-1 Meta.
-
#modifierExtension ⇒ Object
0-* [ Extension ].
-
#name ⇒ Object
0-1 string.
-
#property ⇒ Object
0-* [ CodeSystem::Property ].
-
#publisher ⇒ Object
0-1 string.
-
#purpose ⇒ Object
0-1 markdown.
-
#status ⇒ Object
1-1 code.
-
#text ⇒ Object
0-1 Narrative.
-
#title ⇒ Object
0-1 string.
-
#url ⇒ Object
0-1 uri.
-
#useContext ⇒ Object
0-* [ UsageContext ].
-
#valueSet ⇒ Object
0-1 uri.
-
#version ⇒ Object
0-1 string.
-
#versionNeeded ⇒ Object
0-1 boolean.
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
#caseSensitive ⇒ Object
0-1 boolean
198 199 200 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 198 def caseSensitive @caseSensitive end |
#compositional ⇒ Object
0-1 boolean
201 202 203 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 201 def compositional @compositional end |
#concept ⇒ Object
0-* [ CodeSystem::Concept ]
207 208 209 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 207 def concept @concept end |
#contact ⇒ Object
0-* [ ContactDetail ]
192 193 194 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 192 def contact @contact end |
#contained ⇒ Object
0-* [ Resource ]
180 181 182 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 180 def contained @contained end |
#content ⇒ Object
1-1 code
203 204 205 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 203 def content @content end |
#copyright ⇒ Object
0-1 markdown
197 198 199 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 197 def copyright @copyright end |
#count ⇒ Object
0-1 unsignedInt
204 205 206 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 204 def count @count end |
#date ⇒ Object
0-1 dateTime
190 191 192 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 190 def date @date end |
#description ⇒ Object
0-1 markdown
193 194 195 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 193 def description @description end |
#experimental ⇒ Object
0-1 boolean
189 190 191 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 189 def experimental @experimental end |
#extension ⇒ Object
0-* [ Extension ]
181 182 183 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 181 def extension @extension end |
#filter ⇒ Object
0-* [ CodeSystem::Filter ]
205 206 207 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 205 def filter @filter end |
#hierarchyMeaning ⇒ Object
0-1 code
200 201 202 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 200 def hierarchyMeaning @hierarchyMeaning end |
#id ⇒ Object
0-1 id
175 176 177 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 175 def id @id end |
#identifier ⇒ Object
0-1 Identifier
184 185 186 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 184 def identifier @identifier end |
#implicitRules ⇒ Object
0-1 uri
177 178 179 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 177 def implicitRules @implicitRules end |
#jurisdiction ⇒ Object
0-* [ CodeableConcept ]
195 196 197 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 195 def jurisdiction @jurisdiction end |
#language ⇒ Object
0-1 code
178 179 180 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 178 def language @language end |
#meta ⇒ Object
0-1 Meta
176 177 178 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 176 def @meta end |
#modifierExtension ⇒ Object
0-* [ Extension ]
182 183 184 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 182 def modifierExtension @modifierExtension end |
#name ⇒ Object
0-1 string
186 187 188 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 186 def name @name end |
#property ⇒ Object
0-* [ CodeSystem::Property ]
206 207 208 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 206 def property @property end |
#publisher ⇒ Object
0-1 string
191 192 193 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 191 def publisher @publisher end |
#purpose ⇒ Object
0-1 markdown
196 197 198 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 196 def purpose @purpose end |
#status ⇒ Object
1-1 code
188 189 190 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 188 def status @status end |
#text ⇒ Object
0-1 Narrative
179 180 181 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 179 def text @text end |
#title ⇒ Object
0-1 string
187 188 189 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 187 def title @title end |
#url ⇒ Object
0-1 uri
183 184 185 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 183 def url @url end |
#useContext ⇒ Object
0-* [ UsageContext ]
194 195 196 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 194 def useContext @useContext end |
#valueSet ⇒ Object
0-1 uri
199 200 201 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 199 def valueSet @valueSet end |
#version ⇒ Object
0-1 string
185 186 187 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 185 def version @version end |
#versionNeeded ⇒ Object
0-1 boolean
202 203 204 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 202 def versionNeeded @versionNeeded end |
Instance Method Details
#resourceType ⇒ Object
209 210 211 |
# File 'lib/fhir_models/fhir/resources/CodeSystem.rb', line 209 def resourceType 'CodeSystem' end |