Class: FHIR::R5::MedicationRequest

Inherits:
Model show all
Includes:
Hashable, Json, Xml
Defined in:
lib/fhir_models/r5/generated/resources/MedicationRequest.rb

Defined Under Namespace

Classes: DispenseRequest, Substitution

Constant Summary collapse

SEARCH_PARAMS =
['authoredon', 'category', 'code', 'combo-date', 'encounter', 'group-identifier', 'identifier', 'intended-dispenser', 'intended-performer', 'intended-performertype', 'intent', 'medication', 'patient', 'priority', 'requester', 'status', 'subject']
METADATA =
{
  'id' => {'type'=>'id', 'path'=>'MedicationRequest.id', 'min'=>0, 'max'=>1},
  'meta' => {'type'=>'Meta', 'path'=>'MedicationRequest.meta', 'min'=>0, 'max'=>1},
  'implicitRules' => {'type'=>'uri', 'path'=>'MedicationRequest.implicitRules', 'min'=>0, 'max'=>1},
  'language' => {'type'=>'code', 'path'=>'MedicationRequest.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'additional'=>[{'purpose'=>'starter', 'valueSet'=>'http://hl7.org/fhir/ValueSet/languages'}], 'uri'=>'http://hl7.org/fhir/ValueSet/all-languages'}},
  'text' => {'type'=>'Narrative', 'path'=>'MedicationRequest.text', 'min'=>0, 'max'=>1},
  'contained' => {'type'=>'Resource', 'path'=>'MedicationRequest.contained', 'min'=>0, 'max'=>Float::INFINITY},
  'extension' => {'type'=>'Extension', 'path'=>'MedicationRequest.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'MedicationRequest.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'identifier' => {'type'=>'Identifier', 'path'=>'MedicationRequest.identifier', 'min'=>0, 'max'=>Float::INFINITY},
  'basedOn' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/CarePlan', 'http://hl7.org/fhir/StructureDefinition/MedicationRequest', 'http://hl7.org/fhir/StructureDefinition/ServiceRequest', 'http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation'], 'type'=>'Reference', 'path'=>'MedicationRequest.basedOn', 'min'=>0, 'max'=>Float::INFINITY},
  'priorPrescription' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/MedicationRequest'], 'type'=>'Reference', 'path'=>'MedicationRequest.priorPrescription', 'min'=>0, 'max'=>1},
  'groupIdentifier' => {'type'=>'Identifier', 'path'=>'MedicationRequest.groupIdentifier', 'min'=>0, 'max'=>1},
  'status' => {'valid_codes'=>{'http://hl7.org/fhir/CodeSystem/medicationrequest-status'=>['active', 'on-hold', 'ended', 'stopped', 'completed', 'cancelled', 'entered-in-error', 'draft', 'unknown']}, 'type'=>'code', 'path'=>'MedicationRequest.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/medicationrequest-status'}},
  'statusReason' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/medicationrequest-status-reason'=>['altchoice', 'clarif', 'drughigh', 'hospadm', 'labint', 'non-avail', 'preg', 'salg', 'sddi', 'sdupther', 'sintol', 'surg', 'washout']}, 'type'=>'CodeableConcept', 'path'=>'MedicationRequest.statusReason', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/medicationrequest-status-reason'}},
  'statusChanged' => {'type'=>'dateTime', 'path'=>'MedicationRequest.statusChanged', 'min'=>0, 'max'=>1},
  'intent' => {'valid_codes'=>{'http://hl7.org/fhir/CodeSystem/medicationrequest-intent'=>['proposal', 'plan', 'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order', 'option']}, 'type'=>'code', 'path'=>'MedicationRequest.intent', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/medicationrequest-intent'}},
  'category' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/medicationrequest-admin-location'=>['inpatient', 'outpatient', 'community']}, 'type'=>'CodeableConcept', 'path'=>'MedicationRequest.category', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/medicationrequest-admin-location'}},
  'priority' => {'valid_codes'=>{'http://hl7.org/fhir/request-priority'=>['routine', 'urgent', 'asap', 'stat']}, 'type'=>'code', 'path'=>'MedicationRequest.priority', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/request-priority'}},
  'doNotPerform' => {'type'=>'boolean', 'path'=>'MedicationRequest.doNotPerform', 'min'=>0, 'max'=>1},
  'medication' => {'type'=>'CodeableReference', 'path'=>'MedicationRequest.medication', 'min'=>1, 'max'=>1},
  'subject' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Group'], 'type'=>'Reference', 'path'=>'MedicationRequest.subject', 'min'=>1, 'max'=>1},
  'informationSource' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'MedicationRequest.informationSource', 'min'=>0, 'max'=>Float::INFINITY},
  'encounter' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Encounter'], 'type'=>'Reference', 'path'=>'MedicationRequest.encounter', 'min'=>0, 'max'=>1},
  'supportingInformation' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'MedicationRequest.supportingInformation', 'min'=>0, 'max'=>Float::INFINITY},
  'authoredOn' => {'type'=>'dateTime', 'path'=>'MedicationRequest.authoredOn', 'min'=>0, 'max'=>1},
  'requester' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'http://hl7.org/fhir/StructureDefinition/Device'], 'type'=>'Reference', 'path'=>'MedicationRequest.requester', 'min'=>0, 'max'=>1},
  'reported' => {'type'=>'boolean', 'path'=>'MedicationRequest.reported', 'min'=>0, 'max'=>1},
  'performerType' => {'valid_codes'=>{'http://hl7.org/fhir/CodeSystem/medication-intended-performer-role'=>['registerednurse', 'oncologynurse', 'paincontrolnurse', 'physician', 'pharmacist']}, 'type'=>'CodeableConcept', 'path'=>'MedicationRequest.performerType', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/medication-intended-performer-role'}},
  'performer' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/DeviceDefinition', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'http://hl7.org/fhir/StructureDefinition/CareTeam', 'http://hl7.org/fhir/StructureDefinition/HealthcareService'], 'type'=>'Reference', 'path'=>'MedicationRequest.performer', 'min'=>0, 'max'=>Float::INFINITY},
  'device' => {'type'=>'CodeableReference', 'path'=>'MedicationRequest.device', 'min'=>0, 'max'=>Float::INFINITY},
  'recorder' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole'], 'type'=>'Reference', 'path'=>'MedicationRequest.recorder', 'min'=>0, 'max'=>1},
  'reason' => {'type'=>'CodeableReference', 'path'=>'MedicationRequest.reason', 'min'=>0, 'max'=>Float::INFINITY},
  'courseOfTherapyType' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy'=>['continuous', 'acute', 'seasonal']}, 'type'=>'CodeableConcept', 'path'=>'MedicationRequest.courseOfTherapyType', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/medicationrequest-course-of-therapy'}},
  'insurance' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Coverage', 'http://hl7.org/fhir/StructureDefinition/ClaimResponse'], 'type'=>'Reference', 'path'=>'MedicationRequest.insurance', 'min'=>0, 'max'=>Float::INFINITY},
  'note' => {'type'=>'Annotation', 'path'=>'MedicationRequest.note', 'min'=>0, 'max'=>Float::INFINITY},
  'renderedDosageInstruction' => {'type'=>'markdown', 'path'=>'MedicationRequest.renderedDosageInstruction', 'min'=>0, 'max'=>1},
  'effectiveDosePeriod' => {'type'=>'Period', 'path'=>'MedicationRequest.effectiveDosePeriod', 'min'=>0, 'max'=>1},
  'dosageInstruction' => {'type'=>'Dosage', 'path'=>'MedicationRequest.dosageInstruction', 'min'=>0, 'max'=>Float::INFINITY},
  'dispenseRequest' => {'type'=>'MedicationRequest::DispenseRequest', 'path'=>'MedicationRequest.dispenseRequest', 'min'=>0, 'max'=>1},
  'substitution' => {'type'=>'MedicationRequest::Substitution', 'path'=>'MedicationRequest.substitution', 'min'=>0, 'max'=>1},
  'eventHistory' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Provenance'], 'type'=>'Reference', 'path'=>'MedicationRequest.eventHistory', 'min'=>0, 'max'=>Float::INFINITY}
}

Constants included from FHIR::R4

FHIR::R4::PRIMITIVES, FHIR::R4::RESOURCES, FHIR::R4::TYPES

Constants included from FHIR

Account, ActivityDefinition, Address, AdverseEvent, Age, AllergyIntolerance, Annotation, Appointment, AppointmentResponse, Attachment, AuditEvent, BackboneElement, Basic, Binary, BiologicallyDerivedProduct, BodyStructure, Bundle, CapabilityStatement, CarePlan, CareTeam, CatalogEntry, ChargeItem, ChargeItemDefinition, Claim, ClaimResponse, ClinicalImpression, CodeSystem, CodeableConcept, Coding, Communication, CommunicationRequest, CompartmentDefinition, Composition, ConceptMap, Condition, Consent, ContactDetail, ContactPoint, Contract, Contributor, Count, Coverage, CoverageEligibilityRequest, CoverageEligibilityResponse, DataRequirement, Definitions, DetectedIssue, Device, DeviceDefinition, DeviceMetric, DeviceRequest, DeviceUseStatement, DiagnosticReport, Distance, DocumentManifest, DocumentReference, DomainResource, Dosage, Duration, EffectEvidenceSynthesis, Element, ElementDefinition, Encounter, Endpoint, EnrollmentRequest, EnrollmentResponse, EpisodeOfCare, EventDefinition, Evidence, EvidenceVariable, ExampleScenario, ExplanationOfBenefit, Expression, Extension, FamilyMemberHistory, Flag, Goal, GraphDefinition, Group, GuidanceResponse, HealthcareService, HumanName, Identifier, ImagingStudy, Immunization, ImmunizationEvaluation, ImmunizationRecommendation, ImplementationGuide, InsurancePlan, Invoice, Library, Linkage, List, Location, MarketingStatus, Measure, MeasureReport, Media, Medication, MedicationAdministration, MedicationDispense, MedicationKnowledge, MedicationRequest, MedicationStatement, MedicinalProduct, MedicinalProductAuthorization, MedicinalProductContraindication, MedicinalProductIndication, MedicinalProductIngredient, MedicinalProductInteraction, MedicinalProductManufactured, MedicinalProductPackaged, MedicinalProductPharmaceutical, MedicinalProductUndesirableEffect, MessageDefinition, MessageHeader, Meta, MolecularSequence, Money, NamingSystem, Narrative, NutritionOrder, Observation, ObservationDefinition, OperationDefinition, OperationOutcome, Organization, OrganizationAffiliation, PRIMITIVES, ParameterDefinition, Parameters, Patient, PaymentNotice, PaymentReconciliation, Period, Person, PlanDefinition, Population, Practitioner, PractitionerRole, Procedure, ProdCharacteristic, ProductShelfLife, Provenance, Quantity, Questionnaire, QuestionnaireResponse, FHIR::RESOURCES, FHIR::Range, FHIR::Ratio, FHIR::Reference, FHIR::RelatedArtifact, FHIR::RelatedPerson, FHIR::RequestGroup, FHIR::ResearchDefinition, FHIR::ResearchElementDefinition, FHIR::ResearchStudy, FHIR::ResearchSubject, FHIR::Resource, FHIR::RiskAssessment, FHIR::RiskEvidenceSynthesis, SampledData, Schedule, SearchParameter, ServiceRequest, Signature, Slot, Specimen, SpecimenDefinition, StructureDefinition, StructureDefinitionCompare, StructureMap, Subscription, Substance, SubstanceAmount, SubstanceNucleicAcid, SubstancePolymer, SubstanceProtein, SubstanceReferenceInformation, SubstanceSourceMaterial, SubstanceSpecification, SupplyDelivery, SupplyRequest, TYPES, Task, TerminologyCapabilities, TestReport, TestScript, Timing, TriggerDefinition, UsageContext, ValueSet, VerificationResult, VisionPrescription

Constants included from FHIR::R5

PRIMITIVES, RESOURCES, TYPES

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from FHIR::R4

#fhir_version_string, #versioned_fhir_module

Methods included from FHIR

default_logger, fhir_version_string, logger, logger=, primitive?, versioned_fhir_module

Methods included from ClassMethods

#from_contents

Methods included from ClassXml

#from_xml, #valid?, #validate, #xml_node_to_hash

Methods included from InstanceXml

#hash_to_xml_node, #to_xml

Methods included from ClassJson

#from_json

Methods included from InstanceJson

#to_json

Methods included from Hashable

#from_hash, #to_hash

Methods included from FHIR::R5

#fhir_version_string, #versioned_fhir_module

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

Methods included from Deprecate

#deprecate

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

#authoredOnObject

0-1 dateTime



156
157
158
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 156

def authoredOn
  @authoredOn
end

#basedOnObject

0-* [ Reference(CarePlan|MedicationRequest|ServiceRequest|ImmunizationRecommendation) ]



141
142
143
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 141

def basedOn
  @basedOn
end

#categoryObject

0-* [ CodeableConcept ]



148
149
150
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 148

def category
  @category
end

#containedObject

0-* [ Resource ]



137
138
139
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 137

def contained
  @contained
end

#courseOfTherapyTypeObject

0-1 CodeableConcept



164
165
166
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 164

def courseOfTherapyType
  @courseOfTherapyType
end

#deviceObject

0-* [ CodeableReference ]



161
162
163
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 161

def device
  @device
end

#dispenseRequestObject

0-1 MedicationRequest::DispenseRequest



170
171
172
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 170

def dispenseRequest
  @dispenseRequest
end

#doNotPerformObject

0-1 boolean



150
151
152
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 150

def doNotPerform
  @doNotPerform
end

#dosageInstructionObject

0-* [ Dosage ]



169
170
171
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 169

def dosageInstruction
  @dosageInstruction
end

#effectiveDosePeriodObject

0-1 Period



168
169
170
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 168

def effectiveDosePeriod
  @effectiveDosePeriod
end

#encounterObject

0-1 Reference(Encounter)



154
155
156
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 154

def encounter
  @encounter
end

#eventHistoryObject

0-* [ Reference(Provenance) ]



172
173
174
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 172

def eventHistory
  @eventHistory
end

#extensionObject

0-* [ Extension ]



138
139
140
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 138

def extension
  @extension
end

#groupIdentifierObject

0-1 Identifier



143
144
145
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 143

def groupIdentifier
  @groupIdentifier
end

#idObject

0-1 id



132
133
134
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 132

def id
  @id
end

#identifierObject

0-* [ Identifier ]



140
141
142
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 140

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



134
135
136
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 134

def implicitRules
  @implicitRules
end

#informationSourceObject

0-* [ Reference(Patient|Practitioner|PractitionerRole|RelatedPerson|Organization) ]



153
154
155
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 153

def informationSource
  @informationSource
end

#insuranceObject

0-* [ Reference(Coverage|ClaimResponse) ]



165
166
167
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 165

def insurance
  @insurance
end

#intentObject

1-1 code



147
148
149
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 147

def intent
  @intent
end

#languageObject

0-1 code



135
136
137
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 135

def language
  @language
end

#medicationObject

1-1 CodeableReference



151
152
153
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 151

def medication
  @medication
end

#metaObject

0-1 Meta



133
134
135
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 133

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



139
140
141
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 139

def modifierExtension
  @modifierExtension
end

#noteObject

0-* [ Annotation ]



166
167
168
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 166

def note
  @note
end

#performerObject

0-* [ Reference(Practitioner|PractitionerRole|Organization|Patient|DeviceDefinition|RelatedPerson|CareTeam|HealthcareService) ]



160
161
162
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 160

def performer
  @performer
end

#performerTypeObject

0-1 CodeableConcept



159
160
161
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 159

def performerType
  @performerType
end

#priorityObject

0-1 code



149
150
151
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 149

def priority
  @priority
end

#priorPrescriptionObject

0-1 Reference(MedicationRequest)



142
143
144
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 142

def priorPrescription
  @priorPrescription
end

#reasonObject

0-* [ CodeableReference ]



163
164
165
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 163

def reason
  @reason
end

#recorderObject

0-1 Reference(Practitioner|PractitionerRole)



162
163
164
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 162

def recorder
  @recorder
end

#renderedDosageInstructionObject

0-1 markdown



167
168
169
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 167

def renderedDosageInstruction
  @renderedDosageInstruction
end

#reportedObject

0-1 boolean



158
159
160
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 158

def reported
  @reported
end

#requesterObject

0-1 Reference(Practitioner|PractitionerRole|Organization|Patient|RelatedPerson|Device)



157
158
159
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 157

def requester
  @requester
end

#statusObject

1-1 code



144
145
146
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 144

def status
  @status
end

#statusChangedObject

0-1 dateTime



146
147
148
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 146

def statusChanged
  @statusChanged
end

#statusReasonObject

0-1 CodeableConcept



145
146
147
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 145

def statusReason
  @statusReason
end

#subjectObject

1-1 Reference(Patient|Group)



152
153
154
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 152

def subject
  @subject
end

#substitutionObject

0-1 MedicationRequest::Substitution



171
172
173
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 171

def substitution
  @substitution
end

#supportingInformationObject

0-* [ Reference(Resource) ]



155
156
157
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 155

def supportingInformation
  @supportingInformation
end

#textObject

0-1 Narrative



136
137
138
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 136

def text
  @text
end

Instance Method Details

#resourceTypeObject



174
175
176
# File 'lib/fhir_models/r5/generated/resources/MedicationRequest.rb', line 174

def resourceType
  'MedicationRequest'
end