fhir_models 1.8.2 → 1.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +1 -0
- data/.rspec +2 -0
- data/.rubocop.yml +5 -1156
- data/.rubocop_todo.yml +76 -0
- data/.travis.yml +9 -3
- data/Gemfile +1 -1
- data/Guardfile +50 -0
- data/Rakefile +4 -5
- data/bin/console +4 -4
- data/fhir_models.gemspec +6 -3
- data/lib/fhir_models.rb +2 -1
- data/lib/fhir_models/bootstrap/definitions.rb +100 -94
- data/lib/fhir_models/bootstrap/field.rb +1 -1
- data/lib/fhir_models/bootstrap/generator.rb +11 -11
- data/lib/fhir_models/bootstrap/hashable.rb +18 -5
- data/lib/fhir_models/bootstrap/json.rb +2 -1
- data/lib/fhir_models/bootstrap/model.rb +21 -39
- data/lib/fhir_models/bootstrap/preprocess.rb +21 -36
- data/lib/fhir_models/bootstrap/template.rb +5 -9
- data/lib/fhir_models/bootstrap/xml.rb +8 -5
- data/lib/fhir_models/deprecate.rb +22 -0
- data/lib/fhir_models/fhir.rb +58 -0
- data/lib/fhir_models/fhir/metadata.rb +1 -1
- data/lib/fhir_models/fhir_ext/element_definition.rb +47 -0
- data/lib/fhir_models/fhir_ext/structure_definition.rb +203 -524
- data/lib/fhir_models/fhir_ext/structure_definition_compare.rb +375 -0
- data/lib/fhir_models/fluentpath/evaluate.rb +9 -2
- data/lib/fhir_models/fluentpath/expression.rb +8 -1
- data/lib/fhir_models/fluentpath/parse.rb +2 -2
- data/lib/fhir_models/version.rb +1 -1
- metadata +62 -15
- data/lib/fhir_models/fhir/resources/MetadataResource.rb +0 -52
@@ -1,52 +0,0 @@
|
|
1
|
-
module FHIR
|
2
|
-
class MetadataResource < FHIR::Model
|
3
|
-
include FHIR::Hashable
|
4
|
-
include FHIR::Json
|
5
|
-
include FHIR::Xml
|
6
|
-
|
7
|
-
SEARCH_PARAMS =
|
8
|
-
METADATA = {
|
9
|
-
'id' => {'type'=>'id', 'path'=>'MetadataResource.id', 'min'=>0, 'max'=>1},
|
10
|
-
'meta' => {'type'=>'Meta', 'path'=>'MetadataResource.meta', 'min'=>0, 'max'=>1},
|
11
|
-
'implicitRules' => {'type'=>'uri', 'path'=>'MetadataResource.implicitRules', 'min'=>0, 'max'=>1},
|
12
|
-
'language' => {'valid_codes'=>{'urn:ietf:bcp:47'=>['bn', 'cs', 'da', 'de', 'de-AT', 'de-CH', 'de-DE', 'el', 'en', 'en-AU', 'en-CA', 'en-GB', 'en-IN', 'en-NZ', 'en-SG', 'en-US', 'es', 'es-AR', 'es-ES', 'es-UY', 'fi', 'fr', 'fr-BE', 'fr-CH', 'fr-FR', 'fy', 'fy-NL', 'hr', 'it', 'it-CH', 'it-IT', 'ja', 'ko', 'nl', 'nl-BE', 'nl-NL', 'no', 'no-NO', 'pt', 'pt-BR', 'ru', 'ru-RU', 'sr', 'sr-SP', 'sv', 'sv-SE', 'te', 'zh', 'zh-CN', 'zh-HK', 'zh-SG', 'zh-TW']}, 'type'=>'code', 'path'=>'MetadataResource.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/languages'}},
|
13
|
-
'text' => {'type'=>'Narrative', 'path'=>'MetadataResource.text', 'min'=>0, 'max'=>1},
|
14
|
-
'contained' => {'type'=>'Resource', 'path'=>'MetadataResource.contained', 'min'=>0, 'max'=>Float::INFINITY},
|
15
|
-
'extension' => {'type'=>'Extension', 'path'=>'MetadataResource.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
16
|
-
'modifierExtension' => {'type'=>'Extension', 'path'=>'MetadataResource.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
17
|
-
'url' => {'type'=>'uri', 'path'=>'MetadataResource.url', 'min'=>0, 'max'=>1},
|
18
|
-
'version' => {'type'=>'string', 'path'=>'MetadataResource.version', 'min'=>0, 'max'=>1},
|
19
|
-
'name' => {'type'=>'string', 'path'=>'MetadataResource.name', 'min'=>0, 'max'=>1},
|
20
|
-
'title' => {'type'=>'string', 'path'=>'MetadataResource.title', 'min'=>0, 'max'=>1},
|
21
|
-
'status' => {'valid_codes'=>{'http://hl7.org/fhir/publication-status'=>['draft', 'active', 'retired', 'draft', 'active', 'retired']}, 'type'=>'code', 'path'=>'MetadataResource.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/publication-status'}},
|
22
|
-
'experimental' => {'type'=>'boolean', 'path'=>'MetadataResource.experimental', 'min'=>0, 'max'=>1},
|
23
|
-
'date' => {'type'=>'dateTime', 'path'=>'MetadataResource.date', 'min'=>0, 'max'=>1},
|
24
|
-
'publisher' => {'type'=>'string', 'path'=>'MetadataResource.publisher', 'min'=>0, 'max'=>1},
|
25
|
-
'contact' => {'type'=>'ContactDetail', 'path'=>'MetadataResource.contact', 'min'=>0, 'max'=>Float::INFINITY},
|
26
|
-
'useContext' => {'type'=>'UsageContext', 'path'=>'MetadataResource.useContext', 'min'=>0, 'max'=>Float::INFINITY},
|
27
|
-
'jurisdiction' => {'valid_codes'=>{'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'=>['004', '008', '012', '016', '020', '024', '028', '031', '032', '036', '040', '044', '048', '050', '051', '052', '056', '060', '064', '068', '070', '072', '076', '084', '090', '092', '096', '100', '104', '108', '112', '116', '120', '124', '132', '136', '140', '144', '148', '152', '156', '170', '174', '175', '178', '180', '184', '188', '191', '192', '196', '203', '204', '208', '212', '214', '218', '222', '226', '231', '232', '233', '234', '238', '242', '246', '248', '250', '254', '258', '262', '266', '268', '270', '275', '276', '288', '292', '296', '300', '304', '308', '312', '316', '320', '324', '328', '332', '336', '340', '344', '348', '352', '356', '360', '364', '368', '372', '376', '380', '384', '388', '392', '398', '400', '404', '408', '410', '414', '417', '418', '422', '426', '428', '430', '434', '438', '440', '442', '446', '450', '454', '458', '462', '466', '470', '474', '478', '480', '484', '492', '496', '498', '499', '500', '504', '508', '512', '516', '520', '524', '528', '531', '533', '534', '535', '540', '548', '554', '558', '562', '566', '570', '574', '578', '580', '583', '584', '585', '586', '591', '598', '600', '604', '608', '612', '616', '620', '624', '626', '630', '634', '638', '642', '643', '646', '652', '654', '659', '660', '662', '663', '666', '670', '674', '678', '680', '682', '686', '688', '690', '694', '702', '703', '704', '705', '706', '710', '716', '724', '728', '729', '732', '740', '744', '748', '752', '756', '760', '762', '764', '768', '772', '776', '780', '784', '788', '792', '795', '796', '798', '800', '804', '807', '818', '826', '830', '831', '832', '833', '834', '840', '850', '854', '858', '860', '862', '876', '882', '887', '894'], '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'], nil=>[]}, 'type'=>'CodeableConcept', 'path'=>'MetadataResource.jurisdiction', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/jurisdiction'}},
|
28
|
-
'description' => {'type'=>'markdown', 'path'=>'MetadataResource.description', 'min'=>0, 'max'=>1}
|
29
|
-
}
|
30
|
-
|
31
|
-
attr_accessor :id # 0-1 id
|
32
|
-
attr_accessor :meta # 0-1 Meta
|
33
|
-
attr_accessor :implicitRules # 0-1 uri
|
34
|
-
attr_accessor :language # 0-1 code
|
35
|
-
attr_accessor :text # 0-1 Narrative
|
36
|
-
attr_accessor :contained # 0-* [ Resource ]
|
37
|
-
attr_accessor :extension # 0-* [ Extension ]
|
38
|
-
attr_accessor :modifierExtension # 0-* [ Extension ]
|
39
|
-
attr_accessor :url # 0-1 uri
|
40
|
-
attr_accessor :version # 0-1 string
|
41
|
-
attr_accessor :name # 0-1 string
|
42
|
-
attr_accessor :title # 0-1 string
|
43
|
-
attr_accessor :status # 1-1 code
|
44
|
-
attr_accessor :experimental # 0-1 boolean
|
45
|
-
attr_accessor :date # 0-1 dateTime
|
46
|
-
attr_accessor :publisher # 0-1 string
|
47
|
-
attr_accessor :contact # 0-* [ ContactDetail ]
|
48
|
-
attr_accessor :useContext # 0-* [ UsageContext ]
|
49
|
-
attr_accessor :jurisdiction # 0-* [ CodeableConcept ]
|
50
|
-
attr_accessor :description # 0-1 markdown
|
51
|
-
end
|
52
|
-
end
|