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,18 @@
|
|
1
|
+
module FHIR
|
2
|
+
class BackboneElement < 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'=>'BackboneElement.id', 'min'=>0, 'max'=>1},
|
10
|
+
'extension' => {'type'=>'Extension', 'path'=>'BackboneElement.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
11
|
+
'modifierExtension' => {'type'=>'Extension', 'path'=>'BackboneElement.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY}
|
12
|
+
}
|
13
|
+
|
14
|
+
attr_accessor :id # 0-1 id
|
15
|
+
attr_accessor :extension # 0-* [ Extension ]
|
16
|
+
attr_accessor :modifierExtension # 0-* [ Extension ]
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module FHIR
|
2
|
+
class CodeableConcept < 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'=>'CodeableConcept.id', 'min'=>0, 'max'=>1},
|
10
|
+
'extension' => {'type'=>'Extension', 'path'=>'CodeableConcept.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
11
|
+
'coding' => {'type'=>'Coding', 'path'=>'CodeableConcept.coding', 'min'=>0, 'max'=>Float::INFINITY},
|
12
|
+
'text' => {'type'=>'string', 'path'=>'CodeableConcept.text', 'min'=>0, 'max'=>1}
|
13
|
+
}
|
14
|
+
|
15
|
+
attr_accessor :id # 0-1 id
|
16
|
+
attr_accessor :extension # 0-* [ Extension ]
|
17
|
+
attr_accessor :coding # 0-* [ Coding ]
|
18
|
+
attr_accessor :text # 0-1 string
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module FHIR
|
2
|
+
class Coding < 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'=>'Coding.id', 'min'=>0, 'max'=>1},
|
10
|
+
'extension' => {'type'=>'Extension', 'path'=>'Coding.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
11
|
+
'system' => {'type'=>'uri', 'path'=>'Coding.system', 'min'=>0, 'max'=>1},
|
12
|
+
'version' => {'type'=>'string', 'path'=>'Coding.version', 'min'=>0, 'max'=>1},
|
13
|
+
'code' => {'type'=>'code', 'path'=>'Coding.code', 'min'=>0, 'max'=>1},
|
14
|
+
'display' => {'type'=>'string', 'path'=>'Coding.display', 'min'=>0, 'max'=>1},
|
15
|
+
'userSelected' => {'type'=>'boolean', 'path'=>'Coding.userSelected', 'min'=>0, 'max'=>1}
|
16
|
+
}
|
17
|
+
|
18
|
+
attr_accessor :id # 0-1 id
|
19
|
+
attr_accessor :extension # 0-* [ Extension ]
|
20
|
+
attr_accessor :system # 0-1 uri
|
21
|
+
attr_accessor :version # 0-1 string
|
22
|
+
attr_accessor :code # 0-1 code
|
23
|
+
attr_accessor :display # 0-1 string
|
24
|
+
attr_accessor :userSelected # 0-1 boolean
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module FHIR
|
2
|
+
class ContactPoint < 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'=>'ContactPoint.id', 'min'=>0, 'max'=>1},
|
10
|
+
'extension' => {'type'=>'Extension', 'path'=>'ContactPoint.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
11
|
+
'system' => {'valid_codes'=>{'http://hl7.org/fhir/contact-point-system'=>['phone', 'fax', 'email', 'pager', 'other']}, 'type'=>'code', 'path'=>'ContactPoint.system', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/contact-point-system'}},
|
12
|
+
'value' => {'type'=>'string', 'path'=>'ContactPoint.value', 'min'=>0, 'max'=>1},
|
13
|
+
'use' => {'valid_codes'=>{'http://hl7.org/fhir/contact-point-use'=>['home', 'work', 'temp', 'old', 'mobile']}, 'type'=>'code', 'path'=>'ContactPoint.use', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/contact-point-use'}},
|
14
|
+
'rank' => {'type'=>'positiveInt', 'path'=>'ContactPoint.rank', 'min'=>0, 'max'=>1},
|
15
|
+
'period' => {'type'=>'Period', 'path'=>'ContactPoint.period', 'min'=>0, 'max'=>1}
|
16
|
+
}
|
17
|
+
|
18
|
+
attr_accessor :id # 0-1 id
|
19
|
+
attr_accessor :extension # 0-* [ Extension ]
|
20
|
+
attr_accessor :system # 0-1 code
|
21
|
+
attr_accessor :value # 0-1 string
|
22
|
+
attr_accessor :use # 0-1 code
|
23
|
+
attr_accessor :rank # 0-1 positiveInt
|
24
|
+
attr_accessor :period # 0-1 Period
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,78 @@
|
|
1
|
+
module FHIR
|
2
|
+
class DataRequirement < 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'=>'DataRequirement.id', 'min'=>0, 'max'=>1},
|
10
|
+
'extension' => {'type'=>'Extension', 'path'=>'DataRequirement.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
11
|
+
'type' => {'valid_codes'=>{'http://hl7.org/fhir/data-types'=>['ActionDefinition', 'Address', 'Age', 'Annotation', 'Attachment', 'BackboneElement', 'CodeableConcept', 'Coding', 'ContactPoint', 'Count', 'DataRequirement', 'Distance', 'Duration', 'Element', 'ElementDefinition', 'Extension', 'HumanName', 'Identifier', 'Meta', 'ModuleMetadata', 'Money', 'Narrative', 'ParameterDefinition', 'Period', 'Quantity', 'Range', 'Ratio', 'Reference', 'SampledData', 'Signature', 'SimpleQuantity', 'Timing', 'TriggerDefinition', 'base64Binary', 'boolean', 'code', 'date', 'dateTime', 'decimal', 'id', 'instant', 'integer', 'markdown', 'oid', 'positiveInt', 'string', 'time', 'unsignedInt', 'uri', 'uuid', 'xhtml'], 'http://hl7.org/fhir/resource-types'=>['Account', 'AllergyIntolerance', 'Appointment', 'AppointmentResponse', 'AuditEvent', 'Basic', 'Binary', 'BodySite', 'Bundle', 'CarePlan', 'CareTeam', 'Claim', 'ClaimResponse', 'ClinicalImpression', 'CodeSystem', 'Communication', 'CommunicationRequest', 'CompartmentDefinition', 'Composition', 'ConceptMap', 'Condition', 'Conformance', 'Contract', 'Coverage', 'DataElement', 'DecisionSupportRule', 'DecisionSupportServiceModule', 'DetectedIssue', 'Device', 'DeviceComponent', 'DeviceMetric', 'DeviceUseRequest', 'DeviceUseStatement', 'DiagnosticOrder', 'DiagnosticReport', 'DocumentManifest', 'DocumentReference', 'DomainResource', 'EligibilityRequest', 'EligibilityResponse', 'Encounter', 'EnrollmentRequest', 'EnrollmentResponse', 'EpisodeOfCare', 'ExpansionProfile', 'ExplanationOfBenefit', 'FamilyMemberHistory', 'Flag', 'Goal', 'Group', 'GuidanceResponse', 'HealthcareService', 'ImagingExcerpt', 'ImagingObjectSelection', 'ImagingStudy', 'Immunization', 'ImmunizationRecommendation', 'ImplementationGuide', 'Library', 'Linkage', 'List', 'Location', 'Measure', 'MeasureReport', 'Media', 'Medication', 'MedicationAdministration', 'MedicationDispense', 'MedicationOrder', 'MedicationStatement', 'MessageHeader', 'ModuleDefinition', 'NamingSystem', 'NutritionOrder', 'Observation', 'OperationDefinition', 'OperationOutcome', 'Order', 'OrderResponse', 'OrderSet', 'Organization', 'Parameters', 'Patient', 'PaymentNotice', 'PaymentReconciliation', 'Person', 'Practitioner', 'PractitionerRole', 'Procedure', 'ProcedureRequest', 'ProcessRequest', 'ProcessResponse', 'Protocol', 'Provenance', 'Questionnaire', 'QuestionnaireResponse', 'ReferralRequest', 'RelatedPerson', 'Resource', 'RiskAssessment', 'Schedule', 'SearchParameter', 'Sequence', 'Slot', 'Specimen', 'StructureDefinition', 'StructureMap', 'Subscription', 'Substance', 'SupplyDelivery', 'SupplyRequest', 'Task', 'TestScript', 'ValueSet', 'VisionPrescription'], 'http://hl7.org/fhir/abstract-types'=>['Type', 'Any']}, 'type'=>'code', 'path'=>'DataRequirement.type', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/all-types'}},
|
12
|
+
'profile' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/StructureDefinition'], 'type'=>'Reference', 'path'=>'DataRequirement.profile', 'min'=>0, 'max'=>1},
|
13
|
+
'mustSupport' => {'type'=>'string', 'path'=>'DataRequirement.mustSupport', 'min'=>0, 'max'=>Float::INFINITY},
|
14
|
+
'codeFilter' => {'type'=>'DataRequirement::Codefilter', 'path'=>'DataRequirement.codeFilter', 'min'=>0, 'max'=>Float::INFINITY},
|
15
|
+
'dateFilter' => {'type'=>'DataRequirement::Datefilter', 'path'=>'DataRequirement.dateFilter', 'min'=>0, 'max'=>Float::INFINITY}
|
16
|
+
}
|
17
|
+
|
18
|
+
class Codefilter < FHIR::Model
|
19
|
+
include FHIR::Hashable
|
20
|
+
include FHIR::Json
|
21
|
+
include FHIR::Xml
|
22
|
+
|
23
|
+
MULTIPLE_TYPES = {
|
24
|
+
'valueSet' => ['string', 'Reference']
|
25
|
+
}
|
26
|
+
METADATA = {
|
27
|
+
'id' => {'type'=>'id', 'path'=>'Codefilter.id', 'min'=>0, 'max'=>1},
|
28
|
+
'extension' => {'type'=>'Extension', 'path'=>'Codefilter.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
29
|
+
'path' => {'type'=>'string', 'path'=>'Codefilter.path', 'min'=>1, 'max'=>1},
|
30
|
+
'valueSetString' => {'type'=>'string', 'path'=>'Codefilter.valueSet[x]', 'min'=>0, 'max'=>1},
|
31
|
+
'valueSetReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/ValueSet'], 'type'=>'Reference', 'path'=>'Codefilter.valueSet[x]', 'min'=>0, 'max'=>1},
|
32
|
+
'valueCode' => {'type'=>'code', 'path'=>'Codefilter.valueCode', 'min'=>0, 'max'=>Float::INFINITY},
|
33
|
+
'valueCoding' => {'type'=>'Coding', 'path'=>'Codefilter.valueCoding', 'min'=>0, 'max'=>Float::INFINITY},
|
34
|
+
'valueCodeableConcept' => {'type'=>'CodeableConcept', 'path'=>'Codefilter.valueCodeableConcept', 'min'=>0, 'max'=>Float::INFINITY}
|
35
|
+
}
|
36
|
+
|
37
|
+
attr_accessor :id # 0-1 id
|
38
|
+
attr_accessor :extension # 0-* [ Extension ]
|
39
|
+
attr_accessor :path # 1-1 string
|
40
|
+
attr_accessor :valueSetString # 0-1 string
|
41
|
+
attr_accessor :valueSetReference # 0-1 Reference(ValueSet)
|
42
|
+
attr_accessor :valueCode # 0-* [ code ]
|
43
|
+
attr_accessor :valueCoding # 0-* [ Coding ]
|
44
|
+
attr_accessor :valueCodeableConcept # 0-* [ CodeableConcept ]
|
45
|
+
end
|
46
|
+
|
47
|
+
class Datefilter < FHIR::Model
|
48
|
+
include FHIR::Hashable
|
49
|
+
include FHIR::Json
|
50
|
+
include FHIR::Xml
|
51
|
+
|
52
|
+
MULTIPLE_TYPES = {
|
53
|
+
'value' => ['dateTime', 'Period']
|
54
|
+
}
|
55
|
+
METADATA = {
|
56
|
+
'id' => {'type'=>'id', 'path'=>'Datefilter.id', 'min'=>0, 'max'=>1},
|
57
|
+
'extension' => {'type'=>'Extension', 'path'=>'Datefilter.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
58
|
+
'path' => {'type'=>'string', 'path'=>'Datefilter.path', 'min'=>1, 'max'=>1},
|
59
|
+
'valueDateTime' => {'type'=>'dateTime', 'path'=>'Datefilter.value[x]', 'min'=>0, 'max'=>1},
|
60
|
+
'valuePeriod' => {'type'=>'Period', 'path'=>'Datefilter.value[x]', 'min'=>0, 'max'=>1}
|
61
|
+
}
|
62
|
+
|
63
|
+
attr_accessor :id # 0-1 id
|
64
|
+
attr_accessor :extension # 0-* [ Extension ]
|
65
|
+
attr_accessor :path # 1-1 string
|
66
|
+
attr_accessor :valueDateTime # 0-1 dateTime
|
67
|
+
attr_accessor :valuePeriod # 0-1 Period
|
68
|
+
end
|
69
|
+
|
70
|
+
attr_accessor :id # 0-1 id
|
71
|
+
attr_accessor :extension # 0-* [ Extension ]
|
72
|
+
attr_accessor :type # 1-1 code
|
73
|
+
attr_accessor :profile # 0-1 Reference(StructureDefinition)
|
74
|
+
attr_accessor :mustSupport # 0-* [ string ]
|
75
|
+
attr_accessor :codeFilter # 0-* [ DataRequirement::Codefilter ]
|
76
|
+
attr_accessor :dateFilter # 0-* [ DataRequirement::Datefilter ]
|
77
|
+
end
|
78
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module FHIR
|
2
|
+
class Element < 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'=>'Element.id', 'min'=>0, 'max'=>1},
|
10
|
+
'extension' => {'type'=>'Extension', 'path'=>'Element.extension', 'min'=>0, 'max'=>Float::INFINITY}
|
11
|
+
}
|
12
|
+
|
13
|
+
attr_accessor :id # 0-1 id
|
14
|
+
attr_accessor :extension # 0-* [ Extension ]
|
15
|
+
end
|
16
|
+
end
|