npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@openimis/fe-policy

v1.7.0

Published

openIMIS Frontend Policy reference module

Downloads

49

Readme

openIMIS Frontend Policy reference module

This repository holds the files of the openIMIS Frontend Policy reference module. It is dedicated to be deployed as a module of openimis-fe_js.

License: AGPL v3 Total alerts

Main Menu Contributions

None

Other Contributions

  • core.Router: registering policy/policies routes in openIMIS client-side router

  • insuree.MainMenu:

    Policies (menu.policies translation key)

  • insuree.EnquiryDialog: [FamilyOrInsureePoliciesSummary, InsureeEligibilityEnquiry, InsureeEligibilitySummary], adding the (family) policies details, ability to query eligibility on an item and service and remaining counts and amounts to enquiry dialog (of insuree module)

  • insuree.FamilyOverview.panels: [FamilyOrInsureePoliciesSummary], policy section in the family overview

Available Contribution Points

  • policy.Filter, contributions point for the filter (searcher page)
  • policy.Policy, contributions point for the policy master panel (in policy page)
  • policy.Policy.panels, contributions point to add panels below the policy master panel (in policy page)
  • policy.PolicyValues, contributions point for the policy values panel (in policy page)
  • policy.PolicyValues.panels, contributions point to add panels below the policy values panel (in policy page)

Published Components

  • policy.PolicyOfficerPicker, picker for policy officers (from the database)
  • policy.PolicyStatusPicker, picker for the policy status (idle, ready, active, suspended or expired), from (translated) constants (1, 2, 4, 8 or 16)
  • policy.PolicyStagePicker, picker for policy stages (new or renew), from (translated) constants (N or R)
  • policy.FamilyOrInsureePoliciesSummary, insuree (family) policies summary (by default contributed to insuree enquiry dialog)
  • policy.InsureeEligibilitySummary, querying insuree eligibility to an item and service (by default contributed to insuree enquiry dialog)
  • policy.InsureeEligibilityEnquiry, remaining counts and amounts of insuree (by default contributed to insuree enquiry dialog)
  • policy.InsureePolicyEligibilitySummary, summary (expiry date and balance) of the last still valid insuree policy

Dispatched Redux Actions

  • POLICY_INSUREE_POLICIES_{REQ|RESP|ERR}, loading insuree policies summary (GraphQL: policiesByFamilyOrInsuree)
  • POLICY_INSUREE_ITEM_ELIGIBILITY_{REQ|RESP|ERR}, query insuree eligibility for an item (GraphQL: policyItemEligibilityByInsuree)
  • POLICY_INSUREE_SERVICE_ELIGIBILITY_{REQ|RESP|ERR}, query insuree eligibility for a service (GraphQL: policyServiceEligibilityByInsuree)
  • POLICY_INSUREE_ELIGIBILITY_{REQ|RESP|ERR}, insuree eligibility summary (GraphQL: policyEligibilityByInsuree)
  • POLICY_FAMILY_POLICIES_{REQ|RESP|ERR}, fetching the policies of the (redux) family into the redux state
  • POLICY_POLICY_OFFICERS_{REQ|RESP|ERR}, fetching the policy officers (cached into PolicyOfficerPicker)
  • POLICY_POLICIES_{REQ|RESP|ERR}, fetching policies (as triggered by the searcher)
  • POLICY_POLICY_{REQ|RESP|ERR}, fetching one policy (full details)... as for the policy page
  • POLICY_FETCH_POLICY_VALUES__{REQ|RESP|ERR}, request backend the policy (being created/updated) values (start date, expiry date and value)
  • POLICY_MUTATION_REQ, sending a mutation (create, update, nenew, suspend or delete)
  • POLICY_MUTATION_ERR, failed submitting a mutation
  • POLICY_{CREATE|UPDATE|RENEW|SUSPEND|DELETE}_POLICY_RESP, create policy mutation response (i.e. when successfull)

Other Modules Listened Redux Actions

None

Other Modules Redux State Bindings

  • state.core.user, to access user info (rights,...)
  • state.insuree, loading insuree policies (,eligibility,...)

Configurations Options

  • familyOrInsureePoliciesSummary.orderByExpiryDate: Allows to set whether you want to sort policies by expiry date in ascending or descending order. Default: "expiryDate" which means ascending order.
  • familyOrInsureePoliciesSummary.onlyActiveOrLastExpired: Enables to choose whether you want to display only active and the last expired policies, or all. Default: true.
  • minimumPolicyEffectiveDate: Set minimum allowed date for effective date of a policy. Sets minimum for x days before current day. If 0 nothing is changed. Default: 0.
  • isEligiblitySummaryEnabled: Enables/disables remain counts/amounts in enquire. Enabled if true. Default true.