Class: FHIR::R5::MedicationDispense

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

Defined Under Namespace

Classes: Performer, Substitution

Constant Summary collapse

SEARCH_PARAMS =
['code', 'destination', 'encounter', 'identifier', 'location', 'medication', 'patient', 'performer', 'prescription', 'receiver', 'recorded', 'responsibleparty', 'status', 'subject', 'type', 'whenhandedover', 'whenprepared']
METADATA =
{
  'id' => {'type'=>'id', 'path'=>'MedicationDispense.id', 'min'=>0, 'max'=>1},
  'meta' => {'type'=>'Meta', 'path'=>'MedicationDispense.meta', 'min'=>0, 'max'=>1},
  'implicitRules' => {'type'=>'uri', 'path'=>'MedicationDispense.implicitRules', 'min'=>0, 'max'=>1},
  'language' => {'type'=>'code', 'path'=>'MedicationDispense.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'=>'MedicationDispense.text', 'min'=>0, 'max'=>1},
  'contained' => {'type'=>'Resource', 'path'=>'MedicationDispense.contained', 'min'=>0, 'max'=>Float::INFINITY},
  'extension' => {'type'=>'Extension', 'path'=>'MedicationDispense.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'MedicationDispense.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'identifier' => {'type'=>'Identifier', 'path'=>'MedicationDispense.identifier', 'min'=>0, 'max'=>Float::INFINITY},
  'basedOn' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/CarePlan'], 'type'=>'Reference', 'path'=>'MedicationDispense.basedOn', 'min'=>0, 'max'=>Float::INFINITY},
  'partOf' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Procedure', 'http://hl7.org/fhir/StructureDefinition/MedicationAdministration'], 'type'=>'Reference', 'path'=>'MedicationDispense.partOf', 'min'=>0, 'max'=>Float::INFINITY},
  'status' => {'valid_codes'=>{'http://hl7.org/fhir/CodeSystem/medicationdispense-status'=>['preparation', 'in-progress', 'cancelled', 'on-hold', 'completed', 'entered-in-error', 'stopped', 'declined', 'unknown']}, 'type'=>'code', 'path'=>'MedicationDispense.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/medicationdispense-status'}},
  'notPerformedReason' => {'type'=>'CodeableReference', 'path'=>'MedicationDispense.notPerformedReason', 'min'=>0, 'max'=>1},
  'statusChanged' => {'type'=>'dateTime', 'path'=>'MedicationDispense.statusChanged', 'min'=>0, 'max'=>1},
  'category' => {'valid_codes'=>{'http://hl7.org/fhir/medicationdispense-admin-location'=>['inpatient', 'outpatient', 'community']}, 'type'=>'CodeableConcept', 'path'=>'MedicationDispense.category', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/medicationdispense-admin-location'}},
  'medication' => {'type'=>'CodeableReference', 'path'=>'MedicationDispense.medication', 'min'=>1, 'max'=>1},
  'subject' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Group'], 'type'=>'Reference', 'path'=>'MedicationDispense.subject', 'min'=>1, 'max'=>1},
  'encounter' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Encounter'], 'type'=>'Reference', 'path'=>'MedicationDispense.encounter', 'min'=>0, 'max'=>1},
  'supportingInformation' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'MedicationDispense.supportingInformation', 'min'=>0, 'max'=>Float::INFINITY},
  'performer' => {'type'=>'MedicationDispense::Performer', 'path'=>'MedicationDispense.performer', 'min'=>0, 'max'=>Float::INFINITY},
  'location' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Location'], 'type'=>'Reference', 'path'=>'MedicationDispense.location', 'min'=>0, 'max'=>1},
  'authorizingPrescription' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/MedicationRequest'], 'type'=>'Reference', 'path'=>'MedicationDispense.authorizingPrescription', 'min'=>0, 'max'=>Float::INFINITY},
  'type' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/v3-ActCode'=>['DF', 'EM', 'SO', 'FF', 'FFS', 'FFPS', 'FFCS', 'TFS', 'FFC', 'FFP', 'FFSS', 'TF', 'FS', 'MS', 'RF', 'UD', 'RFC', 'RFCS', 'RFF', 'RFFS', 'RFP', 'RFPS', 'RFS', 'TB', 'TBS', 'UDE']}, 'type'=>'CodeableConcept', 'path'=>'MedicationDispense.type', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://terminology.hl7.org/ValueSet/v3-ActPharmacySupplyType'}},
  'quantity' => {'type'=>'Quantity', 'path'=>'MedicationDispense.quantity', 'min'=>0, 'max'=>1},
  'daysSupply' => {'type'=>'Quantity', 'path'=>'MedicationDispense.daysSupply', 'min'=>0, 'max'=>1},
  'recorded' => {'type'=>'dateTime', 'path'=>'MedicationDispense.recorded', 'min'=>0, 'max'=>1},
  'whenPrepared' => {'type'=>'dateTime', 'path'=>'MedicationDispense.whenPrepared', 'min'=>0, 'max'=>1},
  'whenHandedOver' => {'type'=>'dateTime', 'path'=>'MedicationDispense.whenHandedOver', 'min'=>0, 'max'=>1},
  'destination' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Location'], 'type'=>'Reference', 'path'=>'MedicationDispense.destination', 'min'=>0, 'max'=>1},
  'receiver' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'http://hl7.org/fhir/StructureDefinition/Location', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole'], 'type'=>'Reference', 'path'=>'MedicationDispense.receiver', 'min'=>0, 'max'=>Float::INFINITY},
  'note' => {'type'=>'Annotation', 'path'=>'MedicationDispense.note', 'min'=>0, 'max'=>Float::INFINITY},
  'renderedDosageInstruction' => {'type'=>'markdown', 'path'=>'MedicationDispense.renderedDosageInstruction', 'min'=>0, 'max'=>1},
  'dosageInstruction' => {'type'=>'Dosage', 'path'=>'MedicationDispense.dosageInstruction', 'min'=>0, 'max'=>Float::INFINITY},
  'substitution' => {'type'=>'MedicationDispense::Substitution', 'path'=>'MedicationDispense.substitution', 'min'=>0, 'max'=>1},
  'eventHistory' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Provenance'], 'type'=>'Reference', 'path'=>'MedicationDispense.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

#authorizingPrescriptionObject

0-* [ Reference(MedicationRequest) ]



112
113
114
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 112

def authorizingPrescription
  @authorizingPrescription
end

#basedOnObject

0-* [ Reference(CarePlan) ]



100
101
102
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 100

def basedOn
  @basedOn
end

#categoryObject

0-* [ CodeableConcept ]



105
106
107
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 105

def category
  @category
end

#containedObject

0-* [ Resource ]



96
97
98
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 96

def contained
  @contained
end

#daysSupplyObject

0-1 Quantity



115
116
117
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 115

def daysSupply
  @daysSupply
end

#destinationObject

0-1 Reference(Location)



119
120
121
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 119

def destination
  @destination
end

#dosageInstructionObject

0-* [ Dosage ]



123
124
125
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 123

def dosageInstruction
  @dosageInstruction
end

#encounterObject

0-1 Reference(Encounter)



108
109
110
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 108

def encounter
  @encounter
end

#eventHistoryObject

0-* [ Reference(Provenance) ]



125
126
127
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 125

def eventHistory
  @eventHistory
end

#extensionObject

0-* [ Extension ]



97
98
99
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 97

def extension
  @extension
end

#idObject

0-1 id



91
92
93
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 91

def id
  @id
end

#identifierObject

0-* [ Identifier ]



99
100
101
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 99

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



93
94
95
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 93

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



94
95
96
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 94

def language
  @language
end

#locationObject

0-1 Reference(Location)



111
112
113
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 111

def location
  @location
end

#medicationObject

1-1 CodeableReference



106
107
108
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 106

def medication
  @medication
end

#metaObject

0-1 Meta



92
93
94
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 92

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



98
99
100
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 98

def modifierExtension
  @modifierExtension
end

#noteObject

0-* [ Annotation ]



121
122
123
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 121

def note
  @note
end

#notPerformedReasonObject

0-1 CodeableReference



103
104
105
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 103

def notPerformedReason
  @notPerformedReason
end

#partOfObject

0-* [ Reference(Procedure|MedicationAdministration) ]



101
102
103
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 101

def partOf
  @partOf
end

#performerObject

0-* [ MedicationDispense::Performer ]



110
111
112
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 110

def performer
  @performer
end

#quantityObject

0-1 Quantity



114
115
116
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 114

def quantity
  @quantity
end

#receiverObject

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



120
121
122
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 120

def receiver
  @receiver
end

#recordedObject

0-1 dateTime



116
117
118
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 116

def recorded
  @recorded
end

#renderedDosageInstructionObject

0-1 markdown



122
123
124
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 122

def renderedDosageInstruction
  @renderedDosageInstruction
end

#statusObject

1-1 code



102
103
104
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 102

def status
  @status
end

#statusChangedObject

0-1 dateTime



104
105
106
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 104

def statusChanged
  @statusChanged
end

#subjectObject

1-1 Reference(Patient|Group)



107
108
109
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 107

def subject
  @subject
end

#substitutionObject

0-1 MedicationDispense::Substitution



124
125
126
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 124

def substitution
  @substitution
end

#supportingInformationObject

0-* [ Reference(Resource) ]



109
110
111
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 109

def supportingInformation
  @supportingInformation
end

#textObject

0-1 Narrative



95
96
97
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 95

def text
  @text
end

#typeObject

0-1 CodeableConcept



113
114
115
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 113

def type
  @type
end

#whenHandedOverObject

0-1 dateTime



118
119
120
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 118

def whenHandedOver
  @whenHandedOver
end

#whenPreparedObject

0-1 dateTime



117
118
119
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 117

def whenPrepared
  @whenPrepared
end

Instance Method Details

#resourceTypeObject



127
128
129
# File 'lib/fhir_models/r5/generated/resources/MedicationDispense.rb', line 127

def resourceType
  'MedicationDispense'
end