Class: FHIR::DSTU2::OperationDefinition

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

Defined Under Namespace

Classes: Contact, Parameter

Constant Summary collapse

SEARCH_PARAMS =
['base', 'code', 'date', 'instance', 'kind', 'name', 'profile', 'publisher', 'status', 'system', 'type', 'url', 'version']
METADATA =
{
  'id' => {'type'=>'id', 'path'=>'OperationDefinition.id', 'min'=>0, 'max'=>1},
  'meta' => {'type'=>'Meta', 'path'=>'OperationDefinition.meta', 'min'=>0, 'max'=>1},
  'implicitRules' => {'type'=>'uri', 'path'=>'OperationDefinition.implicitRules', 'min'=>0, 'max'=>1},
  'language' => {'type'=>'code', 'path'=>'OperationDefinition.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
  'text' => {'type'=>'Narrative', 'path'=>'OperationDefinition.text', 'min'=>0, 'max'=>1},
  'contained' => {'type'=>'Resource', 'path'=>'OperationDefinition.contained', 'min'=>0, 'max'=>Float::INFINITY},
  'extension' => {'type'=>'Extension', 'path'=>'OperationDefinition.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'OperationDefinition.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'url' => {'type'=>'uri', 'path'=>'OperationDefinition.url', 'min'=>0, 'max'=>1},
  'version' => {'type'=>'string', 'path'=>'OperationDefinition.version', 'min'=>0, 'max'=>1},
  'name' => {'type'=>'string', 'path'=>'OperationDefinition.name', 'min'=>1, 'max'=>1},
  'status' => {'valid_codes'=>{'http://hl7.org/fhir/conformance-resource-status'=>['draft', 'active', 'retired']}, 'type'=>'code', 'path'=>'OperationDefinition.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/conformance-resource-status'}},
  'kind' => {'valid_codes'=>{'http://hl7.org/fhir/operation-kind'=>['operation', 'query']}, 'type'=>'code', 'path'=>'OperationDefinition.kind', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/operation-kind'}},
  'experimental' => {'type'=>'boolean', 'path'=>'OperationDefinition.experimental', 'min'=>0, 'max'=>1},
  'publisher' => {'type'=>'string', 'path'=>'OperationDefinition.publisher', 'min'=>0, 'max'=>1},
  'contact' => {'type'=>'OperationDefinition::Contact', 'path'=>'OperationDefinition.contact', 'min'=>0, 'max'=>Float::INFINITY},
  'date' => {'type'=>'dateTime', 'path'=>'OperationDefinition.date', 'min'=>0, 'max'=>1},
  'description' => {'type'=>'string', 'path'=>'OperationDefinition.description', 'min'=>0, 'max'=>1},
  'requirements' => {'type'=>'string', 'path'=>'OperationDefinition.requirements', 'min'=>0, 'max'=>1},
  'idempotent' => {'type'=>'boolean', 'path'=>'OperationDefinition.idempotent', 'min'=>0, 'max'=>1},
  'code' => {'type'=>'code', 'path'=>'OperationDefinition.code', 'min'=>1, 'max'=>1},
  'notes' => {'type'=>'string', 'path'=>'OperationDefinition.notes', 'min'=>0, 'max'=>1},
  'base' => {'type'=>'Reference', 'path'=>'OperationDefinition.base', 'min'=>0, 'max'=>1},
  'system' => {'type'=>'boolean', 'path'=>'OperationDefinition.system', 'min'=>1, 'max'=>1},
  'type' => {'valid_codes'=>{'http://hl7.org/fhir/resource-types'=>['Account', 'AllergyIntolerance', 'Appointment', 'AppointmentResponse', 'AuditEvent', 'Basic', 'Binary', 'BodySite', 'Bundle', 'CarePlan', 'Claim', 'ClaimResponse', 'ClinicalImpression', 'Communication', 'CommunicationRequest', 'Composition', 'ConceptMap', 'Condition', 'Conformance', 'Contract', 'Coverage', 'DataElement', 'DetectedIssue', 'Device', 'DeviceComponent', 'DeviceMetric', 'DeviceUseRequest', 'DeviceUseStatement', 'DiagnosticOrder', 'DiagnosticReport', 'DocumentManifest', 'DocumentReference', 'DomainResource', 'EligibilityRequest', 'EligibilityResponse', 'Encounter', 'EnrollmentRequest', 'EnrollmentResponse', 'EpisodeOfCare', 'ExplanationOfBenefit', 'FamilyMemberHistory', 'Flag', 'Goal', 'Group', 'HealthcareService', 'ImagingObjectSelection', 'ImagingStudy', 'Immunization', 'ImmunizationRecommendation', 'ImplementationGuide', 'List', 'Location', 'Media', 'Medication', 'MedicationAdministration', 'MedicationDispense', 'MedicationOrder', 'MedicationStatement', 'MessageHeader', 'NamingSystem', 'NutritionOrder', 'Observation', 'OperationDefinition', 'OperationOutcome', 'Order', 'OrderResponse', 'Organization', 'Parameters', 'Patient', 'PaymentNotice', 'PaymentReconciliation', 'Person', 'Practitioner', 'Procedure', 'ProcedureRequest', 'ProcessRequest', 'ProcessResponse', 'Provenance', 'Questionnaire', 'QuestionnaireResponse', 'ReferralRequest', 'RelatedPerson', 'Resource', 'RiskAssessment', 'Schedule', 'SearchParameter', 'Slot', 'Specimen', 'StructureDefinition', 'Subscription', 'Substance', 'SupplyDelivery', 'SupplyRequest', 'TestScript', 'ValueSet', 'VisionPrescription']}, 'type'=>'code', 'path'=>'OperationDefinition.type', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/resource-types'}},
  'instance' => {'type'=>'boolean', 'path'=>'OperationDefinition.instance', 'min'=>1, 'max'=>1},
  'parameter' => {'type'=>'OperationDefinition::Parameter', 'path'=>'OperationDefinition.parameter', '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?, #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

#baseObject

0-1 Reference()



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

def base
  @base
end

#codeObject

1-1 code



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

def code
  @code
end

#contactObject

0-* [ OperationDefinition::Contact ]



133
134
135
# File 'lib/fhir_dstu2_models/fhir/resources/OperationDefinition.rb', line 133

def contact
  @contact
end

#containedObject

0-* [ Resource ]



123
124
125
# File 'lib/fhir_dstu2_models/fhir/resources/OperationDefinition.rb', line 123

def contained
  @contained
end

#dateObject

0-1 dateTime



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

def date
  @date
end

#descriptionObject

0-1 string



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

def description
  @description
end

#experimentalObject

0-1 boolean



131
132
133
# File 'lib/fhir_dstu2_models/fhir/resources/OperationDefinition.rb', line 131

def experimental
  @experimental
end

#extensionObject

0-* [ Extension ]



124
125
126
# File 'lib/fhir_dstu2_models/fhir/resources/OperationDefinition.rb', line 124

def extension
  @extension
end

#idObject

0-1 id



118
119
120
# File 'lib/fhir_dstu2_models/fhir/resources/OperationDefinition.rb', line 118

def id
  @id
end

#idempotentObject

0-1 boolean



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

def idempotent
  @idempotent
end

#implicitRulesObject

0-1 uri



120
121
122
# File 'lib/fhir_dstu2_models/fhir/resources/OperationDefinition.rb', line 120

def implicitRules
  @implicitRules
end

#instanceObject

1-1 boolean



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

def instance
  @instance
end

#kindObject

1-1 code



130
131
132
# File 'lib/fhir_dstu2_models/fhir/resources/OperationDefinition.rb', line 130

def kind
  @kind
end

#languageObject

0-1 code



121
122
123
# File 'lib/fhir_dstu2_models/fhir/resources/OperationDefinition.rb', line 121

def language
  @language
end

#metaObject

0-1 Meta



119
120
121
# File 'lib/fhir_dstu2_models/fhir/resources/OperationDefinition.rb', line 119

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



125
126
127
# File 'lib/fhir_dstu2_models/fhir/resources/OperationDefinition.rb', line 125

def modifierExtension
  @modifierExtension
end

#nameObject

1-1 string



128
129
130
# File 'lib/fhir_dstu2_models/fhir/resources/OperationDefinition.rb', line 128

def name
  @name
end

#notesObject

0-1 string



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

def notes
  @notes
end

#parameterObject

0-* [ OperationDefinition::Parameter ]



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

def parameter
  @parameter
end

#publisherObject

0-1 string



132
133
134
# File 'lib/fhir_dstu2_models/fhir/resources/OperationDefinition.rb', line 132

def publisher
  @publisher
end

#requirementsObject

0-1 string



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

def requirements
  @requirements
end

#statusObject

1-1 code



129
130
131
# File 'lib/fhir_dstu2_models/fhir/resources/OperationDefinition.rb', line 129

def status
  @status
end

#systemObject

1-1 boolean



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

def system
  @system
end

#textObject

0-1 Narrative



122
123
124
# File 'lib/fhir_dstu2_models/fhir/resources/OperationDefinition.rb', line 122

def text
  @text
end

#typeObject

0-* [ code ]



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

def type
  @type
end

#urlObject

0-1 uri



126
127
128
# File 'lib/fhir_dstu2_models/fhir/resources/OperationDefinition.rb', line 126

def url
  @url
end

#versionObject

0-1 string



127
128
129
# File 'lib/fhir_dstu2_models/fhir/resources/OperationDefinition.rb', line 127

def version
  @version
end

Instance Method Details

#resourceTypeObject



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

def resourceType
  'OperationDefinition'
end