phi_attrs | HIPAA compliant PHI access logging for Ruby on Rails | Application Framework library
kandi X-RAY | phi_attrs Summary
kandi X-RAY | phi_attrs Summary
When you include phi_model on your active record all fields except the id will be considered PHI.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of phi_attrs
phi_attrs Key Features
phi_attrs Examples and Code Snippets
# created_at and updated_at will be accessible as normal
class PatientInfo < ActiveRecord::Base
phi_model
exclude_from_phi :created_at, :updated_at
end
# birthday and node will throw PHIExceptions if accessed without permission
class Patient
patient = Patient.new
patient.phi_allowed? # => false
patient.allow_phi('user@example.com', 'reason') do
patient.phi_allowed? # => true
end
patient.phi_allowed? # => false
patient.allow_phi!('user@example.com', 'reason')
patient.phi_all
module Admin
class PatientDashboardController < ApplicationController
def expelliarmus
patient_info.allow_phi(current_user) do
# reason tries to use `phi.admin.patient_dashbaord.expelliarmus.patient_info`
end
end
Community Discussions
Trending Discussions on Application Framework
QUESTION
I am trying to understand various available AGL specific options that we can give in config.xml and I am referring to the link below
https://docs.automotivelinux.org/docs/en/halibut/apis_services/reference/af-main/2.2-config.xml.html
This is the sample config.xml file
...ANSWER
Answered 2020-Mar-06 at 09:48I figured out why we need this
required-api: param name="#target"
OPTIONAL(not compulsory)
It declares the name of the unit(in question it is main) requiring the listed apis. Only one instance of the param “#target” is allowed. When there is not instance of this param, it behave as if the target main was specified.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install phi_attrs
Run bin/setup to install dependencies. Then, run bundle exec appraisal rspec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment. To install this gem onto your local machine, run bundle exec rake install.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page