Socket
Socket
Sign inDemoInstall

drug-labels

Package Overview
Dependencies
21
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    drug-labels

vue plugin for pretty anaesthetic drug labels


Version published
Maintainers
1
Created

Readme

Source

drug-label

Vue component to provide UI drug labels as <drug-label> tags.

Usage demo on Codepen

docs a bit of a WIP

Parameters

type

Default: null (displayed as others / white label)

Determines the type of drug and therefore the color of the label. Possible values are:

ParameterTypeExampleColour
induction-agentInduction agentsthiopentalyellow
hypnoticSedative/hypnoticsmidazolamorange
hypnotic-antagonistSedative antagonistflumazenilorange and white stripes
neuromuscular-blockerNeuromuscular blockersatracuriumfluorescent red
depolarizing-neuromuscular-blockerDepolarising neuromuscular blockerssuxamethoniumfluorescent red with black top
neuromuscular-blocker-antagonistNeuromuscular blocker reversal agentsneostigminefluorescent red and white stripes
opioidOpioidsfentanylblue
opioid-antagonistOpioid antagonistsnaloxoneblue and white stripes
vasopressorVasopressorsephedrineviolet
adrenalineAdrenalineadrenalineviolet with black top
hypotensiveHypotensive agentslabetalolviolet and white stripes
local-anaestheticLocal anaestheticsbupivacainegrey
anticholinergicAnticholinergicsatropinegreen
antiemeticAntiemeticscyclizinesalmon
othersothers drugsparacetamolwhite

Example:

Opioid label

<drug-label type="opioid" />

name

Default: null (displayed as "Drug")

The name of the drug to be displayed on the top portion of the label. The initial letter is capitalized automatically.

Example:

Ketamine label

<drug-label name="ketamine" />

concentration

Default: null (displayed as ".............")

The concentration of the drug to be displayed on the lower portion of the label suffixed with the units.


units

Default: null (displayed as "mg/ml")


size

Default: null (displayed normal sized)

Determines the size of the label. Possible values are:

ParameterSizefont-size
normalNormal1.1rem
smallSmall0.8rem
xsmallExtra small0.6rem

bordered

Default: null (displayed as false - no border)

valueborder
trueyes
falsenone

scaled

Default: null (displayed as false)

valuewidth
true16 rem (size="normal")
12 rem (size="small")
10 rem (size="xsmall")
falseas parent element

Example:

Sizes

<drug-label
  name="Midazolam"
  type="hypnotic"
  scaled
/>

<drug-label
  name="Midazolam"
  type="hypnotic"
  scaled
  size="small"
/>

<drug-label
  name="Midazolam"
  type="hypnotic"
  scaled
  size="xsmall"
/>

FAQs

Last updated on 28 Dec 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc