Class: FHIR::DSTU2::ConceptMap

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

Defined Under Namespace

Classes: Contact, Element

Constant Summary collapse

MULTIPLE_TYPES =
{
  'source' => ['uri', 'Reference'],
  'target' => ['uri', 'Reference']
}
SEARCH_PARAMS =
['context', 'date', 'dependson', 'description', 'identifier', 'name', 'product', 'publisher', 'source', 'sourcecode', 'sourcesystem', 'sourceuri', 'status', 'target', 'targetcode', 'targetsystem', 'url', 'version']
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' => { 'type' => 'code', 'path' => 'ConceptMap.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
  '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 },
  'status' => { 'valid_codes' => { 'http://hl7.org/fhir/conformance-resource-status' => ['draft', 'active', 'retired'] }, 'type' => 'code', 'path' => 'ConceptMap.status', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/conformance-resource-status' } },
  'experimental' => { 'type' => 'boolean', 'path' => 'ConceptMap.experimental', 'min' => 0, 'max' => 1 },
  'publisher' => { 'type' => 'string', 'path' => 'ConceptMap.publisher', 'min' => 0, 'max' => 1 },
  'contact' => { 'type' => 'ConceptMap::Contact', 'path' => 'ConceptMap.contact', 'min' => 0, 'max' => Float::INFINITY },
  'date' => { 'type' => 'dateTime', 'path' => 'ConceptMap.date', 'min' => 0, 'max' => 1 },
  'description' => { 'type' => 'string', 'path' => 'ConceptMap.description', 'min' => 0, 'max' => 1 },
  'useContext' => { 'valid_codes' => { 'urn:iso:std:iso:3166' => [], 'http://unstats.un.org/unsd/methods/m49/m49.htm' => [], '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'], 'http://hl7.org/fhir/practitioner-specialty' => ['cardio', 'dent', 'dietary', 'midw', 'sysarch'] }, 'type' => 'CodeableConcept', 'path' => 'ConceptMap.useContext', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'extensible', 'uri' => 'http://hl7.org/fhir/ValueSet/use-context' } },
  'requirements' => { 'type' => 'string', 'path' => 'ConceptMap.requirements', 'min' => 0, 'max' => 1 },
  'copyright' => { 'type' => 'string', 'path' => 'ConceptMap.copyright', 'min' => 0, 'max' => 1 },
  'sourceUri' => { 'type' => 'uri', 'path' => 'ConceptMap.source[x]', 'min' => 1, 'max' => 1 },
  'sourceReference' => { 'type' => 'Reference', 'path' => 'ConceptMap.source[x]', 'min' => 1, 'max' => 1 },
  'targetUri' => { 'type' => 'uri', 'path' => 'ConceptMap.target[x]', 'min' => 1, 'max' => 1 },
  'targetReference' => { 'type' => 'Reference', 'path' => 'ConceptMap.target[x]', 'min' => 1, 'max' => 1 },
  'element' => { 'type' => 'ConceptMap::Element', 'path' => 'ConceptMap.element', '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, #each_element, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #respond_to_missing?, #to_reference, #valid?, #validate, #validate_profile

Constructor Details

This class inherits a constructor from FHIR::DSTU2::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FHIR::DSTU2::Model

Instance Attribute Details

#contactObject

0-* [ ConceptMap::Contact ]



149
150
151
# File 'lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb', line 149

def contact
  @contact
end

#containedObject

0-* [ Resource ]



139
140
141
# File 'lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb', line 139

def contained
  @contained
end

0-1 string



154
155
156
# File 'lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb', line 154

def copyright
  @copyright
end

#dateObject

0-1 dateTime



150
151
152
# File 'lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb', line 150

def date
  @date
end

#descriptionObject

0-1 string



151
152
153
# File 'lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb', line 151

def description
  @description
end

#elementObject

0-* [ ConceptMap::Element ]



159
160
161
# File 'lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb', line 159

def element
  @element
end

#experimentalObject

0-1 boolean



147
148
149
# File 'lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb', line 147

def experimental
  @experimental
end

#extensionObject

0-* [ Extension ]



140
141
142
# File 'lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb', line 140

def extension
  @extension
end

#idObject

0-1 id



134
135
136
# File 'lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb', line 134

def id
  @id
end

#identifierObject

0-1 Identifier



143
144
145
# File 'lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb', line 143

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



136
137
138
# File 'lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb', line 136

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



137
138
139
# File 'lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb', line 137

def language
  @language
end

#metaObject

0-1 Meta



135
136
137
# File 'lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb', line 135

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



141
142
143
# File 'lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb', line 141

def modifierExtension
  @modifierExtension
end

#nameObject

0-1 string



145
146
147
# File 'lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb', line 145

def name
  @name
end

#publisherObject

0-1 string



148
149
150
# File 'lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb', line 148

def publisher
  @publisher
end

#requirementsObject

0-1 string



153
154
155
# File 'lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb', line 153

def requirements
  @requirements
end

#sourceReferenceObject

1-1 Reference()



156
157
158
# File 'lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb', line 156

def sourceReference
  @sourceReference
end

#sourceUriObject

1-1 uri



155
156
157
# File 'lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb', line 155

def sourceUri
  @sourceUri
end

#statusObject

1-1 code



146
147
148
# File 'lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb', line 146

def status
  @status
end

#targetReferenceObject

1-1 Reference()



158
159
160
# File 'lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb', line 158

def targetReference
  @targetReference
end

#targetUriObject

1-1 uri



157
158
159
# File 'lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb', line 157

def targetUri
  @targetUri
end

#textObject

0-1 Narrative



138
139
140
# File 'lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb', line 138

def text
  @text
end

#urlObject

0-1 uri



142
143
144
# File 'lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb', line 142

def url
  @url
end

#useContextObject

0-* [ CodeableConcept ]



152
153
154
# File 'lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb', line 152

def useContext
  @useContext
end

#versionObject

0-1 string



144
145
146
# File 'lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb', line 144

def version
  @version
end

Instance Method Details

#resourceTypeObject



161
162
163
# File 'lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb', line 161

def resourceType
  'ConceptMap'
end