fhir_models 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +0 -1
- data/Gemfile.lock +1 -1
- data/Rakefile +0 -1
- data/fhir_models.gemspec +1 -1
- data/lib/fhir/metadata.rb +25 -0
- data/lib/fhir/resources/Account.rb +54 -0
- data/lib/fhir/resources/AllergyIntolerance.rb +92 -0
- data/lib/fhir/resources/Appointment.rb +88 -0
- data/lib/fhir/resources/AppointmentResponse.rb +48 -0
- data/lib/fhir/resources/AuditEvent.rb +188 -0
- data/lib/fhir/resources/Basic.rb +42 -0
- data/lib/fhir/resources/Binary.rb +28 -0
- data/lib/fhir/resources/BodySite.rb +44 -0
- data/lib/fhir/resources/Bundle.rb +154 -0
- data/lib/fhir/resources/CarePlan.rb +184 -0
- data/lib/fhir/resources/CareTeam.rb +70 -0
- data/lib/fhir/resources/Claim.rb +490 -0
- data/lib/fhir/resources/ClaimResponse.rb +421 -0
- data/lib/fhir/resources/ClinicalImpression.rb +131 -0
- data/lib/fhir/resources/CodeSystem.rb +225 -0
- data/lib/fhir/resources/Communication.rb +83 -0
- data/lib/fhir/resources/CommunicationRequest.rb +90 -0
- data/lib/fhir/resources/CompartmentDefinition.rb +98 -0
- data/lib/fhir/resources/Composition.rb +136 -0
- data/lib/fhir/resources/ConceptMap.rb +168 -0
- data/lib/fhir/resources/Condition.rb +126 -0
- data/lib/fhir/resources/Conformance.rb +442 -0
- data/lib/fhir/resources/Contract.rb +320 -0
- data/lib/fhir/resources/Coverage.rb +77 -0
- data/lib/fhir/resources/DataElement.rb +104 -0
- data/lib/fhir/resources/DecisionSupportRule.rb +42 -0
- data/lib/fhir/resources/DecisionSupportServiceModule.rb +40 -0
- data/lib/fhir/resources/DetectedIssue.rb +74 -0
- data/lib/fhir/resources/Device.rb +64 -0
- data/lib/fhir/resources/DeviceComponent.rb +74 -0
- data/lib/fhir/resources/DeviceMetric.rb +74 -0
- data/lib/fhir/resources/DeviceUseRequest.rb +68 -0
- data/lib/fhir/resources/DeviceUseStatement.rb +60 -0
- data/lib/fhir/resources/DiagnosticOrder.rb +106 -0
- data/lib/fhir/resources/DiagnosticReport.rb +91 -0
- data/lib/fhir/resources/DocumentManifest.rb +99 -0
- data/lib/fhir/resources/DocumentReference.rb +156 -0
- data/lib/fhir/resources/DomainResource.rb +32 -0
- data/lib/fhir/resources/EligibilityRequest.rb +90 -0
- data/lib/fhir/resources/EligibilityResponse.rb +152 -0
- data/lib/fhir/resources/Encounter.rb +172 -0
- data/lib/fhir/resources/EnrollmentRequest.rb +52 -0
- data/lib/fhir/resources/EnrollmentResponse.rb +52 -0
- data/lib/fhir/resources/EpisodeOfCare.rb +74 -0
- data/lib/fhir/resources/ExpansionProfile.rb +284 -0
- data/lib/fhir/resources/ExplanationOfBenefit.rb +764 -0
- data/lib/fhir/resources/FamilyMemberHistory.rb +110 -0
- data/lib/fhir/resources/Flag.rb +48 -0
- data/lib/fhir/resources/Goal.rb +91 -0
- data/lib/fhir/resources/Group.rb +105 -0
- data/lib/fhir/resources/GuidanceResponse.rb +139 -0
- data/lib/fhir/resources/HealthcareService.rb +122 -0
- data/lib/fhir/resources/ImagingExcerpt.rb +210 -0
- data/lib/fhir/resources/ImagingObjectSelection.rb +136 -0
- data/lib/fhir/resources/ImagingStudy.rb +130 -0
- data/lib/fhir/resources/Immunization.rb +148 -0
- data/lib/fhir/resources/ImmunizationRecommendation.rb +114 -0
- data/lib/fhir/resources/ImplementationGuide.rb +211 -0
- data/lib/fhir/resources/Library.rb +145 -0
- data/lib/fhir/resources/Linkage.rb +56 -0
- data/lib/fhir/resources/List.rb +82 -0
- data/lib/fhir/resources/Location.rb +78 -0
- data/lib/fhir/resources/Measure.rb +160 -0
- data/lib/fhir/resources/MeasureReport.rb +204 -0
- data/lib/fhir/resources/Media.rb +56 -0
- data/lib/fhir/resources/Medication.rb +154 -0
- data/lib/fhir/resources/MedicationAdministration.rb +104 -0
- data/lib/fhir/resources/MedicationDispense.rb +141 -0
- data/lib/fhir/resources/MedicationOrder.rb +172 -0
- data/lib/fhir/resources/MedicationStatement.rb +117 -0
- data/lib/fhir/resources/MessageHeader.rb +124 -0
- data/lib/fhir/resources/ModuleDefinition.rb +249 -0
- data/lib/fhir/resources/NamingSystem.rb +102 -0
- data/lib/fhir/resources/NutritionOrder.rb +211 -0
- data/lib/fhir/resources/Observation.rb +187 -0
- data/lib/fhir/resources/OperationDefinition.rb +153 -0
- data/lib/fhir/resources/OperationOutcome.rb +62 -0
- data/lib/fhir/resources/Order.rb +73 -0
- data/lib/fhir/resources/OrderResponse.rb +46 -0
- data/lib/fhir/resources/OrderSet.rb +38 -0
- data/lib/fhir/resources/Organization.rb +72 -0
- data/lib/fhir/resources/Parameters.rb +117 -0
- data/lib/fhir/resources/Patient.rb +166 -0
- data/lib/fhir/resources/PaymentNotice.rb +71 -0
- data/lib/fhir/resources/PaymentReconciliation.rb +140 -0
- data/lib/fhir/resources/Person.rb +72 -0
- data/lib/fhir/resources/Practitioner.rb +110 -0
- data/lib/fhir/resources/PractitionerRole.rb +102 -0
- data/lib/fhir/resources/Procedure.rb +122 -0
- data/lib/fhir/resources/ProcedureRequest.rb +73 -0
- data/lib/fhir/resources/ProcessRequest.rb +99 -0
- data/lib/fhir/resources/ProcessResponse.rb +92 -0
- data/lib/fhir/resources/Protocol.rb +242 -0
- data/lib/fhir/resources/Provenance.rb +122 -0
- data/lib/fhir/resources/Questionnaire.rb +205 -0
- data/lib/fhir/resources/QuestionnaireResponse.rb +123 -0
- data/lib/fhir/resources/ReferralRequest.rb +68 -0
- data/lib/fhir/resources/RelatedPerson.rb +52 -0
- data/lib/fhir/resources/Resource.rb +24 -0
- data/lib/fhir/resources/RiskAssessment.rb +88 -0
- data/lib/fhir/resources/Schedule.rb +46 -0
- data/lib/fhir/resources/SearchParameter.rb +86 -0
- data/lib/fhir/resources/Sequence.rb +238 -0
- data/lib/fhir/resources/Slot.rb +54 -0
- data/lib/fhir/resources/Specimen.rb +140 -0
- data/lib/fhir/resources/StructureDefinition.rb +164 -0
- data/lib/fhir/resources/StructureMap.rb +297 -0
- data/lib/fhir/resources/Subscription.rb +72 -0
- data/lib/fhir/resources/Substance.rb +86 -0
- data/lib/fhir/resources/SupplyDelivery.rb +54 -0
- data/lib/fhir/resources/SupplyRequest.rb +77 -0
- data/lib/fhir/resources/Task.rb +240 -0
- data/lib/fhir/resources/TestScript.rb +692 -0
- data/lib/fhir/resources/ValueSet.rb +289 -0
- data/lib/fhir/resources/VisionPrescription.rb +97 -0
- data/lib/fhir/types/ActionDefinition.rb +109 -0
- data/lib/fhir/types/Address.rb +36 -0
- data/lib/fhir/types/Annotation.rb +27 -0
- data/lib/fhir/types/Attachment.rb +32 -0
- data/lib/fhir/types/BackboneElement.rb +18 -0
- data/lib/fhir/types/CodeableConcept.rb +20 -0
- data/lib/fhir/types/Coding.rb +26 -0
- data/lib/fhir/types/ContactPoint.rb +26 -0
- data/lib/fhir/types/DataRequirement.rb +78 -0
- data/lib/fhir/types/Element.rb +16 -0
- data/lib/fhir/types/ElementDefinition.rb +605 -0
- data/lib/fhir/types/Extension.rb +87 -0
- data/lib/fhir/types/HumanName.rb +30 -0
- data/lib/fhir/types/Identifier.rb +28 -0
- data/lib/fhir/types/Meta.rb +26 -0
- data/lib/fhir/types/ModuleMetadata.rb +152 -0
- data/lib/fhir/types/Narrative.rb +20 -0
- data/lib/fhir/types/ParameterDefinition.rb +30 -0
- data/lib/fhir/types/Period.rb +20 -0
- data/lib/fhir/types/Quantity.rb +26 -0
- data/lib/fhir/types/Range.rb +20 -0
- data/lib/fhir/types/Ratio.rb +20 -0
- data/lib/fhir/types/Reference.rb +20 -0
- data/lib/fhir/types/SampledData.rb +30 -0
- data/lib/fhir/types/Signature.rb +31 -0
- data/lib/fhir/types/Timing.rb +69 -0
- data/lib/fhir/types/TriggerDefinition.rb +33 -0
- data/lib/fhir_models.rb +2 -2
- data/lib/tasks/tasks.rake +29 -0
- metadata +145 -2
@@ -0,0 +1,211 @@
|
|
1
|
+
module FHIR
|
2
|
+
class NutritionOrder < FHIR::Model
|
3
|
+
include FHIR::Hashable
|
4
|
+
include FHIR::Json
|
5
|
+
include FHIR::Xml
|
6
|
+
|
7
|
+
SEARCH_PARAMS = ["additive", "datetime", "encounter", "formula", "identifier", "oraldiet", "patient", "provider", "status", "supplement"]
|
8
|
+
METADATA = {
|
9
|
+
'id' => {'type'=>'id', 'path'=>'NutritionOrder.id', 'min'=>0, 'max'=>1},
|
10
|
+
'meta' => {'type'=>'Meta', 'path'=>'NutritionOrder.meta', 'min'=>0, 'max'=>1},
|
11
|
+
'implicitRules' => {'type'=>'uri', 'path'=>'NutritionOrder.implicitRules', 'min'=>0, 'max'=>1},
|
12
|
+
'language' => {'type'=>'code', 'path'=>'NutritionOrder.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
|
13
|
+
'text' => {'type'=>'Narrative', 'path'=>'NutritionOrder.text', 'min'=>0, 'max'=>1},
|
14
|
+
'contained' => {'type'=>'Resource', 'path'=>'NutritionOrder.contained', 'min'=>0, 'max'=>Float::INFINITY},
|
15
|
+
'extension' => {'type'=>'Extension', 'path'=>'NutritionOrder.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
16
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'NutritionOrder.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
17
|
+
'identifier' => {'type'=>'Identifier', 'path'=>'NutritionOrder.identifier', 'min'=>0, 'max'=>Float::INFINITY},
|
18
|
+
'status' => {'valid_codes'=>{'http://hl7.org/fhir/nutrition-order-status'=>['proposed', 'draft', 'planned', 'requested', 'active', 'on-hold', 'completed', 'cancelled', 'entered-in-error']}, 'type'=>'code', 'path'=>'NutritionOrder.status', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/nutrition-order-status'}},
|
19
|
+
'patient' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient'], 'type'=>'Reference', 'path'=>'NutritionOrder.patient', 'min'=>1, 'max'=>1},
|
20
|
+
'encounter' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Encounter'], 'type'=>'Reference', 'path'=>'NutritionOrder.encounter', 'min'=>0, 'max'=>1},
|
21
|
+
'dateTime' => {'type'=>'dateTime', 'path'=>'NutritionOrder.dateTime', 'min'=>1, 'max'=>1},
|
22
|
+
'orderer' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner'], 'type'=>'Reference', 'path'=>'NutritionOrder.orderer', 'min'=>0, 'max'=>1},
|
23
|
+
'allergyIntolerance' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/AllergyIntolerance'], 'type'=>'Reference', 'path'=>'NutritionOrder.allergyIntolerance', 'min'=>0, 'max'=>Float::INFINITY},
|
24
|
+
'foodPreferenceModifier' => {'valid_codes'=>{'http://hl7.org/fhir/diet'=>['vegetarian', 'dairy-free', 'nut-free', 'gluten-free', 'vegan', 'halal', 'kosher']}, 'type'=>'CodeableConcept', 'path'=>'NutritionOrder.foodPreferenceModifier', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/encounter-diet'}},
|
25
|
+
'excludeFoodModifier' => {'valid_codes'=>{'http://snomed.info/sct'=>['3718001', '4700006', '7661006', '7791007', '10249006', '10827009', '13577000', '14263006', '22836000', '23182003', '24515005', '25743006', '28230009', '28647000', '28942008', '39102003', '41834005', '43708003', '44027008', '44632005', '46329000', '50479000', '50593009', '51905005', '53875002', '54041009', '63045006', '63766005', '67324005', '70813002', '72511004', '74242007', '75476008', '77722008', '80743002', '82450006', '82566005', '83235009', '83595008', '85668006', '89707004', '89811004', '90677004', '91606004', '96364008', '102259006', '102260001', '102261002', '102262009', '102263004', '102264005', '102270004', '102271000', '102697003', '102698008', '102699000', '108743002', '109010000', '116957009', '117633004', '126076005', '126077001', '126078006', '126079003', '126080000', '126081001', '126082008', '127384006', '226017009', '226021002', '226022009', '226023004', '226024005', '226037008', '226041007', '226046002', '226061001', '226062008', '226358006', '226359003', '226367006', '226368001', '226491003', '226492005', '226493000', '226495007', '226496008', '226497004', '226498009', '226529007', '226530002', '226531003', '226532005', '226533000', '226534006', '226535007', '226536008', '226537004', '226538009', '226539001', '226540004', '226541000', '226542007', '226543002', '226544008', '226546005', '226547001', '226548006', '226549003', '226550003', '226551004', '226552006', '226553001', '226554007', '226555008', '226556009', '226557000', '226558005', '226559002', '226560007', '226561006', '226562004', '226563009', '226564003', '226565002', '226566001', '226567005', '226568000', '226569008', '226570009', '226571008', '226572001', '226574000', '226575004', '226576003', '226577007', '226578002', '226579005', '226580008', '226581007', '226582000', '226583005', '226584004', '226585003', '226587006', '226589009', '226590000', '226592008', '226593003', '226595005', '226596006', '226597002', '226598007', '226601002', '226604005', '226605006', '226611009', '226612002', '226613007', '226614001', '226616004', '226617008', '226618003', '226619006', '226620000', '226621001', '226622008', '226639005', '226640007', '226641006', '226642004', '226643009', '226644003', '226645002', '226647005', '226648000', '226649008', '226650008', '226651007', '226652000', '226653005', '226654004', '226655003', '226656002', '226657006', '226658001', '226659009', '226660004', '226661000', '226662007', '226663002', '226664008', '226665009', '226666005', '226667001', '226668006', '226669003', '226670002', '226671003', '226672005', '226673000', '226674006', '226675007', '226676008', '226677004', '226678009', '226679001', '226680003', '226681004', '226682006', '226683001', '226684007', '226685008', '226686009', '226687000', '226688005', '226689002', '226690006', '226691005', '226692003', '226693008', '226694002', '226695001', '226697009', '226698004', '226699007', '226700008', '226701007', '226702000', '226703005', '226704004', '226705003', '226706002', '226707006', '226708001', '226709009', '226710004', '226711000', '226712007', '226713002', '226714008', '226715009', '226716005', '226717001', '226718006', '226719003', '226720009', '226721008', '226722001', '226723006', '226724000', '226725004', '226726003', '226727007', '226728002', '226729005', '226730000', '226731001', '226732008', '226733003', '226734009', '226735005', '226736006', '226737002', '226738007', '226739004', '226740002', '226741003', '226742005', '226743000', '226744006', '226745007', '226746008', '226747004', '226748009', '226749001', '226750001', '226751002', '226752009', '226753004', '226754005', '226755006', '226756007', '226757003', '226758008', '226759000', '226760005', '226761009', '226762002', '226763007', '226764001', '226765000', '226766004', '226767008', '226768003', '226769006', '226770007', '226771006', '226774003', '226775002', '226776001', '226777005', '226778000', '226779008', '226780006', '226781005', '226782003', '226783008', '226784002', '226785001', '226786000', '226787009', '226788004', '226789007', '226790003', '226791004', '226793001', '226795008', '226796009', '226797000', '226798005', '226799002', '226800003', '226801004', '226802006', '226803001', '226804007', '226805008', '226806009', '226807000', '226808005', '226809002', '226810007', '226811006', '226812004', '226813009', '226814003', '226815002', '226816001', '226817005', '226818000', '226819008', '226820002', '226821003', '226822005', '226823000', '226824006', '226825007', '226826008', '226827004', '226828009', '226829001', '226830006', '226831005', '226832003', '226834002', '226835001', '226836000', '226837009', '226838004', '226839007', '226840009', '226841008', '226842001', '226843006', '226844000', '226845004', '226846003', '226847007', '226848002', '226849005', '226850005', '226851009', '226852002', '226853007', '226854001', '226855000', '226856004', '226857008', '226858003', '226859006', '226860001', '226861002', '226862009', '226863004', '226864005', '226865006', '226866007', '226867003', '226868008', '226869000', '226870004', '226871000', '226872007', '226873002', '226874008', '226875009', '226876005', '226877001', '226878006', '226879003', '226880000', '226881001', '226882008', '226883003', '226884009', '226885005', '226886006', '226887002', '226888007', '226889004', '226890008', '226891007', '226892000', '226894004', '226895003', '226896002', '226897006', '226898001', '226899009', '226900004', '226901000', '226902007', '226903002', '226904008', '226905009', '226906005', '226907001', '226908006', '226909003', '226910008', '226911007', '226912000', '226913005', '226914004', '226915003', '226916002', '226917006', '226918001', '226919009', '226920003', '226921004', '226922006', '226923001', '226924007', '226925008', '226926009', '226927000', '226928005', '226929002', '226930007', '226931006', '226932004', '226933009', '226934003', '226935002', '226936001', '226937005', '226938000', '226939008', '226940005', '226941009', '226942002', '226943007', '226944001', '226945000', '226946004', '226947008', '226948003', '226949006', '226950006', '226951005', '226952003', '226953008', '226954002', '226955001', '226956000', '226957009', '226958004', '226959007', '226960002', '226961003', '226962005', '226963000', '226964006', '226965007', '226966008', '226967004', '226968009', '226969001', '226970000', '226971001', '226972008', '226973003', '226974009', '226975005', '226976006', '226977002', '226978007', '226979004', '226980001', '226981002', '226982009', '226983004', '226984005', '226985006', '226987003', '226988008', '226989000', '226990009', '226991008', '226992001', '226993006', '226994000', '226995004', '226996003', '226997007', '226998002', '226999005', '227000008', '227001007', '227002000', '227003005', '227004004', '227005003', '227006002', '227007006', '227008001', '227009009', '227010004', '227011000', '227012007', '227013002', '227014008', '227015009', '227016005', '227017001', '227018006', '227019003', '227020009', '227021008', '227022001', '227023006', '227024000', '227025004', '227026003', '227027007', '227028002', '227029005', '227030000', '227031001', '227032008', '227033003', '227034009', '227036006', '227037002', '227038007', '227040002', '227041003', '227042005', '227043000', '227044006', '227045007', '227046008', '227047004', '227048009', '227049001', '227050001', '227051002', '227052009', '227053004', '227054005', '227055006', '227056007', '227057003', '227058008', '227059000', '227060005', '227061009', '227062002', '227063007', '227064001', '227065000', '227066004', '227067008', '227068003', '227069006', '227070007', '227071006', '227072004', '227073009', '227074003', '227075002', '227076001', '227078000', '227079008', '227080006', '227081005', '227082003', '227083008', '227084002', '227085001', '227086000', '227087009', '227088004', '227089007', '227091004', '227092006', '227093001', '227094007', '227095008', '227096009', '227097000', '227098005', '227099002', '227100005', '227101009', '227102002', '227103007', '227104001', '227105000', '227106004', '227107008', '227108003', '227109006', '227110001', '227111002', '227112009', '227113004', '227114005', '227115006', '227116007', '227117003', '227118008', '227119000', '227120006', '227121005', '227122003', '227123008', '227124002', '227125001', '227126000', '227127009', '227128004', '227129007', '227130002', '227131003', '227132005', '227133000', '227134006', '227135007', '227136008', '227137004', '227138009', '227139001', '227140004', '227141000', '227142007', '227143002', '227144008', '227145009', '227146005', '227147001', '227148006', '227149003', '227150003', '227151004', '227152006', '227153001', '227154007', '227155008', '227156009', '227157000', '227158005', '227159002', '227160007', '227161006', '227162004', '227163009', '227164003', '227165002', '227167005', '227168000', '227169008', '227170009', '227171008', '227172001', '227173006', '227174000', '227175004', '227176003', '227177007', '227178002', '227179005', '227180008', '227181007', '227182000', '227183005', '227184004', '227185003', '227186002', '227187006', '227188001', '227189009', '227190000', '227191001', '227193003', '227194009', '227195005', '227196006', '227197002', '227198007', '227199004', '227200001', '227201002', '227202009', '227203004', '227204005', '227205006', '227206007', '227207003', '227208008', '227209000', '227210005', '227212002', '227213007', '227214001', '227215000', '227216004', '227217008', '227218003', '227219006', '227220000', '227221001', '227222008', '227223003', '227224009', '227225005', '227226006', '227227002', '227228007', '227229004', '227230009', '227231008', '227232001', '227233006', '227234000', '227235004', '227236003', '227237007', '227238002', '227239005', '227240007', '227241006', '227242004', '227243009', '227244003', '227245002', '227246001', '227247005', '227248000', '227249008', '227250008', '227251007', '227252000', '227253005', '227254004', '227255003', '227256002', '227257006', '227258001', '227259009', '227260004', '227261000', '227262007', '227263002', '227264008', '227265009', '227266005', '227267001', '227268006', '227269003', '227270002', '227271003', '227272005', '227273000', '227274006', '227275007', '227276008', '227277004', '227278009', '227279001', '227280003', '227281004', '227282006', '227283001', '227284007', '227285008', '227286009', '227287000', '227288005', '227289002', '227290006', '227291005', '227292003', '227294002', '227295001', '227296000', '227297009', '227298004', '227299007', '227300004', '227301000', '227302007', '227303002', '227304008', '227305009', '227306005', '227307001', '227308006', '227309003', '227310008', '227311007', '227312000', '227313005', '227314004', '227315003', '227316002', '227317006', '227318001', '227319009', '227320003', '227321004', '227322006', '227323001', '227324007', '227325008', '227326009', '227327000', '227328005', '227329002', '227330007', '227331006', '227332004', '227333009', '227334003', '227335002', '227336001', '227337005', '227338000', '227339008', '227340005', '227341009', '227342002', '227343007', '227344001', '227345000', '227346004', '227347008', '227348003', '227349006', '227350006', '227351005', '227352003', '227353008', '227354002', '227355001', '227356000', '227357009', '227358004', '227359007', '227360002', '227361003', '227362005', '227363000', '227364006', '227365007', '227366008', '227367004', '227368009', '227369001', '227370000', '227371001', '227372008', '227373003', '227374009', '227375005', '227376006', '227377002', '227378007', '227379004', '227380001', '227381002', '227382009', '227383004', '227384005', '227385006', '227386007', '227387003', '227388008', '227389000', '227390009', '227391008', '227392001', '227393006', '227395004', '227396003', '227397007', '227398002', '227399005', '227400003', '227401004', '227402006', '227403001', '227404007', '227405008', '227406009', '227407000', '227408005', '227409002', '227410007', '227411006', '227412004', '227413009', '227414003', '227415002', '227416001', '227417005', '227418000', '227419008', '227420002', '227421003', '227422005', '227423000', '227424006', '227425007', '227426008', '227427004', '227428009', '227429001', '227430006', '227431005', '227432003', '227433008', '227434002', '227435001', '227436000', '227437009', '227438004', '227439007', '227440009', '227441008', '227442001', '227443006', '227444000', '227445004', '227446003', '227447007', '227448002', '227449005', '227450005', '227451009', '227452002', '227453007', '227454001', '227455000', '227456004', '227457008', '227458003', '227459006', '227460001', '227461002', '227462009', '227463004', '227464005', '227465006', '227466007', '227467003', '227468008', '227469000', '227470004', '227471000', '227472007', '227473002', '227474008', '227475009', '227476005', '227477001', '227478006', '227479003', '227480000', '227481001', '227482008', '227483003', '227484009', '227485005', '227486006', '227487002', '227488007', '227489004', '227490008', '227491007', '227492000', '227493005', '227495003', '227496002', '227497006', '227498001', '227499009', '227500000', '227501001', '227502008', '227503003', '227504009', '227505005', '227506006', '227507002', '227508007', '227509004', '227510009', '227511008', '227512001', '227513006', '227514000', '227515004', '227516003', '227517007', '227518002', '227519005', '227520004', '227521000', '227522007', '227523002', '227524008', '227525009', '227526005', '227527001', '227528006', '227529003', '227530008', '227531007', '227532000', '227533005', '227534004', '227535003', '227536002', '227537006', '227538001', '227539009', '227540006', '227541005', '227542003', '227543008', '227544002', '227545001', '227546000', '227547009', '227548004', '227549007', '227550007', '227551006', '227552004', '227553009', '227554003', '227556001', '227557005', '227559008', '227560003', '227563001', '227564007', '227565008', '227566009', '227567000', '227568005', '227569002', '227570001', '227571002', '227572009', '227573004', '227574005', '227575006', '227576007', '227577003', '227578008', '227579000', '227580002', '227581003', '227582005', '227583000', '227584006', '227585007', '227586008', '227587004', '227589001', '227590005', '227591009', '227592002', '227594001', '227595000', '227597008', '227598003', '227599006', '227600009', '227601008', '227602001', '227603006', '227604000', '227605004', '227606003', '227607007', '227608002', '227610000', '227611001', '227612008', '227613003', '227620005', '227621009', '227622002', '227623007', '227624001', '227625000', '227626004', '227627008', '227628003', '227629006', '227630001', '227631002', '227632009', '227633004', '227634005', '227635006', '227636007', '227637003', '227638008', '227639000', '227640003', '227641004', '227642006', '227643001', '227644007', '227645008', '227646009', '227648005', '227649002', '227650002', '227651003', '227652005', '227653000', '227654006', '227655007', '227656008', '227657004', '227658009', '227659001', '227660006', '227661005', '227662003', '227663008', '227664002', '227665001', '227666000', '227667009', '227668004', '227669007', '227670008', '227671007', '227672000', '227673005', '227674004', '227675003', '227676002', '227677006', '227678001', '227679009', '227680007', '227681006', '227682004', '227683009', '227684003', '227685002', '227686001', '227687005', '227688000', '227689008', '227690004', '227691000', '227692007', '227693002', '227694008', '227696005', '227698006', '227699003', '227700002', '227701003', '227702005', '227703000', '227704006', '227705007', '227706008', '227707004', '227708009', '227709001', '227710006', '227711005', '227712003', '227713008', '227715001', '227716000', '227717009', '227718004', '227719007', '227720001', '227721002', '227722009', '227723004', '227724005', '227725006', '227726007', '227727003', '227728008', '227729000', '227730005', '227731009', '227732002', '227733007', '227734001', '227735000', '227736004', '227737008', '227738003', '227739006', '227740008', '227741007', '227742000', '227743005', '227744004', '227745003', '227746002', '227747006', '227748001', '227749009', '227750009', '227751008', '227752001', '227753006', '227754000', '227755004', '227756003', '227757007', '227758002', '227759005', '227760000', '227761001', '227762008', '227763003', '227764009', '227765005', '227766006', '227767002', '227768007', '227769004', '227770003', '227771004', '227772006', '227773001', '227774007', '227775008', '227776009', '227777000', '227778005', '227779002', '227780004', '227781000', '227782007', '227783002', '227784008', '227785009', '227786005', '227787001', '227788006', '227789003', '227790007', '227791006', '227792004', '227793009', '227794003', '227795002', '227796001', '227797005', '227799008', '227800007', '227801006', '227802004', '227803009', '227804003', '227805002', '227806001', '227807005', '227808000', '227809008', '227810003', '227811004', '227812006', '227813001', '227814007', '227815008', '227816009', '227817000', '227818005', '227819002', '227820008', '227821007', '227822000', '227823005', '227824004', '227825003', '227826002', '227827006', '227828001', '227829009', '227830004', '227831000', '227832007', '227833002', '227834008', '227835009', '227836005', '227837001', '227838006', '227839003', '227841002', '227842009', '227843004', '227844005', '227845006', '227846007', '227847003', '227848008', '227849000', '227850000', '227851001', '227852008', '227853003', '227854009', '227855005', '227856006', '227857002', '227858007', '227859004', '227860009', '227861008', '227862001', '227863006', '227864000', '227865004', '227866003', '227867007', '227868002', '227869005', '227870006', '227871005', '227872003', '227873008', '227874002', '227875001', '227876000', '227877009', '227878004', '227879007', '227880005', '227881009', '227882002', '227883007', '227884001', '227885000', '227886004', '227887008', '227888003', '227889006', '227890002', '227891003', '227892005', '227893000', '227894006', '227895007', '227896008', '227897004', '227898009', '227899001', '227901005', '227902003', '227903008', '227904002', '227905001', '227906000', '227907009', '227908004', '227909007', '227910002', '227911003', '227912005', '227913000', '227914006', '227915007', '227916008', '227917004', '227918009', '227919001', '227920007', '227921006', '227922004', '227923009', '227924003', '227925002', '227926001', '227927005', '227928000', '227929008', '227930003', '227931004', '227932006', '227933001', '227934007', '227935008', '227936009', '227937000', '227938005', '227939002', '227940000', '227941001', '227942008', '227943003', '227944009', '227945005', '227946006', '227947002', '227948007', '227949004', '227950004', '227951000', '227952007', '227953002', '227954008', '227955009', '227956005', '227957001', '227958006', '227959003', '227960008', '227961007', '227962000', '227963005', '227964004', '227965003', '227966002', '227967006', '227968001', '227969009', '227970005', '227971009', '227972002', '227973007', '227974001', '227975000', '227976004', '227977008', '227978003', '227979006', '227980009', '227981008', '229848001', '229849009', '229850009', '229851008', '229852001', '229853006', '229854000', '229855004', '229857007', '229858002', '229859005', '229860000', '229861001', '229862008', '229863003', '229864009', '229865005', '229866006', '229867002', '229868007', '229869004', '229870003', '229871004', '229872006', '229873001', '229874007', '229875008', '229876009', '229877000', '229878005', '229879002', '229880004', '229883002', '229884008', '229885009', '229887001', '229888006', '229889003', '229890007', '229891006', '229892004', '229893009', '229894003', '229895002', '229896001', '229897005', '229898000', '229899008', '229900003', '229901004', '229902006', '229903001', '229904007', '229905008', '229906009', '229907000', '229908005', '229909002', '229910007', '229921003', '229922005', '229923000', '229924006', '229925007', '229926008', '229928009', '229929001', '229930006', '229932003', '229933008', '229934002', '229936000', '229937009', '229938004', '229939007', '229940009', '229941008', '229942001', '229943006', '229944000', '229946003', '229947007', '229948002', '229949005', '229950005', '229951009', '229952002', '229953007', '229954001', '229955000', '230024006', '230025007', '230026008', '230027004', '230028009', '230029001', '230030006', '230031005', '230032003', '230033008', '230034002', '230035001', '230036000', '230037009', '230038004', '230039007', '230041008', '230045004', '230046003', '230047007', '230048002', '230049005', '230050005', '230052002', '230053007', '230054001', '230055000', '255621006', '255685004', '256249000', '256306003', '256307007', '256308002', '256309005', '256310000', '256311001', '256313003', '256314009', '256315005', '256316006', '256317002', '256318007', '256319004', '256320005', '256322002', '256323007', '256325000', '256326004', '256327008', '256329006', '256330001', '256331002', '256349002', '256350002', '256351003', '256352005', '256353000', '256354006', '256355007', '256442007', '256443002', '256444008', '260167008', '260168003', '260170007', '260171006', '260172004', '260176001', '260177005', '260179008', '260180006', '260184002', '260186000', '260188004', '260189007', '260190003', '260201000', '260204008', '260205009', '261242008', '261277008', '261315009', '264294006', '264295007', '264322002', '264330001', '264331002', '264332009', '264334005', '264335006', '264337003', '276338007', '278393006', '278839003', '278840001', '279651008', '280990009', '284068003', '284458003', '284459006', '284460001', '284461002', '284462009', '284463004', '286550009', '289966000', '303300008', '303301007', '314113006', '386127005', '391737006', '391858005', '395734009', '401620006', '406758004', '406773003', '406774009', '411973001', '412028008', '412055004', '412056003', '412060000', '412061001', '412062008', '412063003', '412064009', '412065005', '412066006', '412068007', '412071004', '412113006', '412139009', '412202001', '412357001', '412533000', '412552006', '412601002', '413480003', '414074006', '414261009', '414290003', '414291004', '414542006', '414983003', '415041004', '415562007', '415768008', '415769000', '415842005', '416198000', '417889008', '418504009', '419420009', '420053004', '420318001', '420823005', '421491002', '421619005', '421884008', '422721009', '422932000', '426701005', '709449000', '709450000', '710035004', '710036003', '710037007', '710038002', '710039005', '710040007', '710041006', '710042004', '710043009', '710044003', '710048000', '710049008', '710050008', '710171001', '710172008', '710173003', '710175005', '710176006', '710178007', '710179004', '710180001', '710181002', '710182009', '710183004', '710184005', '710185006', '710220009', '710224000', '710226003', '710276001', '711611001', '712685000', '436801000124100', '436811000124102', '436821000124105', '436831000124108', '436841000124103', '442321000124102', '442331000124104', '442341000124109', '442351000124106', '442361000124108', '442371000124101', '442421000124108', '442431000124106', '442441000124101', '442451000124104', '442461000124102', '442471000124109', '442511000124104', '442521000124107', '442531000124105', '442541000124100', '442551000124103', '442561000124101', '442571000124108', '442591000124109', '442601000124101', '442611000124103', '442621000124106', '442631000124109', '442641000124104', '442671000124107', '442681000124105', '442691000124108', '442701000124108', '442721000124103', '442731000124100', '442741000124105', '442751000124107', '442771000124102', '442791000124101', '442801000124100', '442811000124102', '442831000124108', '442841000124103', '442851000124101', '442861000124104', '442871000124106', '442881000124109', '442891000124107', '443611000124105', '443621000124102', '443631000124104', '443651000124106', '443661000124108', '443671000124101', '443681000124103', '443691000124100', '443701000124100', '443721000124105', '443741000124103', '443751000124101', '443791000124107', '443801000124108', '443811000124106', '443821000124103', '443831000124100', '443841000124105', '443851000124107', '443861000124109', '443871000124102', '443881000124104', '443891000124101', '443901000124102', '443911000124104', '443931000124105', '443941000124100', '443951000124103', '443961000124101', '443971000124108', '443981000124106', '444001000124100', '444011000124102', '444021000124105', '444031000124108', '444041000124103', '444061000124104', '444071000124106', '444081000124109', '444091000124107', '444101000124101', '444111000124103', '444121000124106', '444131000124109', '444141000124104', '444151000124102', '444161000124100', '444171000124107', '444181000124105', '444191000124108', '444201000124106', '444461000124108', '445571000124101', '445591000124100']}, 'type'=>'CodeableConcept', 'path'=>'NutritionOrder.excludeFoodModifier', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/food-type'}},
|
26
|
+
'oralDiet' => {'type'=>'NutritionOrder::Oraldiet', 'path'=>'NutritionOrder.oralDiet', 'min'=>0, 'max'=>1},
|
27
|
+
'supplement' => {'type'=>'NutritionOrder::Supplement', 'path'=>'NutritionOrder.supplement', 'min'=>0, 'max'=>Float::INFINITY},
|
28
|
+
'enteralFormula' => {'type'=>'NutritionOrder::Enteralformula', 'path'=>'NutritionOrder.enteralFormula', 'min'=>0, 'max'=>1}
|
29
|
+
}
|
30
|
+
|
31
|
+
class Oraldiet < FHIR::Model
|
32
|
+
include FHIR::Hashable
|
33
|
+
include FHIR::Json
|
34
|
+
include FHIR::Xml
|
35
|
+
|
36
|
+
METADATA = {
|
37
|
+
'id' => {'type'=>'id', 'path'=>'Oraldiet.id', 'min'=>0, 'max'=>1},
|
38
|
+
'extension' => {'type'=>'Extension', 'path'=>'Oraldiet.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
39
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Oraldiet.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
40
|
+
'type' => {'valid_codes'=>{'http://snomed.info/sct'=>['38903004', '50712000', '56948003', '61420007', '182954008', '182955009', '182956005', '182957001', '182958006', '182959003', '182960008', '183028005', '223456000', '225373002', '225374008', '229912004', '229913009', '229914003', '229915002', '229916001', '229917005', '284071006', '289133003', '310244003', '361231003', '386261001', '404919001', '422972009', '425458000', '2561000175100', '435581000124102', '435651000124106', '435661000124108', '435671000124101', '435681000124103', '435691000124100', '435701000124100', '435711000124102', '435721000124105', '435731000124108', '435741000124103', '435751000124101', '435761000124104', '435771000124106', '435781000124109', '435791000124107', '435801000124108', '435811000124106', '436661000124100', '436671000124107', '436681000124105', '436691000124108', '436701000124108', '436711000124106', '436721000124103', '436731000124100', '436851000124101', '436861000124104', '436871000124106', '436881000124109', '436891000124107', '436901000124106', '436911000124109', '436921000124101', '436931000124103', '436941000124108', '436951000124105', '436961000124107', '436991000124104', '437001000124107', '437011000124105', '437021000124102', '437031000124104', '437041000124109', '437051000124106', '437061000124108', '437081000124103', '437091000124100', '437101000124106', '437111000124109', '437121000124101', '437131000124103', '437141000124108', '437151000124105', '437161000124107', '437171000124100', '437181000124102', '437191000124104', '437201000124101', '437211000124103', '437221000124106', '437231000124109', '437241000124104', '437251000124102', '437261000124100', '437271000124107', '437281000124105', '437291000124108', '437301000124109', '437311000124107', '437321000124104', '437331000124101', '437341000124106', '437351000124108', '437361000124105', '437371000124103', '437381000124100', '437391000124102', '437401000124100', '437411000124102', '437421000124105', '437431000124108', '437441000124103', '437451000124101', '437461000124104', '437471000124106', '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', '438011000124109', '438021000124101', '438031000124103', '438041000124108', '438051000124105', '438061000124107', '438071000124100', '438081000124102', '438091000124104', '438101000124105', '438111000124108', '438121000124100', '438131000124102', '438141000124107', '438151000124109', '438161000124106', '438171000124104', '438181000124101', '438191000124103', '438201000124100', '438211000124102', '438221000124105', '438231000124108', '438241000124103', '438251000124101', '438261000124104', '438271000124106', '438281000124109', '438291000124107', '438301000124108', '438311000124106', '438321000124103', '438331000124100', '438341000124105', '438351000124107', '438361000124109', '438371000124102', '438381000124104', '439021000124105', '439031000124108', '439041000124103', '439061000124104', '439071000124106', '439081000124109', '439101000124101', '439111000124103', '439121000124106', '445341000124100', '445351000124103']}, 'type'=>'CodeableConcept', 'path'=>'Oraldiet.type', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/diet-type'}},
|
41
|
+
'schedule' => {'type'=>'Timing', 'path'=>'Oraldiet.schedule', 'min'=>0, 'max'=>Float::INFINITY},
|
42
|
+
'nutrient' => {'type'=>'NutritionOrder::Oraldiet::Nutrient', 'path'=>'Oraldiet.nutrient', 'min'=>0, 'max'=>Float::INFINITY},
|
43
|
+
'texture' => {'type'=>'NutritionOrder::Oraldiet::Texture', 'path'=>'Oraldiet.texture', 'min'=>0, 'max'=>Float::INFINITY},
|
44
|
+
'fluidConsistencyType' => {'valid_codes'=>{'http://snomed.info/sct'=>['439031000124108', '439021000124105', '439041000124103', '439081000124109']}, 'type'=>'CodeableConcept', 'path'=>'Oraldiet.fluidConsistencyType', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/consistency-type'}},
|
45
|
+
'instruction' => {'type'=>'string', 'path'=>'Oraldiet.instruction', 'min'=>0, 'max'=>1}
|
46
|
+
}
|
47
|
+
|
48
|
+
class Nutrient < FHIR::Model
|
49
|
+
include FHIR::Hashable
|
50
|
+
include FHIR::Json
|
51
|
+
include FHIR::Xml
|
52
|
+
|
53
|
+
METADATA = {
|
54
|
+
'id' => {'type'=>'id', 'path'=>'Nutrient.id', 'min'=>0, 'max'=>1},
|
55
|
+
'extension' => {'type'=>'Extension', 'path'=>'Nutrient.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
56
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Nutrient.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
57
|
+
'modifier' => {'valid_codes'=>{'http://snomed.info/sct'=>['33463005', '39972003', '88480006', '925002', '1025008', '1057009', '1368003', '1381005', '1603001', '2264001', '2331003', '2942001', '3161008', '3212004', '3325005', '3342004', '3617004', '3829006', '3932008', '3945007', '5167005', '5312000', '5405008', '6083003', '6881002', '6910009', '6927001', '6952004', '7156005', '7774008', '7791007', '8143001', '8534003', '8919000', '9396007', '9797000', '9992001', '10466005', '10644005', '10767000', '10790005', '10796004', '11121002', '11202003', '11320009', '11331001', '11984007', '12597001', '12689001', '12930006', '12970004', '13235001', '13342004', '13863008', '14125007', '14139007', '14312008', '14399003', '14564001', '14971004', '15331006', '15472007', '15666000', '16850006', '18039003', '18414002', '19160003', '19427006', '19622008', '19747004', '19839007', '21075006', '21239003', '21559000', '21572004', '21706000', '22038003', '22362000', '22555008', '22559002', '22606007', '23433006', '23459009', '23692005', '25128000', '25183006', '25205007', '25710007', '25761002', '26327007', '26645004', '27054007', '27122000', '27378009', '29011006', '29276003', '29531004', '30094001', '30178006', '30179003', '30324001', '30589007', '30820000', '31731008', '32505007', '32714004', '32741009', '33396006', '33922005', '34274009', '34471003', '35321007', '35344005', '35733004', '35883004', '36397007', '36434002', '36816009', '36998008', '37123002', '37225000', '37237003', '38182007', '38595007', '38623000', '38794009', '38839009', '39292004', '39360003', '39546001', '40479008', '40924008', '40937006', '41441005', '41464007', '41503000', '42146005', '42180008', '42193003', '42730005', '42841002', '43239002', '43289005', '43431002', '43613009', '43706004', '43728004', '43897008', '43909000', '44044007', '44262008', '44588005', '44970006', '45158004', '46075000', '46257009', '47192000', '47676006', '47703008', '48736006', '48861002', '49506005', '50233008', '50374006', '50479000', '51224002', '51774004', '52130006', '52625008', '52717004', '52736009', '52745005', '52860004', '53499005', '53560004', '53646005', '53700003', '53834009', '54045000', '54083004', '54517000', '54808007', '54821000', '55328009', '55495002', '55559007', '55946005', '55951004', '56158000', '56383006', '56740002', '57272005', '57273000', '57279001', '58202007', '58279004', '58292001', '58753009', '60244003', '60260004', '60764009', '60908004', '61025005', '61045002', '61244006', '62174006', '62442005', '62754006', '62763008', '63004003', '63089006', '63330006', '63349005', '63383003', '63718003', '63793008', '64179000', '64538009', '65054007', '65183007', '65586005', '66656000', '66781008', '66925006', '66945003', '66956003', '67060008', '67079006', '67154005', '67266008', '67377000', '67517005', '67535001', '67690002', '67719005', '68024001', '68077006', '68334004', '68580003', '68630002', '68992005', '69089000', '69169004', '69324000', '69750003', '69770009', '69783005', '70203000', '70288006', '70319005', '70496003', '70587000', '70706009', '70726008', '71128006', '71425003', '71544008', '72164009', '72309009', '72717003', '72835003', '72840006', '73131003', '73353008', '73722009', '73916008', '74718007', '74801000', '75665004', '75799006', '75815006', '75871008', '75876003', '75951003', '77004003', '77404006', '77454000', '77923008', '78481003', '78527003', '78529000', '78671009', '78686003', '78870008', '80393001', '80582002', '80916004', '81100008', '82224005', '82481002', '82622003', '83797003', '83912003', '84553006', '84987009', '85214009', '85369009', '85668006', '85958004', '86399009', '86431009', '86739005', '86865003', '86953001', '87116002', '87136001', '87371008', '87437000', '87445005', '87708000', '87802005', '87869004', '88166005', '88236008', '88262004', '88546006', '88617009', '88954003', '89272005', '89351005', '89702005', '89867007', '90150007', '90544008', '90567005', '90664008', '90733003', '91166002', '91255004', '95970003', '96277001', '96335004', '102258003', '102658006', '102661007', '102663005', '102747008', '102750006', '103067001', '103068006', '103069003', '103070002', '103072005', '103074006', '105824007', '108946001', '109064002', '109224005', '109240008', '111039007', '111065006', '111066007', '111069000', '111070004', '111071000', '111078006', '112000000', '112121003', '115599005', '116094003', '116119005', '116120004', '116121000', '116123002', '116124008', '116128006', '116256008', '116257004', '116258009', '116259001', '116260006', '116261005', '116262003', '116263008', '116264002', '116265001', '116266000', '116267009', '116268004', '116269007', '116271007', '116272000', '116776001', '116777005', '116778000', '116934003', '117634005', '126076005', '126077001', '126078006', '126079003', '126080000', '126081001', '126082008', '126224002', '126225001', '126226000', '126227009', '126228004', '126229007', '126230002', '126231003', '126235007', '126237004', '126238009', '126239001', '129497004', '173196005', '226356005', '226358006', '226369009', '226370005', '226371009', '226372002', '226373007', '226374001', '226375000', '226781005', '226793001', '226842001', '226880000', '226911007', '227365007', '227366008', '227367004', '227368009', '227537006', '227948007', '227991002', '227992009', '227993004', '227994005', '227995006', '227996007', '229941008', '229949005', '255673007', '255954005', '256227006', '256579008', '259333003', '259336006', '259337002', '259382003', '259403006', '259406003', '259411001', '259509008', '259512006', '259651009', '259655000', '259656004', '259659006', '259660001', '259661002', '259662009', '259663004', '259665006', '259666007', '261353004', '273943001', '277951002', '277953004', '277954005', '284460001', '290131005', '301862003', '304051003', '311719002', '312184007', '312276003', '372601001', '372639009', '386927006', '386932007', '386989006', '387021003', '387030006', '387131008', '387206004', '387367007', '387415009', '391734004', '395750001', '395751002', '395752009', '395753004', '395754005', '395756007', '395757003', '395758008', '395759000', '395760005', '395766004', '395769006', '395775002', '395782003', '395787009', '395789007', '395791004', '395792006', '395815002', '395830006', '395838004', '395839007', '395840009', '395875009', '395877001', '395878006', '395879003', '395894004', '395925008', '395941009', '395951005', '395952003', '395981002', '395982009', '396003009', '396020008', '396056006', '396065004', '398939009', '409093004', '409094005', '409257009', '409258004', '409871008', '411332009', '412135003', '412203006', '412227008', '412228003', '412230001', '412244007', '412250002', '412410003', '412415008', '412512009', '412595005', '413483001', '414506003', '415543009', '415562007', '417955006', '418346004', '418407000', '418692007', '418929008', '418990001', '419292008', '419297002', '419382002', '419432008', '419508004', '419679002', '420075002', '421289007', '421526004', '421621000', '421881000', '422073002', '422160004', '422934004', '423061008', '423071005', '423249007', '423373002', '423388007', '423432002', '423725005', '423795001', '423809007', '425329004', '425364008', '425702007', '425867009', '425874004', '426722004', '427638006', '428732003', '429592005', '429990006', '430469009', '430632000', '430633005', '430634004', '430926008', '432165000', '432219009', '432884004', '433468002', '438901003', '442247006', '442330008', '442340006', '442346000', '443148002', '446531006', '447134003', '449236003', '456992002', '456995000', '456997008', '456999006', '457000009', '699182008', '702796008', '703391005', '703394002', '703395001', '703399007', '703402008', '704384003', '704430002', '706927001', '706929003', '706930008', '706936002', '706938001', '706941005', '706942003', '706943008', '706978008', '706980002', '707019004', '707020005', '707053000', '707070008', '707071007', '707184000', '707244004', '707614005', '707661006', '707677007', '708047003', '708053003', '708259008', '708264007', '708267000', '708272009', '708276007', '708280002', '708290005', '708296004', '708303001', '708310007', '708316001', '708348002', '708351009', '708354001', '708356004', '708562005', '708565007', '708600008', '708658008', '708665000', '708703004', '708704005', '708715000', '708748000', '708846006', '708850004', '708864004', '709050009', '709131007', '709610005', '709844000', '710051007', '710208001', '710238007', '711264008', '712563004', '712565006', '712587002', '712590008', '712594004', '712681009', '712684001', '712686004', '712698009', '712713006', '5811000122108', '436801000124100', '436811000124102', '436821000124105', '436831000124108', '436841000124103', '436971000124100', '436981000124102', '437071000124101', '437881000124106', '438631000124105', '443621000124102', '443631000124104', '443791000124107', '443911000124104']}, 'type'=>'CodeableConcept', 'path'=>'Nutrient.modifier', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/nutrient-code'}},
|
58
|
+
'amount' => {'type'=>'Quantity', 'path'=>'Nutrient.amount', 'min'=>0, 'max'=>1}
|
59
|
+
}
|
60
|
+
|
61
|
+
attr_accessor :id # 0-1 id
|
62
|
+
attr_accessor :extension # 0-* [ Extension ]
|
63
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
64
|
+
attr_accessor :modifier # 0-1 CodeableConcept
|
65
|
+
attr_accessor :amount # 0-1 Quantity
|
66
|
+
end
|
67
|
+
|
68
|
+
class Texture < FHIR::Model
|
69
|
+
include FHIR::Hashable
|
70
|
+
include FHIR::Json
|
71
|
+
include FHIR::Xml
|
72
|
+
|
73
|
+
METADATA = {
|
74
|
+
'id' => {'type'=>'id', 'path'=>'Texture.id', 'min'=>0, 'max'=>1},
|
75
|
+
'extension' => {'type'=>'Extension', 'path'=>'Texture.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
76
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Texture.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
77
|
+
'modifier' => {'valid_codes'=>{'http://snomed.info/sct'=>['228053002', '439091000124107', '228049004', '441881000124103', '441761000124103', '441751000124100', '228059003', '441791000124106', '228055009', '228056005', '441771000124105', '228057001', '228058006', '228060008']}, 'type'=>'CodeableConcept', 'path'=>'Texture.modifier', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/texture-code'}},
|
78
|
+
'foodType' => {'valid_codes'=>{'http://snomed.info/sct'=>['255620007', '28647000', '22836000', '72511004', '226760005', '226887002', '102263004', '74242007', '227415002', '264331002', '227518002', '44027008', '226529007', '227210005']}, 'type'=>'CodeableConcept', 'path'=>'Texture.foodType', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/modified-foodtype'}}
|
79
|
+
}
|
80
|
+
|
81
|
+
attr_accessor :id # 0-1 id
|
82
|
+
attr_accessor :extension # 0-* [ Extension ]
|
83
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
84
|
+
attr_accessor :modifier # 0-1 CodeableConcept
|
85
|
+
attr_accessor :foodType # 0-1 CodeableConcept
|
86
|
+
end
|
87
|
+
|
88
|
+
attr_accessor :id # 0-1 id
|
89
|
+
attr_accessor :extension # 0-* [ Extension ]
|
90
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
91
|
+
attr_accessor :type # 0-* [ CodeableConcept ]
|
92
|
+
attr_accessor :schedule # 0-* [ Timing ]
|
93
|
+
attr_accessor :nutrient # 0-* [ NutritionOrder::Oraldiet::Nutrient ]
|
94
|
+
attr_accessor :texture # 0-* [ NutritionOrder::Oraldiet::Texture ]
|
95
|
+
attr_accessor :fluidConsistencyType # 0-* [ CodeableConcept ]
|
96
|
+
attr_accessor :instruction # 0-1 string
|
97
|
+
end
|
98
|
+
|
99
|
+
class Supplement < FHIR::Model
|
100
|
+
include FHIR::Hashable
|
101
|
+
include FHIR::Json
|
102
|
+
include FHIR::Xml
|
103
|
+
|
104
|
+
METADATA = {
|
105
|
+
'id' => {'type'=>'id', 'path'=>'Supplement.id', 'min'=>0, 'max'=>1},
|
106
|
+
'extension' => {'type'=>'Extension', 'path'=>'Supplement.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
107
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Supplement.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
108
|
+
'type' => {'valid_codes'=>{'http://snomed.info/sct'=>['442901000124106', '443031000124106', '443051000124104', '442911000124109', '443021000124108', '442971000124100', '442981000124102', '442991000124104', '443011000124100', '442961000124107', '442951000124105', '442941000124108', '442921000124101', '442931000124103', '444331000124106', '443361000124100', '443391000124108', '443401000124105', '443491000124103', '443501000124106', '443421000124100', '443471000124104', '444431000124104', '443451000124109', '444321000124108', '441561000124106', '443461000124106', '441531000124102', '443561000124107', '443481000124101', '441571000124104', '441591000124103', '441601000124106', '443351000124102', '443771000124106', '441671000124100', '443111000124101', '443431000124102', '443411000124108', '444361000124102', '444401000124107', '444381000124107', '444371000124109', '443441000124107', '442651000124102']}, 'type'=>'CodeableConcept', 'path'=>'Supplement.type', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/supplement-type'}},
|
109
|
+
'productName' => {'type'=>'string', 'path'=>'Supplement.productName', 'min'=>0, 'max'=>1},
|
110
|
+
'schedule' => {'type'=>'Timing', 'path'=>'Supplement.schedule', 'min'=>0, 'max'=>Float::INFINITY},
|
111
|
+
'quantity' => {'type'=>'Quantity', 'path'=>'Supplement.quantity', 'min'=>0, 'max'=>1},
|
112
|
+
'instruction' => {'type'=>'string', 'path'=>'Supplement.instruction', 'min'=>0, 'max'=>1}
|
113
|
+
}
|
114
|
+
|
115
|
+
attr_accessor :id # 0-1 id
|
116
|
+
attr_accessor :extension # 0-* [ Extension ]
|
117
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
118
|
+
attr_accessor :type # 0-1 CodeableConcept
|
119
|
+
attr_accessor :productName # 0-1 string
|
120
|
+
attr_accessor :schedule # 0-* [ Timing ]
|
121
|
+
attr_accessor :quantity # 0-1 Quantity
|
122
|
+
attr_accessor :instruction # 0-1 string
|
123
|
+
end
|
124
|
+
|
125
|
+
class Enteralformula < FHIR::Model
|
126
|
+
include FHIR::Hashable
|
127
|
+
include FHIR::Json
|
128
|
+
include FHIR::Xml
|
129
|
+
|
130
|
+
METADATA = {
|
131
|
+
'id' => {'type'=>'id', 'path'=>'Enteralformula.id', 'min'=>0, 'max'=>1},
|
132
|
+
'extension' => {'type'=>'Extension', 'path'=>'Enteralformula.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
133
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Enteralformula.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
134
|
+
'baseFormulaType' => {'valid_codes'=>{'http://snomed.info/sct'=>['443031000124106', '443051000124104', '442911000124109', '443021000124108', '442971000124100', '442981000124102', '442991000124104', '443011000124100', '442961000124107', '442951000124105', '442941000124108', '442921000124101', '442931000124103', '443361000124100', '443401000124105', '443491000124103', '443501000124106', '443421000124100', '443471000124104', '444431000124104', '443451000124109', '441561000124106', '443461000124106', '441531000124102', '443561000124107', '443481000124101', '441571000124104', '441591000124103', '441601000124106', '443351000124102', '443771000124106', '441671000124100', '443111000124101', '443431000124102', '443411000124108', '442651000124102']}, 'type'=>'CodeableConcept', 'path'=>'Enteralformula.baseFormulaType', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/entformula-type'}},
|
135
|
+
'baseFormulaProductName' => {'type'=>'string', 'path'=>'Enteralformula.baseFormulaProductName', 'min'=>0, 'max'=>1},
|
136
|
+
'additiveType' => {'valid_codes'=>{'http://hl7.org/fhir/entformula-additive'=>['lipid', 'protein', 'carbohydrate', 'fiber', 'water']}, 'type'=>'CodeableConcept', 'path'=>'Enteralformula.additiveType', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/entformula-additive'}},
|
137
|
+
'additiveProductName' => {'type'=>'string', 'path'=>'Enteralformula.additiveProductName', 'min'=>0, 'max'=>1},
|
138
|
+
'caloricDensity' => {'type'=>'Quantity', 'path'=>'Enteralformula.caloricDensity', 'min'=>0, 'max'=>1},
|
139
|
+
'routeofAdministration' => {'valid_codes'=>{'http://hl7.org/fhir/v3/RouteOfAdministration'=>['PO', 'EFT', 'ENTINSTL', 'GT', 'NGT', 'OGT', 'GJT', 'JJTINSTL', 'OJJ']}, 'type'=>'CodeableConcept', 'path'=>'Enteralformula.routeofAdministration', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/enteral-route'}},
|
140
|
+
'administration' => {'type'=>'NutritionOrder::Enteralformula::Administration', 'path'=>'Enteralformula.administration', 'min'=>0, 'max'=>Float::INFINITY},
|
141
|
+
'maxVolumeToDeliver' => {'type'=>'Quantity', 'path'=>'Enteralformula.maxVolumeToDeliver', 'min'=>0, 'max'=>1},
|
142
|
+
'administrationInstruction' => {'type'=>'string', 'path'=>'Enteralformula.administrationInstruction', 'min'=>0, 'max'=>1}
|
143
|
+
}
|
144
|
+
|
145
|
+
class Administration < FHIR::Model
|
146
|
+
include FHIR::Hashable
|
147
|
+
include FHIR::Json
|
148
|
+
include FHIR::Xml
|
149
|
+
|
150
|
+
MULTIPLE_TYPES = {
|
151
|
+
'rate' => ['Quantity', 'Ratio']
|
152
|
+
}
|
153
|
+
METADATA = {
|
154
|
+
'id' => {'type'=>'id', 'path'=>'Administration.id', 'min'=>0, 'max'=>1},
|
155
|
+
'extension' => {'type'=>'Extension', 'path'=>'Administration.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
156
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'Administration.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
157
|
+
'schedule' => {'type'=>'Timing', 'path'=>'Administration.schedule', 'min'=>0, 'max'=>1},
|
158
|
+
'quantity' => {'type'=>'Quantity', 'path'=>'Administration.quantity', 'min'=>0, 'max'=>1},
|
159
|
+
'rateQuantity' => {'type'=>'Quantity', 'path'=>'Administration.rate[x]', 'min'=>0, 'max'=>1},
|
160
|
+
'rateRatio' => {'type'=>'Ratio', 'path'=>'Administration.rate[x]', 'min'=>0, 'max'=>1}
|
161
|
+
}
|
162
|
+
|
163
|
+
attr_accessor :id # 0-1 id
|
164
|
+
attr_accessor :extension # 0-* [ Extension ]
|
165
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
166
|
+
attr_accessor :schedule # 0-1 Timing
|
167
|
+
attr_accessor :quantity # 0-1 Quantity
|
168
|
+
attr_accessor :rateQuantity # 0-1 Quantity
|
169
|
+
attr_accessor :rateRatio # 0-1 Ratio
|
170
|
+
end
|
171
|
+
|
172
|
+
attr_accessor :id # 0-1 id
|
173
|
+
attr_accessor :extension # 0-* [ Extension ]
|
174
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
175
|
+
attr_accessor :baseFormulaType # 0-1 CodeableConcept
|
176
|
+
attr_accessor :baseFormulaProductName # 0-1 string
|
177
|
+
attr_accessor :additiveType # 0-1 CodeableConcept
|
178
|
+
attr_accessor :additiveProductName # 0-1 string
|
179
|
+
attr_accessor :caloricDensity # 0-1 Quantity
|
180
|
+
attr_accessor :routeofAdministration # 0-1 CodeableConcept
|
181
|
+
attr_accessor :administration # 0-* [ NutritionOrder::Enteralformula::Administration ]
|
182
|
+
attr_accessor :maxVolumeToDeliver # 0-1 Quantity
|
183
|
+
attr_accessor :administrationInstruction # 0-1 string
|
184
|
+
end
|
185
|
+
|
186
|
+
attr_accessor :id # 0-1 id
|
187
|
+
attr_accessor :meta # 0-1 Meta
|
188
|
+
attr_accessor :implicitRules # 0-1 uri
|
189
|
+
attr_accessor :language # 0-1 code
|
190
|
+
attr_accessor :text # 0-1 Narrative
|
191
|
+
attr_accessor :contained # 0-* [ Resource ]
|
192
|
+
attr_accessor :extension # 0-* [ Extension ]
|
193
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
194
|
+
attr_accessor :identifier # 0-* [ Identifier ]
|
195
|
+
attr_accessor :status # 0-1 code
|
196
|
+
attr_accessor :patient # 1-1 Reference(Patient)
|
197
|
+
attr_accessor :encounter # 0-1 Reference(Encounter)
|
198
|
+
attr_accessor :dateTime # 1-1 dateTime
|
199
|
+
attr_accessor :orderer # 0-1 Reference(Practitioner)
|
200
|
+
attr_accessor :allergyIntolerance # 0-* [ Reference(AllergyIntolerance) ]
|
201
|
+
attr_accessor :foodPreferenceModifier # 0-* [ CodeableConcept ]
|
202
|
+
attr_accessor :excludeFoodModifier # 0-* [ CodeableConcept ]
|
203
|
+
attr_accessor :oralDiet # 0-1 NutritionOrder::Oraldiet
|
204
|
+
attr_accessor :supplement # 0-* [ NutritionOrder::Supplement ]
|
205
|
+
attr_accessor :enteralFormula # 0-1 NutritionOrder::Enteralformula
|
206
|
+
|
207
|
+
def resourceType
|
208
|
+
'NutritionOrder'
|
209
|
+
end
|
210
|
+
end
|
211
|
+
end
|