Class: FHIR::Medication::Product

Inherits:
FHIR::Model show all
Includes:
Hashable, Json, Xml
Defined in:
lib/fhir/resources/Medication.rb

Defined Under Namespace

Classes: Batch, Ingredient

Constant Summary collapse

METADATA =
{
  'id' => {'type'=>'string', 'path'=>'Product.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'Product.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Product.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'form' => {'valid_codes'=>{'http://snomed.info/sct'=>['7946007', '11190007', '17519006', '30843009', '36875001', '37937005', '46992007', '48582000', '52262001', '63316001', '64241004', '66076007', '77899000', '85581007', '385018001', '385019009', '385020003', '385021004', '385022006', '385023001', '385024007', '385025008', '385026009', '385027000', '385028005', '385029002', '385032004', '385033009', '385034003', '385035002', '385036001', '385038000', '385039008', '385041009', '385042002', '385043007', '385044001', '385045000', '385046004', '385047008', '385048003', '385049006', '385050006', '385051005', '385052003', '385053008', '385054002', '385055001', '385057009', '385058004', '385059007', '385060002', '385061003', '385062005', '385063000', '385064006', '385069001', '385070000', '385071001', '385073003', '385074009', '385077002', '385078007', '385079004', '385080001', '385081002', '385082009', '385083004', '385084005', '385085006', '385086007', '385087003', '385088008', '385089000', '385090009', '385091008', '385092001', '385094000', '385095004', '385096003', '385098002', '385099005', '385100002', '385101003', '385102005', '385103000', '385104006', '385105007', '385106008', '385107004', '385108009', '385110006', '385111005', '385112003', '385113008', '385114002', '385115001', '385116000', '385117009', '385118004', '385119007', '385121002', '385122009', '385123004', '385124005', '385125006', '385128008', '385130005', '385132002', '385133007', '385134001', '385135000', '385136004', '385137008', '385138003', '385139006', '385140008', '385141007', '385142000', '385143005', '385147006', '385148001', '385149009', '385150009', '385151008', '385152001', '385153006', '385154000', '385155004', '385156003', '385157007', '385158002', '385159005', '385160000', '385162008', '385163003', '385164009', '385165005', '385166006', '385167002', '385168007', '385169004', '385170003', '385171004', '385172006', '385173001', '385174007', '385175008', '385176009', '385177000', '385178005', '385179002', '385180004', '385182007', '385183002', '385184008', '385185009', '385186005', '385187001', '385188006', '385189003', '385191006', '385192004', '385193009', '385194003', '385195002', '385196001', '385197005', '385198000', '385199008', '385200006', '385201005', '385202003', '385203008', '385204002', '385205001', '385206000', '385207009', '385208004', '385210002', '385211003', '385212005', '385213000', '385214006', '385215007', '385216008', '385217004', '385219001', '385220007', '385221006', '385222004', '385223009', '385224003', '385229008', '385230003', '385231004', '385236009', '385237000', '385242008', '385245005', '385246006', '385247002', '385248007', '385250004', '385251000', '385257001', '385258006', '385259003', '385260008', '385261007', '385262000', '385278003', '385279006', '385286003', '414951009', '420243009', '420253005', '420275007', '420283001', '420292003', '420293008', '420305009', '420317006', '420378007', '420385006', '420386007', '420407000', '420430006', '420450005', '420460001', '420509004', '420536002', '420540006', '420610000', '420627008', '420631002', '420634005', '420636007', '420641004', '420656008', '420692007', '420699003', '420705007', '420736004', '420757007', '420761001', '420767002', '420768007', '420802004', '420828001', '420847003', '420873008', '420887008', '420891003', '420901005', '420927005', '420929008', '420955009', '420956005', '420992009', '421026006', '421027002', '421034000', '421043009', '421051007', '421056002', '421079001', '421080003', '421104008', '421131006', '421155001', '421166008', '421195004', '421221008', '421271006', '421288004', '421300005', '421316007', '421338009', '421340004', '421343002', '421347001', '421366001', '421374000', '421378002', '421382000', '421410002', '421425002', '421427005', '421428000', '421446006', '421504000', '421522002', '421532009', '421535006', '421575003', '421606006', '421607002', '421618002', '421620004', '421628006', '421637006', '421669002', '421701006', '421713001', '421716009', '421720008', '421721007', '421752008', '421759004', '421765004', '421857007', '421873001', '421890007', '421932003', '421937009', '421943006', '421949005', '421987002', '421999009', '422054001', '422059006', '422060001', '422068008', '422080000', '422085005', '422151007', '422186009', '422197009', '422199007', '422201009', '422202002', '422259002', '422264003', '422301006', '422336005', '422353003', '424179000', '424552006', '425753008', '425965000', '426210003', '426684005', '426823003', '426969004', '427129005', '427564005', '427609008', '429885007', '443424002', '447050008', '447079001', '723411000168102', '723421000168109', '723451000168101', '723461000168104', '723481000168108', '723491000168106', '723521000168108', '723531000168106', '723541000168102', '723581000168107', '723651000168104', '723691000168109', '723701000168109']}, 'type'=>'CodeableConcept', 'path'=>'Product.form', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/medication-form-codes'}},
  'ingredient' => {'type'=>'Medication::Product::Ingredient', 'path'=>'Product.ingredient', 'min'=>0, 'max'=>Float::INFINITY},
  'batch' => {'type'=>'Medication::Product::Batch', 'path'=>'Product.batch', 'min'=>0, 'max'=>Float::INFINITY}
}

Instance Attribute Summary collapse

Method Summary

Methods included from Xml

from_xml, is_valid?, #to_xml, validate

Methods included from Json

from_json, #to_json

Methods included from Hashable

#from_hash, #to_hash

Methods inherited from FHIR::Model

#attribute_mismatch, #compare_attribute, #equals?, #initialize, #is_valid?, #method_missing, #mismatch, #to_reference, #validate, #validate_profile

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

#batchObject

0-* [ Medication::Product::Batch ]



88
89
90
# File 'lib/fhir/resources/Medication.rb', line 88

def batch
  @batch
end

#extensionObject

0-* [ Extension ]



84
85
86
# File 'lib/fhir/resources/Medication.rb', line 84

def extension
  @extension
end

#formObject

0-1 CodeableConcept



86
87
88
# File 'lib/fhir/resources/Medication.rb', line 86

def form
  @form
end

#idObject

0-1 string



83
84
85
# File 'lib/fhir/resources/Medication.rb', line 83

def id
  @id
end

#ingredientObject

0-* [ Medication::Product::Ingredient ]



87
88
89
# File 'lib/fhir/resources/Medication.rb', line 87

def ingredient
  @ingredient
end

#modifierExtensionObject

0-* [ Extension ]



85
86
87
# File 'lib/fhir/resources/Medication.rb', line 85

def modifierExtension
  @modifierExtension
end