1.0.9 • Published 4 months ago

drug-labels v1.0.9

Weekly downloads
-
License
-
Repository
-
Last release
4 months ago

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"
/>
1.0.9

4 months ago

1.0.8

4 months ago

1.0.7

4 months ago

1.0.6

4 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago