Class: FHIR::ValueSetComposeIncludeFilter
- Inherits:
-
BackboneElement
- Object
- Type
- Element
- BackboneElement
- FHIR::ValueSetComposeIncludeFilter
- Includes:
- Mongoid::Document
- Defined in:
- app/models/fhir/value_set_compose_include_filter.rb
Overview
fhir/value_set_compose_include_filter.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.transform_json(json_hash, target = ValueSetComposeIncludeFilter.new) ⇒ Object
34 35 36 37 38 39 40 41 42 |
# File 'app/models/fhir/value_set_compose_include_filter.rb', line 34 def self.transform_json(json_hash, target = ValueSetComposeIncludeFilter.new) result = self.superclass.transform_json(json_hash, target) result['property'] = PrimitiveCode.transform_json(json_hash['property'], json_hash['_property']) unless json_hash['property'].nil? result['op'] = FilterOperator.transform_json(json_hash['op'], json_hash['_op']) unless json_hash['op'].nil? result['value'] = PrimitiveString.transform_json(json_hash['value'], json_hash['_value']) unless json_hash['value'].nil? result end |
Instance Method Details
#as_json(*args) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'app/models/fhir/value_set_compose_include_filter.rb', line 9 def as_json(*args) result = super unless self.property.nil? result['property'] = self.property.value serialized = Extension.serializePrimitiveExtension(self.property) result['_property'] = serialized unless serialized.nil? end unless self.op.nil? result['op'] = self.op.value serialized = Extension.serializePrimitiveExtension(self.op) result['_op'] = serialized unless serialized.nil? end unless self.value.nil? result['value'] = self.value.value serialized = Extension.serializePrimitiveExtension(self.value) result['_value'] = serialized unless serialized.nil? end result.delete('id') unless self.fhirId.nil? result['id'] = self.fhirId result.delete('fhirId') end result end |