Class: FHIR::R5::NutritionIntake

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

Defined Under Namespace

Classes: ConsumedItem, IngredientLabel, Performer

Constant Summary collapse

MULTIPLE_TYPES =
{
  'occurrence' => ['dateTime', 'Period'],
  'reported' => ['boolean', 'Reference']
}
SEARCH_PARAMS =
['code', 'date', 'encounter', 'identifier', 'nutrition', 'patient', 'source', 'status', 'subject']
METADATA =
{
  'id' => {'type'=>'id', 'path'=>'NutritionIntake.id', 'min'=>0, 'max'=>1},
  'meta' => {'type'=>'Meta', 'path'=>'NutritionIntake.meta', 'min'=>0, 'max'=>1},
  'implicitRules' => {'type'=>'uri', 'path'=>'NutritionIntake.implicitRules', 'min'=>0, 'max'=>1},
  'language' => {'type'=>'code', 'path'=>'NutritionIntake.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'=>'NutritionIntake.text', 'min'=>0, 'max'=>1},
  'contained' => {'type'=>'Resource', 'path'=>'NutritionIntake.contained', 'min'=>0, 'max'=>Float::INFINITY},
  'extension' => {'type'=>'Extension', 'path'=>'NutritionIntake.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'NutritionIntake.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'identifier' => {'type'=>'Identifier', 'path'=>'NutritionIntake.identifier', 'min'=>0, 'max'=>Float::INFINITY},
  'instantiatesCanonical' => {'type'=>'canonical', 'path'=>'NutritionIntake.instantiatesCanonical', 'min'=>0, 'max'=>Float::INFINITY},
  'instantiatesUri' => {'type'=>'uri', 'path'=>'NutritionIntake.instantiatesUri', 'min'=>0, 'max'=>Float::INFINITY},
  'basedOn' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/NutritionOrder', 'http://hl7.org/fhir/StructureDefinition/CarePlan', 'http://hl7.org/fhir/StructureDefinition/ServiceRequest'], 'type'=>'Reference', 'path'=>'NutritionIntake.basedOn', 'min'=>0, 'max'=>Float::INFINITY},
  'partOf' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/NutritionIntake', 'http://hl7.org/fhir/StructureDefinition/Procedure', 'http://hl7.org/fhir/StructureDefinition/Observation'], 'type'=>'Reference', 'path'=>'NutritionIntake.partOf', 'min'=>0, 'max'=>Float::INFINITY},
  'status' => {'valid_codes'=>{'http://hl7.org/fhir/event-status'=>['preparation', 'in-progress', 'not-done', 'on-hold', 'stopped', 'completed', 'entered-in-error', 'unknown']}, 'type'=>'code', 'path'=>'NutritionIntake.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/event-status'}},
  'statusReason' => {'valid_codes'=>{'http://snomed.info/sct'=>['397709008', '105480006', '719500002', '445060000', '704273008', '704274002', '704458005', '704275001', '704276000', '704277009', '398090008']}, 'type'=>'CodeableConcept', 'path'=>'NutritionIntake.statusReason', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/clinicalimpression-status-reason'}},
  'code' => {'valid_codes'=>{'http://snomed.info/sct'=>['182922004', '38903004', '50712000', '56948003', '61420007', '183028005', '223456000', '225373002', '225374008', '229912004', '229913009', '229914003', '229915002', '229916001', '229917005', '284071006', '289133003', '310244003', '386261001', '404919001', '422972009', '425458000', '762104002', '765021002', '765022009', '765023004', '765024005', '765025006', '765052001', '765053006', '765060000', '765063003', '792805006', '1052337007', '1055200005', '1055201009', '1055202002', '1055203007', '1055204001', '1055207008', '1137465007', '1141680002', '1141683000', '1141684006', '1141931005', '1141932003', '1141933008', '1141934002', '1141935001', '1141936000', '1142125005', '1142126006', '1142127002', '1142128007', '1142129004', '1142131008', '1142132001', '1142133006', '1142162007', '1142163002', '1142164008', '1142165009', '1142166005', '1142167001', '1144595005', '1144596006', '1144598007', '1144599004', '1144600001', '1144601002', '1144800003', '1144801004', '1144802006', '1144804007', '1144806009', '1144808005', '1144996003', '1144999005', '1145000005', '1148495004', '1148496003', '1148497007', '1148499005', '1148501002', '1148502009', '1155728004', '1155729007', '1156314000', '1156315004', '1156443007', '1156444001', '1156717005', '1156718000', '1156719008', '1162720001', '1162721002', '1162722009', '1162724005', '1162725006', '1162726007', '1162729000', '1230134005', '1230138008', '1151000175103', '435581000124102', '435651000124106', '435661000124108', '435671000124101', '435681000124103', '435691000124100', '435701000124100', '435731000124108', '435741000124103', '435751000124101', '435771000124106', '435781000124109', '435801000124108', '435811000124106', '436661000124100', '436671000124107', '436681000124105', '436691000124108', '436701000124108', '436711000124106', '436721000124103', '436731000124100', '436871000124106', '436881000124109', '436891000124107', '436901000124106', '436911000124109', '436921000124101', '436931000124103', '436941000124108', '436951000124105', '436961000124107', '437011000124105', '437021000124102', '437031000124104', '437041000124109', '437051000124106', '437061000124108', '437081000124103', '437091000124100', '437111000124109', '437121000124101', '437131000124103', '437141000124108', '437151000124105', '437161000124107', '437171000124100', '437181000124102', '437191000124104', '437201000124101', '437211000124103', '437221000124106', '437231000124109', '437251000124102', '437261000124100', '437271000124107', '437281000124105', '437291000124108', '437301000124109', '437311000124107', '437321000124104', '437331000124101', '437341000124106', '437351000124108', '437361000124105', '437371000124103', '437381000124100', '437391000124102', '437401000124100', '437411000124102', '437421000124105', '437431000124108', '437441000124103', '437481000124109', '437491000124107', '437501000124104', '437511000124101', '437521000124109', '437531000124107', '437541000124102', '437551000124100', '437561000124103', '437571000124105', '437581000124108', '437591000124106', '437601000124103', '437611000124100', '437621000124108', '437631000124106', '437641000124101', '437651000124104', '437661000124102', '437671000124109', '437681000124107', '437691000124105', '437701000124105', '437711000124108', '437721000124100', '437731000124102', '437741000124107', '437751000124109', '437761000124106', '437771000124104', '437781000124101', '437791000124103', '437801000124102', '437811000124104', '437821000124107', '437831000124105', '437841000124100', '437851000124103', '437861000124101', '437871000124108', '438001000124106', '438021000124101', '438031000124103', '438041000124108', '438051000124105', '438091000124104', '438131000124102', '438141000124107', '438171000124104', '438181000124101', '438191000124103', '438201000124100', '438211000124102', '438221000124105', '438231000124108', '438241000124103', '438311000124106', '438321000124103', '439021000124105', '439031000124108', '439041000124103', '439061000124104', '439071000124106', '439081000124109', '439101000124101', '439111000124103', '439121000124106', '445341000124100', '445351000124103']}, 'type'=>'CodeableConcept', 'path'=>'NutritionIntake.code', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/diet-type'}},
  'subject' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Group'], 'type'=>'Reference', 'path'=>'NutritionIntake.subject', 'min'=>1, 'max'=>1},
  'encounter' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Encounter'], 'type'=>'Reference', 'path'=>'NutritionIntake.encounter', 'min'=>0, 'max'=>1},
  'occurrenceDateTime' => {'type'=>'dateTime', 'path'=>'NutritionIntake.occurrence[x]', 'min'=>0, 'max'=>1},
  'occurrencePeriod' => {'type'=>'Period', 'path'=>'NutritionIntake.occurrence[x]', 'min'=>0, 'max'=>1},
  'recorded' => {'type'=>'dateTime', 'path'=>'NutritionIntake.recorded', 'min'=>0, 'max'=>1},
  'reportedBoolean' => {'type'=>'boolean', 'path'=>'NutritionIntake.reported[x]', 'min'=>0, 'max'=>1},
  'reportedReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'NutritionIntake.reported[x]', 'min'=>0, 'max'=>1},
  'consumedItem' => {'type'=>'NutritionIntake::ConsumedItem', 'path'=>'NutritionIntake.consumedItem', 'min'=>1, 'max'=>Float::INFINITY},
  'ingredientLabel' => {'type'=>'NutritionIntake::IngredientLabel', 'path'=>'NutritionIntake.ingredientLabel', 'min'=>0, 'max'=>Float::INFINITY},
  'performer' => {'type'=>'NutritionIntake::Performer', 'path'=>'NutritionIntake.performer', 'min'=>0, 'max'=>Float::INFINITY},
  'location' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Location'], 'type'=>'Reference', 'path'=>'NutritionIntake.location', 'min'=>0, 'max'=>1},
  'derivedFrom' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'NutritionIntake.derivedFrom', 'min'=>0, 'max'=>Float::INFINITY},
  'reason' => {'type'=>'CodeableReference', 'path'=>'NutritionIntake.reason', 'min'=>0, 'max'=>Float::INFINITY},
  'note' => {'type'=>'Annotation', 'path'=>'NutritionIntake.note', '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

#basedOnObject

0-* [ Reference(NutritionOrder|CarePlan|ServiceRequest) ]



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

def basedOn
  @basedOn
end

#codeObject

0-1 CodeableConcept



131
132
133
# File 'lib/fhir_models/r5/generated/resources/NutritionIntake.rb', line 131

def code
  @code
end

#consumedItemObject

1-* [ NutritionIntake::ConsumedItem ]



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

def consumedItem
  @consumedItem
end

#containedObject

0-* [ Resource ]



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

def contained
  @contained
end

#derivedFromObject

0-* [ Reference(Resource) ]



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

def derivedFrom
  @derivedFrom
end

#encounterObject

0-1 Reference(Encounter)



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

def encounter
  @encounter
end

#extensionObject

0-* [ Extension ]



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

def extension
  @extension
end

#idObject

0-1 id



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

def id
  @id
end

#identifierObject

0-* [ Identifier ]



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

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



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

def implicitRules
  @implicitRules
end

#ingredientLabelObject

0-* [ NutritionIntake::IngredientLabel ]



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

def ingredientLabel
  @ingredientLabel
end

#instantiatesCanonicalObject

0-* [ canonical ]



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

def instantiatesCanonical
  @instantiatesCanonical
end

#instantiatesUriObject

0-* [ uri ]



126
127
128
# File 'lib/fhir_models/r5/generated/resources/NutritionIntake.rb', line 126

def instantiatesUri
  @instantiatesUri
end

#languageObject

0-1 code



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

def language
  @language
end

#locationObject

0-1 Reference(Location)



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

def location
  @location
end

#metaObject

0-1 Meta



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

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



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

def modifierExtension
  @modifierExtension
end

#noteObject

0-* [ Annotation ]



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

def note
  @note
end

#occurrenceDateTimeObject

0-1 dateTime



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

def occurrenceDateTime
  @occurrenceDateTime
end

#occurrencePeriodObject

0-1 Period



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

def occurrencePeriod
  @occurrencePeriod
end

#partOfObject

0-* [ Reference(NutritionIntake|Procedure|Observation) ]



128
129
130
# File 'lib/fhir_models/r5/generated/resources/NutritionIntake.rb', line 128

def partOf
  @partOf
end

#performerObject

0-* [ NutritionIntake::Performer ]



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

def performer
  @performer
end

#reasonObject

0-* [ CodeableReference ]



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

def reason
  @reason
end

#recordedObject

0-1 dateTime



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

def recorded
  @recorded
end

#reportedBooleanObject

0-1 boolean



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

def reportedBoolean
  @reportedBoolean
end

#reportedReferenceObject

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



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

def reportedReference
  @reportedReference
end

#statusObject

1-1 code



129
130
131
# File 'lib/fhir_models/r5/generated/resources/NutritionIntake.rb', line 129

def status
  @status
end

#statusReasonObject

0-* [ CodeableConcept ]



130
131
132
# File 'lib/fhir_models/r5/generated/resources/NutritionIntake.rb', line 130

def statusReason
  @statusReason
end

#subjectObject

1-1 Reference(Patient|Group)



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

def subject
  @subject
end

#textObject

0-1 Narrative



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

def text
  @text
end

Instance Method Details

#resourceTypeObject



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

def resourceType
  'NutritionIntake'
end