Class: FHIR::STU3::UsageContext

Inherits:
Model
  • Object
show all
Includes:
Hashable, Json, Xml
Defined in:
lib/fhir_stu3_models/fhir/types/UsageContext.rb

Constant Summary collapse

MULTIPLE_TYPES =
{
  'value' => ['CodeableConcept', 'Quantity', 'Range']
}
SEARCH_PARAMS =
METADATA = {
  'id' => {'type'=>'string', 'path'=>'UsageContext.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'UsageContext.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'code' => {'valid_codes'=>{'http://hl7.org/fhir/usage-context-type'=>['gender', 'age', 'focus', 'user', 'workflow', 'task', 'venue', 'species']}, 'type'=>'Coding', 'path'=>'UsageContext.code', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/usage-context-type'}},
  'valueCodeableConcept' => {'valid_codes'=>{'https://www.usps.com/'=>['AK', 'AL', 'AR', 'AS', 'AZ', 'CA', 'CO', 'CT', 'DC', 'DE', 'FL', 'FM', 'GA', 'GU', 'HI', 'IA', 'ID', 'IL', 'IN', 'KS', 'KY', 'LA', 'MA', 'MD', 'ME', 'MH', 'MI', 'MN', 'MO', 'MP', 'MS', 'MT', 'NC', 'ND', 'NE', 'NH', 'NJ', 'NM', 'NV', 'NY', 'OH', 'OK', 'OR', 'PA', 'PR', 'PW', 'RI', 'SC', 'SD', 'TN', 'TX', 'UM', 'UT', 'VA', 'VI', 'VT', 'WA', 'WI', 'WV', 'WY'], 'http://hl7.org/fhir/practitioner-specialty'=>['cardio', 'dent', 'dietary', 'midw', 'sysarch'], 'http://snomed.info/sct'=>['394537008', '394538003', '394578005', '394579002', '394580004', '394582007', '394583002', '394584008', '394589003', '394590007', '394591006', '394593009', '394600006', '394601005', '394602003', '394649004', '394802001', '394803006', '394804000', '394805004', '394806003', '394807007', '394808002', '394809005', '394810000', '394811001', '394812008', '394813003', '408439002', '408440000', '408442008', '408445005', '408447002', '408448007', '408450004', '408459003', '408472002', '408475000', '408478003', '408480009', '409967009', '409968004', '410001006', '410005002', '416304004', '417887005', '418002000', '418058008', '418112009', '418535003', '418652005', '418862001', '419043006', '419170002', '419192003', '419215006', '419365004', '419472004', '419610006', '419677000', '419772000', '419917007', '419983000', '420112009', '420208008', '445715009', '715184008', '718359001', '101009', '112009', '117003', '118008', '132005', '173006', '194009', '201002', '207003', '209000', '218003', '226006', '229004', '234000', '260004', '268006', '275007', '277004', '300004', '305009', '332004', '338000', '347008', '350006', '376006', '381002', '386007', '390009', '399005', '400003', '404007', '410007', '411006', '416001', '421003', '423000', '428009', '451009', '453007', '466007', '502008', '507002', '516003', '537006', '546000', '562006', '564007', '572009', '573004', '579000', '583000', '592002', '598003', '606003', '644007', '653000', '679009', '684003', '689008', '706008', '708009', '719007', '725006', '740008', '744004', '763003', '769004', '778005', '782007', '797005', '833002', '846007', '848008', '854009', '861008', '864000', '868002', '869005', '872003', '887008', '898009', '927005', '929008', '944009', '946006', '952007', '958006', '997003', '1006005', '1014004', '1053008', '1064006', '1067004', '1082009', '1095004', '1109001', '1118004', '1142000', '1147006', '1153006', '1154000', '1158002', '1161001', '1162008', '1177000', '1191006', '1200006', '1213000', '1215007', '1220007', '1242008', '1247002', '1254008', '1265003', '1268001', '1270005', '1281008', '1288002', '1303005', '1330000', '1369006', '1382003', '1392006', '1420005', '1446009', '1452005', '1460006', '1461005', '1464002', '1465001', '1480007', '1504003', '1509008', '1510003', '1514007', '1543004', '1547003', '1564000', '1587008', '1618000', '1625007', '1629001', '1632003', '1635001', '1665006', '1688007', '1697006', '1700005', '1733000', '1751004', '1783005', '1789009', '1790000', '1802008', '1809004', '1817007', '1846000', '1851006', '1864007', '1867000', '1873004', '1894001', '1900001', '1920000', '1928007', '1935004', '1974006', '1984007', '2005006', '2025005', '2034000', '2035004', '2056002', '2062007', '2074006', '2086009', '2090006', '2093008', '2105009', '2106005', '2112000', '2118001', '2124007', '2135002', '2139008', '2146004', '2155001', '2173003', '2187003', '2200008', '2206002', '2207006', '2211000', '2222001', '2223006', '2230000', '2253004', '2265000', '2269006', '2271006', '2273009', '2274003', '2310001', '2313004', '2333000', '2340004', '2350003', '2353001', '2361006', '2378002', '2380008', '2394009', '2417004', '2422004', '2449004', '2479006', '2485004', '2493004', '2512008', '2519004', '2525000', '2540003', '2545008', '2551003', '2561005', '2572000', '2578001', '2587005', '2588000', '2590004', '2604009', '2605005', '2623002', '2627001', '2631007', '2633005', '2650007', '2684006', '2711004', '2715008', '2723005', '2727006', '2747003', '2755005', '2756006', '2766003', '2768002', '2773008', '2797004', '2798009', '2800002', '2817009', '2865005', '2873001', '2874007', '2882007', '2896001', '2921003', '2926008', '2930006', '2939007', '2976005', '2983003', '2984009', '2987002', '2997006', '3012009', '3064003', '3065002', '3069008', '3079005', '3099004', '3106001', '3111004', '3124004', '3132007', '3146007', '3147003', '3152008', '3173008', '3176000', '3179007', '3181009', '3195007', '3203001', '3206009', '3213009', '3216001', '3220002', '3231005', '3237009', '3240009', '3244000', '3260001', '3284009', '3294004', '3329004', '3347005', '3354004', '3356002', '3363002', '3375007', '3410009', '3412001', '3429003', '3433005', '3435003', '3454003', '3475006', '3486008', '3510006', '3536004', '3565005', '3566006', '3568007', '3569004', '3574007', '3600006', '3613000', '3619001', '3632006', '3653002', '3656005', '3668001', '3671009', '3674001', '3676004', '3682001', '3685004', '3706005', '3721004', '3725008', '3732004', '3741009', '3767004', '3782009', '3795004', '3809005', '3817002', '3824001', '3856008', '3857004', '3871007', '3872000', '3905003', '3912007', '3919003', '3921008', '3933003', '3934009', '3940002', '3946008', '3965000', '3995008', '3997000', '4011008', '4020004', '4031007', '4033005', '4042003', '4049007', '4050007', '4056001', '4095000', '4108005', '4123000', '4166007', '4171000', '4209008', '4216009', '4228001', '4233002', '4236005', '4245006', '4246007', '4250000', '4261008', '4274002', '4277009', '4288003', '4297004', '4302001', '4309005', '4315005', '4329006', '4366000', '4384003', '4395009', '4396005', '4417003', '4431003', '4446005', '4453001', '4482000', '4498007', '4514008', '4571006', '4574003', '4595008', '4597000', '4599002', '4608006', '4609003', '4622006', '4630007', '4650006', '4679004', '4680001', '4682009', '4726001', '4742008', '4747002', '4767006', '4781008', '4790001', '4796007', '4801002', '4802009', '4875007', '4880003', '4883001', '4893008', '4911005', '4912003', '4923004', '4931009', '4960000', '4971004', '4978005', '4982007', '4988006', '4990007', '4991006', '5005003', '5011000', '5013002', '5058008', '5107008', '5111002', '5114005', '5116007', '5129007', '5138009', '5146005', '5164003', '5211009', '5227002', '5238002', '5249008', '5260004', '5263002', '5265009', '5271003', '5278009', '5281004', '5284007', '5293008', '5297009', '5306005', '5344001', '5345000', '5350006', '5355001', '5365007', '5378007', '5390009', '5416001', '5424006', '5436000', '5437009', '5438004', '5443006', '5445004', '5449005', '5466007', '5475009', '5522007', '5550007', '5581003', '5588009', '5620005', '5630001', '5634005', '5635006', '5652005', '5654006', '5673005', '5674004', '5678001', '5680007', '5684003', '5698006', '5706008', '5707004', '5711005', '5730005', '5732002', '5735000', '5749009', '5752001', '5756003', '5763003', '5766006', '5773001', '5782007', '5833002', '5848008', '5891003', '5904002', '5916008', '5970005', '5990001', '6017005', '6018000', '6037009', '6039007', '6053007', '6094004', '6103004', '6112002', '6114001', '6144003', '6152000', '6167001', '6173000', '6196000', '6220006', '6239001', '6278002', '6290000', '6311004', '6340001', '6345006', '6372003', '6376000', '6407006', '6418006', '6420009', '6431001', '6435005', '6447004', '6453004', '6482003', '6489007', '6498005', '6512005', '6518009', '6540000', '6549004', '6560008', '6569009', '6581008', '6583006', '6591002', '6597003', '6610006', '6613008', '6630005', '6632002', '6638003', '6653006', '6674007', '6683002', '6693009', '6697005'], 'urn:iso:std:iso:3166'=>['AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AN', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AW', 'AX', 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BS', 'BT', 'BU', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CO', 'CR', 'CS', 'CT', 'CU', 'CV', 'CW', 'CX', 'CY', 'CZ', 'DD', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DY', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ES', 'ET', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FQ', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'HV', 'ID', 'IE', 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'JT', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MI', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NC', 'NE', 'NF', 'NG', 'NH', 'NI', 'NL', 'NO', 'NP', 'NQ', 'NR', 'NT', 'NU', 'NZ', 'OM', 'PA', 'PC', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PU', 'PW', 'PY', 'PZ', 'QA', 'RE', 'RH', 'RO', 'RS', 'RU', 'RW', 'SA', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SU', 'SV', 'SX', 'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TP', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UG', 'UM', 'US', 'UY', 'UZ', 'VA', 'VC', 'VD', 'VE', 'VG', 'VI', 'VN', 'VU', 'WF', 'WK', 'WS', 'YD', 'YE', 'YT', 'YU', 'ZA', 'ZM', 'ZR', 'ZW'], 'http://unstats.un.org/unsd/methods/m49/m49.htm'=>['001', '002', '014', '017', '015', '018', '011', '019', '419', '029', '013', '005', '021', '142', '143', '030', '034', '035', '145', '150', '151', '154', '039', '155', '009', '053', '054', '057', '061'], nil=>[], 'http://nucc.org/provider-taxonomy'=>[]}, 'type'=>'CodeableConcept', 'path'=>'UsageContext.value[x]', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/use-context'}},
  'valueQuantity' => {'type'=>'Quantity', 'path'=>'UsageContext.value[x]', 'min'=>1, 'max'=>1},
  'valueRange' => {'type'=>'Range', 'path'=>'UsageContext.value[x]', 'min'=>1, 'max'=>1}
}

Instance Attribute Summary collapse

Method Summary

Methods included from Xml

from_xml, #to_xml, valid?, validate

Methods included from Deprecate

#deprecate

Methods included from Json

from_json, #to_json

Methods included from Hashable

#from_hash, #to_hash

Methods inherited from Model

#==, #attribute_mismatch, #compare_attribute, #each_element, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #to_reference, #valid?, #validate, #validate_profile

Constructor Details

This class inherits a constructor from FHIR::STU3::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FHIR::STU3::Model

Instance Attribute Details

#codeObject

1-1 Coding



23
24
25
# File 'lib/fhir_stu3_models/fhir/types/UsageContext.rb', line 23

def code
  @code
end

#extensionObject

0-* [ Extension ]



22
23
24
# File 'lib/fhir_stu3_models/fhir/types/UsageContext.rb', line 22

def extension
  @extension
end

#idObject

0-1 string



21
22
23
# File 'lib/fhir_stu3_models/fhir/types/UsageContext.rb', line 21

def id
  @id
end

#valueCodeableConceptObject

1-1 CodeableConcept



24
25
26
# File 'lib/fhir_stu3_models/fhir/types/UsageContext.rb', line 24

def valueCodeableConcept
  @valueCodeableConcept
end

#valueQuantityObject

1-1 Quantity



25
26
27
# File 'lib/fhir_stu3_models/fhir/types/UsageContext.rb', line 25

def valueQuantity
  @valueQuantity
end

#valueRangeObject

1-1 Range



26
27
28
# File 'lib/fhir_stu3_models/fhir/types/UsageContext.rb', line 26

def valueRange
  @valueRange
end