Class: FHIR::ConceptMap

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

Defined Under Namespace

Classes: Group

Constant Summary collapse

MULTIPLE_TYPES =
{
  'source' => ['uri', 'canonical'],
  'target' => ['uri', 'canonical']
}
SEARCH_PARAMS =
['context', 'context-quantity', 'context-type', 'date', 'description', 'jurisdiction', 'name', 'publisher', 'status', 'title', 'url', 'version', 'identifier', 'dependson', 'other', 'product', 'source', 'source-code', 'source-system', 'source-uri', 'target', 'target-code', 'target-system', 'target-uri']
METADATA =
{
  'id' => {'type'=>'id', 'path'=>'ConceptMap.id', 'min'=>0, 'max'=>1},
  'meta' => {'type'=>'Meta', 'path'=>'ConceptMap.meta', 'min'=>0, 'max'=>1},
  'implicitRules' => {'type'=>'uri', 'path'=>'ConceptMap.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'=>'ConceptMap.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'preferred', 'uri'=>'http://hl7.org/fhir/ValueSet/languages'}},
  'text' => {'type'=>'Narrative', 'path'=>'ConceptMap.text', 'min'=>0, 'max'=>1},
  'contained' => {'type'=>'Resource', 'path'=>'ConceptMap.contained', 'min'=>0, 'max'=>Float::INFINITY},
  'extension' => {'type'=>'Extension', 'path'=>'ConceptMap.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'ConceptMap.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'url' => {'type'=>'uri', 'path'=>'ConceptMap.url', 'min'=>0, 'max'=>1},
  'identifier' => {'type'=>'Identifier', 'path'=>'ConceptMap.identifier', 'min'=>0, 'max'=>1},
  'version' => {'type'=>'string', 'path'=>'ConceptMap.version', 'min'=>0, 'max'=>1},
  'name' => {'type'=>'string', 'path'=>'ConceptMap.name', 'min'=>0, 'max'=>1},
  'title' => {'type'=>'string', 'path'=>'ConceptMap.title', 'min'=>0, 'max'=>1},
  'status' => {'valid_codes'=>{'http://hl7.org/fhir/publication-status'=>['draft', 'active', 'retired', 'unknown']}, 'type'=>'code', 'path'=>'ConceptMap.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/publication-status|4.0.0'}},
  'experimental' => {'type'=>'boolean', 'path'=>'ConceptMap.experimental', 'min'=>0, 'max'=>1},
  'date' => {'type'=>'dateTime', 'path'=>'ConceptMap.date', 'min'=>0, 'max'=>1},
  'publisher' => {'type'=>'string', 'path'=>'ConceptMap.publisher', 'min'=>0, 'max'=>1},
  'contact' => {'type'=>'ContactDetail', 'path'=>'ConceptMap.contact', 'min'=>0, 'max'=>Float::INFINITY},
  'description' => {'type'=>'markdown', 'path'=>'ConceptMap.description', 'min'=>0, 'max'=>1},
  'useContext' => {'type'=>'UsageContext', 'path'=>'ConceptMap.useContext', 'min'=>0, 'max'=>Float::INFINITY},
  'jurisdiction' => {'type'=>'CodeableConcept', 'path'=>'ConceptMap.jurisdiction', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/jurisdiction'}},
  'purpose' => {'type'=>'markdown', 'path'=>'ConceptMap.purpose', 'min'=>0, 'max'=>1},
  'copyright' => {'type'=>'markdown', 'path'=>'ConceptMap.copyright', 'min'=>0, 'max'=>1},
  'sourceUri' => {'type'=>'uri', 'path'=>'ConceptMap.source[x]', 'min'=>0, 'max'=>1},
  'sourceCanonical' => {'type'=>'canonical', 'path'=>'ConceptMap.source[x]', 'min'=>0, 'max'=>1},
  'targetUri' => {'type'=>'uri', 'path'=>'ConceptMap.target[x]', 'min'=>0, 'max'=>1},
  'targetCanonical' => {'type'=>'canonical', 'path'=>'ConceptMap.target[x]', 'min'=>0, 'max'=>1},
  'group' => {'type'=>'ConceptMap::Group', 'path'=>'ConceptMap.group', '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

#contactObject

0-* [ ContactDetail ]



186
187
188
# File 'lib/fhir_models/fhir/resources/ConceptMap.rb', line 186

def contact
  @contact
end

#containedObject

0-* [ Resource ]



174
175
176
# File 'lib/fhir_models/fhir/resources/ConceptMap.rb', line 174

def contained
  @contained
end

0-1 markdown



191
192
193
# File 'lib/fhir_models/fhir/resources/ConceptMap.rb', line 191

def copyright
  @copyright
end

#dateObject

0-1 dateTime



184
185
186
# File 'lib/fhir_models/fhir/resources/ConceptMap.rb', line 184

def date
  @date
end

#descriptionObject

0-1 markdown



187
188
189
# File 'lib/fhir_models/fhir/resources/ConceptMap.rb', line 187

def description
  @description
end

#experimentalObject

0-1 boolean



183
184
185
# File 'lib/fhir_models/fhir/resources/ConceptMap.rb', line 183

def experimental
  @experimental
end

#extensionObject

0-* [ Extension ]



175
176
177
# File 'lib/fhir_models/fhir/resources/ConceptMap.rb', line 175

def extension
  @extension
end

#groupObject

0-* [ ConceptMap::Group ]



196
197
198
# File 'lib/fhir_models/fhir/resources/ConceptMap.rb', line 196

def group
  @group
end

#idObject

0-1 id



169
170
171
# File 'lib/fhir_models/fhir/resources/ConceptMap.rb', line 169

def id
  @id
end

#identifierObject

0-1 Identifier



178
179
180
# File 'lib/fhir_models/fhir/resources/ConceptMap.rb', line 178

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



171
172
173
# File 'lib/fhir_models/fhir/resources/ConceptMap.rb', line 171

def implicitRules
  @implicitRules
end

#jurisdictionObject

0-* [ CodeableConcept ]



189
190
191
# File 'lib/fhir_models/fhir/resources/ConceptMap.rb', line 189

def jurisdiction
  @jurisdiction
end

#languageObject

0-1 code



172
173
174
# File 'lib/fhir_models/fhir/resources/ConceptMap.rb', line 172

def language
  @language
end

#metaObject

0-1 Meta



170
171
172
# File 'lib/fhir_models/fhir/resources/ConceptMap.rb', line 170

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



176
177
178
# File 'lib/fhir_models/fhir/resources/ConceptMap.rb', line 176

def modifierExtension
  @modifierExtension
end

#nameObject

0-1 string



180
181
182
# File 'lib/fhir_models/fhir/resources/ConceptMap.rb', line 180

def name
  @name
end

#publisherObject

0-1 string



185
186
187
# File 'lib/fhir_models/fhir/resources/ConceptMap.rb', line 185

def publisher
  @publisher
end

#purposeObject

0-1 markdown



190
191
192
# File 'lib/fhir_models/fhir/resources/ConceptMap.rb', line 190

def purpose
  @purpose
end

#sourceCanonicalObject

0-1 canonical



193
194
195
# File 'lib/fhir_models/fhir/resources/ConceptMap.rb', line 193

def sourceCanonical
  @sourceCanonical
end

#sourceUriObject

0-1 uri



192
193
194
# File 'lib/fhir_models/fhir/resources/ConceptMap.rb', line 192

def sourceUri
  @sourceUri
end

#statusObject

1-1 code



182
183
184
# File 'lib/fhir_models/fhir/resources/ConceptMap.rb', line 182

def status
  @status
end

#targetCanonicalObject

0-1 canonical



195
196
197
# File 'lib/fhir_models/fhir/resources/ConceptMap.rb', line 195

def targetCanonical
  @targetCanonical
end

#targetUriObject

0-1 uri



194
195
196
# File 'lib/fhir_models/fhir/resources/ConceptMap.rb', line 194

def targetUri
  @targetUri
end

#textObject

0-1 Narrative



173
174
175
# File 'lib/fhir_models/fhir/resources/ConceptMap.rb', line 173

def text
  @text
end

#titleObject

0-1 string



181
182
183
# File 'lib/fhir_models/fhir/resources/ConceptMap.rb', line 181

def title
  @title
end

#urlObject

0-1 uri



177
178
179
# File 'lib/fhir_models/fhir/resources/ConceptMap.rb', line 177

def url
  @url
end

#useContextObject

0-* [ UsageContext ]



188
189
190
# File 'lib/fhir_models/fhir/resources/ConceptMap.rb', line 188

def useContext
  @useContext
end

#versionObject

0-1 string



179
180
181
# File 'lib/fhir_models/fhir/resources/ConceptMap.rb', line 179

def version
  @version
end

Instance Method Details

#resourceTypeObject



198
199
200
# File 'lib/fhir_models/fhir/resources/ConceptMap.rb', line 198

def resourceType
  'ConceptMap'
end