fhir_dstu2_models 1.1.1 → 1.2.0
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 -1
- data/.github/workflows/ruby.yml +2 -1
- data/.rubocop.yml +7 -1
- data/.rubocop_todo.yml +56 -161
- data/.ruby-version +1 -0
- data/.simplecov +1 -5
- data/.tool-versions +1 -0
- data/Gemfile.lock +37 -35
- data/Guardfile +1 -1
- data/fhir_dstu2_models.gemspec +2 -1
- data/lib/fhir_dstu2_models/bootstrap/definitions.rb +18 -4
- data/lib/fhir_dstu2_models/bootstrap/field.rb +2 -2
- data/lib/fhir_dstu2_models/bootstrap/generator.rb +6 -4
- data/lib/fhir_dstu2_models/bootstrap/hashable.rb +6 -5
- data/lib/fhir_dstu2_models/bootstrap/json.rb +2 -2
- data/lib/fhir_dstu2_models/bootstrap/model.rb +45 -32
- data/lib/fhir_dstu2_models/bootstrap/preprocess.rb +19 -11
- data/lib/fhir_dstu2_models/bootstrap/xml.rb +9 -7
- data/lib/fhir_dstu2_models/deprecate.rb +1 -0
- data/lib/fhir_dstu2_models/fhir/metadata.rb +19 -21
- data/lib/fhir_dstu2_models/fhir/resources/Account.rb +20 -20
- data/lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb +34 -34
- data/lib/fhir_dstu2_models/fhir/resources/Appointment.rb +28 -28
- data/lib/fhir_dstu2_models/fhir/resources/AppointmentResponse.rb +17 -17
- data/lib/fhir_dstu2_models/fhir/resources/AuditEvent.rb +66 -66
- data/lib/fhir_dstu2_models/fhir/resources/Basic.rb +14 -14
- data/lib/fhir_dstu2_models/fhir/resources/Binary.rb +7 -7
- data/lib/fhir_dstu2_models/fhir/resources/BodySite.rb +15 -15
- data/lib/fhir_dstu2_models/fhir/resources/Bundle.rb +45 -45
- data/lib/fhir_dstu2_models/fhir/resources/CarePlan.rb +63 -63
- data/lib/fhir_dstu2_models/fhir/resources/Claim.rb +118 -118
- data/lib/fhir_dstu2_models/fhir/resources/ClaimResponse.rb +122 -124
- data/lib/fhir_dstu2_models/fhir/resources/ClinicalImpression.rb +42 -42
- data/lib/fhir_dstu2_models/fhir/resources/Communication.rb +28 -28
- data/lib/fhir_dstu2_models/fhir/resources/CommunicationRequest.rb +30 -30
- data/lib/fhir_dstu2_models/fhir/resources/Composition.rb +46 -46
- data/lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb +53 -53
- data/lib/fhir_dstu2_models/fhir/resources/Condition.rb +44 -44
- data/lib/fhir_dstu2_models/fhir/resources/Conformance.rb +138 -138
- data/lib/fhir_dstu2_models/fhir/resources/Contract.rb +98 -98
- data/lib/fhir_dstu2_models/fhir/resources/Coverage.rb +23 -23
- data/lib/fhir_dstu2_models/fhir/resources/DataElement.rb +35 -35
- data/lib/fhir_dstu2_models/fhir/resources/DetectedIssue.rb +25 -25
- data/lib/fhir_dstu2_models/fhir/resources/Device.rb +25 -25
- data/lib/fhir_dstu2_models/fhir/resources/DeviceComponent.rb +25 -25
- data/lib/fhir_dstu2_models/fhir/resources/DeviceMetric.rb +25 -25
- data/lib/fhir_dstu2_models/fhir/resources/DeviceUseRequest.rb +25 -25
- data/lib/fhir_dstu2_models/fhir/resources/DeviceUseStatement.rb +21 -21
- data/lib/fhir_dstu2_models/fhir/resources/DiagnosticOrder.rb +36 -36
- data/lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb +32 -32
- data/lib/fhir_dstu2_models/fhir/resources/DocumentManifest.rb +31 -31
- data/lib/fhir_dstu2_models/fhir/resources/DocumentReference.rb +51 -51
- data/lib/fhir_dstu2_models/fhir/resources/DomainResource.rb +12 -12
- data/lib/fhir_dstu2_models/fhir/resources/EligibilityRequest.rb +16 -16
- data/lib/fhir_dstu2_models/fhir/resources/EligibilityResponse.rb +19 -19
- data/lib/fhir_dstu2_models/fhir/resources/Encounter.rb +59 -59
- data/lib/fhir_dstu2_models/fhir/resources/EnrollmentRequest.rb +19 -19
- data/lib/fhir_dstu2_models/fhir/resources/EnrollmentResponse.rb +19 -19
- data/lib/fhir_dstu2_models/fhir/resources/EpisodeOfCare.rb +31 -31
- data/lib/fhir_dstu2_models/fhir/resources/ExplanationOfBenefit.rb +19 -19
- data/lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb +39 -39
- data/lib/fhir_dstu2_models/fhir/resources/Flag.rb +17 -17
- data/lib/fhir_dstu2_models/fhir/resources/Goal.rb +30 -30
- data/lib/fhir_dstu2_models/fhir/resources/Group.rb +33 -33
- data/lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb +48 -48
- data/lib/fhir_dstu2_models/fhir/resources/ImagingObjectSelection.rb +41 -41
- data/lib/fhir_dstu2_models/fhir/resources/ImagingStudy.rb +48 -48
- data/lib/fhir_dstu2_models/fhir/resources/Immunization.rb +52 -52
- data/lib/fhir_dstu2_models/fhir/resources/ImmunizationRecommendation.rb +35 -35
- data/lib/fhir_dstu2_models/fhir/resources/ImplementationGuide.rb +67 -67
- data/lib/fhir_dstu2_models/fhir/resources/List.rb +29 -29
- data/lib/fhir_dstu2_models/fhir/resources/Location.rb +27 -27
- data/lib/fhir_dstu2_models/fhir/resources/Media.rb +21 -21
- data/lib/fhir_dstu2_models/fhir/resources/Medication.rb +40 -40
- data/lib/fhir_dstu2_models/fhir/resources/MedicationAdministration.rb +36 -36
- data/lib/fhir_dstu2_models/fhir/resources/MedicationDispense.rb +49 -49
- data/lib/fhir_dstu2_models/fhir/resources/MedicationOrder.rb +57 -57
- data/lib/fhir_dstu2_models/fhir/resources/MedicationStatement.rb +41 -41
- data/lib/fhir_dstu2_models/fhir/resources/MessageHeader.rb +40 -40
- data/lib/fhir_dstu2_models/fhir/resources/NamingSystem.rb +34 -34
- data/lib/fhir_dstu2_models/fhir/resources/NutritionOrder.rb +67 -67
- data/lib/fhir_dstu2_models/fhir/resources/Observation.rb +68 -68
- data/lib/fhir_dstu2_models/fhir/resources/OperationDefinition.rb +51 -51
- data/lib/fhir_dstu2_models/fhir/resources/OperationOutcome.rb +21 -21
- data/lib/fhir_dstu2_models/fhir/resources/Order.rb +23 -23
- data/lib/fhir_dstu2_models/fhir/resources/OrderResponse.rb +16 -16
- data/lib/fhir_dstu2_models/fhir/resources/Organization.rb +24 -24
- data/lib/fhir_dstu2_models/fhir/resources/Parameters.rb +48 -48
- data/lib/fhir_dstu2_models/fhir/resources/Patient.rb +54 -54
- data/lib/fhir_dstu2_models/fhir/resources/PaymentNotice.rb +19 -19
- data/lib/fhir_dstu2_models/fhir/resources/PaymentReconciliation.rb +39 -39
- data/lib/fhir_dstu2_models/fhir/resources/Person.rb +24 -24
- data/lib/fhir_dstu2_models/fhir/resources/Practitioner.rb +36 -36
- data/lib/fhir_dstu2_models/fhir/resources/Procedure.rb +42 -42
- data/lib/fhir_dstu2_models/fhir/resources/ProcedureRequest.rb +27 -27
- data/lib/fhir_dstu2_models/fhir/resources/ProcessRequest.rb +29 -29
- data/lib/fhir_dstu2_models/fhir/resources/ProcessResponse.rb +27 -27
- data/lib/fhir_dstu2_models/fhir/resources/Provenance.rb +39 -39
- data/lib/fhir_dstu2_models/fhir/resources/Questionnaire.rb +40 -40
- data/lib/fhir_dstu2_models/fhir/resources/QuestionnaireResponse.rb +50 -50
- data/lib/fhir_dstu2_models/fhir/resources/ReferralRequest.rb +25 -25
- data/lib/fhir_dstu2_models/fhir/resources/RelatedPerson.rb +19 -19
- data/lib/fhir_dstu2_models/fhir/resources/Resource.rb +5 -5
- data/lib/fhir_dstu2_models/fhir/resources/RiskAssessment.rb +30 -30
- data/lib/fhir_dstu2_models/fhir/resources/Schedule.rb +14 -14
- data/lib/fhir_dstu2_models/fhir/resources/SearchParameter.rb +29 -29
- data/lib/fhir_dstu2_models/fhir/resources/Slot.rb +17 -17
- data/lib/fhir_dstu2_models/fhir/resources/Specimen.rb +45 -45
- data/lib/fhir_dstu2_models/fhir/resources/StructureDefinition.rb +54 -54
- data/lib/fhir_dstu2_models/fhir/resources/Subscription.rb +24 -24
- data/lib/fhir_dstu2_models/fhir/resources/Substance.rb +26 -26
- data/lib/fhir_dstu2_models/fhir/resources/SupplyDelivery.rb +20 -20
- data/lib/fhir_dstu2_models/fhir/resources/SupplyRequest.rb +25 -25
- data/lib/fhir_dstu2_models/fhir/resources/TestScript.rb +140 -140
- data/lib/fhir_dstu2_models/fhir/resources/ValueSet.rb +108 -108
- data/lib/fhir_dstu2_models/fhir/resources/VisionPrescription.rb +35 -35
- data/lib/fhir_dstu2_models/fhir/types/Address.rb +16 -16
- data/lib/fhir_dstu2_models/fhir/types/Annotation.rb +10 -10
- data/lib/fhir_dstu2_models/fhir/types/Attachment.rb +14 -14
- data/lib/fhir_dstu2_models/fhir/types/BackboneElement.rb +7 -7
- data/lib/fhir_dstu2_models/fhir/types/CodeableConcept.rb +8 -8
- data/lib/fhir_dstu2_models/fhir/types/Coding.rb +11 -11
- data/lib/fhir_dstu2_models/fhir/types/ContactPoint.rb +11 -11
- data/lib/fhir_dstu2_models/fhir/types/Element.rb +3 -3
- data/lib/fhir_dstu2_models/fhir/types/ElementDefinition.rb +263 -263
- data/lib/fhir_dstu2_models/fhir/types/Extension.rb +40 -40
- data/lib/fhir_dstu2_models/fhir/types/HumanName.rb +13 -13
- data/lib/fhir_dstu2_models/fhir/types/Identifier.rb +12 -12
- data/lib/fhir_dstu2_models/fhir/types/Meta.rb +11 -11
- data/lib/fhir_dstu2_models/fhir/types/Narrative.rb +8 -8
- data/lib/fhir_dstu2_models/fhir/types/Period.rb +8 -8
- data/lib/fhir_dstu2_models/fhir/types/Quantity.rb +11 -11
- data/lib/fhir_dstu2_models/fhir/types/Range.rb +8 -8
- data/lib/fhir_dstu2_models/fhir/types/Ratio.rb +8 -8
- data/lib/fhir_dstu2_models/fhir/types/Reference.rb +5 -5
- data/lib/fhir_dstu2_models/fhir/types/SampledData.rb +13 -13
- data/lib/fhir_dstu2_models/fhir/types/Signature.rb +12 -12
- data/lib/fhir_dstu2_models/fhir/types/Timing.rb +24 -24
- data/lib/fhir_dstu2_models/fhir.rb +7 -6
- data/lib/fhir_dstu2_models/fhir_ext/element_definition.rb +3 -0
- data/lib/fhir_dstu2_models/fhir_ext/structure_definition.rb +19 -14
- data/lib/fhir_dstu2_models/fhir_ext/structure_definition_compare.rb +10 -0
- data/lib/fhir_dstu2_models/fhir_ext/structure_definition_finding.rb +2 -2
- data/lib/fhir_dstu2_models/fluentpath/evaluate.rb +18 -11
- data/lib/fhir_dstu2_models/fluentpath/expression.rb +3 -5
- data/lib/fhir_dstu2_models/fluentpath/parse.rb +7 -4
- data/lib/fhir_dstu2_models/version.rb +1 -1
- metadata +11 -9
@@ -7,31 +7,31 @@ module FHIR
|
|
7
7
|
|
8
8
|
SEARCH_PARAMS = ['context', 'date', 'dependency', 'description', 'experimental', 'name', 'publisher', 'status', 'url', 'version']
|
9
9
|
METADATA = {
|
10
|
-
'id' => {'type'=>'id', 'path'=>'ImplementationGuide.id', 'min'=>0, 'max'=>1},
|
11
|
-
'meta' => {'type'=>'Meta', 'path'=>'ImplementationGuide.meta', 'min'=>0, 'max'=>1},
|
12
|
-
'implicitRules' => {'type'=>'uri', 'path'=>'ImplementationGuide.implicitRules', 'min'=>0, 'max'=>1},
|
13
|
-
'language' => {'type'=>'code', 'path'=>'ImplementationGuide.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
|
14
|
-
'text' => {'type'=>'Narrative', 'path'=>'ImplementationGuide.text', 'min'=>0, 'max'=>1},
|
15
|
-
'contained' => {'type'=>'Resource', 'path'=>'ImplementationGuide.contained', 'min'=>0, 'max'=>Float::INFINITY},
|
16
|
-
'extension' => {'type'=>'Extension', 'path'=>'ImplementationGuide.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
17
|
-
'modifierExtension' => {'type'=>'Extension', 'path'=>'ImplementationGuide.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
18
|
-
'url' => {'type'=>'uri', 'path'=>'ImplementationGuide.url', 'min'=>1, 'max'=>1},
|
19
|
-
'version' => {'type'=>'string', 'path'=>'ImplementationGuide.version', 'min'=>0, 'max'=>1},
|
20
|
-
'name' => {'type'=>'string', 'path'=>'ImplementationGuide.name', 'min'=>1, 'max'=>1},
|
21
|
-
'status' => {'valid_codes'=>{'http://hl7.org/fhir/conformance-resource-status'=>['draft', 'active', 'retired']}, 'type'=>'code', 'path'=>'ImplementationGuide.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/conformance-resource-status'}},
|
22
|
-
'experimental' => {'type'=>'boolean', 'path'=>'ImplementationGuide.experimental', 'min'=>0, 'max'=>1},
|
23
|
-
'publisher' => {'type'=>'string', 'path'=>'ImplementationGuide.publisher', 'min'=>0, 'max'=>1},
|
24
|
-
'contact' => {'type'=>'ImplementationGuide::Contact', 'path'=>'ImplementationGuide.contact', 'min'=>0, 'max'=>Float::INFINITY},
|
25
|
-
'date' => {'type'=>'dateTime', 'path'=>'ImplementationGuide.date', 'min'=>0, 'max'=>1},
|
26
|
-
'description' => {'type'=>'string', 'path'=>'ImplementationGuide.description', 'min'=>0, 'max'=>1},
|
27
|
-
'useContext' => {'valid_codes'=>{'urn:iso:std:iso:3166'=>[], 'http://unstats.un.org/unsd/methods/m49/m49.htm'=>[], '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']}, 'type'=>'CodeableConcept', 'path'=>'ImplementationGuide.useContext', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/use-context'}},
|
28
|
-
'copyright' => {'type'=>'string', 'path'=>'ImplementationGuide.copyright', 'min'=>0, 'max'=>1},
|
29
|
-
'fhirVersion' => {'type'=>'id', 'path'=>'ImplementationGuide.fhirVersion', 'min'=>0, 'max'=>1},
|
30
|
-
'dependency' => {'type'=>'ImplementationGuide::Dependency', 'path'=>'ImplementationGuide.dependency', 'min'=>0, 'max'=>Float::INFINITY},
|
31
|
-
'package' => {'type'=>'ImplementationGuide::Package', 'path'=>'ImplementationGuide.package', 'min'=>1, 'max'=>Float::INFINITY},
|
32
|
-
'global' => {'type'=>'ImplementationGuide::Global', 'path'=>'ImplementationGuide.global', 'min'=>0, 'max'=>Float::INFINITY},
|
33
|
-
'binary' => {'type'=>'uri', 'path'=>'ImplementationGuide.binary', 'min'=>0, 'max'=>Float::INFINITY},
|
34
|
-
'page' => {'type'=>'ImplementationGuide::Page', 'path'=>'ImplementationGuide.page', 'min'=>1, 'max'=>1}
|
10
|
+
'id' => { 'type' => 'id', 'path' => 'ImplementationGuide.id', 'min' => 0, 'max' => 1 },
|
11
|
+
'meta' => { 'type' => 'Meta', 'path' => 'ImplementationGuide.meta', 'min' => 0, 'max' => 1 },
|
12
|
+
'implicitRules' => { 'type' => 'uri', 'path' => 'ImplementationGuide.implicitRules', 'min' => 0, 'max' => 1 },
|
13
|
+
'language' => { 'type' => 'code', 'path' => 'ImplementationGuide.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
|
14
|
+
'text' => { 'type' => 'Narrative', 'path' => 'ImplementationGuide.text', 'min' => 0, 'max' => 1 },
|
15
|
+
'contained' => { 'type' => 'Resource', 'path' => 'ImplementationGuide.contained', 'min' => 0, 'max' => Float::INFINITY },
|
16
|
+
'extension' => { 'type' => 'Extension', 'path' => 'ImplementationGuide.extension', 'min' => 0, 'max' => Float::INFINITY },
|
17
|
+
'modifierExtension' => { 'type' => 'Extension', 'path' => 'ImplementationGuide.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
|
18
|
+
'url' => { 'type' => 'uri', 'path' => 'ImplementationGuide.url', 'min' => 1, 'max' => 1 },
|
19
|
+
'version' => { 'type' => 'string', 'path' => 'ImplementationGuide.version', 'min' => 0, 'max' => 1 },
|
20
|
+
'name' => { 'type' => 'string', 'path' => 'ImplementationGuide.name', 'min' => 1, 'max' => 1 },
|
21
|
+
'status' => { 'valid_codes' => { 'http://hl7.org/fhir/conformance-resource-status' => ['draft', 'active', 'retired'] }, 'type' => 'code', 'path' => 'ImplementationGuide.status', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/conformance-resource-status' } },
|
22
|
+
'experimental' => { 'type' => 'boolean', 'path' => 'ImplementationGuide.experimental', 'min' => 0, 'max' => 1 },
|
23
|
+
'publisher' => { 'type' => 'string', 'path' => 'ImplementationGuide.publisher', 'min' => 0, 'max' => 1 },
|
24
|
+
'contact' => { 'type' => 'ImplementationGuide::Contact', 'path' => 'ImplementationGuide.contact', 'min' => 0, 'max' => Float::INFINITY },
|
25
|
+
'date' => { 'type' => 'dateTime', 'path' => 'ImplementationGuide.date', 'min' => 0, 'max' => 1 },
|
26
|
+
'description' => { 'type' => 'string', 'path' => 'ImplementationGuide.description', 'min' => 0, 'max' => 1 },
|
27
|
+
'useContext' => { 'valid_codes' => { 'urn:iso:std:iso:3166' => [], 'http://unstats.un.org/unsd/methods/m49/m49.htm' => [], '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'] }, 'type' => 'CodeableConcept', 'path' => 'ImplementationGuide.useContext', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'extensible', 'uri' => 'http://hl7.org/fhir/ValueSet/use-context' } },
|
28
|
+
'copyright' => { 'type' => 'string', 'path' => 'ImplementationGuide.copyright', 'min' => 0, 'max' => 1 },
|
29
|
+
'fhirVersion' => { 'type' => 'id', 'path' => 'ImplementationGuide.fhirVersion', 'min' => 0, 'max' => 1 },
|
30
|
+
'dependency' => { 'type' => 'ImplementationGuide::Dependency', 'path' => 'ImplementationGuide.dependency', 'min' => 0, 'max' => Float::INFINITY },
|
31
|
+
'package' => { 'type' => 'ImplementationGuide::Package', 'path' => 'ImplementationGuide.package', 'min' => 1, 'max' => Float::INFINITY },
|
32
|
+
'global' => { 'type' => 'ImplementationGuide::Global', 'path' => 'ImplementationGuide.global', 'min' => 0, 'max' => Float::INFINITY },
|
33
|
+
'binary' => { 'type' => 'uri', 'path' => 'ImplementationGuide.binary', 'min' => 0, 'max' => Float::INFINITY },
|
34
|
+
'page' => { 'type' => 'ImplementationGuide::Page', 'path' => 'ImplementationGuide.page', 'min' => 1, 'max' => 1 }
|
35
35
|
}
|
36
36
|
|
37
37
|
class Contact < FHIR::DSTU2::Model
|
@@ -40,11 +40,11 @@ module FHIR
|
|
40
40
|
include FHIR::DSTU2::Xml
|
41
41
|
|
42
42
|
METADATA = {
|
43
|
-
'id' => {'type'=>'id', 'path'=>'Contact.id', 'min'=>0, 'max'=>1},
|
44
|
-
'extension' => {'type'=>'Extension', 'path'=>'Contact.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
45
|
-
'modifierExtension' => {'type'=>'Extension', 'path'=>'Contact.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
46
|
-
'name' => {'type'=>'string', 'path'=>'Contact.name', 'min'=>0, 'max'=>1},
|
47
|
-
'telecom' => {'type'=>'ContactPoint', 'path'=>'Contact.telecom', 'min'=>0, 'max'=>Float::INFINITY}
|
43
|
+
'id' => { 'type' => 'id', 'path' => 'Contact.id', 'min' => 0, 'max' => 1 },
|
44
|
+
'extension' => { 'type' => 'Extension', 'path' => 'Contact.extension', 'min' => 0, 'max' => Float::INFINITY },
|
45
|
+
'modifierExtension' => { 'type' => 'Extension', 'path' => 'Contact.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
|
46
|
+
'name' => { 'type' => 'string', 'path' => 'Contact.name', 'min' => 0, 'max' => 1 },
|
47
|
+
'telecom' => { 'type' => 'ContactPoint', 'path' => 'Contact.telecom', 'min' => 0, 'max' => Float::INFINITY }
|
48
48
|
}
|
49
49
|
|
50
50
|
attr_accessor :id # 0-1 id
|
@@ -60,11 +60,11 @@ module FHIR
|
|
60
60
|
include FHIR::DSTU2::Xml
|
61
61
|
|
62
62
|
METADATA = {
|
63
|
-
'id' => {'type'=>'id', 'path'=>'Dependency.id', 'min'=>0, 'max'=>1},
|
64
|
-
'extension' => {'type'=>'Extension', 'path'=>'Dependency.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
65
|
-
'modifierExtension' => {'type'=>'Extension', 'path'=>'Dependency.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
66
|
-
'type' => {'valid_codes'=>{'http://hl7.org/fhir/guide-dependency-type'=>['reference', 'inclusion']}, 'type'=>'code', 'path'=>'Dependency.type', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/guide-dependency-type'}},
|
67
|
-
'uri' => {'type'=>'uri', 'path'=>'Dependency.uri', 'min'=>1, 'max'=>1}
|
63
|
+
'id' => { 'type' => 'id', 'path' => 'Dependency.id', 'min' => 0, 'max' => 1 },
|
64
|
+
'extension' => { 'type' => 'Extension', 'path' => 'Dependency.extension', 'min' => 0, 'max' => Float::INFINITY },
|
65
|
+
'modifierExtension' => { 'type' => 'Extension', 'path' => 'Dependency.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
|
66
|
+
'type' => { 'valid_codes' => { 'http://hl7.org/fhir/guide-dependency-type' => ['reference', 'inclusion'] }, 'type' => 'code', 'path' => 'Dependency.type', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/guide-dependency-type' } },
|
67
|
+
'uri' => { 'type' => 'uri', 'path' => 'Dependency.uri', 'min' => 1, 'max' => 1 }
|
68
68
|
}
|
69
69
|
|
70
70
|
attr_accessor :id # 0-1 id
|
@@ -80,12 +80,12 @@ module FHIR
|
|
80
80
|
include FHIR::DSTU2::Xml
|
81
81
|
|
82
82
|
METADATA = {
|
83
|
-
'id' => {'type'=>'id', 'path'=>'Package.id', 'min'=>0, 'max'=>1},
|
84
|
-
'extension' => {'type'=>'Extension', 'path'=>'Package.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
85
|
-
'modifierExtension' => {'type'=>'Extension', 'path'=>'Package.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
86
|
-
'name' => {'type'=>'string', 'path'=>'Package.name', 'min'=>1, 'max'=>1},
|
87
|
-
'description' => {'type'=>'string', 'path'=>'Package.description', 'min'=>0, 'max'=>1},
|
88
|
-
'resource' => {'type'=>'ImplementationGuide::Package::Resource', 'path'=>'Package.resource', 'min'=>1, 'max'=>Float::INFINITY}
|
83
|
+
'id' => { 'type' => 'id', 'path' => 'Package.id', 'min' => 0, 'max' => 1 },
|
84
|
+
'extension' => { 'type' => 'Extension', 'path' => 'Package.extension', 'min' => 0, 'max' => Float::INFINITY },
|
85
|
+
'modifierExtension' => { 'type' => 'Extension', 'path' => 'Package.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
|
86
|
+
'name' => { 'type' => 'string', 'path' => 'Package.name', 'min' => 1, 'max' => 1 },
|
87
|
+
'description' => { 'type' => 'string', 'path' => 'Package.description', 'min' => 0, 'max' => 1 },
|
88
|
+
'resource' => { 'type' => 'ImplementationGuide::Package::Resource', 'path' => 'Package.resource', 'min' => 1, 'max' => Float::INFINITY }
|
89
89
|
}
|
90
90
|
|
91
91
|
class Resource < FHIR::DSTU2::Model
|
@@ -97,16 +97,16 @@ module FHIR
|
|
97
97
|
'source' => ['uri', 'Reference']
|
98
98
|
}
|
99
99
|
METADATA = {
|
100
|
-
'id' => {'type'=>'id', 'path'=>'Resource.id', 'min'=>0, 'max'=>1},
|
101
|
-
'extension' => {'type'=>'Extension', 'path'=>'Resource.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
102
|
-
'modifierExtension' => {'type'=>'Extension', 'path'=>'Resource.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
103
|
-
'purpose' => {'valid_codes'=>{'http://hl7.org/fhir/guide-resource-purpose'=>['example', 'terminology', 'profile', 'extension', 'dictionary', 'logical']}, 'type'=>'code', 'path'=>'Resource.purpose', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/guide-resource-purpose'}},
|
104
|
-
'name' => {'type'=>'string', 'path'=>'Resource.name', 'min'=>0, 'max'=>1},
|
105
|
-
'description' => {'type'=>'string', 'path'=>'Resource.description', 'min'=>0, 'max'=>1},
|
106
|
-
'acronym' => {'type'=>'string', 'path'=>'Resource.acronym', 'min'=>0, 'max'=>1},
|
107
|
-
'sourceUri' => {'type'=>'uri', 'path'=>'Resource.source[x]', 'min'=>1, 'max'=>1},
|
108
|
-
'sourceReference' => {'type'=>'Reference', 'path'=>'Resource.source[x]', 'min'=>1, 'max'=>1},
|
109
|
-
'exampleFor' => {'type'=>'Reference', 'path'=>'Resource.exampleFor', 'min'=>0, 'max'=>1}
|
100
|
+
'id' => { 'type' => 'id', 'path' => 'Resource.id', 'min' => 0, 'max' => 1 },
|
101
|
+
'extension' => { 'type' => 'Extension', 'path' => 'Resource.extension', 'min' => 0, 'max' => Float::INFINITY },
|
102
|
+
'modifierExtension' => { 'type' => 'Extension', 'path' => 'Resource.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
|
103
|
+
'purpose' => { 'valid_codes' => { 'http://hl7.org/fhir/guide-resource-purpose' => ['example', 'terminology', 'profile', 'extension', 'dictionary', 'logical'] }, 'type' => 'code', 'path' => 'Resource.purpose', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/guide-resource-purpose' } },
|
104
|
+
'name' => { 'type' => 'string', 'path' => 'Resource.name', 'min' => 0, 'max' => 1 },
|
105
|
+
'description' => { 'type' => 'string', 'path' => 'Resource.description', 'min' => 0, 'max' => 1 },
|
106
|
+
'acronym' => { 'type' => 'string', 'path' => 'Resource.acronym', 'min' => 0, 'max' => 1 },
|
107
|
+
'sourceUri' => { 'type' => 'uri', 'path' => 'Resource.source[x]', 'min' => 1, 'max' => 1 },
|
108
|
+
'sourceReference' => { 'type' => 'Reference', 'path' => 'Resource.source[x]', 'min' => 1, 'max' => 1 },
|
109
|
+
'exampleFor' => { 'type' => 'Reference', 'path' => 'Resource.exampleFor', 'min' => 0, 'max' => 1 }
|
110
110
|
}
|
111
111
|
|
112
112
|
attr_accessor :id # 0-1 id
|
@@ -135,11 +135,11 @@ module FHIR
|
|
135
135
|
include FHIR::DSTU2::Xml
|
136
136
|
|
137
137
|
METADATA = {
|
138
|
-
'id' => {'type'=>'id', 'path'=>'Global.id', 'min'=>0, 'max'=>1},
|
139
|
-
'extension' => {'type'=>'Extension', 'path'=>'Global.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
140
|
-
'modifierExtension' => {'type'=>'Extension', 'path'=>'Global.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
141
|
-
'type' => {'valid_codes'=>{'http://hl7.org/fhir/resource-types'=>['Account', 'AllergyIntolerance', 'Appointment', 'AppointmentResponse', 'AuditEvent', 'Basic', 'Binary', 'BodySite', 'Bundle', 'CarePlan', 'Claim', 'ClaimResponse', 'ClinicalImpression', 'Communication', 'CommunicationRequest', 'Composition', 'ConceptMap', 'Condition', 'Conformance', 'Contract', 'Coverage', 'DataElement', 'DetectedIssue', 'Device', 'DeviceComponent', 'DeviceMetric', 'DeviceUseRequest', 'DeviceUseStatement', 'DiagnosticOrder', 'DiagnosticReport', 'DocumentManifest', 'DocumentReference', 'DomainResource', 'EligibilityRequest', 'EligibilityResponse', 'Encounter', 'EnrollmentRequest', 'EnrollmentResponse', 'EpisodeOfCare', 'ExplanationOfBenefit', 'FamilyMemberHistory', 'Flag', 'Goal', 'Group', 'HealthcareService', 'ImagingObjectSelection', 'ImagingStudy', 'Immunization', 'ImmunizationRecommendation', 'ImplementationGuide', 'List', 'Location', 'Media', 'Medication', 'MedicationAdministration', 'MedicationDispense', 'MedicationOrder', 'MedicationStatement', 'MessageHeader', 'NamingSystem', 'NutritionOrder', 'Observation', 'OperationDefinition', 'OperationOutcome', 'Order', 'OrderResponse', 'Organization', 'Parameters', 'Patient', 'PaymentNotice', 'PaymentReconciliation', 'Person', 'Practitioner', 'Procedure', 'ProcedureRequest', 'ProcessRequest', 'ProcessResponse', 'Provenance', 'Questionnaire', 'QuestionnaireResponse', 'ReferralRequest', 'RelatedPerson', 'Resource', 'RiskAssessment', 'Schedule', 'SearchParameter', 'Slot', 'Specimen', 'StructureDefinition', 'Subscription', 'Substance', 'SupplyDelivery', 'SupplyRequest', 'TestScript', 'ValueSet', 'VisionPrescription']}, 'type'=>'code', 'path'=>'Global.type', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/resource-types'}},
|
142
|
-
'profile' => {'type'=>'Reference', 'path'=>'Global.profile', 'min'=>1, 'max'=>1}
|
138
|
+
'id' => { 'type' => 'id', 'path' => 'Global.id', 'min' => 0, 'max' => 1 },
|
139
|
+
'extension' => { 'type' => 'Extension', 'path' => 'Global.extension', 'min' => 0, 'max' => Float::INFINITY },
|
140
|
+
'modifierExtension' => { 'type' => 'Extension', 'path' => 'Global.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
|
141
|
+
'type' => { 'valid_codes' => { 'http://hl7.org/fhir/resource-types' => ['Account', 'AllergyIntolerance', 'Appointment', 'AppointmentResponse', 'AuditEvent', 'Basic', 'Binary', 'BodySite', 'Bundle', 'CarePlan', 'Claim', 'ClaimResponse', 'ClinicalImpression', 'Communication', 'CommunicationRequest', 'Composition', 'ConceptMap', 'Condition', 'Conformance', 'Contract', 'Coverage', 'DataElement', 'DetectedIssue', 'Device', 'DeviceComponent', 'DeviceMetric', 'DeviceUseRequest', 'DeviceUseStatement', 'DiagnosticOrder', 'DiagnosticReport', 'DocumentManifest', 'DocumentReference', 'DomainResource', 'EligibilityRequest', 'EligibilityResponse', 'Encounter', 'EnrollmentRequest', 'EnrollmentResponse', 'EpisodeOfCare', 'ExplanationOfBenefit', 'FamilyMemberHistory', 'Flag', 'Goal', 'Group', 'HealthcareService', 'ImagingObjectSelection', 'ImagingStudy', 'Immunization', 'ImmunizationRecommendation', 'ImplementationGuide', 'List', 'Location', 'Media', 'Medication', 'MedicationAdministration', 'MedicationDispense', 'MedicationOrder', 'MedicationStatement', 'MessageHeader', 'NamingSystem', 'NutritionOrder', 'Observation', 'OperationDefinition', 'OperationOutcome', 'Order', 'OrderResponse', 'Organization', 'Parameters', 'Patient', 'PaymentNotice', 'PaymentReconciliation', 'Person', 'Practitioner', 'Procedure', 'ProcedureRequest', 'ProcessRequest', 'ProcessResponse', 'Provenance', 'Questionnaire', 'QuestionnaireResponse', 'ReferralRequest', 'RelatedPerson', 'Resource', 'RiskAssessment', 'Schedule', 'SearchParameter', 'Slot', 'Specimen', 'StructureDefinition', 'Subscription', 'Substance', 'SupplyDelivery', 'SupplyRequest', 'TestScript', 'ValueSet', 'VisionPrescription'] }, 'type' => 'code', 'path' => 'Global.type', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/resource-types' } },
|
142
|
+
'profile' => { 'type' => 'Reference', 'path' => 'Global.profile', 'min' => 1, 'max' => 1 }
|
143
143
|
}
|
144
144
|
|
145
145
|
attr_accessor :id # 0-1 id
|
@@ -155,16 +155,16 @@ module FHIR
|
|
155
155
|
include FHIR::DSTU2::Xml
|
156
156
|
|
157
157
|
METADATA = {
|
158
|
-
'id' => {'type'=>'id', 'path'=>'Page.id', 'min'=>0, 'max'=>1},
|
159
|
-
'extension' => {'type'=>'Extension', 'path'=>'Page.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
160
|
-
'modifierExtension' => {'type'=>'Extension', 'path'=>'Page.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
161
|
-
'source' => {'type'=>'uri', 'path'=>'Page.source', 'min'=>1, 'max'=>1},
|
162
|
-
'name' => {'type'=>'string', 'path'=>'Page.name', 'min'=>1, 'max'=>1},
|
163
|
-
'kind' => {'valid_codes'=>{'http://hl7.org/fhir/guide-page-kind'=>['page', 'example', 'list', 'include', 'directory', 'dictionary', 'toc', 'resource']}, 'type'=>'code', 'path'=>'Page.kind', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/guide-page-kind'}},
|
164
|
-
'type' => {'valid_codes'=>{'http://hl7.org/fhir/resource-types'=>['Account', 'AllergyIntolerance', 'Appointment', 'AppointmentResponse', 'AuditEvent', 'Basic', 'Binary', 'BodySite', 'Bundle', 'CarePlan', 'Claim', 'ClaimResponse', 'ClinicalImpression', 'Communication', 'CommunicationRequest', 'Composition', 'ConceptMap', 'Condition', 'Conformance', 'Contract', 'Coverage', 'DataElement', 'DetectedIssue', 'Device', 'DeviceComponent', 'DeviceMetric', 'DeviceUseRequest', 'DeviceUseStatement', 'DiagnosticOrder', 'DiagnosticReport', 'DocumentManifest', 'DocumentReference', 'DomainResource', 'EligibilityRequest', 'EligibilityResponse', 'Encounter', 'EnrollmentRequest', 'EnrollmentResponse', 'EpisodeOfCare', 'ExplanationOfBenefit', 'FamilyMemberHistory', 'Flag', 'Goal', 'Group', 'HealthcareService', 'ImagingObjectSelection', 'ImagingStudy', 'Immunization', 'ImmunizationRecommendation', 'ImplementationGuide', 'List', 'Location', 'Media', 'Medication', 'MedicationAdministration', 'MedicationDispense', 'MedicationOrder', 'MedicationStatement', 'MessageHeader', 'NamingSystem', 'NutritionOrder', 'Observation', 'OperationDefinition', 'OperationOutcome', 'Order', 'OrderResponse', 'Organization', 'Parameters', 'Patient', 'PaymentNotice', 'PaymentReconciliation', 'Person', 'Practitioner', 'Procedure', 'ProcedureRequest', 'ProcessRequest', 'ProcessResponse', 'Provenance', 'Questionnaire', 'QuestionnaireResponse', 'ReferralRequest', 'RelatedPerson', 'Resource', 'RiskAssessment', 'Schedule', 'SearchParameter', 'Slot', 'Specimen', 'StructureDefinition', 'Subscription', 'Substance', 'SupplyDelivery', 'SupplyRequest', 'TestScript', 'ValueSet', 'VisionPrescription']}, 'type'=>'code', 'path'=>'Page.type', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/resource-types'}},
|
165
|
-
'package' => {'type'=>'string', 'path'=>'Page.package', 'min'=>0, 'max'=>Float::INFINITY},
|
166
|
-
'format' => {'type'=>'code', 'path'=>'Page.format', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://www.rfc-editor.org/bcp/bcp13.txt'}},
|
167
|
-
'page' => {'type'=>'ImplementationGuide::Page', 'path'=>'Page.page', 'min'=>0, 'max'=>Float::INFINITY}
|
158
|
+
'id' => { 'type' => 'id', 'path' => 'Page.id', 'min' => 0, 'max' => 1 },
|
159
|
+
'extension' => { 'type' => 'Extension', 'path' => 'Page.extension', 'min' => 0, 'max' => Float::INFINITY },
|
160
|
+
'modifierExtension' => { 'type' => 'Extension', 'path' => 'Page.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
|
161
|
+
'source' => { 'type' => 'uri', 'path' => 'Page.source', 'min' => 1, 'max' => 1 },
|
162
|
+
'name' => { 'type' => 'string', 'path' => 'Page.name', 'min' => 1, 'max' => 1 },
|
163
|
+
'kind' => { 'valid_codes' => { 'http://hl7.org/fhir/guide-page-kind' => ['page', 'example', 'list', 'include', 'directory', 'dictionary', 'toc', 'resource'] }, 'type' => 'code', 'path' => 'Page.kind', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/guide-page-kind' } },
|
164
|
+
'type' => { 'valid_codes' => { 'http://hl7.org/fhir/resource-types' => ['Account', 'AllergyIntolerance', 'Appointment', 'AppointmentResponse', 'AuditEvent', 'Basic', 'Binary', 'BodySite', 'Bundle', 'CarePlan', 'Claim', 'ClaimResponse', 'ClinicalImpression', 'Communication', 'CommunicationRequest', 'Composition', 'ConceptMap', 'Condition', 'Conformance', 'Contract', 'Coverage', 'DataElement', 'DetectedIssue', 'Device', 'DeviceComponent', 'DeviceMetric', 'DeviceUseRequest', 'DeviceUseStatement', 'DiagnosticOrder', 'DiagnosticReport', 'DocumentManifest', 'DocumentReference', 'DomainResource', 'EligibilityRequest', 'EligibilityResponse', 'Encounter', 'EnrollmentRequest', 'EnrollmentResponse', 'EpisodeOfCare', 'ExplanationOfBenefit', 'FamilyMemberHistory', 'Flag', 'Goal', 'Group', 'HealthcareService', 'ImagingObjectSelection', 'ImagingStudy', 'Immunization', 'ImmunizationRecommendation', 'ImplementationGuide', 'List', 'Location', 'Media', 'Medication', 'MedicationAdministration', 'MedicationDispense', 'MedicationOrder', 'MedicationStatement', 'MessageHeader', 'NamingSystem', 'NutritionOrder', 'Observation', 'OperationDefinition', 'OperationOutcome', 'Order', 'OrderResponse', 'Organization', 'Parameters', 'Patient', 'PaymentNotice', 'PaymentReconciliation', 'Person', 'Practitioner', 'Procedure', 'ProcedureRequest', 'ProcessRequest', 'ProcessResponse', 'Provenance', 'Questionnaire', 'QuestionnaireResponse', 'ReferralRequest', 'RelatedPerson', 'Resource', 'RiskAssessment', 'Schedule', 'SearchParameter', 'Slot', 'Specimen', 'StructureDefinition', 'Subscription', 'Substance', 'SupplyDelivery', 'SupplyRequest', 'TestScript', 'ValueSet', 'VisionPrescription'] }, 'type' => 'code', 'path' => 'Page.type', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/resource-types' } },
|
165
|
+
'package' => { 'type' => 'string', 'path' => 'Page.package', 'min' => 0, 'max' => Float::INFINITY },
|
166
|
+
'format' => { 'type' => 'code', 'path' => 'Page.format', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://www.rfc-editor.org/bcp/bcp13.txt' } },
|
167
|
+
'page' => { 'type' => 'ImplementationGuide::Page', 'path' => 'Page.page', 'min' => 0, 'max' => Float::INFINITY }
|
168
168
|
}
|
169
169
|
|
170
170
|
attr_accessor :id # 0-1 id
|
@@ -210,4 +210,4 @@ module FHIR
|
|
210
210
|
end
|
211
211
|
end
|
212
212
|
end
|
213
|
-
end
|
213
|
+
end
|
@@ -7,27 +7,27 @@ module FHIR
|
|
7
7
|
|
8
8
|
SEARCH_PARAMS = ['code', 'date', 'empty-reason', 'encounter', 'item', 'notes', 'patient', 'source', 'status', 'subject', 'title']
|
9
9
|
METADATA = {
|
10
|
-
'id' => {'type'=>'id', 'path'=>'List.id', 'min'=>0, 'max'=>1},
|
11
|
-
'meta' => {'type'=>'Meta', 'path'=>'List.meta', 'min'=>0, 'max'=>1},
|
12
|
-
'implicitRules' => {'type'=>'uri', 'path'=>'List.implicitRules', 'min'=>0, 'max'=>1},
|
13
|
-
'language' => {'type'=>'code', 'path'=>'List.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
|
14
|
-
'text' => {'type'=>'Narrative', 'path'=>'List.text', 'min'=>0, 'max'=>1},
|
15
|
-
'contained' => {'type'=>'Resource', 'path'=>'List.contained', 'min'=>0, 'max'=>Float::INFINITY},
|
16
|
-
'extension' => {'type'=>'Extension', 'path'=>'List.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
17
|
-
'modifierExtension' => {'type'=>'Extension', 'path'=>'List.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
18
|
-
'identifier' => {'type'=>'Identifier', 'path'=>'List.identifier', 'min'=>0, 'max'=>Float::INFINITY},
|
19
|
-
'title' => {'type'=>'string', 'path'=>'List.title', 'min'=>0, 'max'=>1},
|
20
|
-
'code' => {'valid_codes'=>{'http://hl7.org/fhir/list-example-use-codes'=>['alerts', 'adverserxns', 'allergies', 'medications', 'problems', 'worklist', 'waiting', 'protocols', 'plans']}, 'type'=>'CodeableConcept', 'path'=>'List.code', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/list-example-codes'}},
|
21
|
-
'subject' => {'type'=>'Reference', 'path'=>'List.subject', 'min'=>0, 'max'=>1},
|
22
|
-
'source' => {'type'=>'Reference', 'path'=>'List.source', 'min'=>0, 'max'=>1},
|
23
|
-
'encounter' => {'type'=>'Reference', 'path'=>'List.encounter', 'min'=>0, 'max'=>1},
|
24
|
-
'status' => {'valid_codes'=>{'http://hl7.org/fhir/list-status'=>['current', 'retired', 'entered-in-error']}, 'type'=>'code', 'path'=>'List.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/list-status'}},
|
25
|
-
'date' => {'type'=>'dateTime', 'path'=>'List.date', 'min'=>0, 'max'=>1},
|
26
|
-
'orderedBy' => {'valid_codes'=>{'http://hl7.org/fhir/list-order'=>['user', 'system', 'event-date', 'entry-date', 'priority', 'alphabetic', 'category', 'patient']}, 'type'=>'CodeableConcept', 'path'=>'List.orderedBy', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'preferred', 'uri'=>'http://hl7.org/fhir/ValueSet/list-order'}},
|
27
|
-
'mode' => {'valid_codes'=>{'http://hl7.org/fhir/list-mode'=>['working', 'snapshot', 'changes']}, 'type'=>'code', 'path'=>'List.mode', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/list-mode'}},
|
28
|
-
'note' => {'type'=>'string', 'path'=>'List.note', 'min'=>0, 'max'=>1},
|
29
|
-
'entry' => {'type'=>'List::Entry', 'path'=>'List.entry', 'min'=>0, 'max'=>Float::INFINITY},
|
30
|
-
'emptyReason' => {'valid_codes'=>{'http://hl7.org/fhir/list-empty-reason'=>['nilknown', 'notasked', 'withheld', 'unavailable', 'notstarted', 'closed']}, 'type'=>'CodeableConcept', 'path'=>'List.emptyReason', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'preferred', 'uri'=>'http://hl7.org/fhir/ValueSet/list-empty-reason'}}
|
10
|
+
'id' => { 'type' => 'id', 'path' => 'List.id', 'min' => 0, 'max' => 1 },
|
11
|
+
'meta' => { 'type' => 'Meta', 'path' => 'List.meta', 'min' => 0, 'max' => 1 },
|
12
|
+
'implicitRules' => { 'type' => 'uri', 'path' => 'List.implicitRules', 'min' => 0, 'max' => 1 },
|
13
|
+
'language' => { 'type' => 'code', 'path' => 'List.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
|
14
|
+
'text' => { 'type' => 'Narrative', 'path' => 'List.text', 'min' => 0, 'max' => 1 },
|
15
|
+
'contained' => { 'type' => 'Resource', 'path' => 'List.contained', 'min' => 0, 'max' => Float::INFINITY },
|
16
|
+
'extension' => { 'type' => 'Extension', 'path' => 'List.extension', 'min' => 0, 'max' => Float::INFINITY },
|
17
|
+
'modifierExtension' => { 'type' => 'Extension', 'path' => 'List.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
|
18
|
+
'identifier' => { 'type' => 'Identifier', 'path' => 'List.identifier', 'min' => 0, 'max' => Float::INFINITY },
|
19
|
+
'title' => { 'type' => 'string', 'path' => 'List.title', 'min' => 0, 'max' => 1 },
|
20
|
+
'code' => { 'valid_codes' => { 'http://hl7.org/fhir/list-example-use-codes' => ['alerts', 'adverserxns', 'allergies', 'medications', 'problems', 'worklist', 'waiting', 'protocols', 'plans'] }, 'type' => 'CodeableConcept', 'path' => 'List.code', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/list-example-codes' } },
|
21
|
+
'subject' => { 'type' => 'Reference', 'path' => 'List.subject', 'min' => 0, 'max' => 1 },
|
22
|
+
'source' => { 'type' => 'Reference', 'path' => 'List.source', 'min' => 0, 'max' => 1 },
|
23
|
+
'encounter' => { 'type' => 'Reference', 'path' => 'List.encounter', 'min' => 0, 'max' => 1 },
|
24
|
+
'status' => { 'valid_codes' => { 'http://hl7.org/fhir/list-status' => ['current', 'retired', 'entered-in-error'] }, 'type' => 'code', 'path' => 'List.status', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/list-status' } },
|
25
|
+
'date' => { 'type' => 'dateTime', 'path' => 'List.date', 'min' => 0, 'max' => 1 },
|
26
|
+
'orderedBy' => { 'valid_codes' => { 'http://hl7.org/fhir/list-order' => ['user', 'system', 'event-date', 'entry-date', 'priority', 'alphabetic', 'category', 'patient'] }, 'type' => 'CodeableConcept', 'path' => 'List.orderedBy', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'preferred', 'uri' => 'http://hl7.org/fhir/ValueSet/list-order' } },
|
27
|
+
'mode' => { 'valid_codes' => { 'http://hl7.org/fhir/list-mode' => ['working', 'snapshot', 'changes'] }, 'type' => 'code', 'path' => 'List.mode', 'min' => 1, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/list-mode' } },
|
28
|
+
'note' => { 'type' => 'string', 'path' => 'List.note', 'min' => 0, 'max' => 1 },
|
29
|
+
'entry' => { 'type' => 'List::Entry', 'path' => 'List.entry', 'min' => 0, 'max' => Float::INFINITY },
|
30
|
+
'emptyReason' => { 'valid_codes' => { 'http://hl7.org/fhir/list-empty-reason' => ['nilknown', 'notasked', 'withheld', 'unavailable', 'notstarted', 'closed'] }, 'type' => 'CodeableConcept', 'path' => 'List.emptyReason', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'preferred', 'uri' => 'http://hl7.org/fhir/ValueSet/list-empty-reason' } }
|
31
31
|
}
|
32
32
|
|
33
33
|
class Entry < FHIR::DSTU2::Model
|
@@ -36,13 +36,13 @@ module FHIR
|
|
36
36
|
include FHIR::DSTU2::Xml
|
37
37
|
|
38
38
|
METADATA = {
|
39
|
-
'id' => {'type'=>'id', 'path'=>'Entry.id', 'min'=>0, 'max'=>1},
|
40
|
-
'extension' => {'type'=>'Extension', 'path'=>'Entry.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
41
|
-
'modifierExtension' => {'type'=>'Extension', 'path'=>'Entry.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
42
|
-
'flag' => {'valid_codes'=>{'urn:oid:1.2.36.1.2001.1001.101.104.16592'=>['01', '02', '03', '04', '05', '06']}, 'type'=>'CodeableConcept', 'path'=>'Entry.flag', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/list-item-flag'}},
|
43
|
-
'deleted' => {'type'=>'boolean', 'path'=>'Entry.deleted', 'min'=>0, 'max'=>1},
|
44
|
-
'date' => {'type'=>'dateTime', 'path'=>'Entry.date', 'min'=>0, 'max'=>1},
|
45
|
-
'item' => {'type'=>'Reference', 'path'=>'Entry.item', 'min'=>1, 'max'=>1}
|
39
|
+
'id' => { 'type' => 'id', 'path' => 'Entry.id', 'min' => 0, 'max' => 1 },
|
40
|
+
'extension' => { 'type' => 'Extension', 'path' => 'Entry.extension', 'min' => 0, 'max' => Float::INFINITY },
|
41
|
+
'modifierExtension' => { 'type' => 'Extension', 'path' => 'Entry.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
|
42
|
+
'flag' => { 'valid_codes' => { 'urn:oid:1.2.36.1.2001.1001.101.104.16592' => ['01', '02', '03', '04', '05', '06'] }, 'type' => 'CodeableConcept', 'path' => 'Entry.flag', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/list-item-flag' } },
|
43
|
+
'deleted' => { 'type' => 'boolean', 'path' => 'Entry.deleted', 'min' => 0, 'max' => 1 },
|
44
|
+
'date' => { 'type' => 'dateTime', 'path' => 'Entry.date', 'min' => 0, 'max' => 1 },
|
45
|
+
'item' => { 'type' => 'Reference', 'path' => 'Entry.item', 'min' => 1, 'max' => 1 }
|
46
46
|
}
|
47
47
|
|
48
48
|
attr_accessor :id # 0-1 id
|
@@ -81,4 +81,4 @@ module FHIR
|
|
81
81
|
end
|
82
82
|
end
|
83
83
|
end
|
84
|
-
end
|
84
|
+
end
|
@@ -7,26 +7,26 @@ module FHIR
|
|
7
7
|
|
8
8
|
SEARCH_PARAMS = ['address', 'address-city', 'address-country', 'address-postalcode', 'address-state', 'address-use', 'identifier', 'name', 'near', 'near-distance', 'organization', 'partof', 'status', 'type']
|
9
9
|
METADATA = {
|
10
|
-
'id' => {'type'=>'id', 'path'=>'Location.id', 'min'=>0, 'max'=>1},
|
11
|
-
'meta' => {'type'=>'Meta', 'path'=>'Location.meta', 'min'=>0, 'max'=>1},
|
12
|
-
'implicitRules' => {'type'=>'uri', 'path'=>'Location.implicitRules', 'min'=>0, 'max'=>1},
|
13
|
-
'language' => {'type'=>'code', 'path'=>'Location.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
|
14
|
-
'text' => {'type'=>'Narrative', 'path'=>'Location.text', 'min'=>0, 'max'=>1},
|
15
|
-
'contained' => {'type'=>'Resource', 'path'=>'Location.contained', 'min'=>0, 'max'=>Float::INFINITY},
|
16
|
-
'extension' => {'type'=>'Extension', 'path'=>'Location.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
17
|
-
'modifierExtension' => {'type'=>'Extension', 'path'=>'Location.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
18
|
-
'identifier' => {'type'=>'Identifier', 'path'=>'Location.identifier', 'min'=>0, 'max'=>Float::INFINITY},
|
19
|
-
'status' => {'valid_codes'=>{'http://hl7.org/fhir/location-status'=>['active', 'suspended', 'inactive']}, 'type'=>'code', 'path'=>'Location.status', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/location-status'}},
|
20
|
-
'name' => {'type'=>'string', 'path'=>'Location.name', 'min'=>0, 'max'=>1},
|
21
|
-
'description' => {'type'=>'string', 'path'=>'Location.description', 'min'=>0, 'max'=>1},
|
22
|
-
'mode' => {'valid_codes'=>{'http://hl7.org/fhir/location-mode'=>['instance', 'kind']}, 'type'=>'code', 'path'=>'Location.mode', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/location-mode'}},
|
23
|
-
'type' => {'valid_codes'=>{'http://hl7.org/fhir/v3/RoleCode'=>['_AffiliationRoleType', '_CoverageSponsorRoleType', 'FULLINS', 'SELFINS', '_PayorRoleType', 'ENROLBKR', 'TPA', 'UMO', 'RESPRSN', 'EXCEST', 'GUADLTM', 'GUARD', 'POWATT', 'DPOWATT', 'HPOWATT', 'SPOWATT', '_AssignedRoleType', '_AssignedNonPersonLivingSubjectRoleType', 'ASSIST', 'BIOTH', 'ANTIBIOT', 'DEBR', 'CCO', 'SEE', 'SNIFF', '_CertifiedEntityType', '_CitizenRoleType', 'CAS', 'CASM', 'CN', 'CNRP', 'CNRPM', 'CPCA', 'CRP', 'CRPM', '_ContactRoleType', '_AdministrativeContactRoleType', 'BILL', 'ORG', 'PAYOR', 'ECON', 'NOK', '_IdentifiedEntityType', '_LocationIdentifiedEntityRoleCode', 'ACHFID', 'JURID', 'LOCHFID', '_LivingSubjectProductionClass', 'BF', 'BL', 'BR', 'CO', 'DA', 'DR', 'DU', 'FI', 'LY', 'MT', 'MU', 'PL', 'RC', 'SH', 'VL', 'WL', 'WO', '_MedicationGeneralizationRoleType', 'DC', 'GD', 'GDF', 'GDS', 'GDSF', 'MGDSF', '_MemberRoleType', 'TRB', '_PersonalRelationshipRoleType', 'FAMMEMB', 'CHILD', 'CHLDADOPT', 'DAUADOPT', 'SONADOPT', 'CHLDFOST', 'DAUFOST', 'SONFOST', 'DAUC', 'DAU', 'STPDAU', 'NCHILD', 'SON', 'SONC', 'STPSON', 'STPCHLD', 'EXT', 'AUNT', 'MAUNT', 'PAUNT', 'COUSN', 'MCOUSN', 'PCOUSN', 'GGRPRN', 'GGRFTH', 'MGGRFTH', 'PGGRFTH', 'GGRMTH', 'MGGRMTH', 'PGGRMTH', 'MGGRPRN', 'PGGRPRN', 'GRNDCHILD', 'GRNDDAU', 'GRNDSON', 'GRPRN', 'GRFTH', 'MGRFTH', 'PGRFTH', 'GRMTH', 'MGRMTH', 'PGRMTH', 'MGRPRN', 'PGRPRN', 'INLAW', 'CHLDINLAW', 'DAUINLAW', 'SONINLAW', 'PRNINLAW', 'FTHINLAW', 'MTHINLAW', 'SIBINLAW', 'BROINLAW', 'SISINLAW', 'NIENEPH', 'NEPHEW', 'NIECE', 'UNCLE', 'MUNCLE', 'PUNCLE', 'PRN', 'ADOPTP', 'ADOPTF', 'ADOPTM', 'FTH', 'FTHFOST', 'NFTH', 'NFTHF', 'STPFTH', 'MTH', 'GESTM', 'MTHFOST', 'NMTH', 'NMTHF', 'STPMTH', 'NPRN', 'PRNFOST', 'STPPRN', 'SIB', 'BRO', 'HBRO', 'NBRO', 'TWINBRO', 'FTWINBRO', 'ITWINBRO', 'STPBRO', 'HSIB', 'HSIS', 'NSIB', 'NSIS', 'TWINSIS', 'FTWINSIS', 'ITWINSIS', 'TWIN', 'FTWIN', 'ITWIN', 'SIS', 'STPSIS', 'STPSIB', 'SIGOTHR', 'DOMPART', 'FMRSPS', 'SPS', 'HUSB', 'WIFE', 'FRND', 'NBOR', 'ONESELF', 'ROOM', '_PolicyOrProgramCoverageRoleType', '_CoverageRoleType', 'FAMDEP', 'HANDIC', 'INJ', 'SELF', 'SPON', 'STUD', 'FSTUD', 'PSTUD', 'ADOPT', 'GCHILD', 'GPARNT', 'NAT', 'NIENE', 'PARNT', 'SPSE', 'STEP', '_CoveredPartyRoleType', '_ClaimantCoveredPartyRoleType', 'CRIMEVIC', 'INJWKR', '_DependentCoveredPartyRoleType', 'COCBEN', 'DIFFABL', 'WARD', '_IndividualInsuredPartyRoleType', 'RETIREE', '_ProgramEligiblePartyRoleType', 'INDIG', 'MIL', 'ACTMIL', 'RETMIL', 'VET', '_SubscriberCoveredPartyRoleType', '_ResearchSubjectRoleBasis', 'ERL', 'SCN', '_DedicatedServiceDeliveryLocationRoleType', '_DedicatedClinicalLocationRoleType', 'DX', 'CVDX', 'CATH', 'ECHO', 'GIDX', 'ENDOS', 'RADDX', 'RADO', 'RNEU', 'HOSP', 'CHR', 'GACH', 'MHSP', 'PSYCHF', 'RH', 'RHAT', 'RHII', 'RHMAD', 'RHPI', 'RHPIH', 'RHPIMS', 'RHPIVS', 'RHYAD', 'HU', 'BMTU', 'CCU', 'CHEST', 'EPIL', 'ER', 'ETU', 'HD', 'HLAB', 'INLAB', 'OUTLAB', 'HRAD', 'HUSCS', 'ICU', 'PEDICU', 'PEDNICU', 'INPHARM', 'MBL', 'NCCS', 'NS', 'OUTPHARM', 'PEDU', 'PHU', 'RHU', 'SLEEP', 'NCCF', 'SNF', 'OF', 'ALL', 'AMPUT', 'BMTC', 'BREAST', 'CANC', 'CAPC', 'CARD', 'PEDCARD', 'COAG', 'CRS', 'DERM', 'ENDO', 'PEDE', 'ENT', 'FMC', 'GI', 'PEDGI', 'GIM', 'GYN', 'HEM', 'PEDHEM', 'HTN', 'IEC', 'INFD', 'PEDID', 'INV', 'LYMPH', 'MGEN', 'NEPH', 'PEDNEPH', 'NEUR', 'OB', 'OMS', 'ONCL', 'PEDHO', 'OPH', 'OPTC', 'ORTHO', 'HAND', 'PAINCL', 'PC', 'PEDC', 'PEDRHEUM', 'POD', 'PREV', 'PROCTO', 'PROFF', 'PROS', 'PSI', 'PSY', 'RHEUM', 'SPMED', 'SU', 'PLS', 'URO', 'TR', 'TRAVEL', 'WND', 'RTF', 'PRC', 'SURF', '_DedicatedNonClinicalLocationRoleType', 'DADDR', 'MOBL', 'AMB', 'PHARM', '_IncidentalServiceDeliveryLocationRoleType', 'ACC', 'COMM', 'CSC', 'PTRES', 'SCHOOL', 'UPC', 'WORK', '_SpecimenRoleType', 'C', 'G', 'L', 'P', 'Q', 'B', 'E', 'F', 'O', 'V', 'R', 'CLAIM', 'communityLaboratory', 'GT', 'homeHealth', 'laboratory', 'pathologist', 'PH', 'phlebotomist', 'PROG', 'PT', 'subject', 'thirdParty', 'DEP', 'DEPEN', 'FM', 'INDIV', 'NAMED', 'PSYCHCF', 'SUBSCR']}, 'type'=>'CodeableConcept', 'path'=>'Location.type', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/v3-ServiceDeliveryLocationRoleType'}},
|
24
|
-
'telecom' => {'type'=>'ContactPoint', 'path'=>'Location.telecom', 'min'=>0, 'max'=>Float::INFINITY},
|
25
|
-
'address' => {'type'=>'Address', 'path'=>'Location.address', 'min'=>0, 'max'=>1},
|
26
|
-
'physicalType' => {'valid_codes'=>{'http://hl7.org/fhir/location-physical-type'=>['bu', 'wi', 'lvl', 'co', 'ro', 'bd', 've', 'ho', 'ca', 'rd', 'jdn', 'area']}, 'type'=>'CodeableConcept', 'path'=>'Location.physicalType', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/location-physical-type'}},
|
27
|
-
'position' => {'type'=>'Location::Position', 'path'=>'Location.position', 'min'=>0, 'max'=>1},
|
28
|
-
'managingOrganization' => {'type'=>'Reference', 'path'=>'Location.managingOrganization', 'min'=>0, 'max'=>1},
|
29
|
-
'partOf' => {'type'=>'Reference', 'path'=>'Location.partOf', 'min'=>0, 'max'=>1}
|
10
|
+
'id' => { 'type' => 'id', 'path' => 'Location.id', 'min' => 0, 'max' => 1 },
|
11
|
+
'meta' => { 'type' => 'Meta', 'path' => 'Location.meta', 'min' => 0, 'max' => 1 },
|
12
|
+
'implicitRules' => { 'type' => 'uri', 'path' => 'Location.implicitRules', 'min' => 0, 'max' => 1 },
|
13
|
+
'language' => { 'type' => 'code', 'path' => 'Location.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } },
|
14
|
+
'text' => { 'type' => 'Narrative', 'path' => 'Location.text', 'min' => 0, 'max' => 1 },
|
15
|
+
'contained' => { 'type' => 'Resource', 'path' => 'Location.contained', 'min' => 0, 'max' => Float::INFINITY },
|
16
|
+
'extension' => { 'type' => 'Extension', 'path' => 'Location.extension', 'min' => 0, 'max' => Float::INFINITY },
|
17
|
+
'modifierExtension' => { 'type' => 'Extension', 'path' => 'Location.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
|
18
|
+
'identifier' => { 'type' => 'Identifier', 'path' => 'Location.identifier', 'min' => 0, 'max' => Float::INFINITY },
|
19
|
+
'status' => { 'valid_codes' => { 'http://hl7.org/fhir/location-status' => ['active', 'suspended', 'inactive'] }, 'type' => 'code', 'path' => 'Location.status', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/location-status' } },
|
20
|
+
'name' => { 'type' => 'string', 'path' => 'Location.name', 'min' => 0, 'max' => 1 },
|
21
|
+
'description' => { 'type' => 'string', 'path' => 'Location.description', 'min' => 0, 'max' => 1 },
|
22
|
+
'mode' => { 'valid_codes' => { 'http://hl7.org/fhir/location-mode' => ['instance', 'kind'] }, 'type' => 'code', 'path' => 'Location.mode', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/location-mode' } },
|
23
|
+
'type' => { 'valid_codes' => { 'http://hl7.org/fhir/v3/RoleCode' => ['_AffiliationRoleType', '_CoverageSponsorRoleType', 'FULLINS', 'SELFINS', '_PayorRoleType', 'ENROLBKR', 'TPA', 'UMO', 'RESPRSN', 'EXCEST', 'GUADLTM', 'GUARD', 'POWATT', 'DPOWATT', 'HPOWATT', 'SPOWATT', '_AssignedRoleType', '_AssignedNonPersonLivingSubjectRoleType', 'ASSIST', 'BIOTH', 'ANTIBIOT', 'DEBR', 'CCO', 'SEE', 'SNIFF', '_CertifiedEntityType', '_CitizenRoleType', 'CAS', 'CASM', 'CN', 'CNRP', 'CNRPM', 'CPCA', 'CRP', 'CRPM', '_ContactRoleType', '_AdministrativeContactRoleType', 'BILL', 'ORG', 'PAYOR', 'ECON', 'NOK', '_IdentifiedEntityType', '_LocationIdentifiedEntityRoleCode', 'ACHFID', 'JURID', 'LOCHFID', '_LivingSubjectProductionClass', 'BF', 'BL', 'BR', 'CO', 'DA', 'DR', 'DU', 'FI', 'LY', 'MT', 'MU', 'PL', 'RC', 'SH', 'VL', 'WL', 'WO', '_MedicationGeneralizationRoleType', 'DC', 'GD', 'GDF', 'GDS', 'GDSF', 'MGDSF', '_MemberRoleType', 'TRB', '_PersonalRelationshipRoleType', 'FAMMEMB', 'CHILD', 'CHLDADOPT', 'DAUADOPT', 'SONADOPT', 'CHLDFOST', 'DAUFOST', 'SONFOST', 'DAUC', 'DAU', 'STPDAU', 'NCHILD', 'SON', 'SONC', 'STPSON', 'STPCHLD', 'EXT', 'AUNT', 'MAUNT', 'PAUNT', 'COUSN', 'MCOUSN', 'PCOUSN', 'GGRPRN', 'GGRFTH', 'MGGRFTH', 'PGGRFTH', 'GGRMTH', 'MGGRMTH', 'PGGRMTH', 'MGGRPRN', 'PGGRPRN', 'GRNDCHILD', 'GRNDDAU', 'GRNDSON', 'GRPRN', 'GRFTH', 'MGRFTH', 'PGRFTH', 'GRMTH', 'MGRMTH', 'PGRMTH', 'MGRPRN', 'PGRPRN', 'INLAW', 'CHLDINLAW', 'DAUINLAW', 'SONINLAW', 'PRNINLAW', 'FTHINLAW', 'MTHINLAW', 'SIBINLAW', 'BROINLAW', 'SISINLAW', 'NIENEPH', 'NEPHEW', 'NIECE', 'UNCLE', 'MUNCLE', 'PUNCLE', 'PRN', 'ADOPTP', 'ADOPTF', 'ADOPTM', 'FTH', 'FTHFOST', 'NFTH', 'NFTHF', 'STPFTH', 'MTH', 'GESTM', 'MTHFOST', 'NMTH', 'NMTHF', 'STPMTH', 'NPRN', 'PRNFOST', 'STPPRN', 'SIB', 'BRO', 'HBRO', 'NBRO', 'TWINBRO', 'FTWINBRO', 'ITWINBRO', 'STPBRO', 'HSIB', 'HSIS', 'NSIB', 'NSIS', 'TWINSIS', 'FTWINSIS', 'ITWINSIS', 'TWIN', 'FTWIN', 'ITWIN', 'SIS', 'STPSIS', 'STPSIB', 'SIGOTHR', 'DOMPART', 'FMRSPS', 'SPS', 'HUSB', 'WIFE', 'FRND', 'NBOR', 'ONESELF', 'ROOM', '_PolicyOrProgramCoverageRoleType', '_CoverageRoleType', 'FAMDEP', 'HANDIC', 'INJ', 'SELF', 'SPON', 'STUD', 'FSTUD', 'PSTUD', 'ADOPT', 'GCHILD', 'GPARNT', 'NAT', 'NIENE', 'PARNT', 'SPSE', 'STEP', '_CoveredPartyRoleType', '_ClaimantCoveredPartyRoleType', 'CRIMEVIC', 'INJWKR', '_DependentCoveredPartyRoleType', 'COCBEN', 'DIFFABL', 'WARD', '_IndividualInsuredPartyRoleType', 'RETIREE', '_ProgramEligiblePartyRoleType', 'INDIG', 'MIL', 'ACTMIL', 'RETMIL', 'VET', '_SubscriberCoveredPartyRoleType', '_ResearchSubjectRoleBasis', 'ERL', 'SCN', '_DedicatedServiceDeliveryLocationRoleType', '_DedicatedClinicalLocationRoleType', 'DX', 'CVDX', 'CATH', 'ECHO', 'GIDX', 'ENDOS', 'RADDX', 'RADO', 'RNEU', 'HOSP', 'CHR', 'GACH', 'MHSP', 'PSYCHF', 'RH', 'RHAT', 'RHII', 'RHMAD', 'RHPI', 'RHPIH', 'RHPIMS', 'RHPIVS', 'RHYAD', 'HU', 'BMTU', 'CCU', 'CHEST', 'EPIL', 'ER', 'ETU', 'HD', 'HLAB', 'INLAB', 'OUTLAB', 'HRAD', 'HUSCS', 'ICU', 'PEDICU', 'PEDNICU', 'INPHARM', 'MBL', 'NCCS', 'NS', 'OUTPHARM', 'PEDU', 'PHU', 'RHU', 'SLEEP', 'NCCF', 'SNF', 'OF', 'ALL', 'AMPUT', 'BMTC', 'BREAST', 'CANC', 'CAPC', 'CARD', 'PEDCARD', 'COAG', 'CRS', 'DERM', 'ENDO', 'PEDE', 'ENT', 'FMC', 'GI', 'PEDGI', 'GIM', 'GYN', 'HEM', 'PEDHEM', 'HTN', 'IEC', 'INFD', 'PEDID', 'INV', 'LYMPH', 'MGEN', 'NEPH', 'PEDNEPH', 'NEUR', 'OB', 'OMS', 'ONCL', 'PEDHO', 'OPH', 'OPTC', 'ORTHO', 'HAND', 'PAINCL', 'PC', 'PEDC', 'PEDRHEUM', 'POD', 'PREV', 'PROCTO', 'PROFF', 'PROS', 'PSI', 'PSY', 'RHEUM', 'SPMED', 'SU', 'PLS', 'URO', 'TR', 'TRAVEL', 'WND', 'RTF', 'PRC', 'SURF', '_DedicatedNonClinicalLocationRoleType', 'DADDR', 'MOBL', 'AMB', 'PHARM', '_IncidentalServiceDeliveryLocationRoleType', 'ACC', 'COMM', 'CSC', 'PTRES', 'SCHOOL', 'UPC', 'WORK', '_SpecimenRoleType', 'C', 'G', 'L', 'P', 'Q', 'B', 'E', 'F', 'O', 'V', 'R', 'CLAIM', 'communityLaboratory', 'GT', 'homeHealth', 'laboratory', 'pathologist', 'PH', 'phlebotomist', 'PROG', 'PT', 'subject', 'thirdParty', 'DEP', 'DEPEN', 'FM', 'INDIV', 'NAMED', 'PSYCHCF', 'SUBSCR'] }, 'type' => 'CodeableConcept', 'path' => 'Location.type', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'extensible', 'uri' => 'http://hl7.org/fhir/ValueSet/v3-ServiceDeliveryLocationRoleType' } },
|
24
|
+
'telecom' => { 'type' => 'ContactPoint', 'path' => 'Location.telecom', 'min' => 0, 'max' => Float::INFINITY },
|
25
|
+
'address' => { 'type' => 'Address', 'path' => 'Location.address', 'min' => 0, 'max' => 1 },
|
26
|
+
'physicalType' => { 'valid_codes' => { 'http://hl7.org/fhir/location-physical-type' => ['bu', 'wi', 'lvl', 'co', 'ro', 'bd', 've', 'ho', 'ca', 'rd', 'jdn', 'area'] }, 'type' => 'CodeableConcept', 'path' => 'Location.physicalType', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/location-physical-type' } },
|
27
|
+
'position' => { 'type' => 'Location::Position', 'path' => 'Location.position', 'min' => 0, 'max' => 1 },
|
28
|
+
'managingOrganization' => { 'type' => 'Reference', 'path' => 'Location.managingOrganization', 'min' => 0, 'max' => 1 },
|
29
|
+
'partOf' => { 'type' => 'Reference', 'path' => 'Location.partOf', 'min' => 0, 'max' => 1 }
|
30
30
|
}
|
31
31
|
|
32
32
|
class Position < FHIR::DSTU2::Model
|
@@ -35,12 +35,12 @@ module FHIR
|
|
35
35
|
include FHIR::DSTU2::Xml
|
36
36
|
|
37
37
|
METADATA = {
|
38
|
-
'id' => {'type'=>'id', 'path'=>'Position.id', 'min'=>0, 'max'=>1},
|
39
|
-
'extension' => {'type'=>'Extension', 'path'=>'Position.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
40
|
-
'modifierExtension' => {'type'=>'Extension', 'path'=>'Position.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
41
|
-
'longitude' => {'type'=>'decimal', 'path'=>'Position.longitude', 'min'=>1, 'max'=>1},
|
42
|
-
'latitude' => {'type'=>'decimal', 'path'=>'Position.latitude', 'min'=>1, 'max'=>1},
|
43
|
-
'altitude' => {'type'=>'decimal', 'path'=>'Position.altitude', 'min'=>0, 'max'=>1}
|
38
|
+
'id' => { 'type' => 'id', 'path' => 'Position.id', 'min' => 0, 'max' => 1 },
|
39
|
+
'extension' => { 'type' => 'Extension', 'path' => 'Position.extension', 'min' => 0, 'max' => Float::INFINITY },
|
40
|
+
'modifierExtension' => { 'type' => 'Extension', 'path' => 'Position.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
|
41
|
+
'longitude' => { 'type' => 'decimal', 'path' => 'Position.longitude', 'min' => 1, 'max' => 1 },
|
42
|
+
'latitude' => { 'type' => 'decimal', 'path' => 'Position.latitude', 'min' => 1, 'max' => 1 },
|
43
|
+
'altitude' => { 'type' => 'decimal', 'path' => 'Position.altitude', 'min' => 0, 'max' => 1 }
|
44
44
|
}
|
45
45
|
|
46
46
|
attr_accessor :id # 0-1 id
|
@@ -77,4 +77,4 @@ module FHIR
|
|
77
77
|
end
|
78
78
|
end
|
79
79
|
end
|
80
|
-
end
|
80
|
+
end
|