Class: OpenehrRails::Fhir::ResourceRegistry::Entry

Inherits:
Struct
  • Object
show all
Defined in:
lib/openehr_rails/fhir/resource_registry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#archetype_idObject

Returns the value of attribute archetype_id

Returns:

  • (Object)

    the current value of archetype_id



13
14
15
# File 'lib/openehr_rails/fhir/resource_registry.rb', line 13

def archetype_id
  @archetype_id
end

#fieldsObject

Returns the value of attribute fields

Returns:

  • (Object)

    the current value of fields



13
14
15
# File 'lib/openehr_rails/fhir/resource_registry.rb', line 13

def fields
  @fields
end

#modelObject

Returns the value of attribute model

Returns:

  • (Object)

    the current value of model



13
14
15
# File 'lib/openehr_rails/fhir/resource_registry.rb', line 13

def model
  @model
end

#resource_typeObject

Returns the value of attribute resource_type

Returns:

  • (Object)

    the current value of resource_type



13
14
15
# File 'lib/openehr_rails/fhir/resource_registry.rb', line 13

def resource_type
  @resource_type
end

#rm_typeObject

Returns the value of attribute rm_type

Returns:

  • (Object)

    the current value of rm_type



13
14
15
# File 'lib/openehr_rails/fhir/resource_registry.rb', line 13

def rm_type
  @rm_type
end

Instance Method Details

#slugObject



15
16
17
# File 'lib/openehr_rails/fhir/resource_registry.rb', line 15

def slug
  "openehr-#{archetype_id.delete_prefix('openEHR-EHR-').parameterize.dasherize}"
end